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