1 2011-06-28 Tom Tromey <tromey@redhat.com>
3 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5 2011-06-27 Tom Tromey <tromey@redhat.com>
7 * valops.c (find_overload_match): Call do_cleanups before early
9 * top.c (execute_command): Call do_cleanups before early return.
10 (command_loop): Likewise.
11 * stack.c (backtrace_command): Make a null cleanup early. Don't
12 conditionally call do_cleanups.
13 * python/py-value.c (TRY_CATCH): Move cleanup handling into
15 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
16 so cleanups are always run.
17 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
18 * findcmd.c (parse_find_args): Call do_cleanups on early return
20 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
21 Don't conditionally call do_cleanups.
22 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
25 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
27 * MAINTAINERS (Write After Approval): Use default email address.
29 2011-06-27 Joel Brobecker <brobecker@adacore.com>
31 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
33 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
35 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
36 saved_regs_mask and copied_regs_mask fields.
37 (sparc_record_save_insn): New prototype.
38 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
39 (sparc_record_save_insn): New function.
40 (sparc_analyze_prologue): Add head comment. Recognize store insns
41 of call-saved registers. Use OFFSET consistently. Recognize flat
42 frames and cache their settings.
43 (sparc32_skip_prologue): Handle flat frames.
44 (sparc_frame_cache): Add frame_offset to the base address.
45 (sparc32_frame_cache): Adjust to new frame description.
46 (sparc32_frame_prev_register): Likewise.
47 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
48 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
49 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
50 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
51 frame by calling sparc_record_save_insn.
52 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
53 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
54 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
56 2011-06-27 Tristan Gingold <gingold@adacore.com>
58 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
59 field by map_addr and map_len.
60 (dwarf2_read_section): Adjust for the new bfd_mmap api.
61 (munmap_section_buffer): Likewise.
63 2011-06-24 Tom Tromey <tromey@redhat.com>
65 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
66 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
67 * python/python.c (gdbpy_parameter): Make 'arg' const.
68 (execute_gdb_command): Likewise.
69 (gdbpy_decode_line): Likewise. Copy it.
70 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
71 (gdbpy_write): Make 'arg' const.
72 * python/py-type.c (typy_lookup_typename): Make 'type_name'
74 (gdbpy_lookup_type): Likewise.
75 * python/py-prettyprint.c (print_children): Make 'name' const.
76 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
77 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
79 * python/py-function.c (fnpy_init): Make 'name' const.
80 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
81 (gdbpy_string_to_argv): Make 'input' const.
82 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
84 * gdbtypes.h (lookup_typename): Update.
85 * gdbtypes.c (lookup_typename): Make 'name' const.
86 (lookup_struct): Likewise.
87 (lookup_union): Likewise.
88 (lookup_enum): Likewise.
90 2011-06-24 Tom Tromey <tromey@redhat.com>
92 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
93 gdb_thread_db.h. Move all common/ entries to be together.
94 (TAGS): Don't depend on DEPFILES.
96 2011-06-23 Yao Qi <yao@codesourcery.com>
98 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
99 * remote.c (remote_start_remote): ... here.
100 * monitor.c (monitor_open): ... here.
102 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
104 * gdbtypes.c (append_composite_type_field_aligned): Fix
105 calculation of bit position based on alignment.
107 2011-06-22 Pedro Alves <pedro@codesourcery.com>
109 * breakpoint.c (bpstat_stop_status): Call the check_status
110 breakpoint_ops method.
111 (print_one_breakpoint_location): Also print the condition for Ada
112 exception catchpoints.
113 (allocate_bp_location): New, factored out from
114 allocate_bp_location.
115 (allocate_bp_location): Adjust. Call the owner breakpoint's
116 allocate_location method, if there is one.
117 (free_bp_location): Call the locations's dtor method, if there is
119 (init_raw_breakpoint_without_location): New breakpoint_ops
121 (set_raw_breakpoint_without_location): Adjust.
122 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
123 (set_raw_breakpoint): Adjust.
124 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
125 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
126 re_set and check_status methods.
127 (init_catchpoint): Don't memset, initialize thread, addr_string
128 and enable_state. Pass the ops down to init_raw_breakpoint.
129 (install_catchpoint): Rename to ...
130 (install_breakpoint): ... this, and make extern.
131 (create_fork_vfork_event_catchpoint): Adjust.
132 (catch_exec_breakpoint_ops): Install NULL allocate_location,
133 re_set and check_status methods.
134 (create_syscall_event_catchpoint): Adjust.
135 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
136 (masked_watchpoint_breakpoint_ops): Install NULL
137 allocate_location, re_set and check_status methods.
138 (catch_exec_command_1): Adjust.
139 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
140 re_set and check_status methods.
141 (create_ada_exception_breakpoint): Rename to ...
142 (init_ada_exception_breakpoint): ... this. Add a struct
143 breakpoint parameter, and delete the exp_string, cond_string and
144 cond parameters. Use init_raw_breakpoint, and don't install or
145 mention the breakpoint yet. Don't clear breakpoint fields that
146 init_raw_breakpoint already clears.
147 (re_set_breakpoint): Delete, split into ...
148 (breakpoint_re_set_default, prepare_re_set_context): ... these new
150 (breakpoint_re_set_one): Call the breakpoint's
151 breakpoint_ops->re_set implementation, if there's one. Adjust.
152 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
153 (struct bp_location_ops): New type.
154 (struct bp_location): New field `ops'.
155 (struct breakpoint_ops): New `allocate_location', `re_set' and
156 `check_status' fields. Make `breakpoint_hit''s description match
158 (init_bp_location): Declare.
159 (breakpoint_re_set_default): Declare.
160 (create_ada_exception_breakpoint): Rename to ...
161 (init_ada_exception_breakpoint): ... this. Add a struct
162 breakpoint parameter, and delete the exp_string, cond_string and
164 (install_breakpoint): Declare.
165 * ada-lang.c: Include exceptions.h.
166 <Ada exceptions description>: Update.
167 (struct ada_catchpoint_location): New type.
168 (ada_catchpoint_location_dtor): New function.
169 (ada_catchpoint_location_ops): New global.
170 (ada_catchpoint): New type.
171 (create_excep_cond_exprs): New function.
172 (dtor_exception, allocate_location_exception, re_set_exception)
173 (should_stop_exception, check_status_exception): New functions.
174 (print_one_exception, print_mention_exception)
175 (print_recreate_exception): Adjust.
176 (dtor_catch_exception, allocate_location_catch_exception)
177 (re_set_catch_exception, check_status_catch_exception): New
179 (catch_exception_breakpoint_ops): Install them.
180 (dtor_catch_exception_unhandled)
181 (allocate_location_catch_exception_unhandled)
182 (re_set_catch_exception_unhandled)
183 (check_status_catch_exception_unhandled): New functions.
184 (catch_exception_unhandled_breakpoint_ops): Install them.
185 (dtor_catch_assert, allocate_location_catch_assert)
186 (re_set_catch_assert, check_status_catch_assert): New functions.
187 (catch_assert_breakpoint_ops): Install them.
188 (ada_exception_catchpoint_p): Delete.
189 (catch_ada_exception_command_split)
190 (ada_exception_catchpoint_cond_string): Rename exp_string
191 parameter to excep_string. Adjust.
192 (ada_parse_catchpoint_condition): Delete.
193 (ada_exception_sal): Rename the exp_string parameter to
194 excep_string. Delete the cond_string and cond parameters.
196 (ada_decode_exception_location): Rename the exp_string parameter
197 to excep_string. Delete the cond_string and cond parameters.
199 (create_ada_exception_catchpoint): New function.
200 (catch_ada_exception_command, ada_decode_assert_location)
201 (catch_assert_command): Adjust.
202 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
204 2011-06-22 Pedro Alves <pedro@codesourcery.com>
206 * ada-lang.c: Include arch-utils.h.
207 (ada_decode_exception_location): Make static.
208 (catch_ada_exception_command): Moved here from breakpoint.c.
209 (ada_decode_assert_location): Make static.
210 (catch_assert_command): Moved here from breakpoint.c.
211 (_initialize_ada_lang): Install the exception and assert
212 catchpoint commands here.
213 * ada-lang.h (ada_decode_exception_location)
214 (ada_decode_assert_location): Delete declarations.
215 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
217 (create_ada_exception_breakpoint): Make extern.
218 (catch_ada_exception_command, catch_assert_command): Moved to
220 (add_catch_command): Make extern.
221 (_initilize_breakpoint): Don't install the exception and assert
222 catchpoint commands here.
223 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
225 (add_catch_command, create_ada_exception_breakpoint): Declare.
227 2011-06-22 Pedro Alves <pedro@codesourcery.com>
229 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
230 the breakpoint to the breakpoint chain here.
231 (set_raw_breakpoint_without_location): Add the breakpoint to the
232 breakpoint chain here.
233 (init_raw_breakpoint): Adjust comments.
234 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
236 (init_catchpoint): Don't set the catchpoint's breakpoint number
238 (install_catchpoint): New function.
239 (create_fork_vfork_event_catchpoint)
240 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
241 use install_catchpoint.
243 2011-06-22 Pedro Alves <pedro@codesourcery.com>
245 * breakpoint.c (create_catchpoint_without_mention)
246 (create_catchpoint): Delete.
248 2011-06-22 Pedro Alves <pedro@codesourcery.com>
250 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
251 * breakpoint.c (init_raw_breakpoint_without_location): Remove
252 reference to exec_pathname.
253 (struct exec_catchpoint): New type.
254 (dtor_catch_exec): New function.
255 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
256 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
257 (catch_exec_command_1): Adjust to use init_catchpoint.
258 (delete_breakpoint): Remove reference to exec_pathname.
260 2011-06-22 Pedro Alves <pedro@codesourcery.com>
262 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
263 (struct breakpoint): Delete field `syscalls_to_be_caught'.
264 * breakpoint.c (init_raw_breakpoint_without_location): Remove
265 reference to syscalls_to_be_caught.
266 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
268 (struct syscall_catchpoint): New type.
269 (dtor_catch_syscall): New function.
270 (insert_catch_syscall, remove_catch_syscall)
271 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
272 (print_recreate_catch_syscall): Adjust.
273 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
274 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
275 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
276 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
277 (masked_watchpoint_breakpoint_ops)
278 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
279 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
280 there is one. Remove references to syscalls_to_be_caught.
281 (catching_syscall_number): Adjust.
282 * ada-lang.c (catch_exception_breakpoint_ops)
283 (catch_exception_unhandled_breakpoint_ops)
284 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
286 2011-06-22 Pedro Alves <pedro@codesourcery.com>
288 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
290 * breakpoint.c (init_raw_breakpoint_without_location): Remove
291 reference to forked_inferior_pid.
292 (struct fork_catchpoint): New type.
293 (breakpoint_hit_catch_fork, print_it_catch_fork)
294 (print_one_catch_fork, breakpoint_hit_catch_vfork)
295 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
296 (create_fork_vfork_event_catchpoint): Adjust to use
299 2011-06-22 Pedro Alves <pedro@codesourcery.com>
301 * breakpoint.c (add_to_breakpoint_chain)
302 (init_raw_breakpoint_without_location): New functions, factored
304 (set_raw_breakpoint_without_location): ... this one.
305 (init_raw_breakpoint): New function, factored out from
306 set_raw_breakpoint and adjusted to use
307 init_raw_breakpoint_without_location.
308 (set_raw_breakpoint): Adjust.
309 (init_catchpoint): New function, factored out from
310 create_catchpoint_without_mention and adjusted to use
312 (create_catchpoint_without_mention): Adjust.
314 2011-06-22 Tom Tromey <tromey@redhat.com>
316 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
317 argument of 0 specially.
319 2011-06-22 Yao Qi <yao@codesourcery.com>
321 * infrun.c (handle_inferior_event): Remove write-only local variable
322 `sw_single_step_trap_p'.
324 2011-06-20 Tom Tromey <tromey@redhat.com>
326 * symtab.c (lookup_language_this): End loop if block is NULL.
328 2011-06-17 Tom Tromey <tromey@redhat.com>
330 * valops.c (value_of_this): Use lookup_language_this.
331 * symtab.h (lookup_language_this): Declare.
332 * symtab.c (lookup_language_this): New function.
333 (lookup_symbol_aux): Use lookup_language_this.
334 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
336 2011-06-17 Tom Tromey <tromey@redhat.com>
338 * value.h (value_of_this): Update.
339 (value_of_local): Remove.
340 * valops.c (value_of_this): Rename from value_of_local. Change
342 * p-exp.y (exp): Update.
343 (variable): Likewise.
344 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
346 2011-06-17 Tom Tromey <tromey@redhat.com>
348 * valops.c (value_of_local): Complain if NAME is NULL.
349 * std-operator.def (OP_OBJC_SELF): Remove.
350 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
351 * objc-exp.y (name_not_typename): Use OP_THIS.
352 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
354 <OP_OBJC_SELF>: Remove.
355 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
357 2011-06-16 Tristan Gingold <gingold@adacore.com>
359 * python/py-events.h (gdb_py_events): Make it extern.
360 * python/py-evtregistry.c (gdb_py_events): Declare.
362 2011-06-16 Hui Zhu <teawater@gmail.com>
364 * remote.c (remote_trace_set_readonly_regions): Add check for
365 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
368 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
370 * arm-linux-tdep.c: Include "auxv.h".
372 (ARM_LINUX_SIZEOF_VFP): Define.
373 (arm_linux_supply_vfp): New function.
374 (arm_linux_collect_vfp): Likewise.
375 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
376 (arm_linux_fpa_regset_sections): New variable.
377 (arm_linux_vfp_regset_sections): Likewise.
378 (arm_linux_core_read_description): New function.
379 (arm_linux_init_abi): Install arm_linux_core_read_description and
380 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
381 appropriate for the architecture.
382 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
383 (tdesc_arm_with_m): Declare.
384 (tdesc_arm_with_iwmmxt): Likewise.
385 (tdesc_arm_with_vfpv2): Likewise.
386 (tdesc_arm_with_vfpv3): Likewise.
387 (tdesc_arm_with_neon): Likewise.
388 * arm-linux-nat.c: Move features/*.c includes ...
389 * arm-tdep.c: ... here.
390 * arm-linux-nat.c (arm_linux_read_description): Move initializing
391 target description data structures ...
392 * arm-tdep.c (_initialize_arm_tdep): ... here.
393 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
394 HWCAP_VFPv3D16): Move definitions ...
395 * arm-linux-tdep.h: ... here.
397 2011-06-15 Hui Zhu <teawater@gmail.com>
399 * remote.c (remote_trace_set_readonly_regions): Add a check for
402 2011-06-14 Tom Tromey <tromey@redhat.com>
404 * coffread.c (coffread_objfile): Rename from current_objfile.
405 * dbxread.c (dbxread_objfile): Rename from current_objfile.
406 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
408 2011-06-14 Tom Tromey <tromey@redhat.com>
410 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
411 (class_symtab): Remove.
412 (jv_dynamics_progspace_key): New global.
413 (jv_per_objfile_free): Reset program space data. Update assert.
415 (get_dynamics_objfile): Use and set program space data.
416 (get_java_class_symtab): Use get_dynamics_objfile.
417 (add_class_symbol): Likewise.
418 (java_link_class_type): Likewise.
419 (java_object_type, jv_clear_object_type, set_java_object_type):
421 (get_java_object_type): Update. Don't cache result.
422 (is_object_type): Don't call set_java_object_type.
423 (_initialize_java_language): Don't set jv_type_objfile_data_key;
424 initialize jv_dynamics_progspace_key.
426 2011-06-14 Tom Tromey <tromey@redhat.com>
428 * symtab.h (current_objfile): Don't declare.
429 * objfiles.h (current_objfile): Don't declare.
430 * objfiles.c (current_objfile): Remove.
431 * mdebugread.c (current_objfile): New file-scope global.
432 * dbxread.c (current_objfile): New file-scope global.
433 * coffread.c (current_objfile): New file-scope global.
435 2011-06-13 Pedro Alves <pedro@codesourcery.com>
437 * top.h (line): Rename to ...
438 (saved_command_line): ... this.
439 (linesize): Rename to ...
440 (saved_command_line_size): ... this.
441 * top.c (line): Rename to ...
442 (saved_command_line): ... this.
443 (linesize): Rename to ...
444 (saved_command_line_size): ... this.
445 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
446 * event-top.c (command_line_handler): Adjust.
447 * main.c (captured_main): Adjust.
449 2011-06-12 Mark Kettenis <kettenis@gnu.org>
451 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
452 get_frame_func instead of get_frame_pc to determine the code
453 address used to construct the frame ID.
454 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
455 (i386_epilogue_frame_this_id): Likewise.
456 (i386_epilogue_frame_prev_register): New function.
457 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
458 (i386_stack_tramp_frame_sniffer): Fix coding style.
459 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
460 (i386_gdbarch_init): Fix comments.
462 2011-06-12 Mark Kettenis <kettenis@gnu.org>
464 * i386-tdep.c (i386_match_insn_block): Use length of the proper
465 instruction when walking back through the instruction stream.
467 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
469 * symtab.c (output_partial_symbol_filename): Exchange the filename and
470 fullname parameters order.
472 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
475 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
477 * psymtab.c (map_symbol_filenames_psymtab)
478 (map_partial_symbol_filenames): Likewise.
479 * psymtab.h: Include symfile.h.
480 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
481 * symfile.h (symbol_filename_ftype): New.
482 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
483 map_symbol_filenames, clarify more the naming in comment.
485 2011-06-07 Doug Evans <dje@google.com>
487 * cc-with-index.sh: Fix typos in comment.
488 Look for ../../gdb, for fullname.exp.
490 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
491 Pedro Alves <pedro@codesourcery.com>
493 * cli/cli-cmds.c (shell_escape): Use waitpid.
494 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
496 2011-06-07 Tristan Gingold <gingold@adacore.com>
498 * xcoffread.c (dwarf2_xcoff_names): New variable.
499 (aix_process_linenos): Add a guard.
500 (xcoff_symfile_finish): Free dwarf2.
501 (xcoff_initial_scan): Add dwarf2 support.
503 2011-06-06 Pedro Alves <pedro@codesourcery.com>
505 * infcall.c (run_inferior_call): Don't mask async. Instead force
506 a synchronous wait, if the target can async.
508 * target.h (struct target_ops): Delete to_async_mask.
509 (target_async_mask): Delete.
510 * target.c (update_current_target): Delete references to to_async_mask.
511 * linux-nat.c (linux_nat_async_mask_value): Delete.
512 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
513 to linux_nat_async_mask_value.
514 (linux_nat_async_mask): Delete.
515 (linux_nat_async, linux_nat_close): Remove references to
516 linux_nat_async_mask_value.
517 * record.c (record_async_mask_value): Delete.
518 (record_async): Remove references to record_async_mask_value.
519 (record_async_mask): Delete.
520 (record_can_async_p, record_is_async_p): Remove references to
521 record_async_mask_value.
522 (init_record_ops, init_record_core_ops): Remove references to
524 * remote.c (remote_async_mask_value): Delete.
525 (init_remote_ops): Remove reference to remote_async_mask.
526 (remote_can_async_p, remote_is_async_p): Remove references to
527 remote_async_mask_value.
528 (remote_async): Remove references to remote_async_mask_value.
529 (remote_async_mask): Delete.
531 * infrun.c (fetch_inferior_event): Don't claim registers changed
532 if the current thread is already not executing.
534 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
536 From Stephen Kitt <steve@sk2.org>
537 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
538 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
540 2011-06-03 Joel Brobecker <brobecker@adacore.com>
542 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
543 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
545 2011-06-03 Tom Tromey <tromey@redhat.com>
547 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
549 * python/py-exitedevent.c (create_exited_event_object): Change
550 type of 'exit_code'. Optionally add exit_code attribute.
551 (emit_exited_event): Change type of 'exit_code'.
552 * python/py-event.h (emit_exited_event): Update.
553 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
554 * infrun.c (handle_inferior_event): Set exit code fields on
556 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
558 * inferior.c (exit_inferior_1): Initialize new fields.
560 2011-06-03 Tom Tromey <tromey@redhat.com>
562 * dwarf2expr.c (get_signed_type): New function.
563 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
565 2011-06-02 Keith Seitz <keiths@redhat.com>
567 * objc-lang.c (find_methods): Increment objfile_csym earlier.
569 2011-06-02 Pedro Alves <pedro@codesourcery.com>
571 * top.h (simplified_command_loop): Delete declaration.
573 2011-06-01 Mike Frysinger <vapier@gentoo.org>
575 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
576 gdb_sysroot to the "len" variable. Append both to "arg_buf".
578 2011-06-01 Yao Qi <yao@codesourcery.com>
580 * objfiles.h (obj_section_addr): Update reference to objfile from
582 (obj_section_endaddr): Likewise.
584 2011-06-01 Daniel Jacobowitz <drow@false.org>
586 * MAINTAINERS: Update my email address and affiliation. Also
587 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
589 2010-05-31 Keith Seitz <keiths@redhat.com>
592 * linespec.c (get_search_block): New function.
593 (find_methods): Add FILE_SYMTATB parameter and use it and
594 get_search_block to pass an appropriate block to
595 lookup_symbol_in_namespace.
596 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
597 Check if *ARGPTR starts with a filename first.
598 If it does, call locate_first_half again to locate the next
599 "first half" of the linespec.
600 Pass FILE_SYMTATB to decode_objc and decode_compound.
601 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
602 (locate_first_half): Stop on the first colon seen.
603 (decode_compound): Add FILE_SYMTAB parameter.
604 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
605 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
606 get_search_block with lookup_symbol.
607 (find_method): Add FILE_SYMTAB parameter and pass it to
609 (decode_objc): Use get_search_block.
611 2010-05-31 Keith Seitz <keiths@redhat.com>
614 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
615 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
616 and CP_ANONYMOUS_NAMESPACE_LEN.
617 (cp_is_anonymous): Likewise.
618 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
619 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
620 * dwarf2read.c (namespace_name): Likewise.
621 (fixup_partial_die): Likewise.
622 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
623 seen in the input, keep it.
625 2011-05-30 Pedro Alves <pedro@codesourcery.com>
627 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
628 * inf-loop.h (inferior_event_handler_wrapper): Delete.
629 * inf-loop.c (inferior_event_handler_wrapper): Delete.
630 (inferior_event_handler): Don't handle INF_QUIT_REQ.
631 * remote.c (_initialize_remote): Register
632 async_remote_interrupt_twice directly as
633 sigint_remote_twice_token event.
635 2011-05-30 Pedro Alves <pedro@codesourcery.com>
637 * target.h (enum inferior_event_type): Delete INF_ERROR.
638 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
640 2011-05-30 Pedro Alves <pedro@codesourcery.com>
642 * interps.c (interp_set): Don't cancel continuations.
644 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
646 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
648 2011-05-30 Pedro Alves <pedro@codesourcery.com>
650 * continuations.h (continuation_ftype): Add `err' parameter.
652 (do_all_continuations, do_all_continuations_thread)
653 (do_all_intermediate_continuations)
654 (do_all_intermediate_continuations_thread)
655 (do_all_inferior_continuations): Add `err' parameter.
656 * continuations.c (do_my_continuations_1, do_my_continuations)
657 (do_all_inferior_continuations, do_all_continuations_ptid)
658 (do_all_continuations_thread_callback)
659 (do_all_continuations_thread, do_all_continuations)
660 (do_all_intermediate_continuations_thread_callback)
661 (do_all_intermediate_continuations_thread)
662 (do_all_intermediate_continuations): Add `err' parameter, and pass
663 it down all the way to the continuations proper.
664 * inf-loop.c (inferior_event_handler): If fetching an inferior
665 event throws an error, don't pop the target, and still call the
666 continuations, but with `err' set. Adjust all other continuation
668 * breakpoint.c (until_break_command_continuation): Add `err'
670 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
671 issue another step if `err' is set.
672 (struct until_next_continuation_args): New.
673 (until_next_continuation): Add `err' parameter. Adjust.
674 (until_next_command): Adjust.
675 (struct finish_command_continuation_args): Add `thread' field.
676 (finish_command_continuation): Add `err' parameter. Handle it.
677 (finish_forward): Adjust.
678 (attach_command_continuation): Add `err' parameter. Handle it.
679 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
680 cancel the continuations.
681 * interps.c (interp_set): Adjust to cancel the continuations.
682 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
683 continuations rather than discarding.
684 (free_thread): Don't clear thread inferior resources here.
685 (delete_thread_1): Do it here instead. And do it before removing
686 the thread from the threads list. Tag the thread as exited before
687 clearing thread inferior resources.
689 2011-05-30 Joel Brobecker <brobecker@adacore.com>
691 * infcall.c (call_function_by_hand): Rephrase error message.
693 2011-05-27 Pedro Alves <pedro@codesourcery.com>
695 * defs.h (struct thread_info, struct inferior): Delete forward
697 * breakpoint.h (struct thread_info): New forward declaration.
698 * observer.sh (struct inferior): New forward declaration.
699 * python/python-internal.h (struct inferior): New forward
702 2011-05-27 Pedro Alves <pedro@codesourcery.com>
704 * defs.h (struct continuation, continuation_ftype)
705 (continuation_free_arg_ftype, add_continuation)
706 (do_all_continuations, do_all_continuations_thread)
707 (discard_all_continuations, discard_all_continuations_thread)
708 (add_intermediate_continuation, do_all_intermediate_continuations)
709 (do_all_intermediate_continuations_thread)
710 (discard_all_intermediate_continuations)
711 (discard_all_intermediate_continuations_thread)
712 (add_inferior_continuation, do_all_inferior_continuations)
713 (discard_all_inferior_continuations): Move to ...
714 * continuations.h: ... this new file.
715 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
716 infcmd.c, inferior.c, infrun.c, interps.c: Include
719 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
720 Doug Evans <dje@google.com>
722 Fix PR 10970, PR 12702.
723 * linux-nat.c (linux_lwp_is_zombie): New function.
724 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
725 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
727 2011-05-27 Pedro Alves <pedro@codesourcery.com>
729 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
731 (add_continuation, add_intermediate_continuation)
732 (add_inferior_continuation): Use them.
733 * continuations.c (struct continuation): Use them.
734 (make_continuation_ftype): Delete.
735 (make_continuation, add_inferior_continuation, add_continuation)
736 (add_intermediate_continuation): Use continuation_ftype and
737 continuation_free_arg_ftype. Rename parameters to shorter names.
739 2011-05-27 Pedro Alves <pedro@codesourcery.com>
741 * continuations.c (make_continuation): Make it return void.
742 (do_my_continuations): Rename to ...
743 (do_my_continuations_1): ... this. Remove old_chain parameter and
745 (do_my_continuations): New.
746 (discard_my_continuations): Rename to ...
747 (discard_my_continuations_1): ... this. Remove old_chain
748 parameter and adjust.
749 (discard_my_continuations): New.
750 (add_inferior_continuation): Simplify.
751 (do_all_inferior_continuations): Reimplement on top
753 (discard_all_inferior_continuations): Simplify.
754 (add_continuation): Simplify.
755 (do_all_continuations_ptid): Simplify.
756 (discard_all_continuations_thread_callback): Simplify.
757 (add_intermediate_continuation): Simplify.
758 (discard_all_intermediate_continuations_thread_callback):
761 2011-05-27 Pedro Alves <pedro@codesourcery.com>
763 * utils.c (struct continuation, add_continuation)
764 (add_inferior_continuation)
765 (do_all_inferior_continuations, discard_all_inferior_continuations)
766 (restore_thread_cleanup, do_all_continuations_ptid)
767 (do_all_continuations_thread_callback)
768 (do_all_continuations_thread, do_all_continuations)
769 (discard_all_continuations_thread_callback)
770 (discard_all_continuations_thread, discard_all_continuations)
771 (add_intermediate_continuation)
772 (do_all_intermediate_continuations_thread_callback)
773 (do_all_intermediate_continuations_thread)
774 (do_all_intermediate_continuations)
775 (discard_all_intermediate_continuations_thread_callback)
776 (discard_all_intermediate_continuations_thread)
777 (discard_all_intermediate_continuations): Move to ...
778 * continuations.c: ... this new file, and adjust to no longer
779 implement continuations on top of cleanups.
780 * Makefile.in (SFILES): Add continuations.c.
781 (COMMON_OBS): Add continuations.o.
783 2011-05-26 Pedro Alves <pedro@codesourcery.com>
785 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
786 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
787 Internal error on invalid values.
788 * reverse.c: Don't handle EXEC_ERROR.
789 * mi/mi-main.c: Don't handle EXEC_ERROR.
791 2011-05-26 Pedro Alves <pedro@codesourcery.com>
793 * record.c: Include event-loop.h, inf-loop.h.
794 (record_beneath_to_async): New global.
795 (tmp_to_async): New global.
796 (record_async_inferior_event_token): New global.
797 (record_open_1): Don't error out if async is enabled.
798 (record_open): Handle to_async. Create an async event source in
800 (record_close): Delete the async event source.
801 (record_resumed): New global.
802 (record_execution_dir): New global.
803 (record_resume, record_core_resume): Set them. Register the
804 target on the event loop.
805 (record_wait): Rename to ...
806 (record_wait_1): ... this. Add more debug output. Handle
807 TARGET_WNOHANG, and the target beneath returning
808 TARGET_WAITKIND_IGNORE.
809 (record_wait): Reimplement on top of record_wait_1.
810 (record_async_mask_value): New global.
811 (record_async, record_async_mask, record_can_async_p)
812 (record_is_async_p, record_execution_direction): New functions.
813 (init_record_ops, init_record_core_ops): Install new methods.
814 * infrun.c (fetch_inferior_event): Temporarily switch the global
815 execution direction to the direction the target was going.
816 (execution_direction): Change type to int.
817 * target.c (default_execution_direction): New function.
818 (update_current_target): Inherit and de_fault
819 to_execution_direction.
820 * target.h (struct target_ops) <to_execution_direction>: New
822 (target_execution_direction): New macro.
823 * inferior.h (execution_direction): Change type to int.
825 2011-05-26 Pedro Alves <pedro@codesourcery.com>
827 * infcall.c (call_function_by_hand): Don't allow calling functions
828 in reverse execution mode.
830 2011-05-26 Pedro Alves <pedro@codesourcery.com>
832 * infcmd.c (finish_command): Allow async finish in reverse.
834 2011-05-26 Yao Qi <yao@codesourcery.com>
836 * gdb_thread_db.h: Delete. Move to ...
837 * common/gdb_thread_db.h: ... here.
839 2011-05-26 Pedro Alves <pedro@codesourcery.com>
841 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
842 function's entry point instead of a manually managed momentary
843 breakpoint, and only ever issue one proceed call.
844 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
845 doing a reverse-finish, switch to stepi mode, to do another step.
846 (insert_step_resume_breakpoint_at_sal): Make public.
847 (normal_stop): No need to save function value return registers if
849 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
851 2011-05-26 Pedro Alves <pedro@codesourcery.com>
853 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
854 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
855 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
857 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
858 step-resume breakpoints.
859 (print_it_typical): Handle bp_hp_step_resume.
860 (bpstat_what): Ditto.
861 (bptype_string): Ditto.
862 (print_one_breakpoint_location): Ditto.
863 (allocate_bp_location): Ditto.
865 (breakpoint_re_set_one): Ditto.
866 * infrun.c (handle_inferior_event): Adjust. Split
867 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
868 BPSTAT_WHAT_HP_STEP_RESUME.
869 (insert_step_resume_breakpoint_at_sal): Rename to ...
870 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
871 parameter. Handle it.
872 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
873 insert_step_resume_breakpoint_at_sal_1.
874 (insert_step_resume_breakpoint_at_frame): Rename to ...
875 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
876 set a high-priority step-resume breakpoint.
877 (insert_step_resume_breakpoint_at_frame): Adjust comment.
878 (insert_step_resume_breakpoint_at_caller): Ditto.
880 2011-05-26 Pedro Alves <pedro@codesourcery.com>
882 * breakpoint.c (iterate_over_related_breakpoints): New.
883 (do_map_delete_breakpoint): New.
884 (delete_command): Pass do_map_delete_breakpoint to
885 map_breakpoint_numbers.
886 (do_disable_breakpoint): New.
887 (do_map_disable_breakpoint): Iterate over the breakpoint's related
889 (do_enable_breakpoint): Rename to ...
890 (enable_breakpoint_disp): ... this.
891 (enable_breakpoint): Adjust.
892 (do_enable_breakpoint): New.
893 (enable_once_breakpoint): Delete.
894 (do_map_enable_breakpoint): New.
895 (do_map_enable_once_breakpoint): New.
896 (enable_once_command, enable_delete_command)
897 (delete_trace_command): Iterate over the breakpoint's related
900 2011-05-26 Pedro Alves <pedro@codesourcery.com>
902 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
903 for ALPHA_ZERO_REGNUM.
904 (alpha_supply_int_regs): Explicitly supply zero as the value for
905 ALPHA_ZERO_REGNUM in the register cache.
906 * alpha-nat.c (fetch_osf_core_registers): Ditto.
908 2011-05-26 Yao Qi <yao@codesourcery.com>
910 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
912 2011-05-26 Tristan Gingold <gingold@adacore.com>
914 * symfile.h (struct dwarf2_section_names): New type.
915 (struct dwarf2_debug_sections): New type.
916 (dwarf2_has_info): Add parameter.
917 * dwarf2read.c (dwarf2_elf_names): New variable.
918 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
919 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
920 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
921 (dwarf2_has_info): Add names parameter. Pass names
922 to dwarf2_locate_sections.
923 (section_is_p): Rewrite using the names parameter.
924 (dwarf2_locate_sections): Use section names from the names parameter.
925 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
926 * elfread.c (read_psyms): Ditto.
927 * machoread.c (macho_symfile_read): Ditto.
929 2011-05-25 Andreas Schwab <schwab@redhat.com>
932 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
934 2011-05-24 Keith Seitz <keiths@redhat.com>
937 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
938 (decode_compound): Unconditionally call keep_name_info.
940 2011-05-24 Pedro Alves <pedro@codesourcery.com>
942 * breakpoint.c (watchpoint_check): If the watchpoint went out of
943 scope, clear its command list.
944 (map_breakpoint_numbers): Don't walk the related breakpoints list
947 2011-05-24 Tom Tromey <tromey@redhat.com>
949 * MAINTAINERS: Move Jim Blandy to past maintainers.
951 2011-05-24 Tristan Gingold <gingold@adacore.com>
953 * symfile.h (enum dwarf2_section_enum): New type.
954 (dwarf2_get_section_info): New prototype.
955 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
956 section_name by sect. Use a switch to select the info.
957 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
958 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
960 2011-05-24 Pedro Alves <pedro@codesourcery.com>
962 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
963 shared library event breakpoint if there's no execution.
965 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
967 * breakpont.c (remove_hw_watchpoints): Remove unused function.
968 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
970 2011-05-23 Tom Tromey <tromey@redhat.com>
972 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
975 2011-05-23 Doug Evans <dje@google.com>
977 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
978 entry for RuntimeError to doc string.
980 2011-05-23 Jerome Guitton <guitton@adacore.com>
982 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
983 sequence for probing loops.
985 2011-05-23 Pedro Alves <pedro@codesourcery.com>
987 * infrun.c (user_visible_resume_ptid): Fix typos in describing
990 2011-05-21 Mark Kettenis <kettenis@gnu.org>
992 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
993 zero as the value for %g0 in the register cache.
994 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
995 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
997 2011-05-20 Pedro Alves <pedro@codesourcery.com>
999 * infrun.c (proceed): Set previous_inferior_ptid here.
1000 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1001 inferior_ptid, not null_ptid.
1002 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1003 (fetch_inferior_event): Nor here.
1005 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1007 * inf-loop.c (inferior_event_handler): Only output a message if
1010 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1012 * MAINTAINERS: Update my e-mail address.
1014 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1016 * infrun.c (proceed): Switch the inferior event loop to
1017 INF_EXEC_COMPLETE if the target refused to resume from a
1020 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1022 * infcmd.c: Include "inf-loop.h".
1023 (step_once): When stepping into an inline subroutine, pretend the
1024 target has run. If the target can async, switch the inferior
1025 event loop to INF_EXEC_COMPLETE.
1026 * inferior.h (user_visible_resume_ptid): Declare.
1027 * infrun.c (user_visible_resume_ptid): New function, factored out
1030 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1031 that the current thread is running. Merge async and sync
1034 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1036 * infcmd.c (step_1): Simplify synchronous case.
1038 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1040 * tracepoint.c: Include exceptions.h.
1041 (TFILE_PID): Move higher in file.
1042 (tfile_open): Delay pushing the tfile target until we're assured
1043 the tfile header is present in the file. Wrap reading the initial
1044 newline-terminated lines in TRY_CATCH. Pop the target if the
1045 initial setup failed. Add the tfile's thread immediately
1046 aftwards, before any non-essential setup. Don't skip
1047 post_create_inferior if there are no traceframes present in the
1049 (tfile_close): Remove redundant check for null before xfree call.
1050 (tfile_thread_alive): New function.
1051 (init_tfile_ops): Register it as to_thread_alive callback.
1053 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1055 * tracepoint.c (tfile_open): Delete #if 0'd code.
1057 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1059 Fix -readnow for -gdwarf-4 unused type units.
1060 * dwarf2read.c (struct signatured_type): Remove the field offset.
1061 (create_signatured_type_table_from_index): Remove its initialization.
1062 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1063 instead. Add a complaint call.
1064 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1065 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1066 (lookup_signatured_type_at_offset, read_signatured_type)
1067 (write_one_signatured_type): Update the field for per_cu.
1069 2011-05-19 Tom Tromey <tromey@redhat.com>
1071 * python/py-inferior.c (python_inferior_exit): Use
1073 (python_on_resume): Likewise.
1075 2011-05-19 Matt Rice <ratmice@gmail.com>
1077 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1079 2011-05-19 Hui Zhu <teawater@gmail.com>
1081 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1083 2011-05-19 Hui Zhu <teawater@gmail.com>
1085 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1087 2011-05-18 Tom Tromey <tromey@redhat.com>
1089 * dwarf2read.c (dwarf2_add_field): Constify.
1090 * value.c (value_static_field): Constify.
1091 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1093 * ax-gdb.c (gen_static_field): Constify
1095 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1097 * linux-nat.c (kill_callback): Use SIGKILL first.
1099 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1101 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1103 2011-05-18 Tom Tromey <tromey@redhat.com>
1105 * value.c (value_fn_field): Constify.
1106 * symtab.c (gdb_mangle_name): Constify.
1107 * stabsread.c (update_method_name_from_physname): Make 'physname'
1109 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1110 const. Use explicit fputc_filtered loop.
1111 (pascal_type_print_base): Constify.
1112 * p-lang.h (pascal_type_print_method_args): Update.
1113 * linespec.c (add_matching_methods): Constify.
1114 (add_constructors): Likewise.
1115 * jv-typeprint.c (java_type_print_base): Constify.
1116 * gdbtypes.h (struct cplus_struct_type)
1117 <fn_fieldlist.fn_field.physname>: Now const.
1118 * dwarf2read.c (compute_delayed_physnames): Constify.
1119 (dwarf2_add_member_fn): Likewise.
1120 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1122 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1124 * infrun.c (resume): Mention which is the current thread, and its
1125 current PC in debug output.
1126 (prepare_to_proceed): Mention the thread switching in debug
1129 2011-05-18 Tom Tromey <tromey@redhat.com>
1131 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1132 path check. Use xmalloc and cleanups.
1133 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1135 2011-05-17 Tom Tromey <tromey@redhat.com>
1137 * cp-valprint.c (cp_print_value_fields): Catch errors from
1140 2011-05-17 Tom Tromey <tromey@redhat.com>
1142 * dwarf2read.c (dwarf2_get_die_type): Call
1143 get_die_type_at_offset.
1144 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1145 get_base_type function.
1147 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1149 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1152 2011-05-16 Doug Evans <dje@google.com>
1154 * python/py-auto-load.c (source_section_scripts): Mention objfile
1157 2011-05-15 Doug Evans <dje@google.com>
1159 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1160 (try_thread_db_load_from_pdir): Call it. If unable to find
1161 libthread_db in directory of libpthread, see if we're looking at
1162 the separate-debug-info copy.
1164 * python/py-autoload.c (print_script): Print "Missing" instead of
1165 "No" for missing scripts.
1166 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1168 2011-05-13 Doug Evans <dje@google.com>
1170 * ui-file.c (stdio_file_write_async_safe): Add comment.
1172 2011-05-14 Hui Zhu <teawater@gmail.com>
1174 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1176 2011-05-13 Doug Evans <dje@google.com>
1178 Support $pdir and $sdir in libthread-db-search-path.
1179 * NEWS: Mention $sdir,$pdir.
1180 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1181 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1182 (try_thread_db_load_from_sdir): New function.
1183 (try_thread_db_load_from_dir): New function.
1184 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1185 system directories if search of libthread-db-search-path fails,
1186 that is now done via $sdir.
1187 (has_libpthread): New function.
1188 (thread_db_load): Remove search for libthread_db in directory of
1189 libpthread, that is now done via $pdir.
1191 * NEWS: Mention "info auto-load-scripts".
1192 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1193 script_not_found_warning_printed.
1194 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1195 all callers updated. Initialize script_not_found_warning_printed.
1196 (get_auto_load_pspace_data_for_loading): New function.
1197 (maybe_add_script): New function.
1198 (source_section_scripts): Simplify. Only print one warning regardless
1199 of the number of auto-load scripts not found.
1200 (clear_section_scripts): Clear script_not_found_warning_printed.
1201 (auto_load_objfile_script): Record script in hash table.
1202 (count_matching_scripts): New function.
1203 (maybe_print_script): Renamed from maybe_print_section_script, all
1204 callers updated. Rewrite to use ui_out_*.
1205 (info_auto_load_scripts): Renamed from
1206 maintenance_print_section_scripts, all callers updated.
1207 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1208 renamed as "info auto-load-scripts".
1210 2011-05-13 Tom Tromey <tromey@redhat.com>
1212 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1213 (read_sleb128): Likewise.
1215 2011-05-13 Tom Tromey <tromey@redhat.com>
1217 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1220 2011-05-13 Doug Evans <dje@google.com>
1222 * linux-nat.c (debug_linux_nat_async): Delete.
1223 Replace all references to use debug_linux_nat instead.
1224 (show_debug_linux_nat_async): Delete.
1225 (sigchld_handler): Call ui_file_write_async_safe instead of
1227 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1228 * ui-file.c (struct ui_file): New member to_write_async_safe.
1229 (null_file_write_async_safe): New function.
1230 (ui_file_write_async_safe): New function.
1231 (set_ui_file_write_async_safe): New function.
1232 (ui_file_new): Initialize to_write_async_safe.
1233 (stdio_file_write_async_safe): New function.
1234 (struct stdio_file): New member fd.
1235 (stdio_file_new): Initialize to_write_async_safe, fd.
1236 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1238 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1239 (set_ui_file_write_async_safe): Declare.
1240 (ui_file_write_async_safe): Declare.
1242 2011-05-13 Tom Tromey <tromey@redhat.com>
1244 * utils.c (do_value_free): New function.
1245 (make_cleanup_value_free): Likewise.
1246 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1248 (dwarf2_loc_desc_needs_frame): Call
1249 make_cleanup_value_free_to_mark.
1250 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1251 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1253 (new_dwarf_expr_context): Don't call value_mark.
1254 * dwarf2-frame.c (execute_stack_op): Call
1255 make_cleanup_value_free_to_mark.
1256 * defs.h (make_cleanup_value_free): Declare.
1258 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1260 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1261 prepare_execute_command.
1262 * top.c (prepare_execute_command): Return cleanup.
1263 (execute_command): Use cleanup from prepare_execute_command.
1264 * top.h (prepare_execute_command): Change prototype to return
1266 * defs.h (struct value): Add opaque declaration.
1267 (make_cleanup_value_free_to_mark): Add prototype.
1268 * utils.c (do_value_free_to_mark): New function.
1269 (make_cleanup_value_free_to_mark): Likewise.
1271 2011-05-12 Tom Tromey <tromey@redhat.com>
1273 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1274 cast left-hand-side to unsigned.
1276 2011-05-12 Tom Tromey <tromey@redhat.com>
1279 * value.h (value_from_contents): Declare.
1280 * value.c (value_from_contents): New function.
1281 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1282 (dwarf2_get_die_type): New function.
1283 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1284 (allocate_piece_closure): Acquire reference to values.
1285 (read_pieced_value): Update for value-based expressions.
1286 (write_pieced_value): Likewise.
1287 (free_pieced_value_closure): Call value_free as needed.
1288 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1289 Update for value-based expressions.
1290 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1291 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1292 <get_base_type>: New field.
1293 (struct dwarf_expr_piece) <v.value>: Change type.
1294 <v.regno>: New field.
1295 (struct dwarf_expr_context) <mark>: New field.
1296 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1297 (dwarf_expr_pop, dwarf_expr_push): Remove.
1298 (dwarf_expr_push_address): Declare.
1299 * dwarf2expr.c (dwarf_arch_cookie): New global.
1300 (struct dwarf_gdbarch_types): New.
1301 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1303 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1305 (dwarf_expr_push_address): New function.
1306 (dwarf_expr_pop): Now static.
1307 (dwarf_expr_fetch): Change return type.
1308 (dwarf_require_integral): New function.
1309 (dwarf_expr_fetch): Simplify.
1310 (add_piece): Update.
1311 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1313 (execute_stack_op) <sign_ext>: Remove.
1314 Use values for DWARF stack.
1315 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1316 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1318 (_initialize_dwarf2expr): New function.
1319 (add_piece): Update.
1320 (new_dwarf_expr_context): Set new field.
1321 (free_dwarf_expr_context): Call value_free_to_mark.
1322 * dwarf2-frame.c (no_base_type): New function.
1323 (execute_stack_op): Set get_base_type field. Update.
1325 2011-05-12 Tom Tromey <tromey@redhat.com>
1327 * dwarf2read.c (read_common_block): Fix formatting.
1329 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1331 * breakpoint.c (disable_breakpoint): Disable all locations
1332 associated with a tracepoint on target if a trace experiment is
1334 (disable_command): Disable a specific tracepoint location on target if
1335 a trace experiment is running.
1336 (do_enable_breakpoint): Enable all locations associated with a
1337 tracepoint on target if a trace experiment is running.
1338 (enable_command) Enable a specific tracepoint location on target if a
1339 trace experiment is running.
1340 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1341 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1342 to_disable_tracepoint.
1343 * target.h: Add declaration of struct bp_location.
1344 (struct target_ops): Add new functions
1345 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1346 to_disable_tracepoint to target operations.
1347 (target_supports_enable_disable_tracepoint): New macro.
1348 (target_enable_tracepoint): New macro.
1349 (target_disable_tracepoint): New macro.
1350 * remote.c (struct remote_state): Add new field.
1351 (remote_enable_disable_tracepoint_feature): New.
1352 (remote_protocol_features): Add new entry.
1353 (remote_supports_enable_disable_tracepoint): New.
1354 (remote_enable_tracepoint): New.
1355 (remote_disable_tracepoint): New.
1356 (init_remote_ops): Add remote_enable_tracepoint,
1357 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1358 to remote operations.
1359 * tracepoint.c (start_tracing): Allow tracing to start without any
1360 tracepoints enabled with just a warning if they can be re-enabled
1362 * NEWS: Add news item for the new behaviour of the enable and disable
1363 GDB commands when applied to tracepoints.
1364 Add news items for the new remote packets QTEnable and QTDisable.
1366 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1368 * config.in: Regenerate.
1369 * configure: Regenerate.
1370 * configure.ac <--with-system-readline> (for readline_echoing_p):
1372 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1373 (tui_old_rl_echoing_p): ... here.
1374 (tui_setup_io): Rename extern declaration readline_echoing_p to
1375 _rl_echoing_p. Adjust assignments for the both renames.
1377 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1379 * symtab.c (lookup_symtab): Run cleanup before returning.
1381 2011-05-11 Tom Tromey <tromey@redhat.com>
1383 * dwarf2read.c (handle_data_member_location): New function.
1384 (dwarf2_add_field): Use it.
1385 (read_common_block): Likewise.
1387 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1389 Make addrs->SECTINDEX always defined.
1390 * symfile.c (relative_addr_info_to_section_offsets): Check for
1391 SECTINDEX -1, not for zero ADDR.
1392 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1393 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1394 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1397 2011-05-10 Doug Evans <dje@google.com>
1399 * linux-thread-db.c: Whitespace cleanup.
1400 (try_thread_db_load_1): Fix comment.
1402 * linux-thread-db.c (set_libthread_db_search_path): New function.
1403 (_initialize_thread_db): Add setter for libthread-db-search-path.
1405 2011-05-09 Doug Evans <dje@google.com>
1407 * NEWS: Mention --with-iconv-bin.
1408 * configure.ac: New option --with-iconv-bin.
1409 * configure: Regenerate.
1410 * config.in: Regenerate.
1411 * defs.h (relocate_gdb_directory): Declare.
1412 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1413 removed progname parameter, and exported. All callers updated.
1414 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1416 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1417 adding missing call to restore_child_signals_mask.
1419 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1421 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1423 * infrun.c (proceed, start_remote): Adjust.
1424 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1425 and adjust to not handle it.
1426 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1427 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1428 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1429 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1430 * windows-nat.c (do_initial_windows_stuff): Adjust.
1431 * infcmd.c (attach_command): Adjust.
1432 (notice_new_inferior): Adjust.
1434 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1436 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1437 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1438 * spu-tdep.c (op_selb): Use correct value.
1440 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1442 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1443 "parent" parameter to symbol_file_add_from_bfd call.
1445 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1446 Thiago Jung Bauermann <bauerman@br.ibm.com>
1448 Implement support for PowerPC BookE masked watchpoints.
1449 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1451 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1452 method. Initialize to NULL in all existing breakpoint_ops instances.
1453 (struct breakpoint) <hw_wp_mask>: New field.
1454 * breakpoint.c (is_masked_watchpoint): Add prototype.
1455 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1456 breakpoint's breakpoint_ops.works_in_software_mode if available.
1457 (watchpoints_triggered): Handle the case of a hardware masked
1459 (watchpoint_check): Likewise.
1460 (works_in_software_mode_watchpoint): New function.
1461 (insert_masked_watchpoint, remove_masked_watchpoint)
1462 (resources_needed_masked_watchpoint)
1463 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1464 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1465 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1467 (masked_watchpoint_breakpoint_ops): New structure.
1468 (watch_command_1): Check for the existence of the `mask' parameter.
1469 Set b->ops according to the type of hardware watchpoint being created.
1470 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1471 (ppc_linux_remove_mask_watchpoint)
1472 (ppc_linux_masked_watch_num_registers): New functions.
1473 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1474 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1475 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1476 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1477 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1478 (target_masked_watch_num_registers): New functions.
1479 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1480 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1482 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1483 (target_masked_watch_num_registers): Add prototypes.
1485 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1488 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1489 (producer_is_gcc_ge_4_0): New function.
1490 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1491 symtab->language code.
1492 (var_decode_location): Set cu->has_loclist.
1493 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1494 skip. Intialize force_skip from locations_valid. Move the prologue
1495 skipping code into two passes.
1496 * symtab.h (struct symtab): Make the primary field a bitfield. New
1497 field locations_valid.
1499 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1501 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1502 (classify_inner_name): Call cp_lookup_nested_type with
1504 * cp-namespace.c (cp_lookup_nested_type): New variable
1505 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1506 type_name_no_tag_or_error with saved_parent_type.
1507 * dwarf2read.c (load_partial_dies): Read in any children of
1508 DW_TAG_typedef with complaint in such case.
1509 * gdbtypes.c (type_name_no_tag_or_error): New function.
1510 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1511 * valops.c (destructor_name_p): New comment for parameter type. Remove
1512 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1513 * value.h (destructor_name_p): Remove type const.
1515 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1517 * symtab.c (compare_symbol_name): New function.
1518 (completion_list_add_name, expand_partial_symbol_name): Call it,
1519 remove the variable ncmp.
1520 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1523 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1525 Demote to sw watchpoint only in update_watchpoint.
1526 * breakpoint.c (update_watchpoint): Change between software and
1527 hardware watchpoint for all kinds of watchpoints, not just
1528 read/write ones. Determine b->exact value here instead of
1529 in watch_command_1. Error out if there are not enough resources
1530 for a read or access hardware watchpoint.
1531 (watch_command_1): Remove logic of checking whether there are
1532 enough resources available, since update_watchpoint will do that
1533 work now. Don't set b->exact here. Catch exceptions thrown by
1534 update_watchpoint and delete the watchpoint.
1535 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1536 Use target_exact_watchpoints instead.
1537 (delete_breakpoint): Notify observers only if deleted watchpoint
1538 has a breakpoint number assigned to it.
1540 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1542 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1544 2011-05-05 Jerome Guitton <guitton@adacore.com>
1546 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1548 (i386_stack_tramp_frame_unwind): New static global.
1549 (i386_match_pattern): New function, extracted from i386_match_insn.
1550 (i386_match_insn): Use i386_match_pattern.
1551 (i386_match_insn_block): New function.
1552 (i386_tramp_chain_in_reg_insns)
1553 (i386_tramp_chain_on_stack_insns): New static variables.
1554 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1557 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1559 * configure.host (xscale*): Don't handle target.
1560 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1563 2011-05-04 Yao Qi <yao@codesourcery.com>
1565 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1567 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1570 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1571 | * elfread.c (elf_symtab_read): Stop memory leak.
1573 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1575 * nto-tdep.c (nto_target): Replace deprecated call to
1576 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1578 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1580 Fix false GCC warning.
1581 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1583 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1585 * breakpoint.c (update_watchpoint): Move code to change
1586 the enable state of breakpoint from here ...
1587 (do_enable_breakpoint): ... to here.
1589 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1591 * valprint.c (val_print_array_elements): Fixed poor performance
1592 of printing very large arrays with repeat_count_threshold set
1593 to unlimited. New comment.
1595 2011-04-29 Tom Tromey <tromey@redhat.com>
1597 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1598 (mi_parse): Likewise.
1599 * breakpoint.c (break_range_command): Use sizeof char*, not
1601 (create_breakpoint): Likewise.
1602 (parse_breakpoint_sals): Likewise.
1604 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1606 * linux-nat.c (linux_child_remove_fork_catchpoint)
1607 (linux_child_remove_vfork_catchpoint)
1608 (linux_child_remove_exec_catchpoint): New functions.
1609 (linux_target_install_ops): Install them.
1611 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1615 * varobj.c (install_default_visualizer): Do not install a
1616 visualizer if the varobj is CPLUS_FAKE_CHILD.
1617 (construct_visualizer): Likewise.
1619 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1621 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1622 case insensitive comparison.
1624 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1626 * infrun.c (proceed): Revert previous change.
1627 (resume): Instead, handle the case of signal delivery while stepping
1628 off a breakpoint location here, and only if software single-stepping
1629 is used. Handle nested signals.
1631 2011-04-28 Yao Qi <yao@codesourcery.com>
1633 * arm-tdep.c (copy_unmodified): Rename to ...
1634 (arm_copy_unmodified): .. this. New.
1635 (copy_preload): Move common part to ...
1636 (install_preload): .. this. New.
1637 (arm_copy_preload): New.
1638 (copy_preload_reg): Move common part to ...
1639 (install_preload_reg): ... this. New.
1640 (arm_copy_preload_reg): New.
1641 (copy_b_bl_blx): Move common part to ...
1642 (install_b_bl_blx): .. this. New.
1643 (arm_copy_b_bl_blx): New.
1644 (copy_bx_blx_reg): Move common part to ...
1645 (install_bx_blx_reg): ... this. New.
1646 (arm_copy_bx_blx_reg): New.
1647 (copy_alu_reg): Move common part to ...
1648 (install_alu_reg): ... this. New.
1649 (arm_copy_alu_reg): New.
1650 (copy_alu_shifted_reg): Move common part to ...
1651 (install_alu_shifted_reg): ... this. New.
1652 (copy_ldr_str_ldrb_strb): Move common part to ...
1653 (install_ldr_str_ldrb_strb): ... this. New.
1654 (arm_copy_ldr_str_ldrb_strb): New.
1655 (copy_copro_load_store): Move some common part to ...
1656 (install_copy_copro_load_store): ... this. New.
1657 (arm_copy_copro_load_store): New.
1659 (arm_copy_svc): Renamed from copy_svc.
1660 (copy_undef): Delete.
1661 (arm_copy_undef): Renamed from copy_undef.
1662 (decode_ext_reg_ld_st): Delete.
1663 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1664 (decode_svc_copro): Delete.
1665 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1666 (copy_copro_load_store, copy_alu_imm): update callers.
1667 (copy_extra_ld_st, copy_block_xfer): Likewise.
1668 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1669 (decode_miscellaneous, decode_dp_misc): Likewise.
1670 (decode_ld_st_word_ubyte, decode_media): Likewise.
1671 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1672 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1673 (decode_unconditional, decode_miscellaneous): Likewise.
1674 (decode_media, decode_b_bl_ldmstm): Likewise.
1675 (arm_process_displaced_insn): Likewise..
1676 (decode_misc_memhint_neon): Delete.
1677 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1678 (decode_miscellaneous): Delete.
1679 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1680 (decode_dp_misc): Delete.
1681 (arm_decode_dp_misc): Renamed from decode_dp_misc.
1682 (decode_ld_st_word_ubyte): Delete.
1683 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1684 (decode_media): Delete.
1685 (arm_decode_media): Renamed from decode_media.
1686 (decode_b_bl_ldmstm): Delete.
1687 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1688 (decode_ext_reg_ld_st): Delete.
1689 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1690 (decode_unconditional): Delete.
1691 (arm_decode_unconditional): Renamed from decode_unconditional.
1693 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1695 Case insensitive lookups implementation.
1696 * dwarf2read.c: Include ctype.h.
1697 (struct mapped_index): New field version.
1698 (mapped_index_string_hash): New parameter index_version. New comment
1699 for it. Call tolower appropriately.
1700 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1701 Choose the right index version for mapped_index_string_hash.
1702 (dwarf2_read_index): Support also the index version 5. Initialize the
1703 new struct mapped_index field version.
1704 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1705 (find_slot): Explain the version needs. Pass INT_MAX for the new
1707 (write_psymtabs_to_index): Produce version 5.
1708 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1709 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
1710 * psymtab.c (lookup_partial_symbol): Find the
1711 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1713 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1715 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1716 (completion_list_add_name): New variable ncmp, initialize it, use it.
1717 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1718 * utils.c (strcmp_iw): Support case_sensitive_off.
1719 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1720 New function comment part. New variables saved_string1,
1721 saved_string2 and case_pass. Add a proper second pass.
1723 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1725 Replace re_comp/re_exec by regcomp/regexec.
1726 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1727 (search_symbols_name_matches): Use them, use regexec.
1728 (search_symbols): New variable retval_chain, adjust the use of
1729 old_chain against it. Replace re_comp by regcomp. Use the new struct
1730 search_symbols_data fields, use regexec instead of re_exec.
1732 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1734 Format the code for the next patch.
1735 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1736 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1737 New variables c1 and c2.
1739 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1741 * infrun.c (proceed): Do not single-step into signal delivery
1742 when stepping off a breakpoint location.
1743 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1744 (insert_step_resume_breakpoint_at_caller): Likewise.
1745 (insert_step_resume_breakpoint_at_sal): Likewise.
1746 (insert_longjmp_resume_breakpoint): Likewise.
1748 2011-04-27 Yao Qi <yao@codesourcery.com>
1750 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1752 2011-04-27 Joel Brobecker <brobecker@adacore.com>
1754 * procfs.c (procfs_pass_signals): Fix advance declaration.
1756 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1758 * target.h (struct target_ops): Remove to_notice_signals;
1759 add to_pass_signals.
1760 (target_notice_signals): Remove.
1761 (target_pass_signals): Add prototype.
1762 * target.c (update_current_target): Remove to_notice_signals;
1763 mention to_pass_signals.
1764 (target_pass_signals): New function.
1765 (debug_to_notice_signals): Remove.
1766 (setup_target_debug): Do not install debug_to_notice_signals.
1768 * infrun.c (signal_pass): New global.
1769 (resume): Call target_pass_signals.
1770 (handle_inferior_event): Report all signals while stepping over
1771 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1772 are re-inserted when stepping over a signal handler.
1773 (signal_cache_update): New function.
1774 (signal_stop_update): Call it.
1775 (signal_print_update): Likewise.
1776 (signal_pass_update): Likewise.
1777 (handle_command): Call signal_cache_update and target_pass_signals
1778 instead of target_notice_signals.
1779 (_initialize_infrun): Initialize signal_pass.
1781 * linux-nat.c (pass_mask): New global.
1782 (linux_nat_pass_signals): New function.
1783 (linux_nat_create_inferior): Report all signals initially.
1784 (linux_nat_attach): Likewise.
1785 (linux_nat_resume): Use pass_mask to decide whether to directly
1786 handle an inferior signal.
1787 (linux_nat_wait_1): Likewise.
1788 (linux_nat_add_target): Install to_pass_signals callback.
1790 * nto-procfs.c (notice_signals): Remove.
1791 (procfs_resume): Do not call notice_signals.
1792 (procfs_notice_signals): Remove.
1793 (procfs_pass_signals): New function.
1794 (init_procfs_ops): Install to_pass_signals callback instead of
1795 to_notice_signals callback.
1796 (_initialize_procfs): Report all signals initially.
1798 * procfs.c (procfs_notice_signals): Remove.
1799 (procfs_pass_signals): New function.
1800 (procfs_target): Install to_pass_signals callback instead of
1801 to_notice_signals callback.
1802 (register_gdb_signals): Remove.
1803 (procfs_debug_inferior): Report all signals initially.
1804 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1806 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1807 parameters; use them instead of calling signal_..._state routines.
1808 (remote_notice_signals): Remove.
1809 (remote_start_remote): Report all signals initially.
1810 (remote_resume): Do not call remote_pass_signals.
1811 (_initialize_remote): Install to_pass_signals callback instead of
1812 to_notice_signals callback.
1814 2011-04-27 Pedro Alves <pedro@codesourcery.com>
1816 * breakpoint.c (user_settable_breakpoint): Delete.
1817 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1818 (delete_command): Check user_breakpoint_p instead of looking at
1819 the breakpoint's type.
1820 (disable_command): Ditto.
1821 (enable_command): Ditto.
1822 (delete_trace_command): Use user_breakpoint_p instead of looking
1823 at the breakpoint number directly. When checking if there are
1824 user visible tracepoints, in order to know whether to ask the user
1825 for confirmation, check whether the breakpoint is actually a
1828 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1830 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1833 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1835 MI breakpoint notifications.
1837 * annotate.c (breakpoint_changed): Adjust parameter type.
1838 * breakpoint.c (set_breakpoint_condition): Adjust to change
1839 in breakpoint_modified type.
1840 (breakpoint_set_commands): Likewise.
1841 (do_map_commands_command): Likewise.
1842 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1843 changed after bumping hit count.
1844 (bpstat_stop_status): Likewise.
1845 (print_one_breakpoint_location): Don't wrap in tuple here.
1846 (print_one_breakpoint): Always print individual locations.
1847 For locations, use unnamed tuple.
1848 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1850 (create_catchpoint, create_syscall_event_catchpoint): Call
1851 breakpoint_created obsever.
1852 (mention): Don't call breakpoint_created observer.
1853 (create_breakpoint_sal): Call breakpoint_created observer.
1854 (create_breakpoint, watch_command_1): Likewise.
1855 (create_ada_exception_breakpoint): Likewise.
1856 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1857 (locations_are_equal): New.
1858 (update_breakpoint_locations): If locations were changed, notify.
1859 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1860 Call breakpoint_modified observer.
1862 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1863 (mi_cmd_break_insert): Don't set observers for modify and delete.
1864 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1865 (mi_breakpoint_created, mi_breakpoint_deleted)
1866 (mi_breakpoint_modified): New.
1867 (mi_interpreter_init): Hook the above.
1868 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1869 while -break-* commands are executing.
1870 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1871 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1873 (mi_ui_out_impl): Hook in mi_redirect.
1874 (mi_field_skip): True to the name, skip the field, don't output
1875 a field with an empty value.
1877 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1878 (gdbpy_breakpoint_deleted): Adjust.
1879 * tui/tui-hooks.c (tui_event_create_breakpoint)
1880 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1882 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1884 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1885 (procfs_remove_hw_watchpoint): Likewise.
1887 2011-04-26 Michael Walle <michael@walle.cc>
1889 * remote.c (remote_start_remote): Ack packet after sending the
1892 2011-04-26 Yao Qi <yao@codesourcery.com>
1894 * linux-nat.c: Move common macros to ...
1895 Include linux-ptrace.h.
1896 * common/linux-ptrace.h: ... here. New.
1898 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1900 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1901 !objfile_has_partial_symbols. New comment.
1902 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1903 SYM_READ_PSYMBOLS is not present. Extend the comment.
1904 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1906 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1908 * defs.h (ENUM_BITFIELD): Remove.
1910 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1911 Eli Zaretskii <eliz@gnu.org>
1913 * NEWS: Document the new gdbserver --once option.
1915 2011-04-21 Jie Zhang <jzhang918@gmail.com>
1917 * MAINTAINERS: Update my email address.
1919 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1921 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1922 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1923 function call if __STDC_ISO_10646__ macro is defined.
1924 (intermediate_encoding): New prototype.
1925 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1926 to generate compile time error for unsupported gdb_wchar_t size.
1927 (ENDIAN_SUFFIX): New macro.
1928 (intermediate_encoding): New function.
1930 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1932 * ada-lang.c (struct add_partial_datum): Update the comment for
1933 expand_partial_symbol_name.
1934 (ada_add_partial_symbol_completions): Rename to ...
1935 (ada_expand_partial_symbol_name): ... here, change return type, update
1936 function comment, call symbol_completion_match instead of
1937 symbol_completion_add.
1938 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1939 and ada_expand_partial_symbol_name.
1940 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1942 (dw2_map_symbol_names): Remove.
1943 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1944 * psymtab.c (map_symbol_names_psymtab): Remove.
1945 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1946 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1948 (psym_functions): Unlist map_symbol_names_psymtab.
1949 (map_partial_symbol_names): Rename to ...
1950 (expand_partial_symbol_names): ... here, change the FUN type, call
1951 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1952 * psymtab.h (map_partial_symbol_names): Rename to ...
1953 (expand_partial_symbol_names): ... here, change the FUN type.
1954 * symfile.h (struct quick_symbol_functions): Update the description of
1955 expand_symtabs_matching. Remove map_symbol_names.
1956 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1957 (struct add_name_data): Update the comment for
1958 expand_partial_symbol_name.
1959 (add_partial_symbol_name): Rename to ...
1960 (expand_partial_symbol_name): ... here. Replace
1961 completion_list_add_name call by strncmp.
1962 (default_make_symbol_completion_list_break_on): Use now
1963 expand_partial_symbol_names and expand_partial_symbol_name.
1964 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1966 2011-04-20 Tom Tromey <tromey@redhat.com>
1968 * dwarf2read.c (save_gdb_index_command): Replace format
1969 documentation with a pointer to the manual.
1971 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1973 * regcache.c: Include remote.h.
1974 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1975 (regcache_dump): Handle regcache_dump_remote.
1976 (maintenance_print_remote_registers): New function.
1977 (_initialize_regcache): Install "maint print remote-registers"
1979 * remote.c (map_regcache_remote_table): New function, factored out
1981 (init_remote_state): ... here.
1982 (remote_register_number_and_offset): New.
1983 * remote.h (remote_register_number_and_offset): Declare.
1985 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1987 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1988 null_ptid, assume and allow a NULL address space, instead of
1989 asking the target for the ptid's address space.
1990 * infrun.c (ptid_is_pid): Remove assertion.
1992 2011-04-19 Tom Tromey <tromey@redhat.com>
1994 * windows-tdep.c (windows_xfer_shared_library):
1995 * windows-nat.c (get_module_name, windows_make_so):
1996 * v850-tdep.c (v850_handle_pushm):
1997 * utils.c (null_cleanup, gdb_realpath):
1998 * ui-out.c (get_next_header):
1999 * tracepoint.c (clear_traceframe_info):
2000 * symtab.c (lookup_symtab):
2001 * serial.h (struct serial_ops):
2002 * mipsread.c (read_alphacoff_dynamic_symtab):
2003 * infcmd.c (print_return_value):
2004 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2005 * f-exp.y (parse_number):
2006 * exceptions.c (catch_exceptions):
2007 * dummy-frame.c (dummy_frame_this_id):
2008 * defs.h (struct cleanup):
2009 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2010 * arm-tdep.c (arm_push_dummy_call):
2011 * amd64-tdep.h (amd64_collect_xsave):
2012 * amd64-tdep.c (amd64_collect_xsave):
2013 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2014 * README (typing): Remove duplicate words.
2015 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2016 * infrun.c (siginfo_value_read): Fix typo.
2017 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2018 * top.c (source_line_number): Add comma.
2020 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2022 * thread.c (any_live_thread_of_process): Prioritize threads
2023 that are not executing.
2024 * gdbthread.h (any_live_thread_of_process): Update comment
2025 as per above change.
2027 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2029 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2030 (scan_xcoff_symtab): Likewise.
2032 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2034 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2037 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2038 Pedro Alves <pedro@codesourcery.com>
2040 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2041 variables to simplify code and avoid == operator at end of
2042 line as this is against GNU coding standards.
2044 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2046 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2047 lm_name to name_lm to avoid conflict with lm_name function.
2049 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2051 ARI fixes: Use only lowercase function name for static functions.
2052 * nto-tdep.c (LM_ADDR): Rename to...
2053 (lm_addr): New function name.
2054 (nto_relocate_section_addresses): Adapt to change above.
2055 * solib-sunos.c (LM_ADDR): Rename to...
2056 (lm_addr): New function name.
2057 (LM_NEXT): Rename to...
2058 (lm_next): New function name.
2059 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2060 function name changes above.
2061 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2062 (lm_addr_from_link_map): New function name.
2063 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2064 (has_lm_dynamic_from_link_map): New function name.
2065 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2066 (lm_dynamic_from_link_map): New function name.
2067 (LM_ADDR_CHECK): Rename to...
2068 (lm_addr_check): New function name.
2069 (LM_NEXT): Rename to...
2070 (lm_next): New function name.
2071 (LM_PREV): Rename to...
2072 (lm_prev): New function name.
2073 (LM_NAME): Rename to...
2074 (lm_name): New function name.
2075 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2076 (ignore_first_link_map_entry): New function name.
2077 (svr4_keep_data_in_core): Adapt to function name changes above.
2078 (svr4_current_sos): Likewise.
2079 (enable_break): Likewise.
2080 (svr4_relocate_section_addresses): Likewise.
2082 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2085 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2086 sprintf. Simplify code and avoid loosing memory.
2087 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2088 (call0_frame_cache): Remove && operator from end of line.
2090 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2092 Fix libraries displacement if they change whether they were prelinked.
2093 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2094 does not match. Comment why.
2096 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2098 * corelow.c: Include wrapper.h.
2099 (core_open): Call now gdb_target_find_new_threads.
2100 * wrapper.c: Include target.h.
2101 (gdb_target_find_new_threads): New.
2102 * wrapper.h (gdb_target_find_new_threads): New declaration.
2104 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2106 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2107 even if !TARGET_HAS_EXECUTION.
2109 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2111 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2112 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2113 bfd_get_synthetic_symtab.
2114 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2115 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2116 parameter parent, remove the call to add_separate_debug_objfile.
2117 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2118 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2119 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2120 parent, new comment for it, call add_separate_debug_objfile for it.
2121 (symbol_file_add_separate): Pass objfile as the parameter parent,
2122 remove the call to add_separate_debug_objfile.
2123 (symbol_file_add_from_bfd): New parameter parent, pass it.
2124 (symbol_file_add): Pass NULL to the new parameter parent.
2125 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2127 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2129 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2132 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2134 Fix Python access to inlined frames.
2135 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2136 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2138 2011-04-15 Tom Tromey <tromey@redhat.com>
2140 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2142 2011-04-15 Gary Benson <gbenson@redhat.com>
2144 * MAINTAINERS: Add myself to write-after-approval section.
2146 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2148 * remote-sim.c (sim_command_completer): New function.
2149 (_initialize_remote_sim): Set completer to sim_command_completer.
2151 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2153 * breakpoint.c (print_exception_catchpoint): Rename to ...
2154 (print_it_exception_catchpoint): ... this.
2155 (gnu_v3_exception_catchpoint_ops): Update with new name
2156 for print_it_exception_catchpoint.
2158 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2160 * MAINTAINERS: Add myself for write after approval privileges.
2162 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2164 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2166 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2168 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2170 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2172 * breakpoint.c (save_breakpoints): Verify whether
2173 breakpoint_ops.print_recreate is defined before calling it.
2175 2011-04-11 Gary Benson <gbenson@redhat.com>
2177 Fix failure with --enable-maintainer-mode.
2178 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2180 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2183 * symtab.c (search_symbols): Reorder the KIND description in the
2184 function comment. Remove the unused 4th element of types, types2,
2185 types3 and types4. New gdb_assert on KIND.
2186 (symtab_symbol_info): Remove the unused 4th element of classnames.
2187 New gdb_assert on KIND.
2188 * symtab.h (enum search_domain): New warning in the enum comment.
2189 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2192 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2194 Fix crash of gdb save-index on a STABS file.
2195 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2198 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2200 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2201 * dwarf2read.c: Include ctype.h.
2202 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2204 (dwarf2_add_field): Fix new_field->accessibility by calling
2205 dwarf2_default_access_attribute. Restructure setting accessibility
2207 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2208 is_private and is_protected by calling
2209 dwarf2_default_access_attribute.
2211 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2213 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2214 to the initialization.
2216 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2218 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2221 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2223 Remove support for old Cygwin 1.5 versions.
2224 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2225 function on old Cygwin version.
2226 * windows-nat.c: Remove cygwin version check and always define
2227 __USEWIDE for Cygwin compilation.
2229 2011-04-07 Yao Qi <yao@codesourcery.com>
2231 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2233 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2234 (arm_copy_svc): Remove parameters INSN and TO.
2235 (decode_svc_copro): Update caller.
2236 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2237 from function pointer `copy_svc_os'.
2239 2011-04-07 Yao Qi <yao@codesourcery.com>
2241 * arm-tdep.c (cleanup_branch): Set a correct return address in
2242 LR for ARM and Thumb.
2244 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2247 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2248 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2249 in the function comment, a new note on values compatibility.
2250 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2251 * symtab.h (SYMBOL_HASH_NEXT): New.
2253 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2255 * ppc-linux-nat.c (check_condition): Add len output parameter.
2256 Set it based on the memory region referenced in the condition
2257 expression. Update all callers.
2259 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2261 Fix crash regression on systems featuring .gdb_index.
2262 * objfiles.c (free_objfile): Move the
2263 forget_cached_source_info_for_objfile call earlier. Comment it.
2264 Extend the comment for objfile_free_data.
2266 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2268 Fix regression of displaying the debug format.
2269 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2272 2011-04-04 Tom Tromey <tromey@redhat.com>
2274 * cli/cli-interp.c (struct captured_execute_command_args):
2276 (do_captured_execute_command): Remove.
2277 (safe_execute_command): Use TRY_CATCH.
2278 * cli/cli-script.c (struct wrapped_read_command_file_args):
2280 (wrapped_read_command_file): Remove.
2281 (script_from_file): Use TRY_CATCH.
2282 * exceptions.c (catch_exception): Remove.
2283 * exceptions.h (catch_exception): Remove.
2284 (deprecated_throw_reason): Update comment.
2285 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2286 argument to 'context'.
2287 (mi_execute_command): Use TRY_CATCH.
2288 * remote.c (struct start_remote_args): Remove.
2289 (remote_start_remote): Update; change arguments.
2290 (remote_open_1): Use TRY_CATCH.
2292 2011-04-04 Tom Tromey <tromey@redhat.com>
2294 * tracepoint.c (scope_info): Update.
2295 * symtab.c (decode_line_spec): Update.
2296 * python/python.c (gdbpy_decode_line): Update.
2297 * linespec.h (decode_line_1): Update.
2298 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2299 (decode_compound, find_method, symtab_from_filename)
2300 (decode_variable): Likewise.
2301 * cli/cli-cmds.c (edit_command): Update.
2302 (list_command): Update.
2303 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2305 (create_breakpoint): Update.
2306 (until_break_command): Update.
2307 (addr_string_to_sals): Update.
2308 (decode_line_spec_1): Update.
2310 2011-04-04 Tom Tromey <tromey@redhat.com>
2312 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2313 (do_captured_parse_breakpoint): Remove.
2314 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2315 Use TRY_CATCH directly.
2317 2011-04-04 Tom Tromey <tromey@redhat.com>
2319 * symtab.h (free_symtab): Remove.
2320 (forget_cached_source_info_for_objfile): Declare.
2321 * symmisc.c (free_symtab): Remove.
2322 * source.c (forget_cached_source_info_for_objfile): New function.
2323 (forget_cached_source_info): Use it.
2324 * objfiles.c (free_objfile): Simplify check before calling
2325 clear_current_source_symtab_and_line. Call
2326 forget_cached_source_info_for_objfile.
2328 2011-04-04 Tom Tromey <tromey@redhat.com>
2330 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2331 (new_symtab): Don't set `free_code' on symtab.
2332 (new_linetable): Properly handle size==0.
2333 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2334 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2336 * jv-lang.c (struct jv_per_objfile_data): New.
2337 (jv_per_objfile_free): Free the data.
2338 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2339 (get_java_class_symtab): Set the `dict' field on the
2340 jv_per_objfile_data.
2341 (free_class_block): Remove.
2342 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2345 2011-04-04 Tom Tromey <tromey@redhat.com>
2347 * symfile.c (reread_symbols): Update.
2348 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2350 * objfiles.c (allocate_objfile): Update.
2351 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2353 * cp-namespace.c (lookup_symbol_file): Don't call
2354 lookup_possible_namespace_symbol.
2355 (initialize_namespace_symtab, get_possible_namespace_block)
2356 (free_namespace_block, cp_check_possible_namespace_symbols)
2357 (check_possible_namespace_symbols_loop)
2358 (check_one_possible_namespace_symbol)
2359 (lookup_possible_namespace_symbol): Remove.
2360 (maintenance_cplus_namespace): Replace with notice.
2361 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2363 2011-04-04 Tom Tromey <tromey@redhat.com>
2365 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2366 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2367 * symmisc.c (free_symtab): Don't free debugformat.
2368 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2369 (record_debugformat, record_producer): Document.
2370 * buildsym.c (end_symtab): Don't save debugformat and producer
2372 (end_symtab): Don't free debugformat and producer fields.
2373 (record_debugformat): Don't call xstrdup.
2374 (record_producer): Likewise.
2376 2011-04-04 Tom Tromey <tromey@redhat.com>
2378 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2379 (source_line_charpos, source_charpos_line): Remove.
2381 2011-04-04 Tom Tromey <tromey@redhat.com>
2383 * symtab.h (domain_enum): Split in two...
2384 (enum search_domain): New.
2385 (search_symbols): Update.
2386 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2387 redundant declarations.
2388 (search_symbols): Change 'kind' argument to search_domain.
2390 (print_symbol_info): Likewise.
2391 (symtab_symbol_info): Likewise.
2392 * symfile.h (struct quick_symbol_functions)
2393 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2394 <expand_symtabs_matching>: Likewise.
2395 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2396 (expand_symtabs_matching_via_partial): Update.
2397 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2398 (dw2_expand_symtabs_for_function): Update.
2399 * block.h: Moved anonymous enum...
2400 * defs.h (enum block_enum): ... here. Now named.
2402 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2404 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2405 * version.in: Bump version to 7.3.50.20110403-cvs.
2407 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2409 * NEWS: Create a new section for the next release branch.
2410 Rename the section of the current branch, now that it has
2413 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2415 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2416 for "fpscr" in target description.
2418 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2420 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2421 initialize it. Delay HASH initialization. Strip the part after open
2422 parenthesis for languages with qualifiers. Call do_cleanups.
2424 2011-04-01 Tom Tromey <tromey@redhat.com>
2426 * utils.c (report_command_stats): Don't print `-' for negative
2429 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2431 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2432 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2435 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2437 * breakpoint.h (bpdisp_text): Add declaration.
2438 * breakpoint.c (bpdisp_text): Make non-static.
2439 * ada-lang.c: #include "mi/mi-common.h".
2440 (print_it_exception): Rewrite to improve GDB/MI output.
2442 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2444 * arm-tdep.h (struct address_space): Add forward declaration.
2446 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2448 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2449 * arm-tdep.c (arm_override_mode): New global.
2450 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2451 execution mode heuristics.
2452 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2453 second single-step breakpoint if needed, using
2454 arm_insert_single_step_breakpoint.
2455 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2456 ARM execution mode, do not call thumb_get_next_pc_raw.
2457 (arm_get_next_pc): Encode execution mode in return value. Call
2458 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2459 (arm_insert_single_step_breakpoint): New function.
2460 (arm_software_single_step): Call it.
2461 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2462 argument to return execution mode of sigreturn target.
2463 (arm_linux_syscall_next_pc): Use it.
2464 (arm_linux_copy_svc): Update call.
2465 (arm_linux_software_single_step): Call
2466 arm_insert_single_step_breakpoint.
2468 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2470 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2473 2011-03-31 Tom Tromey <tromey@redhat.com>
2475 * varobj.c (update_dynamic_varobj_children): Properly handle
2476 errors from iterator.
2478 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2480 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2481 struct linkage name twice.
2483 2011-03-31 Tom Tromey <tromey@redhat.com>
2485 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2486 missing ">" to message.
2488 2011-03-31 Tom Tromey <tromey@redhat.com>
2490 * varobj.c (instantiate_pretty_printer): Remove duplicate
2493 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2495 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2496 if neither saved value nor register available (e.g. signal frame).
2498 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2500 * macroexp.c (expand): Avoid uninitialized variable
2503 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2505 * breakpoint.c (break_range_command): Fix typo in comment.
2507 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2508 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2510 Implement support for PowerPC BookE ranged breakpoints.
2511 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2512 * breakpoint.h (struct bp_target_info) <length>: New member
2514 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2515 instead of struct breakpoint as argument, and also add ASPACE
2516 and BP_ADDR arguments. Update all callers.
2517 (struct breakpoint_ops) <print_one_detail>: New method.
2518 (struct breakpoint) <addr_string_range_end>: New member variable.
2519 * breakpoint.c (breakpoint_location_address_match): Add function
2521 (insert_bp_location): Set bl->target_info.length.
2522 (breakpoint_here_p): Call breakpoint_location_address_match.
2523 (moribund_breakpoint_here_p): Likewise.
2524 (regular_breakpoint_inserted_here_p): Likewise.
2525 (breakpoint_thread_match): Likewise.
2526 (bpstat_stop_status): Likewise.
2527 (bpstat_check_location): Move call to
2528 breakpoint_ops.breakpoint_hit to the top.
2529 (print_one_breakpoint_location): Call
2530 breakpoint_ops.print_one_detail if available.
2531 (breakpoint_address_match_range): New function.
2532 (breakpoint_location_address_match): Likewise.
2533 (breakpoint_locations_match): Compare the length field of the
2535 (hw_breakpoint_used_count): Count resources used by all locations
2536 in a breakpoint, and use breakpoint_ops.resources_needed if
2538 (breakpoint_hit_ranged_breakpoint): New function.
2539 (resources_needed_ranged_breakpoint): Likewise.
2540 (print_it_ranged_breakpoint): Likewise.
2541 (print_one_ranged_breakpoint): Likewise.
2542 (print_one_detail_ranged_breakpoint): Likewise.
2543 (print_mention_ranged_breakpoint): Likewise.
2544 (print_recreate_ranged_breakpoint): Likewise.
2545 (ranged_breakpoint_ops): New structure.
2546 (find_breakpoint_range_end): New function.
2547 (break_range_command): Likewise.
2548 (delete_breakpoint): Free addr_string_range_end.
2549 (update_breakpoint_locations): Add SALS_END argument. Update
2550 all callers. Calculate breakpoint length if a non-zero SALS_END
2551 is given. Call breakpoint_locations_match instead of
2552 breakpoint_address_match.
2553 (reset_breakpoint): Find SaL of the end of the range if B is a
2555 (_initialize_breakpoint): Register break-range command.
2556 * defs.h (print_core_address): Add function prototype.
2557 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2559 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2560 (ppc_linux_remove_hw_breakpoint): Likewise.
2561 (_initialize_ppc_linux_nat): Initialize
2562 to_ranged_break_num_registers.
2563 * target.c (update_current_target): Add comment about
2564 to_ranged_break_num_registers.
2565 (target_ranged_break_num_registers): New function.
2566 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2568 (target_ranged_break_num_registers): Add function prototype.
2569 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2570 * utils.c (print_core_address): ... here.
2572 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2574 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2575 variable compiler warning.
2577 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2579 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2581 (re_set_breakpoint): ... to here ...
2582 (addr_string_to_sals): ... and here.
2584 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2586 * Makefile.in (SFILES): Add missing C sources.
2587 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2588 Add missing headers.
2590 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2592 * .gitignore: New file.
2594 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2596 * NEWS: Mention new cfi device simulation.
2598 2011-03-29 Tom Tromey <tromey@redhat.com>
2600 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2601 otherwise anonymous types.
2602 (dwarf2_name): Likewise.
2603 * valops.c (value_struct_elt_for_reference): Refine artificial
2604 type logic. Call error if j==-1.
2606 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2608 Fix false GCC warning.
2609 * infcall.c (find_function_addr): Initialize funaddr.
2611 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2613 Fix mingw compilation with --enable-targets=all.
2614 * remote-mips.c (gdb_usleep.h): Include header.
2615 (mips_enter_debug): Use gdb_usleep instead of sleep.
2617 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2619 Support resolution of STT_GNU_IFUNC via breakpoints.
2620 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2621 bp_gnu_ifunc_resolver_return.
2622 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2623 the loop. Support bp_gnu_ifunc_resolver and
2624 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2625 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2627 (bptype_string, print_one_breakpoint_location): Support
2628 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2629 (user_settable_breakpoint): Return true also for
2630 bp_gnu_ifunc_resolver.
2631 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2632 bp_gnu_ifunc_resolver_return.
2633 (set_breakpoint_location_function): New parameter explicit_loc,
2634 describe it. Call find_pc_partial_function_gnu_ifunc with new
2635 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2636 EXPLICIT_LOC is not set.
2637 (set_raw_breakpoint): Set EXPLICIT_LOC for
2638 set_breakpoint_location_function.
2639 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2640 set_breakpoint_location_function.
2641 (mention): Support bp_gnu_ifunc_resolver and
2642 bp_gnu_ifunc_resolver_return.
2643 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2644 set_breakpoint_location_function.
2645 (update_breakpoint_locations): Remove static.
2646 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2647 bp_gnu_ifunc_resolver_return.
2648 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2649 bp_gnu_ifunc_resolver_return.
2650 (update_breakpoint_locations): New declaration.
2651 * elfread.c: Include gdbthread.h and regcache.h.
2652 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2654 (elf_gnu_ifunc_fns): Install them.
2655 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2656 (stub_gnu_ifunc_resolver_return_stop): New functions.
2657 (stub_gnu_ifunc_fns): Install them.
2658 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2659 and gnu_ifunc_resolver_return_stop.
2660 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2662 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2664 STT_GNU_IFUNC reader implementation.
2665 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2666 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2667 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2668 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2669 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2670 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2671 (elf_gnu_ifunc_resolve_addr): New.
2672 (elf_symfile_read): Call elf_rel_plt_read.
2673 (elf_gnu_ifunc_fns): New.
2674 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2675 Install elf_gnu_ifunc_fns.
2676 * infcall.c (find_function_return_type): New function.
2677 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2678 * minsyms.c (stub_gnu_ifunc_resolve_addr)
2679 (stub_gnu_ifunc_resolve_name): New functions.
2680 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2681 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2682 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2684 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2686 Code cleanup for later STT_GNU_IFUNC support.
2687 * infcall.c (find_function_addr): Remove variable code, use explicit
2688 dereferences for it. Move VALUE_TYPE initialization later.
2690 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2692 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2693 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2694 (clear_pc_function_cache): Clear it.
2695 (find_pc_partial_function): Rename to ...
2696 (find_pc_partial_function_gnu_ifunc): ... this function. New
2697 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2698 (find_pc_partial_function): New wrapper for this function.
2699 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2701 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2703 GDB internal type support for STT_GNU_IFUNC.
2704 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2705 (elf_symtab_read): Set mst_text_gnu_ifunc for
2706 BSF_GNU_INDIRECT_FUNCTION.
2707 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2708 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2709 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2710 nodebug_got_plt_symbol.
2711 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2712 (TYPE_GNU_IFUNC): New.
2713 (struct main_type): New field flag_gnu_ifunc.
2714 (struct builtin_type): New field builtin_func_func.
2715 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2716 nodebug_got_plt_symbol.
2717 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2718 (in_gnu_ifunc_stub): New.
2719 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2721 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2722 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2723 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2725 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2726 * symtab.c (search_symbols): Likewise.
2727 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2728 and mst_slot_got_plt.
2729 (in_gnu_ifunc_stub): New declaration.
2731 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2733 Support a ring of related breakpoints.
2734 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2735 other functions, add gdb_assert.
2736 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2737 watchpoint_del_at_next_stop.
2738 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2739 (bpstat_stop_status): Handle ring in related_breakpoint.
2740 (set_raw_breakpoint_without_location): Initialize ring in
2742 (delete_breakpoint): Handle ring in related_breakpoint, use
2743 watchpoint_del_at_next_stop.
2744 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2746 2011-03-28 Tom Tromey <tromey@redhat.com>
2749 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2750 with `language_minimal'.
2752 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
2754 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2755 instead of checking for STT_ARM_TFUNC symbol type.
2757 2011-03-25 Tom Tromey <tromey@redhat.com>
2759 * linespec.c (symbol_found): Restore line-based result for
2760 non-LOC_LABEL symbols.
2762 2011-03-25 Kai Tietz <ktietz@redhat.com>
2764 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2765 instead of strcmp for comparison.
2766 (tui_source_is_displayed): Likewise.
2767 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2769 2011-03-24 Mark Wielaard <mjw@redhat.com>
2771 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2773 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2774 (find_partial_die_in_comp_unit): Likewise in comment.
2775 (read_attribute_value): Likewise.
2776 (lookup_die_type): Likewise.
2777 (dwarf_form_name): Likewise.
2778 (dump_die_shallow): Likewise.
2779 (follow_die_ref_or_sig): Likewise.
2781 2011-03-24 Tom Tromey <tromey@redhat.com>
2783 PR breakpoints/11816:
2784 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2785 (decode_compound): Update.
2786 (find_function_symbol): New function.
2787 (decode_dollar): Update.
2788 (decode_label): Add 'function_symbol' parameter. Handle
2789 function-relative labels.
2790 (decode_variable): Update.
2791 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2792 not its line. Set `special_display' and canonical name for
2795 2011-03-24 Tom Tromey <tromey@redhat.com>
2797 * linespec.h (struct linespec_result) <special_display>: New
2799 * breakpoint.h (struct breakpoint) <display_canonical>: New
2801 * breakpoint.c (print_breakpoint_location): Respect
2803 (create_breakpoint_sal): Add 'display_canonical' parameter.
2804 (create_breakpoints_sal): Update.
2805 (create_breakpoint): Update.
2807 2011-03-24 Tom Tromey <tromey@redhat.com>
2809 * symtab.c (decode_line_spec): Update.
2810 * linespec.c (build_canonical_line_spec): Change type of
2812 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2813 (find_method, decode_all_digits, decode_dollar, decode_label)
2814 (symbol_found): Likewise.
2815 (init_linespec_result): New function.
2816 * breakpoint.c (struct captured_parse_breakpoint_args)
2817 <canonical_p>: New field, replaces addr_string_p.
2818 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2820 (parse_breakpoint_sals): Likewise.
2821 (do_captured_parse_breakpoint): Update.
2822 (create_breakpoint): Use struct linespec_result.
2823 (until_break_command): Update.
2824 (breakpoint_re_set_one): Update.
2825 (decode_line_spec_1): Update.
2826 * linespec.h (struct linespec_result): New.
2827 (init_linespec_result): Declare.
2829 2011-03-23 Pedro Alves <pedro@codesourcery.com>
2831 * regcache.c (regcache_raw_read): If the target didn't supply a
2832 given raw register, mark it as unavailable.
2834 2011-03-23 Kai Tietz <ktietz@redhat.com>
2836 * breakpoint.c (clear_command): Use filename_cmp
2837 instead of strcmp for comparison.
2838 * buildsym.c (watch_main_source_file_lossage): Likewise.
2839 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2840 checking just for slash.
2841 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2842 strrchr and filename_cmp instead of strcmp for filenames.
2843 (add_old_header_file): Use filename_cmp
2844 instead of strcmp for comparison.
2845 * exec.c (exec_set_section_address): Likewise.
2846 * macrotab.c (macro_lookup_inclusion): Likewise.
2847 (macro_lookup_inclusion): Likewise.
2848 * elfread.c (_initialize_elfread): Likewise.
2849 (elfstab_offset_sections): Likewise.
2850 (elfstab_offset_sections): Use lbasename instead of
2852 * mdebugread.c (parse_partial_symbols): Likewise.
2853 (arse_partial_symbols): Use filename_(n)cmp instead of
2854 str(n)cmp for comparison.
2855 * minsyms.c (lookup_minimal_symbol): Likewise.
2856 * psymtab.c (read_psymtabs_with_filename): Likewise.
2857 * solib.c (solib_read_symbols): Likewise.
2858 (reload_shared_libraries_1): Likewise.
2859 * symmisc.c (maintenance_print_symbols): Likewise.
2860 * symfile.c (separate_debug_file_exists): Likewise.
2861 (reread_symbols): Likewise.
2862 (find_separate_debug_file_by_debuglink): Likewise.
2863 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2864 * source.c (add_path): Likewise.
2865 * symtab.c (filename_seen): Likewise.
2866 (file_matches): Likewise.
2867 (print_symbol_info): Likewise.
2868 (maybe_add_partial_symtab_filename): Likewise.
2869 (make_source_files_completion_list): Likewise.
2870 * xml-syscall.c (init_sysinfo): Likewise.
2871 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2872 IS_DIR_SEPARATOR for checking for trailing path separator.
2874 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2876 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2877 label abort_expression.
2878 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2879 DWARF_VALUE_OPTIMIZED_OUT.
2881 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2884 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2885 to linkage_name. Invert its value. Update the function comment.
2886 (c_type_print_varspec_suffix): Invert it at the caller.
2887 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2889 2011-03-22 Pedro Alves <pedro@codesourcery.com>
2891 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2892 errors when reading the `stop_pc'.
2893 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2896 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2898 * NEWS: Document gdb.Write stream keyword.
2900 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2903 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2904 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2905 (dwarf2_add_field): Fix new_field->accessibility for
2906 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2908 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2912 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2913 other error classes. Do not print stack trace.
2915 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2917 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2918 (dwarf2_add_field): Fix new_field->accessibility for
2919 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2921 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2923 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2924 encountering a load via a non-SP register.
2926 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2928 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2929 field in returned unwinder.
2931 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2933 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2935 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2937 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2940 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2942 * frame.c (frame_unwind_register): Throw an error if unwinding the
2944 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2945 an unwind stop reason.
2946 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2947 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2948 UNWIND_UNAVAILABLE>: New.
2949 * inline-frame.c (inline_frame_unwind): Install
2950 default_frame_unwind_stop_reason.
2951 * frame-unwind.c: Include "exceptions.h".
2952 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2953 (default_frame_unwind_stop_reason): New.
2954 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2955 (default_frame_unwind_stop_reason): Declare.
2956 (struct frame_unwind) <stop_reason>: New function pointer.
2958 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2959 * dwarf2-frame.c: Include exceptions.h.
2960 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2961 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2962 computing the CFA. If such an error was thrown, set
2963 unavailable_retaddr.
2964 (dwarf2_frame_unwind_stop_reason): New.
2965 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2967 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2968 (dwarf2_signal_frame_unwind): Ditto.
2970 * amd64-tdep.c: Include "exceptions.h".
2971 (struct amd64_frame_cache): New field "base_p".
2972 (amd64_init_frame_cache): Clear it.
2973 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2974 Avoid reading registers with functions that throw if the register
2975 is not necessary to compute the frame base.
2976 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2977 swallowing NOT_AVAILABLE_ERROR.
2978 (amd64_frame_unwind_stop_reason): New.
2979 (amd64_frame_this_id): Don't build a frame id if the frame base
2981 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2982 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2983 base_p if the frame base was computable.
2984 (amd64_sigtramp_frame_unwind_stop_reason): New.
2985 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2986 frame base was unavailable.
2987 (amd64_sigtramp_frame_unwind): Install
2988 amd64_sigtramp_frame_unwind_stop_reason.
2989 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2990 base_p if the frame base was computable.
2991 (amd64_epilogue_frame_unwind_stop_reason): New.
2992 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2993 frame base was unavailable.
2994 (amd64_epilogue_frame_unwind): Install
2995 amd64_epilogue_frame_unwind_stop_reason.
2996 * i386-tdep.c: Include "exceptions.h".
2997 (struct i386_frame_cache): New field "base_p".
2998 (i386_init_frame_cache): Clear it.
2999 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3000 Avoid reading registers with functions that throw if the register
3001 is not necessary to compute the frame base.
3002 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3003 swallowing NOT_AVAILABLE_ERROR.
3004 (i386_frame_unwind_stop_reason): New.
3005 (i386_frame_this_id): Don't build a frame id if the frame base was
3007 (i386_frame_prev_register): Handle unavailable SP.
3008 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3009 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3010 base_p if the frame base was computable.
3011 (i386_epilogue_frame_unwind_stop_reason): New.
3012 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3013 base was unavailable.
3014 (i386_epilogue_frame_unwind): Install
3015 i386_epilogue_frame_unwind_stop_reason.
3016 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3017 base_p if the frame base was computable.
3018 (i386_sigtramp_frame_unwind_stop_reason): New.
3019 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3020 base was unavailable.
3021 (i386_sigtramp_frame_unwind): Install
3022 i386_sigtramp_frame_unwind_stop_reason.
3023 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3024 type's size, not the register's.
3025 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3027 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3028 default_frame_unwind_stop_reason.
3029 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3030 (alpha_heuristic_frame_unwind): Ditto.
3031 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3032 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3033 * avr-tdep.c (avr_frame_unwind): Ditto.
3034 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3036 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3037 * frv-tdep.c (frv_frame_unwind): Ditto.
3038 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3039 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3040 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3041 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3042 (hppa_stub_frame_unwind): Ditto.
3043 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3044 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3045 (ia64_libunwind_frame_unwind)
3046 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3047 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3048 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3049 * m32c-tdep.c (m32c_unwind): Ditto.
3050 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3051 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3052 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3053 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3054 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3055 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3056 * mep-tdep.c (mep_frame_unwind): Ditto.
3057 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3058 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3059 (mips_stub_frame_unwind): Ditto.
3060 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3061 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3062 * mt-tdep.c (mt_frame_unwind): Ditto.
3063 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3064 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3065 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3066 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3067 (s390_sigtramp_frame_unwind): Ditto.
3068 * score-tdep.c (score_prologue_unwind): Ditto.
3069 * sh-tdep.c (sh_frame_unwind): Ditto.
3070 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3071 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3072 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3073 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3074 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3075 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3076 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3077 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3078 (sparc64obsd_trapframe_unwind): Ditto.
3079 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3080 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3081 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3082 * v850-tdep.c (v850_frame_unwind): Ditto.
3083 * vax-tdep.c (vax_frame_unwind): Ditto.
3084 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3085 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3086 * xtensa-tdep.c (xtensa_unwind): Ditto.
3088 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3090 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3091 there's always a frame. Use get_frame_pc_if_available instead of
3092 get_frame_pc, and if there's no PC available, don't look up a
3095 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3097 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3100 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3102 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3105 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3107 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3108 * frame.c (frame_unwind_caller_pc_if_available): New.
3109 * stack.c (frame_info): Handle unavailable PC.
3111 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3113 * frame.c (frame_unwind_pc): Rename to ...
3114 (frame_unwind_pc_if_available): ... this. New `pc' output
3115 parameter. Change return type to int. Gracefully handle
3116 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3117 happened, or 1 otherwise.
3118 (frame_unwind_pc): Reimplement on top of
3119 frame_unwind_pc_if_available.
3120 (get_frame_func): Rename to ...
3121 (get_frame_func_if_available): New `pc' output parameter. Change
3122 return type to int. Gracefully handle the PC not being available.
3123 (get_frame_func): Reimplement on top of
3124 get_frame_func_if_available.
3125 (select_frame): Handle the PC being unavailable.
3126 (get_prev_frame): Handle the PC being unavailable.
3127 (get_frame_pc_if_available): New.
3128 (get_frame_address_in_block_if_available): New.
3129 (find_frame_sal): Handle the frame PC not being available.
3130 * frame.h (get_frame_pc_if_available): Declare.
3131 (get_frame_address_in_block_if_available): Declare.
3132 (get_frame_func_if_available): Declare.
3133 * stack.c (print_frame_info): Handle the PC being unavailable.
3134 (find_frame_funname): Ditto.
3135 (print_frame): Handle the PC being unavailable.
3136 (get_frame_language): Ditto.
3137 * blockframe.c (get_frame_block): Ditto.
3138 * macroscope.c (default_macro_scope): Ditto.
3139 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3141 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3143 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3144 NOT_AVAILABLE_ERROR when evaluating the location expression.
3146 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3148 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3149 returning that the register piece is unavailable/optimized out.
3150 (write_pieced_value): Handle get_frame_register_bytes returning
3151 that the register piece is unavailable/optimized out when doing a
3152 read-modify write of a bitfield.
3153 * findvar.c (value_from_register): Handle get_frame_register_bytes
3154 returning that the register piece is unavailable/optimized out.
3155 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3156 and `unavailablep'. Throw error on bad debug info. Use
3157 frame_register instead of frame_register_read, to fill in the new
3159 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3161 * valops.c: (value_assign): Adjust, and handle
3162 get_frame_register_bytes failing.
3163 * spu-tdep.c: Include exceptions.h.
3164 (spu_software_single_step): Adjust, and handle
3165 get_frame_register_bytes failing.
3166 (spu_get_longjmp_target): Ditto.
3167 * gdbarch.sh (register_to_value): Change to return int. New
3168 parameters `optimizedp' and `unavailablep'.
3169 * gdbarch.h, gdbarch.c: Regenerate.
3170 * i386-tdep.c (i386_register_to_value): Adjust to new
3171 gdbarch_register_to_value interface.
3172 * i387-tdep.c (i387_register_to_value): Ditto.
3173 * i387-tdep.h (i387_register_to_value): Ditto.
3174 * alpha-tdep.c (alpha_register_to_value): Ditto.
3175 * ia64-tdep.c (ia64_register_to_value): Ditto.
3176 * m68k-tdep.c (m68k_register_to_value): Ditto.
3177 * mips-tdep.c (mips_register_to_value): Ditto.
3178 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3180 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3182 * findvar.c (value_of_register): Mark the value as unavailable, if
3183 the register is unavailable.
3184 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3185 (frame_register): New `unavailablep' parameter.
3186 (frame_register_read): Update comment.
3187 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3188 Set it if the register is unavailable. If the register is
3189 unavailable, clear the output buffer.
3190 (frame_register): New `unavailablep' parameter. Pass it down.
3191 (frame_unwind_register): Adjust.
3192 (put_frame_register): Adjust.
3193 (frame_register_read): Adjust. Also return false if the register
3195 (frame_register_unwind_location): Adjust.
3196 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3197 is unavailable, mark the value accordingly.
3198 * stack.c (frame_info): Handle unavailable registers.
3200 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3202 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3203 simplify, using regcache_cooked_read.
3205 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3207 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3208 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3209 (regcache_raw_read_unsigned, regcache_raw_read_part)
3210 (regcache_cooked_read, regcache_cooked_read_signed)
3211 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3212 (regcache_cooked_read_ftype): Change return to enum
3214 * regcache.c: Include exceptions.h
3215 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3216 (do_cooked_read): Change return to enum register_status. Always
3217 forward to regcache_cooked_read.
3218 (regcache_raw_read): Change return to enum register_status. If
3219 the register is not REG_VALID, memset the buffer. Return the
3221 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3222 return the register's status.
3223 (regcache_raw_read_unsigned): Ditto.
3224 (regcache_cooked_read): Change return to enum register_status.
3225 Assert that with read-only regcaches, the register's status must
3226 be known. If the regcache is read-only, and the register is not
3227 REG_VALID, memset the buffer. Return the register's status.
3228 (regcache_cooked_read_signed): Change return to enum
3229 register_status. Handle non-REG_VALID registers and return the
3231 (regcache_cooked_read_unsigned): Change return to enum
3232 register_status. Handle non-REG_VALID registers and return the
3234 (regcache_xfer_part, regcache_raw_read_part)
3235 (regcache_cooked_read_part): Change return to enum
3236 register_status. Return the register's status.
3237 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3239 (regcache_dump): Handle unavailable cooked registers.
3240 * frame.c (do_frame_register_read): Adjust interface to match
3241 regcache_cooked_read_ftype.
3242 * gdbarch.sh (pseudo_register_read): Change return to enum
3244 * gdbarch.h, gdbarch.c: Regenerate.
3246 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3248 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3249 register_status. If reading a raw register indicates the raw
3250 register is not valid, return the raw register's status,
3251 otherwise, return REG_VALID.
3252 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3253 register_status. Handle non-REG_VALID raw registers and return
3254 the register's status.
3255 * arm-tdep.c (arm_neon_quad_read)
3256 (arm_pseudo_read): Change return to enum register_status. Handle
3257 non-REG_VALID raw registers and return the register's status.
3258 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3259 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3260 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3261 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3262 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3264 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3265 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3266 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3267 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3268 (m32c_pseudo_register_read): Change return to enum
3269 register_status. Adjust.
3270 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3271 enum register_status. Return the register's status.
3272 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3273 register_status. Return the register's status.
3274 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3275 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3276 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3277 * rs6000-tdep.c (move_ev_register_func): New typedef.
3278 (e500_move_ev_register): Use it. Change return to enum
3279 register_status. Return the register's status.
3280 (do_regcache_raw_read): New function.
3281 (do_regcache_raw_write): New function.
3282 (e500_pseudo_register_read): Change return to enum
3283 register_status. Return the register's status. Use
3284 do_regcache_raw_read.
3285 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3286 (dfp_pseudo_register_read): Change return to enum register_status.
3287 Return the register's status.
3288 (vsx_pseudo_register_read): Ditto.
3289 (efpr_pseudo_register_read): Ditto.
3290 (rs6000_pseudo_register_read): Ditto.
3291 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3292 register_status. Return the register's status.
3293 * sh64-tdep.c (pseudo_register_read_portions): New function.
3294 (sh64_pseudo_register_read): Change return to enum
3295 register_status. Use pseudo_register_read_portions. Return the
3297 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3298 register_status. Return the register's status.
3299 * sh-tdep.c (pseudo_register_read_portions): New function.
3300 (sh_pseudo_register_read): Change return to enum register_status.
3301 Use pseudo_register_read_portions. Return the register's status.
3302 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3303 enum register_status. Return the register's status.
3304 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3305 * spu-tdep.c (spu_pseudo_register_read_spu)
3306 (spu_pseudo_register_read): Ditto.
3307 * xtensa-tdep.c (xtensa_register_read_masked)
3308 (xtensa_pseudo_register_read): Ditto.
3309 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3311 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3313 * python/py-value.c (valpy_getitem): Fix formatting of error function
3316 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3318 ARI fixes: Add missing internationalization markups throughout
3320 * darwin-nat-info.c: Ditto.
3323 * mi/mi-main.c: Ditto.
3325 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3327 ARI fixes: Add missing internationalization markups throughout
3330 * cp-name-parser.y: Ditto.
3333 * objc-exp.y: Ditto.
3336 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3338 ARI fixes: Messages should have no trailing new lines.
3339 * darwin-nat.c (mach_check_error): Remove trailing new line from
3340 warning function call message.
3341 * record.c (bfdcore_read): Idem for error call.
3343 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3345 * common/signals.c (target_signal_from_host): Add _ markup to error
3346 function call message.
3347 (target_signal_to_host): Add _ markup and remove trailing new line
3348 from warning call message.
3349 (target_signal_from_command): Add _ markup to error function call
3352 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3356 * python/python.c (gdbpy_write): Accept a stream argument and
3357 operate to the appropriate stream.
3358 (gdbpy_flush): Likewise.
3359 (_initialize_python): Add stream constants.
3360 (finish_python_initialization): Add GdbOutputErrorFile class.
3362 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3364 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3366 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3368 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3369 to store_signed_integer. Add debug message when relocating CALL
3370 instructions. Fix formatting of debug message.
3371 * i386-tdep.c (i386_relocate_instruction): Ditto.
3373 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3375 * target.h (struct target_ops): Remove to_lookup_symbol field.
3376 (target_lookup_symbol): Delete macro.
3377 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3378 (update_current_target, setup_target_debug): Remove handling
3379 of to_lookup_symbol target_ops field.
3380 * ada-tasks.c (get_known_tasks_addr): Remove use of
3381 target_lookup_symbol.
3382 * coffread.c (coff_symtab_read): Likewise.
3383 * dbxread.c (read_dbx_symtab): Ditto.
3385 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3388 * configure.ac: Add getthrds declaration check.
3389 * configure, config.in: Regenerate.
3390 * aix-thread.c (getthrds): Declare only if not already declared
3391 in procinfo.h. More declaration out of get_signaled_thread to
3394 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3396 * python/py-symtab.c: Populate symtab_object_methods,
3398 (stpy_is_valid): New function.
3399 (salpy_is_valid): Ditto.
3400 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3401 (sympy_is_valid): New function.
3402 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3403 (objfpy_is_valid): New function.
3404 * python/py-inferior.c: Populate inferior_object_methods.
3405 (infpy_is_valid): New function.
3406 * python/py-infthread.c: Populate thread_object_methods.
3407 (thpy_is_valid): New function.
3408 * python/py-block.c: Declare block_object_methods. Populate. Declare
3409 block_iterator_object_methods. Populate.
3410 (blpy_is_valid): New function.
3411 (blpy_iter_is_valid): Ditto.
3413 2011-03-16 Keith Seitz <keiths@redhat.com>
3415 * linespec.c (find_methods): Canonicalize NAME before looking
3417 (name_end): New function.
3418 (keep_name_info): New function.
3419 (decode_line_1): Use keep_name_info.
3420 (decode_compound): Likewise.
3421 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3422 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3425 * linespec.c (locate_first_half): Keep overload information, too.
3426 (decode_compound): Use a string to represent break characters
3428 If P points to a break character, do not increment it.
3429 For C++ and Java, keep overload information and relevant keywords.
3430 If we cannot find a symbol, search the minimal symbols.
3433 * linespec.c (decode_compound): Rename SAVED_ARG to
3435 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3437 Pass a valid block to lookup_symbol.
3438 (lookup_prefix_sym): Likewise.
3439 (find_method): Construct search name based on SYM_CLASS instead
3441 * psymtab.c (lookup_partial_symbol): Add language parameter.
3442 (lookup_symbol_aux_psymtabs): Likewise.
3443 Don't assume that the psymtab we found was the right one. Search
3444 for the desired symbol in the symtab to be certain.
3445 (psymtab_search_name): New function.
3446 (lookup_partial_symbol): Use psymtab_search_name.
3447 Add language parameter.
3448 (read_symtabs_for_function): Add language parameter and pass to
3449 lookup_partial_symbol.
3450 (find_symbol_file_from_partial): Likewise.
3452 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3455 * dwarf2read.c (noop_record_line): New function.
3456 (dwarf_decode_lines): Ignore line tables for GCd functions.
3458 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3460 Fix ARI warnings about new lines at the end of messages, which
3461 are unneeded as there is a new line added at the end of the message
3463 * darwin-nat.c (darwin_stop_inferior): Ditto.
3464 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3465 * dfp.c (decimal_to_number): Ditto.
3466 * exec.c (print_section_info): Ditto.
3467 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3468 * osdata.c (get_osdata): Ditto.
3469 * record.c (bfdcore_write): Ditto.
3470 * remote-mips.c (mips_readchar): Ditto.
3471 * remote.c (read_ptid): Ditto.
3472 * ser-mingw.c (ser_windows_raw): Ditto.
3473 * tracepoint.c (add_local_symbols): Ditto.
3474 * windows-nat.c (fake_create_process): Ditto.
3476 2011-03-16 Tom Tromey <tromey@redhat.com>
3478 * tracepoint.c (stop_tracing): Don't declare.
3479 * event-top.c (after_char_processing_hook): Add `(void)'.
3481 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3483 * NEWS: Add Parameter sub-classing description.
3485 2011-03-16 Kai Tietz <ktietz@redhat.com>
3487 * MAINTAINERS: Update my e-mail address.
3489 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3491 * MAINTAINERS: Add myself for write after approval privileges.
3493 2011-03-15 Michael Snyder <msnyder@vmware.com>
3495 * frame.c (find_frame_sal): Assert sym is not null.
3497 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3499 * objc-lang.c (selectors_info): Check strchr for null result.
3501 * stabsread.c (define_symbol): Guard against bad stabstring input.
3503 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3505 Remove trailing spaces and tabulations from pascal language
3510 p-valprint.c: Ditto.
3512 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3514 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3515 than LOW. Comment it.
3516 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3517 HIGHPC not strictly higher than LOWPC.
3519 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3521 Fix formatting of function declarations returning a pointer in
3523 * varobj.c (varobj_add_child): Ditto.
3524 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3525 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3527 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3529 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3530 for the "generic" vector ABI used with GCC 4.3 and later.
3531 (ppc64_sysv_abi_return_value): Likewise.
3533 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3535 * infcall.c (call_function_by_hand): Function return value is
3536 always a non_lval, even when using struct_return.
3538 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3540 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3541 (map_display_numbers): New.
3542 (do_delete_display): New.
3543 (undisplay_command): Use map_display_numbers.
3544 (do_enable_disable_display): New.
3545 (enable_disable_display_command): New function.
3546 (enable_display): Delete.
3547 (enable_display_command): New.
3548 (disable_display_command): Reimplement.
3549 (_initialize_printcmd): Adjust "enable display" command to use
3550 `enable_display_command' as callback.
3552 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3554 * NEWS: Add Python breakpoint 'stop' operation.
3556 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3558 * NEWS: Delete duplicate entry. Fix typo.
3560 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3562 Fix ARI warning about function names in first column.
3563 Put prototype declaration on same line as return type.
3564 * objc-exp.y: Ditto.
3566 * python/py-stopevent.h: Ditto.
3567 For long function names, split parameters to
3568 allow function name on same line as return type.
3569 * solib-pa64.c: Ditto.
3572 For long function declaration, use single line.
3573 * hppa-tdep.h: Ditto.
3574 * inferior.h: Ditto.
3576 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3578 * python/python.h: Declare gdbpy_should_stop and
3579 gdbpy_breakpoint_has_py_cond.
3580 * python/python.c: Add python.h to includes. Remove python.h from
3581 HAVE_PYTHON definition
3582 (gdbpy_should_stop): New dummy function.
3583 (gdbpy_breakpoint_has_py_cond): New dummy function.
3584 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3585 sub-classing capabilities.
3586 (gdbpy_should_stop): New function.
3587 (gdbpy_breakpoint_has_py_cond): New function.
3588 (local_setattro): New function.
3589 * breakpoint.c (condition_command): Add check for Python 'stop'
3591 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3592 operation function as part of stop/continue tests.
3594 2011-03-14 Tom Tromey <tromey@redhat.com>
3597 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3598 (needs_frame_dwarf_call): Likewise.
3600 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3602 Fix ARI warning about functions without parameters that do not
3604 * breakpoint.c (all_tracepoints): Replace () by (void).
3605 * f-exp.y (match_string_literal): Ditto.
3607 * m2-exp.y (yylex): Ditto.
3608 * mep-tdep.c (current_me_module): Ditto.
3609 (current_options): Ditto.
3610 (current_cop_data_bus_width): Ditto.
3611 (current_cr_names): Ditto.
3612 (current_cr_is_float): Ditto.
3613 (current_ccr_names): Ditto.
3614 * objc-exp.y (yylex): Ditto.
3615 * p-exp.y (yylex): Ditto.
3616 * remote.c (send_interrupt_sequence): Ditto.
3617 * tracepoint.c (current_trace_status): Ditto.
3618 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3619 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3621 2011-03-11 Michael Snyder <msnyder@vmware.com>
3623 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3624 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3625 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3626 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3627 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3629 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3630 (delete_async_event_handler): Ditto.
3632 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3634 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3636 * top.c (set_verbose): Assert showcmd was found.
3638 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
3640 * xtensa-tdep.c (warning_once): Correct style issues.
3642 2011-03-11 Yao Qi <yao@codesourcery.com>
3644 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3646 2011-03-11 Andreas Schwab <schwab@redhat.com>
3648 * common/aclocal.m4: Remove.
3650 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3652 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3653 (xtensa_write_register, xtensa_read_register): Likewise.
3654 (xtensa_hextochar): Removed.
3655 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3657 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3659 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3660 (xtensa_call0_frame_cache_t): Update comments. New fields added.
3661 (xtensa_alloc_frame_cache): Add initialization for new fields.
3662 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3663 (warning_once): New function.
3664 (xtensa_insn_kind): New item c0opc_and.
3665 (call0_classify_opcode): Add the case for AND instruction.
3666 (call0_track_op): Change arguments. New local variable litbase.
3667 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3668 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3670 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3671 (call0_analyze_prologue): Update the comments. Change arguments.
3672 Add the variety of updates to handle extended prologues, which now can
3673 conduct dynamic stack adjustments.
3674 (call0_frame_cache): Likewise.
3675 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3676 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3678 2011-03-10 Michael Snyder <msnyder@vmware.com>
3680 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3681 (cmd_qtframe): Ditto.
3682 (cmd_qtbuffer): Ditto.
3683 (cmd_bigqtbuffer): Ditto.
3685 2011-03-10 Tom Tromey <tromey@redhat.com>
3687 * tracepoint.c (trace_actions_command): Update.
3688 * thread.c (thread_apply_command): Update.
3689 * reverse.c (delete_bookmark_command): Update.
3690 (bookmarks_info): Update.
3691 * printcmd.c (undisplay_command): Update.
3692 * memattr.c (mem_enable_command): Update.
3693 (mem_disable_command): Update.
3694 (mem_delete_command): Update.
3695 * inferior.c (detach_inferior_command): Update.
3696 (kill_inferior_command): Update.
3697 (remove_inferior_command): Update.
3698 * cli/cli-utils.h (struct get_number_or_range_state): New.
3699 (init_number_or_range): Declare.
3700 (get_number_or_range): Update.
3701 * cli/cli-utils.c (init_number_or_range): New function.
3702 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3704 (number_is_in_list): Update.
3705 * breakpoint.h (get_tracepoint_by_number): Update.
3706 * breakpoint.c (map_breakpoint_numbers): Update for change to
3707 get_number_or_range.
3708 (find_location_by_number): Use get_number, not
3709 get_number_or_range.
3710 (trace_pass_set_count): New function.
3711 (trace_pass_command): Update for change to get_number_or_range.
3713 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3716 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
3718 * python/py-param.c (add_setshow_generic): Add set/show callback
3719 parameters. Register Python object context.
3720 (get_show_value): New function.
3721 (get_set_value): New function.
3722 (call_doc_function): New function.
3723 (get_doc_string): Move behind get_show_value/get_set_value.
3725 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
3727 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3729 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
3731 * xtensa-tdep.c (xtensa_read_register): Add comment.
3732 (xtensa_write_register): Likewise.
3733 (xtensa_hextochar): Add comment and update to match coding conventions.
3734 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3735 (execute_l32e, execute_s32e, execute_code): Update comments.
3736 (xtensa_exception_handler_t): Update to match coding conventions.
3737 (xtensa_insn_kind): Likewise.
3739 2011-03-09 Michael Snyder <msnyder@vmware.com>
3741 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3743 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3745 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3747 2011-03-09 Tom Tromey <tromey@redhat.com>
3749 * thread.c (restore_selected_frame): Handle frame_level == -1.
3750 (make_cleanup_restore_current_thread): Use
3751 get_selected_frame_if_set.
3752 * frame.h (get_selected_frame_if_set): Declare.
3753 * frame.c (get_selected_frame_if_set): New function.
3755 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3757 * cli/cli-cmds.c (shell_escape): Use lbasename.
3758 * coffread.c (coff_start_symtab): Constify parameter.
3759 (complete_symtab): Constify `name' parameter.
3760 (coff_symtab_read): Constify `filestring' local.
3761 (coff_getfilename): Constify return and `result' local.
3763 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3764 * linux-fork.c (info_checkpoints_command): Use lbasename.
3765 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3766 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3767 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3768 * procfs.c (procfs_make_note_section): Use lbasename.
3769 * tui/tui-io.c (printable_part): Constity return and parameter.
3771 (print_filename): Constify parameters, and local `s'.
3772 (tui_rl_display_match_list): Constify local `temp'.
3774 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3777 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3778 Fix DWARF-3+ DW_AT_accessibility default assumption.
3779 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3780 cu->header.version >= 3.
3782 2011-03-09 Yao Qi <yao@codesourcery.com>
3784 * common/Makefile.in: Remove.
3785 * common/configure: Remove.
3786 * common/configure.ac: Remove.
3788 2011-03-09 Yao Qi <yao@codesourcery.com>
3791 2011-02-11 Yao Qi <yao@codesourcery.com>
3793 * common/Makefile.in: Add copyright header.
3795 2011-02-11 Yao Qi <yao@codesourcery.com>
3797 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3799 * configure.ac: Add common to sub dir.
3800 * configure: Regenerate.
3802 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3804 * xtensa-tdep.c (call0_ret): New function.
3805 (xtensa_skip_prologue): Speed up analysis.
3807 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3809 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3810 while executing MI command -data-list-changed-registers.
3812 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3814 * xtensa-tdep.c (xtensa_read_register): New function.
3815 (xtensa_write_register): New function.
3816 (xtensa_find_register_by_name): New function.
3817 (xtensa_windowed_frame_cache): Update comments in type description.
3818 (xtensa_frame_cache): Likewise.
3819 (xtensa_window_interrupt_insn): New function.
3820 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3821 (xtensa_insn_kind): Add new instructions.
3822 (rwx_special_register): New function.
3823 (call0_classify_opcode): Add new instructions to the analysis.
3824 (a0_saved, a7_saved, a11_saved): New variables.
3825 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3826 (execute_l32e): New function.
3827 (execute_s32e): New function.
3828 (xtensa_exception_handler_t): New type.
3829 (execute_code): New function.
3830 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3831 analysis for Xtensa Window Exception handlers.
3833 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3835 * xtensa-tdep.c (TX_PS): New.
3836 (windowing_enabled): Update to count for Call0 ABI.
3837 (xtensa_hextochar): New.
3838 (xtensa_init_reggroups): Make algorithm generic.
3839 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3841 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3843 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3845 2011-03-08 Michael Snyder <msnyder@vmware.com>
3847 * i386-tdep.c (i386_follow_jump): Check return value of
3849 (i386_analyze_struct_return): Ditto.
3850 (i386_skip_probe): Ditto.
3851 (i386_match_insn): Ditto.
3852 (i386_skip_noop): Ditto.
3853 (i386_analyze_frame_setup): Ditto.
3854 (i386_analyze_register_saves): Ditto.
3855 (i386_skip_prologue): Ditto.
3856 (i386_skip_main_prologue): Ditto.
3858 * target.c (read_whatever_is_readable): Fix memory leak.
3860 * i386-tdep.c (i386_process_record): Document fall through.
3862 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3864 Fix DWARF-3+ DW_AT_accessibility default assumption.
3865 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3866 cu->header.version >= 3.
3868 2011-03-08 Pedro Alves <pedro@codesourcery.com>
3870 * remote.c (remote_check_symbols): Skip if the target has no
3873 2011-03-08 Joel Brobecker <brobecker@adacore.com>
3875 * target.c (read_whatever_is_readable): Reformat comment,
3876 with a minor typo fix. Minor reformatting of the code.
3878 2011-03-08 Yao Qi <yao@codesourcery.com>
3880 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3881 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3882 Use cached result instead of calling displaced_in_arm_mode again.
3883 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3884 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3885 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3886 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3887 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3888 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3889 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3890 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3891 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3892 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3893 (arm_catch_kernel_helper_return): Likewise.
3894 * gdb/arm-tdep.h : Update function declarations.
3896 2011-03-07 Michael Snyder <msnyder@vmware.com>
3898 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3900 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3902 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3904 * elfread.c (elf_symtab_read): Stop memory leak.
3906 * main.c (captured_main): Fix memory leak.
3908 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3910 * ada-lang.c (compare_names): Call is_name_suffix with string1
3913 2011-03-07 Tom Tromey <tromey@redhat.com>
3915 * xcoffread.c (xcoff_sym_fns): Update.
3916 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3917 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3918 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3919 (symbol_file_add_with_addrs_or_offsets): Likewise.
3920 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3921 * somread.c (som_sym_fns): Update.
3922 * psymtab.h (require_partial_symbols): Declare.
3923 * psymtab.c (require_partial_symbols): New function.
3924 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3925 (ALL_OBJFILE_PSYMTABS): Undef.
3926 (ALL_PSYMTABS): Move from psympriv.h.
3927 (lookup_partial_symtab, find_pc_sect_psymtab)
3928 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3929 (find_last_source_symtab_from_partial)
3930 (forget_cached_source_info_partial)
3931 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3932 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3933 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3934 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3935 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3936 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3937 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3938 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3939 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3941 * mipsread.c (ecoff_sym_fns): Update.
3942 * machoread.c (macho_sym_fns): Update.
3943 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3944 (read_psyms): New function.
3945 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3946 (elf_sym_fns_lazy_psyms): New global.
3947 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3948 dwarf2_build_psymtabs.
3949 * dbxread.c (aout_sym_fns): Update.
3950 * coffread.c (coff_sym_fns): Update.
3952 2011-03-07 Tom Tromey <tromey@redhat.com>
3954 * infrun.c (print_exited_reason): Include inferior id and pid in
3957 2011-03-07 Tom Tromey <tromey@redhat.com>
3959 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3961 (target_has_execution_1): Update.
3962 (target_has_execution_current): Declare.
3963 (target_has_execution): Call target_has_execution_current.
3964 (default_child_has_execution): Update.
3965 * target.c (default_child_has_execution): Add 'the_ptid'
3967 (target_has_execution_1): Likewise.
3968 (target_has_execution_current): New function.
3969 (add_target): Update.
3970 (init_dummy_target): Update.
3971 * remote-m32r-sdi.c (m32r_has_execution): New function.
3972 (init_m32r_ops): Use it.
3973 * record.c (record_core_has_execution): Now static. Add
3974 'the_ptid' parameter.
3975 * inferior.c (have_live_inferiors): Don't save current thread.
3976 Use target_has_execution_1.
3978 2011-03-07 Yao Qi <yao@codesourcery.com>
3980 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3982 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3984 * elfread.c (elf_symtab_read): Minor reformatting.
3986 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3988 * objc-lang.c (selectors_info): Minor reformatting.
3990 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3992 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3994 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3995 Michael Snyder <msnyder@vmware.com>
3997 * ada-valprint.c (ada_val_print_array): Move the declaration of
3998 "byte_order" and "elttype" inside the block where these variables
3999 are actually used. Remove some special handling for the case
4000 where "elttype" and "eltlen" are null. Replace by a comment
4001 and a couple of assertion checks.
4003 2011-03-05 Michael Snyder <msnyder@vmware.com>
4005 * source.c (add_path): Replace semicolon at end of block.
4006 * dwarf2expr.c (execute_stack_op): Ditto.
4008 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4010 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4011 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4012 (bfin-*-*): Likewise.
4014 2011-03-05 Michael Snyder <msnyder@vmware.com>
4016 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4017 * mdebugread.c (parse_symbol): Ditto.
4018 * parse.c (parse_exp_in_context): Ditto.
4019 * source.c (add_path): Ditto.
4020 * utils.c (gnu_debuglink_crc32): Ditto.
4021 * varobj.c (variable_language): Ditto.
4023 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4025 2011-03-04 Michael Snyder <msnyder@vmware.com>
4027 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4029 * symfile.c (simple_overlay_update): Check for null return value
4030 from lookup_minimal_symbol.
4032 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4034 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4036 * eval.c (parse_and_eval_address_1): Remove function.
4037 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4038 instead of parse_and_eval_address_1.
4039 * value.h (parse_and_eval_address_1): Remove prototype.
4041 2011-03-04 Michael Snyder <msnyder@vmware.com>
4043 * remote.c (putpkt_binary): Document that case stmt falls through.
4045 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4047 * breakpointc (print_it_typical): Move NULL check from here...
4048 (print_bp_stop_message): ... to here.
4050 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4052 * breakpoint.c (enable_command): Use break instead of continue,
4053 and fill in a missing break.
4054 (disable_command): Ditto.
4056 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4058 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4059 (terminal_save_ours): Remove misleading comment.
4060 (inflow_inferior_data_cleanup): Free ttystate.
4061 (inflow_inferior_exit): Likewise.
4062 (copy_terminal_info): Copy ttystate.
4064 * serial.c (serial_copy_tty_state): New function.
4065 * serial.h (serial_copy_tty_state): Add prototype.
4066 (struct serial_ops): Add copy_tty_state callback.
4067 * ser-base.c (ser_base_copy_tty_state): New function.
4068 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4069 * ser-go32.c (dos_copy_tty_state): New function.
4070 (dos_ops): Install copy_tty_state callback.
4071 * ser-mingw.c (_initialize_ser_windows): Likewise.
4072 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4073 * ser-unix.c (hardwire_copy_tty_state): New function.
4074 (_initialize_ser_hardwire): Install it.
4076 2011-03-04 Michael Snyder <msnyder@vmware.com>
4078 * breakpoint.c (create_breakpoint): Add missing break statement.
4080 Reverting this patch:
4081 * infcall.c (call_function_by_hand): Add break statements for lint.
4083 Reverting this patch:
4084 * cli/cli-script.c (script_from_file): Add break for lint.
4086 2011-03-04 Michael Snyder <msnyder@vmware.com>
4088 * solib.c (reload_shared_libraries_1): Close memory leak.
4090 2011-03-03 Tom Tromey <tromey@redhat.com>
4093 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4096 2011-03-03 Michael Snyder <msnyder@vmware.com>
4098 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4099 fields of struct 'st' to zero.
4101 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4102 sal.pspace before calling set_current_source_symtab_and_line.
4104 2011-03-03 Yao Qi <yao@codesourcery.com>
4106 * Makefile.in (configure-common): Remove. Let Makefile
4107 in dir common to rebuild itself.
4108 (common/Makefile): Likewise.
4110 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4112 * utils.c (parse_escape): Add i18n markup in error message.
4114 2011-03-03 Yao Qi <yao@codesourcery.com>
4116 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4118 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4119 (displaced_write_reg, displaced_read_reg): Likewise.
4120 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4121 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4122 (cleanup_branch): Replace magic number 14 and 15 with
4123 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4125 2011-03-02 Michael Snyder <msnyder@vmware.com>
4127 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4129 * cli/cli-script.c (script_from_file): Add break for lint.
4131 * mdebugread.c (parse_partial_symbols): Fix indent.
4133 * target-descriptions.c (tdesc_gdb_type): No need to call
4134 xstrdup, callee saves a copy.
4136 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4138 * infcall.c (call_function_by_hand): Add break statements for lint.
4140 * utils.c (parse_escape): Escape the escape char.
4142 * python/py-inferior.c (build_inferior_list): Error out if
4143 PyList_Append fails.
4144 (gdbpy_inferiors): Error out if build_inferior_list fails.
4146 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4149 * record.c (record_restore): Move printf to before error return.
4151 2011-03-02 Yao Qi <yao@codesourcery.com>
4153 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4154 is_thumb and insn_size.
4155 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4156 on both ARM and Thumb mode.
4157 (arm_process_displaced_insn): Set is_thumb and insn_size.
4158 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4159 (arm_displaced_step_fixup): Likewise.
4161 2011-03-01 Michael Snyder <msnyder@vmware.com>
4163 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4165 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4167 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4169 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4171 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4174 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4175 which shadows function parameter.
4177 * tracepoint.c (create_tsv_from_upload): Superfluous call
4178 to xstrdup. Callee already calls xstrdup.
4180 * linespec.c (decode_line_1): Remove unnecessary null check.
4182 * tracepoint.c (scope_info): Fix mem leak, remove underused
4185 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4186 superfluous null check.
4188 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4189 (value_of_builtin_frame_fp_reg): Ditto.
4191 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4193 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4196 * linespec.c (decode_line_1): Check for null before dereference.
4198 * reverse.c (record_restore): Move null-check to before pointer
4201 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4203 * objc-lang.c (selectors_info): Add explanitory comment.
4204 (classes_info): Ditto.
4206 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4208 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4209 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4210 versions of the trampoline. Handle Thumb vs. ARM addresses.
4211 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4212 (arm_linux_init_abi): Install it.
4213 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4214 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4216 2011-02-28 Michael Snyder <msnyder@vmware.com>
4218 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4219 a little bigger, to avoid possibility of an overflow.
4221 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4222 buffers a little bigger, to avoid possibility of an overflow.
4224 * coffread.c (coff_getfilename): Add check to avoid overflow.
4226 * objc-lang.c (selectors_info): Add a small safety margin to
4228 (classes_info): Error out on too long REGEXP.
4230 * infrun.c (handle_inferior_event): Remove unused function call.
4232 * fork-child.c (fork_inferior): Remove ifdef'd code and
4235 * linux-thread-db.c (attach_thread): Discard unused value.
4237 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4239 * remote.c (remote_get_noisy_reply): Discard unused value.
4240 (remote_vcont_resume): Ditto.
4241 (remote_stop_ns): Ditto.
4243 * linespec.c (decode_objc): Delete unused variable.
4245 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4247 * dwarf2read.c (add_partial_symbol): Discard unused values.
4248 (read_base_type): Delete unused variable.
4250 * dbxread.c (read_dbx_symtab): Discard unused value.
4252 * eval.c (evaluate_subexp_standard): Delete unused variable,
4253 and discard unused values.
4255 * infcmd.c (_initialize_infcmd): Discard unused values.
4257 * stabsread.c (rs6000_builtin_type): Missing break statement.
4259 * dbxread.c (process_one_symbol): Discard unused value.
4261 * coffread.c (coff_end_symtab): Delete unused variable.
4263 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4264 (dwarf2_add_typedef): Delete unused variable.
4265 (read_namespace): Ditto.
4266 (dwarf_decode_macros): Ditto.
4268 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4270 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4272 * p-valprint.c (pascal_val_print): Discard unused value.
4274 * utils.c (nquery): Call va_end before return;
4278 * proc-service.c (ps_plog): Call va_end before return.
4280 2011-02-28 Tom Tromey <tromey@redhat.com>
4282 * python/python.c (gdbpy_value_cst): New global.
4283 (_initialize_python): Initialize it.
4284 * python/python-internal.h (gdbpy_value_cst): Declare.
4285 * python/py-value.c (convert_value_from_python): Use
4288 2011-02-28 Michael Snyder <msnyder@vmware.com>
4290 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4292 * breakpoint.c (catch_syscall_completer): Free malloced list.
4294 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4296 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4297 (lval_func_check_synthetic_pointer): Ditto.
4298 (lval_func_free_closure): Fix use-after-free.
4300 2011-02-28 Tom Tromey <tromey@redhat.com>
4302 * psymtab.c (expand_partial_symbol_tables): Use
4303 ALL_OBJFILE_PSYMTABS.
4305 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4307 * objc-lang.c (selectors_info): Error on too long REGEXP.
4309 2011-02-28 Michael Snyder <msnyder@vmware.com>
4311 * python/py-param.c (set_parameter_value): Add missing
4314 * linux-record.c (record_linux_system_call): Add missing
4317 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4319 * breakpoint.c (print_one_breakpoint_location): Remove unused
4320 argument PRINT_ADDRESS_BITS. Update callers.
4321 (print_one_breakpoint): Likewise.
4323 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4325 * breakpoint.c (wrap_indent_at_field): New function.
4326 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4327 Allocate ui_stream locally instead of using STB argument.
4328 (print_one_breakpoint_location): Update call.
4329 * ui-out.c (ui_out_query_field): New function.
4330 * ui-out.h (ui_out_query_field): Add prototype.
4332 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4334 From Michael Snyder <msnyder@vmware.com>
4335 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4337 2011-02-27 Michael Snyder <msnyder@vmware.com>
4339 * objc-lang.c (selectors_info): Prevent string overrun.
4341 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4344 * symtab.c (rbreak_command): Move variable 'file_name' to
4347 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4348 param with a local variable of the same name.
4350 2011-02-27 Michael Snyder <msnyder@vmware.com>
4352 * value.c (value_from_history_ref): New function.
4353 * value.h (value_from_history_ref): Export.
4354 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4355 to parse value history references.
4356 * cli/cli-utils.h (get_number_trailer): Update comment.
4358 2011-02-27 Michael Snyder <msnyder@vmware.com>
4360 * inferior.c (detach_inferior_command): Use get_number_or_range.
4361 (kill_inferior_command): Ditto.
4362 (remove_inferior_command): Ditto.
4363 (initialize_inferiors): Make command names plural.
4364 Update help strings.
4366 2011-02-27 Michael Snyder <msnyder@vmware.com>
4368 * darwin-nat-info.c: Fix comment typo.
4369 * dwarf2expr.h: Ditto.
4370 * fbsd-nat.c: Ditto.
4371 * fbsd-nat.h: Ditto.
4372 * frame-unwind.h: Ditto.
4374 * hppa-hpux-tdep.c: Ditto.
4375 * i386-linux-nat.c: Ditto.
4376 * linux-nat.c: Ditto.
4377 * nbsd-nat.c: Ditto.
4378 * nbsd-nat.h: Ditto.
4379 * ppc-linux-tdep.c: Ditto.
4382 * tui/tui-winsource.c: Ditto.
4384 2011-02-26 Michael Snyder <msnyder@vmware.com>
4386 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4388 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4390 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4391 with a local variable of the same name.
4393 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4394 param with a local variable of the same name.
4395 (i387_supply_xsave): Ditto.
4397 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4398 that it does not shadow a function parameter.
4400 * i386-nat.c (i386_length_and_rw_bits): Document that case
4401 statement is meant to fall through.
4403 * expprint.c (dump_subexp_body_standard): Document that case
4404 statement is meant to fall through.
4406 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4407 dead if statement. Condition can't be false.
4409 2011-02-25 Michael Snyder <msnyder@vmware.com>
4411 * arm-tdep.c: Fix typos in comments.
4412 * bsd-uthread.c: Ditto.
4413 * completer.c: Ditto.
4415 * cp-namespace.c: Ditto.
4416 * cp-support.c: Ditto.
4417 * cris-tdep.c: Ditto.
4419 * dwarf2read.c: Ditto.
4421 * gdbtypes.h: Ditto.
4422 * inferior.h: Ditto.
4423 * mdebugread.c: Ditto.
4424 * mips-tdep.c: Ditto.
4425 * ppc-linux-nat.c: Ditto.
4426 * ppc-linux-tdep.c: Ditto.
4427 * printcmd.c: Ditto.
4428 * sol-thread.c: Ditto.
4429 * solib-frv.c: Ditto.
4431 * sparc64-tdep.c: Ditto.
4432 * spu-tdep.c: Ditto.
4433 * stabsread.c: Ditto.
4438 * python/py-block.c: Ditto.
4439 * python/py-symbol.c: Ditto.
4440 * python/py-symtab.c: Ditto.
4441 * python/py-value.c: Ditto.
4442 * tui/tui-win.c: Ditto.
4444 2011-02-25 Michael Snyder <msnyder@vmware.com>
4446 * inferior.c (print_inferior): Accept a string instead of an int
4447 for requested_inferiors, and use get_number_or_range to parse it.
4448 (info_inferiors_command): Pass args string to print_inferior.
4449 (initialize_inferiors): Change help string for info inferiors.
4450 * inferior.h (print_inferior): Export prototype change.
4452 2011-02-25 Tom Tromey <tromey@redhat.com>
4454 * common/ax.def (invalid2): Set to 0x31.
4456 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4458 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4460 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4462 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4464 2011-02-24 Michael Snyder <msnyder@vmware.com>
4466 * Makefile.in (clean): Make clean should remove generated files
4467 observer.h and observer.inc.
4469 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4471 Revert the following patch (not approved yet):
4472 2011-02-21 Hui Zhu <teawater@gmail.com>
4473 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4474 * ax-gdb.c (gen_printf_expr_callback): New function.
4475 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4476 * ax-general.c (ax_memcpy): New function.
4477 (ax_print): Handle "printf".
4479 * ax.h (ax_memcpy): Forward declare.
4480 * common/ax.def (invalid2): Removed.
4481 (printf): New entry.
4482 * printcmd.c (printcmd.h): New include.
4483 (string_printf): New function.
4484 (ui_printf): Removed.
4485 (printf_command): Remove static. Call string_printf.
4486 (eval_command): Call string_printf.
4487 * printcmd.h: New file.
4488 * tracepoint.c (validate_actionline,
4489 encode_actions_1): handle printf_command.
4491 2011-02-23 Tom Tromey <tromey@redhat.com>
4493 * ax-general.c (ax_pick): Add missing newline.
4495 2011-02-23 Michael Snyder <msnyder@vmware.com>
4497 * breakpoint.c (breakpoint_1): Change first argument from an int
4498 to a char pointer, so that the function now accepts a list of
4499 breakpoints rather than just one. Use new function
4500 'number_is_in_list' to implement.
4501 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4502 (watchpoints_info): Ditto.
4503 (tracepoints_info): Ditto.
4504 (maintenance_info_breakpoints): Ditto.
4505 (_initialize_breakpoint): Update help strings to reflect the fact
4506 that these functions can now take more than one argument.
4507 * cli/cli-utils.c (number_is_in_list): New function.
4508 * cli/cli-utils.h (number_is_in_list): Export.
4510 2011-02-23 Michael Snyder <msnyder@vmware.com>
4512 * memattr.c (mem_enable_command): Use get_number_or_range.
4513 (mem_disable_command): Ditto.
4514 (mem_delete_command): Ditto.
4515 (_initialize_mem): Tweak usage message to reflect multiple
4518 2011-02-22 Doug Evans <dje@google.com>
4520 Add gdb.lookup_global_symbol python function.
4522 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4523 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4524 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4526 2011-02-22 Tom Tromey <tromey@redhat.com>
4528 * language.c (language_class_name_from_physname): Rename
4529 'curr_language' argument to 'lang'; use in body.
4531 2011-02-22 Michael Snyder <msnyder@vmware.com>
4533 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4535 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4537 * frame-unwind.h: Fix comment to mention the this frame, not the
4540 2011-02-22 Tom Tromey <tromey@redhat.com>
4542 * symfile.c (auto_solib_limit): Remove.
4543 * symfile.h (auto_solib_limit): Remove.
4545 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4547 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4549 2011-02-21 Michael Snyder <msnyder@vmware.com>
4551 * gdbthread.h (print_thread_info): Change prototype.
4552 * thread.c (print_thread_info): Accept char* instead of int for
4553 requested_threads argument. Use new function number_is_in_list
4554 to determine which threads to list.
4555 (info_threads_command): Pass char* to print_thread_info.
4556 * cli/cli-utils.c (number_is_in_list): New function.
4557 * cli/cli-utils.h (number_is_in_list): Export.
4558 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4560 (print_one_inferior): Ditto.
4561 (mi_cmd_list_thread_groups): Ditto.
4563 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4565 * common/Makefile.in (CFLAGS): New.
4566 (COMPILE): Add $(CFLAGS).
4568 2011-02-21 Tom Tromey <tromey@redhat.com>
4570 * breakpoint.c (catch_syscall_command_1): Fix typo.
4572 2011-02-21 Tom Tromey <tromey@redhat.com>
4574 * reverse.c: Include cli-utils.h.
4575 * printcmd.c: Include cli-utils.h.
4576 (string_printf): Use skip_spaces.
4577 * cli/cli-utils.h: New file.
4578 * cli/cli-utils.c: New file.
4579 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4580 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4581 * breakpoint.h (get_number, get_number_or_range): Move to
4583 * breakpoint.c: Include cli-utils.h.
4584 (get_number_trailer, get_number, get_number_or_range)
4585 (ep_skip_leading_whitespace): Move to cli-utils.c.
4586 (create_breakpoint_sal, find_condition_and_thread)
4587 (decode_static_tracepoint_spec, watch_command_1)
4588 (watch_maybe_just_location, ep_parse_optional_if_clause)
4589 (catch_fork_command_1, catch_exec_command_1)
4590 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4591 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4592 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4593 (HFILES_NO_SRCDIR): Add cli-utils.h.
4594 (cli-utils.o): New target.
4596 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4598 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4599 before calling discard_all_inferiors.
4601 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4603 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4604 (struct builtin_opencl_type): Remove.
4605 (builtin_opencl_type): Change return type to "struct type **".
4606 (lookup_opencl_vector_type): Update caller.
4607 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4608 (build_opencl_types): Install plain array of "struct type *"
4609 instead of "struct builtin_opencl_type".
4611 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4612 Ulrich Weigand <uweigand@de.ibm.com>
4614 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4615 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4616 (struct arm_linux_hwbp_cap): New type.
4617 (arm_linux_get_hwbp_cap): New function.
4618 (arm_linux_get_hw_breakpoint_count): Likewise.
4619 (arm_linux_get_hw_watchpoint_count): Likewise.
4620 (arm_linux_can_use_hw_breakpoint): Likewise.
4621 (arm_hwbp_type): New type.
4622 (arm_hwbp_control_t): Likewise.
4623 (struct arm_linux_hw_breakpoint): Likewise.
4624 (struct arm_linux_thread_points): Likewise.
4625 (arm_threads): New global variable.
4626 (arm_linux_find_breakpoints_by_tid): New function.
4627 (arm_hwbp_control_initialize): Likewise.
4628 (arm_hwbp_control_is_enabled): Likewise.
4629 (arm_hwbp_control_disable): Likewise.
4630 (arm_linux_hw_breakpoint_initialize): Likewise.
4631 (arm_linux_get_hwbp_type): Likewise.
4632 (arm_linux_hw_watchpoint_initialize): Likewise.
4633 (arm_linux_hw_breakpoint_equal): Likewise.
4634 (arm_linux_insert_hw_breakpoint1): Likewise.
4635 (arm_linux_remove_hw_breakpoint1): Likewise.
4636 (arm_linux_insert_hw_breakpoint): Likewise.
4637 (arm_linux_remove_hw_breakpoint): Likewise.
4638 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4639 (arm_linux_insert_watchpoint): Likewise.
4640 (arm_linux_remove_watchpoint): Likewise.
4641 (arm_linux_stopped_data_address): Likewise.
4642 (arm_linux_stopped_by_watchpoint): Likewise.
4643 (arm_linux_watchpoint_addr_within_range): Likewise.
4644 (arm_linux_new_thread): Likewise.
4645 (arm_linux_thread_exit): Likewise.
4646 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4647 related target callbacks. Register arm_linux_new_thread and
4648 arm_linux_thread_exit.
4649 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4650 * arm-tdep.c (arm_pc_is_thumb): Make global.
4651 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4653 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4655 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4656 per-frame locations while within a function epilogue.
4658 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4660 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4661 to GNU coding standards.
4663 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4665 Allow use of mingw native on Windows 95 OS.
4666 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4667 (ser_windows_close): Only call CancelIo if function exists.
4668 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4669 to check for existence of CancelIo function in kernel32 DLL.
4671 2011-02-21 Hui Zhu <teawater@gmail.com>
4673 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4674 * ax-gdb.c (gen_printf_expr_callback): New function.
4675 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4676 * ax-general.c (ax_memcpy): New function.
4677 (ax_print): Handle "printf".
4679 * ax.h (ax_memcpy): Forward declare.
4680 * common/ax.def (invalid2): Removed.
4681 (printf): New entry.
4682 * printcmd.c (printcmd.h): New include.
4683 (string_printf): New function.
4684 (ui_printf): Removed.
4685 (printf_command): Remove static. Call string_printf.
4686 (eval_command): Call string_printf.
4687 * printcmd.h: New file.
4688 * tracepoint.c (validate_actionline,
4689 encode_actions_1): handle printf_command.
4691 2011-02-19 Michael Snyder <msnyder@vmware.com>
4693 * reverse.c (delete_one_bookmark): Argument is now bookmark
4694 id rather than pointer to bookmark struct.
4695 (delete_bookmark_command): Use get_number_or_range.
4696 (goto_bookmark_command): Parse with get_number instead of strtoul.
4697 (bookmark_1): New function. Print info for one bookmark.
4698 (bookmarks_info): Use get_number_or_range and bookmark_1.
4700 2011-02-18 Michael Snyder <msnyder@vmware.com>
4702 * thread.c (info_threads_command): Re-implement using
4703 get_number_or_range.
4704 (thread_apply_command): Ditto.
4706 2011-02-18 Tom Tromey <tromey@redhat.com>
4708 * common/ax.def: New file.
4709 * ax.h (enum agent_op): Use ax.def.
4710 * ax-general.c (aop_map): Use ax.def.
4712 2011-02-18 Tom Tromey <tromey@redhat.com>
4714 * ax-general.c (aop_map): Add pick and rot.
4715 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4716 <DW_OP_rot>: Implement.
4717 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4719 * ax-general.c (ax_pick): New function.
4721 2011-02-18 Tom Tromey <tromey@redhat.com>
4723 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4725 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4726 Tom Tromey <tromey@redhat.com>
4728 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4729 make_symbol_overload_list_block with NULL BLOCK.
4730 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4732 2011-02-18 Pedro Alves <pedro@codesourcery.com>
4734 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4735 * breakpoint.h (get_number_or_range): Declare.
4736 * printcmd.c (ALL_DISPLAYS): Declare.
4737 (delete_display): Reimplement taking a display pointer.
4738 (undisplay_command): Accept a range of displays to delete, using
4739 get_number_or_range.
4741 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4743 * c-valprint.c (c_val_print): Add embedded_offset to address
4744 for arrays of unspecified length.
4745 * p-valprint.c (pascal_val_print): Likewise.
4747 2011-02-18 Yao Qi <yao@codesourcery.com>
4749 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4750 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4751 (thumb_process_displaced_insn): New.
4752 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4753 call to arm_process_displaced_insn.
4754 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4756 2011-02-17 Tom Tromey <tromey@redhat.com>
4758 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4759 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4760 compile_dwarf_to_ax. No longer static. Call
4761 dwarf2_compile_cfa_to_ax.
4762 (locexpr_tracepoint_var_ref): Update.
4763 (loclist_tracepoint_var_ref): Update.
4764 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4765 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4766 argument; add 'gdbarch' and 'pc'.
4767 (dwarf2_compile_cfa_to_ax): New function.
4768 (dwarf2_frame_cache): Update.
4770 2011-02-17 Joel Brobecker <brobecker@adacore.com>
4772 * ada-lang.c (ada_type_of_array): Fix the size of the array
4773 in the case of an unconstrained packed array.
4775 2011-02-17 Yao Qi <yao@codesourcery.com>
4777 * common/Makefile.in: Add more targets for make.
4779 2011-02-16 Tom Tromey <tromey@redhat.com>
4781 * dwarf2loc.c (unimplemented): Fix typo.
4783 2011-02-16 Tom Tromey <tromey@redhat.com>
4785 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4786 (compile_dwarf_to_ax) <default>: Use unimplemented.
4787 <DW_OP_deref>: Update.
4788 (disassemble_dwarf_expression): Update.
4789 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4790 (decode_locdesc): Update.
4791 * dwarf2expr.h (dwarf_stack_op_name): Update.
4793 2011-02-16 Tom Tromey <tromey@redhat.com>
4795 * ax.h (struct aop_map) <name>: Now const.
4797 2011-02-16 Tom Tromey <tromey@redhat.com>
4799 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4802 2011-02-16 Yao Qi <yao@codesourcery.com>
4804 * infrun.c (get_displaced_step_closure_by_addr): New.
4805 * inferior.h: Declare it.
4806 * arm-tdep.c: (arm_pc_is_thumb): Call
4807 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4810 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4811 Jan Kratochvil <jan.kratochvil@redhat.com>
4814 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4816 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4817 Jan Kratochvil <jan.kratochvil@redhat.com>
4819 * value.c (value_contents_copy_raw): Extend describing comment.
4820 Assert that the destination contents we're overwriting are wholly
4822 (value_contents_copy): Extend describing comment.
4824 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4825 Jan Kratochvil <jan.kratochvil@redhat.com>
4827 * value.c (value_available_contents_eq): Remove redundant local
4828 variables. Fix available contents comparision.
4829 * value.h (value_available_contents_eq): Extend describing
4832 2011-02-16 Yao Qi <yao@codesourcery.com>
4834 * thread.c (info_threads_command): Add missing i18n markup and remove
4837 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4839 * breakpoint.c (longjmp_names): New variable.
4840 (struct breakpoint_objfile_data): New type.
4841 (breakpoint_objfile_key): New variable.
4842 (msym_not_found): New variable.
4843 (msym_not_found_p): New predicate.
4844 (get_breakpoint_objfile_data): New function.
4845 (create_overlay_event_breakpoint): Check per-objfile cache for
4847 (create_longjmp_master_breakpoint): Likewise.
4848 (create_std_terminate_master_breakpoint): Likewise.
4849 (create_exception_master_breakpoint): Likewise.
4850 (_initialize_breakpoint): Register per-objfile data key.
4852 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4854 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4856 (create_longjmp_master_breakpoint): Loop over longjmp names.
4857 (create_std_terminate_master_breakpoint): Const-propagate parameter
4859 (update_breakpoints_after_exec): Adjust.
4860 (breakpoint_re_set): Adjust.
4862 2011-02-15 Michael Snyder <msnyder@vmware.com>
4864 * thread.c (info_threads_command): Process arg as thread id,
4865 or list of thread ids.
4866 (thread_find_command): New command.
4867 (_initialize_thread): Document argument for info threads.
4868 Document 'thread find' command.
4869 * NEWS: Document new command "thread find".
4871 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4873 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4874 * aclocal.m4: Regenerated with aclocal-1.11.1.
4875 * common/configure: Regenerate with autoconf-2.64.
4877 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
4879 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4880 bool data type to a size of one byte.
4882 2011-02-15 Pedro Alves <pedro@codesourcery.com>
4883 Jan Kratochvil <jan.kratochvil@redhat.com>
4885 * target.c (memory_xfer_live_readonly_partial): Document where to
4886 look for interface description.
4888 2011-02-15 Yao Qi <yao@codesourcery.com>
4891 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4892 order to store PC value on stack instead of text section.
4894 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4896 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4897 the EFP register set size.
4898 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4899 data from the VMX register.
4900 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4901 and write data from/to the VMX register.
4903 2011-02-14 Michael Snyder <msnyder@vmware.com>
4905 * command.h (enum command_class): New class 'no_set_class', for
4906 "show" commands without a corresponding "set" command.
4907 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4908 * copying.c (_initialize_copying): Ditto for "show copying" and
4910 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4912 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4913 which there is no corresponding "set" command (eg. "show copying").
4915 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4916 Jan Kratochvil <jan.kratochvil@redhat.com>
4918 * exec.c (section_table_available_memory): Change `len' parameter
4920 * exec.h (section_table_available_memory): Ditto.
4921 * value.h (read_value_memory): Rename the `offset' parameter to
4924 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4925 Jan Kratochvil <jan.kratochvil@redhat.com>
4927 * memrange.c (compare_mem_ranges): Mention sort order in
4929 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4930 * tracepoint.c (traceframe_available_memory): Extend comment to
4931 mention what happens to RESULT when the target does not support
4934 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4935 Jan Kratochvil <jan.kratochvil@redhat.com>
4937 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4940 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4942 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4943 No longer handle NULL values.
4945 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4947 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4948 * value.c: Include "exceptions.h".
4949 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4951 * cp-abi.c: Include gdb_assert.h.
4952 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4953 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4955 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4956 parameters. No longer returns -1 on error.
4957 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4959 * cp-valprint.c: Include exceptions.h.
4960 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4961 the baseclass_offset. Handle unavailable base classes. Use
4962 val_print_invalid_address.
4963 * p-valprint.c: Include exceptions.h.
4964 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4965 when fetching the baseclass_offset. No longer expect
4966 baseclass_offset returning -1. Handle unavailable base classes.
4967 Use val_print_invalid_address.
4968 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4969 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4970 `embedded_offset' and `val' parameters. Adjust.
4971 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4972 parameter, and change its type to gdb_byte pointer. Add
4973 `embedded_offset' and `val' parameters. Adjust. No longer expect
4974 baseclass_offset returning -1.
4975 (value_dynamic_cast): Use value_contents_for_printing rather than
4976 value_contents. Adjust.
4977 (search_struct_field): No longer expect baseclass_offset returning
4979 (search_struct_method): If reading memory from the target is
4980 necessary, wrap it in a new value to pass to baseclass_offset. No
4981 longer expect baseclass_offset returning -1.
4982 (find_method_list): No longer expect baseclass_offset returning
4983 -1. Use value_contents_for_printing rather than value_contents.
4984 * valprint.c (val_print_invalid_address): New function.
4985 * valprint.h (val_print_invalid_address): Declare.
4986 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4987 and `val' parameters. No longer expect baseclass_offset returning
4989 * gnu-v2-abi.c: Include "exceptions.h".
4990 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4991 parameters. Handle unavailable memory. Recurse through
4992 gnuv2_baseclass_offset directly, rather than through
4993 baseclass_offset. No longer returns -1 on not found, instead
4995 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4996 `val' parameters. Adjust.
4998 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5000 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5001 almost but not quite adjacent.
5003 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5005 * value.h (value_entirely_available): Declare.
5006 * value.c (value_entirely_available): New function.
5007 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5008 real type if the pointer is unavailable.
5010 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5012 * valops.c (value_repeat): Use read_value_memory instead of
5015 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5017 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5018 * value.c (value_contents_copy_raw, value_contents_copy): New
5020 (value_primitive_field): Use value_contents_copy_raw instead of
5022 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5024 (value_array, value_slice): Ditto.
5025 * valarith.c (value_subscripted_rvalue): Use
5026 value_contents_copy_raw instead of memcpy.
5028 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5030 <unavailable> references.
5032 * valops.c (get_value_at): Use value_from_contents_and_address,
5033 avoiding read_memory.
5035 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5037 * c-valprint.c (c_val_print): Print a string with unavailable
5038 contents as an array.
5040 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5042 * value.h (unpack_bits_as_long): Delete declaration.
5043 (unpack_value_bits_as_long): Declare.
5044 (unpack_value_field_as_long): Declare.
5045 (value_field_bitfield): Declare.
5046 * value.c (unpack_bits_as_long): Rename to...
5047 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5048 value parameters. Return the extracted result in a new output
5049 parameter. If the value contents are unavailable, return false,
5050 otherwise return true.
5051 (unpack_value_bits_as_long): New.
5052 (unpack_field_as_long): Rename to...
5053 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5054 Add embedded_offset and value parameters. Return the extracted
5055 result in a new output parameter. If the value contents are
5056 unavailable, return false, otherwise return true.
5057 (unpack_value_field_as_long): New.
5058 (unpack_field_as_long_1): New.
5059 (unpack_field_as_long): Reimplement as wrapper around
5060 unpack_value_field_as_long_1.
5061 (value_field_bitfield): New function.
5062 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5063 unpack_value_bits_as_long. Mark the value as unavailable, if it
5065 * jv-valprint.c (java_print_value_fields): Use
5066 value_field_bitfield.
5067 * p-valprint.c (pascal_object_print_value_fields): Use
5068 value_field_bitfield.
5069 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5071 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5073 * value.c (get_internalvar_integer): Also return the int value of
5074 TYPE_CODE_INT INTERNALVAR_VALUE values.
5075 (set_internalvar): Don't special case TYPE_CODE_INT.
5077 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5079 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5080 INTERNALVAR_POINTER.
5082 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5083 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5084 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5086 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5088 * value.h (value_available_contents_eq): Declare.
5089 * value.c (find_first_range_overlap): New function.
5090 (value_available_contents_eq): New function.
5091 * valprint.c (val_print_array_elements): Use
5092 value_available_contents_eq.
5093 * ada-valprint.c (val_print_packed_array_elements): Use
5094 value_available_contents_eq.
5095 * jv-valprint.c (java_value_print): Use
5096 value_available_contents_eq.
5098 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5100 * target.c (target_read_live_memory): New function.
5101 (memory_xfer_live_readonly_partial): New.
5102 (memory_xfer_partial): If reading from a traceframe, fallback to
5103 reading unavailable read-only memory from read-only regions of
5105 * tracepoint.c (disconnect_tracing): Adjust.
5106 (set_current_traceframe): New, factored out from
5107 set_traceframe_number.
5108 (set_traceframe_number): Reimplement to only change the traceframe
5109 number on the GDB side.
5110 (do_restore_current_traceframe_cleanup): Adjust.
5111 (make_cleanup_restore_traceframe_number): New.
5112 (cur_traceframe_number): New global.
5113 (tfile_open): Set cur_traceframe_number to no traceframe.
5114 (set_tfile_traceframe): New function.
5115 (tfile_trace_find): If looking up a traceframe using any method
5116 other than by number, make sure the current tfile traceframe
5117 matches gdb's current traceframe. Update the current tfile
5118 traceframe if the lookup succeeded.
5119 (tfile_fetch_registers, tfile_xfer_partial)
5120 (tfile_get_trace_state_variable_value): Make sure the remote
5121 traceframe matches gdb's current traceframe.
5122 * remote.c (remote_traceframe_number): New global.
5123 (remote_open_1): Set it to -1.
5124 (set_remote_traceframe): New function.
5125 (remote_fetch_registers, remote_store_registers)
5126 (remote_xfer_memory, remote_xfer_partial)
5127 (remote_get_trace_state_variable_value): Make sure the remote
5128 traceframe matches gdb's current traceframe.
5129 (remote_trace_find): If looking up a traceframe using any method
5130 other than by number, make sure the current remote traceframe
5131 matches gdb's current traceframe. Update the current remote
5132 traceframe if the lookup succeeded.
5133 * infrun.c (fetch_inferior_event): Adjust.
5134 * tracepoint.h (set_current_traceframe): Declare.
5135 (get_traceframe_number, set_traceframe_number): Add describing
5138 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5140 Mark pieces of values as unavailable if the corresponding memory
5143 * valops.c: Include tracepoint.h.
5144 (value_fetch_lazy): Use read_value_memory.
5145 (read_value_memory): New.
5146 * value.h (read_value_memory): Declare.
5147 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5148 * exec.c (section_table_available_memory): New function.
5149 * exec.h (section_table_available_memory): Declare.
5151 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5153 * Makefile.in (SFILES): Add memrange.c.
5154 (HFILES_NO_SRCDIR): Add memrange.h.
5155 (COMMON_OBS): Add memrange.o.
5156 * memrange.c: New file.
5157 * memrange.h: New file.
5158 * tracepoint.c: Include memrange.h.
5159 (struct mem_range): Delete.
5160 (mem_range_s): Delete.
5161 (traceframe_available_memory): New function.
5162 * tracepoint.h (traceframe_available_memory): Declare.
5164 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5166 * target.h (struct traceframe_info): Forward declare.
5167 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5168 (struct target_ops) <to_traceframe_info>: New field.
5169 (target_traceframe_info): New.
5170 * target.c (update_current_target): Inherit and default
5172 * remote.c (PACKET_qXfer_traceframe_info): New.
5173 (remote_protocol_features): Register qXfer:traceframe-info:read.
5174 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5175 (remote_traceframe_info): New.
5176 (init_remote_ops): Install it.
5177 (_initialize_remote): Install "set/show remote traceframe-info"
5179 * tracepoint.h (parse_traceframe_info): Declare.
5180 * tracepoint.c (struct mem_range): New.
5181 (mem_range_s): New typedef.
5182 (struct traceframe_info): New.
5183 (traceframe_info): New global.
5184 (free_traceframe_info): New function.
5185 (clear_traceframe_info): New function.
5186 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5188 (build_traceframe_info): New function.
5189 (tfile_traceframe_info): New function.
5190 (init_tfile_ops): Install tfile_traceframe_info.
5191 (traceframe_info_start_memory, free_result): New functions.
5192 (memory_attributes, traceframe_info_elements): New globals.
5193 (parse_traceframe_info, get_traceframe_info): New functions.
5194 * features/traceframe-info.dtd: New file.
5195 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5197 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5199 Base support for <unavailable> value contents.
5201 * value.h (value_bytes_available): Declare.
5202 (mark_value_bytes_unavailable): Declare.
5203 * value.c (struct range): New struct.
5204 (range_s): New typedef.
5205 (ranges_overlap): New function.
5206 (range_lessthan): New function.
5207 (ranges_contain_p): New function.
5208 (struct value) <unavailable>: New field.
5209 (value_bytes_available): New function.
5210 (mark_value_bytes_unavailable): New function.
5211 (require_not_optimized_out): Constify parameter.
5212 (require_available): New function.
5213 (value_contents_all, value_contents): Require all bytes be
5215 (value_free): Free `unavailable'.
5216 (value_copy): Copy `unavailable'.
5217 * valprint.h (val_print_unavailable): Declare.
5218 * valprint.c (valprint_check_validity): Rename `offset' parameter
5219 to `embedded_offset'. If printing a scalar, check whether the
5220 value chunk is available.
5221 (val_print_unavailable): New.
5222 (val_print_scalar_formatted): Check whether the value is
5224 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5225 pretty-printing unavailable values.
5227 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5229 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5230 * c-typeprint.c (c_type_print_args): Update the function comment. New
5231 variable param_type, initialize it. Remove const/volatile qualifiers
5232 for language_cplus and !show_artificial. Use param_type.
5234 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5236 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5237 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5238 * symtab.h (struct symtab) <next>: Comment extension.
5240 2011-02-12 Yao Qi <yao@codesourcery.com>
5242 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5244 2011-02-11 Yao Qi <yao@codesourcery.com>
5246 * common/Makefile.in: Add copyright header.
5248 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5250 * infrun.c (proceed): Move switching out and in of tfind mode from
5252 (fetch_inferior_event): ... to here.
5254 2011-02-11 Yao Qi <yao@codesourcery.com>
5256 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5258 * configure.ac: Add common to sub dir.
5259 * configure: Regenerate.
5261 2011-02-11 Yao Qi <yao@codesourcery.com>
5265 * common/Makefile.in: New.
5266 * common/configure.ac: New.
5267 * common/aclocal.m4: New.
5268 * common/configure: Generate.
5270 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5272 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5273 side of the parenthesis.
5276 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5277 * vec.h (VEC_block_remove): Fix comment.
5279 2011-02-08 Michael Snyder <msnyder@vmware.com>
5281 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5283 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5285 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5286 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5289 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5292 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5294 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5295 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5297 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5299 * dwarf2read.c (read_subroutine_type): Set special calling
5300 convention flag for functions compiled by IBM XL C for OpenCL.
5301 * ppc-sysv-tdep.c: Include "dwarf2.h"
5302 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5304 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5305 IBM OpenCL vector types calling convention.
5306 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5307 (ppc_sysv_abi_broken_return_value): Likewise.
5308 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5309 types calling convention.
5310 (ppc64_sysv_abi_return_value): Likewise.
5311 * spu-tdep.c: Include "dwarf2.h"
5312 (spu_return_value): Implement IBM OpenCL vector types calling
5315 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5317 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5318 correct ABI for AltiVec vector arguments.
5320 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5322 * valprint.c (val_print): Extend comment.
5323 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5324 interface explanation to val_print.
5325 (ada_val_print_array): Adjust comment to current interface.
5326 (print_field_values): Adjust comment to current interface.
5327 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5328 explanation to val_print.
5329 * f-valprint.c (f_val_print): Ditto.
5330 * jv-valprint.c (java_val_print): Ditto.
5331 * m2-valprint.c (m2_val_print): Ditto.
5332 * p-valprint.c (pascal_val_print): Ditto.
5334 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5336 * breakpoint.c (parse_breakpoint_sals): Fix description.
5338 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5339 Oguz Kayral <oguzkayral@gmail.com>
5341 * python/py-inferior.c (python_on_normal_stop): New function.
5342 (python_on_resume): New function.
5343 (python_inferior_exit): New function.
5344 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5345 inferior_exit observers.
5346 * python/py-evtregistry.c: New file.
5347 * python/py-threadevent.c : New file.
5348 * python/py-event.c: New file.
5349 * python/py-evts.c: New file.
5350 * python/py-continueevent.c: New file.
5351 * python/py-bpevent.c: New file.
5352 * python/py-signalevent.c: New file.
5353 * python/py-exetiedevent.c: New file.
5354 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5355 Move struct breakpoint_object from here...
5356 * python/python-internal.h: ... to here.
5357 * python/py-event.h: New file.
5358 * python/py-events.h: New file.
5359 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5360 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5361 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5362 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5363 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5364 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5365 Add build rules for all the above.
5367 2011-02-04 Tom Tromey <tromey@redhat.com>
5369 * dwarf2read.c (dwarf2_section_empty_p): New function.
5370 (dwarf2_read_section): Use dwarf2_section_empty_p.
5371 (dwarf2_section_size): New function.
5372 (dwarf2_get_section_info): Unconditionally read section.
5373 (dwarf2_read_index): Use dwarf2_section_empty_p.
5374 (partial_read_comp_unit_head): Use dwarf2_section_size.
5375 (dwarf2_symbol_mark_computed): Likewise.
5377 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5379 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5381 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5383 * mips-linux-tdep.c: Include xml-syscall.h.
5384 (mips_linux_get_syscall_number): New function.
5385 (mips_linux_init_abi): Add calls to
5386 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5387 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5388 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5389 * syscalls/mips-n32-linux.xml: New file.
5390 * syscalls/mips-n64-linux.xml: New file.
5391 * syscalls/mips-o32-linux.xml: New file.
5393 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5395 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5396 Complain about inverted range entries.
5397 (dwarf2_record_block_ranges): Likewise.
5399 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5402 * breakpoint.c (update_watchpoint): Fix name of the
5403 update_global_location_list function.
5404 (print_one_breakpoint): Fix typo.
5405 (_initialize_breakpoint): Remove extra space in hbreak help
5407 * breakpoint.h (struct bp_location) <length>: Fix field
5410 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5412 * regcache.c (registers_changed_ptid): Don't explictly always
5413 clear `current_regcache'. Only clear current_thread_ptid and
5414 current_thread_arch when PTID matches. Only reinit the frame
5415 cache if PTID matches the current inferior_ptid. Move alloca(0)
5417 (registers_changed): ... here.
5419 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5421 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5422 starts with __stack_chk_guard as stack guard symbol.
5424 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5426 * disasm.c (compare_lines): Handle the end of sequence markers
5427 within the line table to better support disassembling over
5428 compilation unit boundaries.
5430 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5432 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5433 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5434 implementation even if no symbols are available.
5435 (thumb_analyze_prologue): Update call to skip_prologue_function.
5436 (arm_analyze_prologue): Likewise.
5438 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5440 * arm-tdep.c: Include "observer.h".
5441 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5442 (arm_exidx_data_key): New static variable.
5443 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5444 (struct arm_exidx_data): Likewise.
5445 (arm_exidx_data_free): New function.
5446 (arm_compare_exidx_entries): Likewise.
5447 (arm_obj_section_from_vma): Likewise.
5448 (arm_exidx_new_objfile): Likewise.
5449 (arm_find_exidx_entry): Likewise.
5450 (arm_exidx_fill_cache): Likewise.
5451 (arm_exidx_unwind_sniffer): Likewise.
5452 (arm_exidx_unwind): New global variable.
5453 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5454 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5455 observer. Register arm_exidx_data_key as objfile data.
5457 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5459 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5460 due to accessing uninitialized variable. Fix indentation.
5462 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5464 * c-valprint.c (c_value_print): When doing virtual base pointer
5465 adjustment, create a new value with adjusted contents rather than
5466 changing the contents of the value being printed (and getting it
5469 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5471 * xml-support.c (xml_find_attribute): New.
5472 (xinclude_start_include): Use it.
5473 * xml-support.h (xml_find_attribute): Declare.
5474 * memory-map.c (memory_map_start_memory)
5475 (memory_map_start_property): Use xml_find_attribute.
5476 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5478 * remote.c (start_thread): Use xml_find_attribute.
5479 * solib-target.c (library_list_start_segment)
5480 (library_list_start_section, library_list_start_library)
5481 (library_list_start_list): Use xml_find_attribute.
5482 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5483 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5484 (tdesc_start_field): Use xml_find_attribute.
5486 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5488 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5489 (BUILD_OCL_VTYPES): Update.
5491 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5493 * configure.ac: Work around non-GNU sed limitation when computing
5494 python version number.
5495 * configure: Regenerate.
5497 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5499 Fix debug printing of TYPE_INSTANCE.
5500 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5501 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5503 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5505 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5506 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5507 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5508 * ada-operator.inc: Rename the file to ...
5509 * ada-operator.def: ... here, wrap all the entries by macro OP.
5510 * expprint.c (op_name_standard): Remove all the entries. Include
5511 "std-operator.def" instead.
5512 * expression.h (enum exp_opcode): Include "std-operator.def" and
5513 "ada-operator.def". Move all the entries ...
5514 * std-operator.def: ... here, wrap all the entries by macro OP.
5516 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5518 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5519 * breakpoint.c (remove_jit_event_breakpoints): New function.
5520 * jit.c (jit_descriptor_addr): Delete.
5521 (registering_code): Delete.
5522 (clear_int): Delete.
5523 (jit_inferior_data): New variable.
5524 (struct jit_inferior_data): New type.
5525 (get_jit_inferior_data): New function.
5526 (jit_inferior_data_cleanup): New function.
5527 (jit_read_descriptor): Adjust.
5528 (jit_register_code): Adjust.
5529 (jit_breakpoint_re_set_internal): New function; move code here ...
5530 (jit_inferior_init): ... from here.
5531 (jit_breakpoint_re_set): Adjust.
5532 (jit_reset_inferior_data_and_breakpoints): New function.
5533 (jit_inferior_created_observer): Adjust.
5534 (jit_inferior_exit_hook): Adjust.
5535 (jit_executable_changed_observer): New function.
5536 (jit_event_handler): Adjust.
5537 (_initialize_jit): Adjust.
5539 2011-01-31 Michael Snyder <msnyder@vmware.com>
5541 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5544 2011-01-31 Tom Tromey <tromey@redhat.com>
5547 * python/python.c (execute_gdb_command): Call
5548 prevent_dont_repeat.
5549 * top.c (suppress_dont_repeat): New global.
5550 (dont_repeat): Use it.
5551 (prevent_dont_repeat): New function.
5552 * command.h (prevent_dont_repeat): Declare.
5554 2011-01-31 Tom Tromey <tromey@redhat.com>
5556 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5557 * python/py-breakpoint.c (bppy_set_silent): Use
5558 breakpoint_set_silent.
5559 (bppy_set_thread): Use breakpoint_set_thread.
5560 (bppy_set_task): Use breakpoint_set_task.
5561 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5562 (breakpoint_set_task): Declare.
5563 (make_breakpoint_silent): Remove.
5564 * breakpoint.c (breakpoint_set_silent): New function.
5565 (breakpoint_set_thread): Likewise.
5566 (breakpoint_set_task): Likewise.
5567 (make_breakpoint_silent): Remove.
5569 2011-01-31 Tom Tromey <tromey@redhat.com>
5571 * breakpoint.h (user_breakpoint_p): Declare.
5572 * breakpoint.c (user_breakpoint_p): New function.
5573 (breakpoint_1): Use it.
5574 (save_breakpoints): Likewise.
5576 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5578 * configure.ac: Add handling of Python distribution on Windows.
5579 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5580 sysconfig variables are not defined, then do not use them.
5581 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5582 instead. On Windows, return all paths using forward-slashes
5583 rather than backslashes.
5585 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5587 * configure.ac: Remove fallback behavior for building
5588 against Python. Remove tweaking of Python include path.
5589 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5590 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5591 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5592 Always restore CPPFLAGS and LIBS after linking test.
5593 * configure: Regenerated.
5594 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5595 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5596 * python/python-internal.h: Adjust includes of Python .h files.
5598 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5600 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5603 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5605 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5608 2011-01-31 Yao Qi <yao@codesourcery.com>
5610 * arm-linux-nat.c: Update calls to regcache_register_status
5611 instead of regcache_valid_p.
5612 * aix-thread.c: Likewise.
5613 * i386gnu-nat.c: Likewise.
5615 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5618 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5619 touching TYPE_FIELD_ARTIFICIAL.
5621 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
5623 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5626 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5628 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5629 selected, don't try iterating over the traceframe's blocks.
5630 (tfile_has_stack): If there's no traceframe selected, then there's
5632 (tfile_has_registers): If there's no traceframe selected, then
5633 there's no registers.
5635 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5637 * target.c (memory_xfer_partial): No need to restore shadows if we
5638 haven't read anything.
5640 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5642 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5643 and val_print_scalar_formatted.
5645 2011-01-27 Pedro Alves <pedro@codesourcery.com>
5647 * tracepoint.c (tfile_read): New.
5648 (tfile_open): Use it.
5649 (tfile_get_traceframe_address): Use it.
5650 (tfile_trace_find): Use it.
5651 (walk_blocks_callback_func): New typedef.
5652 (match_blocktype): New function.
5653 (traceframe_walk_blocks): New function.
5654 (traceframe_find_block_type): New function.
5655 (tfile_fetch_registers, tfile_xfer_partial)
5656 (tfile_get_trace_state_variable_value): Use
5657 traceframe_find_block_type and tfile_read.
5659 2011-01-26 Kevin Buettner <kevinb@redhat.com>
5661 * remote-mips.c: Add internationalization mark ups. Remove
5662 trailing \n from already marked up strings.
5664 2011-01-26 Tom Tromey <tromey@redhat.com>
5666 * python/py-prettyprint.c (print_string_repr): Clear
5667 'addressprint' option when calling val_print_string.
5668 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5669 option when calling val_print_string.
5671 2011-01-26 Tom Tromey <tromey@redhat.com>
5673 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5675 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5677 (gdb_py_longest, gdb_py_ulongest): New typedefs.
5678 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5679 (gdb_py_long_as_ulongest): New defines.
5680 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5681 (gdb_py_int_as_long): Declare.
5682 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5683 GDB_PY_LL_ARG, gdb_py_object_from_longest.
5684 (valpy_long): Add comment.
5685 * python/py-utils.c (get_addr_from_python): Use
5686 gdb_py_long_as_ulongest. Handle overflow properly.
5687 (gdb_py_object_from_longest): New function.
5688 (gdb_py_object_from_ulongest): Likewise.
5689 (gdb_py_int_as_long): Likewise.
5690 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5691 * python/py-symtab.c (salpy_get_pc): Use
5692 gdb_py_long_from_ulongest.
5693 (salpy_get_line): Use PyInt_FromLong.
5694 * python/py-param.c (set_parameter_value): Use
5696 * python/py-lazy-string.c (stpy_get_address): Use
5697 gdb_py_long_from_ulongest.
5698 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5699 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5700 * python/py-breakpoint.c (bppy_set_thread): Use
5702 (bppy_set_task): Likewise.
5703 (bppy_set_ignore_count): Likewise.
5704 (bppy_set_hit_count): Likewise.
5705 * python/py-block.c (blpy_get_start): Use
5706 gdb_py_object_from_ulongest.
5707 (blpy_get_end): Likewise.
5708 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5710 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
5713 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5714 * gdb/solib.c (solib_read_symbols): Check for addr_low in
5715 equality test for objfile, initialize addr_low if needed.
5717 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5719 * tui/tui-regs.c (tui_register_format): Remove dead code.
5721 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5723 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5724 instead of print_scalar_formatted.
5725 (print_scalar_formatted): Don't handle 's' format strings here,
5726 and add an assertion that we never see such format here.
5727 * valprint.h (val_print_scalar_formatted): Declare.
5728 * valprint.c (val_print_scalar_formatted): New.
5729 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5730 instead of print_scalar_formatted.
5731 * jv-valprint.c (java_val_print): Ditto.
5732 * p-valprint.c (pascal_val_print): Ditto.
5733 * ada-valprint.c (ada_val_print_1): Ditto.
5734 * f-valprint.c (f_val_print): Ditto.
5735 * infcmd.c (registers_info): Ditto.
5736 * m2-valprint.c (m2_val_print): Ditto.
5738 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5740 * m2-valprint.c (print_unbounded_array): Pass
5741 value_contents_for_printing rather than value_contents, to
5742 m2_print_array_contents. Also pass in the value.
5744 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5746 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5747 (save_gdb_index_command): Switch to .gdb_index version 4.
5749 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5751 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5752 than frame_register, and always pass a valid value to val_print.
5754 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5756 Centralize printing "<optimized out>".
5758 * valprint.h (val_print_optimized_out): Declare.
5759 * cp-valprint.c (cp_print_value_fields): Use
5760 val_print_optimized_out.
5761 * jv-valprint.c (java_print_value_fields): Ditto.
5762 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5763 * printcmd.c (print_formatted): Ditto.
5764 * valprint.c (valprint_check_validity): Ditto.
5765 (value_check_printable): Ditto.
5766 (val_print_optimized_out): New.
5768 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5770 * infcmd.c (default_print_registers_info): Allocate values so to
5771 never pass a NULL value to val_print.
5773 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5775 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5776 boolean. Make sure to always pass a value that matches the
5777 contents buffer to callees. Preserve `address' for following
5779 * value.c (value_contents_for_printing_const): New.
5780 (value_address): Constify value argument.
5781 * value.h (value_contents_for_printing_const): Declare.
5782 (value_address): Constify value argument.
5784 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5786 * regcache.c (struct regcache_descr): Rename
5787 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5788 and sizeof_cooked_register_valid_p to
5789 sizeof_cooked_register_status.
5790 (init_regcache_descr): Adjust.
5791 (struct regcache): Rename register_valid_p field to
5793 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5794 (do_cooked_read): Adjust.
5795 (regcache_valid_p): Rename to ...
5796 (regcache_register_status): ... this. Adjust.
5797 (regcache_invalidate): Adjust.
5798 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5800 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5801 as unavailable, not valid.
5802 (regcache_dump): Adjust.
5803 * regcache.h (enum register_status): New.
5804 (regcache_register_status): Declare.
5805 (regcache_invalidate): Delete declaration.
5806 * corelow.c (get_core_registers): Adjust.
5807 * tracepoint.c (tfile_fetch_registers): Adjust.
5808 * trad-frame.c (REG_VALUE): Rename to ...
5809 (TF_REG_VALUE): ... this.
5810 (REG_UNKNOWN): Rename to ...
5811 (TF_REG_UNKNOWN): ... this.
5812 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5813 * mi/mi-main.c (register_changed_p): Adjust.
5815 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5817 * regcache.c (struct regcache_descr): Remove outdated comment.
5818 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5820 (regcache_xmalloc): Rename to ...
5821 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5822 Allocate the regcache type accordingly.
5823 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5824 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5825 cooked registers, not raw.
5826 (regcache_dup_no_passthrough): Delete.
5827 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5828 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5829 mention obsolete write_register_bytes.
5830 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5832 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5834 Stop remote_read_bytes from handling partial reads itself.
5836 * remote-fileio.c: Include target.h.
5837 (remote_fileio_write_bytes): Delete.
5838 (remote_fileio_func_open, remote_fileio_func_write)
5839 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5841 (remote_fileio_func_stat): Use target_read_memory and
5842 target_write_memory.
5843 (remote_fileio_func_gettimeofday): Use target_write_memory.
5844 (remote_fileio_func_system): Use target_read_memory.
5845 * remote.c (remote_write_bytes): Make it static.
5846 (remote_read_bytes): Don't handle partial reads here.
5847 * remote.h (remote_read_bytes): Delete declaration.
5849 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5851 Simplify XML parsing a bit.
5853 * xml-support.h (gdb_xml_parse_quick): Declare.
5854 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5855 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5857 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5858 gdb_xml_create_parser_and_cleanup_1.
5859 (gdb_xml_parse_quick): New.
5860 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5861 * osdata.c (osdata_parse): Ditto.
5862 * remote.c (remote_threads_info): Ditto.
5863 * solib-target.c (solib_target_parse_libraries): Ditto.
5864 * xml-syscall.c (syscall_parse_xml): Ditto.
5865 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5867 2011-01-24 Kevin Buettner <kevinb@redhat.com>
5869 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5870 with remote-mips.o added to gdb_target_obs.
5871 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5873 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5875 * ada-valprint.c (val_print_packed_array_elements): Pass the
5876 correct struct value to val_print.
5877 (ada_val_print_1): Ditto.
5879 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5881 Don't lose embedded_offset in printing routines throughout.
5883 * valprint.h (val_print_array_elements): Change prototype.
5884 * valprint.c (val_print_array_elements): Add `embedded_offset'
5885 parameter, and adjust to pass it down to val_print, while passing
5886 `valaddr' or `address' unmodified. Take embedded_offset into
5887 account when checking repetitions.
5888 * c-valprint.c (c_val_print): Pass embedded_offset to
5889 val_print_array_elements instead of adjusting `valaddr' and
5891 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5892 embedded_offset to val_print_array_elements instead of adjusting
5894 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5895 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5896 val_print_array_elements and pascal_object_print_value_fields
5897 instead of adjusting `valaddr'.
5898 (pascal_object_print_value_fields): Add `offset' parameter, and
5900 (pascal_object_print_value): Add `offset' parameter, and adjust to
5902 (pascal_object_print_static_field): Use
5903 value_contents_for_printing/value_embedded_offset, rather than
5905 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5906 parameter, and adjust to use it. Use
5907 value_contents_for_printing/value_embedded_offset, rather than
5909 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5910 (ada_val_print_array): Add `offset' parameter, and adjust to use
5912 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5913 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5914 Instead work with offsets. Use
5915 value_contents_for_printing/value_embedded_offset, rather than
5916 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5917 and use value_from_pointer to extract a target pointer, rather
5918 than value_from_longest.
5919 (print_variant_part): Add `offset' parameter. Replace
5920 `outer_valaddr' parameter by a new `outer_offset' parameter.
5921 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5922 (ada_value_print): Use
5923 value_contents_for_printing/value_embedded_offset, rather than
5925 (print_record): Add `offset' parameter, and adjust to pass it
5927 (print_field_values): Add `offset' parameter. Replace
5928 `outer_valaddr' parameter by a new `outer_offset' parameter.
5929 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5930 Use value_contents_for_printing/value_embedded_offset, rather than
5932 * d-valprint.c (dynamic_array_type): Use
5933 value_contents_for_printing/value_embedded_offset, rather than
5935 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5936 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5937 (java_print_value_fields): Take `offset' into account. Don't
5938 re-adjust `valaddr'. Instead pass down adjusted offsets.
5939 (java_val_print): Take `embedded_offset' into account. Pass it to
5940 java_print_value_fields.
5941 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5942 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5943 down adjusted offsets.
5944 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5945 (f_val_print): Take `embedded_offset' into account.
5947 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5949 * inflow.c: Include "gdbcmd.h".
5950 (interactive_mode): New static global, moved here from top.c.
5951 (show_interactive_mode): New function, moved here from top.c.
5952 use gdb_has_a_terminal instead of input_from_terminal_p to
5953 determine the current mode.
5954 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5956 (_initialize_inflow): Add the "set/show interactive-mode"
5957 commands. Moved here from top.c, after having adjusted slightly
5959 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5961 (input_from_terminal_p): Remove handling of "interactive-mode"
5962 setting, moved to infow.c.
5963 (init_main): Remove creation of the "set/show interactive-mode"
5964 commands, moved to inflow.c.
5966 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5968 * NEWS: Add entry for native ia64-hpux support.
5970 2011-01-19 Tom Tromey <tromey@redhat.com>
5973 * thread.c (free_thread): Free 'name'.
5974 (print_thread_info): Emit thread name. Change CLI output.
5975 (thread_name_command): New function.
5976 (do_captured_thread_select): Emit newline.
5977 (_initialize_thread): Register 'thread name' command.
5978 * target.h (struct target_ops) <to_thread_name>: New field.
5979 (target_thread_name): New macro.
5980 * target.c (update_current_target): Handle to_thread_name.
5981 * python/py-infthread.c (thpy_get_name): New function.
5982 (thpy_set_name): Likewise.
5983 (thread_object_getset): Add "name".
5984 * linux-nat.c (linux_nat_thread_name): New function.
5985 (linux_nat_add_target): Set to_thread_name.
5986 * gdbthread.h (struct thread_info) <name>: New field.
5988 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5990 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5991 (ada_val_print_1): Likewise.
5993 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5995 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5996 upper limit address is not greater than the function end address
5997 when the upper limit could not be computed using the debugging
6000 2011-01-17 Tom Tromey <tromey@redhat.com>
6002 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6004 * utils.c: Include gdb_regex.h.
6005 (do_regfree_cleanup): New function.
6006 (make_regfree_cleanup): Likewise.
6007 (get_regcomp_error): Likewise.
6008 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6010 2011-01-17 Tom Tromey <tromey@redhat.com>
6012 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6015 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6017 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6018 for internal variables.
6019 (last_was_structop): New static variable.
6020 (COMPLETE): New token.
6021 (field_exp): New rule to group all '.' suffix handling.
6022 Add mark_struct_expression calls when approriate to be able
6023 to correctly find fields for completion.
6024 (yylex): Adapt to handle field completion and set INTVAR when
6027 2011-01-14 Yao Qi <yao@codesourcery.com>
6029 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6030 save_reggroup, restore_reggroup and all_reggroup.
6032 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6034 * ada-valprint. (ada_printchar): Use the correct type length
6035 in call to ada_emit_char.
6036 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6038 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6040 * solib-som.h (hpux_major_release): Declare variable here.
6041 * solib-som.c: Remove <sys/utsname.h> header.
6042 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6043 (hpux_major_release): Make global, change default value to
6044 DEFAULT_HPUX_MAJOR_RELEASE.
6045 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6046 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6047 Add "solib-som.h" header.
6048 (set_hpux_major_release): New function.
6049 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6051 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6053 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6055 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6057 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6058 new-line at end of warning message.
6059 (ia64_hpux_store_register): Remove trailing new-line at end of
6061 * ia64-hpux-tdep.c: Rephrase comment.
6062 * solib-ia64-hpux.c (struct dld_info): Change type of field
6063 dld_flags from "long long" to ULONGEST.
6065 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6067 * target.h (deprecated_child_ops): Delete declaration.
6068 * target.c (deprecated_child_ops): Delete definition.
6070 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6072 * Makefile.in (hpux-thread.o): Delete rule.
6073 * configure.ac: Don't check for HPUX DCE threads support.
6074 * configure, config.in: Regenerate.
6075 * hppa-hpux-nat.c (child_suppress_run): Delete.
6076 (hppa_hpux_child_can_run): Delete.
6077 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6078 * hpux-thread.c: Delete.
6080 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6082 * hpux-thread.c (hpux_pid_to_str): Delete.
6084 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6086 * ada-valprint.c (ada_emit_char): Remove strange code.
6087 Check that c is <= UCHAR_MAX before passing it to isascii.
6088 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6090 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6092 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6093 to the case where instream is stdin.
6095 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6097 * ia64-tdep.h (struct regcache): Forward declare.
6098 (struct ia64_infcall_ops): New struct type.
6099 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6101 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6102 Renames ia64_find_global_pointer.
6103 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6104 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6105 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6107 (ia64_infcall_ops): New static global constant.
6108 (ia64_gdbarch_init): Set tdep->infcall_ops.
6109 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6110 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6111 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6112 (ia64_hpux_dummy_code): New static global constant.
6113 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6114 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6115 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6117 (ia64_hpux_infcall_ops): New static global constant.
6118 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6119 for inferior function calls to work properly on ia64-hpux.
6121 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6123 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6124 * ia64-tdep.h (struct frame_info): forward declaration.
6125 (struct gdbarch_tdep): Add field size_of_register_frame.
6126 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6127 to determine the size of the register frame.
6128 (ia64_size_of_register_frame): New function.
6129 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6130 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6131 (IA64_HPUX_UREG_REASON): New macro.
6132 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6134 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6135 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6136 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6139 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6141 Add support for ia64-hpux.
6142 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6143 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6145 * configure.host: Add handling for ia64-hpux hosts. Add associated
6147 * configure.tgt: Add handling for ia64-hpux targets.
6148 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6149 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6150 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6152 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6154 [ttrace] Compute thread list immediately after attach.
6155 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6157 (inf_ttrace_attach): Use it.
6159 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6161 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6162 if we could not determine the frame's function address. Instead,
6163 use the frame's PC, and then continue.
6165 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6167 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6168 not already defined.
6170 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6172 * ia64-tdep.c (ia64_struct_type_p): New function.
6173 (ia64_extract_return_value): Handle integral values that are
6174 less than 8 bytes long.
6175 (ia64_push_dummy_call): Likewise.
6177 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6179 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6180 floatformat_ia64_ext.
6181 (floatformat_ia64_ext_big): New static const.
6182 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6184 2011-01-12 Tom Tromey <tromey@redhat.com>
6186 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6188 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6189 (mi_cmd_thread_list_ids): Likewise.
6190 (mi_cmd_data_list_changed_registers): Likewise.
6191 (mi_cmd_data_list_register_values): Likewise.
6192 (mi_cmd_data_write_register_values): Likewise.
6193 (mi_cmd_data_evaluate_expression): Likewise.
6194 (mi_cmd_data_read_memory): Likewise.
6195 (mi_cmd_data_read_memory_bytes): Likewise.
6196 (mi_cmd_data_write_memory): Likewise.
6197 (mi_cmd_enable_timings): Likewise.
6198 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6199 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6200 (mi_cmd_var_delete): Likewise.
6201 (mi_cmd_var_set_format): Likewise.
6202 (mi_cmd_var_show_format): Likewise.
6203 (mi_cmd_var_info_num_children): Likewise.
6204 (mi_cmd_var_list_children): Likewise.
6205 (mi_cmd_var_info_type): Likewise.
6206 (mi_cmd_var_info_expression): Likewise.
6207 (mi_cmd_var_show_attributes): Likewise.
6208 (mi_cmd_var_assign): Likewise.
6209 (mi_cmd_var_update): Likewise.
6210 (mi_cmd_enable_pretty_printing): Likewise.
6211 (mi_cmd_var_set_update_range): Likewise.
6212 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6214 (mi_cmd_target_file_put): Likewise.
6215 (mi_cmd_target_file_delete): Likewise.
6216 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6218 (mi_cmd_stack_info_depth): Likewise.
6219 (mi_cmd_stack_list_locals): Likewise.
6220 (mi_cmd_stack_list_args): Likewise.
6221 (mi_cmd_stack_select_frame): Likewise.
6222 (mi_cmd_stack_select_frame): Likewise.
6223 (mi_cmd_stack_info_frame): Likewise.
6224 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6226 (mi_cmd_file_list_exec_source_files): Likewise.
6227 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6228 (mi_cmd_env_cd): Likewise.
6229 (mi_cmd_env_path): Likewise.
6230 (mi_cmd_env_dir): Likewise.
6231 (mi_cmd_inferior_tty_show): Likewise.
6232 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6233 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6234 (mi_cmd_break_watch): Likewise.
6236 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6238 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6239 (ppc_linux_insert_hw_breakpoint): Likewise.
6240 (ppc_linux_remove_hw_breakpoint): Likewise.
6241 (ppc_linux_insert_watchpoint): Likewise.
6243 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6244 Jan Kratochvil <jan.kratochvil@redhat.com>
6246 PR fortran/11104 and DWARF unbound arrays detection.
6247 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6248 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6249 unspecified upper bound.
6250 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6251 variables array_size_array, tmp_type and offset_item. New variable
6252 array. Remove call to f77_get_upperbound. New variables array_type
6253 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6254 the final call to deprecated_set_value_type.
6256 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6258 Make value allocations more lazy.
6259 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6260 instead of allocate_value and set_value_lazy when possible.
6261 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6262 instead of allocate_value and set_value_lazy.
6263 * findvar.c (value_of_register_lazy): Likewise.
6264 (read_var_value): Remove V preallocation, call just check_typedef in
6265 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6266 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6267 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6268 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6269 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6270 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6271 the end, remove set_value_lazy there.
6272 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6273 instead of allocate_value and set_value_lazy when possible.
6274 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6275 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6276 of allocate_value and set_value_lazy.
6277 (value_from_contents_and_address): Use allocate_value_lazy instead of
6278 allocate_value and set_value_lazy when possible.
6280 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6282 * disasm.c (dump_insns): Support dumping opcodes for MI.
6283 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6284 dumping of instruction opcodes.
6286 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6288 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6291 2011-01-11 Tom Tromey <tromey@redhat.com>
6293 * thread.c (do_captured_thread_select): Emit newline before
6296 2011-01-11 Michael Snyder <msnyder@vmware.com>
6298 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6299 * score-tdep.c: Ditto.
6300 * score-tdep.h: Ditto.
6301 * ser-base.c: Ditto.
6302 * ser-go32.c: Ditto.
6305 * ser-mingw.c: Ditto.
6306 * ser-pipe.c: Ditto.
6308 * ser-unix.c: Ditto.
6309 * sh64-tdep.c: Ditto.
6310 * shnbsd-nat.c: Ditto.
6314 * solib-darwin.c: Ditto.
6315 * solib-frv.c: Ditto.
6317 * solib-irix.c: Ditto.
6318 * solib-osf.c: Ditto.
6319 * solib-pa64.c: Ditto.
6320 * solib-som.c: Ditto.
6321 * solib-spu.c: Ditto.
6322 * solib-sunos.c: Ditto.
6323 * solib-svr4.c: Ditto.
6325 * sol-thread.c: Ditto.
6329 * sparc64-linux-tdep.c: Ditto.
6330 * sparc64-tdep.c: Ditto.
6331 * sparc-linux-nat.c: Ditto.
6332 * sparc-linux-tdep.c: Ditto.
6333 * sparc-sol2-nat.c: Ditto.
6334 * sparc-sol2-tdep.c: Ditto.
6335 * sparc-tdep.c: Ditto.
6336 * sparc-tdep.h: Ditto.
6337 * spu-tdep.c: Ditto.
6338 * stabsread.c: Ditto.
6339 * stabsread.h: Ditto.
6347 * target-descriptions.c: Ditto.
6348 * target-descriptions.h: Ditto.
6350 * target-memory.c: Ditto.
6351 * terminal.h: Ditto.
6354 * tracepoint.c: Ditto.
6355 * tracepoint.h: Ditto.
6356 * trad-frame.h: Ditto.
6357 * typeprint.c: Ditto.
6359 2011-01-11 Michael Snyder <msnyder@vmware.com>
6361 * ui-file.c: Comment cleanup, mostly periods and spaces.
6366 * v850-tdep.c: Ditto.
6367 * valarith.c: Ditto.
6369 * valprint.c: Ditto.
6370 * valprint.h: Ditto.
6375 * vax-tdep.c: Ditto.
6379 * windows-nat.c: Ditto.
6380 * windows-tdep.c: Ditto.
6381 * xcoffread.c: Ditto.
6382 * xcoffsolib.c: Ditto.
6383 * xml-support.c: Ditto.
6384 * xstormy16-tdep.c: Ditto.
6385 * xtensa-tdep.c: Ditto.
6386 * xtensa-tdep.h: Ditto.
6388 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6390 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6391 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6393 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6394 Thiago Jung Bauermann <bauerman@br.ibm.com>
6396 Implement support for PowerPC BookE ranged watchpoints.
6398 (struct breakpoint_ops) <resources_needed>: New method.
6399 Initialize to NULL in all existing breakpoint_ops instances.
6400 (struct breakpoint) <exact>: New field.
6401 (target_exact_watchpoints): Declare external global.
6402 * breakpoint.c (target_exact_watchpoints): New global flag.
6403 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6404 b->enable_state to bp_enabled before calling
6405 hw_watchpoint_used_count.
6406 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6407 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6409 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6410 if the watchpoint is exact.
6411 (resources_needed_watchpoint): New function.
6412 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6413 (watch_command_1): Set b->exact if the user asked for an exact
6414 watchpoint and one can be set.
6415 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6416 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6417 the user asks for an exact watchpoint and one can be set. Return
6418 number of needed debug registers to watch the expression.
6419 * gdbtypes.c (is_scalar_type): New function, based on
6420 valprint.c:scalar_type_p.
6421 (is_scalar_type_recursive): New function.
6422 * gdbtypes.h (is_scalar_type_recursive): Declare.
6423 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6424 handle regions when ranged watchpoints are available.
6425 (create_watchpoint_request): New function.
6426 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6427 create_watchpoint_request.
6428 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6429 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6430 `set powerpc' and `show powerpc' commands.
6431 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6432 Mention documentation comment in the target macro.
6433 (target_region_ok_for_hw_watchpoint): Document return value.
6435 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6437 * breakpoint.c (update_watchpoint): Decide on using a software or
6438 hardware watchpoint after the bp_locations are created.
6440 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6442 Convert hardware watchpoints to use breakpoint_ops.
6443 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6444 <insert_location>: ... this. Return int instead of void.
6445 Accept pointer to struct bp_location instead of pointer to
6446 struct breakpoint. Adapt all implementations.
6447 (breakpoint_ops) <remove>: Rename to...
6448 <remove_location>: ... this. Accept pointer to struct bp_location
6449 instead of pointer to struct breakpoint. Adapt all implementations.
6450 * breakpoint.c (insert_catchpoint): Delete function.
6451 (insert_bp_location): Call the watchpoint or catchpoint's
6452 breakpoint_ops.insert method.
6453 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6454 breakpoint_ops.remove method.
6455 (insert_watchpoint, remove_watchpoint): New functions.
6456 (watchpoint_breakpoint_ops): New structure.
6457 (watch_command_1): Initialize the OPS field.
6458 * inf-child.c (inf_child_insert_fork_catchpoint)
6459 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6460 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6461 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6463 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6464 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6465 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6466 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6467 * target.c (update_current_target): Change default implementation of
6468 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6469 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6470 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6471 to_set_syscall_catchpoint to return_one.
6472 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6473 (debug_to_insert_exec_catchpoint): Report return value.
6474 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6475 (to_insert_exec_catchpoint): Change declaration to return int instead
6478 2011-01-11 Michael Snyder <msnyder@vmware.com>
6480 * arm-tdep.c: Internationalization.
6483 * fork-child.c: Ditto.
6484 * nto-procfs.c: Ditto.
6485 * ppc-sysv-tdep.c: Ditto.
6487 * remote-mips.c: Ditto.
6489 * rs6000-nat.c: Ditto.
6490 * rs6000-tdep.c: Ditto.
6494 * xml-support.c: Ditto.
6495 * mi/mi-cmd-break.c: Ditto.
6496 * mi/mi-cmd-var.c: Ditto.
6497 * mi/mi-interp.c: Ditto.
6498 * mi/mi-main.c: Ditto.
6500 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6502 * remote-sim.c (gdbsim_store_register): Update API to
6503 sim_store_register to check more error conditions.
6505 2011-01-10 Michael Snyder <msnyder@vmware.com>
6507 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6508 * nto-tdep.c: Ditto.
6509 * nto-tdep.h: Ditto.
6510 * objc-exp.y: Ditto.
6511 * objc-lang.c: Ditto.
6512 * objfiles.c: Ditto.
6513 * objfiles.h: Ditto.
6514 * observer.c: Ditto.
6515 * opencl-lang.c: Ditto.
6518 * parser-defs.h: Ditto.
6521 * posix-hdep.c: Ditto.
6522 * ppcbug-rom.c: Ditto.
6523 * ppc-linux-nat.c: Ditto.
6524 * ppc-linux-tdep.c: Ditto.
6525 * ppc-linux-tdep.h: Ditto.
6526 * ppcnbsd-tdep.c: Ditto.
6527 * ppcobsd-tdep.c: Ditto.
6528 * ppcobsd-tdep.h: Ditto.
6529 * ppc-sysv-tdep.c: Ditto.
6530 * ppc-tdep.h: Ditto.
6531 * printcmd.c: Ditto.
6532 * proc-abi.c: Ditto.
6533 * proc-flags.c: Ditto.
6535 * proc-utils.h: Ditto.
6536 * progspace.h: Ditto.
6537 * prologue-value.c: Ditto.
6538 * prologue-value.h: Ditto.
6539 * psympriv.h: Ditto.
6541 * p-typeprint.c: Ditto.
6542 * p-valprint.c: Ditto.
6543 * ravenscar-sparc-thread.c: Ditto.
6544 * ravenscar-thread.c: Ditto.
6545 * ravenscar-thread.h: Ditto.
6547 * regcache.c: Ditto.
6548 * regcache.h: Ditto.
6550 * remote-fileio.c: Ditto.
6551 * remote-fileio.h: Ditto.
6553 * remote-m32r-sdi.c: Ditto.
6554 * remote-mips.c: Ditto.
6555 * remote-sim.c: Ditto.
6556 * rs6000-aix-tdep.c: Ditto.
6557 * rs6000-nat.c: Ditto.
6558 * rs6000-tdep.c: Ditto.
6560 2011-01-10 Michael Snyder <msnyder@vmware.com>
6562 * charset.c (validate): Internationalization.
6563 * coffread.c (read_one_sym): Ditto.
6564 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6565 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6566 * inflow.c (new_tty): Ditto.
6567 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6568 * m32c-tdep.c (m32c_return_value): Ditto.
6569 * mep-tdep.c (mep_store_return_value): Ditto.
6570 * score-tdep.c (score7_fetch_insn): Ditto.
6571 * ser-mingw.c (pipe_windows_open): Ditto.
6572 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6573 * spu-tdep.c (spu_register_type): Ditto.
6574 * tracepoint.c (trace_find_command): Ditto.
6575 * valarith.c (value_pos): Ditto.
6577 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6579 * ada-valprint.c (printstr): Minor comment reformatting.
6581 2011-01-08 Michael Snyder <msnyder@vmware.com>
6583 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6586 2011-01-08 Michael Snyder <msnyder@vmware.com>
6588 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6589 * hppa-hpux-tdep.c: Ditto.
6590 * hppa-linux-nat.c: Ditto.
6591 * hppa-linux-tdep.c: Ditto.
6592 * hppanbsd-tdep.c: Ditto.
6593 * hppa-tdep.c: Ditto.
6594 * hppa-tdep.h: Ditto.
6595 * hpux-thread.c: Ditto.
6596 * i386-cygwin-tdep.c: Ditto.
6597 * i386-darwin-nat.c: Ditto.
6598 * i386gnu-nat.c: Ditto.
6599 * i386-linux-nat.c: Ditto.
6600 * i386-linux-tdep.c: Ditto.
6601 * i386-nat.c: Ditto.
6602 * i386-nat.h: Ditto.
6603 * i386nbsd-tdep.c: Ditto.
6604 * i386-sol2-nat.c: Ditto.
6605 * i386-stub.c: Ditto.
6606 * i386-tdep.c: Ditto.
6607 * i386-tdep.h: Ditto.
6608 * i387-tdep.c: Ditto.
6609 * ia64-linux-nat.c: Ditto.
6610 * ia64-linux-tdep.c: Ditto.
6611 * ia64-tdep.c: Ditto.
6615 * inferior.c: Ditto.
6616 * inferior.h: Ditto.
6622 * iq2000-tdep.c: Ditto.
6623 * irix5-nat.c: Ditto.
6629 * jv-typeprint.c: Ditto.
6630 * jv-valprint.c: Ditto.
6631 * language.c: Ditto.
6632 * language.h: Ditto.
6633 * linespec.c: Ditto.
6634 * linux-fork.c: Ditto.
6635 * linux-nat.c: Ditto.
6636 * linux-thread-db.c: Ditto.
6637 * lm32-tdep.c: Ditto.
6639 2011-01-08 Michael Snyder <msnyder@vmware.com>
6641 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6643 * m2-typeprint.c: Ditto.
6644 * m2-valprint.c: Ditto.
6645 * m32c-tdep.c: Ditto.
6646 * m32r-linux-nat.c: Ditto.
6647 * m32r-rom.c: Ditto.
6648 * m32r-tdep.c: Ditto.
6649 * m32r-tdep.h: Ditto.
6650 * m68hc11-tdep.c: Ditto.
6651 * m58klinux-nat.c: Ditto.
6652 * m68k-tdep.c: Ditto.
6653 * m88k-tdep.c: Ditto.
6654 * m88k-tdep.h: Ditto.
6655 * machoread.c: Ditto.
6656 * macrocmd.c: Ditto.
6657 * macroexp.c: Ditto.
6658 * macrotab.c: Ditto.
6661 * mdebugread.c: Ditto.
6662 * mdebugread.h: Ditto.
6665 * memory-map.h: Ditto.
6666 * mep-tdep.c: Ditto.
6667 * microblaze-rom.c: Ditto.
6668 * microblaze-tdep.c: Ditto.
6670 * mips-irix-tdep.c: Ditto.
6671 * mips-linux-nat.c: Ditto.
6672 * mips-linux-tdep.c: Ditto.
6673 * mips-linux-tdep.h: Ditto.
6674 * mipsnbsd-nat.c: Ditto.
6675 * mipsnbsd-tdep.c: Ditto.
6676 * mipsread.c: Ditto.
6677 * mips-tdep.c: Ditto.
6678 * mips-tdep.h: Ditto.
6679 * mn10300-linux-tdep.c: Ditto.
6680 * mn10300-tdep.c: Ditto.
6681 * mn10300-tdep.h: Ditto.
6684 * moxie-tdep.c: Ditto.
6685 * moxie-tdep.h: Ditto.
6688 2011-01-08 Mike Frysinger <vapier@gentoo.org>
6690 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6692 2011-01-08 Robert Millan <rmh@gnu.org>
6694 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6696 2011-01-07 Michael Snyder <msnyder@vmware.com>
6698 * charset.c (_initialize_charset): Fix typo in string.
6700 2011-01-07 Michael Snyder <msnyder@vmware.com>
6702 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6704 * tui/tui-layout.c (tui_set_layout_for_display_command):
6705 Split line so that operator goes to beginning of line.
6706 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6707 assignment out of if statement.
6709 2011-01-07 Michael Snyder <msnyder@vmware.com>
6711 * ada-lang.c: Comment cleanup, mostly periods and spaces.
6712 * ada-lang.h: Ditto.
6713 * ada-tasks.c: Ditto.
6714 * ada-valprint.c: Ditto.
6715 * aix-threads.c: Ditto.
6716 * alpha-linux-nat.c: Ditto.
6717 * alpha-linux-tdep.c: Ditto.
6718 * alpha-mdebug-tdep.c: Ditto.
6719 * alpha-nat.c: Ditto.
6720 * alpha-osf1-tdep.c: Ditto.
6721 * alpha-tdep.c: Ditto.
6722 * alphabsd-nat.c: Ditto.
6723 * alphabsd-tdep.c: Ditto.
6724 * amd64-darwin-tdep.c: Ditto.
6725 * amd64-linux-nat.c: Ditto.
6726 * amd64-linux-tdep.c: Ditto.
6727 * amd64-sol2-tdep.c: Ditto.
6728 * amd64-tdep.c: Ditto.
6729 * amd64-fbsd-tdep.c: Ditto.
6730 * amd64-nbsd-tdep.c: Ditto.
6731 * amd64-obsd-tdep.c: Ditto.
6732 * amd64-linux-nat.c: Ditto.
6733 * amd64-linux-tdep.c: Ditto.
6734 * arm-tdep.c: Ditto.
6735 * arm-tdep.h: Ditto.
6736 * armnbsd-nat.c: Ditto.
6737 * avr-tdep.c: Ditto.
6738 * bfin-tdep.c: Ditto.
6740 * c-typeprintc: Ditto.
6741 * c-valprint.c: Ditto.
6742 * coff-pe-read.h: Ditto.
6743 * coffreead.c: Ditto.
6744 * cris-tdep.c: Ditto.
6746 * darwin-nat-info.c: Ditto.
6747 * darwin-nat.c: Ditto.
6748 * dbug-rom.c: Ditto.
6752 * dec-thread.c: Ditto.
6754 * demangle.c: Ditto.
6755 * dicos-tdep.c: Ditto.
6756 * dictionary.c: Ditto.
6757 * dictionary.h: Ditto.
6758 * dink32-rom.c: Ditto.
6760 * doublest.c: Ditto.
6762 * dummy-frame.c: Ditto.
6763 * dwarf2-frame.c: Ditto.
6764 * dwarf2expr.c: Ditto.
6765 * dwarf2loc.c: Ditto.
6766 * dwarf2read.c: Ditto.
6770 * event-top.h: Ditto.
6771 * exceptions.c: Ditto.
6772 * exceptions.h: Ditto.
6774 * expprint.c: Ditto.
6775 * expression.h: Ditto.
6779 * f-typeprint.c: Ditto.
6780 * f-valprint.c: Ditto.
6781 * fbsd-nat.c: Ditto.
6783 * fork-child.c: Ditto.
6786 * frv-linux-tdep.c: Ditto.
6787 * frv-tdep.c: Ditto.
6789 * gdb-stabs.h: Ditto.
6790 * gdb_assert.h: Ditto.
6791 * gdb_string.h: Ditto.
6792 * gdb_thread_db.h: Ditto.
6793 * gdb_wait.h: Ditto.
6794 * gdbarch.sh: Ditto.
6796 * gdbthread.h: Ditto.
6797 * gdbtypes.c: Ditto.
6798 * gdbtypes.h: Ditto.
6801 * gnu-v2-abi.c: Ditto.
6802 * gnu-v3-abi.c: Ditto.
6803 * go32-nat.c: Ditto.
6804 * gdbarch.c: Regenerate.
6805 * gdbarch.h: Regenerate.
6807 2011-01-07 Michael Snyder <msnyder@vmware.com>
6809 * ax-gdb.c: Adjust some long output strings.
6810 * breakpoint.c: Ditto.
6815 * linux-nat.c: Ditto.
6816 * solib-pa64.c: Ditto.
6817 * solib-som.c: Ditto.
6819 2011-01-06 Tom Tromey <tromey@redhat.com>
6823 * python/python.c (GdbMethods): Add "newest_frame" method.
6824 * python/python-internal.h (gdbpy_newest_frame): Declare.
6825 * python/py-frame.c (gdbpy_newest_frame): New function.
6827 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6829 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6830 * jit.c (jit_debug): New variable.
6831 (show_jit_debug): New function.
6832 (struct target_buffer): Use ULONGEST.
6833 (bfd_open_from_target_memory): Likewise.
6834 (jit_register_code, jit_inferior_init): Add debug output.
6835 (_initialize_jit): Register "debug jit" command.
6837 2011-01-06 Tom Tromey <tromey@redhat.com>
6839 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6840 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6843 2011-01-06 Tom Tromey <tromey@redhat.com>
6845 * python/py-frame.c (frapy_block): Use get_frame_block.
6847 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6849 Do not stop on SIGPRIO signals by default
6850 * infrun.c (_initialize_infrun): Unset signal_stop and
6851 signal_print for TARGET_SIGNAL_PRIO.
6853 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6855 * ada-tasks.c: Fix style violation in comment.
6857 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6859 * linespec.c (decode_compound, find_method): Remove trailing \n
6860 at end of error string.
6861 * solib-irix.c (irix_current_sos): Likewise.
6862 * varobj.c (uninstall_variable): Likewise.
6864 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6866 * copyright.py: New script.
6867 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6868 Launch emacs without exec'ing. Call copyright.py afterwards.
6870 2011-01-05 Michael Snyder <msnyder@vmware.com>
6872 * addrmap.c: Shorten lines of >= 80 columns.
6873 * arch-utils.c: Ditto.
6874 * arch-utils.h: Ditto.
6876 * ax-general.c: Ditto.
6878 * blockframe.c: Ditto.
6879 * breakpoint.c: Ditto.
6880 * buildsym.c: Ditto.
6882 * c-typeprint.c: Ditto.
6884 * coffread.c: Ditto.
6888 * cp-namespace.c: Ditto.
6889 * cp-support.c: Ditto.
6890 * dbug-rom.c: Ditto.
6895 * dictionary.c: Ditto.
6897 * doublest.c: Ditto.
6898 * dwarf2-frame.c: Ditto.
6899 * dwarf2expr.c: Ditto.
6900 * dwarf2loc.c: Ditto.
6901 * dwarf2read.c: Ditto.
6904 * event-loop.c: Ditto.
6905 * event-loop.h: Ditto.
6906 * exceptions.h: Ditto.
6908 * expprint.c: Ditto.
6909 * expression.h: Ditto.
6911 * f-valprint.c: Ditto.
6913 * frame-base.c: Ditto.
6914 * frame-unwind.c: Ditto.
6915 * frame-unwind.h: Ditto.
6919 * gdb-stabs.h: Ditto.
6920 * gdb_assert.h: Ditto.
6921 * gdb_dirent.h: Ditto.
6922 * gdb_obstack.h: Ditto.
6924 * gdbtypes.c: Ditto.
6925 * gdbtypes.h: Ditto.
6926 * inf-ttrace.c: Ditto.
6931 * inline-frame.h: Ditto.
6932 * language.c: Ditto.
6933 * language.h: Ditto.
6934 * libunwind-frame.c: Ditto.
6935 * libunwind-frame.h: Ditto.
6936 * linespec.c: Ditto.
6937 * linux-nat.c: Ditto.
6938 * linux-nat.h: Ditto.
6939 * linux-thread-db.c: Ditto.
6940 * machoread.c: Ditto.
6941 * macroexp.c: Ditto.
6942 * macrotab.c: Ditto.
6945 * mdebugread.c: Ditto.
6950 * objfiles.c: Ditto.
6951 * objfiles.h: Ditto.
6953 * p-typeprint.c: Ditto.
6954 * p-valprint.c: Ditto.
6956 * printcmd.c: Ditto.
6957 * proc-events.c: Ditto.
6959 * progspace.c: Ditto.
6960 * progspace.h: Ditto.
6961 * psympriv.h: Ditto.
6964 * regcache.c: Ditto.
6965 * regcache.h: Ditto.
6966 * remote-fileio.c: Ditto.
6968 * ser-mingw.c: Ditto.
6970 * ser-unix.c: Ditto.
6973 * solib-frv.c: Ditto.
6974 * solib-irix.c: Ditto.
6975 * solib-osf.c: Ditto.
6976 * solib-pa64.c: Ditto.
6977 * solib-som.c: Ditto.
6978 * solib-sunos.c: Ditto.
6979 * solib-svr4.c: Ditto.
6980 * solib-target.c: Ditto.
6984 * stabsread.c: Ditto.
6985 * stabsread.c: Ditto.
6988 * symfile-mem.c: Ditto.
6994 * target-descriptions.c: Ditto.
6995 * target-memory.c: Ditto.
6998 * terminal.h: Ditto.
7001 * tracepoint.c: Ditto.
7002 * tracepoint.h: Ditto.
7006 * user-regs.c: Ditto.
7007 * user-regs.h: Ditto.
7009 * valarith.c: Ditto.
7011 * valprint.c: Ditto.
7012 * valprint.h: Ditto.
7017 * xcoffread.c: Ditto.
7018 * xcoffsolib.c: Ditto.
7019 * xcoffsolib.h: Ditto.
7020 * xml-syscall.c: Ditto.
7021 * xml-tdesc.c: Ditto.
7023 2011-01-05 Michael Snyder <msnyder@vmware.com>
7025 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7026 * cli/cli-decode.c: Ditto.
7027 * cli/cli-dump.c: Ditto.
7028 * cli/cli-logging.c: Ditto.
7029 * cli/cli-script.c: Ditto.
7030 * cli/cli-setshow.c: Ditto.
7031 * common/signals.c: Ditto.
7032 * mi/mi-cmd-break.c: Ditto.
7033 * mi/mi-cmd-disas.c: Ditto.
7034 * mi/mi-cmd-stack.c: Ditto.
7035 * mi/mi-cmd-var.c: Ditto.
7036 * mi/mi-cmds.c: Ditto.
7037 * mi/mi-common.h: Ditto.
7038 * mi/mi-console.c: Ditto.
7039 * mi/mi-interp.c: Ditto.
7040 * mi/mi-main.c: Ditto.
7041 * osf-share/cma_attr.c: Ditto.
7042 * osf-share/cma_deb_core.h: Ditto.
7043 * osf-share/cma_debug_client.h: Ditto.
7044 * osf-share/cma_handle.h: Ditto.
7045 * osf-share/cma_mutex.h: Ditto.
7046 * osf-share/cma_stack_int.h: Ditto.
7047 * osf-share/cma_tcb_defs.h: Ditto.
7048 * python/py-auto-load.c: Ditto.
7049 * python/py-breakpoint.c: Ditto.
7050 * python/py-cmd.c: Ditto.
7051 * python/py-frame.c: Ditto.
7052 * python/py-objfile.c: Ditto.
7053 * python/py-param.c: Ditto.
7054 * python/py-progspace.c: Ditto.
7055 * python/py-symbol.c: Ditto.
7056 * python/py-value.c: Ditto.
7057 * python/python-internal.h: Ditto.
7058 * python/python.c: Ditto.
7059 * tui/tui-data.c: Ditto.
7060 * tui/tui-disasm.c: Ditto.
7061 * tui/tui-hooks.c: Ditto.
7062 * tui/tui-io.c: Ditto.
7063 * tui/tui-layout.c: Ditto.
7064 * tui/tui-regs.c: Ditto.
7065 * tui/tui-source.c: Ditto.
7066 * tui/tui-stack.c: Ditto.
7067 * tui/tui-win.c: Ditto.
7068 * tui/tui-windata.c: Ditto.
7069 * tui/tui-winsource.c: Ditto.
7071 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7073 * configure.ac, gdb.1: Copyright year update.
7075 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7077 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7078 this_pc_in_block, morestack_msym and morestack_name. Check for
7079 "__morestack" minimal symbol there.
7081 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7083 * symfile.c (find_sym_fns): Add call to dont_repeat.
7085 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7087 Copyright year update in most files (performed by copyright.sh).
7089 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7091 * top.c (print_gdb_version): Update copyright year in version output.
7093 For older changes see ChangeLog-2010.
7099 version-control: never