1 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
4 in function documentation.
6 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7 Andrey Smirnov <andrew.smirnov@gmail.com>
10 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
11 variable into wild_match_p. Adjust code accordingly.
13 2012-03-29 Joel Brobecker <brobecker@adacore.com>
14 Andrey Smirnov <andrew.smirnov@gmail.com>
16 * ada-valprint.c (ada_val_print_1): Move the code handling
17 TYPE_CODE_ENUM inside its own lexical block. Declare
18 variables len and val there, instead of in the function's
19 top level block. Avoid declaring deref_val again in a way
20 that shadows another variable of the same name declared
21 in one of the up-level blocks. Just re-use the up-level
24 2012-03-29 Joel Brobecker <brobecker@adacore.com>
26 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
27 Replace block_found argument by symbol_info. Adjust
28 implementation accordingly. Add function documentation.
29 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
31 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
32 * ada-exp.y (write_object_renaming): Adjust to new
33 ada_lookup_encoded_symbol API.
35 2012-03-29 Joel Brobecker <brobecker@adacore.com>
37 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
40 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
42 * v850-tdep.c: Add the enum values for mpu and fpu registers.
43 (v850_register_name): Add the mpu and fpu register names.
44 (v850e_register_name): Add the mpu and fpu register names.
45 (v850e2_register_name): New function.
46 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
49 2012-03-28 Joel Brobecker <brobecker@adacore.com>
51 * NEWS: Add entry for Ada varobj support.
53 2012-03-28 Joel Brobecker <brobecker@adacore.com>
55 * varobj.c (default_value_is_changeable_p): New function,
56 extracted from varobj_value_is_changeable_p. Add declaration.
57 (ada_value_is_changeable_p): New function, extracted from
58 varobj_value_is_changeable_p. Add declaration.
59 (struct language_specific): New field "value_is_changeable_p".
60 (languages): Add entries for new field.
61 (varobj_create): Set language before calling install_new_value.
62 (varobj_value_is_changeable_p): Reimplement to call the varobj's
63 "value_is_changeable_p" language callback.
65 2012-03-28 Joel Brobecker <brobecker@adacore.com>
67 * ada-varobj.h, ada-varobj.c: New files.
68 * Makefile.in (SFILES): Add ada-varobj.c.
69 (HFILES_NO_SRCDIR): Add ada-varobj.h.
70 (COMMON_OBS): Add ada-varobj.o.
72 2012-03-28 Joel Brobecker <brobecker@adacore.com>
74 * varobj.c (ada_value_has_mutated): Add declaration. New function.
75 (struct language_specific): New field "value_has_mutated".
76 (languages): Set field "value_has_mutated" in each entry of array.
77 (varobj_value_has_mutated): New function.
78 (varobj_udpdate): Add handling of type mutation.
79 (value_of_root): Add handling of type mutation.
80 (ada_value_has_mutated): New function.
82 2012-03-28 Pedro Alves <palves@redhat.com>
84 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
85 Always supply $fr0 as 0.0 and $fr1 as 1.0.
87 2012-03-28 Tom Tromey <tromey@redhat.com>
89 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
90 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
93 2012-03-28 Tom Tromey <tromey@redhat.com>
95 * .dir-locals.el: New file.
97 2012-03-28 Pedro Alves <palves@redhat.com>
99 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
101 2012-03-28 Joel Brobecker <brobecker@adacore.com>
103 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
106 2012-03-27 Pedro Alves <palves@redhat.com>
108 Eliminate struct ui_stream.
110 * ui-out.h (struct ui_stream): Delete.
111 (ui_out_field_stream): Adjust prototype.
112 (ui_out_stream_new, ui_out_stream_delete)
113 (make_cleanup_ui_out_stream_delete): Delete declarations.
114 * ui-out.c (ui_out_field_stream): Change prototype to take a
115 ui_file instead of a ui_stream. Adjust.
116 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
117 (make_cleanup_ui_out_stream_delete): Delete.
118 * breakpoint.c (print_breakpoint_location)
119 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
120 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
121 * disasm.c (dump_insns): Ditto.
122 (do_mixed_source_and_assembly, do_assembly_only): Adjust
124 (gdb_disassembly): Use ui_file/mem_fileopen instead of
125 ui_stream/ui_out_stream_new.
126 * infcmd.c (print_return_value): Ditto.
127 * osdata.c (info_osdata_command): Don't allocate a local
129 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
130 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
131 * tracepoint.c (print_one_static_tracepoint_marker): Don't
132 allocate a local ui_stream.
133 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
134 instead of ui_stream/ui_out_stream_new.
135 (list_args_or_locals): Don't allocate a local ui_stream.
136 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
137 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
138 ui_stream/ui_out_stream_new.
139 * cli/cli-setshow.c (do_setshow_command): Ditto.
141 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
143 * arm-linux-tdep.c (arm_linux_init_abi): Call
144 set_gdbarch_process_record. Initialize `arm_swi_record' field.
145 * arm-tdep.c (arm_process_record): New function.
146 (deallocate_reg_mem): New function.
147 (decode_insn): New function.
148 (thumb_record_branch): New function.
149 (thumb_record_ldm_stm_swi(): New function.
150 (thumb_record_misc): New function.
151 (thumb_record_ld_st_stack): New function.
152 (thumb_record_ld_st_imm_offset): New function.
153 (thumb_record_ld_st_reg_offset(): New function.
154 (thumb_record_add_sub_cmp_mov): New function.
155 (thumb_record_shift_add_sub): New function.
156 (arm_record_coproc_data_proc): New function.
157 (arm_record_coproc): New function.
158 (arm_record_b_bl): New function.
159 (arm_record_ld_st_multiple): New function.
160 (arm_record_ld_st_reg_offset): New function.
161 (arm_record_ld_st_imm_offset): New function.
162 (arm_record_data_proc_imm): New function.
163 (arm_record_data_proc_misc_ld_str): New function.
164 (arm_record_extension_space): New function.
165 (arm_record_strx): New function.
166 (sbo_sbz): New function.
167 (struct insn_decode_record): New structure for arm insn record.
168 (REG_ALLOC): New macro for reg allocations.
169 (MEM_ALLOC): New macro for memory allocations.
170 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
172 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
174 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
175 (store_register): Likewise.
177 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
179 * MAINTAINERS (Write After Approval): Add myself to the list.
181 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
183 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
184 Describe also the option "auto".
186 2012-03-22 Richard Henderson <rth@redhat.com>
188 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
189 * sparc-nat.c (sparc_xfer_wcookie): Make static.
191 2012-03-22 Richard Henderson <rth@redhat.com>
193 * jit.c (jit_read_code_entry): Compute alignment and offset of
194 int64_t member before computing entry_size.
196 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
198 Python scripting: Add new method Value.referenced_value to
199 gdb.Value which can dereference pointer as well as reference
201 * NEWS: Add entry under 'Python scripting' about the new method
202 Value.referenced_value on gdb.Value objects.
203 * python/py-value.c (valpy_referenced_value): New function
204 defining a new method on gdb.Value objects which can dereference
205 pointer and reference values.
207 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
209 * MAINTAINERS (Write After Approval): Add myself to the list.
211 2012-03-21 Kevin Buettner <kevinb@redhat.com>
213 * symtab.c (skip_prologue_sal): Change test to check for "main()"
214 in addition to "main".
216 2012-03-21 Joel Brobecker <brobecker@adacore.com>
218 * expression.h (op_name): Add declaration.
219 * expprint.c (op_name): Remove declaration. Make non-static.
220 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
222 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
224 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
226 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
227 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
228 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
229 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
230 (linux_nat_get_siginfo): Likewise.
231 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
232 (linux_nat_get_siginfo): Likewise.
233 * linux-tdep.c (linux_get_siginfo_type): Likewise.
234 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
235 * procfs.c (gdb_siginfo_t): Likewise.
237 2012-03-21 Mike Frysinger <vapier@gentoo.org>
239 * .gitignore: Ignore more files.
241 2012-03-20 Pedro Alves <palves@redhat.com>
243 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
246 2012-03-20 Yao Qi <yao@codesourcery.com>
248 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
251 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
253 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
254 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
255 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
257 * dwarf2expr.h (cu_offset, sect_offset): New types.
258 (struct dwarf_expr_context_funcs) <dwarf_call>
259 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
261 (struct dwarf_expr_context) <len>: Improve the comment.
262 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
263 cu_offset and sect_offset.
264 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
265 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
266 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
267 * dwarf2loc.h: Include dwarf2expr.h.
268 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
270 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
272 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
273 (struct signatured_type, struct line_header, struct partial_die_info)
274 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
275 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
276 (get_die_type_at_offset, create_cus_from_index)
277 (create_signatured_type_table_from_index, dw2_get_file_names)
278 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
279 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
280 (create_debug_types_hash_table, process_psymtab_comp_unit)
281 (load_partial_comp_unit, create_all_comp_units)
282 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
283 (load_full_comp_unit, dwarf2_physname, read_import_statement)
284 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
285 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
286 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
287 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
288 (find_partial_die, read_attribute_value, lookup_die_type)
289 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
290 (is_ref_attr): New function comment.
291 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
292 Use cu_offset and sect_offset.
293 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
294 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
295 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
296 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
297 (offset_and_type_hash, offset_and_type_eq, set_die_type)
298 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
299 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
302 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
305 * python/py-auto-load.c (source_section_scripts): New variable back_to.
306 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
308 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
310 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
312 * NEWS: Describe new options --init-command=FILE, -ix and
313 --init-eval-command=COMMAND, -iex.
314 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
316 (captured_main): New enum items OPT_IX and OPT_IEX. Add
317 "init-command", "init-eval-command", "ix" and "iex" to the variable
318 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
319 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
320 (print_gdb_help): Describe --init-command=FILE, -ix and
321 --init-eval-command=COMMAND, -iex.
323 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
326 * main.c (struct cmdarg): Move it here from main. Add more comments.
327 (cmdarg_s, VEC (cmdarg_s)): New.
328 (main): Move struct cmdarg from here. New variables cmdarg_vec and
329 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
330 Install cleanup for cmdarg_vec. Update filling for options 'x' and
331 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
334 2012-03-19 Tom Tromey <tromey@redhat.com>
336 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
338 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
341 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
344 2012-03-16 Chris January <chris.january@allinea.com>
346 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
349 2012-03-16 Chris January <chris.january@allinea.com>
351 * source.c (add_path): Use memmove instead of strcpy because the
354 2012-03-16 Joel Brobecker <brobecker@adacore.com>
356 * value.h (set_value_parent): Add declaration.
357 * value.c (set_value_parent): New function.
358 (value_address): If VALUE->PARENT is not NULL, then use it as
359 the base address instead of VALUE->LOCATION.address.
360 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
361 the same as OBJ's address. Adjust V's offset accordingly.
364 2012-03-16 Gary Benson <gbenson@redhat.com>
367 * dwarf2read.c (use_deprecated_index_sections): New global.
368 (struct partial_die_info): New member may_be_inlined.
369 (read_partial_die): Set may_be_inlined where appropriate.
370 (add_partial_subprogram): Add partial symbols for partial
371 DIEs that may be inlined.
372 (new_symbol_full): Add inlined subroutines to the current
374 (write_psymtabs_to_index): Bump version number.
375 (dwarf2_read_index): Read only version 6 indices unless
376 use_deprecated_index_sections is set.
377 * linespec.c (symbol_and_data_callback): New structure.
378 (iterate_inline_only): New function.
379 (iterate_over_all_matching_symtabs): New argument
380 "include_inline". If nonzero, also call the callback for
381 symbols representing inlined subroutines.
382 (lookup_prefix_sym): Pass extra argument to the above.
383 (find_function_symbols): Likewise.
384 (add_matching_symbols_to_info): Likewise.
385 * NEWS: Mention that GDB can now set breakpoints on inlined
388 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
390 * p-typeprint.c (pascal_type_print_method_args):
391 Fix display of parameter of methods.
393 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
395 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
396 Add missing prototype.
398 2012-03-16 Yao Qi <yao@codesourcery.com>
399 Jan Kratochvil <jan.kratochvil@redhat.com>
401 Fix false compilation warning.
402 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
404 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
405 Pedro Alves <pedro@codesourcery.com>
407 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
408 (arm_register_g_packet_guesses): New function.
409 (arm_gdbarch_init): Don't force a target description with
410 registers when the executable is detected as M-profile. Instead
411 set gdbarch->tdep->is_m. Register `g' packet guesses.
412 (_initialize_arm_tdep): Initialize the new target description.
413 * features/arm-with-m-fpa-layout.xml: New description.
414 * features/arm-with-m-fpa-layout.c: New, generated.
416 2012-03-15 Joel Brobecker <brobecker@adacore.com>
418 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
419 Update function description.
420 (insert_bp_location): Do not wipe bl->target_info out.
421 * mem-break.c: #include "gdb_string.h".
422 (default_memory_insert_breakpoint): Do not call target_read_memory
423 with a pointer to the breakpoint's shadow_contents buffer. Use
424 a local buffer instead.
425 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
427 2012-03-15 Tom Tromey <tromey@redhat.com>
429 * NEWS: Mention "info vtbl", not "info vtable".
430 * cp-support.c (info_vtbl_command): Fix comment.
431 (_initialize_cp_support): Fix text.
433 2012-03-15 Tom Tromey <tromey@redhat.com>
435 * cp-valprint.c (cp_print_value_fields): Use
436 print_function_pointer_address for vtable slot.
438 2012-03-15 Tom Tromey <tromey@redhat.com>
440 * gnu-v3-abi.c (struct value_and_voffset): New.
441 (hash_value_and_voffset, eq_value_and_voffset)
442 (compare_value_and_voffset, compute_vtable_size)
443 (print_one_vtable, gnuv3_print_vtable): New functions.
444 (init_gnuv3_ops): Initialize 'print_vtable' field.
445 * cp-support.c (info_vtbl_command): New function.
446 (_initialize_cp_support): Add "info vtbl".
447 * cp-abi.h (cplus_print_vtable): Declare.
448 (struct cp_abi_ops) <print_vtable>: New field.
449 * cp-abi.c (cplus_print_vtable): New function.
452 2012-03-15 Tom Tromey <tromey@redhat.com>
454 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
455 iterate_over_symbols.
457 2012-03-14 Doug Evans <dje@google.com>
459 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
460 DW_OP_GNU_parameter_ref.
462 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
464 Fix double prompt of 'interpreter-exec mi'.
465 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
466 (mi_interpreter_resume): use it.
467 (mi_execute_command_input_handler): New function.
468 * mi/mi-main.c (mi_execute_command): Move prompt printing to
469 mi_execute_command_input_handler.
471 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
473 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
475 (darwin_debug_port_info): Make static.
476 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
477 * machoread.c (_initialize_machoread): Add prototype.
478 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
479 (i386_darwin_set_control, i386_darwin_get_control)
480 i386_darwin_dr_set_addr, i386_darwin_get_addr)
481 i386_darwin_get_status, i386_darwin_get_control):
482 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
484 2012-03-13 Joel Brobecker <brobecker@adacore.com>
486 * ax-gdb.c (gen_usual_unary): Remove special handling of
489 2012-03-13 Joel Brobecker <brobecker@adacore.com>
491 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
493 2012-03-13 Joel Brobecker <brobecker@adacore.com>
495 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
497 2012-03-13 Chris January <chris.january@allinea.com>
499 * aix-thread.c (fill_sprs): Store the floating point registers
500 at the correct offsets into vals.
502 2012-03-13 Doug Evans <dje@google.com>
504 * NEWS: Mention symbol-reloading has been deleted.
505 * symfile.c (symbol_reloading): Delete.
506 (show_symbol_reloading): Delete.
507 (_initialize_symfile): Delete set/show symbol-reloading.
509 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
510 read_in_chain until we have successfully read it in.
511 (load_full_comp_unit): Ditto.
512 (read_signatured_type): Add comment.
514 2012-03-13 Chris January <chris.january@allinea.com>
516 * stabsread.c (fix_common_block): Change type of valu argument
519 2012-03-13 Chris January <chris.january@allinea.com>
521 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
524 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
526 * common/linux-procfs.c (linux_proc_get_int): New, from
527 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
529 (linux_proc_get_tgid): Only call linux_proc_get_int.
530 (linux_proc_get_tracerpid): New.
531 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
532 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
533 linux_proc_pid_has_state.
534 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
535 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
536 (linux_ptrace_attach_warnings): New.
537 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
539 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
540 (linux_nat_attach): New variables ex, buffer, message and message_s.
541 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
543 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
545 * Makefile.in (linux-ptrace.o): New.
546 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
548 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
549 * common/linux-ptrace.c: New file.
550 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
551 * config/arm/linux.mh: Likewise.
552 * config/i386/linux.mh: Likewise.
553 * config/i386/linux64.mh: Likewise.
554 * config/ia64/linux.mh: Likewise.
555 * config/m32r/linux.mh: Likewise.
556 * config/m68k/linux.mh: Likewise.
557 * config/mips/linux.mh: Likewise.
558 * config/pa/linux.mh: Likewise.
559 * config/powerpc/linux.mh: Likewise.
560 * config/powerpc/ppc64-linux.mh: Likewise.
561 * config/powerpc/spu-linux.mh: Likewise.
562 * config/s390/s390.mh: Likewise.
563 * config/sparc/linux.mh: Likewise.
564 * config/sparc/linux64.mh: Likewise.
565 * config/xtensa/linux.mh: Likewise.
566 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
567 common/linux-procfs.c.
568 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
570 2012-03-13 Hui Zhu <teawater@gmail.com>
571 Pedro Alves <palves@redhat.com>
573 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
574 CREATE_BREAKPOINT_FLAGS_INSERTED.
575 (create_breakpoint_sal, create_breakpoints_sal)
576 (base_breakpoint_create_breakpoints_sal)
577 (tracepoint_create_breakpoints_sal)
578 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
580 (break_command_1, handle_gnu_v3_exceptions, trace_command)
581 (ftrace_command, strace_command): Adjust.
582 (create_tracepoint_from_upload): Pass
583 CREATE_BREAKPOINT_FLAGS_INSERTED.
584 * breakpoint.h (enum breakpoint_create_flags): New.
585 (create_breakpoint): New flags parameter.
586 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
587 * python/py-breakpoint.c (bppy_init): Adjust.
588 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
589 * spu-tdep.c (spu_catch_start): Adjust.
591 2012-03-13 Pedro Alves <palves@redhat.com>
592 Hui Zhu <teawater@gmail.com>
593 Yao Qi <yao@codesourcery.com>
595 * remote.c (struct remote_state): New field `starting_up'.
596 (remote_start_remote): Set and clear it.
597 (remote_can_download_tracepoint): If starting up, return false.
599 2012-03-13 Yao Qi <yao@codesourcery.com>
601 * inferior.h (struct inferior): Remove fields any_syscall_count,
602 syscalls_counts and total_syscalls_count. Move them to new
603 struct catch_syscall_inferior_data in breakpoint.c.
604 * breakpoint.c: Call DEF_VEC_I(int).
605 (struct catch_syscall_inferior_data): New.
606 (get_catch_syscall_inferior_data): New.
607 (catch_syscall_inferior_data_cleanup): New.
608 (insert_catch_syscall): Update to access data in
609 struct catch_syscall_inferior_data.
610 (insert_catch_syscall): Likewise.
611 (remove_catch_syscall): Likewise.
612 (remove_catch_syscall): Likewise.
613 (is_syscall_catchpoint_enabled): Likewise.
614 (add_catch_command): Likewise.
615 (_initialize_breakpoint): Register cleanup.
616 * breakpoint.h: Removed DEF_VEC_I(int).
617 * dwarf2loc.c: Call DEF_VEC_I(int).
618 * mi/mi-main.c: Likewise.
620 2012-03-12 Mark Kettenis <kettenis@gnu.org>
622 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
624 2012-03-12 Chris January <chris.january@allinea.com>
626 * aix-thread.c (_initialize_aix_thread): Add prototype.
627 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
628 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
630 2012-03-12 Joel Brobecker <brobecker@adacore.com>
632 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
633 include of "amd64-nat.h".
635 2012-03-12 Tom Tromey <tromey@redhat.com>
637 * buildsym.c (record_pending_block): Now static.
638 * buildsym.h: (record_pending_block): Remove.
640 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
642 * amd64bsd-nat.c: Include amd64bsd-nat.h.
644 2012-03-09 Tom Tromey <tromey@redhat.com>
646 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
647 producer_is_gxx_lt_4_6>: New fields.
648 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
650 2012-03-09 Tom Tromey <tromey@redhat.com>
652 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
654 2012-03-08 Joel Brobecker <brobecker@adacore.com>
656 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
659 2012-03-08 Joel Brobecker <brobecker@adacore.com>
661 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
663 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
665 Fix -Wmissing-prototypes build.
666 * arm-linux-nat.c (get_thread_id): Make it static.
667 * xtensa-linux-nat.c (get_thread_id): Likewise.
669 2012-03-08 Joel Brobecker <brobecker@adacore.com>
671 * server.c (process_point_options): If a conditional expression
672 is found, only print a message if remote_debug is nonzero.
674 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
676 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
677 of internal error for unknown/unsupported types.
679 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
681 Fix CU relative vs. absolute DIE offsets.
682 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
683 offset to offset_in_cu.
684 * dwarf2read.c (process_enumeration_scope): Add CU offset to
686 (dwarf2_fetch_die_location_block): Rename parameter offset to
687 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
689 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
691 * libunwind-frame.c: Rename to ...
692 * ia64-libunwind-tdep.c: ... here.
693 * libunwind-frame.h: Rename to ...
694 * ia64-libunwind-tdep.h: ... here.
695 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
696 ia64-libunwind-tdep.h.
697 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
698 * README (--with-libunwind): Rename to ...
699 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
700 * config.in: Regenerate.
701 * configure: Regenerate.
702 * configure.ac: New option --with-libunwind-ia64, make the
703 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
704 Remove AC_DEFINE for HAVE_LIBUNWIND.
705 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
706 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
707 Rename libunwind-frame in the general comment.
708 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
709 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
710 Move forward declarations inside #ifndef. Rename libunwind-frame in
712 * ia64-tdep.c: Rename libunwind-frame.h #include to
713 ia64-libunwind-tdep.h.
714 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
715 (ia64_libunwind_descr): Rename libunwind-frame to
716 ia64-libunwind-tdep in these function comments.
717 * ia64-tdep.h: Rename libunwind-frame.h #include to
718 ia64-libunwind-tdep.h.
719 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
720 ia64-libunwind-tdep in that data comment.
722 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
724 * libunwind-frame.h (struct frame_unwind): New declaration.
726 2012-03-08 Joel Brobecker <brobecker@adacore.com>
728 * breakpoint.c (_initialize_breakpoint): Fix error in help of
729 "set breakpoint condition-evaluation" command.
731 2012-03-08 Tristan Gingold <gingold@adacore.com>
733 * sparc-stub.c: Move to stubs/
734 * sh-stub.c: Likewise.
735 * m68k-stub.c: Likewise.
736 * m32r-stub.c: Likewise.
737 * i386-stub.c: Likewise.
739 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
741 * m68klinux-tdep.c (m68k_linux_init_abi): Register
742 linux_get_siginfo_type.
744 * m68klinux-nat.c: Include "gdb_proc_service.h".
745 (PTRACE_GET_THREAD_AREA): Define.
746 (ps_get_thread_area): New function.
748 2012-03-08 Yao Qi <yao@codesourcery.com>
750 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
752 (remote_query_attached): Likewise.
753 (remote_static_tracepoint_marker_at): Likewise.
754 (remote_set_permissions): Likewise.
755 (remote_detach_1, extended_remote_attach_1): Likewise.
756 (send_g_packet, remote_vkill): Likewise.
757 (extended_remote_disable_randomization): Likewise.
758 (remote_add_target_side_condition): Likewise.
759 (remote_insert_breakpoint): Likewise.
760 (remote_remove_breakpoint): Likewise.
761 (remote_insert_watchpoint): Likewise.
762 (remote_remove_watchpoint): Likewise.
763 (remote_insert_hw_breakpoint): Likewise.
764 (remote_insert_hw_breakpoint): Likewise.
765 (remote_remove_hw_breakpoint): Likewise.
766 (remote_download_command_source): Likewise.
767 (remote_download_tracepoint): Likewise.
768 (remote_download_trace_state_variable): Likewise.
769 (remote_disable_tracepoint): Likewise.
770 (remote_trace_set_readonly_regions): Likewise.
771 (remote_get_tracepoint_status): Likewise.
772 (remote_trace_find): Likewise.
773 (remote_get_trace_state_variable_value): Likewise.
774 (remote_set_disconnected_tracing): Likewise.
775 (remote_set_circular_trace_buffer): Likewise.
776 (remote_get_min_fast_tracepoint_insn_len): Likewise.
777 (remote_use_agent): Likewise.
778 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
781 2012-03-07 Pedro Alves <palves@redhat.com>
783 * NEWS: Mention QProgramSignals.
784 * inferior.h (update_signals_program_target): Declare.
785 * infrun.c: (update_signals_program_target): New.
786 (handle_command): Update the target of the new program signals
788 * remote.c (PACKET_QProgramSignals): New enum.
789 (last_program_signals_packet): New global.
790 (remote_program_signals): New.
791 (remote_start_remote): Update the target with the program signals
793 (remote_protocol_features): Add entry for QPassSignals.
794 (remote_open_1): Free anc clear last_program_signals_packet.
795 (init_remote_ops): Install remote_program_signals.
796 * target.c (update_current_target): Adjust.
797 (target_program_signals): New.
798 * target.h (struct target_ops) <to_program_signals>: New field.
799 (target_program_signals): Declare.
801 2012-03-07 Pedro Alves <palves@redhat.com>
803 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
806 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
808 * m68klinux-nat.c (getregs_supplies): Make static.
809 (getfpregs_supplies): Likewise.
810 (have_ptrace_getregs): Likewise.
812 2012-03-06 Joel Brobecker <brobecker@adacore.com>
814 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
815 in call to get_die_type_at_offset.
817 2012-03-06 Stan Shebs <stan@codesourcery.com>
819 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
820 * mi/mi-cmd-disas.c: Ditto.
821 * mi/mi-cmd-env.c: Ditto.
822 * mi/mi-cmd-file.c: Ditto.
823 * mi/mi-cmd-stack.c: Ditto.
824 * mi/mi-cmd-target.c: Ditto.
825 * mi/mi-cmd-var.c: Ditto.
826 * mi/mi-cmds.c: Ditto.
827 * mi/mi-cmds.h: Ditto.
828 * mi/mi-console.c: Ditto.
829 * mi/mi-getopt.c: Ditto.
830 * mi/mi-getopt.h: Ditto.
831 * mi/mi-interp.c: Ditto.
832 * mi/mi-main.c: Ditto.
833 * mi/mi-out.c: Ditto.
834 * mi/mi-parse.c: Ditto.
835 * mi/mi-parse.h: Ditto.
836 * mi/mi-symbol-cmds.c: Ditto.
838 * mi/mi-getopt.h: Move mi_opt struct up.
839 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
841 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
843 2012-03-06 Tom Tromey <tromey@redhat.com>
845 * proc-service.c (ps_pglobal_lookup): Set the current program
848 2012-03-06 Pedro Alves <palves@redhat.com>
850 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
852 2012-03-05 Joel Brobecker <brobecker@adacore.com>
854 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
856 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
859 * common/linux-osdata.c (linux_common_core_of_thread): New function
861 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
862 call by linux_common_core_of_thread.
863 (linux_nat_core_of_thread_1): Remove.
864 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
865 * linux-thread-db.c: Include linux-osdata.h.
866 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
867 linux_common_core_of_thread.
869 2012-03-05 Tom Tromey <tromey@redhat.com>
871 * value.c (value_primitive_field): Don't fetch contents for
874 2012-03-05 Tom Tromey <tromey@redhat.com>
876 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
878 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
880 * s390-nat.c: Include "gregset.h".
882 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
884 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
885 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
886 (libunwind_load): New variable so_error, use it for dlerror. Try to
887 load also LIBUNWIND_SO_7.
889 2012-03-05 Pedro Alves <palves@redhat.com>
891 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
892 is not NULL, and remove resulting dead code.
894 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
896 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
897 prologue to sh_analyze_prologue.
898 (sh_analyze_prologue): Make better use of such an upper limit, and
899 generally be more cautious about accessing memory.
901 2012-03-05 Tom Tromey <tromey@redhat.com>
903 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
904 _initialize_ia64_hpux_tdep.
906 2012-03-05 Pedro Alves <palves@redhat.com>
910 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
911 the register state is clear, supply explicit zero, instead of
912 marking the register unavailable.
914 2012-03-05 Tristan Gingold <gingold@adacore.com>
916 * NEWS: Mention OpenVMS ia64 new target.
918 2012-03-05 Tristan Gingold <gingold@adacore.com>
920 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
921 (ia64_unw_accessors, ia64_unw_rse_accessors)
922 (ia64_libunwind_descr): Declare.
923 * ia64-vms-tdep.c: New file.
924 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
925 (ia64_libunwind_descr): Make them public.
926 * configure.tgt: Add ia64-*-*vms*.
927 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
928 (ALLDEPFILES): Add ia64-vms-tdep.c
930 2012-03-05 Tristan Gingold <gingold@adacore.com>
932 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
933 * remote.c (PACKET_qXfer_uib): New enum value.
934 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
935 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
936 (_initialize_remote): Call add_packet_config_cmd for
939 2012-03-05 Tristan Gingold <gingold@adacore.com>
941 * osabi.c (gdb_osabi_names): Add OpenVMS.
942 (generic_elf_osabi_sniffer): Likewise.
943 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
945 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
948 * libunwind-frame.c (libunwind_frame_unwind)
949 (libunwind_frame_base_address): Remove.
950 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
952 2012-03-04 Yao Qi <yao@codesourcery.com>
954 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
955 remove trailing new line.
956 (agent_run_command, agent_run_command): Add _ markup.
957 (agent_capability_check): Likewise.
959 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
961 * breakpoint.c (set_condition_evaluation_mode): Set
962 CONDITION_EVALUATION_MODE unconditionally.
964 2012-03-03 Yao Qi <yao@codesourcery.com>
966 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
967 * common/agent.h: Update declaration.
968 * inf-child.c (inf_child_use_agent): New.
969 (inf_child_can_use_agent): New.
970 (inf_child_target): Initialize fields `to_use_agent'
971 and `to_can_use_agent'.
972 * agent.c (agent_new_objfile): New.
973 (_initialize_agent): Add agent_new_objfile to new_objfile
976 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
978 (linux_target_install_ops): Initialize field
979 `to_static_tracepoint_markers_by_strid'.
980 * remote.c (free_current_marker): Move it to ...
981 * tracepoint.c (free_current_marker): ... here. New.
982 (cleanup_target_stop): New.
983 * tracepoint.h: Declare free_current_marker.
984 * NEWS: Add one entry about `info static-tracepoint-marker'.
986 2012-03-03 Yao Qi <yao@codesourcery.com>
988 * common/agent.c (agent_loaded_p): New.
989 (agent_look_up_symbols): New global.
990 * common/agent.h: Declare agent_loaded_p.
992 2012-03-03 Yao Qi <yao@codesourcery.com>
994 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
995 (agent_capability_check, agent_capability_invalidate): New.
996 (symbol_list): New array element.
997 * common/agent.h (enum agent_capa): New.
998 * target.c (target_pre_inferior): Call agent_capability_invalidate.
1000 2012-03-03 Yao Qi <yao@codesourcery.com>
1002 * target.h (struct target_ops) <to_use_agent>: New field.
1003 (struct target_ops) <to_can_use_agent>: New field.
1004 (target_use_agent, target_can_use_agent): New macro.
1005 * target.c (update_current_target): Update.
1006 * remote.c: New enum `PACKET_QAgent'.
1007 (remote_protocol_features): Add a new element.
1008 (remote_use_agent, remote_can_use_agent): New.
1009 (init_remote_ops): Initialize field `can_use_agent' with
1010 remote_can_use_agent. Intiailize field `use_agent' with
1012 * common/agent.c (use_agent): New global.
1013 * common/agent.h: Declare it.
1014 * tracepoint.c (info_static_tracepoint_markers_command): Add
1016 * Makefile.in (SFILES): Add common/agent.c and agent.c.
1017 (COMMON_OBS): Add common/agent.o and agent.o
1018 (common-agent.o): New rule.
1021 2012-03-03 Yao Qi <yao@codesourcery.com>
1023 * common/agent.c: New.
1024 * common/agent.h: New.
1025 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
1027 * configure, configh.in: Regenerated.
1029 2012-03-02 Kevin Buettner <kevinb@redhat.com>
1031 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
1032 unless it exists for this architecture.
1034 2012-03-02 Joel Brobecker <brobecker@adacore.com>
1036 * language.h (struct language_defn): New "method" la_read_var_value.
1037 * findvar.c: #include "language.h".
1038 (default_read_var_value): Renames read_var_value. Rewrite
1039 function description.
1040 (read_var_value): New function.
1041 * value.h (default_read_var_value): Add prototype.
1042 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
1044 (ada_language_defn): Add entry for la_read_var_value.
1045 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
1046 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
1047 language_defn structures to add entry for new la_read_var_value
1050 2012-03-02 Tom Tromey <tromey@redhat.com>
1051 Pedro Alves <palves@redhat.com>
1053 PR breakpoints/13776:
1054 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
1056 (delete_longjmp_breakpoint_at_next_stop): New.
1057 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
1058 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
1059 before deleting the inferior. Add comments.
1060 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
1061 breakpoints immediately, but only on next stop. Move that code
1062 next to where we mark other breakpoints for deletion.
1064 2012-03-02 Joel Brobecker <brobecker@adacore.com>
1066 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
1068 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
1071 2012-03-02 Pedro Alves <palves@redhat.com>
1073 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
1075 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
1077 Fix -Wmissing-prototypes build.
1078 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
1079 * remote-sim.c (gdbsim_has_all_memory): Likewise.
1080 (gdbsim_has_memory): Likewise.
1082 2012-03-02 Yao Qi <yao@codesourcery.com>
1084 Fix -Wmissing-prototypes build.
1085 * charset.c (phony_iconv_open): Make static.
1086 (phony_iconv_close, phony_iconv): Likewise.
1087 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
1088 * i386-windows-nat.c (_initialize_i386_windows_nat): New
1090 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
1091 * ser-mingw.c (create_select_thread): Make static.
1092 * windows-termcap.c (tgetent): New prototype.
1093 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
1095 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
1097 Fix -Wmissing-prototypes build.
1098 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
1099 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
1100 (_initialize_loadable): New prototypes.
1102 2012-03-02 Doug Evans <dje@google.com>
1104 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
1105 abbrev table, read_comp_unit will do it.
1107 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1109 Fix -Wmissing-prototypes build.
1110 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
1111 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
1112 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
1113 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
1114 (_initialize_arm_symbian_tdep): New prototype.
1115 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
1116 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
1117 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
1119 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
1120 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
1122 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
1123 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
1124 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
1126 * moxie-tdep.c (moxie_process_record): Likewise.
1127 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
1128 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
1129 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
1130 (_initialize_rl78_tdep): New prototype.
1131 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
1132 (_initialize_rx_tdep): New prototype.
1133 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
1134 (_initialize_darwin_solib): New prototype.
1135 * solib-spu.c: Include solib-spu.h.
1136 (_initialize_spu_solib): New prototype.
1137 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
1138 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
1139 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
1140 (tic6x_software_single_step): Make it static.
1141 (_initialize_tic6x_tdep): New prototype.
1143 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1145 Fix -Wmissing-prototypes build.
1146 * cris-tdep.c (cris_can_use_hardware_watchpoint)
1147 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
1149 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1151 Fix -Wmissing-prototypes build.
1152 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
1153 (frv_have_stopped_data_address): Remove.
1155 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1157 Fix -Wmissing-prototypes build.
1158 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
1159 * sh-tdep.c: Include sh64-tdep.h.
1160 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
1161 * sh64-tdep.c: Include sh64-tdep.h.
1162 * sh64-tdep.h: New file.
1164 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
1166 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
1168 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
1170 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
1171 sp_regnum once the gdbarch_init_osabi hook has been called.
1173 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
1175 * mips-tdep.c (mips32_bc1_pc): New function.
1176 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
1177 BPOSGE32 and BPOSGE64 instructions.
1178 (deal_with_atomic_sequence): Likewise.
1179 (mips32_instruction_has_delay_slot): Likewise.
1181 2012-03-01 Maciej W. Rozycki <macro@mips.com>
1182 Chris Dearman <chris@mips.com>
1183 Maciej W. Rozycki <macro@codesourcery.com>
1184 Joseph Myers <joseph@codesourcery.com>
1186 * features/mips-dsp.xml: New file.
1187 * features/mips64-dsp.xml: New file.
1188 * features/mips-dsp-linux.xml: New file.
1189 * features/mips64-dsp-linux.xml: New file.
1190 * features/Makefile (WHICH): Add mips-dsp-linux and
1192 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
1193 * features/mips-dsp-linux.c: New file.
1194 * features/mips64-dsp-linux.c: New file.
1195 * regformats/mips-dsp-linux.dat: New file.
1196 * regformats/mips64-dsp-linux.dat: New file.
1197 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
1199 (mips64_linux_register_addr): Likewise.
1200 (mips64_linux_regsets_fetch_registers): Likewise.
1201 (mips64_linux_regsets_store_registers): Likewise.
1202 (mips64_linux_fetch_registers): Update call to
1203 mips64_linux_regsets_fetch_registers.
1204 (mips64_linux_store_registers): Update call to
1205 mips64_linux_regsets_store_registers.
1206 (mips_linux_read_description): Probe for DSP registers.
1207 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
1208 and initialize_tdesc_mips64_dsp_linux.
1209 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
1210 Remove padding of no longer used embedded register slots.
1211 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
1212 (MIPS_RESTART_REGNUM): Redefine enum value.
1213 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
1215 (mips_tx39_reg_names): Likewise.
1216 (mips_linux_reg_names): New array of register names for Linux
1218 (mips_register_name): Check for a null pointer in
1219 mips_processor_reg_names and return an empty string.
1220 (mips_register_type): Exclude embedded registers for the IRIX
1222 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
1223 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
1225 (mips_stab_reg_to_regnum): Handle DSP accumulators.
1226 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
1227 (mips_gdbarch_init): Likewise. Initialize internal register
1228 indices for the Linux ABI. Use dynamic numbers to refer to
1229 registers, as applicable, while parsing the target description.
1230 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
1232 2012-03-01 Joel Brobecker <brobecker@adacore.com>
1234 * frame.h (read_frame_register_unsigned): Fix typo in function
1237 2012-03-01 Pedro Alves <palves@redhat.com>
1239 * jit-reader.in [!__cplusplus]
1240 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
1242 2012-03-01 Pedro Alves <palves@redhat.com>
1244 * configure.ac (build_warnings): Add -Wmissing-prototypes.
1245 * configure: Regenerate.
1247 2012-03-01 Pedro Alves <palves@redhat.com>
1249 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
1250 * breakpoint.c (create_exception_master_breakpoint, trace_command)
1251 (ftrace_command, strace_command): Make static.
1252 * d-lang.c (_initialize_d_language): Declare.
1253 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
1254 * dwarf2loc.c (_initialize_dwarf2loc):
1255 * dwarf2read.c (process_psymtab_comp_unit): Make static.
1256 * exec.c (exec_get_section_table): Make static.
1257 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
1258 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
1259 * inferior.c (remove_inferior_command, add_inferior_command)
1260 (clone_inferior_command): Make static.
1261 * linux-nat.c (linux_nat_thread_address_space)
1262 (linux_nat_core_of_thread): Make static.
1263 * linux-tdep.c (_initialize_linux_tdep): Declare.
1264 * objc-lang.c (_initialize_objc_lang): Declare.
1265 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
1267 (_initialize_opencl_language): Declare.
1268 * record.c (_initialize_record): Declare.
1269 * remote.c (demand_private_info, remote_get_tib_address)
1270 (remote_supports_cond_tracepoints)
1271 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
1273 * skip.c (_initialize_step_skip): Declare.
1274 * symtab.c (skip_prologue_using_lineinfo): Make static.
1275 * tracepoint.c (delete_trace_state_variable)
1276 (trace_variable_command, delete_trace_variable_command)
1277 (get_uploaded_tsv, find_matching_tracepoint_location)
1278 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
1280 * value.c (pack_unsigned_long): Make static.
1281 * varobj.c (varobj_ensure_python_env): Make static.
1282 * windows-tdep.c (_initialize_windows_tdep): Declare.
1283 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
1285 2012-03-01 Pedro Alves <palves@redhat.com>
1287 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
1289 (linux_init_abi): Install it as has_shared_address_space gdbarch
1292 2012-03-01 Pedro Alves <palves@redhat.com>
1294 * observer.c (observer_test_first_notification_function)
1295 (observer_test_second_notification_function)
1296 (observer_test_third_notification_function): Add declarations.
1298 2012-03-01 Pedro Alves <palves@redhat.com>
1300 * common/signals.c (default_target_signal_to_host)
1301 (default_target_signal_from_host): Move ...
1302 * arch-utils.c: ... here.
1303 * arch-utils.h (default_target_signal_to_host)
1304 (default_target_signal_from_host): Declare.
1306 * common/signals.c (target_signal_from_command): Move ...
1307 * infrun.c: ... here.
1308 * inferior.h (target_signal_from_command): Declare.
1309 * target.h (target_signal_from_command)
1310 (default_target_signal_from_host, default_target_signal_to_host):
1311 Delete declarations.
1313 * common/signals.c (_initialize_signals): Delete.
1315 2012-03-01 Pedro Alves <palves@redhat.com>
1317 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
1318 both __cplusplus and !__cplusplus.
1320 2012-03-01 Pedro Alves <palves@redhat.com>
1322 * psymtab.c (find_and_open_source): Delete declaration.
1323 * source.c (find_and_open_source): Move comment ...
1324 * source.h (find_and_open_source): ... to this new declaration.
1326 2012-03-01 Pedro Alves <palves@redhat.com>
1328 * inline-frame.c: Include inline-frame.h.
1330 2012-03-01 Pedro Alves <palves@redhat.com>
1332 * tui/tui-data.c (set_gen_win_origin): Delete.
1333 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
1334 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
1336 2012-03-01 Pedro Alves <palves@redhat.com>
1338 * remote.c (encode_actions): Delete declaration.
1339 * tracepoint.c (encode_actions): Make extern.
1340 * tracepoint.h (encode_actions): Declare.
1342 2012-03-01 Pedro Alves <palves@redhat.com>
1344 * python/py-breakpoint.c: Include python.h.
1345 * python/py-continueevent.c (create_continue_event_object): Make
1347 * python/py-lazy-string.c (stpy_get_type): Make static.
1348 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1350 * python/py-utils.c (unicode_to_target_python_string): Make
1352 * python/py-value.c: Include python.h.
1354 2012-03-01 Pedro Alves <palves@redhat.com>
1356 * inferior.c (delete_threads_of_inferior): Delete.
1358 2012-03-01 Pedro Alves <palves@redhat.com>
1360 Import fallback definitions from glibc.
1362 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
1363 ps_prochandle): Forward declare.
1364 (ps_err_e): Use glibc's comments.
1365 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
1366 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
1367 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
1368 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
1369 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
1370 (struct ps_prochandle): Adjust comment.
1372 2012-03-01 Pedro Alves <palves@redhat.com>
1374 * ada-lang.c (ada_modulus_from_name): Delete.
1375 * ada-lex.l (lexer_init): Make static.
1377 2012-03-01 Pedro Alves <palves@redhat.com>
1381 * frame.c (read_frame_register_unsigned): New.
1382 * frame.h (read_frame_register_unsigned): Declare.
1383 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
1385 (print_i387_control_word): New parameter `control_p'. Handle it.
1386 (i387_print_float_info): Handle unavailable float registers.
1388 2012-03-01 Keith Seitz <keiths@redhat.com>
1390 * linespec.c (decode_line_2): Sort the list of methods
1391 alphabetically before presenting the user with a selection
1394 2012-03-01 Doug Evans <dje@google.com>
1396 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
1398 (dwarf2_read_abbrevs): Remove corresponding initialization.
1400 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
1402 * NEWS: Mention new python command class gdb.COMMAND_USER.
1403 * cli/cli-cmds.c (show_user): Print error when used on a python
1405 (init_cli_cmds): Update documentation strings for "show user" and
1406 "set/show max-user-call-depth" to clarify that it does not apply to
1408 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
1410 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
1412 * top.c (execute_command): Only execute a user-defined command as a
1413 legacy macro if c->user_commands is set.
1415 2012-03-01 Tom Tromey <tromey@redhat.com>
1417 * valprint.h (struct generic_val_print_decorations): New.
1418 (generic_val_print): Declare.
1419 * valprint.c (generic_val_print): New function.
1420 * p-valprint.c (p_decorations): New global.
1421 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
1422 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
1423 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
1424 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
1425 * m2-valprint.c (m2_decorations): New global.
1426 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
1427 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
1428 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
1429 TYPE_CODE_ERROR>: Call generic_val_print.
1430 * f-valprint.c (f_decorations): New global.
1431 (f_val_print): Use print_function_pointer_address.
1432 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
1433 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
1434 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
1436 * c-valprint.c (c_decorations): New global.
1437 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
1438 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
1439 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
1440 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
1441 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
1442 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
1445 2012-03-01 Tom Tromey <tromey@redhat.com>
1447 * valprint.c (val_print): Update.
1448 * p-valprint (pascal_val_print): Return void.
1449 * p-lang.h (pascal_val_print): Return void.
1450 * m2-valprint.c (m2_val_print): Return void.
1451 * m2-lang.h (m2_val_print): Return void.
1452 * language.h (struct language_defn) <la_val_print>: Return void.
1453 * language.c (unk_lang_val_print): Return void.
1454 * jv-valprint.c (java_val_print): Return void.
1455 * jv-lang.h (java_val_print): Return void.
1456 * f-valprint.c (f_val_print): Return void.
1457 * f-lang.h (f_val_print): Return void.
1458 * d-valprint.c (d_val_print): Return void.
1459 (dynamic_array_type): Update.
1460 * d-lang.h (d_val_print): Return void.
1461 * c-valprint.c (c_val_print): Return void.
1462 * c-lang.h (c_val_print): Return void.
1463 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
1465 * ada-lang.h (ada_val_print): Return void.
1467 2012-03-01 Tom Tromey <tromey@redhat.com>
1469 * value.h (val_print): Return void.
1470 * valprint.c (val_print): Return void.
1472 2012-03-01 Tom Tromey <tromey@redhat.com>
1474 * value.h (common_val_print): Return void.
1475 * valprint.c (common_val_print): Return void.
1477 2012-03-01 Tom Tromey <tromey@redhat.com>
1479 * value.h (value_print): Return void.
1480 * valprint.c (value_print): Return void.
1481 * p-valprint.c (pascal_value_print): Return void.
1482 * p-lang.h (pascal_value_print): Return void.
1483 * language.h (struct language_defn) <la_value_print>: Return
1485 * language.c (unk_lang_value_print): Return void.
1486 * jv-valprint.c (java_value_print): Return void.
1487 * jv-lang.h (java_value_print): Return void.
1488 * f-valprint.c (c_value_print): Don't declare.
1490 * c-valprint.c (c_value_print): Return void.
1491 * c-lang.h (c_value_print): Return void.
1492 * ada-valprint.c (ada_value_print): Return void.
1493 * ada-lang.h (ada_value_print): Return void.
1495 2012-03-01 Tom Tromey <tromey@redhat.com>
1497 * value.c (value_primitive_field): Handle virtual base classes.
1499 2012-03-01 Tom Tromey <tromey@redhat.com>
1501 * gdbtypes.h (struct vbase): Remove.
1503 2012-03-01 Tom Tromey <tromey@redhat.com>
1505 * c-valprint.c (print_function_pointer_address): Move...
1506 * valprint.c: ... here. Make non-static.
1507 * m2-valprint.c (print_function_pointer_address): Remove.
1508 * valprint.h (print_function_pointer_address): Declare.
1510 2012-03-01 Joel Brobecker <brobecker@adacore.com>
1512 * NEWS: Document the fact that one can provide a condition when
1513 creating an Ada exception catchpoint.
1515 2012-03-01 Tom Tromey <tromey@redhat.com>
1517 * valprint.c (val_print_type_code_flags): Fix placement of
1520 2012-03-01 Joel Brobecker <brobecker@adacore.com>
1522 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
1523 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
1524 environment variable before calling update-copyright.
1526 2012-03-01 Joel Brobecker <brobecker@adacore.com>
1528 * gnulib/extra/update-copyright: Update to the latest from
1529 gnulib's git repository.
1530 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
1531 variable to 2 instead of 1.
1533 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1535 * varobj.c (c_value_of_variable): Remove dead code.
1537 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1539 * ada-lex.p (processId): Do not modify already encoded IDs.
1540 Update function documentation.
1542 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1544 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
1545 "name" with "struct symbol *name_sym".
1546 * ada-exp.y (write_var_or_type): Update call to
1547 ada_find_renaming_symbol.
1548 "name" with "struct symbol *name_sym". Adjust Implementation
1549 accordingly. Adjust the function documentation.
1551 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1553 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
1554 * ada-lang.c (ada_find_any_type): Add advance declaration.
1555 Make static. Replace ada_find_any_symbol by
1556 ada_find_any_type_symbol.
1557 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
1558 Improve function description. Make static.
1559 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
1560 Replace ada_find_any_symbol by ada_find_any_type_symbol.
1562 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1564 * ada-lang.c (struct tag_args): Delete.
1565 (ada_get_tsd_type): Function body moved up in source file.
1566 (ada_tag_name_1, ada_tag_name_2): Delete.
1567 (ada_get_tsd_from_tag): New function.
1568 (ada_tag_name_from_tsd): New function.
1569 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
1570 to determine the tag name.
1572 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1574 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
1576 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
1579 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1581 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
1583 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1585 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
1588 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1590 * ada-lang.c (constrained_packed_array_type): If there is a
1591 parallel XA type, use it to determine the array index type.
1593 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1595 * ada-valprint.c (ada_val_print_1): If our value is a reference
1596 to an array descriptor, dereference it before converting it
1599 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1601 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
1602 creating fixed value.
1603 (ada_value_ind, ada_coerce_ref, assign_component)
1604 (ada_evaluate_subexp): Remove call to unwrap_value before
1605 call to ada_to_fixed_value.
1607 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1609 * ada-lang.c (to_fixed_array_type): Set result's type name.
1611 2012-02-29 Joel Brobecker <brobecker@adacore.com>
1613 * ada-lang.c (catch_ada_exception_command_split): Add new
1614 argument cond_string. Add support for condition at end of
1615 "catch exception" commands.
1616 (ada_decode_exception_location): Add new argument cond_string.
1617 Update call to catch_ada_exception_command_split.
1618 (create_ada_exception_catchpoint): Add new argument cond_string.
1619 Set the breakpoint condition if needed.
1620 (catch_ada_exception_command): Update call to
1621 ada_decode_exception_location.
1622 (ada_decode_assert_location): Add function documentation.
1623 Add support for condition at end of "catch assert" command.
1624 (catch_assert_command): Update calls to ada_decode_assert_location
1625 and create_ada_exception_catchpoint.
1627 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1629 Fix disp-step-syscall.exp: fork: single step over fork.
1630 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
1631 (i386_linux_get_syscall_number_from_regcache): ... here, new function
1632 comment, change parameters gdbarch and ptid to regcache. Remove
1633 parameter regcache, initialize gdbarch from regcache here.
1634 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
1636 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
1638 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
1639 'syscall'. Make the 'int' check more strict.
1641 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1643 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
1644 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
1645 (i386_linux_intx80_sysenter_syscall_record): ... here.
1646 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
1647 Use the renamed function name.
1649 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1651 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
1652 * breakpoint.c (until_break_command): Likewise.
1653 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
1654 * infcall.c (call_function_by_hand): Likewise.
1655 * infcmd.c (finish_forward): Likewise.
1656 * infrun.c (insert_exception_resume_breakpoint): Likewise.
1658 2012-02-28 Tristan Gingold <gingold@adacore.com>
1660 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
1661 avoid variable assignments inside condition.
1663 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1665 Fix static analysis issue found by cppcheck.
1666 * microblaze-tdep.c (microblaze_extract_return_value): Fix
1667 uninitialized BUF for size 2.
1669 2012-02-27 Chris Dearman <chris@mips.com>
1670 Nathan Froyd <froydnj@codesourcery.com>
1671 Maciej W. Rozycki <macro@codesourcery.com>
1673 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
1674 (mips16_instruction_has_delay_slot): Likewise.
1675 (mips_segment_boundary): Likewise.
1676 (mips_adjust_breakpoint_address): Likewise.
1677 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
1679 2012-02-27 Maciej W. Rozycki <macro@mips.com>
1680 Maciej W. Rozycki <macro@codesourcery.com>
1682 * infrun.c (handle_inferior_event): Don't proceed through
1683 shared library trampolines if stepping at the machine
1686 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
1688 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
1691 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
1693 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
1694 (sh_stub_unwind_sniffer): New functions.
1695 (sh_stub_unwind): New variable.
1696 (sh_gdbarch_init): Wire everything.
1698 2012-02-27 Pedro Alves <palves@redhat.com>
1700 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
1701 (linux_nat_post_attach_wait): Adjust to use
1702 linux_proc_pid_is_stopped.
1703 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
1704 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
1705 based on pid_is_stopped from both linux-nat.c and
1706 gdbserver/linux-low.c, and renamed.
1708 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
1710 * remote.c (remote_watchpoint_addr_within_range): New function.
1711 (init_remote_ops): Use it.
1713 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
1715 * target.h (target_watchpoint_addr_within_range): Document macro.
1717 2012-02-24 Pedro Alves <palves@redhat.com>
1719 * stack.c (set_last_displayed_sal): Issue internal_error instead
1720 of warning, and issue it after clearing the last displayed sal.
1722 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1723 Pedro Alves <palves@redhat.com>
1725 * breakpoint.c (until_break_command): Install breakpoints after
1726 all frame manipulations.
1728 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
1730 * remote.c (remote_supports_cond_breakpoints): New forward
1732 (remote_add_target_side_condition): New function.
1733 (remote_insert_breakpoint): Add target-side breakpoint
1734 conditional if supported.
1735 (remote_insert_hw_breakpoint): Likewise.
1736 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
1739 * target.c (update_current_target): Inherit
1740 to_supports_evaluation_of_breakpoint_conditions.
1741 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
1743 * target.h (struct target_ops)
1744 <to_supports_evaluation_of_breakpoint_conditions>: New field.
1745 (target_supports_evaluation_of_breakpoint_conditions): New #define.
1747 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
1748 (condition_evaluation_both, condition_evaluation_auto,
1749 condition_evaluation_host, condition_evaluation_target,
1750 condition_evaluation_enums, condition_evaluation_mode_1,
1751 condition_evaluation_mode): New static globals.
1752 (translate_condition_evaluation_mode): New function.
1753 (breakpoint_condition_evaluation_mode): New function.
1754 (gdb_evaluates_breakpoint_condition_p): New function.
1755 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
1756 (mark_breakpoint_modified): New function.
1757 (mark_breakpoint_location_modified): New function.
1758 (set_condition_evaluation_mode): New function.
1759 (show_condition_evaluation_mode): New function.
1760 (bp_location_compare_addrs): New function.
1761 (get_first_location_gte_addr): New helper function.
1762 (set_breakpoint_condition): Free condition bytecode if locations
1763 has become unconditional. Call mark_breakpoint_modified (...).
1764 (condition_command): Call update_global_location_list (1) for
1766 (breakpoint_xfer_memory): Use is_breakpoint (...).
1767 (is_breakpoint): New function.
1768 (parse_cond_to_aexpr): New function.
1769 (build_target_condition_list): New function.
1770 (insert_bp_location): Handle target-side conditional
1771 breakpoints and call build_target_condition_list (...).
1772 (update_inserted_breakpoint_locations): New function.
1773 (insert_breakpoint_locations): Handle target-side conditional
1775 (bpstat_check_breakpoint_conditions): Add comment.
1776 (bp_condition_evaluator): New function.
1777 (bp_location_condition_evaluator): New function.
1778 (print_breakpoint_location): Print information on where the condition
1780 (print_one_breakpoint_location): Likewise.
1781 (init_bp_location): Call mark_breakpoint_location_modified (...) for
1782 breakpoint location.
1783 (force_breakpoint_reinsertion): New functions.
1784 (update_global_location_list): Handle target-side breakpoint
1786 Reinsert locations that are already inserted if conditions have
1788 (bp_location_dtor): Free agent expression bytecode.
1789 (disable_breakpoint): Call mark_breakpoint_modified (...).
1790 Call update_global_location_list (...) with parameter 1 for breakpoints.
1791 (disable_command): Call mark_breakpoint_location_modified (...).
1792 Call update_global_location_list (...) with parameter 1 for breakpoints.
1793 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
1794 (enable_command): mark_breakpoint_location_modified (...).
1795 (_initialize_breakpoint): Update documentation and add
1796 condition-evaluation breakpoint subcommand.
1798 * breakpoint.h: Include ax.h.
1799 (condition_list): New data structure.
1800 (condition_status): New enum.
1801 (bp_target_info) <cond_list>: New field.
1802 (bp_location) <condition_changed, cond_bytecode>: New fields.
1803 (is_breakpoint): New prototype.
1805 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
1807 * remote.c (remote_state) <cond_breakpoints>: New field.
1808 (PACKET_ConditionalBreakpoints): New enum.
1809 (remote_cond_breakpoint_feature): New function.
1810 (remote_protocol_features): Add new ConditionalBreakpoints entry.
1811 (remote_supports_cond_breakpoints): New function.
1812 (_initialize_remote): Add new packet configuration for
1813 target-side conditional breakpoints.
1815 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
1817 * NEWS: Mention target-side conditional breakpoint support,
1818 new condition-evaluation breakpoint subcommand and remote
1821 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
1823 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
1826 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
1828 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
1829 (after_prologue): Remove.
1831 2012-02-23 Tom Tromey <tromey@redhat.com>
1833 * jv-valprint.c (java_val_print): Remove dead code.
1835 2012-02-23 Tristan Gingold <gingold@adacore.com>
1837 * ada-tasks.c (struct ada_tasks_inferior_data): Add
1838 known_tasks_element and known_tasks_length fields.
1839 (read_known_tasks_array): Change argument type. Use pointer type
1840 and number of elements from DATA. Adjust.
1841 (read_known_tasks_list): Likewise.
1842 (get_known_tasks_addr): Remove.
1843 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
1844 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
1845 type and array length. Merge former get_known_tasks_addr code.
1847 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1850 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
1851 it after set_momentary_breakpoint.
1853 2012-02-22 Sterling Augustine <saugustine@google.com>
1856 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
1858 2012-02-22 Gary Benson <gbenson@redhat.com>
1860 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
1861 (find_slot_in_mapped_hash): Likewise.
1863 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1866 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
1867 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
1868 * configure: Regenerate.
1870 2012-02-21 Tristan Gingold <gingold@adacore.com>
1871 Pedro Alves <palves@redhat.com>
1873 * ia64-tdep.c: Do not include libunwind-ia64.h.
1874 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
1875 Include libunwind-ia64.h instead of libunwind.h.
1876 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
1877 for libunwind.h existence.
1878 * configure, config.in: Regenerate.
1880 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
1882 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
1883 instead of value_rtti_target_type.
1884 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
1885 instead of value_rtti_target_type.
1886 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
1887 value_rtti_target_type.
1888 * valops.c (value_ind): Extract function readjust_indirect_value_type.
1889 (value_rtti_target_type): Rename to ...
1890 (value_rtti_indirect_type): ... here and make it indirect. Update
1892 * value.c (readjust_indirect_value_type): New function.
1893 (coerce_ref): Support for enclosing type setting for references
1894 with readjust_indirect_value_type.
1895 * value.h (readjust_value_type): New declaration.
1896 (value_rtti_target_type): Rename to ...
1897 (value_rtti_indirect_type): ... here.
1899 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
1901 * MAINTAINERS (Write After Approval): Add myself to the list.
1903 2012-02-20 Doug Evans <dje@google.com>
1905 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
1906 Rename objfile_p_char parameter to objfilep.
1907 (build_objfile_section_table): Result is now void. All callers
1909 * objfiles.h (struct objfile): Tweak comments, whitespace.
1910 (build_objfile_section_table): Update.
1912 * elfread.c (elf_symfile_segments): Fix warning text.
1914 2012-02-20 Tom Tromey <tromey@redhat.com>
1917 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
1918 particular set of file names once.
1919 (dw2_map_symbol_filenames): Likewise.
1921 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1924 * main.c (write_files): Remove the declaration.
1925 (external_editor_command): Move the declaration ...
1926 [GDBTK] (external_editor_command): ... here. Fix the comment.
1928 2012-02-20 Tom Tromey <tromey@redhat.com>
1930 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
1933 2012-02-20 Tristan Gingold <gingold@adacore.com>
1935 * darwin-nat.h (enum darwin_msg_state): Add comments.
1937 2012-02-20 Tristan Gingold <gingold@adacore.com>
1939 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
1942 2012-20-18 Joel Brobecker <brobecker@adacore.com>
1944 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
1945 between function description and implementation.
1947 2012-02-17 Tom Tromey <tromey@redhat.com>
1950 * python/py-event.c (event_object_getset): New global.
1951 (event_object_type): Reference it.
1952 * python/py-type.c (field_object_getset): New global.
1953 (field_object_type): Reference it.
1954 * python/python-internal.h (gdb_py_generic_dict): Declare.
1955 * python/py-utils.c (gdb_py_generic_dict): New function.
1957 2012-02-17 Tristan Gingold <gingold@adacore.com>
1959 * solib-darwin.c (darwin_current_sos): Check magic and filetype
1961 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
1963 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
1964 TYPE_CALLING_CONVENTION annotation.
1966 2012-02-16 Kevin Buettner <kevinb@redhat.com>
1968 * MAINTAINERS: Add rx to target ISA section.
1969 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
1970 (ALLDEPFILES): Add rx-tdep.c.
1972 2012-02-16 Tom Tromey <tromey@redhat.com>
1974 * symfile.c (symbol_file_add_main_1): Use inferior's
1976 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
1977 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
1979 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
1981 (follow_exec): Use inferior's symfile_flags.
1982 * inferior.h (struct inferior) <symfile_flags>: New field.
1984 2012-02-16 Mike Frysinger <vapier@gentoo.org>
1987 * remote-sim.c (gdbsim_create_inferior): Call error() when
1988 sim_create_inferior() fails.
1990 2012-02-16 Josh Matthews <josh@joshmatthews.net>
1992 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
1994 2012-02-16 Tom Tromey <tromey@redhat.com>
1997 * thread.c (struct current_thread_cleanup) <was_removable>: New
1999 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
2000 (make_cleanup_restore_current_thread): Initialize new field.
2002 2012-02-15 Kevin Buettner <kevinb@redhat.com>
2004 * MAINTAINERS: Add rl78 to target ISA section.
2005 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
2006 (ALLDEPFILES): Add rl78-tdep.c.
2007 * NEWS: Mention rl78 as a new target.
2009 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
2011 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
2013 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
2015 2012-02-15 Tom Tromey <tromey@redhat.com>
2018 * infcmd.c (registers_info): Print just the current register's
2021 2012-02-15 Tom Tromey <tromey@redhat.com>
2023 * python/py-symbol.c (sympy_value): Use _().
2025 2012-02-15 Pedro Alves <palves@redhat.com>
2027 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
2028 output to be like native targets'.
2029 (remote_pid_to_str): Special case the null ptid.
2031 2012-02-14 Stan Shebs <stan@codesourcery.com>
2033 * NEWS: Mention enable count command.
2034 * breakpoint.h (struct breakpoint): New field enable_count.
2035 * breakpoint.c (enable_breakpoint_disp): Add count argument.
2036 (enable_breakpoint): Add arg to call.
2037 (struct disp_data): New struct.
2038 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
2039 (do_map_enable_once_breakpoint): Create a struct and pass it.
2040 (do_map_enable_delete_breakpoint): Ditto.
2041 (do_map_enable_count_breakpoint): New function.
2042 (enable_count_command): New function.
2043 (bpstat_stop_status): Decrement enable_count.
2044 (print_one_breakpoint_location): Report enable count.
2045 (_initialize_breakpoint): Add enable count command.
2047 2012-02-14 Kevin Buettner <kevinb@redhat.com>
2049 * rl78-tdep.c (reggroups.h): Include.
2050 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
2051 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
2052 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
2053 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
2054 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
2055 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
2056 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
2057 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
2058 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
2059 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
2060 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
2061 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
2062 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
2063 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
2064 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
2065 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
2066 beginning of register list.
2067 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
2068 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
2069 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
2070 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
2071 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
2072 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
2073 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
2074 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
2075 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
2076 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
2077 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
2078 the pseudo registers. Rearrange other pseudo registers too so
2079 that the bank registers appear at the end.
2080 (rl78_register_type): Account for the fact that the byte sized
2081 bank registers are now pseudo-registers.
2082 (rl78_register_name): Rearrange the register name array. Make
2083 initial set of raw banked registers inaccessible.
2084 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
2085 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
2086 case for copying bytes back and forth between raw and pseudo
2087 versions of the banked registers. Update other cases to reflect
2089 (rl78_return_value): Update to account for changed names of
2091 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
2092 rl78_register_sim_regno().
2094 2012-02-14 Kevin Buettner <kevinb@redhat.com>
2096 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
2097 the name parameter being passed to find_pc_partial_function().
2099 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2101 * MAINTAINERS: Step down from being ia64 target maintainer.
2103 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2105 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
2106 compilation warning.
2108 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2110 Fix crash on loaded shlibs without loaded exec_bfd.
2111 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
2112 (set_section_command): Replace exec_bfd by p->bfd.
2114 2012-02-10 Tom Tromey <tromey@redhat.com>
2116 * linespec.c (decode_line_internal): Skip symtabs_from_filename
2117 when we have a C++ qualified name.
2119 2012-02-10 Pedro Alves <palves@redhat.com>
2121 * inferior.c (inferior_pid_to_str): New.
2122 (print_inferior, inferior_command): Use it.
2124 2012-02-10 Pedro Alves <palves@redhat.com>
2126 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
2128 * configure: Regenerate.
2130 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2132 * linespec.c (decode_line_internal): Fix comment correctness.
2134 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
2137 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
2138 * amd64bsd-nat.c: Add support for debug registers (adapted from
2140 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
2141 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
2142 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
2143 (amd64bsd_dr_get_control): New functions.
2144 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
2145 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
2146 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
2147 watchpoints initialization.
2148 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
2150 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2152 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
2154 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
2156 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2158 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
2160 2012-02-08 Joel Brobecker <brobecker@adacore.com>
2162 * language.h (symbol_name_cmp_ftype): Renames
2163 symbol_name_match_p_ftype.
2164 (struct language_defn)[la_get_symbol_name_cmp]: Renames
2165 la_get_symbol_name_match_p.
2166 * ada-lang.c (ada_get_symbol_name_cmp): Renames
2167 ada_get_symbol_name_match_p. Update comment.
2168 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
2169 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
2170 Renames symbol_name_match_p. Update field type.
2171 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
2172 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
2173 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
2174 "la_get_symbol_name_cmp" in comments.
2175 * language.c: Likewise.
2177 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2179 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
2181 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
2182 (amd64_sol2_gregset32_reg_offs): Likewise.
2184 2012-02-08 Joel Brobecker <brobecker@adacore.com>
2186 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
2187 of the returned BFD is allocated by GDB.
2189 2012-02-07 Tom Tromey <tromey@redhat.com>
2192 * python/python-internal.h (frame_object_type): Declare.
2193 * python/py-symbol.c (sympy_needs_frame): New function.
2194 (sympy_value): New function.
2195 (symbol_object_getset): Add "needs_frame".
2196 (symbol_object_methods): Add "value".
2197 * python/py-frame.c (frame_object_type): No longer static.
2199 2012-02-07 Tom Tromey <tromey@redhat.com>
2202 * python/py-symbol.c (sympy_line): New function.
2203 (symbol_object_getset): Add "line".
2205 2012-02-07 Tom Tromey <tromey@redhat.com>
2207 * charset.c (find_charset_names): Check 'in' against NULL.
2209 2012-02-06 Doug Evans <dje@google.com>
2211 * gdbtypes.h (struct main_type): Change type of name,tag_name,
2212 and fields.name members from char * to const char *. All uses updated.
2213 (struct cplus_struct_type): Change type of fn_fieldlists.name member
2214 from char * to const char *. All uses updated.
2215 (type_name_no_tag): Update.
2216 (lookup_unsigned_typename, lookup_signed_typename): Update.
2217 * gdbtypes.c (type_name_no_tag): Change result type
2218 from char * to const char *. All callers updated.
2219 (lookup_unsigned_typename, lookup_signed_typename): Change type of
2220 name parameter from char * to const char *.
2221 * symtab.h (struct cplus_specific): Change type of demangled_name
2222 member from char * to const char *. All uses updated.
2223 (struct general_symbol_info): Change type of name and
2224 mangled_lang.demangled_name members from char * to const char *.
2226 (symbol_get_demangled_name, symbol_natural_name): Update.
2227 (symbol_demangled_name, symbol_search_name): Update.
2228 * symtab.c (symbol_get_demangled_name): Change result type
2229 from char * to const char *. All callers updated.
2230 (symbol_natural_name, symbol_demangled_name): Ditto.
2231 (symbol_search_name): Ditto.
2232 (completion_list_add_name): Change type of symname,sym_text,
2233 text,word parameters from char * to const char *.
2234 (completion_list_objc_symbol): Change type of sym_text,
2235 text,word parameters from char * to const char *.
2236 * ada-lang.c (find_struct_field): Change type of name parameter
2237 from char * to const char *.
2238 (encoded_ordered_before): Similarly for N0,N1 parameters.
2239 (old_renaming_is_invisible): Similarly for function_name parameter.
2240 (ada_type_name): Change result type from char * to const char *.
2241 All callers updated.
2242 * ada-lang.h (ada_type_name): Update.
2243 * buildsym.c (hashname): Change type of name parameter
2244 from char * to const char *.
2245 * buildsym.h (hashname): Update.
2246 * dbxread.c (end_psymtab): Change type of include_list parameter
2247 from char ** to const char **.
2248 * dwarf2read.c (determine_prefix): Change result type
2249 from char * to const char *. All callers updated.
2250 * f-lang.c (find_common_for_function): Change type of name, funcname
2251 parameters from char * to const char *.
2252 * f-lang.c (find_common_for_function): Update.
2253 * f-valprint.c (list_all_visible_commons): Change type of funcname
2254 parameters from char * to const char *.
2255 * gdbarch.sh (static_transform_name): Change type of name parameter
2256 and result from char * to const char *.
2257 * gdbarch.c: Regenerate.
2258 * gdbarch.h: Regenerate.
2259 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
2260 of name parameter from char * to const char *.
2261 * jv-lang.c (java_primitive_type_from_name): Ditto.
2262 (java_demangled_signature_length): Similarly for signature parameter.
2263 (java_demangled_signature_copy): Ditto.
2264 (java_demangle_type_signature): Ditto.
2265 * jv-lang.h (java_primitive_type_from_name): Update.
2266 (java_demangle_type_signature): Update.
2267 * objc-lang.c (specialcmp): Change type of a,b parameters
2268 from char * to const char *.
2269 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
2270 from char * to const char *. All callers updated.
2271 * p-lang.h (is_pascal_string_type): Update.
2272 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
2273 of name parameter from char * to const char *.
2274 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
2275 * utils.c (fprintf_symbol_filtered): Ditto.
2276 * defs.h (fprintf_symbol_filtered): Update.
2277 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
2278 * stabsread.h (end_psymtab): Update.
2279 * stack.c (find_frame_funname): Change type of funname parameter
2280 from char ** to const char **.
2281 * stack.h (find_frame_funname): Update.
2282 * typeprint.c (type_print): Change type of varstring parameter
2283 from char * to const char *.
2284 * value.h (type_print): Update.
2285 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
2286 from char * to const char *. All callers updated.
2287 (xcoff_end_psymtab): Change type of include_list parameter
2288 from char ** to const char **. All callers updated.
2289 (swap_sym): Similarly for name parameter. All callers updated.
2290 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
2292 (process_coff_symbol): Use xstrdup.
2293 * stabsread.c (stabs_method_name_from_physname): Renamed from
2294 update_method_name_from_physname. Change result type from void
2295 to char *. All callers updated.
2296 (read_member_functions): In has_destructor case, store name in objfile
2297 obstack instead of malloc space. In !has_stub case, fix mem leak.
2299 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
2301 * configure: Rebuild.
2302 * configure.ac: Put -L../bfd and -L../libiberty at the front of
2305 2012-02-03 Kevin Buettner <kevinb@redhat.com>
2307 * configure.tgt (rl78-*-elf): New target.
2308 * rl78-tdep.c: New file.
2310 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2312 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
2313 and continue the loop. Add QUIT statement.
2315 2012-02-03 Tom Tromey <tromey@redhat.com>
2318 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
2319 bfd_lookup_symbol_from_symtab.
2320 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2321 gdb_bfd_lookup_symbol_from_symtab.
2323 2012-02-03 Joel Brobecker <brobecker@adacore.com>
2325 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
2326 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
2327 symbol. Add assertion that sym2 is never NULL.
2329 2012-02-02 Doug Evans <dje@google.com>
2331 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
2332 "name" parameter to const char ** from char **. All callers updated.
2333 (find_pc_partial_function): Ditto.
2334 (cache_pc_function_name): Change type to const char * from char *.
2335 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
2336 (find_pc_partial_function): Update.
2337 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
2338 type of "name" parameter to const char * from char *.
2340 * arch-utils.c (generic_in_solib_return_trampoline): Change
2341 type of "name" parameter to const char * from char *.
2342 * arch-utils.h (generic_in_solib_return_trampoline): Update.
2343 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
2344 type of "name" parameter to const char * from char *.
2345 * gdbarch.sh (in_solib_return_trampoline): Ditto.
2346 * gdbarch.c: Regenerate.
2347 * gdbarch.h: Regenerate.
2348 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
2349 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
2350 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
2351 type of "name" parameter to const char * from char *.
2352 * skip.c (skip_function_pc): Ditto.
2353 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
2354 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
2355 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
2356 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
2357 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
2358 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
2359 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
2360 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
2361 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
2363 2012-02-02 Pedro Alves <palves@redhat.com>
2365 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
2366 the current inferior has no execution. Make sure the current
2367 remote process matches gdb's current inferior.
2369 2012-02-02 Tom Tromey <tromey@redhat.com>
2372 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
2375 2012-02-02 Tom Tromey <tromey@redhat.com>
2378 * symtab.c (lookup_language_this): Set block_found.
2380 2012-02-01 Tom Tromey <tromey@redhat.com>
2383 * jit.c (struct jit_inferior_data): Rewrite.
2384 (struct jit_objfile_data): New.
2385 (get_jit_objfile_data): New function.
2386 (add_objfile_entry): Update.
2387 (jit_read_descriptor): Return int. Replace descriptor_addr
2388 argument with inf_data. Update. Don't call error.
2389 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
2391 (jit_inferior_init): Don't look up descriptor. Don't call error.
2392 (jit_reset_inferior_data_and_breakpoints)
2393 (jit_inferior_created_observer): Remove.
2394 (jit_inferior_exit_hook): Update.
2395 (jit_executable_changed_observer): Remove.
2396 (jit_event_handler): Update.
2397 (free_objfile_data): Reset inferior data if needed.
2398 (_initialize_jit): Update.
2400 2012-02-01 Tom Tromey <tromey@redhat.com>
2402 * jit.c (bfd_open_from_target_memory): Move higher in file.
2404 2012-02-01 Tristan Gingold <gingold@adacore.com>
2406 * libunwind-frame.c (libunwind_load): Display message if dlopen
2409 2012-02-01 Gary Benson <gbenson@redhat.com>
2411 * symtab.h (symbol_found_callback_ftype): New typedef.
2412 (iterate_over_symbols): Use the above.
2413 * symtab.c (iterate_over_symbols): Likewise.
2414 * language.h (language_defn->la_iterate_over_symbols): Likewise.
2415 * ada-lang.c (ada_iterate_over_symbols): Likewise.
2416 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
2417 (iterate_name_matcher): Document return values.
2418 (collect_one_symbol): Likewise.
2419 (collect_function_symbols): Likewise.
2420 (collect_symbols): Likewise.
2422 2012-02-01 Tom Tromey <tromey@redhat.com>
2424 * ada-lang.c (resolve_subexp): Update.
2425 (ada_lookup_symbol_list): Add 'full_search' argument.
2426 (ada_iterate_over_symbols): Pass 0 as full_search argument to
2427 ada_lookup_symbol_list.
2428 (ada_lookup_encoded_symbol): Update.
2429 (get_var_value): Update.
2430 * ada-exp.y (block_lookup): Update.
2431 (write_var_or_type): Update.
2432 (write_name_assoc): Update.
2433 * ada-lang.h (ada_lookup_symbol_list): Update.
2435 2012-01-31 Tom Tromey <tromey@redhat.com>
2437 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
2440 2012-01-31 Doug Evans <dje@google.com>
2442 * symtab.h: Remove outdated comment.
2443 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
2445 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
2447 Fix build error in Darwin port.
2448 * i386-darwin-nat.c: Include i386-nat.h.
2450 2012-01-30 Tom Tromey <tromey@redhat.com>
2452 PR breakpoints/13568:
2453 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
2454 argument. Check for recursive includes.
2455 (dwarf_decode_macros): Create an include hash.
2457 2012-01-30 Michael Eager <eager@eagercon.com>
2459 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
2460 * ppc-linux-tdep.c: Include glibc-tdep.h.
2461 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
2462 (powerpc_linux_in_plt_stub): New function.
2463 (powerpc_linux_in_dynsym_resolve_code): New function.
2464 (ppc_skip_trampoline_code): New function.
2465 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
2466 Use glibc_skip_solib_resolver.
2468 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2470 Code cleanup: Make 1440 bytes of data segment read-only.
2471 * arch-utils.c (endian_enum): Make it const char *const [].
2472 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
2474 * breakpoint.c (always_inserted_enums): Likewise.
2475 * cli/cli-cmds.c (script_ext_enums): Likewise.
2476 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
2477 enumlist parameter const char *const *.
2478 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
2479 const char *const *.
2480 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
2481 parameter const char *const *.
2482 * cris-tdep.c (cris_modes): Make it const char *const [].
2483 * filesystem.c (target_file_system_kinds): Likewise.
2484 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
2485 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
2486 (can_use_displaced_stepping_enum, scheduler_enums)
2487 (exec_direction_names): Likewise.
2488 * language.c (_initialize_language): Make the type_or_range_names and
2489 case_sensitive_names variables const char *const [].
2490 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
2491 * python/python.c (python_excp_enums): Likewise.
2492 * remote.c (interrupt_sequence_modes): Likewise.
2493 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
2494 * serial.c (logbase_enums): Likewise.
2495 * sh-tdep.c (sh_cc_enum): Likewise.
2496 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
2498 * symtab.c (multiple_symbols_modes): Likewise.
2499 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
2501 * utils.c (internal_problem_modes): Likewise.
2503 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2505 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
2506 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
2509 2012-01-27 Doug Evans <dje@google.com>
2511 * configure.ac (with_python): Fix absolute path handling for win32.
2512 * configure: Regenerate.
2514 2012-01-26 Doug Evans <dje@google.com>
2516 * symtab.c: Whitespace cleanup, no code changes.
2518 * symtab.c (lookup_symbol_in_language): Improve comment.
2519 (lookup_symbol_aux): Fix comment.
2521 * psymtab.c (add_psymbol_to_list): Result is now "void".
2522 * psympriv.h (add_psymbol_to_list): Update.
2524 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
2526 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2528 Do not open script filenames twice.
2529 * cli/cli-cmds.c (source_script_from_stream): Pass to
2530 source_python_script also STREAM.
2531 * python/py-auto-load.c (source_section_scripts): Pass to
2532 source_python_script_for_objfile also STREAM.
2533 (auto_load_objfile_script): Pass to source_python_script_for_objfile
2535 * python/python-internal.h (source_python_script_for_objfile): New
2536 parameter file, rename parameter file to filename.
2537 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
2538 instead if !_WIN32. Update the function comment.
2539 (source_python_script, source_python_script_for_objfile)
2540 (source_python_script): New parameter file, rename parameter file to
2541 filename. Pass FILENAME to python_run_simple_file.
2542 * python/python.h (source_python_script): New parameter file, rename
2543 parameter file to filename.
2545 2012-01-26 Pedro Alves <palves@redhat.com>
2547 * corelow.c (core_has_fake_pid): Delete.
2548 (core_close): Delete references to `core_has_fake_pid'.
2549 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
2550 (core_open): Delete references to `core_has_fake_pid'.
2551 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
2554 2012-01-26 Joel Brobecker <brobecker@adacore.com>
2556 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
2557 Remove language parameter from name_matcher. Adjust the comment.
2558 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
2559 Remove language parameter.
2560 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
2561 * linespec.c (iterate_name_matcher): Likewise.
2562 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
2563 name_matcher. Adjust call accordingly.
2564 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
2565 (maintenance_check_symtabs): Adjust type of parameter "fun".
2566 * psymtab.h (maintenance_check_symtabs): Likewise.
2568 2012-01-26 Joel Brobecker <brobecker@adacore.com>
2570 * language.h (symbol_name_match_p_ftype): New typedef.
2571 (struct language_defn): Replace field la_symbol_name_compare
2572 by la_get_symbol_name_match_p.
2573 * ada-lang.c (ada_get_symbol_name_match_p): New function.
2574 (ada_language_defn): Use it.
2575 * linespec.c (struct symbol_matcher_data): New type.
2576 (iterate_name_matcher): Rewrite.
2577 (iterate_over_all_matching_symtabs): Pass a pointer to
2578 a symbol_matcher_data struct to expand_symtabs_matching
2579 instead of just the lookup name.
2580 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
2581 opencl-lang.c, p-lang.c, language.c: Delete field
2582 la_symbol_name_compare, and replace by NULL for new field
2583 la_get_symbol_name_match_p.
2584 * symfile.h (struct quick_symbol_functions): Update comment.
2586 2012-01-25 Tom Tromey <tromey@redhat.com>
2588 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
2591 2012-01-24 Tom Tromey <tromey@redhat.com>
2594 * solib.c (update_solib_list): Update the program space's
2595 added_solibs and deleted_solibs fields.
2596 * progspace.h (struct program_space) <added_solibs,
2597 deleted_solibs>: New fields.
2598 (clear_program_space_solib_cache): Declare.
2599 * progspace.c (release_program_space): Call
2600 clear_program_space_solib_cache.
2601 (clear_program_space_solib_cache): New function.
2602 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
2603 bpstat_stop_status. Use handle_solib_event.
2604 * breakpoint.c: Include gdb_regex.h.
2605 (print_solib_event): New function.
2606 (bpstat_print): Use print_solib_event.
2607 (bpstat_stop_status): Add special case for bp_shlib_event.
2608 (handle_solib_event): New function.
2609 (bpstat_what): Use handle_solib_event.
2610 (struct solib_catchpoint): New.
2611 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
2612 (breakpoint_hit_catch_solib, check_status_catch_solib)
2613 (print_it_catch_solib, print_one_catch_solib)
2614 (print_mention_catch_solib, print_recreate_catch_solib): New
2616 (catch_solib_breakpoint_ops): New global.
2617 (catch_load_or_unload, catch_load_command_1)
2618 (catch_unload_command_1): New functions.
2619 (internal_bkpt_check_status): Add special case for
2621 (internal_bkpt_print_it): Use print_solib_event.
2622 (initialize_breakpoint_ops): Initialize
2623 catch_solib_breakpoint_ops.
2624 (_initialize_breakpoint): Register "catch load" and "catch
2626 * breakpoint.h (handle_solib_event): Declare.
2627 * NEWS: Add entry for "catch load" and "catch unload".
2629 2012-01-24 Tom Tromey <tromey@redhat.com>
2631 * ada-lang.c: Include gdb_vecs.h.
2632 * charset.c: Include gdb_vecs.h.
2633 * tracepoint.h: Include gdb_vecs.h.
2634 * gdb_vecs.h: New file.
2636 2012-01-24 Pedro Alves <pedro@codesourcery.com>
2638 * breakpoint.c (breakpoint_hit_catch_fork)
2639 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
2640 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
2641 * infrun.c (inferior_has_forked, inferior_has_vforked)
2642 (inferior_has_execd, inferior_has_called_syscall): Delete.
2643 (handle_syscall_event): Get syscall_number from the execution
2644 control state's wait status.
2645 (wait_for_inferior): Don't clear syscall_number.
2647 2012-01-24 Pedro Alves <palves@redhat.com>
2649 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
2650 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
2651 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
2652 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
2654 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
2655 false for events other than TARGET_SIGNAL_TRAP.
2656 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
2658 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
2659 events other than TARGET_SIGNAL_TRAP.
2660 (tracepoint_breakpoint_hit): Add `ws' parameter.
2661 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
2663 (bpstat_stop_status): Same.
2664 (pc_at_non_inline_function): Same.
2665 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
2666 to pass the current event's waitstatus to bpstat_stop_status
2667 and pc_at_non_inline_function.
2669 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2672 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
2673 Update the function comment for it.
2674 (source_script_with_search): Call make_cleanup_fclose for STREAM.
2675 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
2678 2012-01-24 Pedro Alves <palves@redhat.com>
2680 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
2681 outside `bs->stop' block.
2682 (bpstat_what): Rework bp_shlib_event handling.
2683 (internal_bkpt_check_status): If the breakpoint is a
2684 bp_shlib_event, then set bs->stop and bs->print if
2685 stop_on_solib_events is set.
2687 2012-01-24 Gary Benson <gbenson@redhat.com>
2689 Delete #if 0'd out code.
2690 * stack.c (print_frame_label_vars): Remove.
2691 (catch_info): Likewise.
2692 (_initialize_stack): Remove "info catch" command.
2693 * NEWS: Mention the above.
2695 2012-01-24 Pedro Alves <palves@redhat.com>
2697 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
2699 (remote_notice_new_inferior): If the remote end doesn't support
2700 the multiprocess extensions, then the PID is fake.
2701 (add_current_inferior_and_thread): New.
2702 (remote_start_remote): Use it.
2703 (extended_remote_attach_1): Adjust.
2704 (extended_remote_create_inferior_1): Use
2705 add_current_inferior_and_thread.
2707 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2709 Fix watchpoints to be specific for each inferior.
2710 * breakpoint.c (watchpoint_in_thread_scope): Verify also
2711 current_program_space.
2712 * i386-nat.c (i386_inferior_data_cleanup): New.
2713 (i386_inferior_data_get): Replace variable inf_data_local by an
2715 (i386_use_watchpoints): Initialize i386_inferior_data.
2716 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
2717 specific iterate_over_lwps.
2719 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2721 Fix watchpoints across inferior fork.
2722 * amd64-linux-nat.c (update_debug_registers_callback): Update the
2723 comment for linux_nat_iterate_watchpoint_lwps.
2724 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
2725 linux_nat_iterate_watchpoint_lwps.
2726 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
2727 * i386-linux-nat.c (update_debug_registers_callback): Update the
2728 comment for linux_nat_iterate_watchpoint_lwps.
2729 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
2730 linux_nat_iterate_watchpoint_lwps.
2731 (i386_linux_prepare_to_resume): New comment on Linux kernel.
2732 * i386-nat.c: Include inferior.h.
2733 (dr_mirror): Remove.
2734 (i386_inferior_data, struct i386_inferior_data)
2735 (i386_inferior_data_get): New.
2736 (i386_debug_reg_state): Use i386_inferior_data_get.
2737 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
2738 (i386_insert_watchpoint, i386_remove_watchpoint)
2739 (i386_stopped_data_address, i386_insert_hw_breakpoint)
2740 (i386_remove_hw_breakpoint): New variable state, use
2741 i386_debug_reg_state instead of DR_MIRROR.
2742 * linux-nat.c (delete_lwp): New declaration.
2743 (num_lwps): Move here from downwards.
2744 (delete_lwp_cleanup): New.
2745 (linux_child_follow_fork): Create new child_lp, call
2746 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
2748 (num_lwps): Move upwards.
2749 (linux_nat_iterate_watchpoint_lwps): New.
2750 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
2751 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
2753 2012-01-24 Joel Brobecker <brobecker@adacore.com>
2757 2012-01-23 Pedro Alves <palves@redhat.com>
2759 * top.c (caution): Rename to ...
2760 (confirm): ... this.
2761 (show_caution): Rename to ...
2762 (show_confirm): ... this.
2763 (quit_cover): Adjust.
2764 (init_main): Adjust.
2765 * top.h (caution): Rename to ...
2766 (confirm): ... this.
2767 * utils.c (internal_vproblem, defaulted_query): Adjust.
2769 2012-01-23 Pedro Alves <palves@redhat.com>
2771 * top.c (caution): Update comment.
2772 (execute_command): Don't consider the current value of `caution'.
2774 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2776 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
2778 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
2780 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2781 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
2782 * target.c (target_fileio_pwrite): Remove buffer address from
2784 (target_fileio_pread): Likewise.
2786 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2788 * NEWS: Document remote "info proc" and "generate-core-file".
2790 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2792 * gdbarch.sh (find_memory_regions): New callback.
2793 * gdbarch.c, gdbarch.h: Regenerate.
2795 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
2796 callback before falling back to target method.
2798 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
2799 (linux_target_install_ops): No longer install it.
2801 * linux-tdep.c (linux_find_memory_regions): New function.
2802 (linux_init_abi): Install it.
2804 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2806 * gdbarch.sh (make_corefile_notes): New architecture callback.
2807 * gdbarch.c: Regenerate.
2808 * gdbarch.h: Likewise.
2810 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
2811 before target_make_corefile_notes. If NULL is returned, the
2812 target does not support core file generation.
2814 * linux-nat.c: Include "linux-tdep.h".
2815 (find_signalled_thread, find_stop_signal): Remove.
2816 (linux_nat_do_thread_registers): Likewise.
2817 (struct linux_nat_corefile_thread_data): Likewise.
2818 (linux_nat_corefile_thread_callback): Likewise.
2819 (iterate_over_spus): Likewise.
2820 (struct linux_spu_corefile_data): Likewise.
2821 (linux_spu_corefile_callback): Likewise.
2822 (linux_spu_make_corefile_notes): Likewise.
2823 (linux_nat_collect_thread_registers): New function.
2824 (linux_nat_make_corefile_notes): Replace contents by call to
2825 linux_make_corefile_notes passing linux_nat_collect_thread_registers
2826 as native-only callback.
2828 * linux-tdep.h: Include "bfd.h".
2829 (struct regcache): Add forward declaration.
2830 (linux_collect_thread_registers_ftype): New typedef.
2831 (linux_make_corefile_notes): Add prototype.
2832 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
2833 "regset.h", and "elf-bfd.h".
2834 (find_signalled_thread, find_stop_signal): New functions.
2835 (linux_spu_make_corefile_notes): Likewise.
2836 (linux_collect_thread_registers): Likewise.
2837 (struct linux_corefile_thread_data): New data structure.
2838 (linux_corefile_thread_callback): New funcion.
2839 (linux_make_corefile_notes): Likewise.
2840 (linux_make_corefile_notes_1): Likewise.
2841 (linux_init_abi): Install it.
2843 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2845 * gdbarch.sh (info_proc): New callback.
2846 * gdbarch.c, gdbarch.h: Regenerate.
2848 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
2849 before falling back to the target info_proc callback.
2851 * linux-nat.c: Do not include "cli/cli-utils.h".
2852 (linux_nat_info_proc): Remove.
2853 (linux_target_install_ops): No longer install it.
2855 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
2856 (read_mapping): New function.
2857 (linux_info_proc): Likewise.
2858 (linux_init_abi): Install it.
2860 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2862 * defs.h (enum info_proc_what): Moved here from linux-nat.c
2863 * infcmd.c: (info_proc_cmd_1): New function.
2864 (info_proc_cmd): New function, moved here from equivalent routine
2865 orignally in linux-nat.c.
2866 (info_proc_cmd_mappings): Likewise.
2867 (info_proc_cmd_stat): Likewise.
2868 (info_proc_cmd_status): Likewise.
2869 (info_proc_cmd_cwd): Likewise.
2870 (info_proc_cmd_cmdline): Likewise.
2871 (info_proc_cmd_exe): Likewise.
2872 (info_proc_cmd_all): Likewise.
2873 (_initialize_infcmd): Install "info proc" command and subcommands.
2875 * target.h (struct target_ops): Add to_info_proc.
2876 (target_info_proc): Add prototype.
2877 * target.c (target_info_proc): New function.
2879 * procfs.c (procfs_info_proc): Add prototype.
2880 (info_proc_cmd): Rename into ...
2881 (procfs_info_proc): ... this. Update argument types as appropriate
2882 for a to_info_proc implementation. Handle "what" argument.
2883 (procfs_target): Install procfs_info_proc.
2884 (_initialize_procfs): No longer install "info proc" command.
2886 * linux-nat.c: (enum info_proc_what): Remove.
2887 (linux_nat_info_proc_cmd_1): Rename into ...
2888 (linux_nat_info_proc): ... this. Update argument types as appropriate
2889 for a to_info_proc implementation.
2890 (linux_nat_info_proc_cmd): Remove.
2891 (linux_nat_info_proc_cmd_mappings): Likewise.
2892 (linux_nat_info_proc_cmd_stat): Likewise.
2893 (linux_nat_info_proc_cmd_status): Likewise.
2894 (linux_nat_info_proc_cmd_cwd): Likewise.
2895 (linux_nat_info_proc_cmd_cmdline): Likewise.
2896 (linux_nat_info_proc_cmd_exe): Likewise.
2897 (linux_nat_info_proc_cmd_all): Likewise.
2898 (linux_target_install_ops): Install linux_nat_info_proc.
2899 (_initialize_linux_nat): No longer install "info proc" command
2902 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2904 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
2905 * config.in, configure: Regenerate.
2907 * target.h (struct target_ops): Add to_fileio_readlink.
2908 (target_fileio_readlink): Add prototype.
2909 * target.c (target_fileio_readlink): New function.
2911 * inf-child.c: Conditionally include <sys/param.h>.
2912 (inf_child_fileio_readlink): New function.
2913 (inf_child_target): Install it.
2915 * remote.c (PACKET_vFile_readlink): New enum value.
2916 (remote_hostio_readlink): New function.
2917 (init_remote_ops): Install it.
2918 (_initialize_remote): Handle vFile:readlink packet type.
2920 2012-01-20 Pedro Alves <palves@redhat.com>
2921 Ulrich Weigand <ulrich.weigand@linaro.org>
2923 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
2924 * config.in, configure: Regenerate.
2926 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
2927 to_fileio_pread, to_fileio_close, to_fileio_unlink.
2928 (target_fileio_open): Add prototype.
2929 (target_fileio_pwrite): Likewise.
2930 (target_fileio_pread): Likewise.
2931 (target_fileio_close): Likewise.
2932 (target_fileio_unlink): Likewise.
2933 (target_fileio_read_alloc): Likewise.
2934 (target_fileio_read_stralloc): Likewise.
2936 * target.c: Include "gdb/fileio.h".
2937 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
2938 (default_fileio_target): New function.
2939 (target_fileio_open): Likewise.
2940 (target_fileio_pwrite): Likewise.
2941 (target_fileio_pread): Likewise.
2942 (target_fileio_close): Likewise.
2943 (target_fileio_unlink): Likewise.
2944 (target_fileio_close_cleanup): Likewise.
2945 (target_fileio_read_alloc_1): Likewise.
2946 (target_fileio_read_alloc): Likewise.
2947 (target_fileio_read_stralloc): Likewise.
2949 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
2950 <fcntl.h>, and <unistd.h>.
2951 (inf_child_fileio_open_flags_to_host): New function.
2952 (inf_child_errno_to_fileio_error): Likewise.
2953 (inf_child_fileio_open): Likewise.
2954 (inf_child_fileio_pwrite): Likewise.
2955 (inf_child_fileio_pread): Likewise.
2956 (inf_child_fileio_close): Likewise.
2957 (inf_child_fileio_unlink): Likewise.
2958 (inf_child_target): Install to_fileio routines.
2960 * remote.c (init_remote_ops): Install to_fileio routines.
2962 2012-01-20 Pedro Alves <palves@redhat.com>
2963 Ulrich Weigand <ulrich.weigand@linaro.org>
2965 * remote.c (remote_multi_process_p): Only check for multi-process
2966 protocol feature, do not check for extended protocol.
2967 (remote_supports_multi_process): Check for extended protocol here.
2968 (set_general_process): Likewise.
2969 (extended_remote_kill): Likewise.
2970 (remote_pid_to_str): Likewise.
2971 (remote_query_supported): Always query multiprocess mode.
2973 2012-01-20 Pedro Alves <palves@redhat.com>
2974 Ulrich Weigand <ulrich.weigand@linaro.org>
2976 * inferior.h (struct inferior): Add fake_pid_p.
2977 * inferior.c (exit_inferior_1): Clear fake_pid_p.
2978 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
2979 magic_null_ptid since the remote side doesn't provide a real PID.
2981 2012-01-19 Tom Tromey <tromey@redhat.com>
2983 * NEWS: Combine the two Python sections.
2985 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2987 * target.h (target_close): Update comment on the target's unpush state.
2989 2012-01-19 Pedro Alves <palves@redhat.com>
2991 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
2992 linux_nat_async directly instead of going through the target
2994 * target.c (unpush_target): Close target after unpushing it, not
2997 2012-01-19 Gary Benson <gbenson@redhat.com>
2999 * mdebugread.c (sort_blocks): Replace integer constants with ones
3000 derived from FIRST_LOCAL_BLOCK.
3002 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
3003 Jan Kratochvil <jan.kratochvil@redhat.com>
3006 * symfile.c (find_separate_debug_file): New function.
3007 (terminate_after_last_dir_separator): Likewise.
3008 (find_separate_debug_file_by_debuglink): Also try realpath.
3009 * configure.ac (AC_CHECK_FUNCS): Add lstat.
3010 * configure: Regenerate.
3011 * config.in: Regenerate.
3013 2012-01-18 Doug Evans <dje@google.com>
3015 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
3016 (main.o): Remove rule.
3017 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
3018 (--with-sysroot): Rewrite.
3019 * configure: Regenerate.
3020 * config.in: Regenerate.
3022 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
3024 * parse.c (initialize_expout): New function.
3025 (reallocate_expout): Likewise.
3026 (parse_exp_in_context): Use `initialize_expout' and
3027 `reallocate_expout' when appropriate.
3029 2012-01-18 Pedro Alves <palves@redhat.com>
3031 * record.c (struct record_breakpoint, record_breakpoint_p)
3032 (record_breakpoints): New.
3033 (record_insert_breakpoint, record_remove_breakpoint): Manage
3034 record breakpoints list. Only remove breakpoints from the
3035 inferior if they had been inserted there in the first place.
3037 2012-01-17 Doug Evans <dje@google.com>
3039 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
3040 if we know we don't have a file name to look for.
3042 2012-01-17 Pedro Alves <palves@redhat.com>
3044 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
3045 the frame's stop reason is UNWIND_UNAVAILABLE.
3047 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3049 Fix compilation error.
3050 * m2-exp.y (yyerror): Use ANSI C prototype.
3052 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3054 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
3055 (growbuf_by_size): Likewise.
3056 (yyerror): Likewise.
3057 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
3058 (modblock): Remove variable (was #if 0'ed).
3059 (parse_number): Convert prototype from K&R to ANSI C.
3060 (yyerror): Likewise.
3061 * objc-exp.y (parse_number): Likewise.
3062 (yyerror): Likewise.
3063 (yylex): Remove #if 0'ed code.
3064 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
3065 (yyerror): Likewise.
3067 2012-01-16 Tom Tromey <tromey@redhat.com>
3070 * symtab.h (compare_filenames_for_search): Declare.
3071 * symtab.c (compare_filenames_for_search): New function.
3072 (iterate_over_some_symtabs): Use it.
3073 * symfile.h (struct quick_symbol_functions)
3074 <map_symtabs_matching_filename>: Change spec.
3075 * psymtab.c (partial_map_symtabs_matching_filename): Use
3076 compare_filenames_for_search. Update for new spec.
3077 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
3078 compare_filenames_for_search. Update for new spec.
3079 * breakpoint.c (clear_command): Use compare_filenames_for_search.
3081 2012-01-16 Tom Tromey <tromey@redhat.com>
3084 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
3085 (struct main_type) <flag_flag_enum>: New field.
3086 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
3087 * NEWS: Add entries.
3088 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
3090 * python/lib/gdb/printing.py (_EnumInstance): New class.
3091 (FlagEnumerationPrinter): Likewise.
3093 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3095 * breakpoint.c (create_sals_from_address_default): New function.
3096 (create_breakpoints_sal_default): Likewise.
3097 (decode_linespec_default): Likewise.
3098 (is_marker_spec): Removed.
3099 (strace_marker_p): New function.
3100 (init_breakpoint_sal): Using `strace_marker_p' instead of
3102 (create_breakpoint): Call method `create_sals_from_address' from
3103 breakpoint_ops, replacing code that created SALs conditionally
3104 on the type of the breakpoint. Call method `create_breakpoints_sal',
3105 replacing code that created breakpoints conditionally on the type
3107 (base_breakpoint_create_sals_from_address): New function.
3108 (base_breakpoint_create_breakpoints_sal): Likewise.
3109 (base_breakpoint_decode_linespec): Likewise.
3110 (base_breakpoint_ops): Add methods
3111 `base_breakpoint_create_sals_from_address',
3112 `base_breakpoint_create_breakpoints_sal' and
3113 `base_breakpoint_decode_linespec'.
3114 (bkpt_create_sals_from_address): New function.
3115 (bkpt_create_breakpoints_sal): Likewise.
3116 (bkpt_decode_linespec): Likewise.
3117 (tracepoint_create_sals_from_address): Likewise.
3118 (tracepoint_create_breakpoints_sal): Likewise.
3119 (tracepoint_decode_linespec): Likewise.
3120 (strace_marker_create_sals_from_address): Likewise.
3121 (strace_marker_create_breakpoints_sal): Likewise.
3122 (strace_marker_decode_linespec): Likewise.
3123 (strace_marker_breakpoint_ops): New variable.
3124 (addr_string_to_sals): Remove `marker_spec'. Call method
3125 `decode_linespec' from breakpoint_ops, replacing code that decoded
3126 an address string into a SAL. Use `strace_marker_p' instead of
3128 (strace_command): Decide whether we are dealing with a static
3129 tracepoint with marker or not. Use the appropriate breakpoint_ops.
3130 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
3131 * breakpoint.h (linespec_result, linespec_sals): New forward
3133 (breakpoint_ops) <create_sals_from_address>,
3134 <create_breakpoints_sal>, <decode_linespec>: New methods.
3136 2012-01-14 Doug Evans <dje@google.com>
3138 * NEWS: Update text for "maint set python print-stack".
3139 It is deprecated in gdb 7.4 and deleted in 7.5.
3141 2012-01-13 Eli Zaretskii <eliz@gnu.org>
3143 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
3146 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3148 * configure: Regenerate.
3149 * config.in: Regenerate.
3151 2012-01-12 Keith Seitz <keiths@redhat.com>
3154 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
3155 (ANONYMOUS_UNION_NAME): Define.
3156 (is_path_expr_parent): New function.
3157 (get_path_expr_parent): New function.
3158 (is_anonymous_child): New function.
3159 (create_child_with_value): If the child is anonymous and without
3160 a name, assign an object name to it.
3161 (c_describe_child): Use get_path_expr_parent to determine
3162 the parent expression.
3163 If there field represents an anonymous struct or union and
3164 has no name, set an appropriate display name and expression.
3165 (cplus_describe_child): Likewise.
3167 2012-01-12 Pedro Alves <palves@redhat.com>
3169 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
3170 available when %ebp is found to be zero (outermost).
3172 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
3174 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
3175 an internal gdb_static_assert.
3176 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
3178 2012-01-11 Tom Tromey <tromey@redhat.com>
3181 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
3182 catch" and "catch throw".
3184 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
3186 * blockframe.c (block_innermost_frame): Start search from selected
3187 frame, if present, or otherwise the current frame.
3189 * c-exp.y (variable): Update innermost_block for
3190 'block COLONCOLON NAME' clause.
3191 * m2-exp.y (variable): Ditto.
3192 * objc-exp.y (variable): Ditto.
3194 2012-01-10 Tom Tromey <tromey@redhat.com>
3197 * python/python.c (finish_python_initialization): Set sys.argv.
3199 2012-01-10 Doug Evans <dje@google.com>
3201 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
3202 "want_line_info". All callers updated.
3203 (dwarf_decode_lines_1): New function.
3204 (handle_DW_AT_stmt_list): Add function comment.
3205 New arg "want_line_info". All callers updated.
3206 (read_file_scope,read_type_unit_scope): Move comment from
3207 handle_DW_AT_stmt_list to here.
3209 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3211 Fix regression after libiberty/ update for GCC PR 6057 and others.
3212 * c-exp.y (operator) <OPERATOR DELETE>
3213 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
3214 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
3215 (make_builtin_type, make_name): New variable i, add gdb_assert.
3216 (operator) <OPERATOR NEW>: Update ARGS to 3.
3217 (operator) <OPERATOR DELETE>: Add trailing space.
3218 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
3219 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
3220 * cp-support.c (cp_canonicalize_string): Check NULL from
3221 cp_comp_to_string, call warning and return.
3223 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3225 Fix duplicate .o files after omitting libbfd.a.
3226 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
3227 (SFILES): Add corelow.c.
3228 (COMMON_OBS): Add corelow.o.
3229 (ALLDEPFILES): Remove corelow.c.
3230 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
3231 * config/alpha/alpha-osf3.mh: Likewise.
3232 * config/alpha/fbsd.mh: Likewise.
3233 * config/arm/nbsdaout.mh: Likewise.
3234 * config/arm/nbsdelf.mh: Likewise.
3235 * config/i386/i386gnu.mh: Likewise.
3236 * config/ia64/hpux.mh: Likewise.
3237 * config/ia64/linux.mh: Likewise.
3238 * config/m32r/linux.mh: Likewise.
3239 * config/m68k/linux.mh: Likewise.
3240 * config/mips/irix5.mh: Likewise.
3241 * config/mips/irix6.mh: Likewise.
3242 * config/pa/hpux.mh: Likewise.
3243 * config/pa/linux.mh: Likewise.
3244 * config/powerpc/aix.mh: Likewise.
3245 * config/sparc/linux.mh: Likewise.
3246 * config/sparc/linux64.mh: Likewise.
3247 * config/sparc/sol2.mh: Likewise.
3248 * config/vax/vax.mh: Likewise.
3249 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
3250 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
3251 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
3252 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
3253 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
3254 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
3255 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
3256 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
3257 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
3258 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
3259 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
3260 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
3261 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
3262 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
3263 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
3264 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
3265 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
3266 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
3267 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
3268 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
3269 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
3270 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
3271 corelow.o from gdb_target_obs.
3272 * corefile.c (core_target): Update the comment on NULL value.
3273 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
3274 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
3275 MATCHES. Drop YUMMY set on NULL.
3276 (core_close): Do not call exit_inferior_silent on zero PID. Do not
3277 reclaim CORE_DATA if it is already NULL.
3279 2012-01-09 Doug Evans <dje@google.com>
3281 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
3282 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
3284 2012-01-09 Keith Seitz <keiths@redhat.com>
3286 * breakpoint.c (wrapper.h): Don't include.
3288 2012-01-09 Keith Seitz <keiths@redhat.com>
3290 * Makefile.in (SFILES): Remove wrapper.c.
3291 (HFILES_NO_SRCDIR): Remove wrapper.h.
3292 (COMMON_OBS): Remove wrapper.o.
3293 * cli/cli-interp.c: Don't inlude wrapper.h.
3294 * corelow.c: Likewise.
3295 (core_open): Replace gdb_target_find_new_threads with
3296 TRY_CATCH around target_find_new_threads.
3297 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
3298 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
3299 * varobj.c (varobj_create): Likewise for parse_exp_1 and
3300 evaluate_expression.
3301 (varobj_set_value): Likewise for evaluate_expression and
3303 (install_new_variable): Likewise for value_fetch_lazy.
3304 (adjust_value_for_child_access): Likewise for value_ind.
3305 (c_describe_child): Likewise for value_subscript and
3307 (c_value_of_root): Likewise for evaluate_expression.
3308 * wrapper.c: Remove.
3309 * wrapper.h: Remove.
3311 2012-01-09 Doug Evans <dje@google.com>
3313 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
3314 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
3315 "abfd" args with "section". All callers updated.
3316 Error checking code moved ...
3317 (error_check_comp_unit_head): ... here. New function.
3318 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
3319 Delete arg "abfd". New arg "type_offset". All callers updated.
3320 (create_debug_types_hash_table): Simplify by using
3321 read_and_check_type_unit_head.
3323 * parser-defs.h (namecopy): Delete.
3324 * parse.c (namecopy, namecopy_size): Move into copy_name.
3326 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3328 Partially fix duplicate .o files after omitting libbfd.a.
3329 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
3330 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3331 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
3332 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3333 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
3334 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
3335 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3337 2012-01-09 Pedro Alves <palves@redhat.com>
3339 * MAINTAINERS: Update my email address.
3341 2012-01-08 Doug Evans <dje@google.com>
3343 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
3344 n_type_units. Rename type_comp_units to all_type_units.
3346 (add_signatured_type_cu_to_table): Renamed from
3347 add_signatured_type_cu_to_list. All callers updated.
3349 * gdbtypes.h (struct cplus_struct_type): Delete member
3350 nfn_fields_total. All uses removed.
3352 2012-01-06 Doug Evans <dje@google.com>
3354 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
3356 (dwarf2_find_comp_unit): Delete.
3357 (process_psymtab_comp_unit): Make result "void".
3358 Delete args buffer, info_ptr, buffer_size, and replace with
3359 "section". All callers updated.
3360 (dwarf2_build_psymtabs_hard): Simplify.
3362 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
3363 Thiago Jung Bauermann <bauerman@br.ibm.com>
3365 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
3366 before `struct gdb_exception'.
3367 * breakpoint.c (update_global_location_list_nothrow)
3368 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
3369 * cp-abi.c (value_rtti_type): Likewise.
3370 * cp-support.c (cp_validate_operator): Likewise.
3371 * infrun.c (insert_exception_resume_breakpoint)
3372 (check_exception_resume, keep_going): Likewise.
3373 * mi-interp.c (mi_breakpoint_created)
3374 (mi_breakpoint_modified): Likewise.
3375 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
3376 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
3377 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
3379 2012-01-05 Doug Evans <dje@google.com>
3381 * dwarf2read.c (statement_prologue): Delete, unused.
3383 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
3384 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
3386 * dwarf2read.c (comp_unit_header): Delete, unused.
3388 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
3390 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
3391 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
3393 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
3395 * infrun.c (normal_stop): Don't skip calling the normal_stop
3396 observers if the thread was doing a multi-step, but stopped for
3397 some reason other than stepping.
3399 2012-01-05 Pedro Alves <alves.ped@gmail.com>
3401 * cli/cli-decode.h: Add comments.
3402 (CMD_LIST_AMBIGUOUS): Moved to command.h
3403 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3404 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
3405 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
3406 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
3407 (add_com, add_com_alias, add_info, add_info_alias)
3408 (complete_on_cmdlist, complete_on_enum, help_list): Remove
3410 * command.h: Add and adjust comments.
3411 (CMD_LIST_AMBIGUOUS): Moved here.
3412 (help_cmd, help_cmd_list): Delete declarations.
3414 2012-01-04 Doug Evans <dje@google.com>
3416 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
3417 All callers updated.
3418 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
3419 Replace all arguments with "per_cu". All callers updated.
3421 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
3423 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
3424 New arg "per_cu". All callers updated.
3426 Delete #if 0'd out code.
3427 * language.c (binop_result_type): Delete.
3428 (simple_type, ordered_type, same_type, integral_type): Delete.
3429 (numeric_type, character_type, string_type, boolean_type): Delete.
3430 (float_type, structured_type): Delete.
3431 * language.h: Update.
3433 2012-01-04 Tom Tromey <tromey@redhat.com>
3435 * python/py-value.c (valpy_binop): Initialize 'res_val'.
3437 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3439 * corefile.c (close_exec_file): Delete.
3440 (reopen_exec_file): Remove commented out code that seems related
3441 to close_exec_file, which is being deleted here.
3442 * inferior.h (close_exec_file): Delete.
3443 * fork-child.c (fork_inferior): Remove call to fork_inferior.
3445 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3447 * ada-lang.c: #include "cli/cli-utils.h".
3448 (get_selections): Use skip_spaces.
3449 (ada_get_next_arg): Use skip_spaces and skip_to_space.
3450 (catch_ada_exception_command_split): Use skip_spaces.
3451 (ada_decode_assert_location): Likewise.
3453 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3455 * linespec.c (decode_line_internal): Check for C++ or Java
3456 compound constructs only if the current language is C, C++
3459 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3462 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3463 Joel Brobecker <brobecker@adacore.com>
3464 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
3465 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3467 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
3468 fall through into AT_ENTRY_POINT.
3469 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
3471 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
3472 PPC_INSN_SIZE skip to 3 times.
3474 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3476 * linespec.c (add_minsym): Preserve function descriptors.
3478 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3480 * breakpoint.c (all_locations_are_pending): Consider locations
3481 in program spaces executing during startup pending as well.
3483 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3485 Copyright year update in most files of the GDB Project.
3487 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3489 * copyright.sh: Delete.
3490 * copyright.py: Rewrite.
3492 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3494 * gnulib/extra/update-copyright: New file, imported from gnulib.
3496 2012-01-04 Joel Brobecker <brobecker@adacore.com>
3498 * README (Copyright and License Notices): New section.
3500 2012-01-03 Tom Tromey <tromey@redhat.com>
3503 * python/py-value.c (valpy_dereference, valpy_get_address
3504 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
3505 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
3506 (valpy_absolute, valpy_richcompare): Free intermediate values.
3508 2011-01-03 Joel Brobecker <brobecker@adacore.com>
3510 * ada-lang.c: Reformat the copyright notice.
3512 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3514 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3515 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
3516 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
3517 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
3518 Revert this part of:
3519 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3520 Build gdb directly from *.o files not using libgdb.a.
3521 * Makefile.in (COMMON_OBS): Remove solib-target.o.
3523 2012-01-02 Joel Brobecker <brobecker@adacore.com>
3525 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
3526 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
3527 Reformat the copyright header.
3529 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3531 Revert this part of:
3532 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3533 Remove the gdbtui binary.
3534 * gdb.c (main): Remove args.interpreter_p initialization.
3535 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
3536 * main.h (struct captured_main_args): Remove interpreter_p.
3538 2012-01-02 Joel Brobecker <brobecker@adacore.com>
3540 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
3542 2012-01-02 Joel Brobecker <brobecker@adacore.com>
3544 * top.c (print_gdb_version): Update copyright year.
3546 2012-01-02 Yao Qi <yao@codesourcery.com>
3548 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
3550 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3551 Joel Brobecker <brobecker@adacore.com>
3553 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
3554 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3556 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
3557 fall through into AT_ENTRY_POINT.
3558 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
3560 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
3561 PPC_INSN_SIZE skip to 3 times.
3563 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3565 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
3567 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
3569 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3571 Build gdb directly from *.o files not using libgdb.a.
3572 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
3573 (COMMON_OBS): Remove solib-target.o.
3574 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
3575 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
3576 (LIBGDB_OBS, libgdb.a): Move it above.
3577 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
3578 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
3579 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
3580 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
3581 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
3582 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
3583 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
3584 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
3585 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
3586 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
3587 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3588 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
3589 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
3590 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
3591 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
3592 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
3593 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
3594 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
3595 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
3596 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
3597 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
3598 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
3599 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
3600 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
3601 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
3602 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
3603 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
3605 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3607 Remove the gdbtui binary.
3608 * .gitignore (/gdbtui): Remove.
3609 * Makefile.in (TUI): Remove.
3610 (SUBDIR_TUI_OBS): Remove tui-main.o.
3611 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
3612 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
3613 (tui-main.o): Remove.
3614 (all_object_files): Remove tui-main.o.
3615 * NEWS: New note for the gdbtui removal.
3616 * configure: Rebuilt.
3617 * configure.ac: No longer add all-tui, clean-tui, install-tui and
3618 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
3619 CONFIG_UNINSTALL respectively.
3620 * gdb.c (main): Remove args.interpreter_p initialization.
3621 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
3622 * main.h (struct captured_main_args): Remove interpreter_p.
3623 * tui/tui-main.c: Remove.
3625 2012-01-01 Doug Evans <dje@google.com>
3627 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
3628 (dwarf2_physname, read_import_statement): Ditto.
3629 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
3630 (process_structure_scope read_subroutine_type): Ditto.
3631 (read_typedef, load_partial_dies, read_partial_die): Ditto.
3632 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
3633 (dwarf2_fetch_die_location_block): Ditto.
3634 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
3636 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
3637 All callers updated.
3638 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
3639 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
3640 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
3642 * dwarf2read.c (load_cu): Move assert to more useful location.
3644 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
3645 All callers updated.
3647 * dwarf2read.c (dwarf2_per_objfile): Add comment.
3648 (dwarf2_elf_names): Minor reformat.
3649 (dwarf2_per_cu_data): Tweak comment.
3650 (dwarf2_read_section): Fix comment.
3651 (create_all_comp_units): Fix comment.
3652 (load_full_comp_unit): Fix comment.
3653 (process_full_comp_unit): Fix comment.
3654 (read_signatured_type): Fix comment.
3656 For older changes see ChangeLog-2011.
3662 version-control: never