1 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5 2011-07-05 Tom Tromey <tromey@redhat.com>
7 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
8 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
9 (TYPE_CPLUS_REALLY_JAVA): New macro.
10 * dwarf2read.c (process_structure_scope): Set
11 TYPE_CPLUS_REALLY_JAVA.
13 2011-07-05 Thiago Jung Bauermann <bauerman.ibm.com>
15 * ada-lang.c: Fix typos.
16 * amd64-tdep.c: Likewise.
17 * breakpoint.c: Likewise.
18 * cli/cli-decode.c: Likewise.
19 * findcmd.c: Likewise.
20 * inline-frame.c: Likewise.
21 * mi/mi-main.c: Likewise.
22 * minsyms.c: Likewise.
23 * monitor.c: Likewise.
24 * monitor.h: Likewise.
25 * prologue-value.c: Likewise.
26 * reverse.c: Likewise.
27 * s390-tdep.c: Likewise.
29 2011-07-04 Joel Brobecker <brobecker@adacore.com>
31 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
33 2011-07-04 Tristan Gingold <gingold@adacore.com>
35 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
36 (tcb_fieldno): Add activation_link field.
37 (get_known_tasks_addr): Moved and rewritten.
38 (get_tcb_types_info): Set activation_link field.
39 (read_known_tasks_array): Add parameter. Rewritten.
40 (read_known_tasks_list): New function.
41 (read_known_tasks): New function.
42 (ada_build_task_list): Call read_known_tasks instead of
43 read_known_tasks_array.
44 * ravenscar-thread.c: Add first_task_name constant.
45 (has_ravenscar_runtime): Check for task list too.
47 2011-07-04 Tristan Gingold <gingold@adacore.com>
49 * ada-tasks.c: Renames fieldno to actb_fieldno.
50 (ada_get_task_number): Indentation.
51 (get_tcb_types_info): Remove all parameters. Write directly
53 (ptid_from_atcb_common): Adjust.
56 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
58 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
60 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
62 * ui-out.c (ui_out_field_core_addr): Mention that the function
63 description is in the header file.
64 * ui-out.h (ui_out_field_core_addr): Document function.
66 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
68 * ui-out.c (ui_out_get_field_separator): Remove unused function.
69 * ui-out.h (ui_out_get_field_separator): Remove prototype.
71 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
73 * symtab.c (expand_line_sal): Remove empty line.
75 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
77 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
78 same way as ELFOSABI_NONE.
79 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
81 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
83 * breakpoint.c: Fix typos in comments.
84 * linespec.c: Likewise.
87 2011-07-04 Joel Brobecker <brobecker@adacore.com>
89 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
90 section in separate object files.
92 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
94 Fix false GCC warning.
95 * linespec.c (decode_line_1): Initialize values.
97 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
99 * linespec.c (find_method): Accept the function type automatically only
100 if it was specified with parameter types.
102 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
104 Stop on first linespec terminator instead of eating what we can.
105 * linespec.c (is_linespec_boundary): New function.
106 (name_end): Remove function.
107 (keep_name_info): New parameter on_boundary, replace the body.
108 (decode_line_1): Provide the parameter to keep_name_info.
109 (decode_compound): Likewise. Drop the trailing java return type
112 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
114 Fall back linespec to minimal symbols.
115 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
116 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
117 (find_method, symbol_found): Change error to cplusplus_error.
119 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
121 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
123 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
124 Tom Tromey <tromey@redhat.com>
126 * dwarf2read.c (check_physname): New variable.
127 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
128 (show_check_physname): New function.
129 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
131 2011-07-01 Joel Brobecker <brobecker@adacore.com>
133 * machoread.c (macho_symfile_read): Delete OBE comment.
135 2011-07-01 Joel Brobecker <brobecker@adacore.com>
137 * machoread.c (struct macho_oso_data): Delete.
138 (current_oso): Delete.
139 (macho_relocate_common_syms): New function, mostly extracted
141 (macho_add_oso_symfile): Call macho_relocate_common_syms.
142 Remove code that sets and unset current_oso.
143 (macho_symfile_relocate): Delete handling of common symbols,
144 now moved to macho_relocate_common_syms.
146 2011-07-01 Joel Brobecker <brobecker@adacore.com>
148 * darwin-nat.c (darwin_ptrace): Add documentation.
149 Set errno to zero before calling ptrace. If ptrace returns
150 -1 and errno is zero, then change then return zero.
151 (darwin_kill_inferior): Issue a warning instead of triggering
152 a failed assertion when the PT_KILL ptrace operations returned
155 2011-07-01 Joel Brobecker <brobecker@adacore.com>
157 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
158 only when inf->private->no_ptrace.
160 2011-07-01 Joel Brobecker <brobecker@adacore.com>
162 * ada-lang.c (print_it_exception): Print temporary catchpoints
163 as "Temporary catchpoint".
164 (print_mention_exception): Likewise.
166 2011-07-01 Tom Tromey <tromey@redhat.com>
168 * jv-lang.c (java_language_defn): Use java_printchar,
170 (java_get_encoding): New function.
171 (java_emit_char): Use generic_emit_char.
172 (java_printchar): New function.
173 (java_printstr): Likewise.
175 2011-07-01 Joel Brobecker <brobecker@adacore.com>
177 * ada-typeprint.c (print_record_type): If unable to decode
178 the name of the parent type, use the encoded name.
180 2011-07-01 Jean-Charles Delay <delay@adacore.com>
182 * ada-typeprint.c (ada_print_type): Fix both PAD type and
183 pointer to constrained packed array type output.
184 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
187 2011-07-01 Jean-Charles Delay <delay@adacore.com>
189 * ada-typeprint.c (print_array_type): removed if condition on show
190 being negative for bounds printing.
192 2011-07-01 Joel Brobecker <brobecker@adacore.com>
194 * ada-lang.c (ada_identical_enum_types_p): New function.
195 (symbols_are_identical_enums): New function.
196 (remove_extra_symbols): Do nothing if NSYMS < 2.
197 Use symbols_are_identical_enums.
199 2011-07-01 Joel Brobecker <brobecker@adacore.com>
201 * ada-valprint.c (ada_value_print): Handle typedefs.
203 2011-07-01 Joel Brobecker <brobecker@adacore.com>
205 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
207 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
209 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
210 (decode_constrained_packed_array): Likewise.
211 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
213 2011-07-01 Joel Brobecker <brobecker@adacore.com>
215 * ada-exp.y (convert_char_literal): Handle typedef types.
217 2011-07-01 Joel Brobecker <brobecker@adacore.com>
219 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
221 2011-06-30 Tom Tromey <tromey@redhat.com>
223 * varobj.c (varobj_create): Call do_cleanups on early exit path.
224 * valops.c (find_overload_match): Call do_cleanups on early exit
226 * solib.c (solib_find): Call do_cleanups on early exit path.
228 2011-06-30 Tom Tromey <tromey@redhat.com>
230 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
231 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
232 return paths. Defer final do_cleanups until last return.
233 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
236 2011-06-30 Tom Tromey <tromey@redhat.com>
238 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
240 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
242 * MAINTAINERS (Write After Approval): Add myself to the list.
244 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
246 Disable epilogue unwinders on recent GCCs.
247 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
248 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
249 * dwarf2read.c (process_full_comp_unit): Initialize
250 EPILOGUE_UNWIND_VALID.
251 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
252 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
253 * symtab.h (struct symtab): New field epilogue_unwind_valid.
255 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
257 Code cleanup - reformatting.
258 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
259 (producer_is_gcc_ge_4): ... here, change the return value.
260 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
263 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
265 Fix non-only rename list for Fortran modules import.
266 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
267 cp_add_using_directive caller.
268 (cp_add_using_directive): New parameter excludes, describe it. New
269 variables ix and param. Compare if also excludes match. Allocate NEW
270 with variable size, initialize EXCLUDES there.
271 (cp_lookup_symbol_imports): New variable excludep, test
272 current->EXCLUDES with it.
273 * cp-support.h: Include vec.h.
274 (struct using_direct): New field excludes, describe it.
275 (DEF_VEC_P (const_char_ptr)): New.
276 (cp_add_using_directive): New parameter excludes.
277 * defs.h (const_char_ptr): New typedef.
278 * dwarf2read.c (read_import_statement): New variables child_die,
279 excludes and cleanups, read in excludes.
280 (read_namespace): Adjust the cp_add_using_directive caller.
282 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
285 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
286 negative comparisons.
288 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
290 * mi/mi-main.c (mi_cmd_list_features): Emit
291 breakpoint-notifications.
293 2011-06-29 Tom Tromey <tromey@redhat.com>
296 * valprint.h (generic_emit_char, generic_printstr): Declare.
297 * valprint.c (wchar_printable, append_string_as_wide)
298 (print_wchar): Move from c-lang.c.
299 (generic_emit_char): New function; mostly taken from c_emit_char.
300 (generic_printstr): New function; mostly taken from c_printstr.
301 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
302 represented as arrays.
303 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
305 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
306 identically to TYPE_CODE_INT.
307 * f-lang.c (f_get_encoding): New function.
308 (f_emit_char): Use generic_emit_char.
309 (f_printchar): Replace comment.
310 (f_printstr): Use generic_printstr.
311 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
312 "character" types specially.
313 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
315 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
317 (c_emit_char): Call generic_emit_char.
318 (c_printstr): Call generic_printstr.
320 2011-06-29 Gary Benson <gbenson@redhat.com>
322 * breakpoint.c (bpstat_what): Removed duplicated case.
324 2011-06-28 Tom Tromey <tromey@redhat.com>
326 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
328 2011-06-27 Tom Tromey <tromey@redhat.com>
330 * valops.c (find_overload_match): Call do_cleanups before early
332 * top.c (execute_command): Call do_cleanups before early return.
333 (command_loop): Likewise.
334 * stack.c (backtrace_command): Make a null cleanup early. Don't
335 conditionally call do_cleanups.
336 * python/py-value.c (TRY_CATCH): Move cleanup handling into
338 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
339 so cleanups are always run.
340 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
341 * findcmd.c (parse_find_args): Call do_cleanups on early return
343 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
344 Don't conditionally call do_cleanups.
345 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
348 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
350 * MAINTAINERS (Write After Approval): Use default email address.
352 2011-06-27 Joel Brobecker <brobecker@adacore.com>
354 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
356 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
358 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
359 saved_regs_mask and copied_regs_mask fields.
360 (sparc_record_save_insn): New prototype.
361 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
362 (sparc_record_save_insn): New function.
363 (sparc_analyze_prologue): Add head comment. Recognize store insns
364 of call-saved registers. Use OFFSET consistently. Recognize flat
365 frames and cache their settings.
366 (sparc32_skip_prologue): Handle flat frames.
367 (sparc_frame_cache): Add frame_offset to the base address.
368 (sparc32_frame_cache): Adjust to new frame description.
369 (sparc32_frame_prev_register): Likewise.
370 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
371 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
372 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
373 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
374 frame by calling sparc_record_save_insn.
375 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
376 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
377 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
379 2011-06-27 Tristan Gingold <gingold@adacore.com>
381 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
382 field by map_addr and map_len.
383 (dwarf2_read_section): Adjust for the new bfd_mmap api.
384 (munmap_section_buffer): Likewise.
386 2011-06-24 Tom Tromey <tromey@redhat.com>
388 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
389 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
390 * python/python.c (gdbpy_parameter): Make 'arg' const.
391 (execute_gdb_command): Likewise.
392 (gdbpy_decode_line): Likewise. Copy it.
393 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
394 (gdbpy_write): Make 'arg' const.
395 * python/py-type.c (typy_lookup_typename): Make 'type_name'
397 (gdbpy_lookup_type): Likewise.
398 * python/py-prettyprint.c (print_children): Make 'name' const.
399 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
400 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
402 * python/py-function.c (fnpy_init): Make 'name' const.
403 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
404 (gdbpy_string_to_argv): Make 'input' const.
405 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
407 * gdbtypes.h (lookup_typename): Update.
408 * gdbtypes.c (lookup_typename): Make 'name' const.
409 (lookup_struct): Likewise.
410 (lookup_union): Likewise.
411 (lookup_enum): Likewise.
413 2011-06-24 Tom Tromey <tromey@redhat.com>
415 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
416 gdb_thread_db.h. Move all common/ entries to be together.
417 (TAGS): Don't depend on DEPFILES.
419 2011-06-23 Yao Qi <yao@codesourcery.com>
421 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
422 * remote.c (remote_start_remote): ... here.
423 * monitor.c (monitor_open): ... here.
425 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
427 * gdbtypes.c (append_composite_type_field_aligned): Fix
428 calculation of bit position based on alignment.
430 2011-06-22 Pedro Alves <pedro@codesourcery.com>
432 * breakpoint.c (bpstat_stop_status): Call the check_status
433 breakpoint_ops method.
434 (print_one_breakpoint_location): Also print the condition for Ada
435 exception catchpoints.
436 (allocate_bp_location): New, factored out from
437 allocate_bp_location.
438 (allocate_bp_location): Adjust. Call the owner breakpoint's
439 allocate_location method, if there is one.
440 (free_bp_location): Call the locations's dtor method, if there is
442 (init_raw_breakpoint_without_location): New breakpoint_ops
444 (set_raw_breakpoint_without_location): Adjust.
445 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
446 (set_raw_breakpoint): Adjust.
447 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
448 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
449 re_set and check_status methods.
450 (init_catchpoint): Don't memset, initialize thread, addr_string
451 and enable_state. Pass the ops down to init_raw_breakpoint.
452 (install_catchpoint): Rename to ...
453 (install_breakpoint): ... this, and make extern.
454 (create_fork_vfork_event_catchpoint): Adjust.
455 (catch_exec_breakpoint_ops): Install NULL allocate_location,
456 re_set and check_status methods.
457 (create_syscall_event_catchpoint): Adjust.
458 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
459 (masked_watchpoint_breakpoint_ops): Install NULL
460 allocate_location, re_set and check_status methods.
461 (catch_exec_command_1): Adjust.
462 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
463 re_set and check_status methods.
464 (create_ada_exception_breakpoint): Rename to ...
465 (init_ada_exception_breakpoint): ... this. Add a struct
466 breakpoint parameter, and delete the exp_string, cond_string and
467 cond parameters. Use init_raw_breakpoint, and don't install or
468 mention the breakpoint yet. Don't clear breakpoint fields that
469 init_raw_breakpoint already clears.
470 (re_set_breakpoint): Delete, split into ...
471 (breakpoint_re_set_default, prepare_re_set_context): ... these new
473 (breakpoint_re_set_one): Call the breakpoint's
474 breakpoint_ops->re_set implementation, if there's one. Adjust.
475 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
476 (struct bp_location_ops): New type.
477 (struct bp_location): New field `ops'.
478 (struct breakpoint_ops): New `allocate_location', `re_set' and
479 `check_status' fields. Make `breakpoint_hit''s description match
481 (init_bp_location): Declare.
482 (breakpoint_re_set_default): Declare.
483 (create_ada_exception_breakpoint): Rename to ...
484 (init_ada_exception_breakpoint): ... this. Add a struct
485 breakpoint parameter, and delete the exp_string, cond_string and
487 (install_breakpoint): Declare.
488 * ada-lang.c: Include exceptions.h.
489 <Ada exceptions description>: Update.
490 (struct ada_catchpoint_location): New type.
491 (ada_catchpoint_location_dtor): New function.
492 (ada_catchpoint_location_ops): New global.
493 (ada_catchpoint): New type.
494 (create_excep_cond_exprs): New function.
495 (dtor_exception, allocate_location_exception, re_set_exception)
496 (should_stop_exception, check_status_exception): New functions.
497 (print_one_exception, print_mention_exception)
498 (print_recreate_exception): Adjust.
499 (dtor_catch_exception, allocate_location_catch_exception)
500 (re_set_catch_exception, check_status_catch_exception): New
502 (catch_exception_breakpoint_ops): Install them.
503 (dtor_catch_exception_unhandled)
504 (allocate_location_catch_exception_unhandled)
505 (re_set_catch_exception_unhandled)
506 (check_status_catch_exception_unhandled): New functions.
507 (catch_exception_unhandled_breakpoint_ops): Install them.
508 (dtor_catch_assert, allocate_location_catch_assert)
509 (re_set_catch_assert, check_status_catch_assert): New functions.
510 (catch_assert_breakpoint_ops): Install them.
511 (ada_exception_catchpoint_p): Delete.
512 (catch_ada_exception_command_split)
513 (ada_exception_catchpoint_cond_string): Rename exp_string
514 parameter to excep_string. Adjust.
515 (ada_parse_catchpoint_condition): Delete.
516 (ada_exception_sal): Rename the exp_string parameter to
517 excep_string. Delete the cond_string and cond parameters.
519 (ada_decode_exception_location): Rename the exp_string parameter
520 to excep_string. Delete the cond_string and cond parameters.
522 (create_ada_exception_catchpoint): New function.
523 (catch_ada_exception_command, ada_decode_assert_location)
524 (catch_assert_command): Adjust.
525 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
527 2011-06-22 Pedro Alves <pedro@codesourcery.com>
529 * ada-lang.c: Include arch-utils.h.
530 (ada_decode_exception_location): Make static.
531 (catch_ada_exception_command): Moved here from breakpoint.c.
532 (ada_decode_assert_location): Make static.
533 (catch_assert_command): Moved here from breakpoint.c.
534 (_initialize_ada_lang): Install the exception and assert
535 catchpoint commands here.
536 * ada-lang.h (ada_decode_exception_location)
537 (ada_decode_assert_location): Delete declarations.
538 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
540 (create_ada_exception_breakpoint): Make extern.
541 (catch_ada_exception_command, catch_assert_command): Moved to
543 (add_catch_command): Make extern.
544 (_initilize_breakpoint): Don't install the exception and assert
545 catchpoint commands here.
546 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
548 (add_catch_command, create_ada_exception_breakpoint): Declare.
550 2011-06-22 Pedro Alves <pedro@codesourcery.com>
552 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
553 the breakpoint to the breakpoint chain here.
554 (set_raw_breakpoint_without_location): Add the breakpoint to the
555 breakpoint chain here.
556 (init_raw_breakpoint): Adjust comments.
557 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
559 (init_catchpoint): Don't set the catchpoint's breakpoint number
561 (install_catchpoint): New function.
562 (create_fork_vfork_event_catchpoint)
563 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
564 use install_catchpoint.
566 2011-06-22 Pedro Alves <pedro@codesourcery.com>
568 * breakpoint.c (create_catchpoint_without_mention)
569 (create_catchpoint): Delete.
571 2011-06-22 Pedro Alves <pedro@codesourcery.com>
573 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
574 * breakpoint.c (init_raw_breakpoint_without_location): Remove
575 reference to exec_pathname.
576 (struct exec_catchpoint): New type.
577 (dtor_catch_exec): New function.
578 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
579 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
580 (catch_exec_command_1): Adjust to use init_catchpoint.
581 (delete_breakpoint): Remove reference to exec_pathname.
583 2011-06-22 Pedro Alves <pedro@codesourcery.com>
585 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
586 (struct breakpoint): Delete field `syscalls_to_be_caught'.
587 * breakpoint.c (init_raw_breakpoint_without_location): Remove
588 reference to syscalls_to_be_caught.
589 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
591 (struct syscall_catchpoint): New type.
592 (dtor_catch_syscall): New function.
593 (insert_catch_syscall, remove_catch_syscall)
594 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
595 (print_recreate_catch_syscall): Adjust.
596 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
597 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
598 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
599 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
600 (masked_watchpoint_breakpoint_ops)
601 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
602 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
603 there is one. Remove references to syscalls_to_be_caught.
604 (catching_syscall_number): Adjust.
605 * ada-lang.c (catch_exception_breakpoint_ops)
606 (catch_exception_unhandled_breakpoint_ops)
607 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
609 2011-06-22 Pedro Alves <pedro@codesourcery.com>
611 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
613 * breakpoint.c (init_raw_breakpoint_without_location): Remove
614 reference to forked_inferior_pid.
615 (struct fork_catchpoint): New type.
616 (breakpoint_hit_catch_fork, print_it_catch_fork)
617 (print_one_catch_fork, breakpoint_hit_catch_vfork)
618 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
619 (create_fork_vfork_event_catchpoint): Adjust to use
622 2011-06-22 Pedro Alves <pedro@codesourcery.com>
624 * breakpoint.c (add_to_breakpoint_chain)
625 (init_raw_breakpoint_without_location): New functions, factored
627 (set_raw_breakpoint_without_location): ... this one.
628 (init_raw_breakpoint): New function, factored out from
629 set_raw_breakpoint and adjusted to use
630 init_raw_breakpoint_without_location.
631 (set_raw_breakpoint): Adjust.
632 (init_catchpoint): New function, factored out from
633 create_catchpoint_without_mention and adjusted to use
635 (create_catchpoint_without_mention): Adjust.
637 2011-06-22 Tom Tromey <tromey@redhat.com>
639 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
640 argument of 0 specially.
642 2011-06-22 Yao Qi <yao@codesourcery.com>
644 * infrun.c (handle_inferior_event): Remove write-only local variable
645 `sw_single_step_trap_p'.
647 2011-06-20 Tom Tromey <tromey@redhat.com>
649 * symtab.c (lookup_language_this): End loop if block is NULL.
651 2011-06-17 Tom Tromey <tromey@redhat.com>
653 * valops.c (value_of_this): Use lookup_language_this.
654 * symtab.h (lookup_language_this): Declare.
655 * symtab.c (lookup_language_this): New function.
656 (lookup_symbol_aux): Use lookup_language_this.
657 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
659 2011-06-17 Tom Tromey <tromey@redhat.com>
661 * value.h (value_of_this): Update.
662 (value_of_local): Remove.
663 * valops.c (value_of_this): Rename from value_of_local. Change
665 * p-exp.y (exp): Update.
666 (variable): Likewise.
667 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
669 2011-06-17 Tom Tromey <tromey@redhat.com>
671 * valops.c (value_of_local): Complain if NAME is NULL.
672 * std-operator.def (OP_OBJC_SELF): Remove.
673 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
674 * objc-exp.y (name_not_typename): Use OP_THIS.
675 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
677 <OP_OBJC_SELF>: Remove.
678 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
680 2011-06-16 Tristan Gingold <gingold@adacore.com>
682 * python/py-events.h (gdb_py_events): Make it extern.
683 * python/py-evtregistry.c (gdb_py_events): Declare.
685 2011-06-16 Hui Zhu <teawater@gmail.com>
687 * remote.c (remote_trace_set_readonly_regions): Add check for
688 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
691 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
693 * arm-linux-tdep.c: Include "auxv.h".
695 (ARM_LINUX_SIZEOF_VFP): Define.
696 (arm_linux_supply_vfp): New function.
697 (arm_linux_collect_vfp): Likewise.
698 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
699 (arm_linux_fpa_regset_sections): New variable.
700 (arm_linux_vfp_regset_sections): Likewise.
701 (arm_linux_core_read_description): New function.
702 (arm_linux_init_abi): Install arm_linux_core_read_description and
703 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
704 appropriate for the architecture.
705 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
706 (tdesc_arm_with_m): Declare.
707 (tdesc_arm_with_iwmmxt): Likewise.
708 (tdesc_arm_with_vfpv2): Likewise.
709 (tdesc_arm_with_vfpv3): Likewise.
710 (tdesc_arm_with_neon): Likewise.
711 * arm-linux-nat.c: Move features/*.c includes ...
712 * arm-tdep.c: ... here.
713 * arm-linux-nat.c (arm_linux_read_description): Move initializing
714 target description data structures ...
715 * arm-tdep.c (_initialize_arm_tdep): ... here.
716 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
717 HWCAP_VFPv3D16): Move definitions ...
718 * arm-linux-tdep.h: ... here.
720 2011-06-15 Hui Zhu <teawater@gmail.com>
722 * remote.c (remote_trace_set_readonly_regions): Add a check for
725 2011-06-14 Tom Tromey <tromey@redhat.com>
727 * coffread.c (coffread_objfile): Rename from current_objfile.
728 * dbxread.c (dbxread_objfile): Rename from current_objfile.
729 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
731 2011-06-14 Tom Tromey <tromey@redhat.com>
733 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
734 (class_symtab): Remove.
735 (jv_dynamics_progspace_key): New global.
736 (jv_per_objfile_free): Reset program space data. Update assert.
738 (get_dynamics_objfile): Use and set program space data.
739 (get_java_class_symtab): Use get_dynamics_objfile.
740 (add_class_symbol): Likewise.
741 (java_link_class_type): Likewise.
742 (java_object_type, jv_clear_object_type, set_java_object_type):
744 (get_java_object_type): Update. Don't cache result.
745 (is_object_type): Don't call set_java_object_type.
746 (_initialize_java_language): Don't set jv_type_objfile_data_key;
747 initialize jv_dynamics_progspace_key.
749 2011-06-14 Tom Tromey <tromey@redhat.com>
751 * symtab.h (current_objfile): Don't declare.
752 * objfiles.h (current_objfile): Don't declare.
753 * objfiles.c (current_objfile): Remove.
754 * mdebugread.c (current_objfile): New file-scope global.
755 * dbxread.c (current_objfile): New file-scope global.
756 * coffread.c (current_objfile): New file-scope global.
758 2011-06-13 Pedro Alves <pedro@codesourcery.com>
760 * top.h (line): Rename to ...
761 (saved_command_line): ... this.
762 (linesize): Rename to ...
763 (saved_command_line_size): ... this.
764 * top.c (line): Rename to ...
765 (saved_command_line): ... this.
766 (linesize): Rename to ...
767 (saved_command_line_size): ... this.
768 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
769 * event-top.c (command_line_handler): Adjust.
770 * main.c (captured_main): Adjust.
772 2011-06-12 Mark Kettenis <kettenis@gnu.org>
774 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
775 get_frame_func instead of get_frame_pc to determine the code
776 address used to construct the frame ID.
777 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
778 (i386_epilogue_frame_this_id): Likewise.
779 (i386_epilogue_frame_prev_register): New function.
780 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
781 (i386_stack_tramp_frame_sniffer): Fix coding style.
782 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
783 (i386_gdbarch_init): Fix comments.
785 2011-06-12 Mark Kettenis <kettenis@gnu.org>
787 * i386-tdep.c (i386_match_insn_block): Use length of the proper
788 instruction when walking back through the instruction stream.
790 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
792 * symtab.c (output_partial_symbol_filename): Exchange the filename and
793 fullname parameters order.
795 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
798 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
800 * psymtab.c (map_symbol_filenames_psymtab)
801 (map_partial_symbol_filenames): Likewise.
802 * psymtab.h: Include symfile.h.
803 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
804 * symfile.h (symbol_filename_ftype): New.
805 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
806 map_symbol_filenames, clarify more the naming in comment.
808 2011-06-07 Doug Evans <dje@google.com>
810 * cc-with-index.sh: Fix typos in comment.
811 Look for ../../gdb, for fullname.exp.
813 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
814 Pedro Alves <pedro@codesourcery.com>
816 * cli/cli-cmds.c (shell_escape): Use waitpid.
817 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
819 2011-06-07 Tristan Gingold <gingold@adacore.com>
821 * xcoffread.c (dwarf2_xcoff_names): New variable.
822 (aix_process_linenos): Add a guard.
823 (xcoff_symfile_finish): Free dwarf2.
824 (xcoff_initial_scan): Add dwarf2 support.
826 2011-06-06 Pedro Alves <pedro@codesourcery.com>
828 * infcall.c (run_inferior_call): Don't mask async. Instead force
829 a synchronous wait, if the target can async.
831 * target.h (struct target_ops): Delete to_async_mask.
832 (target_async_mask): Delete.
833 * target.c (update_current_target): Delete references to to_async_mask.
834 * linux-nat.c (linux_nat_async_mask_value): Delete.
835 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
836 to linux_nat_async_mask_value.
837 (linux_nat_async_mask): Delete.
838 (linux_nat_async, linux_nat_close): Remove references to
839 linux_nat_async_mask_value.
840 * record.c (record_async_mask_value): Delete.
841 (record_async): Remove references to record_async_mask_value.
842 (record_async_mask): Delete.
843 (record_can_async_p, record_is_async_p): Remove references to
844 record_async_mask_value.
845 (init_record_ops, init_record_core_ops): Remove references to
847 * remote.c (remote_async_mask_value): Delete.
848 (init_remote_ops): Remove reference to remote_async_mask.
849 (remote_can_async_p, remote_is_async_p): Remove references to
850 remote_async_mask_value.
851 (remote_async): Remove references to remote_async_mask_value.
852 (remote_async_mask): Delete.
854 * infrun.c (fetch_inferior_event): Don't claim registers changed
855 if the current thread is already not executing.
857 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
859 From Stephen Kitt <steve@sk2.org>
860 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
861 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
863 2011-06-03 Joel Brobecker <brobecker@adacore.com>
865 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
866 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
868 2011-06-03 Tom Tromey <tromey@redhat.com>
870 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
872 * python/py-exitedevent.c (create_exited_event_object): Change
873 type of 'exit_code'. Optionally add exit_code attribute.
874 (emit_exited_event): Change type of 'exit_code'.
875 * python/py-event.h (emit_exited_event): Update.
876 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
877 * infrun.c (handle_inferior_event): Set exit code fields on
879 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
881 * inferior.c (exit_inferior_1): Initialize new fields.
883 2011-06-03 Tom Tromey <tromey@redhat.com>
885 * dwarf2expr.c (get_signed_type): New function.
886 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
888 2011-06-02 Keith Seitz <keiths@redhat.com>
890 * objc-lang.c (find_methods): Increment objfile_csym earlier.
892 2011-06-02 Pedro Alves <pedro@codesourcery.com>
894 * top.h (simplified_command_loop): Delete declaration.
896 2011-06-01 Mike Frysinger <vapier@gentoo.org>
898 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
899 gdb_sysroot to the "len" variable. Append both to "arg_buf".
901 2011-06-01 Yao Qi <yao@codesourcery.com>
903 * objfiles.h (obj_section_addr): Update reference to objfile from
905 (obj_section_endaddr): Likewise.
907 2011-06-01 Daniel Jacobowitz <drow@false.org>
909 * MAINTAINERS: Update my email address and affiliation. Also
910 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
912 2010-05-31 Keith Seitz <keiths@redhat.com>
915 * linespec.c (get_search_block): New function.
916 (find_methods): Add FILE_SYMTATB parameter and use it and
917 get_search_block to pass an appropriate block to
918 lookup_symbol_in_namespace.
919 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
920 Check if *ARGPTR starts with a filename first.
921 If it does, call locate_first_half again to locate the next
922 "first half" of the linespec.
923 Pass FILE_SYMTATB to decode_objc and decode_compound.
924 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
925 (locate_first_half): Stop on the first colon seen.
926 (decode_compound): Add FILE_SYMTAB parameter.
927 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
928 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
929 get_search_block with lookup_symbol.
930 (find_method): Add FILE_SYMTAB parameter and pass it to
932 (decode_objc): Use get_search_block.
934 2010-05-31 Keith Seitz <keiths@redhat.com>
937 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
938 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
939 and CP_ANONYMOUS_NAMESPACE_LEN.
940 (cp_is_anonymous): Likewise.
941 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
942 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
943 * dwarf2read.c (namespace_name): Likewise.
944 (fixup_partial_die): Likewise.
945 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
946 seen in the input, keep it.
948 2011-05-30 Pedro Alves <pedro@codesourcery.com>
950 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
951 * inf-loop.h (inferior_event_handler_wrapper): Delete.
952 * inf-loop.c (inferior_event_handler_wrapper): Delete.
953 (inferior_event_handler): Don't handle INF_QUIT_REQ.
954 * remote.c (_initialize_remote): Register
955 async_remote_interrupt_twice directly as
956 sigint_remote_twice_token event.
958 2011-05-30 Pedro Alves <pedro@codesourcery.com>
960 * target.h (enum inferior_event_type): Delete INF_ERROR.
961 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
963 2011-05-30 Pedro Alves <pedro@codesourcery.com>
965 * interps.c (interp_set): Don't cancel continuations.
967 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
969 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
971 2011-05-30 Pedro Alves <pedro@codesourcery.com>
973 * continuations.h (continuation_ftype): Add `err' parameter.
975 (do_all_continuations, do_all_continuations_thread)
976 (do_all_intermediate_continuations)
977 (do_all_intermediate_continuations_thread)
978 (do_all_inferior_continuations): Add `err' parameter.
979 * continuations.c (do_my_continuations_1, do_my_continuations)
980 (do_all_inferior_continuations, do_all_continuations_ptid)
981 (do_all_continuations_thread_callback)
982 (do_all_continuations_thread, do_all_continuations)
983 (do_all_intermediate_continuations_thread_callback)
984 (do_all_intermediate_continuations_thread)
985 (do_all_intermediate_continuations): Add `err' parameter, and pass
986 it down all the way to the continuations proper.
987 * inf-loop.c (inferior_event_handler): If fetching an inferior
988 event throws an error, don't pop the target, and still call the
989 continuations, but with `err' set. Adjust all other continuation
991 * breakpoint.c (until_break_command_continuation): Add `err'
993 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
994 issue another step if `err' is set.
995 (struct until_next_continuation_args): New.
996 (until_next_continuation): Add `err' parameter. Adjust.
997 (until_next_command): Adjust.
998 (struct finish_command_continuation_args): Add `thread' field.
999 (finish_command_continuation): Add `err' parameter. Handle it.
1000 (finish_forward): Adjust.
1001 (attach_command_continuation): Add `err' parameter. Handle it.
1002 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1003 cancel the continuations.
1004 * interps.c (interp_set): Adjust to cancel the continuations.
1005 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1006 continuations rather than discarding.
1007 (free_thread): Don't clear thread inferior resources here.
1008 (delete_thread_1): Do it here instead. And do it before removing
1009 the thread from the threads list. Tag the thread as exited before
1010 clearing thread inferior resources.
1012 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1014 * infcall.c (call_function_by_hand): Rephrase error message.
1016 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1018 * defs.h (struct thread_info, struct inferior): Delete forward
1020 * breakpoint.h (struct thread_info): New forward declaration.
1021 * observer.sh (struct inferior): New forward declaration.
1022 * python/python-internal.h (struct inferior): New forward
1025 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1027 * defs.h (struct continuation, continuation_ftype)
1028 (continuation_free_arg_ftype, add_continuation)
1029 (do_all_continuations, do_all_continuations_thread)
1030 (discard_all_continuations, discard_all_continuations_thread)
1031 (add_intermediate_continuation, do_all_intermediate_continuations)
1032 (do_all_intermediate_continuations_thread)
1033 (discard_all_intermediate_continuations)
1034 (discard_all_intermediate_continuations_thread)
1035 (add_inferior_continuation, do_all_inferior_continuations)
1036 (discard_all_inferior_continuations): Move to ...
1037 * continuations.h: ... this new file.
1038 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1039 infcmd.c, inferior.c, infrun.c, interps.c: Include
1042 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1043 Doug Evans <dje@google.com>
1045 Fix PR 10970, PR 12702.
1046 * linux-nat.c (linux_lwp_is_zombie): New function.
1047 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1048 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1050 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1052 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1054 (add_continuation, add_intermediate_continuation)
1055 (add_inferior_continuation): Use them.
1056 * continuations.c (struct continuation): Use them.
1057 (make_continuation_ftype): Delete.
1058 (make_continuation, add_inferior_continuation, add_continuation)
1059 (add_intermediate_continuation): Use continuation_ftype and
1060 continuation_free_arg_ftype. Rename parameters to shorter names.
1062 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1064 * continuations.c (make_continuation): Make it return void.
1065 (do_my_continuations): Rename to ...
1066 (do_my_continuations_1): ... this. Remove old_chain parameter and
1068 (do_my_continuations): New.
1069 (discard_my_continuations): Rename to ...
1070 (discard_my_continuations_1): ... this. Remove old_chain
1071 parameter and adjust.
1072 (discard_my_continuations): New.
1073 (add_inferior_continuation): Simplify.
1074 (do_all_inferior_continuations): Reimplement on top
1075 do_my_continuations.
1076 (discard_all_inferior_continuations): Simplify.
1077 (add_continuation): Simplify.
1078 (do_all_continuations_ptid): Simplify.
1079 (discard_all_continuations_thread_callback): Simplify.
1080 (add_intermediate_continuation): Simplify.
1081 (discard_all_intermediate_continuations_thread_callback):
1084 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1086 * utils.c (struct continuation, add_continuation)
1087 (add_inferior_continuation)
1088 (do_all_inferior_continuations, discard_all_inferior_continuations)
1089 (restore_thread_cleanup, do_all_continuations_ptid)
1090 (do_all_continuations_thread_callback)
1091 (do_all_continuations_thread, do_all_continuations)
1092 (discard_all_continuations_thread_callback)
1093 (discard_all_continuations_thread, discard_all_continuations)
1094 (add_intermediate_continuation)
1095 (do_all_intermediate_continuations_thread_callback)
1096 (do_all_intermediate_continuations_thread)
1097 (do_all_intermediate_continuations)
1098 (discard_all_intermediate_continuations_thread_callback)
1099 (discard_all_intermediate_continuations_thread)
1100 (discard_all_intermediate_continuations): Move to ...
1101 * continuations.c: ... this new file, and adjust to no longer
1102 implement continuations on top of cleanups.
1103 * Makefile.in (SFILES): Add continuations.c.
1104 (COMMON_OBS): Add continuations.o.
1106 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1108 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1109 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1110 Internal error on invalid values.
1111 * reverse.c: Don't handle EXEC_ERROR.
1112 * mi/mi-main.c: Don't handle EXEC_ERROR.
1114 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1116 * record.c: Include event-loop.h, inf-loop.h.
1117 (record_beneath_to_async): New global.
1118 (tmp_to_async): New global.
1119 (record_async_inferior_event_token): New global.
1120 (record_open_1): Don't error out if async is enabled.
1121 (record_open): Handle to_async. Create an async event source in
1123 (record_close): Delete the async event source.
1124 (record_resumed): New global.
1125 (record_execution_dir): New global.
1126 (record_resume, record_core_resume): Set them. Register the
1127 target on the event loop.
1128 (record_wait): Rename to ...
1129 (record_wait_1): ... this. Add more debug output. Handle
1130 TARGET_WNOHANG, and the target beneath returning
1131 TARGET_WAITKIND_IGNORE.
1132 (record_wait): Reimplement on top of record_wait_1.
1133 (record_async_mask_value): New global.
1134 (record_async, record_async_mask, record_can_async_p)
1135 (record_is_async_p, record_execution_direction): New functions.
1136 (init_record_ops, init_record_core_ops): Install new methods.
1137 * infrun.c (fetch_inferior_event): Temporarily switch the global
1138 execution direction to the direction the target was going.
1139 (execution_direction): Change type to int.
1140 * target.c (default_execution_direction): New function.
1141 (update_current_target): Inherit and de_fault
1142 to_execution_direction.
1143 * target.h (struct target_ops) <to_execution_direction>: New
1145 (target_execution_direction): New macro.
1146 * inferior.h (execution_direction): Change type to int.
1148 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1150 * infcall.c (call_function_by_hand): Don't allow calling functions
1151 in reverse execution mode.
1153 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1155 * infcmd.c (finish_command): Allow async finish in reverse.
1157 2011-05-26 Yao Qi <yao@codesourcery.com>
1159 * gdb_thread_db.h: Delete. Move to ...
1160 * common/gdb_thread_db.h: ... here.
1162 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1164 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1165 function's entry point instead of a manually managed momentary
1166 breakpoint, and only ever issue one proceed call.
1167 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1168 doing a reverse-finish, switch to stepi mode, to do another step.
1169 (insert_step_resume_breakpoint_at_sal): Make public.
1170 (normal_stop): No need to save function value return registers if
1172 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1174 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1176 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1177 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1178 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1180 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1181 step-resume breakpoints.
1182 (print_it_typical): Handle bp_hp_step_resume.
1183 (bpstat_what): Ditto.
1184 (bptype_string): Ditto.
1185 (print_one_breakpoint_location): Ditto.
1186 (allocate_bp_location): Ditto.
1188 (breakpoint_re_set_one): Ditto.
1189 * infrun.c (handle_inferior_event): Adjust. Split
1190 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1191 BPSTAT_WHAT_HP_STEP_RESUME.
1192 (insert_step_resume_breakpoint_at_sal): Rename to ...
1193 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1194 parameter. Handle it.
1195 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1196 insert_step_resume_breakpoint_at_sal_1.
1197 (insert_step_resume_breakpoint_at_frame): Rename to ...
1198 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1199 set a high-priority step-resume breakpoint.
1200 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1201 (insert_step_resume_breakpoint_at_caller): Ditto.
1203 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1205 * breakpoint.c (iterate_over_related_breakpoints): New.
1206 (do_map_delete_breakpoint): New.
1207 (delete_command): Pass do_map_delete_breakpoint to
1208 map_breakpoint_numbers.
1209 (do_disable_breakpoint): New.
1210 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1212 (do_enable_breakpoint): Rename to ...
1213 (enable_breakpoint_disp): ... this.
1214 (enable_breakpoint): Adjust.
1215 (do_enable_breakpoint): New.
1216 (enable_once_breakpoint): Delete.
1217 (do_map_enable_breakpoint): New.
1218 (do_map_enable_once_breakpoint): New.
1219 (enable_once_command, enable_delete_command)
1220 (delete_trace_command): Iterate over the breakpoint's related
1223 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1225 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1226 for ALPHA_ZERO_REGNUM.
1227 (alpha_supply_int_regs): Explicitly supply zero as the value for
1228 ALPHA_ZERO_REGNUM in the register cache.
1229 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1231 2011-05-26 Yao Qi <yao@codesourcery.com>
1233 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1235 2011-05-26 Tristan Gingold <gingold@adacore.com>
1237 * symfile.h (struct dwarf2_section_names): New type.
1238 (struct dwarf2_debug_sections): New type.
1239 (dwarf2_has_info): Add parameter.
1240 * dwarf2read.c (dwarf2_elf_names): New variable.
1241 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1242 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1243 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1244 (dwarf2_has_info): Add names parameter. Pass names
1245 to dwarf2_locate_sections.
1246 (section_is_p): Rewrite using the names parameter.
1247 (dwarf2_locate_sections): Use section names from the names parameter.
1248 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1249 * elfread.c (read_psyms): Ditto.
1250 * machoread.c (macho_symfile_read): Ditto.
1252 2011-05-25 Andreas Schwab <schwab@redhat.com>
1255 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1257 2011-05-24 Keith Seitz <keiths@redhat.com>
1260 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1261 (decode_compound): Unconditionally call keep_name_info.
1263 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1265 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1266 scope, clear its command list.
1267 (map_breakpoint_numbers): Don't walk the related breakpoints list
1270 2011-05-24 Tom Tromey <tromey@redhat.com>
1272 * MAINTAINERS: Move Jim Blandy to past maintainers.
1274 2011-05-24 Tristan Gingold <gingold@adacore.com>
1276 * symfile.h (enum dwarf2_section_enum): New type.
1277 (dwarf2_get_section_info): New prototype.
1278 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1279 section_name by sect. Use a switch to select the info.
1280 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1281 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1283 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1285 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1286 shared library event breakpoint if there's no execution.
1288 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1290 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1291 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1293 2011-05-23 Tom Tromey <tromey@redhat.com>
1295 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1298 2011-05-23 Doug Evans <dje@google.com>
1300 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1301 entry for RuntimeError to doc string.
1303 2011-05-23 Jerome Guitton <guitton@adacore.com>
1305 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1306 sequence for probing loops.
1308 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1310 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1313 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1315 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1316 zero as the value for %g0 in the register cache.
1317 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1318 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1320 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1322 * infrun.c (proceed): Set previous_inferior_ptid here.
1323 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1324 inferior_ptid, not null_ptid.
1325 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1326 (fetch_inferior_event): Nor here.
1328 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1330 * inf-loop.c (inferior_event_handler): Only output a message if
1333 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1335 * MAINTAINERS: Update my e-mail address.
1337 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1339 * infrun.c (proceed): Switch the inferior event loop to
1340 INF_EXEC_COMPLETE if the target refused to resume from a
1343 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1345 * infcmd.c: Include "inf-loop.h".
1346 (step_once): When stepping into an inline subroutine, pretend the
1347 target has run. If the target can async, switch the inferior
1348 event loop to INF_EXEC_COMPLETE.
1349 * inferior.h (user_visible_resume_ptid): Declare.
1350 * infrun.c (user_visible_resume_ptid): New function, factored out
1353 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1354 that the current thread is running. Merge async and sync
1357 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1359 * infcmd.c (step_1): Simplify synchronous case.
1361 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1363 * tracepoint.c: Include exceptions.h.
1364 (TFILE_PID): Move higher in file.
1365 (tfile_open): Delay pushing the tfile target until we're assured
1366 the tfile header is present in the file. Wrap reading the initial
1367 newline-terminated lines in TRY_CATCH. Pop the target if the
1368 initial setup failed. Add the tfile's thread immediately
1369 aftwards, before any non-essential setup. Don't skip
1370 post_create_inferior if there are no traceframes present in the
1372 (tfile_close): Remove redundant check for null before xfree call.
1373 (tfile_thread_alive): New function.
1374 (init_tfile_ops): Register it as to_thread_alive callback.
1376 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1378 * tracepoint.c (tfile_open): Delete #if 0'd code.
1380 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1382 Fix -readnow for -gdwarf-4 unused type units.
1383 * dwarf2read.c (struct signatured_type): Remove the field offset.
1384 (create_signatured_type_table_from_index): Remove its initialization.
1385 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1386 instead. Add a complaint call.
1387 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1388 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1389 (lookup_signatured_type_at_offset, read_signatured_type)
1390 (write_one_signatured_type): Update the field for per_cu.
1392 2011-05-19 Tom Tromey <tromey@redhat.com>
1394 * python/py-inferior.c (python_inferior_exit): Use
1396 (python_on_resume): Likewise.
1398 2011-05-19 Matt Rice <ratmice@gmail.com>
1400 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1402 2011-05-19 Hui Zhu <teawater@gmail.com>
1404 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1406 2011-05-19 Hui Zhu <teawater@gmail.com>
1408 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1410 2011-05-18 Tom Tromey <tromey@redhat.com>
1412 * dwarf2read.c (dwarf2_add_field): Constify.
1413 * value.c (value_static_field): Constify.
1414 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1416 * ax-gdb.c (gen_static_field): Constify
1418 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1420 * linux-nat.c (kill_callback): Use SIGKILL first.
1422 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1424 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1426 2011-05-18 Tom Tromey <tromey@redhat.com>
1428 * value.c (value_fn_field): Constify.
1429 * symtab.c (gdb_mangle_name): Constify.
1430 * stabsread.c (update_method_name_from_physname): Make 'physname'
1432 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1433 const. Use explicit fputc_filtered loop.
1434 (pascal_type_print_base): Constify.
1435 * p-lang.h (pascal_type_print_method_args): Update.
1436 * linespec.c (add_matching_methods): Constify.
1437 (add_constructors): Likewise.
1438 * jv-typeprint.c (java_type_print_base): Constify.
1439 * gdbtypes.h (struct cplus_struct_type)
1440 <fn_fieldlist.fn_field.physname>: Now const.
1441 * dwarf2read.c (compute_delayed_physnames): Constify.
1442 (dwarf2_add_member_fn): Likewise.
1443 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1445 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1447 * infrun.c (resume): Mention which is the current thread, and its
1448 current PC in debug output.
1449 (prepare_to_proceed): Mention the thread switching in debug
1452 2011-05-18 Tom Tromey <tromey@redhat.com>
1454 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1455 path check. Use xmalloc and cleanups.
1456 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1458 2011-05-17 Tom Tromey <tromey@redhat.com>
1460 * cp-valprint.c (cp_print_value_fields): Catch errors from
1463 2011-05-17 Tom Tromey <tromey@redhat.com>
1465 * dwarf2read.c (dwarf2_get_die_type): Call
1466 get_die_type_at_offset.
1467 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1468 get_base_type function.
1470 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1472 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1475 2011-05-16 Doug Evans <dje@google.com>
1477 * python/py-auto-load.c (source_section_scripts): Mention objfile
1480 2011-05-15 Doug Evans <dje@google.com>
1482 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1483 (try_thread_db_load_from_pdir): Call it. If unable to find
1484 libthread_db in directory of libpthread, see if we're looking at
1485 the separate-debug-info copy.
1487 * python/py-autoload.c (print_script): Print "Missing" instead of
1488 "No" for missing scripts.
1489 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1491 2011-05-13 Doug Evans <dje@google.com>
1493 * ui-file.c (stdio_file_write_async_safe): Add comment.
1495 2011-05-14 Hui Zhu <teawater@gmail.com>
1497 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1499 2011-05-13 Doug Evans <dje@google.com>
1501 Support $pdir and $sdir in libthread-db-search-path.
1502 * NEWS: Mention $sdir,$pdir.
1503 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1504 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1505 (try_thread_db_load_from_sdir): New function.
1506 (try_thread_db_load_from_dir): New function.
1507 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1508 system directories if search of libthread-db-search-path fails,
1509 that is now done via $sdir.
1510 (has_libpthread): New function.
1511 (thread_db_load): Remove search for libthread_db in directory of
1512 libpthread, that is now done via $pdir.
1514 * NEWS: Mention "info auto-load-scripts".
1515 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1516 script_not_found_warning_printed.
1517 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1518 all callers updated. Initialize script_not_found_warning_printed.
1519 (get_auto_load_pspace_data_for_loading): New function.
1520 (maybe_add_script): New function.
1521 (source_section_scripts): Simplify. Only print one warning regardless
1522 of the number of auto-load scripts not found.
1523 (clear_section_scripts): Clear script_not_found_warning_printed.
1524 (auto_load_objfile_script): Record script in hash table.
1525 (count_matching_scripts): New function.
1526 (maybe_print_script): Renamed from maybe_print_section_script, all
1527 callers updated. Rewrite to use ui_out_*.
1528 (info_auto_load_scripts): Renamed from
1529 maintenance_print_section_scripts, all callers updated.
1530 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1531 renamed as "info auto-load-scripts".
1533 2011-05-13 Tom Tromey <tromey@redhat.com>
1535 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1536 (read_sleb128): Likewise.
1538 2011-05-13 Tom Tromey <tromey@redhat.com>
1540 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1543 2011-05-13 Doug Evans <dje@google.com>
1545 * linux-nat.c (debug_linux_nat_async): Delete.
1546 Replace all references to use debug_linux_nat instead.
1547 (show_debug_linux_nat_async): Delete.
1548 (sigchld_handler): Call ui_file_write_async_safe instead of
1550 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1551 * ui-file.c (struct ui_file): New member to_write_async_safe.
1552 (null_file_write_async_safe): New function.
1553 (ui_file_write_async_safe): New function.
1554 (set_ui_file_write_async_safe): New function.
1555 (ui_file_new): Initialize to_write_async_safe.
1556 (stdio_file_write_async_safe): New function.
1557 (struct stdio_file): New member fd.
1558 (stdio_file_new): Initialize to_write_async_safe, fd.
1559 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1561 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1562 (set_ui_file_write_async_safe): Declare.
1563 (ui_file_write_async_safe): Declare.
1565 2011-05-13 Tom Tromey <tromey@redhat.com>
1567 * utils.c (do_value_free): New function.
1568 (make_cleanup_value_free): Likewise.
1569 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1571 (dwarf2_loc_desc_needs_frame): Call
1572 make_cleanup_value_free_to_mark.
1573 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1574 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1576 (new_dwarf_expr_context): Don't call value_mark.
1577 * dwarf2-frame.c (execute_stack_op): Call
1578 make_cleanup_value_free_to_mark.
1579 * defs.h (make_cleanup_value_free): Declare.
1581 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1583 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1584 prepare_execute_command.
1585 * top.c (prepare_execute_command): Return cleanup.
1586 (execute_command): Use cleanup from prepare_execute_command.
1587 * top.h (prepare_execute_command): Change prototype to return
1589 * defs.h (struct value): Add opaque declaration.
1590 (make_cleanup_value_free_to_mark): Add prototype.
1591 * utils.c (do_value_free_to_mark): New function.
1592 (make_cleanup_value_free_to_mark): Likewise.
1594 2011-05-12 Tom Tromey <tromey@redhat.com>
1596 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1597 cast left-hand-side to unsigned.
1599 2011-05-12 Tom Tromey <tromey@redhat.com>
1602 * value.h (value_from_contents): Declare.
1603 * value.c (value_from_contents): New function.
1604 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1605 (dwarf2_get_die_type): New function.
1606 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1607 (allocate_piece_closure): Acquire reference to values.
1608 (read_pieced_value): Update for value-based expressions.
1609 (write_pieced_value): Likewise.
1610 (free_pieced_value_closure): Call value_free as needed.
1611 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1612 Update for value-based expressions.
1613 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1614 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1615 <get_base_type>: New field.
1616 (struct dwarf_expr_piece) <v.value>: Change type.
1617 <v.regno>: New field.
1618 (struct dwarf_expr_context) <mark>: New field.
1619 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1620 (dwarf_expr_pop, dwarf_expr_push): Remove.
1621 (dwarf_expr_push_address): Declare.
1622 * dwarf2expr.c (dwarf_arch_cookie): New global.
1623 (struct dwarf_gdbarch_types): New.
1624 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1626 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1628 (dwarf_expr_push_address): New function.
1629 (dwarf_expr_pop): Now static.
1630 (dwarf_expr_fetch): Change return type.
1631 (dwarf_require_integral): New function.
1632 (dwarf_expr_fetch): Simplify.
1633 (add_piece): Update.
1634 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1636 (execute_stack_op) <sign_ext>: Remove.
1637 Use values for DWARF stack.
1638 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1639 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1641 (_initialize_dwarf2expr): New function.
1642 (add_piece): Update.
1643 (new_dwarf_expr_context): Set new field.
1644 (free_dwarf_expr_context): Call value_free_to_mark.
1645 * dwarf2-frame.c (no_base_type): New function.
1646 (execute_stack_op): Set get_base_type field. Update.
1648 2011-05-12 Tom Tromey <tromey@redhat.com>
1650 * dwarf2read.c (read_common_block): Fix formatting.
1652 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1654 * breakpoint.c (disable_breakpoint): Disable all locations
1655 associated with a tracepoint on target if a trace experiment is
1657 (disable_command): Disable a specific tracepoint location on target if
1658 a trace experiment is running.
1659 (do_enable_breakpoint): Enable all locations associated with a
1660 tracepoint on target if a trace experiment is running.
1661 (enable_command) Enable a specific tracepoint location on target if a
1662 trace experiment is running.
1663 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1664 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1665 to_disable_tracepoint.
1666 * target.h: Add declaration of struct bp_location.
1667 (struct target_ops): Add new functions
1668 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1669 to_disable_tracepoint to target operations.
1670 (target_supports_enable_disable_tracepoint): New macro.
1671 (target_enable_tracepoint): New macro.
1672 (target_disable_tracepoint): New macro.
1673 * remote.c (struct remote_state): Add new field.
1674 (remote_enable_disable_tracepoint_feature): New.
1675 (remote_protocol_features): Add new entry.
1676 (remote_supports_enable_disable_tracepoint): New.
1677 (remote_enable_tracepoint): New.
1678 (remote_disable_tracepoint): New.
1679 (init_remote_ops): Add remote_enable_tracepoint,
1680 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1681 to remote operations.
1682 * tracepoint.c (start_tracing): Allow tracing to start without any
1683 tracepoints enabled with just a warning if they can be re-enabled
1685 * NEWS: Add news item for the new behaviour of the enable and disable
1686 GDB commands when applied to tracepoints.
1687 Add news items for the new remote packets QTEnable and QTDisable.
1689 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1691 * config.in: Regenerate.
1692 * configure: Regenerate.
1693 * configure.ac <--with-system-readline> (for readline_echoing_p):
1695 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1696 (tui_old_rl_echoing_p): ... here.
1697 (tui_setup_io): Rename extern declaration readline_echoing_p to
1698 _rl_echoing_p. Adjust assignments for the both renames.
1700 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1702 * symtab.c (lookup_symtab): Run cleanup before returning.
1704 2011-05-11 Tom Tromey <tromey@redhat.com>
1706 * dwarf2read.c (handle_data_member_location): New function.
1707 (dwarf2_add_field): Use it.
1708 (read_common_block): Likewise.
1710 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1712 Make addrs->SECTINDEX always defined.
1713 * symfile.c (relative_addr_info_to_section_offsets): Check for
1714 SECTINDEX -1, not for zero ADDR.
1715 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1716 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1717 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1720 2011-05-10 Doug Evans <dje@google.com>
1722 * linux-thread-db.c: Whitespace cleanup.
1723 (try_thread_db_load_1): Fix comment.
1725 * linux-thread-db.c (set_libthread_db_search_path): New function.
1726 (_initialize_thread_db): Add setter for libthread-db-search-path.
1728 2011-05-09 Doug Evans <dje@google.com>
1730 * NEWS: Mention --with-iconv-bin.
1731 * configure.ac: New option --with-iconv-bin.
1732 * configure: Regenerate.
1733 * config.in: Regenerate.
1734 * defs.h (relocate_gdb_directory): Declare.
1735 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1736 removed progname parameter, and exported. All callers updated.
1737 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1739 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1740 adding missing call to restore_child_signals_mask.
1742 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1744 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1746 * infrun.c (proceed, start_remote): Adjust.
1747 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1748 and adjust to not handle it.
1749 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1750 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1751 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1752 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1753 * windows-nat.c (do_initial_windows_stuff): Adjust.
1754 * infcmd.c (attach_command): Adjust.
1755 (notice_new_inferior): Adjust.
1757 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1759 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1760 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1761 * spu-tdep.c (op_selb): Use correct value.
1763 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1765 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1766 "parent" parameter to symbol_file_add_from_bfd call.
1768 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1769 Thiago Jung Bauermann <bauerman@br.ibm.com>
1771 Implement support for PowerPC BookE masked watchpoints.
1772 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1774 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1775 method. Initialize to NULL in all existing breakpoint_ops instances.
1776 (struct breakpoint) <hw_wp_mask>: New field.
1777 * breakpoint.c (is_masked_watchpoint): Add prototype.
1778 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1779 breakpoint's breakpoint_ops.works_in_software_mode if available.
1780 (watchpoints_triggered): Handle the case of a hardware masked
1782 (watchpoint_check): Likewise.
1783 (works_in_software_mode_watchpoint): New function.
1784 (insert_masked_watchpoint, remove_masked_watchpoint)
1785 (resources_needed_masked_watchpoint)
1786 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1787 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1788 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1790 (masked_watchpoint_breakpoint_ops): New structure.
1791 (watch_command_1): Check for the existence of the `mask' parameter.
1792 Set b->ops according to the type of hardware watchpoint being created.
1793 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1794 (ppc_linux_remove_mask_watchpoint)
1795 (ppc_linux_masked_watch_num_registers): New functions.
1796 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1797 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1798 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1799 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1800 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1801 (target_masked_watch_num_registers): New functions.
1802 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1803 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1805 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1806 (target_masked_watch_num_registers): Add prototypes.
1808 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1811 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1812 (producer_is_gcc_ge_4_0): New function.
1813 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1814 symtab->language code.
1815 (var_decode_location): Set cu->has_loclist.
1816 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1817 skip. Intialize force_skip from locations_valid. Move the prologue
1818 skipping code into two passes.
1819 * symtab.h (struct symtab): Make the primary field a bitfield. New
1820 field locations_valid.
1822 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1824 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1825 (classify_inner_name): Call cp_lookup_nested_type with
1827 * cp-namespace.c (cp_lookup_nested_type): New variable
1828 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1829 type_name_no_tag_or_error with saved_parent_type.
1830 * dwarf2read.c (load_partial_dies): Read in any children of
1831 DW_TAG_typedef with complaint in such case.
1832 * gdbtypes.c (type_name_no_tag_or_error): New function.
1833 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1834 * valops.c (destructor_name_p): New comment for parameter type. Remove
1835 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1836 * value.h (destructor_name_p): Remove type const.
1838 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1840 * symtab.c (compare_symbol_name): New function.
1841 (completion_list_add_name, expand_partial_symbol_name): Call it,
1842 remove the variable ncmp.
1843 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1846 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1848 Demote to sw watchpoint only in update_watchpoint.
1849 * breakpoint.c (update_watchpoint): Change between software and
1850 hardware watchpoint for all kinds of watchpoints, not just
1851 read/write ones. Determine b->exact value here instead of
1852 in watch_command_1. Error out if there are not enough resources
1853 for a read or access hardware watchpoint.
1854 (watch_command_1): Remove logic of checking whether there are
1855 enough resources available, since update_watchpoint will do that
1856 work now. Don't set b->exact here. Catch exceptions thrown by
1857 update_watchpoint and delete the watchpoint.
1858 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1859 Use target_exact_watchpoints instead.
1860 (delete_breakpoint): Notify observers only if deleted watchpoint
1861 has a breakpoint number assigned to it.
1863 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1865 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1867 2011-05-05 Jerome Guitton <guitton@adacore.com>
1869 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1871 (i386_stack_tramp_frame_unwind): New static global.
1872 (i386_match_pattern): New function, extracted from i386_match_insn.
1873 (i386_match_insn): Use i386_match_pattern.
1874 (i386_match_insn_block): New function.
1875 (i386_tramp_chain_in_reg_insns)
1876 (i386_tramp_chain_on_stack_insns): New static variables.
1877 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1880 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1882 * configure.host (xscale*): Don't handle target.
1883 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1886 2011-05-04 Yao Qi <yao@codesourcery.com>
1888 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1890 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1893 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1894 | * elfread.c (elf_symtab_read): Stop memory leak.
1896 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1898 * nto-tdep.c (nto_target): Replace deprecated call to
1899 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1901 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1903 Fix false GCC warning.
1904 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1906 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1908 * breakpoint.c (update_watchpoint): Move code to change
1909 the enable state of breakpoint from here ...
1910 (do_enable_breakpoint): ... to here.
1912 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1914 * valprint.c (val_print_array_elements): Fixed poor performance
1915 of printing very large arrays with repeat_count_threshold set
1916 to unlimited. New comment.
1918 2011-04-29 Tom Tromey <tromey@redhat.com>
1920 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1921 (mi_parse): Likewise.
1922 * breakpoint.c (break_range_command): Use sizeof char*, not
1924 (create_breakpoint): Likewise.
1925 (parse_breakpoint_sals): Likewise.
1927 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1929 * linux-nat.c (linux_child_remove_fork_catchpoint)
1930 (linux_child_remove_vfork_catchpoint)
1931 (linux_child_remove_exec_catchpoint): New functions.
1932 (linux_target_install_ops): Install them.
1934 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1938 * varobj.c (install_default_visualizer): Do not install a
1939 visualizer if the varobj is CPLUS_FAKE_CHILD.
1940 (construct_visualizer): Likewise.
1942 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1944 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1945 case insensitive comparison.
1947 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1949 * infrun.c (proceed): Revert previous change.
1950 (resume): Instead, handle the case of signal delivery while stepping
1951 off a breakpoint location here, and only if software single-stepping
1952 is used. Handle nested signals.
1954 2011-04-28 Yao Qi <yao@codesourcery.com>
1956 * arm-tdep.c (copy_unmodified): Rename to ...
1957 (arm_copy_unmodified): .. this. New.
1958 (copy_preload): Move common part to ...
1959 (install_preload): .. this. New.
1960 (arm_copy_preload): New.
1961 (copy_preload_reg): Move common part to ...
1962 (install_preload_reg): ... this. New.
1963 (arm_copy_preload_reg): New.
1964 (copy_b_bl_blx): Move common part to ...
1965 (install_b_bl_blx): .. this. New.
1966 (arm_copy_b_bl_blx): New.
1967 (copy_bx_blx_reg): Move common part to ...
1968 (install_bx_blx_reg): ... this. New.
1969 (arm_copy_bx_blx_reg): New.
1970 (copy_alu_reg): Move common part to ...
1971 (install_alu_reg): ... this. New.
1972 (arm_copy_alu_reg): New.
1973 (copy_alu_shifted_reg): Move common part to ...
1974 (install_alu_shifted_reg): ... this. New.
1975 (copy_ldr_str_ldrb_strb): Move common part to ...
1976 (install_ldr_str_ldrb_strb): ... this. New.
1977 (arm_copy_ldr_str_ldrb_strb): New.
1978 (copy_copro_load_store): Move some common part to ...
1979 (install_copy_copro_load_store): ... this. New.
1980 (arm_copy_copro_load_store): New.
1982 (arm_copy_svc): Renamed from copy_svc.
1983 (copy_undef): Delete.
1984 (arm_copy_undef): Renamed from copy_undef.
1985 (decode_ext_reg_ld_st): Delete.
1986 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1987 (decode_svc_copro): Delete.
1988 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1989 (copy_copro_load_store, copy_alu_imm): update callers.
1990 (copy_extra_ld_st, copy_block_xfer): Likewise.
1991 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1992 (decode_miscellaneous, decode_dp_misc): Likewise.
1993 (decode_ld_st_word_ubyte, decode_media): Likewise.
1994 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1995 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1996 (decode_unconditional, decode_miscellaneous): Likewise.
1997 (decode_media, decode_b_bl_ldmstm): Likewise.
1998 (arm_process_displaced_insn): Likewise..
1999 (decode_misc_memhint_neon): Delete.
2000 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2001 (decode_miscellaneous): Delete.
2002 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2003 (decode_dp_misc): Delete.
2004 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2005 (decode_ld_st_word_ubyte): Delete.
2006 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2007 (decode_media): Delete.
2008 (arm_decode_media): Renamed from decode_media.
2009 (decode_b_bl_ldmstm): Delete.
2010 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2011 (decode_ext_reg_ld_st): Delete.
2012 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2013 (decode_unconditional): Delete.
2014 (arm_decode_unconditional): Renamed from decode_unconditional.
2016 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2018 Case insensitive lookups implementation.
2019 * dwarf2read.c: Include ctype.h.
2020 (struct mapped_index): New field version.
2021 (mapped_index_string_hash): New parameter index_version. New comment
2022 for it. Call tolower appropriately.
2023 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2024 Choose the right index version for mapped_index_string_hash.
2025 (dwarf2_read_index): Support also the index version 5. Initialize the
2026 new struct mapped_index field version.
2027 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2028 (find_slot): Explain the version needs. Pass INT_MAX for the new
2030 (write_psymtabs_to_index): Produce version 5.
2031 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2032 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2033 * psymtab.c (lookup_partial_symbol): Find the
2034 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2036 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2038 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2039 (completion_list_add_name): New variable ncmp, initialize it, use it.
2040 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2041 * utils.c (strcmp_iw): Support case_sensitive_off.
2042 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2043 New function comment part. New variables saved_string1,
2044 saved_string2 and case_pass. Add a proper second pass.
2046 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2048 Replace re_comp/re_exec by regcomp/regexec.
2049 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2050 (search_symbols_name_matches): Use them, use regexec.
2051 (search_symbols): New variable retval_chain, adjust the use of
2052 old_chain against it. Replace re_comp by regcomp. Use the new struct
2053 search_symbols_data fields, use regexec instead of re_exec.
2055 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2057 Format the code for the next patch.
2058 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2059 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2060 New variables c1 and c2.
2062 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2064 * infrun.c (proceed): Do not single-step into signal delivery
2065 when stepping off a breakpoint location.
2066 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2067 (insert_step_resume_breakpoint_at_caller): Likewise.
2068 (insert_step_resume_breakpoint_at_sal): Likewise.
2069 (insert_longjmp_resume_breakpoint): Likewise.
2071 2011-04-27 Yao Qi <yao@codesourcery.com>
2073 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2075 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2077 * procfs.c (procfs_pass_signals): Fix advance declaration.
2079 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2081 * target.h (struct target_ops): Remove to_notice_signals;
2082 add to_pass_signals.
2083 (target_notice_signals): Remove.
2084 (target_pass_signals): Add prototype.
2085 * target.c (update_current_target): Remove to_notice_signals;
2086 mention to_pass_signals.
2087 (target_pass_signals): New function.
2088 (debug_to_notice_signals): Remove.
2089 (setup_target_debug): Do not install debug_to_notice_signals.
2091 * infrun.c (signal_pass): New global.
2092 (resume): Call target_pass_signals.
2093 (handle_inferior_event): Report all signals while stepping over
2094 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2095 are re-inserted when stepping over a signal handler.
2096 (signal_cache_update): New function.
2097 (signal_stop_update): Call it.
2098 (signal_print_update): Likewise.
2099 (signal_pass_update): Likewise.
2100 (handle_command): Call signal_cache_update and target_pass_signals
2101 instead of target_notice_signals.
2102 (_initialize_infrun): Initialize signal_pass.
2104 * linux-nat.c (pass_mask): New global.
2105 (linux_nat_pass_signals): New function.
2106 (linux_nat_create_inferior): Report all signals initially.
2107 (linux_nat_attach): Likewise.
2108 (linux_nat_resume): Use pass_mask to decide whether to directly
2109 handle an inferior signal.
2110 (linux_nat_wait_1): Likewise.
2111 (linux_nat_add_target): Install to_pass_signals callback.
2113 * nto-procfs.c (notice_signals): Remove.
2114 (procfs_resume): Do not call notice_signals.
2115 (procfs_notice_signals): Remove.
2116 (procfs_pass_signals): New function.
2117 (init_procfs_ops): Install to_pass_signals callback instead of
2118 to_notice_signals callback.
2119 (_initialize_procfs): Report all signals initially.
2121 * procfs.c (procfs_notice_signals): Remove.
2122 (procfs_pass_signals): New function.
2123 (procfs_target): Install to_pass_signals callback instead of
2124 to_notice_signals callback.
2125 (register_gdb_signals): Remove.
2126 (procfs_debug_inferior): Report all signals initially.
2127 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2129 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2130 parameters; use them instead of calling signal_..._state routines.
2131 (remote_notice_signals): Remove.
2132 (remote_start_remote): Report all signals initially.
2133 (remote_resume): Do not call remote_pass_signals.
2134 (_initialize_remote): Install to_pass_signals callback instead of
2135 to_notice_signals callback.
2137 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2139 * breakpoint.c (user_settable_breakpoint): Delete.
2140 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2141 (delete_command): Check user_breakpoint_p instead of looking at
2142 the breakpoint's type.
2143 (disable_command): Ditto.
2144 (enable_command): Ditto.
2145 (delete_trace_command): Use user_breakpoint_p instead of looking
2146 at the breakpoint number directly. When checking if there are
2147 user visible tracepoints, in order to know whether to ask the user
2148 for confirmation, check whether the breakpoint is actually a
2151 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2153 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2156 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2158 MI breakpoint notifications.
2160 * annotate.c (breakpoint_changed): Adjust parameter type.
2161 * breakpoint.c (set_breakpoint_condition): Adjust to change
2162 in breakpoint_modified type.
2163 (breakpoint_set_commands): Likewise.
2164 (do_map_commands_command): Likewise.
2165 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2166 changed after bumping hit count.
2167 (bpstat_stop_status): Likewise.
2168 (print_one_breakpoint_location): Don't wrap in tuple here.
2169 (print_one_breakpoint): Always print individual locations.
2170 For locations, use unnamed tuple.
2171 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2173 (create_catchpoint, create_syscall_event_catchpoint): Call
2174 breakpoint_created obsever.
2175 (mention): Don't call breakpoint_created observer.
2176 (create_breakpoint_sal): Call breakpoint_created observer.
2177 (create_breakpoint, watch_command_1): Likewise.
2178 (create_ada_exception_breakpoint): Likewise.
2179 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2180 (locations_are_equal): New.
2181 (update_breakpoint_locations): If locations were changed, notify.
2182 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2183 Call breakpoint_modified observer.
2185 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2186 (mi_cmd_break_insert): Don't set observers for modify and delete.
2187 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2188 (mi_breakpoint_created, mi_breakpoint_deleted)
2189 (mi_breakpoint_modified): New.
2190 (mi_interpreter_init): Hook the above.
2191 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2192 while -break-* commands are executing.
2193 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2194 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2196 (mi_ui_out_impl): Hook in mi_redirect.
2197 (mi_field_skip): True to the name, skip the field, don't output
2198 a field with an empty value.
2200 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2201 (gdbpy_breakpoint_deleted): Adjust.
2202 * tui/tui-hooks.c (tui_event_create_breakpoint)
2203 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2205 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2207 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2208 (procfs_remove_hw_watchpoint): Likewise.
2210 2011-04-26 Michael Walle <michael@walle.cc>
2212 * remote.c (remote_start_remote): Ack packet after sending the
2215 2011-04-26 Yao Qi <yao@codesourcery.com>
2217 * linux-nat.c: Move common macros to ...
2218 Include linux-ptrace.h.
2219 * common/linux-ptrace.h: ... here. New.
2221 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2223 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2224 !objfile_has_partial_symbols. New comment.
2225 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2226 SYM_READ_PSYMBOLS is not present. Extend the comment.
2227 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2229 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2231 * defs.h (ENUM_BITFIELD): Remove.
2233 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2234 Eli Zaretskii <eliz@gnu.org>
2236 * NEWS: Document the new gdbserver --once option.
2238 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2240 * MAINTAINERS: Update my email address.
2242 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2244 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2245 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2246 function call if __STDC_ISO_10646__ macro is defined.
2247 (intermediate_encoding): New prototype.
2248 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2249 to generate compile time error for unsupported gdb_wchar_t size.
2250 (ENDIAN_SUFFIX): New macro.
2251 (intermediate_encoding): New function.
2253 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2255 * ada-lang.c (struct add_partial_datum): Update the comment for
2256 expand_partial_symbol_name.
2257 (ada_add_partial_symbol_completions): Rename to ...
2258 (ada_expand_partial_symbol_name): ... here, change return type, update
2259 function comment, call symbol_completion_match instead of
2260 symbol_completion_add.
2261 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2262 and ada_expand_partial_symbol_name.
2263 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2265 (dw2_map_symbol_names): Remove.
2266 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2267 * psymtab.c (map_symbol_names_psymtab): Remove.
2268 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2269 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2271 (psym_functions): Unlist map_symbol_names_psymtab.
2272 (map_partial_symbol_names): Rename to ...
2273 (expand_partial_symbol_names): ... here, change the FUN type, call
2274 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2275 * psymtab.h (map_partial_symbol_names): Rename to ...
2276 (expand_partial_symbol_names): ... here, change the FUN type.
2277 * symfile.h (struct quick_symbol_functions): Update the description of
2278 expand_symtabs_matching. Remove map_symbol_names.
2279 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2280 (struct add_name_data): Update the comment for
2281 expand_partial_symbol_name.
2282 (add_partial_symbol_name): Rename to ...
2283 (expand_partial_symbol_name): ... here. Replace
2284 completion_list_add_name call by strncmp.
2285 (default_make_symbol_completion_list_break_on): Use now
2286 expand_partial_symbol_names and expand_partial_symbol_name.
2287 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2289 2011-04-20 Tom Tromey <tromey@redhat.com>
2291 * dwarf2read.c (save_gdb_index_command): Replace format
2292 documentation with a pointer to the manual.
2294 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2296 * regcache.c: Include remote.h.
2297 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2298 (regcache_dump): Handle regcache_dump_remote.
2299 (maintenance_print_remote_registers): New function.
2300 (_initialize_regcache): Install "maint print remote-registers"
2302 * remote.c (map_regcache_remote_table): New function, factored out
2304 (init_remote_state): ... here.
2305 (remote_register_number_and_offset): New.
2306 * remote.h (remote_register_number_and_offset): Declare.
2308 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2310 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2311 null_ptid, assume and allow a NULL address space, instead of
2312 asking the target for the ptid's address space.
2313 * infrun.c (ptid_is_pid): Remove assertion.
2315 2011-04-19 Tom Tromey <tromey@redhat.com>
2317 * windows-tdep.c (windows_xfer_shared_library):
2318 * windows-nat.c (get_module_name, windows_make_so):
2319 * v850-tdep.c (v850_handle_pushm):
2320 * utils.c (null_cleanup, gdb_realpath):
2321 * ui-out.c (get_next_header):
2322 * tracepoint.c (clear_traceframe_info):
2323 * symtab.c (lookup_symtab):
2324 * serial.h (struct serial_ops):
2325 * mipsread.c (read_alphacoff_dynamic_symtab):
2326 * infcmd.c (print_return_value):
2327 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2328 * f-exp.y (parse_number):
2329 * exceptions.c (catch_exceptions):
2330 * dummy-frame.c (dummy_frame_this_id):
2331 * defs.h (struct cleanup):
2332 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2333 * arm-tdep.c (arm_push_dummy_call):
2334 * amd64-tdep.h (amd64_collect_xsave):
2335 * amd64-tdep.c (amd64_collect_xsave):
2336 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2337 * README (typing): Remove duplicate words.
2338 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2339 * infrun.c (siginfo_value_read): Fix typo.
2340 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2341 * top.c (source_line_number): Add comma.
2343 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2345 * thread.c (any_live_thread_of_process): Prioritize threads
2346 that are not executing.
2347 * gdbthread.h (any_live_thread_of_process): Update comment
2348 as per above change.
2350 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2352 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2353 (scan_xcoff_symtab): Likewise.
2355 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2357 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2360 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2361 Pedro Alves <pedro@codesourcery.com>
2363 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2364 variables to simplify code and avoid == operator at end of
2365 line as this is against GNU coding standards.
2367 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2369 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2370 lm_name to name_lm to avoid conflict with lm_name function.
2372 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2374 ARI fixes: Use only lowercase function name for static functions.
2375 * nto-tdep.c (LM_ADDR): Rename to...
2376 (lm_addr): New function name.
2377 (nto_relocate_section_addresses): Adapt to change above.
2378 * solib-sunos.c (LM_ADDR): Rename to...
2379 (lm_addr): New function name.
2380 (LM_NEXT): Rename to...
2381 (lm_next): New function name.
2382 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2383 function name changes above.
2384 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2385 (lm_addr_from_link_map): New function name.
2386 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2387 (has_lm_dynamic_from_link_map): New function name.
2388 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2389 (lm_dynamic_from_link_map): New function name.
2390 (LM_ADDR_CHECK): Rename to...
2391 (lm_addr_check): New function name.
2392 (LM_NEXT): Rename to...
2393 (lm_next): New function name.
2394 (LM_PREV): Rename to...
2395 (lm_prev): New function name.
2396 (LM_NAME): Rename to...
2397 (lm_name): New function name.
2398 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2399 (ignore_first_link_map_entry): New function name.
2400 (svr4_keep_data_in_core): Adapt to function name changes above.
2401 (svr4_current_sos): Likewise.
2402 (enable_break): Likewise.
2403 (svr4_relocate_section_addresses): Likewise.
2405 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2408 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2409 sprintf. Simplify code and avoid loosing memory.
2410 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2411 (call0_frame_cache): Remove && operator from end of line.
2413 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2415 Fix libraries displacement if they change whether they were prelinked.
2416 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2417 does not match. Comment why.
2419 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2421 * corelow.c: Include wrapper.h.
2422 (core_open): Call now gdb_target_find_new_threads.
2423 * wrapper.c: Include target.h.
2424 (gdb_target_find_new_threads): New.
2425 * wrapper.h (gdb_target_find_new_threads): New declaration.
2427 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2429 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2430 even if !TARGET_HAS_EXECUTION.
2432 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2434 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2435 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2436 bfd_get_synthetic_symtab.
2437 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2438 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2439 parameter parent, remove the call to add_separate_debug_objfile.
2440 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2441 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2442 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2443 parent, new comment for it, call add_separate_debug_objfile for it.
2444 (symbol_file_add_separate): Pass objfile as the parameter parent,
2445 remove the call to add_separate_debug_objfile.
2446 (symbol_file_add_from_bfd): New parameter parent, pass it.
2447 (symbol_file_add): Pass NULL to the new parameter parent.
2448 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2450 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2452 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2455 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2457 Fix Python access to inlined frames.
2458 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2459 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2461 2011-04-15 Tom Tromey <tromey@redhat.com>
2463 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2465 2011-04-15 Gary Benson <gbenson@redhat.com>
2467 * MAINTAINERS: Add myself to write-after-approval section.
2469 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2471 * remote-sim.c (sim_command_completer): New function.
2472 (_initialize_remote_sim): Set completer to sim_command_completer.
2474 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2476 * breakpoint.c (print_exception_catchpoint): Rename to ...
2477 (print_it_exception_catchpoint): ... this.
2478 (gnu_v3_exception_catchpoint_ops): Update with new name
2479 for print_it_exception_catchpoint.
2481 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2483 * MAINTAINERS: Add myself for write after approval privileges.
2485 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2487 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2489 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2491 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2493 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2495 * breakpoint.c (save_breakpoints): Verify whether
2496 breakpoint_ops.print_recreate is defined before calling it.
2498 2011-04-11 Gary Benson <gbenson@redhat.com>
2500 Fix failure with --enable-maintainer-mode.
2501 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2503 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2506 * symtab.c (search_symbols): Reorder the KIND description in the
2507 function comment. Remove the unused 4th element of types, types2,
2508 types3 and types4. New gdb_assert on KIND.
2509 (symtab_symbol_info): Remove the unused 4th element of classnames.
2510 New gdb_assert on KIND.
2511 * symtab.h (enum search_domain): New warning in the enum comment.
2512 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2515 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2517 Fix crash of gdb save-index on a STABS file.
2518 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2521 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2523 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2524 * dwarf2read.c: Include ctype.h.
2525 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2527 (dwarf2_add_field): Fix new_field->accessibility by calling
2528 dwarf2_default_access_attribute. Restructure setting accessibility
2530 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2531 is_private and is_protected by calling
2532 dwarf2_default_access_attribute.
2534 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2536 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2537 to the initialization.
2539 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2541 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2544 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2546 Remove support for old Cygwin 1.5 versions.
2547 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2548 function on old Cygwin version.
2549 * windows-nat.c: Remove cygwin version check and always define
2550 __USEWIDE for Cygwin compilation.
2552 2011-04-07 Yao Qi <yao@codesourcery.com>
2554 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2556 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2557 (arm_copy_svc): Remove parameters INSN and TO.
2558 (decode_svc_copro): Update caller.
2559 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2560 from function pointer `copy_svc_os'.
2562 2011-04-07 Yao Qi <yao@codesourcery.com>
2564 * arm-tdep.c (cleanup_branch): Set a correct return address in
2565 LR for ARM and Thumb.
2567 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2570 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2571 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2572 in the function comment, a new note on values compatibility.
2573 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2574 * symtab.h (SYMBOL_HASH_NEXT): New.
2576 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2578 * ppc-linux-nat.c (check_condition): Add len output parameter.
2579 Set it based on the memory region referenced in the condition
2580 expression. Update all callers.
2582 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2584 Fix crash regression on systems featuring .gdb_index.
2585 * objfiles.c (free_objfile): Move the
2586 forget_cached_source_info_for_objfile call earlier. Comment it.
2587 Extend the comment for objfile_free_data.
2589 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2591 Fix regression of displaying the debug format.
2592 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2595 2011-04-04 Tom Tromey <tromey@redhat.com>
2597 * cli/cli-interp.c (struct captured_execute_command_args):
2599 (do_captured_execute_command): Remove.
2600 (safe_execute_command): Use TRY_CATCH.
2601 * cli/cli-script.c (struct wrapped_read_command_file_args):
2603 (wrapped_read_command_file): Remove.
2604 (script_from_file): Use TRY_CATCH.
2605 * exceptions.c (catch_exception): Remove.
2606 * exceptions.h (catch_exception): Remove.
2607 (deprecated_throw_reason): Update comment.
2608 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2609 argument to 'context'.
2610 (mi_execute_command): Use TRY_CATCH.
2611 * remote.c (struct start_remote_args): Remove.
2612 (remote_start_remote): Update; change arguments.
2613 (remote_open_1): Use TRY_CATCH.
2615 2011-04-04 Tom Tromey <tromey@redhat.com>
2617 * tracepoint.c (scope_info): Update.
2618 * symtab.c (decode_line_spec): Update.
2619 * python/python.c (gdbpy_decode_line): Update.
2620 * linespec.h (decode_line_1): Update.
2621 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2622 (decode_compound, find_method, symtab_from_filename)
2623 (decode_variable): Likewise.
2624 * cli/cli-cmds.c (edit_command): Update.
2625 (list_command): Update.
2626 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2628 (create_breakpoint): Update.
2629 (until_break_command): Update.
2630 (addr_string_to_sals): Update.
2631 (decode_line_spec_1): Update.
2633 2011-04-04 Tom Tromey <tromey@redhat.com>
2635 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2636 (do_captured_parse_breakpoint): Remove.
2637 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2638 Use TRY_CATCH directly.
2640 2011-04-04 Tom Tromey <tromey@redhat.com>
2642 * symtab.h (free_symtab): Remove.
2643 (forget_cached_source_info_for_objfile): Declare.
2644 * symmisc.c (free_symtab): Remove.
2645 * source.c (forget_cached_source_info_for_objfile): New function.
2646 (forget_cached_source_info): Use it.
2647 * objfiles.c (free_objfile): Simplify check before calling
2648 clear_current_source_symtab_and_line. Call
2649 forget_cached_source_info_for_objfile.
2651 2011-04-04 Tom Tromey <tromey@redhat.com>
2653 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2654 (new_symtab): Don't set `free_code' on symtab.
2655 (new_linetable): Properly handle size==0.
2656 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2657 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2659 * jv-lang.c (struct jv_per_objfile_data): New.
2660 (jv_per_objfile_free): Free the data.
2661 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2662 (get_java_class_symtab): Set the `dict' field on the
2663 jv_per_objfile_data.
2664 (free_class_block): Remove.
2665 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2668 2011-04-04 Tom Tromey <tromey@redhat.com>
2670 * symfile.c (reread_symbols): Update.
2671 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2673 * objfiles.c (allocate_objfile): Update.
2674 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2676 * cp-namespace.c (lookup_symbol_file): Don't call
2677 lookup_possible_namespace_symbol.
2678 (initialize_namespace_symtab, get_possible_namespace_block)
2679 (free_namespace_block, cp_check_possible_namespace_symbols)
2680 (check_possible_namespace_symbols_loop)
2681 (check_one_possible_namespace_symbol)
2682 (lookup_possible_namespace_symbol): Remove.
2683 (maintenance_cplus_namespace): Replace with notice.
2684 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2686 2011-04-04 Tom Tromey <tromey@redhat.com>
2688 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2689 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2690 * symmisc.c (free_symtab): Don't free debugformat.
2691 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2692 (record_debugformat, record_producer): Document.
2693 * buildsym.c (end_symtab): Don't save debugformat and producer
2695 (end_symtab): Don't free debugformat and producer fields.
2696 (record_debugformat): Don't call xstrdup.
2697 (record_producer): Likewise.
2699 2011-04-04 Tom Tromey <tromey@redhat.com>
2701 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2702 (source_line_charpos, source_charpos_line): Remove.
2704 2011-04-04 Tom Tromey <tromey@redhat.com>
2706 * symtab.h (domain_enum): Split in two...
2707 (enum search_domain): New.
2708 (search_symbols): Update.
2709 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2710 redundant declarations.
2711 (search_symbols): Change 'kind' argument to search_domain.
2713 (print_symbol_info): Likewise.
2714 (symtab_symbol_info): Likewise.
2715 * symfile.h (struct quick_symbol_functions)
2716 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2717 <expand_symtabs_matching>: Likewise.
2718 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2719 (expand_symtabs_matching_via_partial): Update.
2720 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2721 (dw2_expand_symtabs_for_function): Update.
2722 * block.h: Moved anonymous enum...
2723 * defs.h (enum block_enum): ... here. Now named.
2725 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2727 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2728 * version.in: Bump version to 7.3.50.20110403-cvs.
2730 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2732 * NEWS: Create a new section for the next release branch.
2733 Rename the section of the current branch, now that it has
2736 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2738 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2739 for "fpscr" in target description.
2741 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2743 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2744 initialize it. Delay HASH initialization. Strip the part after open
2745 parenthesis for languages with qualifiers. Call do_cleanups.
2747 2011-04-01 Tom Tromey <tromey@redhat.com>
2749 * utils.c (report_command_stats): Don't print `-' for negative
2752 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2754 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2755 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2758 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2760 * breakpoint.h (bpdisp_text): Add declaration.
2761 * breakpoint.c (bpdisp_text): Make non-static.
2762 * ada-lang.c: #include "mi/mi-common.h".
2763 (print_it_exception): Rewrite to improve GDB/MI output.
2765 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2767 * arm-tdep.h (struct address_space): Add forward declaration.
2769 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2771 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2772 * arm-tdep.c (arm_override_mode): New global.
2773 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2774 execution mode heuristics.
2775 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2776 second single-step breakpoint if needed, using
2777 arm_insert_single_step_breakpoint.
2778 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2779 ARM execution mode, do not call thumb_get_next_pc_raw.
2780 (arm_get_next_pc): Encode execution mode in return value. Call
2781 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2782 (arm_insert_single_step_breakpoint): New function.
2783 (arm_software_single_step): Call it.
2784 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2785 argument to return execution mode of sigreturn target.
2786 (arm_linux_syscall_next_pc): Use it.
2787 (arm_linux_copy_svc): Update call.
2788 (arm_linux_software_single_step): Call
2789 arm_insert_single_step_breakpoint.
2791 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2793 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2796 2011-03-31 Tom Tromey <tromey@redhat.com>
2798 * varobj.c (update_dynamic_varobj_children): Properly handle
2799 errors from iterator.
2801 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2803 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2804 struct linkage name twice.
2806 2011-03-31 Tom Tromey <tromey@redhat.com>
2808 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2809 missing ">" to message.
2811 2011-03-31 Tom Tromey <tromey@redhat.com>
2813 * varobj.c (instantiate_pretty_printer): Remove duplicate
2816 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2818 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2819 if neither saved value nor register available (e.g. signal frame).
2821 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2823 * macroexp.c (expand): Avoid uninitialized variable
2826 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2828 * breakpoint.c (break_range_command): Fix typo in comment.
2830 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2831 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2833 Implement support for PowerPC BookE ranged breakpoints.
2834 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2835 * breakpoint.h (struct bp_target_info) <length>: New member
2837 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2838 instead of struct breakpoint as argument, and also add ASPACE
2839 and BP_ADDR arguments. Update all callers.
2840 (struct breakpoint_ops) <print_one_detail>: New method.
2841 (struct breakpoint) <addr_string_range_end>: New member variable.
2842 * breakpoint.c (breakpoint_location_address_match): Add function
2844 (insert_bp_location): Set bl->target_info.length.
2845 (breakpoint_here_p): Call breakpoint_location_address_match.
2846 (moribund_breakpoint_here_p): Likewise.
2847 (regular_breakpoint_inserted_here_p): Likewise.
2848 (breakpoint_thread_match): Likewise.
2849 (bpstat_stop_status): Likewise.
2850 (bpstat_check_location): Move call to
2851 breakpoint_ops.breakpoint_hit to the top.
2852 (print_one_breakpoint_location): Call
2853 breakpoint_ops.print_one_detail if available.
2854 (breakpoint_address_match_range): New function.
2855 (breakpoint_location_address_match): Likewise.
2856 (breakpoint_locations_match): Compare the length field of the
2858 (hw_breakpoint_used_count): Count resources used by all locations
2859 in a breakpoint, and use breakpoint_ops.resources_needed if
2861 (breakpoint_hit_ranged_breakpoint): New function.
2862 (resources_needed_ranged_breakpoint): Likewise.
2863 (print_it_ranged_breakpoint): Likewise.
2864 (print_one_ranged_breakpoint): Likewise.
2865 (print_one_detail_ranged_breakpoint): Likewise.
2866 (print_mention_ranged_breakpoint): Likewise.
2867 (print_recreate_ranged_breakpoint): Likewise.
2868 (ranged_breakpoint_ops): New structure.
2869 (find_breakpoint_range_end): New function.
2870 (break_range_command): Likewise.
2871 (delete_breakpoint): Free addr_string_range_end.
2872 (update_breakpoint_locations): Add SALS_END argument. Update
2873 all callers. Calculate breakpoint length if a non-zero SALS_END
2874 is given. Call breakpoint_locations_match instead of
2875 breakpoint_address_match.
2876 (reset_breakpoint): Find SaL of the end of the range if B is a
2878 (_initialize_breakpoint): Register break-range command.
2879 * defs.h (print_core_address): Add function prototype.
2880 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2882 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2883 (ppc_linux_remove_hw_breakpoint): Likewise.
2884 (_initialize_ppc_linux_nat): Initialize
2885 to_ranged_break_num_registers.
2886 * target.c (update_current_target): Add comment about
2887 to_ranged_break_num_registers.
2888 (target_ranged_break_num_registers): New function.
2889 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2891 (target_ranged_break_num_registers): Add function prototype.
2892 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2893 * utils.c (print_core_address): ... here.
2895 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2897 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2898 variable compiler warning.
2900 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2902 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2904 (re_set_breakpoint): ... to here ...
2905 (addr_string_to_sals): ... and here.
2907 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2909 * Makefile.in (SFILES): Add missing C sources.
2910 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2911 Add missing headers.
2913 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2915 * .gitignore: New file.
2917 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2919 * NEWS: Mention new cfi device simulation.
2921 2011-03-29 Tom Tromey <tromey@redhat.com>
2923 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2924 otherwise anonymous types.
2925 (dwarf2_name): Likewise.
2926 * valops.c (value_struct_elt_for_reference): Refine artificial
2927 type logic. Call error if j==-1.
2929 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2931 Fix false GCC warning.
2932 * infcall.c (find_function_addr): Initialize funaddr.
2934 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2936 Fix mingw compilation with --enable-targets=all.
2937 * remote-mips.c (gdb_usleep.h): Include header.
2938 (mips_enter_debug): Use gdb_usleep instead of sleep.
2940 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2942 Support resolution of STT_GNU_IFUNC via breakpoints.
2943 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2944 bp_gnu_ifunc_resolver_return.
2945 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2946 the loop. Support bp_gnu_ifunc_resolver and
2947 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2948 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2950 (bptype_string, print_one_breakpoint_location): Support
2951 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2952 (user_settable_breakpoint): Return true also for
2953 bp_gnu_ifunc_resolver.
2954 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2955 bp_gnu_ifunc_resolver_return.
2956 (set_breakpoint_location_function): New parameter explicit_loc,
2957 describe it. Call find_pc_partial_function_gnu_ifunc with new
2958 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2959 EXPLICIT_LOC is not set.
2960 (set_raw_breakpoint): Set EXPLICIT_LOC for
2961 set_breakpoint_location_function.
2962 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2963 set_breakpoint_location_function.
2964 (mention): Support bp_gnu_ifunc_resolver and
2965 bp_gnu_ifunc_resolver_return.
2966 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2967 set_breakpoint_location_function.
2968 (update_breakpoint_locations): Remove static.
2969 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2970 bp_gnu_ifunc_resolver_return.
2971 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2972 bp_gnu_ifunc_resolver_return.
2973 (update_breakpoint_locations): New declaration.
2974 * elfread.c: Include gdbthread.h and regcache.h.
2975 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2977 (elf_gnu_ifunc_fns): Install them.
2978 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2979 (stub_gnu_ifunc_resolver_return_stop): New functions.
2980 (stub_gnu_ifunc_fns): Install them.
2981 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2982 and gnu_ifunc_resolver_return_stop.
2983 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2985 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2987 STT_GNU_IFUNC reader implementation.
2988 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2989 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2990 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2991 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2992 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2993 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2994 (elf_gnu_ifunc_resolve_addr): New.
2995 (elf_symfile_read): Call elf_rel_plt_read.
2996 (elf_gnu_ifunc_fns): New.
2997 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2998 Install elf_gnu_ifunc_fns.
2999 * infcall.c (find_function_return_type): New function.
3000 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3001 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3002 (stub_gnu_ifunc_resolve_name): New functions.
3003 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3004 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3005 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3007 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3009 Code cleanup for later STT_GNU_IFUNC support.
3010 * infcall.c (find_function_addr): Remove variable code, use explicit
3011 dereferences for it. Move VALUE_TYPE initialization later.
3013 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3015 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3016 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3017 (clear_pc_function_cache): Clear it.
3018 (find_pc_partial_function): Rename to ...
3019 (find_pc_partial_function_gnu_ifunc): ... this function. New
3020 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3021 (find_pc_partial_function): New wrapper for this function.
3022 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3024 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3026 GDB internal type support for STT_GNU_IFUNC.
3027 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3028 (elf_symtab_read): Set mst_text_gnu_ifunc for
3029 BSF_GNU_INDIRECT_FUNCTION.
3030 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3031 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3032 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3033 nodebug_got_plt_symbol.
3034 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3035 (TYPE_GNU_IFUNC): New.
3036 (struct main_type): New field flag_gnu_ifunc.
3037 (struct builtin_type): New field builtin_func_func.
3038 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3039 nodebug_got_plt_symbol.
3040 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3041 (in_gnu_ifunc_stub): New.
3042 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3044 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3045 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3046 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3048 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3049 * symtab.c (search_symbols): Likewise.
3050 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3051 and mst_slot_got_plt.
3052 (in_gnu_ifunc_stub): New declaration.
3054 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3056 Support a ring of related breakpoints.
3057 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3058 other functions, add gdb_assert.
3059 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3060 watchpoint_del_at_next_stop.
3061 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3062 (bpstat_stop_status): Handle ring in related_breakpoint.
3063 (set_raw_breakpoint_without_location): Initialize ring in
3065 (delete_breakpoint): Handle ring in related_breakpoint, use
3066 watchpoint_del_at_next_stop.
3067 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3069 2011-03-28 Tom Tromey <tromey@redhat.com>
3072 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3073 with `language_minimal'.
3075 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3077 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3078 instead of checking for STT_ARM_TFUNC symbol type.
3080 2011-03-25 Tom Tromey <tromey@redhat.com>
3082 * linespec.c (symbol_found): Restore line-based result for
3083 non-LOC_LABEL symbols.
3085 2011-03-25 Kai Tietz <ktietz@redhat.com>
3087 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3088 instead of strcmp for comparison.
3089 (tui_source_is_displayed): Likewise.
3090 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3092 2011-03-24 Mark Wielaard <mjw@redhat.com>
3094 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3096 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3097 (find_partial_die_in_comp_unit): Likewise in comment.
3098 (read_attribute_value): Likewise.
3099 (lookup_die_type): Likewise.
3100 (dwarf_form_name): Likewise.
3101 (dump_die_shallow): Likewise.
3102 (follow_die_ref_or_sig): Likewise.
3104 2011-03-24 Tom Tromey <tromey@redhat.com>
3106 PR breakpoints/11816:
3107 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3108 (decode_compound): Update.
3109 (find_function_symbol): New function.
3110 (decode_dollar): Update.
3111 (decode_label): Add 'function_symbol' parameter. Handle
3112 function-relative labels.
3113 (decode_variable): Update.
3114 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3115 not its line. Set `special_display' and canonical name for
3118 2011-03-24 Tom Tromey <tromey@redhat.com>
3120 * linespec.h (struct linespec_result) <special_display>: New
3122 * breakpoint.h (struct breakpoint) <display_canonical>: New
3124 * breakpoint.c (print_breakpoint_location): Respect
3126 (create_breakpoint_sal): Add 'display_canonical' parameter.
3127 (create_breakpoints_sal): Update.
3128 (create_breakpoint): Update.
3130 2011-03-24 Tom Tromey <tromey@redhat.com>
3132 * symtab.c (decode_line_spec): Update.
3133 * linespec.c (build_canonical_line_spec): Change type of
3135 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3136 (find_method, decode_all_digits, decode_dollar, decode_label)
3137 (symbol_found): Likewise.
3138 (init_linespec_result): New function.
3139 * breakpoint.c (struct captured_parse_breakpoint_args)
3140 <canonical_p>: New field, replaces addr_string_p.
3141 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3143 (parse_breakpoint_sals): Likewise.
3144 (do_captured_parse_breakpoint): Update.
3145 (create_breakpoint): Use struct linespec_result.
3146 (until_break_command): Update.
3147 (breakpoint_re_set_one): Update.
3148 (decode_line_spec_1): Update.
3149 * linespec.h (struct linespec_result): New.
3150 (init_linespec_result): Declare.
3152 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3154 * regcache.c (regcache_raw_read): If the target didn't supply a
3155 given raw register, mark it as unavailable.
3157 2011-03-23 Kai Tietz <ktietz@redhat.com>
3159 * breakpoint.c (clear_command): Use filename_cmp
3160 instead of strcmp for comparison.
3161 * buildsym.c (watch_main_source_file_lossage): Likewise.
3162 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3163 checking just for slash.
3164 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3165 strrchr and filename_cmp instead of strcmp for filenames.
3166 (add_old_header_file): Use filename_cmp
3167 instead of strcmp for comparison.
3168 * exec.c (exec_set_section_address): Likewise.
3169 * macrotab.c (macro_lookup_inclusion): Likewise.
3170 (macro_lookup_inclusion): Likewise.
3171 * elfread.c (_initialize_elfread): Likewise.
3172 (elfstab_offset_sections): Likewise.
3173 (elfstab_offset_sections): Use lbasename instead of
3175 * mdebugread.c (parse_partial_symbols): Likewise.
3176 (arse_partial_symbols): Use filename_(n)cmp instead of
3177 str(n)cmp for comparison.
3178 * minsyms.c (lookup_minimal_symbol): Likewise.
3179 * psymtab.c (read_psymtabs_with_filename): Likewise.
3180 * solib.c (solib_read_symbols): Likewise.
3181 (reload_shared_libraries_1): Likewise.
3182 * symmisc.c (maintenance_print_symbols): Likewise.
3183 * symfile.c (separate_debug_file_exists): Likewise.
3184 (reread_symbols): Likewise.
3185 (find_separate_debug_file_by_debuglink): Likewise.
3186 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3187 * source.c (add_path): Likewise.
3188 * symtab.c (filename_seen): Likewise.
3189 (file_matches): Likewise.
3190 (print_symbol_info): Likewise.
3191 (maybe_add_partial_symtab_filename): Likewise.
3192 (make_source_files_completion_list): Likewise.
3193 * xml-syscall.c (init_sysinfo): Likewise.
3194 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3195 IS_DIR_SEPARATOR for checking for trailing path separator.
3197 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3199 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3200 label abort_expression.
3201 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3202 DWARF_VALUE_OPTIMIZED_OUT.
3204 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3207 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3208 to linkage_name. Invert its value. Update the function comment.
3209 (c_type_print_varspec_suffix): Invert it at the caller.
3210 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3212 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3214 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3215 errors when reading the `stop_pc'.
3216 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3219 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3221 * NEWS: Document gdb.Write stream keyword.
3223 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3226 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3227 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3228 (dwarf2_add_field): Fix new_field->accessibility for
3229 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3231 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3235 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3236 other error classes. Do not print stack trace.
3238 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3240 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3241 (dwarf2_add_field): Fix new_field->accessibility for
3242 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3244 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3246 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3247 encountering a load via a non-SP register.
3249 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3251 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3252 field in returned unwinder.
3254 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3256 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3258 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3260 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3263 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3265 * frame.c (frame_unwind_register): Throw an error if unwinding the
3267 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3268 an unwind stop reason.
3269 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3270 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3271 UNWIND_UNAVAILABLE>: New.
3272 * inline-frame.c (inline_frame_unwind): Install
3273 default_frame_unwind_stop_reason.
3274 * frame-unwind.c: Include "exceptions.h".
3275 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3276 (default_frame_unwind_stop_reason): New.
3277 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3278 (default_frame_unwind_stop_reason): Declare.
3279 (struct frame_unwind) <stop_reason>: New function pointer.
3281 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3282 * dwarf2-frame.c: Include exceptions.h.
3283 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3284 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3285 computing the CFA. If such an error was thrown, set
3286 unavailable_retaddr.
3287 (dwarf2_frame_unwind_stop_reason): New.
3288 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3290 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3291 (dwarf2_signal_frame_unwind): Ditto.
3293 * amd64-tdep.c: Include "exceptions.h".
3294 (struct amd64_frame_cache): New field "base_p".
3295 (amd64_init_frame_cache): Clear it.
3296 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3297 Avoid reading registers with functions that throw if the register
3298 is not necessary to compute the frame base.
3299 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3300 swallowing NOT_AVAILABLE_ERROR.
3301 (amd64_frame_unwind_stop_reason): New.
3302 (amd64_frame_this_id): Don't build a frame id if the frame base
3304 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3305 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3306 base_p if the frame base was computable.
3307 (amd64_sigtramp_frame_unwind_stop_reason): New.
3308 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3309 frame base was unavailable.
3310 (amd64_sigtramp_frame_unwind): Install
3311 amd64_sigtramp_frame_unwind_stop_reason.
3312 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3313 base_p if the frame base was computable.
3314 (amd64_epilogue_frame_unwind_stop_reason): New.
3315 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3316 frame base was unavailable.
3317 (amd64_epilogue_frame_unwind): Install
3318 amd64_epilogue_frame_unwind_stop_reason.
3319 * i386-tdep.c: Include "exceptions.h".
3320 (struct i386_frame_cache): New field "base_p".
3321 (i386_init_frame_cache): Clear it.
3322 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3323 Avoid reading registers with functions that throw if the register
3324 is not necessary to compute the frame base.
3325 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3326 swallowing NOT_AVAILABLE_ERROR.
3327 (i386_frame_unwind_stop_reason): New.
3328 (i386_frame_this_id): Don't build a frame id if the frame base was
3330 (i386_frame_prev_register): Handle unavailable SP.
3331 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3332 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3333 base_p if the frame base was computable.
3334 (i386_epilogue_frame_unwind_stop_reason): New.
3335 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3336 base was unavailable.
3337 (i386_epilogue_frame_unwind): Install
3338 i386_epilogue_frame_unwind_stop_reason.
3339 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3340 base_p if the frame base was computable.
3341 (i386_sigtramp_frame_unwind_stop_reason): New.
3342 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3343 base was unavailable.
3344 (i386_sigtramp_frame_unwind): Install
3345 i386_sigtramp_frame_unwind_stop_reason.
3346 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3347 type's size, not the register's.
3348 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3350 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3351 default_frame_unwind_stop_reason.
3352 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3353 (alpha_heuristic_frame_unwind): Ditto.
3354 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3355 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3356 * avr-tdep.c (avr_frame_unwind): Ditto.
3357 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3359 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3360 * frv-tdep.c (frv_frame_unwind): Ditto.
3361 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3362 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3363 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3364 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3365 (hppa_stub_frame_unwind): Ditto.
3366 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3367 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3368 (ia64_libunwind_frame_unwind)
3369 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3370 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3371 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3372 * m32c-tdep.c (m32c_unwind): Ditto.
3373 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3374 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3375 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3376 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3377 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3378 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3379 * mep-tdep.c (mep_frame_unwind): Ditto.
3380 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3381 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3382 (mips_stub_frame_unwind): Ditto.
3383 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3384 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3385 * mt-tdep.c (mt_frame_unwind): Ditto.
3386 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3387 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3388 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3389 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3390 (s390_sigtramp_frame_unwind): Ditto.
3391 * score-tdep.c (score_prologue_unwind): Ditto.
3392 * sh-tdep.c (sh_frame_unwind): Ditto.
3393 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3394 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3395 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3396 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3397 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3398 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3399 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3400 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3401 (sparc64obsd_trapframe_unwind): Ditto.
3402 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3403 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3404 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3405 * v850-tdep.c (v850_frame_unwind): Ditto.
3406 * vax-tdep.c (vax_frame_unwind): Ditto.
3407 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3408 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3409 * xtensa-tdep.c (xtensa_unwind): Ditto.
3411 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3413 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3414 there's always a frame. Use get_frame_pc_if_available instead of
3415 get_frame_pc, and if there's no PC available, don't look up a
3418 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3420 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3423 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3425 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3428 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3430 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3431 * frame.c (frame_unwind_caller_pc_if_available): New.
3432 * stack.c (frame_info): Handle unavailable PC.
3434 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3436 * frame.c (frame_unwind_pc): Rename to ...
3437 (frame_unwind_pc_if_available): ... this. New `pc' output
3438 parameter. Change return type to int. Gracefully handle
3439 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3440 happened, or 1 otherwise.
3441 (frame_unwind_pc): Reimplement on top of
3442 frame_unwind_pc_if_available.
3443 (get_frame_func): Rename to ...
3444 (get_frame_func_if_available): New `pc' output parameter. Change
3445 return type to int. Gracefully handle the PC not being available.
3446 (get_frame_func): Reimplement on top of
3447 get_frame_func_if_available.
3448 (select_frame): Handle the PC being unavailable.
3449 (get_prev_frame): Handle the PC being unavailable.
3450 (get_frame_pc_if_available): New.
3451 (get_frame_address_in_block_if_available): New.
3452 (find_frame_sal): Handle the frame PC not being available.
3453 * frame.h (get_frame_pc_if_available): Declare.
3454 (get_frame_address_in_block_if_available): Declare.
3455 (get_frame_func_if_available): Declare.
3456 * stack.c (print_frame_info): Handle the PC being unavailable.
3457 (find_frame_funname): Ditto.
3458 (print_frame): Handle the PC being unavailable.
3459 (get_frame_language): Ditto.
3460 * blockframe.c (get_frame_block): Ditto.
3461 * macroscope.c (default_macro_scope): Ditto.
3462 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3464 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3466 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3467 NOT_AVAILABLE_ERROR when evaluating the location expression.
3469 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3471 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3472 returning that the register piece is unavailable/optimized out.
3473 (write_pieced_value): Handle get_frame_register_bytes returning
3474 that the register piece is unavailable/optimized out when doing a
3475 read-modify write of a bitfield.
3476 * findvar.c (value_from_register): Handle get_frame_register_bytes
3477 returning that the register piece is unavailable/optimized out.
3478 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3479 and `unavailablep'. Throw error on bad debug info. Use
3480 frame_register instead of frame_register_read, to fill in the new
3482 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3484 * valops.c: (value_assign): Adjust, and handle
3485 get_frame_register_bytes failing.
3486 * spu-tdep.c: Include exceptions.h.
3487 (spu_software_single_step): Adjust, and handle
3488 get_frame_register_bytes failing.
3489 (spu_get_longjmp_target): Ditto.
3490 * gdbarch.sh (register_to_value): Change to return int. New
3491 parameters `optimizedp' and `unavailablep'.
3492 * gdbarch.h, gdbarch.c: Regenerate.
3493 * i386-tdep.c (i386_register_to_value): Adjust to new
3494 gdbarch_register_to_value interface.
3495 * i387-tdep.c (i387_register_to_value): Ditto.
3496 * i387-tdep.h (i387_register_to_value): Ditto.
3497 * alpha-tdep.c (alpha_register_to_value): Ditto.
3498 * ia64-tdep.c (ia64_register_to_value): Ditto.
3499 * m68k-tdep.c (m68k_register_to_value): Ditto.
3500 * mips-tdep.c (mips_register_to_value): Ditto.
3501 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3503 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3505 * findvar.c (value_of_register): Mark the value as unavailable, if
3506 the register is unavailable.
3507 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3508 (frame_register): New `unavailablep' parameter.
3509 (frame_register_read): Update comment.
3510 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3511 Set it if the register is unavailable. If the register is
3512 unavailable, clear the output buffer.
3513 (frame_register): New `unavailablep' parameter. Pass it down.
3514 (frame_unwind_register): Adjust.
3515 (put_frame_register): Adjust.
3516 (frame_register_read): Adjust. Also return false if the register
3518 (frame_register_unwind_location): Adjust.
3519 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3520 is unavailable, mark the value accordingly.
3521 * stack.c (frame_info): Handle unavailable registers.
3523 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3525 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3526 simplify, using regcache_cooked_read.
3528 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3530 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3531 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3532 (regcache_raw_read_unsigned, regcache_raw_read_part)
3533 (regcache_cooked_read, regcache_cooked_read_signed)
3534 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3535 (regcache_cooked_read_ftype): Change return to enum
3537 * regcache.c: Include exceptions.h
3538 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3539 (do_cooked_read): Change return to enum register_status. Always
3540 forward to regcache_cooked_read.
3541 (regcache_raw_read): Change return to enum register_status. If
3542 the register is not REG_VALID, memset the buffer. Return the
3544 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3545 return the register's status.
3546 (regcache_raw_read_unsigned): Ditto.
3547 (regcache_cooked_read): Change return to enum register_status.
3548 Assert that with read-only regcaches, the register's status must
3549 be known. If the regcache is read-only, and the register is not
3550 REG_VALID, memset the buffer. Return the register's status.
3551 (regcache_cooked_read_signed): Change return to enum
3552 register_status. Handle non-REG_VALID registers and return the
3554 (regcache_cooked_read_unsigned): Change return to enum
3555 register_status. Handle non-REG_VALID registers and return the
3557 (regcache_xfer_part, regcache_raw_read_part)
3558 (regcache_cooked_read_part): Change return to enum
3559 register_status. Return the register's status.
3560 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3562 (regcache_dump): Handle unavailable cooked registers.
3563 * frame.c (do_frame_register_read): Adjust interface to match
3564 regcache_cooked_read_ftype.
3565 * gdbarch.sh (pseudo_register_read): Change return to enum
3567 * gdbarch.h, gdbarch.c: Regenerate.
3569 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3571 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3572 register_status. If reading a raw register indicates the raw
3573 register is not valid, return the raw register's status,
3574 otherwise, return REG_VALID.
3575 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3576 register_status. Handle non-REG_VALID raw registers and return
3577 the register's status.
3578 * arm-tdep.c (arm_neon_quad_read)
3579 (arm_pseudo_read): Change return to enum register_status. Handle
3580 non-REG_VALID raw registers and return the register's status.
3581 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3582 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3583 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3584 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3585 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3587 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3588 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3589 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3590 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3591 (m32c_pseudo_register_read): Change return to enum
3592 register_status. Adjust.
3593 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3594 enum register_status. Return the register's status.
3595 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3596 register_status. Return the register's status.
3597 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3598 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3599 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3600 * rs6000-tdep.c (move_ev_register_func): New typedef.
3601 (e500_move_ev_register): Use it. Change return to enum
3602 register_status. Return the register's status.
3603 (do_regcache_raw_read): New function.
3604 (do_regcache_raw_write): New function.
3605 (e500_pseudo_register_read): Change return to enum
3606 register_status. Return the register's status. Use
3607 do_regcache_raw_read.
3608 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3609 (dfp_pseudo_register_read): Change return to enum register_status.
3610 Return the register's status.
3611 (vsx_pseudo_register_read): Ditto.
3612 (efpr_pseudo_register_read): Ditto.
3613 (rs6000_pseudo_register_read): Ditto.
3614 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3615 register_status. Return the register's status.
3616 * sh64-tdep.c (pseudo_register_read_portions): New function.
3617 (sh64_pseudo_register_read): Change return to enum
3618 register_status. Use pseudo_register_read_portions. Return the
3620 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3621 register_status. Return the register's status.
3622 * sh-tdep.c (pseudo_register_read_portions): New function.
3623 (sh_pseudo_register_read): Change return to enum register_status.
3624 Use pseudo_register_read_portions. Return the register's status.
3625 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3626 enum register_status. Return the register's status.
3627 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3628 * spu-tdep.c (spu_pseudo_register_read_spu)
3629 (spu_pseudo_register_read): Ditto.
3630 * xtensa-tdep.c (xtensa_register_read_masked)
3631 (xtensa_pseudo_register_read): Ditto.
3632 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3634 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3636 * python/py-value.c (valpy_getitem): Fix formatting of error function
3639 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3641 ARI fixes: Add missing internationalization markups throughout
3643 * darwin-nat-info.c: Ditto.
3646 * mi/mi-main.c: Ditto.
3648 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3650 ARI fixes: Add missing internationalization markups throughout
3653 * cp-name-parser.y: Ditto.
3656 * objc-exp.y: Ditto.
3659 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3661 ARI fixes: Messages should have no trailing new lines.
3662 * darwin-nat.c (mach_check_error): Remove trailing new line from
3663 warning function call message.
3664 * record.c (bfdcore_read): Idem for error call.
3666 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3668 * common/signals.c (target_signal_from_host): Add _ markup to error
3669 function call message.
3670 (target_signal_to_host): Add _ markup and remove trailing new line
3671 from warning call message.
3672 (target_signal_from_command): Add _ markup to error function call
3675 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3679 * python/python.c (gdbpy_write): Accept a stream argument and
3680 operate to the appropriate stream.
3681 (gdbpy_flush): Likewise.
3682 (_initialize_python): Add stream constants.
3683 (finish_python_initialization): Add GdbOutputErrorFile class.
3685 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3687 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3689 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3691 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3692 to store_signed_integer. Add debug message when relocating CALL
3693 instructions. Fix formatting of debug message.
3694 * i386-tdep.c (i386_relocate_instruction): Ditto.
3696 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3698 * target.h (struct target_ops): Remove to_lookup_symbol field.
3699 (target_lookup_symbol): Delete macro.
3700 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3701 (update_current_target, setup_target_debug): Remove handling
3702 of to_lookup_symbol target_ops field.
3703 * ada-tasks.c (get_known_tasks_addr): Remove use of
3704 target_lookup_symbol.
3705 * coffread.c (coff_symtab_read): Likewise.
3706 * dbxread.c (read_dbx_symtab): Ditto.
3708 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3711 * configure.ac: Add getthrds declaration check.
3712 * configure, config.in: Regenerate.
3713 * aix-thread.c (getthrds): Declare only if not already declared
3714 in procinfo.h. More declaration out of get_signaled_thread to
3717 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3719 * python/py-symtab.c: Populate symtab_object_methods,
3721 (stpy_is_valid): New function.
3722 (salpy_is_valid): Ditto.
3723 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3724 (sympy_is_valid): New function.
3725 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3726 (objfpy_is_valid): New function.
3727 * python/py-inferior.c: Populate inferior_object_methods.
3728 (infpy_is_valid): New function.
3729 * python/py-infthread.c: Populate thread_object_methods.
3730 (thpy_is_valid): New function.
3731 * python/py-block.c: Declare block_object_methods. Populate. Declare
3732 block_iterator_object_methods. Populate.
3733 (blpy_is_valid): New function.
3734 (blpy_iter_is_valid): Ditto.
3736 2011-03-16 Keith Seitz <keiths@redhat.com>
3738 * linespec.c (find_methods): Canonicalize NAME before looking
3740 (name_end): New function.
3741 (keep_name_info): New function.
3742 (decode_line_1): Use keep_name_info.
3743 (decode_compound): Likewise.
3744 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3745 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3748 * linespec.c (locate_first_half): Keep overload information, too.
3749 (decode_compound): Use a string to represent break characters
3751 If P points to a break character, do not increment it.
3752 For C++ and Java, keep overload information and relevant keywords.
3753 If we cannot find a symbol, search the minimal symbols.
3756 * linespec.c (decode_compound): Rename SAVED_ARG to
3758 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3760 Pass a valid block to lookup_symbol.
3761 (lookup_prefix_sym): Likewise.
3762 (find_method): Construct search name based on SYM_CLASS instead
3764 * psymtab.c (lookup_partial_symbol): Add language parameter.
3765 (lookup_symbol_aux_psymtabs): Likewise.
3766 Don't assume that the psymtab we found was the right one. Search
3767 for the desired symbol in the symtab to be certain.
3768 (psymtab_search_name): New function.
3769 (lookup_partial_symbol): Use psymtab_search_name.
3770 Add language parameter.
3771 (read_symtabs_for_function): Add language parameter and pass to
3772 lookup_partial_symbol.
3773 (find_symbol_file_from_partial): Likewise.
3775 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3778 * dwarf2read.c (noop_record_line): New function.
3779 (dwarf_decode_lines): Ignore line tables for GCd functions.
3781 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3783 Fix ARI warnings about new lines at the end of messages, which
3784 are unneeded as there is a new line added at the end of the message
3786 * darwin-nat.c (darwin_stop_inferior): Ditto.
3787 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3788 * dfp.c (decimal_to_number): Ditto.
3789 * exec.c (print_section_info): Ditto.
3790 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3791 * osdata.c (get_osdata): Ditto.
3792 * record.c (bfdcore_write): Ditto.
3793 * remote-mips.c (mips_readchar): Ditto.
3794 * remote.c (read_ptid): Ditto.
3795 * ser-mingw.c (ser_windows_raw): Ditto.
3796 * tracepoint.c (add_local_symbols): Ditto.
3797 * windows-nat.c (fake_create_process): Ditto.
3799 2011-03-16 Tom Tromey <tromey@redhat.com>
3801 * tracepoint.c (stop_tracing): Don't declare.
3802 * event-top.c (after_char_processing_hook): Add `(void)'.
3804 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3806 * NEWS: Add Parameter sub-classing description.
3808 2011-03-16 Kai Tietz <ktietz@redhat.com>
3810 * MAINTAINERS: Update my e-mail address.
3812 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3814 * MAINTAINERS: Add myself for write after approval privileges.
3816 2011-03-15 Michael Snyder <msnyder@vmware.com>
3818 * frame.c (find_frame_sal): Assert sym is not null.
3820 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3822 * objc-lang.c (selectors_info): Check strchr for null result.
3824 * stabsread.c (define_symbol): Guard against bad stabstring input.
3826 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3828 Remove trailing spaces and tabulations from pascal language
3833 p-valprint.c: Ditto.
3835 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3837 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3838 than LOW. Comment it.
3839 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3840 HIGHPC not strictly higher than LOWPC.
3842 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3844 Fix formatting of function declarations returning a pointer in
3846 * varobj.c (varobj_add_child): Ditto.
3847 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3848 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3850 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3852 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3853 for the "generic" vector ABI used with GCC 4.3 and later.
3854 (ppc64_sysv_abi_return_value): Likewise.
3856 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3858 * infcall.c (call_function_by_hand): Function return value is
3859 always a non_lval, even when using struct_return.
3861 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3863 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3864 (map_display_numbers): New.
3865 (do_delete_display): New.
3866 (undisplay_command): Use map_display_numbers.
3867 (do_enable_disable_display): New.
3868 (enable_disable_display_command): New function.
3869 (enable_display): Delete.
3870 (enable_display_command): New.
3871 (disable_display_command): Reimplement.
3872 (_initialize_printcmd): Adjust "enable display" command to use
3873 `enable_display_command' as callback.
3875 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3877 * NEWS: Add Python breakpoint 'stop' operation.
3879 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3881 * NEWS: Delete duplicate entry. Fix typo.
3883 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3885 Fix ARI warning about function names in first column.
3886 Put prototype declaration on same line as return type.
3887 * objc-exp.y: Ditto.
3889 * python/py-stopevent.h: Ditto.
3890 For long function names, split parameters to
3891 allow function name on same line as return type.
3892 * solib-pa64.c: Ditto.
3895 For long function declaration, use single line.
3896 * hppa-tdep.h: Ditto.
3897 * inferior.h: Ditto.
3899 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3901 * python/python.h: Declare gdbpy_should_stop and
3902 gdbpy_breakpoint_has_py_cond.
3903 * python/python.c: Add python.h to includes. Remove python.h from
3904 HAVE_PYTHON definition
3905 (gdbpy_should_stop): New dummy function.
3906 (gdbpy_breakpoint_has_py_cond): New dummy function.
3907 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3908 sub-classing capabilities.
3909 (gdbpy_should_stop): New function.
3910 (gdbpy_breakpoint_has_py_cond): New function.
3911 (local_setattro): New function.
3912 * breakpoint.c (condition_command): Add check for Python 'stop'
3914 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3915 operation function as part of stop/continue tests.
3917 2011-03-14 Tom Tromey <tromey@redhat.com>
3920 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3921 (needs_frame_dwarf_call): Likewise.
3923 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3925 Fix ARI warning about functions without parameters that do not
3927 * breakpoint.c (all_tracepoints): Replace () by (void).
3928 * f-exp.y (match_string_literal): Ditto.
3930 * m2-exp.y (yylex): Ditto.
3931 * mep-tdep.c (current_me_module): Ditto.
3932 (current_options): Ditto.
3933 (current_cop_data_bus_width): Ditto.
3934 (current_cr_names): Ditto.
3935 (current_cr_is_float): Ditto.
3936 (current_ccr_names): Ditto.
3937 * objc-exp.y (yylex): Ditto.
3938 * p-exp.y (yylex): Ditto.
3939 * remote.c (send_interrupt_sequence): Ditto.
3940 * tracepoint.c (current_trace_status): Ditto.
3941 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3942 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3944 2011-03-11 Michael Snyder <msnyder@vmware.com>
3946 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3947 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3948 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3949 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3950 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3952 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3953 (delete_async_event_handler): Ditto.
3955 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3957 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3959 * top.c (set_verbose): Assert showcmd was found.
3961 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
3963 * xtensa-tdep.c (warning_once): Correct style issues.
3965 2011-03-11 Yao Qi <yao@codesourcery.com>
3967 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3969 2011-03-11 Andreas Schwab <schwab@redhat.com>
3971 * common/aclocal.m4: Remove.
3973 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3975 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3976 (xtensa_write_register, xtensa_read_register): Likewise.
3977 (xtensa_hextochar): Removed.
3978 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3980 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3982 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3983 (xtensa_call0_frame_cache_t): Update comments. New fields added.
3984 (xtensa_alloc_frame_cache): Add initialization for new fields.
3985 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3986 (warning_once): New function.
3987 (xtensa_insn_kind): New item c0opc_and.
3988 (call0_classify_opcode): Add the case for AND instruction.
3989 (call0_track_op): Change arguments. New local variable litbase.
3990 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3991 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3993 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3994 (call0_analyze_prologue): Update the comments. Change arguments.
3995 Add the variety of updates to handle extended prologues, which now can
3996 conduct dynamic stack adjustments.
3997 (call0_frame_cache): Likewise.
3998 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3999 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4001 2011-03-10 Michael Snyder <msnyder@vmware.com>
4003 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4004 (cmd_qtframe): Ditto.
4005 (cmd_qtbuffer): Ditto.
4006 (cmd_bigqtbuffer): Ditto.
4008 2011-03-10 Tom Tromey <tromey@redhat.com>
4010 * tracepoint.c (trace_actions_command): Update.
4011 * thread.c (thread_apply_command): Update.
4012 * reverse.c (delete_bookmark_command): Update.
4013 (bookmarks_info): Update.
4014 * printcmd.c (undisplay_command): Update.
4015 * memattr.c (mem_enable_command): Update.
4016 (mem_disable_command): Update.
4017 (mem_delete_command): Update.
4018 * inferior.c (detach_inferior_command): Update.
4019 (kill_inferior_command): Update.
4020 (remove_inferior_command): Update.
4021 * cli/cli-utils.h (struct get_number_or_range_state): New.
4022 (init_number_or_range): Declare.
4023 (get_number_or_range): Update.
4024 * cli/cli-utils.c (init_number_or_range): New function.
4025 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4027 (number_is_in_list): Update.
4028 * breakpoint.h (get_tracepoint_by_number): Update.
4029 * breakpoint.c (map_breakpoint_numbers): Update for change to
4030 get_number_or_range.
4031 (find_location_by_number): Use get_number, not
4032 get_number_or_range.
4033 (trace_pass_set_count): New function.
4034 (trace_pass_command): Update for change to get_number_or_range.
4036 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4039 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4041 * python/py-param.c (add_setshow_generic): Add set/show callback
4042 parameters. Register Python object context.
4043 (get_show_value): New function.
4044 (get_set_value): New function.
4045 (call_doc_function): New function.
4046 (get_doc_string): Move behind get_show_value/get_set_value.
4048 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4050 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4052 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4054 * xtensa-tdep.c (xtensa_read_register): Add comment.
4055 (xtensa_write_register): Likewise.
4056 (xtensa_hextochar): Add comment and update to match coding conventions.
4057 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4058 (execute_l32e, execute_s32e, execute_code): Update comments.
4059 (xtensa_exception_handler_t): Update to match coding conventions.
4060 (xtensa_insn_kind): Likewise.
4062 2011-03-09 Michael Snyder <msnyder@vmware.com>
4064 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4066 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4068 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4070 2011-03-09 Tom Tromey <tromey@redhat.com>
4072 * thread.c (restore_selected_frame): Handle frame_level == -1.
4073 (make_cleanup_restore_current_thread): Use
4074 get_selected_frame_if_set.
4075 * frame.h (get_selected_frame_if_set): Declare.
4076 * frame.c (get_selected_frame_if_set): New function.
4078 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4080 * cli/cli-cmds.c (shell_escape): Use lbasename.
4081 * coffread.c (coff_start_symtab): Constify parameter.
4082 (complete_symtab): Constify `name' parameter.
4083 (coff_symtab_read): Constify `filestring' local.
4084 (coff_getfilename): Constify return and `result' local.
4086 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4087 * linux-fork.c (info_checkpoints_command): Use lbasename.
4088 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4089 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4090 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4091 * procfs.c (procfs_make_note_section): Use lbasename.
4092 * tui/tui-io.c (printable_part): Constity return and parameter.
4094 (print_filename): Constify parameters, and local `s'.
4095 (tui_rl_display_match_list): Constify local `temp'.
4097 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4100 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4101 Fix DWARF-3+ DW_AT_accessibility default assumption.
4102 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4103 cu->header.version >= 3.
4105 2011-03-09 Yao Qi <yao@codesourcery.com>
4107 * common/Makefile.in: Remove.
4108 * common/configure: Remove.
4109 * common/configure.ac: Remove.
4111 2011-03-09 Yao Qi <yao@codesourcery.com>
4114 2011-02-11 Yao Qi <yao@codesourcery.com>
4116 * common/Makefile.in: Add copyright header.
4118 2011-02-11 Yao Qi <yao@codesourcery.com>
4120 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4122 * configure.ac: Add common to sub dir.
4123 * configure: Regenerate.
4125 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4127 * xtensa-tdep.c (call0_ret): New function.
4128 (xtensa_skip_prologue): Speed up analysis.
4130 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4132 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4133 while executing MI command -data-list-changed-registers.
4135 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4137 * xtensa-tdep.c (xtensa_read_register): New function.
4138 (xtensa_write_register): New function.
4139 (xtensa_find_register_by_name): New function.
4140 (xtensa_windowed_frame_cache): Update comments in type description.
4141 (xtensa_frame_cache): Likewise.
4142 (xtensa_window_interrupt_insn): New function.
4143 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4144 (xtensa_insn_kind): Add new instructions.
4145 (rwx_special_register): New function.
4146 (call0_classify_opcode): Add new instructions to the analysis.
4147 (a0_saved, a7_saved, a11_saved): New variables.
4148 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4149 (execute_l32e): New function.
4150 (execute_s32e): New function.
4151 (xtensa_exception_handler_t): New type.
4152 (execute_code): New function.
4153 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4154 analysis for Xtensa Window Exception handlers.
4156 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4158 * xtensa-tdep.c (TX_PS): New.
4159 (windowing_enabled): Update to count for Call0 ABI.
4160 (xtensa_hextochar): New.
4161 (xtensa_init_reggroups): Make algorithm generic.
4162 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4164 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4166 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4168 2011-03-08 Michael Snyder <msnyder@vmware.com>
4170 * i386-tdep.c (i386_follow_jump): Check return value of
4172 (i386_analyze_struct_return): Ditto.
4173 (i386_skip_probe): Ditto.
4174 (i386_match_insn): Ditto.
4175 (i386_skip_noop): Ditto.
4176 (i386_analyze_frame_setup): Ditto.
4177 (i386_analyze_register_saves): Ditto.
4178 (i386_skip_prologue): Ditto.
4179 (i386_skip_main_prologue): Ditto.
4181 * target.c (read_whatever_is_readable): Fix memory leak.
4183 * i386-tdep.c (i386_process_record): Document fall through.
4185 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4187 Fix DWARF-3+ DW_AT_accessibility default assumption.
4188 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4189 cu->header.version >= 3.
4191 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4193 * remote.c (remote_check_symbols): Skip if the target has no
4196 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4198 * target.c (read_whatever_is_readable): Reformat comment,
4199 with a minor typo fix. Minor reformatting of the code.
4201 2011-03-08 Yao Qi <yao@codesourcery.com>
4203 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4204 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4205 Use cached result instead of calling displaced_in_arm_mode again.
4206 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4207 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4208 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4209 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4210 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4211 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4212 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4213 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4214 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4215 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4216 (arm_catch_kernel_helper_return): Likewise.
4217 * gdb/arm-tdep.h : Update function declarations.
4219 2011-03-07 Michael Snyder <msnyder@vmware.com>
4221 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4223 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4225 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4227 * elfread.c (elf_symtab_read): Stop memory leak.
4229 * main.c (captured_main): Fix memory leak.
4231 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4233 * ada-lang.c (compare_names): Call is_name_suffix with string1
4236 2011-03-07 Tom Tromey <tromey@redhat.com>
4238 * xcoffread.c (xcoff_sym_fns): Update.
4239 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4240 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4241 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4242 (symbol_file_add_with_addrs_or_offsets): Likewise.
4243 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4244 * somread.c (som_sym_fns): Update.
4245 * psymtab.h (require_partial_symbols): Declare.
4246 * psymtab.c (require_partial_symbols): New function.
4247 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4248 (ALL_OBJFILE_PSYMTABS): Undef.
4249 (ALL_PSYMTABS): Move from psympriv.h.
4250 (lookup_partial_symtab, find_pc_sect_psymtab)
4251 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4252 (find_last_source_symtab_from_partial)
4253 (forget_cached_source_info_partial)
4254 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4255 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4256 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4257 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4258 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4259 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4260 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4261 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4262 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4264 * mipsread.c (ecoff_sym_fns): Update.
4265 * machoread.c (macho_sym_fns): Update.
4266 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4267 (read_psyms): New function.
4268 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4269 (elf_sym_fns_lazy_psyms): New global.
4270 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4271 dwarf2_build_psymtabs.
4272 * dbxread.c (aout_sym_fns): Update.
4273 * coffread.c (coff_sym_fns): Update.
4275 2011-03-07 Tom Tromey <tromey@redhat.com>
4277 * infrun.c (print_exited_reason): Include inferior id and pid in
4280 2011-03-07 Tom Tromey <tromey@redhat.com>
4282 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4284 (target_has_execution_1): Update.
4285 (target_has_execution_current): Declare.
4286 (target_has_execution): Call target_has_execution_current.
4287 (default_child_has_execution): Update.
4288 * target.c (default_child_has_execution): Add 'the_ptid'
4290 (target_has_execution_1): Likewise.
4291 (target_has_execution_current): New function.
4292 (add_target): Update.
4293 (init_dummy_target): Update.
4294 * remote-m32r-sdi.c (m32r_has_execution): New function.
4295 (init_m32r_ops): Use it.
4296 * record.c (record_core_has_execution): Now static. Add
4297 'the_ptid' parameter.
4298 * inferior.c (have_live_inferiors): Don't save current thread.
4299 Use target_has_execution_1.
4301 2011-03-07 Yao Qi <yao@codesourcery.com>
4303 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4305 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4307 * elfread.c (elf_symtab_read): Minor reformatting.
4309 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4311 * objc-lang.c (selectors_info): Minor reformatting.
4313 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4315 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4317 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4318 Michael Snyder <msnyder@vmware.com>
4320 * ada-valprint.c (ada_val_print_array): Move the declaration of
4321 "byte_order" and "elttype" inside the block where these variables
4322 are actually used. Remove some special handling for the case
4323 where "elttype" and "eltlen" are null. Replace by a comment
4324 and a couple of assertion checks.
4326 2011-03-05 Michael Snyder <msnyder@vmware.com>
4328 * source.c (add_path): Replace semicolon at end of block.
4329 * dwarf2expr.c (execute_stack_op): Ditto.
4331 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4333 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4334 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4335 (bfin-*-*): Likewise.
4337 2011-03-05 Michael Snyder <msnyder@vmware.com>
4339 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4340 * mdebugread.c (parse_symbol): Ditto.
4341 * parse.c (parse_exp_in_context): Ditto.
4342 * source.c (add_path): Ditto.
4343 * utils.c (gnu_debuglink_crc32): Ditto.
4344 * varobj.c (variable_language): Ditto.
4346 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4348 2011-03-04 Michael Snyder <msnyder@vmware.com>
4350 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4352 * symfile.c (simple_overlay_update): Check for null return value
4353 from lookup_minimal_symbol.
4355 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4357 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4359 * eval.c (parse_and_eval_address_1): Remove function.
4360 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4361 instead of parse_and_eval_address_1.
4362 * value.h (parse_and_eval_address_1): Remove prototype.
4364 2011-03-04 Michael Snyder <msnyder@vmware.com>
4366 * remote.c (putpkt_binary): Document that case stmt falls through.
4368 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4370 * breakpointc (print_it_typical): Move NULL check from here...
4371 (print_bp_stop_message): ... to here.
4373 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4375 * breakpoint.c (enable_command): Use break instead of continue,
4376 and fill in a missing break.
4377 (disable_command): Ditto.
4379 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4381 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4382 (terminal_save_ours): Remove misleading comment.
4383 (inflow_inferior_data_cleanup): Free ttystate.
4384 (inflow_inferior_exit): Likewise.
4385 (copy_terminal_info): Copy ttystate.
4387 * serial.c (serial_copy_tty_state): New function.
4388 * serial.h (serial_copy_tty_state): Add prototype.
4389 (struct serial_ops): Add copy_tty_state callback.
4390 * ser-base.c (ser_base_copy_tty_state): New function.
4391 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4392 * ser-go32.c (dos_copy_tty_state): New function.
4393 (dos_ops): Install copy_tty_state callback.
4394 * ser-mingw.c (_initialize_ser_windows): Likewise.
4395 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4396 * ser-unix.c (hardwire_copy_tty_state): New function.
4397 (_initialize_ser_hardwire): Install it.
4399 2011-03-04 Michael Snyder <msnyder@vmware.com>
4401 * breakpoint.c (create_breakpoint): Add missing break statement.
4403 Reverting this patch:
4404 * infcall.c (call_function_by_hand): Add break statements for lint.
4406 Reverting this patch:
4407 * cli/cli-script.c (script_from_file): Add break for lint.
4409 2011-03-04 Michael Snyder <msnyder@vmware.com>
4411 * solib.c (reload_shared_libraries_1): Close memory leak.
4413 2011-03-03 Tom Tromey <tromey@redhat.com>
4416 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4419 2011-03-03 Michael Snyder <msnyder@vmware.com>
4421 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4422 fields of struct 'st' to zero.
4424 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4425 sal.pspace before calling set_current_source_symtab_and_line.
4427 2011-03-03 Yao Qi <yao@codesourcery.com>
4429 * Makefile.in (configure-common): Remove. Let Makefile
4430 in dir common to rebuild itself.
4431 (common/Makefile): Likewise.
4433 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4435 * utils.c (parse_escape): Add i18n markup in error message.
4437 2011-03-03 Yao Qi <yao@codesourcery.com>
4439 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4441 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4442 (displaced_write_reg, displaced_read_reg): Likewise.
4443 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4444 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4445 (cleanup_branch): Replace magic number 14 and 15 with
4446 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4448 2011-03-02 Michael Snyder <msnyder@vmware.com>
4450 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4452 * cli/cli-script.c (script_from_file): Add break for lint.
4454 * mdebugread.c (parse_partial_symbols): Fix indent.
4456 * target-descriptions.c (tdesc_gdb_type): No need to call
4457 xstrdup, callee saves a copy.
4459 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4461 * infcall.c (call_function_by_hand): Add break statements for lint.
4463 * utils.c (parse_escape): Escape the escape char.
4465 * python/py-inferior.c (build_inferior_list): Error out if
4466 PyList_Append fails.
4467 (gdbpy_inferiors): Error out if build_inferior_list fails.
4469 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4472 * record.c (record_restore): Move printf to before error return.
4474 2011-03-02 Yao Qi <yao@codesourcery.com>
4476 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4477 is_thumb and insn_size.
4478 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4479 on both ARM and Thumb mode.
4480 (arm_process_displaced_insn): Set is_thumb and insn_size.
4481 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4482 (arm_displaced_step_fixup): Likewise.
4484 2011-03-01 Michael Snyder <msnyder@vmware.com>
4486 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4488 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4490 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4492 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4494 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4497 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4498 which shadows function parameter.
4500 * tracepoint.c (create_tsv_from_upload): Superfluous call
4501 to xstrdup. Callee already calls xstrdup.
4503 * linespec.c (decode_line_1): Remove unnecessary null check.
4505 * tracepoint.c (scope_info): Fix mem leak, remove underused
4508 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4509 superfluous null check.
4511 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4512 (value_of_builtin_frame_fp_reg): Ditto.
4514 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4516 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4519 * linespec.c (decode_line_1): Check for null before dereference.
4521 * reverse.c (record_restore): Move null-check to before pointer
4524 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4526 * objc-lang.c (selectors_info): Add explanitory comment.
4527 (classes_info): Ditto.
4529 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4531 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4532 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4533 versions of the trampoline. Handle Thumb vs. ARM addresses.
4534 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4535 (arm_linux_init_abi): Install it.
4536 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4537 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4539 2011-02-28 Michael Snyder <msnyder@vmware.com>
4541 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4542 a little bigger, to avoid possibility of an overflow.
4544 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4545 buffers a little bigger, to avoid possibility of an overflow.
4547 * coffread.c (coff_getfilename): Add check to avoid overflow.
4549 * objc-lang.c (selectors_info): Add a small safety margin to
4551 (classes_info): Error out on too long REGEXP.
4553 * infrun.c (handle_inferior_event): Remove unused function call.
4555 * fork-child.c (fork_inferior): Remove ifdef'd code and
4558 * linux-thread-db.c (attach_thread): Discard unused value.
4560 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4562 * remote.c (remote_get_noisy_reply): Discard unused value.
4563 (remote_vcont_resume): Ditto.
4564 (remote_stop_ns): Ditto.
4566 * linespec.c (decode_objc): Delete unused variable.
4568 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4570 * dwarf2read.c (add_partial_symbol): Discard unused values.
4571 (read_base_type): Delete unused variable.
4573 * dbxread.c (read_dbx_symtab): Discard unused value.
4575 * eval.c (evaluate_subexp_standard): Delete unused variable,
4576 and discard unused values.
4578 * infcmd.c (_initialize_infcmd): Discard unused values.
4580 * stabsread.c (rs6000_builtin_type): Missing break statement.
4582 * dbxread.c (process_one_symbol): Discard unused value.
4584 * coffread.c (coff_end_symtab): Delete unused variable.
4586 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4587 (dwarf2_add_typedef): Delete unused variable.
4588 (read_namespace): Ditto.
4589 (dwarf_decode_macros): Ditto.
4591 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4593 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4595 * p-valprint.c (pascal_val_print): Discard unused value.
4597 * utils.c (nquery): Call va_end before return;
4601 * proc-service.c (ps_plog): Call va_end before return.
4603 2011-02-28 Tom Tromey <tromey@redhat.com>
4605 * python/python.c (gdbpy_value_cst): New global.
4606 (_initialize_python): Initialize it.
4607 * python/python-internal.h (gdbpy_value_cst): Declare.
4608 * python/py-value.c (convert_value_from_python): Use
4611 2011-02-28 Michael Snyder <msnyder@vmware.com>
4613 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4615 * breakpoint.c (catch_syscall_completer): Free malloced list.
4617 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4619 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4620 (lval_func_check_synthetic_pointer): Ditto.
4621 (lval_func_free_closure): Fix use-after-free.
4623 2011-02-28 Tom Tromey <tromey@redhat.com>
4625 * psymtab.c (expand_partial_symbol_tables): Use
4626 ALL_OBJFILE_PSYMTABS.
4628 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4630 * objc-lang.c (selectors_info): Error on too long REGEXP.
4632 2011-02-28 Michael Snyder <msnyder@vmware.com>
4634 * python/py-param.c (set_parameter_value): Add missing
4637 * linux-record.c (record_linux_system_call): Add missing
4640 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4642 * breakpoint.c (print_one_breakpoint_location): Remove unused
4643 argument PRINT_ADDRESS_BITS. Update callers.
4644 (print_one_breakpoint): Likewise.
4646 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4648 * breakpoint.c (wrap_indent_at_field): New function.
4649 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4650 Allocate ui_stream locally instead of using STB argument.
4651 (print_one_breakpoint_location): Update call.
4652 * ui-out.c (ui_out_query_field): New function.
4653 * ui-out.h (ui_out_query_field): Add prototype.
4655 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4657 From Michael Snyder <msnyder@vmware.com>
4658 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4660 2011-02-27 Michael Snyder <msnyder@vmware.com>
4662 * objc-lang.c (selectors_info): Prevent string overrun.
4664 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4667 * symtab.c (rbreak_command): Move variable 'file_name' to
4670 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4671 param with a local variable of the same name.
4673 2011-02-27 Michael Snyder <msnyder@vmware.com>
4675 * value.c (value_from_history_ref): New function.
4676 * value.h (value_from_history_ref): Export.
4677 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4678 to parse value history references.
4679 * cli/cli-utils.h (get_number_trailer): Update comment.
4681 2011-02-27 Michael Snyder <msnyder@vmware.com>
4683 * inferior.c (detach_inferior_command): Use get_number_or_range.
4684 (kill_inferior_command): Ditto.
4685 (remove_inferior_command): Ditto.
4686 (initialize_inferiors): Make command names plural.
4687 Update help strings.
4689 2011-02-27 Michael Snyder <msnyder@vmware.com>
4691 * darwin-nat-info.c: Fix comment typo.
4692 * dwarf2expr.h: Ditto.
4693 * fbsd-nat.c: Ditto.
4694 * fbsd-nat.h: Ditto.
4695 * frame-unwind.h: Ditto.
4697 * hppa-hpux-tdep.c: Ditto.
4698 * i386-linux-nat.c: Ditto.
4699 * linux-nat.c: Ditto.
4700 * nbsd-nat.c: Ditto.
4701 * nbsd-nat.h: Ditto.
4702 * ppc-linux-tdep.c: Ditto.
4705 * tui/tui-winsource.c: Ditto.
4707 2011-02-26 Michael Snyder <msnyder@vmware.com>
4709 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4711 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4713 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4714 with a local variable of the same name.
4716 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4717 param with a local variable of the same name.
4718 (i387_supply_xsave): Ditto.
4720 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4721 that it does not shadow a function parameter.
4723 * i386-nat.c (i386_length_and_rw_bits): Document that case
4724 statement is meant to fall through.
4726 * expprint.c (dump_subexp_body_standard): Document that case
4727 statement is meant to fall through.
4729 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4730 dead if statement. Condition can't be false.
4732 2011-02-25 Michael Snyder <msnyder@vmware.com>
4734 * arm-tdep.c: Fix typos in comments.
4735 * bsd-uthread.c: Ditto.
4736 * completer.c: Ditto.
4738 * cp-namespace.c: Ditto.
4739 * cp-support.c: Ditto.
4740 * cris-tdep.c: Ditto.
4742 * dwarf2read.c: Ditto.
4744 * gdbtypes.h: Ditto.
4745 * inferior.h: Ditto.
4746 * mdebugread.c: Ditto.
4747 * mips-tdep.c: Ditto.
4748 * ppc-linux-nat.c: Ditto.
4749 * ppc-linux-tdep.c: Ditto.
4750 * printcmd.c: Ditto.
4751 * sol-thread.c: Ditto.
4752 * solib-frv.c: Ditto.
4754 * sparc64-tdep.c: Ditto.
4755 * spu-tdep.c: Ditto.
4756 * stabsread.c: Ditto.
4761 * python/py-block.c: Ditto.
4762 * python/py-symbol.c: Ditto.
4763 * python/py-symtab.c: Ditto.
4764 * python/py-value.c: Ditto.
4765 * tui/tui-win.c: Ditto.
4767 2011-02-25 Michael Snyder <msnyder@vmware.com>
4769 * inferior.c (print_inferior): Accept a string instead of an int
4770 for requested_inferiors, and use get_number_or_range to parse it.
4771 (info_inferiors_command): Pass args string to print_inferior.
4772 (initialize_inferiors): Change help string for info inferiors.
4773 * inferior.h (print_inferior): Export prototype change.
4775 2011-02-25 Tom Tromey <tromey@redhat.com>
4777 * common/ax.def (invalid2): Set to 0x31.
4779 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4781 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4783 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4785 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4787 2011-02-24 Michael Snyder <msnyder@vmware.com>
4789 * Makefile.in (clean): Make clean should remove generated files
4790 observer.h and observer.inc.
4792 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4794 Revert the following patch (not approved yet):
4795 2011-02-21 Hui Zhu <teawater@gmail.com>
4796 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4797 * ax-gdb.c (gen_printf_expr_callback): New function.
4798 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4799 * ax-general.c (ax_memcpy): New function.
4800 (ax_print): Handle "printf".
4802 * ax.h (ax_memcpy): Forward declare.
4803 * common/ax.def (invalid2): Removed.
4804 (printf): New entry.
4805 * printcmd.c (printcmd.h): New include.
4806 (string_printf): New function.
4807 (ui_printf): Removed.
4808 (printf_command): Remove static. Call string_printf.
4809 (eval_command): Call string_printf.
4810 * printcmd.h: New file.
4811 * tracepoint.c (validate_actionline,
4812 encode_actions_1): handle printf_command.
4814 2011-02-23 Tom Tromey <tromey@redhat.com>
4816 * ax-general.c (ax_pick): Add missing newline.
4818 2011-02-23 Michael Snyder <msnyder@vmware.com>
4820 * breakpoint.c (breakpoint_1): Change first argument from an int
4821 to a char pointer, so that the function now accepts a list of
4822 breakpoints rather than just one. Use new function
4823 'number_is_in_list' to implement.
4824 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4825 (watchpoints_info): Ditto.
4826 (tracepoints_info): Ditto.
4827 (maintenance_info_breakpoints): Ditto.
4828 (_initialize_breakpoint): Update help strings to reflect the fact
4829 that these functions can now take more than one argument.
4830 * cli/cli-utils.c (number_is_in_list): New function.
4831 * cli/cli-utils.h (number_is_in_list): Export.
4833 2011-02-23 Michael Snyder <msnyder@vmware.com>
4835 * memattr.c (mem_enable_command): Use get_number_or_range.
4836 (mem_disable_command): Ditto.
4837 (mem_delete_command): Ditto.
4838 (_initialize_mem): Tweak usage message to reflect multiple
4841 2011-02-22 Doug Evans <dje@google.com>
4843 Add gdb.lookup_global_symbol python function.
4845 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4846 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4847 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4849 2011-02-22 Tom Tromey <tromey@redhat.com>
4851 * language.c (language_class_name_from_physname): Rename
4852 'curr_language' argument to 'lang'; use in body.
4854 2011-02-22 Michael Snyder <msnyder@vmware.com>
4856 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4858 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4860 * frame-unwind.h: Fix comment to mention the this frame, not the
4863 2011-02-22 Tom Tromey <tromey@redhat.com>
4865 * symfile.c (auto_solib_limit): Remove.
4866 * symfile.h (auto_solib_limit): Remove.
4868 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4870 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4872 2011-02-21 Michael Snyder <msnyder@vmware.com>
4874 * gdbthread.h (print_thread_info): Change prototype.
4875 * thread.c (print_thread_info): Accept char* instead of int for
4876 requested_threads argument. Use new function number_is_in_list
4877 to determine which threads to list.
4878 (info_threads_command): Pass char* to print_thread_info.
4879 * cli/cli-utils.c (number_is_in_list): New function.
4880 * cli/cli-utils.h (number_is_in_list): Export.
4881 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4883 (print_one_inferior): Ditto.
4884 (mi_cmd_list_thread_groups): Ditto.
4886 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4888 * common/Makefile.in (CFLAGS): New.
4889 (COMPILE): Add $(CFLAGS).
4891 2011-02-21 Tom Tromey <tromey@redhat.com>
4893 * breakpoint.c (catch_syscall_command_1): Fix typo.
4895 2011-02-21 Tom Tromey <tromey@redhat.com>
4897 * reverse.c: Include cli-utils.h.
4898 * printcmd.c: Include cli-utils.h.
4899 (string_printf): Use skip_spaces.
4900 * cli/cli-utils.h: New file.
4901 * cli/cli-utils.c: New file.
4902 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4903 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4904 * breakpoint.h (get_number, get_number_or_range): Move to
4906 * breakpoint.c: Include cli-utils.h.
4907 (get_number_trailer, get_number, get_number_or_range)
4908 (ep_skip_leading_whitespace): Move to cli-utils.c.
4909 (create_breakpoint_sal, find_condition_and_thread)
4910 (decode_static_tracepoint_spec, watch_command_1)
4911 (watch_maybe_just_location, ep_parse_optional_if_clause)
4912 (catch_fork_command_1, catch_exec_command_1)
4913 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4914 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4915 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4916 (HFILES_NO_SRCDIR): Add cli-utils.h.
4917 (cli-utils.o): New target.
4919 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4921 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4922 before calling discard_all_inferiors.
4924 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4926 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4927 (struct builtin_opencl_type): Remove.
4928 (builtin_opencl_type): Change return type to "struct type **".
4929 (lookup_opencl_vector_type): Update caller.
4930 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4931 (build_opencl_types): Install plain array of "struct type *"
4932 instead of "struct builtin_opencl_type".
4934 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4935 Ulrich Weigand <uweigand@de.ibm.com>
4937 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4938 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4939 (struct arm_linux_hwbp_cap): New type.
4940 (arm_linux_get_hwbp_cap): New function.
4941 (arm_linux_get_hw_breakpoint_count): Likewise.
4942 (arm_linux_get_hw_watchpoint_count): Likewise.
4943 (arm_linux_can_use_hw_breakpoint): Likewise.
4944 (arm_hwbp_type): New type.
4945 (arm_hwbp_control_t): Likewise.
4946 (struct arm_linux_hw_breakpoint): Likewise.
4947 (struct arm_linux_thread_points): Likewise.
4948 (arm_threads): New global variable.
4949 (arm_linux_find_breakpoints_by_tid): New function.
4950 (arm_hwbp_control_initialize): Likewise.
4951 (arm_hwbp_control_is_enabled): Likewise.
4952 (arm_hwbp_control_disable): Likewise.
4953 (arm_linux_hw_breakpoint_initialize): Likewise.
4954 (arm_linux_get_hwbp_type): Likewise.
4955 (arm_linux_hw_watchpoint_initialize): Likewise.
4956 (arm_linux_hw_breakpoint_equal): Likewise.
4957 (arm_linux_insert_hw_breakpoint1): Likewise.
4958 (arm_linux_remove_hw_breakpoint1): Likewise.
4959 (arm_linux_insert_hw_breakpoint): Likewise.
4960 (arm_linux_remove_hw_breakpoint): Likewise.
4961 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4962 (arm_linux_insert_watchpoint): Likewise.
4963 (arm_linux_remove_watchpoint): Likewise.
4964 (arm_linux_stopped_data_address): Likewise.
4965 (arm_linux_stopped_by_watchpoint): Likewise.
4966 (arm_linux_watchpoint_addr_within_range): Likewise.
4967 (arm_linux_new_thread): Likewise.
4968 (arm_linux_thread_exit): Likewise.
4969 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4970 related target callbacks. Register arm_linux_new_thread and
4971 arm_linux_thread_exit.
4972 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4973 * arm-tdep.c (arm_pc_is_thumb): Make global.
4974 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4976 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4978 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4979 per-frame locations while within a function epilogue.
4981 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4983 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4984 to GNU coding standards.
4986 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4988 Allow use of mingw native on Windows 95 OS.
4989 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4990 (ser_windows_close): Only call CancelIo if function exists.
4991 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4992 to check for existence of CancelIo function in kernel32 DLL.
4994 2011-02-21 Hui Zhu <teawater@gmail.com>
4996 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4997 * ax-gdb.c (gen_printf_expr_callback): New function.
4998 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4999 * ax-general.c (ax_memcpy): New function.
5000 (ax_print): Handle "printf".
5002 * ax.h (ax_memcpy): Forward declare.
5003 * common/ax.def (invalid2): Removed.
5004 (printf): New entry.
5005 * printcmd.c (printcmd.h): New include.
5006 (string_printf): New function.
5007 (ui_printf): Removed.
5008 (printf_command): Remove static. Call string_printf.
5009 (eval_command): Call string_printf.
5010 * printcmd.h: New file.
5011 * tracepoint.c (validate_actionline,
5012 encode_actions_1): handle printf_command.
5014 2011-02-19 Michael Snyder <msnyder@vmware.com>
5016 * reverse.c (delete_one_bookmark): Argument is now bookmark
5017 id rather than pointer to bookmark struct.
5018 (delete_bookmark_command): Use get_number_or_range.
5019 (goto_bookmark_command): Parse with get_number instead of strtoul.
5020 (bookmark_1): New function. Print info for one bookmark.
5021 (bookmarks_info): Use get_number_or_range and bookmark_1.
5023 2011-02-18 Michael Snyder <msnyder@vmware.com>
5025 * thread.c (info_threads_command): Re-implement using
5026 get_number_or_range.
5027 (thread_apply_command): Ditto.
5029 2011-02-18 Tom Tromey <tromey@redhat.com>
5031 * common/ax.def: New file.
5032 * ax.h (enum agent_op): Use ax.def.
5033 * ax-general.c (aop_map): Use ax.def.
5035 2011-02-18 Tom Tromey <tromey@redhat.com>
5037 * ax-general.c (aop_map): Add pick and rot.
5038 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5039 <DW_OP_rot>: Implement.
5040 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5042 * ax-general.c (ax_pick): New function.
5044 2011-02-18 Tom Tromey <tromey@redhat.com>
5046 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5048 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5049 Tom Tromey <tromey@redhat.com>
5051 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5052 make_symbol_overload_list_block with NULL BLOCK.
5053 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5055 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5057 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5058 * breakpoint.h (get_number_or_range): Declare.
5059 * printcmd.c (ALL_DISPLAYS): Declare.
5060 (delete_display): Reimplement taking a display pointer.
5061 (undisplay_command): Accept a range of displays to delete, using
5062 get_number_or_range.
5064 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5066 * c-valprint.c (c_val_print): Add embedded_offset to address
5067 for arrays of unspecified length.
5068 * p-valprint.c (pascal_val_print): Likewise.
5070 2011-02-18 Yao Qi <yao@codesourcery.com>
5072 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5073 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5074 (thumb_process_displaced_insn): New.
5075 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5076 call to arm_process_displaced_insn.
5077 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5079 2011-02-17 Tom Tromey <tromey@redhat.com>
5081 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5082 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5083 compile_dwarf_to_ax. No longer static. Call
5084 dwarf2_compile_cfa_to_ax.
5085 (locexpr_tracepoint_var_ref): Update.
5086 (loclist_tracepoint_var_ref): Update.
5087 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5088 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5089 argument; add 'gdbarch' and 'pc'.
5090 (dwarf2_compile_cfa_to_ax): New function.
5091 (dwarf2_frame_cache): Update.
5093 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5095 * ada-lang.c (ada_type_of_array): Fix the size of the array
5096 in the case of an unconstrained packed array.
5098 2011-02-17 Yao Qi <yao@codesourcery.com>
5100 * common/Makefile.in: Add more targets for make.
5102 2011-02-16 Tom Tromey <tromey@redhat.com>
5104 * dwarf2loc.c (unimplemented): Fix typo.
5106 2011-02-16 Tom Tromey <tromey@redhat.com>
5108 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5109 (compile_dwarf_to_ax) <default>: Use unimplemented.
5110 <DW_OP_deref>: Update.
5111 (disassemble_dwarf_expression): Update.
5112 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5113 (decode_locdesc): Update.
5114 * dwarf2expr.h (dwarf_stack_op_name): Update.
5116 2011-02-16 Tom Tromey <tromey@redhat.com>
5118 * ax.h (struct aop_map) <name>: Now const.
5120 2011-02-16 Tom Tromey <tromey@redhat.com>
5122 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5125 2011-02-16 Yao Qi <yao@codesourcery.com>
5127 * infrun.c (get_displaced_step_closure_by_addr): New.
5128 * inferior.h: Declare it.
5129 * arm-tdep.c: (arm_pc_is_thumb): Call
5130 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5133 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5134 Jan Kratochvil <jan.kratochvil@redhat.com>
5137 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5139 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5140 Jan Kratochvil <jan.kratochvil@redhat.com>
5142 * value.c (value_contents_copy_raw): Extend describing comment.
5143 Assert that the destination contents we're overwriting are wholly
5145 (value_contents_copy): Extend describing comment.
5147 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5148 Jan Kratochvil <jan.kratochvil@redhat.com>
5150 * value.c (value_available_contents_eq): Remove redundant local
5151 variables. Fix available contents comparision.
5152 * value.h (value_available_contents_eq): Extend describing
5155 2011-02-16 Yao Qi <yao@codesourcery.com>
5157 * thread.c (info_threads_command): Add missing i18n markup and remove
5160 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5162 * breakpoint.c (longjmp_names): New variable.
5163 (struct breakpoint_objfile_data): New type.
5164 (breakpoint_objfile_key): New variable.
5165 (msym_not_found): New variable.
5166 (msym_not_found_p): New predicate.
5167 (get_breakpoint_objfile_data): New function.
5168 (create_overlay_event_breakpoint): Check per-objfile cache for
5170 (create_longjmp_master_breakpoint): Likewise.
5171 (create_std_terminate_master_breakpoint): Likewise.
5172 (create_exception_master_breakpoint): Likewise.
5173 (_initialize_breakpoint): Register per-objfile data key.
5175 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5177 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5179 (create_longjmp_master_breakpoint): Loop over longjmp names.
5180 (create_std_terminate_master_breakpoint): Const-propagate parameter
5182 (update_breakpoints_after_exec): Adjust.
5183 (breakpoint_re_set): Adjust.
5185 2011-02-15 Michael Snyder <msnyder@vmware.com>
5187 * thread.c (info_threads_command): Process arg as thread id,
5188 or list of thread ids.
5189 (thread_find_command): New command.
5190 (_initialize_thread): Document argument for info threads.
5191 Document 'thread find' command.
5192 * NEWS: Document new command "thread find".
5194 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5196 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5197 * aclocal.m4: Regenerated with aclocal-1.11.1.
5198 * common/configure: Regenerate with autoconf-2.64.
5200 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5202 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5203 bool data type to a size of one byte.
5205 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5206 Jan Kratochvil <jan.kratochvil@redhat.com>
5208 * target.c (memory_xfer_live_readonly_partial): Document where to
5209 look for interface description.
5211 2011-02-15 Yao Qi <yao@codesourcery.com>
5214 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5215 order to store PC value on stack instead of text section.
5217 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5219 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5220 the EFP register set size.
5221 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5222 data from the VMX register.
5223 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5224 and write data from/to the VMX register.
5226 2011-02-14 Michael Snyder <msnyder@vmware.com>
5228 * command.h (enum command_class): New class 'no_set_class', for
5229 "show" commands without a corresponding "set" command.
5230 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5231 * copying.c (_initialize_copying): Ditto for "show copying" and
5233 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5235 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5236 which there is no corresponding "set" command (eg. "show copying").
5238 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5239 Jan Kratochvil <jan.kratochvil@redhat.com>
5241 * exec.c (section_table_available_memory): Change `len' parameter
5243 * exec.h (section_table_available_memory): Ditto.
5244 * value.h (read_value_memory): Rename the `offset' parameter to
5247 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5248 Jan Kratochvil <jan.kratochvil@redhat.com>
5250 * memrange.c (compare_mem_ranges): Mention sort order in
5252 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5253 * tracepoint.c (traceframe_available_memory): Extend comment to
5254 mention what happens to RESULT when the target does not support
5257 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5258 Jan Kratochvil <jan.kratochvil@redhat.com>
5260 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5263 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5265 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5266 No longer handle NULL values.
5268 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5270 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5271 * value.c: Include "exceptions.h".
5272 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5274 * cp-abi.c: Include gdb_assert.h.
5275 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5276 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5278 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5279 parameters. No longer returns -1 on error.
5280 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5282 * cp-valprint.c: Include exceptions.h.
5283 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5284 the baseclass_offset. Handle unavailable base classes. Use
5285 val_print_invalid_address.
5286 * p-valprint.c: Include exceptions.h.
5287 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5288 when fetching the baseclass_offset. No longer expect
5289 baseclass_offset returning -1. Handle unavailable base classes.
5290 Use val_print_invalid_address.
5291 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5292 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5293 `embedded_offset' and `val' parameters. Adjust.
5294 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5295 parameter, and change its type to gdb_byte pointer. Add
5296 `embedded_offset' and `val' parameters. Adjust. No longer expect
5297 baseclass_offset returning -1.
5298 (value_dynamic_cast): Use value_contents_for_printing rather than
5299 value_contents. Adjust.
5300 (search_struct_field): No longer expect baseclass_offset returning
5302 (search_struct_method): If reading memory from the target is
5303 necessary, wrap it in a new value to pass to baseclass_offset. No
5304 longer expect baseclass_offset returning -1.
5305 (find_method_list): No longer expect baseclass_offset returning
5306 -1. Use value_contents_for_printing rather than value_contents.
5307 * valprint.c (val_print_invalid_address): New function.
5308 * valprint.h (val_print_invalid_address): Declare.
5309 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5310 and `val' parameters. No longer expect baseclass_offset returning
5312 * gnu-v2-abi.c: Include "exceptions.h".
5313 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5314 parameters. Handle unavailable memory. Recurse through
5315 gnuv2_baseclass_offset directly, rather than through
5316 baseclass_offset. No longer returns -1 on not found, instead
5318 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5319 `val' parameters. Adjust.
5321 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5323 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5324 almost but not quite adjacent.
5326 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5328 * value.h (value_entirely_available): Declare.
5329 * value.c (value_entirely_available): New function.
5330 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5331 real type if the pointer is unavailable.
5333 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5335 * valops.c (value_repeat): Use read_value_memory instead of
5338 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5340 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5341 * value.c (value_contents_copy_raw, value_contents_copy): New
5343 (value_primitive_field): Use value_contents_copy_raw instead of
5345 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5347 (value_array, value_slice): Ditto.
5348 * valarith.c (value_subscripted_rvalue): Use
5349 value_contents_copy_raw instead of memcpy.
5351 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5353 <unavailable> references.
5355 * valops.c (get_value_at): Use value_from_contents_and_address,
5356 avoiding read_memory.
5358 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5360 * c-valprint.c (c_val_print): Print a string with unavailable
5361 contents as an array.
5363 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5365 * value.h (unpack_bits_as_long): Delete declaration.
5366 (unpack_value_bits_as_long): Declare.
5367 (unpack_value_field_as_long): Declare.
5368 (value_field_bitfield): Declare.
5369 * value.c (unpack_bits_as_long): Rename to...
5370 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5371 value parameters. Return the extracted result in a new output
5372 parameter. If the value contents are unavailable, return false,
5373 otherwise return true.
5374 (unpack_value_bits_as_long): New.
5375 (unpack_field_as_long): Rename to...
5376 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5377 Add embedded_offset and value parameters. Return the extracted
5378 result in a new output parameter. If the value contents are
5379 unavailable, return false, otherwise return true.
5380 (unpack_value_field_as_long): New.
5381 (unpack_field_as_long_1): New.
5382 (unpack_field_as_long): Reimplement as wrapper around
5383 unpack_value_field_as_long_1.
5384 (value_field_bitfield): New function.
5385 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5386 unpack_value_bits_as_long. Mark the value as unavailable, if it
5388 * jv-valprint.c (java_print_value_fields): Use
5389 value_field_bitfield.
5390 * p-valprint.c (pascal_object_print_value_fields): Use
5391 value_field_bitfield.
5392 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5394 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5396 * value.c (get_internalvar_integer): Also return the int value of
5397 TYPE_CODE_INT INTERNALVAR_VALUE values.
5398 (set_internalvar): Don't special case TYPE_CODE_INT.
5400 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5402 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5403 INTERNALVAR_POINTER.
5405 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5406 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5407 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5409 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5411 * value.h (value_available_contents_eq): Declare.
5412 * value.c (find_first_range_overlap): New function.
5413 (value_available_contents_eq): New function.
5414 * valprint.c (val_print_array_elements): Use
5415 value_available_contents_eq.
5416 * ada-valprint.c (val_print_packed_array_elements): Use
5417 value_available_contents_eq.
5418 * jv-valprint.c (java_value_print): Use
5419 value_available_contents_eq.
5421 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5423 * target.c (target_read_live_memory): New function.
5424 (memory_xfer_live_readonly_partial): New.
5425 (memory_xfer_partial): If reading from a traceframe, fallback to
5426 reading unavailable read-only memory from read-only regions of
5428 * tracepoint.c (disconnect_tracing): Adjust.
5429 (set_current_traceframe): New, factored out from
5430 set_traceframe_number.
5431 (set_traceframe_number): Reimplement to only change the traceframe
5432 number on the GDB side.
5433 (do_restore_current_traceframe_cleanup): Adjust.
5434 (make_cleanup_restore_traceframe_number): New.
5435 (cur_traceframe_number): New global.
5436 (tfile_open): Set cur_traceframe_number to no traceframe.
5437 (set_tfile_traceframe): New function.
5438 (tfile_trace_find): If looking up a traceframe using any method
5439 other than by number, make sure the current tfile traceframe
5440 matches gdb's current traceframe. Update the current tfile
5441 traceframe if the lookup succeeded.
5442 (tfile_fetch_registers, tfile_xfer_partial)
5443 (tfile_get_trace_state_variable_value): Make sure the remote
5444 traceframe matches gdb's current traceframe.
5445 * remote.c (remote_traceframe_number): New global.
5446 (remote_open_1): Set it to -1.
5447 (set_remote_traceframe): New function.
5448 (remote_fetch_registers, remote_store_registers)
5449 (remote_xfer_memory, remote_xfer_partial)
5450 (remote_get_trace_state_variable_value): Make sure the remote
5451 traceframe matches gdb's current traceframe.
5452 (remote_trace_find): If looking up a traceframe using any method
5453 other than by number, make sure the current remote traceframe
5454 matches gdb's current traceframe. Update the current remote
5455 traceframe if the lookup succeeded.
5456 * infrun.c (fetch_inferior_event): Adjust.
5457 * tracepoint.h (set_current_traceframe): Declare.
5458 (get_traceframe_number, set_traceframe_number): Add describing
5461 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5463 Mark pieces of values as unavailable if the corresponding memory
5466 * valops.c: Include tracepoint.h.
5467 (value_fetch_lazy): Use read_value_memory.
5468 (read_value_memory): New.
5469 * value.h (read_value_memory): Declare.
5470 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5471 * exec.c (section_table_available_memory): New function.
5472 * exec.h (section_table_available_memory): Declare.
5474 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5476 * Makefile.in (SFILES): Add memrange.c.
5477 (HFILES_NO_SRCDIR): Add memrange.h.
5478 (COMMON_OBS): Add memrange.o.
5479 * memrange.c: New file.
5480 * memrange.h: New file.
5481 * tracepoint.c: Include memrange.h.
5482 (struct mem_range): Delete.
5483 (mem_range_s): Delete.
5484 (traceframe_available_memory): New function.
5485 * tracepoint.h (traceframe_available_memory): Declare.
5487 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5489 * target.h (struct traceframe_info): Forward declare.
5490 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5491 (struct target_ops) <to_traceframe_info>: New field.
5492 (target_traceframe_info): New.
5493 * target.c (update_current_target): Inherit and default
5495 * remote.c (PACKET_qXfer_traceframe_info): New.
5496 (remote_protocol_features): Register qXfer:traceframe-info:read.
5497 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5498 (remote_traceframe_info): New.
5499 (init_remote_ops): Install it.
5500 (_initialize_remote): Install "set/show remote traceframe-info"
5502 * tracepoint.h (parse_traceframe_info): Declare.
5503 * tracepoint.c (struct mem_range): New.
5504 (mem_range_s): New typedef.
5505 (struct traceframe_info): New.
5506 (traceframe_info): New global.
5507 (free_traceframe_info): New function.
5508 (clear_traceframe_info): New function.
5509 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5511 (build_traceframe_info): New function.
5512 (tfile_traceframe_info): New function.
5513 (init_tfile_ops): Install tfile_traceframe_info.
5514 (traceframe_info_start_memory, free_result): New functions.
5515 (memory_attributes, traceframe_info_elements): New globals.
5516 (parse_traceframe_info, get_traceframe_info): New functions.
5517 * features/traceframe-info.dtd: New file.
5518 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5520 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5522 Base support for <unavailable> value contents.
5524 * value.h (value_bytes_available): Declare.
5525 (mark_value_bytes_unavailable): Declare.
5526 * value.c (struct range): New struct.
5527 (range_s): New typedef.
5528 (ranges_overlap): New function.
5529 (range_lessthan): New function.
5530 (ranges_contain_p): New function.
5531 (struct value) <unavailable>: New field.
5532 (value_bytes_available): New function.
5533 (mark_value_bytes_unavailable): New function.
5534 (require_not_optimized_out): Constify parameter.
5535 (require_available): New function.
5536 (value_contents_all, value_contents): Require all bytes be
5538 (value_free): Free `unavailable'.
5539 (value_copy): Copy `unavailable'.
5540 * valprint.h (val_print_unavailable): Declare.
5541 * valprint.c (valprint_check_validity): Rename `offset' parameter
5542 to `embedded_offset'. If printing a scalar, check whether the
5543 value chunk is available.
5544 (val_print_unavailable): New.
5545 (val_print_scalar_formatted): Check whether the value is
5547 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5548 pretty-printing unavailable values.
5550 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5552 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5553 * c-typeprint.c (c_type_print_args): Update the function comment. New
5554 variable param_type, initialize it. Remove const/volatile qualifiers
5555 for language_cplus and !show_artificial. Use param_type.
5557 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5559 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5560 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5561 * symtab.h (struct symtab) <next>: Comment extension.
5563 2011-02-12 Yao Qi <yao@codesourcery.com>
5565 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5567 2011-02-11 Yao Qi <yao@codesourcery.com>
5569 * common/Makefile.in: Add copyright header.
5571 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5573 * infrun.c (proceed): Move switching out and in of tfind mode from
5575 (fetch_inferior_event): ... to here.
5577 2011-02-11 Yao Qi <yao@codesourcery.com>
5579 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5581 * configure.ac: Add common to sub dir.
5582 * configure: Regenerate.
5584 2011-02-11 Yao Qi <yao@codesourcery.com>
5588 * common/Makefile.in: New.
5589 * common/configure.ac: New.
5590 * common/aclocal.m4: New.
5591 * common/configure: Generate.
5593 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5595 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5596 side of the parenthesis.
5599 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5600 * vec.h (VEC_block_remove): Fix comment.
5602 2011-02-08 Michael Snyder <msnyder@vmware.com>
5604 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5606 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5608 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5609 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5612 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5615 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5617 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5618 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5620 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5622 * dwarf2read.c (read_subroutine_type): Set special calling
5623 convention flag for functions compiled by IBM XL C for OpenCL.
5624 * ppc-sysv-tdep.c: Include "dwarf2.h"
5625 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5627 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5628 IBM OpenCL vector types calling convention.
5629 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5630 (ppc_sysv_abi_broken_return_value): Likewise.
5631 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5632 types calling convention.
5633 (ppc64_sysv_abi_return_value): Likewise.
5634 * spu-tdep.c: Include "dwarf2.h"
5635 (spu_return_value): Implement IBM OpenCL vector types calling
5638 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5640 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5641 correct ABI for AltiVec vector arguments.
5643 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5645 * valprint.c (val_print): Extend comment.
5646 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5647 interface explanation to val_print.
5648 (ada_val_print_array): Adjust comment to current interface.
5649 (print_field_values): Adjust comment to current interface.
5650 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5651 explanation to val_print.
5652 * f-valprint.c (f_val_print): Ditto.
5653 * jv-valprint.c (java_val_print): Ditto.
5654 * m2-valprint.c (m2_val_print): Ditto.
5655 * p-valprint.c (pascal_val_print): Ditto.
5657 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5659 * breakpoint.c (parse_breakpoint_sals): Fix description.
5661 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5662 Oguz Kayral <oguzkayral@gmail.com>
5664 * python/py-inferior.c (python_on_normal_stop): New function.
5665 (python_on_resume): New function.
5666 (python_inferior_exit): New function.
5667 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5668 inferior_exit observers.
5669 * python/py-evtregistry.c: New file.
5670 * python/py-threadevent.c : New file.
5671 * python/py-event.c: New file.
5672 * python/py-evts.c: New file.
5673 * python/py-continueevent.c: New file.
5674 * python/py-bpevent.c: New file.
5675 * python/py-signalevent.c: New file.
5676 * python/py-exetiedevent.c: New file.
5677 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5678 Move struct breakpoint_object from here...
5679 * python/python-internal.h: ... to here.
5680 * python/py-event.h: New file.
5681 * python/py-events.h: New file.
5682 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5683 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5684 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5685 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5686 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5687 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5688 Add build rules for all the above.
5690 2011-02-04 Tom Tromey <tromey@redhat.com>
5692 * dwarf2read.c (dwarf2_section_empty_p): New function.
5693 (dwarf2_read_section): Use dwarf2_section_empty_p.
5694 (dwarf2_section_size): New function.
5695 (dwarf2_get_section_info): Unconditionally read section.
5696 (dwarf2_read_index): Use dwarf2_section_empty_p.
5697 (partial_read_comp_unit_head): Use dwarf2_section_size.
5698 (dwarf2_symbol_mark_computed): Likewise.
5700 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5702 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5704 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5706 * mips-linux-tdep.c: Include xml-syscall.h.
5707 (mips_linux_get_syscall_number): New function.
5708 (mips_linux_init_abi): Add calls to
5709 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5710 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5711 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5712 * syscalls/mips-n32-linux.xml: New file.
5713 * syscalls/mips-n64-linux.xml: New file.
5714 * syscalls/mips-o32-linux.xml: New file.
5716 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5718 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5719 Complain about inverted range entries.
5720 (dwarf2_record_block_ranges): Likewise.
5722 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5725 * breakpoint.c (update_watchpoint): Fix name of the
5726 update_global_location_list function.
5727 (print_one_breakpoint): Fix typo.
5728 (_initialize_breakpoint): Remove extra space in hbreak help
5730 * breakpoint.h (struct bp_location) <length>: Fix field
5733 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5735 * regcache.c (registers_changed_ptid): Don't explictly always
5736 clear `current_regcache'. Only clear current_thread_ptid and
5737 current_thread_arch when PTID matches. Only reinit the frame
5738 cache if PTID matches the current inferior_ptid. Move alloca(0)
5740 (registers_changed): ... here.
5742 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5744 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5745 starts with __stack_chk_guard as stack guard symbol.
5747 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5749 * disasm.c (compare_lines): Handle the end of sequence markers
5750 within the line table to better support disassembling over
5751 compilation unit boundaries.
5753 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5755 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5756 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5757 implementation even if no symbols are available.
5758 (thumb_analyze_prologue): Update call to skip_prologue_function.
5759 (arm_analyze_prologue): Likewise.
5761 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5763 * arm-tdep.c: Include "observer.h".
5764 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5765 (arm_exidx_data_key): New static variable.
5766 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5767 (struct arm_exidx_data): Likewise.
5768 (arm_exidx_data_free): New function.
5769 (arm_compare_exidx_entries): Likewise.
5770 (arm_obj_section_from_vma): Likewise.
5771 (arm_exidx_new_objfile): Likewise.
5772 (arm_find_exidx_entry): Likewise.
5773 (arm_exidx_fill_cache): Likewise.
5774 (arm_exidx_unwind_sniffer): Likewise.
5775 (arm_exidx_unwind): New global variable.
5776 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5777 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5778 observer. Register arm_exidx_data_key as objfile data.
5780 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5782 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5783 due to accessing uninitialized variable. Fix indentation.
5785 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5787 * c-valprint.c (c_value_print): When doing virtual base pointer
5788 adjustment, create a new value with adjusted contents rather than
5789 changing the contents of the value being printed (and getting it
5792 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5794 * xml-support.c (xml_find_attribute): New.
5795 (xinclude_start_include): Use it.
5796 * xml-support.h (xml_find_attribute): Declare.
5797 * memory-map.c (memory_map_start_memory)
5798 (memory_map_start_property): Use xml_find_attribute.
5799 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5801 * remote.c (start_thread): Use xml_find_attribute.
5802 * solib-target.c (library_list_start_segment)
5803 (library_list_start_section, library_list_start_library)
5804 (library_list_start_list): Use xml_find_attribute.
5805 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5806 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5807 (tdesc_start_field): Use xml_find_attribute.
5809 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5811 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5812 (BUILD_OCL_VTYPES): Update.
5814 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5816 * configure.ac: Work around non-GNU sed limitation when computing
5817 python version number.
5818 * configure: Regenerate.
5820 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5822 Fix debug printing of TYPE_INSTANCE.
5823 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5824 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5826 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5828 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5829 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5830 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5831 * ada-operator.inc: Rename the file to ...
5832 * ada-operator.def: ... here, wrap all the entries by macro OP.
5833 * expprint.c (op_name_standard): Remove all the entries. Include
5834 "std-operator.def" instead.
5835 * expression.h (enum exp_opcode): Include "std-operator.def" and
5836 "ada-operator.def". Move all the entries ...
5837 * std-operator.def: ... here, wrap all the entries by macro OP.
5839 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5841 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5842 * breakpoint.c (remove_jit_event_breakpoints): New function.
5843 * jit.c (jit_descriptor_addr): Delete.
5844 (registering_code): Delete.
5845 (clear_int): Delete.
5846 (jit_inferior_data): New variable.
5847 (struct jit_inferior_data): New type.
5848 (get_jit_inferior_data): New function.
5849 (jit_inferior_data_cleanup): New function.
5850 (jit_read_descriptor): Adjust.
5851 (jit_register_code): Adjust.
5852 (jit_breakpoint_re_set_internal): New function; move code here ...
5853 (jit_inferior_init): ... from here.
5854 (jit_breakpoint_re_set): Adjust.
5855 (jit_reset_inferior_data_and_breakpoints): New function.
5856 (jit_inferior_created_observer): Adjust.
5857 (jit_inferior_exit_hook): Adjust.
5858 (jit_executable_changed_observer): New function.
5859 (jit_event_handler): Adjust.
5860 (_initialize_jit): Adjust.
5862 2011-01-31 Michael Snyder <msnyder@vmware.com>
5864 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5867 2011-01-31 Tom Tromey <tromey@redhat.com>
5870 * python/python.c (execute_gdb_command): Call
5871 prevent_dont_repeat.
5872 * top.c (suppress_dont_repeat): New global.
5873 (dont_repeat): Use it.
5874 (prevent_dont_repeat): New function.
5875 * command.h (prevent_dont_repeat): Declare.
5877 2011-01-31 Tom Tromey <tromey@redhat.com>
5879 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5880 * python/py-breakpoint.c (bppy_set_silent): Use
5881 breakpoint_set_silent.
5882 (bppy_set_thread): Use breakpoint_set_thread.
5883 (bppy_set_task): Use breakpoint_set_task.
5884 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5885 (breakpoint_set_task): Declare.
5886 (make_breakpoint_silent): Remove.
5887 * breakpoint.c (breakpoint_set_silent): New function.
5888 (breakpoint_set_thread): Likewise.
5889 (breakpoint_set_task): Likewise.
5890 (make_breakpoint_silent): Remove.
5892 2011-01-31 Tom Tromey <tromey@redhat.com>
5894 * breakpoint.h (user_breakpoint_p): Declare.
5895 * breakpoint.c (user_breakpoint_p): New function.
5896 (breakpoint_1): Use it.
5897 (save_breakpoints): Likewise.
5899 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5901 * configure.ac: Add handling of Python distribution on Windows.
5902 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5903 sysconfig variables are not defined, then do not use them.
5904 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5905 instead. On Windows, return all paths using forward-slashes
5906 rather than backslashes.
5908 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5910 * configure.ac: Remove fallback behavior for building
5911 against Python. Remove tweaking of Python include path.
5912 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5913 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5914 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5915 Always restore CPPFLAGS and LIBS after linking test.
5916 * configure: Regenerated.
5917 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5918 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5919 * python/python-internal.h: Adjust includes of Python .h files.
5921 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5923 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5926 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5928 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5931 2011-01-31 Yao Qi <yao@codesourcery.com>
5933 * arm-linux-nat.c: Update calls to regcache_register_status
5934 instead of regcache_valid_p.
5935 * aix-thread.c: Likewise.
5936 * i386gnu-nat.c: Likewise.
5938 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5941 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5942 touching TYPE_FIELD_ARTIFICIAL.
5944 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
5946 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5949 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5951 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5952 selected, don't try iterating over the traceframe's blocks.
5953 (tfile_has_stack): If there's no traceframe selected, then there's
5955 (tfile_has_registers): If there's no traceframe selected, then
5956 there's no registers.
5958 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5960 * target.c (memory_xfer_partial): No need to restore shadows if we
5961 haven't read anything.
5963 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5965 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5966 and val_print_scalar_formatted.
5968 2011-01-27 Pedro Alves <pedro@codesourcery.com>
5970 * tracepoint.c (tfile_read): New.
5971 (tfile_open): Use it.
5972 (tfile_get_traceframe_address): Use it.
5973 (tfile_trace_find): Use it.
5974 (walk_blocks_callback_func): New typedef.
5975 (match_blocktype): New function.
5976 (traceframe_walk_blocks): New function.
5977 (traceframe_find_block_type): New function.
5978 (tfile_fetch_registers, tfile_xfer_partial)
5979 (tfile_get_trace_state_variable_value): Use
5980 traceframe_find_block_type and tfile_read.
5982 2011-01-26 Kevin Buettner <kevinb@redhat.com>
5984 * remote-mips.c: Add internationalization mark ups. Remove
5985 trailing \n from already marked up strings.
5987 2011-01-26 Tom Tromey <tromey@redhat.com>
5989 * python/py-prettyprint.c (print_string_repr): Clear
5990 'addressprint' option when calling val_print_string.
5991 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5992 option when calling val_print_string.
5994 2011-01-26 Tom Tromey <tromey@redhat.com>
5996 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5998 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6000 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6001 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6002 (gdb_py_long_as_ulongest): New defines.
6003 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6004 (gdb_py_int_as_long): Declare.
6005 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6006 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6007 (valpy_long): Add comment.
6008 * python/py-utils.c (get_addr_from_python): Use
6009 gdb_py_long_as_ulongest. Handle overflow properly.
6010 (gdb_py_object_from_longest): New function.
6011 (gdb_py_object_from_ulongest): Likewise.
6012 (gdb_py_int_as_long): Likewise.
6013 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6014 * python/py-symtab.c (salpy_get_pc): Use
6015 gdb_py_long_from_ulongest.
6016 (salpy_get_line): Use PyInt_FromLong.
6017 * python/py-param.c (set_parameter_value): Use
6019 * python/py-lazy-string.c (stpy_get_address): Use
6020 gdb_py_long_from_ulongest.
6021 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6022 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6023 * python/py-breakpoint.c (bppy_set_thread): Use
6025 (bppy_set_task): Likewise.
6026 (bppy_set_ignore_count): Likewise.
6027 (bppy_set_hit_count): Likewise.
6028 * python/py-block.c (blpy_get_start): Use
6029 gdb_py_object_from_ulongest.
6030 (blpy_get_end): Likewise.
6031 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6033 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6036 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6037 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6038 equality test for objfile, initialize addr_low if needed.
6040 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6042 * tui/tui-regs.c (tui_register_format): Remove dead code.
6044 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6046 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6047 instead of print_scalar_formatted.
6048 (print_scalar_formatted): Don't handle 's' format strings here,
6049 and add an assertion that we never see such format here.
6050 * valprint.h (val_print_scalar_formatted): Declare.
6051 * valprint.c (val_print_scalar_formatted): New.
6052 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6053 instead of print_scalar_formatted.
6054 * jv-valprint.c (java_val_print): Ditto.
6055 * p-valprint.c (pascal_val_print): Ditto.
6056 * ada-valprint.c (ada_val_print_1): Ditto.
6057 * f-valprint.c (f_val_print): Ditto.
6058 * infcmd.c (registers_info): Ditto.
6059 * m2-valprint.c (m2_val_print): Ditto.
6061 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6063 * m2-valprint.c (print_unbounded_array): Pass
6064 value_contents_for_printing rather than value_contents, to
6065 m2_print_array_contents. Also pass in the value.
6067 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6069 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6070 (save_gdb_index_command): Switch to .gdb_index version 4.
6072 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6074 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6075 than frame_register, and always pass a valid value to val_print.
6077 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6079 Centralize printing "<optimized out>".
6081 * valprint.h (val_print_optimized_out): Declare.
6082 * cp-valprint.c (cp_print_value_fields): Use
6083 val_print_optimized_out.
6084 * jv-valprint.c (java_print_value_fields): Ditto.
6085 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6086 * printcmd.c (print_formatted): Ditto.
6087 * valprint.c (valprint_check_validity): Ditto.
6088 (value_check_printable): Ditto.
6089 (val_print_optimized_out): New.
6091 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6093 * infcmd.c (default_print_registers_info): Allocate values so to
6094 never pass a NULL value to val_print.
6096 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6098 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6099 boolean. Make sure to always pass a value that matches the
6100 contents buffer to callees. Preserve `address' for following
6102 * value.c (value_contents_for_printing_const): New.
6103 (value_address): Constify value argument.
6104 * value.h (value_contents_for_printing_const): Declare.
6105 (value_address): Constify value argument.
6107 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6109 * regcache.c (struct regcache_descr): Rename
6110 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6111 and sizeof_cooked_register_valid_p to
6112 sizeof_cooked_register_status.
6113 (init_regcache_descr): Adjust.
6114 (struct regcache): Rename register_valid_p field to
6116 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6117 (do_cooked_read): Adjust.
6118 (regcache_valid_p): Rename to ...
6119 (regcache_register_status): ... this. Adjust.
6120 (regcache_invalidate): Adjust.
6121 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6123 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6124 as unavailable, not valid.
6125 (regcache_dump): Adjust.
6126 * regcache.h (enum register_status): New.
6127 (regcache_register_status): Declare.
6128 (regcache_invalidate): Delete declaration.
6129 * corelow.c (get_core_registers): Adjust.
6130 * tracepoint.c (tfile_fetch_registers): Adjust.
6131 * trad-frame.c (REG_VALUE): Rename to ...
6132 (TF_REG_VALUE): ... this.
6133 (REG_UNKNOWN): Rename to ...
6134 (TF_REG_UNKNOWN): ... this.
6135 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6136 * mi/mi-main.c (register_changed_p): Adjust.
6138 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6140 * regcache.c (struct regcache_descr): Remove outdated comment.
6141 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6143 (regcache_xmalloc): Rename to ...
6144 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6145 Allocate the regcache type accordingly.
6146 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6147 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6148 cooked registers, not raw.
6149 (regcache_dup_no_passthrough): Delete.
6150 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6151 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6152 mention obsolete write_register_bytes.
6153 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6155 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6157 Stop remote_read_bytes from handling partial reads itself.
6159 * remote-fileio.c: Include target.h.
6160 (remote_fileio_write_bytes): Delete.
6161 (remote_fileio_func_open, remote_fileio_func_write)
6162 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6164 (remote_fileio_func_stat): Use target_read_memory and
6165 target_write_memory.
6166 (remote_fileio_func_gettimeofday): Use target_write_memory.
6167 (remote_fileio_func_system): Use target_read_memory.
6168 * remote.c (remote_write_bytes): Make it static.
6169 (remote_read_bytes): Don't handle partial reads here.
6170 * remote.h (remote_read_bytes): Delete declaration.
6172 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6174 Simplify XML parsing a bit.
6176 * xml-support.h (gdb_xml_parse_quick): Declare.
6177 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6178 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6180 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6181 gdb_xml_create_parser_and_cleanup_1.
6182 (gdb_xml_parse_quick): New.
6183 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6184 * osdata.c (osdata_parse): Ditto.
6185 * remote.c (remote_threads_info): Ditto.
6186 * solib-target.c (solib_target_parse_libraries): Ditto.
6187 * xml-syscall.c (syscall_parse_xml): Ditto.
6188 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6190 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6192 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6193 with remote-mips.o added to gdb_target_obs.
6194 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6196 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6198 * ada-valprint.c (val_print_packed_array_elements): Pass the
6199 correct struct value to val_print.
6200 (ada_val_print_1): Ditto.
6202 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6204 Don't lose embedded_offset in printing routines throughout.
6206 * valprint.h (val_print_array_elements): Change prototype.
6207 * valprint.c (val_print_array_elements): Add `embedded_offset'
6208 parameter, and adjust to pass it down to val_print, while passing
6209 `valaddr' or `address' unmodified. Take embedded_offset into
6210 account when checking repetitions.
6211 * c-valprint.c (c_val_print): Pass embedded_offset to
6212 val_print_array_elements instead of adjusting `valaddr' and
6214 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6215 embedded_offset to val_print_array_elements instead of adjusting
6217 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6218 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6219 val_print_array_elements and pascal_object_print_value_fields
6220 instead of adjusting `valaddr'.
6221 (pascal_object_print_value_fields): Add `offset' parameter, and
6223 (pascal_object_print_value): Add `offset' parameter, and adjust to
6225 (pascal_object_print_static_field): Use
6226 value_contents_for_printing/value_embedded_offset, rather than
6228 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6229 parameter, and adjust to use it. Use
6230 value_contents_for_printing/value_embedded_offset, rather than
6232 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6233 (ada_val_print_array): Add `offset' parameter, and adjust to use
6235 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6236 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6237 Instead work with offsets. Use
6238 value_contents_for_printing/value_embedded_offset, rather than
6239 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6240 and use value_from_pointer to extract a target pointer, rather
6241 than value_from_longest.
6242 (print_variant_part): Add `offset' parameter. Replace
6243 `outer_valaddr' parameter by a new `outer_offset' parameter.
6244 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6245 (ada_value_print): Use
6246 value_contents_for_printing/value_embedded_offset, rather than
6248 (print_record): Add `offset' parameter, and adjust to pass it
6250 (print_field_values): Add `offset' parameter. Replace
6251 `outer_valaddr' parameter by a new `outer_offset' parameter.
6252 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6253 Use value_contents_for_printing/value_embedded_offset, rather than
6255 * d-valprint.c (dynamic_array_type): Use
6256 value_contents_for_printing/value_embedded_offset, rather than
6258 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6259 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6260 (java_print_value_fields): Take `offset' into account. Don't
6261 re-adjust `valaddr'. Instead pass down adjusted offsets.
6262 (java_val_print): Take `embedded_offset' into account. Pass it to
6263 java_print_value_fields.
6264 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6265 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6266 down adjusted offsets.
6267 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6268 (f_val_print): Take `embedded_offset' into account.
6270 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6272 * inflow.c: Include "gdbcmd.h".
6273 (interactive_mode): New static global, moved here from top.c.
6274 (show_interactive_mode): New function, moved here from top.c.
6275 use gdb_has_a_terminal instead of input_from_terminal_p to
6276 determine the current mode.
6277 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6279 (_initialize_inflow): Add the "set/show interactive-mode"
6280 commands. Moved here from top.c, after having adjusted slightly
6282 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6284 (input_from_terminal_p): Remove handling of "interactive-mode"
6285 setting, moved to infow.c.
6286 (init_main): Remove creation of the "set/show interactive-mode"
6287 commands, moved to inflow.c.
6289 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6291 * NEWS: Add entry for native ia64-hpux support.
6293 2011-01-19 Tom Tromey <tromey@redhat.com>
6296 * thread.c (free_thread): Free 'name'.
6297 (print_thread_info): Emit thread name. Change CLI output.
6298 (thread_name_command): New function.
6299 (do_captured_thread_select): Emit newline.
6300 (_initialize_thread): Register 'thread name' command.
6301 * target.h (struct target_ops) <to_thread_name>: New field.
6302 (target_thread_name): New macro.
6303 * target.c (update_current_target): Handle to_thread_name.
6304 * python/py-infthread.c (thpy_get_name): New function.
6305 (thpy_set_name): Likewise.
6306 (thread_object_getset): Add "name".
6307 * linux-nat.c (linux_nat_thread_name): New function.
6308 (linux_nat_add_target): Set to_thread_name.
6309 * gdbthread.h (struct thread_info) <name>: New field.
6311 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6313 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6314 (ada_val_print_1): Likewise.
6316 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6318 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6319 upper limit address is not greater than the function end address
6320 when the upper limit could not be computed using the debugging
6323 2011-01-17 Tom Tromey <tromey@redhat.com>
6325 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6327 * utils.c: Include gdb_regex.h.
6328 (do_regfree_cleanup): New function.
6329 (make_regfree_cleanup): Likewise.
6330 (get_regcomp_error): Likewise.
6331 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6333 2011-01-17 Tom Tromey <tromey@redhat.com>
6335 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6338 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6340 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6341 for internal variables.
6342 (last_was_structop): New static variable.
6343 (COMPLETE): New token.
6344 (field_exp): New rule to group all '.' suffix handling.
6345 Add mark_struct_expression calls when approriate to be able
6346 to correctly find fields for completion.
6347 (yylex): Adapt to handle field completion and set INTVAR when
6350 2011-01-14 Yao Qi <yao@codesourcery.com>
6352 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6353 save_reggroup, restore_reggroup and all_reggroup.
6355 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6357 * ada-valprint. (ada_printchar): Use the correct type length
6358 in call to ada_emit_char.
6359 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6361 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6363 * solib-som.h (hpux_major_release): Declare variable here.
6364 * solib-som.c: Remove <sys/utsname.h> header.
6365 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6366 (hpux_major_release): Make global, change default value to
6367 DEFAULT_HPUX_MAJOR_RELEASE.
6368 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6369 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6370 Add "solib-som.h" header.
6371 (set_hpux_major_release): New function.
6372 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6374 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6376 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6378 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6380 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6381 new-line at end of warning message.
6382 (ia64_hpux_store_register): Remove trailing new-line at end of
6384 * ia64-hpux-tdep.c: Rephrase comment.
6385 * solib-ia64-hpux.c (struct dld_info): Change type of field
6386 dld_flags from "long long" to ULONGEST.
6388 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6390 * target.h (deprecated_child_ops): Delete declaration.
6391 * target.c (deprecated_child_ops): Delete definition.
6393 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6395 * Makefile.in (hpux-thread.o): Delete rule.
6396 * configure.ac: Don't check for HPUX DCE threads support.
6397 * configure, config.in: Regenerate.
6398 * hppa-hpux-nat.c (child_suppress_run): Delete.
6399 (hppa_hpux_child_can_run): Delete.
6400 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6401 * hpux-thread.c: Delete.
6403 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6405 * hpux-thread.c (hpux_pid_to_str): Delete.
6407 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6409 * ada-valprint.c (ada_emit_char): Remove strange code.
6410 Check that c is <= UCHAR_MAX before passing it to isascii.
6411 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6413 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6415 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6416 to the case where instream is stdin.
6418 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6420 * ia64-tdep.h (struct regcache): Forward declare.
6421 (struct ia64_infcall_ops): New struct type.
6422 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6424 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6425 Renames ia64_find_global_pointer.
6426 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6427 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6428 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6430 (ia64_infcall_ops): New static global constant.
6431 (ia64_gdbarch_init): Set tdep->infcall_ops.
6432 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6433 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6434 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6435 (ia64_hpux_dummy_code): New static global constant.
6436 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6437 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6438 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6440 (ia64_hpux_infcall_ops): New static global constant.
6441 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6442 for inferior function calls to work properly on ia64-hpux.
6444 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6446 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6447 * ia64-tdep.h (struct frame_info): forward declaration.
6448 (struct gdbarch_tdep): Add field size_of_register_frame.
6449 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6450 to determine the size of the register frame.
6451 (ia64_size_of_register_frame): New function.
6452 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6453 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6454 (IA64_HPUX_UREG_REASON): New macro.
6455 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6457 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6458 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6459 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6462 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6464 Add support for ia64-hpux.
6465 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6466 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6468 * configure.host: Add handling for ia64-hpux hosts. Add associated
6470 * configure.tgt: Add handling for ia64-hpux targets.
6471 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6472 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6473 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6475 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6477 [ttrace] Compute thread list immediately after attach.
6478 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6480 (inf_ttrace_attach): Use it.
6482 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6484 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6485 if we could not determine the frame's function address. Instead,
6486 use the frame's PC, and then continue.
6488 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6490 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6491 not already defined.
6493 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6495 * ia64-tdep.c (ia64_struct_type_p): New function.
6496 (ia64_extract_return_value): Handle integral values that are
6497 less than 8 bytes long.
6498 (ia64_push_dummy_call): Likewise.
6500 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6502 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6503 floatformat_ia64_ext.
6504 (floatformat_ia64_ext_big): New static const.
6505 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6507 2011-01-12 Tom Tromey <tromey@redhat.com>
6509 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6511 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6512 (mi_cmd_thread_list_ids): Likewise.
6513 (mi_cmd_data_list_changed_registers): Likewise.
6514 (mi_cmd_data_list_register_values): Likewise.
6515 (mi_cmd_data_write_register_values): Likewise.
6516 (mi_cmd_data_evaluate_expression): Likewise.
6517 (mi_cmd_data_read_memory): Likewise.
6518 (mi_cmd_data_read_memory_bytes): Likewise.
6519 (mi_cmd_data_write_memory): Likewise.
6520 (mi_cmd_enable_timings): Likewise.
6521 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6522 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6523 (mi_cmd_var_delete): Likewise.
6524 (mi_cmd_var_set_format): Likewise.
6525 (mi_cmd_var_show_format): Likewise.
6526 (mi_cmd_var_info_num_children): Likewise.
6527 (mi_cmd_var_list_children): Likewise.
6528 (mi_cmd_var_info_type): Likewise.
6529 (mi_cmd_var_info_expression): Likewise.
6530 (mi_cmd_var_show_attributes): Likewise.
6531 (mi_cmd_var_assign): Likewise.
6532 (mi_cmd_var_update): Likewise.
6533 (mi_cmd_enable_pretty_printing): Likewise.
6534 (mi_cmd_var_set_update_range): Likewise.
6535 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6537 (mi_cmd_target_file_put): Likewise.
6538 (mi_cmd_target_file_delete): Likewise.
6539 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6541 (mi_cmd_stack_info_depth): Likewise.
6542 (mi_cmd_stack_list_locals): Likewise.
6543 (mi_cmd_stack_list_args): Likewise.
6544 (mi_cmd_stack_select_frame): Likewise.
6545 (mi_cmd_stack_select_frame): Likewise.
6546 (mi_cmd_stack_info_frame): Likewise.
6547 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6549 (mi_cmd_file_list_exec_source_files): Likewise.
6550 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6551 (mi_cmd_env_cd): Likewise.
6552 (mi_cmd_env_path): Likewise.
6553 (mi_cmd_env_dir): Likewise.
6554 (mi_cmd_inferior_tty_show): Likewise.
6555 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6556 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6557 (mi_cmd_break_watch): Likewise.
6559 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6561 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6562 (ppc_linux_insert_hw_breakpoint): Likewise.
6563 (ppc_linux_remove_hw_breakpoint): Likewise.
6564 (ppc_linux_insert_watchpoint): Likewise.
6566 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6567 Jan Kratochvil <jan.kratochvil@redhat.com>
6569 PR fortran/11104 and DWARF unbound arrays detection.
6570 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6571 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6572 unspecified upper bound.
6573 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6574 variables array_size_array, tmp_type and offset_item. New variable
6575 array. Remove call to f77_get_upperbound. New variables array_type
6576 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6577 the final call to deprecated_set_value_type.
6579 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6581 Make value allocations more lazy.
6582 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6583 instead of allocate_value and set_value_lazy when possible.
6584 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6585 instead of allocate_value and set_value_lazy.
6586 * findvar.c (value_of_register_lazy): Likewise.
6587 (read_var_value): Remove V preallocation, call just check_typedef in
6588 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6589 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6590 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6591 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6592 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6593 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6594 the end, remove set_value_lazy there.
6595 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6596 instead of allocate_value and set_value_lazy when possible.
6597 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6598 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6599 of allocate_value and set_value_lazy.
6600 (value_from_contents_and_address): Use allocate_value_lazy instead of
6601 allocate_value and set_value_lazy when possible.
6603 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6605 * disasm.c (dump_insns): Support dumping opcodes for MI.
6606 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6607 dumping of instruction opcodes.
6609 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6611 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6614 2011-01-11 Tom Tromey <tromey@redhat.com>
6616 * thread.c (do_captured_thread_select): Emit newline before
6619 2011-01-11 Michael Snyder <msnyder@vmware.com>
6621 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6622 * score-tdep.c: Ditto.
6623 * score-tdep.h: Ditto.
6624 * ser-base.c: Ditto.
6625 * ser-go32.c: Ditto.
6628 * ser-mingw.c: Ditto.
6629 * ser-pipe.c: Ditto.
6631 * ser-unix.c: Ditto.
6632 * sh64-tdep.c: Ditto.
6633 * shnbsd-nat.c: Ditto.
6637 * solib-darwin.c: Ditto.
6638 * solib-frv.c: Ditto.
6640 * solib-irix.c: Ditto.
6641 * solib-osf.c: Ditto.
6642 * solib-pa64.c: Ditto.
6643 * solib-som.c: Ditto.
6644 * solib-spu.c: Ditto.
6645 * solib-sunos.c: Ditto.
6646 * solib-svr4.c: Ditto.
6648 * sol-thread.c: Ditto.
6652 * sparc64-linux-tdep.c: Ditto.
6653 * sparc64-tdep.c: Ditto.
6654 * sparc-linux-nat.c: Ditto.
6655 * sparc-linux-tdep.c: Ditto.
6656 * sparc-sol2-nat.c: Ditto.
6657 * sparc-sol2-tdep.c: Ditto.
6658 * sparc-tdep.c: Ditto.
6659 * sparc-tdep.h: Ditto.
6660 * spu-tdep.c: Ditto.
6661 * stabsread.c: Ditto.
6662 * stabsread.h: Ditto.
6670 * target-descriptions.c: Ditto.
6671 * target-descriptions.h: Ditto.
6673 * target-memory.c: Ditto.
6674 * terminal.h: Ditto.
6677 * tracepoint.c: Ditto.
6678 * tracepoint.h: Ditto.
6679 * trad-frame.h: Ditto.
6680 * typeprint.c: Ditto.
6682 2011-01-11 Michael Snyder <msnyder@vmware.com>
6684 * ui-file.c: Comment cleanup, mostly periods and spaces.
6689 * v850-tdep.c: Ditto.
6690 * valarith.c: Ditto.
6692 * valprint.c: Ditto.
6693 * valprint.h: Ditto.
6698 * vax-tdep.c: Ditto.
6702 * windows-nat.c: Ditto.
6703 * windows-tdep.c: Ditto.
6704 * xcoffread.c: Ditto.
6705 * xcoffsolib.c: Ditto.
6706 * xml-support.c: Ditto.
6707 * xstormy16-tdep.c: Ditto.
6708 * xtensa-tdep.c: Ditto.
6709 * xtensa-tdep.h: Ditto.
6711 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6713 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6714 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6716 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6717 Thiago Jung Bauermann <bauerman@br.ibm.com>
6719 Implement support for PowerPC BookE ranged watchpoints.
6721 (struct breakpoint_ops) <resources_needed>: New method.
6722 Initialize to NULL in all existing breakpoint_ops instances.
6723 (struct breakpoint) <exact>: New field.
6724 (target_exact_watchpoints): Declare external global.
6725 * breakpoint.c (target_exact_watchpoints): New global flag.
6726 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6727 b->enable_state to bp_enabled before calling
6728 hw_watchpoint_used_count.
6729 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6730 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6732 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6733 if the watchpoint is exact.
6734 (resources_needed_watchpoint): New function.
6735 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6736 (watch_command_1): Set b->exact if the user asked for an exact
6737 watchpoint and one can be set.
6738 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6739 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6740 the user asks for an exact watchpoint and one can be set. Return
6741 number of needed debug registers to watch the expression.
6742 * gdbtypes.c (is_scalar_type): New function, based on
6743 valprint.c:scalar_type_p.
6744 (is_scalar_type_recursive): New function.
6745 * gdbtypes.h (is_scalar_type_recursive): Declare.
6746 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6747 handle regions when ranged watchpoints are available.
6748 (create_watchpoint_request): New function.
6749 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6750 create_watchpoint_request.
6751 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6752 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6753 `set powerpc' and `show powerpc' commands.
6754 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6755 Mention documentation comment in the target macro.
6756 (target_region_ok_for_hw_watchpoint): Document return value.
6758 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6760 * breakpoint.c (update_watchpoint): Decide on using a software or
6761 hardware watchpoint after the bp_locations are created.
6763 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6765 Convert hardware watchpoints to use breakpoint_ops.
6766 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6767 <insert_location>: ... this. Return int instead of void.
6768 Accept pointer to struct bp_location instead of pointer to
6769 struct breakpoint. Adapt all implementations.
6770 (breakpoint_ops) <remove>: Rename to...
6771 <remove_location>: ... this. Accept pointer to struct bp_location
6772 instead of pointer to struct breakpoint. Adapt all implementations.
6773 * breakpoint.c (insert_catchpoint): Delete function.
6774 (insert_bp_location): Call the watchpoint or catchpoint's
6775 breakpoint_ops.insert method.
6776 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6777 breakpoint_ops.remove method.
6778 (insert_watchpoint, remove_watchpoint): New functions.
6779 (watchpoint_breakpoint_ops): New structure.
6780 (watch_command_1): Initialize the OPS field.
6781 * inf-child.c (inf_child_insert_fork_catchpoint)
6782 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6783 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6784 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6786 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6787 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6788 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6789 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6790 * target.c (update_current_target): Change default implementation of
6791 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6792 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6793 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6794 to_set_syscall_catchpoint to return_one.
6795 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6796 (debug_to_insert_exec_catchpoint): Report return value.
6797 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6798 (to_insert_exec_catchpoint): Change declaration to return int instead
6801 2011-01-11 Michael Snyder <msnyder@vmware.com>
6803 * arm-tdep.c: Internationalization.
6806 * fork-child.c: Ditto.
6807 * nto-procfs.c: Ditto.
6808 * ppc-sysv-tdep.c: Ditto.
6810 * remote-mips.c: Ditto.
6812 * rs6000-nat.c: Ditto.
6813 * rs6000-tdep.c: Ditto.
6817 * xml-support.c: Ditto.
6818 * mi/mi-cmd-break.c: Ditto.
6819 * mi/mi-cmd-var.c: Ditto.
6820 * mi/mi-interp.c: Ditto.
6821 * mi/mi-main.c: Ditto.
6823 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6825 * remote-sim.c (gdbsim_store_register): Update API to
6826 sim_store_register to check more error conditions.
6828 2011-01-10 Michael Snyder <msnyder@vmware.com>
6830 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6831 * nto-tdep.c: Ditto.
6832 * nto-tdep.h: Ditto.
6833 * objc-exp.y: Ditto.
6834 * objc-lang.c: Ditto.
6835 * objfiles.c: Ditto.
6836 * objfiles.h: Ditto.
6837 * observer.c: Ditto.
6838 * opencl-lang.c: Ditto.
6841 * parser-defs.h: Ditto.
6844 * posix-hdep.c: Ditto.
6845 * ppcbug-rom.c: Ditto.
6846 * ppc-linux-nat.c: Ditto.
6847 * ppc-linux-tdep.c: Ditto.
6848 * ppc-linux-tdep.h: Ditto.
6849 * ppcnbsd-tdep.c: Ditto.
6850 * ppcobsd-tdep.c: Ditto.
6851 * ppcobsd-tdep.h: Ditto.
6852 * ppc-sysv-tdep.c: Ditto.
6853 * ppc-tdep.h: Ditto.
6854 * printcmd.c: Ditto.
6855 * proc-abi.c: Ditto.
6856 * proc-flags.c: Ditto.
6858 * proc-utils.h: Ditto.
6859 * progspace.h: Ditto.
6860 * prologue-value.c: Ditto.
6861 * prologue-value.h: Ditto.
6862 * psympriv.h: Ditto.
6864 * p-typeprint.c: Ditto.
6865 * p-valprint.c: Ditto.
6866 * ravenscar-sparc-thread.c: Ditto.
6867 * ravenscar-thread.c: Ditto.
6868 * ravenscar-thread.h: Ditto.
6870 * regcache.c: Ditto.
6871 * regcache.h: Ditto.
6873 * remote-fileio.c: Ditto.
6874 * remote-fileio.h: Ditto.
6876 * remote-m32r-sdi.c: Ditto.
6877 * remote-mips.c: Ditto.
6878 * remote-sim.c: Ditto.
6879 * rs6000-aix-tdep.c: Ditto.
6880 * rs6000-nat.c: Ditto.
6881 * rs6000-tdep.c: Ditto.
6883 2011-01-10 Michael Snyder <msnyder@vmware.com>
6885 * charset.c (validate): Internationalization.
6886 * coffread.c (read_one_sym): Ditto.
6887 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6888 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6889 * inflow.c (new_tty): Ditto.
6890 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6891 * m32c-tdep.c (m32c_return_value): Ditto.
6892 * mep-tdep.c (mep_store_return_value): Ditto.
6893 * score-tdep.c (score7_fetch_insn): Ditto.
6894 * ser-mingw.c (pipe_windows_open): Ditto.
6895 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6896 * spu-tdep.c (spu_register_type): Ditto.
6897 * tracepoint.c (trace_find_command): Ditto.
6898 * valarith.c (value_pos): Ditto.
6900 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6902 * ada-valprint.c (printstr): Minor comment reformatting.
6904 2011-01-08 Michael Snyder <msnyder@vmware.com>
6906 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6909 2011-01-08 Michael Snyder <msnyder@vmware.com>
6911 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6912 * hppa-hpux-tdep.c: Ditto.
6913 * hppa-linux-nat.c: Ditto.
6914 * hppa-linux-tdep.c: Ditto.
6915 * hppanbsd-tdep.c: Ditto.
6916 * hppa-tdep.c: Ditto.
6917 * hppa-tdep.h: Ditto.
6918 * hpux-thread.c: Ditto.
6919 * i386-cygwin-tdep.c: Ditto.
6920 * i386-darwin-nat.c: Ditto.
6921 * i386gnu-nat.c: Ditto.
6922 * i386-linux-nat.c: Ditto.
6923 * i386-linux-tdep.c: Ditto.
6924 * i386-nat.c: Ditto.
6925 * i386-nat.h: Ditto.
6926 * i386nbsd-tdep.c: Ditto.
6927 * i386-sol2-nat.c: Ditto.
6928 * i386-stub.c: Ditto.
6929 * i386-tdep.c: Ditto.
6930 * i386-tdep.h: Ditto.
6931 * i387-tdep.c: Ditto.
6932 * ia64-linux-nat.c: Ditto.
6933 * ia64-linux-tdep.c: Ditto.
6934 * ia64-tdep.c: Ditto.
6938 * inferior.c: Ditto.
6939 * inferior.h: Ditto.
6945 * iq2000-tdep.c: Ditto.
6946 * irix5-nat.c: Ditto.
6952 * jv-typeprint.c: Ditto.
6953 * jv-valprint.c: Ditto.
6954 * language.c: Ditto.
6955 * language.h: Ditto.
6956 * linespec.c: Ditto.
6957 * linux-fork.c: Ditto.
6958 * linux-nat.c: Ditto.
6959 * linux-thread-db.c: Ditto.
6960 * lm32-tdep.c: Ditto.
6962 2011-01-08 Michael Snyder <msnyder@vmware.com>
6964 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6966 * m2-typeprint.c: Ditto.
6967 * m2-valprint.c: Ditto.
6968 * m32c-tdep.c: Ditto.
6969 * m32r-linux-nat.c: Ditto.
6970 * m32r-rom.c: Ditto.
6971 * m32r-tdep.c: Ditto.
6972 * m32r-tdep.h: Ditto.
6973 * m68hc11-tdep.c: Ditto.
6974 * m58klinux-nat.c: Ditto.
6975 * m68k-tdep.c: Ditto.
6976 * m88k-tdep.c: Ditto.
6977 * m88k-tdep.h: Ditto.
6978 * machoread.c: Ditto.
6979 * macrocmd.c: Ditto.
6980 * macroexp.c: Ditto.
6981 * macrotab.c: Ditto.
6984 * mdebugread.c: Ditto.
6985 * mdebugread.h: Ditto.
6988 * memory-map.h: Ditto.
6989 * mep-tdep.c: Ditto.
6990 * microblaze-rom.c: Ditto.
6991 * microblaze-tdep.c: Ditto.
6993 * mips-irix-tdep.c: Ditto.
6994 * mips-linux-nat.c: Ditto.
6995 * mips-linux-tdep.c: Ditto.
6996 * mips-linux-tdep.h: Ditto.
6997 * mipsnbsd-nat.c: Ditto.
6998 * mipsnbsd-tdep.c: Ditto.
6999 * mipsread.c: Ditto.
7000 * mips-tdep.c: Ditto.
7001 * mips-tdep.h: Ditto.
7002 * mn10300-linux-tdep.c: Ditto.
7003 * mn10300-tdep.c: Ditto.
7004 * mn10300-tdep.h: Ditto.
7007 * moxie-tdep.c: Ditto.
7008 * moxie-tdep.h: Ditto.
7011 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7013 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7015 2011-01-08 Robert Millan <rmh@gnu.org>
7017 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7019 2011-01-07 Michael Snyder <msnyder@vmware.com>
7021 * charset.c (_initialize_charset): Fix typo in string.
7023 2011-01-07 Michael Snyder <msnyder@vmware.com>
7025 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7027 * tui/tui-layout.c (tui_set_layout_for_display_command):
7028 Split line so that operator goes to beginning of line.
7029 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7030 assignment out of if statement.
7032 2011-01-07 Michael Snyder <msnyder@vmware.com>
7034 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7035 * ada-lang.h: Ditto.
7036 * ada-tasks.c: Ditto.
7037 * ada-valprint.c: Ditto.
7038 * aix-threads.c: Ditto.
7039 * alpha-linux-nat.c: Ditto.
7040 * alpha-linux-tdep.c: Ditto.
7041 * alpha-mdebug-tdep.c: Ditto.
7042 * alpha-nat.c: Ditto.
7043 * alpha-osf1-tdep.c: Ditto.
7044 * alpha-tdep.c: Ditto.
7045 * alphabsd-nat.c: Ditto.
7046 * alphabsd-tdep.c: Ditto.
7047 * amd64-darwin-tdep.c: Ditto.
7048 * amd64-linux-nat.c: Ditto.
7049 * amd64-linux-tdep.c: Ditto.
7050 * amd64-sol2-tdep.c: Ditto.
7051 * amd64-tdep.c: Ditto.
7052 * amd64-fbsd-tdep.c: Ditto.
7053 * amd64-nbsd-tdep.c: Ditto.
7054 * amd64-obsd-tdep.c: Ditto.
7055 * amd64-linux-nat.c: Ditto.
7056 * amd64-linux-tdep.c: Ditto.
7057 * arm-tdep.c: Ditto.
7058 * arm-tdep.h: Ditto.
7059 * armnbsd-nat.c: Ditto.
7060 * avr-tdep.c: Ditto.
7061 * bfin-tdep.c: Ditto.
7063 * c-typeprintc: Ditto.
7064 * c-valprint.c: Ditto.
7065 * coff-pe-read.h: Ditto.
7066 * coffreead.c: Ditto.
7067 * cris-tdep.c: Ditto.
7069 * darwin-nat-info.c: Ditto.
7070 * darwin-nat.c: Ditto.
7071 * dbug-rom.c: Ditto.
7075 * dec-thread.c: Ditto.
7077 * demangle.c: Ditto.
7078 * dicos-tdep.c: Ditto.
7079 * dictionary.c: Ditto.
7080 * dictionary.h: Ditto.
7081 * dink32-rom.c: Ditto.
7083 * doublest.c: Ditto.
7085 * dummy-frame.c: Ditto.
7086 * dwarf2-frame.c: Ditto.
7087 * dwarf2expr.c: Ditto.
7088 * dwarf2loc.c: Ditto.
7089 * dwarf2read.c: Ditto.
7093 * event-top.h: Ditto.
7094 * exceptions.c: Ditto.
7095 * exceptions.h: Ditto.
7097 * expprint.c: Ditto.
7098 * expression.h: Ditto.
7102 * f-typeprint.c: Ditto.
7103 * f-valprint.c: Ditto.
7104 * fbsd-nat.c: Ditto.
7106 * fork-child.c: Ditto.
7109 * frv-linux-tdep.c: Ditto.
7110 * frv-tdep.c: Ditto.
7112 * gdb-stabs.h: Ditto.
7113 * gdb_assert.h: Ditto.
7114 * gdb_string.h: Ditto.
7115 * gdb_thread_db.h: Ditto.
7116 * gdb_wait.h: Ditto.
7117 * gdbarch.sh: Ditto.
7119 * gdbthread.h: Ditto.
7120 * gdbtypes.c: Ditto.
7121 * gdbtypes.h: Ditto.
7124 * gnu-v2-abi.c: Ditto.
7125 * gnu-v3-abi.c: Ditto.
7126 * go32-nat.c: Ditto.
7127 * gdbarch.c: Regenerate.
7128 * gdbarch.h: Regenerate.
7130 2011-01-07 Michael Snyder <msnyder@vmware.com>
7132 * ax-gdb.c: Adjust some long output strings.
7133 * breakpoint.c: Ditto.
7138 * linux-nat.c: Ditto.
7139 * solib-pa64.c: Ditto.
7140 * solib-som.c: Ditto.
7142 2011-01-06 Tom Tromey <tromey@redhat.com>
7146 * python/python.c (GdbMethods): Add "newest_frame" method.
7147 * python/python-internal.h (gdbpy_newest_frame): Declare.
7148 * python/py-frame.c (gdbpy_newest_frame): New function.
7150 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7152 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7153 * jit.c (jit_debug): New variable.
7154 (show_jit_debug): New function.
7155 (struct target_buffer): Use ULONGEST.
7156 (bfd_open_from_target_memory): Likewise.
7157 (jit_register_code, jit_inferior_init): Add debug output.
7158 (_initialize_jit): Register "debug jit" command.
7160 2011-01-06 Tom Tromey <tromey@redhat.com>
7162 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7163 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7166 2011-01-06 Tom Tromey <tromey@redhat.com>
7168 * python/py-frame.c (frapy_block): Use get_frame_block.
7170 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7172 Do not stop on SIGPRIO signals by default
7173 * infrun.c (_initialize_infrun): Unset signal_stop and
7174 signal_print for TARGET_SIGNAL_PRIO.
7176 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7178 * ada-tasks.c: Fix style violation in comment.
7180 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7182 * linespec.c (decode_compound, find_method): Remove trailing \n
7183 at end of error string.
7184 * solib-irix.c (irix_current_sos): Likewise.
7185 * varobj.c (uninstall_variable): Likewise.
7187 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7189 * copyright.py: New script.
7190 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7191 Launch emacs without exec'ing. Call copyright.py afterwards.
7193 2011-01-05 Michael Snyder <msnyder@vmware.com>
7195 * addrmap.c: Shorten lines of >= 80 columns.
7196 * arch-utils.c: Ditto.
7197 * arch-utils.h: Ditto.
7199 * ax-general.c: Ditto.
7201 * blockframe.c: Ditto.
7202 * breakpoint.c: Ditto.
7203 * buildsym.c: Ditto.
7205 * c-typeprint.c: Ditto.
7207 * coffread.c: Ditto.
7211 * cp-namespace.c: Ditto.
7212 * cp-support.c: Ditto.
7213 * dbug-rom.c: Ditto.
7218 * dictionary.c: Ditto.
7220 * doublest.c: Ditto.
7221 * dwarf2-frame.c: Ditto.
7222 * dwarf2expr.c: Ditto.
7223 * dwarf2loc.c: Ditto.
7224 * dwarf2read.c: Ditto.
7227 * event-loop.c: Ditto.
7228 * event-loop.h: Ditto.
7229 * exceptions.h: Ditto.
7231 * expprint.c: Ditto.
7232 * expression.h: Ditto.
7234 * f-valprint.c: Ditto.
7236 * frame-base.c: Ditto.
7237 * frame-unwind.c: Ditto.
7238 * frame-unwind.h: Ditto.
7242 * gdb-stabs.h: Ditto.
7243 * gdb_assert.h: Ditto.
7244 * gdb_dirent.h: Ditto.
7245 * gdb_obstack.h: Ditto.
7247 * gdbtypes.c: Ditto.
7248 * gdbtypes.h: Ditto.
7249 * inf-ttrace.c: Ditto.
7254 * inline-frame.h: Ditto.
7255 * language.c: Ditto.
7256 * language.h: Ditto.
7257 * libunwind-frame.c: Ditto.
7258 * libunwind-frame.h: Ditto.
7259 * linespec.c: Ditto.
7260 * linux-nat.c: Ditto.
7261 * linux-nat.h: Ditto.
7262 * linux-thread-db.c: Ditto.
7263 * machoread.c: Ditto.
7264 * macroexp.c: Ditto.
7265 * macrotab.c: Ditto.
7268 * mdebugread.c: Ditto.
7273 * objfiles.c: Ditto.
7274 * objfiles.h: Ditto.
7276 * p-typeprint.c: Ditto.
7277 * p-valprint.c: Ditto.
7279 * printcmd.c: Ditto.
7280 * proc-events.c: Ditto.
7282 * progspace.c: Ditto.
7283 * progspace.h: Ditto.
7284 * psympriv.h: Ditto.
7287 * regcache.c: Ditto.
7288 * regcache.h: Ditto.
7289 * remote-fileio.c: Ditto.
7291 * ser-mingw.c: Ditto.
7293 * ser-unix.c: Ditto.
7296 * solib-frv.c: Ditto.
7297 * solib-irix.c: Ditto.
7298 * solib-osf.c: Ditto.
7299 * solib-pa64.c: Ditto.
7300 * solib-som.c: Ditto.
7301 * solib-sunos.c: Ditto.
7302 * solib-svr4.c: Ditto.
7303 * solib-target.c: Ditto.
7307 * stabsread.c: Ditto.
7308 * stabsread.c: Ditto.
7311 * symfile-mem.c: Ditto.
7317 * target-descriptions.c: Ditto.
7318 * target-memory.c: Ditto.
7321 * terminal.h: Ditto.
7324 * tracepoint.c: Ditto.
7325 * tracepoint.h: Ditto.
7329 * user-regs.c: Ditto.
7330 * user-regs.h: Ditto.
7332 * valarith.c: Ditto.
7334 * valprint.c: Ditto.
7335 * valprint.h: Ditto.
7340 * xcoffread.c: Ditto.
7341 * xcoffsolib.c: Ditto.
7342 * xcoffsolib.h: Ditto.
7343 * xml-syscall.c: Ditto.
7344 * xml-tdesc.c: Ditto.
7346 2011-01-05 Michael Snyder <msnyder@vmware.com>
7348 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7349 * cli/cli-decode.c: Ditto.
7350 * cli/cli-dump.c: Ditto.
7351 * cli/cli-logging.c: Ditto.
7352 * cli/cli-script.c: Ditto.
7353 * cli/cli-setshow.c: Ditto.
7354 * common/signals.c: Ditto.
7355 * mi/mi-cmd-break.c: Ditto.
7356 * mi/mi-cmd-disas.c: Ditto.
7357 * mi/mi-cmd-stack.c: Ditto.
7358 * mi/mi-cmd-var.c: Ditto.
7359 * mi/mi-cmds.c: Ditto.
7360 * mi/mi-common.h: Ditto.
7361 * mi/mi-console.c: Ditto.
7362 * mi/mi-interp.c: Ditto.
7363 * mi/mi-main.c: Ditto.
7364 * osf-share/cma_attr.c: Ditto.
7365 * osf-share/cma_deb_core.h: Ditto.
7366 * osf-share/cma_debug_client.h: Ditto.
7367 * osf-share/cma_handle.h: Ditto.
7368 * osf-share/cma_mutex.h: Ditto.
7369 * osf-share/cma_stack_int.h: Ditto.
7370 * osf-share/cma_tcb_defs.h: Ditto.
7371 * python/py-auto-load.c: Ditto.
7372 * python/py-breakpoint.c: Ditto.
7373 * python/py-cmd.c: Ditto.
7374 * python/py-frame.c: Ditto.
7375 * python/py-objfile.c: Ditto.
7376 * python/py-param.c: Ditto.
7377 * python/py-progspace.c: Ditto.
7378 * python/py-symbol.c: Ditto.
7379 * python/py-value.c: Ditto.
7380 * python/python-internal.h: Ditto.
7381 * python/python.c: Ditto.
7382 * tui/tui-data.c: Ditto.
7383 * tui/tui-disasm.c: Ditto.
7384 * tui/tui-hooks.c: Ditto.
7385 * tui/tui-io.c: Ditto.
7386 * tui/tui-layout.c: Ditto.
7387 * tui/tui-regs.c: Ditto.
7388 * tui/tui-source.c: Ditto.
7389 * tui/tui-stack.c: Ditto.
7390 * tui/tui-win.c: Ditto.
7391 * tui/tui-windata.c: Ditto.
7392 * tui/tui-winsource.c: Ditto.
7394 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7396 * configure.ac, gdb.1: Copyright year update.
7398 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7400 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7401 this_pc_in_block, morestack_msym and morestack_name. Check for
7402 "__morestack" minimal symbol there.
7404 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7406 * symfile.c (find_sym_fns): Add call to dont_repeat.
7408 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7410 Copyright year update in most files (performed by copyright.sh).
7412 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7414 * top.c (print_gdb_version): Update copyright year in version output.
7416 For older changes see ChangeLog-2010.
7422 version-control: never