1 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3 * varobj.c (ada_value_has_mutated): Add declaration. New function.
4 (struct language_specific): New field "value_has_mutated".
5 (languages): Set field "value_has_mutated" in each entry of array.
6 (varobj_value_has_mutated): New function.
7 (varobj_udpdate): Add handling of type mutation.
8 (value_of_root): Add handling of type mutation.
9 (ada_value_has_mutated): New function.
11 2012-03-28 Pedro Alves <palves@redhat.com>
13 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
14 Always supply $fr0 as 0.0 and $fr1 as 1.0.
16 2012-03-28 Tom Tromey <tromey@redhat.com>
18 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
19 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
22 2012-03-28 Tom Tromey <tromey@redhat.com>
24 * .dir-locals.el: New file.
26 2012-03-28 Pedro Alves <palves@redhat.com>
28 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
30 2012-03-28 Joel Brobecker <brobecker@adacore.com>
32 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
35 2012-03-27 Pedro Alves <palves@redhat.com>
37 Eliminate struct ui_stream.
39 * ui-out.h (struct ui_stream): Delete.
40 (ui_out_field_stream): Adjust prototype.
41 (ui_out_stream_new, ui_out_stream_delete)
42 (make_cleanup_ui_out_stream_delete): Delete declarations.
43 * ui-out.c (ui_out_field_stream): Change prototype to take a
44 ui_file instead of a ui_stream. Adjust.
45 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
46 (make_cleanup_ui_out_stream_delete): Delete.
47 * breakpoint.c (print_breakpoint_location)
48 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
49 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
50 * disasm.c (dump_insns): Ditto.
51 (do_mixed_source_and_assembly, do_assembly_only): Adjust
53 (gdb_disassembly): Use ui_file/mem_fileopen instead of
54 ui_stream/ui_out_stream_new.
55 * infcmd.c (print_return_value): Ditto.
56 * osdata.c (info_osdata_command): Don't allocate a local
58 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
59 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
60 * tracepoint.c (print_one_static_tracepoint_marker): Don't
61 allocate a local ui_stream.
62 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
63 instead of ui_stream/ui_out_stream_new.
64 (list_args_or_locals): Don't allocate a local ui_stream.
65 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
66 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
67 ui_stream/ui_out_stream_new.
68 * cli/cli-setshow.c (do_setshow_command): Ditto.
70 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72 * arm-linux-tdep.c (arm_linux_init_abi): Call
73 set_gdbarch_process_record. Initialize `arm_swi_record' field.
74 * arm-tdep.c (arm_process_record): New function.
75 (deallocate_reg_mem): New function.
76 (decode_insn): New function.
77 (thumb_record_branch): New function.
78 (thumb_record_ldm_stm_swi(): New function.
79 (thumb_record_misc): New function.
80 (thumb_record_ld_st_stack): New function.
81 (thumb_record_ld_st_imm_offset): New function.
82 (thumb_record_ld_st_reg_offset(): New function.
83 (thumb_record_add_sub_cmp_mov): New function.
84 (thumb_record_shift_add_sub): New function.
85 (arm_record_coproc_data_proc): New function.
86 (arm_record_coproc): New function.
87 (arm_record_b_bl): New function.
88 (arm_record_ld_st_multiple): New function.
89 (arm_record_ld_st_reg_offset): New function.
90 (arm_record_ld_st_imm_offset): New function.
91 (arm_record_data_proc_imm): New function.
92 (arm_record_data_proc_misc_ld_str): New function.
93 (arm_record_extension_space): New function.
94 (arm_record_strx): New function.
95 (sbo_sbz): New function.
96 (struct insn_decode_record): New structure for arm insn record.
97 (REG_ALLOC): New macro for reg allocations.
98 (MEM_ALLOC): New macro for memory allocations.
99 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
101 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
103 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
104 (store_register): Likewise.
106 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
108 * MAINTAINERS (Write After Approval): Add myself to the list.
110 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
112 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
113 Describe also the option "auto".
115 2012-03-22 Richard Henderson <rth@redhat.com>
117 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
118 * sparc-nat.c (sparc_xfer_wcookie): Make static.
120 2012-03-22 Richard Henderson <rth@redhat.com>
122 * jit.c (jit_read_code_entry): Compute alignment and offset of
123 int64_t member before computing entry_size.
125 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
127 Python scripting: Add new method Value.referenced_value to
128 gdb.Value which can dereference pointer as well as reference
130 * NEWS: Add entry under 'Python scripting' about the new method
131 Value.referenced_value on gdb.Value objects.
132 * python/py-value.c (valpy_referenced_value): New function
133 defining a new method on gdb.Value objects which can dereference
134 pointer and reference values.
136 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
138 * MAINTAINERS (Write After Approval): Add myself to the list.
140 2012-03-21 Kevin Buettner <kevinb@redhat.com>
142 * symtab.c (skip_prologue_sal): Change test to check for "main()"
143 in addition to "main".
145 2012-03-21 Joel Brobecker <brobecker@adacore.com>
147 * expression.h (op_name): Add declaration.
148 * expprint.c (op_name): Remove declaration. Make non-static.
149 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
151 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
153 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
155 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
156 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
157 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
158 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
159 (linux_nat_get_siginfo): Likewise.
160 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
161 (linux_nat_get_siginfo): Likewise.
162 * linux-tdep.c (linux_get_siginfo_type): Likewise.
163 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
164 * procfs.c (gdb_siginfo_t): Likewise.
166 2012-03-21 Mike Frysinger <vapier@gentoo.org>
168 * .gitignore: Ignore more files.
170 2012-03-20 Pedro Alves <palves@redhat.com>
172 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
175 2012-03-20 Yao Qi <yao@codesourcery.com>
177 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
180 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
182 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
183 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
184 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
186 * dwarf2expr.h (cu_offset, sect_offset): New types.
187 (struct dwarf_expr_context_funcs) <dwarf_call>
188 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
190 (struct dwarf_expr_context) <len>: Improve the comment.
191 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
192 cu_offset and sect_offset.
193 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
194 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
195 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
196 * dwarf2loc.h: Include dwarf2expr.h.
197 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
199 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
201 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
202 (struct signatured_type, struct line_header, struct partial_die_info)
203 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
204 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
205 (get_die_type_at_offset, create_cus_from_index)
206 (create_signatured_type_table_from_index, dw2_get_file_names)
207 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
208 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
209 (create_debug_types_hash_table, process_psymtab_comp_unit)
210 (load_partial_comp_unit, create_all_comp_units)
211 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
212 (load_full_comp_unit, dwarf2_physname, read_import_statement)
213 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
214 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
215 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
216 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
217 (find_partial_die, read_attribute_value, lookup_die_type)
218 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
219 (is_ref_attr): New function comment.
220 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
221 Use cu_offset and sect_offset.
222 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
223 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
224 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
225 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
226 (offset_and_type_hash, offset_and_type_eq, set_die_type)
227 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
228 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
231 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
234 * python/py-auto-load.c (source_section_scripts): New variable back_to.
235 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
237 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
239 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
241 * NEWS: Describe new options --init-command=FILE, -ix and
242 --init-eval-command=COMMAND, -iex.
243 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
245 (captured_main): New enum items OPT_IX and OPT_IEX. Add
246 "init-command", "init-eval-command", "ix" and "iex" to the variable
247 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
248 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
249 (print_gdb_help): Describe --init-command=FILE, -ix and
250 --init-eval-command=COMMAND, -iex.
252 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
255 * main.c (struct cmdarg): Move it here from main. Add more comments.
256 (cmdarg_s, VEC (cmdarg_s)): New.
257 (main): Move struct cmdarg from here. New variables cmdarg_vec and
258 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
259 Install cleanup for cmdarg_vec. Update filling for options 'x' and
260 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
263 2012-03-19 Tom Tromey <tromey@redhat.com>
265 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
267 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
270 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
273 2012-03-16 Chris January <chris.january@allinea.com>
275 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
278 2012-03-16 Chris January <chris.january@allinea.com>
280 * source.c (add_path): Use memmove instead of strcpy because the
283 2012-03-16 Joel Brobecker <brobecker@adacore.com>
285 * value.h (set_value_parent): Add declaration.
286 * value.c (set_value_parent): New function.
287 (value_address): If VALUE->PARENT is not NULL, then use it as
288 the base address instead of VALUE->LOCATION.address.
289 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
290 the same as OBJ's address. Adjust V's offset accordingly.
293 2012-03-16 Gary Benson <gbenson@redhat.com>
296 * dwarf2read.c (use_deprecated_index_sections): New global.
297 (struct partial_die_info): New member may_be_inlined.
298 (read_partial_die): Set may_be_inlined where appropriate.
299 (add_partial_subprogram): Add partial symbols for partial
300 DIEs that may be inlined.
301 (new_symbol_full): Add inlined subroutines to the current
303 (write_psymtabs_to_index): Bump version number.
304 (dwarf2_read_index): Read only version 6 indices unless
305 use_deprecated_index_sections is set.
306 * linespec.c (symbol_and_data_callback): New structure.
307 (iterate_inline_only): New function.
308 (iterate_over_all_matching_symtabs): New argument
309 "include_inline". If nonzero, also call the callback for
310 symbols representing inlined subroutines.
311 (lookup_prefix_sym): Pass extra argument to the above.
312 (find_function_symbols): Likewise.
313 (add_matching_symbols_to_info): Likewise.
314 * NEWS: Mention that GDB can now set breakpoints on inlined
317 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
319 * p-typeprint.c (pascal_type_print_method_args):
320 Fix display of parameter of methods.
322 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
324 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
325 Add missing prototype.
327 2012-03-16 Yao Qi <yao@codesourcery.com>
328 Jan Kratochvil <jan.kratochvil@redhat.com>
330 Fix false compilation warning.
331 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
333 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
334 Pedro Alves <pedro@codesourcery.com>
336 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
337 (arm_register_g_packet_guesses): New function.
338 (arm_gdbarch_init): Don't force a target description with
339 registers when the executable is detected as M-profile. Instead
340 set gdbarch->tdep->is_m. Register `g' packet guesses.
341 (_initialize_arm_tdep): Initialize the new target description.
342 * features/arm-with-m-fpa-layout.xml: New description.
343 * features/arm-with-m-fpa-layout.c: New, generated.
345 2012-03-15 Joel Brobecker <brobecker@adacore.com>
347 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
348 Update function description.
349 (insert_bp_location): Do not wipe bl->target_info out.
350 * mem-break.c: #include "gdb_string.h".
351 (default_memory_insert_breakpoint): Do not call target_read_memory
352 with a pointer to the breakpoint's shadow_contents buffer. Use
353 a local buffer instead.
354 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
356 2012-03-15 Tom Tromey <tromey@redhat.com>
358 * NEWS: Mention "info vtbl", not "info vtable".
359 * cp-support.c (info_vtbl_command): Fix comment.
360 (_initialize_cp_support): Fix text.
362 2012-03-15 Tom Tromey <tromey@redhat.com>
364 * cp-valprint.c (cp_print_value_fields): Use
365 print_function_pointer_address for vtable slot.
367 2012-03-15 Tom Tromey <tromey@redhat.com>
369 * gnu-v3-abi.c (struct value_and_voffset): New.
370 (hash_value_and_voffset, eq_value_and_voffset)
371 (compare_value_and_voffset, compute_vtable_size)
372 (print_one_vtable, gnuv3_print_vtable): New functions.
373 (init_gnuv3_ops): Initialize 'print_vtable' field.
374 * cp-support.c (info_vtbl_command): New function.
375 (_initialize_cp_support): Add "info vtbl".
376 * cp-abi.h (cplus_print_vtable): Declare.
377 (struct cp_abi_ops) <print_vtable>: New field.
378 * cp-abi.c (cplus_print_vtable): New function.
381 2012-03-15 Tom Tromey <tromey@redhat.com>
383 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
384 iterate_over_symbols.
386 2012-03-14 Doug Evans <dje@google.com>
388 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
389 DW_OP_GNU_parameter_ref.
391 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
393 Fix double prompt of 'interpreter-exec mi'.
394 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
395 (mi_interpreter_resume): use it.
396 (mi_execute_command_input_handler): New function.
397 * mi/mi-main.c (mi_execute_command): Move prompt printing to
398 mi_execute_command_input_handler.
400 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
402 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
404 (darwin_debug_port_info): Make static.
405 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
406 * machoread.c (_initialize_machoread): Add prototype.
407 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
408 (i386_darwin_set_control, i386_darwin_get_control)
409 i386_darwin_dr_set_addr, i386_darwin_get_addr)
410 i386_darwin_get_status, i386_darwin_get_control):
411 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
413 2012-03-13 Joel Brobecker <brobecker@adacore.com>
415 * ax-gdb.c (gen_usual_unary): Remove special handling of
418 2012-03-13 Joel Brobecker <brobecker@adacore.com>
420 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
422 2012-03-13 Joel Brobecker <brobecker@adacore.com>
424 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
426 2012-03-13 Chris January <chris.january@allinea.com>
428 * aix-thread.c (fill_sprs): Store the floating point registers
429 at the correct offsets into vals.
431 2012-03-13 Doug Evans <dje@google.com>
433 * NEWS: Mention symbol-reloading has been deleted.
434 * symfile.c (symbol_reloading): Delete.
435 (show_symbol_reloading): Delete.
436 (_initialize_symfile): Delete set/show symbol-reloading.
438 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
439 read_in_chain until we have successfully read it in.
440 (load_full_comp_unit): Ditto.
441 (read_signatured_type): Add comment.
443 2012-03-13 Chris January <chris.january@allinea.com>
445 * stabsread.c (fix_common_block): Change type of valu argument
448 2012-03-13 Chris January <chris.january@allinea.com>
450 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
453 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
455 * common/linux-procfs.c (linux_proc_get_int): New, from
456 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
458 (linux_proc_get_tgid): Only call linux_proc_get_int.
459 (linux_proc_get_tracerpid): New.
460 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
461 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
462 linux_proc_pid_has_state.
463 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
464 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
465 (linux_ptrace_attach_warnings): New.
466 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
468 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
469 (linux_nat_attach): New variables ex, buffer, message and message_s.
470 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
472 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
474 * Makefile.in (linux-ptrace.o): New.
475 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
477 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
478 * common/linux-ptrace.c: New file.
479 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
480 * config/arm/linux.mh: Likewise.
481 * config/i386/linux.mh: Likewise.
482 * config/i386/linux64.mh: Likewise.
483 * config/ia64/linux.mh: Likewise.
484 * config/m32r/linux.mh: Likewise.
485 * config/m68k/linux.mh: Likewise.
486 * config/mips/linux.mh: Likewise.
487 * config/pa/linux.mh: Likewise.
488 * config/powerpc/linux.mh: Likewise.
489 * config/powerpc/ppc64-linux.mh: Likewise.
490 * config/powerpc/spu-linux.mh: Likewise.
491 * config/s390/s390.mh: Likewise.
492 * config/sparc/linux.mh: Likewise.
493 * config/sparc/linux64.mh: Likewise.
494 * config/xtensa/linux.mh: Likewise.
495 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
496 common/linux-procfs.c.
497 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
499 2012-03-13 Hui Zhu <teawater@gmail.com>
500 Pedro Alves <palves@redhat.com>
502 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
503 CREATE_BREAKPOINT_FLAGS_INSERTED.
504 (create_breakpoint_sal, create_breakpoints_sal)
505 (base_breakpoint_create_breakpoints_sal)
506 (tracepoint_create_breakpoints_sal)
507 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
509 (break_command_1, handle_gnu_v3_exceptions, trace_command)
510 (ftrace_command, strace_command): Adjust.
511 (create_tracepoint_from_upload): Pass
512 CREATE_BREAKPOINT_FLAGS_INSERTED.
513 * breakpoint.h (enum breakpoint_create_flags): New.
514 (create_breakpoint): New flags parameter.
515 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
516 * python/py-breakpoint.c (bppy_init): Adjust.
517 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
518 * spu-tdep.c (spu_catch_start): Adjust.
520 2012-03-13 Pedro Alves <palves@redhat.com>
521 Hui Zhu <teawater@gmail.com>
522 Yao Qi <yao@codesourcery.com>
524 * remote.c (struct remote_state): New field `starting_up'.
525 (remote_start_remote): Set and clear it.
526 (remote_can_download_tracepoint): If starting up, return false.
528 2012-03-13 Yao Qi <yao@codesourcery.com>
530 * inferior.h (struct inferior): Remove fields any_syscall_count,
531 syscalls_counts and total_syscalls_count. Move them to new
532 struct catch_syscall_inferior_data in breakpoint.c.
533 * breakpoint.c: Call DEF_VEC_I(int).
534 (struct catch_syscall_inferior_data): New.
535 (get_catch_syscall_inferior_data): New.
536 (catch_syscall_inferior_data_cleanup): New.
537 (insert_catch_syscall): Update to access data in
538 struct catch_syscall_inferior_data.
539 (insert_catch_syscall): Likewise.
540 (remove_catch_syscall): Likewise.
541 (remove_catch_syscall): Likewise.
542 (is_syscall_catchpoint_enabled): Likewise.
543 (add_catch_command): Likewise.
544 (_initialize_breakpoint): Register cleanup.
545 * breakpoint.h: Removed DEF_VEC_I(int).
546 * dwarf2loc.c: Call DEF_VEC_I(int).
547 * mi/mi-main.c: Likewise.
549 2012-03-12 Mark Kettenis <kettenis@gnu.org>
551 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
553 2012-03-12 Chris January <chris.january@allinea.com>
555 * aix-thread.c (_initialize_aix_thread): Add prototype.
556 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
557 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
559 2012-03-12 Joel Brobecker <brobecker@adacore.com>
561 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
562 include of "amd64-nat.h".
564 2012-03-12 Tom Tromey <tromey@redhat.com>
566 * buildsym.c (record_pending_block): Now static.
567 * buildsym.h: (record_pending_block): Remove.
569 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
571 * amd64bsd-nat.c: Include amd64bsd-nat.h.
573 2012-03-09 Tom Tromey <tromey@redhat.com>
575 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
576 producer_is_gxx_lt_4_6>: New fields.
577 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
579 2012-03-09 Tom Tromey <tromey@redhat.com>
581 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
583 2012-03-08 Joel Brobecker <brobecker@adacore.com>
585 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
588 2012-03-08 Joel Brobecker <brobecker@adacore.com>
590 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
592 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
594 Fix -Wmissing-prototypes build.
595 * arm-linux-nat.c (get_thread_id): Make it static.
596 * xtensa-linux-nat.c (get_thread_id): Likewise.
598 2012-03-08 Joel Brobecker <brobecker@adacore.com>
600 * server.c (process_point_options): If a conditional expression
601 is found, only print a message if remote_debug is nonzero.
603 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
605 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
606 of internal error for unknown/unsupported types.
608 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
610 Fix CU relative vs. absolute DIE offsets.
611 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
612 offset to offset_in_cu.
613 * dwarf2read.c (process_enumeration_scope): Add CU offset to
615 (dwarf2_fetch_die_location_block): Rename parameter offset to
616 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
618 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
620 * libunwind-frame.c: Rename to ...
621 * ia64-libunwind-tdep.c: ... here.
622 * libunwind-frame.h: Rename to ...
623 * ia64-libunwind-tdep.h: ... here.
624 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
625 ia64-libunwind-tdep.h.
626 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
627 * README (--with-libunwind): Rename to ...
628 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
629 * config.in: Regenerate.
630 * configure: Regenerate.
631 * configure.ac: New option --with-libunwind-ia64, make the
632 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
633 Remove AC_DEFINE for HAVE_LIBUNWIND.
634 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
635 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
636 Rename libunwind-frame in the general comment.
637 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
638 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
639 Move forward declarations inside #ifndef. Rename libunwind-frame in
641 * ia64-tdep.c: Rename libunwind-frame.h #include to
642 ia64-libunwind-tdep.h.
643 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
644 (ia64_libunwind_descr): Rename libunwind-frame to
645 ia64-libunwind-tdep in these function comments.
646 * ia64-tdep.h: Rename libunwind-frame.h #include to
647 ia64-libunwind-tdep.h.
648 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
649 ia64-libunwind-tdep in that data comment.
651 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
653 * libunwind-frame.h (struct frame_unwind): New declaration.
655 2012-03-08 Joel Brobecker <brobecker@adacore.com>
657 * breakpoint.c (_initialize_breakpoint): Fix error in help of
658 "set breakpoint condition-evaluation" command.
660 2012-03-08 Tristan Gingold <gingold@adacore.com>
662 * sparc-stub.c: Move to stubs/
663 * sh-stub.c: Likewise.
664 * m68k-stub.c: Likewise.
665 * m32r-stub.c: Likewise.
666 * i386-stub.c: Likewise.
668 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
670 * m68klinux-tdep.c (m68k_linux_init_abi): Register
671 linux_get_siginfo_type.
673 * m68klinux-nat.c: Include "gdb_proc_service.h".
674 (PTRACE_GET_THREAD_AREA): Define.
675 (ps_get_thread_area): New function.
677 2012-03-08 Yao Qi <yao@codesourcery.com>
679 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
681 (remote_query_attached): Likewise.
682 (remote_static_tracepoint_marker_at): Likewise.
683 (remote_set_permissions): Likewise.
684 (remote_detach_1, extended_remote_attach_1): Likewise.
685 (send_g_packet, remote_vkill): Likewise.
686 (extended_remote_disable_randomization): Likewise.
687 (remote_add_target_side_condition): Likewise.
688 (remote_insert_breakpoint): Likewise.
689 (remote_remove_breakpoint): Likewise.
690 (remote_insert_watchpoint): Likewise.
691 (remote_remove_watchpoint): Likewise.
692 (remote_insert_hw_breakpoint): Likewise.
693 (remote_insert_hw_breakpoint): Likewise.
694 (remote_remove_hw_breakpoint): Likewise.
695 (remote_download_command_source): Likewise.
696 (remote_download_tracepoint): Likewise.
697 (remote_download_trace_state_variable): Likewise.
698 (remote_disable_tracepoint): Likewise.
699 (remote_trace_set_readonly_regions): Likewise.
700 (remote_get_tracepoint_status): Likewise.
701 (remote_trace_find): Likewise.
702 (remote_get_trace_state_variable_value): Likewise.
703 (remote_set_disconnected_tracing): Likewise.
704 (remote_set_circular_trace_buffer): Likewise.
705 (remote_get_min_fast_tracepoint_insn_len): Likewise.
706 (remote_use_agent): Likewise.
707 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
710 2012-03-07 Pedro Alves <palves@redhat.com>
712 * NEWS: Mention QProgramSignals.
713 * inferior.h (update_signals_program_target): Declare.
714 * infrun.c: (update_signals_program_target): New.
715 (handle_command): Update the target of the new program signals
717 * remote.c (PACKET_QProgramSignals): New enum.
718 (last_program_signals_packet): New global.
719 (remote_program_signals): New.
720 (remote_start_remote): Update the target with the program signals
722 (remote_protocol_features): Add entry for QPassSignals.
723 (remote_open_1): Free anc clear last_program_signals_packet.
724 (init_remote_ops): Install remote_program_signals.
725 * target.c (update_current_target): Adjust.
726 (target_program_signals): New.
727 * target.h (struct target_ops) <to_program_signals>: New field.
728 (target_program_signals): Declare.
730 2012-03-07 Pedro Alves <palves@redhat.com>
732 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
735 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
737 * m68klinux-nat.c (getregs_supplies): Make static.
738 (getfpregs_supplies): Likewise.
739 (have_ptrace_getregs): Likewise.
741 2012-03-06 Joel Brobecker <brobecker@adacore.com>
743 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
744 in call to get_die_type_at_offset.
746 2012-03-06 Stan Shebs <stan@codesourcery.com>
748 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
749 * mi/mi-cmd-disas.c: Ditto.
750 * mi/mi-cmd-env.c: Ditto.
751 * mi/mi-cmd-file.c: Ditto.
752 * mi/mi-cmd-stack.c: Ditto.
753 * mi/mi-cmd-target.c: Ditto.
754 * mi/mi-cmd-var.c: Ditto.
755 * mi/mi-cmds.c: Ditto.
756 * mi/mi-cmds.h: Ditto.
757 * mi/mi-console.c: Ditto.
758 * mi/mi-getopt.c: Ditto.
759 * mi/mi-getopt.h: Ditto.
760 * mi/mi-interp.c: Ditto.
761 * mi/mi-main.c: Ditto.
762 * mi/mi-out.c: Ditto.
763 * mi/mi-parse.c: Ditto.
764 * mi/mi-parse.h: Ditto.
765 * mi/mi-symbol-cmds.c: Ditto.
767 * mi/mi-getopt.h: Move mi_opt struct up.
768 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
770 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
772 2012-03-06 Tom Tromey <tromey@redhat.com>
774 * proc-service.c (ps_pglobal_lookup): Set the current program
777 2012-03-06 Pedro Alves <palves@redhat.com>
779 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
781 2012-03-05 Joel Brobecker <brobecker@adacore.com>
783 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
785 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
788 * common/linux-osdata.c (linux_common_core_of_thread): New function
790 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
791 call by linux_common_core_of_thread.
792 (linux_nat_core_of_thread_1): Remove.
793 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
794 * linux-thread-db.c: Include linux-osdata.h.
795 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
796 linux_common_core_of_thread.
798 2012-03-05 Tom Tromey <tromey@redhat.com>
800 * value.c (value_primitive_field): Don't fetch contents for
803 2012-03-05 Tom Tromey <tromey@redhat.com>
805 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
807 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
809 * s390-nat.c: Include "gregset.h".
811 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
813 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
814 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
815 (libunwind_load): New variable so_error, use it for dlerror. Try to
816 load also LIBUNWIND_SO_7.
818 2012-03-05 Pedro Alves <palves@redhat.com>
820 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
821 is not NULL, and remove resulting dead code.
823 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
825 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
826 prologue to sh_analyze_prologue.
827 (sh_analyze_prologue): Make better use of such an upper limit, and
828 generally be more cautious about accessing memory.
830 2012-03-05 Tom Tromey <tromey@redhat.com>
832 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
833 _initialize_ia64_hpux_tdep.
835 2012-03-05 Pedro Alves <palves@redhat.com>
839 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
840 the register state is clear, supply explicit zero, instead of
841 marking the register unavailable.
843 2012-03-05 Tristan Gingold <gingold@adacore.com>
845 * NEWS: Mention OpenVMS ia64 new target.
847 2012-03-05 Tristan Gingold <gingold@adacore.com>
849 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
850 (ia64_unw_accessors, ia64_unw_rse_accessors)
851 (ia64_libunwind_descr): Declare.
852 * ia64-vms-tdep.c: New file.
853 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
854 (ia64_libunwind_descr): Make them public.
855 * configure.tgt: Add ia64-*-*vms*.
856 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
857 (ALLDEPFILES): Add ia64-vms-tdep.c
859 2012-03-05 Tristan Gingold <gingold@adacore.com>
861 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
862 * remote.c (PACKET_qXfer_uib): New enum value.
863 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
864 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
865 (_initialize_remote): Call add_packet_config_cmd for
868 2012-03-05 Tristan Gingold <gingold@adacore.com>
870 * osabi.c (gdb_osabi_names): Add OpenVMS.
871 (generic_elf_osabi_sniffer): Likewise.
872 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
874 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
877 * libunwind-frame.c (libunwind_frame_unwind)
878 (libunwind_frame_base_address): Remove.
879 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
881 2012-03-04 Yao Qi <yao@codesourcery.com>
883 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
884 remove trailing new line.
885 (agent_run_command, agent_run_command): Add _ markup.
886 (agent_capability_check): Likewise.
888 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
890 * breakpoint.c (set_condition_evaluation_mode): Set
891 CONDITION_EVALUATION_MODE unconditionally.
893 2012-03-03 Yao Qi <yao@codesourcery.com>
895 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
896 * common/agent.h: Update declaration.
897 * inf-child.c (inf_child_use_agent): New.
898 (inf_child_can_use_agent): New.
899 (inf_child_target): Initialize fields `to_use_agent'
900 and `to_can_use_agent'.
901 * agent.c (agent_new_objfile): New.
902 (_initialize_agent): Add agent_new_objfile to new_objfile
905 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
907 (linux_target_install_ops): Initialize field
908 `to_static_tracepoint_markers_by_strid'.
909 * remote.c (free_current_marker): Move it to ...
910 * tracepoint.c (free_current_marker): ... here. New.
911 (cleanup_target_stop): New.
912 * tracepoint.h: Declare free_current_marker.
913 * NEWS: Add one entry about `info static-tracepoint-marker'.
915 2012-03-03 Yao Qi <yao@codesourcery.com>
917 * common/agent.c (agent_loaded_p): New.
918 (agent_look_up_symbols): New global.
919 * common/agent.h: Declare agent_loaded_p.
921 2012-03-03 Yao Qi <yao@codesourcery.com>
923 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
924 (agent_capability_check, agent_capability_invalidate): New.
925 (symbol_list): New array element.
926 * common/agent.h (enum agent_capa): New.
927 * target.c (target_pre_inferior): Call agent_capability_invalidate.
929 2012-03-03 Yao Qi <yao@codesourcery.com>
931 * target.h (struct target_ops) <to_use_agent>: New field.
932 (struct target_ops) <to_can_use_agent>: New field.
933 (target_use_agent, target_can_use_agent): New macro.
934 * target.c (update_current_target): Update.
935 * remote.c: New enum `PACKET_QAgent'.
936 (remote_protocol_features): Add a new element.
937 (remote_use_agent, remote_can_use_agent): New.
938 (init_remote_ops): Initialize field `can_use_agent' with
939 remote_can_use_agent. Intiailize field `use_agent' with
941 * common/agent.c (use_agent): New global.
942 * common/agent.h: Declare it.
943 * tracepoint.c (info_static_tracepoint_markers_command): Add
945 * Makefile.in (SFILES): Add common/agent.c and agent.c.
946 (COMMON_OBS): Add common/agent.o and agent.o
947 (common-agent.o): New rule.
950 2012-03-03 Yao Qi <yao@codesourcery.com>
952 * common/agent.c: New.
953 * common/agent.h: New.
954 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
956 * configure, configh.in: Regenerated.
958 2012-03-02 Kevin Buettner <kevinb@redhat.com>
960 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
961 unless it exists for this architecture.
963 2012-03-02 Joel Brobecker <brobecker@adacore.com>
965 * language.h (struct language_defn): New "method" la_read_var_value.
966 * findvar.c: #include "language.h".
967 (default_read_var_value): Renames read_var_value. Rewrite
968 function description.
969 (read_var_value): New function.
970 * value.h (default_read_var_value): Add prototype.
971 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
973 (ada_language_defn): Add entry for la_read_var_value.
974 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
975 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
976 language_defn structures to add entry for new la_read_var_value
979 2012-03-02 Tom Tromey <tromey@redhat.com>
980 Pedro Alves <palves@redhat.com>
982 PR breakpoints/13776:
983 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
985 (delete_longjmp_breakpoint_at_next_stop): New.
986 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
987 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
988 before deleting the inferior. Add comments.
989 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
990 breakpoints immediately, but only on next stop. Move that code
991 next to where we mark other breakpoints for deletion.
993 2012-03-02 Joel Brobecker <brobecker@adacore.com>
995 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
997 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
1000 2012-03-02 Pedro Alves <palves@redhat.com>
1002 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
1004 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
1006 Fix -Wmissing-prototypes build.
1007 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
1008 * remote-sim.c (gdbsim_has_all_memory): Likewise.
1009 (gdbsim_has_memory): Likewise.
1011 2012-03-02 Yao Qi <yao@codesourcery.com>
1013 Fix -Wmissing-prototypes build.
1014 * charset.c (phony_iconv_open): Make static.
1015 (phony_iconv_close, phony_iconv): Likewise.
1016 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
1017 * i386-windows-nat.c (_initialize_i386_windows_nat): New
1019 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
1020 * ser-mingw.c (create_select_thread): Make static.
1021 * windows-termcap.c (tgetent): New prototype.
1022 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
1024 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
1026 Fix -Wmissing-prototypes build.
1027 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
1028 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
1029 (_initialize_loadable): New prototypes.
1031 2012-03-02 Doug Evans <dje@google.com>
1033 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
1034 abbrev table, read_comp_unit will do it.
1036 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1038 Fix -Wmissing-prototypes build.
1039 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
1040 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
1041 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
1042 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
1043 (_initialize_arm_symbian_tdep): New prototype.
1044 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
1045 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
1046 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
1048 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
1049 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
1051 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
1052 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
1053 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
1055 * moxie-tdep.c (moxie_process_record): Likewise.
1056 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
1057 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
1058 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
1059 (_initialize_rl78_tdep): New prototype.
1060 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
1061 (_initialize_rx_tdep): New prototype.
1062 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
1063 (_initialize_darwin_solib): New prototype.
1064 * solib-spu.c: Include solib-spu.h.
1065 (_initialize_spu_solib): New prototype.
1066 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
1067 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
1068 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
1069 (tic6x_software_single_step): Make it static.
1070 (_initialize_tic6x_tdep): New prototype.
1072 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1074 Fix -Wmissing-prototypes build.
1075 * cris-tdep.c (cris_can_use_hardware_watchpoint)
1076 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
1078 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1080 Fix -Wmissing-prototypes build.
1081 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
1082 (frv_have_stopped_data_address): Remove.
1084 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1086 Fix -Wmissing-prototypes build.
1087 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
1088 * sh-tdep.c: Include sh64-tdep.h.
1089 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
1090 * sh64-tdep.c: Include sh64-tdep.h.
1091 * sh64-tdep.h: New file.
1093 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
1095 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
1097 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
1099 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
1100 sp_regnum once the gdbarch_init_osabi hook has been called.
1102 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
1104 * mips-tdep.c (mips32_bc1_pc): New function.
1105 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
1106 BPOSGE32 and BPOSGE64 instructions.
1107 (deal_with_atomic_sequence): Likewise.
1108 (mips32_instruction_has_delay_slot): Likewise.
1110 2012-03-01 Maciej W. Rozycki <macro@mips.com>
1111 Chris Dearman <chris@mips.com>
1112 Maciej W. Rozycki <macro@codesourcery.com>
1113 Joseph Myers <joseph@codesourcery.com>
1115 * features/mips-dsp.xml: New file.
1116 * features/mips64-dsp.xml: New file.
1117 * features/mips-dsp-linux.xml: New file.
1118 * features/mips64-dsp-linux.xml: New file.
1119 * features/Makefile (WHICH): Add mips-dsp-linux and
1121 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
1122 * features/mips-dsp-linux.c: New file.
1123 * features/mips64-dsp-linux.c: New file.
1124 * regformats/mips-dsp-linux.dat: New file.
1125 * regformats/mips64-dsp-linux.dat: New file.
1126 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
1128 (mips64_linux_register_addr): Likewise.
1129 (mips64_linux_regsets_fetch_registers): Likewise.
1130 (mips64_linux_regsets_store_registers): Likewise.
1131 (mips64_linux_fetch_registers): Update call to
1132 mips64_linux_regsets_fetch_registers.
1133 (mips64_linux_store_registers): Update call to
1134 mips64_linux_regsets_store_registers.
1135 (mips_linux_read_description): Probe for DSP registers.
1136 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
1137 and initialize_tdesc_mips64_dsp_linux.
1138 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
1139 Remove padding of no longer used embedded register slots.
1140 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
1141 (MIPS_RESTART_REGNUM): Redefine enum value.
1142 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
1144 (mips_tx39_reg_names): Likewise.
1145 (mips_linux_reg_names): New array of register names for Linux
1147 (mips_register_name): Check for a null pointer in
1148 mips_processor_reg_names and return an empty string.
1149 (mips_register_type): Exclude embedded registers for the IRIX
1151 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
1152 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
1154 (mips_stab_reg_to_regnum): Handle DSP accumulators.
1155 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
1156 (mips_gdbarch_init): Likewise. Initialize internal register
1157 indices for the Linux ABI. Use dynamic numbers to refer to
1158 registers, as applicable, while parsing the target description.
1159 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
1161 2012-03-01 Joel Brobecker <brobecker@adacore.com>
1163 * frame.h (read_frame_register_unsigned): Fix typo in function
1166 2012-03-01 Pedro Alves <palves@redhat.com>
1168 * jit-reader.in [!__cplusplus]
1169 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
1171 2012-03-01 Pedro Alves <palves@redhat.com>
1173 * configure.ac (build_warnings): Add -Wmissing-prototypes.
1174 * configure: Regenerate.
1176 2012-03-01 Pedro Alves <palves@redhat.com>
1178 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
1179 * breakpoint.c (create_exception_master_breakpoint, trace_command)
1180 (ftrace_command, strace_command): Make static.
1181 * d-lang.c (_initialize_d_language): Declare.
1182 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
1183 * dwarf2loc.c (_initialize_dwarf2loc):
1184 * dwarf2read.c (process_psymtab_comp_unit): Make static.
1185 * exec.c (exec_get_section_table): Make static.
1186 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
1187 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
1188 * inferior.c (remove_inferior_command, add_inferior_command)
1189 (clone_inferior_command): Make static.
1190 * linux-nat.c (linux_nat_thread_address_space)
1191 (linux_nat_core_of_thread): Make static.
1192 * linux-tdep.c (_initialize_linux_tdep): Declare.
1193 * objc-lang.c (_initialize_objc_lang): Declare.
1194 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
1196 (_initialize_opencl_language): Declare.
1197 * record.c (_initialize_record): Declare.
1198 * remote.c (demand_private_info, remote_get_tib_address)
1199 (remote_supports_cond_tracepoints)
1200 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
1202 * skip.c (_initialize_step_skip): Declare.
1203 * symtab.c (skip_prologue_using_lineinfo): Make static.
1204 * tracepoint.c (delete_trace_state_variable)
1205 (trace_variable_command, delete_trace_variable_command)
1206 (get_uploaded_tsv, find_matching_tracepoint_location)
1207 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
1209 * value.c (pack_unsigned_long): Make static.
1210 * varobj.c (varobj_ensure_python_env): Make static.
1211 * windows-tdep.c (_initialize_windows_tdep): Declare.
1212 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
1214 2012-03-01 Pedro Alves <palves@redhat.com>
1216 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
1218 (linux_init_abi): Install it as has_shared_address_space gdbarch
1221 2012-03-01 Pedro Alves <palves@redhat.com>
1223 * observer.c (observer_test_first_notification_function)
1224 (observer_test_second_notification_function)
1225 (observer_test_third_notification_function): Add declarations.
1227 2012-03-01 Pedro Alves <palves@redhat.com>
1229 * common/signals.c (default_target_signal_to_host)
1230 (default_target_signal_from_host): Move ...
1231 * arch-utils.c: ... here.
1232 * arch-utils.h (default_target_signal_to_host)
1233 (default_target_signal_from_host): Declare.
1235 * common/signals.c (target_signal_from_command): Move ...
1236 * infrun.c: ... here.
1237 * inferior.h (target_signal_from_command): Declare.
1238 * target.h (target_signal_from_command)
1239 (default_target_signal_from_host, default_target_signal_to_host):
1240 Delete declarations.
1242 * common/signals.c (_initialize_signals): Delete.
1244 2012-03-01 Pedro Alves <palves@redhat.com>
1246 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
1247 both __cplusplus and !__cplusplus.
1249 2012-03-01 Pedro Alves <palves@redhat.com>
1251 * psymtab.c (find_and_open_source): Delete declaration.
1252 * source.c (find_and_open_source): Move comment ...
1253 * source.h (find_and_open_source): ... to this new declaration.
1255 2012-03-01 Pedro Alves <palves@redhat.com>
1257 * inline-frame.c: Include inline-frame.h.
1259 2012-03-01 Pedro Alves <palves@redhat.com>
1261 * tui/tui-data.c (set_gen_win_origin): Delete.
1262 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
1263 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
1265 2012-03-01 Pedro Alves <palves@redhat.com>
1267 * remote.c (encode_actions): Delete declaration.
1268 * tracepoint.c (encode_actions): Make extern.
1269 * tracepoint.h (encode_actions): Declare.
1271 2012-03-01 Pedro Alves <palves@redhat.com>
1273 * python/py-breakpoint.c: Include python.h.
1274 * python/py-continueevent.c (create_continue_event_object): Make
1276 * python/py-lazy-string.c (stpy_get_type): Make static.
1277 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1279 * python/py-utils.c (unicode_to_target_python_string): Make
1281 * python/py-value.c: Include python.h.
1283 2012-03-01 Pedro Alves <palves@redhat.com>
1285 * inferior.c (delete_threads_of_inferior): Delete.
1287 2012-03-01 Pedro Alves <palves@redhat.com>
1289 Import fallback definitions from glibc.
1291 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
1292 ps_prochandle): Forward declare.
1293 (ps_err_e): Use glibc's comments.
1294 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
1295 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
1296 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
1297 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
1298 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
1299 (struct ps_prochandle): Adjust comment.
1301 2012-03-01 Pedro Alves <palves@redhat.com>
1303 * ada-lang.c (ada_modulus_from_name): Delete.
1304 * ada-lex.l (lexer_init): Make static.
1306 2012-03-01 Pedro Alves <palves@redhat.com>
1310 * frame.c (read_frame_register_unsigned): New.
1311 * frame.h (read_frame_register_unsigned): Declare.
1312 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
1314 (print_i387_control_word): New parameter `control_p'. Handle it.
1315 (i387_print_float_info): Handle unavailable float registers.
1317 2012-03-01 Keith Seitz <keiths@redhat.com>
1319 * linespec.c (decode_line_2): Sort the list of methods
1320 alphabetically before presenting the user with a selection
1323 2012-03-01 Doug Evans <dje@google.com>
1325 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
1327 (dwarf2_read_abbrevs): Remove corresponding initialization.
1329 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
1331 * NEWS: Mention new python command class gdb.COMMAND_USER.
1332 * cli/cli-cmds.c (show_user): Print error when used on a python
1334 (init_cli_cmds): Update documentation strings for "show user" and
1335 "set/show max-user-call-depth" to clarify that it does not apply to
1337 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
1339 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
1341 * top.c (execute_command): Only execute a user-defined command as a
1342 legacy macro if c->user_commands is set.
1344 2012-03-01 Tom Tromey <tromey@redhat.com>
1346 * valprint.h (struct generic_val_print_decorations): New.
1347 (generic_val_print): Declare.
1348 * valprint.c (generic_val_print): New function.
1349 * p-valprint.c (p_decorations): New global.
1350 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
1351 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
1352 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
1353 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
1354 * m2-valprint.c (m2_decorations): New global.
1355 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
1356 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
1357 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
1358 TYPE_CODE_ERROR>: Call generic_val_print.
1359 * f-valprint.c (f_decorations): New global.
1360 (f_val_print): Use print_function_pointer_address.
1361 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
1362 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
1363 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
1365 * c-valprint.c (c_decorations): New global.
1366 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
1367 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
1368 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
1369 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
1370 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
1371 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
1374 2012-03-01 Tom Tromey <tromey@redhat.com>
1376 * valprint.c (val_print): Update.
1377 * p-valprint (pascal_val_print): Return void.
1378 * p-lang.h (pascal_val_print): Return void.
1379 * m2-valprint.c (m2_val_print): Return void.
1380 * m2-lang.h (m2_val_print): Return void.
1381 * language.h (struct language_defn) <la_val_print>: Return void.
1382 * language.c (unk_lang_val_print): Return void.
1383 * jv-valprint.c (java_val_print): Return void.
1384 * jv-lang.h (java_val_print): Return void.
1385 * f-valprint.c (f_val_print): Return void.
1386 * f-lang.h (f_val_print): Return void.
1387 * d-valprint.c (d_val_print): Return void.
1388 (dynamic_array_type): Update.
1389 * d-lang.h (d_val_print): Return void.
1390 * c-valprint.c (c_val_print): Return void.
1391 * c-lang.h (c_val_print): Return void.
1392 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
1394 * ada-lang.h (ada_val_print): Return void.
1396 2012-03-01 Tom Tromey <tromey@redhat.com>
1398 * value.h (val_print): Return void.
1399 * valprint.c (val_print): Return void.
1401 2012-03-01 Tom Tromey <tromey@redhat.com>
1403 * value.h (common_val_print): Return void.
1404 * valprint.c (common_val_print): Return void.
1406 2012-03-01 Tom Tromey <tromey@redhat.com>
1408 * value.h (value_print): Return void.
1409 * valprint.c (value_print): Return void.
1410 * p-valprint.c (pascal_value_print): Return void.
1411 * p-lang.h (pascal_value_print): Return void.
1412 * language.h (struct language_defn) <la_value_print>: Return
1414 * language.c (unk_lang_value_print): Return void.
1415 * jv-valprint.c (java_value_print): Return void.
1416 * jv-lang.h (java_value_print): Return void.
1417 * f-valprint.c (c_value_print): Don't declare.
1419 * c-valprint.c (c_value_print): Return void.
1420 * c-lang.h (c_value_print): Return void.
1421 * ada-valprint.c (ada_value_print): Return void.
1422 * ada-lang.h (ada_value_print): Return void.
1424 2012-03-01 Tom Tromey <tromey@redhat.com>
1426 * value.c (value_primitive_field): Handle virtual base classes.
1428 2012-03-01 Tom Tromey <tromey@redhat.com>
1430 * gdbtypes.h (struct vbase): Remove.
1432 2012-03-01 Tom Tromey <tromey@redhat.com>
1434 * c-valprint.c (print_function_pointer_address): Move...
1435 * valprint.c: ... here. Make non-static.
1436 * m2-valprint.c (print_function_pointer_address): Remove.
1437 * valprint.h (print_function_pointer_address): Declare.
1439 2012-03-01 Joel Brobecker <brobecker@adacore.com>
1441 * NEWS: Document the fact that one can provide a condition when
1442 creating an Ada exception catchpoint.
1444 2012-03-01 Tom Tromey <tromey@redhat.com>
1446 * valprint.c (val_print_type_code_flags): Fix placement of
1449 2012-03-01 Joel Brobecker <brobecker@adacore.com>
1451 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
1452 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
1453 environment variable before calling update-copyright.
1455 2012-03-01 Joel Brobecker <brobecker@adacore.com>
1457 * gnulib/extra/update-copyright: Update to the latest from
1458 gnulib's git repository.
1459 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
1460 variable to 2 instead of 1.
1462 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1464 * varobj.c (c_value_of_variable): Remove dead code.
1466 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1468 * ada-lex.p (processId): Do not modify already encoded IDs.
1469 Update function documentation.
1471 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1473 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
1474 "name" with "struct symbol *name_sym".
1475 * ada-exp.y (write_var_or_type): Update call to
1476 ada_find_renaming_symbol.
1477 "name" with "struct symbol *name_sym". Adjust Implementation
1478 accordingly. Adjust the function documentation.
1480 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1482 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
1483 * ada-lang.c (ada_find_any_type): Add advance declaration.
1484 Make static. Replace ada_find_any_symbol by
1485 ada_find_any_type_symbol.
1486 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
1487 Improve function description. Make static.
1488 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
1489 Replace ada_find_any_symbol by ada_find_any_type_symbol.
1491 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1493 * ada-lang.c (struct tag_args): Delete.
1494 (ada_get_tsd_type): Function body moved up in source file.
1495 (ada_tag_name_1, ada_tag_name_2): Delete.
1496 (ada_get_tsd_from_tag): New function.
1497 (ada_tag_name_from_tsd): New function.
1498 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
1499 to determine the tag name.
1501 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1503 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
1505 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
1508 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1510 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
1512 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1514 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
1517 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1519 * ada-lang.c (constrained_packed_array_type): If there is a
1520 parallel XA type, use it to determine the array index type.
1522 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1524 * ada-valprint.c (ada_val_print_1): If our value is a reference
1525 to an array descriptor, dereference it before converting it
1528 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1530 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
1531 creating fixed value.
1532 (ada_value_ind, ada_coerce_ref, assign_component)
1533 (ada_evaluate_subexp): Remove call to unwrap_value before
1534 call to ada_to_fixed_value.
1536 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1538 * ada-lang.c (to_fixed_array_type): Set result's type name.
1540 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1542 * ada-lang.c (catch_ada_exception_command_split): Add new
1543 argument cond_string. Add support for condition at end of
1544 "catch exception" commands.
1545 (ada_decode_exception_location): Add new argument cond_string.
1546 Update call to catch_ada_exception_command_split.
1547 (create_ada_exception_catchpoint): Add new argument cond_string.
1548 Set the breakpoint condition if needed.
1549 (catch_ada_exception_command): Update call to
1550 ada_decode_exception_location.
1551 (ada_decode_assert_location): Add function documentation.
1552 Add support for condition at end of "catch assert" command.
1553 (catch_assert_command): Update calls to ada_decode_assert_location
1554 and create_ada_exception_catchpoint.
1556 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1558 Fix disp-step-syscall.exp: fork: single step over fork.
1559 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
1560 (i386_linux_get_syscall_number_from_regcache): ... here, new function
1561 comment, change parameters gdbarch and ptid to regcache. Remove
1562 parameter regcache, initialize gdbarch from regcache here.
1563 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
1565 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
1567 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
1568 'syscall'. Make the 'int' check more strict.
1570 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1572 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
1573 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
1574 (i386_linux_intx80_sysenter_syscall_record): ... here.
1575 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
1576 Use the renamed function name.
1578 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1580 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
1581 * breakpoint.c (until_break_command): Likewise.
1582 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
1583 * infcall.c (call_function_by_hand): Likewise.
1584 * infcmd.c (finish_forward): Likewise.
1585 * infrun.c (insert_exception_resume_breakpoint): Likewise.
1587 2012-02-28 Tristan Gingold <gingold@adacore.com>
1589 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
1590 avoid variable assignments inside condition.
1592 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1594 Fix static analysis issue found by cppcheck.
1595 * microblaze-tdep.c (microblaze_extract_return_value): Fix
1596 uninitialized BUF for size 2.
1598 2012-02-27 Chris Dearman <chris@mips.com>
1599 Nathan Froyd <froydnj@codesourcery.com>
1600 Maciej W. Rozycki <macro@codesourcery.com>
1602 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
1603 (mips16_instruction_has_delay_slot): Likewise.
1604 (mips_segment_boundary): Likewise.
1605 (mips_adjust_breakpoint_address): Likewise.
1606 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
1608 2012-02-27 Maciej W. Rozycki <macro@mips.com>
1609 Maciej W. Rozycki <macro@codesourcery.com>
1611 * infrun.c (handle_inferior_event): Don't proceed through
1612 shared library trampolines if stepping at the machine
1615 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
1617 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
1620 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
1622 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
1623 (sh_stub_unwind_sniffer): New functions.
1624 (sh_stub_unwind): New variable.
1625 (sh_gdbarch_init): Wire everything.
1627 2012-02-27 Pedro Alves <palves@redhat.com>
1629 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
1630 (linux_nat_post_attach_wait): Adjust to use
1631 linux_proc_pid_is_stopped.
1632 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
1633 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
1634 based on pid_is_stopped from both linux-nat.c and
1635 gdbserver/linux-low.c, and renamed.
1637 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
1639 * remote.c (remote_watchpoint_addr_within_range): New function.
1640 (init_remote_ops): Use it.
1642 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
1644 * target.h (target_watchpoint_addr_within_range): Document macro.
1646 2012-02-24 Pedro Alves <palves@redhat.com>
1648 * stack.c (set_last_displayed_sal): Issue internal_error instead
1649 of warning, and issue it after clearing the last displayed sal.
1651 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1652 Pedro Alves <palves@redhat.com>
1654 * breakpoint.c (until_break_command): Install breakpoints after
1655 all frame manipulations.
1657 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
1659 * remote.c (remote_supports_cond_breakpoints): New forward
1661 (remote_add_target_side_condition): New function.
1662 (remote_insert_breakpoint): Add target-side breakpoint
1663 conditional if supported.
1664 (remote_insert_hw_breakpoint): Likewise.
1665 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
1668 * target.c (update_current_target): Inherit
1669 to_supports_evaluation_of_breakpoint_conditions.
1670 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
1672 * target.h (struct target_ops)
1673 <to_supports_evaluation_of_breakpoint_conditions>: New field.
1674 (target_supports_evaluation_of_breakpoint_conditions): New #define.
1676 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
1677 (condition_evaluation_both, condition_evaluation_auto,
1678 condition_evaluation_host, condition_evaluation_target,
1679 condition_evaluation_enums, condition_evaluation_mode_1,
1680 condition_evaluation_mode): New static globals.
1681 (translate_condition_evaluation_mode): New function.
1682 (breakpoint_condition_evaluation_mode): New function.
1683 (gdb_evaluates_breakpoint_condition_p): New function.
1684 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
1685 (mark_breakpoint_modified): New function.
1686 (mark_breakpoint_location_modified): New function.
1687 (set_condition_evaluation_mode): New function.
1688 (show_condition_evaluation_mode): New function.
1689 (bp_location_compare_addrs): New function.
1690 (get_first_location_gte_addr): New helper function.
1691 (set_breakpoint_condition): Free condition bytecode if locations
1692 has become unconditional. Call mark_breakpoint_modified (...).
1693 (condition_command): Call update_global_location_list (1) for
1695 (breakpoint_xfer_memory): Use is_breakpoint (...).
1696 (is_breakpoint): New function.
1697 (parse_cond_to_aexpr): New function.
1698 (build_target_condition_list): New function.
1699 (insert_bp_location): Handle target-side conditional
1700 breakpoints and call build_target_condition_list (...).
1701 (update_inserted_breakpoint_locations): New function.
1702 (insert_breakpoint_locations): Handle target-side conditional
1704 (bpstat_check_breakpoint_conditions): Add comment.
1705 (bp_condition_evaluator): New function.
1706 (bp_location_condition_evaluator): New function.
1707 (print_breakpoint_location): Print information on where the condition
1709 (print_one_breakpoint_location): Likewise.
1710 (init_bp_location): Call mark_breakpoint_location_modified (...) for
1711 breakpoint location.
1712 (force_breakpoint_reinsertion): New functions.
1713 (update_global_location_list): Handle target-side breakpoint
1715 Reinsert locations that are already inserted if conditions have
1717 (bp_location_dtor): Free agent expression bytecode.
1718 (disable_breakpoint): Call mark_breakpoint_modified (...).
1719 Call update_global_location_list (...) with parameter 1 for breakpoints.
1720 (disable_command): Call mark_breakpoint_location_modified (...).
1721 Call update_global_location_list (...) with parameter 1 for breakpoints.
1722 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
1723 (enable_command): mark_breakpoint_location_modified (...).
1724 (_initialize_breakpoint): Update documentation and add
1725 condition-evaluation breakpoint subcommand.
1727 * breakpoint.h: Include ax.h.
1728 (condition_list): New data structure.
1729 (condition_status): New enum.
1730 (bp_target_info) <cond_list>: New field.
1731 (bp_location) <condition_changed, cond_bytecode>: New fields.
1732 (is_breakpoint): New prototype.
1734 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
1736 * remote.c (remote_state) <cond_breakpoints>: New field.
1737 (PACKET_ConditionalBreakpoints): New enum.
1738 (remote_cond_breakpoint_feature): New function.
1739 (remote_protocol_features): Add new ConditionalBreakpoints entry.
1740 (remote_supports_cond_breakpoints): New function.
1741 (_initialize_remote): Add new packet configuration for
1742 target-side conditional breakpoints.
1744 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
1746 * NEWS: Mention target-side conditional breakpoint support,
1747 new condition-evaluation breakpoint subcommand and remote
1750 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
1752 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
1755 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
1757 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
1758 (after_prologue): Remove.
1760 2012-02-23 Tom Tromey <tromey@redhat.com>
1762 * jv-valprint.c (java_val_print): Remove dead code.
1764 2012-02-23 Tristan Gingold <gingold@adacore.com>
1766 * ada-tasks.c (struct ada_tasks_inferior_data): Add
1767 known_tasks_element and known_tasks_length fields.
1768 (read_known_tasks_array): Change argument type. Use pointer type
1769 and number of elements from DATA. Adjust.
1770 (read_known_tasks_list): Likewise.
1771 (get_known_tasks_addr): Remove.
1772 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
1773 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
1774 type and array length. Merge former get_known_tasks_addr code.
1776 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1779 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
1780 it after set_momentary_breakpoint.
1782 2012-02-22 Sterling Augustine <saugustine@google.com>
1785 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
1787 2012-02-22 Gary Benson <gbenson@redhat.com>
1789 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
1790 (find_slot_in_mapped_hash): Likewise.
1792 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1795 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
1796 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
1797 * configure: Regenerate.
1799 2012-02-21 Tristan Gingold <gingold@adacore.com>
1800 Pedro Alves <palves@redhat.com>
1802 * ia64-tdep.c: Do not include libunwind-ia64.h.
1803 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
1804 Include libunwind-ia64.h instead of libunwind.h.
1805 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
1806 for libunwind.h existence.
1807 * configure, config.in: Regenerate.
1809 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
1811 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
1812 instead of value_rtti_target_type.
1813 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
1814 instead of value_rtti_target_type.
1815 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
1816 value_rtti_target_type.
1817 * valops.c (value_ind): Extract function readjust_indirect_value_type.
1818 (value_rtti_target_type): Rename to ...
1819 (value_rtti_indirect_type): ... here and make it indirect. Update
1821 * value.c (readjust_indirect_value_type): New function.
1822 (coerce_ref): Support for enclosing type setting for references
1823 with readjust_indirect_value_type.
1824 * value.h (readjust_value_type): New declaration.
1825 (value_rtti_target_type): Rename to ...
1826 (value_rtti_indirect_type): ... here.
1828 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
1830 * MAINTAINERS (Write After Approval): Add myself to the list.
1832 2012-02-20 Doug Evans <dje@google.com>
1834 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
1835 Rename objfile_p_char parameter to objfilep.
1836 (build_objfile_section_table): Result is now void. All callers
1838 * objfiles.h (struct objfile): Tweak comments, whitespace.
1839 (build_objfile_section_table): Update.
1841 * elfread.c (elf_symfile_segments): Fix warning text.
1843 2012-02-20 Tom Tromey <tromey@redhat.com>
1846 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
1847 particular set of file names once.
1848 (dw2_map_symbol_filenames): Likewise.
1850 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1853 * main.c (write_files): Remove the declaration.
1854 (external_editor_command): Move the declaration ...
1855 [GDBTK] (external_editor_command): ... here. Fix the comment.
1857 2012-02-20 Tom Tromey <tromey@redhat.com>
1859 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
1862 2012-02-20 Tristan Gingold <gingold@adacore.com>
1864 * darwin-nat.h (enum darwin_msg_state): Add comments.
1866 2012-02-20 Tristan Gingold <gingold@adacore.com>
1868 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
1871 2012-20-18 Joel Brobecker <brobecker@adacore.com>
1873 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
1874 between function description and implementation.
1876 2012-02-17 Tom Tromey <tromey@redhat.com>
1879 * python/py-event.c (event_object_getset): New global.
1880 (event_object_type): Reference it.
1881 * python/py-type.c (field_object_getset): New global.
1882 (field_object_type): Reference it.
1883 * python/python-internal.h (gdb_py_generic_dict): Declare.
1884 * python/py-utils.c (gdb_py_generic_dict): New function.
1886 2012-02-17 Tristan Gingold <gingold@adacore.com>
1888 * solib-darwin.c (darwin_current_sos): Check magic and filetype
1890 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
1892 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
1893 TYPE_CALLING_CONVENTION annotation.
1895 2012-02-16 Kevin Buettner <kevinb@redhat.com>
1897 * MAINTAINERS: Add rx to target ISA section.
1898 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
1899 (ALLDEPFILES): Add rx-tdep.c.
1901 2012-02-16 Tom Tromey <tromey@redhat.com>
1903 * symfile.c (symbol_file_add_main_1): Use inferior's
1905 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
1906 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
1908 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
1910 (follow_exec): Use inferior's symfile_flags.
1911 * inferior.h (struct inferior) <symfile_flags>: New field.
1913 2012-02-16 Mike Frysinger <vapier@gentoo.org>
1916 * remote-sim.c (gdbsim_create_inferior): Call error() when
1917 sim_create_inferior() fails.
1919 2012-02-16 Josh Matthews <josh@joshmatthews.net>
1921 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
1923 2012-02-16 Tom Tromey <tromey@redhat.com>
1926 * thread.c (struct current_thread_cleanup) <was_removable>: New
1928 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
1929 (make_cleanup_restore_current_thread): Initialize new field.
1931 2012-02-15 Kevin Buettner <kevinb@redhat.com>
1933 * MAINTAINERS: Add rl78 to target ISA section.
1934 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
1935 (ALLDEPFILES): Add rl78-tdep.c.
1936 * NEWS: Mention rl78 as a new target.
1938 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
1940 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
1942 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
1944 2012-02-15 Tom Tromey <tromey@redhat.com>
1947 * infcmd.c (registers_info): Print just the current register's
1950 2012-02-15 Tom Tromey <tromey@redhat.com>
1952 * python/py-symbol.c (sympy_value): Use _().
1954 2012-02-15 Pedro Alves <palves@redhat.com>
1956 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
1957 output to be like native targets'.
1958 (remote_pid_to_str): Special case the null ptid.
1960 2012-02-14 Stan Shebs <stan@codesourcery.com>
1962 * NEWS: Mention enable count command.
1963 * breakpoint.h (struct breakpoint): New field enable_count.
1964 * breakpoint.c (enable_breakpoint_disp): Add count argument.
1965 (enable_breakpoint): Add arg to call.
1966 (struct disp_data): New struct.
1967 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
1968 (do_map_enable_once_breakpoint): Create a struct and pass it.
1969 (do_map_enable_delete_breakpoint): Ditto.
1970 (do_map_enable_count_breakpoint): New function.
1971 (enable_count_command): New function.
1972 (bpstat_stop_status): Decrement enable_count.
1973 (print_one_breakpoint_location): Report enable count.
1974 (_initialize_breakpoint): Add enable count command.
1976 2012-02-14 Kevin Buettner <kevinb@redhat.com>
1978 * rl78-tdep.c (reggroups.h): Include.
1979 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
1980 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
1981 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
1982 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
1983 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
1984 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
1985 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
1986 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
1987 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
1988 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
1989 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
1990 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
1991 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
1992 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
1993 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
1994 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
1995 beginning of register list.
1996 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
1997 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
1998 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
1999 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
2000 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
2001 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
2002 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
2003 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
2004 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
2005 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
2006 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
2007 the pseudo registers. Rearrange other pseudo registers too so
2008 that the bank registers appear at the end.
2009 (rl78_register_type): Account for the fact that the byte sized
2010 bank registers are now pseudo-registers.
2011 (rl78_register_name): Rearrange the register name array. Make
2012 initial set of raw banked registers inaccessible.
2013 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
2014 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
2015 case for copying bytes back and forth between raw and pseudo
2016 versions of the banked registers. Update other cases to reflect
2018 (rl78_return_value): Update to account for changed names of
2020 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
2021 rl78_register_sim_regno().
2023 2012-02-14 Kevin Buettner <kevinb@redhat.com>
2025 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
2026 the name parameter being passed to find_pc_partial_function().
2028 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2030 * MAINTAINERS: Step down from being ia64 target maintainer.
2032 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2034 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
2035 compilation warning.
2037 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2039 Fix crash on loaded shlibs without loaded exec_bfd.
2040 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
2041 (set_section_command): Replace exec_bfd by p->bfd.
2043 2012-02-10 Tom Tromey <tromey@redhat.com>
2045 * linespec.c (decode_line_internal): Skip symtabs_from_filename
2046 when we have a C++ qualified name.
2048 2012-02-10 Pedro Alves <palves@redhat.com>
2050 * inferior.c (inferior_pid_to_str): New.
2051 (print_inferior, inferior_command): Use it.
2053 2012-02-10 Pedro Alves <palves@redhat.com>
2055 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
2057 * configure: Regenerate.
2059 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2061 * linespec.c (decode_line_internal): Fix comment correctness.
2063 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
2066 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
2067 * amd64bsd-nat.c: Add support for debug registers (adapted from
2069 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
2070 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
2071 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
2072 (amd64bsd_dr_get_control): New functions.
2073 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
2074 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
2075 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
2076 watchpoints initialization.
2077 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
2079 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2081 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
2083 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
2085 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2087 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
2089 2012-02-08 Joel Brobecker <brobecker@adacore.com>
2091 * language.h (symbol_name_cmp_ftype): Renames
2092 symbol_name_match_p_ftype.
2093 (struct language_defn)[la_get_symbol_name_cmp]: Renames
2094 la_get_symbol_name_match_p.
2095 * ada-lang.c (ada_get_symbol_name_cmp): Renames
2096 ada_get_symbol_name_match_p. Update comment.
2097 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
2098 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
2099 Renames symbol_name_match_p. Update field type.
2100 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
2101 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
2102 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
2103 "la_get_symbol_name_cmp" in comments.
2104 * language.c: Likewise.
2106 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2108 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
2110 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
2111 (amd64_sol2_gregset32_reg_offs): Likewise.
2113 2012-02-08 Joel Brobecker <brobecker@adacore.com>
2115 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
2116 of the returned BFD is allocated by GDB.
2118 2012-02-07 Tom Tromey <tromey@redhat.com>
2121 * python/python-internal.h (frame_object_type): Declare.
2122 * python/py-symbol.c (sympy_needs_frame): New function.
2123 (sympy_value): New function.
2124 (symbol_object_getset): Add "needs_frame".
2125 (symbol_object_methods): Add "value".
2126 * python/py-frame.c (frame_object_type): No longer static.
2128 2012-02-07 Tom Tromey <tromey@redhat.com>
2131 * python/py-symbol.c (sympy_line): New function.
2132 (symbol_object_getset): Add "line".
2134 2012-02-07 Tom Tromey <tromey@redhat.com>
2136 * charset.c (find_charset_names): Check 'in' against NULL.
2138 2012-02-06 Doug Evans <dje@google.com>
2140 * gdbtypes.h (struct main_type): Change type of name,tag_name,
2141 and fields.name members from char * to const char *. All uses updated.
2142 (struct cplus_struct_type): Change type of fn_fieldlists.name member
2143 from char * to const char *. All uses updated.
2144 (type_name_no_tag): Update.
2145 (lookup_unsigned_typename, lookup_signed_typename): Update.
2146 * gdbtypes.c (type_name_no_tag): Change result type
2147 from char * to const char *. All callers updated.
2148 (lookup_unsigned_typename, lookup_signed_typename): Change type of
2149 name parameter from char * to const char *.
2150 * symtab.h (struct cplus_specific): Change type of demangled_name
2151 member from char * to const char *. All uses updated.
2152 (struct general_symbol_info): Change type of name and
2153 mangled_lang.demangled_name members from char * to const char *.
2155 (symbol_get_demangled_name, symbol_natural_name): Update.
2156 (symbol_demangled_name, symbol_search_name): Update.
2157 * symtab.c (symbol_get_demangled_name): Change result type
2158 from char * to const char *. All callers updated.
2159 (symbol_natural_name, symbol_demangled_name): Ditto.
2160 (symbol_search_name): Ditto.
2161 (completion_list_add_name): Change type of symname,sym_text,
2162 text,word parameters from char * to const char *.
2163 (completion_list_objc_symbol): Change type of sym_text,
2164 text,word parameters from char * to const char *.
2165 * ada-lang.c (find_struct_field): Change type of name parameter
2166 from char * to const char *.
2167 (encoded_ordered_before): Similarly for N0,N1 parameters.
2168 (old_renaming_is_invisible): Similarly for function_name parameter.
2169 (ada_type_name): Change result type from char * to const char *.
2170 All callers updated.
2171 * ada-lang.h (ada_type_name): Update.
2172 * buildsym.c (hashname): Change type of name parameter
2173 from char * to const char *.
2174 * buildsym.h (hashname): Update.
2175 * dbxread.c (end_psymtab): Change type of include_list parameter
2176 from char ** to const char **.
2177 * dwarf2read.c (determine_prefix): Change result type
2178 from char * to const char *. All callers updated.
2179 * f-lang.c (find_common_for_function): Change type of name, funcname
2180 parameters from char * to const char *.
2181 * f-lang.c (find_common_for_function): Update.
2182 * f-valprint.c (list_all_visible_commons): Change type of funcname
2183 parameters from char * to const char *.
2184 * gdbarch.sh (static_transform_name): Change type of name parameter
2185 and result from char * to const char *.
2186 * gdbarch.c: Regenerate.
2187 * gdbarch.h: Regenerate.
2188 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
2189 of name parameter from char * to const char *.
2190 * jv-lang.c (java_primitive_type_from_name): Ditto.
2191 (java_demangled_signature_length): Similarly for signature parameter.
2192 (java_demangled_signature_copy): Ditto.
2193 (java_demangle_type_signature): Ditto.
2194 * jv-lang.h (java_primitive_type_from_name): Update.
2195 (java_demangle_type_signature): Update.
2196 * objc-lang.c (specialcmp): Change type of a,b parameters
2197 from char * to const char *.
2198 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
2199 from char * to const char *. All callers updated.
2200 * p-lang.h (is_pascal_string_type): Update.
2201 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
2202 of name parameter from char * to const char *.
2203 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
2204 * utils.c (fprintf_symbol_filtered): Ditto.
2205 * defs.h (fprintf_symbol_filtered): Update.
2206 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
2207 * stabsread.h (end_psymtab): Update.
2208 * stack.c (find_frame_funname): Change type of funname parameter
2209 from char ** to const char **.
2210 * stack.h (find_frame_funname): Update.
2211 * typeprint.c (type_print): Change type of varstring parameter
2212 from char * to const char *.
2213 * value.h (type_print): Update.
2214 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
2215 from char * to const char *. All callers updated.
2216 (xcoff_end_psymtab): Change type of include_list parameter
2217 from char ** to const char **. All callers updated.
2218 (swap_sym): Similarly for name parameter. All callers updated.
2219 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
2221 (process_coff_symbol): Use xstrdup.
2222 * stabsread.c (stabs_method_name_from_physname): Renamed from
2223 update_method_name_from_physname. Change result type from void
2224 to char *. All callers updated.
2225 (read_member_functions): In has_destructor case, store name in objfile
2226 obstack instead of malloc space. In !has_stub case, fix mem leak.
2228 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
2230 * configure: Rebuild.
2231 * configure.ac: Put -L../bfd and -L../libiberty at the front of
2234 2012-02-03 Kevin Buettner <kevinb@redhat.com>
2236 * configure.tgt (rl78-*-elf): New target.
2237 * rl78-tdep.c: New file.
2239 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2241 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
2242 and continue the loop. Add QUIT statement.
2244 2012-02-03 Tom Tromey <tromey@redhat.com>
2247 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
2248 bfd_lookup_symbol_from_symtab.
2249 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2250 gdb_bfd_lookup_symbol_from_symtab.
2252 2012-02-03 Joel Brobecker <brobecker@adacore.com>
2254 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
2255 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
2256 symbol. Add assertion that sym2 is never NULL.
2258 2012-02-02 Doug Evans <dje@google.com>
2260 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
2261 "name" parameter to const char ** from char **. All callers updated.
2262 (find_pc_partial_function): Ditto.
2263 (cache_pc_function_name): Change type to const char * from char *.
2264 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
2265 (find_pc_partial_function): Update.
2266 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
2267 type of "name" parameter to const char * from char *.
2269 * arch-utils.c (generic_in_solib_return_trampoline): Change
2270 type of "name" parameter to const char * from char *.
2271 * arch-utils.h (generic_in_solib_return_trampoline): Update.
2272 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
2273 type of "name" parameter to const char * from char *.
2274 * gdbarch.sh (in_solib_return_trampoline): Ditto.
2275 * gdbarch.c: Regenerate.
2276 * gdbarch.h: Regenerate.
2277 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
2278 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
2279 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
2280 type of "name" parameter to const char * from char *.
2281 * skip.c (skip_function_pc): Ditto.
2282 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
2283 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
2284 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
2285 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
2286 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
2287 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
2288 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
2289 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
2290 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
2292 2012-02-02 Pedro Alves <palves@redhat.com>
2294 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
2295 the current inferior has no execution. Make sure the current
2296 remote process matches gdb's current inferior.
2298 2012-02-02 Tom Tromey <tromey@redhat.com>
2301 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
2304 2012-02-02 Tom Tromey <tromey@redhat.com>
2307 * symtab.c (lookup_language_this): Set block_found.
2309 2012-02-01 Tom Tromey <tromey@redhat.com>
2312 * jit.c (struct jit_inferior_data): Rewrite.
2313 (struct jit_objfile_data): New.
2314 (get_jit_objfile_data): New function.
2315 (add_objfile_entry): Update.
2316 (jit_read_descriptor): Return int. Replace descriptor_addr
2317 argument with inf_data. Update. Don't call error.
2318 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
2320 (jit_inferior_init): Don't look up descriptor. Don't call error.
2321 (jit_reset_inferior_data_and_breakpoints)
2322 (jit_inferior_created_observer): Remove.
2323 (jit_inferior_exit_hook): Update.
2324 (jit_executable_changed_observer): Remove.
2325 (jit_event_handler): Update.
2326 (free_objfile_data): Reset inferior data if needed.
2327 (_initialize_jit): Update.
2329 2012-02-01 Tom Tromey <tromey@redhat.com>
2331 * jit.c (bfd_open_from_target_memory): Move higher in file.
2333 2012-02-01 Tristan Gingold <gingold@adacore.com>
2335 * libunwind-frame.c (libunwind_load): Display message if dlopen
2338 2012-02-01 Gary Benson <gbenson@redhat.com>
2340 * symtab.h (symbol_found_callback_ftype): New typedef.
2341 (iterate_over_symbols): Use the above.
2342 * symtab.c (iterate_over_symbols): Likewise.
2343 * language.h (language_defn->la_iterate_over_symbols): Likewise.
2344 * ada-lang.c (ada_iterate_over_symbols): Likewise.
2345 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
2346 (iterate_name_matcher): Document return values.
2347 (collect_one_symbol): Likewise.
2348 (collect_function_symbols): Likewise.
2349 (collect_symbols): Likewise.
2351 2012-02-01 Tom Tromey <tromey@redhat.com>
2353 * ada-lang.c (resolve_subexp): Update.
2354 (ada_lookup_symbol_list): Add 'full_search' argument.
2355 (ada_iterate_over_symbols): Pass 0 as full_search argument to
2356 ada_lookup_symbol_list.
2357 (ada_lookup_encoded_symbol): Update.
2358 (get_var_value): Update.
2359 * ada-exp.y (block_lookup): Update.
2360 (write_var_or_type): Update.
2361 (write_name_assoc): Update.
2362 * ada-lang.h (ada_lookup_symbol_list): Update.
2364 2012-01-31 Tom Tromey <tromey@redhat.com>
2366 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
2369 2012-01-31 Doug Evans <dje@google.com>
2371 * symtab.h: Remove outdated comment.
2372 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
2374 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
2376 Fix build error in Darwin port.
2377 * i386-darwin-nat.c: Include i386-nat.h.
2379 2012-01-30 Tom Tromey <tromey@redhat.com>
2381 PR breakpoints/13568:
2382 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
2383 argument. Check for recursive includes.
2384 (dwarf_decode_macros): Create an include hash.
2386 2012-01-30 Michael Eager <eager@eagercon.com>
2388 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
2389 * ppc-linux-tdep.c: Include glibc-tdep.h.
2390 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
2391 (powerpc_linux_in_plt_stub): New function.
2392 (powerpc_linux_in_dynsym_resolve_code): New function.
2393 (ppc_skip_trampoline_code): New function.
2394 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
2395 Use glibc_skip_solib_resolver.
2397 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2399 Code cleanup: Make 1440 bytes of data segment read-only.
2400 * arch-utils.c (endian_enum): Make it const char *const [].
2401 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
2403 * breakpoint.c (always_inserted_enums): Likewise.
2404 * cli/cli-cmds.c (script_ext_enums): Likewise.
2405 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
2406 enumlist parameter const char *const *.
2407 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
2408 const char *const *.
2409 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
2410 parameter const char *const *.
2411 * cris-tdep.c (cris_modes): Make it const char *const [].
2412 * filesystem.c (target_file_system_kinds): Likewise.
2413 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
2414 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
2415 (can_use_displaced_stepping_enum, scheduler_enums)
2416 (exec_direction_names): Likewise.
2417 * language.c (_initialize_language): Make the type_or_range_names and
2418 case_sensitive_names variables const char *const [].
2419 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
2420 * python/python.c (python_excp_enums): Likewise.
2421 * remote.c (interrupt_sequence_modes): Likewise.
2422 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
2423 * serial.c (logbase_enums): Likewise.
2424 * sh-tdep.c (sh_cc_enum): Likewise.
2425 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
2427 * symtab.c (multiple_symbols_modes): Likewise.
2428 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
2430 * utils.c (internal_problem_modes): Likewise.
2432 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2434 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
2435 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
2438 2012-01-27 Doug Evans <dje@google.com>
2440 * configure.ac (with_python): Fix absolute path handling for win32.
2441 * configure: Regenerate.
2443 2012-01-26 Doug Evans <dje@google.com>
2445 * symtab.c: Whitespace cleanup, no code changes.
2447 * symtab.c (lookup_symbol_in_language): Improve comment.
2448 (lookup_symbol_aux): Fix comment.
2450 * psymtab.c (add_psymbol_to_list): Result is now "void".
2451 * psympriv.h (add_psymbol_to_list): Update.
2453 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
2455 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2457 Do not open script filenames twice.
2458 * cli/cli-cmds.c (source_script_from_stream): Pass to
2459 source_python_script also STREAM.
2460 * python/py-auto-load.c (source_section_scripts): Pass to
2461 source_python_script_for_objfile also STREAM.
2462 (auto_load_objfile_script): Pass to source_python_script_for_objfile
2464 * python/python-internal.h (source_python_script_for_objfile): New
2465 parameter file, rename parameter file to filename.
2466 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
2467 instead if !_WIN32. Update the function comment.
2468 (source_python_script, source_python_script_for_objfile)
2469 (source_python_script): New parameter file, rename parameter file to
2470 filename. Pass FILENAME to python_run_simple_file.
2471 * python/python.h (source_python_script): New parameter file, rename
2472 parameter file to filename.
2474 2012-01-26 Pedro Alves <palves@redhat.com>
2476 * corelow.c (core_has_fake_pid): Delete.
2477 (core_close): Delete references to `core_has_fake_pid'.
2478 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
2479 (core_open): Delete references to `core_has_fake_pid'.
2480 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
2483 2012-01-26 Joel Brobecker <brobecker@adacore.com>
2485 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
2486 Remove language parameter from name_matcher. Adjust the comment.
2487 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
2488 Remove language parameter.
2489 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
2490 * linespec.c (iterate_name_matcher): Likewise.
2491 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
2492 name_matcher. Adjust call accordingly.
2493 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
2494 (maintenance_check_symtabs): Adjust type of parameter "fun".
2495 * psymtab.h (maintenance_check_symtabs): Likewise.
2497 2012-01-26 Joel Brobecker <brobecker@adacore.com>
2499 * language.h (symbol_name_match_p_ftype): New typedef.
2500 (struct language_defn): Replace field la_symbol_name_compare
2501 by la_get_symbol_name_match_p.
2502 * ada-lang.c (ada_get_symbol_name_match_p): New function.
2503 (ada_language_defn): Use it.
2504 * linespec.c (struct symbol_matcher_data): New type.
2505 (iterate_name_matcher): Rewrite.
2506 (iterate_over_all_matching_symtabs): Pass a pointer to
2507 a symbol_matcher_data struct to expand_symtabs_matching
2508 instead of just the lookup name.
2509 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
2510 opencl-lang.c, p-lang.c, language.c: Delete field
2511 la_symbol_name_compare, and replace by NULL for new field
2512 la_get_symbol_name_match_p.
2513 * symfile.h (struct quick_symbol_functions): Update comment.
2515 2012-01-25 Tom Tromey <tromey@redhat.com>
2517 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
2520 2012-01-24 Tom Tromey <tromey@redhat.com>
2523 * solib.c (update_solib_list): Update the program space's
2524 added_solibs and deleted_solibs fields.
2525 * progspace.h (struct program_space) <added_solibs,
2526 deleted_solibs>: New fields.
2527 (clear_program_space_solib_cache): Declare.
2528 * progspace.c (release_program_space): Call
2529 clear_program_space_solib_cache.
2530 (clear_program_space_solib_cache): New function.
2531 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
2532 bpstat_stop_status. Use handle_solib_event.
2533 * breakpoint.c: Include gdb_regex.h.
2534 (print_solib_event): New function.
2535 (bpstat_print): Use print_solib_event.
2536 (bpstat_stop_status): Add special case for bp_shlib_event.
2537 (handle_solib_event): New function.
2538 (bpstat_what): Use handle_solib_event.
2539 (struct solib_catchpoint): New.
2540 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
2541 (breakpoint_hit_catch_solib, check_status_catch_solib)
2542 (print_it_catch_solib, print_one_catch_solib)
2543 (print_mention_catch_solib, print_recreate_catch_solib): New
2545 (catch_solib_breakpoint_ops): New global.
2546 (catch_load_or_unload, catch_load_command_1)
2547 (catch_unload_command_1): New functions.
2548 (internal_bkpt_check_status): Add special case for
2550 (internal_bkpt_print_it): Use print_solib_event.
2551 (initialize_breakpoint_ops): Initialize
2552 catch_solib_breakpoint_ops.
2553 (_initialize_breakpoint): Register "catch load" and "catch
2555 * breakpoint.h (handle_solib_event): Declare.
2556 * NEWS: Add entry for "catch load" and "catch unload".
2558 2012-01-24 Tom Tromey <tromey@redhat.com>
2560 * ada-lang.c: Include gdb_vecs.h.
2561 * charset.c: Include gdb_vecs.h.
2562 * tracepoint.h: Include gdb_vecs.h.
2563 * gdb_vecs.h: New file.
2565 2012-01-24 Pedro Alves <pedro@codesourcery.com>
2567 * breakpoint.c (breakpoint_hit_catch_fork)
2568 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
2569 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
2570 * infrun.c (inferior_has_forked, inferior_has_vforked)
2571 (inferior_has_execd, inferior_has_called_syscall): Delete.
2572 (handle_syscall_event): Get syscall_number from the execution
2573 control state's wait status.
2574 (wait_for_inferior): Don't clear syscall_number.
2576 2012-01-24 Pedro Alves <palves@redhat.com>
2578 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
2579 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
2580 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
2581 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
2583 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
2584 false for events other than TARGET_SIGNAL_TRAP.
2585 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
2587 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
2588 events other than TARGET_SIGNAL_TRAP.
2589 (tracepoint_breakpoint_hit): Add `ws' parameter.
2590 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
2592 (bpstat_stop_status): Same.
2593 (pc_at_non_inline_function): Same.
2594 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
2595 to pass the current event's waitstatus to bpstat_stop_status
2596 and pc_at_non_inline_function.
2598 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2601 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
2602 Update the function comment for it.
2603 (source_script_with_search): Call make_cleanup_fclose for STREAM.
2604 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
2607 2012-01-24 Pedro Alves <palves@redhat.com>
2609 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
2610 outside `bs->stop' block.
2611 (bpstat_what): Rework bp_shlib_event handling.
2612 (internal_bkpt_check_status): If the breakpoint is a
2613 bp_shlib_event, then set bs->stop and bs->print if
2614 stop_on_solib_events is set.
2616 2012-01-24 Gary Benson <gbenson@redhat.com>
2618 Delete #if 0'd out code.
2619 * stack.c (print_frame_label_vars): Remove.
2620 (catch_info): Likewise.
2621 (_initialize_stack): Remove "info catch" command.
2622 * NEWS: Mention the above.
2624 2012-01-24 Pedro Alves <palves@redhat.com>
2626 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
2628 (remote_notice_new_inferior): If the remote end doesn't support
2629 the multiprocess extensions, then the PID is fake.
2630 (add_current_inferior_and_thread): New.
2631 (remote_start_remote): Use it.
2632 (extended_remote_attach_1): Adjust.
2633 (extended_remote_create_inferior_1): Use
2634 add_current_inferior_and_thread.
2636 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2638 Fix watchpoints to be specific for each inferior.
2639 * breakpoint.c (watchpoint_in_thread_scope): Verify also
2640 current_program_space.
2641 * i386-nat.c (i386_inferior_data_cleanup): New.
2642 (i386_inferior_data_get): Replace variable inf_data_local by an
2644 (i386_use_watchpoints): Initialize i386_inferior_data.
2645 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
2646 specific iterate_over_lwps.
2648 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2650 Fix watchpoints across inferior fork.
2651 * amd64-linux-nat.c (update_debug_registers_callback): Update the
2652 comment for linux_nat_iterate_watchpoint_lwps.
2653 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
2654 linux_nat_iterate_watchpoint_lwps.
2655 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
2656 * i386-linux-nat.c (update_debug_registers_callback): Update the
2657 comment for linux_nat_iterate_watchpoint_lwps.
2658 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
2659 linux_nat_iterate_watchpoint_lwps.
2660 (i386_linux_prepare_to_resume): New comment on Linux kernel.
2661 * i386-nat.c: Include inferior.h.
2662 (dr_mirror): Remove.
2663 (i386_inferior_data, struct i386_inferior_data)
2664 (i386_inferior_data_get): New.
2665 (i386_debug_reg_state): Use i386_inferior_data_get.
2666 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
2667 (i386_insert_watchpoint, i386_remove_watchpoint)
2668 (i386_stopped_data_address, i386_insert_hw_breakpoint)
2669 (i386_remove_hw_breakpoint): New variable state, use
2670 i386_debug_reg_state instead of DR_MIRROR.
2671 * linux-nat.c (delete_lwp): New declaration.
2672 (num_lwps): Move here from downwards.
2673 (delete_lwp_cleanup): New.
2674 (linux_child_follow_fork): Create new child_lp, call
2675 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
2677 (num_lwps): Move upwards.
2678 (linux_nat_iterate_watchpoint_lwps): New.
2679 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
2680 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
2682 2012-01-24 Joel Brobecker <brobecker@adacore.com>
2686 2012-01-23 Pedro Alves <palves@redhat.com>
2688 * top.c (caution): Rename to ...
2689 (confirm): ... this.
2690 (show_caution): Rename to ...
2691 (show_confirm): ... this.
2692 (quit_cover): Adjust.
2693 (init_main): Adjust.
2694 * top.h (caution): Rename to ...
2695 (confirm): ... this.
2696 * utils.c (internal_vproblem, defaulted_query): Adjust.
2698 2012-01-23 Pedro Alves <palves@redhat.com>
2700 * top.c (caution): Update comment.
2701 (execute_command): Don't consider the current value of `caution'.
2703 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2705 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
2707 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
2709 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2710 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
2711 * target.c (target_fileio_pwrite): Remove buffer address from
2713 (target_fileio_pread): Likewise.
2715 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2717 * NEWS: Document remote "info proc" and "generate-core-file".
2719 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2721 * gdbarch.sh (find_memory_regions): New callback.
2722 * gdbarch.c, gdbarch.h: Regenerate.
2724 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
2725 callback before falling back to target method.
2727 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
2728 (linux_target_install_ops): No longer install it.
2730 * linux-tdep.c (linux_find_memory_regions): New function.
2731 (linux_init_abi): Install it.
2733 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2735 * gdbarch.sh (make_corefile_notes): New architecture callback.
2736 * gdbarch.c: Regenerate.
2737 * gdbarch.h: Likewise.
2739 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
2740 before target_make_corefile_notes. If NULL is returned, the
2741 target does not support core file generation.
2743 * linux-nat.c: Include "linux-tdep.h".
2744 (find_signalled_thread, find_stop_signal): Remove.
2745 (linux_nat_do_thread_registers): Likewise.
2746 (struct linux_nat_corefile_thread_data): Likewise.
2747 (linux_nat_corefile_thread_callback): Likewise.
2748 (iterate_over_spus): Likewise.
2749 (struct linux_spu_corefile_data): Likewise.
2750 (linux_spu_corefile_callback): Likewise.
2751 (linux_spu_make_corefile_notes): Likewise.
2752 (linux_nat_collect_thread_registers): New function.
2753 (linux_nat_make_corefile_notes): Replace contents by call to
2754 linux_make_corefile_notes passing linux_nat_collect_thread_registers
2755 as native-only callback.
2757 * linux-tdep.h: Include "bfd.h".
2758 (struct regcache): Add forward declaration.
2759 (linux_collect_thread_registers_ftype): New typedef.
2760 (linux_make_corefile_notes): Add prototype.
2761 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
2762 "regset.h", and "elf-bfd.h".
2763 (find_signalled_thread, find_stop_signal): New functions.
2764 (linux_spu_make_corefile_notes): Likewise.
2765 (linux_collect_thread_registers): Likewise.
2766 (struct linux_corefile_thread_data): New data structure.
2767 (linux_corefile_thread_callback): New funcion.
2768 (linux_make_corefile_notes): Likewise.
2769 (linux_make_corefile_notes_1): Likewise.
2770 (linux_init_abi): Install it.
2772 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2774 * gdbarch.sh (info_proc): New callback.
2775 * gdbarch.c, gdbarch.h: Regenerate.
2777 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
2778 before falling back to the target info_proc callback.
2780 * linux-nat.c: Do not include "cli/cli-utils.h".
2781 (linux_nat_info_proc): Remove.
2782 (linux_target_install_ops): No longer install it.
2784 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
2785 (read_mapping): New function.
2786 (linux_info_proc): Likewise.
2787 (linux_init_abi): Install it.
2789 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2791 * defs.h (enum info_proc_what): Moved here from linux-nat.c
2792 * infcmd.c: (info_proc_cmd_1): New function.
2793 (info_proc_cmd): New function, moved here from equivalent routine
2794 orignally in linux-nat.c.
2795 (info_proc_cmd_mappings): Likewise.
2796 (info_proc_cmd_stat): Likewise.
2797 (info_proc_cmd_status): Likewise.
2798 (info_proc_cmd_cwd): Likewise.
2799 (info_proc_cmd_cmdline): Likewise.
2800 (info_proc_cmd_exe): Likewise.
2801 (info_proc_cmd_all): Likewise.
2802 (_initialize_infcmd): Install "info proc" command and subcommands.
2804 * target.h (struct target_ops): Add to_info_proc.
2805 (target_info_proc): Add prototype.
2806 * target.c (target_info_proc): New function.
2808 * procfs.c (procfs_info_proc): Add prototype.
2809 (info_proc_cmd): Rename into ...
2810 (procfs_info_proc): ... this. Update argument types as appropriate
2811 for a to_info_proc implementation. Handle "what" argument.
2812 (procfs_target): Install procfs_info_proc.
2813 (_initialize_procfs): No longer install "info proc" command.
2815 * linux-nat.c: (enum info_proc_what): Remove.
2816 (linux_nat_info_proc_cmd_1): Rename into ...
2817 (linux_nat_info_proc): ... this. Update argument types as appropriate
2818 for a to_info_proc implementation.
2819 (linux_nat_info_proc_cmd): Remove.
2820 (linux_nat_info_proc_cmd_mappings): Likewise.
2821 (linux_nat_info_proc_cmd_stat): Likewise.
2822 (linux_nat_info_proc_cmd_status): Likewise.
2823 (linux_nat_info_proc_cmd_cwd): Likewise.
2824 (linux_nat_info_proc_cmd_cmdline): Likewise.
2825 (linux_nat_info_proc_cmd_exe): Likewise.
2826 (linux_nat_info_proc_cmd_all): Likewise.
2827 (linux_target_install_ops): Install linux_nat_info_proc.
2828 (_initialize_linux_nat): No longer install "info proc" command
2831 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2833 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
2834 * config.in, configure: Regenerate.
2836 * target.h (struct target_ops): Add to_fileio_readlink.
2837 (target_fileio_readlink): Add prototype.
2838 * target.c (target_fileio_readlink): New function.
2840 * inf-child.c: Conditionally include <sys/param.h>.
2841 (inf_child_fileio_readlink): New function.
2842 (inf_child_target): Install it.
2844 * remote.c (PACKET_vFile_readlink): New enum value.
2845 (remote_hostio_readlink): New function.
2846 (init_remote_ops): Install it.
2847 (_initialize_remote): Handle vFile:readlink packet type.
2849 2012-01-20 Pedro Alves <palves@redhat.com>
2850 Ulrich Weigand <ulrich.weigand@linaro.org>
2852 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
2853 * config.in, configure: Regenerate.
2855 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
2856 to_fileio_pread, to_fileio_close, to_fileio_unlink.
2857 (target_fileio_open): Add prototype.
2858 (target_fileio_pwrite): Likewise.
2859 (target_fileio_pread): Likewise.
2860 (target_fileio_close): Likewise.
2861 (target_fileio_unlink): Likewise.
2862 (target_fileio_read_alloc): Likewise.
2863 (target_fileio_read_stralloc): Likewise.
2865 * target.c: Include "gdb/fileio.h".
2866 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
2867 (default_fileio_target): New function.
2868 (target_fileio_open): Likewise.
2869 (target_fileio_pwrite): Likewise.
2870 (target_fileio_pread): Likewise.
2871 (target_fileio_close): Likewise.
2872 (target_fileio_unlink): Likewise.
2873 (target_fileio_close_cleanup): Likewise.
2874 (target_fileio_read_alloc_1): Likewise.
2875 (target_fileio_read_alloc): Likewise.
2876 (target_fileio_read_stralloc): Likewise.
2878 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
2879 <fcntl.h>, and <unistd.h>.
2880 (inf_child_fileio_open_flags_to_host): New function.
2881 (inf_child_errno_to_fileio_error): Likewise.
2882 (inf_child_fileio_open): Likewise.
2883 (inf_child_fileio_pwrite): Likewise.
2884 (inf_child_fileio_pread): Likewise.
2885 (inf_child_fileio_close): Likewise.
2886 (inf_child_fileio_unlink): Likewise.
2887 (inf_child_target): Install to_fileio routines.
2889 * remote.c (init_remote_ops): Install to_fileio routines.
2891 2012-01-20 Pedro Alves <palves@redhat.com>
2892 Ulrich Weigand <ulrich.weigand@linaro.org>
2894 * remote.c (remote_multi_process_p): Only check for multi-process
2895 protocol feature, do not check for extended protocol.
2896 (remote_supports_multi_process): Check for extended protocol here.
2897 (set_general_process): Likewise.
2898 (extended_remote_kill): Likewise.
2899 (remote_pid_to_str): Likewise.
2900 (remote_query_supported): Always query multiprocess mode.
2902 2012-01-20 Pedro Alves <palves@redhat.com>
2903 Ulrich Weigand <ulrich.weigand@linaro.org>
2905 * inferior.h (struct inferior): Add fake_pid_p.
2906 * inferior.c (exit_inferior_1): Clear fake_pid_p.
2907 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
2908 magic_null_ptid since the remote side doesn't provide a real PID.
2910 2012-01-19 Tom Tromey <tromey@redhat.com>
2912 * NEWS: Combine the two Python sections.
2914 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2916 * target.h (target_close): Update comment on the target's unpush state.
2918 2012-01-19 Pedro Alves <palves@redhat.com>
2920 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
2921 linux_nat_async directly instead of going through the target
2923 * target.c (unpush_target): Close target after unpushing it, not
2926 2012-01-19 Gary Benson <gbenson@redhat.com>
2928 * mdebugread.c (sort_blocks): Replace integer constants with ones
2929 derived from FIRST_LOCAL_BLOCK.
2931 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
2932 Jan Kratochvil <jan.kratochvil@redhat.com>
2935 * symfile.c (find_separate_debug_file): New function.
2936 (terminate_after_last_dir_separator): Likewise.
2937 (find_separate_debug_file_by_debuglink): Also try realpath.
2938 * configure.ac (AC_CHECK_FUNCS): Add lstat.
2939 * configure: Regenerate.
2940 * config.in: Regenerate.
2942 2012-01-18 Doug Evans <dje@google.com>
2944 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
2945 (main.o): Remove rule.
2946 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
2947 (--with-sysroot): Rewrite.
2948 * configure: Regenerate.
2949 * config.in: Regenerate.
2951 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
2953 * parse.c (initialize_expout): New function.
2954 (reallocate_expout): Likewise.
2955 (parse_exp_in_context): Use `initialize_expout' and
2956 `reallocate_expout' when appropriate.
2958 2012-01-18 Pedro Alves <palves@redhat.com>
2960 * record.c (struct record_breakpoint, record_breakpoint_p)
2961 (record_breakpoints): New.
2962 (record_insert_breakpoint, record_remove_breakpoint): Manage
2963 record breakpoints list. Only remove breakpoints from the
2964 inferior if they had been inserted there in the first place.
2966 2012-01-17 Doug Evans <dje@google.com>
2968 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
2969 if we know we don't have a file name to look for.
2971 2012-01-17 Pedro Alves <palves@redhat.com>
2973 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
2974 the frame's stop reason is UNWIND_UNAVAILABLE.
2976 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2978 Fix compilation error.
2979 * m2-exp.y (yyerror): Use ANSI C prototype.
2981 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
2983 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
2984 (growbuf_by_size): Likewise.
2985 (yyerror): Likewise.
2986 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
2987 (modblock): Remove variable (was #if 0'ed).
2988 (parse_number): Convert prototype from K&R to ANSI C.
2989 (yyerror): Likewise.
2990 * objc-exp.y (parse_number): Likewise.
2991 (yyerror): Likewise.
2992 (yylex): Remove #if 0'ed code.
2993 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
2994 (yyerror): Likewise.
2996 2012-01-16 Tom Tromey <tromey@redhat.com>
2999 * symtab.h (compare_filenames_for_search): Declare.
3000 * symtab.c (compare_filenames_for_search): New function.
3001 (iterate_over_some_symtabs): Use it.
3002 * symfile.h (struct quick_symbol_functions)
3003 <map_symtabs_matching_filename>: Change spec.
3004 * psymtab.c (partial_map_symtabs_matching_filename): Use
3005 compare_filenames_for_search. Update for new spec.
3006 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
3007 compare_filenames_for_search. Update for new spec.
3008 * breakpoint.c (clear_command): Use compare_filenames_for_search.
3010 2012-01-16 Tom Tromey <tromey@redhat.com>
3013 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
3014 (struct main_type) <flag_flag_enum>: New field.
3015 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
3016 * NEWS: Add entries.
3017 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
3019 * python/lib/gdb/printing.py (_EnumInstance): New class.
3020 (FlagEnumerationPrinter): Likewise.
3022 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3024 * breakpoint.c (create_sals_from_address_default): New function.
3025 (create_breakpoints_sal_default): Likewise.
3026 (decode_linespec_default): Likewise.
3027 (is_marker_spec): Removed.
3028 (strace_marker_p): New function.
3029 (init_breakpoint_sal): Using `strace_marker_p' instead of
3031 (create_breakpoint): Call method `create_sals_from_address' from
3032 breakpoint_ops, replacing code that created SALs conditionally
3033 on the type of the breakpoint. Call method `create_breakpoints_sal',
3034 replacing code that created breakpoints conditionally on the type
3036 (base_breakpoint_create_sals_from_address): New function.
3037 (base_breakpoint_create_breakpoints_sal): Likewise.
3038 (base_breakpoint_decode_linespec): Likewise.
3039 (base_breakpoint_ops): Add methods
3040 `base_breakpoint_create_sals_from_address',
3041 `base_breakpoint_create_breakpoints_sal' and
3042 `base_breakpoint_decode_linespec'.
3043 (bkpt_create_sals_from_address): New function.
3044 (bkpt_create_breakpoints_sal): Likewise.
3045 (bkpt_decode_linespec): Likewise.
3046 (tracepoint_create_sals_from_address): Likewise.
3047 (tracepoint_create_breakpoints_sal): Likewise.
3048 (tracepoint_decode_linespec): Likewise.
3049 (strace_marker_create_sals_from_address): Likewise.
3050 (strace_marker_create_breakpoints_sal): Likewise.
3051 (strace_marker_decode_linespec): Likewise.
3052 (strace_marker_breakpoint_ops): New variable.
3053 (addr_string_to_sals): Remove `marker_spec'. Call method
3054 `decode_linespec' from breakpoint_ops, replacing code that decoded
3055 an address string into a SAL. Use `strace_marker_p' instead of
3057 (strace_command): Decide whether we are dealing with a static
3058 tracepoint with marker or not. Use the appropriate breakpoint_ops.
3059 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
3060 * breakpoint.h (linespec_result, linespec_sals): New forward
3062 (breakpoint_ops) <create_sals_from_address>,
3063 <create_breakpoints_sal>, <decode_linespec>: New methods.
3065 2012-01-14 Doug Evans <dje@google.com>
3067 * NEWS: Update text for "maint set python print-stack".
3068 It is deprecated in gdb 7.4 and deleted in 7.5.
3070 2012-01-13 Eli Zaretskii <eliz@gnu.org>
3072 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
3075 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3077 * configure: Regenerate.
3078 * config.in: Regenerate.
3080 2012-01-12 Keith Seitz <keiths@redhat.com>
3083 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
3084 (ANONYMOUS_UNION_NAME): Define.
3085 (is_path_expr_parent): New function.
3086 (get_path_expr_parent): New function.
3087 (is_anonymous_child): New function.
3088 (create_child_with_value): If the child is anonymous and without
3089 a name, assign an object name to it.
3090 (c_describe_child): Use get_path_expr_parent to determine
3091 the parent expression.
3092 If there field represents an anonymous struct or union and
3093 has no name, set an appropriate display name and expression.
3094 (cplus_describe_child): Likewise.
3096 2012-01-12 Pedro Alves <palves@redhat.com>
3098 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
3099 available when %ebp is found to be zero (outermost).
3101 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
3103 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
3104 an internal gdb_static_assert.
3105 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
3107 2012-01-11 Tom Tromey <tromey@redhat.com>
3110 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
3111 catch" and "catch throw".
3113 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
3115 * blockframe.c (block_innermost_frame): Start search from selected
3116 frame, if present, or otherwise the current frame.
3118 * c-exp.y (variable): Update innermost_block for
3119 'block COLONCOLON NAME' clause.
3120 * m2-exp.y (variable): Ditto.
3121 * objc-exp.y (variable): Ditto.
3123 2012-01-10 Tom Tromey <tromey@redhat.com>
3126 * python/python.c (finish_python_initialization): Set sys.argv.
3128 2012-01-10 Doug Evans <dje@google.com>
3130 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
3131 "want_line_info". All callers updated.
3132 (dwarf_decode_lines_1): New function.
3133 (handle_DW_AT_stmt_list): Add function comment.
3134 New arg "want_line_info". All callers updated.
3135 (read_file_scope,read_type_unit_scope): Move comment from
3136 handle_DW_AT_stmt_list to here.
3138 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3140 Fix regression after libiberty/ update for GCC PR 6057 and others.
3141 * c-exp.y (operator) <OPERATOR DELETE>
3142 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
3143 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
3144 (make_builtin_type, make_name): New variable i, add gdb_assert.
3145 (operator) <OPERATOR NEW>: Update ARGS to 3.
3146 (operator) <OPERATOR DELETE>: Add trailing space.
3147 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
3148 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
3149 * cp-support.c (cp_canonicalize_string): Check NULL from
3150 cp_comp_to_string, call warning and return.
3152 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3154 Fix duplicate .o files after omitting libbfd.a.
3155 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
3156 (SFILES): Add corelow.c.
3157 (COMMON_OBS): Add corelow.o.
3158 (ALLDEPFILES): Remove corelow.c.
3159 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
3160 * config/alpha/alpha-osf3.mh: Likewise.
3161 * config/alpha/fbsd.mh: Likewise.
3162 * config/arm/nbsdaout.mh: Likewise.
3163 * config/arm/nbsdelf.mh: Likewise.
3164 * config/i386/i386gnu.mh: Likewise.
3165 * config/ia64/hpux.mh: Likewise.
3166 * config/ia64/linux.mh: Likewise.
3167 * config/m32r/linux.mh: Likewise.
3168 * config/m68k/linux.mh: Likewise.
3169 * config/mips/irix5.mh: Likewise.
3170 * config/mips/irix6.mh: Likewise.
3171 * config/pa/hpux.mh: Likewise.
3172 * config/pa/linux.mh: Likewise.
3173 * config/powerpc/aix.mh: Likewise.
3174 * config/sparc/linux.mh: Likewise.
3175 * config/sparc/linux64.mh: Likewise.
3176 * config/sparc/sol2.mh: Likewise.
3177 * config/vax/vax.mh: Likewise.
3178 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
3179 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
3180 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
3181 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
3182 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
3183 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
3184 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
3185 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
3186 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
3187 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
3188 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
3189 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
3190 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
3191 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
3192 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
3193 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
3194 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
3195 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
3196 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
3197 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
3198 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
3199 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
3200 corelow.o from gdb_target_obs.
3201 * corefile.c (core_target): Update the comment on NULL value.
3202 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
3203 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
3204 MATCHES. Drop YUMMY set on NULL.
3205 (core_close): Do not call exit_inferior_silent on zero PID. Do not
3206 reclaim CORE_DATA if it is already NULL.
3208 2012-01-09 Doug Evans <dje@google.com>
3210 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
3211 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
3213 2012-01-09 Keith Seitz <keiths@redhat.com>
3215 * breakpoint.c (wrapper.h): Don't include.
3217 2012-01-09 Keith Seitz <keiths@redhat.com>
3219 * Makefile.in (SFILES): Remove wrapper.c.
3220 (HFILES_NO_SRCDIR): Remove wrapper.h.
3221 (COMMON_OBS): Remove wrapper.o.
3222 * cli/cli-interp.c: Don't inlude wrapper.h.
3223 * corelow.c: Likewise.
3224 (core_open): Replace gdb_target_find_new_threads with
3225 TRY_CATCH around target_find_new_threads.
3226 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
3227 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
3228 * varobj.c (varobj_create): Likewise for parse_exp_1 and
3229 evaluate_expression.
3230 (varobj_set_value): Likewise for evaluate_expression and
3232 (install_new_variable): Likewise for value_fetch_lazy.
3233 (adjust_value_for_child_access): Likewise for value_ind.
3234 (c_describe_child): Likewise for value_subscript and
3236 (c_value_of_root): Likewise for evaluate_expression.
3237 * wrapper.c: Remove.
3238 * wrapper.h: Remove.
3240 2012-01-09 Doug Evans <dje@google.com>
3242 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
3243 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
3244 "abfd" args with "section". All callers updated.
3245 Error checking code moved ...
3246 (error_check_comp_unit_head): ... here. New function.
3247 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
3248 Delete arg "abfd". New arg "type_offset". All callers updated.
3249 (create_debug_types_hash_table): Simplify by using
3250 read_and_check_type_unit_head.
3252 * parser-defs.h (namecopy): Delete.
3253 * parse.c (namecopy, namecopy_size): Move into copy_name.
3255 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3257 Partially fix duplicate .o files after omitting libbfd.a.
3258 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
3259 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3260 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
3261 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3262 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
3263 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
3264 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3266 2012-01-09 Pedro Alves <palves@redhat.com>
3268 * MAINTAINERS: Update my email address.
3270 2012-01-08 Doug Evans <dje@google.com>
3272 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
3273 n_type_units. Rename type_comp_units to all_type_units.
3275 (add_signatured_type_cu_to_table): Renamed from
3276 add_signatured_type_cu_to_list. All callers updated.
3278 * gdbtypes.h (struct cplus_struct_type): Delete member
3279 nfn_fields_total. All uses removed.
3281 2012-01-06 Doug Evans <dje@google.com>
3283 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
3285 (dwarf2_find_comp_unit): Delete.
3286 (process_psymtab_comp_unit): Make result "void".
3287 Delete args buffer, info_ptr, buffer_size, and replace with
3288 "section". All callers updated.
3289 (dwarf2_build_psymtabs_hard): Simplify.
3291 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
3292 Thiago Jung Bauermann <bauerman@br.ibm.com>
3294 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
3295 before `struct gdb_exception'.
3296 * breakpoint.c (update_global_location_list_nothrow)
3297 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
3298 * cp-abi.c (value_rtti_type): Likewise.
3299 * cp-support.c (cp_validate_operator): Likewise.
3300 * infrun.c (insert_exception_resume_breakpoint)
3301 (check_exception_resume, keep_going): Likewise.
3302 * mi-interp.c (mi_breakpoint_created)
3303 (mi_breakpoint_modified): Likewise.
3304 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
3305 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
3306 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
3308 2012-01-05 Doug Evans <dje@google.com>
3310 * dwarf2read.c (statement_prologue): Delete, unused.
3312 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
3313 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
3315 * dwarf2read.c (comp_unit_header): Delete, unused.
3317 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
3319 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
3320 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
3322 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
3324 * infrun.c (normal_stop): Don't skip calling the normal_stop
3325 observers if the thread was doing a multi-step, but stopped for
3326 some reason other than stepping.
3328 2012-01-05 Pedro Alves <alves.ped@gmail.com>
3330 * cli/cli-decode.h: Add comments.
3331 (CMD_LIST_AMBIGUOUS): Moved to command.h
3332 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3333 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
3334 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
3335 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
3336 (add_com, add_com_alias, add_info, add_info_alias)
3337 (complete_on_cmdlist, complete_on_enum, help_list): Remove
3339 * command.h: Add and adjust comments.
3340 (CMD_LIST_AMBIGUOUS): Moved here.
3341 (help_cmd, help_cmd_list): Delete declarations.
3343 2012-01-04 Doug Evans <dje@google.com>
3345 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
3346 All callers updated.
3347 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
3348 Replace all arguments with "per_cu". All callers updated.
3350 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
3352 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
3353 New arg "per_cu". All callers updated.
3355 Delete #if 0'd out code.
3356 * language.c (binop_result_type): Delete.
3357 (simple_type, ordered_type, same_type, integral_type): Delete.
3358 (numeric_type, character_type, string_type, boolean_type): Delete.
3359 (float_type, structured_type): Delete.
3360 * language.h: Update.
3362 2012-01-04 Tom Tromey <tromey@redhat.com>
3364 * python/py-value.c (valpy_binop): Initialize 'res_val'.
3366 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3368 * corefile.c (close_exec_file): Delete.
3369 (reopen_exec_file): Remove commented out code that seems related
3370 to close_exec_file, which is being deleted here.
3371 * inferior.h (close_exec_file): Delete.
3372 * fork-child.c (fork_inferior): Remove call to fork_inferior.
3374 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3376 * ada-lang.c: #include "cli/cli-utils.h".
3377 (get_selections): Use skip_spaces.
3378 (ada_get_next_arg): Use skip_spaces and skip_to_space.
3379 (catch_ada_exception_command_split): Use skip_spaces.
3380 (ada_decode_assert_location): Likewise.
3382 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3384 * linespec.c (decode_line_internal): Check for C++ or Java
3385 compound constructs only if the current language is C, C++
3388 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3391 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3392 Joel Brobecker <brobecker@adacore.com>
3393 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
3394 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3396 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
3397 fall through into AT_ENTRY_POINT.
3398 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
3400 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
3401 PPC_INSN_SIZE skip to 3 times.
3403 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3405 * linespec.c (add_minsym): Preserve function descriptors.
3407 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3409 * breakpoint.c (all_locations_are_pending): Consider locations
3410 in program spaces executing during startup pending as well.
3412 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3414 Copyright year update in most files of the GDB Project.
3416 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3418 * copyright.sh: Delete.
3419 * copyright.py: Rewrite.
3421 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3423 * gnulib/extra/update-copyright: New file, imported from gnulib.
3425 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3427 * README (Copyright and License Notices): New section.
3429 2012-01-03 Tom Tromey <tromey@redhat.com>
3432 * python/py-value.c (valpy_dereference, valpy_get_address
3433 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
3434 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
3435 (valpy_absolute, valpy_richcompare): Free intermediate values.
3437 2011-01-03 Joel Brobecker <brobecker@adacore.com>
3439 * ada-lang.c: Reformat the copyright notice.
3441 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3443 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3444 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
3445 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
3446 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
3447 Revert this part of:
3448 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3449 Build gdb directly from *.o files not using libgdb.a.
3450 * Makefile.in (COMMON_OBS): Remove solib-target.o.
3452 2012-01-02 Joel Brobecker <brobecker@adacore.com>
3454 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
3455 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
3456 Reformat the copyright header.
3458 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3460 Revert this part of:
3461 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3462 Remove the gdbtui binary.
3463 * gdb.c (main): Remove args.interpreter_p initialization.
3464 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
3465 * main.h (struct captured_main_args): Remove interpreter_p.
3467 2012-01-02 Joel Brobecker <brobecker@adacore.com>
3469 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
3471 2012-01-02 Joel Brobecker <brobecker@adacore.com>
3473 * top.c (print_gdb_version): Update copyright year.
3475 2012-01-02 Yao Qi <yao@codesourcery.com>
3477 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
3479 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3480 Joel Brobecker <brobecker@adacore.com>
3482 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
3483 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3485 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
3486 fall through into AT_ENTRY_POINT.
3487 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
3489 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
3490 PPC_INSN_SIZE skip to 3 times.
3492 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3494 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
3496 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
3498 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3500 Build gdb directly from *.o files not using libgdb.a.
3501 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
3502 (COMMON_OBS): Remove solib-target.o.
3503 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
3504 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
3505 (LIBGDB_OBS, libgdb.a): Move it above.
3506 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
3507 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
3508 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
3509 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
3510 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
3511 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
3512 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
3513 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
3514 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
3515 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
3516 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3517 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
3518 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
3519 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
3520 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
3521 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
3522 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
3523 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
3524 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
3525 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
3526 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
3527 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
3528 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
3529 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
3530 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
3531 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
3532 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
3534 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3536 Remove the gdbtui binary.
3537 * .gitignore (/gdbtui): Remove.
3538 * Makefile.in (TUI): Remove.
3539 (SUBDIR_TUI_OBS): Remove tui-main.o.
3540 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
3541 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
3542 (tui-main.o): Remove.
3543 (all_object_files): Remove tui-main.o.
3544 * NEWS: New note for the gdbtui removal.
3545 * configure: Rebuilt.
3546 * configure.ac: No longer add all-tui, clean-tui, install-tui and
3547 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
3548 CONFIG_UNINSTALL respectively.
3549 * gdb.c (main): Remove args.interpreter_p initialization.
3550 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
3551 * main.h (struct captured_main_args): Remove interpreter_p.
3552 * tui/tui-main.c: Remove.
3554 2012-01-01 Doug Evans <dje@google.com>
3556 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
3557 (dwarf2_physname, read_import_statement): Ditto.
3558 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
3559 (process_structure_scope read_subroutine_type): Ditto.
3560 (read_typedef, load_partial_dies, read_partial_die): Ditto.
3561 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
3562 (dwarf2_fetch_die_location_block): Ditto.
3563 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
3565 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
3566 All callers updated.
3567 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
3568 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
3569 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
3571 * dwarf2read.c (load_cu): Move assert to more useful location.
3573 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
3574 All callers updated.
3576 * dwarf2read.c (dwarf2_per_objfile): Add comment.
3577 (dwarf2_elf_names): Minor reformat.
3578 (dwarf2_per_cu_data): Tweak comment.
3579 (dwarf2_read_section): Fix comment.
3580 (create_all_comp_units): Fix comment.
3581 (load_full_comp_unit): Fix comment.
3582 (process_full_comp_unit): Fix comment.
3583 (read_signatured_type): Fix comment.
3585 For older changes see ChangeLog-2011.
3591 version-control: never