1 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3 * ada-exp.y (convert_char_literal): Handle typedef types.
5 2011-07-01 Joel Brobecker <brobecker@adacore.com>
7 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
9 2011-06-30 Tom Tromey <tromey@redhat.com>
11 * varobj.c (varobj_create): Call do_cleanups on early exit path.
12 * valops.c (find_overload_match): Call do_cleanups on early exit
14 * solib.c (solib_find): Call do_cleanups on early exit path.
16 2011-06-30 Tom Tromey <tromey@redhat.com>
18 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
19 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
20 return paths. Defer final do_cleanups until last return.
21 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
24 2011-06-30 Tom Tromey <tromey@redhat.com>
26 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
28 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
30 * MAINTAINERS (Write After Approval): Add myself to the list.
32 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
34 Disable epilogue unwinders on recent GCCs.
35 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
36 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
37 * dwarf2read.c (process_full_comp_unit): Initialize
38 EPILOGUE_UNWIND_VALID.
39 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
40 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
41 * symtab.h (struct symtab): New field epilogue_unwind_valid.
43 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
45 Code cleanup - reformatting.
46 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
47 (producer_is_gcc_ge_4): ... here, change the return value.
48 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
51 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
53 Fix non-only rename list for Fortran modules import.
54 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
55 cp_add_using_directive caller.
56 (cp_add_using_directive): New parameter excludes, describe it. New
57 variables ix and param. Compare if also excludes match. Allocate NEW
58 with variable size, initialize EXCLUDES there.
59 (cp_lookup_symbol_imports): New variable excludep, test
60 current->EXCLUDES with it.
61 * cp-support.h: Include vec.h.
62 (struct using_direct): New field excludes, describe it.
63 (DEF_VEC_P (const_char_ptr)): New.
64 (cp_add_using_directive): New parameter excludes.
65 * defs.h (const_char_ptr): New typedef.
66 * dwarf2read.c (read_import_statement): New variables child_die,
67 excludes and cleanups, read in excludes.
68 (read_namespace): Adjust the cp_add_using_directive caller.
70 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
73 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
76 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
78 * mi/mi-main.c (mi_cmd_list_features): Emit
79 breakpoint-notifications.
81 2011-06-29 Tom Tromey <tromey@redhat.com>
84 * valprint.h (generic_emit_char, generic_printstr): Declare.
85 * valprint.c (wchar_printable, append_string_as_wide)
86 (print_wchar): Move from c-lang.c.
87 (generic_emit_char): New function; mostly taken from c_emit_char.
88 (generic_printstr): New function; mostly taken from c_printstr.
89 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
90 represented as arrays.
91 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
93 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
94 identically to TYPE_CODE_INT.
95 * f-lang.c (f_get_encoding): New function.
96 (f_emit_char): Use generic_emit_char.
97 (f_printchar): Replace comment.
98 (f_printstr): Use generic_printstr.
99 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
100 "character" types specially.
101 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
103 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
105 (c_emit_char): Call generic_emit_char.
106 (c_printstr): Call generic_printstr.
108 2011-06-29 Gary Benson <gbenson@redhat.com>
110 * breakpoint.c (bpstat_what): Removed duplicated case.
112 2011-06-28 Tom Tromey <tromey@redhat.com>
114 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
116 2011-06-27 Tom Tromey <tromey@redhat.com>
118 * valops.c (find_overload_match): Call do_cleanups before early
120 * top.c (execute_command): Call do_cleanups before early return.
121 (command_loop): Likewise.
122 * stack.c (backtrace_command): Make a null cleanup early. Don't
123 conditionally call do_cleanups.
124 * python/py-value.c (TRY_CATCH): Move cleanup handling into
126 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
127 so cleanups are always run.
128 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
129 * findcmd.c (parse_find_args): Call do_cleanups on early return
131 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
132 Don't conditionally call do_cleanups.
133 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
136 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
138 * MAINTAINERS (Write After Approval): Use default email address.
140 2011-06-27 Joel Brobecker <brobecker@adacore.com>
142 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
144 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
146 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
147 saved_regs_mask and copied_regs_mask fields.
148 (sparc_record_save_insn): New prototype.
149 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
150 (sparc_record_save_insn): New function.
151 (sparc_analyze_prologue): Add head comment. Recognize store insns
152 of call-saved registers. Use OFFSET consistently. Recognize flat
153 frames and cache their settings.
154 (sparc32_skip_prologue): Handle flat frames.
155 (sparc_frame_cache): Add frame_offset to the base address.
156 (sparc32_frame_cache): Adjust to new frame description.
157 (sparc32_frame_prev_register): Likewise.
158 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
159 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
160 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
161 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
162 frame by calling sparc_record_save_insn.
163 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
164 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
165 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
167 2011-06-27 Tristan Gingold <gingold@adacore.com>
169 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
170 field by map_addr and map_len.
171 (dwarf2_read_section): Adjust for the new bfd_mmap api.
172 (munmap_section_buffer): Likewise.
174 2011-06-24 Tom Tromey <tromey@redhat.com>
176 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
177 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
178 * python/python.c (gdbpy_parameter): Make 'arg' const.
179 (execute_gdb_command): Likewise.
180 (gdbpy_decode_line): Likewise. Copy it.
181 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
182 (gdbpy_write): Make 'arg' const.
183 * python/py-type.c (typy_lookup_typename): Make 'type_name'
185 (gdbpy_lookup_type): Likewise.
186 * python/py-prettyprint.c (print_children): Make 'name' const.
187 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
188 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
190 * python/py-function.c (fnpy_init): Make 'name' const.
191 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
192 (gdbpy_string_to_argv): Make 'input' const.
193 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
195 * gdbtypes.h (lookup_typename): Update.
196 * gdbtypes.c (lookup_typename): Make 'name' const.
197 (lookup_struct): Likewise.
198 (lookup_union): Likewise.
199 (lookup_enum): Likewise.
201 2011-06-24 Tom Tromey <tromey@redhat.com>
203 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
204 gdb_thread_db.h. Move all common/ entries to be together.
205 (TAGS): Don't depend on DEPFILES.
207 2011-06-23 Yao Qi <yao@codesourcery.com>
209 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
210 * remote.c (remote_start_remote): ... here.
211 * monitor.c (monitor_open): ... here.
213 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
215 * gdbtypes.c (append_composite_type_field_aligned): Fix
216 calculation of bit position based on alignment.
218 2011-06-22 Pedro Alves <pedro@codesourcery.com>
220 * breakpoint.c (bpstat_stop_status): Call the check_status
221 breakpoint_ops method.
222 (print_one_breakpoint_location): Also print the condition for Ada
223 exception catchpoints.
224 (allocate_bp_location): New, factored out from
225 allocate_bp_location.
226 (allocate_bp_location): Adjust. Call the owner breakpoint's
227 allocate_location method, if there is one.
228 (free_bp_location): Call the locations's dtor method, if there is
230 (init_raw_breakpoint_without_location): New breakpoint_ops
232 (set_raw_breakpoint_without_location): Adjust.
233 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
234 (set_raw_breakpoint): Adjust.
235 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
236 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
237 re_set and check_status methods.
238 (init_catchpoint): Don't memset, initialize thread, addr_string
239 and enable_state. Pass the ops down to init_raw_breakpoint.
240 (install_catchpoint): Rename to ...
241 (install_breakpoint): ... this, and make extern.
242 (create_fork_vfork_event_catchpoint): Adjust.
243 (catch_exec_breakpoint_ops): Install NULL allocate_location,
244 re_set and check_status methods.
245 (create_syscall_event_catchpoint): Adjust.
246 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
247 (masked_watchpoint_breakpoint_ops): Install NULL
248 allocate_location, re_set and check_status methods.
249 (catch_exec_command_1): Adjust.
250 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
251 re_set and check_status methods.
252 (create_ada_exception_breakpoint): Rename to ...
253 (init_ada_exception_breakpoint): ... this. Add a struct
254 breakpoint parameter, and delete the exp_string, cond_string and
255 cond parameters. Use init_raw_breakpoint, and don't install or
256 mention the breakpoint yet. Don't clear breakpoint fields that
257 init_raw_breakpoint already clears.
258 (re_set_breakpoint): Delete, split into ...
259 (breakpoint_re_set_default, prepare_re_set_context): ... these new
261 (breakpoint_re_set_one): Call the breakpoint's
262 breakpoint_ops->re_set implementation, if there's one. Adjust.
263 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
264 (struct bp_location_ops): New type.
265 (struct bp_location): New field `ops'.
266 (struct breakpoint_ops): New `allocate_location', `re_set' and
267 `check_status' fields. Make `breakpoint_hit''s description match
269 (init_bp_location): Declare.
270 (breakpoint_re_set_default): Declare.
271 (create_ada_exception_breakpoint): Rename to ...
272 (init_ada_exception_breakpoint): ... this. Add a struct
273 breakpoint parameter, and delete the exp_string, cond_string and
275 (install_breakpoint): Declare.
276 * ada-lang.c: Include exceptions.h.
277 <Ada exceptions description>: Update.
278 (struct ada_catchpoint_location): New type.
279 (ada_catchpoint_location_dtor): New function.
280 (ada_catchpoint_location_ops): New global.
281 (ada_catchpoint): New type.
282 (create_excep_cond_exprs): New function.
283 (dtor_exception, allocate_location_exception, re_set_exception)
284 (should_stop_exception, check_status_exception): New functions.
285 (print_one_exception, print_mention_exception)
286 (print_recreate_exception): Adjust.
287 (dtor_catch_exception, allocate_location_catch_exception)
288 (re_set_catch_exception, check_status_catch_exception): New
290 (catch_exception_breakpoint_ops): Install them.
291 (dtor_catch_exception_unhandled)
292 (allocate_location_catch_exception_unhandled)
293 (re_set_catch_exception_unhandled)
294 (check_status_catch_exception_unhandled): New functions.
295 (catch_exception_unhandled_breakpoint_ops): Install them.
296 (dtor_catch_assert, allocate_location_catch_assert)
297 (re_set_catch_assert, check_status_catch_assert): New functions.
298 (catch_assert_breakpoint_ops): Install them.
299 (ada_exception_catchpoint_p): Delete.
300 (catch_ada_exception_command_split)
301 (ada_exception_catchpoint_cond_string): Rename exp_string
302 parameter to excep_string. Adjust.
303 (ada_parse_catchpoint_condition): Delete.
304 (ada_exception_sal): Rename the exp_string parameter to
305 excep_string. Delete the cond_string and cond parameters.
307 (ada_decode_exception_location): Rename the exp_string parameter
308 to excep_string. Delete the cond_string and cond parameters.
310 (create_ada_exception_catchpoint): New function.
311 (catch_ada_exception_command, ada_decode_assert_location)
312 (catch_assert_command): Adjust.
313 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
315 2011-06-22 Pedro Alves <pedro@codesourcery.com>
317 * ada-lang.c: Include arch-utils.h.
318 (ada_decode_exception_location): Make static.
319 (catch_ada_exception_command): Moved here from breakpoint.c.
320 (ada_decode_assert_location): Make static.
321 (catch_assert_command): Moved here from breakpoint.c.
322 (_initialize_ada_lang): Install the exception and assert
323 catchpoint commands here.
324 * ada-lang.h (ada_decode_exception_location)
325 (ada_decode_assert_location): Delete declarations.
326 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
328 (create_ada_exception_breakpoint): Make extern.
329 (catch_ada_exception_command, catch_assert_command): Moved to
331 (add_catch_command): Make extern.
332 (_initilize_breakpoint): Don't install the exception and assert
333 catchpoint commands here.
334 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
336 (add_catch_command, create_ada_exception_breakpoint): Declare.
338 2011-06-22 Pedro Alves <pedro@codesourcery.com>
340 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
341 the breakpoint to the breakpoint chain here.
342 (set_raw_breakpoint_without_location): Add the breakpoint to the
343 breakpoint chain here.
344 (init_raw_breakpoint): Adjust comments.
345 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
347 (init_catchpoint): Don't set the catchpoint's breakpoint number
349 (install_catchpoint): New function.
350 (create_fork_vfork_event_catchpoint)
351 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
352 use install_catchpoint.
354 2011-06-22 Pedro Alves <pedro@codesourcery.com>
356 * breakpoint.c (create_catchpoint_without_mention)
357 (create_catchpoint): Delete.
359 2011-06-22 Pedro Alves <pedro@codesourcery.com>
361 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
362 * breakpoint.c (init_raw_breakpoint_without_location): Remove
363 reference to exec_pathname.
364 (struct exec_catchpoint): New type.
365 (dtor_catch_exec): New function.
366 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
367 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
368 (catch_exec_command_1): Adjust to use init_catchpoint.
369 (delete_breakpoint): Remove reference to exec_pathname.
371 2011-06-22 Pedro Alves <pedro@codesourcery.com>
373 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
374 (struct breakpoint): Delete field `syscalls_to_be_caught'.
375 * breakpoint.c (init_raw_breakpoint_without_location): Remove
376 reference to syscalls_to_be_caught.
377 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
379 (struct syscall_catchpoint): New type.
380 (dtor_catch_syscall): New function.
381 (insert_catch_syscall, remove_catch_syscall)
382 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
383 (print_recreate_catch_syscall): Adjust.
384 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
385 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
386 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
387 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
388 (masked_watchpoint_breakpoint_ops)
389 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
390 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
391 there is one. Remove references to syscalls_to_be_caught.
392 (catching_syscall_number): Adjust.
393 * ada-lang.c (catch_exception_breakpoint_ops)
394 (catch_exception_unhandled_breakpoint_ops)
395 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
397 2011-06-22 Pedro Alves <pedro@codesourcery.com>
399 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
401 * breakpoint.c (init_raw_breakpoint_without_location): Remove
402 reference to forked_inferior_pid.
403 (struct fork_catchpoint): New type.
404 (breakpoint_hit_catch_fork, print_it_catch_fork)
405 (print_one_catch_fork, breakpoint_hit_catch_vfork)
406 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
407 (create_fork_vfork_event_catchpoint): Adjust to use
410 2011-06-22 Pedro Alves <pedro@codesourcery.com>
412 * breakpoint.c (add_to_breakpoint_chain)
413 (init_raw_breakpoint_without_location): New functions, factored
415 (set_raw_breakpoint_without_location): ... this one.
416 (init_raw_breakpoint): New function, factored out from
417 set_raw_breakpoint and adjusted to use
418 init_raw_breakpoint_without_location.
419 (set_raw_breakpoint): Adjust.
420 (init_catchpoint): New function, factored out from
421 create_catchpoint_without_mention and adjusted to use
423 (create_catchpoint_without_mention): Adjust.
425 2011-06-22 Tom Tromey <tromey@redhat.com>
427 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
428 argument of 0 specially.
430 2011-06-22 Yao Qi <yao@codesourcery.com>
432 * infrun.c (handle_inferior_event): Remove write-only local variable
433 `sw_single_step_trap_p'.
435 2011-06-20 Tom Tromey <tromey@redhat.com>
437 * symtab.c (lookup_language_this): End loop if block is NULL.
439 2011-06-17 Tom Tromey <tromey@redhat.com>
441 * valops.c (value_of_this): Use lookup_language_this.
442 * symtab.h (lookup_language_this): Declare.
443 * symtab.c (lookup_language_this): New function.
444 (lookup_symbol_aux): Use lookup_language_this.
445 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
447 2011-06-17 Tom Tromey <tromey@redhat.com>
449 * value.h (value_of_this): Update.
450 (value_of_local): Remove.
451 * valops.c (value_of_this): Rename from value_of_local. Change
453 * p-exp.y (exp): Update.
454 (variable): Likewise.
455 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
457 2011-06-17 Tom Tromey <tromey@redhat.com>
459 * valops.c (value_of_local): Complain if NAME is NULL.
460 * std-operator.def (OP_OBJC_SELF): Remove.
461 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
462 * objc-exp.y (name_not_typename): Use OP_THIS.
463 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
465 <OP_OBJC_SELF>: Remove.
466 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
468 2011-06-16 Tristan Gingold <gingold@adacore.com>
470 * python/py-events.h (gdb_py_events): Make it extern.
471 * python/py-evtregistry.c (gdb_py_events): Declare.
473 2011-06-16 Hui Zhu <teawater@gmail.com>
475 * remote.c (remote_trace_set_readonly_regions): Add check for
476 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
479 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
481 * arm-linux-tdep.c: Include "auxv.h".
483 (ARM_LINUX_SIZEOF_VFP): Define.
484 (arm_linux_supply_vfp): New function.
485 (arm_linux_collect_vfp): Likewise.
486 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
487 (arm_linux_fpa_regset_sections): New variable.
488 (arm_linux_vfp_regset_sections): Likewise.
489 (arm_linux_core_read_description): New function.
490 (arm_linux_init_abi): Install arm_linux_core_read_description and
491 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
492 appropriate for the architecture.
493 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
494 (tdesc_arm_with_m): Declare.
495 (tdesc_arm_with_iwmmxt): Likewise.
496 (tdesc_arm_with_vfpv2): Likewise.
497 (tdesc_arm_with_vfpv3): Likewise.
498 (tdesc_arm_with_neon): Likewise.
499 * arm-linux-nat.c: Move features/*.c includes ...
500 * arm-tdep.c: ... here.
501 * arm-linux-nat.c (arm_linux_read_description): Move initializing
502 target description data structures ...
503 * arm-tdep.c (_initialize_arm_tdep): ... here.
504 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
505 HWCAP_VFPv3D16): Move definitions ...
506 * arm-linux-tdep.h: ... here.
508 2011-06-15 Hui Zhu <teawater@gmail.com>
510 * remote.c (remote_trace_set_readonly_regions): Add a check for
513 2011-06-14 Tom Tromey <tromey@redhat.com>
515 * coffread.c (coffread_objfile): Rename from current_objfile.
516 * dbxread.c (dbxread_objfile): Rename from current_objfile.
517 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
519 2011-06-14 Tom Tromey <tromey@redhat.com>
521 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
522 (class_symtab): Remove.
523 (jv_dynamics_progspace_key): New global.
524 (jv_per_objfile_free): Reset program space data. Update assert.
526 (get_dynamics_objfile): Use and set program space data.
527 (get_java_class_symtab): Use get_dynamics_objfile.
528 (add_class_symbol): Likewise.
529 (java_link_class_type): Likewise.
530 (java_object_type, jv_clear_object_type, set_java_object_type):
532 (get_java_object_type): Update. Don't cache result.
533 (is_object_type): Don't call set_java_object_type.
534 (_initialize_java_language): Don't set jv_type_objfile_data_key;
535 initialize jv_dynamics_progspace_key.
537 2011-06-14 Tom Tromey <tromey@redhat.com>
539 * symtab.h (current_objfile): Don't declare.
540 * objfiles.h (current_objfile): Don't declare.
541 * objfiles.c (current_objfile): Remove.
542 * mdebugread.c (current_objfile): New file-scope global.
543 * dbxread.c (current_objfile): New file-scope global.
544 * coffread.c (current_objfile): New file-scope global.
546 2011-06-13 Pedro Alves <pedro@codesourcery.com>
548 * top.h (line): Rename to ...
549 (saved_command_line): ... this.
550 (linesize): Rename to ...
551 (saved_command_line_size): ... this.
552 * top.c (line): Rename to ...
553 (saved_command_line): ... this.
554 (linesize): Rename to ...
555 (saved_command_line_size): ... this.
556 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
557 * event-top.c (command_line_handler): Adjust.
558 * main.c (captured_main): Adjust.
560 2011-06-12 Mark Kettenis <kettenis@gnu.org>
562 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
563 get_frame_func instead of get_frame_pc to determine the code
564 address used to construct the frame ID.
565 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
566 (i386_epilogue_frame_this_id): Likewise.
567 (i386_epilogue_frame_prev_register): New function.
568 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
569 (i386_stack_tramp_frame_sniffer): Fix coding style.
570 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
571 (i386_gdbarch_init): Fix comments.
573 2011-06-12 Mark Kettenis <kettenis@gnu.org>
575 * i386-tdep.c (i386_match_insn_block): Use length of the proper
576 instruction when walking back through the instruction stream.
578 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
580 * symtab.c (output_partial_symbol_filename): Exchange the filename and
581 fullname parameters order.
583 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
586 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
588 * psymtab.c (map_symbol_filenames_psymtab)
589 (map_partial_symbol_filenames): Likewise.
590 * psymtab.h: Include symfile.h.
591 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
592 * symfile.h (symbol_filename_ftype): New.
593 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
594 map_symbol_filenames, clarify more the naming in comment.
596 2011-06-07 Doug Evans <dje@google.com>
598 * cc-with-index.sh: Fix typos in comment.
599 Look for ../../gdb, for fullname.exp.
601 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
602 Pedro Alves <pedro@codesourcery.com>
604 * cli/cli-cmds.c (shell_escape): Use waitpid.
605 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
607 2011-06-07 Tristan Gingold <gingold@adacore.com>
609 * xcoffread.c (dwarf2_xcoff_names): New variable.
610 (aix_process_linenos): Add a guard.
611 (xcoff_symfile_finish): Free dwarf2.
612 (xcoff_initial_scan): Add dwarf2 support.
614 2011-06-06 Pedro Alves <pedro@codesourcery.com>
616 * infcall.c (run_inferior_call): Don't mask async. Instead force
617 a synchronous wait, if the target can async.
619 * target.h (struct target_ops): Delete to_async_mask.
620 (target_async_mask): Delete.
621 * target.c (update_current_target): Delete references to to_async_mask.
622 * linux-nat.c (linux_nat_async_mask_value): Delete.
623 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
624 to linux_nat_async_mask_value.
625 (linux_nat_async_mask): Delete.
626 (linux_nat_async, linux_nat_close): Remove references to
627 linux_nat_async_mask_value.
628 * record.c (record_async_mask_value): Delete.
629 (record_async): Remove references to record_async_mask_value.
630 (record_async_mask): Delete.
631 (record_can_async_p, record_is_async_p): Remove references to
632 record_async_mask_value.
633 (init_record_ops, init_record_core_ops): Remove references to
635 * remote.c (remote_async_mask_value): Delete.
636 (init_remote_ops): Remove reference to remote_async_mask.
637 (remote_can_async_p, remote_is_async_p): Remove references to
638 remote_async_mask_value.
639 (remote_async): Remove references to remote_async_mask_value.
640 (remote_async_mask): Delete.
642 * infrun.c (fetch_inferior_event): Don't claim registers changed
643 if the current thread is already not executing.
645 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
647 From Stephen Kitt <steve@sk2.org>
648 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
649 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
651 2011-06-03 Joel Brobecker <brobecker@adacore.com>
653 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
654 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
656 2011-06-03 Tom Tromey <tromey@redhat.com>
658 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
660 * python/py-exitedevent.c (create_exited_event_object): Change
661 type of 'exit_code'. Optionally add exit_code attribute.
662 (emit_exited_event): Change type of 'exit_code'.
663 * python/py-event.h (emit_exited_event): Update.
664 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
665 * infrun.c (handle_inferior_event): Set exit code fields on
667 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
669 * inferior.c (exit_inferior_1): Initialize new fields.
671 2011-06-03 Tom Tromey <tromey@redhat.com>
673 * dwarf2expr.c (get_signed_type): New function.
674 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
676 2011-06-02 Keith Seitz <keiths@redhat.com>
678 * objc-lang.c (find_methods): Increment objfile_csym earlier.
680 2011-06-02 Pedro Alves <pedro@codesourcery.com>
682 * top.h (simplified_command_loop): Delete declaration.
684 2011-06-01 Mike Frysinger <vapier@gentoo.org>
686 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
687 gdb_sysroot to the "len" variable. Append both to "arg_buf".
689 2011-06-01 Yao Qi <yao@codesourcery.com>
691 * objfiles.h (obj_section_addr): Update reference to objfile from
693 (obj_section_endaddr): Likewise.
695 2011-06-01 Daniel Jacobowitz <drow@false.org>
697 * MAINTAINERS: Update my email address and affiliation. Also
698 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
700 2010-05-31 Keith Seitz <keiths@redhat.com>
703 * linespec.c (get_search_block): New function.
704 (find_methods): Add FILE_SYMTATB parameter and use it and
705 get_search_block to pass an appropriate block to
706 lookup_symbol_in_namespace.
707 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
708 Check if *ARGPTR starts with a filename first.
709 If it does, call locate_first_half again to locate the next
710 "first half" of the linespec.
711 Pass FILE_SYMTATB to decode_objc and decode_compound.
712 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
713 (locate_first_half): Stop on the first colon seen.
714 (decode_compound): Add FILE_SYMTAB parameter.
715 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
716 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
717 get_search_block with lookup_symbol.
718 (find_method): Add FILE_SYMTAB parameter and pass it to
720 (decode_objc): Use get_search_block.
722 2010-05-31 Keith Seitz <keiths@redhat.com>
725 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
726 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
727 and CP_ANONYMOUS_NAMESPACE_LEN.
728 (cp_is_anonymous): Likewise.
729 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
730 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
731 * dwarf2read.c (namespace_name): Likewise.
732 (fixup_partial_die): Likewise.
733 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
734 seen in the input, keep it.
736 2011-05-30 Pedro Alves <pedro@codesourcery.com>
738 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
739 * inf-loop.h (inferior_event_handler_wrapper): Delete.
740 * inf-loop.c (inferior_event_handler_wrapper): Delete.
741 (inferior_event_handler): Don't handle INF_QUIT_REQ.
742 * remote.c (_initialize_remote): Register
743 async_remote_interrupt_twice directly as
744 sigint_remote_twice_token event.
746 2011-05-30 Pedro Alves <pedro@codesourcery.com>
748 * target.h (enum inferior_event_type): Delete INF_ERROR.
749 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
751 2011-05-30 Pedro Alves <pedro@codesourcery.com>
753 * interps.c (interp_set): Don't cancel continuations.
755 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
757 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
759 2011-05-30 Pedro Alves <pedro@codesourcery.com>
761 * continuations.h (continuation_ftype): Add `err' parameter.
763 (do_all_continuations, do_all_continuations_thread)
764 (do_all_intermediate_continuations)
765 (do_all_intermediate_continuations_thread)
766 (do_all_inferior_continuations): Add `err' parameter.
767 * continuations.c (do_my_continuations_1, do_my_continuations)
768 (do_all_inferior_continuations, do_all_continuations_ptid)
769 (do_all_continuations_thread_callback)
770 (do_all_continuations_thread, do_all_continuations)
771 (do_all_intermediate_continuations_thread_callback)
772 (do_all_intermediate_continuations_thread)
773 (do_all_intermediate_continuations): Add `err' parameter, and pass
774 it down all the way to the continuations proper.
775 * inf-loop.c (inferior_event_handler): If fetching an inferior
776 event throws an error, don't pop the target, and still call the
777 continuations, but with `err' set. Adjust all other continuation
779 * breakpoint.c (until_break_command_continuation): Add `err'
781 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
782 issue another step if `err' is set.
783 (struct until_next_continuation_args): New.
784 (until_next_continuation): Add `err' parameter. Adjust.
785 (until_next_command): Adjust.
786 (struct finish_command_continuation_args): Add `thread' field.
787 (finish_command_continuation): Add `err' parameter. Handle it.
788 (finish_forward): Adjust.
789 (attach_command_continuation): Add `err' parameter. Handle it.
790 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
791 cancel the continuations.
792 * interps.c (interp_set): Adjust to cancel the continuations.
793 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
794 continuations rather than discarding.
795 (free_thread): Don't clear thread inferior resources here.
796 (delete_thread_1): Do it here instead. And do it before removing
797 the thread from the threads list. Tag the thread as exited before
798 clearing thread inferior resources.
800 2011-05-30 Joel Brobecker <brobecker@adacore.com>
802 * infcall.c (call_function_by_hand): Rephrase error message.
804 2011-05-27 Pedro Alves <pedro@codesourcery.com>
806 * defs.h (struct thread_info, struct inferior): Delete forward
808 * breakpoint.h (struct thread_info): New forward declaration.
809 * observer.sh (struct inferior): New forward declaration.
810 * python/python-internal.h (struct inferior): New forward
813 2011-05-27 Pedro Alves <pedro@codesourcery.com>
815 * defs.h (struct continuation, continuation_ftype)
816 (continuation_free_arg_ftype, add_continuation)
817 (do_all_continuations, do_all_continuations_thread)
818 (discard_all_continuations, discard_all_continuations_thread)
819 (add_intermediate_continuation, do_all_intermediate_continuations)
820 (do_all_intermediate_continuations_thread)
821 (discard_all_intermediate_continuations)
822 (discard_all_intermediate_continuations_thread)
823 (add_inferior_continuation, do_all_inferior_continuations)
824 (discard_all_inferior_continuations): Move to ...
825 * continuations.h: ... this new file.
826 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
827 infcmd.c, inferior.c, infrun.c, interps.c: Include
830 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
831 Doug Evans <dje@google.com>
833 Fix PR 10970, PR 12702.
834 * linux-nat.c (linux_lwp_is_zombie): New function.
835 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
836 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
838 2011-05-27 Pedro Alves <pedro@codesourcery.com>
840 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
842 (add_continuation, add_intermediate_continuation)
843 (add_inferior_continuation): Use them.
844 * continuations.c (struct continuation): Use them.
845 (make_continuation_ftype): Delete.
846 (make_continuation, add_inferior_continuation, add_continuation)
847 (add_intermediate_continuation): Use continuation_ftype and
848 continuation_free_arg_ftype. Rename parameters to shorter names.
850 2011-05-27 Pedro Alves <pedro@codesourcery.com>
852 * continuations.c (make_continuation): Make it return void.
853 (do_my_continuations): Rename to ...
854 (do_my_continuations_1): ... this. Remove old_chain parameter and
856 (do_my_continuations): New.
857 (discard_my_continuations): Rename to ...
858 (discard_my_continuations_1): ... this. Remove old_chain
859 parameter and adjust.
860 (discard_my_continuations): New.
861 (add_inferior_continuation): Simplify.
862 (do_all_inferior_continuations): Reimplement on top
864 (discard_all_inferior_continuations): Simplify.
865 (add_continuation): Simplify.
866 (do_all_continuations_ptid): Simplify.
867 (discard_all_continuations_thread_callback): Simplify.
868 (add_intermediate_continuation): Simplify.
869 (discard_all_intermediate_continuations_thread_callback):
872 2011-05-27 Pedro Alves <pedro@codesourcery.com>
874 * utils.c (struct continuation, add_continuation)
875 (add_inferior_continuation)
876 (do_all_inferior_continuations, discard_all_inferior_continuations)
877 (restore_thread_cleanup, do_all_continuations_ptid)
878 (do_all_continuations_thread_callback)
879 (do_all_continuations_thread, do_all_continuations)
880 (discard_all_continuations_thread_callback)
881 (discard_all_continuations_thread, discard_all_continuations)
882 (add_intermediate_continuation)
883 (do_all_intermediate_continuations_thread_callback)
884 (do_all_intermediate_continuations_thread)
885 (do_all_intermediate_continuations)
886 (discard_all_intermediate_continuations_thread_callback)
887 (discard_all_intermediate_continuations_thread)
888 (discard_all_intermediate_continuations): Move to ...
889 * continuations.c: ... this new file, and adjust to no longer
890 implement continuations on top of cleanups.
891 * Makefile.in (SFILES): Add continuations.c.
892 (COMMON_OBS): Add continuations.o.
894 2011-05-26 Pedro Alves <pedro@codesourcery.com>
896 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
897 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
898 Internal error on invalid values.
899 * reverse.c: Don't handle EXEC_ERROR.
900 * mi/mi-main.c: Don't handle EXEC_ERROR.
902 2011-05-26 Pedro Alves <pedro@codesourcery.com>
904 * record.c: Include event-loop.h, inf-loop.h.
905 (record_beneath_to_async): New global.
906 (tmp_to_async): New global.
907 (record_async_inferior_event_token): New global.
908 (record_open_1): Don't error out if async is enabled.
909 (record_open): Handle to_async. Create an async event source in
911 (record_close): Delete the async event source.
912 (record_resumed): New global.
913 (record_execution_dir): New global.
914 (record_resume, record_core_resume): Set them. Register the
915 target on the event loop.
916 (record_wait): Rename to ...
917 (record_wait_1): ... this. Add more debug output. Handle
918 TARGET_WNOHANG, and the target beneath returning
919 TARGET_WAITKIND_IGNORE.
920 (record_wait): Reimplement on top of record_wait_1.
921 (record_async_mask_value): New global.
922 (record_async, record_async_mask, record_can_async_p)
923 (record_is_async_p, record_execution_direction): New functions.
924 (init_record_ops, init_record_core_ops): Install new methods.
925 * infrun.c (fetch_inferior_event): Temporarily switch the global
926 execution direction to the direction the target was going.
927 (execution_direction): Change type to int.
928 * target.c (default_execution_direction): New function.
929 (update_current_target): Inherit and de_fault
930 to_execution_direction.
931 * target.h (struct target_ops) <to_execution_direction>: New
933 (target_execution_direction): New macro.
934 * inferior.h (execution_direction): Change type to int.
936 2011-05-26 Pedro Alves <pedro@codesourcery.com>
938 * infcall.c (call_function_by_hand): Don't allow calling functions
939 in reverse execution mode.
941 2011-05-26 Pedro Alves <pedro@codesourcery.com>
943 * infcmd.c (finish_command): Allow async finish in reverse.
945 2011-05-26 Yao Qi <yao@codesourcery.com>
947 * gdb_thread_db.h: Delete. Move to ...
948 * common/gdb_thread_db.h: ... here.
950 2011-05-26 Pedro Alves <pedro@codesourcery.com>
952 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
953 function's entry point instead of a manually managed momentary
954 breakpoint, and only ever issue one proceed call.
955 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
956 doing a reverse-finish, switch to stepi mode, to do another step.
957 (insert_step_resume_breakpoint_at_sal): Make public.
958 (normal_stop): No need to save function value return registers if
960 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
962 2011-05-26 Pedro Alves <pedro@codesourcery.com>
964 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
965 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
966 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
968 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
969 step-resume breakpoints.
970 (print_it_typical): Handle bp_hp_step_resume.
971 (bpstat_what): Ditto.
972 (bptype_string): Ditto.
973 (print_one_breakpoint_location): Ditto.
974 (allocate_bp_location): Ditto.
976 (breakpoint_re_set_one): Ditto.
977 * infrun.c (handle_inferior_event): Adjust. Split
978 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
979 BPSTAT_WHAT_HP_STEP_RESUME.
980 (insert_step_resume_breakpoint_at_sal): Rename to ...
981 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
982 parameter. Handle it.
983 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
984 insert_step_resume_breakpoint_at_sal_1.
985 (insert_step_resume_breakpoint_at_frame): Rename to ...
986 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
987 set a high-priority step-resume breakpoint.
988 (insert_step_resume_breakpoint_at_frame): Adjust comment.
989 (insert_step_resume_breakpoint_at_caller): Ditto.
991 2011-05-26 Pedro Alves <pedro@codesourcery.com>
993 * breakpoint.c (iterate_over_related_breakpoints): New.
994 (do_map_delete_breakpoint): New.
995 (delete_command): Pass do_map_delete_breakpoint to
996 map_breakpoint_numbers.
997 (do_disable_breakpoint): New.
998 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1000 (do_enable_breakpoint): Rename to ...
1001 (enable_breakpoint_disp): ... this.
1002 (enable_breakpoint): Adjust.
1003 (do_enable_breakpoint): New.
1004 (enable_once_breakpoint): Delete.
1005 (do_map_enable_breakpoint): New.
1006 (do_map_enable_once_breakpoint): New.
1007 (enable_once_command, enable_delete_command)
1008 (delete_trace_command): Iterate over the breakpoint's related
1011 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1013 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1014 for ALPHA_ZERO_REGNUM.
1015 (alpha_supply_int_regs): Explicitly supply zero as the value for
1016 ALPHA_ZERO_REGNUM in the register cache.
1017 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1019 2011-05-26 Yao Qi <yao@codesourcery.com>
1021 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1023 2011-05-26 Tristan Gingold <gingold@adacore.com>
1025 * symfile.h (struct dwarf2_section_names): New type.
1026 (struct dwarf2_debug_sections): New type.
1027 (dwarf2_has_info): Add parameter.
1028 * dwarf2read.c (dwarf2_elf_names): New variable.
1029 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1030 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1031 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1032 (dwarf2_has_info): Add names parameter. Pass names
1033 to dwarf2_locate_sections.
1034 (section_is_p): Rewrite using the names parameter.
1035 (dwarf2_locate_sections): Use section names from the names parameter.
1036 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1037 * elfread.c (read_psyms): Ditto.
1038 * machoread.c (macho_symfile_read): Ditto.
1040 2011-05-25 Andreas Schwab <schwab@redhat.com>
1043 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1045 2011-05-24 Keith Seitz <keiths@redhat.com>
1048 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1049 (decode_compound): Unconditionally call keep_name_info.
1051 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1053 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1054 scope, clear its command list.
1055 (map_breakpoint_numbers): Don't walk the related breakpoints list
1058 2011-05-24 Tom Tromey <tromey@redhat.com>
1060 * MAINTAINERS: Move Jim Blandy to past maintainers.
1062 2011-05-24 Tristan Gingold <gingold@adacore.com>
1064 * symfile.h (enum dwarf2_section_enum): New type.
1065 (dwarf2_get_section_info): New prototype.
1066 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1067 section_name by sect. Use a switch to select the info.
1068 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1069 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1071 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1073 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1074 shared library event breakpoint if there's no execution.
1076 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1078 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1079 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1081 2011-05-23 Tom Tromey <tromey@redhat.com>
1083 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1086 2011-05-23 Doug Evans <dje@google.com>
1088 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1089 entry for RuntimeError to doc string.
1091 2011-05-23 Jerome Guitton <guitton@adacore.com>
1093 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1094 sequence for probing loops.
1096 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1098 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1101 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1103 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1104 zero as the value for %g0 in the register cache.
1105 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1106 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1108 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1110 * infrun.c (proceed): Set previous_inferior_ptid here.
1111 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1112 inferior_ptid, not null_ptid.
1113 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1114 (fetch_inferior_event): Nor here.
1116 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1118 * inf-loop.c (inferior_event_handler): Only output a message if
1121 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1123 * MAINTAINERS: Update my e-mail address.
1125 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1127 * infrun.c (proceed): Switch the inferior event loop to
1128 INF_EXEC_COMPLETE if the target refused to resume from a
1131 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1133 * infcmd.c: Include "inf-loop.h".
1134 (step_once): When stepping into an inline subroutine, pretend the
1135 target has run. If the target can async, switch the inferior
1136 event loop to INF_EXEC_COMPLETE.
1137 * inferior.h (user_visible_resume_ptid): Declare.
1138 * infrun.c (user_visible_resume_ptid): New function, factored out
1141 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1142 that the current thread is running. Merge async and sync
1145 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1147 * infcmd.c (step_1): Simplify synchronous case.
1149 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1151 * tracepoint.c: Include exceptions.h.
1152 (TFILE_PID): Move higher in file.
1153 (tfile_open): Delay pushing the tfile target until we're assured
1154 the tfile header is present in the file. Wrap reading the initial
1155 newline-terminated lines in TRY_CATCH. Pop the target if the
1156 initial setup failed. Add the tfile's thread immediately
1157 aftwards, before any non-essential setup. Don't skip
1158 post_create_inferior if there are no traceframes present in the
1160 (tfile_close): Remove redundant check for null before xfree call.
1161 (tfile_thread_alive): New function.
1162 (init_tfile_ops): Register it as to_thread_alive callback.
1164 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1166 * tracepoint.c (tfile_open): Delete #if 0'd code.
1168 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1170 Fix -readnow for -gdwarf-4 unused type units.
1171 * dwarf2read.c (struct signatured_type): Remove the field offset.
1172 (create_signatured_type_table_from_index): Remove its initialization.
1173 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1174 instead. Add a complaint call.
1175 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1176 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1177 (lookup_signatured_type_at_offset, read_signatured_type)
1178 (write_one_signatured_type): Update the field for per_cu.
1180 2011-05-19 Tom Tromey <tromey@redhat.com>
1182 * python/py-inferior.c (python_inferior_exit): Use
1184 (python_on_resume): Likewise.
1186 2011-05-19 Matt Rice <ratmice@gmail.com>
1188 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1190 2011-05-19 Hui Zhu <teawater@gmail.com>
1192 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1194 2011-05-19 Hui Zhu <teawater@gmail.com>
1196 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1198 2011-05-18 Tom Tromey <tromey@redhat.com>
1200 * dwarf2read.c (dwarf2_add_field): Constify.
1201 * value.c (value_static_field): Constify.
1202 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1204 * ax-gdb.c (gen_static_field): Constify
1206 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1208 * linux-nat.c (kill_callback): Use SIGKILL first.
1210 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1212 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1214 2011-05-18 Tom Tromey <tromey@redhat.com>
1216 * value.c (value_fn_field): Constify.
1217 * symtab.c (gdb_mangle_name): Constify.
1218 * stabsread.c (update_method_name_from_physname): Make 'physname'
1220 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1221 const. Use explicit fputc_filtered loop.
1222 (pascal_type_print_base): Constify.
1223 * p-lang.h (pascal_type_print_method_args): Update.
1224 * linespec.c (add_matching_methods): Constify.
1225 (add_constructors): Likewise.
1226 * jv-typeprint.c (java_type_print_base): Constify.
1227 * gdbtypes.h (struct cplus_struct_type)
1228 <fn_fieldlist.fn_field.physname>: Now const.
1229 * dwarf2read.c (compute_delayed_physnames): Constify.
1230 (dwarf2_add_member_fn): Likewise.
1231 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1233 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1235 * infrun.c (resume): Mention which is the current thread, and its
1236 current PC in debug output.
1237 (prepare_to_proceed): Mention the thread switching in debug
1240 2011-05-18 Tom Tromey <tromey@redhat.com>
1242 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1243 path check. Use xmalloc and cleanups.
1244 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1246 2011-05-17 Tom Tromey <tromey@redhat.com>
1248 * cp-valprint.c (cp_print_value_fields): Catch errors from
1251 2011-05-17 Tom Tromey <tromey@redhat.com>
1253 * dwarf2read.c (dwarf2_get_die_type): Call
1254 get_die_type_at_offset.
1255 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1256 get_base_type function.
1258 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1260 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1263 2011-05-16 Doug Evans <dje@google.com>
1265 * python/py-auto-load.c (source_section_scripts): Mention objfile
1268 2011-05-15 Doug Evans <dje@google.com>
1270 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1271 (try_thread_db_load_from_pdir): Call it. If unable to find
1272 libthread_db in directory of libpthread, see if we're looking at
1273 the separate-debug-info copy.
1275 * python/py-autoload.c (print_script): Print "Missing" instead of
1276 "No" for missing scripts.
1277 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1279 2011-05-13 Doug Evans <dje@google.com>
1281 * ui-file.c (stdio_file_write_async_safe): Add comment.
1283 2011-05-14 Hui Zhu <teawater@gmail.com>
1285 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1287 2011-05-13 Doug Evans <dje@google.com>
1289 Support $pdir and $sdir in libthread-db-search-path.
1290 * NEWS: Mention $sdir,$pdir.
1291 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1292 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1293 (try_thread_db_load_from_sdir): New function.
1294 (try_thread_db_load_from_dir): New function.
1295 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1296 system directories if search of libthread-db-search-path fails,
1297 that is now done via $sdir.
1298 (has_libpthread): New function.
1299 (thread_db_load): Remove search for libthread_db in directory of
1300 libpthread, that is now done via $pdir.
1302 * NEWS: Mention "info auto-load-scripts".
1303 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1304 script_not_found_warning_printed.
1305 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1306 all callers updated. Initialize script_not_found_warning_printed.
1307 (get_auto_load_pspace_data_for_loading): New function.
1308 (maybe_add_script): New function.
1309 (source_section_scripts): Simplify. Only print one warning regardless
1310 of the number of auto-load scripts not found.
1311 (clear_section_scripts): Clear script_not_found_warning_printed.
1312 (auto_load_objfile_script): Record script in hash table.
1313 (count_matching_scripts): New function.
1314 (maybe_print_script): Renamed from maybe_print_section_script, all
1315 callers updated. Rewrite to use ui_out_*.
1316 (info_auto_load_scripts): Renamed from
1317 maintenance_print_section_scripts, all callers updated.
1318 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1319 renamed as "info auto-load-scripts".
1321 2011-05-13 Tom Tromey <tromey@redhat.com>
1323 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1324 (read_sleb128): Likewise.
1326 2011-05-13 Tom Tromey <tromey@redhat.com>
1328 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1331 2011-05-13 Doug Evans <dje@google.com>
1333 * linux-nat.c (debug_linux_nat_async): Delete.
1334 Replace all references to use debug_linux_nat instead.
1335 (show_debug_linux_nat_async): Delete.
1336 (sigchld_handler): Call ui_file_write_async_safe instead of
1338 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1339 * ui-file.c (struct ui_file): New member to_write_async_safe.
1340 (null_file_write_async_safe): New function.
1341 (ui_file_write_async_safe): New function.
1342 (set_ui_file_write_async_safe): New function.
1343 (ui_file_new): Initialize to_write_async_safe.
1344 (stdio_file_write_async_safe): New function.
1345 (struct stdio_file): New member fd.
1346 (stdio_file_new): Initialize to_write_async_safe, fd.
1347 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1349 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1350 (set_ui_file_write_async_safe): Declare.
1351 (ui_file_write_async_safe): Declare.
1353 2011-05-13 Tom Tromey <tromey@redhat.com>
1355 * utils.c (do_value_free): New function.
1356 (make_cleanup_value_free): Likewise.
1357 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1359 (dwarf2_loc_desc_needs_frame): Call
1360 make_cleanup_value_free_to_mark.
1361 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1362 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1364 (new_dwarf_expr_context): Don't call value_mark.
1365 * dwarf2-frame.c (execute_stack_op): Call
1366 make_cleanup_value_free_to_mark.
1367 * defs.h (make_cleanup_value_free): Declare.
1369 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1371 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1372 prepare_execute_command.
1373 * top.c (prepare_execute_command): Return cleanup.
1374 (execute_command): Use cleanup from prepare_execute_command.
1375 * top.h (prepare_execute_command): Change prototype to return
1377 * defs.h (struct value): Add opaque declaration.
1378 (make_cleanup_value_free_to_mark): Add prototype.
1379 * utils.c (do_value_free_to_mark): New function.
1380 (make_cleanup_value_free_to_mark): Likewise.
1382 2011-05-12 Tom Tromey <tromey@redhat.com>
1384 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1385 cast left-hand-side to unsigned.
1387 2011-05-12 Tom Tromey <tromey@redhat.com>
1390 * value.h (value_from_contents): Declare.
1391 * value.c (value_from_contents): New function.
1392 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1393 (dwarf2_get_die_type): New function.
1394 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1395 (allocate_piece_closure): Acquire reference to values.
1396 (read_pieced_value): Update for value-based expressions.
1397 (write_pieced_value): Likewise.
1398 (free_pieced_value_closure): Call value_free as needed.
1399 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1400 Update for value-based expressions.
1401 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1402 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1403 <get_base_type>: New field.
1404 (struct dwarf_expr_piece) <v.value>: Change type.
1405 <v.regno>: New field.
1406 (struct dwarf_expr_context) <mark>: New field.
1407 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1408 (dwarf_expr_pop, dwarf_expr_push): Remove.
1409 (dwarf_expr_push_address): Declare.
1410 * dwarf2expr.c (dwarf_arch_cookie): New global.
1411 (struct dwarf_gdbarch_types): New.
1412 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1414 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1416 (dwarf_expr_push_address): New function.
1417 (dwarf_expr_pop): Now static.
1418 (dwarf_expr_fetch): Change return type.
1419 (dwarf_require_integral): New function.
1420 (dwarf_expr_fetch): Simplify.
1421 (add_piece): Update.
1422 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1424 (execute_stack_op) <sign_ext>: Remove.
1425 Use values for DWARF stack.
1426 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1427 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1429 (_initialize_dwarf2expr): New function.
1430 (add_piece): Update.
1431 (new_dwarf_expr_context): Set new field.
1432 (free_dwarf_expr_context): Call value_free_to_mark.
1433 * dwarf2-frame.c (no_base_type): New function.
1434 (execute_stack_op): Set get_base_type field. Update.
1436 2011-05-12 Tom Tromey <tromey@redhat.com>
1438 * dwarf2read.c (read_common_block): Fix formatting.
1440 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1442 * breakpoint.c (disable_breakpoint): Disable all locations
1443 associated with a tracepoint on target if a trace experiment is
1445 (disable_command): Disable a specific tracepoint location on target if
1446 a trace experiment is running.
1447 (do_enable_breakpoint): Enable all locations associated with a
1448 tracepoint on target if a trace experiment is running.
1449 (enable_command) Enable a specific tracepoint location on target if a
1450 trace experiment is running.
1451 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1452 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1453 to_disable_tracepoint.
1454 * target.h: Add declaration of struct bp_location.
1455 (struct target_ops): Add new functions
1456 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1457 to_disable_tracepoint to target operations.
1458 (target_supports_enable_disable_tracepoint): New macro.
1459 (target_enable_tracepoint): New macro.
1460 (target_disable_tracepoint): New macro.
1461 * remote.c (struct remote_state): Add new field.
1462 (remote_enable_disable_tracepoint_feature): New.
1463 (remote_protocol_features): Add new entry.
1464 (remote_supports_enable_disable_tracepoint): New.
1465 (remote_enable_tracepoint): New.
1466 (remote_disable_tracepoint): New.
1467 (init_remote_ops): Add remote_enable_tracepoint,
1468 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1469 to remote operations.
1470 * tracepoint.c (start_tracing): Allow tracing to start without any
1471 tracepoints enabled with just a warning if they can be re-enabled
1473 * NEWS: Add news item for the new behaviour of the enable and disable
1474 GDB commands when applied to tracepoints.
1475 Add news items for the new remote packets QTEnable and QTDisable.
1477 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1479 * config.in: Regenerate.
1480 * configure: Regenerate.
1481 * configure.ac <--with-system-readline> (for readline_echoing_p):
1483 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1484 (tui_old_rl_echoing_p): ... here.
1485 (tui_setup_io): Rename extern declaration readline_echoing_p to
1486 _rl_echoing_p. Adjust assignments for the both renames.
1488 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1490 * symtab.c (lookup_symtab): Run cleanup before returning.
1492 2011-05-11 Tom Tromey <tromey@redhat.com>
1494 * dwarf2read.c (handle_data_member_location): New function.
1495 (dwarf2_add_field): Use it.
1496 (read_common_block): Likewise.
1498 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1500 Make addrs->SECTINDEX always defined.
1501 * symfile.c (relative_addr_info_to_section_offsets): Check for
1502 SECTINDEX -1, not for zero ADDR.
1503 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1504 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1505 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1508 2011-05-10 Doug Evans <dje@google.com>
1510 * linux-thread-db.c: Whitespace cleanup.
1511 (try_thread_db_load_1): Fix comment.
1513 * linux-thread-db.c (set_libthread_db_search_path): New function.
1514 (_initialize_thread_db): Add setter for libthread-db-search-path.
1516 2011-05-09 Doug Evans <dje@google.com>
1518 * NEWS: Mention --with-iconv-bin.
1519 * configure.ac: New option --with-iconv-bin.
1520 * configure: Regenerate.
1521 * config.in: Regenerate.
1522 * defs.h (relocate_gdb_directory): Declare.
1523 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1524 removed progname parameter, and exported. All callers updated.
1525 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1527 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1528 adding missing call to restore_child_signals_mask.
1530 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1532 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1534 * infrun.c (proceed, start_remote): Adjust.
1535 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1536 and adjust to not handle it.
1537 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1538 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1539 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1540 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1541 * windows-nat.c (do_initial_windows_stuff): Adjust.
1542 * infcmd.c (attach_command): Adjust.
1543 (notice_new_inferior): Adjust.
1545 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1547 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1548 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1549 * spu-tdep.c (op_selb): Use correct value.
1551 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1553 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1554 "parent" parameter to symbol_file_add_from_bfd call.
1556 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1557 Thiago Jung Bauermann <bauerman@br.ibm.com>
1559 Implement support for PowerPC BookE masked watchpoints.
1560 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1562 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1563 method. Initialize to NULL in all existing breakpoint_ops instances.
1564 (struct breakpoint) <hw_wp_mask>: New field.
1565 * breakpoint.c (is_masked_watchpoint): Add prototype.
1566 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1567 breakpoint's breakpoint_ops.works_in_software_mode if available.
1568 (watchpoints_triggered): Handle the case of a hardware masked
1570 (watchpoint_check): Likewise.
1571 (works_in_software_mode_watchpoint): New function.
1572 (insert_masked_watchpoint, remove_masked_watchpoint)
1573 (resources_needed_masked_watchpoint)
1574 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1575 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1576 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1578 (masked_watchpoint_breakpoint_ops): New structure.
1579 (watch_command_1): Check for the existence of the `mask' parameter.
1580 Set b->ops according to the type of hardware watchpoint being created.
1581 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1582 (ppc_linux_remove_mask_watchpoint)
1583 (ppc_linux_masked_watch_num_registers): New functions.
1584 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1585 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1586 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1587 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1588 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1589 (target_masked_watch_num_registers): New functions.
1590 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1591 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1593 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1594 (target_masked_watch_num_registers): Add prototypes.
1596 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1599 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1600 (producer_is_gcc_ge_4_0): New function.
1601 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1602 symtab->language code.
1603 (var_decode_location): Set cu->has_loclist.
1604 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1605 skip. Intialize force_skip from locations_valid. Move the prologue
1606 skipping code into two passes.
1607 * symtab.h (struct symtab): Make the primary field a bitfield. New
1608 field locations_valid.
1610 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1612 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1613 (classify_inner_name): Call cp_lookup_nested_type with
1615 * cp-namespace.c (cp_lookup_nested_type): New variable
1616 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1617 type_name_no_tag_or_error with saved_parent_type.
1618 * dwarf2read.c (load_partial_dies): Read in any children of
1619 DW_TAG_typedef with complaint in such case.
1620 * gdbtypes.c (type_name_no_tag_or_error): New function.
1621 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1622 * valops.c (destructor_name_p): New comment for parameter type. Remove
1623 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1624 * value.h (destructor_name_p): Remove type const.
1626 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1628 * symtab.c (compare_symbol_name): New function.
1629 (completion_list_add_name, expand_partial_symbol_name): Call it,
1630 remove the variable ncmp.
1631 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1634 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1636 Demote to sw watchpoint only in update_watchpoint.
1637 * breakpoint.c (update_watchpoint): Change between software and
1638 hardware watchpoint for all kinds of watchpoints, not just
1639 read/write ones. Determine b->exact value here instead of
1640 in watch_command_1. Error out if there are not enough resources
1641 for a read or access hardware watchpoint.
1642 (watch_command_1): Remove logic of checking whether there are
1643 enough resources available, since update_watchpoint will do that
1644 work now. Don't set b->exact here. Catch exceptions thrown by
1645 update_watchpoint and delete the watchpoint.
1646 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1647 Use target_exact_watchpoints instead.
1648 (delete_breakpoint): Notify observers only if deleted watchpoint
1649 has a breakpoint number assigned to it.
1651 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1653 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1655 2011-05-05 Jerome Guitton <guitton@adacore.com>
1657 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1659 (i386_stack_tramp_frame_unwind): New static global.
1660 (i386_match_pattern): New function, extracted from i386_match_insn.
1661 (i386_match_insn): Use i386_match_pattern.
1662 (i386_match_insn_block): New function.
1663 (i386_tramp_chain_in_reg_insns)
1664 (i386_tramp_chain_on_stack_insns): New static variables.
1665 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1668 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1670 * configure.host (xscale*): Don't handle target.
1671 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1674 2011-05-04 Yao Qi <yao@codesourcery.com>
1676 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1678 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1681 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1682 | * elfread.c (elf_symtab_read): Stop memory leak.
1684 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1686 * nto-tdep.c (nto_target): Replace deprecated call to
1687 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1689 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1691 Fix false GCC warning.
1692 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1694 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1696 * breakpoint.c (update_watchpoint): Move code to change
1697 the enable state of breakpoint from here ...
1698 (do_enable_breakpoint): ... to here.
1700 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1702 * valprint.c (val_print_array_elements): Fixed poor performance
1703 of printing very large arrays with repeat_count_threshold set
1704 to unlimited. New comment.
1706 2011-04-29 Tom Tromey <tromey@redhat.com>
1708 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1709 (mi_parse): Likewise.
1710 * breakpoint.c (break_range_command): Use sizeof char*, not
1712 (create_breakpoint): Likewise.
1713 (parse_breakpoint_sals): Likewise.
1715 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1717 * linux-nat.c (linux_child_remove_fork_catchpoint)
1718 (linux_child_remove_vfork_catchpoint)
1719 (linux_child_remove_exec_catchpoint): New functions.
1720 (linux_target_install_ops): Install them.
1722 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1726 * varobj.c (install_default_visualizer): Do not install a
1727 visualizer if the varobj is CPLUS_FAKE_CHILD.
1728 (construct_visualizer): Likewise.
1730 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1732 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1733 case insensitive comparison.
1735 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1737 * infrun.c (proceed): Revert previous change.
1738 (resume): Instead, handle the case of signal delivery while stepping
1739 off a breakpoint location here, and only if software single-stepping
1740 is used. Handle nested signals.
1742 2011-04-28 Yao Qi <yao@codesourcery.com>
1744 * arm-tdep.c (copy_unmodified): Rename to ...
1745 (arm_copy_unmodified): .. this. New.
1746 (copy_preload): Move common part to ...
1747 (install_preload): .. this. New.
1748 (arm_copy_preload): New.
1749 (copy_preload_reg): Move common part to ...
1750 (install_preload_reg): ... this. New.
1751 (arm_copy_preload_reg): New.
1752 (copy_b_bl_blx): Move common part to ...
1753 (install_b_bl_blx): .. this. New.
1754 (arm_copy_b_bl_blx): New.
1755 (copy_bx_blx_reg): Move common part to ...
1756 (install_bx_blx_reg): ... this. New.
1757 (arm_copy_bx_blx_reg): New.
1758 (copy_alu_reg): Move common part to ...
1759 (install_alu_reg): ... this. New.
1760 (arm_copy_alu_reg): New.
1761 (copy_alu_shifted_reg): Move common part to ...
1762 (install_alu_shifted_reg): ... this. New.
1763 (copy_ldr_str_ldrb_strb): Move common part to ...
1764 (install_ldr_str_ldrb_strb): ... this. New.
1765 (arm_copy_ldr_str_ldrb_strb): New.
1766 (copy_copro_load_store): Move some common part to ...
1767 (install_copy_copro_load_store): ... this. New.
1768 (arm_copy_copro_load_store): New.
1770 (arm_copy_svc): Renamed from copy_svc.
1771 (copy_undef): Delete.
1772 (arm_copy_undef): Renamed from copy_undef.
1773 (decode_ext_reg_ld_st): Delete.
1774 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1775 (decode_svc_copro): Delete.
1776 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1777 (copy_copro_load_store, copy_alu_imm): update callers.
1778 (copy_extra_ld_st, copy_block_xfer): Likewise.
1779 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1780 (decode_miscellaneous, decode_dp_misc): Likewise.
1781 (decode_ld_st_word_ubyte, decode_media): Likewise.
1782 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1783 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1784 (decode_unconditional, decode_miscellaneous): Likewise.
1785 (decode_media, decode_b_bl_ldmstm): Likewise.
1786 (arm_process_displaced_insn): Likewise..
1787 (decode_misc_memhint_neon): Delete.
1788 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1789 (decode_miscellaneous): Delete.
1790 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1791 (decode_dp_misc): Delete.
1792 (arm_decode_dp_misc): Renamed from decode_dp_misc.
1793 (decode_ld_st_word_ubyte): Delete.
1794 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1795 (decode_media): Delete.
1796 (arm_decode_media): Renamed from decode_media.
1797 (decode_b_bl_ldmstm): Delete.
1798 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1799 (decode_ext_reg_ld_st): Delete.
1800 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1801 (decode_unconditional): Delete.
1802 (arm_decode_unconditional): Renamed from decode_unconditional.
1804 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1806 Case insensitive lookups implementation.
1807 * dwarf2read.c: Include ctype.h.
1808 (struct mapped_index): New field version.
1809 (mapped_index_string_hash): New parameter index_version. New comment
1810 for it. Call tolower appropriately.
1811 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1812 Choose the right index version for mapped_index_string_hash.
1813 (dwarf2_read_index): Support also the index version 5. Initialize the
1814 new struct mapped_index field version.
1815 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1816 (find_slot): Explain the version needs. Pass INT_MAX for the new
1818 (write_psymtabs_to_index): Produce version 5.
1819 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1820 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
1821 * psymtab.c (lookup_partial_symbol): Find the
1822 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1824 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1826 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1827 (completion_list_add_name): New variable ncmp, initialize it, use it.
1828 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1829 * utils.c (strcmp_iw): Support case_sensitive_off.
1830 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1831 New function comment part. New variables saved_string1,
1832 saved_string2 and case_pass. Add a proper second pass.
1834 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1836 Replace re_comp/re_exec by regcomp/regexec.
1837 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1838 (search_symbols_name_matches): Use them, use regexec.
1839 (search_symbols): New variable retval_chain, adjust the use of
1840 old_chain against it. Replace re_comp by regcomp. Use the new struct
1841 search_symbols_data fields, use regexec instead of re_exec.
1843 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1845 Format the code for the next patch.
1846 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1847 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1848 New variables c1 and c2.
1850 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1852 * infrun.c (proceed): Do not single-step into signal delivery
1853 when stepping off a breakpoint location.
1854 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1855 (insert_step_resume_breakpoint_at_caller): Likewise.
1856 (insert_step_resume_breakpoint_at_sal): Likewise.
1857 (insert_longjmp_resume_breakpoint): Likewise.
1859 2011-04-27 Yao Qi <yao@codesourcery.com>
1861 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1863 2011-04-27 Joel Brobecker <brobecker@adacore.com>
1865 * procfs.c (procfs_pass_signals): Fix advance declaration.
1867 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1869 * target.h (struct target_ops): Remove to_notice_signals;
1870 add to_pass_signals.
1871 (target_notice_signals): Remove.
1872 (target_pass_signals): Add prototype.
1873 * target.c (update_current_target): Remove to_notice_signals;
1874 mention to_pass_signals.
1875 (target_pass_signals): New function.
1876 (debug_to_notice_signals): Remove.
1877 (setup_target_debug): Do not install debug_to_notice_signals.
1879 * infrun.c (signal_pass): New global.
1880 (resume): Call target_pass_signals.
1881 (handle_inferior_event): Report all signals while stepping over
1882 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1883 are re-inserted when stepping over a signal handler.
1884 (signal_cache_update): New function.
1885 (signal_stop_update): Call it.
1886 (signal_print_update): Likewise.
1887 (signal_pass_update): Likewise.
1888 (handle_command): Call signal_cache_update and target_pass_signals
1889 instead of target_notice_signals.
1890 (_initialize_infrun): Initialize signal_pass.
1892 * linux-nat.c (pass_mask): New global.
1893 (linux_nat_pass_signals): New function.
1894 (linux_nat_create_inferior): Report all signals initially.
1895 (linux_nat_attach): Likewise.
1896 (linux_nat_resume): Use pass_mask to decide whether to directly
1897 handle an inferior signal.
1898 (linux_nat_wait_1): Likewise.
1899 (linux_nat_add_target): Install to_pass_signals callback.
1901 * nto-procfs.c (notice_signals): Remove.
1902 (procfs_resume): Do not call notice_signals.
1903 (procfs_notice_signals): Remove.
1904 (procfs_pass_signals): New function.
1905 (init_procfs_ops): Install to_pass_signals callback instead of
1906 to_notice_signals callback.
1907 (_initialize_procfs): Report all signals initially.
1909 * procfs.c (procfs_notice_signals): Remove.
1910 (procfs_pass_signals): New function.
1911 (procfs_target): Install to_pass_signals callback instead of
1912 to_notice_signals callback.
1913 (register_gdb_signals): Remove.
1914 (procfs_debug_inferior): Report all signals initially.
1915 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1917 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1918 parameters; use them instead of calling signal_..._state routines.
1919 (remote_notice_signals): Remove.
1920 (remote_start_remote): Report all signals initially.
1921 (remote_resume): Do not call remote_pass_signals.
1922 (_initialize_remote): Install to_pass_signals callback instead of
1923 to_notice_signals callback.
1925 2011-04-27 Pedro Alves <pedro@codesourcery.com>
1927 * breakpoint.c (user_settable_breakpoint): Delete.
1928 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1929 (delete_command): Check user_breakpoint_p instead of looking at
1930 the breakpoint's type.
1931 (disable_command): Ditto.
1932 (enable_command): Ditto.
1933 (delete_trace_command): Use user_breakpoint_p instead of looking
1934 at the breakpoint number directly. When checking if there are
1935 user visible tracepoints, in order to know whether to ask the user
1936 for confirmation, check whether the breakpoint is actually a
1939 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1941 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1944 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1946 MI breakpoint notifications.
1948 * annotate.c (breakpoint_changed): Adjust parameter type.
1949 * breakpoint.c (set_breakpoint_condition): Adjust to change
1950 in breakpoint_modified type.
1951 (breakpoint_set_commands): Likewise.
1952 (do_map_commands_command): Likewise.
1953 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1954 changed after bumping hit count.
1955 (bpstat_stop_status): Likewise.
1956 (print_one_breakpoint_location): Don't wrap in tuple here.
1957 (print_one_breakpoint): Always print individual locations.
1958 For locations, use unnamed tuple.
1959 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1961 (create_catchpoint, create_syscall_event_catchpoint): Call
1962 breakpoint_created obsever.
1963 (mention): Don't call breakpoint_created observer.
1964 (create_breakpoint_sal): Call breakpoint_created observer.
1965 (create_breakpoint, watch_command_1): Likewise.
1966 (create_ada_exception_breakpoint): Likewise.
1967 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1968 (locations_are_equal): New.
1969 (update_breakpoint_locations): If locations were changed, notify.
1970 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1971 Call breakpoint_modified observer.
1973 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1974 (mi_cmd_break_insert): Don't set observers for modify and delete.
1975 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1976 (mi_breakpoint_created, mi_breakpoint_deleted)
1977 (mi_breakpoint_modified): New.
1978 (mi_interpreter_init): Hook the above.
1979 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1980 while -break-* commands are executing.
1981 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1982 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1984 (mi_ui_out_impl): Hook in mi_redirect.
1985 (mi_field_skip): True to the name, skip the field, don't output
1986 a field with an empty value.
1988 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1989 (gdbpy_breakpoint_deleted): Adjust.
1990 * tui/tui-hooks.c (tui_event_create_breakpoint)
1991 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1993 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1995 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1996 (procfs_remove_hw_watchpoint): Likewise.
1998 2011-04-26 Michael Walle <michael@walle.cc>
2000 * remote.c (remote_start_remote): Ack packet after sending the
2003 2011-04-26 Yao Qi <yao@codesourcery.com>
2005 * linux-nat.c: Move common macros to ...
2006 Include linux-ptrace.h.
2007 * common/linux-ptrace.h: ... here. New.
2009 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2011 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2012 !objfile_has_partial_symbols. New comment.
2013 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2014 SYM_READ_PSYMBOLS is not present. Extend the comment.
2015 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2017 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2019 * defs.h (ENUM_BITFIELD): Remove.
2021 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2022 Eli Zaretskii <eliz@gnu.org>
2024 * NEWS: Document the new gdbserver --once option.
2026 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2028 * MAINTAINERS: Update my email address.
2030 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2032 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2033 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2034 function call if __STDC_ISO_10646__ macro is defined.
2035 (intermediate_encoding): New prototype.
2036 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2037 to generate compile time error for unsupported gdb_wchar_t size.
2038 (ENDIAN_SUFFIX): New macro.
2039 (intermediate_encoding): New function.
2041 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2043 * ada-lang.c (struct add_partial_datum): Update the comment for
2044 expand_partial_symbol_name.
2045 (ada_add_partial_symbol_completions): Rename to ...
2046 (ada_expand_partial_symbol_name): ... here, change return type, update
2047 function comment, call symbol_completion_match instead of
2048 symbol_completion_add.
2049 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2050 and ada_expand_partial_symbol_name.
2051 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2053 (dw2_map_symbol_names): Remove.
2054 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2055 * psymtab.c (map_symbol_names_psymtab): Remove.
2056 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2057 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2059 (psym_functions): Unlist map_symbol_names_psymtab.
2060 (map_partial_symbol_names): Rename to ...
2061 (expand_partial_symbol_names): ... here, change the FUN type, call
2062 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2063 * psymtab.h (map_partial_symbol_names): Rename to ...
2064 (expand_partial_symbol_names): ... here, change the FUN type.
2065 * symfile.h (struct quick_symbol_functions): Update the description of
2066 expand_symtabs_matching. Remove map_symbol_names.
2067 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2068 (struct add_name_data): Update the comment for
2069 expand_partial_symbol_name.
2070 (add_partial_symbol_name): Rename to ...
2071 (expand_partial_symbol_name): ... here. Replace
2072 completion_list_add_name call by strncmp.
2073 (default_make_symbol_completion_list_break_on): Use now
2074 expand_partial_symbol_names and expand_partial_symbol_name.
2075 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2077 2011-04-20 Tom Tromey <tromey@redhat.com>
2079 * dwarf2read.c (save_gdb_index_command): Replace format
2080 documentation with a pointer to the manual.
2082 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2084 * regcache.c: Include remote.h.
2085 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2086 (regcache_dump): Handle regcache_dump_remote.
2087 (maintenance_print_remote_registers): New function.
2088 (_initialize_regcache): Install "maint print remote-registers"
2090 * remote.c (map_regcache_remote_table): New function, factored out
2092 (init_remote_state): ... here.
2093 (remote_register_number_and_offset): New.
2094 * remote.h (remote_register_number_and_offset): Declare.
2096 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2098 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2099 null_ptid, assume and allow a NULL address space, instead of
2100 asking the target for the ptid's address space.
2101 * infrun.c (ptid_is_pid): Remove assertion.
2103 2011-04-19 Tom Tromey <tromey@redhat.com>
2105 * windows-tdep.c (windows_xfer_shared_library):
2106 * windows-nat.c (get_module_name, windows_make_so):
2107 * v850-tdep.c (v850_handle_pushm):
2108 * utils.c (null_cleanup, gdb_realpath):
2109 * ui-out.c (get_next_header):
2110 * tracepoint.c (clear_traceframe_info):
2111 * symtab.c (lookup_symtab):
2112 * serial.h (struct serial_ops):
2113 * mipsread.c (read_alphacoff_dynamic_symtab):
2114 * infcmd.c (print_return_value):
2115 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2116 * f-exp.y (parse_number):
2117 * exceptions.c (catch_exceptions):
2118 * dummy-frame.c (dummy_frame_this_id):
2119 * defs.h (struct cleanup):
2120 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2121 * arm-tdep.c (arm_push_dummy_call):
2122 * amd64-tdep.h (amd64_collect_xsave):
2123 * amd64-tdep.c (amd64_collect_xsave):
2124 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2125 * README (typing): Remove duplicate words.
2126 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2127 * infrun.c (siginfo_value_read): Fix typo.
2128 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2129 * top.c (source_line_number): Add comma.
2131 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2133 * thread.c (any_live_thread_of_process): Prioritize threads
2134 that are not executing.
2135 * gdbthread.h (any_live_thread_of_process): Update comment
2136 as per above change.
2138 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2140 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2141 (scan_xcoff_symtab): Likewise.
2143 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2145 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2148 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2149 Pedro Alves <pedro@codesourcery.com>
2151 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2152 variables to simplify code and avoid == operator at end of
2153 line as this is against GNU coding standards.
2155 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2157 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2158 lm_name to name_lm to avoid conflict with lm_name function.
2160 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2162 ARI fixes: Use only lowercase function name for static functions.
2163 * nto-tdep.c (LM_ADDR): Rename to...
2164 (lm_addr): New function name.
2165 (nto_relocate_section_addresses): Adapt to change above.
2166 * solib-sunos.c (LM_ADDR): Rename to...
2167 (lm_addr): New function name.
2168 (LM_NEXT): Rename to...
2169 (lm_next): New function name.
2170 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2171 function name changes above.
2172 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2173 (lm_addr_from_link_map): New function name.
2174 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2175 (has_lm_dynamic_from_link_map): New function name.
2176 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2177 (lm_dynamic_from_link_map): New function name.
2178 (LM_ADDR_CHECK): Rename to...
2179 (lm_addr_check): New function name.
2180 (LM_NEXT): Rename to...
2181 (lm_next): New function name.
2182 (LM_PREV): Rename to...
2183 (lm_prev): New function name.
2184 (LM_NAME): Rename to...
2185 (lm_name): New function name.
2186 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2187 (ignore_first_link_map_entry): New function name.
2188 (svr4_keep_data_in_core): Adapt to function name changes above.
2189 (svr4_current_sos): Likewise.
2190 (enable_break): Likewise.
2191 (svr4_relocate_section_addresses): Likewise.
2193 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2196 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2197 sprintf. Simplify code and avoid loosing memory.
2198 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2199 (call0_frame_cache): Remove && operator from end of line.
2201 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2203 Fix libraries displacement if they change whether they were prelinked.
2204 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2205 does not match. Comment why.
2207 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2209 * corelow.c: Include wrapper.h.
2210 (core_open): Call now gdb_target_find_new_threads.
2211 * wrapper.c: Include target.h.
2212 (gdb_target_find_new_threads): New.
2213 * wrapper.h (gdb_target_find_new_threads): New declaration.
2215 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2217 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2218 even if !TARGET_HAS_EXECUTION.
2220 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2222 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2223 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2224 bfd_get_synthetic_symtab.
2225 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2226 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2227 parameter parent, remove the call to add_separate_debug_objfile.
2228 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2229 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2230 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2231 parent, new comment for it, call add_separate_debug_objfile for it.
2232 (symbol_file_add_separate): Pass objfile as the parameter parent,
2233 remove the call to add_separate_debug_objfile.
2234 (symbol_file_add_from_bfd): New parameter parent, pass it.
2235 (symbol_file_add): Pass NULL to the new parameter parent.
2236 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2238 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2240 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2243 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2245 Fix Python access to inlined frames.
2246 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2247 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2249 2011-04-15 Tom Tromey <tromey@redhat.com>
2251 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2253 2011-04-15 Gary Benson <gbenson@redhat.com>
2255 * MAINTAINERS: Add myself to write-after-approval section.
2257 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2259 * remote-sim.c (sim_command_completer): New function.
2260 (_initialize_remote_sim): Set completer to sim_command_completer.
2262 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2264 * breakpoint.c (print_exception_catchpoint): Rename to ...
2265 (print_it_exception_catchpoint): ... this.
2266 (gnu_v3_exception_catchpoint_ops): Update with new name
2267 for print_it_exception_catchpoint.
2269 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2271 * MAINTAINERS: Add myself for write after approval privileges.
2273 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2275 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2277 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2279 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2281 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2283 * breakpoint.c (save_breakpoints): Verify whether
2284 breakpoint_ops.print_recreate is defined before calling it.
2286 2011-04-11 Gary Benson <gbenson@redhat.com>
2288 Fix failure with --enable-maintainer-mode.
2289 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2291 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2294 * symtab.c (search_symbols): Reorder the KIND description in the
2295 function comment. Remove the unused 4th element of types, types2,
2296 types3 and types4. New gdb_assert on KIND.
2297 (symtab_symbol_info): Remove the unused 4th element of classnames.
2298 New gdb_assert on KIND.
2299 * symtab.h (enum search_domain): New warning in the enum comment.
2300 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2303 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2305 Fix crash of gdb save-index on a STABS file.
2306 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2309 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2311 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2312 * dwarf2read.c: Include ctype.h.
2313 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2315 (dwarf2_add_field): Fix new_field->accessibility by calling
2316 dwarf2_default_access_attribute. Restructure setting accessibility
2318 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2319 is_private and is_protected by calling
2320 dwarf2_default_access_attribute.
2322 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2324 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2325 to the initialization.
2327 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2329 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2332 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2334 Remove support for old Cygwin 1.5 versions.
2335 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2336 function on old Cygwin version.
2337 * windows-nat.c: Remove cygwin version check and always define
2338 __USEWIDE for Cygwin compilation.
2340 2011-04-07 Yao Qi <yao@codesourcery.com>
2342 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2344 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2345 (arm_copy_svc): Remove parameters INSN and TO.
2346 (decode_svc_copro): Update caller.
2347 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2348 from function pointer `copy_svc_os'.
2350 2011-04-07 Yao Qi <yao@codesourcery.com>
2352 * arm-tdep.c (cleanup_branch): Set a correct return address in
2353 LR for ARM and Thumb.
2355 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2358 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2359 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2360 in the function comment, a new note on values compatibility.
2361 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2362 * symtab.h (SYMBOL_HASH_NEXT): New.
2364 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2366 * ppc-linux-nat.c (check_condition): Add len output parameter.
2367 Set it based on the memory region referenced in the condition
2368 expression. Update all callers.
2370 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2372 Fix crash regression on systems featuring .gdb_index.
2373 * objfiles.c (free_objfile): Move the
2374 forget_cached_source_info_for_objfile call earlier. Comment it.
2375 Extend the comment for objfile_free_data.
2377 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2379 Fix regression of displaying the debug format.
2380 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2383 2011-04-04 Tom Tromey <tromey@redhat.com>
2385 * cli/cli-interp.c (struct captured_execute_command_args):
2387 (do_captured_execute_command): Remove.
2388 (safe_execute_command): Use TRY_CATCH.
2389 * cli/cli-script.c (struct wrapped_read_command_file_args):
2391 (wrapped_read_command_file): Remove.
2392 (script_from_file): Use TRY_CATCH.
2393 * exceptions.c (catch_exception): Remove.
2394 * exceptions.h (catch_exception): Remove.
2395 (deprecated_throw_reason): Update comment.
2396 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2397 argument to 'context'.
2398 (mi_execute_command): Use TRY_CATCH.
2399 * remote.c (struct start_remote_args): Remove.
2400 (remote_start_remote): Update; change arguments.
2401 (remote_open_1): Use TRY_CATCH.
2403 2011-04-04 Tom Tromey <tromey@redhat.com>
2405 * tracepoint.c (scope_info): Update.
2406 * symtab.c (decode_line_spec): Update.
2407 * python/python.c (gdbpy_decode_line): Update.
2408 * linespec.h (decode_line_1): Update.
2409 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2410 (decode_compound, find_method, symtab_from_filename)
2411 (decode_variable): Likewise.
2412 * cli/cli-cmds.c (edit_command): Update.
2413 (list_command): Update.
2414 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2416 (create_breakpoint): Update.
2417 (until_break_command): Update.
2418 (addr_string_to_sals): Update.
2419 (decode_line_spec_1): Update.
2421 2011-04-04 Tom Tromey <tromey@redhat.com>
2423 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2424 (do_captured_parse_breakpoint): Remove.
2425 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2426 Use TRY_CATCH directly.
2428 2011-04-04 Tom Tromey <tromey@redhat.com>
2430 * symtab.h (free_symtab): Remove.
2431 (forget_cached_source_info_for_objfile): Declare.
2432 * symmisc.c (free_symtab): Remove.
2433 * source.c (forget_cached_source_info_for_objfile): New function.
2434 (forget_cached_source_info): Use it.
2435 * objfiles.c (free_objfile): Simplify check before calling
2436 clear_current_source_symtab_and_line. Call
2437 forget_cached_source_info_for_objfile.
2439 2011-04-04 Tom Tromey <tromey@redhat.com>
2441 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2442 (new_symtab): Don't set `free_code' on symtab.
2443 (new_linetable): Properly handle size==0.
2444 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2445 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2447 * jv-lang.c (struct jv_per_objfile_data): New.
2448 (jv_per_objfile_free): Free the data.
2449 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2450 (get_java_class_symtab): Set the `dict' field on the
2451 jv_per_objfile_data.
2452 (free_class_block): Remove.
2453 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2456 2011-04-04 Tom Tromey <tromey@redhat.com>
2458 * symfile.c (reread_symbols): Update.
2459 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2461 * objfiles.c (allocate_objfile): Update.
2462 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2464 * cp-namespace.c (lookup_symbol_file): Don't call
2465 lookup_possible_namespace_symbol.
2466 (initialize_namespace_symtab, get_possible_namespace_block)
2467 (free_namespace_block, cp_check_possible_namespace_symbols)
2468 (check_possible_namespace_symbols_loop)
2469 (check_one_possible_namespace_symbol)
2470 (lookup_possible_namespace_symbol): Remove.
2471 (maintenance_cplus_namespace): Replace with notice.
2472 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2474 2011-04-04 Tom Tromey <tromey@redhat.com>
2476 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2477 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2478 * symmisc.c (free_symtab): Don't free debugformat.
2479 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2480 (record_debugformat, record_producer): Document.
2481 * buildsym.c (end_symtab): Don't save debugformat and producer
2483 (end_symtab): Don't free debugformat and producer fields.
2484 (record_debugformat): Don't call xstrdup.
2485 (record_producer): Likewise.
2487 2011-04-04 Tom Tromey <tromey@redhat.com>
2489 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2490 (source_line_charpos, source_charpos_line): Remove.
2492 2011-04-04 Tom Tromey <tromey@redhat.com>
2494 * symtab.h (domain_enum): Split in two...
2495 (enum search_domain): New.
2496 (search_symbols): Update.
2497 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2498 redundant declarations.
2499 (search_symbols): Change 'kind' argument to search_domain.
2501 (print_symbol_info): Likewise.
2502 (symtab_symbol_info): Likewise.
2503 * symfile.h (struct quick_symbol_functions)
2504 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2505 <expand_symtabs_matching>: Likewise.
2506 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2507 (expand_symtabs_matching_via_partial): Update.
2508 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2509 (dw2_expand_symtabs_for_function): Update.
2510 * block.h: Moved anonymous enum...
2511 * defs.h (enum block_enum): ... here. Now named.
2513 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2515 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2516 * version.in: Bump version to 7.3.50.20110403-cvs.
2518 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2520 * NEWS: Create a new section for the next release branch.
2521 Rename the section of the current branch, now that it has
2524 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2526 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2527 for "fpscr" in target description.
2529 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2531 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2532 initialize it. Delay HASH initialization. Strip the part after open
2533 parenthesis for languages with qualifiers. Call do_cleanups.
2535 2011-04-01 Tom Tromey <tromey@redhat.com>
2537 * utils.c (report_command_stats): Don't print `-' for negative
2540 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2542 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2543 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2546 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2548 * breakpoint.h (bpdisp_text): Add declaration.
2549 * breakpoint.c (bpdisp_text): Make non-static.
2550 * ada-lang.c: #include "mi/mi-common.h".
2551 (print_it_exception): Rewrite to improve GDB/MI output.
2553 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2555 * arm-tdep.h (struct address_space): Add forward declaration.
2557 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2559 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2560 * arm-tdep.c (arm_override_mode): New global.
2561 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2562 execution mode heuristics.
2563 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2564 second single-step breakpoint if needed, using
2565 arm_insert_single_step_breakpoint.
2566 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2567 ARM execution mode, do not call thumb_get_next_pc_raw.
2568 (arm_get_next_pc): Encode execution mode in return value. Call
2569 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2570 (arm_insert_single_step_breakpoint): New function.
2571 (arm_software_single_step): Call it.
2572 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2573 argument to return execution mode of sigreturn target.
2574 (arm_linux_syscall_next_pc): Use it.
2575 (arm_linux_copy_svc): Update call.
2576 (arm_linux_software_single_step): Call
2577 arm_insert_single_step_breakpoint.
2579 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2581 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2584 2011-03-31 Tom Tromey <tromey@redhat.com>
2586 * varobj.c (update_dynamic_varobj_children): Properly handle
2587 errors from iterator.
2589 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2591 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2592 struct linkage name twice.
2594 2011-03-31 Tom Tromey <tromey@redhat.com>
2596 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2597 missing ">" to message.
2599 2011-03-31 Tom Tromey <tromey@redhat.com>
2601 * varobj.c (instantiate_pretty_printer): Remove duplicate
2604 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2606 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2607 if neither saved value nor register available (e.g. signal frame).
2609 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2611 * macroexp.c (expand): Avoid uninitialized variable
2614 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2616 * breakpoint.c (break_range_command): Fix typo in comment.
2618 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2619 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2621 Implement support for PowerPC BookE ranged breakpoints.
2622 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2623 * breakpoint.h (struct bp_target_info) <length>: New member
2625 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2626 instead of struct breakpoint as argument, and also add ASPACE
2627 and BP_ADDR arguments. Update all callers.
2628 (struct breakpoint_ops) <print_one_detail>: New method.
2629 (struct breakpoint) <addr_string_range_end>: New member variable.
2630 * breakpoint.c (breakpoint_location_address_match): Add function
2632 (insert_bp_location): Set bl->target_info.length.
2633 (breakpoint_here_p): Call breakpoint_location_address_match.
2634 (moribund_breakpoint_here_p): Likewise.
2635 (regular_breakpoint_inserted_here_p): Likewise.
2636 (breakpoint_thread_match): Likewise.
2637 (bpstat_stop_status): Likewise.
2638 (bpstat_check_location): Move call to
2639 breakpoint_ops.breakpoint_hit to the top.
2640 (print_one_breakpoint_location): Call
2641 breakpoint_ops.print_one_detail if available.
2642 (breakpoint_address_match_range): New function.
2643 (breakpoint_location_address_match): Likewise.
2644 (breakpoint_locations_match): Compare the length field of the
2646 (hw_breakpoint_used_count): Count resources used by all locations
2647 in a breakpoint, and use breakpoint_ops.resources_needed if
2649 (breakpoint_hit_ranged_breakpoint): New function.
2650 (resources_needed_ranged_breakpoint): Likewise.
2651 (print_it_ranged_breakpoint): Likewise.
2652 (print_one_ranged_breakpoint): Likewise.
2653 (print_one_detail_ranged_breakpoint): Likewise.
2654 (print_mention_ranged_breakpoint): Likewise.
2655 (print_recreate_ranged_breakpoint): Likewise.
2656 (ranged_breakpoint_ops): New structure.
2657 (find_breakpoint_range_end): New function.
2658 (break_range_command): Likewise.
2659 (delete_breakpoint): Free addr_string_range_end.
2660 (update_breakpoint_locations): Add SALS_END argument. Update
2661 all callers. Calculate breakpoint length if a non-zero SALS_END
2662 is given. Call breakpoint_locations_match instead of
2663 breakpoint_address_match.
2664 (reset_breakpoint): Find SaL of the end of the range if B is a
2666 (_initialize_breakpoint): Register break-range command.
2667 * defs.h (print_core_address): Add function prototype.
2668 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2670 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2671 (ppc_linux_remove_hw_breakpoint): Likewise.
2672 (_initialize_ppc_linux_nat): Initialize
2673 to_ranged_break_num_registers.
2674 * target.c (update_current_target): Add comment about
2675 to_ranged_break_num_registers.
2676 (target_ranged_break_num_registers): New function.
2677 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2679 (target_ranged_break_num_registers): Add function prototype.
2680 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2681 * utils.c (print_core_address): ... here.
2683 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2685 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2686 variable compiler warning.
2688 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2690 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2692 (re_set_breakpoint): ... to here ...
2693 (addr_string_to_sals): ... and here.
2695 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2697 * Makefile.in (SFILES): Add missing C sources.
2698 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2699 Add missing headers.
2701 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2703 * .gitignore: New file.
2705 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2707 * NEWS: Mention new cfi device simulation.
2709 2011-03-29 Tom Tromey <tromey@redhat.com>
2711 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2712 otherwise anonymous types.
2713 (dwarf2_name): Likewise.
2714 * valops.c (value_struct_elt_for_reference): Refine artificial
2715 type logic. Call error if j==-1.
2717 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2719 Fix false GCC warning.
2720 * infcall.c (find_function_addr): Initialize funaddr.
2722 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2724 Fix mingw compilation with --enable-targets=all.
2725 * remote-mips.c (gdb_usleep.h): Include header.
2726 (mips_enter_debug): Use gdb_usleep instead of sleep.
2728 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2730 Support resolution of STT_GNU_IFUNC via breakpoints.
2731 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2732 bp_gnu_ifunc_resolver_return.
2733 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2734 the loop. Support bp_gnu_ifunc_resolver and
2735 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2736 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2738 (bptype_string, print_one_breakpoint_location): Support
2739 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2740 (user_settable_breakpoint): Return true also for
2741 bp_gnu_ifunc_resolver.
2742 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2743 bp_gnu_ifunc_resolver_return.
2744 (set_breakpoint_location_function): New parameter explicit_loc,
2745 describe it. Call find_pc_partial_function_gnu_ifunc with new
2746 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2747 EXPLICIT_LOC is not set.
2748 (set_raw_breakpoint): Set EXPLICIT_LOC for
2749 set_breakpoint_location_function.
2750 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2751 set_breakpoint_location_function.
2752 (mention): Support bp_gnu_ifunc_resolver and
2753 bp_gnu_ifunc_resolver_return.
2754 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2755 set_breakpoint_location_function.
2756 (update_breakpoint_locations): Remove static.
2757 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2758 bp_gnu_ifunc_resolver_return.
2759 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2760 bp_gnu_ifunc_resolver_return.
2761 (update_breakpoint_locations): New declaration.
2762 * elfread.c: Include gdbthread.h and regcache.h.
2763 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2765 (elf_gnu_ifunc_fns): Install them.
2766 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2767 (stub_gnu_ifunc_resolver_return_stop): New functions.
2768 (stub_gnu_ifunc_fns): Install them.
2769 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2770 and gnu_ifunc_resolver_return_stop.
2771 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2773 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2775 STT_GNU_IFUNC reader implementation.
2776 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2777 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2778 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2779 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2780 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2781 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2782 (elf_gnu_ifunc_resolve_addr): New.
2783 (elf_symfile_read): Call elf_rel_plt_read.
2784 (elf_gnu_ifunc_fns): New.
2785 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2786 Install elf_gnu_ifunc_fns.
2787 * infcall.c (find_function_return_type): New function.
2788 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2789 * minsyms.c (stub_gnu_ifunc_resolve_addr)
2790 (stub_gnu_ifunc_resolve_name): New functions.
2791 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2792 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2793 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2795 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2797 Code cleanup for later STT_GNU_IFUNC support.
2798 * infcall.c (find_function_addr): Remove variable code, use explicit
2799 dereferences for it. Move VALUE_TYPE initialization later.
2801 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2803 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2804 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2805 (clear_pc_function_cache): Clear it.
2806 (find_pc_partial_function): Rename to ...
2807 (find_pc_partial_function_gnu_ifunc): ... this function. New
2808 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2809 (find_pc_partial_function): New wrapper for this function.
2810 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2812 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2814 GDB internal type support for STT_GNU_IFUNC.
2815 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2816 (elf_symtab_read): Set mst_text_gnu_ifunc for
2817 BSF_GNU_INDIRECT_FUNCTION.
2818 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2819 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2820 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2821 nodebug_got_plt_symbol.
2822 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2823 (TYPE_GNU_IFUNC): New.
2824 (struct main_type): New field flag_gnu_ifunc.
2825 (struct builtin_type): New field builtin_func_func.
2826 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2827 nodebug_got_plt_symbol.
2828 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2829 (in_gnu_ifunc_stub): New.
2830 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2832 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2833 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2834 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2836 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2837 * symtab.c (search_symbols): Likewise.
2838 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2839 and mst_slot_got_plt.
2840 (in_gnu_ifunc_stub): New declaration.
2842 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2844 Support a ring of related breakpoints.
2845 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2846 other functions, add gdb_assert.
2847 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2848 watchpoint_del_at_next_stop.
2849 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2850 (bpstat_stop_status): Handle ring in related_breakpoint.
2851 (set_raw_breakpoint_without_location): Initialize ring in
2853 (delete_breakpoint): Handle ring in related_breakpoint, use
2854 watchpoint_del_at_next_stop.
2855 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2857 2011-03-28 Tom Tromey <tromey@redhat.com>
2860 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2861 with `language_minimal'.
2863 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
2865 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2866 instead of checking for STT_ARM_TFUNC symbol type.
2868 2011-03-25 Tom Tromey <tromey@redhat.com>
2870 * linespec.c (symbol_found): Restore line-based result for
2871 non-LOC_LABEL symbols.
2873 2011-03-25 Kai Tietz <ktietz@redhat.com>
2875 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2876 instead of strcmp for comparison.
2877 (tui_source_is_displayed): Likewise.
2878 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2880 2011-03-24 Mark Wielaard <mjw@redhat.com>
2882 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2884 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2885 (find_partial_die_in_comp_unit): Likewise in comment.
2886 (read_attribute_value): Likewise.
2887 (lookup_die_type): Likewise.
2888 (dwarf_form_name): Likewise.
2889 (dump_die_shallow): Likewise.
2890 (follow_die_ref_or_sig): Likewise.
2892 2011-03-24 Tom Tromey <tromey@redhat.com>
2894 PR breakpoints/11816:
2895 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2896 (decode_compound): Update.
2897 (find_function_symbol): New function.
2898 (decode_dollar): Update.
2899 (decode_label): Add 'function_symbol' parameter. Handle
2900 function-relative labels.
2901 (decode_variable): Update.
2902 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2903 not its line. Set `special_display' and canonical name for
2906 2011-03-24 Tom Tromey <tromey@redhat.com>
2908 * linespec.h (struct linespec_result) <special_display>: New
2910 * breakpoint.h (struct breakpoint) <display_canonical>: New
2912 * breakpoint.c (print_breakpoint_location): Respect
2914 (create_breakpoint_sal): Add 'display_canonical' parameter.
2915 (create_breakpoints_sal): Update.
2916 (create_breakpoint): Update.
2918 2011-03-24 Tom Tromey <tromey@redhat.com>
2920 * symtab.c (decode_line_spec): Update.
2921 * linespec.c (build_canonical_line_spec): Change type of
2923 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2924 (find_method, decode_all_digits, decode_dollar, decode_label)
2925 (symbol_found): Likewise.
2926 (init_linespec_result): New function.
2927 * breakpoint.c (struct captured_parse_breakpoint_args)
2928 <canonical_p>: New field, replaces addr_string_p.
2929 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2931 (parse_breakpoint_sals): Likewise.
2932 (do_captured_parse_breakpoint): Update.
2933 (create_breakpoint): Use struct linespec_result.
2934 (until_break_command): Update.
2935 (breakpoint_re_set_one): Update.
2936 (decode_line_spec_1): Update.
2937 * linespec.h (struct linespec_result): New.
2938 (init_linespec_result): Declare.
2940 2011-03-23 Pedro Alves <pedro@codesourcery.com>
2942 * regcache.c (regcache_raw_read): If the target didn't supply a
2943 given raw register, mark it as unavailable.
2945 2011-03-23 Kai Tietz <ktietz@redhat.com>
2947 * breakpoint.c (clear_command): Use filename_cmp
2948 instead of strcmp for comparison.
2949 * buildsym.c (watch_main_source_file_lossage): Likewise.
2950 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2951 checking just for slash.
2952 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2953 strrchr and filename_cmp instead of strcmp for filenames.
2954 (add_old_header_file): Use filename_cmp
2955 instead of strcmp for comparison.
2956 * exec.c (exec_set_section_address): Likewise.
2957 * macrotab.c (macro_lookup_inclusion): Likewise.
2958 (macro_lookup_inclusion): Likewise.
2959 * elfread.c (_initialize_elfread): Likewise.
2960 (elfstab_offset_sections): Likewise.
2961 (elfstab_offset_sections): Use lbasename instead of
2963 * mdebugread.c (parse_partial_symbols): Likewise.
2964 (arse_partial_symbols): Use filename_(n)cmp instead of
2965 str(n)cmp for comparison.
2966 * minsyms.c (lookup_minimal_symbol): Likewise.
2967 * psymtab.c (read_psymtabs_with_filename): Likewise.
2968 * solib.c (solib_read_symbols): Likewise.
2969 (reload_shared_libraries_1): Likewise.
2970 * symmisc.c (maintenance_print_symbols): Likewise.
2971 * symfile.c (separate_debug_file_exists): Likewise.
2972 (reread_symbols): Likewise.
2973 (find_separate_debug_file_by_debuglink): Likewise.
2974 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2975 * source.c (add_path): Likewise.
2976 * symtab.c (filename_seen): Likewise.
2977 (file_matches): Likewise.
2978 (print_symbol_info): Likewise.
2979 (maybe_add_partial_symtab_filename): Likewise.
2980 (make_source_files_completion_list): Likewise.
2981 * xml-syscall.c (init_sysinfo): Likewise.
2982 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2983 IS_DIR_SEPARATOR for checking for trailing path separator.
2985 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2987 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2988 label abort_expression.
2989 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2990 DWARF_VALUE_OPTIMIZED_OUT.
2992 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2995 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2996 to linkage_name. Invert its value. Update the function comment.
2997 (c_type_print_varspec_suffix): Invert it at the caller.
2998 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3000 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3002 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3003 errors when reading the `stop_pc'.
3004 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3007 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3009 * NEWS: Document gdb.Write stream keyword.
3011 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3014 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3015 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3016 (dwarf2_add_field): Fix new_field->accessibility for
3017 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3019 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3023 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3024 other error classes. Do not print stack trace.
3026 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3028 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3029 (dwarf2_add_field): Fix new_field->accessibility for
3030 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3032 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3034 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3035 encountering a load via a non-SP register.
3037 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3039 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3040 field in returned unwinder.
3042 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3044 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3046 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3048 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3051 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3053 * frame.c (frame_unwind_register): Throw an error if unwinding the
3055 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3056 an unwind stop reason.
3057 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3058 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3059 UNWIND_UNAVAILABLE>: New.
3060 * inline-frame.c (inline_frame_unwind): Install
3061 default_frame_unwind_stop_reason.
3062 * frame-unwind.c: Include "exceptions.h".
3063 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3064 (default_frame_unwind_stop_reason): New.
3065 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3066 (default_frame_unwind_stop_reason): Declare.
3067 (struct frame_unwind) <stop_reason>: New function pointer.
3069 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3070 * dwarf2-frame.c: Include exceptions.h.
3071 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3072 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3073 computing the CFA. If such an error was thrown, set
3074 unavailable_retaddr.
3075 (dwarf2_frame_unwind_stop_reason): New.
3076 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3078 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3079 (dwarf2_signal_frame_unwind): Ditto.
3081 * amd64-tdep.c: Include "exceptions.h".
3082 (struct amd64_frame_cache): New field "base_p".
3083 (amd64_init_frame_cache): Clear it.
3084 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3085 Avoid reading registers with functions that throw if the register
3086 is not necessary to compute the frame base.
3087 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3088 swallowing NOT_AVAILABLE_ERROR.
3089 (amd64_frame_unwind_stop_reason): New.
3090 (amd64_frame_this_id): Don't build a frame id if the frame base
3092 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3093 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3094 base_p if the frame base was computable.
3095 (amd64_sigtramp_frame_unwind_stop_reason): New.
3096 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3097 frame base was unavailable.
3098 (amd64_sigtramp_frame_unwind): Install
3099 amd64_sigtramp_frame_unwind_stop_reason.
3100 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3101 base_p if the frame base was computable.
3102 (amd64_epilogue_frame_unwind_stop_reason): New.
3103 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3104 frame base was unavailable.
3105 (amd64_epilogue_frame_unwind): Install
3106 amd64_epilogue_frame_unwind_stop_reason.
3107 * i386-tdep.c: Include "exceptions.h".
3108 (struct i386_frame_cache): New field "base_p".
3109 (i386_init_frame_cache): Clear it.
3110 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3111 Avoid reading registers with functions that throw if the register
3112 is not necessary to compute the frame base.
3113 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3114 swallowing NOT_AVAILABLE_ERROR.
3115 (i386_frame_unwind_stop_reason): New.
3116 (i386_frame_this_id): Don't build a frame id if the frame base was
3118 (i386_frame_prev_register): Handle unavailable SP.
3119 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3120 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3121 base_p if the frame base was computable.
3122 (i386_epilogue_frame_unwind_stop_reason): New.
3123 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3124 base was unavailable.
3125 (i386_epilogue_frame_unwind): Install
3126 i386_epilogue_frame_unwind_stop_reason.
3127 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3128 base_p if the frame base was computable.
3129 (i386_sigtramp_frame_unwind_stop_reason): New.
3130 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3131 base was unavailable.
3132 (i386_sigtramp_frame_unwind): Install
3133 i386_sigtramp_frame_unwind_stop_reason.
3134 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3135 type's size, not the register's.
3136 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3138 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3139 default_frame_unwind_stop_reason.
3140 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3141 (alpha_heuristic_frame_unwind): Ditto.
3142 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3143 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3144 * avr-tdep.c (avr_frame_unwind): Ditto.
3145 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3147 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3148 * frv-tdep.c (frv_frame_unwind): Ditto.
3149 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3150 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3151 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3152 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3153 (hppa_stub_frame_unwind): Ditto.
3154 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3155 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3156 (ia64_libunwind_frame_unwind)
3157 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3158 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3159 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3160 * m32c-tdep.c (m32c_unwind): Ditto.
3161 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3162 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3163 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3164 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3165 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3166 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3167 * mep-tdep.c (mep_frame_unwind): Ditto.
3168 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3169 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3170 (mips_stub_frame_unwind): Ditto.
3171 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3172 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3173 * mt-tdep.c (mt_frame_unwind): Ditto.
3174 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3175 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3176 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3177 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3178 (s390_sigtramp_frame_unwind): Ditto.
3179 * score-tdep.c (score_prologue_unwind): Ditto.
3180 * sh-tdep.c (sh_frame_unwind): Ditto.
3181 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3182 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3183 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3184 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3185 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3186 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3187 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3188 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3189 (sparc64obsd_trapframe_unwind): Ditto.
3190 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3191 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3192 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3193 * v850-tdep.c (v850_frame_unwind): Ditto.
3194 * vax-tdep.c (vax_frame_unwind): Ditto.
3195 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3196 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3197 * xtensa-tdep.c (xtensa_unwind): Ditto.
3199 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3201 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3202 there's always a frame. Use get_frame_pc_if_available instead of
3203 get_frame_pc, and if there's no PC available, don't look up a
3206 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3208 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3211 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3213 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3216 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3218 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3219 * frame.c (frame_unwind_caller_pc_if_available): New.
3220 * stack.c (frame_info): Handle unavailable PC.
3222 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3224 * frame.c (frame_unwind_pc): Rename to ...
3225 (frame_unwind_pc_if_available): ... this. New `pc' output
3226 parameter. Change return type to int. Gracefully handle
3227 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3228 happened, or 1 otherwise.
3229 (frame_unwind_pc): Reimplement on top of
3230 frame_unwind_pc_if_available.
3231 (get_frame_func): Rename to ...
3232 (get_frame_func_if_available): New `pc' output parameter. Change
3233 return type to int. Gracefully handle the PC not being available.
3234 (get_frame_func): Reimplement on top of
3235 get_frame_func_if_available.
3236 (select_frame): Handle the PC being unavailable.
3237 (get_prev_frame): Handle the PC being unavailable.
3238 (get_frame_pc_if_available): New.
3239 (get_frame_address_in_block_if_available): New.
3240 (find_frame_sal): Handle the frame PC not being available.
3241 * frame.h (get_frame_pc_if_available): Declare.
3242 (get_frame_address_in_block_if_available): Declare.
3243 (get_frame_func_if_available): Declare.
3244 * stack.c (print_frame_info): Handle the PC being unavailable.
3245 (find_frame_funname): Ditto.
3246 (print_frame): Handle the PC being unavailable.
3247 (get_frame_language): Ditto.
3248 * blockframe.c (get_frame_block): Ditto.
3249 * macroscope.c (default_macro_scope): Ditto.
3250 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3252 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3254 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3255 NOT_AVAILABLE_ERROR when evaluating the location expression.
3257 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3259 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3260 returning that the register piece is unavailable/optimized out.
3261 (write_pieced_value): Handle get_frame_register_bytes returning
3262 that the register piece is unavailable/optimized out when doing a
3263 read-modify write of a bitfield.
3264 * findvar.c (value_from_register): Handle get_frame_register_bytes
3265 returning that the register piece is unavailable/optimized out.
3266 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3267 and `unavailablep'. Throw error on bad debug info. Use
3268 frame_register instead of frame_register_read, to fill in the new
3270 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3272 * valops.c: (value_assign): Adjust, and handle
3273 get_frame_register_bytes failing.
3274 * spu-tdep.c: Include exceptions.h.
3275 (spu_software_single_step): Adjust, and handle
3276 get_frame_register_bytes failing.
3277 (spu_get_longjmp_target): Ditto.
3278 * gdbarch.sh (register_to_value): Change to return int. New
3279 parameters `optimizedp' and `unavailablep'.
3280 * gdbarch.h, gdbarch.c: Regenerate.
3281 * i386-tdep.c (i386_register_to_value): Adjust to new
3282 gdbarch_register_to_value interface.
3283 * i387-tdep.c (i387_register_to_value): Ditto.
3284 * i387-tdep.h (i387_register_to_value): Ditto.
3285 * alpha-tdep.c (alpha_register_to_value): Ditto.
3286 * ia64-tdep.c (ia64_register_to_value): Ditto.
3287 * m68k-tdep.c (m68k_register_to_value): Ditto.
3288 * mips-tdep.c (mips_register_to_value): Ditto.
3289 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3291 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3293 * findvar.c (value_of_register): Mark the value as unavailable, if
3294 the register is unavailable.
3295 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3296 (frame_register): New `unavailablep' parameter.
3297 (frame_register_read): Update comment.
3298 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3299 Set it if the register is unavailable. If the register is
3300 unavailable, clear the output buffer.
3301 (frame_register): New `unavailablep' parameter. Pass it down.
3302 (frame_unwind_register): Adjust.
3303 (put_frame_register): Adjust.
3304 (frame_register_read): Adjust. Also return false if the register
3306 (frame_register_unwind_location): Adjust.
3307 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3308 is unavailable, mark the value accordingly.
3309 * stack.c (frame_info): Handle unavailable registers.
3311 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3313 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3314 simplify, using regcache_cooked_read.
3316 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3318 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3319 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3320 (regcache_raw_read_unsigned, regcache_raw_read_part)
3321 (regcache_cooked_read, regcache_cooked_read_signed)
3322 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3323 (regcache_cooked_read_ftype): Change return to enum
3325 * regcache.c: Include exceptions.h
3326 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3327 (do_cooked_read): Change return to enum register_status. Always
3328 forward to regcache_cooked_read.
3329 (regcache_raw_read): Change return to enum register_status. If
3330 the register is not REG_VALID, memset the buffer. Return the
3332 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3333 return the register's status.
3334 (regcache_raw_read_unsigned): Ditto.
3335 (regcache_cooked_read): Change return to enum register_status.
3336 Assert that with read-only regcaches, the register's status must
3337 be known. If the regcache is read-only, and the register is not
3338 REG_VALID, memset the buffer. Return the register's status.
3339 (regcache_cooked_read_signed): Change return to enum
3340 register_status. Handle non-REG_VALID registers and return the
3342 (regcache_cooked_read_unsigned): Change return to enum
3343 register_status. Handle non-REG_VALID registers and return the
3345 (regcache_xfer_part, regcache_raw_read_part)
3346 (regcache_cooked_read_part): Change return to enum
3347 register_status. Return the register's status.
3348 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3350 (regcache_dump): Handle unavailable cooked registers.
3351 * frame.c (do_frame_register_read): Adjust interface to match
3352 regcache_cooked_read_ftype.
3353 * gdbarch.sh (pseudo_register_read): Change return to enum
3355 * gdbarch.h, gdbarch.c: Regenerate.
3357 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3359 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3360 register_status. If reading a raw register indicates the raw
3361 register is not valid, return the raw register's status,
3362 otherwise, return REG_VALID.
3363 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3364 register_status. Handle non-REG_VALID raw registers and return
3365 the register's status.
3366 * arm-tdep.c (arm_neon_quad_read)
3367 (arm_pseudo_read): Change return to enum register_status. Handle
3368 non-REG_VALID raw registers and return the register's status.
3369 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3370 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3371 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3372 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3373 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3375 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3376 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3377 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3378 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3379 (m32c_pseudo_register_read): Change return to enum
3380 register_status. Adjust.
3381 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3382 enum register_status. Return the register's status.
3383 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3384 register_status. Return the register's status.
3385 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3386 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3387 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3388 * rs6000-tdep.c (move_ev_register_func): New typedef.
3389 (e500_move_ev_register): Use it. Change return to enum
3390 register_status. Return the register's status.
3391 (do_regcache_raw_read): New function.
3392 (do_regcache_raw_write): New function.
3393 (e500_pseudo_register_read): Change return to enum
3394 register_status. Return the register's status. Use
3395 do_regcache_raw_read.
3396 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3397 (dfp_pseudo_register_read): Change return to enum register_status.
3398 Return the register's status.
3399 (vsx_pseudo_register_read): Ditto.
3400 (efpr_pseudo_register_read): Ditto.
3401 (rs6000_pseudo_register_read): Ditto.
3402 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3403 register_status. Return the register's status.
3404 * sh64-tdep.c (pseudo_register_read_portions): New function.
3405 (sh64_pseudo_register_read): Change return to enum
3406 register_status. Use pseudo_register_read_portions. Return the
3408 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3409 register_status. Return the register's status.
3410 * sh-tdep.c (pseudo_register_read_portions): New function.
3411 (sh_pseudo_register_read): Change return to enum register_status.
3412 Use pseudo_register_read_portions. Return the register's status.
3413 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3414 enum register_status. Return the register's status.
3415 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3416 * spu-tdep.c (spu_pseudo_register_read_spu)
3417 (spu_pseudo_register_read): Ditto.
3418 * xtensa-tdep.c (xtensa_register_read_masked)
3419 (xtensa_pseudo_register_read): Ditto.
3420 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3422 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3424 * python/py-value.c (valpy_getitem): Fix formatting of error function
3427 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3429 ARI fixes: Add missing internationalization markups throughout
3431 * darwin-nat-info.c: Ditto.
3434 * mi/mi-main.c: Ditto.
3436 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3438 ARI fixes: Add missing internationalization markups throughout
3441 * cp-name-parser.y: Ditto.
3444 * objc-exp.y: Ditto.
3447 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3449 ARI fixes: Messages should have no trailing new lines.
3450 * darwin-nat.c (mach_check_error): Remove trailing new line from
3451 warning function call message.
3452 * record.c (bfdcore_read): Idem for error call.
3454 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3456 * common/signals.c (target_signal_from_host): Add _ markup to error
3457 function call message.
3458 (target_signal_to_host): Add _ markup and remove trailing new line
3459 from warning call message.
3460 (target_signal_from_command): Add _ markup to error function call
3463 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3467 * python/python.c (gdbpy_write): Accept a stream argument and
3468 operate to the appropriate stream.
3469 (gdbpy_flush): Likewise.
3470 (_initialize_python): Add stream constants.
3471 (finish_python_initialization): Add GdbOutputErrorFile class.
3473 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3475 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3477 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3479 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3480 to store_signed_integer. Add debug message when relocating CALL
3481 instructions. Fix formatting of debug message.
3482 * i386-tdep.c (i386_relocate_instruction): Ditto.
3484 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3486 * target.h (struct target_ops): Remove to_lookup_symbol field.
3487 (target_lookup_symbol): Delete macro.
3488 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3489 (update_current_target, setup_target_debug): Remove handling
3490 of to_lookup_symbol target_ops field.
3491 * ada-tasks.c (get_known_tasks_addr): Remove use of
3492 target_lookup_symbol.
3493 * coffread.c (coff_symtab_read): Likewise.
3494 * dbxread.c (read_dbx_symtab): Ditto.
3496 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3499 * configure.ac: Add getthrds declaration check.
3500 * configure, config.in: Regenerate.
3501 * aix-thread.c (getthrds): Declare only if not already declared
3502 in procinfo.h. More declaration out of get_signaled_thread to
3505 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3507 * python/py-symtab.c: Populate symtab_object_methods,
3509 (stpy_is_valid): New function.
3510 (salpy_is_valid): Ditto.
3511 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3512 (sympy_is_valid): New function.
3513 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3514 (objfpy_is_valid): New function.
3515 * python/py-inferior.c: Populate inferior_object_methods.
3516 (infpy_is_valid): New function.
3517 * python/py-infthread.c: Populate thread_object_methods.
3518 (thpy_is_valid): New function.
3519 * python/py-block.c: Declare block_object_methods. Populate. Declare
3520 block_iterator_object_methods. Populate.
3521 (blpy_is_valid): New function.
3522 (blpy_iter_is_valid): Ditto.
3524 2011-03-16 Keith Seitz <keiths@redhat.com>
3526 * linespec.c (find_methods): Canonicalize NAME before looking
3528 (name_end): New function.
3529 (keep_name_info): New function.
3530 (decode_line_1): Use keep_name_info.
3531 (decode_compound): Likewise.
3532 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3533 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3536 * linespec.c (locate_first_half): Keep overload information, too.
3537 (decode_compound): Use a string to represent break characters
3539 If P points to a break character, do not increment it.
3540 For C++ and Java, keep overload information and relevant keywords.
3541 If we cannot find a symbol, search the minimal symbols.
3544 * linespec.c (decode_compound): Rename SAVED_ARG to
3546 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3548 Pass a valid block to lookup_symbol.
3549 (lookup_prefix_sym): Likewise.
3550 (find_method): Construct search name based on SYM_CLASS instead
3552 * psymtab.c (lookup_partial_symbol): Add language parameter.
3553 (lookup_symbol_aux_psymtabs): Likewise.
3554 Don't assume that the psymtab we found was the right one. Search
3555 for the desired symbol in the symtab to be certain.
3556 (psymtab_search_name): New function.
3557 (lookup_partial_symbol): Use psymtab_search_name.
3558 Add language parameter.
3559 (read_symtabs_for_function): Add language parameter and pass to
3560 lookup_partial_symbol.
3561 (find_symbol_file_from_partial): Likewise.
3563 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3566 * dwarf2read.c (noop_record_line): New function.
3567 (dwarf_decode_lines): Ignore line tables for GCd functions.
3569 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3571 Fix ARI warnings about new lines at the end of messages, which
3572 are unneeded as there is a new line added at the end of the message
3574 * darwin-nat.c (darwin_stop_inferior): Ditto.
3575 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3576 * dfp.c (decimal_to_number): Ditto.
3577 * exec.c (print_section_info): Ditto.
3578 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3579 * osdata.c (get_osdata): Ditto.
3580 * record.c (bfdcore_write): Ditto.
3581 * remote-mips.c (mips_readchar): Ditto.
3582 * remote.c (read_ptid): Ditto.
3583 * ser-mingw.c (ser_windows_raw): Ditto.
3584 * tracepoint.c (add_local_symbols): Ditto.
3585 * windows-nat.c (fake_create_process): Ditto.
3587 2011-03-16 Tom Tromey <tromey@redhat.com>
3589 * tracepoint.c (stop_tracing): Don't declare.
3590 * event-top.c (after_char_processing_hook): Add `(void)'.
3592 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3594 * NEWS: Add Parameter sub-classing description.
3596 2011-03-16 Kai Tietz <ktietz@redhat.com>
3598 * MAINTAINERS: Update my e-mail address.
3600 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3602 * MAINTAINERS: Add myself for write after approval privileges.
3604 2011-03-15 Michael Snyder <msnyder@vmware.com>
3606 * frame.c (find_frame_sal): Assert sym is not null.
3608 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3610 * objc-lang.c (selectors_info): Check strchr for null result.
3612 * stabsread.c (define_symbol): Guard against bad stabstring input.
3614 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3616 Remove trailing spaces and tabulations from pascal language
3621 p-valprint.c: Ditto.
3623 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3625 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3626 than LOW. Comment it.
3627 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3628 HIGHPC not strictly higher than LOWPC.
3630 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3632 Fix formatting of function declarations returning a pointer in
3634 * varobj.c (varobj_add_child): Ditto.
3635 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3636 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3638 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3640 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3641 for the "generic" vector ABI used with GCC 4.3 and later.
3642 (ppc64_sysv_abi_return_value): Likewise.
3644 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3646 * infcall.c (call_function_by_hand): Function return value is
3647 always a non_lval, even when using struct_return.
3649 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3651 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3652 (map_display_numbers): New.
3653 (do_delete_display): New.
3654 (undisplay_command): Use map_display_numbers.
3655 (do_enable_disable_display): New.
3656 (enable_disable_display_command): New function.
3657 (enable_display): Delete.
3658 (enable_display_command): New.
3659 (disable_display_command): Reimplement.
3660 (_initialize_printcmd): Adjust "enable display" command to use
3661 `enable_display_command' as callback.
3663 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3665 * NEWS: Add Python breakpoint 'stop' operation.
3667 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3669 * NEWS: Delete duplicate entry. Fix typo.
3671 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3673 Fix ARI warning about function names in first column.
3674 Put prototype declaration on same line as return type.
3675 * objc-exp.y: Ditto.
3677 * python/py-stopevent.h: Ditto.
3678 For long function names, split parameters to
3679 allow function name on same line as return type.
3680 * solib-pa64.c: Ditto.
3683 For long function declaration, use single line.
3684 * hppa-tdep.h: Ditto.
3685 * inferior.h: Ditto.
3687 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3689 * python/python.h: Declare gdbpy_should_stop and
3690 gdbpy_breakpoint_has_py_cond.
3691 * python/python.c: Add python.h to includes. Remove python.h from
3692 HAVE_PYTHON definition
3693 (gdbpy_should_stop): New dummy function.
3694 (gdbpy_breakpoint_has_py_cond): New dummy function.
3695 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3696 sub-classing capabilities.
3697 (gdbpy_should_stop): New function.
3698 (gdbpy_breakpoint_has_py_cond): New function.
3699 (local_setattro): New function.
3700 * breakpoint.c (condition_command): Add check for Python 'stop'
3702 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3703 operation function as part of stop/continue tests.
3705 2011-03-14 Tom Tromey <tromey@redhat.com>
3708 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3709 (needs_frame_dwarf_call): Likewise.
3711 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3713 Fix ARI warning about functions without parameters that do not
3715 * breakpoint.c (all_tracepoints): Replace () by (void).
3716 * f-exp.y (match_string_literal): Ditto.
3718 * m2-exp.y (yylex): Ditto.
3719 * mep-tdep.c (current_me_module): Ditto.
3720 (current_options): Ditto.
3721 (current_cop_data_bus_width): Ditto.
3722 (current_cr_names): Ditto.
3723 (current_cr_is_float): Ditto.
3724 (current_ccr_names): Ditto.
3725 * objc-exp.y (yylex): Ditto.
3726 * p-exp.y (yylex): Ditto.
3727 * remote.c (send_interrupt_sequence): Ditto.
3728 * tracepoint.c (current_trace_status): Ditto.
3729 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3730 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3732 2011-03-11 Michael Snyder <msnyder@vmware.com>
3734 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3735 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3736 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3737 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3738 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3740 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3741 (delete_async_event_handler): Ditto.
3743 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3745 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3747 * top.c (set_verbose): Assert showcmd was found.
3749 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
3751 * xtensa-tdep.c (warning_once): Correct style issues.
3753 2011-03-11 Yao Qi <yao@codesourcery.com>
3755 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3757 2011-03-11 Andreas Schwab <schwab@redhat.com>
3759 * common/aclocal.m4: Remove.
3761 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3763 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3764 (xtensa_write_register, xtensa_read_register): Likewise.
3765 (xtensa_hextochar): Removed.
3766 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3768 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3770 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3771 (xtensa_call0_frame_cache_t): Update comments. New fields added.
3772 (xtensa_alloc_frame_cache): Add initialization for new fields.
3773 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3774 (warning_once): New function.
3775 (xtensa_insn_kind): New item c0opc_and.
3776 (call0_classify_opcode): Add the case for AND instruction.
3777 (call0_track_op): Change arguments. New local variable litbase.
3778 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3779 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3781 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3782 (call0_analyze_prologue): Update the comments. Change arguments.
3783 Add the variety of updates to handle extended prologues, which now can
3784 conduct dynamic stack adjustments.
3785 (call0_frame_cache): Likewise.
3786 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3787 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3789 2011-03-10 Michael Snyder <msnyder@vmware.com>
3791 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3792 (cmd_qtframe): Ditto.
3793 (cmd_qtbuffer): Ditto.
3794 (cmd_bigqtbuffer): Ditto.
3796 2011-03-10 Tom Tromey <tromey@redhat.com>
3798 * tracepoint.c (trace_actions_command): Update.
3799 * thread.c (thread_apply_command): Update.
3800 * reverse.c (delete_bookmark_command): Update.
3801 (bookmarks_info): Update.
3802 * printcmd.c (undisplay_command): Update.
3803 * memattr.c (mem_enable_command): Update.
3804 (mem_disable_command): Update.
3805 (mem_delete_command): Update.
3806 * inferior.c (detach_inferior_command): Update.
3807 (kill_inferior_command): Update.
3808 (remove_inferior_command): Update.
3809 * cli/cli-utils.h (struct get_number_or_range_state): New.
3810 (init_number_or_range): Declare.
3811 (get_number_or_range): Update.
3812 * cli/cli-utils.c (init_number_or_range): New function.
3813 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3815 (number_is_in_list): Update.
3816 * breakpoint.h (get_tracepoint_by_number): Update.
3817 * breakpoint.c (map_breakpoint_numbers): Update for change to
3818 get_number_or_range.
3819 (find_location_by_number): Use get_number, not
3820 get_number_or_range.
3821 (trace_pass_set_count): New function.
3822 (trace_pass_command): Update for change to get_number_or_range.
3824 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3827 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
3829 * python/py-param.c (add_setshow_generic): Add set/show callback
3830 parameters. Register Python object context.
3831 (get_show_value): New function.
3832 (get_set_value): New function.
3833 (call_doc_function): New function.
3834 (get_doc_string): Move behind get_show_value/get_set_value.
3836 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
3838 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3840 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
3842 * xtensa-tdep.c (xtensa_read_register): Add comment.
3843 (xtensa_write_register): Likewise.
3844 (xtensa_hextochar): Add comment and update to match coding conventions.
3845 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3846 (execute_l32e, execute_s32e, execute_code): Update comments.
3847 (xtensa_exception_handler_t): Update to match coding conventions.
3848 (xtensa_insn_kind): Likewise.
3850 2011-03-09 Michael Snyder <msnyder@vmware.com>
3852 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3854 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3856 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3858 2011-03-09 Tom Tromey <tromey@redhat.com>
3860 * thread.c (restore_selected_frame): Handle frame_level == -1.
3861 (make_cleanup_restore_current_thread): Use
3862 get_selected_frame_if_set.
3863 * frame.h (get_selected_frame_if_set): Declare.
3864 * frame.c (get_selected_frame_if_set): New function.
3866 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3868 * cli/cli-cmds.c (shell_escape): Use lbasename.
3869 * coffread.c (coff_start_symtab): Constify parameter.
3870 (complete_symtab): Constify `name' parameter.
3871 (coff_symtab_read): Constify `filestring' local.
3872 (coff_getfilename): Constify return and `result' local.
3874 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3875 * linux-fork.c (info_checkpoints_command): Use lbasename.
3876 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3877 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3878 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3879 * procfs.c (procfs_make_note_section): Use lbasename.
3880 * tui/tui-io.c (printable_part): Constity return and parameter.
3882 (print_filename): Constify parameters, and local `s'.
3883 (tui_rl_display_match_list): Constify local `temp'.
3885 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3888 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3889 Fix DWARF-3+ DW_AT_accessibility default assumption.
3890 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3891 cu->header.version >= 3.
3893 2011-03-09 Yao Qi <yao@codesourcery.com>
3895 * common/Makefile.in: Remove.
3896 * common/configure: Remove.
3897 * common/configure.ac: Remove.
3899 2011-03-09 Yao Qi <yao@codesourcery.com>
3902 2011-02-11 Yao Qi <yao@codesourcery.com>
3904 * common/Makefile.in: Add copyright header.
3906 2011-02-11 Yao Qi <yao@codesourcery.com>
3908 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3910 * configure.ac: Add common to sub dir.
3911 * configure: Regenerate.
3913 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3915 * xtensa-tdep.c (call0_ret): New function.
3916 (xtensa_skip_prologue): Speed up analysis.
3918 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3920 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3921 while executing MI command -data-list-changed-registers.
3923 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3925 * xtensa-tdep.c (xtensa_read_register): New function.
3926 (xtensa_write_register): New function.
3927 (xtensa_find_register_by_name): New function.
3928 (xtensa_windowed_frame_cache): Update comments in type description.
3929 (xtensa_frame_cache): Likewise.
3930 (xtensa_window_interrupt_insn): New function.
3931 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3932 (xtensa_insn_kind): Add new instructions.
3933 (rwx_special_register): New function.
3934 (call0_classify_opcode): Add new instructions to the analysis.
3935 (a0_saved, a7_saved, a11_saved): New variables.
3936 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3937 (execute_l32e): New function.
3938 (execute_s32e): New function.
3939 (xtensa_exception_handler_t): New type.
3940 (execute_code): New function.
3941 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3942 analysis for Xtensa Window Exception handlers.
3944 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3946 * xtensa-tdep.c (TX_PS): New.
3947 (windowing_enabled): Update to count for Call0 ABI.
3948 (xtensa_hextochar): New.
3949 (xtensa_init_reggroups): Make algorithm generic.
3950 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3952 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3954 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3956 2011-03-08 Michael Snyder <msnyder@vmware.com>
3958 * i386-tdep.c (i386_follow_jump): Check return value of
3960 (i386_analyze_struct_return): Ditto.
3961 (i386_skip_probe): Ditto.
3962 (i386_match_insn): Ditto.
3963 (i386_skip_noop): Ditto.
3964 (i386_analyze_frame_setup): Ditto.
3965 (i386_analyze_register_saves): Ditto.
3966 (i386_skip_prologue): Ditto.
3967 (i386_skip_main_prologue): Ditto.
3969 * target.c (read_whatever_is_readable): Fix memory leak.
3971 * i386-tdep.c (i386_process_record): Document fall through.
3973 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3975 Fix DWARF-3+ DW_AT_accessibility default assumption.
3976 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3977 cu->header.version >= 3.
3979 2011-03-08 Pedro Alves <pedro@codesourcery.com>
3981 * remote.c (remote_check_symbols): Skip if the target has no
3984 2011-03-08 Joel Brobecker <brobecker@adacore.com>
3986 * target.c (read_whatever_is_readable): Reformat comment,
3987 with a minor typo fix. Minor reformatting of the code.
3989 2011-03-08 Yao Qi <yao@codesourcery.com>
3991 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3992 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3993 Use cached result instead of calling displaced_in_arm_mode again.
3994 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3995 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3996 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3997 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3998 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3999 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4000 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4001 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4002 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4003 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4004 (arm_catch_kernel_helper_return): Likewise.
4005 * gdb/arm-tdep.h : Update function declarations.
4007 2011-03-07 Michael Snyder <msnyder@vmware.com>
4009 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4011 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4013 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4015 * elfread.c (elf_symtab_read): Stop memory leak.
4017 * main.c (captured_main): Fix memory leak.
4019 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4021 * ada-lang.c (compare_names): Call is_name_suffix with string1
4024 2011-03-07 Tom Tromey <tromey@redhat.com>
4026 * xcoffread.c (xcoff_sym_fns): Update.
4027 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4028 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4029 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4030 (symbol_file_add_with_addrs_or_offsets): Likewise.
4031 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4032 * somread.c (som_sym_fns): Update.
4033 * psymtab.h (require_partial_symbols): Declare.
4034 * psymtab.c (require_partial_symbols): New function.
4035 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4036 (ALL_OBJFILE_PSYMTABS): Undef.
4037 (ALL_PSYMTABS): Move from psympriv.h.
4038 (lookup_partial_symtab, find_pc_sect_psymtab)
4039 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4040 (find_last_source_symtab_from_partial)
4041 (forget_cached_source_info_partial)
4042 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4043 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4044 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4045 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4046 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4047 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4048 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4049 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4050 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4052 * mipsread.c (ecoff_sym_fns): Update.
4053 * machoread.c (macho_sym_fns): Update.
4054 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4055 (read_psyms): New function.
4056 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4057 (elf_sym_fns_lazy_psyms): New global.
4058 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4059 dwarf2_build_psymtabs.
4060 * dbxread.c (aout_sym_fns): Update.
4061 * coffread.c (coff_sym_fns): Update.
4063 2011-03-07 Tom Tromey <tromey@redhat.com>
4065 * infrun.c (print_exited_reason): Include inferior id and pid in
4068 2011-03-07 Tom Tromey <tromey@redhat.com>
4070 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4072 (target_has_execution_1): Update.
4073 (target_has_execution_current): Declare.
4074 (target_has_execution): Call target_has_execution_current.
4075 (default_child_has_execution): Update.
4076 * target.c (default_child_has_execution): Add 'the_ptid'
4078 (target_has_execution_1): Likewise.
4079 (target_has_execution_current): New function.
4080 (add_target): Update.
4081 (init_dummy_target): Update.
4082 * remote-m32r-sdi.c (m32r_has_execution): New function.
4083 (init_m32r_ops): Use it.
4084 * record.c (record_core_has_execution): Now static. Add
4085 'the_ptid' parameter.
4086 * inferior.c (have_live_inferiors): Don't save current thread.
4087 Use target_has_execution_1.
4089 2011-03-07 Yao Qi <yao@codesourcery.com>
4091 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4093 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4095 * elfread.c (elf_symtab_read): Minor reformatting.
4097 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4099 * objc-lang.c (selectors_info): Minor reformatting.
4101 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4103 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4105 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4106 Michael Snyder <msnyder@vmware.com>
4108 * ada-valprint.c (ada_val_print_array): Move the declaration of
4109 "byte_order" and "elttype" inside the block where these variables
4110 are actually used. Remove some special handling for the case
4111 where "elttype" and "eltlen" are null. Replace by a comment
4112 and a couple of assertion checks.
4114 2011-03-05 Michael Snyder <msnyder@vmware.com>
4116 * source.c (add_path): Replace semicolon at end of block.
4117 * dwarf2expr.c (execute_stack_op): Ditto.
4119 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4121 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4122 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4123 (bfin-*-*): Likewise.
4125 2011-03-05 Michael Snyder <msnyder@vmware.com>
4127 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4128 * mdebugread.c (parse_symbol): Ditto.
4129 * parse.c (parse_exp_in_context): Ditto.
4130 * source.c (add_path): Ditto.
4131 * utils.c (gnu_debuglink_crc32): Ditto.
4132 * varobj.c (variable_language): Ditto.
4134 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4136 2011-03-04 Michael Snyder <msnyder@vmware.com>
4138 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4140 * symfile.c (simple_overlay_update): Check for null return value
4141 from lookup_minimal_symbol.
4143 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4145 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4147 * eval.c (parse_and_eval_address_1): Remove function.
4148 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4149 instead of parse_and_eval_address_1.
4150 * value.h (parse_and_eval_address_1): Remove prototype.
4152 2011-03-04 Michael Snyder <msnyder@vmware.com>
4154 * remote.c (putpkt_binary): Document that case stmt falls through.
4156 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4158 * breakpointc (print_it_typical): Move NULL check from here...
4159 (print_bp_stop_message): ... to here.
4161 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4163 * breakpoint.c (enable_command): Use break instead of continue,
4164 and fill in a missing break.
4165 (disable_command): Ditto.
4167 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4169 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4170 (terminal_save_ours): Remove misleading comment.
4171 (inflow_inferior_data_cleanup): Free ttystate.
4172 (inflow_inferior_exit): Likewise.
4173 (copy_terminal_info): Copy ttystate.
4175 * serial.c (serial_copy_tty_state): New function.
4176 * serial.h (serial_copy_tty_state): Add prototype.
4177 (struct serial_ops): Add copy_tty_state callback.
4178 * ser-base.c (ser_base_copy_tty_state): New function.
4179 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4180 * ser-go32.c (dos_copy_tty_state): New function.
4181 (dos_ops): Install copy_tty_state callback.
4182 * ser-mingw.c (_initialize_ser_windows): Likewise.
4183 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4184 * ser-unix.c (hardwire_copy_tty_state): New function.
4185 (_initialize_ser_hardwire): Install it.
4187 2011-03-04 Michael Snyder <msnyder@vmware.com>
4189 * breakpoint.c (create_breakpoint): Add missing break statement.
4191 Reverting this patch:
4192 * infcall.c (call_function_by_hand): Add break statements for lint.
4194 Reverting this patch:
4195 * cli/cli-script.c (script_from_file): Add break for lint.
4197 2011-03-04 Michael Snyder <msnyder@vmware.com>
4199 * solib.c (reload_shared_libraries_1): Close memory leak.
4201 2011-03-03 Tom Tromey <tromey@redhat.com>
4204 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4207 2011-03-03 Michael Snyder <msnyder@vmware.com>
4209 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4210 fields of struct 'st' to zero.
4212 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4213 sal.pspace before calling set_current_source_symtab_and_line.
4215 2011-03-03 Yao Qi <yao@codesourcery.com>
4217 * Makefile.in (configure-common): Remove. Let Makefile
4218 in dir common to rebuild itself.
4219 (common/Makefile): Likewise.
4221 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4223 * utils.c (parse_escape): Add i18n markup in error message.
4225 2011-03-03 Yao Qi <yao@codesourcery.com>
4227 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4229 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4230 (displaced_write_reg, displaced_read_reg): Likewise.
4231 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4232 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4233 (cleanup_branch): Replace magic number 14 and 15 with
4234 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4236 2011-03-02 Michael Snyder <msnyder@vmware.com>
4238 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4240 * cli/cli-script.c (script_from_file): Add break for lint.
4242 * mdebugread.c (parse_partial_symbols): Fix indent.
4244 * target-descriptions.c (tdesc_gdb_type): No need to call
4245 xstrdup, callee saves a copy.
4247 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4249 * infcall.c (call_function_by_hand): Add break statements for lint.
4251 * utils.c (parse_escape): Escape the escape char.
4253 * python/py-inferior.c (build_inferior_list): Error out if
4254 PyList_Append fails.
4255 (gdbpy_inferiors): Error out if build_inferior_list fails.
4257 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4260 * record.c (record_restore): Move printf to before error return.
4262 2011-03-02 Yao Qi <yao@codesourcery.com>
4264 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4265 is_thumb and insn_size.
4266 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4267 on both ARM and Thumb mode.
4268 (arm_process_displaced_insn): Set is_thumb and insn_size.
4269 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4270 (arm_displaced_step_fixup): Likewise.
4272 2011-03-01 Michael Snyder <msnyder@vmware.com>
4274 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4276 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4278 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4280 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4282 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4285 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4286 which shadows function parameter.
4288 * tracepoint.c (create_tsv_from_upload): Superfluous call
4289 to xstrdup. Callee already calls xstrdup.
4291 * linespec.c (decode_line_1): Remove unnecessary null check.
4293 * tracepoint.c (scope_info): Fix mem leak, remove underused
4296 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4297 superfluous null check.
4299 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4300 (value_of_builtin_frame_fp_reg): Ditto.
4302 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4304 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4307 * linespec.c (decode_line_1): Check for null before dereference.
4309 * reverse.c (record_restore): Move null-check to before pointer
4312 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4314 * objc-lang.c (selectors_info): Add explanitory comment.
4315 (classes_info): Ditto.
4317 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4319 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4320 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4321 versions of the trampoline. Handle Thumb vs. ARM addresses.
4322 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4323 (arm_linux_init_abi): Install it.
4324 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4325 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4327 2011-02-28 Michael Snyder <msnyder@vmware.com>
4329 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4330 a little bigger, to avoid possibility of an overflow.
4332 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4333 buffers a little bigger, to avoid possibility of an overflow.
4335 * coffread.c (coff_getfilename): Add check to avoid overflow.
4337 * objc-lang.c (selectors_info): Add a small safety margin to
4339 (classes_info): Error out on too long REGEXP.
4341 * infrun.c (handle_inferior_event): Remove unused function call.
4343 * fork-child.c (fork_inferior): Remove ifdef'd code and
4346 * linux-thread-db.c (attach_thread): Discard unused value.
4348 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4350 * remote.c (remote_get_noisy_reply): Discard unused value.
4351 (remote_vcont_resume): Ditto.
4352 (remote_stop_ns): Ditto.
4354 * linespec.c (decode_objc): Delete unused variable.
4356 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4358 * dwarf2read.c (add_partial_symbol): Discard unused values.
4359 (read_base_type): Delete unused variable.
4361 * dbxread.c (read_dbx_symtab): Discard unused value.
4363 * eval.c (evaluate_subexp_standard): Delete unused variable,
4364 and discard unused values.
4366 * infcmd.c (_initialize_infcmd): Discard unused values.
4368 * stabsread.c (rs6000_builtin_type): Missing break statement.
4370 * dbxread.c (process_one_symbol): Discard unused value.
4372 * coffread.c (coff_end_symtab): Delete unused variable.
4374 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4375 (dwarf2_add_typedef): Delete unused variable.
4376 (read_namespace): Ditto.
4377 (dwarf_decode_macros): Ditto.
4379 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4381 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4383 * p-valprint.c (pascal_val_print): Discard unused value.
4385 * utils.c (nquery): Call va_end before return;
4389 * proc-service.c (ps_plog): Call va_end before return.
4391 2011-02-28 Tom Tromey <tromey@redhat.com>
4393 * python/python.c (gdbpy_value_cst): New global.
4394 (_initialize_python): Initialize it.
4395 * python/python-internal.h (gdbpy_value_cst): Declare.
4396 * python/py-value.c (convert_value_from_python): Use
4399 2011-02-28 Michael Snyder <msnyder@vmware.com>
4401 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4403 * breakpoint.c (catch_syscall_completer): Free malloced list.
4405 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4407 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4408 (lval_func_check_synthetic_pointer): Ditto.
4409 (lval_func_free_closure): Fix use-after-free.
4411 2011-02-28 Tom Tromey <tromey@redhat.com>
4413 * psymtab.c (expand_partial_symbol_tables): Use
4414 ALL_OBJFILE_PSYMTABS.
4416 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4418 * objc-lang.c (selectors_info): Error on too long REGEXP.
4420 2011-02-28 Michael Snyder <msnyder@vmware.com>
4422 * python/py-param.c (set_parameter_value): Add missing
4425 * linux-record.c (record_linux_system_call): Add missing
4428 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4430 * breakpoint.c (print_one_breakpoint_location): Remove unused
4431 argument PRINT_ADDRESS_BITS. Update callers.
4432 (print_one_breakpoint): Likewise.
4434 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4436 * breakpoint.c (wrap_indent_at_field): New function.
4437 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4438 Allocate ui_stream locally instead of using STB argument.
4439 (print_one_breakpoint_location): Update call.
4440 * ui-out.c (ui_out_query_field): New function.
4441 * ui-out.h (ui_out_query_field): Add prototype.
4443 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4445 From Michael Snyder <msnyder@vmware.com>
4446 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4448 2011-02-27 Michael Snyder <msnyder@vmware.com>
4450 * objc-lang.c (selectors_info): Prevent string overrun.
4452 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4455 * symtab.c (rbreak_command): Move variable 'file_name' to
4458 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4459 param with a local variable of the same name.
4461 2011-02-27 Michael Snyder <msnyder@vmware.com>
4463 * value.c (value_from_history_ref): New function.
4464 * value.h (value_from_history_ref): Export.
4465 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4466 to parse value history references.
4467 * cli/cli-utils.h (get_number_trailer): Update comment.
4469 2011-02-27 Michael Snyder <msnyder@vmware.com>
4471 * inferior.c (detach_inferior_command): Use get_number_or_range.
4472 (kill_inferior_command): Ditto.
4473 (remove_inferior_command): Ditto.
4474 (initialize_inferiors): Make command names plural.
4475 Update help strings.
4477 2011-02-27 Michael Snyder <msnyder@vmware.com>
4479 * darwin-nat-info.c: Fix comment typo.
4480 * dwarf2expr.h: Ditto.
4481 * fbsd-nat.c: Ditto.
4482 * fbsd-nat.h: Ditto.
4483 * frame-unwind.h: Ditto.
4485 * hppa-hpux-tdep.c: Ditto.
4486 * i386-linux-nat.c: Ditto.
4487 * linux-nat.c: Ditto.
4488 * nbsd-nat.c: Ditto.
4489 * nbsd-nat.h: Ditto.
4490 * ppc-linux-tdep.c: Ditto.
4493 * tui/tui-winsource.c: Ditto.
4495 2011-02-26 Michael Snyder <msnyder@vmware.com>
4497 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4499 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4501 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4502 with a local variable of the same name.
4504 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4505 param with a local variable of the same name.
4506 (i387_supply_xsave): Ditto.
4508 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4509 that it does not shadow a function parameter.
4511 * i386-nat.c (i386_length_and_rw_bits): Document that case
4512 statement is meant to fall through.
4514 * expprint.c (dump_subexp_body_standard): Document that case
4515 statement is meant to fall through.
4517 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4518 dead if statement. Condition can't be false.
4520 2011-02-25 Michael Snyder <msnyder@vmware.com>
4522 * arm-tdep.c: Fix typos in comments.
4523 * bsd-uthread.c: Ditto.
4524 * completer.c: Ditto.
4526 * cp-namespace.c: Ditto.
4527 * cp-support.c: Ditto.
4528 * cris-tdep.c: Ditto.
4530 * dwarf2read.c: Ditto.
4532 * gdbtypes.h: Ditto.
4533 * inferior.h: Ditto.
4534 * mdebugread.c: Ditto.
4535 * mips-tdep.c: Ditto.
4536 * ppc-linux-nat.c: Ditto.
4537 * ppc-linux-tdep.c: Ditto.
4538 * printcmd.c: Ditto.
4539 * sol-thread.c: Ditto.
4540 * solib-frv.c: Ditto.
4542 * sparc64-tdep.c: Ditto.
4543 * spu-tdep.c: Ditto.
4544 * stabsread.c: Ditto.
4549 * python/py-block.c: Ditto.
4550 * python/py-symbol.c: Ditto.
4551 * python/py-symtab.c: Ditto.
4552 * python/py-value.c: Ditto.
4553 * tui/tui-win.c: Ditto.
4555 2011-02-25 Michael Snyder <msnyder@vmware.com>
4557 * inferior.c (print_inferior): Accept a string instead of an int
4558 for requested_inferiors, and use get_number_or_range to parse it.
4559 (info_inferiors_command): Pass args string to print_inferior.
4560 (initialize_inferiors): Change help string for info inferiors.
4561 * inferior.h (print_inferior): Export prototype change.
4563 2011-02-25 Tom Tromey <tromey@redhat.com>
4565 * common/ax.def (invalid2): Set to 0x31.
4567 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4569 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4571 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4573 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4575 2011-02-24 Michael Snyder <msnyder@vmware.com>
4577 * Makefile.in (clean): Make clean should remove generated files
4578 observer.h and observer.inc.
4580 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4582 Revert the following patch (not approved yet):
4583 2011-02-21 Hui Zhu <teawater@gmail.com>
4584 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4585 * ax-gdb.c (gen_printf_expr_callback): New function.
4586 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4587 * ax-general.c (ax_memcpy): New function.
4588 (ax_print): Handle "printf".
4590 * ax.h (ax_memcpy): Forward declare.
4591 * common/ax.def (invalid2): Removed.
4592 (printf): New entry.
4593 * printcmd.c (printcmd.h): New include.
4594 (string_printf): New function.
4595 (ui_printf): Removed.
4596 (printf_command): Remove static. Call string_printf.
4597 (eval_command): Call string_printf.
4598 * printcmd.h: New file.
4599 * tracepoint.c (validate_actionline,
4600 encode_actions_1): handle printf_command.
4602 2011-02-23 Tom Tromey <tromey@redhat.com>
4604 * ax-general.c (ax_pick): Add missing newline.
4606 2011-02-23 Michael Snyder <msnyder@vmware.com>
4608 * breakpoint.c (breakpoint_1): Change first argument from an int
4609 to a char pointer, so that the function now accepts a list of
4610 breakpoints rather than just one. Use new function
4611 'number_is_in_list' to implement.
4612 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4613 (watchpoints_info): Ditto.
4614 (tracepoints_info): Ditto.
4615 (maintenance_info_breakpoints): Ditto.
4616 (_initialize_breakpoint): Update help strings to reflect the fact
4617 that these functions can now take more than one argument.
4618 * cli/cli-utils.c (number_is_in_list): New function.
4619 * cli/cli-utils.h (number_is_in_list): Export.
4621 2011-02-23 Michael Snyder <msnyder@vmware.com>
4623 * memattr.c (mem_enable_command): Use get_number_or_range.
4624 (mem_disable_command): Ditto.
4625 (mem_delete_command): Ditto.
4626 (_initialize_mem): Tweak usage message to reflect multiple
4629 2011-02-22 Doug Evans <dje@google.com>
4631 Add gdb.lookup_global_symbol python function.
4633 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4634 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4635 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4637 2011-02-22 Tom Tromey <tromey@redhat.com>
4639 * language.c (language_class_name_from_physname): Rename
4640 'curr_language' argument to 'lang'; use in body.
4642 2011-02-22 Michael Snyder <msnyder@vmware.com>
4644 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4646 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4648 * frame-unwind.h: Fix comment to mention the this frame, not the
4651 2011-02-22 Tom Tromey <tromey@redhat.com>
4653 * symfile.c (auto_solib_limit): Remove.
4654 * symfile.h (auto_solib_limit): Remove.
4656 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4658 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4660 2011-02-21 Michael Snyder <msnyder@vmware.com>
4662 * gdbthread.h (print_thread_info): Change prototype.
4663 * thread.c (print_thread_info): Accept char* instead of int for
4664 requested_threads argument. Use new function number_is_in_list
4665 to determine which threads to list.
4666 (info_threads_command): Pass char* to print_thread_info.
4667 * cli/cli-utils.c (number_is_in_list): New function.
4668 * cli/cli-utils.h (number_is_in_list): Export.
4669 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4671 (print_one_inferior): Ditto.
4672 (mi_cmd_list_thread_groups): Ditto.
4674 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4676 * common/Makefile.in (CFLAGS): New.
4677 (COMPILE): Add $(CFLAGS).
4679 2011-02-21 Tom Tromey <tromey@redhat.com>
4681 * breakpoint.c (catch_syscall_command_1): Fix typo.
4683 2011-02-21 Tom Tromey <tromey@redhat.com>
4685 * reverse.c: Include cli-utils.h.
4686 * printcmd.c: Include cli-utils.h.
4687 (string_printf): Use skip_spaces.
4688 * cli/cli-utils.h: New file.
4689 * cli/cli-utils.c: New file.
4690 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4691 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4692 * breakpoint.h (get_number, get_number_or_range): Move to
4694 * breakpoint.c: Include cli-utils.h.
4695 (get_number_trailer, get_number, get_number_or_range)
4696 (ep_skip_leading_whitespace): Move to cli-utils.c.
4697 (create_breakpoint_sal, find_condition_and_thread)
4698 (decode_static_tracepoint_spec, watch_command_1)
4699 (watch_maybe_just_location, ep_parse_optional_if_clause)
4700 (catch_fork_command_1, catch_exec_command_1)
4701 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4702 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4703 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4704 (HFILES_NO_SRCDIR): Add cli-utils.h.
4705 (cli-utils.o): New target.
4707 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4709 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4710 before calling discard_all_inferiors.
4712 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4714 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4715 (struct builtin_opencl_type): Remove.
4716 (builtin_opencl_type): Change return type to "struct type **".
4717 (lookup_opencl_vector_type): Update caller.
4718 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4719 (build_opencl_types): Install plain array of "struct type *"
4720 instead of "struct builtin_opencl_type".
4722 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4723 Ulrich Weigand <uweigand@de.ibm.com>
4725 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4726 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4727 (struct arm_linux_hwbp_cap): New type.
4728 (arm_linux_get_hwbp_cap): New function.
4729 (arm_linux_get_hw_breakpoint_count): Likewise.
4730 (arm_linux_get_hw_watchpoint_count): Likewise.
4731 (arm_linux_can_use_hw_breakpoint): Likewise.
4732 (arm_hwbp_type): New type.
4733 (arm_hwbp_control_t): Likewise.
4734 (struct arm_linux_hw_breakpoint): Likewise.
4735 (struct arm_linux_thread_points): Likewise.
4736 (arm_threads): New global variable.
4737 (arm_linux_find_breakpoints_by_tid): New function.
4738 (arm_hwbp_control_initialize): Likewise.
4739 (arm_hwbp_control_is_enabled): Likewise.
4740 (arm_hwbp_control_disable): Likewise.
4741 (arm_linux_hw_breakpoint_initialize): Likewise.
4742 (arm_linux_get_hwbp_type): Likewise.
4743 (arm_linux_hw_watchpoint_initialize): Likewise.
4744 (arm_linux_hw_breakpoint_equal): Likewise.
4745 (arm_linux_insert_hw_breakpoint1): Likewise.
4746 (arm_linux_remove_hw_breakpoint1): Likewise.
4747 (arm_linux_insert_hw_breakpoint): Likewise.
4748 (arm_linux_remove_hw_breakpoint): Likewise.
4749 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4750 (arm_linux_insert_watchpoint): Likewise.
4751 (arm_linux_remove_watchpoint): Likewise.
4752 (arm_linux_stopped_data_address): Likewise.
4753 (arm_linux_stopped_by_watchpoint): Likewise.
4754 (arm_linux_watchpoint_addr_within_range): Likewise.
4755 (arm_linux_new_thread): Likewise.
4756 (arm_linux_thread_exit): Likewise.
4757 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4758 related target callbacks. Register arm_linux_new_thread and
4759 arm_linux_thread_exit.
4760 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4761 * arm-tdep.c (arm_pc_is_thumb): Make global.
4762 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4764 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4766 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4767 per-frame locations while within a function epilogue.
4769 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4771 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4772 to GNU coding standards.
4774 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4776 Allow use of mingw native on Windows 95 OS.
4777 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4778 (ser_windows_close): Only call CancelIo if function exists.
4779 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4780 to check for existence of CancelIo function in kernel32 DLL.
4782 2011-02-21 Hui Zhu <teawater@gmail.com>
4784 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4785 * ax-gdb.c (gen_printf_expr_callback): New function.
4786 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4787 * ax-general.c (ax_memcpy): New function.
4788 (ax_print): Handle "printf".
4790 * ax.h (ax_memcpy): Forward declare.
4791 * common/ax.def (invalid2): Removed.
4792 (printf): New entry.
4793 * printcmd.c (printcmd.h): New include.
4794 (string_printf): New function.
4795 (ui_printf): Removed.
4796 (printf_command): Remove static. Call string_printf.
4797 (eval_command): Call string_printf.
4798 * printcmd.h: New file.
4799 * tracepoint.c (validate_actionline,
4800 encode_actions_1): handle printf_command.
4802 2011-02-19 Michael Snyder <msnyder@vmware.com>
4804 * reverse.c (delete_one_bookmark): Argument is now bookmark
4805 id rather than pointer to bookmark struct.
4806 (delete_bookmark_command): Use get_number_or_range.
4807 (goto_bookmark_command): Parse with get_number instead of strtoul.
4808 (bookmark_1): New function. Print info for one bookmark.
4809 (bookmarks_info): Use get_number_or_range and bookmark_1.
4811 2011-02-18 Michael Snyder <msnyder@vmware.com>
4813 * thread.c (info_threads_command): Re-implement using
4814 get_number_or_range.
4815 (thread_apply_command): Ditto.
4817 2011-02-18 Tom Tromey <tromey@redhat.com>
4819 * common/ax.def: New file.
4820 * ax.h (enum agent_op): Use ax.def.
4821 * ax-general.c (aop_map): Use ax.def.
4823 2011-02-18 Tom Tromey <tromey@redhat.com>
4825 * ax-general.c (aop_map): Add pick and rot.
4826 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4827 <DW_OP_rot>: Implement.
4828 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4830 * ax-general.c (ax_pick): New function.
4832 2011-02-18 Tom Tromey <tromey@redhat.com>
4834 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4836 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4837 Tom Tromey <tromey@redhat.com>
4839 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4840 make_symbol_overload_list_block with NULL BLOCK.
4841 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4843 2011-02-18 Pedro Alves <pedro@codesourcery.com>
4845 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4846 * breakpoint.h (get_number_or_range): Declare.
4847 * printcmd.c (ALL_DISPLAYS): Declare.
4848 (delete_display): Reimplement taking a display pointer.
4849 (undisplay_command): Accept a range of displays to delete, using
4850 get_number_or_range.
4852 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4854 * c-valprint.c (c_val_print): Add embedded_offset to address
4855 for arrays of unspecified length.
4856 * p-valprint.c (pascal_val_print): Likewise.
4858 2011-02-18 Yao Qi <yao@codesourcery.com>
4860 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4861 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4862 (thumb_process_displaced_insn): New.
4863 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4864 call to arm_process_displaced_insn.
4865 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4867 2011-02-17 Tom Tromey <tromey@redhat.com>
4869 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4870 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4871 compile_dwarf_to_ax. No longer static. Call
4872 dwarf2_compile_cfa_to_ax.
4873 (locexpr_tracepoint_var_ref): Update.
4874 (loclist_tracepoint_var_ref): Update.
4875 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4876 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4877 argument; add 'gdbarch' and 'pc'.
4878 (dwarf2_compile_cfa_to_ax): New function.
4879 (dwarf2_frame_cache): Update.
4881 2011-02-17 Joel Brobecker <brobecker@adacore.com>
4883 * ada-lang.c (ada_type_of_array): Fix the size of the array
4884 in the case of an unconstrained packed array.
4886 2011-02-17 Yao Qi <yao@codesourcery.com>
4888 * common/Makefile.in: Add more targets for make.
4890 2011-02-16 Tom Tromey <tromey@redhat.com>
4892 * dwarf2loc.c (unimplemented): Fix typo.
4894 2011-02-16 Tom Tromey <tromey@redhat.com>
4896 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4897 (compile_dwarf_to_ax) <default>: Use unimplemented.
4898 <DW_OP_deref>: Update.
4899 (disassemble_dwarf_expression): Update.
4900 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4901 (decode_locdesc): Update.
4902 * dwarf2expr.h (dwarf_stack_op_name): Update.
4904 2011-02-16 Tom Tromey <tromey@redhat.com>
4906 * ax.h (struct aop_map) <name>: Now const.
4908 2011-02-16 Tom Tromey <tromey@redhat.com>
4910 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4913 2011-02-16 Yao Qi <yao@codesourcery.com>
4915 * infrun.c (get_displaced_step_closure_by_addr): New.
4916 * inferior.h: Declare it.
4917 * arm-tdep.c: (arm_pc_is_thumb): Call
4918 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4921 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4922 Jan Kratochvil <jan.kratochvil@redhat.com>
4925 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4927 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4928 Jan Kratochvil <jan.kratochvil@redhat.com>
4930 * value.c (value_contents_copy_raw): Extend describing comment.
4931 Assert that the destination contents we're overwriting are wholly
4933 (value_contents_copy): Extend describing comment.
4935 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4936 Jan Kratochvil <jan.kratochvil@redhat.com>
4938 * value.c (value_available_contents_eq): Remove redundant local
4939 variables. Fix available contents comparision.
4940 * value.h (value_available_contents_eq): Extend describing
4943 2011-02-16 Yao Qi <yao@codesourcery.com>
4945 * thread.c (info_threads_command): Add missing i18n markup and remove
4948 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4950 * breakpoint.c (longjmp_names): New variable.
4951 (struct breakpoint_objfile_data): New type.
4952 (breakpoint_objfile_key): New variable.
4953 (msym_not_found): New variable.
4954 (msym_not_found_p): New predicate.
4955 (get_breakpoint_objfile_data): New function.
4956 (create_overlay_event_breakpoint): Check per-objfile cache for
4958 (create_longjmp_master_breakpoint): Likewise.
4959 (create_std_terminate_master_breakpoint): Likewise.
4960 (create_exception_master_breakpoint): Likewise.
4961 (_initialize_breakpoint): Register per-objfile data key.
4963 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4965 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4967 (create_longjmp_master_breakpoint): Loop over longjmp names.
4968 (create_std_terminate_master_breakpoint): Const-propagate parameter
4970 (update_breakpoints_after_exec): Adjust.
4971 (breakpoint_re_set): Adjust.
4973 2011-02-15 Michael Snyder <msnyder@vmware.com>
4975 * thread.c (info_threads_command): Process arg as thread id,
4976 or list of thread ids.
4977 (thread_find_command): New command.
4978 (_initialize_thread): Document argument for info threads.
4979 Document 'thread find' command.
4980 * NEWS: Document new command "thread find".
4982 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4984 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4985 * aclocal.m4: Regenerated with aclocal-1.11.1.
4986 * common/configure: Regenerate with autoconf-2.64.
4988 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
4990 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4991 bool data type to a size of one byte.
4993 2011-02-15 Pedro Alves <pedro@codesourcery.com>
4994 Jan Kratochvil <jan.kratochvil@redhat.com>
4996 * target.c (memory_xfer_live_readonly_partial): Document where to
4997 look for interface description.
4999 2011-02-15 Yao Qi <yao@codesourcery.com>
5002 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5003 order to store PC value on stack instead of text section.
5005 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5007 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5008 the EFP register set size.
5009 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5010 data from the VMX register.
5011 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5012 and write data from/to the VMX register.
5014 2011-02-14 Michael Snyder <msnyder@vmware.com>
5016 * command.h (enum command_class): New class 'no_set_class', for
5017 "show" commands without a corresponding "set" command.
5018 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5019 * copying.c (_initialize_copying): Ditto for "show copying" and
5021 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5023 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5024 which there is no corresponding "set" command (eg. "show copying").
5026 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5027 Jan Kratochvil <jan.kratochvil@redhat.com>
5029 * exec.c (section_table_available_memory): Change `len' parameter
5031 * exec.h (section_table_available_memory): Ditto.
5032 * value.h (read_value_memory): Rename the `offset' parameter to
5035 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5036 Jan Kratochvil <jan.kratochvil@redhat.com>
5038 * memrange.c (compare_mem_ranges): Mention sort order in
5040 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5041 * tracepoint.c (traceframe_available_memory): Extend comment to
5042 mention what happens to RESULT when the target does not support
5045 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5046 Jan Kratochvil <jan.kratochvil@redhat.com>
5048 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5051 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5053 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5054 No longer handle NULL values.
5056 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5058 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5059 * value.c: Include "exceptions.h".
5060 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5062 * cp-abi.c: Include gdb_assert.h.
5063 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5064 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5066 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5067 parameters. No longer returns -1 on error.
5068 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5070 * cp-valprint.c: Include exceptions.h.
5071 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5072 the baseclass_offset. Handle unavailable base classes. Use
5073 val_print_invalid_address.
5074 * p-valprint.c: Include exceptions.h.
5075 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5076 when fetching the baseclass_offset. No longer expect
5077 baseclass_offset returning -1. Handle unavailable base classes.
5078 Use val_print_invalid_address.
5079 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5080 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5081 `embedded_offset' and `val' parameters. Adjust.
5082 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5083 parameter, and change its type to gdb_byte pointer. Add
5084 `embedded_offset' and `val' parameters. Adjust. No longer expect
5085 baseclass_offset returning -1.
5086 (value_dynamic_cast): Use value_contents_for_printing rather than
5087 value_contents. Adjust.
5088 (search_struct_field): No longer expect baseclass_offset returning
5090 (search_struct_method): If reading memory from the target is
5091 necessary, wrap it in a new value to pass to baseclass_offset. No
5092 longer expect baseclass_offset returning -1.
5093 (find_method_list): No longer expect baseclass_offset returning
5094 -1. Use value_contents_for_printing rather than value_contents.
5095 * valprint.c (val_print_invalid_address): New function.
5096 * valprint.h (val_print_invalid_address): Declare.
5097 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5098 and `val' parameters. No longer expect baseclass_offset returning
5100 * gnu-v2-abi.c: Include "exceptions.h".
5101 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5102 parameters. Handle unavailable memory. Recurse through
5103 gnuv2_baseclass_offset directly, rather than through
5104 baseclass_offset. No longer returns -1 on not found, instead
5106 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5107 `val' parameters. Adjust.
5109 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5111 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5112 almost but not quite adjacent.
5114 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5116 * value.h (value_entirely_available): Declare.
5117 * value.c (value_entirely_available): New function.
5118 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5119 real type if the pointer is unavailable.
5121 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5123 * valops.c (value_repeat): Use read_value_memory instead of
5126 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5128 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5129 * value.c (value_contents_copy_raw, value_contents_copy): New
5131 (value_primitive_field): Use value_contents_copy_raw instead of
5133 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5135 (value_array, value_slice): Ditto.
5136 * valarith.c (value_subscripted_rvalue): Use
5137 value_contents_copy_raw instead of memcpy.
5139 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5141 <unavailable> references.
5143 * valops.c (get_value_at): Use value_from_contents_and_address,
5144 avoiding read_memory.
5146 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5148 * c-valprint.c (c_val_print): Print a string with unavailable
5149 contents as an array.
5151 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5153 * value.h (unpack_bits_as_long): Delete declaration.
5154 (unpack_value_bits_as_long): Declare.
5155 (unpack_value_field_as_long): Declare.
5156 (value_field_bitfield): Declare.
5157 * value.c (unpack_bits_as_long): Rename to...
5158 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5159 value parameters. Return the extracted result in a new output
5160 parameter. If the value contents are unavailable, return false,
5161 otherwise return true.
5162 (unpack_value_bits_as_long): New.
5163 (unpack_field_as_long): Rename to...
5164 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5165 Add embedded_offset and value parameters. Return the extracted
5166 result in a new output parameter. If the value contents are
5167 unavailable, return false, otherwise return true.
5168 (unpack_value_field_as_long): New.
5169 (unpack_field_as_long_1): New.
5170 (unpack_field_as_long): Reimplement as wrapper around
5171 unpack_value_field_as_long_1.
5172 (value_field_bitfield): New function.
5173 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5174 unpack_value_bits_as_long. Mark the value as unavailable, if it
5176 * jv-valprint.c (java_print_value_fields): Use
5177 value_field_bitfield.
5178 * p-valprint.c (pascal_object_print_value_fields): Use
5179 value_field_bitfield.
5180 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5182 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5184 * value.c (get_internalvar_integer): Also return the int value of
5185 TYPE_CODE_INT INTERNALVAR_VALUE values.
5186 (set_internalvar): Don't special case TYPE_CODE_INT.
5188 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5190 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5191 INTERNALVAR_POINTER.
5193 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5194 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5195 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5197 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5199 * value.h (value_available_contents_eq): Declare.
5200 * value.c (find_first_range_overlap): New function.
5201 (value_available_contents_eq): New function.
5202 * valprint.c (val_print_array_elements): Use
5203 value_available_contents_eq.
5204 * ada-valprint.c (val_print_packed_array_elements): Use
5205 value_available_contents_eq.
5206 * jv-valprint.c (java_value_print): Use
5207 value_available_contents_eq.
5209 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5211 * target.c (target_read_live_memory): New function.
5212 (memory_xfer_live_readonly_partial): New.
5213 (memory_xfer_partial): If reading from a traceframe, fallback to
5214 reading unavailable read-only memory from read-only regions of
5216 * tracepoint.c (disconnect_tracing): Adjust.
5217 (set_current_traceframe): New, factored out from
5218 set_traceframe_number.
5219 (set_traceframe_number): Reimplement to only change the traceframe
5220 number on the GDB side.
5221 (do_restore_current_traceframe_cleanup): Adjust.
5222 (make_cleanup_restore_traceframe_number): New.
5223 (cur_traceframe_number): New global.
5224 (tfile_open): Set cur_traceframe_number to no traceframe.
5225 (set_tfile_traceframe): New function.
5226 (tfile_trace_find): If looking up a traceframe using any method
5227 other than by number, make sure the current tfile traceframe
5228 matches gdb's current traceframe. Update the current tfile
5229 traceframe if the lookup succeeded.
5230 (tfile_fetch_registers, tfile_xfer_partial)
5231 (tfile_get_trace_state_variable_value): Make sure the remote
5232 traceframe matches gdb's current traceframe.
5233 * remote.c (remote_traceframe_number): New global.
5234 (remote_open_1): Set it to -1.
5235 (set_remote_traceframe): New function.
5236 (remote_fetch_registers, remote_store_registers)
5237 (remote_xfer_memory, remote_xfer_partial)
5238 (remote_get_trace_state_variable_value): Make sure the remote
5239 traceframe matches gdb's current traceframe.
5240 (remote_trace_find): If looking up a traceframe using any method
5241 other than by number, make sure the current remote traceframe
5242 matches gdb's current traceframe. Update the current remote
5243 traceframe if the lookup succeeded.
5244 * infrun.c (fetch_inferior_event): Adjust.
5245 * tracepoint.h (set_current_traceframe): Declare.
5246 (get_traceframe_number, set_traceframe_number): Add describing
5249 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5251 Mark pieces of values as unavailable if the corresponding memory
5254 * valops.c: Include tracepoint.h.
5255 (value_fetch_lazy): Use read_value_memory.
5256 (read_value_memory): New.
5257 * value.h (read_value_memory): Declare.
5258 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5259 * exec.c (section_table_available_memory): New function.
5260 * exec.h (section_table_available_memory): Declare.
5262 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5264 * Makefile.in (SFILES): Add memrange.c.
5265 (HFILES_NO_SRCDIR): Add memrange.h.
5266 (COMMON_OBS): Add memrange.o.
5267 * memrange.c: New file.
5268 * memrange.h: New file.
5269 * tracepoint.c: Include memrange.h.
5270 (struct mem_range): Delete.
5271 (mem_range_s): Delete.
5272 (traceframe_available_memory): New function.
5273 * tracepoint.h (traceframe_available_memory): Declare.
5275 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5277 * target.h (struct traceframe_info): Forward declare.
5278 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5279 (struct target_ops) <to_traceframe_info>: New field.
5280 (target_traceframe_info): New.
5281 * target.c (update_current_target): Inherit and default
5283 * remote.c (PACKET_qXfer_traceframe_info): New.
5284 (remote_protocol_features): Register qXfer:traceframe-info:read.
5285 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5286 (remote_traceframe_info): New.
5287 (init_remote_ops): Install it.
5288 (_initialize_remote): Install "set/show remote traceframe-info"
5290 * tracepoint.h (parse_traceframe_info): Declare.
5291 * tracepoint.c (struct mem_range): New.
5292 (mem_range_s): New typedef.
5293 (struct traceframe_info): New.
5294 (traceframe_info): New global.
5295 (free_traceframe_info): New function.
5296 (clear_traceframe_info): New function.
5297 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5299 (build_traceframe_info): New function.
5300 (tfile_traceframe_info): New function.
5301 (init_tfile_ops): Install tfile_traceframe_info.
5302 (traceframe_info_start_memory, free_result): New functions.
5303 (memory_attributes, traceframe_info_elements): New globals.
5304 (parse_traceframe_info, get_traceframe_info): New functions.
5305 * features/traceframe-info.dtd: New file.
5306 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5308 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5310 Base support for <unavailable> value contents.
5312 * value.h (value_bytes_available): Declare.
5313 (mark_value_bytes_unavailable): Declare.
5314 * value.c (struct range): New struct.
5315 (range_s): New typedef.
5316 (ranges_overlap): New function.
5317 (range_lessthan): New function.
5318 (ranges_contain_p): New function.
5319 (struct value) <unavailable>: New field.
5320 (value_bytes_available): New function.
5321 (mark_value_bytes_unavailable): New function.
5322 (require_not_optimized_out): Constify parameter.
5323 (require_available): New function.
5324 (value_contents_all, value_contents): Require all bytes be
5326 (value_free): Free `unavailable'.
5327 (value_copy): Copy `unavailable'.
5328 * valprint.h (val_print_unavailable): Declare.
5329 * valprint.c (valprint_check_validity): Rename `offset' parameter
5330 to `embedded_offset'. If printing a scalar, check whether the
5331 value chunk is available.
5332 (val_print_unavailable): New.
5333 (val_print_scalar_formatted): Check whether the value is
5335 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5336 pretty-printing unavailable values.
5338 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5340 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5341 * c-typeprint.c (c_type_print_args): Update the function comment. New
5342 variable param_type, initialize it. Remove const/volatile qualifiers
5343 for language_cplus and !show_artificial. Use param_type.
5345 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5347 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5348 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5349 * symtab.h (struct symtab) <next>: Comment extension.
5351 2011-02-12 Yao Qi <yao@codesourcery.com>
5353 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5355 2011-02-11 Yao Qi <yao@codesourcery.com>
5357 * common/Makefile.in: Add copyright header.
5359 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5361 * infrun.c (proceed): Move switching out and in of tfind mode from
5363 (fetch_inferior_event): ... to here.
5365 2011-02-11 Yao Qi <yao@codesourcery.com>
5367 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5369 * configure.ac: Add common to sub dir.
5370 * configure: Regenerate.
5372 2011-02-11 Yao Qi <yao@codesourcery.com>
5376 * common/Makefile.in: New.
5377 * common/configure.ac: New.
5378 * common/aclocal.m4: New.
5379 * common/configure: Generate.
5381 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5383 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5384 side of the parenthesis.
5387 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5388 * vec.h (VEC_block_remove): Fix comment.
5390 2011-02-08 Michael Snyder <msnyder@vmware.com>
5392 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5394 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5396 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5397 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5400 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5403 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5405 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5406 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5408 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5410 * dwarf2read.c (read_subroutine_type): Set special calling
5411 convention flag for functions compiled by IBM XL C for OpenCL.
5412 * ppc-sysv-tdep.c: Include "dwarf2.h"
5413 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5415 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5416 IBM OpenCL vector types calling convention.
5417 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5418 (ppc_sysv_abi_broken_return_value): Likewise.
5419 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5420 types calling convention.
5421 (ppc64_sysv_abi_return_value): Likewise.
5422 * spu-tdep.c: Include "dwarf2.h"
5423 (spu_return_value): Implement IBM OpenCL vector types calling
5426 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5428 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5429 correct ABI for AltiVec vector arguments.
5431 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5433 * valprint.c (val_print): Extend comment.
5434 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5435 interface explanation to val_print.
5436 (ada_val_print_array): Adjust comment to current interface.
5437 (print_field_values): Adjust comment to current interface.
5438 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5439 explanation to val_print.
5440 * f-valprint.c (f_val_print): Ditto.
5441 * jv-valprint.c (java_val_print): Ditto.
5442 * m2-valprint.c (m2_val_print): Ditto.
5443 * p-valprint.c (pascal_val_print): Ditto.
5445 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5447 * breakpoint.c (parse_breakpoint_sals): Fix description.
5449 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5450 Oguz Kayral <oguzkayral@gmail.com>
5452 * python/py-inferior.c (python_on_normal_stop): New function.
5453 (python_on_resume): New function.
5454 (python_inferior_exit): New function.
5455 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5456 inferior_exit observers.
5457 * python/py-evtregistry.c: New file.
5458 * python/py-threadevent.c : New file.
5459 * python/py-event.c: New file.
5460 * python/py-evts.c: New file.
5461 * python/py-continueevent.c: New file.
5462 * python/py-bpevent.c: New file.
5463 * python/py-signalevent.c: New file.
5464 * python/py-exetiedevent.c: New file.
5465 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5466 Move struct breakpoint_object from here...
5467 * python/python-internal.h: ... to here.
5468 * python/py-event.h: New file.
5469 * python/py-events.h: New file.
5470 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5471 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5472 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5473 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5474 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5475 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5476 Add build rules for all the above.
5478 2011-02-04 Tom Tromey <tromey@redhat.com>
5480 * dwarf2read.c (dwarf2_section_empty_p): New function.
5481 (dwarf2_read_section): Use dwarf2_section_empty_p.
5482 (dwarf2_section_size): New function.
5483 (dwarf2_get_section_info): Unconditionally read section.
5484 (dwarf2_read_index): Use dwarf2_section_empty_p.
5485 (partial_read_comp_unit_head): Use dwarf2_section_size.
5486 (dwarf2_symbol_mark_computed): Likewise.
5488 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5490 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5492 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5494 * mips-linux-tdep.c: Include xml-syscall.h.
5495 (mips_linux_get_syscall_number): New function.
5496 (mips_linux_init_abi): Add calls to
5497 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5498 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5499 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5500 * syscalls/mips-n32-linux.xml: New file.
5501 * syscalls/mips-n64-linux.xml: New file.
5502 * syscalls/mips-o32-linux.xml: New file.
5504 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5506 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5507 Complain about inverted range entries.
5508 (dwarf2_record_block_ranges): Likewise.
5510 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5513 * breakpoint.c (update_watchpoint): Fix name of the
5514 update_global_location_list function.
5515 (print_one_breakpoint): Fix typo.
5516 (_initialize_breakpoint): Remove extra space in hbreak help
5518 * breakpoint.h (struct bp_location) <length>: Fix field
5521 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5523 * regcache.c (registers_changed_ptid): Don't explictly always
5524 clear `current_regcache'. Only clear current_thread_ptid and
5525 current_thread_arch when PTID matches. Only reinit the frame
5526 cache if PTID matches the current inferior_ptid. Move alloca(0)
5528 (registers_changed): ... here.
5530 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5532 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5533 starts with __stack_chk_guard as stack guard symbol.
5535 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5537 * disasm.c (compare_lines): Handle the end of sequence markers
5538 within the line table to better support disassembling over
5539 compilation unit boundaries.
5541 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5543 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5544 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5545 implementation even if no symbols are available.
5546 (thumb_analyze_prologue): Update call to skip_prologue_function.
5547 (arm_analyze_prologue): Likewise.
5549 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5551 * arm-tdep.c: Include "observer.h".
5552 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5553 (arm_exidx_data_key): New static variable.
5554 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5555 (struct arm_exidx_data): Likewise.
5556 (arm_exidx_data_free): New function.
5557 (arm_compare_exidx_entries): Likewise.
5558 (arm_obj_section_from_vma): Likewise.
5559 (arm_exidx_new_objfile): Likewise.
5560 (arm_find_exidx_entry): Likewise.
5561 (arm_exidx_fill_cache): Likewise.
5562 (arm_exidx_unwind_sniffer): Likewise.
5563 (arm_exidx_unwind): New global variable.
5564 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5565 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5566 observer. Register arm_exidx_data_key as objfile data.
5568 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5570 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5571 due to accessing uninitialized variable. Fix indentation.
5573 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5575 * c-valprint.c (c_value_print): When doing virtual base pointer
5576 adjustment, create a new value with adjusted contents rather than
5577 changing the contents of the value being printed (and getting it
5580 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5582 * xml-support.c (xml_find_attribute): New.
5583 (xinclude_start_include): Use it.
5584 * xml-support.h (xml_find_attribute): Declare.
5585 * memory-map.c (memory_map_start_memory)
5586 (memory_map_start_property): Use xml_find_attribute.
5587 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5589 * remote.c (start_thread): Use xml_find_attribute.
5590 * solib-target.c (library_list_start_segment)
5591 (library_list_start_section, library_list_start_library)
5592 (library_list_start_list): Use xml_find_attribute.
5593 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5594 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5595 (tdesc_start_field): Use xml_find_attribute.
5597 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5599 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5600 (BUILD_OCL_VTYPES): Update.
5602 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5604 * configure.ac: Work around non-GNU sed limitation when computing
5605 python version number.
5606 * configure: Regenerate.
5608 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5610 Fix debug printing of TYPE_INSTANCE.
5611 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5612 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5614 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5616 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5617 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5618 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5619 * ada-operator.inc: Rename the file to ...
5620 * ada-operator.def: ... here, wrap all the entries by macro OP.
5621 * expprint.c (op_name_standard): Remove all the entries. Include
5622 "std-operator.def" instead.
5623 * expression.h (enum exp_opcode): Include "std-operator.def" and
5624 "ada-operator.def". Move all the entries ...
5625 * std-operator.def: ... here, wrap all the entries by macro OP.
5627 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5629 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5630 * breakpoint.c (remove_jit_event_breakpoints): New function.
5631 * jit.c (jit_descriptor_addr): Delete.
5632 (registering_code): Delete.
5633 (clear_int): Delete.
5634 (jit_inferior_data): New variable.
5635 (struct jit_inferior_data): New type.
5636 (get_jit_inferior_data): New function.
5637 (jit_inferior_data_cleanup): New function.
5638 (jit_read_descriptor): Adjust.
5639 (jit_register_code): Adjust.
5640 (jit_breakpoint_re_set_internal): New function; move code here ...
5641 (jit_inferior_init): ... from here.
5642 (jit_breakpoint_re_set): Adjust.
5643 (jit_reset_inferior_data_and_breakpoints): New function.
5644 (jit_inferior_created_observer): Adjust.
5645 (jit_inferior_exit_hook): Adjust.
5646 (jit_executable_changed_observer): New function.
5647 (jit_event_handler): Adjust.
5648 (_initialize_jit): Adjust.
5650 2011-01-31 Michael Snyder <msnyder@vmware.com>
5652 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5655 2011-01-31 Tom Tromey <tromey@redhat.com>
5658 * python/python.c (execute_gdb_command): Call
5659 prevent_dont_repeat.
5660 * top.c (suppress_dont_repeat): New global.
5661 (dont_repeat): Use it.
5662 (prevent_dont_repeat): New function.
5663 * command.h (prevent_dont_repeat): Declare.
5665 2011-01-31 Tom Tromey <tromey@redhat.com>
5667 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5668 * python/py-breakpoint.c (bppy_set_silent): Use
5669 breakpoint_set_silent.
5670 (bppy_set_thread): Use breakpoint_set_thread.
5671 (bppy_set_task): Use breakpoint_set_task.
5672 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5673 (breakpoint_set_task): Declare.
5674 (make_breakpoint_silent): Remove.
5675 * breakpoint.c (breakpoint_set_silent): New function.
5676 (breakpoint_set_thread): Likewise.
5677 (breakpoint_set_task): Likewise.
5678 (make_breakpoint_silent): Remove.
5680 2011-01-31 Tom Tromey <tromey@redhat.com>
5682 * breakpoint.h (user_breakpoint_p): Declare.
5683 * breakpoint.c (user_breakpoint_p): New function.
5684 (breakpoint_1): Use it.
5685 (save_breakpoints): Likewise.
5687 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5689 * configure.ac: Add handling of Python distribution on Windows.
5690 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5691 sysconfig variables are not defined, then do not use them.
5692 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5693 instead. On Windows, return all paths using forward-slashes
5694 rather than backslashes.
5696 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5698 * configure.ac: Remove fallback behavior for building
5699 against Python. Remove tweaking of Python include path.
5700 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5701 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5702 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5703 Always restore CPPFLAGS and LIBS after linking test.
5704 * configure: Regenerated.
5705 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5706 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5707 * python/python-internal.h: Adjust includes of Python .h files.
5709 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5711 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5714 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5716 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5719 2011-01-31 Yao Qi <yao@codesourcery.com>
5721 * arm-linux-nat.c: Update calls to regcache_register_status
5722 instead of regcache_valid_p.
5723 * aix-thread.c: Likewise.
5724 * i386gnu-nat.c: Likewise.
5726 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5729 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5730 touching TYPE_FIELD_ARTIFICIAL.
5732 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
5734 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5737 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5739 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5740 selected, don't try iterating over the traceframe's blocks.
5741 (tfile_has_stack): If there's no traceframe selected, then there's
5743 (tfile_has_registers): If there's no traceframe selected, then
5744 there's no registers.
5746 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5748 * target.c (memory_xfer_partial): No need to restore shadows if we
5749 haven't read anything.
5751 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5753 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5754 and val_print_scalar_formatted.
5756 2011-01-27 Pedro Alves <pedro@codesourcery.com>
5758 * tracepoint.c (tfile_read): New.
5759 (tfile_open): Use it.
5760 (tfile_get_traceframe_address): Use it.
5761 (tfile_trace_find): Use it.
5762 (walk_blocks_callback_func): New typedef.
5763 (match_blocktype): New function.
5764 (traceframe_walk_blocks): New function.
5765 (traceframe_find_block_type): New function.
5766 (tfile_fetch_registers, tfile_xfer_partial)
5767 (tfile_get_trace_state_variable_value): Use
5768 traceframe_find_block_type and tfile_read.
5770 2011-01-26 Kevin Buettner <kevinb@redhat.com>
5772 * remote-mips.c: Add internationalization mark ups. Remove
5773 trailing \n from already marked up strings.
5775 2011-01-26 Tom Tromey <tromey@redhat.com>
5777 * python/py-prettyprint.c (print_string_repr): Clear
5778 'addressprint' option when calling val_print_string.
5779 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5780 option when calling val_print_string.
5782 2011-01-26 Tom Tromey <tromey@redhat.com>
5784 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5786 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5788 (gdb_py_longest, gdb_py_ulongest): New typedefs.
5789 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5790 (gdb_py_long_as_ulongest): New defines.
5791 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5792 (gdb_py_int_as_long): Declare.
5793 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5794 GDB_PY_LL_ARG, gdb_py_object_from_longest.
5795 (valpy_long): Add comment.
5796 * python/py-utils.c (get_addr_from_python): Use
5797 gdb_py_long_as_ulongest. Handle overflow properly.
5798 (gdb_py_object_from_longest): New function.
5799 (gdb_py_object_from_ulongest): Likewise.
5800 (gdb_py_int_as_long): Likewise.
5801 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5802 * python/py-symtab.c (salpy_get_pc): Use
5803 gdb_py_long_from_ulongest.
5804 (salpy_get_line): Use PyInt_FromLong.
5805 * python/py-param.c (set_parameter_value): Use
5807 * python/py-lazy-string.c (stpy_get_address): Use
5808 gdb_py_long_from_ulongest.
5809 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5810 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5811 * python/py-breakpoint.c (bppy_set_thread): Use
5813 (bppy_set_task): Likewise.
5814 (bppy_set_ignore_count): Likewise.
5815 (bppy_set_hit_count): Likewise.
5816 * python/py-block.c (blpy_get_start): Use
5817 gdb_py_object_from_ulongest.
5818 (blpy_get_end): Likewise.
5819 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5821 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
5824 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5825 * gdb/solib.c (solib_read_symbols): Check for addr_low in
5826 equality test for objfile, initialize addr_low if needed.
5828 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5830 * tui/tui-regs.c (tui_register_format): Remove dead code.
5832 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5834 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5835 instead of print_scalar_formatted.
5836 (print_scalar_formatted): Don't handle 's' format strings here,
5837 and add an assertion that we never see such format here.
5838 * valprint.h (val_print_scalar_formatted): Declare.
5839 * valprint.c (val_print_scalar_formatted): New.
5840 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5841 instead of print_scalar_formatted.
5842 * jv-valprint.c (java_val_print): Ditto.
5843 * p-valprint.c (pascal_val_print): Ditto.
5844 * ada-valprint.c (ada_val_print_1): Ditto.
5845 * f-valprint.c (f_val_print): Ditto.
5846 * infcmd.c (registers_info): Ditto.
5847 * m2-valprint.c (m2_val_print): Ditto.
5849 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5851 * m2-valprint.c (print_unbounded_array): Pass
5852 value_contents_for_printing rather than value_contents, to
5853 m2_print_array_contents. Also pass in the value.
5855 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5857 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5858 (save_gdb_index_command): Switch to .gdb_index version 4.
5860 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5862 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5863 than frame_register, and always pass a valid value to val_print.
5865 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5867 Centralize printing "<optimized out>".
5869 * valprint.h (val_print_optimized_out): Declare.
5870 * cp-valprint.c (cp_print_value_fields): Use
5871 val_print_optimized_out.
5872 * jv-valprint.c (java_print_value_fields): Ditto.
5873 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5874 * printcmd.c (print_formatted): Ditto.
5875 * valprint.c (valprint_check_validity): Ditto.
5876 (value_check_printable): Ditto.
5877 (val_print_optimized_out): New.
5879 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5881 * infcmd.c (default_print_registers_info): Allocate values so to
5882 never pass a NULL value to val_print.
5884 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5886 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5887 boolean. Make sure to always pass a value that matches the
5888 contents buffer to callees. Preserve `address' for following
5890 * value.c (value_contents_for_printing_const): New.
5891 (value_address): Constify value argument.
5892 * value.h (value_contents_for_printing_const): Declare.
5893 (value_address): Constify value argument.
5895 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5897 * regcache.c (struct regcache_descr): Rename
5898 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5899 and sizeof_cooked_register_valid_p to
5900 sizeof_cooked_register_status.
5901 (init_regcache_descr): Adjust.
5902 (struct regcache): Rename register_valid_p field to
5904 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5905 (do_cooked_read): Adjust.
5906 (regcache_valid_p): Rename to ...
5907 (regcache_register_status): ... this. Adjust.
5908 (regcache_invalidate): Adjust.
5909 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5911 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5912 as unavailable, not valid.
5913 (regcache_dump): Adjust.
5914 * regcache.h (enum register_status): New.
5915 (regcache_register_status): Declare.
5916 (regcache_invalidate): Delete declaration.
5917 * corelow.c (get_core_registers): Adjust.
5918 * tracepoint.c (tfile_fetch_registers): Adjust.
5919 * trad-frame.c (REG_VALUE): Rename to ...
5920 (TF_REG_VALUE): ... this.
5921 (REG_UNKNOWN): Rename to ...
5922 (TF_REG_UNKNOWN): ... this.
5923 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5924 * mi/mi-main.c (register_changed_p): Adjust.
5926 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5928 * regcache.c (struct regcache_descr): Remove outdated comment.
5929 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5931 (regcache_xmalloc): Rename to ...
5932 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5933 Allocate the regcache type accordingly.
5934 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5935 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5936 cooked registers, not raw.
5937 (regcache_dup_no_passthrough): Delete.
5938 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5939 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5940 mention obsolete write_register_bytes.
5941 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5943 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5945 Stop remote_read_bytes from handling partial reads itself.
5947 * remote-fileio.c: Include target.h.
5948 (remote_fileio_write_bytes): Delete.
5949 (remote_fileio_func_open, remote_fileio_func_write)
5950 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5952 (remote_fileio_func_stat): Use target_read_memory and
5953 target_write_memory.
5954 (remote_fileio_func_gettimeofday): Use target_write_memory.
5955 (remote_fileio_func_system): Use target_read_memory.
5956 * remote.c (remote_write_bytes): Make it static.
5957 (remote_read_bytes): Don't handle partial reads here.
5958 * remote.h (remote_read_bytes): Delete declaration.
5960 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5962 Simplify XML parsing a bit.
5964 * xml-support.h (gdb_xml_parse_quick): Declare.
5965 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5966 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5968 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5969 gdb_xml_create_parser_and_cleanup_1.
5970 (gdb_xml_parse_quick): New.
5971 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5972 * osdata.c (osdata_parse): Ditto.
5973 * remote.c (remote_threads_info): Ditto.
5974 * solib-target.c (solib_target_parse_libraries): Ditto.
5975 * xml-syscall.c (syscall_parse_xml): Ditto.
5976 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5978 2011-01-24 Kevin Buettner <kevinb@redhat.com>
5980 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5981 with remote-mips.o added to gdb_target_obs.
5982 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5984 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5986 * ada-valprint.c (val_print_packed_array_elements): Pass the
5987 correct struct value to val_print.
5988 (ada_val_print_1): Ditto.
5990 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5992 Don't lose embedded_offset in printing routines throughout.
5994 * valprint.h (val_print_array_elements): Change prototype.
5995 * valprint.c (val_print_array_elements): Add `embedded_offset'
5996 parameter, and adjust to pass it down to val_print, while passing
5997 `valaddr' or `address' unmodified. Take embedded_offset into
5998 account when checking repetitions.
5999 * c-valprint.c (c_val_print): Pass embedded_offset to
6000 val_print_array_elements instead of adjusting `valaddr' and
6002 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6003 embedded_offset to val_print_array_elements instead of adjusting
6005 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6006 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6007 val_print_array_elements and pascal_object_print_value_fields
6008 instead of adjusting `valaddr'.
6009 (pascal_object_print_value_fields): Add `offset' parameter, and
6011 (pascal_object_print_value): Add `offset' parameter, and adjust to
6013 (pascal_object_print_static_field): Use
6014 value_contents_for_printing/value_embedded_offset, rather than
6016 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6017 parameter, and adjust to use it. Use
6018 value_contents_for_printing/value_embedded_offset, rather than
6020 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6021 (ada_val_print_array): Add `offset' parameter, and adjust to use
6023 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6024 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6025 Instead work with offsets. Use
6026 value_contents_for_printing/value_embedded_offset, rather than
6027 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6028 and use value_from_pointer to extract a target pointer, rather
6029 than value_from_longest.
6030 (print_variant_part): Add `offset' parameter. Replace
6031 `outer_valaddr' parameter by a new `outer_offset' parameter.
6032 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6033 (ada_value_print): Use
6034 value_contents_for_printing/value_embedded_offset, rather than
6036 (print_record): Add `offset' parameter, and adjust to pass it
6038 (print_field_values): Add `offset' parameter. Replace
6039 `outer_valaddr' parameter by a new `outer_offset' parameter.
6040 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6041 Use value_contents_for_printing/value_embedded_offset, rather than
6043 * d-valprint.c (dynamic_array_type): Use
6044 value_contents_for_printing/value_embedded_offset, rather than
6046 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6047 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6048 (java_print_value_fields): Take `offset' into account. Don't
6049 re-adjust `valaddr'. Instead pass down adjusted offsets.
6050 (java_val_print): Take `embedded_offset' into account. Pass it to
6051 java_print_value_fields.
6052 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6053 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6054 down adjusted offsets.
6055 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6056 (f_val_print): Take `embedded_offset' into account.
6058 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6060 * inflow.c: Include "gdbcmd.h".
6061 (interactive_mode): New static global, moved here from top.c.
6062 (show_interactive_mode): New function, moved here from top.c.
6063 use gdb_has_a_terminal instead of input_from_terminal_p to
6064 determine the current mode.
6065 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6067 (_initialize_inflow): Add the "set/show interactive-mode"
6068 commands. Moved here from top.c, after having adjusted slightly
6070 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6072 (input_from_terminal_p): Remove handling of "interactive-mode"
6073 setting, moved to infow.c.
6074 (init_main): Remove creation of the "set/show interactive-mode"
6075 commands, moved to inflow.c.
6077 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6079 * NEWS: Add entry for native ia64-hpux support.
6081 2011-01-19 Tom Tromey <tromey@redhat.com>
6084 * thread.c (free_thread): Free 'name'.
6085 (print_thread_info): Emit thread name. Change CLI output.
6086 (thread_name_command): New function.
6087 (do_captured_thread_select): Emit newline.
6088 (_initialize_thread): Register 'thread name' command.
6089 * target.h (struct target_ops) <to_thread_name>: New field.
6090 (target_thread_name): New macro.
6091 * target.c (update_current_target): Handle to_thread_name.
6092 * python/py-infthread.c (thpy_get_name): New function.
6093 (thpy_set_name): Likewise.
6094 (thread_object_getset): Add "name".
6095 * linux-nat.c (linux_nat_thread_name): New function.
6096 (linux_nat_add_target): Set to_thread_name.
6097 * gdbthread.h (struct thread_info) <name>: New field.
6099 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6101 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6102 (ada_val_print_1): Likewise.
6104 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6106 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6107 upper limit address is not greater than the function end address
6108 when the upper limit could not be computed using the debugging
6111 2011-01-17 Tom Tromey <tromey@redhat.com>
6113 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6115 * utils.c: Include gdb_regex.h.
6116 (do_regfree_cleanup): New function.
6117 (make_regfree_cleanup): Likewise.
6118 (get_regcomp_error): Likewise.
6119 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6121 2011-01-17 Tom Tromey <tromey@redhat.com>
6123 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6126 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6128 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6129 for internal variables.
6130 (last_was_structop): New static variable.
6131 (COMPLETE): New token.
6132 (field_exp): New rule to group all '.' suffix handling.
6133 Add mark_struct_expression calls when approriate to be able
6134 to correctly find fields for completion.
6135 (yylex): Adapt to handle field completion and set INTVAR when
6138 2011-01-14 Yao Qi <yao@codesourcery.com>
6140 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6141 save_reggroup, restore_reggroup and all_reggroup.
6143 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6145 * ada-valprint. (ada_printchar): Use the correct type length
6146 in call to ada_emit_char.
6147 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6149 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6151 * solib-som.h (hpux_major_release): Declare variable here.
6152 * solib-som.c: Remove <sys/utsname.h> header.
6153 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6154 (hpux_major_release): Make global, change default value to
6155 DEFAULT_HPUX_MAJOR_RELEASE.
6156 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6157 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6158 Add "solib-som.h" header.
6159 (set_hpux_major_release): New function.
6160 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6162 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6164 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6166 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6168 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6169 new-line at end of warning message.
6170 (ia64_hpux_store_register): Remove trailing new-line at end of
6172 * ia64-hpux-tdep.c: Rephrase comment.
6173 * solib-ia64-hpux.c (struct dld_info): Change type of field
6174 dld_flags from "long long" to ULONGEST.
6176 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6178 * target.h (deprecated_child_ops): Delete declaration.
6179 * target.c (deprecated_child_ops): Delete definition.
6181 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6183 * Makefile.in (hpux-thread.o): Delete rule.
6184 * configure.ac: Don't check for HPUX DCE threads support.
6185 * configure, config.in: Regenerate.
6186 * hppa-hpux-nat.c (child_suppress_run): Delete.
6187 (hppa_hpux_child_can_run): Delete.
6188 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6189 * hpux-thread.c: Delete.
6191 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6193 * hpux-thread.c (hpux_pid_to_str): Delete.
6195 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6197 * ada-valprint.c (ada_emit_char): Remove strange code.
6198 Check that c is <= UCHAR_MAX before passing it to isascii.
6199 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6201 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6203 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6204 to the case where instream is stdin.
6206 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6208 * ia64-tdep.h (struct regcache): Forward declare.
6209 (struct ia64_infcall_ops): New struct type.
6210 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6212 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6213 Renames ia64_find_global_pointer.
6214 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6215 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6216 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6218 (ia64_infcall_ops): New static global constant.
6219 (ia64_gdbarch_init): Set tdep->infcall_ops.
6220 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6221 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6222 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6223 (ia64_hpux_dummy_code): New static global constant.
6224 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6225 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6226 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6228 (ia64_hpux_infcall_ops): New static global constant.
6229 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6230 for inferior function calls to work properly on ia64-hpux.
6232 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6234 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6235 * ia64-tdep.h (struct frame_info): forward declaration.
6236 (struct gdbarch_tdep): Add field size_of_register_frame.
6237 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6238 to determine the size of the register frame.
6239 (ia64_size_of_register_frame): New function.
6240 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6241 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6242 (IA64_HPUX_UREG_REASON): New macro.
6243 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6245 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6246 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6247 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6250 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6252 Add support for ia64-hpux.
6253 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6254 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6256 * configure.host: Add handling for ia64-hpux hosts. Add associated
6258 * configure.tgt: Add handling for ia64-hpux targets.
6259 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6260 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6261 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6263 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6265 [ttrace] Compute thread list immediately after attach.
6266 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6268 (inf_ttrace_attach): Use it.
6270 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6272 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6273 if we could not determine the frame's function address. Instead,
6274 use the frame's PC, and then continue.
6276 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6278 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6279 not already defined.
6281 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6283 * ia64-tdep.c (ia64_struct_type_p): New function.
6284 (ia64_extract_return_value): Handle integral values that are
6285 less than 8 bytes long.
6286 (ia64_push_dummy_call): Likewise.
6288 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6290 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6291 floatformat_ia64_ext.
6292 (floatformat_ia64_ext_big): New static const.
6293 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6295 2011-01-12 Tom Tromey <tromey@redhat.com>
6297 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6299 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6300 (mi_cmd_thread_list_ids): Likewise.
6301 (mi_cmd_data_list_changed_registers): Likewise.
6302 (mi_cmd_data_list_register_values): Likewise.
6303 (mi_cmd_data_write_register_values): Likewise.
6304 (mi_cmd_data_evaluate_expression): Likewise.
6305 (mi_cmd_data_read_memory): Likewise.
6306 (mi_cmd_data_read_memory_bytes): Likewise.
6307 (mi_cmd_data_write_memory): Likewise.
6308 (mi_cmd_enable_timings): Likewise.
6309 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6310 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6311 (mi_cmd_var_delete): Likewise.
6312 (mi_cmd_var_set_format): Likewise.
6313 (mi_cmd_var_show_format): Likewise.
6314 (mi_cmd_var_info_num_children): Likewise.
6315 (mi_cmd_var_list_children): Likewise.
6316 (mi_cmd_var_info_type): Likewise.
6317 (mi_cmd_var_info_expression): Likewise.
6318 (mi_cmd_var_show_attributes): Likewise.
6319 (mi_cmd_var_assign): Likewise.
6320 (mi_cmd_var_update): Likewise.
6321 (mi_cmd_enable_pretty_printing): Likewise.
6322 (mi_cmd_var_set_update_range): Likewise.
6323 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6325 (mi_cmd_target_file_put): Likewise.
6326 (mi_cmd_target_file_delete): Likewise.
6327 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6329 (mi_cmd_stack_info_depth): Likewise.
6330 (mi_cmd_stack_list_locals): Likewise.
6331 (mi_cmd_stack_list_args): Likewise.
6332 (mi_cmd_stack_select_frame): Likewise.
6333 (mi_cmd_stack_select_frame): Likewise.
6334 (mi_cmd_stack_info_frame): Likewise.
6335 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6337 (mi_cmd_file_list_exec_source_files): Likewise.
6338 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6339 (mi_cmd_env_cd): Likewise.
6340 (mi_cmd_env_path): Likewise.
6341 (mi_cmd_env_dir): Likewise.
6342 (mi_cmd_inferior_tty_show): Likewise.
6343 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6344 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6345 (mi_cmd_break_watch): Likewise.
6347 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6349 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6350 (ppc_linux_insert_hw_breakpoint): Likewise.
6351 (ppc_linux_remove_hw_breakpoint): Likewise.
6352 (ppc_linux_insert_watchpoint): Likewise.
6354 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6355 Jan Kratochvil <jan.kratochvil@redhat.com>
6357 PR fortran/11104 and DWARF unbound arrays detection.
6358 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6359 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6360 unspecified upper bound.
6361 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6362 variables array_size_array, tmp_type and offset_item. New variable
6363 array. Remove call to f77_get_upperbound. New variables array_type
6364 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6365 the final call to deprecated_set_value_type.
6367 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6369 Make value allocations more lazy.
6370 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6371 instead of allocate_value and set_value_lazy when possible.
6372 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6373 instead of allocate_value and set_value_lazy.
6374 * findvar.c (value_of_register_lazy): Likewise.
6375 (read_var_value): Remove V preallocation, call just check_typedef in
6376 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6377 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6378 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6379 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6380 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6381 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6382 the end, remove set_value_lazy there.
6383 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6384 instead of allocate_value and set_value_lazy when possible.
6385 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6386 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6387 of allocate_value and set_value_lazy.
6388 (value_from_contents_and_address): Use allocate_value_lazy instead of
6389 allocate_value and set_value_lazy when possible.
6391 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6393 * disasm.c (dump_insns): Support dumping opcodes for MI.
6394 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6395 dumping of instruction opcodes.
6397 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6399 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6402 2011-01-11 Tom Tromey <tromey@redhat.com>
6404 * thread.c (do_captured_thread_select): Emit newline before
6407 2011-01-11 Michael Snyder <msnyder@vmware.com>
6409 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6410 * score-tdep.c: Ditto.
6411 * score-tdep.h: Ditto.
6412 * ser-base.c: Ditto.
6413 * ser-go32.c: Ditto.
6416 * ser-mingw.c: Ditto.
6417 * ser-pipe.c: Ditto.
6419 * ser-unix.c: Ditto.
6420 * sh64-tdep.c: Ditto.
6421 * shnbsd-nat.c: Ditto.
6425 * solib-darwin.c: Ditto.
6426 * solib-frv.c: Ditto.
6428 * solib-irix.c: Ditto.
6429 * solib-osf.c: Ditto.
6430 * solib-pa64.c: Ditto.
6431 * solib-som.c: Ditto.
6432 * solib-spu.c: Ditto.
6433 * solib-sunos.c: Ditto.
6434 * solib-svr4.c: Ditto.
6436 * sol-thread.c: Ditto.
6440 * sparc64-linux-tdep.c: Ditto.
6441 * sparc64-tdep.c: Ditto.
6442 * sparc-linux-nat.c: Ditto.
6443 * sparc-linux-tdep.c: Ditto.
6444 * sparc-sol2-nat.c: Ditto.
6445 * sparc-sol2-tdep.c: Ditto.
6446 * sparc-tdep.c: Ditto.
6447 * sparc-tdep.h: Ditto.
6448 * spu-tdep.c: Ditto.
6449 * stabsread.c: Ditto.
6450 * stabsread.h: Ditto.
6458 * target-descriptions.c: Ditto.
6459 * target-descriptions.h: Ditto.
6461 * target-memory.c: Ditto.
6462 * terminal.h: Ditto.
6465 * tracepoint.c: Ditto.
6466 * tracepoint.h: Ditto.
6467 * trad-frame.h: Ditto.
6468 * typeprint.c: Ditto.
6470 2011-01-11 Michael Snyder <msnyder@vmware.com>
6472 * ui-file.c: Comment cleanup, mostly periods and spaces.
6477 * v850-tdep.c: Ditto.
6478 * valarith.c: Ditto.
6480 * valprint.c: Ditto.
6481 * valprint.h: Ditto.
6486 * vax-tdep.c: Ditto.
6490 * windows-nat.c: Ditto.
6491 * windows-tdep.c: Ditto.
6492 * xcoffread.c: Ditto.
6493 * xcoffsolib.c: Ditto.
6494 * xml-support.c: Ditto.
6495 * xstormy16-tdep.c: Ditto.
6496 * xtensa-tdep.c: Ditto.
6497 * xtensa-tdep.h: Ditto.
6499 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6501 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6502 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6504 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6505 Thiago Jung Bauermann <bauerman@br.ibm.com>
6507 Implement support for PowerPC BookE ranged watchpoints.
6509 (struct breakpoint_ops) <resources_needed>: New method.
6510 Initialize to NULL in all existing breakpoint_ops instances.
6511 (struct breakpoint) <exact>: New field.
6512 (target_exact_watchpoints): Declare external global.
6513 * breakpoint.c (target_exact_watchpoints): New global flag.
6514 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6515 b->enable_state to bp_enabled before calling
6516 hw_watchpoint_used_count.
6517 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6518 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6520 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6521 if the watchpoint is exact.
6522 (resources_needed_watchpoint): New function.
6523 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6524 (watch_command_1): Set b->exact if the user asked for an exact
6525 watchpoint and one can be set.
6526 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6527 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6528 the user asks for an exact watchpoint and one can be set. Return
6529 number of needed debug registers to watch the expression.
6530 * gdbtypes.c (is_scalar_type): New function, based on
6531 valprint.c:scalar_type_p.
6532 (is_scalar_type_recursive): New function.
6533 * gdbtypes.h (is_scalar_type_recursive): Declare.
6534 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6535 handle regions when ranged watchpoints are available.
6536 (create_watchpoint_request): New function.
6537 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6538 create_watchpoint_request.
6539 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6540 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6541 `set powerpc' and `show powerpc' commands.
6542 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6543 Mention documentation comment in the target macro.
6544 (target_region_ok_for_hw_watchpoint): Document return value.
6546 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6548 * breakpoint.c (update_watchpoint): Decide on using a software or
6549 hardware watchpoint after the bp_locations are created.
6551 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6553 Convert hardware watchpoints to use breakpoint_ops.
6554 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6555 <insert_location>: ... this. Return int instead of void.
6556 Accept pointer to struct bp_location instead of pointer to
6557 struct breakpoint. Adapt all implementations.
6558 (breakpoint_ops) <remove>: Rename to...
6559 <remove_location>: ... this. Accept pointer to struct bp_location
6560 instead of pointer to struct breakpoint. Adapt all implementations.
6561 * breakpoint.c (insert_catchpoint): Delete function.
6562 (insert_bp_location): Call the watchpoint or catchpoint's
6563 breakpoint_ops.insert method.
6564 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6565 breakpoint_ops.remove method.
6566 (insert_watchpoint, remove_watchpoint): New functions.
6567 (watchpoint_breakpoint_ops): New structure.
6568 (watch_command_1): Initialize the OPS field.
6569 * inf-child.c (inf_child_insert_fork_catchpoint)
6570 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6571 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6572 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6574 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6575 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6576 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6577 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6578 * target.c (update_current_target): Change default implementation of
6579 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6580 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6581 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6582 to_set_syscall_catchpoint to return_one.
6583 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6584 (debug_to_insert_exec_catchpoint): Report return value.
6585 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6586 (to_insert_exec_catchpoint): Change declaration to return int instead
6589 2011-01-11 Michael Snyder <msnyder@vmware.com>
6591 * arm-tdep.c: Internationalization.
6594 * fork-child.c: Ditto.
6595 * nto-procfs.c: Ditto.
6596 * ppc-sysv-tdep.c: Ditto.
6598 * remote-mips.c: Ditto.
6600 * rs6000-nat.c: Ditto.
6601 * rs6000-tdep.c: Ditto.
6605 * xml-support.c: Ditto.
6606 * mi/mi-cmd-break.c: Ditto.
6607 * mi/mi-cmd-var.c: Ditto.
6608 * mi/mi-interp.c: Ditto.
6609 * mi/mi-main.c: Ditto.
6611 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6613 * remote-sim.c (gdbsim_store_register): Update API to
6614 sim_store_register to check more error conditions.
6616 2011-01-10 Michael Snyder <msnyder@vmware.com>
6618 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6619 * nto-tdep.c: Ditto.
6620 * nto-tdep.h: Ditto.
6621 * objc-exp.y: Ditto.
6622 * objc-lang.c: Ditto.
6623 * objfiles.c: Ditto.
6624 * objfiles.h: Ditto.
6625 * observer.c: Ditto.
6626 * opencl-lang.c: Ditto.
6629 * parser-defs.h: Ditto.
6632 * posix-hdep.c: Ditto.
6633 * ppcbug-rom.c: Ditto.
6634 * ppc-linux-nat.c: Ditto.
6635 * ppc-linux-tdep.c: Ditto.
6636 * ppc-linux-tdep.h: Ditto.
6637 * ppcnbsd-tdep.c: Ditto.
6638 * ppcobsd-tdep.c: Ditto.
6639 * ppcobsd-tdep.h: Ditto.
6640 * ppc-sysv-tdep.c: Ditto.
6641 * ppc-tdep.h: Ditto.
6642 * printcmd.c: Ditto.
6643 * proc-abi.c: Ditto.
6644 * proc-flags.c: Ditto.
6646 * proc-utils.h: Ditto.
6647 * progspace.h: Ditto.
6648 * prologue-value.c: Ditto.
6649 * prologue-value.h: Ditto.
6650 * psympriv.h: Ditto.
6652 * p-typeprint.c: Ditto.
6653 * p-valprint.c: Ditto.
6654 * ravenscar-sparc-thread.c: Ditto.
6655 * ravenscar-thread.c: Ditto.
6656 * ravenscar-thread.h: Ditto.
6658 * regcache.c: Ditto.
6659 * regcache.h: Ditto.
6661 * remote-fileio.c: Ditto.
6662 * remote-fileio.h: Ditto.
6664 * remote-m32r-sdi.c: Ditto.
6665 * remote-mips.c: Ditto.
6666 * remote-sim.c: Ditto.
6667 * rs6000-aix-tdep.c: Ditto.
6668 * rs6000-nat.c: Ditto.
6669 * rs6000-tdep.c: Ditto.
6671 2011-01-10 Michael Snyder <msnyder@vmware.com>
6673 * charset.c (validate): Internationalization.
6674 * coffread.c (read_one_sym): Ditto.
6675 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6676 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6677 * inflow.c (new_tty): Ditto.
6678 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6679 * m32c-tdep.c (m32c_return_value): Ditto.
6680 * mep-tdep.c (mep_store_return_value): Ditto.
6681 * score-tdep.c (score7_fetch_insn): Ditto.
6682 * ser-mingw.c (pipe_windows_open): Ditto.
6683 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6684 * spu-tdep.c (spu_register_type): Ditto.
6685 * tracepoint.c (trace_find_command): Ditto.
6686 * valarith.c (value_pos): Ditto.
6688 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6690 * ada-valprint.c (printstr): Minor comment reformatting.
6692 2011-01-08 Michael Snyder <msnyder@vmware.com>
6694 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6697 2011-01-08 Michael Snyder <msnyder@vmware.com>
6699 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6700 * hppa-hpux-tdep.c: Ditto.
6701 * hppa-linux-nat.c: Ditto.
6702 * hppa-linux-tdep.c: Ditto.
6703 * hppanbsd-tdep.c: Ditto.
6704 * hppa-tdep.c: Ditto.
6705 * hppa-tdep.h: Ditto.
6706 * hpux-thread.c: Ditto.
6707 * i386-cygwin-tdep.c: Ditto.
6708 * i386-darwin-nat.c: Ditto.
6709 * i386gnu-nat.c: Ditto.
6710 * i386-linux-nat.c: Ditto.
6711 * i386-linux-tdep.c: Ditto.
6712 * i386-nat.c: Ditto.
6713 * i386-nat.h: Ditto.
6714 * i386nbsd-tdep.c: Ditto.
6715 * i386-sol2-nat.c: Ditto.
6716 * i386-stub.c: Ditto.
6717 * i386-tdep.c: Ditto.
6718 * i386-tdep.h: Ditto.
6719 * i387-tdep.c: Ditto.
6720 * ia64-linux-nat.c: Ditto.
6721 * ia64-linux-tdep.c: Ditto.
6722 * ia64-tdep.c: Ditto.
6726 * inferior.c: Ditto.
6727 * inferior.h: Ditto.
6733 * iq2000-tdep.c: Ditto.
6734 * irix5-nat.c: Ditto.
6740 * jv-typeprint.c: Ditto.
6741 * jv-valprint.c: Ditto.
6742 * language.c: Ditto.
6743 * language.h: Ditto.
6744 * linespec.c: Ditto.
6745 * linux-fork.c: Ditto.
6746 * linux-nat.c: Ditto.
6747 * linux-thread-db.c: Ditto.
6748 * lm32-tdep.c: Ditto.
6750 2011-01-08 Michael Snyder <msnyder@vmware.com>
6752 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6754 * m2-typeprint.c: Ditto.
6755 * m2-valprint.c: Ditto.
6756 * m32c-tdep.c: Ditto.
6757 * m32r-linux-nat.c: Ditto.
6758 * m32r-rom.c: Ditto.
6759 * m32r-tdep.c: Ditto.
6760 * m32r-tdep.h: Ditto.
6761 * m68hc11-tdep.c: Ditto.
6762 * m58klinux-nat.c: Ditto.
6763 * m68k-tdep.c: Ditto.
6764 * m88k-tdep.c: Ditto.
6765 * m88k-tdep.h: Ditto.
6766 * machoread.c: Ditto.
6767 * macrocmd.c: Ditto.
6768 * macroexp.c: Ditto.
6769 * macrotab.c: Ditto.
6772 * mdebugread.c: Ditto.
6773 * mdebugread.h: Ditto.
6776 * memory-map.h: Ditto.
6777 * mep-tdep.c: Ditto.
6778 * microblaze-rom.c: Ditto.
6779 * microblaze-tdep.c: Ditto.
6781 * mips-irix-tdep.c: Ditto.
6782 * mips-linux-nat.c: Ditto.
6783 * mips-linux-tdep.c: Ditto.
6784 * mips-linux-tdep.h: Ditto.
6785 * mipsnbsd-nat.c: Ditto.
6786 * mipsnbsd-tdep.c: Ditto.
6787 * mipsread.c: Ditto.
6788 * mips-tdep.c: Ditto.
6789 * mips-tdep.h: Ditto.
6790 * mn10300-linux-tdep.c: Ditto.
6791 * mn10300-tdep.c: Ditto.
6792 * mn10300-tdep.h: Ditto.
6795 * moxie-tdep.c: Ditto.
6796 * moxie-tdep.h: Ditto.
6799 2011-01-08 Mike Frysinger <vapier@gentoo.org>
6801 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6803 2011-01-08 Robert Millan <rmh@gnu.org>
6805 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6807 2011-01-07 Michael Snyder <msnyder@vmware.com>
6809 * charset.c (_initialize_charset): Fix typo in string.
6811 2011-01-07 Michael Snyder <msnyder@vmware.com>
6813 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6815 * tui/tui-layout.c (tui_set_layout_for_display_command):
6816 Split line so that operator goes to beginning of line.
6817 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6818 assignment out of if statement.
6820 2011-01-07 Michael Snyder <msnyder@vmware.com>
6822 * ada-lang.c: Comment cleanup, mostly periods and spaces.
6823 * ada-lang.h: Ditto.
6824 * ada-tasks.c: Ditto.
6825 * ada-valprint.c: Ditto.
6826 * aix-threads.c: Ditto.
6827 * alpha-linux-nat.c: Ditto.
6828 * alpha-linux-tdep.c: Ditto.
6829 * alpha-mdebug-tdep.c: Ditto.
6830 * alpha-nat.c: Ditto.
6831 * alpha-osf1-tdep.c: Ditto.
6832 * alpha-tdep.c: Ditto.
6833 * alphabsd-nat.c: Ditto.
6834 * alphabsd-tdep.c: Ditto.
6835 * amd64-darwin-tdep.c: Ditto.
6836 * amd64-linux-nat.c: Ditto.
6837 * amd64-linux-tdep.c: Ditto.
6838 * amd64-sol2-tdep.c: Ditto.
6839 * amd64-tdep.c: Ditto.
6840 * amd64-fbsd-tdep.c: Ditto.
6841 * amd64-nbsd-tdep.c: Ditto.
6842 * amd64-obsd-tdep.c: Ditto.
6843 * amd64-linux-nat.c: Ditto.
6844 * amd64-linux-tdep.c: Ditto.
6845 * arm-tdep.c: Ditto.
6846 * arm-tdep.h: Ditto.
6847 * armnbsd-nat.c: Ditto.
6848 * avr-tdep.c: Ditto.
6849 * bfin-tdep.c: Ditto.
6851 * c-typeprintc: Ditto.
6852 * c-valprint.c: Ditto.
6853 * coff-pe-read.h: Ditto.
6854 * coffreead.c: Ditto.
6855 * cris-tdep.c: Ditto.
6857 * darwin-nat-info.c: Ditto.
6858 * darwin-nat.c: Ditto.
6859 * dbug-rom.c: Ditto.
6863 * dec-thread.c: Ditto.
6865 * demangle.c: Ditto.
6866 * dicos-tdep.c: Ditto.
6867 * dictionary.c: Ditto.
6868 * dictionary.h: Ditto.
6869 * dink32-rom.c: Ditto.
6871 * doublest.c: Ditto.
6873 * dummy-frame.c: Ditto.
6874 * dwarf2-frame.c: Ditto.
6875 * dwarf2expr.c: Ditto.
6876 * dwarf2loc.c: Ditto.
6877 * dwarf2read.c: Ditto.
6881 * event-top.h: Ditto.
6882 * exceptions.c: Ditto.
6883 * exceptions.h: Ditto.
6885 * expprint.c: Ditto.
6886 * expression.h: Ditto.
6890 * f-typeprint.c: Ditto.
6891 * f-valprint.c: Ditto.
6892 * fbsd-nat.c: Ditto.
6894 * fork-child.c: Ditto.
6897 * frv-linux-tdep.c: Ditto.
6898 * frv-tdep.c: Ditto.
6900 * gdb-stabs.h: Ditto.
6901 * gdb_assert.h: Ditto.
6902 * gdb_string.h: Ditto.
6903 * gdb_thread_db.h: Ditto.
6904 * gdb_wait.h: Ditto.
6905 * gdbarch.sh: Ditto.
6907 * gdbthread.h: Ditto.
6908 * gdbtypes.c: Ditto.
6909 * gdbtypes.h: Ditto.
6912 * gnu-v2-abi.c: Ditto.
6913 * gnu-v3-abi.c: Ditto.
6914 * go32-nat.c: Ditto.
6915 * gdbarch.c: Regenerate.
6916 * gdbarch.h: Regenerate.
6918 2011-01-07 Michael Snyder <msnyder@vmware.com>
6920 * ax-gdb.c: Adjust some long output strings.
6921 * breakpoint.c: Ditto.
6926 * linux-nat.c: Ditto.
6927 * solib-pa64.c: Ditto.
6928 * solib-som.c: Ditto.
6930 2011-01-06 Tom Tromey <tromey@redhat.com>
6934 * python/python.c (GdbMethods): Add "newest_frame" method.
6935 * python/python-internal.h (gdbpy_newest_frame): Declare.
6936 * python/py-frame.c (gdbpy_newest_frame): New function.
6938 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6940 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6941 * jit.c (jit_debug): New variable.
6942 (show_jit_debug): New function.
6943 (struct target_buffer): Use ULONGEST.
6944 (bfd_open_from_target_memory): Likewise.
6945 (jit_register_code, jit_inferior_init): Add debug output.
6946 (_initialize_jit): Register "debug jit" command.
6948 2011-01-06 Tom Tromey <tromey@redhat.com>
6950 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6951 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6954 2011-01-06 Tom Tromey <tromey@redhat.com>
6956 * python/py-frame.c (frapy_block): Use get_frame_block.
6958 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6960 Do not stop on SIGPRIO signals by default
6961 * infrun.c (_initialize_infrun): Unset signal_stop and
6962 signal_print for TARGET_SIGNAL_PRIO.
6964 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6966 * ada-tasks.c: Fix style violation in comment.
6968 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6970 * linespec.c (decode_compound, find_method): Remove trailing \n
6971 at end of error string.
6972 * solib-irix.c (irix_current_sos): Likewise.
6973 * varobj.c (uninstall_variable): Likewise.
6975 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6977 * copyright.py: New script.
6978 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6979 Launch emacs without exec'ing. Call copyright.py afterwards.
6981 2011-01-05 Michael Snyder <msnyder@vmware.com>
6983 * addrmap.c: Shorten lines of >= 80 columns.
6984 * arch-utils.c: Ditto.
6985 * arch-utils.h: Ditto.
6987 * ax-general.c: Ditto.
6989 * blockframe.c: Ditto.
6990 * breakpoint.c: Ditto.
6991 * buildsym.c: Ditto.
6993 * c-typeprint.c: Ditto.
6995 * coffread.c: Ditto.
6999 * cp-namespace.c: Ditto.
7000 * cp-support.c: Ditto.
7001 * dbug-rom.c: Ditto.
7006 * dictionary.c: Ditto.
7008 * doublest.c: Ditto.
7009 * dwarf2-frame.c: Ditto.
7010 * dwarf2expr.c: Ditto.
7011 * dwarf2loc.c: Ditto.
7012 * dwarf2read.c: Ditto.
7015 * event-loop.c: Ditto.
7016 * event-loop.h: Ditto.
7017 * exceptions.h: Ditto.
7019 * expprint.c: Ditto.
7020 * expression.h: Ditto.
7022 * f-valprint.c: Ditto.
7024 * frame-base.c: Ditto.
7025 * frame-unwind.c: Ditto.
7026 * frame-unwind.h: Ditto.
7030 * gdb-stabs.h: Ditto.
7031 * gdb_assert.h: Ditto.
7032 * gdb_dirent.h: Ditto.
7033 * gdb_obstack.h: Ditto.
7035 * gdbtypes.c: Ditto.
7036 * gdbtypes.h: Ditto.
7037 * inf-ttrace.c: Ditto.
7042 * inline-frame.h: Ditto.
7043 * language.c: Ditto.
7044 * language.h: Ditto.
7045 * libunwind-frame.c: Ditto.
7046 * libunwind-frame.h: Ditto.
7047 * linespec.c: Ditto.
7048 * linux-nat.c: Ditto.
7049 * linux-nat.h: Ditto.
7050 * linux-thread-db.c: Ditto.
7051 * machoread.c: Ditto.
7052 * macroexp.c: Ditto.
7053 * macrotab.c: Ditto.
7056 * mdebugread.c: Ditto.
7061 * objfiles.c: Ditto.
7062 * objfiles.h: Ditto.
7064 * p-typeprint.c: Ditto.
7065 * p-valprint.c: Ditto.
7067 * printcmd.c: Ditto.
7068 * proc-events.c: Ditto.
7070 * progspace.c: Ditto.
7071 * progspace.h: Ditto.
7072 * psympriv.h: Ditto.
7075 * regcache.c: Ditto.
7076 * regcache.h: Ditto.
7077 * remote-fileio.c: Ditto.
7079 * ser-mingw.c: Ditto.
7081 * ser-unix.c: Ditto.
7084 * solib-frv.c: Ditto.
7085 * solib-irix.c: Ditto.
7086 * solib-osf.c: Ditto.
7087 * solib-pa64.c: Ditto.
7088 * solib-som.c: Ditto.
7089 * solib-sunos.c: Ditto.
7090 * solib-svr4.c: Ditto.
7091 * solib-target.c: Ditto.
7095 * stabsread.c: Ditto.
7096 * stabsread.c: Ditto.
7099 * symfile-mem.c: Ditto.
7105 * target-descriptions.c: Ditto.
7106 * target-memory.c: Ditto.
7109 * terminal.h: Ditto.
7112 * tracepoint.c: Ditto.
7113 * tracepoint.h: Ditto.
7117 * user-regs.c: Ditto.
7118 * user-regs.h: Ditto.
7120 * valarith.c: Ditto.
7122 * valprint.c: Ditto.
7123 * valprint.h: Ditto.
7128 * xcoffread.c: Ditto.
7129 * xcoffsolib.c: Ditto.
7130 * xcoffsolib.h: Ditto.
7131 * xml-syscall.c: Ditto.
7132 * xml-tdesc.c: Ditto.
7134 2011-01-05 Michael Snyder <msnyder@vmware.com>
7136 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7137 * cli/cli-decode.c: Ditto.
7138 * cli/cli-dump.c: Ditto.
7139 * cli/cli-logging.c: Ditto.
7140 * cli/cli-script.c: Ditto.
7141 * cli/cli-setshow.c: Ditto.
7142 * common/signals.c: Ditto.
7143 * mi/mi-cmd-break.c: Ditto.
7144 * mi/mi-cmd-disas.c: Ditto.
7145 * mi/mi-cmd-stack.c: Ditto.
7146 * mi/mi-cmd-var.c: Ditto.
7147 * mi/mi-cmds.c: Ditto.
7148 * mi/mi-common.h: Ditto.
7149 * mi/mi-console.c: Ditto.
7150 * mi/mi-interp.c: Ditto.
7151 * mi/mi-main.c: Ditto.
7152 * osf-share/cma_attr.c: Ditto.
7153 * osf-share/cma_deb_core.h: Ditto.
7154 * osf-share/cma_debug_client.h: Ditto.
7155 * osf-share/cma_handle.h: Ditto.
7156 * osf-share/cma_mutex.h: Ditto.
7157 * osf-share/cma_stack_int.h: Ditto.
7158 * osf-share/cma_tcb_defs.h: Ditto.
7159 * python/py-auto-load.c: Ditto.
7160 * python/py-breakpoint.c: Ditto.
7161 * python/py-cmd.c: Ditto.
7162 * python/py-frame.c: Ditto.
7163 * python/py-objfile.c: Ditto.
7164 * python/py-param.c: Ditto.
7165 * python/py-progspace.c: Ditto.
7166 * python/py-symbol.c: Ditto.
7167 * python/py-value.c: Ditto.
7168 * python/python-internal.h: Ditto.
7169 * python/python.c: Ditto.
7170 * tui/tui-data.c: Ditto.
7171 * tui/tui-disasm.c: Ditto.
7172 * tui/tui-hooks.c: Ditto.
7173 * tui/tui-io.c: Ditto.
7174 * tui/tui-layout.c: Ditto.
7175 * tui/tui-regs.c: Ditto.
7176 * tui/tui-source.c: Ditto.
7177 * tui/tui-stack.c: Ditto.
7178 * tui/tui-win.c: Ditto.
7179 * tui/tui-windata.c: Ditto.
7180 * tui/tui-winsource.c: Ditto.
7182 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7184 * configure.ac, gdb.1: Copyright year update.
7186 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7188 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7189 this_pc_in_block, morestack_msym and morestack_name. Check for
7190 "__morestack" minimal symbol there.
7192 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7194 * symfile.c (find_sym_fns): Add call to dont_repeat.
7196 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7198 Copyright year update in most files (performed by copyright.sh).
7200 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7202 * top.c (print_gdb_version): Update copyright year in version output.
7204 For older changes see ChangeLog-2010.
7210 version-control: never