1 2011-06-24 Tom Tromey <tromey@redhat.com>
3 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4 gdb_thread_db.h. Move all common/ entries to be together.
5 (TAGS): Don't depend on DEPFILES.
7 2011-06-23 Yao Qi <yao@codesourcery.com>
9 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
10 * remote.c (remote_start_remote): ... here.
11 * monitor.c (monitor_open): ... here.
13 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
15 * gdbtypes.c (append_composite_type_field_aligned): Fix
16 calculation of bit position based on alignment.
18 2011-06-22 Pedro Alves <pedro@codesourcery.com>
20 * breakpoint.c (bpstat_stop_status): Call the check_status
21 breakpoint_ops method.
22 (print_one_breakpoint_location): Also print the condition for Ada
23 exception catchpoints.
24 (allocate_bp_location): New, factored out from
26 (allocate_bp_location): Adjust. Call the owner breakpoint's
27 allocate_location method, if there is one.
28 (free_bp_location): Call the locations's dtor method, if there is
30 (init_raw_breakpoint_without_location): New breakpoint_ops
32 (set_raw_breakpoint_without_location): Adjust.
33 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
34 (set_raw_breakpoint): Adjust.
35 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
36 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
37 re_set and check_status methods.
38 (init_catchpoint): Don't memset, initialize thread, addr_string
39 and enable_state. Pass the ops down to init_raw_breakpoint.
40 (install_catchpoint): Rename to ...
41 (install_breakpoint): ... this, and make extern.
42 (create_fork_vfork_event_catchpoint): Adjust.
43 (catch_exec_breakpoint_ops): Install NULL allocate_location,
44 re_set and check_status methods.
45 (create_syscall_event_catchpoint): Adjust.
46 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
47 (masked_watchpoint_breakpoint_ops): Install NULL
48 allocate_location, re_set and check_status methods.
49 (catch_exec_command_1): Adjust.
50 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
51 re_set and check_status methods.
52 (create_ada_exception_breakpoint): Rename to ...
53 (init_ada_exception_breakpoint): ... this. Add a struct
54 breakpoint parameter, and delete the exp_string, cond_string and
55 cond parameters. Use init_raw_breakpoint, and don't install or
56 mention the breakpoint yet. Don't clear breakpoint fields that
57 init_raw_breakpoint already clears.
58 (re_set_breakpoint): Delete, split into ...
59 (breakpoint_re_set_default, prepare_re_set_context): ... these new
61 (breakpoint_re_set_one): Call the breakpoint's
62 breakpoint_ops->re_set implementation, if there's one. Adjust.
63 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
64 (struct bp_location_ops): New type.
65 (struct bp_location): New field `ops'.
66 (struct breakpoint_ops): New `allocate_location', `re_set' and
67 `check_status' fields. Make `breakpoint_hit''s description match
69 (init_bp_location): Declare.
70 (breakpoint_re_set_default): Declare.
71 (create_ada_exception_breakpoint): Rename to ...
72 (init_ada_exception_breakpoint): ... this. Add a struct
73 breakpoint parameter, and delete the exp_string, cond_string and
75 (install_breakpoint): Declare.
76 * ada-lang.c: Include exceptions.h.
77 <Ada exceptions description>: Update.
78 (struct ada_catchpoint_location): New type.
79 (ada_catchpoint_location_dtor): New function.
80 (ada_catchpoint_location_ops): New global.
81 (ada_catchpoint): New type.
82 (create_excep_cond_exprs): New function.
83 (dtor_exception, allocate_location_exception, re_set_exception)
84 (should_stop_exception, check_status_exception): New functions.
85 (print_one_exception, print_mention_exception)
86 (print_recreate_exception): Adjust.
87 (dtor_catch_exception, allocate_location_catch_exception)
88 (re_set_catch_exception, check_status_catch_exception): New
90 (catch_exception_breakpoint_ops): Install them.
91 (dtor_catch_exception_unhandled)
92 (allocate_location_catch_exception_unhandled)
93 (re_set_catch_exception_unhandled)
94 (check_status_catch_exception_unhandled): New functions.
95 (catch_exception_unhandled_breakpoint_ops): Install them.
96 (dtor_catch_assert, allocate_location_catch_assert)
97 (re_set_catch_assert, check_status_catch_assert): New functions.
98 (catch_assert_breakpoint_ops): Install them.
99 (ada_exception_catchpoint_p): Delete.
100 (catch_ada_exception_command_split)
101 (ada_exception_catchpoint_cond_string): Rename exp_string
102 parameter to excep_string. Adjust.
103 (ada_parse_catchpoint_condition): Delete.
104 (ada_exception_sal): Rename the exp_string parameter to
105 excep_string. Delete the cond_string and cond parameters.
107 (ada_decode_exception_location): Rename the exp_string parameter
108 to excep_string. Delete the cond_string and cond parameters.
110 (create_ada_exception_catchpoint): New function.
111 (catch_ada_exception_command, ada_decode_assert_location)
112 (catch_assert_command): Adjust.
113 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
115 2011-06-22 Pedro Alves <pedro@codesourcery.com>
117 * ada-lang.c: Include arch-utils.h.
118 (ada_decode_exception_location): Make static.
119 (catch_ada_exception_command): Moved here from breakpoint.c.
120 (ada_decode_assert_location): Make static.
121 (catch_assert_command): Moved here from breakpoint.c.
122 (_initialize_ada_lang): Install the exception and assert
123 catchpoint commands here.
124 * ada-lang.h (ada_decode_exception_location)
125 (ada_decode_assert_location): Delete declarations.
126 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
128 (create_ada_exception_breakpoint): Make extern.
129 (catch_ada_exception_command, catch_assert_command): Moved to
131 (add_catch_command): Make extern.
132 (_initilize_breakpoint): Don't install the exception and assert
133 catchpoint commands here.
134 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
136 (add_catch_command, create_ada_exception_breakpoint): Declare.
138 2011-06-22 Pedro Alves <pedro@codesourcery.com>
140 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
141 the breakpoint to the breakpoint chain here.
142 (set_raw_breakpoint_without_location): Add the breakpoint to the
143 breakpoint chain here.
144 (init_raw_breakpoint): Adjust comments.
145 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
147 (init_catchpoint): Don't set the catchpoint's breakpoint number
149 (install_catchpoint): New function.
150 (create_fork_vfork_event_catchpoint)
151 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
152 use install_catchpoint.
154 2011-06-22 Pedro Alves <pedro@codesourcery.com>
156 * breakpoint.c (create_catchpoint_without_mention)
157 (create_catchpoint): Delete.
159 2011-06-22 Pedro Alves <pedro@codesourcery.com>
161 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
162 * breakpoint.c (init_raw_breakpoint_without_location): Remove
163 reference to exec_pathname.
164 (struct exec_catchpoint): New type.
165 (dtor_catch_exec): New function.
166 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
167 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
168 (catch_exec_command_1): Adjust to use init_catchpoint.
169 (delete_breakpoint): Remove reference to exec_pathname.
171 2011-06-22 Pedro Alves <pedro@codesourcery.com>
173 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
174 (struct breakpoint): Delete field `syscalls_to_be_caught'.
175 * breakpoint.c (init_raw_breakpoint_without_location): Remove
176 reference to syscalls_to_be_caught.
177 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
179 (struct syscall_catchpoint): New type.
180 (dtor_catch_syscall): New function.
181 (insert_catch_syscall, remove_catch_syscall)
182 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
183 (print_recreate_catch_syscall): Adjust.
184 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
185 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
186 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
187 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
188 (masked_watchpoint_breakpoint_ops)
189 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
190 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
191 there is one. Remove references to syscalls_to_be_caught.
192 (catching_syscall_number): Adjust.
193 * ada-lang.c (catch_exception_breakpoint_ops)
194 (catch_exception_unhandled_breakpoint_ops)
195 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
197 2011-06-22 Pedro Alves <pedro@codesourcery.com>
199 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
201 * breakpoint.c (init_raw_breakpoint_without_location): Remove
202 reference to forked_inferior_pid.
203 (struct fork_catchpoint): New type.
204 (breakpoint_hit_catch_fork, print_it_catch_fork)
205 (print_one_catch_fork, breakpoint_hit_catch_vfork)
206 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
207 (create_fork_vfork_event_catchpoint): Adjust to use
210 2011-06-22 Pedro Alves <pedro@codesourcery.com>
212 * breakpoint.c (add_to_breakpoint_chain)
213 (init_raw_breakpoint_without_location): New functions, factored
215 (set_raw_breakpoint_without_location): ... this one.
216 (init_raw_breakpoint): New function, factored out from
217 set_raw_breakpoint and adjusted to use
218 init_raw_breakpoint_without_location.
219 (set_raw_breakpoint): Adjust.
220 (init_catchpoint): New function, factored out from
221 create_catchpoint_without_mention and adjusted to use
223 (create_catchpoint_without_mention): Adjust.
225 2011-06-22 Tom Tromey <tromey@redhat.com>
227 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
228 argument of 0 specially.
230 2011-06-22 Yao Qi <yao@codesourcery.com>
232 * infrun.c (handle_inferior_event): Remove write-only local variable
233 `sw_single_step_trap_p'.
235 2011-06-20 Tom Tromey <tromey@redhat.com>
237 * symtab.c (lookup_language_this): End loop if block is NULL.
239 2011-06-17 Tom Tromey <tromey@redhat.com>
241 * valops.c (value_of_this): Use lookup_language_this.
242 * symtab.h (lookup_language_this): Declare.
243 * symtab.c (lookup_language_this): New function.
244 (lookup_symbol_aux): Use lookup_language_this.
245 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
247 2011-06-17 Tom Tromey <tromey@redhat.com>
249 * value.h (value_of_this): Update.
250 (value_of_local): Remove.
251 * valops.c (value_of_this): Rename from value_of_local. Change
253 * p-exp.y (exp): Update.
254 (variable): Likewise.
255 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
257 2011-06-17 Tom Tromey <tromey@redhat.com>
259 * valops.c (value_of_local): Complain if NAME is NULL.
260 * std-operator.def (OP_OBJC_SELF): Remove.
261 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
262 * objc-exp.y (name_not_typename): Use OP_THIS.
263 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
265 <OP_OBJC_SELF>: Remove.
266 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
268 2011-06-16 Tristan Gingold <gingold@adacore.com>
270 * python/py-events.h (gdb_py_events): Make it extern.
271 * python/py-evtregistry.c (gdb_py_events): Declare.
273 2011-06-16 Hui Zhu <teawater@gmail.com>
275 * remote.c (remote_trace_set_readonly_regions): Add check for
276 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
279 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
281 * arm-linux-tdep.c: Include "auxv.h".
283 (ARM_LINUX_SIZEOF_VFP): Define.
284 (arm_linux_supply_vfp): New function.
285 (arm_linux_collect_vfp): Likewise.
286 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
287 (arm_linux_fpa_regset_sections): New variable.
288 (arm_linux_vfp_regset_sections): Likewise.
289 (arm_linux_core_read_description): New function.
290 (arm_linux_init_abi): Install arm_linux_core_read_description and
291 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
292 appropriate for the architecture.
293 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
294 (tdesc_arm_with_m): Declare.
295 (tdesc_arm_with_iwmmxt): Likewise.
296 (tdesc_arm_with_vfpv2): Likewise.
297 (tdesc_arm_with_vfpv3): Likewise.
298 (tdesc_arm_with_neon): Likewise.
299 * arm-linux-nat.c: Move features/*.c includes ...
300 * arm-tdep.c: ... here.
301 * arm-linux-nat.c (arm_linux_read_description): Move initializing
302 target description data structures ...
303 * arm-tdep.c (_initialize_arm_tdep): ... here.
304 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
305 HWCAP_VFPv3D16): Move definitions ...
306 * arm-linux-tdep.h: ... here.
308 2011-06-15 Hui Zhu <teawater@gmail.com>
310 * remote.c (remote_trace_set_readonly_regions): Add a check for
313 2011-06-14 Tom Tromey <tromey@redhat.com>
315 * coffread.c (coffread_objfile): Rename from current_objfile.
316 * dbxread.c (dbxread_objfile): Rename from current_objfile.
317 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
319 2011-06-14 Tom Tromey <tromey@redhat.com>
321 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
322 (class_symtab): Remove.
323 (jv_dynamics_progspace_key): New global.
324 (jv_per_objfile_free): Reset program space data. Update assert.
326 (get_dynamics_objfile): Use and set program space data.
327 (get_java_class_symtab): Use get_dynamics_objfile.
328 (add_class_symbol): Likewise.
329 (java_link_class_type): Likewise.
330 (java_object_type, jv_clear_object_type, set_java_object_type):
332 (get_java_object_type): Update. Don't cache result.
333 (is_object_type): Don't call set_java_object_type.
334 (_initialize_java_language): Don't set jv_type_objfile_data_key;
335 initialize jv_dynamics_progspace_key.
337 2011-06-14 Tom Tromey <tromey@redhat.com>
339 * symtab.h (current_objfile): Don't declare.
340 * objfiles.h (current_objfile): Don't declare.
341 * objfiles.c (current_objfile): Remove.
342 * mdebugread.c (current_objfile): New file-scope global.
343 * dbxread.c (current_objfile): New file-scope global.
344 * coffread.c (current_objfile): New file-scope global.
346 2011-06-13 Pedro Alves <pedro@codesourcery.com>
348 * top.h (line): Rename to ...
349 (saved_command_line): ... this.
350 (linesize): Rename to ...
351 (saved_command_line_size): ... this.
352 * top.c (line): Rename to ...
353 (saved_command_line): ... this.
354 (linesize): Rename to ...
355 (saved_command_line_size): ... this.
356 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
357 * event-top.c (command_line_handler): Adjust.
358 * main.c (captured_main): Adjust.
360 2011-06-12 Mark Kettenis <kettenis@gnu.org>
362 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
363 get_frame_func instead of get_frame_pc to determine the code
364 address used to construct the frame ID.
365 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
366 (i386_epilogue_frame_this_id): Likewise.
367 (i386_epilogue_frame_prev_register): New function.
368 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
369 (i386_stack_tramp_frame_sniffer): Fix coding style.
370 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
371 (i386_gdbarch_init): Fix comments.
373 2011-06-12 Mark Kettenis <kettenis@gnu.org>
375 * i386-tdep.c (i386_match_insn_block): Use length of the proper
376 instruction when walking back through the instruction stream.
378 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
380 * symtab.c (output_partial_symbol_filename): Exchange the filename and
381 fullname parameters order.
383 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
386 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
388 * psymtab.c (map_symbol_filenames_psymtab)
389 (map_partial_symbol_filenames): Likewise.
390 * psymtab.h: Include symfile.h.
391 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
392 * symfile.h (symbol_filename_ftype): New.
393 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
394 map_symbol_filenames, clarify more the naming in comment.
396 2011-06-07 Doug Evans <dje@google.com>
398 * cc-with-index.sh: Fix typos in comment.
399 Look for ../../gdb, for fullname.exp.
401 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
402 Pedro Alves <pedro@codesourcery.com>
404 * cli/cli-cmds.c (shell_escape): Use waitpid.
405 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
407 2011-06-07 Tristan Gingold <gingold@adacore.com>
409 * xcoffread.c (dwarf2_xcoff_names): New variable.
410 (aix_process_linenos): Add a guard.
411 (xcoff_symfile_finish): Free dwarf2.
412 (xcoff_initial_scan): Add dwarf2 support.
414 2011-06-06 Pedro Alves <pedro@codesourcery.com>
416 * infcall.c (run_inferior_call): Don't mask async. Instead force
417 a synchronous wait, if the target can async.
419 * target.h (struct target_ops): Delete to_async_mask.
420 (target_async_mask): Delete.
421 * target.c (update_current_target): Delete references to to_async_mask.
422 * linux-nat.c (linux_nat_async_mask_value): Delete.
423 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
424 to linux_nat_async_mask_value.
425 (linux_nat_async_mask): Delete.
426 (linux_nat_async, linux_nat_close): Remove references to
427 linux_nat_async_mask_value.
428 * record.c (record_async_mask_value): Delete.
429 (record_async): Remove references to record_async_mask_value.
430 (record_async_mask): Delete.
431 (record_can_async_p, record_is_async_p): Remove references to
432 record_async_mask_value.
433 (init_record_ops, init_record_core_ops): Remove references to
435 * remote.c (remote_async_mask_value): Delete.
436 (init_remote_ops): Remove reference to remote_async_mask.
437 (remote_can_async_p, remote_is_async_p): Remove references to
438 remote_async_mask_value.
439 (remote_async): Remove references to remote_async_mask_value.
440 (remote_async_mask): Delete.
442 * infrun.c (fetch_inferior_event): Don't claim registers changed
443 if the current thread is already not executing.
445 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
447 From Stephen Kitt <steve@sk2.org>
448 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
449 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
451 2011-06-03 Joel Brobecker <brobecker@adacore.com>
453 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
454 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
456 2011-06-03 Tom Tromey <tromey@redhat.com>
458 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
460 * python/py-exitedevent.c (create_exited_event_object): Change
461 type of 'exit_code'. Optionally add exit_code attribute.
462 (emit_exited_event): Change type of 'exit_code'.
463 * python/py-event.h (emit_exited_event): Update.
464 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
465 * infrun.c (handle_inferior_event): Set exit code fields on
467 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
469 * inferior.c (exit_inferior_1): Initialize new fields.
471 2011-06-03 Tom Tromey <tromey@redhat.com>
473 * dwarf2expr.c (get_signed_type): New function.
474 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
476 2011-06-02 Keith Seitz <keiths@redhat.com>
478 * objc-lang.c (find_methods): Increment objfile_csym earlier.
480 2011-06-02 Pedro Alves <pedro@codesourcery.com>
482 * top.h (simplified_command_loop): Delete declaration.
484 2011-06-01 Mike Frysinger <vapier@gentoo.org>
486 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
487 gdb_sysroot to the "len" variable. Append both to "arg_buf".
489 2011-06-01 Yao Qi <yao@codesourcery.com>
491 * objfiles.h (obj_section_addr): Update reference to objfile from
493 (obj_section_endaddr): Likewise.
495 2011-06-01 Daniel Jacobowitz <drow@false.org>
497 * MAINTAINERS: Update my email address and affiliation. Also
498 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
500 2010-05-31 Keith Seitz <keiths@redhat.com>
503 * linespec.c (get_search_block): New function.
504 (find_methods): Add FILE_SYMTATB parameter and use it and
505 get_search_block to pass an appropriate block to
506 lookup_symbol_in_namespace.
507 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
508 Check if *ARGPTR starts with a filename first.
509 If it does, call locate_first_half again to locate the next
510 "first half" of the linespec.
511 Pass FILE_SYMTATB to decode_objc and decode_compound.
512 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
513 (locate_first_half): Stop on the first colon seen.
514 (decode_compound): Add FILE_SYMTAB parameter.
515 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
516 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
517 get_search_block with lookup_symbol.
518 (find_method): Add FILE_SYMTAB parameter and pass it to
520 (decode_objc): Use get_search_block.
522 2010-05-31 Keith Seitz <keiths@redhat.com>
525 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
526 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
527 and CP_ANONYMOUS_NAMESPACE_LEN.
528 (cp_is_anonymous): Likewise.
529 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
530 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
531 * dwarf2read.c (namespace_name): Likewise.
532 (fixup_partial_die): Likewise.
533 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
534 seen in the input, keep it.
536 2011-05-30 Pedro Alves <pedro@codesourcery.com>
538 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
539 * inf-loop.h (inferior_event_handler_wrapper): Delete.
540 * inf-loop.c (inferior_event_handler_wrapper): Delete.
541 (inferior_event_handler): Don't handle INF_QUIT_REQ.
542 * remote.c (_initialize_remote): Register
543 async_remote_interrupt_twice directly as
544 sigint_remote_twice_token event.
546 2011-05-30 Pedro Alves <pedro@codesourcery.com>
548 * target.h (enum inferior_event_type): Delete INF_ERROR.
549 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
551 2011-05-30 Pedro Alves <pedro@codesourcery.com>
553 * interps.c (interp_set): Don't cancel continuations.
555 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
557 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
559 2011-05-30 Pedro Alves <pedro@codesourcery.com>
561 * continuations.h (continuation_ftype): Add `err' parameter.
563 (do_all_continuations, do_all_continuations_thread)
564 (do_all_intermediate_continuations)
565 (do_all_intermediate_continuations_thread)
566 (do_all_inferior_continuations): Add `err' parameter.
567 * continuations.c (do_my_continuations_1, do_my_continuations)
568 (do_all_inferior_continuations, do_all_continuations_ptid)
569 (do_all_continuations_thread_callback)
570 (do_all_continuations_thread, do_all_continuations)
571 (do_all_intermediate_continuations_thread_callback)
572 (do_all_intermediate_continuations_thread)
573 (do_all_intermediate_continuations): Add `err' parameter, and pass
574 it down all the way to the continuations proper.
575 * inf-loop.c (inferior_event_handler): If fetching an inferior
576 event throws an error, don't pop the target, and still call the
577 continuations, but with `err' set. Adjust all other continuation
579 * breakpoint.c (until_break_command_continuation): Add `err'
581 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
582 issue another step if `err' is set.
583 (struct until_next_continuation_args): New.
584 (until_next_continuation): Add `err' parameter. Adjust.
585 (until_next_command): Adjust.
586 (struct finish_command_continuation_args): Add `thread' field.
587 (finish_command_continuation): Add `err' parameter. Handle it.
588 (finish_forward): Adjust.
589 (attach_command_continuation): Add `err' parameter. Handle it.
590 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
591 cancel the continuations.
592 * interps.c (interp_set): Adjust to cancel the continuations.
593 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
594 continuations rather than discarding.
595 (free_thread): Don't clear thread inferior resources here.
596 (delete_thread_1): Do it here instead. And do it before removing
597 the thread from the threads list. Tag the thread as exited before
598 clearing thread inferior resources.
600 2011-05-30 Joel Brobecker <brobecker@adacore.com>
602 * infcall.c (call_function_by_hand): Rephrase error message.
604 2011-05-27 Pedro Alves <pedro@codesourcery.com>
606 * defs.h (struct thread_info, struct inferior): Delete forward
608 * breakpoint.h (struct thread_info): New forward declaration.
609 * observer.sh (struct inferior): New forward declaration.
610 * python/python-internal.h (struct inferior): New forward
613 2011-05-27 Pedro Alves <pedro@codesourcery.com>
615 * defs.h (struct continuation, continuation_ftype)
616 (continuation_free_arg_ftype, add_continuation)
617 (do_all_continuations, do_all_continuations_thread)
618 (discard_all_continuations, discard_all_continuations_thread)
619 (add_intermediate_continuation, do_all_intermediate_continuations)
620 (do_all_intermediate_continuations_thread)
621 (discard_all_intermediate_continuations)
622 (discard_all_intermediate_continuations_thread)
623 (add_inferior_continuation, do_all_inferior_continuations)
624 (discard_all_inferior_continuations): Move to ...
625 * continuations.h: ... this new file.
626 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
627 infcmd.c, inferior.c, infrun.c, interps.c: Include
630 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
631 Doug Evans <dje@google.com>
633 Fix PR 10970, PR 12702.
634 * linux-nat.c (linux_lwp_is_zombie): New function.
635 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
636 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
638 2011-05-27 Pedro Alves <pedro@codesourcery.com>
640 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
642 (add_continuation, add_intermediate_continuation)
643 (add_inferior_continuation): Use them.
644 * continuations.c (struct continuation): Use them.
645 (make_continuation_ftype): Delete.
646 (make_continuation, add_inferior_continuation, add_continuation)
647 (add_intermediate_continuation): Use continuation_ftype and
648 continuation_free_arg_ftype. Rename parameters to shorter names.
650 2011-05-27 Pedro Alves <pedro@codesourcery.com>
652 * continuations.c (make_continuation): Make it return void.
653 (do_my_continuations): Rename to ...
654 (do_my_continuations_1): ... this. Remove old_chain parameter and
656 (do_my_continuations): New.
657 (discard_my_continuations): Rename to ...
658 (discard_my_continuations_1): ... this. Remove old_chain
659 parameter and adjust.
660 (discard_my_continuations): New.
661 (add_inferior_continuation): Simplify.
662 (do_all_inferior_continuations): Reimplement on top
664 (discard_all_inferior_continuations): Simplify.
665 (add_continuation): Simplify.
666 (do_all_continuations_ptid): Simplify.
667 (discard_all_continuations_thread_callback): Simplify.
668 (add_intermediate_continuation): Simplify.
669 (discard_all_intermediate_continuations_thread_callback):
672 2011-05-27 Pedro Alves <pedro@codesourcery.com>
674 * utils.c (struct continuation, add_continuation)
675 (add_inferior_continuation)
676 (do_all_inferior_continuations, discard_all_inferior_continuations)
677 (restore_thread_cleanup, do_all_continuations_ptid)
678 (do_all_continuations_thread_callback)
679 (do_all_continuations_thread, do_all_continuations)
680 (discard_all_continuations_thread_callback)
681 (discard_all_continuations_thread, discard_all_continuations)
682 (add_intermediate_continuation)
683 (do_all_intermediate_continuations_thread_callback)
684 (do_all_intermediate_continuations_thread)
685 (do_all_intermediate_continuations)
686 (discard_all_intermediate_continuations_thread_callback)
687 (discard_all_intermediate_continuations_thread)
688 (discard_all_intermediate_continuations): Move to ...
689 * continuations.c: ... this new file, and adjust to no longer
690 implement continuations on top of cleanups.
691 * Makefile.in (SFILES): Add continuations.c.
692 (COMMON_OBS): Add continuations.o.
694 2011-05-26 Pedro Alves <pedro@codesourcery.com>
696 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
697 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
698 Internal error on invalid values.
699 * reverse.c: Don't handle EXEC_ERROR.
700 * mi/mi-main.c: Don't handle EXEC_ERROR.
702 2011-05-26 Pedro Alves <pedro@codesourcery.com>
704 * record.c: Include event-loop.h, inf-loop.h.
705 (record_beneath_to_async): New global.
706 (tmp_to_async): New global.
707 (record_async_inferior_event_token): New global.
708 (record_open_1): Don't error out if async is enabled.
709 (record_open): Handle to_async. Create an async event source in
711 (record_close): Delete the async event source.
712 (record_resumed): New global.
713 (record_execution_dir): New global.
714 (record_resume, record_core_resume): Set them. Register the
715 target on the event loop.
716 (record_wait): Rename to ...
717 (record_wait_1): ... this. Add more debug output. Handle
718 TARGET_WNOHANG, and the target beneath returning
719 TARGET_WAITKIND_IGNORE.
720 (record_wait): Reimplement on top of record_wait_1.
721 (record_async_mask_value): New global.
722 (record_async, record_async_mask, record_can_async_p)
723 (record_is_async_p, record_execution_direction): New functions.
724 (init_record_ops, init_record_core_ops): Install new methods.
725 * infrun.c (fetch_inferior_event): Temporarily switch the global
726 execution direction to the direction the target was going.
727 (execution_direction): Change type to int.
728 * target.c (default_execution_direction): New function.
729 (update_current_target): Inherit and de_fault
730 to_execution_direction.
731 * target.h (struct target_ops) <to_execution_direction>: New
733 (target_execution_direction): New macro.
734 * inferior.h (execution_direction): Change type to int.
736 2011-05-26 Pedro Alves <pedro@codesourcery.com>
738 * infcall.c (call_function_by_hand): Don't allow calling functions
739 in reverse execution mode.
741 2011-05-26 Pedro Alves <pedro@codesourcery.com>
743 * infcmd.c (finish_command): Allow async finish in reverse.
745 2011-05-26 Yao Qi <yao@codesourcery.com>
747 * gdb_thread_db.h: Delete. Move to ...
748 * common/gdb_thread_db.h: ... here.
750 2011-05-26 Pedro Alves <pedro@codesourcery.com>
752 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
753 function's entry point instead of a manually managed momentary
754 breakpoint, and only ever issue one proceed call.
755 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
756 doing a reverse-finish, switch to stepi mode, to do another step.
757 (insert_step_resume_breakpoint_at_sal): Make public.
758 (normal_stop): No need to save function value return registers if
760 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
762 2011-05-26 Pedro Alves <pedro@codesourcery.com>
764 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
765 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
766 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
768 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
769 step-resume breakpoints.
770 (print_it_typical): Handle bp_hp_step_resume.
771 (bpstat_what): Ditto.
772 (bptype_string): Ditto.
773 (print_one_breakpoint_location): Ditto.
774 (allocate_bp_location): Ditto.
776 (breakpoint_re_set_one): Ditto.
777 * infrun.c (handle_inferior_event): Adjust. Split
778 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
779 BPSTAT_WHAT_HP_STEP_RESUME.
780 (insert_step_resume_breakpoint_at_sal): Rename to ...
781 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
782 parameter. Handle it.
783 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
784 insert_step_resume_breakpoint_at_sal_1.
785 (insert_step_resume_breakpoint_at_frame): Rename to ...
786 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
787 set a high-priority step-resume breakpoint.
788 (insert_step_resume_breakpoint_at_frame): Adjust comment.
789 (insert_step_resume_breakpoint_at_caller): Ditto.
791 2011-05-26 Pedro Alves <pedro@codesourcery.com>
793 * breakpoint.c (iterate_over_related_breakpoints): New.
794 (do_map_delete_breakpoint): New.
795 (delete_command): Pass do_map_delete_breakpoint to
796 map_breakpoint_numbers.
797 (do_disable_breakpoint): New.
798 (do_map_disable_breakpoint): Iterate over the breakpoint's related
800 (do_enable_breakpoint): Rename to ...
801 (enable_breakpoint_disp): ... this.
802 (enable_breakpoint): Adjust.
803 (do_enable_breakpoint): New.
804 (enable_once_breakpoint): Delete.
805 (do_map_enable_breakpoint): New.
806 (do_map_enable_once_breakpoint): New.
807 (enable_once_command, enable_delete_command)
808 (delete_trace_command): Iterate over the breakpoint's related
811 2011-05-26 Pedro Alves <pedro@codesourcery.com>
813 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
814 for ALPHA_ZERO_REGNUM.
815 (alpha_supply_int_regs): Explicitly supply zero as the value for
816 ALPHA_ZERO_REGNUM in the register cache.
817 * alpha-nat.c (fetch_osf_core_registers): Ditto.
819 2011-05-26 Yao Qi <yao@codesourcery.com>
821 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
823 2011-05-26 Tristan Gingold <gingold@adacore.com>
825 * symfile.h (struct dwarf2_section_names): New type.
826 (struct dwarf2_debug_sections): New type.
827 (dwarf2_has_info): Add parameter.
828 * dwarf2read.c (dwarf2_elf_names): New variable.
829 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
830 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
831 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
832 (dwarf2_has_info): Add names parameter. Pass names
833 to dwarf2_locate_sections.
834 (section_is_p): Rewrite using the names parameter.
835 (dwarf2_locate_sections): Use section names from the names parameter.
836 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
837 * elfread.c (read_psyms): Ditto.
838 * machoread.c (macho_symfile_read): Ditto.
840 2011-05-25 Andreas Schwab <schwab@redhat.com>
843 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
845 2011-05-24 Keith Seitz <keiths@redhat.com>
848 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
849 (decode_compound): Unconditionally call keep_name_info.
851 2011-05-24 Pedro Alves <pedro@codesourcery.com>
853 * breakpoint.c (watchpoint_check): If the watchpoint went out of
854 scope, clear its command list.
855 (map_breakpoint_numbers): Don't walk the related breakpoints list
858 2011-05-24 Tom Tromey <tromey@redhat.com>
860 * MAINTAINERS: Move Jim Blandy to past maintainers.
862 2011-05-24 Tristan Gingold <gingold@adacore.com>
864 * symfile.h (enum dwarf2_section_enum): New type.
865 (dwarf2_get_section_info): New prototype.
866 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
867 section_name by sect. Use a switch to select the info.
868 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
869 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
871 2011-05-24 Pedro Alves <pedro@codesourcery.com>
873 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
874 shared library event breakpoint if there's no execution.
876 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
878 * breakpont.c (remove_hw_watchpoints): Remove unused function.
879 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
881 2011-05-23 Tom Tromey <tromey@redhat.com>
883 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
886 2011-05-23 Doug Evans <dje@google.com>
888 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
889 entry for RuntimeError to doc string.
891 2011-05-23 Jerome Guitton <guitton@adacore.com>
893 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
894 sequence for probing loops.
896 2011-05-23 Pedro Alves <pedro@codesourcery.com>
898 * infrun.c (user_visible_resume_ptid): Fix typos in describing
901 2011-05-21 Mark Kettenis <kettenis@gnu.org>
903 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
904 zero as the value for %g0 in the register cache.
905 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
906 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
908 2011-05-20 Pedro Alves <pedro@codesourcery.com>
910 * infrun.c (proceed): Set previous_inferior_ptid here.
911 (init_wait_for_inferior): Initialize previous_inferior_ptid from
912 inferior_ptid, not null_ptid.
913 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
914 (fetch_inferior_event): Nor here.
916 2011-05-20 Pedro Alves <pedro@codesourcery.com>
918 * inf-loop.c (inferior_event_handler): Only output a message if
921 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
923 * MAINTAINERS: Update my e-mail address.
925 2011-05-20 Pedro Alves <pedro@codesourcery.com>
927 * infrun.c (proceed): Switch the inferior event loop to
928 INF_EXEC_COMPLETE if the target refused to resume from a
931 2011-05-20 Pedro Alves <pedro@codesourcery.com>
933 * infcmd.c: Include "inf-loop.h".
934 (step_once): When stepping into an inline subroutine, pretend the
935 target has run. If the target can async, switch the inferior
936 event loop to INF_EXEC_COMPLETE.
937 * inferior.h (user_visible_resume_ptid): Declare.
938 * infrun.c (user_visible_resume_ptid): New function, factored out
941 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
942 that the current thread is running. Merge async and sync
945 2011-05-20 Pedro Alves <pedro@codesourcery.com>
947 * infcmd.c (step_1): Simplify synchronous case.
949 2011-05-20 Pedro Alves <pedro@codesourcery.com>
951 * tracepoint.c: Include exceptions.h.
952 (TFILE_PID): Move higher in file.
953 (tfile_open): Delay pushing the tfile target until we're assured
954 the tfile header is present in the file. Wrap reading the initial
955 newline-terminated lines in TRY_CATCH. Pop the target if the
956 initial setup failed. Add the tfile's thread immediately
957 aftwards, before any non-essential setup. Don't skip
958 post_create_inferior if there are no traceframes present in the
960 (tfile_close): Remove redundant check for null before xfree call.
961 (tfile_thread_alive): New function.
962 (init_tfile_ops): Register it as to_thread_alive callback.
964 2011-05-20 Pedro Alves <pedro@codesourcery.com>
966 * tracepoint.c (tfile_open): Delete #if 0'd code.
968 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
970 Fix -readnow for -gdwarf-4 unused type units.
971 * dwarf2read.c (struct signatured_type): Remove the field offset.
972 (create_signatured_type_table_from_index): Remove its initialization.
973 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
974 instead. Add a complaint call.
975 (process_psymtab_comp_unit): Change assignment to gdb_assert.
976 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
977 (lookup_signatured_type_at_offset, read_signatured_type)
978 (write_one_signatured_type): Update the field for per_cu.
980 2011-05-19 Tom Tromey <tromey@redhat.com>
982 * python/py-inferior.c (python_inferior_exit): Use
984 (python_on_resume): Likewise.
986 2011-05-19 Matt Rice <ratmice@gmail.com>
988 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
990 2011-05-19 Hui Zhu <teawater@gmail.com>
992 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
994 2011-05-19 Hui Zhu <teawater@gmail.com>
996 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
998 2011-05-18 Tom Tromey <tromey@redhat.com>
1000 * dwarf2read.c (dwarf2_add_field): Constify.
1001 * value.c (value_static_field): Constify.
1002 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1004 * ax-gdb.c (gen_static_field): Constify
1006 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1008 * linux-nat.c (kill_callback): Use SIGKILL first.
1010 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1012 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1014 2011-05-18 Tom Tromey <tromey@redhat.com>
1016 * value.c (value_fn_field): Constify.
1017 * symtab.c (gdb_mangle_name): Constify.
1018 * stabsread.c (update_method_name_from_physname): Make 'physname'
1020 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1021 const. Use explicit fputc_filtered loop.
1022 (pascal_type_print_base): Constify.
1023 * p-lang.h (pascal_type_print_method_args): Update.
1024 * linespec.c (add_matching_methods): Constify.
1025 (add_constructors): Likewise.
1026 * jv-typeprint.c (java_type_print_base): Constify.
1027 * gdbtypes.h (struct cplus_struct_type)
1028 <fn_fieldlist.fn_field.physname>: Now const.
1029 * dwarf2read.c (compute_delayed_physnames): Constify.
1030 (dwarf2_add_member_fn): Likewise.
1031 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1033 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1035 * infrun.c (resume): Mention which is the current thread, and its
1036 current PC in debug output.
1037 (prepare_to_proceed): Mention the thread switching in debug
1040 2011-05-18 Tom Tromey <tromey@redhat.com>
1042 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1043 path check. Use xmalloc and cleanups.
1044 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1046 2011-05-17 Tom Tromey <tromey@redhat.com>
1048 * cp-valprint.c (cp_print_value_fields): Catch errors from
1051 2011-05-17 Tom Tromey <tromey@redhat.com>
1053 * dwarf2read.c (dwarf2_get_die_type): Call
1054 get_die_type_at_offset.
1055 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1056 get_base_type function.
1058 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1060 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1063 2011-05-16 Doug Evans <dje@google.com>
1065 * python/py-auto-load.c (source_section_scripts): Mention objfile
1068 2011-05-15 Doug Evans <dje@google.com>
1070 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1071 (try_thread_db_load_from_pdir): Call it. If unable to find
1072 libthread_db in directory of libpthread, see if we're looking at
1073 the separate-debug-info copy.
1075 * python/py-autoload.c (print_script): Print "Missing" instead of
1076 "No" for missing scripts.
1077 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1079 2011-05-13 Doug Evans <dje@google.com>
1081 * ui-file.c (stdio_file_write_async_safe): Add comment.
1083 2011-05-14 Hui Zhu <teawater@gmail.com>
1085 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1087 2011-05-13 Doug Evans <dje@google.com>
1089 Support $pdir and $sdir in libthread-db-search-path.
1090 * NEWS: Mention $sdir,$pdir.
1091 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1092 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1093 (try_thread_db_load_from_sdir): New function.
1094 (try_thread_db_load_from_dir): New function.
1095 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1096 system directories if search of libthread-db-search-path fails,
1097 that is now done via $sdir.
1098 (has_libpthread): New function.
1099 (thread_db_load): Remove search for libthread_db in directory of
1100 libpthread, that is now done via $pdir.
1102 * NEWS: Mention "info auto-load-scripts".
1103 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1104 script_not_found_warning_printed.
1105 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1106 all callers updated. Initialize script_not_found_warning_printed.
1107 (get_auto_load_pspace_data_for_loading): New function.
1108 (maybe_add_script): New function.
1109 (source_section_scripts): Simplify. Only print one warning regardless
1110 of the number of auto-load scripts not found.
1111 (clear_section_scripts): Clear script_not_found_warning_printed.
1112 (auto_load_objfile_script): Record script in hash table.
1113 (count_matching_scripts): New function.
1114 (maybe_print_script): Renamed from maybe_print_section_script, all
1115 callers updated. Rewrite to use ui_out_*.
1116 (info_auto_load_scripts): Renamed from
1117 maintenance_print_section_scripts, all callers updated.
1118 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1119 renamed as "info auto-load-scripts".
1121 2011-05-13 Tom Tromey <tromey@redhat.com>
1123 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1124 (read_sleb128): Likewise.
1126 2011-05-13 Tom Tromey <tromey@redhat.com>
1128 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1131 2011-05-13 Doug Evans <dje@google.com>
1133 * linux-nat.c (debug_linux_nat_async): Delete.
1134 Replace all references to use debug_linux_nat instead.
1135 (show_debug_linux_nat_async): Delete.
1136 (sigchld_handler): Call ui_file_write_async_safe instead of
1138 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1139 * ui-file.c (struct ui_file): New member to_write_async_safe.
1140 (null_file_write_async_safe): New function.
1141 (ui_file_write_async_safe): New function.
1142 (set_ui_file_write_async_safe): New function.
1143 (ui_file_new): Initialize to_write_async_safe.
1144 (stdio_file_write_async_safe): New function.
1145 (struct stdio_file): New member fd.
1146 (stdio_file_new): Initialize to_write_async_safe, fd.
1147 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1149 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1150 (set_ui_file_write_async_safe): Declare.
1151 (ui_file_write_async_safe): Declare.
1153 2011-05-13 Tom Tromey <tromey@redhat.com>
1155 * utils.c (do_value_free): New function.
1156 (make_cleanup_value_free): Likewise.
1157 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1159 (dwarf2_loc_desc_needs_frame): Call
1160 make_cleanup_value_free_to_mark.
1161 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1162 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1164 (new_dwarf_expr_context): Don't call value_mark.
1165 * dwarf2-frame.c (execute_stack_op): Call
1166 make_cleanup_value_free_to_mark.
1167 * defs.h (make_cleanup_value_free): Declare.
1169 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1171 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1172 prepare_execute_command.
1173 * top.c (prepare_execute_command): Return cleanup.
1174 (execute_command): Use cleanup from prepare_execute_command.
1175 * top.h (prepare_execute_command): Change prototype to return
1177 * defs.h (struct value): Add opaque declaration.
1178 (make_cleanup_value_free_to_mark): Add prototype.
1179 * utils.c (do_value_free_to_mark): New function.
1180 (make_cleanup_value_free_to_mark): Likewise.
1182 2011-05-12 Tom Tromey <tromey@redhat.com>
1184 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1185 cast left-hand-side to unsigned.
1187 2011-05-12 Tom Tromey <tromey@redhat.com>
1190 * value.h (value_from_contents): Declare.
1191 * value.c (value_from_contents): New function.
1192 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1193 (dwarf2_get_die_type): New function.
1194 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1195 (allocate_piece_closure): Acquire reference to values.
1196 (read_pieced_value): Update for value-based expressions.
1197 (write_pieced_value): Likewise.
1198 (free_pieced_value_closure): Call value_free as needed.
1199 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1200 Update for value-based expressions.
1201 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1202 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1203 <get_base_type>: New field.
1204 (struct dwarf_expr_piece) <v.value>: Change type.
1205 <v.regno>: New field.
1206 (struct dwarf_expr_context) <mark>: New field.
1207 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1208 (dwarf_expr_pop, dwarf_expr_push): Remove.
1209 (dwarf_expr_push_address): Declare.
1210 * dwarf2expr.c (dwarf_arch_cookie): New global.
1211 (struct dwarf_gdbarch_types): New.
1212 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1214 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1216 (dwarf_expr_push_address): New function.
1217 (dwarf_expr_pop): Now static.
1218 (dwarf_expr_fetch): Change return type.
1219 (dwarf_require_integral): New function.
1220 (dwarf_expr_fetch): Simplify.
1221 (add_piece): Update.
1222 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1224 (execute_stack_op) <sign_ext>: Remove.
1225 Use values for DWARF stack.
1226 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1227 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1229 (_initialize_dwarf2expr): New function.
1230 (add_piece): Update.
1231 (new_dwarf_expr_context): Set new field.
1232 (free_dwarf_expr_context): Call value_free_to_mark.
1233 * dwarf2-frame.c (no_base_type): New function.
1234 (execute_stack_op): Set get_base_type field. Update.
1236 2011-05-12 Tom Tromey <tromey@redhat.com>
1238 * dwarf2read.c (read_common_block): Fix formatting.
1240 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1242 * breakpoint.c (disable_breakpoint): Disable all locations
1243 associated with a tracepoint on target if a trace experiment is
1245 (disable_command): Disable a specific tracepoint location on target if
1246 a trace experiment is running.
1247 (do_enable_breakpoint): Enable all locations associated with a
1248 tracepoint on target if a trace experiment is running.
1249 (enable_command) Enable a specific tracepoint location on target if a
1250 trace experiment is running.
1251 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1252 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1253 to_disable_tracepoint.
1254 * target.h: Add declaration of struct bp_location.
1255 (struct target_ops): Add new functions
1256 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1257 to_disable_tracepoint to target operations.
1258 (target_supports_enable_disable_tracepoint): New macro.
1259 (target_enable_tracepoint): New macro.
1260 (target_disable_tracepoint): New macro.
1261 * remote.c (struct remote_state): Add new field.
1262 (remote_enable_disable_tracepoint_feature): New.
1263 (remote_protocol_features): Add new entry.
1264 (remote_supports_enable_disable_tracepoint): New.
1265 (remote_enable_tracepoint): New.
1266 (remote_disable_tracepoint): New.
1267 (init_remote_ops): Add remote_enable_tracepoint,
1268 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1269 to remote operations.
1270 * tracepoint.c (start_tracing): Allow tracing to start without any
1271 tracepoints enabled with just a warning if they can be re-enabled
1273 * NEWS: Add news item for the new behaviour of the enable and disable
1274 GDB commands when applied to tracepoints.
1275 Add news items for the new remote packets QTEnable and QTDisable.
1277 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1279 * config.in: Regenerate.
1280 * configure: Regenerate.
1281 * configure.ac <--with-system-readline> (for readline_echoing_p):
1283 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1284 (tui_old_rl_echoing_p): ... here.
1285 (tui_setup_io): Rename extern declaration readline_echoing_p to
1286 _rl_echoing_p. Adjust assignments for the both renames.
1288 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1290 * symtab.c (lookup_symtab): Run cleanup before returning.
1292 2011-05-11 Tom Tromey <tromey@redhat.com>
1294 * dwarf2read.c (handle_data_member_location): New function.
1295 (dwarf2_add_field): Use it.
1296 (read_common_block): Likewise.
1298 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1300 Make addrs->SECTINDEX always defined.
1301 * symfile.c (relative_addr_info_to_section_offsets): Check for
1302 SECTINDEX -1, not for zero ADDR.
1303 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1304 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1305 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1308 2011-05-10 Doug Evans <dje@google.com>
1310 * linux-thread-db.c: Whitespace cleanup.
1311 (try_thread_db_load_1): Fix comment.
1313 * linux-thread-db.c (set_libthread_db_search_path): New function.
1314 (_initialize_thread_db): Add setter for libthread-db-search-path.
1316 2011-05-09 Doug Evans <dje@google.com>
1318 * NEWS: Mention --with-iconv-bin.
1319 * configure.ac: New option --with-iconv-bin.
1320 * configure: Regenerate.
1321 * config.in: Regenerate.
1322 * defs.h (relocate_gdb_directory): Declare.
1323 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1324 removed progname parameter, and exported. All callers updated.
1325 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1327 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1328 adding missing call to restore_child_signals_mask.
1330 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1332 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1334 * infrun.c (proceed, start_remote): Adjust.
1335 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1336 and adjust to not handle it.
1337 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1338 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1339 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1340 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1341 * windows-nat.c (do_initial_windows_stuff): Adjust.
1342 * infcmd.c (attach_command): Adjust.
1343 (notice_new_inferior): Adjust.
1345 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1347 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1348 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1349 * spu-tdep.c (op_selb): Use correct value.
1351 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1353 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1354 "parent" parameter to symbol_file_add_from_bfd call.
1356 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1357 Thiago Jung Bauermann <bauerman@br.ibm.com>
1359 Implement support for PowerPC BookE masked watchpoints.
1360 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1362 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1363 method. Initialize to NULL in all existing breakpoint_ops instances.
1364 (struct breakpoint) <hw_wp_mask>: New field.
1365 * breakpoint.c (is_masked_watchpoint): Add prototype.
1366 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1367 breakpoint's breakpoint_ops.works_in_software_mode if available.
1368 (watchpoints_triggered): Handle the case of a hardware masked
1370 (watchpoint_check): Likewise.
1371 (works_in_software_mode_watchpoint): New function.
1372 (insert_masked_watchpoint, remove_masked_watchpoint)
1373 (resources_needed_masked_watchpoint)
1374 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1375 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1376 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1378 (masked_watchpoint_breakpoint_ops): New structure.
1379 (watch_command_1): Check for the existence of the `mask' parameter.
1380 Set b->ops according to the type of hardware watchpoint being created.
1381 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1382 (ppc_linux_remove_mask_watchpoint)
1383 (ppc_linux_masked_watch_num_registers): New functions.
1384 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1385 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1386 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1387 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1388 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1389 (target_masked_watch_num_registers): New functions.
1390 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1391 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1393 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1394 (target_masked_watch_num_registers): Add prototypes.
1396 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1399 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1400 (producer_is_gcc_ge_4_0): New function.
1401 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1402 symtab->language code.
1403 (var_decode_location): Set cu->has_loclist.
1404 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1405 skip. Intialize force_skip from locations_valid. Move the prologue
1406 skipping code into two passes.
1407 * symtab.h (struct symtab): Make the primary field a bitfield. New
1408 field locations_valid.
1410 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1412 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1413 (classify_inner_name): Call cp_lookup_nested_type with
1415 * cp-namespace.c (cp_lookup_nested_type): New variable
1416 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1417 type_name_no_tag_or_error with saved_parent_type.
1418 * dwarf2read.c (load_partial_dies): Read in any children of
1419 DW_TAG_typedef with complaint in such case.
1420 * gdbtypes.c (type_name_no_tag_or_error): New function.
1421 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1422 * valops.c (destructor_name_p): New comment for parameter type. Remove
1423 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1424 * value.h (destructor_name_p): Remove type const.
1426 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1428 * symtab.c (compare_symbol_name): New function.
1429 (completion_list_add_name, expand_partial_symbol_name): Call it,
1430 remove the variable ncmp.
1431 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1434 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1436 Demote to sw watchpoint only in update_watchpoint.
1437 * breakpoint.c (update_watchpoint): Change between software and
1438 hardware watchpoint for all kinds of watchpoints, not just
1439 read/write ones. Determine b->exact value here instead of
1440 in watch_command_1. Error out if there are not enough resources
1441 for a read or access hardware watchpoint.
1442 (watch_command_1): Remove logic of checking whether there are
1443 enough resources available, since update_watchpoint will do that
1444 work now. Don't set b->exact here. Catch exceptions thrown by
1445 update_watchpoint and delete the watchpoint.
1446 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1447 Use target_exact_watchpoints instead.
1448 (delete_breakpoint): Notify observers only if deleted watchpoint
1449 has a breakpoint number assigned to it.
1451 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1453 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1455 2011-05-05 Jerome Guitton <guitton@adacore.com>
1457 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1459 (i386_stack_tramp_frame_unwind): New static global.
1460 (i386_match_pattern): New function, extracted from i386_match_insn.
1461 (i386_match_insn): Use i386_match_pattern.
1462 (i386_match_insn_block): New function.
1463 (i386_tramp_chain_in_reg_insns)
1464 (i386_tramp_chain_on_stack_insns): New static variables.
1465 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1468 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1470 * configure.host (xscale*): Don't handle target.
1471 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1474 2011-05-04 Yao Qi <yao@codesourcery.com>
1476 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1478 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1481 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1482 | * elfread.c (elf_symtab_read): Stop memory leak.
1484 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1486 * nto-tdep.c (nto_target): Replace deprecated call to
1487 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1489 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1491 Fix false GCC warning.
1492 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1494 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1496 * breakpoint.c (update_watchpoint): Move code to change
1497 the enable state of breakpoint from here ...
1498 (do_enable_breakpoint): ... to here.
1500 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1502 * valprint.c (val_print_array_elements): Fixed poor performance
1503 of printing very large arrays with repeat_count_threshold set
1504 to unlimited. New comment.
1506 2011-04-29 Tom Tromey <tromey@redhat.com>
1508 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1509 (mi_parse): Likewise.
1510 * breakpoint.c (break_range_command): Use sizeof char*, not
1512 (create_breakpoint): Likewise.
1513 (parse_breakpoint_sals): Likewise.
1515 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1517 * linux-nat.c (linux_child_remove_fork_catchpoint)
1518 (linux_child_remove_vfork_catchpoint)
1519 (linux_child_remove_exec_catchpoint): New functions.
1520 (linux_target_install_ops): Install them.
1522 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1526 * varobj.c (install_default_visualizer): Do not install a
1527 visualizer if the varobj is CPLUS_FAKE_CHILD.
1528 (construct_visualizer): Likewise.
1530 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1532 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1533 case insensitive comparison.
1535 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1537 * infrun.c (proceed): Revert previous change.
1538 (resume): Instead, handle the case of signal delivery while stepping
1539 off a breakpoint location here, and only if software single-stepping
1540 is used. Handle nested signals.
1542 2011-04-28 Yao Qi <yao@codesourcery.com>
1544 * arm-tdep.c (copy_unmodified): Rename to ...
1545 (arm_copy_unmodified): .. this. New.
1546 (copy_preload): Move common part to ...
1547 (install_preload): .. this. New.
1548 (arm_copy_preload): New.
1549 (copy_preload_reg): Move common part to ...
1550 (install_preload_reg): ... this. New.
1551 (arm_copy_preload_reg): New.
1552 (copy_b_bl_blx): Move common part to ...
1553 (install_b_bl_blx): .. this. New.
1554 (arm_copy_b_bl_blx): New.
1555 (copy_bx_blx_reg): Move common part to ...
1556 (install_bx_blx_reg): ... this. New.
1557 (arm_copy_bx_blx_reg): New.
1558 (copy_alu_reg): Move common part to ...
1559 (install_alu_reg): ... this. New.
1560 (arm_copy_alu_reg): New.
1561 (copy_alu_shifted_reg): Move common part to ...
1562 (install_alu_shifted_reg): ... this. New.
1563 (copy_ldr_str_ldrb_strb): Move common part to ...
1564 (install_ldr_str_ldrb_strb): ... this. New.
1565 (arm_copy_ldr_str_ldrb_strb): New.
1566 (copy_copro_load_store): Move some common part to ...
1567 (install_copy_copro_load_store): ... this. New.
1568 (arm_copy_copro_load_store): New.
1570 (arm_copy_svc): Renamed from copy_svc.
1571 (copy_undef): Delete.
1572 (arm_copy_undef): Renamed from copy_undef.
1573 (decode_ext_reg_ld_st): Delete.
1574 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1575 (decode_svc_copro): Delete.
1576 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1577 (copy_copro_load_store, copy_alu_imm): update callers.
1578 (copy_extra_ld_st, copy_block_xfer): Likewise.
1579 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1580 (decode_miscellaneous, decode_dp_misc): Likewise.
1581 (decode_ld_st_word_ubyte, decode_media): Likewise.
1582 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1583 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1584 (decode_unconditional, decode_miscellaneous): Likewise.
1585 (decode_media, decode_b_bl_ldmstm): Likewise.
1586 (arm_process_displaced_insn): Likewise..
1587 (decode_misc_memhint_neon): Delete.
1588 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1589 (decode_miscellaneous): Delete.
1590 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1591 (decode_dp_misc): Delete.
1592 (arm_decode_dp_misc): Renamed from decode_dp_misc.
1593 (decode_ld_st_word_ubyte): Delete.
1594 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1595 (decode_media): Delete.
1596 (arm_decode_media): Renamed from decode_media.
1597 (decode_b_bl_ldmstm): Delete.
1598 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1599 (decode_ext_reg_ld_st): Delete.
1600 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1601 (decode_unconditional): Delete.
1602 (arm_decode_unconditional): Renamed from decode_unconditional.
1604 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1606 Case insensitive lookups implementation.
1607 * dwarf2read.c: Include ctype.h.
1608 (struct mapped_index): New field version.
1609 (mapped_index_string_hash): New parameter index_version. New comment
1610 for it. Call tolower appropriately.
1611 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1612 Choose the right index version for mapped_index_string_hash.
1613 (dwarf2_read_index): Support also the index version 5. Initialize the
1614 new struct mapped_index field version.
1615 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1616 (find_slot): Explain the version needs. Pass INT_MAX for the new
1618 (write_psymtabs_to_index): Produce version 5.
1619 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1620 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
1621 * psymtab.c (lookup_partial_symbol): Find the
1622 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1624 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1626 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1627 (completion_list_add_name): New variable ncmp, initialize it, use it.
1628 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1629 * utils.c (strcmp_iw): Support case_sensitive_off.
1630 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1631 New function comment part. New variables saved_string1,
1632 saved_string2 and case_pass. Add a proper second pass.
1634 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1636 Replace re_comp/re_exec by regcomp/regexec.
1637 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1638 (search_symbols_name_matches): Use them, use regexec.
1639 (search_symbols): New variable retval_chain, adjust the use of
1640 old_chain against it. Replace re_comp by regcomp. Use the new struct
1641 search_symbols_data fields, use regexec instead of re_exec.
1643 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1645 Format the code for the next patch.
1646 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1647 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1648 New variables c1 and c2.
1650 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1652 * infrun.c (proceed): Do not single-step into signal delivery
1653 when stepping off a breakpoint location.
1654 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1655 (insert_step_resume_breakpoint_at_caller): Likewise.
1656 (insert_step_resume_breakpoint_at_sal): Likewise.
1657 (insert_longjmp_resume_breakpoint): Likewise.
1659 2011-04-27 Yao Qi <yao@codesourcery.com>
1661 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1663 2011-04-27 Joel Brobecker <brobecker@adacore.com>
1665 * procfs.c (procfs_pass_signals): Fix advance declaration.
1667 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1669 * target.h (struct target_ops): Remove to_notice_signals;
1670 add to_pass_signals.
1671 (target_notice_signals): Remove.
1672 (target_pass_signals): Add prototype.
1673 * target.c (update_current_target): Remove to_notice_signals;
1674 mention to_pass_signals.
1675 (target_pass_signals): New function.
1676 (debug_to_notice_signals): Remove.
1677 (setup_target_debug): Do not install debug_to_notice_signals.
1679 * infrun.c (signal_pass): New global.
1680 (resume): Call target_pass_signals.
1681 (handle_inferior_event): Report all signals while stepping over
1682 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1683 are re-inserted when stepping over a signal handler.
1684 (signal_cache_update): New function.
1685 (signal_stop_update): Call it.
1686 (signal_print_update): Likewise.
1687 (signal_pass_update): Likewise.
1688 (handle_command): Call signal_cache_update and target_pass_signals
1689 instead of target_notice_signals.
1690 (_initialize_infrun): Initialize signal_pass.
1692 * linux-nat.c (pass_mask): New global.
1693 (linux_nat_pass_signals): New function.
1694 (linux_nat_create_inferior): Report all signals initially.
1695 (linux_nat_attach): Likewise.
1696 (linux_nat_resume): Use pass_mask to decide whether to directly
1697 handle an inferior signal.
1698 (linux_nat_wait_1): Likewise.
1699 (linux_nat_add_target): Install to_pass_signals callback.
1701 * nto-procfs.c (notice_signals): Remove.
1702 (procfs_resume): Do not call notice_signals.
1703 (procfs_notice_signals): Remove.
1704 (procfs_pass_signals): New function.
1705 (init_procfs_ops): Install to_pass_signals callback instead of
1706 to_notice_signals callback.
1707 (_initialize_procfs): Report all signals initially.
1709 * procfs.c (procfs_notice_signals): Remove.
1710 (procfs_pass_signals): New function.
1711 (procfs_target): Install to_pass_signals callback instead of
1712 to_notice_signals callback.
1713 (register_gdb_signals): Remove.
1714 (procfs_debug_inferior): Report all signals initially.
1715 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1717 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1718 parameters; use them instead of calling signal_..._state routines.
1719 (remote_notice_signals): Remove.
1720 (remote_start_remote): Report all signals initially.
1721 (remote_resume): Do not call remote_pass_signals.
1722 (_initialize_remote): Install to_pass_signals callback instead of
1723 to_notice_signals callback.
1725 2011-04-27 Pedro Alves <pedro@codesourcery.com>
1727 * breakpoint.c (user_settable_breakpoint): Delete.
1728 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1729 (delete_command): Check user_breakpoint_p instead of looking at
1730 the breakpoint's type.
1731 (disable_command): Ditto.
1732 (enable_command): Ditto.
1733 (delete_trace_command): Use user_breakpoint_p instead of looking
1734 at the breakpoint number directly. When checking if there are
1735 user visible tracepoints, in order to know whether to ask the user
1736 for confirmation, check whether the breakpoint is actually a
1739 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1741 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1744 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1746 MI breakpoint notifications.
1748 * annotate.c (breakpoint_changed): Adjust parameter type.
1749 * breakpoint.c (set_breakpoint_condition): Adjust to change
1750 in breakpoint_modified type.
1751 (breakpoint_set_commands): Likewise.
1752 (do_map_commands_command): Likewise.
1753 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1754 changed after bumping hit count.
1755 (bpstat_stop_status): Likewise.
1756 (print_one_breakpoint_location): Don't wrap in tuple here.
1757 (print_one_breakpoint): Always print individual locations.
1758 For locations, use unnamed tuple.
1759 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1761 (create_catchpoint, create_syscall_event_catchpoint): Call
1762 breakpoint_created obsever.
1763 (mention): Don't call breakpoint_created observer.
1764 (create_breakpoint_sal): Call breakpoint_created observer.
1765 (create_breakpoint, watch_command_1): Likewise.
1766 (create_ada_exception_breakpoint): Likewise.
1767 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1768 (locations_are_equal): New.
1769 (update_breakpoint_locations): If locations were changed, notify.
1770 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1771 Call breakpoint_modified observer.
1773 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1774 (mi_cmd_break_insert): Don't set observers for modify and delete.
1775 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1776 (mi_breakpoint_created, mi_breakpoint_deleted)
1777 (mi_breakpoint_modified): New.
1778 (mi_interpreter_init): Hook the above.
1779 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1780 while -break-* commands are executing.
1781 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1782 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1784 (mi_ui_out_impl): Hook in mi_redirect.
1785 (mi_field_skip): True to the name, skip the field, don't output
1786 a field with an empty value.
1788 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1789 (gdbpy_breakpoint_deleted): Adjust.
1790 * tui/tui-hooks.c (tui_event_create_breakpoint)
1791 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1793 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1795 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1796 (procfs_remove_hw_watchpoint): Likewise.
1798 2011-04-26 Michael Walle <michael@walle.cc>
1800 * remote.c (remote_start_remote): Ack packet after sending the
1803 2011-04-26 Yao Qi <yao@codesourcery.com>
1805 * linux-nat.c: Move common macros to ...
1806 Include linux-ptrace.h.
1807 * common/linux-ptrace.h: ... here. New.
1809 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1811 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1812 !objfile_has_partial_symbols. New comment.
1813 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1814 SYM_READ_PSYMBOLS is not present. Extend the comment.
1815 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1817 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1819 * defs.h (ENUM_BITFIELD): Remove.
1821 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1822 Eli Zaretskii <eliz@gnu.org>
1824 * NEWS: Document the new gdbserver --once option.
1826 2011-04-21 Jie Zhang <jzhang918@gmail.com>
1828 * MAINTAINERS: Update my email address.
1830 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1832 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1833 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1834 function call if __STDC_ISO_10646__ macro is defined.
1835 (intermediate_encoding): New prototype.
1836 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1837 to generate compile time error for unsupported gdb_wchar_t size.
1838 (ENDIAN_SUFFIX): New macro.
1839 (intermediate_encoding): New function.
1841 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1843 * ada-lang.c (struct add_partial_datum): Update the comment for
1844 expand_partial_symbol_name.
1845 (ada_add_partial_symbol_completions): Rename to ...
1846 (ada_expand_partial_symbol_name): ... here, change return type, update
1847 function comment, call symbol_completion_match instead of
1848 symbol_completion_add.
1849 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1850 and ada_expand_partial_symbol_name.
1851 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1853 (dw2_map_symbol_names): Remove.
1854 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1855 * psymtab.c (map_symbol_names_psymtab): Remove.
1856 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1857 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1859 (psym_functions): Unlist map_symbol_names_psymtab.
1860 (map_partial_symbol_names): Rename to ...
1861 (expand_partial_symbol_names): ... here, change the FUN type, call
1862 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1863 * psymtab.h (map_partial_symbol_names): Rename to ...
1864 (expand_partial_symbol_names): ... here, change the FUN type.
1865 * symfile.h (struct quick_symbol_functions): Update the description of
1866 expand_symtabs_matching. Remove map_symbol_names.
1867 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1868 (struct add_name_data): Update the comment for
1869 expand_partial_symbol_name.
1870 (add_partial_symbol_name): Rename to ...
1871 (expand_partial_symbol_name): ... here. Replace
1872 completion_list_add_name call by strncmp.
1873 (default_make_symbol_completion_list_break_on): Use now
1874 expand_partial_symbol_names and expand_partial_symbol_name.
1875 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1877 2011-04-20 Tom Tromey <tromey@redhat.com>
1879 * dwarf2read.c (save_gdb_index_command): Replace format
1880 documentation with a pointer to the manual.
1882 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1884 * regcache.c: Include remote.h.
1885 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1886 (regcache_dump): Handle regcache_dump_remote.
1887 (maintenance_print_remote_registers): New function.
1888 (_initialize_regcache): Install "maint print remote-registers"
1890 * remote.c (map_regcache_remote_table): New function, factored out
1892 (init_remote_state): ... here.
1893 (remote_register_number_and_offset): New.
1894 * remote.h (remote_register_number_and_offset): Declare.
1896 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1898 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1899 null_ptid, assume and allow a NULL address space, instead of
1900 asking the target for the ptid's address space.
1901 * infrun.c (ptid_is_pid): Remove assertion.
1903 2011-04-19 Tom Tromey <tromey@redhat.com>
1905 * windows-tdep.c (windows_xfer_shared_library):
1906 * windows-nat.c (get_module_name, windows_make_so):
1907 * v850-tdep.c (v850_handle_pushm):
1908 * utils.c (null_cleanup, gdb_realpath):
1909 * ui-out.c (get_next_header):
1910 * tracepoint.c (clear_traceframe_info):
1911 * symtab.c (lookup_symtab):
1912 * serial.h (struct serial_ops):
1913 * mipsread.c (read_alphacoff_dynamic_symtab):
1914 * infcmd.c (print_return_value):
1915 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1916 * f-exp.y (parse_number):
1917 * exceptions.c (catch_exceptions):
1918 * dummy-frame.c (dummy_frame_this_id):
1919 * defs.h (struct cleanup):
1920 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1921 * arm-tdep.c (arm_push_dummy_call):
1922 * amd64-tdep.h (amd64_collect_xsave):
1923 * amd64-tdep.c (amd64_collect_xsave):
1924 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1925 * README (typing): Remove duplicate words.
1926 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1927 * infrun.c (siginfo_value_read): Fix typo.
1928 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1929 * top.c (source_line_number): Add comma.
1931 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1933 * thread.c (any_live_thread_of_process): Prioritize threads
1934 that are not executing.
1935 * gdbthread.h (any_live_thread_of_process): Update comment
1936 as per above change.
1938 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1940 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1941 (scan_xcoff_symtab): Likewise.
1943 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1945 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1948 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1949 Pedro Alves <pedro@codesourcery.com>
1951 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1952 variables to simplify code and avoid == operator at end of
1953 line as this is against GNU coding standards.
1955 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1957 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1958 lm_name to name_lm to avoid conflict with lm_name function.
1960 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1962 ARI fixes: Use only lowercase function name for static functions.
1963 * nto-tdep.c (LM_ADDR): Rename to...
1964 (lm_addr): New function name.
1965 (nto_relocate_section_addresses): Adapt to change above.
1966 * solib-sunos.c (LM_ADDR): Rename to...
1967 (lm_addr): New function name.
1968 (LM_NEXT): Rename to...
1969 (lm_next): New function name.
1970 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1971 function name changes above.
1972 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1973 (lm_addr_from_link_map): New function name.
1974 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1975 (has_lm_dynamic_from_link_map): New function name.
1976 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1977 (lm_dynamic_from_link_map): New function name.
1978 (LM_ADDR_CHECK): Rename to...
1979 (lm_addr_check): New function name.
1980 (LM_NEXT): Rename to...
1981 (lm_next): New function name.
1982 (LM_PREV): Rename to...
1983 (lm_prev): New function name.
1984 (LM_NAME): Rename to...
1985 (lm_name): New function name.
1986 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1987 (ignore_first_link_map_entry): New function name.
1988 (svr4_keep_data_in_core): Adapt to function name changes above.
1989 (svr4_current_sos): Likewise.
1990 (enable_break): Likewise.
1991 (svr4_relocate_section_addresses): Likewise.
1993 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1996 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1997 sprintf. Simplify code and avoid loosing memory.
1998 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1999 (call0_frame_cache): Remove && operator from end of line.
2001 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2003 Fix libraries displacement if they change whether they were prelinked.
2004 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2005 does not match. Comment why.
2007 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2009 * corelow.c: Include wrapper.h.
2010 (core_open): Call now gdb_target_find_new_threads.
2011 * wrapper.c: Include target.h.
2012 (gdb_target_find_new_threads): New.
2013 * wrapper.h (gdb_target_find_new_threads): New declaration.
2015 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2017 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2018 even if !TARGET_HAS_EXECUTION.
2020 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2022 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2023 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2024 bfd_get_synthetic_symtab.
2025 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2026 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2027 parameter parent, remove the call to add_separate_debug_objfile.
2028 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2029 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2030 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2031 parent, new comment for it, call add_separate_debug_objfile for it.
2032 (symbol_file_add_separate): Pass objfile as the parameter parent,
2033 remove the call to add_separate_debug_objfile.
2034 (symbol_file_add_from_bfd): New parameter parent, pass it.
2035 (symbol_file_add): Pass NULL to the new parameter parent.
2036 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2038 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2040 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2043 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2045 Fix Python access to inlined frames.
2046 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2047 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2049 2011-04-15 Tom Tromey <tromey@redhat.com>
2051 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2053 2011-04-15 Gary Benson <gbenson@redhat.com>
2055 * MAINTAINERS: Add myself to write-after-approval section.
2057 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2059 * remote-sim.c (sim_command_completer): New function.
2060 (_initialize_remote_sim): Set completer to sim_command_completer.
2062 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2064 * breakpoint.c (print_exception_catchpoint): Rename to ...
2065 (print_it_exception_catchpoint): ... this.
2066 (gnu_v3_exception_catchpoint_ops): Update with new name
2067 for print_it_exception_catchpoint.
2069 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2071 * MAINTAINERS: Add myself for write after approval privileges.
2073 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2075 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2077 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2079 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2081 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2083 * breakpoint.c (save_breakpoints): Verify whether
2084 breakpoint_ops.print_recreate is defined before calling it.
2086 2011-04-11 Gary Benson <gbenson@redhat.com>
2088 Fix failure with --enable-maintainer-mode.
2089 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2091 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2094 * symtab.c (search_symbols): Reorder the KIND description in the
2095 function comment. Remove the unused 4th element of types, types2,
2096 types3 and types4. New gdb_assert on KIND.
2097 (symtab_symbol_info): Remove the unused 4th element of classnames.
2098 New gdb_assert on KIND.
2099 * symtab.h (enum search_domain): New warning in the enum comment.
2100 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2103 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2105 Fix crash of gdb save-index on a STABS file.
2106 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2109 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2111 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2112 * dwarf2read.c: Include ctype.h.
2113 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2115 (dwarf2_add_field): Fix new_field->accessibility by calling
2116 dwarf2_default_access_attribute. Restructure setting accessibility
2118 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2119 is_private and is_protected by calling
2120 dwarf2_default_access_attribute.
2122 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2124 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2125 to the initialization.
2127 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2129 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2132 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2134 Remove support for old Cygwin 1.5 versions.
2135 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2136 function on old Cygwin version.
2137 * windows-nat.c: Remove cygwin version check and always define
2138 __USEWIDE for Cygwin compilation.
2140 2011-04-07 Yao Qi <yao@codesourcery.com>
2142 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2144 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2145 (arm_copy_svc): Remove parameters INSN and TO.
2146 (decode_svc_copro): Update caller.
2147 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2148 from function pointer `copy_svc_os'.
2150 2011-04-07 Yao Qi <yao@codesourcery.com>
2152 * arm-tdep.c (cleanup_branch): Set a correct return address in
2153 LR for ARM and Thumb.
2155 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2158 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2159 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2160 in the function comment, a new note on values compatibility.
2161 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2162 * symtab.h (SYMBOL_HASH_NEXT): New.
2164 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2166 * ppc-linux-nat.c (check_condition): Add len output parameter.
2167 Set it based on the memory region referenced in the condition
2168 expression. Update all callers.
2170 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2172 Fix crash regression on systems featuring .gdb_index.
2173 * objfiles.c (free_objfile): Move the
2174 forget_cached_source_info_for_objfile call earlier. Comment it.
2175 Extend the comment for objfile_free_data.
2177 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2179 Fix regression of displaying the debug format.
2180 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2183 2011-04-04 Tom Tromey <tromey@redhat.com>
2185 * cli/cli-interp.c (struct captured_execute_command_args):
2187 (do_captured_execute_command): Remove.
2188 (safe_execute_command): Use TRY_CATCH.
2189 * cli/cli-script.c (struct wrapped_read_command_file_args):
2191 (wrapped_read_command_file): Remove.
2192 (script_from_file): Use TRY_CATCH.
2193 * exceptions.c (catch_exception): Remove.
2194 * exceptions.h (catch_exception): Remove.
2195 (deprecated_throw_reason): Update comment.
2196 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2197 argument to 'context'.
2198 (mi_execute_command): Use TRY_CATCH.
2199 * remote.c (struct start_remote_args): Remove.
2200 (remote_start_remote): Update; change arguments.
2201 (remote_open_1): Use TRY_CATCH.
2203 2011-04-04 Tom Tromey <tromey@redhat.com>
2205 * tracepoint.c (scope_info): Update.
2206 * symtab.c (decode_line_spec): Update.
2207 * python/python.c (gdbpy_decode_line): Update.
2208 * linespec.h (decode_line_1): Update.
2209 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2210 (decode_compound, find_method, symtab_from_filename)
2211 (decode_variable): Likewise.
2212 * cli/cli-cmds.c (edit_command): Update.
2213 (list_command): Update.
2214 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2216 (create_breakpoint): Update.
2217 (until_break_command): Update.
2218 (addr_string_to_sals): Update.
2219 (decode_line_spec_1): Update.
2221 2011-04-04 Tom Tromey <tromey@redhat.com>
2223 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2224 (do_captured_parse_breakpoint): Remove.
2225 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2226 Use TRY_CATCH directly.
2228 2011-04-04 Tom Tromey <tromey@redhat.com>
2230 * symtab.h (free_symtab): Remove.
2231 (forget_cached_source_info_for_objfile): Declare.
2232 * symmisc.c (free_symtab): Remove.
2233 * source.c (forget_cached_source_info_for_objfile): New function.
2234 (forget_cached_source_info): Use it.
2235 * objfiles.c (free_objfile): Simplify check before calling
2236 clear_current_source_symtab_and_line. Call
2237 forget_cached_source_info_for_objfile.
2239 2011-04-04 Tom Tromey <tromey@redhat.com>
2241 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2242 (new_symtab): Don't set `free_code' on symtab.
2243 (new_linetable): Properly handle size==0.
2244 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2245 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2247 * jv-lang.c (struct jv_per_objfile_data): New.
2248 (jv_per_objfile_free): Free the data.
2249 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2250 (get_java_class_symtab): Set the `dict' field on the
2251 jv_per_objfile_data.
2252 (free_class_block): Remove.
2253 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2256 2011-04-04 Tom Tromey <tromey@redhat.com>
2258 * symfile.c (reread_symbols): Update.
2259 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2261 * objfiles.c (allocate_objfile): Update.
2262 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2264 * cp-namespace.c (lookup_symbol_file): Don't call
2265 lookup_possible_namespace_symbol.
2266 (initialize_namespace_symtab, get_possible_namespace_block)
2267 (free_namespace_block, cp_check_possible_namespace_symbols)
2268 (check_possible_namespace_symbols_loop)
2269 (check_one_possible_namespace_symbol)
2270 (lookup_possible_namespace_symbol): Remove.
2271 (maintenance_cplus_namespace): Replace with notice.
2272 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2274 2011-04-04 Tom Tromey <tromey@redhat.com>
2276 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2277 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2278 * symmisc.c (free_symtab): Don't free debugformat.
2279 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2280 (record_debugformat, record_producer): Document.
2281 * buildsym.c (end_symtab): Don't save debugformat and producer
2283 (end_symtab): Don't free debugformat and producer fields.
2284 (record_debugformat): Don't call xstrdup.
2285 (record_producer): Likewise.
2287 2011-04-04 Tom Tromey <tromey@redhat.com>
2289 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2290 (source_line_charpos, source_charpos_line): Remove.
2292 2011-04-04 Tom Tromey <tromey@redhat.com>
2294 * symtab.h (domain_enum): Split in two...
2295 (enum search_domain): New.
2296 (search_symbols): Update.
2297 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2298 redundant declarations.
2299 (search_symbols): Change 'kind' argument to search_domain.
2301 (print_symbol_info): Likewise.
2302 (symtab_symbol_info): Likewise.
2303 * symfile.h (struct quick_symbol_functions)
2304 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2305 <expand_symtabs_matching>: Likewise.
2306 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2307 (expand_symtabs_matching_via_partial): Update.
2308 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2309 (dw2_expand_symtabs_for_function): Update.
2310 * block.h: Moved anonymous enum...
2311 * defs.h (enum block_enum): ... here. Now named.
2313 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2315 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2316 * version.in: Bump version to 7.3.50.20110403-cvs.
2318 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2320 * NEWS: Create a new section for the next release branch.
2321 Rename the section of the current branch, now that it has
2324 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2326 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2327 for "fpscr" in target description.
2329 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2331 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2332 initialize it. Delay HASH initialization. Strip the part after open
2333 parenthesis for languages with qualifiers. Call do_cleanups.
2335 2011-04-01 Tom Tromey <tromey@redhat.com>
2337 * utils.c (report_command_stats): Don't print `-' for negative
2340 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2342 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2343 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2346 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2348 * breakpoint.h (bpdisp_text): Add declaration.
2349 * breakpoint.c (bpdisp_text): Make non-static.
2350 * ada-lang.c: #include "mi/mi-common.h".
2351 (print_it_exception): Rewrite to improve GDB/MI output.
2353 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2355 * arm-tdep.h (struct address_space): Add forward declaration.
2357 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2359 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2360 * arm-tdep.c (arm_override_mode): New global.
2361 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2362 execution mode heuristics.
2363 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2364 second single-step breakpoint if needed, using
2365 arm_insert_single_step_breakpoint.
2366 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2367 ARM execution mode, do not call thumb_get_next_pc_raw.
2368 (arm_get_next_pc): Encode execution mode in return value. Call
2369 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2370 (arm_insert_single_step_breakpoint): New function.
2371 (arm_software_single_step): Call it.
2372 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2373 argument to return execution mode of sigreturn target.
2374 (arm_linux_syscall_next_pc): Use it.
2375 (arm_linux_copy_svc): Update call.
2376 (arm_linux_software_single_step): Call
2377 arm_insert_single_step_breakpoint.
2379 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2381 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2384 2011-03-31 Tom Tromey <tromey@redhat.com>
2386 * varobj.c (update_dynamic_varobj_children): Properly handle
2387 errors from iterator.
2389 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2391 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2392 struct linkage name twice.
2394 2011-03-31 Tom Tromey <tromey@redhat.com>
2396 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2397 missing ">" to message.
2399 2011-03-31 Tom Tromey <tromey@redhat.com>
2401 * varobj.c (instantiate_pretty_printer): Remove duplicate
2404 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2406 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2407 if neither saved value nor register available (e.g. signal frame).
2409 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2411 * macroexp.c (expand): Avoid uninitialized variable
2414 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2416 * breakpoint.c (break_range_command): Fix typo in comment.
2418 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2419 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2421 Implement support for PowerPC BookE ranged breakpoints.
2422 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2423 * breakpoint.h (struct bp_target_info) <length>: New member
2425 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2426 instead of struct breakpoint as argument, and also add ASPACE
2427 and BP_ADDR arguments. Update all callers.
2428 (struct breakpoint_ops) <print_one_detail>: New method.
2429 (struct breakpoint) <addr_string_range_end>: New member variable.
2430 * breakpoint.c (breakpoint_location_address_match): Add function
2432 (insert_bp_location): Set bl->target_info.length.
2433 (breakpoint_here_p): Call breakpoint_location_address_match.
2434 (moribund_breakpoint_here_p): Likewise.
2435 (regular_breakpoint_inserted_here_p): Likewise.
2436 (breakpoint_thread_match): Likewise.
2437 (bpstat_stop_status): Likewise.
2438 (bpstat_check_location): Move call to
2439 breakpoint_ops.breakpoint_hit to the top.
2440 (print_one_breakpoint_location): Call
2441 breakpoint_ops.print_one_detail if available.
2442 (breakpoint_address_match_range): New function.
2443 (breakpoint_location_address_match): Likewise.
2444 (breakpoint_locations_match): Compare the length field of the
2446 (hw_breakpoint_used_count): Count resources used by all locations
2447 in a breakpoint, and use breakpoint_ops.resources_needed if
2449 (breakpoint_hit_ranged_breakpoint): New function.
2450 (resources_needed_ranged_breakpoint): Likewise.
2451 (print_it_ranged_breakpoint): Likewise.
2452 (print_one_ranged_breakpoint): Likewise.
2453 (print_one_detail_ranged_breakpoint): Likewise.
2454 (print_mention_ranged_breakpoint): Likewise.
2455 (print_recreate_ranged_breakpoint): Likewise.
2456 (ranged_breakpoint_ops): New structure.
2457 (find_breakpoint_range_end): New function.
2458 (break_range_command): Likewise.
2459 (delete_breakpoint): Free addr_string_range_end.
2460 (update_breakpoint_locations): Add SALS_END argument. Update
2461 all callers. Calculate breakpoint length if a non-zero SALS_END
2462 is given. Call breakpoint_locations_match instead of
2463 breakpoint_address_match.
2464 (reset_breakpoint): Find SaL of the end of the range if B is a
2466 (_initialize_breakpoint): Register break-range command.
2467 * defs.h (print_core_address): Add function prototype.
2468 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2470 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2471 (ppc_linux_remove_hw_breakpoint): Likewise.
2472 (_initialize_ppc_linux_nat): Initialize
2473 to_ranged_break_num_registers.
2474 * target.c (update_current_target): Add comment about
2475 to_ranged_break_num_registers.
2476 (target_ranged_break_num_registers): New function.
2477 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2479 (target_ranged_break_num_registers): Add function prototype.
2480 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2481 * utils.c (print_core_address): ... here.
2483 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2485 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2486 variable compiler warning.
2488 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2490 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2492 (re_set_breakpoint): ... to here ...
2493 (addr_string_to_sals): ... and here.
2495 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2497 * Makefile.in (SFILES): Add missing C sources.
2498 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2499 Add missing headers.
2501 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2503 * .gitignore: New file.
2505 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2507 * NEWS: Mention new cfi device simulation.
2509 2011-03-29 Tom Tromey <tromey@redhat.com>
2511 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2512 otherwise anonymous types.
2513 (dwarf2_name): Likewise.
2514 * valops.c (value_struct_elt_for_reference): Refine artificial
2515 type logic. Call error if j==-1.
2517 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2519 Fix false GCC warning.
2520 * infcall.c (find_function_addr): Initialize funaddr.
2522 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2524 Fix mingw compilation with --enable-targets=all.
2525 * remote-mips.c (gdb_usleep.h): Include header.
2526 (mips_enter_debug): Use gdb_usleep instead of sleep.
2528 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2530 Support resolution of STT_GNU_IFUNC via breakpoints.
2531 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2532 bp_gnu_ifunc_resolver_return.
2533 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2534 the loop. Support bp_gnu_ifunc_resolver and
2535 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2536 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2538 (bptype_string, print_one_breakpoint_location): Support
2539 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2540 (user_settable_breakpoint): Return true also for
2541 bp_gnu_ifunc_resolver.
2542 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2543 bp_gnu_ifunc_resolver_return.
2544 (set_breakpoint_location_function): New parameter explicit_loc,
2545 describe it. Call find_pc_partial_function_gnu_ifunc with new
2546 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2547 EXPLICIT_LOC is not set.
2548 (set_raw_breakpoint): Set EXPLICIT_LOC for
2549 set_breakpoint_location_function.
2550 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2551 set_breakpoint_location_function.
2552 (mention): Support bp_gnu_ifunc_resolver and
2553 bp_gnu_ifunc_resolver_return.
2554 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2555 set_breakpoint_location_function.
2556 (update_breakpoint_locations): Remove static.
2557 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2558 bp_gnu_ifunc_resolver_return.
2559 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2560 bp_gnu_ifunc_resolver_return.
2561 (update_breakpoint_locations): New declaration.
2562 * elfread.c: Include gdbthread.h and regcache.h.
2563 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2565 (elf_gnu_ifunc_fns): Install them.
2566 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2567 (stub_gnu_ifunc_resolver_return_stop): New functions.
2568 (stub_gnu_ifunc_fns): Install them.
2569 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2570 and gnu_ifunc_resolver_return_stop.
2571 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2573 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2575 STT_GNU_IFUNC reader implementation.
2576 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2577 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2578 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2579 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2580 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2581 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2582 (elf_gnu_ifunc_resolve_addr): New.
2583 (elf_symfile_read): Call elf_rel_plt_read.
2584 (elf_gnu_ifunc_fns): New.
2585 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2586 Install elf_gnu_ifunc_fns.
2587 * infcall.c (find_function_return_type): New function.
2588 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2589 * minsyms.c (stub_gnu_ifunc_resolve_addr)
2590 (stub_gnu_ifunc_resolve_name): New functions.
2591 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2592 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2593 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2595 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2597 Code cleanup for later STT_GNU_IFUNC support.
2598 * infcall.c (find_function_addr): Remove variable code, use explicit
2599 dereferences for it. Move VALUE_TYPE initialization later.
2601 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2603 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2604 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2605 (clear_pc_function_cache): Clear it.
2606 (find_pc_partial_function): Rename to ...
2607 (find_pc_partial_function_gnu_ifunc): ... this function. New
2608 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2609 (find_pc_partial_function): New wrapper for this function.
2610 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2612 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2614 GDB internal type support for STT_GNU_IFUNC.
2615 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2616 (elf_symtab_read): Set mst_text_gnu_ifunc for
2617 BSF_GNU_INDIRECT_FUNCTION.
2618 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2619 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2620 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2621 nodebug_got_plt_symbol.
2622 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2623 (TYPE_GNU_IFUNC): New.
2624 (struct main_type): New field flag_gnu_ifunc.
2625 (struct builtin_type): New field builtin_func_func.
2626 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2627 nodebug_got_plt_symbol.
2628 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2629 (in_gnu_ifunc_stub): New.
2630 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2632 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2633 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2634 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2636 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2637 * symtab.c (search_symbols): Likewise.
2638 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2639 and mst_slot_got_plt.
2640 (in_gnu_ifunc_stub): New declaration.
2642 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2644 Support a ring of related breakpoints.
2645 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2646 other functions, add gdb_assert.
2647 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2648 watchpoint_del_at_next_stop.
2649 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2650 (bpstat_stop_status): Handle ring in related_breakpoint.
2651 (set_raw_breakpoint_without_location): Initialize ring in
2653 (delete_breakpoint): Handle ring in related_breakpoint, use
2654 watchpoint_del_at_next_stop.
2655 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2657 2011-03-28 Tom Tromey <tromey@redhat.com>
2660 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2661 with `language_minimal'.
2663 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
2665 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2666 instead of checking for STT_ARM_TFUNC symbol type.
2668 2011-03-25 Tom Tromey <tromey@redhat.com>
2670 * linespec.c (symbol_found): Restore line-based result for
2671 non-LOC_LABEL symbols.
2673 2011-03-25 Kai Tietz <ktietz@redhat.com>
2675 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2676 instead of strcmp for comparison.
2677 (tui_source_is_displayed): Likewise.
2678 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2680 2011-03-24 Mark Wielaard <mjw@redhat.com>
2682 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2684 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2685 (find_partial_die_in_comp_unit): Likewise in comment.
2686 (read_attribute_value): Likewise.
2687 (lookup_die_type): Likewise.
2688 (dwarf_form_name): Likewise.
2689 (dump_die_shallow): Likewise.
2690 (follow_die_ref_or_sig): Likewise.
2692 2011-03-24 Tom Tromey <tromey@redhat.com>
2694 PR breakpoints/11816:
2695 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2696 (decode_compound): Update.
2697 (find_function_symbol): New function.
2698 (decode_dollar): Update.
2699 (decode_label): Add 'function_symbol' parameter. Handle
2700 function-relative labels.
2701 (decode_variable): Update.
2702 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2703 not its line. Set `special_display' and canonical name for
2706 2011-03-24 Tom Tromey <tromey@redhat.com>
2708 * linespec.h (struct linespec_result) <special_display>: New
2710 * breakpoint.h (struct breakpoint) <display_canonical>: New
2712 * breakpoint.c (print_breakpoint_location): Respect
2714 (create_breakpoint_sal): Add 'display_canonical' parameter.
2715 (create_breakpoints_sal): Update.
2716 (create_breakpoint): Update.
2718 2011-03-24 Tom Tromey <tromey@redhat.com>
2720 * symtab.c (decode_line_spec): Update.
2721 * linespec.c (build_canonical_line_spec): Change type of
2723 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2724 (find_method, decode_all_digits, decode_dollar, decode_label)
2725 (symbol_found): Likewise.
2726 (init_linespec_result): New function.
2727 * breakpoint.c (struct captured_parse_breakpoint_args)
2728 <canonical_p>: New field, replaces addr_string_p.
2729 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2731 (parse_breakpoint_sals): Likewise.
2732 (do_captured_parse_breakpoint): Update.
2733 (create_breakpoint): Use struct linespec_result.
2734 (until_break_command): Update.
2735 (breakpoint_re_set_one): Update.
2736 (decode_line_spec_1): Update.
2737 * linespec.h (struct linespec_result): New.
2738 (init_linespec_result): Declare.
2740 2011-03-23 Pedro Alves <pedro@codesourcery.com>
2742 * regcache.c (regcache_raw_read): If the target didn't supply a
2743 given raw register, mark it as unavailable.
2745 2011-03-23 Kai Tietz <ktietz@redhat.com>
2747 * breakpoint.c (clear_command): Use filename_cmp
2748 instead of strcmp for comparison.
2749 * buildsym.c (watch_main_source_file_lossage): Likewise.
2750 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2751 checking just for slash.
2752 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2753 strrchr and filename_cmp instead of strcmp for filenames.
2754 (add_old_header_file): Use filename_cmp
2755 instead of strcmp for comparison.
2756 * exec.c (exec_set_section_address): Likewise.
2757 * macrotab.c (macro_lookup_inclusion): Likewise.
2758 (macro_lookup_inclusion): Likewise.
2759 * elfread.c (_initialize_elfread): Likewise.
2760 (elfstab_offset_sections): Likewise.
2761 (elfstab_offset_sections): Use lbasename instead of
2763 * mdebugread.c (parse_partial_symbols): Likewise.
2764 (arse_partial_symbols): Use filename_(n)cmp instead of
2765 str(n)cmp for comparison.
2766 * minsyms.c (lookup_minimal_symbol): Likewise.
2767 * psymtab.c (read_psymtabs_with_filename): Likewise.
2768 * solib.c (solib_read_symbols): Likewise.
2769 (reload_shared_libraries_1): Likewise.
2770 * symmisc.c (maintenance_print_symbols): Likewise.
2771 * symfile.c (separate_debug_file_exists): Likewise.
2772 (reread_symbols): Likewise.
2773 (find_separate_debug_file_by_debuglink): Likewise.
2774 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2775 * source.c (add_path): Likewise.
2776 * symtab.c (filename_seen): Likewise.
2777 (file_matches): Likewise.
2778 (print_symbol_info): Likewise.
2779 (maybe_add_partial_symtab_filename): Likewise.
2780 (make_source_files_completion_list): Likewise.
2781 * xml-syscall.c (init_sysinfo): Likewise.
2782 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2783 IS_DIR_SEPARATOR for checking for trailing path separator.
2785 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2787 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2788 label abort_expression.
2789 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2790 DWARF_VALUE_OPTIMIZED_OUT.
2792 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2795 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2796 to linkage_name. Invert its value. Update the function comment.
2797 (c_type_print_varspec_suffix): Invert it at the caller.
2798 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2800 2011-03-22 Pedro Alves <pedro@codesourcery.com>
2802 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2803 errors when reading the `stop_pc'.
2804 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2807 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2809 * NEWS: Document gdb.Write stream keyword.
2811 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2814 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2815 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2816 (dwarf2_add_field): Fix new_field->accessibility for
2817 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2819 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2823 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2824 other error classes. Do not print stack trace.
2826 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2828 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2829 (dwarf2_add_field): Fix new_field->accessibility for
2830 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2832 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2834 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2835 encountering a load via a non-SP register.
2837 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2839 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2840 field in returned unwinder.
2842 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2844 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2846 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2848 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2851 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2853 * frame.c (frame_unwind_register): Throw an error if unwinding the
2855 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2856 an unwind stop reason.
2857 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2858 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2859 UNWIND_UNAVAILABLE>: New.
2860 * inline-frame.c (inline_frame_unwind): Install
2861 default_frame_unwind_stop_reason.
2862 * frame-unwind.c: Include "exceptions.h".
2863 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2864 (default_frame_unwind_stop_reason): New.
2865 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2866 (default_frame_unwind_stop_reason): Declare.
2867 (struct frame_unwind) <stop_reason>: New function pointer.
2869 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2870 * dwarf2-frame.c: Include exceptions.h.
2871 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2872 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2873 computing the CFA. If such an error was thrown, set
2874 unavailable_retaddr.
2875 (dwarf2_frame_unwind_stop_reason): New.
2876 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2878 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2879 (dwarf2_signal_frame_unwind): Ditto.
2881 * amd64-tdep.c: Include "exceptions.h".
2882 (struct amd64_frame_cache): New field "base_p".
2883 (amd64_init_frame_cache): Clear it.
2884 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2885 Avoid reading registers with functions that throw if the register
2886 is not necessary to compute the frame base.
2887 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2888 swallowing NOT_AVAILABLE_ERROR.
2889 (amd64_frame_unwind_stop_reason): New.
2890 (amd64_frame_this_id): Don't build a frame id if the frame base
2892 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2893 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2894 base_p if the frame base was computable.
2895 (amd64_sigtramp_frame_unwind_stop_reason): New.
2896 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2897 frame base was unavailable.
2898 (amd64_sigtramp_frame_unwind): Install
2899 amd64_sigtramp_frame_unwind_stop_reason.
2900 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2901 base_p if the frame base was computable.
2902 (amd64_epilogue_frame_unwind_stop_reason): New.
2903 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2904 frame base was unavailable.
2905 (amd64_epilogue_frame_unwind): Install
2906 amd64_epilogue_frame_unwind_stop_reason.
2907 * i386-tdep.c: Include "exceptions.h".
2908 (struct i386_frame_cache): New field "base_p".
2909 (i386_init_frame_cache): Clear it.
2910 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2911 Avoid reading registers with functions that throw if the register
2912 is not necessary to compute the frame base.
2913 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2914 swallowing NOT_AVAILABLE_ERROR.
2915 (i386_frame_unwind_stop_reason): New.
2916 (i386_frame_this_id): Don't build a frame id if the frame base was
2918 (i386_frame_prev_register): Handle unavailable SP.
2919 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2920 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2921 base_p if the frame base was computable.
2922 (i386_epilogue_frame_unwind_stop_reason): New.
2923 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2924 base was unavailable.
2925 (i386_epilogue_frame_unwind): Install
2926 i386_epilogue_frame_unwind_stop_reason.
2927 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2928 base_p if the frame base was computable.
2929 (i386_sigtramp_frame_unwind_stop_reason): New.
2930 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2931 base was unavailable.
2932 (i386_sigtramp_frame_unwind): Install
2933 i386_sigtramp_frame_unwind_stop_reason.
2934 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2935 type's size, not the register's.
2936 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2938 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2939 default_frame_unwind_stop_reason.
2940 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2941 (alpha_heuristic_frame_unwind): Ditto.
2942 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2943 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2944 * avr-tdep.c (avr_frame_unwind): Ditto.
2945 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2947 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2948 * frv-tdep.c (frv_frame_unwind): Ditto.
2949 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2950 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2951 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2952 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2953 (hppa_stub_frame_unwind): Ditto.
2954 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2955 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2956 (ia64_libunwind_frame_unwind)
2957 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2958 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2959 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2960 * m32c-tdep.c (m32c_unwind): Ditto.
2961 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2962 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2963 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2964 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2965 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2966 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2967 * mep-tdep.c (mep_frame_unwind): Ditto.
2968 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2969 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2970 (mips_stub_frame_unwind): Ditto.
2971 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2972 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2973 * mt-tdep.c (mt_frame_unwind): Ditto.
2974 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2975 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2976 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2977 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2978 (s390_sigtramp_frame_unwind): Ditto.
2979 * score-tdep.c (score_prologue_unwind): Ditto.
2980 * sh-tdep.c (sh_frame_unwind): Ditto.
2981 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2982 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2983 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2984 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2985 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2986 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2987 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2988 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2989 (sparc64obsd_trapframe_unwind): Ditto.
2990 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2991 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2992 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2993 * v850-tdep.c (v850_frame_unwind): Ditto.
2994 * vax-tdep.c (vax_frame_unwind): Ditto.
2995 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2996 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2997 * xtensa-tdep.c (xtensa_unwind): Ditto.
2999 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3001 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3002 there's always a frame. Use get_frame_pc_if_available instead of
3003 get_frame_pc, and if there's no PC available, don't look up a
3006 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3008 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3011 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3013 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3016 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3018 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3019 * frame.c (frame_unwind_caller_pc_if_available): New.
3020 * stack.c (frame_info): Handle unavailable PC.
3022 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3024 * frame.c (frame_unwind_pc): Rename to ...
3025 (frame_unwind_pc_if_available): ... this. New `pc' output
3026 parameter. Change return type to int. Gracefully handle
3027 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3028 happened, or 1 otherwise.
3029 (frame_unwind_pc): Reimplement on top of
3030 frame_unwind_pc_if_available.
3031 (get_frame_func): Rename to ...
3032 (get_frame_func_if_available): New `pc' output parameter. Change
3033 return type to int. Gracefully handle the PC not being available.
3034 (get_frame_func): Reimplement on top of
3035 get_frame_func_if_available.
3036 (select_frame): Handle the PC being unavailable.
3037 (get_prev_frame): Handle the PC being unavailable.
3038 (get_frame_pc_if_available): New.
3039 (get_frame_address_in_block_if_available): New.
3040 (find_frame_sal): Handle the frame PC not being available.
3041 * frame.h (get_frame_pc_if_available): Declare.
3042 (get_frame_address_in_block_if_available): Declare.
3043 (get_frame_func_if_available): Declare.
3044 * stack.c (print_frame_info): Handle the PC being unavailable.
3045 (find_frame_funname): Ditto.
3046 (print_frame): Handle the PC being unavailable.
3047 (get_frame_language): Ditto.
3048 * blockframe.c (get_frame_block): Ditto.
3049 * macroscope.c (default_macro_scope): Ditto.
3050 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3052 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3054 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3055 NOT_AVAILABLE_ERROR when evaluating the location expression.
3057 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3059 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3060 returning that the register piece is unavailable/optimized out.
3061 (write_pieced_value): Handle get_frame_register_bytes returning
3062 that the register piece is unavailable/optimized out when doing a
3063 read-modify write of a bitfield.
3064 * findvar.c (value_from_register): Handle get_frame_register_bytes
3065 returning that the register piece is unavailable/optimized out.
3066 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3067 and `unavailablep'. Throw error on bad debug info. Use
3068 frame_register instead of frame_register_read, to fill in the new
3070 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3072 * valops.c: (value_assign): Adjust, and handle
3073 get_frame_register_bytes failing.
3074 * spu-tdep.c: Include exceptions.h.
3075 (spu_software_single_step): Adjust, and handle
3076 get_frame_register_bytes failing.
3077 (spu_get_longjmp_target): Ditto.
3078 * gdbarch.sh (register_to_value): Change to return int. New
3079 parameters `optimizedp' and `unavailablep'.
3080 * gdbarch.h, gdbarch.c: Regenerate.
3081 * i386-tdep.c (i386_register_to_value): Adjust to new
3082 gdbarch_register_to_value interface.
3083 * i387-tdep.c (i387_register_to_value): Ditto.
3084 * i387-tdep.h (i387_register_to_value): Ditto.
3085 * alpha-tdep.c (alpha_register_to_value): Ditto.
3086 * ia64-tdep.c (ia64_register_to_value): Ditto.
3087 * m68k-tdep.c (m68k_register_to_value): Ditto.
3088 * mips-tdep.c (mips_register_to_value): Ditto.
3089 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3091 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3093 * findvar.c (value_of_register): Mark the value as unavailable, if
3094 the register is unavailable.
3095 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3096 (frame_register): New `unavailablep' parameter.
3097 (frame_register_read): Update comment.
3098 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3099 Set it if the register is unavailable. If the register is
3100 unavailable, clear the output buffer.
3101 (frame_register): New `unavailablep' parameter. Pass it down.
3102 (frame_unwind_register): Adjust.
3103 (put_frame_register): Adjust.
3104 (frame_register_read): Adjust. Also return false if the register
3106 (frame_register_unwind_location): Adjust.
3107 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3108 is unavailable, mark the value accordingly.
3109 * stack.c (frame_info): Handle unavailable registers.
3111 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3113 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3114 simplify, using regcache_cooked_read.
3116 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3118 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3119 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3120 (regcache_raw_read_unsigned, regcache_raw_read_part)
3121 (regcache_cooked_read, regcache_cooked_read_signed)
3122 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3123 (regcache_cooked_read_ftype): Change return to enum
3125 * regcache.c: Include exceptions.h
3126 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3127 (do_cooked_read): Change return to enum register_status. Always
3128 forward to regcache_cooked_read.
3129 (regcache_raw_read): Change return to enum register_status. If
3130 the register is not REG_VALID, memset the buffer. Return the
3132 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3133 return the register's status.
3134 (regcache_raw_read_unsigned): Ditto.
3135 (regcache_cooked_read): Change return to enum register_status.
3136 Assert that with read-only regcaches, the register's status must
3137 be known. If the regcache is read-only, and the register is not
3138 REG_VALID, memset the buffer. Return the register's status.
3139 (regcache_cooked_read_signed): Change return to enum
3140 register_status. Handle non-REG_VALID registers and return the
3142 (regcache_cooked_read_unsigned): Change return to enum
3143 register_status. Handle non-REG_VALID registers and return the
3145 (regcache_xfer_part, regcache_raw_read_part)
3146 (regcache_cooked_read_part): Change return to enum
3147 register_status. Return the register's status.
3148 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3150 (regcache_dump): Handle unavailable cooked registers.
3151 * frame.c (do_frame_register_read): Adjust interface to match
3152 regcache_cooked_read_ftype.
3153 * gdbarch.sh (pseudo_register_read): Change return to enum
3155 * gdbarch.h, gdbarch.c: Regenerate.
3157 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3159 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3160 register_status. If reading a raw register indicates the raw
3161 register is not valid, return the raw register's status,
3162 otherwise, return REG_VALID.
3163 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3164 register_status. Handle non-REG_VALID raw registers and return
3165 the register's status.
3166 * arm-tdep.c (arm_neon_quad_read)
3167 (arm_pseudo_read): Change return to enum register_status. Handle
3168 non-REG_VALID raw registers and return the register's status.
3169 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3170 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3171 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3172 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3173 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3175 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3176 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3177 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3178 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3179 (m32c_pseudo_register_read): Change return to enum
3180 register_status. Adjust.
3181 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3182 enum register_status. Return the register's status.
3183 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3184 register_status. Return the register's status.
3185 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3186 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3187 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3188 * rs6000-tdep.c (move_ev_register_func): New typedef.
3189 (e500_move_ev_register): Use it. Change return to enum
3190 register_status. Return the register's status.
3191 (do_regcache_raw_read): New function.
3192 (do_regcache_raw_write): New function.
3193 (e500_pseudo_register_read): Change return to enum
3194 register_status. Return the register's status. Use
3195 do_regcache_raw_read.
3196 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3197 (dfp_pseudo_register_read): Change return to enum register_status.
3198 Return the register's status.
3199 (vsx_pseudo_register_read): Ditto.
3200 (efpr_pseudo_register_read): Ditto.
3201 (rs6000_pseudo_register_read): Ditto.
3202 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3203 register_status. Return the register's status.
3204 * sh64-tdep.c (pseudo_register_read_portions): New function.
3205 (sh64_pseudo_register_read): Change return to enum
3206 register_status. Use pseudo_register_read_portions. Return the
3208 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3209 register_status. Return the register's status.
3210 * sh-tdep.c (pseudo_register_read_portions): New function.
3211 (sh_pseudo_register_read): Change return to enum register_status.
3212 Use pseudo_register_read_portions. Return the register's status.
3213 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3214 enum register_status. Return the register's status.
3215 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3216 * spu-tdep.c (spu_pseudo_register_read_spu)
3217 (spu_pseudo_register_read): Ditto.
3218 * xtensa-tdep.c (xtensa_register_read_masked)
3219 (xtensa_pseudo_register_read): Ditto.
3220 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3222 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3224 * python/py-value.c (valpy_getitem): Fix formatting of error function
3227 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3229 ARI fixes: Add missing internationalization markups throughout
3231 * darwin-nat-info.c: Ditto.
3234 * mi/mi-main.c: Ditto.
3236 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3238 ARI fixes: Add missing internationalization markups throughout
3241 * cp-name-parser.y: Ditto.
3244 * objc-exp.y: Ditto.
3247 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3249 ARI fixes: Messages should have no trailing new lines.
3250 * darwin-nat.c (mach_check_error): Remove trailing new line from
3251 warning function call message.
3252 * record.c (bfdcore_read): Idem for error call.
3254 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3256 * common/signals.c (target_signal_from_host): Add _ markup to error
3257 function call message.
3258 (target_signal_to_host): Add _ markup and remove trailing new line
3259 from warning call message.
3260 (target_signal_from_command): Add _ markup to error function call
3263 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3267 * python/python.c (gdbpy_write): Accept a stream argument and
3268 operate to the appropriate stream.
3269 (gdbpy_flush): Likewise.
3270 (_initialize_python): Add stream constants.
3271 (finish_python_initialization): Add GdbOutputErrorFile class.
3273 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3275 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3277 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3279 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3280 to store_signed_integer. Add debug message when relocating CALL
3281 instructions. Fix formatting of debug message.
3282 * i386-tdep.c (i386_relocate_instruction): Ditto.
3284 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3286 * target.h (struct target_ops): Remove to_lookup_symbol field.
3287 (target_lookup_symbol): Delete macro.
3288 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3289 (update_current_target, setup_target_debug): Remove handling
3290 of to_lookup_symbol target_ops field.
3291 * ada-tasks.c (get_known_tasks_addr): Remove use of
3292 target_lookup_symbol.
3293 * coffread.c (coff_symtab_read): Likewise.
3294 * dbxread.c (read_dbx_symtab): Ditto.
3296 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3299 * configure.ac: Add getthrds declaration check.
3300 * configure, config.in: Regenerate.
3301 * aix-thread.c (getthrds): Declare only if not already declared
3302 in procinfo.h. More declaration out of get_signaled_thread to
3305 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3307 * python/py-symtab.c: Populate symtab_object_methods,
3309 (stpy_is_valid): New function.
3310 (salpy_is_valid): Ditto.
3311 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3312 (sympy_is_valid): New function.
3313 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3314 (objfpy_is_valid): New function.
3315 * python/py-inferior.c: Populate inferior_object_methods.
3316 (infpy_is_valid): New function.
3317 * python/py-infthread.c: Populate thread_object_methods.
3318 (thpy_is_valid): New function.
3319 * python/py-block.c: Declare block_object_methods. Populate. Declare
3320 block_iterator_object_methods. Populate.
3321 (blpy_is_valid): New function.
3322 (blpy_iter_is_valid): Ditto.
3324 2011-03-16 Keith Seitz <keiths@redhat.com>
3326 * linespec.c (find_methods): Canonicalize NAME before looking
3328 (name_end): New function.
3329 (keep_name_info): New function.
3330 (decode_line_1): Use keep_name_info.
3331 (decode_compound): Likewise.
3332 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3333 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3336 * linespec.c (locate_first_half): Keep overload information, too.
3337 (decode_compound): Use a string to represent break characters
3339 If P points to a break character, do not increment it.
3340 For C++ and Java, keep overload information and relevant keywords.
3341 If we cannot find a symbol, search the minimal symbols.
3344 * linespec.c (decode_compound): Rename SAVED_ARG to
3346 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3348 Pass a valid block to lookup_symbol.
3349 (lookup_prefix_sym): Likewise.
3350 (find_method): Construct search name based on SYM_CLASS instead
3352 * psymtab.c (lookup_partial_symbol): Add language parameter.
3353 (lookup_symbol_aux_psymtabs): Likewise.
3354 Don't assume that the psymtab we found was the right one. Search
3355 for the desired symbol in the symtab to be certain.
3356 (psymtab_search_name): New function.
3357 (lookup_partial_symbol): Use psymtab_search_name.
3358 Add language parameter.
3359 (read_symtabs_for_function): Add language parameter and pass to
3360 lookup_partial_symbol.
3361 (find_symbol_file_from_partial): Likewise.
3363 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3366 * dwarf2read.c (noop_record_line): New function.
3367 (dwarf_decode_lines): Ignore line tables for GCd functions.
3369 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3371 Fix ARI warnings about new lines at the end of messages, which
3372 are unneeded as there is a new line added at the end of the message
3374 * darwin-nat.c (darwin_stop_inferior): Ditto.
3375 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3376 * dfp.c (decimal_to_number): Ditto.
3377 * exec.c (print_section_info): Ditto.
3378 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3379 * osdata.c (get_osdata): Ditto.
3380 * record.c (bfdcore_write): Ditto.
3381 * remote-mips.c (mips_readchar): Ditto.
3382 * remote.c (read_ptid): Ditto.
3383 * ser-mingw.c (ser_windows_raw): Ditto.
3384 * tracepoint.c (add_local_symbols): Ditto.
3385 * windows-nat.c (fake_create_process): Ditto.
3387 2011-03-16 Tom Tromey <tromey@redhat.com>
3389 * tracepoint.c (stop_tracing): Don't declare.
3390 * event-top.c (after_char_processing_hook): Add `(void)'.
3392 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3394 * NEWS: Add Parameter sub-classing description.
3396 2011-03-16 Kai Tietz <ktietz@redhat.com>
3398 * MAINTAINERS: Update my e-mail address.
3400 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3402 * MAINTAINERS: Add myself for write after approval privileges.
3404 2011-03-15 Michael Snyder <msnyder@vmware.com>
3406 * frame.c (find_frame_sal): Assert sym is not null.
3408 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3410 * objc-lang.c (selectors_info): Check strchr for null result.
3412 * stabsread.c (define_symbol): Guard against bad stabstring input.
3414 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3416 Remove trailing spaces and tabulations from pascal language
3421 p-valprint.c: Ditto.
3423 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3425 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3426 than LOW. Comment it.
3427 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3428 HIGHPC not strictly higher than LOWPC.
3430 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3432 Fix formatting of function declarations returning a pointer in
3434 * varobj.c (varobj_add_child): Ditto.
3435 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3436 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3438 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3440 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3441 for the "generic" vector ABI used with GCC 4.3 and later.
3442 (ppc64_sysv_abi_return_value): Likewise.
3444 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3446 * infcall.c (call_function_by_hand): Function return value is
3447 always a non_lval, even when using struct_return.
3449 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3451 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3452 (map_display_numbers): New.
3453 (do_delete_display): New.
3454 (undisplay_command): Use map_display_numbers.
3455 (do_enable_disable_display): New.
3456 (enable_disable_display_command): New function.
3457 (enable_display): Delete.
3458 (enable_display_command): New.
3459 (disable_display_command): Reimplement.
3460 (_initialize_printcmd): Adjust "enable display" command to use
3461 `enable_display_command' as callback.
3463 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3465 * NEWS: Add Python breakpoint 'stop' operation.
3467 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3469 * NEWS: Delete duplicate entry. Fix typo.
3471 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3473 Fix ARI warning about function names in first column.
3474 Put prototype declaration on same line as return type.
3475 * objc-exp.y: Ditto.
3477 * python/py-stopevent.h: Ditto.
3478 For long function names, split parameters to
3479 allow function name on same line as return type.
3480 * solib-pa64.c: Ditto.
3483 For long function declaration, use single line.
3484 * hppa-tdep.h: Ditto.
3485 * inferior.h: Ditto.
3487 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3489 * python/python.h: Declare gdbpy_should_stop and
3490 gdbpy_breakpoint_has_py_cond.
3491 * python/python.c: Add python.h to includes. Remove python.h from
3492 HAVE_PYTHON definition
3493 (gdbpy_should_stop): New dummy function.
3494 (gdbpy_breakpoint_has_py_cond): New dummy function.
3495 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3496 sub-classing capabilities.
3497 (gdbpy_should_stop): New function.
3498 (gdbpy_breakpoint_has_py_cond): New function.
3499 (local_setattro): New function.
3500 * breakpoint.c (condition_command): Add check for Python 'stop'
3502 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3503 operation function as part of stop/continue tests.
3505 2011-03-14 Tom Tromey <tromey@redhat.com>
3508 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3509 (needs_frame_dwarf_call): Likewise.
3511 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3513 Fix ARI warning about functions without parameters that do not
3515 * breakpoint.c (all_tracepoints): Replace () by (void).
3516 * f-exp.y (match_string_literal): Ditto.
3518 * m2-exp.y (yylex): Ditto.
3519 * mep-tdep.c (current_me_module): Ditto.
3520 (current_options): Ditto.
3521 (current_cop_data_bus_width): Ditto.
3522 (current_cr_names): Ditto.
3523 (current_cr_is_float): Ditto.
3524 (current_ccr_names): Ditto.
3525 * objc-exp.y (yylex): Ditto.
3526 * p-exp.y (yylex): Ditto.
3527 * remote.c (send_interrupt_sequence): Ditto.
3528 * tracepoint.c (current_trace_status): Ditto.
3529 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3530 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3532 2011-03-11 Michael Snyder <msnyder@vmware.com>
3534 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3535 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3536 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3537 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3538 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3540 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3541 (delete_async_event_handler): Ditto.
3543 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3545 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3547 * top.c (set_verbose): Assert showcmd was found.
3549 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
3551 * xtensa-tdep.c (warning_once): Correct style issues.
3553 2011-03-11 Yao Qi <yao@codesourcery.com>
3555 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3557 2011-03-11 Andreas Schwab <schwab@redhat.com>
3559 * common/aclocal.m4: Remove.
3561 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3563 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3564 (xtensa_write_register, xtensa_read_register): Likewise.
3565 (xtensa_hextochar): Removed.
3566 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3568 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3570 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3571 (xtensa_call0_frame_cache_t): Update comments. New fields added.
3572 (xtensa_alloc_frame_cache): Add initialization for new fields.
3573 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3574 (warning_once): New function.
3575 (xtensa_insn_kind): New item c0opc_and.
3576 (call0_classify_opcode): Add the case for AND instruction.
3577 (call0_track_op): Change arguments. New local variable litbase.
3578 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3579 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3581 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3582 (call0_analyze_prologue): Update the comments. Change arguments.
3583 Add the variety of updates to handle extended prologues, which now can
3584 conduct dynamic stack adjustments.
3585 (call0_frame_cache): Likewise.
3586 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3587 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3589 2011-03-10 Michael Snyder <msnyder@vmware.com>
3591 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3592 (cmd_qtframe): Ditto.
3593 (cmd_qtbuffer): Ditto.
3594 (cmd_bigqtbuffer): Ditto.
3596 2011-03-10 Tom Tromey <tromey@redhat.com>
3598 * tracepoint.c (trace_actions_command): Update.
3599 * thread.c (thread_apply_command): Update.
3600 * reverse.c (delete_bookmark_command): Update.
3601 (bookmarks_info): Update.
3602 * printcmd.c (undisplay_command): Update.
3603 * memattr.c (mem_enable_command): Update.
3604 (mem_disable_command): Update.
3605 (mem_delete_command): Update.
3606 * inferior.c (detach_inferior_command): Update.
3607 (kill_inferior_command): Update.
3608 (remove_inferior_command): Update.
3609 * cli/cli-utils.h (struct get_number_or_range_state): New.
3610 (init_number_or_range): Declare.
3611 (get_number_or_range): Update.
3612 * cli/cli-utils.c (init_number_or_range): New function.
3613 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3615 (number_is_in_list): Update.
3616 * breakpoint.h (get_tracepoint_by_number): Update.
3617 * breakpoint.c (map_breakpoint_numbers): Update for change to
3618 get_number_or_range.
3619 (find_location_by_number): Use get_number, not
3620 get_number_or_range.
3621 (trace_pass_set_count): New function.
3622 (trace_pass_command): Update for change to get_number_or_range.
3624 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3627 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
3629 * python/py-param.c (add_setshow_generic): Add set/show callback
3630 parameters. Register Python object context.
3631 (get_show_value): New function.
3632 (get_set_value): New function.
3633 (call_doc_function): New function.
3634 (get_doc_string): Move behind get_show_value/get_set_value.
3636 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
3638 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3640 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
3642 * xtensa-tdep.c (xtensa_read_register): Add comment.
3643 (xtensa_write_register): Likewise.
3644 (xtensa_hextochar): Add comment and update to match coding conventions.
3645 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3646 (execute_l32e, execute_s32e, execute_code): Update comments.
3647 (xtensa_exception_handler_t): Update to match coding conventions.
3648 (xtensa_insn_kind): Likewise.
3650 2011-03-09 Michael Snyder <msnyder@vmware.com>
3652 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3654 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3656 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3658 2011-03-09 Tom Tromey <tromey@redhat.com>
3660 * thread.c (restore_selected_frame): Handle frame_level == -1.
3661 (make_cleanup_restore_current_thread): Use
3662 get_selected_frame_if_set.
3663 * frame.h (get_selected_frame_if_set): Declare.
3664 * frame.c (get_selected_frame_if_set): New function.
3666 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3668 * cli/cli-cmds.c (shell_escape): Use lbasename.
3669 * coffread.c (coff_start_symtab): Constify parameter.
3670 (complete_symtab): Constify `name' parameter.
3671 (coff_symtab_read): Constify `filestring' local.
3672 (coff_getfilename): Constify return and `result' local.
3674 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3675 * linux-fork.c (info_checkpoints_command): Use lbasename.
3676 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3677 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3678 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3679 * procfs.c (procfs_make_note_section): Use lbasename.
3680 * tui/tui-io.c (printable_part): Constity return and parameter.
3682 (print_filename): Constify parameters, and local `s'.
3683 (tui_rl_display_match_list): Constify local `temp'.
3685 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3688 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3689 Fix DWARF-3+ DW_AT_accessibility default assumption.
3690 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3691 cu->header.version >= 3.
3693 2011-03-09 Yao Qi <yao@codesourcery.com>
3695 * common/Makefile.in: Remove.
3696 * common/configure: Remove.
3697 * common/configure.ac: Remove.
3699 2011-03-09 Yao Qi <yao@codesourcery.com>
3702 2011-02-11 Yao Qi <yao@codesourcery.com>
3704 * common/Makefile.in: Add copyright header.
3706 2011-02-11 Yao Qi <yao@codesourcery.com>
3708 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3710 * configure.ac: Add common to sub dir.
3711 * configure: Regenerate.
3713 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3715 * xtensa-tdep.c (call0_ret): New function.
3716 (xtensa_skip_prologue): Speed up analysis.
3718 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3720 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3721 while executing MI command -data-list-changed-registers.
3723 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3725 * xtensa-tdep.c (xtensa_read_register): New function.
3726 (xtensa_write_register): New function.
3727 (xtensa_find_register_by_name): New function.
3728 (xtensa_windowed_frame_cache): Update comments in type description.
3729 (xtensa_frame_cache): Likewise.
3730 (xtensa_window_interrupt_insn): New function.
3731 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3732 (xtensa_insn_kind): Add new instructions.
3733 (rwx_special_register): New function.
3734 (call0_classify_opcode): Add new instructions to the analysis.
3735 (a0_saved, a7_saved, a11_saved): New variables.
3736 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3737 (execute_l32e): New function.
3738 (execute_s32e): New function.
3739 (xtensa_exception_handler_t): New type.
3740 (execute_code): New function.
3741 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3742 analysis for Xtensa Window Exception handlers.
3744 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3746 * xtensa-tdep.c (TX_PS): New.
3747 (windowing_enabled): Update to count for Call0 ABI.
3748 (xtensa_hextochar): New.
3749 (xtensa_init_reggroups): Make algorithm generic.
3750 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3752 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3754 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3756 2011-03-08 Michael Snyder <msnyder@vmware.com>
3758 * i386-tdep.c (i386_follow_jump): Check return value of
3760 (i386_analyze_struct_return): Ditto.
3761 (i386_skip_probe): Ditto.
3762 (i386_match_insn): Ditto.
3763 (i386_skip_noop): Ditto.
3764 (i386_analyze_frame_setup): Ditto.
3765 (i386_analyze_register_saves): Ditto.
3766 (i386_skip_prologue): Ditto.
3767 (i386_skip_main_prologue): Ditto.
3769 * target.c (read_whatever_is_readable): Fix memory leak.
3771 * i386-tdep.c (i386_process_record): Document fall through.
3773 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3775 Fix DWARF-3+ DW_AT_accessibility default assumption.
3776 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3777 cu->header.version >= 3.
3779 2011-03-08 Pedro Alves <pedro@codesourcery.com>
3781 * remote.c (remote_check_symbols): Skip if the target has no
3784 2011-03-08 Joel Brobecker <brobecker@adacore.com>
3786 * target.c (read_whatever_is_readable): Reformat comment,
3787 with a minor typo fix. Minor reformatting of the code.
3789 2011-03-08 Yao Qi <yao@codesourcery.com>
3791 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3792 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3793 Use cached result instead of calling displaced_in_arm_mode again.
3794 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3795 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3796 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3797 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3798 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3799 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3800 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3801 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3802 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3803 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3804 (arm_catch_kernel_helper_return): Likewise.
3805 * gdb/arm-tdep.h : Update function declarations.
3807 2011-03-07 Michael Snyder <msnyder@vmware.com>
3809 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3811 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3813 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3815 * elfread.c (elf_symtab_read): Stop memory leak.
3817 * main.c (captured_main): Fix memory leak.
3819 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3821 * ada-lang.c (compare_names): Call is_name_suffix with string1
3824 2011-03-07 Tom Tromey <tromey@redhat.com>
3826 * xcoffread.c (xcoff_sym_fns): Update.
3827 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3828 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3829 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3830 (symbol_file_add_with_addrs_or_offsets): Likewise.
3831 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3832 * somread.c (som_sym_fns): Update.
3833 * psymtab.h (require_partial_symbols): Declare.
3834 * psymtab.c (require_partial_symbols): New function.
3835 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3836 (ALL_OBJFILE_PSYMTABS): Undef.
3837 (ALL_PSYMTABS): Move from psympriv.h.
3838 (lookup_partial_symtab, find_pc_sect_psymtab)
3839 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3840 (find_last_source_symtab_from_partial)
3841 (forget_cached_source_info_partial)
3842 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3843 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3844 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3845 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3846 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3847 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3848 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3849 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3850 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3852 * mipsread.c (ecoff_sym_fns): Update.
3853 * machoread.c (macho_sym_fns): Update.
3854 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3855 (read_psyms): New function.
3856 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3857 (elf_sym_fns_lazy_psyms): New global.
3858 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3859 dwarf2_build_psymtabs.
3860 * dbxread.c (aout_sym_fns): Update.
3861 * coffread.c (coff_sym_fns): Update.
3863 2011-03-07 Tom Tromey <tromey@redhat.com>
3865 * infrun.c (print_exited_reason): Include inferior id and pid in
3868 2011-03-07 Tom Tromey <tromey@redhat.com>
3870 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3872 (target_has_execution_1): Update.
3873 (target_has_execution_current): Declare.
3874 (target_has_execution): Call target_has_execution_current.
3875 (default_child_has_execution): Update.
3876 * target.c (default_child_has_execution): Add 'the_ptid'
3878 (target_has_execution_1): Likewise.
3879 (target_has_execution_current): New function.
3880 (add_target): Update.
3881 (init_dummy_target): Update.
3882 * remote-m32r-sdi.c (m32r_has_execution): New function.
3883 (init_m32r_ops): Use it.
3884 * record.c (record_core_has_execution): Now static. Add
3885 'the_ptid' parameter.
3886 * inferior.c (have_live_inferiors): Don't save current thread.
3887 Use target_has_execution_1.
3889 2011-03-07 Yao Qi <yao@codesourcery.com>
3891 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3893 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3895 * elfread.c (elf_symtab_read): Minor reformatting.
3897 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3899 * objc-lang.c (selectors_info): Minor reformatting.
3901 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3903 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3905 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3906 Michael Snyder <msnyder@vmware.com>
3908 * ada-valprint.c (ada_val_print_array): Move the declaration of
3909 "byte_order" and "elttype" inside the block where these variables
3910 are actually used. Remove some special handling for the case
3911 where "elttype" and "eltlen" are null. Replace by a comment
3912 and a couple of assertion checks.
3914 2011-03-05 Michael Snyder <msnyder@vmware.com>
3916 * source.c (add_path): Replace semicolon at end of block.
3917 * dwarf2expr.c (execute_stack_op): Ditto.
3919 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3921 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3922 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3923 (bfin-*-*): Likewise.
3925 2011-03-05 Michael Snyder <msnyder@vmware.com>
3927 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3928 * mdebugread.c (parse_symbol): Ditto.
3929 * parse.c (parse_exp_in_context): Ditto.
3930 * source.c (add_path): Ditto.
3931 * utils.c (gnu_debuglink_crc32): Ditto.
3932 * varobj.c (variable_language): Ditto.
3934 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3936 2011-03-04 Michael Snyder <msnyder@vmware.com>
3938 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3940 * symfile.c (simple_overlay_update): Check for null return value
3941 from lookup_minimal_symbol.
3943 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3945 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3947 * eval.c (parse_and_eval_address_1): Remove function.
3948 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3949 instead of parse_and_eval_address_1.
3950 * value.h (parse_and_eval_address_1): Remove prototype.
3952 2011-03-04 Michael Snyder <msnyder@vmware.com>
3954 * remote.c (putpkt_binary): Document that case stmt falls through.
3956 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3958 * breakpointc (print_it_typical): Move NULL check from here...
3959 (print_bp_stop_message): ... to here.
3961 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3963 * breakpoint.c (enable_command): Use break instead of continue,
3964 and fill in a missing break.
3965 (disable_command): Ditto.
3967 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3969 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3970 (terminal_save_ours): Remove misleading comment.
3971 (inflow_inferior_data_cleanup): Free ttystate.
3972 (inflow_inferior_exit): Likewise.
3973 (copy_terminal_info): Copy ttystate.
3975 * serial.c (serial_copy_tty_state): New function.
3976 * serial.h (serial_copy_tty_state): Add prototype.
3977 (struct serial_ops): Add copy_tty_state callback.
3978 * ser-base.c (ser_base_copy_tty_state): New function.
3979 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3980 * ser-go32.c (dos_copy_tty_state): New function.
3981 (dos_ops): Install copy_tty_state callback.
3982 * ser-mingw.c (_initialize_ser_windows): Likewise.
3983 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3984 * ser-unix.c (hardwire_copy_tty_state): New function.
3985 (_initialize_ser_hardwire): Install it.
3987 2011-03-04 Michael Snyder <msnyder@vmware.com>
3989 * breakpoint.c (create_breakpoint): Add missing break statement.
3991 Reverting this patch:
3992 * infcall.c (call_function_by_hand): Add break statements for lint.
3994 Reverting this patch:
3995 * cli/cli-script.c (script_from_file): Add break for lint.
3997 2011-03-04 Michael Snyder <msnyder@vmware.com>
3999 * solib.c (reload_shared_libraries_1): Close memory leak.
4001 2011-03-03 Tom Tromey <tromey@redhat.com>
4004 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4007 2011-03-03 Michael Snyder <msnyder@vmware.com>
4009 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4010 fields of struct 'st' to zero.
4012 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4013 sal.pspace before calling set_current_source_symtab_and_line.
4015 2011-03-03 Yao Qi <yao@codesourcery.com>
4017 * Makefile.in (configure-common): Remove. Let Makefile
4018 in dir common to rebuild itself.
4019 (common/Makefile): Likewise.
4021 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4023 * utils.c (parse_escape): Add i18n markup in error message.
4025 2011-03-03 Yao Qi <yao@codesourcery.com>
4027 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4029 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4030 (displaced_write_reg, displaced_read_reg): Likewise.
4031 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4032 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4033 (cleanup_branch): Replace magic number 14 and 15 with
4034 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4036 2011-03-02 Michael Snyder <msnyder@vmware.com>
4038 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4040 * cli/cli-script.c (script_from_file): Add break for lint.
4042 * mdebugread.c (parse_partial_symbols): Fix indent.
4044 * target-descriptions.c (tdesc_gdb_type): No need to call
4045 xstrdup, callee saves a copy.
4047 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4049 * infcall.c (call_function_by_hand): Add break statements for lint.
4051 * utils.c (parse_escape): Escape the escape char.
4053 * python/py-inferior.c (build_inferior_list): Error out if
4054 PyList_Append fails.
4055 (gdbpy_inferiors): Error out if build_inferior_list fails.
4057 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4060 * record.c (record_restore): Move printf to before error return.
4062 2011-03-02 Yao Qi <yao@codesourcery.com>
4064 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4065 is_thumb and insn_size.
4066 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4067 on both ARM and Thumb mode.
4068 (arm_process_displaced_insn): Set is_thumb and insn_size.
4069 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4070 (arm_displaced_step_fixup): Likewise.
4072 2011-03-01 Michael Snyder <msnyder@vmware.com>
4074 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4076 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4078 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4080 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4082 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4085 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4086 which shadows function parameter.
4088 * tracepoint.c (create_tsv_from_upload): Superfluous call
4089 to xstrdup. Callee already calls xstrdup.
4091 * linespec.c (decode_line_1): Remove unnecessary null check.
4093 * tracepoint.c (scope_info): Fix mem leak, remove underused
4096 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4097 superfluous null check.
4099 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4100 (value_of_builtin_frame_fp_reg): Ditto.
4102 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4104 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4107 * linespec.c (decode_line_1): Check for null before dereference.
4109 * reverse.c (record_restore): Move null-check to before pointer
4112 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4114 * objc-lang.c (selectors_info): Add explanitory comment.
4115 (classes_info): Ditto.
4117 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4119 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4120 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4121 versions of the trampoline. Handle Thumb vs. ARM addresses.
4122 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4123 (arm_linux_init_abi): Install it.
4124 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4125 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4127 2011-02-28 Michael Snyder <msnyder@vmware.com>
4129 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4130 a little bigger, to avoid possibility of an overflow.
4132 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4133 buffers a little bigger, to avoid possibility of an overflow.
4135 * coffread.c (coff_getfilename): Add check to avoid overflow.
4137 * objc-lang.c (selectors_info): Add a small safety margin to
4139 (classes_info): Error out on too long REGEXP.
4141 * infrun.c (handle_inferior_event): Remove unused function call.
4143 * fork-child.c (fork_inferior): Remove ifdef'd code and
4146 * linux-thread-db.c (attach_thread): Discard unused value.
4148 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4150 * remote.c (remote_get_noisy_reply): Discard unused value.
4151 (remote_vcont_resume): Ditto.
4152 (remote_stop_ns): Ditto.
4154 * linespec.c (decode_objc): Delete unused variable.
4156 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4158 * dwarf2read.c (add_partial_symbol): Discard unused values.
4159 (read_base_type): Delete unused variable.
4161 * dbxread.c (read_dbx_symtab): Discard unused value.
4163 * eval.c (evaluate_subexp_standard): Delete unused variable,
4164 and discard unused values.
4166 * infcmd.c (_initialize_infcmd): Discard unused values.
4168 * stabsread.c (rs6000_builtin_type): Missing break statement.
4170 * dbxread.c (process_one_symbol): Discard unused value.
4172 * coffread.c (coff_end_symtab): Delete unused variable.
4174 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4175 (dwarf2_add_typedef): Delete unused variable.
4176 (read_namespace): Ditto.
4177 (dwarf_decode_macros): Ditto.
4179 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4181 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4183 * p-valprint.c (pascal_val_print): Discard unused value.
4185 * utils.c (nquery): Call va_end before return;
4189 * proc-service.c (ps_plog): Call va_end before return.
4191 2011-02-28 Tom Tromey <tromey@redhat.com>
4193 * python/python.c (gdbpy_value_cst): New global.
4194 (_initialize_python): Initialize it.
4195 * python/python-internal.h (gdbpy_value_cst): Declare.
4196 * python/py-value.c (convert_value_from_python): Use
4199 2011-02-28 Michael Snyder <msnyder@vmware.com>
4201 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4203 * breakpoint.c (catch_syscall_completer): Free malloced list.
4205 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4207 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4208 (lval_func_check_synthetic_pointer): Ditto.
4209 (lval_func_free_closure): Fix use-after-free.
4211 2011-02-28 Tom Tromey <tromey@redhat.com>
4213 * psymtab.c (expand_partial_symbol_tables): Use
4214 ALL_OBJFILE_PSYMTABS.
4216 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4218 * objc-lang.c (selectors_info): Error on too long REGEXP.
4220 2011-02-28 Michael Snyder <msnyder@vmware.com>
4222 * python/py-param.c (set_parameter_value): Add missing
4225 * linux-record.c (record_linux_system_call): Add missing
4228 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4230 * breakpoint.c (print_one_breakpoint_location): Remove unused
4231 argument PRINT_ADDRESS_BITS. Update callers.
4232 (print_one_breakpoint): Likewise.
4234 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4236 * breakpoint.c (wrap_indent_at_field): New function.
4237 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4238 Allocate ui_stream locally instead of using STB argument.
4239 (print_one_breakpoint_location): Update call.
4240 * ui-out.c (ui_out_query_field): New function.
4241 * ui-out.h (ui_out_query_field): Add prototype.
4243 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4245 From Michael Snyder <msnyder@vmware.com>
4246 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4248 2011-02-27 Michael Snyder <msnyder@vmware.com>
4250 * objc-lang.c (selectors_info): Prevent string overrun.
4252 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4255 * symtab.c (rbreak_command): Move variable 'file_name' to
4258 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4259 param with a local variable of the same name.
4261 2011-02-27 Michael Snyder <msnyder@vmware.com>
4263 * value.c (value_from_history_ref): New function.
4264 * value.h (value_from_history_ref): Export.
4265 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4266 to parse value history references.
4267 * cli/cli-utils.h (get_number_trailer): Update comment.
4269 2011-02-27 Michael Snyder <msnyder@vmware.com>
4271 * inferior.c (detach_inferior_command): Use get_number_or_range.
4272 (kill_inferior_command): Ditto.
4273 (remove_inferior_command): Ditto.
4274 (initialize_inferiors): Make command names plural.
4275 Update help strings.
4277 2011-02-27 Michael Snyder <msnyder@vmware.com>
4279 * darwin-nat-info.c: Fix comment typo.
4280 * dwarf2expr.h: Ditto.
4281 * fbsd-nat.c: Ditto.
4282 * fbsd-nat.h: Ditto.
4283 * frame-unwind.h: Ditto.
4285 * hppa-hpux-tdep.c: Ditto.
4286 * i386-linux-nat.c: Ditto.
4287 * linux-nat.c: Ditto.
4288 * nbsd-nat.c: Ditto.
4289 * nbsd-nat.h: Ditto.
4290 * ppc-linux-tdep.c: Ditto.
4293 * tui/tui-winsource.c: Ditto.
4295 2011-02-26 Michael Snyder <msnyder@vmware.com>
4297 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4299 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4301 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4302 with a local variable of the same name.
4304 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4305 param with a local variable of the same name.
4306 (i387_supply_xsave): Ditto.
4308 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4309 that it does not shadow a function parameter.
4311 * i386-nat.c (i386_length_and_rw_bits): Document that case
4312 statement is meant to fall through.
4314 * expprint.c (dump_subexp_body_standard): Document that case
4315 statement is meant to fall through.
4317 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4318 dead if statement. Condition can't be false.
4320 2011-02-25 Michael Snyder <msnyder@vmware.com>
4322 * arm-tdep.c: Fix typos in comments.
4323 * bsd-uthread.c: Ditto.
4324 * completer.c: Ditto.
4326 * cp-namespace.c: Ditto.
4327 * cp-support.c: Ditto.
4328 * cris-tdep.c: Ditto.
4330 * dwarf2read.c: Ditto.
4332 * gdbtypes.h: Ditto.
4333 * inferior.h: Ditto.
4334 * mdebugread.c: Ditto.
4335 * mips-tdep.c: Ditto.
4336 * ppc-linux-nat.c: Ditto.
4337 * ppc-linux-tdep.c: Ditto.
4338 * printcmd.c: Ditto.
4339 * sol-thread.c: Ditto.
4340 * solib-frv.c: Ditto.
4342 * sparc64-tdep.c: Ditto.
4343 * spu-tdep.c: Ditto.
4344 * stabsread.c: Ditto.
4349 * python/py-block.c: Ditto.
4350 * python/py-symbol.c: Ditto.
4351 * python/py-symtab.c: Ditto.
4352 * python/py-value.c: Ditto.
4353 * tui/tui-win.c: Ditto.
4355 2011-02-25 Michael Snyder <msnyder@vmware.com>
4357 * inferior.c (print_inferior): Accept a string instead of an int
4358 for requested_inferiors, and use get_number_or_range to parse it.
4359 (info_inferiors_command): Pass args string to print_inferior.
4360 (initialize_inferiors): Change help string for info inferiors.
4361 * inferior.h (print_inferior): Export prototype change.
4363 2011-02-25 Tom Tromey <tromey@redhat.com>
4365 * common/ax.def (invalid2): Set to 0x31.
4367 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4369 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4371 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4373 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4375 2011-02-24 Michael Snyder <msnyder@vmware.com>
4377 * Makefile.in (clean): Make clean should remove generated files
4378 observer.h and observer.inc.
4380 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4382 Revert the following patch (not approved yet):
4383 2011-02-21 Hui Zhu <teawater@gmail.com>
4384 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4385 * ax-gdb.c (gen_printf_expr_callback): New function.
4386 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4387 * ax-general.c (ax_memcpy): New function.
4388 (ax_print): Handle "printf".
4390 * ax.h (ax_memcpy): Forward declare.
4391 * common/ax.def (invalid2): Removed.
4392 (printf): New entry.
4393 * printcmd.c (printcmd.h): New include.
4394 (string_printf): New function.
4395 (ui_printf): Removed.
4396 (printf_command): Remove static. Call string_printf.
4397 (eval_command): Call string_printf.
4398 * printcmd.h: New file.
4399 * tracepoint.c (validate_actionline,
4400 encode_actions_1): handle printf_command.
4402 2011-02-23 Tom Tromey <tromey@redhat.com>
4404 * ax-general.c (ax_pick): Add missing newline.
4406 2011-02-23 Michael Snyder <msnyder@vmware.com>
4408 * breakpoint.c (breakpoint_1): Change first argument from an int
4409 to a char pointer, so that the function now accepts a list of
4410 breakpoints rather than just one. Use new function
4411 'number_is_in_list' to implement.
4412 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4413 (watchpoints_info): Ditto.
4414 (tracepoints_info): Ditto.
4415 (maintenance_info_breakpoints): Ditto.
4416 (_initialize_breakpoint): Update help strings to reflect the fact
4417 that these functions can now take more than one argument.
4418 * cli/cli-utils.c (number_is_in_list): New function.
4419 * cli/cli-utils.h (number_is_in_list): Export.
4421 2011-02-23 Michael Snyder <msnyder@vmware.com>
4423 * memattr.c (mem_enable_command): Use get_number_or_range.
4424 (mem_disable_command): Ditto.
4425 (mem_delete_command): Ditto.
4426 (_initialize_mem): Tweak usage message to reflect multiple
4429 2011-02-22 Doug Evans <dje@google.com>
4431 Add gdb.lookup_global_symbol python function.
4433 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4434 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4435 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4437 2011-02-22 Tom Tromey <tromey@redhat.com>
4439 * language.c (language_class_name_from_physname): Rename
4440 'curr_language' argument to 'lang'; use in body.
4442 2011-02-22 Michael Snyder <msnyder@vmware.com>
4444 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4446 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4448 * frame-unwind.h: Fix comment to mention the this frame, not the
4451 2011-02-22 Tom Tromey <tromey@redhat.com>
4453 * symfile.c (auto_solib_limit): Remove.
4454 * symfile.h (auto_solib_limit): Remove.
4456 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4458 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4460 2011-02-21 Michael Snyder <msnyder@vmware.com>
4462 * gdbthread.h (print_thread_info): Change prototype.
4463 * thread.c (print_thread_info): Accept char* instead of int for
4464 requested_threads argument. Use new function number_is_in_list
4465 to determine which threads to list.
4466 (info_threads_command): Pass char* to print_thread_info.
4467 * cli/cli-utils.c (number_is_in_list): New function.
4468 * cli/cli-utils.h (number_is_in_list): Export.
4469 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4471 (print_one_inferior): Ditto.
4472 (mi_cmd_list_thread_groups): Ditto.
4474 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4476 * common/Makefile.in (CFLAGS): New.
4477 (COMPILE): Add $(CFLAGS).
4479 2011-02-21 Tom Tromey <tromey@redhat.com>
4481 * breakpoint.c (catch_syscall_command_1): Fix typo.
4483 2011-02-21 Tom Tromey <tromey@redhat.com>
4485 * reverse.c: Include cli-utils.h.
4486 * printcmd.c: Include cli-utils.h.
4487 (string_printf): Use skip_spaces.
4488 * cli/cli-utils.h: New file.
4489 * cli/cli-utils.c: New file.
4490 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4491 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4492 * breakpoint.h (get_number, get_number_or_range): Move to
4494 * breakpoint.c: Include cli-utils.h.
4495 (get_number_trailer, get_number, get_number_or_range)
4496 (ep_skip_leading_whitespace): Move to cli-utils.c.
4497 (create_breakpoint_sal, find_condition_and_thread)
4498 (decode_static_tracepoint_spec, watch_command_1)
4499 (watch_maybe_just_location, ep_parse_optional_if_clause)
4500 (catch_fork_command_1, catch_exec_command_1)
4501 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4502 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4503 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4504 (HFILES_NO_SRCDIR): Add cli-utils.h.
4505 (cli-utils.o): New target.
4507 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4509 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4510 before calling discard_all_inferiors.
4512 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4514 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4515 (struct builtin_opencl_type): Remove.
4516 (builtin_opencl_type): Change return type to "struct type **".
4517 (lookup_opencl_vector_type): Update caller.
4518 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4519 (build_opencl_types): Install plain array of "struct type *"
4520 instead of "struct builtin_opencl_type".
4522 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4523 Ulrich Weigand <uweigand@de.ibm.com>
4525 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4526 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4527 (struct arm_linux_hwbp_cap): New type.
4528 (arm_linux_get_hwbp_cap): New function.
4529 (arm_linux_get_hw_breakpoint_count): Likewise.
4530 (arm_linux_get_hw_watchpoint_count): Likewise.
4531 (arm_linux_can_use_hw_breakpoint): Likewise.
4532 (arm_hwbp_type): New type.
4533 (arm_hwbp_control_t): Likewise.
4534 (struct arm_linux_hw_breakpoint): Likewise.
4535 (struct arm_linux_thread_points): Likewise.
4536 (arm_threads): New global variable.
4537 (arm_linux_find_breakpoints_by_tid): New function.
4538 (arm_hwbp_control_initialize): Likewise.
4539 (arm_hwbp_control_is_enabled): Likewise.
4540 (arm_hwbp_control_disable): Likewise.
4541 (arm_linux_hw_breakpoint_initialize): Likewise.
4542 (arm_linux_get_hwbp_type): Likewise.
4543 (arm_linux_hw_watchpoint_initialize): Likewise.
4544 (arm_linux_hw_breakpoint_equal): Likewise.
4545 (arm_linux_insert_hw_breakpoint1): Likewise.
4546 (arm_linux_remove_hw_breakpoint1): Likewise.
4547 (arm_linux_insert_hw_breakpoint): Likewise.
4548 (arm_linux_remove_hw_breakpoint): Likewise.
4549 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4550 (arm_linux_insert_watchpoint): Likewise.
4551 (arm_linux_remove_watchpoint): Likewise.
4552 (arm_linux_stopped_data_address): Likewise.
4553 (arm_linux_stopped_by_watchpoint): Likewise.
4554 (arm_linux_watchpoint_addr_within_range): Likewise.
4555 (arm_linux_new_thread): Likewise.
4556 (arm_linux_thread_exit): Likewise.
4557 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4558 related target callbacks. Register arm_linux_new_thread and
4559 arm_linux_thread_exit.
4560 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4561 * arm-tdep.c (arm_pc_is_thumb): Make global.
4562 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4564 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4566 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4567 per-frame locations while within a function epilogue.
4569 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4571 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4572 to GNU coding standards.
4574 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4576 Allow use of mingw native on Windows 95 OS.
4577 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4578 (ser_windows_close): Only call CancelIo if function exists.
4579 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4580 to check for existence of CancelIo function in kernel32 DLL.
4582 2011-02-21 Hui Zhu <teawater@gmail.com>
4584 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4585 * ax-gdb.c (gen_printf_expr_callback): New function.
4586 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4587 * ax-general.c (ax_memcpy): New function.
4588 (ax_print): Handle "printf".
4590 * ax.h (ax_memcpy): Forward declare.
4591 * common/ax.def (invalid2): Removed.
4592 (printf): New entry.
4593 * printcmd.c (printcmd.h): New include.
4594 (string_printf): New function.
4595 (ui_printf): Removed.
4596 (printf_command): Remove static. Call string_printf.
4597 (eval_command): Call string_printf.
4598 * printcmd.h: New file.
4599 * tracepoint.c (validate_actionline,
4600 encode_actions_1): handle printf_command.
4602 2011-02-19 Michael Snyder <msnyder@vmware.com>
4604 * reverse.c (delete_one_bookmark): Argument is now bookmark
4605 id rather than pointer to bookmark struct.
4606 (delete_bookmark_command): Use get_number_or_range.
4607 (goto_bookmark_command): Parse with get_number instead of strtoul.
4608 (bookmark_1): New function. Print info for one bookmark.
4609 (bookmarks_info): Use get_number_or_range and bookmark_1.
4611 2011-02-18 Michael Snyder <msnyder@vmware.com>
4613 * thread.c (info_threads_command): Re-implement using
4614 get_number_or_range.
4615 (thread_apply_command): Ditto.
4617 2011-02-18 Tom Tromey <tromey@redhat.com>
4619 * common/ax.def: New file.
4620 * ax.h (enum agent_op): Use ax.def.
4621 * ax-general.c (aop_map): Use ax.def.
4623 2011-02-18 Tom Tromey <tromey@redhat.com>
4625 * ax-general.c (aop_map): Add pick and rot.
4626 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4627 <DW_OP_rot>: Implement.
4628 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4630 * ax-general.c (ax_pick): New function.
4632 2011-02-18 Tom Tromey <tromey@redhat.com>
4634 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4636 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4637 Tom Tromey <tromey@redhat.com>
4639 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4640 make_symbol_overload_list_block with NULL BLOCK.
4641 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4643 2011-02-18 Pedro Alves <pedro@codesourcery.com>
4645 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4646 * breakpoint.h (get_number_or_range): Declare.
4647 * printcmd.c (ALL_DISPLAYS): Declare.
4648 (delete_display): Reimplement taking a display pointer.
4649 (undisplay_command): Accept a range of displays to delete, using
4650 get_number_or_range.
4652 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4654 * c-valprint.c (c_val_print): Add embedded_offset to address
4655 for arrays of unspecified length.
4656 * p-valprint.c (pascal_val_print): Likewise.
4658 2011-02-18 Yao Qi <yao@codesourcery.com>
4660 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4661 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4662 (thumb_process_displaced_insn): New.
4663 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4664 call to arm_process_displaced_insn.
4665 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4667 2011-02-17 Tom Tromey <tromey@redhat.com>
4669 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4670 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4671 compile_dwarf_to_ax. No longer static. Call
4672 dwarf2_compile_cfa_to_ax.
4673 (locexpr_tracepoint_var_ref): Update.
4674 (loclist_tracepoint_var_ref): Update.
4675 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4676 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4677 argument; add 'gdbarch' and 'pc'.
4678 (dwarf2_compile_cfa_to_ax): New function.
4679 (dwarf2_frame_cache): Update.
4681 2011-02-17 Joel Brobecker <brobecker@adacore.com>
4683 * ada-lang.c (ada_type_of_array): Fix the size of the array
4684 in the case of an unconstrained packed array.
4686 2011-02-17 Yao Qi <yao@codesourcery.com>
4688 * common/Makefile.in: Add more targets for make.
4690 2011-02-16 Tom Tromey <tromey@redhat.com>
4692 * dwarf2loc.c (unimplemented): Fix typo.
4694 2011-02-16 Tom Tromey <tromey@redhat.com>
4696 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4697 (compile_dwarf_to_ax) <default>: Use unimplemented.
4698 <DW_OP_deref>: Update.
4699 (disassemble_dwarf_expression): Update.
4700 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4701 (decode_locdesc): Update.
4702 * dwarf2expr.h (dwarf_stack_op_name): Update.
4704 2011-02-16 Tom Tromey <tromey@redhat.com>
4706 * ax.h (struct aop_map) <name>: Now const.
4708 2011-02-16 Tom Tromey <tromey@redhat.com>
4710 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4713 2011-02-16 Yao Qi <yao@codesourcery.com>
4715 * infrun.c (get_displaced_step_closure_by_addr): New.
4716 * inferior.h: Declare it.
4717 * arm-tdep.c: (arm_pc_is_thumb): Call
4718 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4721 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4722 Jan Kratochvil <jan.kratochvil@redhat.com>
4725 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4727 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4728 Jan Kratochvil <jan.kratochvil@redhat.com>
4730 * value.c (value_contents_copy_raw): Extend describing comment.
4731 Assert that the destination contents we're overwriting are wholly
4733 (value_contents_copy): Extend describing comment.
4735 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4736 Jan Kratochvil <jan.kratochvil@redhat.com>
4738 * value.c (value_available_contents_eq): Remove redundant local
4739 variables. Fix available contents comparision.
4740 * value.h (value_available_contents_eq): Extend describing
4743 2011-02-16 Yao Qi <yao@codesourcery.com>
4745 * thread.c (info_threads_command): Add missing i18n markup and remove
4748 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4750 * breakpoint.c (longjmp_names): New variable.
4751 (struct breakpoint_objfile_data): New type.
4752 (breakpoint_objfile_key): New variable.
4753 (msym_not_found): New variable.
4754 (msym_not_found_p): New predicate.
4755 (get_breakpoint_objfile_data): New function.
4756 (create_overlay_event_breakpoint): Check per-objfile cache for
4758 (create_longjmp_master_breakpoint): Likewise.
4759 (create_std_terminate_master_breakpoint): Likewise.
4760 (create_exception_master_breakpoint): Likewise.
4761 (_initialize_breakpoint): Register per-objfile data key.
4763 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4765 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4767 (create_longjmp_master_breakpoint): Loop over longjmp names.
4768 (create_std_terminate_master_breakpoint): Const-propagate parameter
4770 (update_breakpoints_after_exec): Adjust.
4771 (breakpoint_re_set): Adjust.
4773 2011-02-15 Michael Snyder <msnyder@vmware.com>
4775 * thread.c (info_threads_command): Process arg as thread id,
4776 or list of thread ids.
4777 (thread_find_command): New command.
4778 (_initialize_thread): Document argument for info threads.
4779 Document 'thread find' command.
4780 * NEWS: Document new command "thread find".
4782 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4784 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4785 * aclocal.m4: Regenerated with aclocal-1.11.1.
4786 * common/configure: Regenerate with autoconf-2.64.
4788 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
4790 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4791 bool data type to a size of one byte.
4793 2011-02-15 Pedro Alves <pedro@codesourcery.com>
4794 Jan Kratochvil <jan.kratochvil@redhat.com>
4796 * target.c (memory_xfer_live_readonly_partial): Document where to
4797 look for interface description.
4799 2011-02-15 Yao Qi <yao@codesourcery.com>
4802 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4803 order to store PC value on stack instead of text section.
4805 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4807 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4808 the EFP register set size.
4809 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4810 data from the VMX register.
4811 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4812 and write data from/to the VMX register.
4814 2011-02-14 Michael Snyder <msnyder@vmware.com>
4816 * command.h (enum command_class): New class 'no_set_class', for
4817 "show" commands without a corresponding "set" command.
4818 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4819 * copying.c (_initialize_copying): Ditto for "show copying" and
4821 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4823 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4824 which there is no corresponding "set" command (eg. "show copying").
4826 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4827 Jan Kratochvil <jan.kratochvil@redhat.com>
4829 * exec.c (section_table_available_memory): Change `len' parameter
4831 * exec.h (section_table_available_memory): Ditto.
4832 * value.h (read_value_memory): Rename the `offset' parameter to
4835 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4836 Jan Kratochvil <jan.kratochvil@redhat.com>
4838 * memrange.c (compare_mem_ranges): Mention sort order in
4840 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4841 * tracepoint.c (traceframe_available_memory): Extend comment to
4842 mention what happens to RESULT when the target does not support
4845 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4846 Jan Kratochvil <jan.kratochvil@redhat.com>
4848 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4851 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4853 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4854 No longer handle NULL values.
4856 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4858 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4859 * value.c: Include "exceptions.h".
4860 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4862 * cp-abi.c: Include gdb_assert.h.
4863 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4864 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4866 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4867 parameters. No longer returns -1 on error.
4868 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4870 * cp-valprint.c: Include exceptions.h.
4871 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4872 the baseclass_offset. Handle unavailable base classes. Use
4873 val_print_invalid_address.
4874 * p-valprint.c: Include exceptions.h.
4875 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4876 when fetching the baseclass_offset. No longer expect
4877 baseclass_offset returning -1. Handle unavailable base classes.
4878 Use val_print_invalid_address.
4879 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4880 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4881 `embedded_offset' and `val' parameters. Adjust.
4882 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4883 parameter, and change its type to gdb_byte pointer. Add
4884 `embedded_offset' and `val' parameters. Adjust. No longer expect
4885 baseclass_offset returning -1.
4886 (value_dynamic_cast): Use value_contents_for_printing rather than
4887 value_contents. Adjust.
4888 (search_struct_field): No longer expect baseclass_offset returning
4890 (search_struct_method): If reading memory from the target is
4891 necessary, wrap it in a new value to pass to baseclass_offset. No
4892 longer expect baseclass_offset returning -1.
4893 (find_method_list): No longer expect baseclass_offset returning
4894 -1. Use value_contents_for_printing rather than value_contents.
4895 * valprint.c (val_print_invalid_address): New function.
4896 * valprint.h (val_print_invalid_address): Declare.
4897 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4898 and `val' parameters. No longer expect baseclass_offset returning
4900 * gnu-v2-abi.c: Include "exceptions.h".
4901 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4902 parameters. Handle unavailable memory. Recurse through
4903 gnuv2_baseclass_offset directly, rather than through
4904 baseclass_offset. No longer returns -1 on not found, instead
4906 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4907 `val' parameters. Adjust.
4909 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4911 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4912 almost but not quite adjacent.
4914 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4916 * value.h (value_entirely_available): Declare.
4917 * value.c (value_entirely_available): New function.
4918 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4919 real type if the pointer is unavailable.
4921 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4923 * valops.c (value_repeat): Use read_value_memory instead of
4926 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4928 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4929 * value.c (value_contents_copy_raw, value_contents_copy): New
4931 (value_primitive_field): Use value_contents_copy_raw instead of
4933 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4935 (value_array, value_slice): Ditto.
4936 * valarith.c (value_subscripted_rvalue): Use
4937 value_contents_copy_raw instead of memcpy.
4939 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4941 <unavailable> references.
4943 * valops.c (get_value_at): Use value_from_contents_and_address,
4944 avoiding read_memory.
4946 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4948 * c-valprint.c (c_val_print): Print a string with unavailable
4949 contents as an array.
4951 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4953 * value.h (unpack_bits_as_long): Delete declaration.
4954 (unpack_value_bits_as_long): Declare.
4955 (unpack_value_field_as_long): Declare.
4956 (value_field_bitfield): Declare.
4957 * value.c (unpack_bits_as_long): Rename to...
4958 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4959 value parameters. Return the extracted result in a new output
4960 parameter. If the value contents are unavailable, return false,
4961 otherwise return true.
4962 (unpack_value_bits_as_long): New.
4963 (unpack_field_as_long): Rename to...
4964 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4965 Add embedded_offset and value parameters. Return the extracted
4966 result in a new output parameter. If the value contents are
4967 unavailable, return false, otherwise return true.
4968 (unpack_value_field_as_long): New.
4969 (unpack_field_as_long_1): New.
4970 (unpack_field_as_long): Reimplement as wrapper around
4971 unpack_value_field_as_long_1.
4972 (value_field_bitfield): New function.
4973 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4974 unpack_value_bits_as_long. Mark the value as unavailable, if it
4976 * jv-valprint.c (java_print_value_fields): Use
4977 value_field_bitfield.
4978 * p-valprint.c (pascal_object_print_value_fields): Use
4979 value_field_bitfield.
4980 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4982 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4984 * value.c (get_internalvar_integer): Also return the int value of
4985 TYPE_CODE_INT INTERNALVAR_VALUE values.
4986 (set_internalvar): Don't special case TYPE_CODE_INT.
4988 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4990 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4991 INTERNALVAR_POINTER.
4993 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4994 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4995 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4997 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4999 * value.h (value_available_contents_eq): Declare.
5000 * value.c (find_first_range_overlap): New function.
5001 (value_available_contents_eq): New function.
5002 * valprint.c (val_print_array_elements): Use
5003 value_available_contents_eq.
5004 * ada-valprint.c (val_print_packed_array_elements): Use
5005 value_available_contents_eq.
5006 * jv-valprint.c (java_value_print): Use
5007 value_available_contents_eq.
5009 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5011 * target.c (target_read_live_memory): New function.
5012 (memory_xfer_live_readonly_partial): New.
5013 (memory_xfer_partial): If reading from a traceframe, fallback to
5014 reading unavailable read-only memory from read-only regions of
5016 * tracepoint.c (disconnect_tracing): Adjust.
5017 (set_current_traceframe): New, factored out from
5018 set_traceframe_number.
5019 (set_traceframe_number): Reimplement to only change the traceframe
5020 number on the GDB side.
5021 (do_restore_current_traceframe_cleanup): Adjust.
5022 (make_cleanup_restore_traceframe_number): New.
5023 (cur_traceframe_number): New global.
5024 (tfile_open): Set cur_traceframe_number to no traceframe.
5025 (set_tfile_traceframe): New function.
5026 (tfile_trace_find): If looking up a traceframe using any method
5027 other than by number, make sure the current tfile traceframe
5028 matches gdb's current traceframe. Update the current tfile
5029 traceframe if the lookup succeeded.
5030 (tfile_fetch_registers, tfile_xfer_partial)
5031 (tfile_get_trace_state_variable_value): Make sure the remote
5032 traceframe matches gdb's current traceframe.
5033 * remote.c (remote_traceframe_number): New global.
5034 (remote_open_1): Set it to -1.
5035 (set_remote_traceframe): New function.
5036 (remote_fetch_registers, remote_store_registers)
5037 (remote_xfer_memory, remote_xfer_partial)
5038 (remote_get_trace_state_variable_value): Make sure the remote
5039 traceframe matches gdb's current traceframe.
5040 (remote_trace_find): If looking up a traceframe using any method
5041 other than by number, make sure the current remote traceframe
5042 matches gdb's current traceframe. Update the current remote
5043 traceframe if the lookup succeeded.
5044 * infrun.c (fetch_inferior_event): Adjust.
5045 * tracepoint.h (set_current_traceframe): Declare.
5046 (get_traceframe_number, set_traceframe_number): Add describing
5049 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5051 Mark pieces of values as unavailable if the corresponding memory
5054 * valops.c: Include tracepoint.h.
5055 (value_fetch_lazy): Use read_value_memory.
5056 (read_value_memory): New.
5057 * value.h (read_value_memory): Declare.
5058 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5059 * exec.c (section_table_available_memory): New function.
5060 * exec.h (section_table_available_memory): Declare.
5062 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5064 * Makefile.in (SFILES): Add memrange.c.
5065 (HFILES_NO_SRCDIR): Add memrange.h.
5066 (COMMON_OBS): Add memrange.o.
5067 * memrange.c: New file.
5068 * memrange.h: New file.
5069 * tracepoint.c: Include memrange.h.
5070 (struct mem_range): Delete.
5071 (mem_range_s): Delete.
5072 (traceframe_available_memory): New function.
5073 * tracepoint.h (traceframe_available_memory): Declare.
5075 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5077 * target.h (struct traceframe_info): Forward declare.
5078 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5079 (struct target_ops) <to_traceframe_info>: New field.
5080 (target_traceframe_info): New.
5081 * target.c (update_current_target): Inherit and default
5083 * remote.c (PACKET_qXfer_traceframe_info): New.
5084 (remote_protocol_features): Register qXfer:traceframe-info:read.
5085 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5086 (remote_traceframe_info): New.
5087 (init_remote_ops): Install it.
5088 (_initialize_remote): Install "set/show remote traceframe-info"
5090 * tracepoint.h (parse_traceframe_info): Declare.
5091 * tracepoint.c (struct mem_range): New.
5092 (mem_range_s): New typedef.
5093 (struct traceframe_info): New.
5094 (traceframe_info): New global.
5095 (free_traceframe_info): New function.
5096 (clear_traceframe_info): New function.
5097 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5099 (build_traceframe_info): New function.
5100 (tfile_traceframe_info): New function.
5101 (init_tfile_ops): Install tfile_traceframe_info.
5102 (traceframe_info_start_memory, free_result): New functions.
5103 (memory_attributes, traceframe_info_elements): New globals.
5104 (parse_traceframe_info, get_traceframe_info): New functions.
5105 * features/traceframe-info.dtd: New file.
5106 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5108 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5110 Base support for <unavailable> value contents.
5112 * value.h (value_bytes_available): Declare.
5113 (mark_value_bytes_unavailable): Declare.
5114 * value.c (struct range): New struct.
5115 (range_s): New typedef.
5116 (ranges_overlap): New function.
5117 (range_lessthan): New function.
5118 (ranges_contain_p): New function.
5119 (struct value) <unavailable>: New field.
5120 (value_bytes_available): New function.
5121 (mark_value_bytes_unavailable): New function.
5122 (require_not_optimized_out): Constify parameter.
5123 (require_available): New function.
5124 (value_contents_all, value_contents): Require all bytes be
5126 (value_free): Free `unavailable'.
5127 (value_copy): Copy `unavailable'.
5128 * valprint.h (val_print_unavailable): Declare.
5129 * valprint.c (valprint_check_validity): Rename `offset' parameter
5130 to `embedded_offset'. If printing a scalar, check whether the
5131 value chunk is available.
5132 (val_print_unavailable): New.
5133 (val_print_scalar_formatted): Check whether the value is
5135 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5136 pretty-printing unavailable values.
5138 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5140 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5141 * c-typeprint.c (c_type_print_args): Update the function comment. New
5142 variable param_type, initialize it. Remove const/volatile qualifiers
5143 for language_cplus and !show_artificial. Use param_type.
5145 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5147 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5148 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5149 * symtab.h (struct symtab) <next>: Comment extension.
5151 2011-02-12 Yao Qi <yao@codesourcery.com>
5153 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5155 2011-02-11 Yao Qi <yao@codesourcery.com>
5157 * common/Makefile.in: Add copyright header.
5159 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5161 * infrun.c (proceed): Move switching out and in of tfind mode from
5163 (fetch_inferior_event): ... to here.
5165 2011-02-11 Yao Qi <yao@codesourcery.com>
5167 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5169 * configure.ac: Add common to sub dir.
5170 * configure: Regenerate.
5172 2011-02-11 Yao Qi <yao@codesourcery.com>
5176 * common/Makefile.in: New.
5177 * common/configure.ac: New.
5178 * common/aclocal.m4: New.
5179 * common/configure: Generate.
5181 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5183 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5184 side of the parenthesis.
5187 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5188 * vec.h (VEC_block_remove): Fix comment.
5190 2011-02-08 Michael Snyder <msnyder@vmware.com>
5192 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5194 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5196 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5197 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5200 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5203 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5205 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5206 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5208 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5210 * dwarf2read.c (read_subroutine_type): Set special calling
5211 convention flag for functions compiled by IBM XL C for OpenCL.
5212 * ppc-sysv-tdep.c: Include "dwarf2.h"
5213 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5215 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5216 IBM OpenCL vector types calling convention.
5217 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5218 (ppc_sysv_abi_broken_return_value): Likewise.
5219 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5220 types calling convention.
5221 (ppc64_sysv_abi_return_value): Likewise.
5222 * spu-tdep.c: Include "dwarf2.h"
5223 (spu_return_value): Implement IBM OpenCL vector types calling
5226 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5228 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5229 correct ABI for AltiVec vector arguments.
5231 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5233 * valprint.c (val_print): Extend comment.
5234 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5235 interface explanation to val_print.
5236 (ada_val_print_array): Adjust comment to current interface.
5237 (print_field_values): Adjust comment to current interface.
5238 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5239 explanation to val_print.
5240 * f-valprint.c (f_val_print): Ditto.
5241 * jv-valprint.c (java_val_print): Ditto.
5242 * m2-valprint.c (m2_val_print): Ditto.
5243 * p-valprint.c (pascal_val_print): Ditto.
5245 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5247 * breakpoint.c (parse_breakpoint_sals): Fix description.
5249 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5250 Oguz Kayral <oguzkayral@gmail.com>
5252 * python/py-inferior.c (python_on_normal_stop): New function.
5253 (python_on_resume): New function.
5254 (python_inferior_exit): New function.
5255 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5256 inferior_exit observers.
5257 * python/py-evtregistry.c: New file.
5258 * python/py-threadevent.c : New file.
5259 * python/py-event.c: New file.
5260 * python/py-evts.c: New file.
5261 * python/py-continueevent.c: New file.
5262 * python/py-bpevent.c: New file.
5263 * python/py-signalevent.c: New file.
5264 * python/py-exetiedevent.c: New file.
5265 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5266 Move struct breakpoint_object from here...
5267 * python/python-internal.h: ... to here.
5268 * python/py-event.h: New file.
5269 * python/py-events.h: New file.
5270 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5271 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5272 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5273 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5274 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5275 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5276 Add build rules for all the above.
5278 2011-02-04 Tom Tromey <tromey@redhat.com>
5280 * dwarf2read.c (dwarf2_section_empty_p): New function.
5281 (dwarf2_read_section): Use dwarf2_section_empty_p.
5282 (dwarf2_section_size): New function.
5283 (dwarf2_get_section_info): Unconditionally read section.
5284 (dwarf2_read_index): Use dwarf2_section_empty_p.
5285 (partial_read_comp_unit_head): Use dwarf2_section_size.
5286 (dwarf2_symbol_mark_computed): Likewise.
5288 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5290 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5292 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5294 * mips-linux-tdep.c: Include xml-syscall.h.
5295 (mips_linux_get_syscall_number): New function.
5296 (mips_linux_init_abi): Add calls to
5297 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5298 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5299 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5300 * syscalls/mips-n32-linux.xml: New file.
5301 * syscalls/mips-n64-linux.xml: New file.
5302 * syscalls/mips-o32-linux.xml: New file.
5304 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5306 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5307 Complain about inverted range entries.
5308 (dwarf2_record_block_ranges): Likewise.
5310 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5313 * breakpoint.c (update_watchpoint): Fix name of the
5314 update_global_location_list function.
5315 (print_one_breakpoint): Fix typo.
5316 (_initialize_breakpoint): Remove extra space in hbreak help
5318 * breakpoint.h (struct bp_location) <length>: Fix field
5321 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5323 * regcache.c (registers_changed_ptid): Don't explictly always
5324 clear `current_regcache'. Only clear current_thread_ptid and
5325 current_thread_arch when PTID matches. Only reinit the frame
5326 cache if PTID matches the current inferior_ptid. Move alloca(0)
5328 (registers_changed): ... here.
5330 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5332 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5333 starts with __stack_chk_guard as stack guard symbol.
5335 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5337 * disasm.c (compare_lines): Handle the end of sequence markers
5338 within the line table to better support disassembling over
5339 compilation unit boundaries.
5341 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5343 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5344 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5345 implementation even if no symbols are available.
5346 (thumb_analyze_prologue): Update call to skip_prologue_function.
5347 (arm_analyze_prologue): Likewise.
5349 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5351 * arm-tdep.c: Include "observer.h".
5352 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5353 (arm_exidx_data_key): New static variable.
5354 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5355 (struct arm_exidx_data): Likewise.
5356 (arm_exidx_data_free): New function.
5357 (arm_compare_exidx_entries): Likewise.
5358 (arm_obj_section_from_vma): Likewise.
5359 (arm_exidx_new_objfile): Likewise.
5360 (arm_find_exidx_entry): Likewise.
5361 (arm_exidx_fill_cache): Likewise.
5362 (arm_exidx_unwind_sniffer): Likewise.
5363 (arm_exidx_unwind): New global variable.
5364 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5365 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5366 observer. Register arm_exidx_data_key as objfile data.
5368 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5370 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5371 due to accessing uninitialized variable. Fix indentation.
5373 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5375 * c-valprint.c (c_value_print): When doing virtual base pointer
5376 adjustment, create a new value with adjusted contents rather than
5377 changing the contents of the value being printed (and getting it
5380 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5382 * xml-support.c (xml_find_attribute): New.
5383 (xinclude_start_include): Use it.
5384 * xml-support.h (xml_find_attribute): Declare.
5385 * memory-map.c (memory_map_start_memory)
5386 (memory_map_start_property): Use xml_find_attribute.
5387 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5389 * remote.c (start_thread): Use xml_find_attribute.
5390 * solib-target.c (library_list_start_segment)
5391 (library_list_start_section, library_list_start_library)
5392 (library_list_start_list): Use xml_find_attribute.
5393 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5394 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5395 (tdesc_start_field): Use xml_find_attribute.
5397 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5399 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5400 (BUILD_OCL_VTYPES): Update.
5402 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5404 * configure.ac: Work around non-GNU sed limitation when computing
5405 python version number.
5406 * configure: Regenerate.
5408 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5410 Fix debug printing of TYPE_INSTANCE.
5411 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5412 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5414 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5416 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5417 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5418 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5419 * ada-operator.inc: Rename the file to ...
5420 * ada-operator.def: ... here, wrap all the entries by macro OP.
5421 * expprint.c (op_name_standard): Remove all the entries. Include
5422 "std-operator.def" instead.
5423 * expression.h (enum exp_opcode): Include "std-operator.def" and
5424 "ada-operator.def". Move all the entries ...
5425 * std-operator.def: ... here, wrap all the entries by macro OP.
5427 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5429 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5430 * breakpoint.c (remove_jit_event_breakpoints): New function.
5431 * jit.c (jit_descriptor_addr): Delete.
5432 (registering_code): Delete.
5433 (clear_int): Delete.
5434 (jit_inferior_data): New variable.
5435 (struct jit_inferior_data): New type.
5436 (get_jit_inferior_data): New function.
5437 (jit_inferior_data_cleanup): New function.
5438 (jit_read_descriptor): Adjust.
5439 (jit_register_code): Adjust.
5440 (jit_breakpoint_re_set_internal): New function; move code here ...
5441 (jit_inferior_init): ... from here.
5442 (jit_breakpoint_re_set): Adjust.
5443 (jit_reset_inferior_data_and_breakpoints): New function.
5444 (jit_inferior_created_observer): Adjust.
5445 (jit_inferior_exit_hook): Adjust.
5446 (jit_executable_changed_observer): New function.
5447 (jit_event_handler): Adjust.
5448 (_initialize_jit): Adjust.
5450 2011-01-31 Michael Snyder <msnyder@vmware.com>
5452 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5455 2011-01-31 Tom Tromey <tromey@redhat.com>
5458 * python/python.c (execute_gdb_command): Call
5459 prevent_dont_repeat.
5460 * top.c (suppress_dont_repeat): New global.
5461 (dont_repeat): Use it.
5462 (prevent_dont_repeat): New function.
5463 * command.h (prevent_dont_repeat): Declare.
5465 2011-01-31 Tom Tromey <tromey@redhat.com>
5467 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5468 * python/py-breakpoint.c (bppy_set_silent): Use
5469 breakpoint_set_silent.
5470 (bppy_set_thread): Use breakpoint_set_thread.
5471 (bppy_set_task): Use breakpoint_set_task.
5472 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5473 (breakpoint_set_task): Declare.
5474 (make_breakpoint_silent): Remove.
5475 * breakpoint.c (breakpoint_set_silent): New function.
5476 (breakpoint_set_thread): Likewise.
5477 (breakpoint_set_task): Likewise.
5478 (make_breakpoint_silent): Remove.
5480 2011-01-31 Tom Tromey <tromey@redhat.com>
5482 * breakpoint.h (user_breakpoint_p): Declare.
5483 * breakpoint.c (user_breakpoint_p): New function.
5484 (breakpoint_1): Use it.
5485 (save_breakpoints): Likewise.
5487 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5489 * configure.ac: Add handling of Python distribution on Windows.
5490 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5491 sysconfig variables are not defined, then do not use them.
5492 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5493 instead. On Windows, return all paths using forward-slashes
5494 rather than backslashes.
5496 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5498 * configure.ac: Remove fallback behavior for building
5499 against Python. Remove tweaking of Python include path.
5500 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5501 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5502 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5503 Always restore CPPFLAGS and LIBS after linking test.
5504 * configure: Regenerated.
5505 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5506 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5507 * python/python-internal.h: Adjust includes of Python .h files.
5509 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5511 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5514 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5516 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5519 2011-01-31 Yao Qi <yao@codesourcery.com>
5521 * arm-linux-nat.c: Update calls to regcache_register_status
5522 instead of regcache_valid_p.
5523 * aix-thread.c: Likewise.
5524 * i386gnu-nat.c: Likewise.
5526 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5529 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5530 touching TYPE_FIELD_ARTIFICIAL.
5532 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
5534 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5537 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5539 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5540 selected, don't try iterating over the traceframe's blocks.
5541 (tfile_has_stack): If there's no traceframe selected, then there's
5543 (tfile_has_registers): If there's no traceframe selected, then
5544 there's no registers.
5546 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5548 * target.c (memory_xfer_partial): No need to restore shadows if we
5549 haven't read anything.
5551 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5553 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5554 and val_print_scalar_formatted.
5556 2011-01-27 Pedro Alves <pedro@codesourcery.com>
5558 * tracepoint.c (tfile_read): New.
5559 (tfile_open): Use it.
5560 (tfile_get_traceframe_address): Use it.
5561 (tfile_trace_find): Use it.
5562 (walk_blocks_callback_func): New typedef.
5563 (match_blocktype): New function.
5564 (traceframe_walk_blocks): New function.
5565 (traceframe_find_block_type): New function.
5566 (tfile_fetch_registers, tfile_xfer_partial)
5567 (tfile_get_trace_state_variable_value): Use
5568 traceframe_find_block_type and tfile_read.
5570 2011-01-26 Kevin Buettner <kevinb@redhat.com>
5572 * remote-mips.c: Add internationalization mark ups. Remove
5573 trailing \n from already marked up strings.
5575 2011-01-26 Tom Tromey <tromey@redhat.com>
5577 * python/py-prettyprint.c (print_string_repr): Clear
5578 'addressprint' option when calling val_print_string.
5579 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5580 option when calling val_print_string.
5582 2011-01-26 Tom Tromey <tromey@redhat.com>
5584 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5586 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5588 (gdb_py_longest, gdb_py_ulongest): New typedefs.
5589 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5590 (gdb_py_long_as_ulongest): New defines.
5591 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5592 (gdb_py_int_as_long): Declare.
5593 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5594 GDB_PY_LL_ARG, gdb_py_object_from_longest.
5595 (valpy_long): Add comment.
5596 * python/py-utils.c (get_addr_from_python): Use
5597 gdb_py_long_as_ulongest. Handle overflow properly.
5598 (gdb_py_object_from_longest): New function.
5599 (gdb_py_object_from_ulongest): Likewise.
5600 (gdb_py_int_as_long): Likewise.
5601 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5602 * python/py-symtab.c (salpy_get_pc): Use
5603 gdb_py_long_from_ulongest.
5604 (salpy_get_line): Use PyInt_FromLong.
5605 * python/py-param.c (set_parameter_value): Use
5607 * python/py-lazy-string.c (stpy_get_address): Use
5608 gdb_py_long_from_ulongest.
5609 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5610 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5611 * python/py-breakpoint.c (bppy_set_thread): Use
5613 (bppy_set_task): Likewise.
5614 (bppy_set_ignore_count): Likewise.
5615 (bppy_set_hit_count): Likewise.
5616 * python/py-block.c (blpy_get_start): Use
5617 gdb_py_object_from_ulongest.
5618 (blpy_get_end): Likewise.
5619 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5621 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
5624 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5625 * gdb/solib.c (solib_read_symbols): Check for addr_low in
5626 equality test for objfile, initialize addr_low if needed.
5628 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5630 * tui/tui-regs.c (tui_register_format): Remove dead code.
5632 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5634 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5635 instead of print_scalar_formatted.
5636 (print_scalar_formatted): Don't handle 's' format strings here,
5637 and add an assertion that we never see such format here.
5638 * valprint.h (val_print_scalar_formatted): Declare.
5639 * valprint.c (val_print_scalar_formatted): New.
5640 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5641 instead of print_scalar_formatted.
5642 * jv-valprint.c (java_val_print): Ditto.
5643 * p-valprint.c (pascal_val_print): Ditto.
5644 * ada-valprint.c (ada_val_print_1): Ditto.
5645 * f-valprint.c (f_val_print): Ditto.
5646 * infcmd.c (registers_info): Ditto.
5647 * m2-valprint.c (m2_val_print): Ditto.
5649 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5651 * m2-valprint.c (print_unbounded_array): Pass
5652 value_contents_for_printing rather than value_contents, to
5653 m2_print_array_contents. Also pass in the value.
5655 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5657 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5658 (save_gdb_index_command): Switch to .gdb_index version 4.
5660 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5662 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5663 than frame_register, and always pass a valid value to val_print.
5665 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5667 Centralize printing "<optimized out>".
5669 * valprint.h (val_print_optimized_out): Declare.
5670 * cp-valprint.c (cp_print_value_fields): Use
5671 val_print_optimized_out.
5672 * jv-valprint.c (java_print_value_fields): Ditto.
5673 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5674 * printcmd.c (print_formatted): Ditto.
5675 * valprint.c (valprint_check_validity): Ditto.
5676 (value_check_printable): Ditto.
5677 (val_print_optimized_out): New.
5679 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5681 * infcmd.c (default_print_registers_info): Allocate values so to
5682 never pass a NULL value to val_print.
5684 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5686 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5687 boolean. Make sure to always pass a value that matches the
5688 contents buffer to callees. Preserve `address' for following
5690 * value.c (value_contents_for_printing_const): New.
5691 (value_address): Constify value argument.
5692 * value.h (value_contents_for_printing_const): Declare.
5693 (value_address): Constify value argument.
5695 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5697 * regcache.c (struct regcache_descr): Rename
5698 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5699 and sizeof_cooked_register_valid_p to
5700 sizeof_cooked_register_status.
5701 (init_regcache_descr): Adjust.
5702 (struct regcache): Rename register_valid_p field to
5704 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5705 (do_cooked_read): Adjust.
5706 (regcache_valid_p): Rename to ...
5707 (regcache_register_status): ... this. Adjust.
5708 (regcache_invalidate): Adjust.
5709 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5711 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5712 as unavailable, not valid.
5713 (regcache_dump): Adjust.
5714 * regcache.h (enum register_status): New.
5715 (regcache_register_status): Declare.
5716 (regcache_invalidate): Delete declaration.
5717 * corelow.c (get_core_registers): Adjust.
5718 * tracepoint.c (tfile_fetch_registers): Adjust.
5719 * trad-frame.c (REG_VALUE): Rename to ...
5720 (TF_REG_VALUE): ... this.
5721 (REG_UNKNOWN): Rename to ...
5722 (TF_REG_UNKNOWN): ... this.
5723 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5724 * mi/mi-main.c (register_changed_p): Adjust.
5726 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5728 * regcache.c (struct regcache_descr): Remove outdated comment.
5729 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5731 (regcache_xmalloc): Rename to ...
5732 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5733 Allocate the regcache type accordingly.
5734 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5735 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5736 cooked registers, not raw.
5737 (regcache_dup_no_passthrough): Delete.
5738 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5739 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5740 mention obsolete write_register_bytes.
5741 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5743 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5745 Stop remote_read_bytes from handling partial reads itself.
5747 * remote-fileio.c: Include target.h.
5748 (remote_fileio_write_bytes): Delete.
5749 (remote_fileio_func_open, remote_fileio_func_write)
5750 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5752 (remote_fileio_func_stat): Use target_read_memory and
5753 target_write_memory.
5754 (remote_fileio_func_gettimeofday): Use target_write_memory.
5755 (remote_fileio_func_system): Use target_read_memory.
5756 * remote.c (remote_write_bytes): Make it static.
5757 (remote_read_bytes): Don't handle partial reads here.
5758 * remote.h (remote_read_bytes): Delete declaration.
5760 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5762 Simplify XML parsing a bit.
5764 * xml-support.h (gdb_xml_parse_quick): Declare.
5765 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5766 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5768 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5769 gdb_xml_create_parser_and_cleanup_1.
5770 (gdb_xml_parse_quick): New.
5771 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5772 * osdata.c (osdata_parse): Ditto.
5773 * remote.c (remote_threads_info): Ditto.
5774 * solib-target.c (solib_target_parse_libraries): Ditto.
5775 * xml-syscall.c (syscall_parse_xml): Ditto.
5776 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5778 2011-01-24 Kevin Buettner <kevinb@redhat.com>
5780 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5781 with remote-mips.o added to gdb_target_obs.
5782 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5784 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5786 * ada-valprint.c (val_print_packed_array_elements): Pass the
5787 correct struct value to val_print.
5788 (ada_val_print_1): Ditto.
5790 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5792 Don't lose embedded_offset in printing routines throughout.
5794 * valprint.h (val_print_array_elements): Change prototype.
5795 * valprint.c (val_print_array_elements): Add `embedded_offset'
5796 parameter, and adjust to pass it down to val_print, while passing
5797 `valaddr' or `address' unmodified. Take embedded_offset into
5798 account when checking repetitions.
5799 * c-valprint.c (c_val_print): Pass embedded_offset to
5800 val_print_array_elements instead of adjusting `valaddr' and
5802 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5803 embedded_offset to val_print_array_elements instead of adjusting
5805 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5806 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5807 val_print_array_elements and pascal_object_print_value_fields
5808 instead of adjusting `valaddr'.
5809 (pascal_object_print_value_fields): Add `offset' parameter, and
5811 (pascal_object_print_value): Add `offset' parameter, and adjust to
5813 (pascal_object_print_static_field): Use
5814 value_contents_for_printing/value_embedded_offset, rather than
5816 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5817 parameter, and adjust to use it. Use
5818 value_contents_for_printing/value_embedded_offset, rather than
5820 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5821 (ada_val_print_array): Add `offset' parameter, and adjust to use
5823 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5824 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5825 Instead work with offsets. Use
5826 value_contents_for_printing/value_embedded_offset, rather than
5827 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5828 and use value_from_pointer to extract a target pointer, rather
5829 than value_from_longest.
5830 (print_variant_part): Add `offset' parameter. Replace
5831 `outer_valaddr' parameter by a new `outer_offset' parameter.
5832 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5833 (ada_value_print): Use
5834 value_contents_for_printing/value_embedded_offset, rather than
5836 (print_record): Add `offset' parameter, and adjust to pass it
5838 (print_field_values): Add `offset' parameter. Replace
5839 `outer_valaddr' parameter by a new `outer_offset' parameter.
5840 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5841 Use value_contents_for_printing/value_embedded_offset, rather than
5843 * d-valprint.c (dynamic_array_type): Use
5844 value_contents_for_printing/value_embedded_offset, rather than
5846 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5847 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5848 (java_print_value_fields): Take `offset' into account. Don't
5849 re-adjust `valaddr'. Instead pass down adjusted offsets.
5850 (java_val_print): Take `embedded_offset' into account. Pass it to
5851 java_print_value_fields.
5852 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5853 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5854 down adjusted offsets.
5855 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5856 (f_val_print): Take `embedded_offset' into account.
5858 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5860 * inflow.c: Include "gdbcmd.h".
5861 (interactive_mode): New static global, moved here from top.c.
5862 (show_interactive_mode): New function, moved here from top.c.
5863 use gdb_has_a_terminal instead of input_from_terminal_p to
5864 determine the current mode.
5865 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5867 (_initialize_inflow): Add the "set/show interactive-mode"
5868 commands. Moved here from top.c, after having adjusted slightly
5870 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5872 (input_from_terminal_p): Remove handling of "interactive-mode"
5873 setting, moved to infow.c.
5874 (init_main): Remove creation of the "set/show interactive-mode"
5875 commands, moved to inflow.c.
5877 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5879 * NEWS: Add entry for native ia64-hpux support.
5881 2011-01-19 Tom Tromey <tromey@redhat.com>
5884 * thread.c (free_thread): Free 'name'.
5885 (print_thread_info): Emit thread name. Change CLI output.
5886 (thread_name_command): New function.
5887 (do_captured_thread_select): Emit newline.
5888 (_initialize_thread): Register 'thread name' command.
5889 * target.h (struct target_ops) <to_thread_name>: New field.
5890 (target_thread_name): New macro.
5891 * target.c (update_current_target): Handle to_thread_name.
5892 * python/py-infthread.c (thpy_get_name): New function.
5893 (thpy_set_name): Likewise.
5894 (thread_object_getset): Add "name".
5895 * linux-nat.c (linux_nat_thread_name): New function.
5896 (linux_nat_add_target): Set to_thread_name.
5897 * gdbthread.h (struct thread_info) <name>: New field.
5899 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5901 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5902 (ada_val_print_1): Likewise.
5904 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5906 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5907 upper limit address is not greater than the function end address
5908 when the upper limit could not be computed using the debugging
5911 2011-01-17 Tom Tromey <tromey@redhat.com>
5913 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5915 * utils.c: Include gdb_regex.h.
5916 (do_regfree_cleanup): New function.
5917 (make_regfree_cleanup): Likewise.
5918 (get_regcomp_error): Likewise.
5919 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5921 2011-01-17 Tom Tromey <tromey@redhat.com>
5923 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5926 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5928 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5929 for internal variables.
5930 (last_was_structop): New static variable.
5931 (COMPLETE): New token.
5932 (field_exp): New rule to group all '.' suffix handling.
5933 Add mark_struct_expression calls when approriate to be able
5934 to correctly find fields for completion.
5935 (yylex): Adapt to handle field completion and set INTVAR when
5938 2011-01-14 Yao Qi <yao@codesourcery.com>
5940 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5941 save_reggroup, restore_reggroup and all_reggroup.
5943 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5945 * ada-valprint. (ada_printchar): Use the correct type length
5946 in call to ada_emit_char.
5947 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5949 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5951 * solib-som.h (hpux_major_release): Declare variable here.
5952 * solib-som.c: Remove <sys/utsname.h> header.
5953 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5954 (hpux_major_release): Make global, change default value to
5955 DEFAULT_HPUX_MAJOR_RELEASE.
5956 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5957 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5958 Add "solib-som.h" header.
5959 (set_hpux_major_release): New function.
5960 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5962 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5964 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5966 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5968 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5969 new-line at end of warning message.
5970 (ia64_hpux_store_register): Remove trailing new-line at end of
5972 * ia64-hpux-tdep.c: Rephrase comment.
5973 * solib-ia64-hpux.c (struct dld_info): Change type of field
5974 dld_flags from "long long" to ULONGEST.
5976 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5978 * target.h (deprecated_child_ops): Delete declaration.
5979 * target.c (deprecated_child_ops): Delete definition.
5981 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5983 * Makefile.in (hpux-thread.o): Delete rule.
5984 * configure.ac: Don't check for HPUX DCE threads support.
5985 * configure, config.in: Regenerate.
5986 * hppa-hpux-nat.c (child_suppress_run): Delete.
5987 (hppa_hpux_child_can_run): Delete.
5988 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5989 * hpux-thread.c: Delete.
5991 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5993 * hpux-thread.c (hpux_pid_to_str): Delete.
5995 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5997 * ada-valprint.c (ada_emit_char): Remove strange code.
5998 Check that c is <= UCHAR_MAX before passing it to isascii.
5999 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6001 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6003 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6004 to the case where instream is stdin.
6006 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6008 * ia64-tdep.h (struct regcache): Forward declare.
6009 (struct ia64_infcall_ops): New struct type.
6010 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6012 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6013 Renames ia64_find_global_pointer.
6014 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6015 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6016 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6018 (ia64_infcall_ops): New static global constant.
6019 (ia64_gdbarch_init): Set tdep->infcall_ops.
6020 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6021 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6022 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6023 (ia64_hpux_dummy_code): New static global constant.
6024 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6025 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6026 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6028 (ia64_hpux_infcall_ops): New static global constant.
6029 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6030 for inferior function calls to work properly on ia64-hpux.
6032 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6034 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6035 * ia64-tdep.h (struct frame_info): forward declaration.
6036 (struct gdbarch_tdep): Add field size_of_register_frame.
6037 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6038 to determine the size of the register frame.
6039 (ia64_size_of_register_frame): New function.
6040 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6041 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6042 (IA64_HPUX_UREG_REASON): New macro.
6043 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6045 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6046 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6047 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6050 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6052 Add support for ia64-hpux.
6053 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6054 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6056 * configure.host: Add handling for ia64-hpux hosts. Add associated
6058 * configure.tgt: Add handling for ia64-hpux targets.
6059 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6060 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6061 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6063 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6065 [ttrace] Compute thread list immediately after attach.
6066 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6068 (inf_ttrace_attach): Use it.
6070 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6072 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6073 if we could not determine the frame's function address. Instead,
6074 use the frame's PC, and then continue.
6076 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6078 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6079 not already defined.
6081 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6083 * ia64-tdep.c (ia64_struct_type_p): New function.
6084 (ia64_extract_return_value): Handle integral values that are
6085 less than 8 bytes long.
6086 (ia64_push_dummy_call): Likewise.
6088 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6090 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6091 floatformat_ia64_ext.
6092 (floatformat_ia64_ext_big): New static const.
6093 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6095 2011-01-12 Tom Tromey <tromey@redhat.com>
6097 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6099 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6100 (mi_cmd_thread_list_ids): Likewise.
6101 (mi_cmd_data_list_changed_registers): Likewise.
6102 (mi_cmd_data_list_register_values): Likewise.
6103 (mi_cmd_data_write_register_values): Likewise.
6104 (mi_cmd_data_evaluate_expression): Likewise.
6105 (mi_cmd_data_read_memory): Likewise.
6106 (mi_cmd_data_read_memory_bytes): Likewise.
6107 (mi_cmd_data_write_memory): Likewise.
6108 (mi_cmd_enable_timings): Likewise.
6109 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6110 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6111 (mi_cmd_var_delete): Likewise.
6112 (mi_cmd_var_set_format): Likewise.
6113 (mi_cmd_var_show_format): Likewise.
6114 (mi_cmd_var_info_num_children): Likewise.
6115 (mi_cmd_var_list_children): Likewise.
6116 (mi_cmd_var_info_type): Likewise.
6117 (mi_cmd_var_info_expression): Likewise.
6118 (mi_cmd_var_show_attributes): Likewise.
6119 (mi_cmd_var_assign): Likewise.
6120 (mi_cmd_var_update): Likewise.
6121 (mi_cmd_enable_pretty_printing): Likewise.
6122 (mi_cmd_var_set_update_range): Likewise.
6123 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6125 (mi_cmd_target_file_put): Likewise.
6126 (mi_cmd_target_file_delete): Likewise.
6127 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6129 (mi_cmd_stack_info_depth): Likewise.
6130 (mi_cmd_stack_list_locals): Likewise.
6131 (mi_cmd_stack_list_args): Likewise.
6132 (mi_cmd_stack_select_frame): Likewise.
6133 (mi_cmd_stack_select_frame): Likewise.
6134 (mi_cmd_stack_info_frame): Likewise.
6135 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6137 (mi_cmd_file_list_exec_source_files): Likewise.
6138 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6139 (mi_cmd_env_cd): Likewise.
6140 (mi_cmd_env_path): Likewise.
6141 (mi_cmd_env_dir): Likewise.
6142 (mi_cmd_inferior_tty_show): Likewise.
6143 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6144 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6145 (mi_cmd_break_watch): Likewise.
6147 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6149 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6150 (ppc_linux_insert_hw_breakpoint): Likewise.
6151 (ppc_linux_remove_hw_breakpoint): Likewise.
6152 (ppc_linux_insert_watchpoint): Likewise.
6154 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6155 Jan Kratochvil <jan.kratochvil@redhat.com>
6157 PR fortran/11104 and DWARF unbound arrays detection.
6158 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6159 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6160 unspecified upper bound.
6161 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6162 variables array_size_array, tmp_type and offset_item. New variable
6163 array. Remove call to f77_get_upperbound. New variables array_type
6164 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6165 the final call to deprecated_set_value_type.
6167 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6169 Make value allocations more lazy.
6170 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6171 instead of allocate_value and set_value_lazy when possible.
6172 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6173 instead of allocate_value and set_value_lazy.
6174 * findvar.c (value_of_register_lazy): Likewise.
6175 (read_var_value): Remove V preallocation, call just check_typedef in
6176 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6177 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6178 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6179 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6180 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6181 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6182 the end, remove set_value_lazy there.
6183 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6184 instead of allocate_value and set_value_lazy when possible.
6185 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6186 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6187 of allocate_value and set_value_lazy.
6188 (value_from_contents_and_address): Use allocate_value_lazy instead of
6189 allocate_value and set_value_lazy when possible.
6191 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6193 * disasm.c (dump_insns): Support dumping opcodes for MI.
6194 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6195 dumping of instruction opcodes.
6197 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6199 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6202 2011-01-11 Tom Tromey <tromey@redhat.com>
6204 * thread.c (do_captured_thread_select): Emit newline before
6207 2011-01-11 Michael Snyder <msnyder@vmware.com>
6209 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6210 * score-tdep.c: Ditto.
6211 * score-tdep.h: Ditto.
6212 * ser-base.c: Ditto.
6213 * ser-go32.c: Ditto.
6216 * ser-mingw.c: Ditto.
6217 * ser-pipe.c: Ditto.
6219 * ser-unix.c: Ditto.
6220 * sh64-tdep.c: Ditto.
6221 * shnbsd-nat.c: Ditto.
6225 * solib-darwin.c: Ditto.
6226 * solib-frv.c: Ditto.
6228 * solib-irix.c: Ditto.
6229 * solib-osf.c: Ditto.
6230 * solib-pa64.c: Ditto.
6231 * solib-som.c: Ditto.
6232 * solib-spu.c: Ditto.
6233 * solib-sunos.c: Ditto.
6234 * solib-svr4.c: Ditto.
6236 * sol-thread.c: Ditto.
6240 * sparc64-linux-tdep.c: Ditto.
6241 * sparc64-tdep.c: Ditto.
6242 * sparc-linux-nat.c: Ditto.
6243 * sparc-linux-tdep.c: Ditto.
6244 * sparc-sol2-nat.c: Ditto.
6245 * sparc-sol2-tdep.c: Ditto.
6246 * sparc-tdep.c: Ditto.
6247 * sparc-tdep.h: Ditto.
6248 * spu-tdep.c: Ditto.
6249 * stabsread.c: Ditto.
6250 * stabsread.h: Ditto.
6258 * target-descriptions.c: Ditto.
6259 * target-descriptions.h: Ditto.
6261 * target-memory.c: Ditto.
6262 * terminal.h: Ditto.
6265 * tracepoint.c: Ditto.
6266 * tracepoint.h: Ditto.
6267 * trad-frame.h: Ditto.
6268 * typeprint.c: Ditto.
6270 2011-01-11 Michael Snyder <msnyder@vmware.com>
6272 * ui-file.c: Comment cleanup, mostly periods and spaces.
6277 * v850-tdep.c: Ditto.
6278 * valarith.c: Ditto.
6280 * valprint.c: Ditto.
6281 * valprint.h: Ditto.
6286 * vax-tdep.c: Ditto.
6290 * windows-nat.c: Ditto.
6291 * windows-tdep.c: Ditto.
6292 * xcoffread.c: Ditto.
6293 * xcoffsolib.c: Ditto.
6294 * xml-support.c: Ditto.
6295 * xstormy16-tdep.c: Ditto.
6296 * xtensa-tdep.c: Ditto.
6297 * xtensa-tdep.h: Ditto.
6299 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6301 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6302 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6304 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6305 Thiago Jung Bauermann <bauerman@br.ibm.com>
6307 Implement support for PowerPC BookE ranged watchpoints.
6309 (struct breakpoint_ops) <resources_needed>: New method.
6310 Initialize to NULL in all existing breakpoint_ops instances.
6311 (struct breakpoint) <exact>: New field.
6312 (target_exact_watchpoints): Declare external global.
6313 * breakpoint.c (target_exact_watchpoints): New global flag.
6314 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6315 b->enable_state to bp_enabled before calling
6316 hw_watchpoint_used_count.
6317 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6318 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6320 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6321 if the watchpoint is exact.
6322 (resources_needed_watchpoint): New function.
6323 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6324 (watch_command_1): Set b->exact if the user asked for an exact
6325 watchpoint and one can be set.
6326 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6327 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6328 the user asks for an exact watchpoint and one can be set. Return
6329 number of needed debug registers to watch the expression.
6330 * gdbtypes.c (is_scalar_type): New function, based on
6331 valprint.c:scalar_type_p.
6332 (is_scalar_type_recursive): New function.
6333 * gdbtypes.h (is_scalar_type_recursive): Declare.
6334 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6335 handle regions when ranged watchpoints are available.
6336 (create_watchpoint_request): New function.
6337 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6338 create_watchpoint_request.
6339 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6340 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6341 `set powerpc' and `show powerpc' commands.
6342 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6343 Mention documentation comment in the target macro.
6344 (target_region_ok_for_hw_watchpoint): Document return value.
6346 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6348 * breakpoint.c (update_watchpoint): Decide on using a software or
6349 hardware watchpoint after the bp_locations are created.
6351 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6353 Convert hardware watchpoints to use breakpoint_ops.
6354 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6355 <insert_location>: ... this. Return int instead of void.
6356 Accept pointer to struct bp_location instead of pointer to
6357 struct breakpoint. Adapt all implementations.
6358 (breakpoint_ops) <remove>: Rename to...
6359 <remove_location>: ... this. Accept pointer to struct bp_location
6360 instead of pointer to struct breakpoint. Adapt all implementations.
6361 * breakpoint.c (insert_catchpoint): Delete function.
6362 (insert_bp_location): Call the watchpoint or catchpoint's
6363 breakpoint_ops.insert method.
6364 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6365 breakpoint_ops.remove method.
6366 (insert_watchpoint, remove_watchpoint): New functions.
6367 (watchpoint_breakpoint_ops): New structure.
6368 (watch_command_1): Initialize the OPS field.
6369 * inf-child.c (inf_child_insert_fork_catchpoint)
6370 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6371 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6372 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6374 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6375 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6376 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6377 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6378 * target.c (update_current_target): Change default implementation of
6379 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6380 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6381 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6382 to_set_syscall_catchpoint to return_one.
6383 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6384 (debug_to_insert_exec_catchpoint): Report return value.
6385 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6386 (to_insert_exec_catchpoint): Change declaration to return int instead
6389 2011-01-11 Michael Snyder <msnyder@vmware.com>
6391 * arm-tdep.c: Internationalization.
6394 * fork-child.c: Ditto.
6395 * nto-procfs.c: Ditto.
6396 * ppc-sysv-tdep.c: Ditto.
6398 * remote-mips.c: Ditto.
6400 * rs6000-nat.c: Ditto.
6401 * rs6000-tdep.c: Ditto.
6405 * xml-support.c: Ditto.
6406 * mi/mi-cmd-break.c: Ditto.
6407 * mi/mi-cmd-var.c: Ditto.
6408 * mi/mi-interp.c: Ditto.
6409 * mi/mi-main.c: Ditto.
6411 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6413 * remote-sim.c (gdbsim_store_register): Update API to
6414 sim_store_register to check more error conditions.
6416 2011-01-10 Michael Snyder <msnyder@vmware.com>
6418 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6419 * nto-tdep.c: Ditto.
6420 * nto-tdep.h: Ditto.
6421 * objc-exp.y: Ditto.
6422 * objc-lang.c: Ditto.
6423 * objfiles.c: Ditto.
6424 * objfiles.h: Ditto.
6425 * observer.c: Ditto.
6426 * opencl-lang.c: Ditto.
6429 * parser-defs.h: Ditto.
6432 * posix-hdep.c: Ditto.
6433 * ppcbug-rom.c: Ditto.
6434 * ppc-linux-nat.c: Ditto.
6435 * ppc-linux-tdep.c: Ditto.
6436 * ppc-linux-tdep.h: Ditto.
6437 * ppcnbsd-tdep.c: Ditto.
6438 * ppcobsd-tdep.c: Ditto.
6439 * ppcobsd-tdep.h: Ditto.
6440 * ppc-sysv-tdep.c: Ditto.
6441 * ppc-tdep.h: Ditto.
6442 * printcmd.c: Ditto.
6443 * proc-abi.c: Ditto.
6444 * proc-flags.c: Ditto.
6446 * proc-utils.h: Ditto.
6447 * progspace.h: Ditto.
6448 * prologue-value.c: Ditto.
6449 * prologue-value.h: Ditto.
6450 * psympriv.h: Ditto.
6452 * p-typeprint.c: Ditto.
6453 * p-valprint.c: Ditto.
6454 * ravenscar-sparc-thread.c: Ditto.
6455 * ravenscar-thread.c: Ditto.
6456 * ravenscar-thread.h: Ditto.
6458 * regcache.c: Ditto.
6459 * regcache.h: Ditto.
6461 * remote-fileio.c: Ditto.
6462 * remote-fileio.h: Ditto.
6464 * remote-m32r-sdi.c: Ditto.
6465 * remote-mips.c: Ditto.
6466 * remote-sim.c: Ditto.
6467 * rs6000-aix-tdep.c: Ditto.
6468 * rs6000-nat.c: Ditto.
6469 * rs6000-tdep.c: Ditto.
6471 2011-01-10 Michael Snyder <msnyder@vmware.com>
6473 * charset.c (validate): Internationalization.
6474 * coffread.c (read_one_sym): Ditto.
6475 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6476 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6477 * inflow.c (new_tty): Ditto.
6478 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6479 * m32c-tdep.c (m32c_return_value): Ditto.
6480 * mep-tdep.c (mep_store_return_value): Ditto.
6481 * score-tdep.c (score7_fetch_insn): Ditto.
6482 * ser-mingw.c (pipe_windows_open): Ditto.
6483 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6484 * spu-tdep.c (spu_register_type): Ditto.
6485 * tracepoint.c (trace_find_command): Ditto.
6486 * valarith.c (value_pos): Ditto.
6488 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6490 * ada-valprint.c (printstr): Minor comment reformatting.
6492 2011-01-08 Michael Snyder <msnyder@vmware.com>
6494 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6497 2011-01-08 Michael Snyder <msnyder@vmware.com>
6499 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6500 * hppa-hpux-tdep.c: Ditto.
6501 * hppa-linux-nat.c: Ditto.
6502 * hppa-linux-tdep.c: Ditto.
6503 * hppanbsd-tdep.c: Ditto.
6504 * hppa-tdep.c: Ditto.
6505 * hppa-tdep.h: Ditto.
6506 * hpux-thread.c: Ditto.
6507 * i386-cygwin-tdep.c: Ditto.
6508 * i386-darwin-nat.c: Ditto.
6509 * i386gnu-nat.c: Ditto.
6510 * i386-linux-nat.c: Ditto.
6511 * i386-linux-tdep.c: Ditto.
6512 * i386-nat.c: Ditto.
6513 * i386-nat.h: Ditto.
6514 * i386nbsd-tdep.c: Ditto.
6515 * i386-sol2-nat.c: Ditto.
6516 * i386-stub.c: Ditto.
6517 * i386-tdep.c: Ditto.
6518 * i386-tdep.h: Ditto.
6519 * i387-tdep.c: Ditto.
6520 * ia64-linux-nat.c: Ditto.
6521 * ia64-linux-tdep.c: Ditto.
6522 * ia64-tdep.c: Ditto.
6526 * inferior.c: Ditto.
6527 * inferior.h: Ditto.
6533 * iq2000-tdep.c: Ditto.
6534 * irix5-nat.c: Ditto.
6540 * jv-typeprint.c: Ditto.
6541 * jv-valprint.c: Ditto.
6542 * language.c: Ditto.
6543 * language.h: Ditto.
6544 * linespec.c: Ditto.
6545 * linux-fork.c: Ditto.
6546 * linux-nat.c: Ditto.
6547 * linux-thread-db.c: Ditto.
6548 * lm32-tdep.c: Ditto.
6550 2011-01-08 Michael Snyder <msnyder@vmware.com>
6552 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6554 * m2-typeprint.c: Ditto.
6555 * m2-valprint.c: Ditto.
6556 * m32c-tdep.c: Ditto.
6557 * m32r-linux-nat.c: Ditto.
6558 * m32r-rom.c: Ditto.
6559 * m32r-tdep.c: Ditto.
6560 * m32r-tdep.h: Ditto.
6561 * m68hc11-tdep.c: Ditto.
6562 * m58klinux-nat.c: Ditto.
6563 * m68k-tdep.c: Ditto.
6564 * m88k-tdep.c: Ditto.
6565 * m88k-tdep.h: Ditto.
6566 * machoread.c: Ditto.
6567 * macrocmd.c: Ditto.
6568 * macroexp.c: Ditto.
6569 * macrotab.c: Ditto.
6572 * mdebugread.c: Ditto.
6573 * mdebugread.h: Ditto.
6576 * memory-map.h: Ditto.
6577 * mep-tdep.c: Ditto.
6578 * microblaze-rom.c: Ditto.
6579 * microblaze-tdep.c: Ditto.
6581 * mips-irix-tdep.c: Ditto.
6582 * mips-linux-nat.c: Ditto.
6583 * mips-linux-tdep.c: Ditto.
6584 * mips-linux-tdep.h: Ditto.
6585 * mipsnbsd-nat.c: Ditto.
6586 * mipsnbsd-tdep.c: Ditto.
6587 * mipsread.c: Ditto.
6588 * mips-tdep.c: Ditto.
6589 * mips-tdep.h: Ditto.
6590 * mn10300-linux-tdep.c: Ditto.
6591 * mn10300-tdep.c: Ditto.
6592 * mn10300-tdep.h: Ditto.
6595 * moxie-tdep.c: Ditto.
6596 * moxie-tdep.h: Ditto.
6599 2011-01-08 Mike Frysinger <vapier@gentoo.org>
6601 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6603 2011-01-08 Robert Millan <rmh@gnu.org>
6605 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6607 2011-01-07 Michael Snyder <msnyder@vmware.com>
6609 * charset.c (_initialize_charset): Fix typo in string.
6611 2011-01-07 Michael Snyder <msnyder@vmware.com>
6613 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6615 * tui/tui-layout.c (tui_set_layout_for_display_command):
6616 Split line so that operator goes to beginning of line.
6617 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6618 assignment out of if statement.
6620 2011-01-07 Michael Snyder <msnyder@vmware.com>
6622 * ada-lang.c: Comment cleanup, mostly periods and spaces.
6623 * ada-lang.h: Ditto.
6624 * ada-tasks.c: Ditto.
6625 * ada-valprint.c: Ditto.
6626 * aix-threads.c: Ditto.
6627 * alpha-linux-nat.c: Ditto.
6628 * alpha-linux-tdep.c: Ditto.
6629 * alpha-mdebug-tdep.c: Ditto.
6630 * alpha-nat.c: Ditto.
6631 * alpha-osf1-tdep.c: Ditto.
6632 * alpha-tdep.c: Ditto.
6633 * alphabsd-nat.c: Ditto.
6634 * alphabsd-tdep.c: Ditto.
6635 * amd64-darwin-tdep.c: Ditto.
6636 * amd64-linux-nat.c: Ditto.
6637 * amd64-linux-tdep.c: Ditto.
6638 * amd64-sol2-tdep.c: Ditto.
6639 * amd64-tdep.c: Ditto.
6640 * amd64-fbsd-tdep.c: Ditto.
6641 * amd64-nbsd-tdep.c: Ditto.
6642 * amd64-obsd-tdep.c: Ditto.
6643 * amd64-linux-nat.c: Ditto.
6644 * amd64-linux-tdep.c: Ditto.
6645 * arm-tdep.c: Ditto.
6646 * arm-tdep.h: Ditto.
6647 * armnbsd-nat.c: Ditto.
6648 * avr-tdep.c: Ditto.
6649 * bfin-tdep.c: Ditto.
6651 * c-typeprintc: Ditto.
6652 * c-valprint.c: Ditto.
6653 * coff-pe-read.h: Ditto.
6654 * coffreead.c: Ditto.
6655 * cris-tdep.c: Ditto.
6657 * darwin-nat-info.c: Ditto.
6658 * darwin-nat.c: Ditto.
6659 * dbug-rom.c: Ditto.
6663 * dec-thread.c: Ditto.
6665 * demangle.c: Ditto.
6666 * dicos-tdep.c: Ditto.
6667 * dictionary.c: Ditto.
6668 * dictionary.h: Ditto.
6669 * dink32-rom.c: Ditto.
6671 * doublest.c: Ditto.
6673 * dummy-frame.c: Ditto.
6674 * dwarf2-frame.c: Ditto.
6675 * dwarf2expr.c: Ditto.
6676 * dwarf2loc.c: Ditto.
6677 * dwarf2read.c: Ditto.
6681 * event-top.h: Ditto.
6682 * exceptions.c: Ditto.
6683 * exceptions.h: Ditto.
6685 * expprint.c: Ditto.
6686 * expression.h: Ditto.
6690 * f-typeprint.c: Ditto.
6691 * f-valprint.c: Ditto.
6692 * fbsd-nat.c: Ditto.
6694 * fork-child.c: Ditto.
6697 * frv-linux-tdep.c: Ditto.
6698 * frv-tdep.c: Ditto.
6700 * gdb-stabs.h: Ditto.
6701 * gdb_assert.h: Ditto.
6702 * gdb_string.h: Ditto.
6703 * gdb_thread_db.h: Ditto.
6704 * gdb_wait.h: Ditto.
6705 * gdbarch.sh: Ditto.
6707 * gdbthread.h: Ditto.
6708 * gdbtypes.c: Ditto.
6709 * gdbtypes.h: Ditto.
6712 * gnu-v2-abi.c: Ditto.
6713 * gnu-v3-abi.c: Ditto.
6714 * go32-nat.c: Ditto.
6715 * gdbarch.c: Regenerate.
6716 * gdbarch.h: Regenerate.
6718 2011-01-07 Michael Snyder <msnyder@vmware.com>
6720 * ax-gdb.c: Adjust some long output strings.
6721 * breakpoint.c: Ditto.
6726 * linux-nat.c: Ditto.
6727 * solib-pa64.c: Ditto.
6728 * solib-som.c: Ditto.
6730 2011-01-06 Tom Tromey <tromey@redhat.com>
6734 * python/python.c (GdbMethods): Add "newest_frame" method.
6735 * python/python-internal.h (gdbpy_newest_frame): Declare.
6736 * python/py-frame.c (gdbpy_newest_frame): New function.
6738 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6740 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6741 * jit.c (jit_debug): New variable.
6742 (show_jit_debug): New function.
6743 (struct target_buffer): Use ULONGEST.
6744 (bfd_open_from_target_memory): Likewise.
6745 (jit_register_code, jit_inferior_init): Add debug output.
6746 (_initialize_jit): Register "debug jit" command.
6748 2011-01-06 Tom Tromey <tromey@redhat.com>
6750 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6751 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6754 2011-01-06 Tom Tromey <tromey@redhat.com>
6756 * python/py-frame.c (frapy_block): Use get_frame_block.
6758 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6760 Do not stop on SIGPRIO signals by default
6761 * infrun.c (_initialize_infrun): Unset signal_stop and
6762 signal_print for TARGET_SIGNAL_PRIO.
6764 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6766 * ada-tasks.c: Fix style violation in comment.
6768 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6770 * linespec.c (decode_compound, find_method): Remove trailing \n
6771 at end of error string.
6772 * solib-irix.c (irix_current_sos): Likewise.
6773 * varobj.c (uninstall_variable): Likewise.
6775 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6777 * copyright.py: New script.
6778 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6779 Launch emacs without exec'ing. Call copyright.py afterwards.
6781 2011-01-05 Michael Snyder <msnyder@vmware.com>
6783 * addrmap.c: Shorten lines of >= 80 columns.
6784 * arch-utils.c: Ditto.
6785 * arch-utils.h: Ditto.
6787 * ax-general.c: Ditto.
6789 * blockframe.c: Ditto.
6790 * breakpoint.c: Ditto.
6791 * buildsym.c: Ditto.
6793 * c-typeprint.c: Ditto.
6795 * coffread.c: Ditto.
6799 * cp-namespace.c: Ditto.
6800 * cp-support.c: Ditto.
6801 * dbug-rom.c: Ditto.
6806 * dictionary.c: Ditto.
6808 * doublest.c: Ditto.
6809 * dwarf2-frame.c: Ditto.
6810 * dwarf2expr.c: Ditto.
6811 * dwarf2loc.c: Ditto.
6812 * dwarf2read.c: Ditto.
6815 * event-loop.c: Ditto.
6816 * event-loop.h: Ditto.
6817 * exceptions.h: Ditto.
6819 * expprint.c: Ditto.
6820 * expression.h: Ditto.
6822 * f-valprint.c: Ditto.
6824 * frame-base.c: Ditto.
6825 * frame-unwind.c: Ditto.
6826 * frame-unwind.h: Ditto.
6830 * gdb-stabs.h: Ditto.
6831 * gdb_assert.h: Ditto.
6832 * gdb_dirent.h: Ditto.
6833 * gdb_obstack.h: Ditto.
6835 * gdbtypes.c: Ditto.
6836 * gdbtypes.h: Ditto.
6837 * inf-ttrace.c: Ditto.
6842 * inline-frame.h: Ditto.
6843 * language.c: Ditto.
6844 * language.h: Ditto.
6845 * libunwind-frame.c: Ditto.
6846 * libunwind-frame.h: Ditto.
6847 * linespec.c: Ditto.
6848 * linux-nat.c: Ditto.
6849 * linux-nat.h: Ditto.
6850 * linux-thread-db.c: Ditto.
6851 * machoread.c: Ditto.
6852 * macroexp.c: Ditto.
6853 * macrotab.c: Ditto.
6856 * mdebugread.c: Ditto.
6861 * objfiles.c: Ditto.
6862 * objfiles.h: Ditto.
6864 * p-typeprint.c: Ditto.
6865 * p-valprint.c: Ditto.
6867 * printcmd.c: Ditto.
6868 * proc-events.c: Ditto.
6870 * progspace.c: Ditto.
6871 * progspace.h: Ditto.
6872 * psympriv.h: Ditto.
6875 * regcache.c: Ditto.
6876 * regcache.h: Ditto.
6877 * remote-fileio.c: Ditto.
6879 * ser-mingw.c: Ditto.
6881 * ser-unix.c: Ditto.
6884 * solib-frv.c: Ditto.
6885 * solib-irix.c: Ditto.
6886 * solib-osf.c: Ditto.
6887 * solib-pa64.c: Ditto.
6888 * solib-som.c: Ditto.
6889 * solib-sunos.c: Ditto.
6890 * solib-svr4.c: Ditto.
6891 * solib-target.c: Ditto.
6895 * stabsread.c: Ditto.
6896 * stabsread.c: Ditto.
6899 * symfile-mem.c: Ditto.
6905 * target-descriptions.c: Ditto.
6906 * target-memory.c: Ditto.
6909 * terminal.h: Ditto.
6912 * tracepoint.c: Ditto.
6913 * tracepoint.h: Ditto.
6917 * user-regs.c: Ditto.
6918 * user-regs.h: Ditto.
6920 * valarith.c: Ditto.
6922 * valprint.c: Ditto.
6923 * valprint.h: Ditto.
6928 * xcoffread.c: Ditto.
6929 * xcoffsolib.c: Ditto.
6930 * xcoffsolib.h: Ditto.
6931 * xml-syscall.c: Ditto.
6932 * xml-tdesc.c: Ditto.
6934 2011-01-05 Michael Snyder <msnyder@vmware.com>
6936 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6937 * cli/cli-decode.c: Ditto.
6938 * cli/cli-dump.c: Ditto.
6939 * cli/cli-logging.c: Ditto.
6940 * cli/cli-script.c: Ditto.
6941 * cli/cli-setshow.c: Ditto.
6942 * common/signals.c: Ditto.
6943 * mi/mi-cmd-break.c: Ditto.
6944 * mi/mi-cmd-disas.c: Ditto.
6945 * mi/mi-cmd-stack.c: Ditto.
6946 * mi/mi-cmd-var.c: Ditto.
6947 * mi/mi-cmds.c: Ditto.
6948 * mi/mi-common.h: Ditto.
6949 * mi/mi-console.c: Ditto.
6950 * mi/mi-interp.c: Ditto.
6951 * mi/mi-main.c: Ditto.
6952 * osf-share/cma_attr.c: Ditto.
6953 * osf-share/cma_deb_core.h: Ditto.
6954 * osf-share/cma_debug_client.h: Ditto.
6955 * osf-share/cma_handle.h: Ditto.
6956 * osf-share/cma_mutex.h: Ditto.
6957 * osf-share/cma_stack_int.h: Ditto.
6958 * osf-share/cma_tcb_defs.h: Ditto.
6959 * python/py-auto-load.c: Ditto.
6960 * python/py-breakpoint.c: Ditto.
6961 * python/py-cmd.c: Ditto.
6962 * python/py-frame.c: Ditto.
6963 * python/py-objfile.c: Ditto.
6964 * python/py-param.c: Ditto.
6965 * python/py-progspace.c: Ditto.
6966 * python/py-symbol.c: Ditto.
6967 * python/py-value.c: Ditto.
6968 * python/python-internal.h: Ditto.
6969 * python/python.c: Ditto.
6970 * tui/tui-data.c: Ditto.
6971 * tui/tui-disasm.c: Ditto.
6972 * tui/tui-hooks.c: Ditto.
6973 * tui/tui-io.c: Ditto.
6974 * tui/tui-layout.c: Ditto.
6975 * tui/tui-regs.c: Ditto.
6976 * tui/tui-source.c: Ditto.
6977 * tui/tui-stack.c: Ditto.
6978 * tui/tui-win.c: Ditto.
6979 * tui/tui-windata.c: Ditto.
6980 * tui/tui-winsource.c: Ditto.
6982 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6984 * configure.ac, gdb.1: Copyright year update.
6986 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6988 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6989 this_pc_in_block, morestack_msym and morestack_name. Check for
6990 "__morestack" minimal symbol there.
6992 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6994 * symfile.c (find_sym_fns): Add call to dont_repeat.
6996 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6998 Copyright year update in most files (performed by copyright.sh).
7000 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7002 * top.c (print_gdb_version): Update copyright year in version output.
7004 For older changes see ChangeLog-2010.
7010 version-control: never