1 2012-04-28 Doug Evans <dje@google.com>
4 * dwarf2read.c (dwarf2_per_objfile): Replace members
5 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6 (die_reader_specs): New member "die_section". Temporarily make
7 member "buffer" non-const, pending constifying all info_ptr uses.
8 (die_reader_func_ftype): New typedef.
9 (dw2_get_file_names_reader): New function.
10 (dw2_get_file_names): Rewrite.
11 (read_and_check_type_unit_head): Rename arg type_offset to
13 (create_all_type_units): Improve debugging message.
14 Improve dummy type unit check.
15 (init_cu_die_reader): New arg "section". All callers updated.
16 (init_and_read_dies_worker): New function.
17 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
18 (init_cutu_and_read_dies_no_follow): New function.
19 (init_cutu_and_read_dies_simple): New function.
20 (process_psymtab_comp_unit_reader): New function.
21 (process_psymtab_comp_unit): Delete args section,
22 is_debug_types_section. Rewrite. All callers updated.
23 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
24 All callers updated. Rewrite.
25 (load_partial_comp_unit_reader): New function.
26 (load_partial_comp_unit): Rewrite.
27 (skip_children): New arg reader. Delete args buffer, cu.
29 (skip_one_die): New arg reader. Delete args buffer, cu.
31 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
33 (load_full_comp_unit_reader): New function.
34 (load_full_comp_unit): Rewrite.
35 (read_comp_unit): Delete.
36 (read_die_and_children_1): Delete, contents moved ...
37 (read_die_and_children): ... here.
38 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
39 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
41 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
43 (find_partial_die): Rewrite load_all_dies support.
44 (read_attribute_value): New arg reader. Delete args abfd, cu.
46 (read_attribute): New arg reader. Delete args abfd, cu.
48 (load_full_type_unit): Add assert.
49 (read_signatured_type_reader): New function.
50 (read_signatured_type): Rewrite.
51 (free_stack_comp_unit): Remove call to age_cached_comp_units.
52 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
53 All callers updated. Set per_cu->cu = NULL after freeing it.
54 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
55 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
56 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
57 (set_die_type): Update.
58 (get_die_type_at_offset): Update.
59 (read_file_scope): Call prepare_one_comp_unit.
60 (read_type_unit_scope): Ditto.
61 (prepare_one_comp_unit): Set producer if present.
63 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
65 * probe.c (compile_rx_or_error): Silence ARI warning about missing
66 gettext function on `error'.
68 2012-04-27 Doug Evans <dje@google.com>
70 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
73 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
74 Tom Tromey <tromey@redhat.com>
76 * breakpoint.c (struct breakpoint_objfile_data)
77 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
78 <exception_probes>: New fields.
79 (free_breakpoint_probes): New function.
80 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
82 (create_exception_master_breakpoint): Likewise.
83 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
84 * infrun.c: Including necessary header files for handling SystemTap
86 (handle_inferior_event): Handling longjmp breakpoint and exceptions
88 (check_exception_resume): Remove `func' argument. Handle exception
89 unwinding breakpoint set via a SystemTap probe.
90 (insert_exception_resume_from_probe): New function.
92 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
93 Tom Tromey <tromey@redhat.com>
94 Jan Kratochvil <jan.kratochvil@redhat.com>
96 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
97 (COMMON_OBS): Likewise.
98 (HFILES_NO_SRCDIR): Add `probe'.
99 * NEWS: Mention support for static and SystemTap probes.
100 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
101 SystemTap probes' arguments parser.
102 * arm-linux-tdep.c: Including headers needed to perform the parsing
103 of SystemTap probes' arguments.
104 (arm_stap_is_single_operand): New function.
105 (arm_stap_parse_special_token): Likewise.
106 (arm_linux_init_abi): Initializing proper fields used by SystemTap
107 probes' arguments parser.
108 * ax-gdb.c (require_rvalue): Removing static declaration.
109 (gen_expr): Likewise.
110 * ax-gdb.h (gen_expr): Declaring function.
111 (require_rvalue): Likewise.
112 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
113 (bkpt_probe_breakpoint_ops): New variable.
114 (momentary_breakpoint_from_master): Set the `probe' value.
115 (add_location_to_breakpoint): Likewise.
116 (break_command_1): Using proper breakpoint_ops according to the
117 argument passed by the user in the command line.
118 (bkpt_probe_insert_location): New function.
119 (bkpt_probe_remove_location): Likewise.
120 (bkpt_probe_create_sals_from_address): Likewise.
121 (bkpt_probe_decode_linespec): Likewise.
122 (tracepoint_probe_create_sals_from_address): Likewise.
123 (tracepoint_probe_decode_linespec): Likewise.
124 (tracepoint_probe_breakpoint_ops): New variable.
125 (trace_command): Using proper breakpoint_ops according to the
126 argument passed by the user in the command line.
127 (initialize_breakpoint_ops): Initializing breakpoint_ops for
128 static probes on breakpoints and tracepoints.
129 * breakpoint.h (struct bp_location) <probe>: New field.
130 * cli-utils.c (skip_spaces_const): New function.
131 (extract_arg): Likewise.
132 * cli-utils.h (skip_spaces_const): Likewise.
133 (extract_arg): Likewise.
134 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
135 * configure.ac: Append `stap-probe.o' to be generated when ELF
137 * configure: Regenerate.
138 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
139 * elfread.c: Include `probe.h' and `arch-utils.h'.
140 (probe_key): New variable.
141 (elf_get_probes): New function.
142 (elf_get_probe_argument_count): Likewise.
143 (elf_evaluate_probe_argument): Likewise.
144 (elf_compile_to_ax): Likewise.
145 (elf_symfile_relocate_probe): Likewise.
146 (stap_probe_key_free): Likewise.
147 (elf_probe_fns): New variable.
148 (elf_sym_fns): Add `sym_probe_fns' value.
149 (elf_sym_fns_lazy_psyms): Likewise.
150 (elf_sym_fns_gdb_index): Likewise.
151 (_initialize_elfread): Initialize objfile cache for static
153 * gdb_vecs.h (struct probe): New forward declaration.
154 (probe_p): New VEC declaration.
155 * gdbarch.c: Regenerate.
156 * gdbarch.h: Regenerate.
157 * gdbarch.sh (stap_integer_prefix): New variable.
158 (stap_integer_suffix): Likewise.
159 (stap_register_prefix): Likewise.
160 (stap_register_suffix): Likewise.
161 (stap_register_indirection_prefix): Likewise.
162 (stap_register_indirection_suffix): Likewise.
163 (stap_gdb_register_prefix): Likewise.
164 (stap_gdb_register_suffix): Likewise.
165 (stap_is_single_operand): New function.
166 (stap_parse_special_token): Likewise.
167 (struct stap_parse_info): Forward declaration.
168 * i386-tdep.c: Including headers needed to perform the parsing
169 of SystemTap probes' arguments.
170 (i386_stap_is_single_operand): New function.
171 (i386_stap_parse_special_token): Likewise.
172 (i386_elf_init_abi): Initializing proper fields used by SystemTap
173 probes' arguments parser.
174 * i386-tdep.h (i386_stap_is_single_operand): New function.
175 (i386_stap_parse_special_token): Likewise.
176 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
177 * mipsread.c (ecoff_sym_fns): Likewise.
178 * objfiles.c (objfile_relocate1): Support relocation for static
180 * parse.c (prefixify_expression): Remove static declaration.
181 (initialize_expout): Likewise.
182 (reallocate_expout): Likewise.
183 * parser-defs.h (initialize_expout): Declare function.
184 (reallocate_expout): Likewise.
185 (prefixify_expression): Likewise.
186 * ppc-linux-tdep.c: Including headers needed to perform the parsing
187 of SystemTap probes' arguments.
188 (ppc_stap_is_single_operand): New function.
189 (ppc_stap_parse_special_token): Likewise.
190 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
191 probes' arguments parser.
192 * probe.c: New file, for generic statically defined probe support.
194 * s390-tdep.c: Including headers needed to perform the parsing of
195 SystemTap probes' arguments.
196 (s390_stap_is_single_operand): New function.
197 (s390_gdbarch_init): Initializing proper fields used by SystemTap
198 probes' arguments parser.
199 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
200 * stap-probe.c: New file, for SystemTap probe support.
201 * stap-probe.h: Likewise.
202 * symfile.h: Include `gdb_vecs.h'.
203 (struct sym_probe_fns): New struct.
204 (struct sym_fns) <sym_probe_fns>: New field.
205 * symtab.c (init_sal): Initialize `probe' field.
206 * symtab.h (struct probe): Forward declaration.
207 (struct symtab_and_line) <probe>: New field.
208 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
210 (stop_tracing): Likewise.
211 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
213 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
214 Tom Tromey <tromey@redhat.com>
216 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
217 and to compile agent expressions.
218 * infrun.c (siginfo_make_value): New argument `ignore'.
219 (siginfo_funcs): New struct.
220 (_initialize_infrun): New argument when calling
221 `create_internalvar_type_lazy'.
222 * thread.c (thread_id_make_value): New argument `ignore'.
223 (thread_funcs): New struct.
224 (_initialize_thread): New argument when calling
225 `create_internalvar_type_lazy'.
226 * tracepoint.c (sdata_make_value): New argument `ignore'.
227 (sdata_funcs): New struct.
228 (_initialize_tracepoint): New argument when calling
229 `create_internalvar_type_lazy'.
230 * value.c (make_value): New struct.
231 (create_internalvar_type_lazy): New argument `data'.
232 (compile_internalvar_to_ax): New function.
233 (value_of_internalvar): Properly handling `make_value' case.
234 (clear_internalvar): Likewise.
235 (show_convenience): Adding `TRY_CATCH' block.
236 * value.h (internalvar_make_value): Delete, replace by...
237 (struct internalvar_funcs): ... this.
238 (create_internalvar_type_lazy) <fun>: Delete argument.
239 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
240 (compile_internalvar_to_ax): New function.
241 * windows-tdep.c (tlb_make_value): New argument `ignore'.
242 (tlb_funcs): New struct.
243 (_initialize_windows_tdep): New argument when calling
244 `create_internalvar_type_lazy'.
246 2012-04-27 Mark Wielaard <mjw@redhat.com>
248 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
249 see whether it is an address or a constant offset from DW_AT_low_pc.
250 (dwarf2_record_block_ranges): Likewise.
251 (read_partial_die): Likewise.
253 2012-04-26 Mark Wielaard <mjw@redhat.com>
255 * MAINTAINERS (Write After Approval): Add myself to the list.
257 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
259 * proc-utils.h (proc_prettyprint_signalset): New prototype.
260 (proc_prettyprint_signal): Likewise.
261 (proc_prettyprint_faultset): Likewise.
262 (proc_prettyprint_fault): Likewise.
263 (proc_prettyprint_actionset): Likewise.
264 (proc_prettyprint_flags): Move to new proc-flags.c section.
265 (proc_prettyfprint_flags): New prototype.
266 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
267 (proc_syscall, proc_cursig): Likewise.
268 (proc_set_kill_on_last_close): Likewise.
269 (proc_unset_kill_on_last_close): Likewise.
270 (proc_set_watchpoint): Make static.
271 (proc_delete_dead_threads): Likewise.
272 (procfs_set_watchpoint): Likewise.
273 (_initialize_procfs): Add prototype.
274 * proc-events.c: Include proc-utils.h.
275 (init_syscall_table): Make static.
276 * proc-api.c (_initialize_proc_api): Add prototype.
277 * proc-flags.c: Include proc-utils.h.
279 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
281 * configure.ac: Add AC_ARG_PROGRAM.
282 * configure: Regenerate.
284 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
286 Fix DW_AT_lower_bound defaults for DWARF-4+.
287 * dwarf2read.c (read_subrange_type): Remove initialization of low and
288 high. New variable low_default_is_valid. Implement DWARF-4+
289 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
290 no default by the DWARF standard.
292 2012-04-26 Maciej W. Rozycki <macro@mips.com>
293 Maciej W. Rozycki <macro@codesourcery.com>
295 * infrun.c (handle_inferior_event): Move the check for return
296 trampolines ahead of the check for function trampolines.
297 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
298 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
299 (mips_str_mips16_ret_stub): Likewise.
300 (mips_str_call_fp_stub): Likewise.
301 (mips_str_call_stub): Likewise.
302 (mips_str_fn_stub): Likewise.
303 (mips_str_pic): Likewise.
304 (mips_in_frame_stub): New function.
305 (mips_unwind_pc): Return the return address rather than the PC
306 if the PC of an intermediate frame is inside a call thunk.
307 (mips_is_stub_suffix): New function.
308 (mips_is_stub_mode): Likewise.
309 (mips_get_mips16_fn_stub_pc): Likewise.
310 (mips_skip_mips16_trampoline_code): Update to handle all the
311 currently generated stub types. Don't recurse into __fn_stub
312 thunks. Remove heuristics to handle stubs beyond etext/_etext.
313 Use cooked register accesses.
314 (mips_in_return_stub): Reintroduce function.
315 (mips_skip_trampoline_code): Traverse trampolines recursively.
316 (mips_gdbarch_init): Handle MIPS16 return trampolines.
318 2012-04-26 Joel Brobecker <brobecker@adacore.com>
322 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
324 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
325 * features/arm-with-m-vfp-d16.xml: New file. Describes
326 Cortex-M with VFPv4-sp-d16 FPU register layout.
327 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
328 * features/arm-with-m-vfp-d16.c: New. Generated from above.
329 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
330 (arm-register_g_packet_guesses): Add vfp-d16 guess.
331 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
333 2012-04-25 Doug Evans <dje@google.com>
335 * cli/cli-decode.c (print_doc_line): Use stream instead of
338 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
340 * features/arm-with-iwmmxt.c: Regenerate.
341 * features/arm-with-m-fpa-layout.c: Likewise.
342 * features/arm-with-m.c: Likewise.
343 * features/arm-with-neon.c: Likewise.
344 * features/arm-with-vfpv2.c: Likewise.
345 * features/arm-with-vfpv3.c: Likewise.
346 * features/mips-dsp-linux.c: Likewise.
347 * features/mips-linux.c: Likewise.
348 * features/mips64-dsp-linux.c: Likewise.
349 * features/mips64-linux.c: Likewise.
350 * features/s390-linux32.c: Likewise.
351 * features/s390-linux32v1.c: Likewise.
352 * features/s390-linux32v2.c: Likewise.
353 * features/s390-linux64.c: Likewise.
354 * features/s390-linux64v1.c: Likewise.
355 * features/s390-linux64v2.c: Likewise.
356 * features/s390x-linux64.c: Likewise.
357 * features/s390x-linux64v1.c: Likewise.
358 * features/s390x-linux64v2.c: Likewise.
359 * features/tic6x-c62x-linux.c: Likewise.
360 * features/tic6x-c62x.c: Likewise.
361 * features/tic6x-c64x-linux.c: Likewise.
362 * features/tic6x-c64x.c: Likewise.
363 * features/tic6x-c64xp-linux.c: Likewise.
364 * features/tic6x-c64xp.c: Likewise.
365 * target-descriptions.c: Only generate `field_type' and `type'
366 variables when needed.
368 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
370 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
372 2012-04-25 Doug Evans <dje@google.com>
374 Initial pass at Go language support.
376 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
378 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
379 (YYFILES): Add go-exp.c.
380 (YYOBJ): Add go-exp.o.
381 (local-maintainer-clean): Delete go-exp.c.
382 * defs.h (enum language): Add language_go.
383 * dwarf2read.c: #include "go-lang.h".
384 (fixup_go_packaging): New function.
385 (process_full_comp_unit): Call it when processing Go CUs.
386 (dwarf2_physname): Add Go support.
387 (read_file_scope): Handle missing language spec for GNU Go.
388 (set_cu_language): Handle DW_LANG_Go.
389 * go-exp.y: New file.
390 * go-lang.h: New file.
391 * go-lang.c: New file.
392 * go-typeprint.c: New file.
393 * go-valprint.c: New file.
394 * symtab.c: #include "go-lang.h".
395 (symbol_set_language): Handle language_go.
396 (symbol_find_demangled_name, symbol_set_names): Ditto.
397 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
399 2012-04-24 Jim Meyering <meyering@redhat.com>
401 avoid a few strncpy-induced buffer overruns
402 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
403 fname and psargs before trying to concatenate.
404 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
405 "name" before applying strchr.
407 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
409 * CONTRIBUTE: Use unified diff instead of context diff when
412 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
414 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
415 code. Handle JR.HB correctly.
417 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
420 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
421 with the other MIPS16 helpers.
423 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
425 * observer.sh: Conditionally declare `args', thus cleaning up
426 unused instances of this variable.
428 2012-04-24 Yao Qi <yao@codesourcery.com>
430 Revert this patch to allow breakpoint always-inserted
432 2011-12-05 Pedro Alves <pedro@codesourcery.com>
433 * breakpoint.c: Include record.h.
434 (breakpoints_always_inserted_mode): Return false when the record
437 * breakpoint.c (iterate_over_bp_locations): New.
438 * breakpoint.h: Declare.
439 New typedef walk_bp_location_callback.
440 * record.c (record_open): Call record_init_record_breakpoints.
441 (record_sync_record_breakpoints): New.
442 (record_init_record_breakpoints): New.
443 * NEWS: Mention supporting breakpoint always-inserted mode in
446 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
448 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
451 2012-04-24 Yao Qi <yao@codesourcery.com>
453 * breakpoint.c (ep_is_catchpoint): Renamed to ...
454 (is_catchpoint): ... it.
455 (print_one_breakpoint_location): Caller update.
456 * breakpoint.h: Update declaration.
458 2012-04-23 David S. Miller <davem@davemloft.net>
460 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
462 2012-04-23 Tom Tromey <tromey@redhat.com>
464 * buildsym.c (add_free_pendings): Remove.
465 * buildsym.h (add_free_pendings): Remove.
467 2012-04-23 Doug Evans <dje@google.com>
469 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
470 attr.u.unsnd instead of attr.u.addr.
471 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
472 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
474 (dump_die_shallow): Update cases DW_FORM_ref_addr,
475 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
477 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
479 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
481 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
482 (mips_o32_return_value): Likewise.
483 (mips_o64_return_value): Likewise.
485 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
487 * ada-lang.c (ada_evaluate_subexp): Add cases for
488 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
489 their treatment in eval.c.
491 2012-04-21 David S. Miller <davem@davemloft.net>
493 * sparc-tdep.c (X_DISP10): Define.
494 (sparc_analyze_control_transfer): Handle compare-and-branch.
496 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
498 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
499 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
501 2012-04-20 Nigel Stephens <nigel@mips.com>
502 Maciej W. Rozycki <macro@codesourcery.com>
504 * mips-tdep.c (mips_float_register_p): New function.
505 (mips_convert_register_float_case_p): Use mips_float_register_p.
506 (mips_register_type): Likewise.
507 (mips_print_register): Likewise.
508 (print_gp_register_row): Likewise.
509 (mips_print_registers_info): Likewise.
511 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
513 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
516 2012-04-20 Andrew Pinski <apinski@cavium.com>
518 * MAINTAINERS (Write After Approval): Add myself to the list.
520 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
522 * MAINTAINERS: Update my e-mail address.
524 2012-04-20 Pedro Alves <palves@redhat.com>
526 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
528 * configure: Regenerate.
530 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
532 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
534 * gdb_vecs.h: Declare `const_char_ptr' VEC.
536 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
538 Fix compilation compatibility with python-2.4
539 * python/py-type.c (convert_field): Cast ADDRSTRING for
540 PyObject_SetAttrString as non-const. New comment.
542 2012-04-19 Tom Tromey <tromey@redhat.com>
544 * top.c (quit_target): Use all_cleanups.
545 * main.c (captured_command_loop): Use all_cleanups.
546 * exceptions.c (throw_exception): Use all_cleanups.
548 2012-04-19 Pedro Alves <palves@redhat.com>
550 * Makefile.in (GNULIB_BUILDDIR): New.
551 (LIBGNU, INCGNU, GNULIB_H): Adjust.
552 (SUBDIRS): Add $(GNULIB_BUILDDIR).
553 (CLEANDIRS). Remove gnulib/import.
554 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
556 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
557 (gnulib/import/Makefile): Replace gnulib/import with
558 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
559 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
560 (aclocal_m4_deps): Remove the gnulib dependencies. Add
561 acx_configure_dir.m4.
562 * acinclude.m4: Include acx_configure_dir.m4.
563 * acx_configure_dir.m4: New file.
564 * aclocal.m4: Regenerate.
565 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
566 calls. Configure gnulib using ACX_CONFIGURE_DIR.
567 (GNULIB): New variable.
568 (GNULIB_STDINT_H): Adjust.
569 (AC_OUTPUT): Don't output gnulib/Makefile.
570 * gdb/defs.h: Include build-gnulib/config.h.
571 * aclocal.m4: Regenerate.
572 * config.in: Regenerate.
573 * configure: Regenerate.
575 * gnulib/Makefile.in: New file.
576 * gnulib/configure.ac: New file.
577 * gnulib/aclocal.m4: New file.
578 * gnulib/config.in: New file.
579 * gnulib/configure: New file.
580 * gnulib/: Re-run gnulib-tool to adjust.
582 2012-04-19 Doug Evans <dje@google.com>
584 * cleanups.h (struct cleanup): Move to cleanups.c.
585 (make_cleanup_dtor_ftype): New typedef.
586 (make_cleanup_dtor): Use it.
587 (ALL_CLEANUPS): Replace with ...
588 (all_cleanups): ... this. Declare. All uses updated.
589 * cleanups.c: #include "gdb_assert.h".
590 (sentinel_cleanup): New static global.
591 (SENTINEL_CLEANUP): Define.
592 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
593 (make_my_cleanup2): Assert result is non-NULL.
594 (all_cleanups): New function.
595 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
598 2012-04-19 Pedro Alves <palves@redhat.com>
600 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
601 Adjust paths to gnulib imported files.
603 2012-04-19 Pedro Alves <palves@redhat.com>
605 * gnulib/: Move whole directory ...
606 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
607 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
608 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
609 (aclocal_m4_deps): Adjust.
610 * aclocal.m4: Regenerate.
611 * configure: Regenerate.
612 * configure.ac: Adjust AC_OUTPUT output.
614 2012-04-19 Yao Qi <yao@codesourcery.com>
616 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
619 * common/vec.c: ... here.
621 * common/vec.h: ... here.
623 2012-04-19 Yao Qi <yao@codesourcery.com>
625 * gdb-code-style.el: New.
627 2012-04-18 Pedro Alves <palves@redhat.com>
629 Update gnulib from latest git.
630 (639ea5ae15e39fe48d43e04864b2997301e4b969)
632 * gnulib/Makefile.am: Update.
633 * gnulib/dummy.c: Update.
634 * gnulib/extra/arg-nonnull.h: Update.
635 * gnulib/extra/c++defs.h: Update.
636 * gnulib/extra/update-copyright: Update.
637 * gnulib/extra/warn-on-use.h: Update.
638 * gnulib/inttypes.in.h: Update.
639 * gnulib/m4/00gnulib.m4: Update.
640 * gnulib/m4/extensions.m4: Update.
641 * gnulib/m4/gnulib-cache.m4: Update.
642 * gnulib/m4/gnulib-common.m4: Update.
643 * gnulib/m4/gnulib-comp.m4: Update.
644 * gnulib/m4/gnulib-tool.m4: Update.
645 * gnulib/m4/include_next.m4: Update.
646 * gnulib/m4/inttypes-pri.m4: Update.
647 * gnulib/m4/inttypes.m4: Update.
648 * gnulib/m4/longlong.m4: Update.
649 * gnulib/m4/memchr.m4: Update.
650 * gnulib/m4/memmem.m4: Update.
651 * gnulib/m4/mmap-anon.m4: Update.
652 * gnulib/m4/multiarch.m4: Update.
653 * gnulib/m4/onceonly.m4: Update.
654 * gnulib/m4/stddef_h.m4: Update.
655 * gnulib/m4/stdint.m4: Update.
656 * gnulib/m4/string_h.m4: Update.
657 * gnulib/m4/warn-on-use.m4: Update.
658 * gnulib/m4/wchar_h.m4: Update.
659 * gnulib/m4/wchar_t.m4: Update.
660 * gnulib/m4/wint_t.m4: Update.
661 * gnulib/memchr.c: Update.
662 * gnulib/memmem.c: Update.
663 * gnulib/stddef.in.h: Update.
664 * gnulib/stdint.in.h: Update.
665 * gnulib/str-two-way.h: Update.
666 * gnulib/string.in.h: Update.
667 * gnulib/wchar.in.h: Update.
669 * gnulib/extra/arg-nonnull.h: Delete.
670 * gnulib/extra/c++defs.h: Delete.
671 * gnulib/extra/warn-on-use.h: Delete.
672 * gnulib/m4/wchar_h.m4: Delete.
673 * gnulib/m4/wint_t.m4: Delete.
674 * gnulib/wchar.in.h: Delete.
676 * gnulib/extra/snippets/arg-nonnull.h: New.
677 * gnulib/extra/snippets/c++defs.h: New.
678 * gnulib/extra/snippets/warn-on-use.h: New.
680 * aclocal.m4: Regenerate.
681 * config.in: Regenerate.
682 * configure: Regenerate.
683 * gnulib/Makefile.in: Regenerate.
685 2012-04-18 Pedro Alves <palves@redhat.com>
687 Reimport the update-copyright module from gnulib
688 (250b80067c1e1d8faa0c42fb572f721975b929c5).
690 * configure: Regenerate.
691 * gnulib/Makefile.am: Update.
692 * gnulib/Makefile.in: Regenerate.
693 * gnulib/extra/update-copyright: Update.
694 * gnulib/m4/gnulib-cache.m4: Update.
695 * gnulib/m4/gnulib-comp.m4: Update.
697 2012-04-18 Tristan Gingold <gingold@adacore.com>
699 * configure.ac (aix): Put -lpthread into libs.
700 * configure: Regenerate.
702 2012-04-18 Tom Tromey <tromey@redhat.com>
704 * linespec.c (convert_linespec_to_sals): Don't use
706 (compare_msymbols): Arguments are minsym_and_objfile, not
707 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
709 2012-04-18 Pedro Alves <palves@redhat.com>
711 Revert gnulib/ part of:
712 2011-01-01 Joel Brobecker <brobecker@adacore.com>
713 Copyright year update in most files (performed by copyright.sh).
715 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
717 Fix 64-bit constants on 32-bit hosts.
718 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
719 from unsigned long to ULONGEST.
720 (read_signed_leb128): Change declaration return type from long to
722 (dwarf2_const_value_attr): Change declaration parameter value from long
724 (dwarf2_compute_name): Change variable value from long to LONGEST.
725 (read_unsigned_leb128): Change return type, variable result and some
726 casts from unsigned long to ULONGEST.
727 (read_signed_leb128): Change return type, variable result and some
728 casts from long to LONGEST.
729 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
730 value from long to LONGEST.
731 (dwarf2_const_value): Change variable value from long to LONGEST.
732 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
733 plongest and hex_string.
734 * symtab.h (struct general_symbol_info): Change ivalue from long to
735 LONGEST, remove the comment.
736 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
737 Change SYMBOL_VALUE format strings to use plongest and hex_string.
739 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
742 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
743 * ada-lang.c (ada_discrete_type_high_bound)
744 (ada_discrete_type_low_bound): Fix function comment. Use
745 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
746 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
747 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
748 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
749 Use TYPE_FIELD_ENUMVAL.
750 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
751 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
752 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
753 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
755 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
756 * dwarf2read.c (process_enumeration_scope): Likewise.
757 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
759 (class StructMainTypePrettyPrinter): Support also
760 FIELD_LOC_KIND_ENUMVAL.
761 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
763 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
764 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
765 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
766 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
768 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
770 (struct call_site): Adjust loc_kind to accommodate enumval.
771 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
772 (TYPE_FIELD_ENUMVAL): New macros.
773 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
774 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
776 * p-typeprint.c (pascal_type_print_base): Likewise.
777 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
779 * python/lib/gdb/types.py (make_enum_dict): Likewise.
780 * python/py-type.c (convert_field): New variable addrstring. Use
781 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
782 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
783 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
784 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
786 * valprint.c (generic_val_print): Likewise.
788 2012-04-17 Doug Evans <dje@google.com>
790 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
792 * dwarf2read.c: Whitespace fixes.
793 (lookup_signatured_type): Tweak comment.
794 (get_die_type_at_offset): Fix comment.
796 2012-04-17 Joel Brobecker <brobecker@adacore.com>
798 * xcoffread.c (xcoff_secnum_to_sections): New function.
799 (secnum_to_section, secnum_to_bfd_section): Reimplement
800 using xcoff_secnum_to_sections. Rename "secnum" parameter
802 (RECORD_MINIMAL_SYMBOL): Delete.
803 (record_minimal_symbol): New function.
804 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
805 by call to record_minimal_symbol and set misc_func_recorded
806 to 1. Set last_csect_sec to the XCOFF section index instead
807 of GDB's section_offset index. Update calls to
808 prim_record_minimal_symbol_and_info to pass the BFD section
811 2012-04-17 Joel Brobecker <brobecker@adacore.com>
813 * xcoffread.c (read_xcoff_symtab): Delete variables
814 last_csect_val and last_csect_sec and associated code.
816 2012-04-17 Doug Evans <dje@google.com>
818 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
819 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
820 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
821 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
823 * cleanups.h: New file.
824 * cleanups.c: New file.
825 * Makefile.in (SFILES): Add cleanups.c.
826 (HFILES_NO_SRCDIR): Add cleanups.h.
827 (COMMON_OBS): Add cleanups.o.
828 * defs.h (struct cleanup): Moved to cleanups.h.
829 (do_cleanups,do_final_cleanups): Ditto.
830 (discard_cleanups,discard_final_cleanups): Ditto
831 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
832 (save_cleanups,save_final_cleanups): Ditto.
833 (restore_cleanups,restore_final_cleanups): Ditto.
834 (null_cleanup): Ditto.
835 (make_my_cleanup,make_my_cleanup2): Ditto.
836 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
837 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
838 (do_cleanups,do_final_cleanups): Ditto.
839 (discard_cleanups,discard_final_cleanups): Ditto
840 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
841 (save_cleanups,save_final_cleanups): Ditto.
842 (restore_cleanups,restore_final_cleanups): Ditto.
843 (null_cleanup): Ditto.
844 (make_my_cleanup,make_my_cleanup2): Ditto.
845 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
847 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
849 (make_cleanup_dyn_string_delete): Ditto.
850 (make_cleanup_ui_file_delete): Ditto.
851 (make_cleanup_ui_out_redirect_pop): Ditto.
852 (make_cleanup_free_section_addr_info): Ditto.
853 (make_cleanup_restore_integer): Ditto.
854 (make_cleanup_unpush_target): Ditto.
855 (make_cleanup_value_free_to_mark): Ditto.
856 (make_cleanup_value_free): Ditto.
857 (make_cleanup_free_so): Ditto.
859 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
861 New option "set debug auto-load".
862 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
863 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
864 (auto_load_safe_path_vec_update)
865 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
867 (file_is_auto_load_safe): New parameters debug_fmt and ....
868 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
869 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
870 caller by explanatory string.
871 (_initialize_auto_load): Register "set debug auto-load".
872 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
874 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
875 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
876 by explanatory string.
877 * main.c (captured_main): Likewise.
878 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
879 (source_section_scripts): Likewise.
881 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
883 New option "set auto-load safe-path".
884 * NEWS: New commands "set auto-load safe-path"
885 and "show auto-load safe-path".
886 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
887 (auto_load_safe_path, auto_load_safe_path_vec)
888 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
889 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
890 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
891 (source_gdb_script_for_objfile): New variable is_safe. Call
892 file_is_auto_load_safe. Return if it is not.
893 (struct loaded_script): New field loaded.
894 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
895 (print_script): Use LOADED indicator instead of FULL_PATH. Change
896 output "Missing" to "No".
897 (_initialize_auto_load): New variable cmd. Initialize
898 auto_load_safe_path. Register "set auto-load safe-path",
899 "show auto-load safe-path" and "add-auto-load-safe-path".
900 * auto-load.h (maybe_add_script): Add parameter loaded.
901 (file_is_auto_load_safe): New declaration.
902 * config.in: Regenerate.
903 * configure: Regenerate.
904 * configure.ac: New parameters --with-auto-load-safe-path
905 and --without-auto-load-safe-path.
906 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
907 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
908 * main.c (captured_main): Check file_is_auto_load_safe for
910 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
911 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
912 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
915 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
917 auto-load: Implementation.
918 * NEWS: New descriptions for "info auto-load",
919 "info auto-load gdb-scripts", "info auto-load python-scripts",
920 "info auto-load local-gdbinit" and "info auto-load libthread-db".
921 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
922 and "show auto-load-scripts". New description for "set auto-load",
923 "show auto-load", "set auto-load gdb-scripts",
924 "show auto-load gdb-scripts", "set auto-load python-scripts",
925 "show auto-load python-scripts", "set auto-load local-gdbinit",
926 "show auto-load local-gdbinit", "set auto-load libthread-db" and
927 "show auto-load libthread-db".
928 * auto-load.c: Remove include python/python-internal.h. Add includes
929 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
931 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
932 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
933 (gdbpy_global_auto_load): Rename to ...
934 (global_auto_load): ... here.
935 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
936 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
937 (script_language_gdb, source_gdb_script_for_objfile): New.
938 (struct loaded_script): New field language.
939 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
941 (maybe_add_script): Add parameter language. Drop redundant
942 entry.full_path initialization. Initialize entry.language and
944 (auto_load_objfile_script): Change parameter suffix to language.
945 Remove the call of maybe_add_script.
946 Call language->source_script_for_objfile.
947 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
949 (collect_matching_scripts): Adjust it for
950 struct collect_matching_scripts_data.
951 (auto_load_info_scripts_pattern_nl): New variable.
952 (info_auto_load_scripts): Rename to ...
953 (auto_load_info_scripts): ... here, add parameter language. Adjust it
954 for struct collect_matching_scripts_data.
955 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
956 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
957 (auto_load_show_cmdlist_get, info_auto_load_cmd)
958 (auto_load_info_cmdlist_get): New.
959 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
960 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
961 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
962 "info auto-load local-gdbinit".
963 * auto-load.h (struct script_language): New.
964 (gdbpy_global_auto_load): Rename to ...
965 (global_auto_load): ... here.
966 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
967 (auto_load_local_gdbinit_loaded): New declarations.
968 (maybe_add_script): New parameter language.
969 (auto_load_objfile_script): Change parameter suffix to language.
970 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
971 (auto_load_info_scripts, auto_load_set_cmdlist_get)
972 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
974 * linux-thread-db.c: Include auto-load.h and ctype.h.
975 (auto_load_thread_db, show_auto_load_thread_db): New.
976 (struct thread_db_info): New field filename.
977 (delete_thread_db_info): Call xfree for FILENAME.
978 (try_thread_db_load): Initialize FILENAME.
979 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
980 if !AUTO_LOAD_THREAD_DB.
981 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
982 (_initialize_thread_db): Install auto_load_thread_db
983 as "set auto-load libthread-db" and install info_auto_load_libthread_db
984 as "info auto-load libthread-db".
985 * main.c (captured_main): Rename gdbpy_global_auto_load to
986 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
987 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
988 (print_gdb_help): Extend the help for 'local init file'.
989 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
990 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
991 (auto_load_scripts): Rename to ...
992 (auto_load_python_scripts): ... here, update the comment.
993 (gdbpy_load_auto_script_for_objfile): New declaration.
994 (show_auto_load_python_scripts, script_language_python)
995 (gdbpy_load_auto_script_for_objfile): New.
996 (source_section_scripts): Refactor the code.
997 (load_auto_scripts_for_objfile): Rename to ...
998 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
999 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
1000 (info_auto_load_python_scripts): New.
1001 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
1002 Rename "set auto-load-scripts" to "set auto-load python-scripts".
1003 Register "set auto-load-scripts" as its deprecated alias. Register
1004 "info auto-load python-scripts". Register "info auto-load-scripts" as
1005 its deprecated alias.
1006 (load_auto_scripts_for_objfile): Rename to ...
1007 (gdbpy_load_auto_scripts_for_objfile): ... here.
1008 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
1009 (gdbpy_load_auto_scripts_for_objfile): ... here.
1011 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1013 auto-load: Move files.
1014 * Makefile.in (SFILES): Add auto-load.c.
1015 (HFILES_NO_SRCDIR): Add auto-load.h.
1016 (COMMON_OBS): Add auto-load.o.
1017 (distclean): Change .gdbinit for gdb-gdb.gdb.
1018 * auto-load.c: New file, with parts from python/py-auto-load.c.
1019 * auto-load.h: New file, with parts from python/python.h.
1020 * configure: Regenerate.
1021 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
1022 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
1023 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
1024 * main.c: Include auto-load.h.
1025 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
1026 command.h, observer.h and progspace.h to auto-load.c. Add include
1028 (gdbpy_global_auto_load, struct auto_load_pspace_info)
1029 (struct loaded_script, auto_load_pspace_data)
1030 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
1031 (hash_loaded_script_entry, eq_loaded_script_entry)
1032 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
1033 (maybe_add_script): Move to auto-load.c.
1034 (source_section_scripts): Change maybe_add_script parameters passing,
1035 use script_not_found_warning_print.
1036 (clear_section_scripts, auto_load_objfile_script)
1037 (auto_load_new_objfile, loaded_script_ptr)
1038 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
1039 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
1040 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
1041 auto_load_new_objfile and info_auto_load_scripts initizations to
1043 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
1045 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1048 * charset.c (find_charset_names): Remove variables ix and elt.
1049 Use free_char_ptr_vec.
1050 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
1051 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
1052 debugdir_end. New variable debugdir_len.
1053 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
1054 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
1056 * progspace.c (clear_program_space_solib_cache): Remove variables ix
1057 and elt. Use free_char_ptr_vec.
1058 * source.c (add_path): Remove variables argv, arg and argv_index.
1059 New variables dir_vec, back_to, ix and name.
1060 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
1061 make_cleanup_freeargv. Remove variable separator. Simplify the code
1062 no longer expecting DIRNAME_SEPARATOR.
1063 (openp): Remove variable p, p1 and len. New variables dir_vec,
1064 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
1065 no longer expecting DIRNAME_SEPARATOR.
1066 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
1067 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
1069 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
1070 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
1071 (dirnames_to_char_ptr_vec): New functions.
1073 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1076 * source.c (add_path): Remove always true conditional 'p == 0' and
1077 unindent its code block.
1079 2012-04-17 Pedro Alves <palves@redhat.com>
1081 * gdbtypes.h (FIELD_BITPOS): Rename to ...
1082 (FIELD_BITPOS_LVAL): ... this.
1083 (FIELD_BITPOS): New.
1084 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
1085 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
1086 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
1088 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
1090 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
1091 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
1092 * target-descriptions.c (tdesc_gdb_type): Adjust to use
1095 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1097 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
1098 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
1099 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
1100 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
1101 * jv-lang.c (java_link_class_type): Likewise, once.
1102 * stabsread.c (read_enum_type): Likewise.
1104 2012-04-16 Yao Qi <yao@codesourcery.com>
1106 * common/agent.c (agent_run_command): Add one more parameter `len'.
1108 * common/agent.h: Update declaration.
1109 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1111 (linux_child_static_tracepoint_markers_by_strid): Ditto.
1113 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
1116 * value.c (value_actual_type): New function.
1117 * value.h (value_actual_type): New declaration.
1118 * varobj.c (update_type_if_necessary): New function.
1119 (varobj_create): Call value_actual_type instead of
1121 (install_dynamic_child): distinct changed and type changed MI variable
1123 (update_dynamic_varobj_children): Updated for install_dynamic_child
1124 change. All callers updated.
1125 (varobj_update): Support for MI variable object type change if
1126 the value changed and RTTI is used to determine the type.
1127 (create_child_with_value): Call value_actual_type instead of
1129 (adjust_value_for_child_access): Extended with a new parameter which
1130 specify whether the given value should be casted to enclosing type.
1131 All callers updated.
1133 2012-04-14 Yao Qi <yao@codesourcery.com>
1135 Import gnulib module inttypes from git
1136 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1137 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
1138 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
1139 gnulib/m4/inttypes-pri.m4
1140 * aclocal.m4, config.in, configure: Regenerated.
1141 * gnulib/Makefile.am: Update.
1142 * gnulib/Makefile.in: Update.
1143 * gnulib/m4/gnulib-cache.m4: Update.
1144 * gnulib/m4/gnulib-comp.m4: Update.
1145 * gnulib/inttypes.in.h: New.
1146 * gnulib/m4/inttypes-pri.m4: New.
1147 * gnulib/m4/inttypes.m4: New.
1149 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
1151 * infrun.c (resume): Update PC address to the real PC after
1152 preparing to do displaced stepping.
1154 2012-04-12 Doug Evans <dje@google.com>
1156 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
1157 All callers updated.
1159 2012-04-12 Mark Kettenis <kettenis@gnu.org>
1161 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
1163 2012-04-12 Doug Evans <dje@google.com>
1165 * dwarf2read.c (create_all_type_units): Renamed from
1166 create_debug_types_hash_table. All callers updated.
1168 * dwarf2read.c (create_signatured_type_table_from_index): Rename
1169 local type_sig to sig_type, type_offset to type_offset_in_tu.
1170 (hash_signatured_type): Renamed from hash_type_signature,
1171 all callers updated.
1172 (eq_signatured_type): Renamed from eq_type_signature,
1173 all callers updated.
1174 (create_debug_types_hash_table): Rename local type_sig to sig_type.
1175 (process_enumeration_scope): Ditto.
1176 (lookup_signatured_type_at_offset): Ditto.
1177 (load_full_type_unit, read_signatured_type): Ditto.
1179 2012-04-12 Yao Qi <yao@codesourcery.com>
1181 * remote.c (async_remote_interrupt): Correct function name in
1183 (async_remote_interrupt_twice): Ditto.
1185 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
1187 * source.c (find_and_open_source): Consistently pass resulting
1188 full path through xfullpath.
1190 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1192 Provide more specific displaced-stepping memory error message.
1193 * infrun.c (displaced_step_prepare): New variable status. Call
1194 target_read_memory instead of read_memory, provide more specific
1197 2012-04-11 Tristan Gingold <gingold@adacore.com>
1200 * darwin-nat.c (darwin_execvp): Revert previous patch.
1202 2012-04-11 Tristan Gingold <gingold@adacore.com>
1205 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
1208 2012-04-11 Tristan Gingold <gingold@adacore.com>
1210 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1213 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
1215 New command 'explore' which helps explore values and types in
1217 * NEWS: Add an entry about the new 'explore' command.
1218 * data-directory/Makefile.in: Add gdb/command/explore.py
1219 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
1220 command using the GDB Python API.
1222 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
1224 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
1225 extension in jump target calculation.
1227 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
1229 * mips-tdep.c (mips32_next_pc): Handle JALX.
1231 2012-04-10 Yao Qi <yao@codesourcery.com>
1233 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
1235 2012-04-10 Yao Qi <yao@codesourcery.com>
1237 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
1238 and gnulib/m4/gnulib-tool.m4.
1240 2012-04-10 Doug Evans <dje@google.com>
1242 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
1243 (load_partial_dies): Clarify comment.
1244 (find_partial_die): Support rereading type units.
1245 Clarify CU handling, if we know offset is in CU, don't search for the
1246 containing CU. Add comment regarding memory waste.
1248 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
1250 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
1251 i386/x32-avx and i386/x32-avx-linux.
1252 (i386/x32-expedite): New.
1253 (i386/x32-linux-expedite): Likewise.
1254 (i386/x32-avx-expedite): Likewise.
1255 (i386/x32-avx-linux-expedite): Likewise.
1256 ($(outdir)/i386/x32.dat): Likewise.
1257 ($(outdir)/i386/x32-linux.dat): Likewise.
1258 ($(outdir)/i386/x32-avx.dat): Likewise.
1259 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
1261 * features/i386/x32-avx-linux.xml: New file.
1262 * features/i386/x32-avx.xml: Likewise.
1263 * features/i386/x32-core.xml: Likewise.
1264 * features/i386/x32-linux.xml: Likewise.
1265 * features/i386/x32.xml: Likewise.
1267 * features/i386/x32-avx-linux.c: New. Generated.
1268 * features/i386/x32-avx.c: Likewise.
1269 * features/i386/x32-linux.c: Likewise.
1270 * features/i386/x32.c: Likewise.
1271 * regformats/i386/x32-avx-linux.dat: Likewise.
1272 * regformats/i386/x32-avx.dat: Likewise.
1273 * regformats/i386/x32-linux.dat: Likewise.
1274 * regformats/i386/x32.dat: Likewise.
1276 2012-04-10 Tristan Gingold <gingold@adacore.com>
1278 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
1279 code to kill the inferior.
1281 2012-04-09 Mark Kettenis <kettenis@gnu.org>
1283 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1285 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1287 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
1288 (yyvsp): New defines.
1289 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1291 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1293 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1295 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1297 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1300 2012-04-09 Mark Kettenis <kettenis@gnu.org>
1302 * sparc64-tdep.c (sparc64_store_arguments)
1303 (sparc64_store_arguments): Fix coding style.
1305 2012-04-07 Mark Kettenis <kettenis@gnu.org>
1307 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
1308 complex floats, adjust some related comments and tighten a related
1310 (sparc64_extract_return_value): Handle complex floats.
1312 2012-04-07 Doug Evans <dje@google.com>
1314 * dwarf2read.c (load_partial_dies): Change condition to assert.
1316 2012-04-06 Doug Evans <dje@google.com>
1318 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
1321 2012-04-05 Kevin Buettner <kevinb@redhat.com>
1323 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
1325 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
1326 (v850_gdbarch_init): Set `num_regs' as appropriate for the
1329 2012-04-05 Keith Seitz <keiths@redhat.com>
1331 * linespec.c (decode_compound): Remove.
1332 (enum offset_relative_sign): New enum.
1333 (struct line_offset): New struct.
1334 (struct linespec): New struct.
1335 (struct linespec_state): Move file_symtabs,
1336 user_filename, and user_function into struct linespec.
1337 Make result an anonymous struct holding vectors of
1338 symbolp and minsym_and_objfile_d.
1339 Add language member.
1340 (enum ls_token_type): New enum.
1341 (linespec_keywords): New array.
1342 (struct ls_token): New struct.
1343 (struct ls_parser): New struct.
1344 (linespec_lexer_lex_number): New function.
1345 (linespec_lexer_lex_keyword): New function.
1346 (is_ada_operator): New function.
1347 (skip_quote_char): New function.
1348 (copy_token_string): New function.
1349 (is_closing_quote_enclosed): New function.
1350 (find_parameter_list_end): New function.
1351 (linespec_lexer_lex_string): New function.
1352 (linespec_lexer_lex_one): New function.
1353 (linespec_lexer_consume_token): New function.
1354 (linespec_lexer_peek_token): New function.
1355 (cplusplus_error): Remove unused function.
1356 (find_methods): Update comment.
1357 (find_toplevel_char): Return const.
1358 (is_objc_method_format): Remove unused function.
1359 (find_toplevel_string): New function.
1360 (is_linespec_boundary): Remove.
1361 (symbol_not_found_error): New function.
1362 (find_method_overload_end): Remove function.
1363 (unexpected_linespec_error): New function.
1364 (keep_name_info): Remove.
1365 (linespec_parse_line_offset): New function.
1366 (linespec_parse_basic): New function.
1367 (canonicalize_linespec): New function.
1368 (decode_line_internal): Remove.
1369 (create_sals_line_offset): New function adapted from
1371 (convert_linespec_to_sals): New function.
1372 (parse_linespec): New function.
1373 (linespec_parser_new): New function.
1374 (linespec_state_destructor): Change parameter type to
1375 struct linespec_state *.
1376 Add language parameter.
1377 Remove freeing of moved members.
1378 (linespec_parser_delete): New function.
1379 (decode_line_full): Use parse_linespec and linespec_parser_new.
1380 (decode_line_1): Likewise.
1381 (decode_indirect): Rename to ...
1382 (linespec_expression_to_pc): ... this and rewrite
1383 to simply find CORE_ADDR, storing this result for later
1385 (locate_first_half): Remove.
1386 (deocde_objc): Add parameter LS.
1387 Initialize new struct collect_info members.
1388 Handle minimal symbols, too.
1389 (decode_compound): Delete.
1390 (lookup_prefix_sym): Rewrite.
1391 (compare_msymbols): New function.
1392 (find_method): Rewrite.
1393 Do not call cplusplus_error.
1394 (symtabs_from_filename): Rewrite.
1395 (collect_function_symbols): Delete.
1396 (find_function_symbols): Rewrite without ARGPTR-style
1398 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
1399 (decode_dollar): Adapted and renamed to ...
1400 (linespec_parse_variable): ... this.
1401 (find_linespec_symbols): New function.
1402 (decode_label): Adapted and renamed to ...
1403 (find_label_symbols): ... this.
1404 (decode_digits_list_mode): Add and use LS argument.
1405 (decode_digits_ordinary): Likewise.
1406 (collect_symbols): Do not collect SALs, just symbols and msymbols.
1407 If in list mode, allow any symbol class. Otherwise, only
1408 permit LOC_BLOCK symbols.
1409 (minsym_found): Update comments.
1410 (search_minsyms_for_name): Do not convert the matching symbol
1411 into a SAL. Simply push the symbol and objfile into the
1413 (decode_variable): Delete. Contents adapted into
1414 find_linespec_symbols.
1416 * cp-support.c (SKIP_SPACE): Remove.
1417 (operator_tokens): Remove unused global.
1418 (cp_validate_operator): Remove.
1419 * cp-support.h (cp_validate_operator): Remove declaration.
1421 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1423 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
1424 for TYPE_VPTR_FIELDNO.
1425 * valprint.c (valprint_check_validity): Make it global, move the
1426 function comment ...
1427 * value.h (valprint_check_validity): ... to this new declaration.
1429 2012-04-02 Tristan Gingold <gingold@adacore.com>
1431 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
1432 the STATE32 api for i386 state.
1433 (i386_darwin_store_inferior_registers): Likewise.
1435 2012-04-02 Tristan Gingold <gingold@adacore.com>
1437 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
1439 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1442 2012-04-02 Tristan Gingold <gingold@adacore.com>
1445 * darwin-nat.c (darwin_execvp): Set binary preference.
1447 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1449 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
1451 2012-03-30 Tom Tromey <tromey@redhat.com>
1453 * python/python.c (gdbpy_decode_line): Move cleanup creation out
1454 of TRY_CATCH. Fix error handling.
1455 * python/py-value.c (convert_value_from_python): Move 'old'
1456 declaration to innermost scope.
1458 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1459 Andrey Smirnov <andrew.smirnov@gmail.com>
1461 -Wshadow warning fix.
1462 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
1463 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
1464 Adjust code accordingly.
1466 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1468 * ada-lang.c (symbol_completion_add): Rename parameter
1469 "encoded" into "encoded_p". Ajust code and documentation
1472 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1473 Andrey Smirnov <andrew.smirnov@gmail.com>
1475 -Wshadow warning fix.
1476 * ada-lang.c (symbol_completion_add): Rename parameter
1477 "wild_match" into wild_match_p. Update code and documentation
1480 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1482 * ada-lang.c (symbol_completion_match): Rename parameter
1483 "encoded" into "encoded_p". Ajust code and documentation
1486 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1487 Andrey Smirnov <andrew.smirnov@gmail.com>
1489 -Wshadow warning fix.
1490 * ada-lang.c (symbol_completion_match): Rename parameter
1491 "wild_match" into "wild_match_p". Adjust code and function
1492 documentation accordingly.
1494 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1495 Andrey Smirnov <andrew.smirnov@gmail.com>
1497 -Wshadow warning fix.
1498 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
1499 "symbol_info" into "info". Adjust code accordingly.
1500 (ada_lookup_symbol): Likewise.
1502 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1504 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
1505 of this function's documentation.
1507 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1508 Andrey Smirnov <andrew.smirnov@gmail.com>
1510 -Wshadow warning fix.
1511 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
1512 variable into "wild_match_p". Adjust code accordingly.
1514 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1515 Andrey Smirnov <andrew.smirnov@gmail.com>
1517 -Wshadow warning fix.
1518 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
1519 parameter into "wild_match_p". Adjust code accordingly.
1520 Document this parameter in the function description.
1522 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1523 Andrey Smirnov <andrew.smirnov@gmail.com>
1525 -Wshadow warning fix.
1526 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
1527 "wild_match" parameter to "wild_match_p" (-Wshadow).
1529 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1531 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
1532 in function documentation.
1534 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1535 Andrey Smirnov <andrew.smirnov@gmail.com>
1537 -Wshadow warning fix.
1538 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
1539 variable into wild_match_p. Adjust code accordingly.
1541 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1542 Andrey Smirnov <andrew.smirnov@gmail.com>
1544 * ada-valprint.c (ada_val_print_1): Move the code handling
1545 TYPE_CODE_ENUM inside its own lexical block. Declare
1546 variables len and val there, instead of in the function's
1547 top level block. Avoid declaring deref_val again in a way
1548 that shadows another variable of the same name declared
1549 in one of the up-level blocks. Just re-use the up-level
1552 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1554 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
1555 Replace block_found argument by symbol_info. Adjust
1556 implementation accordingly. Add function documentation.
1557 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
1559 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
1560 * ada-exp.y (write_object_renaming): Adjust to new
1561 ada_lookup_encoded_symbol API.
1563 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1565 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
1568 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
1570 * v850-tdep.c: Add the enum values for mpu and fpu registers.
1571 (v850_register_name): Add the mpu and fpu register names.
1572 (v850e_register_name): Add the mpu and fpu register names.
1573 (v850e2_register_name): New function.
1574 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
1577 2012-03-28 Joel Brobecker <brobecker@adacore.com>
1579 * NEWS: Add entry for Ada varobj support.
1581 2012-03-28 Joel Brobecker <brobecker@adacore.com>
1583 * varobj.c (default_value_is_changeable_p): New function,
1584 extracted from varobj_value_is_changeable_p. Add declaration.
1585 (ada_value_is_changeable_p): New function, extracted from
1586 varobj_value_is_changeable_p. Add declaration.
1587 (struct language_specific): New field "value_is_changeable_p".
1588 (languages): Add entries for new field.
1589 (varobj_create): Set language before calling install_new_value.
1590 (varobj_value_is_changeable_p): Reimplement to call the varobj's
1591 "value_is_changeable_p" language callback.
1593 2012-03-28 Joel Brobecker <brobecker@adacore.com>
1595 * ada-varobj.h, ada-varobj.c: New files.
1596 * Makefile.in (SFILES): Add ada-varobj.c.
1597 (HFILES_NO_SRCDIR): Add ada-varobj.h.
1598 (COMMON_OBS): Add ada-varobj.o.
1600 2012-03-28 Joel Brobecker <brobecker@adacore.com>
1602 * varobj.c (ada_value_has_mutated): Add declaration. New function.
1603 (struct language_specific): New field "value_has_mutated".
1604 (languages): Set field "value_has_mutated" in each entry of array.
1605 (varobj_value_has_mutated): New function.
1606 (varobj_udpdate): Add handling of type mutation.
1607 (value_of_root): Add handling of type mutation.
1608 (ada_value_has_mutated): New function.
1610 2012-03-28 Pedro Alves <palves@redhat.com>
1612 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
1613 Always supply $fr0 as 0.0 and $fr1 as 1.0.
1615 2012-03-28 Tom Tromey <tromey@redhat.com>
1617 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
1618 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
1621 2012-03-28 Tom Tromey <tromey@redhat.com>
1623 * .dir-locals.el: New file.
1625 2012-03-28 Pedro Alves <palves@redhat.com>
1627 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
1629 2012-03-28 Joel Brobecker <brobecker@adacore.com>
1631 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
1634 2012-03-27 Pedro Alves <palves@redhat.com>
1636 Eliminate struct ui_stream.
1638 * ui-out.h (struct ui_stream): Delete.
1639 (ui_out_field_stream): Adjust prototype.
1640 (ui_out_stream_new, ui_out_stream_delete)
1641 (make_cleanup_ui_out_stream_delete): Delete declarations.
1642 * ui-out.c (ui_out_field_stream): Change prototype to take a
1643 ui_file instead of a ui_stream. Adjust.
1644 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
1645 (make_cleanup_ui_out_stream_delete): Delete.
1646 * breakpoint.c (print_breakpoint_location)
1647 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
1648 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
1649 * disasm.c (dump_insns): Ditto.
1650 (do_mixed_source_and_assembly, do_assembly_only): Adjust
1652 (gdb_disassembly): Use ui_file/mem_fileopen instead of
1653 ui_stream/ui_out_stream_new.
1654 * infcmd.c (print_return_value): Ditto.
1655 * osdata.c (info_osdata_command): Don't allocate a local
1657 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
1658 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
1659 * tracepoint.c (print_one_static_tracepoint_marker): Don't
1660 allocate a local ui_stream.
1661 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
1662 instead of ui_stream/ui_out_stream_new.
1663 (list_args_or_locals): Don't allocate a local ui_stream.
1664 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
1665 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
1666 ui_stream/ui_out_stream_new.
1667 * cli/cli-setshow.c (do_setshow_command): Ditto.
1669 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
1671 * arm-linux-tdep.c (arm_linux_init_abi): Call
1672 set_gdbarch_process_record. Initialize `arm_swi_record' field.
1673 * arm-tdep.c (arm_process_record): New function.
1674 (deallocate_reg_mem): New function.
1675 (decode_insn): New function.
1676 (thumb_record_branch): New function.
1677 (thumb_record_ldm_stm_swi(): New function.
1678 (thumb_record_misc): New function.
1679 (thumb_record_ld_st_stack): New function.
1680 (thumb_record_ld_st_imm_offset): New function.
1681 (thumb_record_ld_st_reg_offset(): New function.
1682 (thumb_record_add_sub_cmp_mov): New function.
1683 (thumb_record_shift_add_sub): New function.
1684 (arm_record_coproc_data_proc): New function.
1685 (arm_record_coproc): New function.
1686 (arm_record_b_bl): New function.
1687 (arm_record_ld_st_multiple): New function.
1688 (arm_record_ld_st_reg_offset): New function.
1689 (arm_record_ld_st_imm_offset): New function.
1690 (arm_record_data_proc_imm): New function.
1691 (arm_record_data_proc_misc_ld_str): New function.
1692 (arm_record_extension_space): New function.
1693 (arm_record_strx): New function.
1694 (sbo_sbz): New function.
1695 (struct insn_decode_record): New structure for arm insn record.
1696 (REG_ALLOC): New macro for reg allocations.
1697 (MEM_ALLOC): New macro for memory allocations.
1698 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
1700 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
1702 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
1703 (store_register): Likewise.
1705 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
1707 * MAINTAINERS (Write After Approval): Add myself to the list.
1709 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1711 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
1712 Describe also the option "auto".
1714 2012-03-22 Richard Henderson <rth@redhat.com>
1716 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
1717 * sparc-nat.c (sparc_xfer_wcookie): Make static.
1719 2012-03-22 Richard Henderson <rth@redhat.com>
1721 * jit.c (jit_read_code_entry): Compute alignment and offset of
1722 int64_t member before computing entry_size.
1724 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
1726 Python scripting: Add new method Value.referenced_value to
1727 gdb.Value which can dereference pointer as well as reference
1729 * NEWS: Add entry under 'Python scripting' about the new method
1730 Value.referenced_value on gdb.Value objects.
1731 * python/py-value.c (valpy_referenced_value): New function
1732 defining a new method on gdb.Value objects which can dereference
1733 pointer and reference values.
1735 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
1737 * MAINTAINERS (Write After Approval): Add myself to the list.
1739 2012-03-21 Kevin Buettner <kevinb@redhat.com>
1741 * symtab.c (skip_prologue_sal): Change test to check for "main()"
1742 in addition to "main".
1744 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1746 * expression.h (op_name): Add declaration.
1747 * expprint.c (op_name): Remove declaration. Make non-static.
1748 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
1750 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
1752 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
1754 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
1755 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1756 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
1757 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
1758 (linux_nat_get_siginfo): Likewise.
1759 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
1760 (linux_nat_get_siginfo): Likewise.
1761 * linux-tdep.c (linux_get_siginfo_type): Likewise.
1762 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
1763 * procfs.c (gdb_siginfo_t): Likewise.
1765 2012-03-21 Mike Frysinger <vapier@gentoo.org>
1767 * .gitignore: Ignore more files.
1769 2012-03-20 Pedro Alves <palves@redhat.com>
1771 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
1774 2012-03-20 Yao Qi <yao@codesourcery.com>
1776 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
1779 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1781 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
1782 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
1783 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
1785 * dwarf2expr.h (cu_offset, sect_offset): New types.
1786 (struct dwarf_expr_context_funcs) <dwarf_call>
1787 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
1789 (struct dwarf_expr_context) <len>: Improve the comment.
1790 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
1791 cu_offset and sect_offset.
1792 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
1793 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
1794 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
1795 * dwarf2loc.h: Include dwarf2expr.h.
1796 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
1798 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
1799 Improve the comment.
1800 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
1801 (struct signatured_type, struct line_header, struct partial_die_info)
1802 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
1803 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
1804 (get_die_type_at_offset, create_cus_from_index)
1805 (create_signatured_type_table_from_index, dw2_get_file_names)
1806 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
1807 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
1808 (create_debug_types_hash_table, process_psymtab_comp_unit)
1809 (load_partial_comp_unit, create_all_comp_units)
1810 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
1811 (load_full_comp_unit, dwarf2_physname, read_import_statement)
1812 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
1813 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
1814 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
1815 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
1816 (find_partial_die, read_attribute_value, lookup_die_type)
1817 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
1818 (is_ref_attr): New function comment.
1819 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
1820 Use cu_offset and sect_offset.
1821 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
1822 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
1823 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
1824 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
1825 (offset_and_type_hash, offset_and_type_eq, set_die_type)
1826 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
1827 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
1830 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1833 * python/py-auto-load.c (source_section_scripts): New variable back_to.
1834 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
1836 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
1838 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1840 * NEWS: Describe new options --init-command=FILE, -ix and
1841 --init-eval-command=COMMAND, -iex.
1842 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
1843 CMDARG_INIT_COMMAND.
1844 (captured_main): New enum items OPT_IX and OPT_IEX. Add
1845 "init-command", "init-eval-command", "ix" and "iex" to the variable
1846 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
1847 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
1848 (print_gdb_help): Describe --init-command=FILE, -ix and
1849 --init-eval-command=COMMAND, -iex.
1851 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1854 * main.c (struct cmdarg): Move it here from main. Add more comments.
1855 (cmdarg_s, VEC (cmdarg_s)): New.
1856 (main): Move struct cmdarg from here. New variables cmdarg_vec and
1857 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
1858 Install cleanup for cmdarg_vec. Update filling for options 'x' and
1859 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
1862 2012-03-19 Tom Tromey <tromey@redhat.com>
1864 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
1866 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1869 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
1872 2012-03-16 Chris January <chris.january@allinea.com>
1874 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
1877 2012-03-16 Chris January <chris.january@allinea.com>
1879 * source.c (add_path): Use memmove instead of strcpy because the
1882 2012-03-16 Joel Brobecker <brobecker@adacore.com>
1884 * value.h (set_value_parent): Add declaration.
1885 * value.c (set_value_parent): New function.
1886 (value_address): If VALUE->PARENT is not NULL, then use it as
1887 the base address instead of VALUE->LOCATION.address.
1888 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
1889 the same as OBJ's address. Adjust V's offset accordingly.
1892 2012-03-16 Gary Benson <gbenson@redhat.com>
1894 PR breakpoints/10738
1895 * dwarf2read.c (use_deprecated_index_sections): New global.
1896 (struct partial_die_info): New member may_be_inlined.
1897 (read_partial_die): Set may_be_inlined where appropriate.
1898 (add_partial_subprogram): Add partial symbols for partial
1899 DIEs that may be inlined.
1900 (new_symbol_full): Add inlined subroutines to the current
1902 (write_psymtabs_to_index): Bump version number.
1903 (dwarf2_read_index): Read only version 6 indices unless
1904 use_deprecated_index_sections is set.
1905 * linespec.c (symbol_and_data_callback): New structure.
1906 (iterate_inline_only): New function.
1907 (iterate_over_all_matching_symtabs): New argument
1908 "include_inline". If nonzero, also call the callback for
1909 symbols representing inlined subroutines.
1910 (lookup_prefix_sym): Pass extra argument to the above.
1911 (find_function_symbols): Likewise.
1912 (add_matching_symbols_to_info): Likewise.
1913 * NEWS: Mention that GDB can now set breakpoints on inlined
1916 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1918 * p-typeprint.c (pascal_type_print_method_args):
1919 Fix display of parameter of methods.
1921 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1923 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
1924 Add missing prototype.
1926 2012-03-16 Yao Qi <yao@codesourcery.com>
1927 Jan Kratochvil <jan.kratochvil@redhat.com>
1929 Fix false compilation warning.
1930 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
1932 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
1933 Pedro Alves <pedro@codesourcery.com>
1935 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
1936 (arm_register_g_packet_guesses): New function.
1937 (arm_gdbarch_init): Don't force a target description with
1938 registers when the executable is detected as M-profile. Instead
1939 set gdbarch->tdep->is_m. Register `g' packet guesses.
1940 (_initialize_arm_tdep): Initialize the new target description.
1941 * features/arm-with-m-fpa-layout.xml: New description.
1942 * features/arm-with-m-fpa-layout.c: New, generated.
1944 2012-03-15 Joel Brobecker <brobecker@adacore.com>
1946 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
1947 Update function description.
1948 (insert_bp_location): Do not wipe bl->target_info out.
1949 * mem-break.c: #include "gdb_string.h".
1950 (default_memory_insert_breakpoint): Do not call target_read_memory
1951 with a pointer to the breakpoint's shadow_contents buffer. Use
1952 a local buffer instead.
1953 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
1955 2012-03-15 Tom Tromey <tromey@redhat.com>
1957 * NEWS: Mention "info vtbl", not "info vtable".
1958 * cp-support.c (info_vtbl_command): Fix comment.
1959 (_initialize_cp_support): Fix text.
1961 2012-03-15 Tom Tromey <tromey@redhat.com>
1963 * cp-valprint.c (cp_print_value_fields): Use
1964 print_function_pointer_address for vtable slot.
1966 2012-03-15 Tom Tromey <tromey@redhat.com>
1968 * gnu-v3-abi.c (struct value_and_voffset): New.
1969 (hash_value_and_voffset, eq_value_and_voffset)
1970 (compare_value_and_voffset, compute_vtable_size)
1971 (print_one_vtable, gnuv3_print_vtable): New functions.
1972 (init_gnuv3_ops): Initialize 'print_vtable' field.
1973 * cp-support.c (info_vtbl_command): New function.
1974 (_initialize_cp_support): Add "info vtbl".
1975 * cp-abi.h (cplus_print_vtable): Declare.
1976 (struct cp_abi_ops) <print_vtable>: New field.
1977 * cp-abi.c (cplus_print_vtable): New function.
1980 2012-03-15 Tom Tromey <tromey@redhat.com>
1982 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
1983 iterate_over_symbols.
1985 2012-03-14 Doug Evans <dje@google.com>
1987 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
1988 DW_OP_GNU_parameter_ref.
1990 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1992 Fix double prompt of 'interpreter-exec mi'.
1993 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
1994 (mi_interpreter_resume): use it.
1995 (mi_execute_command_input_handler): New function.
1996 * mi/mi-main.c (mi_execute_command): Move prompt printing to
1997 mi_execute_command_input_handler.
1999 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
2001 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
2003 (darwin_debug_port_info): Make static.
2004 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
2005 * machoread.c (_initialize_machoread): Add prototype.
2006 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
2007 (i386_darwin_set_control, i386_darwin_get_control)
2008 i386_darwin_dr_set_addr, i386_darwin_get_addr)
2009 i386_darwin_get_status, i386_darwin_get_control):
2010 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
2012 2012-03-13 Joel Brobecker <brobecker@adacore.com>
2014 * ax-gdb.c (gen_usual_unary): Remove special handling of
2015 enum and bool types.
2017 2012-03-13 Joel Brobecker <brobecker@adacore.com>
2019 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
2021 2012-03-13 Joel Brobecker <brobecker@adacore.com>
2023 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
2025 2012-03-13 Chris January <chris.january@allinea.com>
2027 * aix-thread.c (fill_sprs): Store the floating point registers
2028 at the correct offsets into vals.
2030 2012-03-13 Doug Evans <dje@google.com>
2032 * NEWS: Mention symbol-reloading has been deleted.
2033 * symfile.c (symbol_reloading): Delete.
2034 (show_symbol_reloading): Delete.
2035 (_initialize_symfile): Delete set/show symbol-reloading.
2037 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
2038 read_in_chain until we have successfully read it in.
2039 (load_full_comp_unit): Ditto.
2040 (read_signatured_type): Add comment.
2042 2012-03-13 Chris January <chris.january@allinea.com>
2044 * stabsread.c (fix_common_block): Change type of valu argument
2047 2012-03-13 Chris January <chris.january@allinea.com>
2049 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
2052 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2054 * common/linux-procfs.c (linux_proc_get_int): New, from
2055 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
2057 (linux_proc_get_tgid): Only call linux_proc_get_int.
2058 (linux_proc_get_tracerpid): New.
2059 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
2060 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
2061 linux_proc_pid_has_state.
2062 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
2063 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
2064 (linux_ptrace_attach_warnings): New.
2065 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
2067 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
2068 (linux_nat_attach): New variables ex, buffer, message and message_s.
2069 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
2071 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2073 * Makefile.in (linux-ptrace.o): New.
2074 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
2076 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
2077 * common/linux-ptrace.c: New file.
2078 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
2079 * config/arm/linux.mh: Likewise.
2080 * config/i386/linux.mh: Likewise.
2081 * config/i386/linux64.mh: Likewise.
2082 * config/ia64/linux.mh: Likewise.
2083 * config/m32r/linux.mh: Likewise.
2084 * config/m68k/linux.mh: Likewise.
2085 * config/mips/linux.mh: Likewise.
2086 * config/pa/linux.mh: Likewise.
2087 * config/powerpc/linux.mh: Likewise.
2088 * config/powerpc/ppc64-linux.mh: Likewise.
2089 * config/powerpc/spu-linux.mh: Likewise.
2090 * config/s390/s390.mh: Likewise.
2091 * config/sparc/linux.mh: Likewise.
2092 * config/sparc/linux64.mh: Likewise.
2093 * config/xtensa/linux.mh: Likewise.
2094 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
2095 common/linux-procfs.c.
2096 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
2098 2012-03-13 Hui Zhu <teawater@gmail.com>
2099 Pedro Alves <palves@redhat.com>
2101 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
2102 CREATE_BREAKPOINT_FLAGS_INSERTED.
2103 (create_breakpoint_sal, create_breakpoints_sal)
2104 (base_breakpoint_create_breakpoints_sal)
2105 (tracepoint_create_breakpoints_sal)
2106 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
2108 (break_command_1, handle_gnu_v3_exceptions, trace_command)
2109 (ftrace_command, strace_command): Adjust.
2110 (create_tracepoint_from_upload): Pass
2111 CREATE_BREAKPOINT_FLAGS_INSERTED.
2112 * breakpoint.h (enum breakpoint_create_flags): New.
2113 (create_breakpoint): New flags parameter.
2114 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2115 * python/py-breakpoint.c (bppy_init): Adjust.
2116 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
2117 * spu-tdep.c (spu_catch_start): Adjust.
2119 2012-03-13 Pedro Alves <palves@redhat.com>
2120 Hui Zhu <teawater@gmail.com>
2121 Yao Qi <yao@codesourcery.com>
2123 * remote.c (struct remote_state): New field `starting_up'.
2124 (remote_start_remote): Set and clear it.
2125 (remote_can_download_tracepoint): If starting up, return false.
2127 2012-03-13 Yao Qi <yao@codesourcery.com>
2129 * inferior.h (struct inferior): Remove fields any_syscall_count,
2130 syscalls_counts and total_syscalls_count. Move them to new
2131 struct catch_syscall_inferior_data in breakpoint.c.
2132 * breakpoint.c: Call DEF_VEC_I(int).
2133 (struct catch_syscall_inferior_data): New.
2134 (get_catch_syscall_inferior_data): New.
2135 (catch_syscall_inferior_data_cleanup): New.
2136 (insert_catch_syscall): Update to access data in
2137 struct catch_syscall_inferior_data.
2138 (insert_catch_syscall): Likewise.
2139 (remove_catch_syscall): Likewise.
2140 (remove_catch_syscall): Likewise.
2141 (is_syscall_catchpoint_enabled): Likewise.
2142 (add_catch_command): Likewise.
2143 (_initialize_breakpoint): Register cleanup.
2144 * breakpoint.h: Removed DEF_VEC_I(int).
2145 * dwarf2loc.c: Call DEF_VEC_I(int).
2146 * mi/mi-main.c: Likewise.
2148 2012-03-12 Mark Kettenis <kettenis@gnu.org>
2150 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
2152 2012-03-12 Chris January <chris.january@allinea.com>
2154 * aix-thread.c (_initialize_aix_thread): Add prototype.
2155 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
2156 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
2158 2012-03-12 Joel Brobecker <brobecker@adacore.com>
2160 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
2161 include of "amd64-nat.h".
2163 2012-03-12 Tom Tromey <tromey@redhat.com>
2165 * buildsym.c (record_pending_block): Now static.
2166 * buildsym.h: (record_pending_block): Remove.
2168 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
2170 * amd64bsd-nat.c: Include amd64bsd-nat.h.
2172 2012-03-09 Tom Tromey <tromey@redhat.com>
2174 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
2175 producer_is_gxx_lt_4_6>: New fields.
2176 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
2178 2012-03-09 Tom Tromey <tromey@redhat.com>
2180 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
2182 2012-03-08 Joel Brobecker <brobecker@adacore.com>
2184 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
2187 2012-03-08 Joel Brobecker <brobecker@adacore.com>
2189 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
2191 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2193 Fix -Wmissing-prototypes build.
2194 * arm-linux-nat.c (get_thread_id): Make it static.
2195 * xtensa-linux-nat.c (get_thread_id): Likewise.
2197 2012-03-08 Joel Brobecker <brobecker@adacore.com>
2199 * server.c (process_point_options): If a conditional expression
2200 is found, only print a message if remote_debug is nonzero.
2202 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
2204 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
2205 of internal error for unknown/unsupported types.
2207 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2209 Fix CU relative vs. absolute DIE offsets.
2210 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
2211 offset to offset_in_cu.
2212 * dwarf2read.c (process_enumeration_scope): Add CU offset to
2214 (dwarf2_fetch_die_location_block): Rename parameter offset to
2215 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
2217 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2219 * libunwind-frame.c: Rename to ...
2220 * ia64-libunwind-tdep.c: ... here.
2221 * libunwind-frame.h: Rename to ...
2222 * ia64-libunwind-tdep.h: ... here.
2223 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
2224 ia64-libunwind-tdep.h.
2225 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
2226 * README (--with-libunwind): Rename to ...
2227 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
2228 * config.in: Regenerate.
2229 * configure: Regenerate.
2230 * configure.ac: New option --with-libunwind-ia64, make the
2231 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
2232 Remove AC_DEFINE for HAVE_LIBUNWIND.
2233 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
2234 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
2235 Rename libunwind-frame in the general comment.
2236 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
2237 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
2238 Move forward declarations inside #ifndef. Rename libunwind-frame in
2239 the general comment.
2240 * ia64-tdep.c: Rename libunwind-frame.h #include to
2241 ia64-libunwind-tdep.h.
2242 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
2243 (ia64_libunwind_descr): Rename libunwind-frame to
2244 ia64-libunwind-tdep in these function comments.
2245 * ia64-tdep.h: Rename libunwind-frame.h #include to
2246 ia64-libunwind-tdep.h.
2247 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
2248 ia64-libunwind-tdep in that data comment.
2250 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2252 * libunwind-frame.h (struct frame_unwind): New declaration.
2254 2012-03-08 Joel Brobecker <brobecker@adacore.com>
2256 * breakpoint.c (_initialize_breakpoint): Fix error in help of
2257 "set breakpoint condition-evaluation" command.
2259 2012-03-08 Tristan Gingold <gingold@adacore.com>
2261 * sparc-stub.c: Move to stubs/
2262 * sh-stub.c: Likewise.
2263 * m68k-stub.c: Likewise.
2264 * m32r-stub.c: Likewise.
2265 * i386-stub.c: Likewise.
2267 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
2269 * m68klinux-tdep.c (m68k_linux_init_abi): Register
2270 linux_get_siginfo_type.
2272 * m68klinux-nat.c: Include "gdb_proc_service.h".
2273 (PTRACE_GET_THREAD_AREA): Define.
2274 (ps_get_thread_area): New function.
2276 2012-03-08 Yao Qi <yao@codesourcery.com>
2278 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
2280 (remote_query_attached): Likewise.
2281 (remote_static_tracepoint_marker_at): Likewise.
2282 (remote_set_permissions): Likewise.
2283 (remote_detach_1, extended_remote_attach_1): Likewise.
2284 (send_g_packet, remote_vkill): Likewise.
2285 (extended_remote_disable_randomization): Likewise.
2286 (remote_add_target_side_condition): Likewise.
2287 (remote_insert_breakpoint): Likewise.
2288 (remote_remove_breakpoint): Likewise.
2289 (remote_insert_watchpoint): Likewise.
2290 (remote_remove_watchpoint): Likewise.
2291 (remote_insert_hw_breakpoint): Likewise.
2292 (remote_insert_hw_breakpoint): Likewise.
2293 (remote_remove_hw_breakpoint): Likewise.
2294 (remote_download_command_source): Likewise.
2295 (remote_download_tracepoint): Likewise.
2296 (remote_download_trace_state_variable): Likewise.
2297 (remote_disable_tracepoint): Likewise.
2298 (remote_trace_set_readonly_regions): Likewise.
2299 (remote_get_tracepoint_status): Likewise.
2300 (remote_trace_find): Likewise.
2301 (remote_get_trace_state_variable_value): Likewise.
2302 (remote_set_disconnected_tracing): Likewise.
2303 (remote_set_circular_trace_buffer): Likewise.
2304 (remote_get_min_fast_tracepoint_insn_len): Likewise.
2305 (remote_use_agent): Likewise.
2306 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
2309 2012-03-07 Pedro Alves <palves@redhat.com>
2311 * NEWS: Mention QProgramSignals.
2312 * inferior.h (update_signals_program_target): Declare.
2313 * infrun.c: (update_signals_program_target): New.
2314 (handle_command): Update the target of the new program signals
2316 * remote.c (PACKET_QProgramSignals): New enum.
2317 (last_program_signals_packet): New global.
2318 (remote_program_signals): New.
2319 (remote_start_remote): Update the target with the program signals
2321 (remote_protocol_features): Add entry for QPassSignals.
2322 (remote_open_1): Free anc clear last_program_signals_packet.
2323 (init_remote_ops): Install remote_program_signals.
2324 * target.c (update_current_target): Adjust.
2325 (target_program_signals): New.
2326 * target.h (struct target_ops) <to_program_signals>: New field.
2327 (target_program_signals): Declare.
2329 2012-03-07 Pedro Alves <palves@redhat.com>
2331 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
2334 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
2336 * m68klinux-nat.c (getregs_supplies): Make static.
2337 (getfpregs_supplies): Likewise.
2338 (have_ptrace_getregs): Likewise.
2340 2012-03-06 Joel Brobecker <brobecker@adacore.com>
2342 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
2343 in call to get_die_type_at_offset.
2345 2012-03-06 Stan Shebs <stan@codesourcery.com>
2347 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
2348 * mi/mi-cmd-disas.c: Ditto.
2349 * mi/mi-cmd-env.c: Ditto.
2350 * mi/mi-cmd-file.c: Ditto.
2351 * mi/mi-cmd-stack.c: Ditto.
2352 * mi/mi-cmd-target.c: Ditto.
2353 * mi/mi-cmd-var.c: Ditto.
2354 * mi/mi-cmds.c: Ditto.
2355 * mi/mi-cmds.h: Ditto.
2356 * mi/mi-console.c: Ditto.
2357 * mi/mi-getopt.c: Ditto.
2358 * mi/mi-getopt.h: Ditto.
2359 * mi/mi-interp.c: Ditto.
2360 * mi/mi-main.c: Ditto.
2361 * mi/mi-out.c: Ditto.
2362 * mi/mi-parse.c: Ditto.
2363 * mi/mi-parse.h: Ditto.
2364 * mi/mi-symbol-cmds.c: Ditto.
2366 * mi/mi-getopt.h: Move mi_opt struct up.
2367 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
2369 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
2371 2012-03-06 Tom Tromey <tromey@redhat.com>
2373 * proc-service.c (ps_pglobal_lookup): Set the current program
2376 2012-03-06 Pedro Alves <palves@redhat.com>
2378 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
2380 2012-03-05 Joel Brobecker <brobecker@adacore.com>
2382 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
2384 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2387 * common/linux-osdata.c (linux_common_core_of_thread): New function
2389 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
2390 call by linux_common_core_of_thread.
2391 (linux_nat_core_of_thread_1): Remove.
2392 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
2393 * linux-thread-db.c: Include linux-osdata.h.
2394 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
2395 linux_common_core_of_thread.
2397 2012-03-05 Tom Tromey <tromey@redhat.com>
2399 * value.c (value_primitive_field): Don't fetch contents for
2402 2012-03-05 Tom Tromey <tromey@redhat.com>
2404 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
2406 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
2408 * s390-nat.c: Include "gregset.h".
2410 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2412 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
2413 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
2414 (libunwind_load): New variable so_error, use it for dlerror. Try to
2415 load also LIBUNWIND_SO_7.
2417 2012-03-05 Pedro Alves <palves@redhat.com>
2419 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
2420 is not NULL, and remove resulting dead code.
2422 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
2424 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
2425 prologue to sh_analyze_prologue.
2426 (sh_analyze_prologue): Make better use of such an upper limit, and
2427 generally be more cautious about accessing memory.
2429 2012-03-05 Tom Tromey <tromey@redhat.com>
2431 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
2432 _initialize_ia64_hpux_tdep.
2434 2012-03-05 Pedro Alves <palves@redhat.com>
2438 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
2439 the register state is clear, supply explicit zero, instead of
2440 marking the register unavailable.
2442 2012-03-05 Tristan Gingold <gingold@adacore.com>
2444 * NEWS: Mention OpenVMS ia64 new target.
2446 2012-03-05 Tristan Gingold <gingold@adacore.com>
2448 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
2449 (ia64_unw_accessors, ia64_unw_rse_accessors)
2450 (ia64_libunwind_descr): Declare.
2451 * ia64-vms-tdep.c: New file.
2452 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
2453 (ia64_libunwind_descr): Make them public.
2454 * configure.tgt: Add ia64-*-*vms*.
2455 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
2456 (ALLDEPFILES): Add ia64-vms-tdep.c
2458 2012-03-05 Tristan Gingold <gingold@adacore.com>
2460 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
2461 * remote.c (PACKET_qXfer_uib): New enum value.
2462 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
2463 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
2464 (_initialize_remote): Call add_packet_config_cmd for
2467 2012-03-05 Tristan Gingold <gingold@adacore.com>
2469 * osabi.c (gdb_osabi_names): Add OpenVMS.
2470 (generic_elf_osabi_sniffer): Likewise.
2471 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
2473 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2475 Removed unused code.
2476 * libunwind-frame.c (libunwind_frame_unwind)
2477 (libunwind_frame_base_address): Remove.
2478 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
2480 2012-03-04 Yao Qi <yao@codesourcery.com>
2482 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
2483 remove trailing new line.
2484 (agent_run_command, agent_run_command): Add _ markup.
2485 (agent_capability_check): Likewise.
2487 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2489 * breakpoint.c (set_condition_evaluation_mode): Set
2490 CONDITION_EVALUATION_MODE unconditionally.
2492 2012-03-03 Yao Qi <yao@codesourcery.com>
2494 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
2495 * common/agent.h: Update declaration.
2496 * inf-child.c (inf_child_use_agent): New.
2497 (inf_child_can_use_agent): New.
2498 (inf_child_target): Initialize fields `to_use_agent'
2499 and `to_can_use_agent'.
2500 * agent.c (agent_new_objfile): New.
2501 (_initialize_agent): Add agent_new_objfile to new_objfile
2504 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2506 (linux_target_install_ops): Initialize field
2507 `to_static_tracepoint_markers_by_strid'.
2508 * remote.c (free_current_marker): Move it to ...
2509 * tracepoint.c (free_current_marker): ... here. New.
2510 (cleanup_target_stop): New.
2511 * tracepoint.h: Declare free_current_marker.
2512 * NEWS: Add one entry about `info static-tracepoint-marker'.
2514 2012-03-03 Yao Qi <yao@codesourcery.com>
2516 * common/agent.c (agent_loaded_p): New.
2517 (agent_look_up_symbols): New global.
2518 * common/agent.h: Declare agent_loaded_p.
2520 2012-03-03 Yao Qi <yao@codesourcery.com>
2522 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
2523 (agent_capability_check, agent_capability_invalidate): New.
2524 (symbol_list): New array element.
2525 * common/agent.h (enum agent_capa): New.
2526 * target.c (target_pre_inferior): Call agent_capability_invalidate.
2528 2012-03-03 Yao Qi <yao@codesourcery.com>
2530 * target.h (struct target_ops) <to_use_agent>: New field.
2531 (struct target_ops) <to_can_use_agent>: New field.
2532 (target_use_agent, target_can_use_agent): New macro.
2533 * target.c (update_current_target): Update.
2534 * remote.c: New enum `PACKET_QAgent'.
2535 (remote_protocol_features): Add a new element.
2536 (remote_use_agent, remote_can_use_agent): New.
2537 (init_remote_ops): Initialize field `can_use_agent' with
2538 remote_can_use_agent. Intiailize field `use_agent' with
2540 * common/agent.c (use_agent): New global.
2541 * common/agent.h: Declare it.
2542 * tracepoint.c (info_static_tracepoint_markers_command): Add
2544 * Makefile.in (SFILES): Add common/agent.c and agent.c.
2545 (COMMON_OBS): Add common/agent.o and agent.o
2546 (common-agent.o): New rule.
2549 2012-03-03 Yao Qi <yao@codesourcery.com>
2551 * common/agent.c: New.
2552 * common/agent.h: New.
2553 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
2555 * configure, configh.in: Regenerated.
2557 2012-03-02 Kevin Buettner <kevinb@redhat.com>
2559 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
2560 unless it exists for this architecture.
2562 2012-03-02 Joel Brobecker <brobecker@adacore.com>
2564 * language.h (struct language_defn): New "method" la_read_var_value.
2565 * findvar.c: #include "language.h".
2566 (default_read_var_value): Renames read_var_value. Rewrite
2567 function description.
2568 (read_var_value): New function.
2569 * value.h (default_read_var_value): Add prototype.
2570 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
2572 (ada_language_defn): Add entry for la_read_var_value.
2573 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
2574 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
2575 language_defn structures to add entry for new la_read_var_value
2578 2012-03-02 Tom Tromey <tromey@redhat.com>
2579 Pedro Alves <palves@redhat.com>
2581 PR breakpoints/13776:
2582 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
2584 (delete_longjmp_breakpoint_at_next_stop): New.
2585 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
2586 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
2587 before deleting the inferior. Add comments.
2588 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
2589 breakpoints immediately, but only on next stop. Move that code
2590 next to where we mark other breakpoints for deletion.
2592 2012-03-02 Joel Brobecker <brobecker@adacore.com>
2594 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
2596 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
2599 2012-03-02 Pedro Alves <palves@redhat.com>
2601 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
2603 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
2605 Fix -Wmissing-prototypes build.
2606 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
2607 * remote-sim.c (gdbsim_has_all_memory): Likewise.
2608 (gdbsim_has_memory): Likewise.
2610 2012-03-02 Yao Qi <yao@codesourcery.com>
2612 Fix -Wmissing-prototypes build.
2613 * charset.c (phony_iconv_open): Make static.
2614 (phony_iconv_close, phony_iconv): Likewise.
2615 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
2616 * i386-windows-nat.c (_initialize_i386_windows_nat): New
2618 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
2619 * ser-mingw.c (create_select_thread): Make static.
2620 * windows-termcap.c (tgetent): New prototype.
2621 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
2623 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
2625 Fix -Wmissing-prototypes build.
2626 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
2627 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
2628 (_initialize_loadable): New prototypes.
2630 2012-03-02 Doug Evans <dje@google.com>
2632 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
2633 abbrev table, read_comp_unit will do it.
2635 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2637 Fix -Wmissing-prototypes build.
2638 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
2639 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
2640 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
2641 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
2642 (_initialize_arm_symbian_tdep): New prototype.
2643 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
2644 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
2645 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
2647 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
2648 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
2650 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
2651 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
2652 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
2654 * moxie-tdep.c (moxie_process_record): Likewise.
2655 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
2656 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
2657 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
2658 (_initialize_rl78_tdep): New prototype.
2659 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
2660 (_initialize_rx_tdep): New prototype.
2661 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
2662 (_initialize_darwin_solib): New prototype.
2663 * solib-spu.c: Include solib-spu.h.
2664 (_initialize_spu_solib): New prototype.
2665 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
2666 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
2667 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
2668 (tic6x_software_single_step): Make it static.
2669 (_initialize_tic6x_tdep): New prototype.
2671 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2673 Fix -Wmissing-prototypes build.
2674 * cris-tdep.c (cris_can_use_hardware_watchpoint)
2675 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
2677 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2679 Fix -Wmissing-prototypes build.
2680 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
2681 (frv_have_stopped_data_address): Remove.
2683 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2685 Fix -Wmissing-prototypes build.
2686 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
2687 * sh-tdep.c: Include sh64-tdep.h.
2688 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
2689 * sh64-tdep.c: Include sh64-tdep.h.
2690 * sh64-tdep.h: New file.
2692 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2694 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
2696 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2698 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
2699 sp_regnum once the gdbarch_init_osabi hook has been called.
2701 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2703 * mips-tdep.c (mips32_bc1_pc): New function.
2704 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
2705 BPOSGE32 and BPOSGE64 instructions.
2706 (deal_with_atomic_sequence): Likewise.
2707 (mips32_instruction_has_delay_slot): Likewise.
2709 2012-03-01 Maciej W. Rozycki <macro@mips.com>
2710 Chris Dearman <chris@mips.com>
2711 Maciej W. Rozycki <macro@codesourcery.com>
2712 Joseph Myers <joseph@codesourcery.com>
2714 * features/mips-dsp.xml: New file.
2715 * features/mips64-dsp.xml: New file.
2716 * features/mips-dsp-linux.xml: New file.
2717 * features/mips64-dsp-linux.xml: New file.
2718 * features/Makefile (WHICH): Add mips-dsp-linux and
2720 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
2721 * features/mips-dsp-linux.c: New file.
2722 * features/mips64-dsp-linux.c: New file.
2723 * regformats/mips-dsp-linux.dat: New file.
2724 * regformats/mips64-dsp-linux.dat: New file.
2725 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
2727 (mips64_linux_register_addr): Likewise.
2728 (mips64_linux_regsets_fetch_registers): Likewise.
2729 (mips64_linux_regsets_store_registers): Likewise.
2730 (mips64_linux_fetch_registers): Update call to
2731 mips64_linux_regsets_fetch_registers.
2732 (mips64_linux_store_registers): Update call to
2733 mips64_linux_regsets_store_registers.
2734 (mips_linux_read_description): Probe for DSP registers.
2735 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
2736 and initialize_tdesc_mips64_dsp_linux.
2737 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
2738 Remove padding of no longer used embedded register slots.
2739 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
2740 (MIPS_RESTART_REGNUM): Redefine enum value.
2741 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
2743 (mips_tx39_reg_names): Likewise.
2744 (mips_linux_reg_names): New array of register names for Linux
2746 (mips_register_name): Check for a null pointer in
2747 mips_processor_reg_names and return an empty string.
2748 (mips_register_type): Exclude embedded registers for the IRIX
2750 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
2751 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
2753 (mips_stab_reg_to_regnum): Handle DSP accumulators.
2754 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
2755 (mips_gdbarch_init): Likewise. Initialize internal register
2756 indices for the Linux ABI. Use dynamic numbers to refer to
2757 registers, as applicable, while parsing the target description.
2758 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
2760 2012-03-01 Joel Brobecker <brobecker@adacore.com>
2762 * frame.h (read_frame_register_unsigned): Fix typo in function
2765 2012-03-01 Pedro Alves <palves@redhat.com>
2767 * jit-reader.in [!__cplusplus]
2768 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
2770 2012-03-01 Pedro Alves <palves@redhat.com>
2772 * configure.ac (build_warnings): Add -Wmissing-prototypes.
2773 * configure: Regenerate.
2775 2012-03-01 Pedro Alves <palves@redhat.com>
2777 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
2778 * breakpoint.c (create_exception_master_breakpoint, trace_command)
2779 (ftrace_command, strace_command): Make static.
2780 * d-lang.c (_initialize_d_language): Declare.
2781 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
2782 * dwarf2loc.c (_initialize_dwarf2loc):
2783 * dwarf2read.c (process_psymtab_comp_unit): Make static.
2784 * exec.c (exec_get_section_table): Make static.
2785 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
2786 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
2787 * inferior.c (remove_inferior_command, add_inferior_command)
2788 (clone_inferior_command): Make static.
2789 * linux-nat.c (linux_nat_thread_address_space)
2790 (linux_nat_core_of_thread): Make static.
2791 * linux-tdep.c (_initialize_linux_tdep): Declare.
2792 * objc-lang.c (_initialize_objc_lang): Declare.
2793 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
2795 (_initialize_opencl_language): Declare.
2796 * record.c (_initialize_record): Declare.
2797 * remote.c (demand_private_info, remote_get_tib_address)
2798 (remote_supports_cond_tracepoints)
2799 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
2801 * skip.c (_initialize_step_skip): Declare.
2802 * symtab.c (skip_prologue_using_lineinfo): Make static.
2803 * tracepoint.c (delete_trace_state_variable)
2804 (trace_variable_command, delete_trace_variable_command)
2805 (get_uploaded_tsv, find_matching_tracepoint_location)
2806 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
2808 * value.c (pack_unsigned_long): Make static.
2809 * varobj.c (varobj_ensure_python_env): Make static.
2810 * windows-tdep.c (_initialize_windows_tdep): Declare.
2811 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
2813 2012-03-01 Pedro Alves <palves@redhat.com>
2815 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
2817 (linux_init_abi): Install it as has_shared_address_space gdbarch
2820 2012-03-01 Pedro Alves <palves@redhat.com>
2822 * observer.c (observer_test_first_notification_function)
2823 (observer_test_second_notification_function)
2824 (observer_test_third_notification_function): Add declarations.
2826 2012-03-01 Pedro Alves <palves@redhat.com>
2828 * common/signals.c (default_target_signal_to_host)
2829 (default_target_signal_from_host): Move ...
2830 * arch-utils.c: ... here.
2831 * arch-utils.h (default_target_signal_to_host)
2832 (default_target_signal_from_host): Declare.
2834 * common/signals.c (target_signal_from_command): Move ...
2835 * infrun.c: ... here.
2836 * inferior.h (target_signal_from_command): Declare.
2837 * target.h (target_signal_from_command)
2838 (default_target_signal_from_host, default_target_signal_to_host):
2839 Delete declarations.
2841 * common/signals.c (_initialize_signals): Delete.
2843 2012-03-01 Pedro Alves <palves@redhat.com>
2845 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
2846 both __cplusplus and !__cplusplus.
2848 2012-03-01 Pedro Alves <palves@redhat.com>
2850 * psymtab.c (find_and_open_source): Delete declaration.
2851 * source.c (find_and_open_source): Move comment ...
2852 * source.h (find_and_open_source): ... to this new declaration.
2854 2012-03-01 Pedro Alves <palves@redhat.com>
2856 * inline-frame.c: Include inline-frame.h.
2858 2012-03-01 Pedro Alves <palves@redhat.com>
2860 * tui/tui-data.c (set_gen_win_origin): Delete.
2861 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
2862 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
2864 2012-03-01 Pedro Alves <palves@redhat.com>
2866 * remote.c (encode_actions): Delete declaration.
2867 * tracepoint.c (encode_actions): Make extern.
2868 * tracepoint.h (encode_actions): Declare.
2870 2012-03-01 Pedro Alves <palves@redhat.com>
2872 * python/py-breakpoint.c: Include python.h.
2873 * python/py-continueevent.c (create_continue_event_object): Make
2875 * python/py-lazy-string.c (stpy_get_type): Make static.
2876 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2878 * python/py-utils.c (unicode_to_target_python_string): Make
2880 * python/py-value.c: Include python.h.
2882 2012-03-01 Pedro Alves <palves@redhat.com>
2884 * inferior.c (delete_threads_of_inferior): Delete.
2886 2012-03-01 Pedro Alves <palves@redhat.com>
2888 Import fallback definitions from glibc.
2890 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
2891 ps_prochandle): Forward declare.
2892 (ps_err_e): Use glibc's comments.
2893 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
2894 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
2895 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
2896 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
2897 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
2898 (struct ps_prochandle): Adjust comment.
2900 2012-03-01 Pedro Alves <palves@redhat.com>
2902 * ada-lang.c (ada_modulus_from_name): Delete.
2903 * ada-lex.l (lexer_init): Make static.
2905 2012-03-01 Pedro Alves <palves@redhat.com>
2909 * frame.c (read_frame_register_unsigned): New.
2910 * frame.h (read_frame_register_unsigned): Declare.
2911 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
2913 (print_i387_control_word): New parameter `control_p'. Handle it.
2914 (i387_print_float_info): Handle unavailable float registers.
2916 2012-03-01 Keith Seitz <keiths@redhat.com>
2918 * linespec.c (decode_line_2): Sort the list of methods
2919 alphabetically before presenting the user with a selection
2922 2012-03-01 Doug Evans <dje@google.com>
2924 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
2926 (dwarf2_read_abbrevs): Remove corresponding initialization.
2928 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
2930 * NEWS: Mention new python command class gdb.COMMAND_USER.
2931 * cli/cli-cmds.c (show_user): Print error when used on a python
2933 (init_cli_cmds): Update documentation strings for "show user" and
2934 "set/show max-user-call-depth" to clarify that it does not apply to
2936 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
2938 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
2940 * top.c (execute_command): Only execute a user-defined command as a
2941 legacy macro if c->user_commands is set.
2943 2012-03-01 Tom Tromey <tromey@redhat.com>
2945 * valprint.h (struct generic_val_print_decorations): New.
2946 (generic_val_print): Declare.
2947 * valprint.c (generic_val_print): New function.
2948 * p-valprint.c (p_decorations): New global.
2949 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
2950 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
2951 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
2952 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
2953 * m2-valprint.c (m2_decorations): New global.
2954 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
2955 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
2956 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
2957 TYPE_CODE_ERROR>: Call generic_val_print.
2958 * f-valprint.c (f_decorations): New global.
2959 (f_val_print): Use print_function_pointer_address.
2960 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
2961 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
2962 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
2964 * c-valprint.c (c_decorations): New global.
2965 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
2966 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
2967 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
2968 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
2969 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
2970 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
2973 2012-03-01 Tom Tromey <tromey@redhat.com>
2975 * valprint.c (val_print): Update.
2976 * p-valprint (pascal_val_print): Return void.
2977 * p-lang.h (pascal_val_print): Return void.
2978 * m2-valprint.c (m2_val_print): Return void.
2979 * m2-lang.h (m2_val_print): Return void.
2980 * language.h (struct language_defn) <la_val_print>: Return void.
2981 * language.c (unk_lang_val_print): Return void.
2982 * jv-valprint.c (java_val_print): Return void.
2983 * jv-lang.h (java_val_print): Return void.
2984 * f-valprint.c (f_val_print): Return void.
2985 * f-lang.h (f_val_print): Return void.
2986 * d-valprint.c (d_val_print): Return void.
2987 (dynamic_array_type): Update.
2988 * d-lang.h (d_val_print): Return void.
2989 * c-valprint.c (c_val_print): Return void.
2990 * c-lang.h (c_val_print): Return void.
2991 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
2993 * ada-lang.h (ada_val_print): Return void.
2995 2012-03-01 Tom Tromey <tromey@redhat.com>
2997 * value.h (val_print): Return void.
2998 * valprint.c (val_print): Return void.
3000 2012-03-01 Tom Tromey <tromey@redhat.com>
3002 * value.h (common_val_print): Return void.
3003 * valprint.c (common_val_print): Return void.
3005 2012-03-01 Tom Tromey <tromey@redhat.com>
3007 * value.h (value_print): Return void.
3008 * valprint.c (value_print): Return void.
3009 * p-valprint.c (pascal_value_print): Return void.
3010 * p-lang.h (pascal_value_print): Return void.
3011 * language.h (struct language_defn) <la_value_print>: Return
3013 * language.c (unk_lang_value_print): Return void.
3014 * jv-valprint.c (java_value_print): Return void.
3015 * jv-lang.h (java_value_print): Return void.
3016 * f-valprint.c (c_value_print): Don't declare.
3018 * c-valprint.c (c_value_print): Return void.
3019 * c-lang.h (c_value_print): Return void.
3020 * ada-valprint.c (ada_value_print): Return void.
3021 * ada-lang.h (ada_value_print): Return void.
3023 2012-03-01 Tom Tromey <tromey@redhat.com>
3025 * value.c (value_primitive_field): Handle virtual base classes.
3027 2012-03-01 Tom Tromey <tromey@redhat.com>
3029 * gdbtypes.h (struct vbase): Remove.
3031 2012-03-01 Tom Tromey <tromey@redhat.com>
3033 * c-valprint.c (print_function_pointer_address): Move...
3034 * valprint.c: ... here. Make non-static.
3035 * m2-valprint.c (print_function_pointer_address): Remove.
3036 * valprint.h (print_function_pointer_address): Declare.
3038 2012-03-01 Joel Brobecker <brobecker@adacore.com>
3040 * NEWS: Document the fact that one can provide a condition when
3041 creating an Ada exception catchpoint.
3043 2012-03-01 Tom Tromey <tromey@redhat.com>
3045 * valprint.c (val_print_type_code_flags): Fix placement of
3048 2012-03-01 Joel Brobecker <brobecker@adacore.com>
3050 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
3051 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
3052 environment variable before calling update-copyright.
3054 2012-03-01 Joel Brobecker <brobecker@adacore.com>
3056 * gnulib/extra/update-copyright: Update to the latest from
3057 gnulib's git repository.
3058 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
3059 variable to 2 instead of 1.
3061 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3063 * varobj.c (c_value_of_variable): Remove dead code.
3065 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3067 * ada-lex.p (processId): Do not modify already encoded IDs.
3068 Update function documentation.
3070 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3072 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
3073 "name" with "struct symbol *name_sym".
3074 * ada-exp.y (write_var_or_type): Update call to
3075 ada_find_renaming_symbol.
3076 "name" with "struct symbol *name_sym". Adjust Implementation
3077 accordingly. Adjust the function documentation.
3079 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3081 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
3082 * ada-lang.c (ada_find_any_type): Add advance declaration.
3083 Make static. Replace ada_find_any_symbol by
3084 ada_find_any_type_symbol.
3085 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
3086 Improve function description. Make static.
3087 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
3088 Replace ada_find_any_symbol by ada_find_any_type_symbol.
3090 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3092 * ada-lang.c (struct tag_args): Delete.
3093 (ada_get_tsd_type): Function body moved up in source file.
3094 (ada_tag_name_1, ada_tag_name_2): Delete.
3095 (ada_get_tsd_from_tag): New function.
3096 (ada_tag_name_from_tsd): New function.
3097 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
3098 to determine the tag name.
3100 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3102 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
3104 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
3107 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3109 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
3111 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3113 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
3116 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3118 * ada-lang.c (constrained_packed_array_type): If there is a
3119 parallel XA type, use it to determine the array index type.
3121 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3123 * ada-valprint.c (ada_val_print_1): If our value is a reference
3124 to an array descriptor, dereference it before converting it
3127 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3129 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
3130 creating fixed value.
3131 (ada_value_ind, ada_coerce_ref, assign_component)
3132 (ada_evaluate_subexp): Remove call to unwrap_value before
3133 call to ada_to_fixed_value.
3135 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3137 * ada-lang.c (to_fixed_array_type): Set result's type name.
3139 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3141 * ada-lang.c (catch_ada_exception_command_split): Add new
3142 argument cond_string. Add support for condition at end of
3143 "catch exception" commands.
3144 (ada_decode_exception_location): Add new argument cond_string.
3145 Update call to catch_ada_exception_command_split.
3146 (create_ada_exception_catchpoint): Add new argument cond_string.
3147 Set the breakpoint condition if needed.
3148 (catch_ada_exception_command): Update call to
3149 ada_decode_exception_location.
3150 (ada_decode_assert_location): Add function documentation.
3151 Add support for condition at end of "catch assert" command.
3152 (catch_assert_command): Update calls to ada_decode_assert_location
3153 and create_ada_exception_catchpoint.
3155 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3157 Fix disp-step-syscall.exp: fork: single step over fork.
3158 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
3159 (i386_linux_get_syscall_number_from_regcache): ... here, new function
3160 comment, change parameters gdbarch and ptid to regcache. Remove
3161 parameter regcache, initialize gdbarch from regcache here.
3162 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
3164 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
3166 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
3167 'syscall'. Make the 'int' check more strict.
3169 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3171 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
3172 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
3173 (i386_linux_intx80_sysenter_syscall_record): ... here.
3174 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
3175 Use the renamed function name.
3177 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3179 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
3180 * breakpoint.c (until_break_command): Likewise.
3181 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
3182 * infcall.c (call_function_by_hand): Likewise.
3183 * infcmd.c (finish_forward): Likewise.
3184 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3186 2012-02-28 Tristan Gingold <gingold@adacore.com>
3188 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
3189 avoid variable assignments inside condition.
3191 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3193 Fix static analysis issue found by cppcheck.
3194 * microblaze-tdep.c (microblaze_extract_return_value): Fix
3195 uninitialized BUF for size 2.
3197 2012-02-27 Chris Dearman <chris@mips.com>
3198 Nathan Froyd <froydnj@codesourcery.com>
3199 Maciej W. Rozycki <macro@codesourcery.com>
3201 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
3202 (mips16_instruction_has_delay_slot): Likewise.
3203 (mips_segment_boundary): Likewise.
3204 (mips_adjust_breakpoint_address): Likewise.
3205 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
3207 2012-02-27 Maciej W. Rozycki <macro@mips.com>
3208 Maciej W. Rozycki <macro@codesourcery.com>
3210 * infrun.c (handle_inferior_event): Don't proceed through
3211 shared library trampolines if stepping at the machine
3214 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
3216 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
3219 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
3221 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
3222 (sh_stub_unwind_sniffer): New functions.
3223 (sh_stub_unwind): New variable.
3224 (sh_gdbarch_init): Wire everything.
3226 2012-02-27 Pedro Alves <palves@redhat.com>
3228 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
3229 (linux_nat_post_attach_wait): Adjust to use
3230 linux_proc_pid_is_stopped.
3231 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
3232 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
3233 based on pid_is_stopped from both linux-nat.c and
3234 gdbserver/linux-low.c, and renamed.
3236 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3238 * remote.c (remote_watchpoint_addr_within_range): New function.
3239 (init_remote_ops): Use it.
3241 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3243 * target.h (target_watchpoint_addr_within_range): Document macro.
3245 2012-02-24 Pedro Alves <palves@redhat.com>
3247 * stack.c (set_last_displayed_sal): Issue internal_error instead
3248 of warning, and issue it after clearing the last displayed sal.
3250 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3251 Pedro Alves <palves@redhat.com>
3253 * breakpoint.c (until_break_command): Install breakpoints after
3254 all frame manipulations.
3256 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
3258 * remote.c (remote_supports_cond_breakpoints): New forward
3260 (remote_add_target_side_condition): New function.
3261 (remote_insert_breakpoint): Add target-side breakpoint
3262 conditional if supported.
3263 (remote_insert_hw_breakpoint): Likewise.
3264 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
3267 * target.c (update_current_target): Inherit
3268 to_supports_evaluation_of_breakpoint_conditions.
3269 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
3271 * target.h (struct target_ops)
3272 <to_supports_evaluation_of_breakpoint_conditions>: New field.
3273 (target_supports_evaluation_of_breakpoint_conditions): New #define.
3275 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
3276 (condition_evaluation_both, condition_evaluation_auto,
3277 condition_evaluation_host, condition_evaluation_target,
3278 condition_evaluation_enums, condition_evaluation_mode_1,
3279 condition_evaluation_mode): New static globals.
3280 (translate_condition_evaluation_mode): New function.
3281 (breakpoint_condition_evaluation_mode): New function.
3282 (gdb_evaluates_breakpoint_condition_p): New function.
3283 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
3284 (mark_breakpoint_modified): New function.
3285 (mark_breakpoint_location_modified): New function.
3286 (set_condition_evaluation_mode): New function.
3287 (show_condition_evaluation_mode): New function.
3288 (bp_location_compare_addrs): New function.
3289 (get_first_location_gte_addr): New helper function.
3290 (set_breakpoint_condition): Free condition bytecode if locations
3291 has become unconditional. Call mark_breakpoint_modified (...).
3292 (condition_command): Call update_global_location_list (1) for
3294 (breakpoint_xfer_memory): Use is_breakpoint (...).
3295 (is_breakpoint): New function.
3296 (parse_cond_to_aexpr): New function.
3297 (build_target_condition_list): New function.
3298 (insert_bp_location): Handle target-side conditional
3299 breakpoints and call build_target_condition_list (...).
3300 (update_inserted_breakpoint_locations): New function.
3301 (insert_breakpoint_locations): Handle target-side conditional
3303 (bpstat_check_breakpoint_conditions): Add comment.
3304 (bp_condition_evaluator): New function.
3305 (bp_location_condition_evaluator): New function.
3306 (print_breakpoint_location): Print information on where the condition
3308 (print_one_breakpoint_location): Likewise.
3309 (init_bp_location): Call mark_breakpoint_location_modified (...) for
3310 breakpoint location.
3311 (force_breakpoint_reinsertion): New functions.
3312 (update_global_location_list): Handle target-side breakpoint
3314 Reinsert locations that are already inserted if conditions have
3316 (bp_location_dtor): Free agent expression bytecode.
3317 (disable_breakpoint): Call mark_breakpoint_modified (...).
3318 Call update_global_location_list (...) with parameter 1 for breakpoints.
3319 (disable_command): Call mark_breakpoint_location_modified (...).
3320 Call update_global_location_list (...) with parameter 1 for breakpoints.
3321 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
3322 (enable_command): mark_breakpoint_location_modified (...).
3323 (_initialize_breakpoint): Update documentation and add
3324 condition-evaluation breakpoint subcommand.
3326 * breakpoint.h: Include ax.h.
3327 (condition_list): New data structure.
3328 (condition_status): New enum.
3329 (bp_target_info) <cond_list>: New field.
3330 (bp_location) <condition_changed, cond_bytecode>: New fields.
3331 (is_breakpoint): New prototype.
3333 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
3335 * remote.c (remote_state) <cond_breakpoints>: New field.
3336 (PACKET_ConditionalBreakpoints): New enum.
3337 (remote_cond_breakpoint_feature): New function.
3338 (remote_protocol_features): Add new ConditionalBreakpoints entry.
3339 (remote_supports_cond_breakpoints): New function.
3340 (_initialize_remote): Add new packet configuration for
3341 target-side conditional breakpoints.
3343 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
3345 * NEWS: Mention target-side conditional breakpoint support,
3346 new condition-evaluation breakpoint subcommand and remote
3349 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
3351 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
3354 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
3356 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
3357 (after_prologue): Remove.
3359 2012-02-23 Tom Tromey <tromey@redhat.com>
3361 * jv-valprint.c (java_val_print): Remove dead code.
3363 2012-02-23 Tristan Gingold <gingold@adacore.com>
3365 * ada-tasks.c (struct ada_tasks_inferior_data): Add
3366 known_tasks_element and known_tasks_length fields.
3367 (read_known_tasks_array): Change argument type. Use pointer type
3368 and number of elements from DATA. Adjust.
3369 (read_known_tasks_list): Likewise.
3370 (get_known_tasks_addr): Remove.
3371 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
3372 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
3373 type and array length. Merge former get_known_tasks_addr code.
3375 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3378 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
3379 it after set_momentary_breakpoint.
3381 2012-02-22 Sterling Augustine <saugustine@google.com>
3384 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
3386 2012-02-22 Gary Benson <gbenson@redhat.com>
3388 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
3389 (find_slot_in_mapped_hash): Likewise.
3391 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3394 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
3395 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
3396 * configure: Regenerate.
3398 2012-02-21 Tristan Gingold <gingold@adacore.com>
3399 Pedro Alves <palves@redhat.com>
3401 * ia64-tdep.c: Do not include libunwind-ia64.h.
3402 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
3403 Include libunwind-ia64.h instead of libunwind.h.
3404 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
3405 for libunwind.h existence.
3406 * configure, config.in: Regenerate.
3408 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
3410 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
3411 instead of value_rtti_target_type.
3412 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
3413 instead of value_rtti_target_type.
3414 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
3415 value_rtti_target_type.
3416 * valops.c (value_ind): Extract function readjust_indirect_value_type.
3417 (value_rtti_target_type): Rename to ...
3418 (value_rtti_indirect_type): ... here and make it indirect. Update
3420 * value.c (readjust_indirect_value_type): New function.
3421 (coerce_ref): Support for enclosing type setting for references
3422 with readjust_indirect_value_type.
3423 * value.h (readjust_value_type): New declaration.
3424 (value_rtti_target_type): Rename to ...
3425 (value_rtti_indirect_type): ... here.
3427 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
3429 * MAINTAINERS (Write After Approval): Add myself to the list.
3431 2012-02-20 Doug Evans <dje@google.com>
3433 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
3434 Rename objfile_p_char parameter to objfilep.
3435 (build_objfile_section_table): Result is now void. All callers
3437 * objfiles.h (struct objfile): Tweak comments, whitespace.
3438 (build_objfile_section_table): Update.
3440 * elfread.c (elf_symfile_segments): Fix warning text.
3442 2012-02-20 Tom Tromey <tromey@redhat.com>
3445 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
3446 particular set of file names once.
3447 (dw2_map_symbol_filenames): Likewise.
3449 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3452 * main.c (write_files): Remove the declaration.
3453 (external_editor_command): Move the declaration ...
3454 [GDBTK] (external_editor_command): ... here. Fix the comment.
3456 2012-02-20 Tom Tromey <tromey@redhat.com>
3458 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
3461 2012-02-20 Tristan Gingold <gingold@adacore.com>
3463 * darwin-nat.h (enum darwin_msg_state): Add comments.
3465 2012-02-20 Tristan Gingold <gingold@adacore.com>
3467 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
3470 2012-20-18 Joel Brobecker <brobecker@adacore.com>
3472 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
3473 between function description and implementation.
3475 2012-02-17 Tom Tromey <tromey@redhat.com>
3478 * python/py-event.c (event_object_getset): New global.
3479 (event_object_type): Reference it.
3480 * python/py-type.c (field_object_getset): New global.
3481 (field_object_type): Reference it.
3482 * python/python-internal.h (gdb_py_generic_dict): Declare.
3483 * python/py-utils.c (gdb_py_generic_dict): New function.
3485 2012-02-17 Tristan Gingold <gingold@adacore.com>
3487 * solib-darwin.c (darwin_current_sos): Check magic and filetype
3489 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
3491 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
3492 TYPE_CALLING_CONVENTION annotation.
3494 2012-02-16 Kevin Buettner <kevinb@redhat.com>
3496 * MAINTAINERS: Add rx to target ISA section.
3497 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
3498 (ALLDEPFILES): Add rx-tdep.c.
3500 2012-02-16 Tom Tromey <tromey@redhat.com>
3502 * symfile.c (symbol_file_add_main_1): Use inferior's
3504 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
3505 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
3507 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
3509 (follow_exec): Use inferior's symfile_flags.
3510 * inferior.h (struct inferior) <symfile_flags>: New field.
3512 2012-02-16 Mike Frysinger <vapier@gentoo.org>
3515 * remote-sim.c (gdbsim_create_inferior): Call error() when
3516 sim_create_inferior() fails.
3518 2012-02-16 Josh Matthews <josh@joshmatthews.net>
3520 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
3522 2012-02-16 Tom Tromey <tromey@redhat.com>
3525 * thread.c (struct current_thread_cleanup) <was_removable>: New
3527 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
3528 (make_cleanup_restore_current_thread): Initialize new field.
3530 2012-02-15 Kevin Buettner <kevinb@redhat.com>
3532 * MAINTAINERS: Add rl78 to target ISA section.
3533 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
3534 (ALLDEPFILES): Add rl78-tdep.c.
3535 * NEWS: Mention rl78 as a new target.
3537 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
3539 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
3541 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
3543 2012-02-15 Tom Tromey <tromey@redhat.com>
3546 * infcmd.c (registers_info): Print just the current register's
3549 2012-02-15 Tom Tromey <tromey@redhat.com>
3551 * python/py-symbol.c (sympy_value): Use _().
3553 2012-02-15 Pedro Alves <palves@redhat.com>
3555 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
3556 output to be like native targets'.
3557 (remote_pid_to_str): Special case the null ptid.
3559 2012-02-14 Stan Shebs <stan@codesourcery.com>
3561 * NEWS: Mention enable count command.
3562 * breakpoint.h (struct breakpoint): New field enable_count.
3563 * breakpoint.c (enable_breakpoint_disp): Add count argument.
3564 (enable_breakpoint): Add arg to call.
3565 (struct disp_data): New struct.
3566 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
3567 (do_map_enable_once_breakpoint): Create a struct and pass it.
3568 (do_map_enable_delete_breakpoint): Ditto.
3569 (do_map_enable_count_breakpoint): New function.
3570 (enable_count_command): New function.
3571 (bpstat_stop_status): Decrement enable_count.
3572 (print_one_breakpoint_location): Report enable count.
3573 (_initialize_breakpoint): Add enable count command.
3575 2012-02-14 Kevin Buettner <kevinb@redhat.com>
3577 * rl78-tdep.c (reggroups.h): Include.
3578 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
3579 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
3580 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
3581 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
3582 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
3583 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
3584 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
3585 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
3586 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
3587 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
3588 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
3589 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
3590 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
3591 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
3592 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
3593 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
3594 beginning of register list.
3595 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
3596 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
3597 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
3598 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
3599 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
3600 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
3601 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
3602 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
3603 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
3604 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
3605 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
3606 the pseudo registers. Rearrange other pseudo registers too so
3607 that the bank registers appear at the end.
3608 (rl78_register_type): Account for the fact that the byte sized
3609 bank registers are now pseudo-registers.
3610 (rl78_register_name): Rearrange the register name array. Make
3611 initial set of raw banked registers inaccessible.
3612 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
3613 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
3614 case for copying bytes back and forth between raw and pseudo
3615 versions of the banked registers. Update other cases to reflect
3617 (rl78_return_value): Update to account for changed names of
3619 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
3620 rl78_register_sim_regno().
3622 2012-02-14 Kevin Buettner <kevinb@redhat.com>
3624 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
3625 the name parameter being passed to find_pc_partial_function().
3627 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3629 * MAINTAINERS: Step down from being ia64 target maintainer.
3631 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3633 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
3634 compilation warning.
3636 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3638 Fix crash on loaded shlibs without loaded exec_bfd.
3639 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
3640 (set_section_command): Replace exec_bfd by p->bfd.
3642 2012-02-10 Tom Tromey <tromey@redhat.com>
3644 * linespec.c (decode_line_internal): Skip symtabs_from_filename
3645 when we have a C++ qualified name.
3647 2012-02-10 Pedro Alves <palves@redhat.com>
3649 * inferior.c (inferior_pid_to_str): New.
3650 (print_inferior, inferior_command): Use it.
3652 2012-02-10 Pedro Alves <palves@redhat.com>
3654 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
3656 * configure: Regenerate.
3658 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3660 * linespec.c (decode_line_internal): Fix comment correctness.
3662 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
3665 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
3666 * amd64bsd-nat.c: Add support for debug registers (adapted from
3668 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
3669 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
3670 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
3671 (amd64bsd_dr_get_control): New functions.
3672 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
3673 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
3674 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
3675 watchpoints initialization.
3676 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
3678 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3680 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
3682 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
3684 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3686 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
3688 2012-02-08 Joel Brobecker <brobecker@adacore.com>
3690 * language.h (symbol_name_cmp_ftype): Renames
3691 symbol_name_match_p_ftype.
3692 (struct language_defn)[la_get_symbol_name_cmp]: Renames
3693 la_get_symbol_name_match_p.
3694 * ada-lang.c (ada_get_symbol_name_cmp): Renames
3695 ada_get_symbol_name_match_p. Update comment.
3696 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
3697 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
3698 Renames symbol_name_match_p. Update field type.
3699 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
3700 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
3701 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
3702 "la_get_symbol_name_cmp" in comments.
3703 * language.c: Likewise.
3705 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3707 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
3709 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
3710 (amd64_sol2_gregset32_reg_offs): Likewise.
3712 2012-02-08 Joel Brobecker <brobecker@adacore.com>
3714 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
3715 of the returned BFD is allocated by GDB.
3717 2012-02-07 Tom Tromey <tromey@redhat.com>
3720 * python/python-internal.h (frame_object_type): Declare.
3721 * python/py-symbol.c (sympy_needs_frame): New function.
3722 (sympy_value): New function.
3723 (symbol_object_getset): Add "needs_frame".
3724 (symbol_object_methods): Add "value".
3725 * python/py-frame.c (frame_object_type): No longer static.
3727 2012-02-07 Tom Tromey <tromey@redhat.com>
3730 * python/py-symbol.c (sympy_line): New function.
3731 (symbol_object_getset): Add "line".
3733 2012-02-07 Tom Tromey <tromey@redhat.com>
3735 * charset.c (find_charset_names): Check 'in' against NULL.
3737 2012-02-06 Doug Evans <dje@google.com>
3739 * gdbtypes.h (struct main_type): Change type of name,tag_name,
3740 and fields.name members from char * to const char *. All uses updated.
3741 (struct cplus_struct_type): Change type of fn_fieldlists.name member
3742 from char * to const char *. All uses updated.
3743 (type_name_no_tag): Update.
3744 (lookup_unsigned_typename, lookup_signed_typename): Update.
3745 * gdbtypes.c (type_name_no_tag): Change result type
3746 from char * to const char *. All callers updated.
3747 (lookup_unsigned_typename, lookup_signed_typename): Change type of
3748 name parameter from char * to const char *.
3749 * symtab.h (struct cplus_specific): Change type of demangled_name
3750 member from char * to const char *. All uses updated.
3751 (struct general_symbol_info): Change type of name and
3752 mangled_lang.demangled_name members from char * to const char *.
3754 (symbol_get_demangled_name, symbol_natural_name): Update.
3755 (symbol_demangled_name, symbol_search_name): Update.
3756 * symtab.c (symbol_get_demangled_name): Change result type
3757 from char * to const char *. All callers updated.
3758 (symbol_natural_name, symbol_demangled_name): Ditto.
3759 (symbol_search_name): Ditto.
3760 (completion_list_add_name): Change type of symname,sym_text,
3761 text,word parameters from char * to const char *.
3762 (completion_list_objc_symbol): Change type of sym_text,
3763 text,word parameters from char * to const char *.
3764 * ada-lang.c (find_struct_field): Change type of name parameter
3765 from char * to const char *.
3766 (encoded_ordered_before): Similarly for N0,N1 parameters.
3767 (old_renaming_is_invisible): Similarly for function_name parameter.
3768 (ada_type_name): Change result type from char * to const char *.
3769 All callers updated.
3770 * ada-lang.h (ada_type_name): Update.
3771 * buildsym.c (hashname): Change type of name parameter
3772 from char * to const char *.
3773 * buildsym.h (hashname): Update.
3774 * dbxread.c (end_psymtab): Change type of include_list parameter
3775 from char ** to const char **.
3776 * dwarf2read.c (determine_prefix): Change result type
3777 from char * to const char *. All callers updated.
3778 * f-lang.c (find_common_for_function): Change type of name, funcname
3779 parameters from char * to const char *.
3780 * f-lang.c (find_common_for_function): Update.
3781 * f-valprint.c (list_all_visible_commons): Change type of funcname
3782 parameters from char * to const char *.
3783 * gdbarch.sh (static_transform_name): Change type of name parameter
3784 and result from char * to const char *.
3785 * gdbarch.c: Regenerate.
3786 * gdbarch.h: Regenerate.
3787 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
3788 of name parameter from char * to const char *.
3789 * jv-lang.c (java_primitive_type_from_name): Ditto.
3790 (java_demangled_signature_length): Similarly for signature parameter.
3791 (java_demangled_signature_copy): Ditto.
3792 (java_demangle_type_signature): Ditto.
3793 * jv-lang.h (java_primitive_type_from_name): Update.
3794 (java_demangle_type_signature): Update.
3795 * objc-lang.c (specialcmp): Change type of a,b parameters
3796 from char * to const char *.
3797 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
3798 from char * to const char *. All callers updated.
3799 * p-lang.h (is_pascal_string_type): Update.
3800 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
3801 of name parameter from char * to const char *.
3802 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
3803 * utils.c (fprintf_symbol_filtered): Ditto.
3804 * defs.h (fprintf_symbol_filtered): Update.
3805 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
3806 * stabsread.h (end_psymtab): Update.
3807 * stack.c (find_frame_funname): Change type of funname parameter
3808 from char ** to const char **.
3809 * stack.h (find_frame_funname): Update.
3810 * typeprint.c (type_print): Change type of varstring parameter
3811 from char * to const char *.
3812 * value.h (type_print): Update.
3813 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
3814 from char * to const char *. All callers updated.
3815 (xcoff_end_psymtab): Change type of include_list parameter
3816 from char ** to const char **. All callers updated.
3817 (swap_sym): Similarly for name parameter. All callers updated.
3818 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
3820 (process_coff_symbol): Use xstrdup.
3821 * stabsread.c (stabs_method_name_from_physname): Renamed from
3822 update_method_name_from_physname. Change result type from void
3823 to char *. All callers updated.
3824 (read_member_functions): In has_destructor case, store name in objfile
3825 obstack instead of malloc space. In !has_stub case, fix mem leak.
3827 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
3829 * configure: Rebuild.
3830 * configure.ac: Put -L../bfd and -L../libiberty at the front of
3833 2012-02-03 Kevin Buettner <kevinb@redhat.com>
3835 * configure.tgt (rl78-*-elf): New target.
3836 * rl78-tdep.c: New file.
3838 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3840 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
3841 and continue the loop. Add QUIT statement.
3843 2012-02-03 Tom Tromey <tromey@redhat.com>
3846 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
3847 bfd_lookup_symbol_from_symtab.
3848 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3849 gdb_bfd_lookup_symbol_from_symtab.
3851 2012-02-03 Joel Brobecker <brobecker@adacore.com>
3853 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
3854 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
3855 symbol. Add assertion that sym2 is never NULL.
3857 2012-02-02 Doug Evans <dje@google.com>
3859 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
3860 "name" parameter to const char ** from char **. All callers updated.
3861 (find_pc_partial_function): Ditto.
3862 (cache_pc_function_name): Change type to const char * from char *.
3863 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
3864 (find_pc_partial_function): Update.
3865 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
3866 type of "name" parameter to const char * from char *.
3868 * arch-utils.c (generic_in_solib_return_trampoline): Change
3869 type of "name" parameter to const char * from char *.
3870 * arch-utils.h (generic_in_solib_return_trampoline): Update.
3871 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
3872 type of "name" parameter to const char * from char *.
3873 * gdbarch.sh (in_solib_return_trampoline): Ditto.
3874 * gdbarch.c: Regenerate.
3875 * gdbarch.h: Regenerate.
3876 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
3877 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
3878 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
3879 type of "name" parameter to const char * from char *.
3880 * skip.c (skip_function_pc): Ditto.
3881 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
3882 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
3883 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
3884 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
3885 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
3886 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
3887 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
3888 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
3889 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
3891 2012-02-02 Pedro Alves <palves@redhat.com>
3893 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
3894 the current inferior has no execution. Make sure the current
3895 remote process matches gdb's current inferior.
3897 2012-02-02 Tom Tromey <tromey@redhat.com>
3900 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
3903 2012-02-02 Tom Tromey <tromey@redhat.com>
3906 * symtab.c (lookup_language_this): Set block_found.
3908 2012-02-01 Tom Tromey <tromey@redhat.com>
3911 * jit.c (struct jit_inferior_data): Rewrite.
3912 (struct jit_objfile_data): New.
3913 (get_jit_objfile_data): New function.
3914 (add_objfile_entry): Update.
3915 (jit_read_descriptor): Return int. Replace descriptor_addr
3916 argument with inf_data. Update. Don't call error.
3917 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
3919 (jit_inferior_init): Don't look up descriptor. Don't call error.
3920 (jit_reset_inferior_data_and_breakpoints)
3921 (jit_inferior_created_observer): Remove.
3922 (jit_inferior_exit_hook): Update.
3923 (jit_executable_changed_observer): Remove.
3924 (jit_event_handler): Update.
3925 (free_objfile_data): Reset inferior data if needed.
3926 (_initialize_jit): Update.
3928 2012-02-01 Tom Tromey <tromey@redhat.com>
3930 * jit.c (bfd_open_from_target_memory): Move higher in file.
3932 2012-02-01 Tristan Gingold <gingold@adacore.com>
3934 * libunwind-frame.c (libunwind_load): Display message if dlopen
3937 2012-02-01 Gary Benson <gbenson@redhat.com>
3939 * symtab.h (symbol_found_callback_ftype): New typedef.
3940 (iterate_over_symbols): Use the above.
3941 * symtab.c (iterate_over_symbols): Likewise.
3942 * language.h (language_defn->la_iterate_over_symbols): Likewise.
3943 * ada-lang.c (ada_iterate_over_symbols): Likewise.
3944 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
3945 (iterate_name_matcher): Document return values.
3946 (collect_one_symbol): Likewise.
3947 (collect_function_symbols): Likewise.
3948 (collect_symbols): Likewise.
3950 2012-02-01 Tom Tromey <tromey@redhat.com>
3952 * ada-lang.c (resolve_subexp): Update.
3953 (ada_lookup_symbol_list): Add 'full_search' argument.
3954 (ada_iterate_over_symbols): Pass 0 as full_search argument to
3955 ada_lookup_symbol_list.
3956 (ada_lookup_encoded_symbol): Update.
3957 (get_var_value): Update.
3958 * ada-exp.y (block_lookup): Update.
3959 (write_var_or_type): Update.
3960 (write_name_assoc): Update.
3961 * ada-lang.h (ada_lookup_symbol_list): Update.
3963 2012-01-31 Tom Tromey <tromey@redhat.com>
3965 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
3968 2012-01-31 Doug Evans <dje@google.com>
3970 * symtab.h: Remove outdated comment.
3971 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
3973 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
3975 Fix build error in Darwin port.
3976 * i386-darwin-nat.c: Include i386-nat.h.
3978 2012-01-30 Tom Tromey <tromey@redhat.com>
3980 PR breakpoints/13568:
3981 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
3982 argument. Check for recursive includes.
3983 (dwarf_decode_macros): Create an include hash.
3985 2012-01-30 Michael Eager <eager@eagercon.com>
3987 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
3988 * ppc-linux-tdep.c: Include glibc-tdep.h.
3989 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
3990 (powerpc_linux_in_plt_stub): New function.
3991 (powerpc_linux_in_dynsym_resolve_code): New function.
3992 (ppc_skip_trampoline_code): New function.
3993 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
3994 Use glibc_skip_solib_resolver.
3996 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3998 Code cleanup: Make 1440 bytes of data segment read-only.
3999 * arch-utils.c (endian_enum): Make it const char *const [].
4000 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
4002 * breakpoint.c (always_inserted_enums): Likewise.
4003 * cli/cli-cmds.c (script_ext_enums): Likewise.
4004 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
4005 enumlist parameter const char *const *.
4006 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
4007 const char *const *.
4008 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
4009 parameter const char *const *.
4010 * cris-tdep.c (cris_modes): Make it const char *const [].
4011 * filesystem.c (target_file_system_kinds): Likewise.
4012 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
4013 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
4014 (can_use_displaced_stepping_enum, scheduler_enums)
4015 (exec_direction_names): Likewise.
4016 * language.c (_initialize_language): Make the type_or_range_names and
4017 case_sensitive_names variables const char *const [].
4018 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
4019 * python/python.c (python_excp_enums): Likewise.
4020 * remote.c (interrupt_sequence_modes): Likewise.
4021 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
4022 * serial.c (logbase_enums): Likewise.
4023 * sh-tdep.c (sh_cc_enum): Likewise.
4024 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
4026 * symtab.c (multiple_symbols_modes): Likewise.
4027 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
4029 * utils.c (internal_problem_modes): Likewise.
4031 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4033 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
4034 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
4037 2012-01-27 Doug Evans <dje@google.com>
4039 * configure.ac (with_python): Fix absolute path handling for win32.
4040 * configure: Regenerate.
4042 2012-01-26 Doug Evans <dje@google.com>
4044 * symtab.c: Whitespace cleanup, no code changes.
4046 * symtab.c (lookup_symbol_in_language): Improve comment.
4047 (lookup_symbol_aux): Fix comment.
4049 * psymtab.c (add_psymbol_to_list): Result is now "void".
4050 * psympriv.h (add_psymbol_to_list): Update.
4052 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
4054 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4056 Do not open script filenames twice.
4057 * cli/cli-cmds.c (source_script_from_stream): Pass to
4058 source_python_script also STREAM.
4059 * python/py-auto-load.c (source_section_scripts): Pass to
4060 source_python_script_for_objfile also STREAM.
4061 (auto_load_objfile_script): Pass to source_python_script_for_objfile
4063 * python/python-internal.h (source_python_script_for_objfile): New
4064 parameter file, rename parameter file to filename.
4065 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
4066 instead if !_WIN32. Update the function comment.
4067 (source_python_script, source_python_script_for_objfile)
4068 (source_python_script): New parameter file, rename parameter file to
4069 filename. Pass FILENAME to python_run_simple_file.
4070 * python/python.h (source_python_script): New parameter file, rename
4071 parameter file to filename.
4073 2012-01-26 Pedro Alves <palves@redhat.com>
4075 * corelow.c (core_has_fake_pid): Delete.
4076 (core_close): Delete references to `core_has_fake_pid'.
4077 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
4078 (core_open): Delete references to `core_has_fake_pid'.
4079 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
4082 2012-01-26 Joel Brobecker <brobecker@adacore.com>
4084 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
4085 Remove language parameter from name_matcher. Adjust the comment.
4086 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
4087 Remove language parameter.
4088 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
4089 * linespec.c (iterate_name_matcher): Likewise.
4090 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
4091 name_matcher. Adjust call accordingly.
4092 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
4093 (maintenance_check_symtabs): Adjust type of parameter "fun".
4094 * psymtab.h (maintenance_check_symtabs): Likewise.
4096 2012-01-26 Joel Brobecker <brobecker@adacore.com>
4098 * language.h (symbol_name_match_p_ftype): New typedef.
4099 (struct language_defn): Replace field la_symbol_name_compare
4100 by la_get_symbol_name_match_p.
4101 * ada-lang.c (ada_get_symbol_name_match_p): New function.
4102 (ada_language_defn): Use it.
4103 * linespec.c (struct symbol_matcher_data): New type.
4104 (iterate_name_matcher): Rewrite.
4105 (iterate_over_all_matching_symtabs): Pass a pointer to
4106 a symbol_matcher_data struct to expand_symtabs_matching
4107 instead of just the lookup name.
4108 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4109 opencl-lang.c, p-lang.c, language.c: Delete field
4110 la_symbol_name_compare, and replace by NULL for new field
4111 la_get_symbol_name_match_p.
4112 * symfile.h (struct quick_symbol_functions): Update comment.
4114 2012-01-25 Tom Tromey <tromey@redhat.com>
4116 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
4119 2012-01-24 Tom Tromey <tromey@redhat.com>
4122 * solib.c (update_solib_list): Update the program space's
4123 added_solibs and deleted_solibs fields.
4124 * progspace.h (struct program_space) <added_solibs,
4125 deleted_solibs>: New fields.
4126 (clear_program_space_solib_cache): Declare.
4127 * progspace.c (release_program_space): Call
4128 clear_program_space_solib_cache.
4129 (clear_program_space_solib_cache): New function.
4130 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
4131 bpstat_stop_status. Use handle_solib_event.
4132 * breakpoint.c: Include gdb_regex.h.
4133 (print_solib_event): New function.
4134 (bpstat_print): Use print_solib_event.
4135 (bpstat_stop_status): Add special case for bp_shlib_event.
4136 (handle_solib_event): New function.
4137 (bpstat_what): Use handle_solib_event.
4138 (struct solib_catchpoint): New.
4139 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
4140 (breakpoint_hit_catch_solib, check_status_catch_solib)
4141 (print_it_catch_solib, print_one_catch_solib)
4142 (print_mention_catch_solib, print_recreate_catch_solib): New
4144 (catch_solib_breakpoint_ops): New global.
4145 (catch_load_or_unload, catch_load_command_1)
4146 (catch_unload_command_1): New functions.
4147 (internal_bkpt_check_status): Add special case for
4149 (internal_bkpt_print_it): Use print_solib_event.
4150 (initialize_breakpoint_ops): Initialize
4151 catch_solib_breakpoint_ops.
4152 (_initialize_breakpoint): Register "catch load" and "catch
4154 * breakpoint.h (handle_solib_event): Declare.
4155 * NEWS: Add entry for "catch load" and "catch unload".
4157 2012-01-24 Tom Tromey <tromey@redhat.com>
4159 * ada-lang.c: Include gdb_vecs.h.
4160 * charset.c: Include gdb_vecs.h.
4161 * tracepoint.h: Include gdb_vecs.h.
4162 * gdb_vecs.h: New file.
4164 2012-01-24 Pedro Alves <pedro@codesourcery.com>
4166 * breakpoint.c (breakpoint_hit_catch_fork)
4167 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
4168 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
4169 * infrun.c (inferior_has_forked, inferior_has_vforked)
4170 (inferior_has_execd, inferior_has_called_syscall): Delete.
4171 (handle_syscall_event): Get syscall_number from the execution
4172 control state's wait status.
4173 (wait_for_inferior): Don't clear syscall_number.
4175 2012-01-24 Pedro Alves <palves@redhat.com>
4177 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
4178 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
4179 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
4180 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
4182 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
4183 false for events other than TARGET_SIGNAL_TRAP.
4184 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
4186 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
4187 events other than TARGET_SIGNAL_TRAP.
4188 (tracepoint_breakpoint_hit): Add `ws' parameter.
4189 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
4191 (bpstat_stop_status): Same.
4192 (pc_at_non_inline_function): Same.
4193 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
4194 to pass the current event's waitstatus to bpstat_stop_status
4195 and pc_at_non_inline_function.
4197 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4200 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
4201 Update the function comment for it.
4202 (source_script_with_search): Call make_cleanup_fclose for STREAM.
4203 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
4206 2012-01-24 Pedro Alves <palves@redhat.com>
4208 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
4209 outside `bs->stop' block.
4210 (bpstat_what): Rework bp_shlib_event handling.
4211 (internal_bkpt_check_status): If the breakpoint is a
4212 bp_shlib_event, then set bs->stop and bs->print if
4213 stop_on_solib_events is set.
4215 2012-01-24 Gary Benson <gbenson@redhat.com>
4217 Delete #if 0'd out code.
4218 * stack.c (print_frame_label_vars): Remove.
4219 (catch_info): Likewise.
4220 (_initialize_stack): Remove "info catch" command.
4221 * NEWS: Mention the above.
4223 2012-01-24 Pedro Alves <palves@redhat.com>
4225 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
4227 (remote_notice_new_inferior): If the remote end doesn't support
4228 the multiprocess extensions, then the PID is fake.
4229 (add_current_inferior_and_thread): New.
4230 (remote_start_remote): Use it.
4231 (extended_remote_attach_1): Adjust.
4232 (extended_remote_create_inferior_1): Use
4233 add_current_inferior_and_thread.
4235 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4237 Fix watchpoints to be specific for each inferior.
4238 * breakpoint.c (watchpoint_in_thread_scope): Verify also
4239 current_program_space.
4240 * i386-nat.c (i386_inferior_data_cleanup): New.
4241 (i386_inferior_data_get): Replace variable inf_data_local by an
4243 (i386_use_watchpoints): Initialize i386_inferior_data.
4244 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
4245 specific iterate_over_lwps.
4247 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4249 Fix watchpoints across inferior fork.
4250 * amd64-linux-nat.c (update_debug_registers_callback): Update the
4251 comment for linux_nat_iterate_watchpoint_lwps.
4252 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4253 linux_nat_iterate_watchpoint_lwps.
4254 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
4255 * i386-linux-nat.c (update_debug_registers_callback): Update the
4256 comment for linux_nat_iterate_watchpoint_lwps.
4257 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
4258 linux_nat_iterate_watchpoint_lwps.
4259 (i386_linux_prepare_to_resume): New comment on Linux kernel.
4260 * i386-nat.c: Include inferior.h.
4261 (dr_mirror): Remove.
4262 (i386_inferior_data, struct i386_inferior_data)
4263 (i386_inferior_data_get): New.
4264 (i386_debug_reg_state): Use i386_inferior_data_get.
4265 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
4266 (i386_insert_watchpoint, i386_remove_watchpoint)
4267 (i386_stopped_data_address, i386_insert_hw_breakpoint)
4268 (i386_remove_hw_breakpoint): New variable state, use
4269 i386_debug_reg_state instead of DR_MIRROR.
4270 * linux-nat.c (delete_lwp): New declaration.
4271 (num_lwps): Move here from downwards.
4272 (delete_lwp_cleanup): New.
4273 (linux_child_follow_fork): Create new child_lp, call
4274 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
4276 (num_lwps): Move upwards.
4277 (linux_nat_iterate_watchpoint_lwps): New.
4278 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
4279 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
4281 2012-01-24 Joel Brobecker <brobecker@adacore.com>
4285 2012-01-23 Pedro Alves <palves@redhat.com>
4287 * top.c (caution): Rename to ...
4288 (confirm): ... this.
4289 (show_caution): Rename to ...
4290 (show_confirm): ... this.
4291 (quit_cover): Adjust.
4292 (init_main): Adjust.
4293 * top.h (caution): Rename to ...
4294 (confirm): ... this.
4295 * utils.c (internal_vproblem, defaulted_query): Adjust.
4297 2012-01-23 Pedro Alves <palves@redhat.com>
4299 * top.c (caution): Update comment.
4300 (execute_command): Don't consider the current value of `caution'.
4302 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4304 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
4306 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
4308 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4309 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
4310 * target.c (target_fileio_pwrite): Remove buffer address from
4312 (target_fileio_pread): Likewise.
4314 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4316 * NEWS: Document remote "info proc" and "generate-core-file".
4318 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4320 * gdbarch.sh (find_memory_regions): New callback.
4321 * gdbarch.c, gdbarch.h: Regenerate.
4323 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
4324 callback before falling back to target method.
4326 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
4327 (linux_target_install_ops): No longer install it.
4329 * linux-tdep.c (linux_find_memory_regions): New function.
4330 (linux_init_abi): Install it.
4332 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4334 * gdbarch.sh (make_corefile_notes): New architecture callback.
4335 * gdbarch.c: Regenerate.
4336 * gdbarch.h: Likewise.
4338 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
4339 before target_make_corefile_notes. If NULL is returned, the
4340 target does not support core file generation.
4342 * linux-nat.c: Include "linux-tdep.h".
4343 (find_signalled_thread, find_stop_signal): Remove.
4344 (linux_nat_do_thread_registers): Likewise.
4345 (struct linux_nat_corefile_thread_data): Likewise.
4346 (linux_nat_corefile_thread_callback): Likewise.
4347 (iterate_over_spus): Likewise.
4348 (struct linux_spu_corefile_data): Likewise.
4349 (linux_spu_corefile_callback): Likewise.
4350 (linux_spu_make_corefile_notes): Likewise.
4351 (linux_nat_collect_thread_registers): New function.
4352 (linux_nat_make_corefile_notes): Replace contents by call to
4353 linux_make_corefile_notes passing linux_nat_collect_thread_registers
4354 as native-only callback.
4356 * linux-tdep.h: Include "bfd.h".
4357 (struct regcache): Add forward declaration.
4358 (linux_collect_thread_registers_ftype): New typedef.
4359 (linux_make_corefile_notes): Add prototype.
4360 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
4361 "regset.h", and "elf-bfd.h".
4362 (find_signalled_thread, find_stop_signal): New functions.
4363 (linux_spu_make_corefile_notes): Likewise.
4364 (linux_collect_thread_registers): Likewise.
4365 (struct linux_corefile_thread_data): New data structure.
4366 (linux_corefile_thread_callback): New funcion.
4367 (linux_make_corefile_notes): Likewise.
4368 (linux_make_corefile_notes_1): Likewise.
4369 (linux_init_abi): Install it.
4371 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4373 * gdbarch.sh (info_proc): New callback.
4374 * gdbarch.c, gdbarch.h: Regenerate.
4376 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
4377 before falling back to the target info_proc callback.
4379 * linux-nat.c: Do not include "cli/cli-utils.h".
4380 (linux_nat_info_proc): Remove.
4381 (linux_target_install_ops): No longer install it.
4383 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
4384 (read_mapping): New function.
4385 (linux_info_proc): Likewise.
4386 (linux_init_abi): Install it.
4388 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4390 * defs.h (enum info_proc_what): Moved here from linux-nat.c
4391 * infcmd.c: (info_proc_cmd_1): New function.
4392 (info_proc_cmd): New function, moved here from equivalent routine
4393 orignally in linux-nat.c.
4394 (info_proc_cmd_mappings): Likewise.
4395 (info_proc_cmd_stat): Likewise.
4396 (info_proc_cmd_status): Likewise.
4397 (info_proc_cmd_cwd): Likewise.
4398 (info_proc_cmd_cmdline): Likewise.
4399 (info_proc_cmd_exe): Likewise.
4400 (info_proc_cmd_all): Likewise.
4401 (_initialize_infcmd): Install "info proc" command and subcommands.
4403 * target.h (struct target_ops): Add to_info_proc.
4404 (target_info_proc): Add prototype.
4405 * target.c (target_info_proc): New function.
4407 * procfs.c (procfs_info_proc): Add prototype.
4408 (info_proc_cmd): Rename into ...
4409 (procfs_info_proc): ... this. Update argument types as appropriate
4410 for a to_info_proc implementation. Handle "what" argument.
4411 (procfs_target): Install procfs_info_proc.
4412 (_initialize_procfs): No longer install "info proc" command.
4414 * linux-nat.c: (enum info_proc_what): Remove.
4415 (linux_nat_info_proc_cmd_1): Rename into ...
4416 (linux_nat_info_proc): ... this. Update argument types as appropriate
4417 for a to_info_proc implementation.
4418 (linux_nat_info_proc_cmd): Remove.
4419 (linux_nat_info_proc_cmd_mappings): Likewise.
4420 (linux_nat_info_proc_cmd_stat): Likewise.
4421 (linux_nat_info_proc_cmd_status): Likewise.
4422 (linux_nat_info_proc_cmd_cwd): Likewise.
4423 (linux_nat_info_proc_cmd_cmdline): Likewise.
4424 (linux_nat_info_proc_cmd_exe): Likewise.
4425 (linux_nat_info_proc_cmd_all): Likewise.
4426 (linux_target_install_ops): Install linux_nat_info_proc.
4427 (_initialize_linux_nat): No longer install "info proc" command
4430 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4432 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
4433 * config.in, configure: Regenerate.
4435 * target.h (struct target_ops): Add to_fileio_readlink.
4436 (target_fileio_readlink): Add prototype.
4437 * target.c (target_fileio_readlink): New function.
4439 * inf-child.c: Conditionally include <sys/param.h>.
4440 (inf_child_fileio_readlink): New function.
4441 (inf_child_target): Install it.
4443 * remote.c (PACKET_vFile_readlink): New enum value.
4444 (remote_hostio_readlink): New function.
4445 (init_remote_ops): Install it.
4446 (_initialize_remote): Handle vFile:readlink packet type.
4448 2012-01-20 Pedro Alves <palves@redhat.com>
4449 Ulrich Weigand <ulrich.weigand@linaro.org>
4451 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
4452 * config.in, configure: Regenerate.
4454 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
4455 to_fileio_pread, to_fileio_close, to_fileio_unlink.
4456 (target_fileio_open): Add prototype.
4457 (target_fileio_pwrite): Likewise.
4458 (target_fileio_pread): Likewise.
4459 (target_fileio_close): Likewise.
4460 (target_fileio_unlink): Likewise.
4461 (target_fileio_read_alloc): Likewise.
4462 (target_fileio_read_stralloc): Likewise.
4464 * target.c: Include "gdb/fileio.h".
4465 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
4466 (default_fileio_target): New function.
4467 (target_fileio_open): Likewise.
4468 (target_fileio_pwrite): Likewise.
4469 (target_fileio_pread): Likewise.
4470 (target_fileio_close): Likewise.
4471 (target_fileio_unlink): Likewise.
4472 (target_fileio_close_cleanup): Likewise.
4473 (target_fileio_read_alloc_1): Likewise.
4474 (target_fileio_read_alloc): Likewise.
4475 (target_fileio_read_stralloc): Likewise.
4477 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
4478 <fcntl.h>, and <unistd.h>.
4479 (inf_child_fileio_open_flags_to_host): New function.
4480 (inf_child_errno_to_fileio_error): Likewise.
4481 (inf_child_fileio_open): Likewise.
4482 (inf_child_fileio_pwrite): Likewise.
4483 (inf_child_fileio_pread): Likewise.
4484 (inf_child_fileio_close): Likewise.
4485 (inf_child_fileio_unlink): Likewise.
4486 (inf_child_target): Install to_fileio routines.
4488 * remote.c (init_remote_ops): Install to_fileio routines.
4490 2012-01-20 Pedro Alves <palves@redhat.com>
4491 Ulrich Weigand <ulrich.weigand@linaro.org>
4493 * remote.c (remote_multi_process_p): Only check for multi-process
4494 protocol feature, do not check for extended protocol.
4495 (remote_supports_multi_process): Check for extended protocol here.
4496 (set_general_process): Likewise.
4497 (extended_remote_kill): Likewise.
4498 (remote_pid_to_str): Likewise.
4499 (remote_query_supported): Always query multiprocess mode.
4501 2012-01-20 Pedro Alves <palves@redhat.com>
4502 Ulrich Weigand <ulrich.weigand@linaro.org>
4504 * inferior.h (struct inferior): Add fake_pid_p.
4505 * inferior.c (exit_inferior_1): Clear fake_pid_p.
4506 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
4507 magic_null_ptid since the remote side doesn't provide a real PID.
4509 2012-01-19 Tom Tromey <tromey@redhat.com>
4511 * NEWS: Combine the two Python sections.
4513 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4515 * target.h (target_close): Update comment on the target's unpush state.
4517 2012-01-19 Pedro Alves <palves@redhat.com>
4519 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
4520 linux_nat_async directly instead of going through the target
4522 * target.c (unpush_target): Close target after unpushing it, not
4525 2012-01-19 Gary Benson <gbenson@redhat.com>
4527 * mdebugread.c (sort_blocks): Replace integer constants with ones
4528 derived from FIRST_LOCAL_BLOCK.
4530 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
4531 Jan Kratochvil <jan.kratochvil@redhat.com>
4534 * symfile.c (find_separate_debug_file): New function.
4535 (terminate_after_last_dir_separator): Likewise.
4536 (find_separate_debug_file_by_debuglink): Also try realpath.
4537 * configure.ac (AC_CHECK_FUNCS): Add lstat.
4538 * configure: Regenerate.
4539 * config.in: Regenerate.
4541 2012-01-18 Doug Evans <dje@google.com>
4543 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
4544 (main.o): Remove rule.
4545 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
4546 (--with-sysroot): Rewrite.
4547 * configure: Regenerate.
4548 * config.in: Regenerate.
4550 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
4552 * parse.c (initialize_expout): New function.
4553 (reallocate_expout): Likewise.
4554 (parse_exp_in_context): Use `initialize_expout' and
4555 `reallocate_expout' when appropriate.
4557 2012-01-18 Pedro Alves <palves@redhat.com>
4559 * record.c (struct record_breakpoint, record_breakpoint_p)
4560 (record_breakpoints): New.
4561 (record_insert_breakpoint, record_remove_breakpoint): Manage
4562 record breakpoints list. Only remove breakpoints from the
4563 inferior if they had been inserted there in the first place.
4565 2012-01-17 Doug Evans <dje@google.com>
4567 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
4568 if we know we don't have a file name to look for.
4570 2012-01-17 Pedro Alves <palves@redhat.com>
4572 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
4573 the frame's stop reason is UNWIND_UNAVAILABLE.
4575 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4577 Fix compilation error.
4578 * m2-exp.y (yyerror): Use ANSI C prototype.
4580 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4582 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
4583 (growbuf_by_size): Likewise.
4584 (yyerror): Likewise.
4585 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
4586 (modblock): Remove variable (was #if 0'ed).
4587 (parse_number): Convert prototype from K&R to ANSI C.
4588 (yyerror): Likewise.
4589 * objc-exp.y (parse_number): Likewise.
4590 (yyerror): Likewise.
4591 (yylex): Remove #if 0'ed code.
4592 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
4593 (yyerror): Likewise.
4595 2012-01-16 Tom Tromey <tromey@redhat.com>
4598 * symtab.h (compare_filenames_for_search): Declare.
4599 * symtab.c (compare_filenames_for_search): New function.
4600 (iterate_over_some_symtabs): Use it.
4601 * symfile.h (struct quick_symbol_functions)
4602 <map_symtabs_matching_filename>: Change spec.
4603 * psymtab.c (partial_map_symtabs_matching_filename): Use
4604 compare_filenames_for_search. Update for new spec.
4605 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
4606 compare_filenames_for_search. Update for new spec.
4607 * breakpoint.c (clear_command): Use compare_filenames_for_search.
4609 2012-01-16 Tom Tromey <tromey@redhat.com>
4612 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
4613 (struct main_type) <flag_flag_enum>: New field.
4614 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
4615 * NEWS: Add entries.
4616 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
4618 * python/lib/gdb/printing.py (_EnumInstance): New class.
4619 (FlagEnumerationPrinter): Likewise.
4621 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4623 * breakpoint.c (create_sals_from_address_default): New function.
4624 (create_breakpoints_sal_default): Likewise.
4625 (decode_linespec_default): Likewise.
4626 (is_marker_spec): Removed.
4627 (strace_marker_p): New function.
4628 (init_breakpoint_sal): Using `strace_marker_p' instead of
4630 (create_breakpoint): Call method `create_sals_from_address' from
4631 breakpoint_ops, replacing code that created SALs conditionally
4632 on the type of the breakpoint. Call method `create_breakpoints_sal',
4633 replacing code that created breakpoints conditionally on the type
4635 (base_breakpoint_create_sals_from_address): New function.
4636 (base_breakpoint_create_breakpoints_sal): Likewise.
4637 (base_breakpoint_decode_linespec): Likewise.
4638 (base_breakpoint_ops): Add methods
4639 `base_breakpoint_create_sals_from_address',
4640 `base_breakpoint_create_breakpoints_sal' and
4641 `base_breakpoint_decode_linespec'.
4642 (bkpt_create_sals_from_address): New function.
4643 (bkpt_create_breakpoints_sal): Likewise.
4644 (bkpt_decode_linespec): Likewise.
4645 (tracepoint_create_sals_from_address): Likewise.
4646 (tracepoint_create_breakpoints_sal): Likewise.
4647 (tracepoint_decode_linespec): Likewise.
4648 (strace_marker_create_sals_from_address): Likewise.
4649 (strace_marker_create_breakpoints_sal): Likewise.
4650 (strace_marker_decode_linespec): Likewise.
4651 (strace_marker_breakpoint_ops): New variable.
4652 (addr_string_to_sals): Remove `marker_spec'. Call method
4653 `decode_linespec' from breakpoint_ops, replacing code that decoded
4654 an address string into a SAL. Use `strace_marker_p' instead of
4656 (strace_command): Decide whether we are dealing with a static
4657 tracepoint with marker or not. Use the appropriate breakpoint_ops.
4658 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
4659 * breakpoint.h (linespec_result, linespec_sals): New forward
4661 (breakpoint_ops) <create_sals_from_address>,
4662 <create_breakpoints_sal>, <decode_linespec>: New methods.
4664 2012-01-14 Doug Evans <dje@google.com>
4666 * NEWS: Update text for "maint set python print-stack".
4667 It is deprecated in gdb 7.4 and deleted in 7.5.
4669 2012-01-13 Eli Zaretskii <eliz@gnu.org>
4671 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
4674 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4676 * configure: Regenerate.
4677 * config.in: Regenerate.
4679 2012-01-12 Keith Seitz <keiths@redhat.com>
4682 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
4683 (ANONYMOUS_UNION_NAME): Define.
4684 (is_path_expr_parent): New function.
4685 (get_path_expr_parent): New function.
4686 (is_anonymous_child): New function.
4687 (create_child_with_value): If the child is anonymous and without
4688 a name, assign an object name to it.
4689 (c_describe_child): Use get_path_expr_parent to determine
4690 the parent expression.
4691 If there field represents an anonymous struct or union and
4692 has no name, set an appropriate display name and expression.
4693 (cplus_describe_child): Likewise.
4695 2012-01-12 Pedro Alves <palves@redhat.com>
4697 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
4698 available when %ebp is found to be zero (outermost).
4700 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
4702 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
4703 an internal gdb_static_assert.
4704 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
4706 2012-01-11 Tom Tromey <tromey@redhat.com>
4709 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
4710 catch" and "catch throw".
4712 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
4714 * blockframe.c (block_innermost_frame): Start search from selected
4715 frame, if present, or otherwise the current frame.
4717 * c-exp.y (variable): Update innermost_block for
4718 'block COLONCOLON NAME' clause.
4719 * m2-exp.y (variable): Ditto.
4720 * objc-exp.y (variable): Ditto.
4722 2012-01-10 Tom Tromey <tromey@redhat.com>
4725 * python/python.c (finish_python_initialization): Set sys.argv.
4727 2012-01-10 Doug Evans <dje@google.com>
4729 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
4730 "want_line_info". All callers updated.
4731 (dwarf_decode_lines_1): New function.
4732 (handle_DW_AT_stmt_list): Add function comment.
4733 New arg "want_line_info". All callers updated.
4734 (read_file_scope,read_type_unit_scope): Move comment from
4735 handle_DW_AT_stmt_list to here.
4737 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4739 Fix regression after libiberty/ update for GCC PR 6057 and others.
4740 * c-exp.y (operator) <OPERATOR DELETE>
4741 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
4742 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
4743 (make_builtin_type, make_name): New variable i, add gdb_assert.
4744 (operator) <OPERATOR NEW>: Update ARGS to 3.
4745 (operator) <OPERATOR DELETE>: Add trailing space.
4746 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
4747 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
4748 * cp-support.c (cp_canonicalize_string): Check NULL from
4749 cp_comp_to_string, call warning and return.
4751 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4753 Fix duplicate .o files after omitting libbfd.a.
4754 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
4755 (SFILES): Add corelow.c.
4756 (COMMON_OBS): Add corelow.o.
4757 (ALLDEPFILES): Remove corelow.c.
4758 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
4759 * config/alpha/alpha-osf3.mh: Likewise.
4760 * config/alpha/fbsd.mh: Likewise.
4761 * config/arm/nbsdaout.mh: Likewise.
4762 * config/arm/nbsdelf.mh: Likewise.
4763 * config/i386/i386gnu.mh: Likewise.
4764 * config/ia64/hpux.mh: Likewise.
4765 * config/ia64/linux.mh: Likewise.
4766 * config/m32r/linux.mh: Likewise.
4767 * config/m68k/linux.mh: Likewise.
4768 * config/mips/irix5.mh: Likewise.
4769 * config/mips/irix6.mh: Likewise.
4770 * config/pa/hpux.mh: Likewise.
4771 * config/pa/linux.mh: Likewise.
4772 * config/powerpc/aix.mh: Likewise.
4773 * config/sparc/linux.mh: Likewise.
4774 * config/sparc/linux64.mh: Likewise.
4775 * config/sparc/sol2.mh: Likewise.
4776 * config/vax/vax.mh: Likewise.
4777 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
4778 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
4779 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
4780 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
4781 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
4782 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
4783 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
4784 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
4785 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
4786 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
4787 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
4788 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
4789 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
4790 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
4791 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
4792 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
4793 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
4794 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
4795 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
4796 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
4797 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
4798 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
4799 corelow.o from gdb_target_obs.
4800 * corefile.c (core_target): Update the comment on NULL value.
4801 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
4802 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
4803 MATCHES. Drop YUMMY set on NULL.
4804 (core_close): Do not call exit_inferior_silent on zero PID. Do not
4805 reclaim CORE_DATA if it is already NULL.
4807 2012-01-09 Doug Evans <dje@google.com>
4809 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
4810 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
4812 2012-01-09 Keith Seitz <keiths@redhat.com>
4814 * breakpoint.c (wrapper.h): Don't include.
4816 2012-01-09 Keith Seitz <keiths@redhat.com>
4818 * Makefile.in (SFILES): Remove wrapper.c.
4819 (HFILES_NO_SRCDIR): Remove wrapper.h.
4820 (COMMON_OBS): Remove wrapper.o.
4821 * cli/cli-interp.c: Don't inlude wrapper.h.
4822 * corelow.c: Likewise.
4823 (core_open): Replace gdb_target_find_new_threads with
4824 TRY_CATCH around target_find_new_threads.
4825 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
4826 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
4827 * varobj.c (varobj_create): Likewise for parse_exp_1 and
4828 evaluate_expression.
4829 (varobj_set_value): Likewise for evaluate_expression and
4831 (install_new_variable): Likewise for value_fetch_lazy.
4832 (adjust_value_for_child_access): Likewise for value_ind.
4833 (c_describe_child): Likewise for value_subscript and
4835 (c_value_of_root): Likewise for evaluate_expression.
4836 * wrapper.c: Remove.
4837 * wrapper.h: Remove.
4839 2012-01-09 Doug Evans <dje@google.com>
4841 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
4842 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
4843 "abfd" args with "section". All callers updated.
4844 Error checking code moved ...
4845 (error_check_comp_unit_head): ... here. New function.
4846 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
4847 Delete arg "abfd". New arg "type_offset". All callers updated.
4848 (create_debug_types_hash_table): Simplify by using
4849 read_and_check_type_unit_head.
4851 * parser-defs.h (namecopy): Delete.
4852 * parse.c (namecopy, namecopy_size): Move into copy_name.
4854 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4856 Partially fix duplicate .o files after omitting libbfd.a.
4857 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
4858 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4859 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
4860 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4861 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
4862 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
4863 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4865 2012-01-09 Pedro Alves <palves@redhat.com>
4867 * MAINTAINERS: Update my email address.
4869 2012-01-08 Doug Evans <dje@google.com>
4871 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
4872 n_type_units. Rename type_comp_units to all_type_units.
4874 (add_signatured_type_cu_to_table): Renamed from
4875 add_signatured_type_cu_to_list. All callers updated.
4877 * gdbtypes.h (struct cplus_struct_type): Delete member
4878 nfn_fields_total. All uses removed.
4880 2012-01-06 Doug Evans <dje@google.com>
4882 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
4884 (dwarf2_find_comp_unit): Delete.
4885 (process_psymtab_comp_unit): Make result "void".
4886 Delete args buffer, info_ptr, buffer_size, and replace with
4887 "section". All callers updated.
4888 (dwarf2_build_psymtabs_hard): Simplify.
4890 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
4891 Thiago Jung Bauermann <bauerman@br.ibm.com>
4893 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
4894 before `struct gdb_exception'.
4895 * breakpoint.c (update_global_location_list_nothrow)
4896 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
4897 * cp-abi.c (value_rtti_type): Likewise.
4898 * cp-support.c (cp_validate_operator): Likewise.
4899 * infrun.c (insert_exception_resume_breakpoint)
4900 (check_exception_resume, keep_going): Likewise.
4901 * mi-interp.c (mi_breakpoint_created)
4902 (mi_breakpoint_modified): Likewise.
4903 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
4904 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
4905 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
4907 2012-01-05 Doug Evans <dje@google.com>
4909 * dwarf2read.c (statement_prologue): Delete, unused.
4911 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
4912 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
4914 * dwarf2read.c (comp_unit_header): Delete, unused.
4916 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
4918 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
4919 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
4921 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
4923 * infrun.c (normal_stop): Don't skip calling the normal_stop
4924 observers if the thread was doing a multi-step, but stopped for
4925 some reason other than stepping.
4927 2012-01-05 Pedro Alves <alves.ped@gmail.com>
4929 * cli/cli-decode.h: Add comments.
4930 (CMD_LIST_AMBIGUOUS): Moved to command.h
4931 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4932 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
4933 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
4934 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
4935 (add_com, add_com_alias, add_info, add_info_alias)
4936 (complete_on_cmdlist, complete_on_enum, help_list): Remove
4938 * command.h: Add and adjust comments.
4939 (CMD_LIST_AMBIGUOUS): Moved here.
4940 (help_cmd, help_cmd_list): Delete declarations.
4942 2012-01-04 Doug Evans <dje@google.com>
4944 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
4945 All callers updated.
4946 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
4947 Replace all arguments with "per_cu". All callers updated.
4949 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
4951 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
4952 New arg "per_cu". All callers updated.
4954 Delete #if 0'd out code.
4955 * language.c (binop_result_type): Delete.
4956 (simple_type, ordered_type, same_type, integral_type): Delete.
4957 (numeric_type, character_type, string_type, boolean_type): Delete.
4958 (float_type, structured_type): Delete.
4959 * language.h: Update.
4961 2012-01-04 Tom Tromey <tromey@redhat.com>
4963 * python/py-value.c (valpy_binop): Initialize 'res_val'.
4965 2012-01-04 Joel Brobecker <brobecker@adacore.com>
4967 * corefile.c (close_exec_file): Delete.
4968 (reopen_exec_file): Remove commented out code that seems related
4969 to close_exec_file, which is being deleted here.
4970 * inferior.h (close_exec_file): Delete.
4971 * fork-child.c (fork_inferior): Remove call to fork_inferior.
4973 2012-01-04 Joel Brobecker <brobecker@adacore.com>
4975 * ada-lang.c: #include "cli/cli-utils.h".
4976 (get_selections): Use skip_spaces.
4977 (ada_get_next_arg): Use skip_spaces and skip_to_space.
4978 (catch_ada_exception_command_split): Use skip_spaces.
4979 (ada_decode_assert_location): Likewise.
4981 2012-01-04 Joel Brobecker <brobecker@adacore.com>
4983 * linespec.c (decode_line_internal): Check for C++ or Java
4984 compound constructs only if the current language is C, C++
4987 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4990 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4991 Joel Brobecker <brobecker@adacore.com>
4992 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
4993 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
4995 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
4996 fall through into AT_ENTRY_POINT.
4997 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
4999 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5000 PPC_INSN_SIZE skip to 3 times.
5002 2012-01-04 Joel Brobecker <brobecker@adacore.com>
5004 * linespec.c (add_minsym): Preserve function descriptors.
5006 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5008 * breakpoint.c (all_locations_are_pending): Consider locations
5009 in program spaces executing during startup pending as well.
5011 2012-01-04 Joel Brobecker <brobecker@adacore.com>
5013 Copyright year update in most files of the GDB Project.
5015 2012-01-04 Joel Brobecker <brobecker@adacore.com>
5017 * copyright.sh: Delete.
5018 * copyright.py: Rewrite.
5020 2012-01-04 Joel Brobecker <brobecker@adacore.com>
5022 * gnulib/extra/update-copyright: New file, imported from gnulib.
5024 2012-01-04 Joel Brobecker <brobecker@adacore.com>
5026 * README (Copyright and License Notices): New section.
5028 2012-01-03 Tom Tromey <tromey@redhat.com>
5031 * python/py-value.c (valpy_dereference, valpy_get_address
5032 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
5033 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
5034 (valpy_absolute, valpy_richcompare): Free intermediate values.
5036 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5038 * ada-lang.c: Reformat the copyright notice.
5040 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5042 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
5043 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
5044 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
5045 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
5046 Revert this part of:
5047 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5048 Build gdb directly from *.o files not using libgdb.a.
5049 * Makefile.in (COMMON_OBS): Remove solib-target.o.
5051 2012-01-02 Joel Brobecker <brobecker@adacore.com>
5053 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
5054 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
5055 Reformat the copyright header.
5057 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5059 Revert this part of:
5060 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5061 Remove the gdbtui binary.
5062 * gdb.c (main): Remove args.interpreter_p initialization.
5063 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5064 * main.h (struct captured_main_args): Remove interpreter_p.
5066 2012-01-02 Joel Brobecker <brobecker@adacore.com>
5068 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
5070 2012-01-02 Joel Brobecker <brobecker@adacore.com>
5072 * top.c (print_gdb_version): Update copyright year.
5074 2012-01-02 Yao Qi <yao@codesourcery.com>
5076 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
5078 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5079 Joel Brobecker <brobecker@adacore.com>
5081 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5082 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5084 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5085 fall through into AT_ENTRY_POINT.
5086 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
5088 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5089 PPC_INSN_SIZE skip to 3 times.
5091 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5093 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
5095 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
5097 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5099 Build gdb directly from *.o files not using libgdb.a.
5100 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
5101 (COMMON_OBS): Remove solib-target.o.
5102 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
5103 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
5104 (LIBGDB_OBS, libgdb.a): Move it above.
5105 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
5106 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
5107 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
5108 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
5109 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
5110 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
5111 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
5112 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
5113 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
5114 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
5115 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
5116 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
5117 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
5118 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
5119 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5120 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
5121 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
5122 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5123 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
5124 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
5125 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
5126 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
5127 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
5128 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
5129 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
5130 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
5131 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
5133 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5135 Remove the gdbtui binary.
5136 * .gitignore (/gdbtui): Remove.
5137 * Makefile.in (TUI): Remove.
5138 (SUBDIR_TUI_OBS): Remove tui-main.o.
5139 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
5140 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
5141 (tui-main.o): Remove.
5142 (all_object_files): Remove tui-main.o.
5143 * NEWS: New note for the gdbtui removal.
5144 * configure: Rebuilt.
5145 * configure.ac: No longer add all-tui, clean-tui, install-tui and
5146 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
5147 CONFIG_UNINSTALL respectively.
5148 * gdb.c (main): Remove args.interpreter_p initialization.
5149 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5150 * main.h (struct captured_main_args): Remove interpreter_p.
5151 * tui/tui-main.c: Remove.
5153 2012-01-01 Doug Evans <dje@google.com>
5155 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
5156 (dwarf2_physname, read_import_statement): Ditto.
5157 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
5158 (process_structure_scope read_subroutine_type): Ditto.
5159 (read_typedef, load_partial_dies, read_partial_die): Ditto.
5160 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
5161 (dwarf2_fetch_die_location_block): Ditto.
5162 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
5164 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
5165 All callers updated.
5166 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
5167 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
5168 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
5170 * dwarf2read.c (load_cu): Move assert to more useful location.
5172 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
5173 All callers updated.
5175 * dwarf2read.c (dwarf2_per_objfile): Add comment.
5176 (dwarf2_elf_names): Minor reformat.
5177 (dwarf2_per_cu_data): Tweak comment.
5178 (dwarf2_read_section): Fix comment.
5179 (create_all_comp_units): Fix comment.
5180 (load_full_comp_unit): Fix comment.
5181 (process_full_comp_unit): Fix comment.
5182 (read_signatured_type): Fix comment.
5184 For older changes see ChangeLog-2011.
5190 version-control: never