gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2
3 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
4
5 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6
7 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
8 and decrement.
9
10 2012-07-26 Tom Tromey <tromey@redhat.com>
11
12 * copying.c: Rebuild.
13 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
14 'no_class'.
15
16 2012-07-26 Tom Tromey <tromey@redhat.com>
17
18 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
19 immediate_quit.
20 (print_objfile_statistics): Likewise.
21 (maintenance_print_symbols): Likewise.
22 (maintenance_print_msymbols): Likewise.
23 (maintenance_print_objfiles): Likewise.
24 * psymtab.c (print_partial_symbols): Call QUIT.
25 (maintenance_print_psymbols): Likewise. Don't modify
26 immediate_quit.
27 * copying.c (show_copying_command): Don't modify immediate_quit.
28 (show_warranty_command): Likewise.
29 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
30
31 2012-07-26 Keith Seitz <keiths@redhat.com>
32
33 * linespec.c (linespec_lexer_lex_number): The input
34 is also a valid number if the next character is a comma
35 or colon.
36
37 2012-07-26 Joel Brobecker <brobecker@adacore.com>
38
39 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
40 configure options.
41
42 2012-07-26 Tristan Gingold <gingold@adacore.com>
43
44 * machoread.c: Include gdb_bfd.h.
45
46 2012-07-26 Tristan Gingold <gingold@adacore.com>
47
48 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
49 offset.
50
51 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
52
53 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
54 SIZE to size_t.
55 (dwarf2_evaluate_loc_desc): Likewise.
56 (dwarf2_loc_desc_needs_frame): Likewise.
57 (locexpr_describe_location_1): Likewise.
58 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
59 size_t.
60 (struct dwarf2_loclist_baton): Likewise.
61 * dwarf2read.c (struct dwarf_block): Likewise.
62 (dump_die_shallow): Use pulongest to print dwarf_block.size.
63 (decode_locdesc): Expand SIZE and I to size_t.
64
65 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
66
67 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
68
69 2012-07-25 Joel Brobecker <brobecker@adacore.com>
70
71 * doublest.c (convert_doublest_to_floatformat): If the exponent
72 is too small, treat the value as zero. If the exponent is too
73 large, treat the value as infinity.
74
75 2012-07-25 Joel Brobecker <brobecker@adacore.com>
76
77 * configure.ac: Add --enable-lmcheck configure option.
78 * configure: Regenerate.
79
80 2012-07-25 Tom Tromey <tromey@redhat.com>
81
82 * NEWS: Mention maint info bfds.
83 * gdb_bfd.c (all_bfds): New global.
84 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
85 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
86 New functions.
87
88 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
89
90 * configure.tgt: Add v850*-*-rtems*.
91
92 2012-07-25 Tom Tromey <tromey@redhat.com>
93
94 * macrotab.c (macro_bcache_str): Remove cast.
95
96 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
97
98 * linespec.c (linespec_lexer_lex_number): Update comments,
99 change the return and add check to make sure the input is
100 the decimal numbers.
101 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
102 false, call linespec_lexer_lex_string.
103
104 2012-07-24 Tom Tromey <tromey@redhat.com>
105
106 * symfile.c (symbol_file_add): Don't open BFD twice.
107
108 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
109
110 * breakpoint.c (create_breakpoint): Store condition for pending
111 breakpoints.
112
113 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
114
115 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
116 (m68k_return_value): Handle complex types like structures.
117 (m68k_svr4_return_value): Likewise.
118
119 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
120
121 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
122 parameters to bfd_get_section_name.
123
124 2012-07-24 Yao Qi <yao@codesourcery.com>
125
126 * cli/cli-setshow.c: Handle case 'var_uinteger'
127 and 'var_zuninteger' together. Handle case 'var_integer' and
128 'var_zinteger' together.
129
130 2012-07-23 Keith Seitz <keiths@redhat.com>
131
132 * linespec.c (convert_linespec_to_sal): Don't add
133 any symbols to the result vector if symbol_to_sal
134 returns zero.
135
136 2012-07-23 Keith Seitz <keiths@redhat.com>
137
138 * linespec.c (decode_objc): Record the function name
139 in the linespec.
140
141 2012-07-23 Tom Tromey <tromey@redhat.com>
142
143 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
144 counting.
145 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
146 (map_vmap): Acquire a reference to the BFD.
147
148 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
149
150 * p-valprint.c (pascal_object_print_value): Replace potentially
151 unsafe alloca with xmalloc/xfree.
152 * valops.c (search_struct_method): Likewise.
153
154 2012-07-23 Tom Tromey <tromey@redhat.com>
155
156 * solib-svr4.c (enable_break): Update.
157 * bfd-target.h (target_bfd_reopen): Update documentation.
158
159 2012-07-23 Tom Tromey <tromey@redhat.com>
160
161 * symfile.c (separate_debug_file_exists): Update.
162 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
163 (reread_symbols): Update.
164 * elfread.c (build_id_verify): Update.
165 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
166 bfd_open_maybe_remote.
167
168 2012-07-23 Tom Tromey <tromey@redhat.com>
169
170 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
171
172 2012-07-23 Tom Tromey <tromey@redhat.com>
173
174 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
175 and 'abfd'.
176 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
177 and 'abfd'.
178 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
179 * machoread.c (macho_add_oso_symfile): Make a cleanup for
180 'abfd'.
181 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
182 * objfiles.c (allocate_objfile): Acquire a new reference.
183 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
184 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
185 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
186 a cleanup for 'nbfd'.
187 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
188 for 'nbfd'.
189 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
190 make a cleanup for 'abfd'.
191 (symbol_file_add): Make a BFD cleanup.
192
193 2012-07-23 Tom Tromey <tromey@redhat.com>
194
195 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
196 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
197 * corelow.c (core_open): Use gdb_bfd_fopen.
198 * dsrec.c (load_srec): Use gdb_bfd_openr.
199 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
200 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
201 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
202 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
203 (gdb_bfd_fdopenr): New functions.
204 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
205 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
206 (gdb_bfd_fdopenr): Declare.
207 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
208 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
209 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
210 gdb_bfd_openr_next_archived_file.
211 (macho_check_dsym): Use gdb_bfd_openr.
212 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
213 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
214 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
215 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
216 gdb_bfd_openr.
217 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
218 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
219 gdb_bfd_openr_next_archived_file.
220 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
221 Use gdb_bfd_openr.
222 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
223 gdb_bfd_openr.
224 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
225 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
226 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
227 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
228 (symfile_bfd_open): Use gdb_bfd_fopen.
229 (generic_load): Use gdb_bfd_openr.
230 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
231
232 2012-07-23 Tom Tromey <tromey@redhat.com>
233
234 * bfd-target.c (target_bfd_reopen): Update.
235 * cli/cli-dump.c (bfd_openr_with_cleanup)
236 (bfd_openw_with_cleanup): Update.
237 * corelow.c (core_open): Update.
238 * dsrec.c (load_srec): Update.
239 * exec.c (exec_file_attach): Update.
240 * gcore.c (create_gcore_bfd): Update.
241 * gdb_bfd.c (gdb_bfd_ref): Return void.
242 (gdb_bfd_open): Update.
243 * gdb_bfd.h (gdb_bfd_ref): Return void.
244 Update comments.
245 * jit.c (jit_bfd_try_read_symtab): Update.
246 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
247 * machoread.c (macho_symfile_read_all_oso): Update.
248 (macho_check_dsym): Update.
249 * procfs.c (insert_dbx_link_bpt_in_file): Update.
250 * remote-m32r-sdi.c (m32r_load): Update.
251 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
252 * rs6000-nat.c (add_vmap): Update.
253 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
254 Update.
255 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
256 * solib-spu.c (spu_bfd_open): Update.
257 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
258 * spu-linux-nat.c (spu_bfd_open): Update.
259 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
260 (generic_load): Update.
261 * windows-nat.c (windows_make_so): Update.
262
263 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
264
265 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
266
267 2012-07-20 Jeff Kenton <jkenton@tilera.com>
268
269 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
270 SIGTRAMP_FRAME unwinding.
271
272 2012-07-20 Doug Evans <dje@google.com>
273
274 * NEWS: Document new options "set/show use-deprecated-index-sections",
275 and delete reference to --use-deprecated-index-sections.
276 * symfile.h (use_deprecated_index_sections): Delete.
277 * dwarf2read.c (use_deprecated_index_sections): Make static.
278 (read_index_from_section): Update wording of how to load
279 deprecated index sections.
280 (_initialize_dwarf2_read): New options
281 "set/show use-deprecated-index-sections".
282 * main.c (captured_main): Delete --use-deprecated-index-sections.
283
284 2012-07-20 Pedro Alves <palves@redhat.com>
285
286 PR threads/11692
287 PR gdb/12203
288
289 * infrun.c (handle_inferior_event) <new thread>: Don't special
290 case minus_one_ptid.
291 <TARGET_WAITKIND_SPURIOUS>: Ditto.
292 * linux-thread-db.c (thread_get_info_callback): Don't return early
293 if the thread is zombie.
294 (thread_from_lwp): Change return type to void. Rewrite stale
295 comment.
296 (attach_thread): Don't return early if the thread is zombie,
297 instead set its "dying" flag.
298 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
299 (find_new_threads_callback): Don't return early if the thread is
300 zombie.
301
302 2012-07-20 Pedro Alves <palves@redhat.com>
303
304 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
305 * target.c (target_wait): Likewise.
306 (str_comma_list_concat_elem, do_option, target_options_to_string):
307 New functions.
308 * target.h (target_options_to_string): Declare.
309
310 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
311 Tom Tromey <tromey@redhat.com>
312
313 * dwarf2read.c (dwarf_decode_macros)
314 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
315 DW_MACRO_GNU_transparent_include_alt>: New cases.
316 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
317 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
318
319 2012-07-20 Tom Tromey <tromey@redhat.com>
320
321 * dwarf2read.c (try_open_dwo_file): Don't call
322 gdb_bfd_stash_filename.
323
324 2012-07-20 Pedro Alves <palves@redhat.com>
325
326 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
327 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
328 (i386_process_record): Tweak description comments.
329
330 2012-07-20 Pedro Alves <palves@redhat.com>
331
332 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
333 (i386_process_record): Use record_read_memory.
334 * record.c (record_read_memory): New function.
335 (record_arch_list_add_mem, record_exec_insn): Use
336 record_read_memory.
337 * record.h (record_read_memory): Declare.
338
339 2012-07-20 Yao Qi <yao@codesourcery.com>
340
341 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
342 NULL for xfree.
343
344 2012-07-19 Pedro Alves <palves@redhat.com>
345
346 * record.c (record_resume): Ask the target beneath to report all
347 signals.
348
349 2012-07-19 Doug Evans <dje@google.com>
350
351 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
352 there's no section at address zero.
353 (dwarf2_record_block_ranges): Ditto.
354
355 2012-07-19 Yao Qi <yao@codesourcery.com>
356
357 * command.h, remote.c: Fix a typo in comment.
358
359 2012-07-19 Tom Tromey <tromey@redhat.com>
360
361 PR exp/13206:
362 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
363 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
364 OP_DECLTYPE>: New cases.
365 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
366 (type_exp): Add new productions.
367 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
368 and decltype.
369 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
370 New case.
371 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
372 OP_DECLTYPE>: New case.
373 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
374 New case.
375 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
376 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
377
378 2012-07-19 Tom Tromey <tromey@redhat.com>
379
380 * c-exp.y (enum token_flags): New.
381 (struct token) <cxx_only>: Remove.
382 <flags>: New field.
383 (tokentab3, tokentab2, ident_tokens): Update.
384 (lex_one_token): Update. Handle FLAG_SHADOW.
385
386 2012-07-19 Tom Tromey <tromey@redhat.com>
387
388 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
389 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
390 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
391 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
392 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
393 type_exp production where appropriate.
394 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
395 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
396 <UNOP_MEMVAL_TYPE>: New case.
397 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
398 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
399 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
400 <UNOP_MEMVAL_TYPE>: New case.
401 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
402 UNOP_REINTERPRET_CAST>: Update.
403 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
404 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
405 UNOP_REINTERPRET_CAST>: Update.
406 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
407 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
408 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
409 constants.
410
411 2012-07-19 Yao Qi <yao@codesourcery.com>
412 Jan Kratochvil <jan.kratochvil@redhat.com>
413
414 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
415 and case 'var_optional_filename' together.
416 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
417 instead of add_setshow_optional_filename_cmd for setshow command
418 'args'. Set completer for 'set args'.
419
420 2012-07-18 Doug Evans <dje@google.com>
421
422 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
423 * common/gdb_vecs.c: New file, contents from utils.c.
424 * common/host-defs.h: New file, contents from defs.h.
425 * utils.h: New file, contents from defs.h.
426 * defs.h: Move all declarations of objects defined in utils.c
427 to utils.h (except QUIT() and related).
428 #include "utils.h", "host-defs.h".
429 * probe.h (probe_p): Move here from gdb_vecs.h.
430 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
431 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
432 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
433 * Makefile.in (SFILES): Add common/gdb_vecs.c.
434 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
435 (COMMON_OBS): Add gdb_vecs.o.
436 (gdb_vecs.o): New rule.
437
438 2012-07-18 Keith Seitz <keiths@redhat.com>
439
440 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
441 parameter. If non-zero, use SYMNAME as the canonical name
442 for the SaL.
443 Update all callers.
444 (convert_linespec_to_sals): Use add_sal_to_sals for
445 expressions, too.
446 (decode_line_full): No need to "fill in missing canonical names"
447 anymore. Simply make cleanups for the allocated names.
448
449 2012-07-18 Keith Seitz <keiths@redhat.com>
450
451 * linespec.c (struct linespec): Constify expression,
452 source_filename, function_name, and label_name.
453 (symbol_not_found_error): Make all parameters const.
454 (linespec_parser_delete): No need to check for NULL
455 when using xfree. Cast const char * to char * for xfree.
456
457 2012-07-18 Keith Seitz <keiths@redhat.com>
458
459 * breakpoint.c (invalid_thread_id_error): New function.
460 (find_condition_and_thread): Use invalid_thread_id_error.
461 (watch_command_1): Likewise.
462
463 2012-07-18 Tom Tromey <tromey@redhat.com>
464
465 * cc-with-index.sh, cc-with-dwz.sh: Remove.
466 * contrib/cc-with-tweaks.sh: New file.
467
468 2012-07-18 Tom Tromey <tromey@redhat.com>
469
470 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
471 (locate_dwz_sections): Recognize .gdb_index.
472 (create_cus_from_index_list): New function.
473 (create_cus_from_index): Use it. Handle .dwz data.
474 (read_index_from_section): New function, extracted from
475 dwarf2_read_index.
476 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
477 if needed.
478
479 2012-07-18 Tom Tromey <tromey@redhat.com>
480
481 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
482 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
483 <is_dwz>: New field.
484 (struct dwz_file): New.
485 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
486 (locate_dwz_sections, dwarf2_get_dwz_file)
487 (get_abbrev_section_for_cu): New functions.
488 (error_check_comp_unit_head, read_and_check_comp_unit_head)
489 (read_and_check_type_unit_head): Add abbrev_section argument.
490 (create_debug_types_hash_table): Update.
491 (init_cutu_and_read_dies): Use proper abbrev section.
492 (init_cutu_and_read_dies_no_follow): Likewise.
493 (set_partial_user): Do nothing if PST==NULL.
494 (read_comp_units_from_section): New function.
495 (create_all_comp_units): Use it.
496 (scan_partial_symbols, partial_die_parent_scope): Update.
497 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
498 (process_imported_unit_die, read_partial_die): Handle .dwz files.
499 (find_partial_die): Add offset_in_dwz argument. Update.
500 (guess_partial_die_structure_name, fixup_partial_die): Update.
501 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
502 DW_FORM_GNU_strp_alt.
503 (read_indirect_string_from_dwz): New function.
504 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
505 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
506 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
507 (follow_die_offset): Add offset_in_dwz argument.
508 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
509 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
510 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
511 Handle new macro forms.
512 (dwarf_decode_macros): Update.
513 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
514 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
515 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
516 (create_debug_types_hash_table): Use correct abbrev section.
517 (get_debug_line_section): New function.
518 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
519 (process_full_comp_unit): Pass 'required' argument to
520 end_symtab_get_static_block.
521 * buildsym.h (end_symtab_get_static_block): Update.
522 * buildsym.c (end_symtab_get_static_block): Add 'required'
523 argument.
524 (end_symtab, end_expandable_symtab): Update.
525
526 2012-07-18 Tom Tromey <tromey@redhat.com>
527
528 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
529 (pagesize): Remove.
530 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
531 (zlib_decompress_section): Remove.
532 (dwarf2_read_section): Use gdb_bfd_map_section.
533 (munmap_section_buffer): Remove.
534 (free_dwo_file, dwarf2_per_objfile_free): Don't use
535 munmap_section_buffer.
536 * gdb_bfd.c: Include zlib.h, sys/mman.h.
537 (struct gdb_bfd_section_data): New.
538 (free_one_bfd_section): New function.
539 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
540 (get_section_descriptor, zlib_decompress_section)
541 (gdb_bfd_map_section): New functions.
542 * gdb_bfd.h (gdb_bfd_map_section): Declare.
543
544 2012-07-18 Tom Tromey <tromey@redhat.com>
545
546 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
547
548 2012-07-18 Tom Tromey <tromey@redhat.com>
549
550 * gdb_bfd.c (struct gdb_bfd_data): New.
551 (gdb_bfd_cache): New global.
552 (struct gdb_bfd_cache_search): New.
553 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
554 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
555 * gdb_bfd.h (gdb_bfd_open): Declare.
556
557 2012-07-18 Tom Tromey <tromey@redhat.com>
558
559 * utils.c (make_cleanup_bfd_unref): Rename from
560 make_cleanup_bfd_close.
561 * defs.h (make_cleanup_bfd_unref): Rename from
562 make_cleanup_bfd_close.
563 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
564 (bfd_openw_with_cleanup): Update.
565 * corelow.c (core_open): Update.
566 * dsrec.c (load_srec): Update.
567 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
568 * remote-m32r-sdi.c (m32r_load): Update.
569 * remote-mips.c (mips_load_srec): Update.
570 (pmon_load_fast): Update.
571 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
572 Update.
573 (darwin_bfd_open): Update.
574 * solib.c (solib_bfd_fopen): Update.
575 * symfile-mem.c (symbol_file_add_from_memory): Update.
576 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
577 (symfile_bfd_open): Update.
578 (generic_load): Update.
579
580 2012-07-18 Tom Tromey <tromey@redhat.com>
581
582 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
583 (pmon_load_fast): Likewise.
584 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
585 (m32r_upload_command): Likewise.
586 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
587 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
588 Use make_cleanup_bfd_close.
589
590 2012-07-18 Tom Tromey <tromey@redhat.com>
591
592 * symfile.c (symfile_bfd_open): Don't copy name. Call
593 gdb_bfd_stash_filename.
594 (load_command): Open the new BFD before freeing the old.
595 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
596 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
597 Call gdb_bfd_stash_filename.
598 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
599 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
600 gdb_bfd_stash_filename.
601 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
602 Free found_pathname.
603 * rs6000-nat.c (add_vmap): Don't copy filename. Call
604 gdb_bfd_stash_filename.
605 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
606 * machoread.c (macho_add_oso_symfile): Call
607 gdb_bfd_stash_filename.
608 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
609 gdb_bfd_stash_filename.
610 (macho_check_dsym): Don't copy filename. Call
611 gdb_bfd_stash_filename.
612 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
613 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
614 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
615 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
616 * exec.c (exec_close): Don't free the BFD's filename.
617 (exec_file_attach): Don't copy the filename. Call
618 gdb_bfd_stash_filename.
619 * corelow.c (core_close): Don't free the BFD's filename.
620 (core_open): Call gdb_bfd_stash_filename.
621 * corefile.c (reopen_exec_file): Remove #if 0 code.
622 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
623 pathname.
624 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
625
626 2012-07-18 Tom Tromey <tromey@redhat.com>
627
628 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
629 gdb_bfd_unref.
630 (free_dwo_file): Use gdb_bfd_unref.
631 * cli/cli-dump.c: Include gdb_bfd.h.
632 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
633 (bfd_openr_with_cleanup): Likewise.
634 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
635 gdb_bfd_unref.
636 * utils.c: Include gdb_bfd.h.
637 (do_bfd_close_cleanup): Use gdb_bfd_unref.
638 * symfile.c: Include gdb_bfd.h.
639 (separate_debug_file_exists): Use gdb_bfd_unref.
640 (bfd_open_maybe_remote): Use gdb_bfd_ref.
641 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
642 (generic_load): Use gdb_bfd_ref.
643 (reread_symbols): Use gdb_bfd_unref.
644 * symfile-mem.c: Include gdb_bfd.h.
645 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
646 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
647 * solib.c: Include gdb_bfd.h.
648 (solib_bfd_fopen): Use gdb_bfd_ref.
649 (solib_bfd_open): Use gdb_bfd_unref.
650 (free_so_symbols): Use gdb_bfd_unref.
651 (reload_shared_libraries_1): Use gdb_bfd_unref.
652 * solib-spu.c: Include gdb_bfd.h.
653 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
654 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
655 gdb_bfd_unref.
656 * solib-frv.c: Include gdb_bfd.h.
657 (enable_break2): Use gdb_bfd_unref.
658 * solib-dsbt.c: Include gdb_bfd.h.
659 (enable_break2): Use gdb_bfd_unref.
660 * solib-darwin.c: Include gdb_bfd.h.
661 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
662 gdb_bfd_unref.
663 (darwin_bfd_open): Use gdb_bfd_unref.
664 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
665 * remote-mips.c: Include gdb_bfd.h.
666 (mips_load_srec): Use gdb_bfd_ref.
667 (pmon_load_fast): Use gdb_bfd_ref.
668 * remote-m32r-sdi.c: Include gdb_bfd.h.
669 (m32r_load): Use gdb_bfd_ref.
670 * record.c: Include gdb_bfd.h.
671 (record_save_cleanups): Use gdb_bfd_unref.
672 (cmd_record_save): Use gdb_bfd_unref.
673 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
674 gdb_bfd_unref.
675 * objfiles.h (gdb_bfd_close_or_warn): Remove.
676 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
677 * objfiles.c: Include gdb_bfd.h.
678 (free_objfile): Use gdb_bfd_unref.
679 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
680 gdb_bfd.c.
681 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
682 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
683 (macho_check_dsym): Likewise.
684 * m32r-rom.c: Include gdb_bfd.h.
685 (m32r_load): Use gdb_bfd_ref.
686 (m32r_upload_command): Use gdb_bfd_ref.
687 * jit.c: Include gdb_bfd.h.
688 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
689 * gdb_bfd.h: New file.
690 * gdb_bfd.c: New file.
691 * gcore.c: Include gdb_bfd.h.
692 (create_gcore_bfd): Use gdb_bfd_ref.
693 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
694 (gcore_command): Use gdb_bfd_unref.
695 * exec.c: Include gdb_bfd.h.
696 (exec_close): Use gdb_bfd_unref.
697 (exec_close_1): Use gdb_bfd_unref.
698 (exec_file_attach): Use gdb_bfd_ref.
699 * elfread.c: Include gdb_bfd.h.
700 (build_id_verify): Use gdb_bfd_unref.
701 * dsrec.c: Include gdb_bfd.h.
702 (load_srec): Use gdb_bfd_ref.
703 * corelow.c: Include gdb_bfd.h.
704 (core_close): Use gdb_bfd_unref.
705 (core_open): Use gdb_bfd_ref.
706 * bfd-target.c: Include gdb_bfd.h.
707 (target_bfd_xclose): Use gdb_bfd_unref.
708 (target_bfd_reopen): Use gdb_bfd_ref.
709 * Makefile.in (SFILES): Add gdb_bfd.c.
710 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
711 (COMMON_OBS): Add gdb_bfd.o.
712
713 2012-07-18 Keith Seitz <keiths@redhat.com>
714
715 * breakpoint.c (find_condition_and_thread): Initialize
716 TASK and REST.
717 (create_breakpiont): find_condition_and_thread will now
718 initialize COND_STRING, THREAD, and REST (and TASK).
719 (addr_string_to_sals): Likewise.
720
721 2012-07-18 Pedro Alves <palves@redhat.com>
722
723 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
724 Pull the single step breakpoints out of the target.
725
726 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
727
728 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
729 * stap-probe.c (compile_probe_arg): Likewise.
730
731 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
732
733 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
734 (elf_compile_to_ax): Likewise.
735 * infrun.c (insert_exception_resume_from_probe): Likewise.
736 (check_exception_resume): Remove `objfile' variable.
737 * probe.c (find_probe_by_pc): Remove `objfile' argument.
738 (struct probe_and_objfile, probe_and_objfile_s): Delete.
739 (collect_probes): Adjust return value to `VEC (probe_p) *'.
740 (compare_entries): Rename to...
741 (compare_probes): ...this. Adjust function to work with
742 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
743 respectively.
744 (gen_ui_out_table_header_info): Adjust `probes' argument to be
745 `VEC (probe_p) *'.
746 (print_ui_out_info): Adjust argument to be `struct probe *'.
747 (info_probes_for_ops): Adjust internal computations to use
748 `VEC (probe_p) *'.
749 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
750 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
751 gen_info_probes_table_values>: Remove `objfile' argument.
752 (struct probe) <objfile>: New field.
753 (find_probe_by_pc): Remove `objfile' argument.
754 * stap-probe.c (stap_parse_probe_arguments): Likewise.
755 (stap_get_probe_argument_count): Likewise.
756 (stap_get_arg): Likewise.
757 (stap_evaluate_probe_argument): Likewise.
758 (stap_compile_to_ax): Likewise.
759 (compile_probe_arg): Refactor not to pass `objfile' anymore.
760 (handle_stap_probe): Fill `objfile' field from `struct probe'.
761 (stap_gen_info_probes_table_header): Remove `objfile' argument.
762 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
763 sym_compile_to_ax>: Likewise.
764
765 2012-07-18 Terry Guo <terry.guo@arm.com>
766
767 PR 14329
768 * defs.h (GDB_MI_MSG_WIDTH): New.
769 * ser_base (ser_base_read_error_fd): New function.
770 (do_ser_base_readchar): Poll error file descriptor as well as
771 standard output.
772 (generic_readchar): Refactor error handling.
773
774 2012-07-18 Joel Brobecker <brobecker@adacore.com>
775
776 * NEWS: Create a new section for the next release branch.
777 Rename the section of the current branch, now that it has
778 been cut.
779
780 2012-07-18 Joel Brobecker <brobecker@adacore.com>
781
782 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
783 * version.in: Bump version to 7.5.50.20120718-cvs.
784
785 2012-07-17 Keith Seitz <keiths@redhat.com>
786
787 * linespec.c (linespec_parse_line_offset): Make parameter
788 const.
789
790 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
791
792 PR 11914
793 * f-valprint.c (info_common_command): New variable frame_id.
794 Reinitialize FI form FRAME_ID after each print_variable_and_value.
795 * printcmd.c (print_variable_and_value): Extend function comment.
796 Add comment for invalidated FRAME.
797 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
798 FI form FRAME_ID after each print_frame_local_vars.
799 (struct print_variable_and_value_data): Change frame to frame_id.
800 (do_print_variable_and_value): New variable frame, initialize it from
801 p->frame_id. Add comment for invalidated FRAME.
802 (print_frame_local_vars, print_frame_arg_vars): New function comment.
803 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
804 for invalidated FRAME.
805
806 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
807 Pedro Alves <palves@redhat.com>
808
809 * linux-nat.c (linux_nat_detach): Don't unregister from the event
810 loop.
811
812 2012-07-16 Tom Tromey <tromey@redhat.com>
813
814 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
815
816 2012-07-15 Doug Evans <dje@google.com>
817
818 * dwarf2read.c (stmt_list_hash): New struct.
819 (type_unit_group): Embed "per_cu" member, remove pointer.
820 New union member "t", move member "tus" into it, all uses updated.
821 New member "hash", replaces member "line_offset, all uses updated.
822 (quick_file_names): Replace member "offset" with "hash", all uses
823 updated.
824 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
825 (hash_file_name_entry, eq_file_name_entry): Call them.
826 (hash_type_unit_group, eq_type_unit_group): Ditto.
827 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
828 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
829 (dw2_get_file_names): Update.
830 (create_type_unit_group): Replace "per_cu" arg with "cu".
831 All callers updated. Fix "quick" (.gdb_index) handling.
832 (get_type_unit_group): Replace "per_cu" arg with "cu".
833 All callers updated.
834 (build_type_unit_groups): Don't reset tu_stats.
835
836 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
837 "tab_cur_size". Change member "tab" to be a htab_t.
838 (create_filename_seen_cache): Update.
839 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
840 (filename_seen): Update.
841
842 2012-07-13 Doug Evans <dje@google.com>
843
844 * symtab.c (filename_seen): Update comment.
845
846 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
847 Doug Evans <dje@google.com>
848
849 * buildsym.c (end_symtab_1): Split it to ...
850 (end_symtab_get_static_block): ... this ...
851 (end_symtab_from_static_block): ... and this function.
852 (end_symtab, end_expandable_symtab): Call them.
853 * buildsym.h (end_symtab_get_static_block)
854 (end_symtab_from_static_block): New declarations.
855 * dwarf2read.c (process_full_comp_unit): New variable static_block.
856 Set its valid CU ranges.
857
858 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
859
860 * dwarf2loc.c (disassemble_dwarf_expression): Handle
861 DW_OP_GNU_parameter_ref.
862
863 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
864
865 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
866 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
867
868 2012-07-13 Doug Evans <dje@google.com>
869
870 * symtab.c (output_source_filename): Delete unnecessary forward decl.
871 (filename_seen_cache): New struct.
872 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
873 (create_filename_seen_cache): New function.
874 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
875 (filename_seen): Delete arg "first". New arg "cache". All callers
876 updated.
877 (output_source_filename_data): New struct.
878 (output_source_filename): Delete arg "first". New arg "data".
879 All callers updated.
880 (sources_info): Delete local "first". New locals "data", "cleanups".
881 Rewrite to use filename_seen_cache.
882 (add_partial_filename_data): Delete member "first". New member
883 "filename_seen_cache". All uses updated.
884 (make_source_files_completion_list): Rewrite to use
885 filename_seen_cache.
886
887 2012-07-12 Doug Evans <dje@google.com>
888
889 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
890
891 2012-07-10 Doug Evans <dje@google.com>
892
893 PR gdb/13498
894 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
895 all_type_unit_groups, type_unit_groups, tu_stats.
896 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
897 All uses updated. Add type_unit_group to union "s".
898 (type_unit_group): New struct.
899 (IS_TYPE_UNIT_GROUP): New macro.
900 (abbrev_table): Delete unused member "section".
901 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
902 (dw2_get_cu): Assert not used with type_unit_group.
903 (dw2_get_primary_cu): New function.
904 (dw2_build_type_unit_groups_reader): New function.
905 (dw2_build_type_unit_groups): New function.
906 (dw2_get_file_names): Assert not called on type units.
907 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
908 Redo loop to iterate over type unit groups instead of type units.
909 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
910 (read_abbrev_offset): New function.
911 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
912 updated.
913 (create_partial_symtab): New function.
914 (process_psymtab_comp_unit_reader): Assert not used with type units.
915 Call create_partial_symtab.
916 (process_psymtab_type_unit): Delete.
917 (hash_type_unit_group, eq_type_unit_group): New functions.
918 (allocate_type_unit_groups_table): New function.
919 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
920 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
921 (create_type_unit_group, get_type_unit_group): New functions.
922 (tu_abbrev_offset): New struct.
923 (sort_tu_by_abbrev_offset): New function.
924 (add_type_unit_group_to_table): New function.
925 (build_type_unit_groups): New function.
926 (build_type_psymtabs_reader): New function.
927 (build_type_psymtab_dependencies): New function.
928 (build_type_psymtabs): Rewrite.
929 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
930 is seen in a type unit.
931 (process_queue): Move symtab expansion debugging printfs here.
932 Call process_full_type_unit for type units.
933 (compute_symtab_includes): Assert not called for type units.
934 (process_cu_includes): Don't call compute_symtab_includes for
935 type units.
936 (process_full_type_unit): New function.
937 (process_imported_unit_die): Flag an error if called for type units.
938 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
939 updated. Assert not called for type units.
940 (read_file_scope): Call dwarf2_start_symtab.
941 (setup_type_unit_groups): New function.
942 (read_type_unit_scope): Rewrite.
943 (abbrev_table_read_table): Initialize abbrev_table->offset.
944 (abbrev_table_free_cleanup): New function.
945 (dwarf2_start_symtab): New function.
946 (load_full_type_unit): Assert not called for type unit groups.
947 * buildsym.c (finish_block_internal): New arg "expandable".
948 All callers updated.
949 (start_symtab): Move most contents to ...
950 (restart_symtab): ... here. New function.
951 (reset_symtab_globals): New function.
952 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
953 Call reset_symtab_globals.
954 (end_symtab, end_expandable_symtab): New functions.
955 (set_missing_symtab, augment_type_symtab): New functions.
956 * buildsym.h (end_expandable_symtab): Declare.
957 (augment_type_symtab, restart_symtab): Declare.
958 * psympriv.h (struct partial_symtab): New member "anonymous".
959 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
960 anonymous psymtabs.
961 (read_psymtabs_with_filename): Ditto.
962 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
963 (expand_symtabs_matching_via_partial): Ditto.
964 (dump_psymtab): Update.
965 * dictionary.c (dict_add_pending): New function.
966 * dictionary.h (dict_add_pending): Declare.
967
968 2012-07-09 Doug Evans <dje@google.com>
969
970 * buildsym.c (start_subfile): Remove unnecessary check for
971 name == NULL.
972
973 * psymtab.c (allocate_psymtab): Use host_address_to_string.
974
975 * dwarf2read.c (load_full_type_unit): Simplify.
976
977 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
978 to struct signatured_type **. All uses updated.
979
980 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
981 All callers updated.
982
983 2012-07-09 Tom Tromey <tromey@redhat.com>
984
985 * c-exp.y (check_parameter_typelist): New function.
986 (parameter_typelist): Call it.
987 * eval.c (make_params): Handle '(void)' case.
988 * gdbtypes.c (lookup_function_type_with_arguments): Handle
989 '(void)' case.
990
991 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
992
993 * common/linux-ptrace.c: Include gdb_assert.h.
994 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
995 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
996 stdint.h.
997 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
998 functions.
999 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
1000 * linux-nat.c (linux_child_post_attach)
1001 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
1002
1003 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1004
1005 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
1006 nptl <2.7 bug workaround for core files.
1007
1008 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1009
1010 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
1011 clearing.
1012 (save_siginfo): Remove.
1013 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
1014 call.
1015 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
1016 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
1017 * linux-nat.h (struct lwp_info): Remove field siginfo.
1018
1019 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1020
1021 Code cleanup for the next patch.
1022 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
1023 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1024 call for it.
1025 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1026 (ia64_linux_stopped_data_address):
1027 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
1028 the return value.
1029 * linux-nat.h (linux_nat_get_siginfo): Likewise.
1030 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
1031 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1032 call for it.
1033
1034 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1035
1036 PR 14321
1037 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
1038 Increase buffer sizes to 2x we need, not just 2x of the previous size.
1039
1040 2012-07-06 Tom Tromey <tromey@redhat.com>
1041
1042 * c-exp.y (DOTDOTDOT): New token.
1043 (func_mod, exp): Use parameter_typelist.
1044 (parameter_typelist): New production.
1045 (tokentab3): Add "..." token.
1046 * eval.c (make_params): Handle varargs.
1047 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1048 varargs.
1049
1050 2012-07-06 Tom Tromey <tromey@redhat.com>
1051
1052 PR exp/9608:
1053 * c-exp.y (%union) <tvec>: Change type.
1054 (func_mod): Now uses <tvec> type.
1055 (exp): Update for tvec change.
1056 (direct_abs_decl): Push the typelist.
1057 (func_mod): Return a typelist.
1058 (nonempty_typelist): Update for tvec change.
1059 * gdbtypes.c (lookup_function_type_with_arguments): New function.
1060 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
1061 * parse.c (pop_type_list): New function.
1062 (push_typelist): New function.
1063 (follow_types): Handle tp_function_with_arguments.
1064 * parser-defs.h (type_ptr): New typedef. Define a VEC.
1065 (enum type_pieces) <tp_function_with_arguments>: New constant.
1066 (union type_stack_elt) <typelist_val>: New field.
1067 (push_typelist): Declare.
1068
1069 2012-07-06 Tom Tromey <tromey@redhat.com>
1070
1071 * c-exp.y (%union) <type_stack>: New field.
1072 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
1073 (ptr_operator_ts): New production.
1074 (ptype): Update.
1075 * parse.c (type_stack_reserve): New function.
1076 (check_type_stack_depth): Use it.
1077 (pop_type_stack, append_type_stack, push_type_stack)
1078 (get_type_stack, type_stack_cleanup): New functions.
1079 (follow_types): Handle tp_type_stack.
1080 (_initialize_parse): Simplify initialization.
1081 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
1082 constant.
1083 (union type_stack_elt) <stack_val>: New field.
1084 (get_type_stack, append_type_stack, push_type_stack)
1085 (type_stack_cleanup): Declare.
1086
1087 2012-07-06 Tom Tromey <tromey@redhat.com>
1088
1089 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
1090 Remove.
1091 (struct type_stack): New.
1092 * parse.c (type_stack, type_stack_size, type_stack_depth):
1093 Remove.
1094 (type_stack): New global.
1095 (parse_exp_in_context, check_type_stack_depth)
1096 (insert_into_type_stack, insert_type, push_type, push_type_int)
1097 (insert_type_address_space, pop_type, pop_type_int)
1098 (_initialize_parse): Update.
1099
1100 2012-07-06 Tom Tromey <tromey@redhat.com>
1101
1102 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
1103 Remove %type.
1104
1105 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1106
1107 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
1108
1109 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1110 Jan Kratochvil <jan.kratochvil@redhat.com>
1111
1112 * cp-valprint.c (cp_print_value): Replace potentially unsafe
1113 alloca with xmalloc/xfree.
1114
1115 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1116
1117 * MAINTAINERS (Write After Approval): Add myself to the list.
1118
1119 2012-07-05 Doug Evans <dje@google.com>
1120
1121 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
1122
1123 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1124
1125 * ax-gdb.c (cli/cli-utils.h): New include.
1126 (linespec.h): Ditto.
1127 (agent_eval_command_one): New function.
1128 (agent_command_1): Ditto.
1129 (agent_command): Call function agent_command_1.
1130 (agent_eval_command): Ditto.
1131 (_initialize_ax_gdb): Change help for "maint agent"
1132 and "maint agent-eval".
1133
1134 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1135
1136 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
1137 * cli/cli-utils.c (check_for_argument): New function.
1138 * cli/cli-utils.h (check_for_argument): Ditto.
1139
1140 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1141
1142 * NEWS: Mention x32 ABI support.
1143
1144 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1145
1146 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1147 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1148
1149 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1150 and pc_regnum_from_eax to -1. Update SP regnum from
1151 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1152 needed.
1153
1154 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1155 pc_regnum_from_eax.
1156
1157 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1158
1159 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1160 * dwarf2expr.h: Include gdbtypes.h.
1161 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1162 these forward declarations.
1163 (cu_offset, sect_offset): Move these ...
1164 * gdbtypes.h: Remove include dwarf2expr.h.
1165 (cu_offset, sect_offset): ... here.
1166
1167 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1168
1169 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1170 (amd64_linux_sigtramp_code): This.
1171 (amd64_x32_linux_sigtramp_code): New.
1172 (LINUX_SIGTRAMP_LEN): Updated.
1173 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1174
1175 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1176
1177 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1178
1179 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1180
1181 * config.in: Regenerate.
1182 * configure: Regenerate.
1183 * configure.ac: Remove check for gnu/libc-version.h.
1184 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1185 gnu/libc-version.h.
1186 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1187 variables libc_version, libc_major and libc_minor. Replace sscanf by
1188 inferior_has_bug. Extend the comment.
1189
1190 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1191
1192 * linux-thread-db.c (inferior_has_bug): New function.
1193 (thread_db_find_new_threads_silently): Return boolean as checked by
1194 inferior_has_bug, describe it in the comments.
1195 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1196 earlier. Abort the initialization if it returned non-zero.
1197 (thread_db_new_objfile): Exclude debug files.
1198 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1199 if UNTIL_NO_NEW,
1200
1201 2012-07-02 Doug Evans <dje@google.com>
1202
1203 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1204 related to queue management.
1205
1206 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1207 instead of "debug dwarf2-die" in debugging printfs.
1208 (create_debug_info_hash_table_reader): Ditto.
1209 (create_debug_info_hash_table): Ditto.
1210 (init_dwo_file): Ditto.
1211 (init_cutu_and_read_dies): Add debugging printf.
1212 (init_cutu_and_read_dies_no_follow): Ditto.
1213 (process_psymtab_comp_unit_reader): Ditto.
1214
1215 2012-07-02 Stan Shebs <stan@codesourcery.com>
1216
1217 Add target-side support for dynamic printf.
1218 * NEWS: Mention the additional style.
1219 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1220 (struct bp_location): New field cmd_bytecode.
1221 * breakpoint.c: Include format.h.
1222 (disconnected_dprintf): New global.
1223 (parse_cmd_to_aexpr): New function.
1224 (build_target_command_list): New function.
1225 (insert_bp_location): Call it.
1226 (remove_breakpoints_pid): Skip dprintf breakpoints.
1227 (print_one_breakpoint_location): Ditto.
1228 (dprintf_style_agent): New global.
1229 (dprintf_style_enums): Add dprintf_style_agent.
1230 (update_dprintf_command_list): Add agent case.
1231 (agent_printf_command): New function.
1232 (_initialize_breakpoint): Add new commands.
1233 * common/ax.def (printf): New bytecode.
1234 * ax.h (ax_string): Declare.
1235 * ax-gdb.h (gen_printf): Declare.
1236 * ax-gdb.c: Include cli-utils.h, format.h.
1237 (gen_printf): New function.
1238 (maint_agent_print_command): New function.
1239 (_initialize_ax_gdb): Add maint agent-printf command.
1240 * ax-general.c (ax_string): New function.
1241 (ax_print): Add printf disassembly.
1242 * Makefile.in (SFILES): Add format.c
1243 (COMMON_OBS): Add format.o.
1244 * common/format.h: New file.
1245 * common/format.c: New file.
1246 * printcmd.c: Include format.h.
1247 (ui_printf): Call parse_format_string.
1248 * remote.c (remote_state): New field breakpoint_commands.
1249 (PACKET_BreakpointCommands): New enum.
1250 (remote_breakpoint_commands_feature): New function.
1251 (remote_protocol_features): Add new BreakpointCommands entry.
1252 (remote_can_run_breakpoint_commands): New function.
1253 (remote_add_target_side_commands): New function.
1254 (remote_insert_breakpoint): Call it.
1255 (remote_insert_hw_breakpoint): Ditto.
1256 (_initialize_remote): Add new packet configuration for
1257 target-side breakpoint commands.
1258 * target.h (struct target_ops): New field
1259 to_can_run_breakpoint_commands.
1260 (target_can_run_breakpoint_commands): New macro.
1261 * target.c (update_current_target): Handle
1262 to_can_run_breakpoint_commands.
1263
1264 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1265
1266 Execute -ix and -iex only after system and user gdbinit files.
1267 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1268 processing down after gdbinit files.
1269
1270 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1271
1272 Add fnmatch-gnu module.
1273 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1274 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1275 * gnulib/aclocal.m4: Regenerate.
1276 * gnulib/config.in: Regenerate.
1277 * gnulib/configure: Regenerate.
1278 * gnulib/import/dummy.c: Remove.
1279 * gnulib/import/Makefile.am: Regenerate.
1280 * gnulib/import/Makefile.in: Likewise.
1281 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1282 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1283 * gnulib/import/alloca.c: New file.
1284 * gnulib/import/alloca.in.h: Likewise.
1285 * gnulib/import/config.charset: Likewise.
1286 * gnulib/import/fnmatch.c: Likewise.
1287 * gnulib/import/fnmatch.in.h: Likewise.
1288 * gnulib/import/fnmatch_loop.c: Likewise.
1289 * gnulib/import/localcharset.c: Likewise.
1290 * gnulib/import/localcharset.h: Likewise.
1291 * gnulib/import/m4/alloca.m4: Likewise.
1292 * gnulib/import/m4/codeset.m4: Likewise.
1293 * gnulib/import/m4/configmake.m4: Likewise.
1294 * gnulib/import/m4/fcntl-o.m4: Likewise.
1295 * gnulib/import/m4/fnmatch.m4: Likewise.
1296 * gnulib/import/m4/glibc21.m4: Likewise.
1297 * gnulib/import/m4/localcharset.m4: Likewise.
1298 * gnulib/import/m4/locale-fr.m4: Likewise.
1299 * gnulib/import/m4/locale-ja.m4: Likewise.
1300 * gnulib/import/m4/locale-zh.m4: Likewise.
1301 * gnulib/import/m4/mbrtowc.m4: Likewise.
1302 * gnulib/import/m4/mbsinit.m4: Likewise.
1303 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1304 * gnulib/import/m4/mbstate_t.m4: Likewise.
1305 * gnulib/import/m4/stdbool.m4: Likewise.
1306 * gnulib/import/m4/wchar_h.m4: Likewise.
1307 * gnulib/import/m4/wctype_h.m4: Likewise.
1308 * gnulib/import/m4/wint_t.m4: Likewise.
1309 * gnulib/import/mbrtowc.c: Likewise.
1310 * gnulib/import/mbsinit.c: Likewise.
1311 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1312 * gnulib/import/mbsrtowcs-state.c: Likewise.
1313 * gnulib/import/mbsrtowcs.c: Likewise.
1314 * gnulib/import/ref-add.sin: Likewise.
1315 * gnulib/import/ref-del.sin: Likewise.
1316 * gnulib/import/stdbool.in.h: Likewise.
1317 * gnulib/import/streq.h: Likewise.
1318 * gnulib/import/strnlen1.c: Likewise.
1319 * gnulib/import/strnlen1.h: Likewise.
1320 * gnulib/import/verify.h: Likewise.
1321 * gnulib/import/wchar.in.h: Likewise.
1322 * gnulib/import/wctype.in.h: Likewise.
1323
1324 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1325
1326 Support shell wildcards for 'set auto-load safe-path'.
1327 * auto-load.c: Include fnmatch.h.
1328 (filename_is_in_dir): Rename to ...
1329 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1330 it. Update function comment. Rename dir_len to pattern_len. New
1331 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1332 messages. Use gdb_filename_fnmatch.
1333 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1334 pattern.
1335 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1336 * defs.h (gdb_filename_fnmatch): New declaration.
1337 * utils.c: Include fnmatch.h.
1338 (gdb_filename_fnmatch): New function.
1339
1340 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1341
1342 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1343 `-probe' and `-probe-stap' options.
1344
1345 2012-07-01 Yao Qi <yao@codesourcery.com>
1346
1347 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1348 always_inserted_off, and always_inserted_enums.
1349 Change always_inserted_mode's type to 'enum auto_boolean'.
1350 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1351 callers.
1352 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1353 of add_setshow_enum_cmd.
1354 * infrun.c: Remove can_use_displaced_stepping_auto,
1355 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1356 can_use_displaced_stepping_enum.
1357 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1358 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1359 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1360 add_setshow_enum_cmd.
1361
1362 2012-06-30 Doug Evans <dje@google.com>
1363
1364 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1365 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1366 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1367
1368 2012-06-29 Doug Evans <dje@google.com>
1369
1370 * linespec.c: #include "stack.h".
1371 (decode_line_with_current_source): Moved here from symtab.c and
1372 renamed from decode_line_spec. All callers updated.
1373 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1374 renamed from decode_line_spec_1. All callers updated.
1375 * linespec.h (decode_line_with_current_source): Move declaration here
1376 from symtab.h and renamed from decode_line_spec.
1377 (decode_line_with_last_displayed): Move declaration here from symtab.h
1378 and renamed from decode_line_spec_1.
1379 * macrocmd.c: #include "linespec.h".
1380 * symtab.c: Remove #include "linespec.h".
1381
1382 2012-06-28 Doug Evans <dje@google.com>
1383
1384 * dwarf2read.c (get_cu_length): New function.
1385 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1386 (create_debug_types_hash_table): Ditto.
1387 (init_cutu_and_read_dies): Ditto.
1388 (init_cutu_and_read_dies_no_follow): Ditto.
1389
1390 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1391
1392 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1393 (struct abbrev_table): Define.
1394 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1395 abbrev_table.
1396 (init_cutu_and_read_dies): Update.
1397 (abbrev_table_alloc_abbrev): New function. Replaces
1398 dwarf_alloc_abbrev. All callers updated.
1399 (abbrev_table_add_abbrev): New function.
1400 (abbrev_table_lookup_abbrev): New function. Replaces
1401 dwarf2_lookup_abbrev. All callers updated.
1402 (abbrev_table_read_table): New function. Contents moved here from
1403 dwarf2_read_abbrevs.
1404 (dwarf2_read_abbrevs): Call it.
1405 (abbrev_table_free): New function.
1406 (dwarf2_free_abbrev_table): Call it.
1407
1408 2012-06-28 Stan Shebs <stan@codesourcery.com>
1409
1410 * osdata.c (info_osdata_command): Filter out "Title" columns
1411 from non-MI uses.
1412 * common/linux-osdata.c (struct osdata_type): Add title field.
1413 (osdata_table): Add titles to each entry.
1414 (linux_command_xfer_osdata): Add a column for title data.
1415
1416 2012-06-28 Stan Shebs <stan@codesourcery.com>
1417
1418 Make logging work for MI.
1419 * NEWS: Mention it.
1420 * interps.h (interp_set_logging_ftype): New typedef.
1421 (struct interp_procs): New field set_logging_proc.
1422 (current_interp_set_logging): Declare.
1423 * interps.c (current_interp_set_logging): New function.
1424 * cli/cli-logging.c: Include interps.h.
1425 (set_logging_redirect): Call current_interp_set_logging.
1426 (pop_output_files): Ditto.
1427 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1428 * mi/mi-console.h (mi_console_set_raw): Declare.
1429 * mi/mi-console.c (mi_console_set_raw): New function.
1430 * mi/mi-interp.c (saved_raw_stdout): New global.
1431 (mi_set_logging): New function.
1432 (_initialize_mi_interp): Add it to interp procs.
1433
1434 2012-06-28 Doug Evans <dje@google.com>
1435
1436 * symtab.c (lookup_symbol_aux_objfile): Use
1437 ALL_OBJFILE_PRIMARY_SYMTABS.
1438
1439 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1440
1441 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1442
1443 * common/buffer.c: Include inttypes.h and stdint.h.
1444 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1445
1446 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1447 Pedro Alves <palves@redhat.com>
1448
1449 * gdbthread.h (ALL_THREADS): New macro.
1450 (thread_list): Declare.
1451 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1452 going, but instead fall through to the stepping handling.
1453 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1454 the passed in signal. Adjust debug output.
1455 (resume_callback): Rename to ...
1456 (linux_nat_resume_callback): ... this. Pass the thread's last
1457 stop signal, if in "pass" state.
1458 (linux_nat_resume): Adjust to rename.
1459 (stop_wait_callback): New assertion. Don't respawn signals;
1460 instead let the LWP remain with SIGNALLED set.
1461 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1462 * remote.c (append_pending_thread_resumptions): New.
1463 (remote_vcont_resume): Call it.
1464 * target.h (target_resume): Extend comment.
1465
1466 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1467
1468 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1469
1470 2012-06-27 Doug Evans <dje@google.com>
1471
1472 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1473 Delete have_addr_base, unused. All uses updated.
1474 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1475 (dwarf2_get_pc_bounds): Add ranges_base.
1476 (dwarf2_record_block_ranges): Ditto.
1477
1478 2012-06-27 Tom Tromey <tromey@redhat.com>
1479
1480 PR macros/7961:
1481 * varobj.c (varobj_create): Update.
1482 (varobj_set_value): Update.
1483 * tracepoint.c (validate_actionline): Update.
1484 (encode_actions_1): Update.
1485 * parse.c (parse_exp_1): Add 'pc' argument.
1486 (parse_exp_in_context): Add 'pc' argument. Change how
1487 expression_context_pc is set.
1488 (parse_expression): Update.
1489 (parse_field_expression): Update.
1490 * expression.h (parse_exp_1): Update.
1491 * eval.c (parse_to_comma_and_eval): Update.
1492 * breakpoint.c (set_breakpoint_condition): Update.
1493 (update_watchpoint): Update.
1494 (init_breakpoint_sal): Update
1495 (find_condition_and_thread): Update.
1496 (watch_command_1): Update.
1497 (update_breakpoint_locations): Update.
1498 * ada-lang.c (ada_read_renaming_var_value): Update.
1499 (create_excep_cond_exprs): Update.
1500
1501 2012-06-27 Doug Evans <dje@google.com>
1502
1503 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1504 type units.
1505
1506 2012-06-26 Doug Evans <dje@google.com>
1507
1508 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1509 prototype.
1510 (error_check_comp_unit_head): New arg abbrev_section. All callers
1511 updated.
1512 (read_and_check_comp_unit_head): Ditto.
1513 (read_and_check_type_unit_head): Ditto.
1514
1515 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1516
1517 New attribute 'last' for gdb.Symtab_and_line.
1518 * NEWS (Python Scripting): Add entry about the new attribute.
1519 * python/py-symtab.c (salpy_get_last): New function which
1520 implements the get method for the 'last' attribute of
1521 gdb.Symtab_and_line.
1522 (sal_object_getset): Add entry for the 'last' attribute.
1523
1524 2012-06-26 Doug Evans <dje@google.com>
1525
1526 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1527 (dwo_sections): Add macinfo, macro.
1528 (dwarf2_locate_dwo_sections): Watch for macro sections.
1529 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1530 All callers updated. Handle DWO files.
1531
1532 * NEWS: Mention new options "set debug dwarf2-read" and
1533 "set debug symtab-create".
1534 * dwarf2read.c (dwarf2_read_debug): New static global.
1535 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1536 (process_queue): Ditto.
1537 (process_full_comp_unit): Ditto.
1538 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1539 * elfread.c (elf_symfile_read): Add debugging printf.
1540 * minsyms.c (install_minimal_symbols): Ditto.
1541 * psymtab.c (allocate_psymtab): Ditto.
1542 * symfile.c (allocate_symtab): Ditto.
1543 * symtab.c (symtab_create_debug): New global.
1544 (_initialize_symtab): Add new option "set debug symtab-create".
1545 * symtab.h (symtab_create_debug): Declare.
1546
1547 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1548 (lookup_dwo_type_unit): Ditto.
1549
1550 2012-06-26 Roland McGrath <roland@hack.frob.com>
1551 H.J. Lu <hongjiu.lu@intel.com>
1552
1553 * amd64-linux-nat.c: Include <sys/user.h>.
1554 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1555 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1556 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1557
1558 * configure.ac: Check if the fs_base and gs_base members of
1559 `struct user_regs_struct' exist.
1560 * config.in: Regenerated.
1561 * configure: Likewise.
1562
1563 2012-06-25 Michael Eager <eager@eagercon.com>
1564
1565 PR python/14291
1566 * python/python.c (gdbpy_write): Check for interrupted output.
1567
1568 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1569
1570 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1571 register as a stack alignment in ARM mode.
1572
1573 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1574
1575 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1576 * gnulib/config.in: Regenerate.
1577 * gnulib/configure: Likewise.
1578 * gnulib/import/m4/extensions.m4: Update it.
1579 * gnulib/import/m4/gnulib-common.m4: Likewise.
1580 * gnulib/import/m4/memmem.m4: Likewise.
1581 * gnulib/import/m4/mmap-anon.m4: Likewise.
1582 * gnulib/import/m4/multiarch.m4: Likewise.
1583 * gnulib/import/stdint.in.h: Likewise.
1584
1585 2012-06-24 Yao Qi <yao@codesourcery.com>
1586
1587 * corefile.c (write_memory_with_notification): New.
1588 * gdbcore.h: Declare write_memory_with_notification.
1589 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1590 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1591 * valops.c (value_assign): Likewise.
1592 * python/py-inferior.c (infpy_write_memory): Call
1593 'write_memory_with_notification'.
1594
1595 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1596
1597 * cc-with-index.sh: Use also -ex "set auto-load no".
1598
1599 2012-06-23 Doug Evans <dje@google.com>
1600
1601 PR 14125
1602 * NEWS: Document additions to .gdb_index.
1603 * dwarf2read.c: #include "gdb/gdb-index.h".
1604 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1605 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1606 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1607 (dwarf2_read_index): Recognize version 7.
1608 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1609 block_kind, domain): All callers updated.
1610 (dw2_find_symbol_file): Handle new index CU values.
1611 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1612 (add_index_entry): New args is_static, kind. All callers updated.
1613 (offset_type_compare, uniquify_cu_indices): New functions
1614 (symbol_kind): New function.
1615 (write_psymtabs_to_index): Remove duplicate CU values.
1616 (write_psymtabs_to_index): Write .gdb_index version 7.
1617
1618 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1619
1620 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1621 * configure: Regenerate.
1622
1623 2012-06-20 Yao Qi <yao@codesourcery.com>
1624
1625 * python/py-inferior.c: Update comments of infpy_read_memory
1626 and infpy_write_memory.
1627
1628 2012-06-19 Tom Tromey <tromey@redhat.com>
1629
1630 PR exp/9514:
1631 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1632 (push_type_address_space): Remove.
1633 * parse.c (insert_into_type_stack): New function.
1634 (insert_type): Likewise.
1635 (insert_type_address_space): Rename from push_type_address_space.
1636 Insert tp_space_identifier.
1637 * c-exp.y (ptr_operator): New production.
1638 (abs_decl): Use ptr_operator.
1639 (space_identifier): Call insert_type_address_space.
1640 (ptype): Don't use const_or_volatile_or_space_identifier.
1641 (const_or_volatile_noopt): Call insert_type.
1642 (conversion_type_id, conversion_declarator): New productions.
1643 (operator): Use conversion_type_id.
1644
1645 2012-06-18 Doug Evans <dje@google.com>
1646
1647 * symtab.h (minimal_symbol): New member created_by_gdb.
1648 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1649 created by gdb.
1650 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1651 (search_symbols): Call it instead of lookup_symbol.
1652 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1653
1654 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1655 Adjust address for DW_OP_GNU_addr_index.
1656 * dwarf2expr.h (dwarf_expr_context): Update comment.
1657 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1658 all callers updated. Handle TLS vars described with
1659 DW_OP_GNU_const_index.
1660 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1661 and DW_OP_GNU_const_index.
1662 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1663
1664 * block.c (find_block_in_blockvector): Make explicit the fact that we
1665 ignore GLOBAL_BLOCK.
1666
1667 2012-06-18 Tom Tromey <tromey@redhat.com>
1668
1669 * c-exp.y (operator): Remove trailing space after "delete" and
1670 "delete[]".
1671
1672 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1673 Jan Kratochvil <jan.kratochvil@redhat.com>
1674
1675 Switch i386 and derived targets to ON_STACK.
1676 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1677 (amd64_dicos_init_abi): Remove its installment.
1678 * dicos-tdep.c (dicos_init_abi): Remove the
1679 set_gdbarch_call_dummy_location call. Update the comment here.
1680 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1681 (i386_dicos_init_abi): Remove its installment.
1682 * i386-tdep.c (i386_push_dummy_code): New function.
1683 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1684 i386_push_dummy_code.
1685
1686 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1687
1688 Remove stale dummy frames.
1689 * breakpoint.c: Include dummy-frame.h.
1690 (longjmp_breakpoint_ops): New variable.
1691 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1692 bp_longjmp_call_dummy.
1693 (bpstat_what, bptype_string, print_one_breakpoint_location)
1694 (init_bp_location): Support bp_longjmp_call_dummy.
1695 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1696 (set_longjmp_breakpoint_for_call_dummy)
1697 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1698 functions.
1699 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1700 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1701 FIXME comment and extend the other comment for bp_call_dummy.
1702 (set_longjmp_breakpoint_for_call_dummy)
1703 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1704 * dummy-frame.c: Include gdbthread.h.
1705 (pop_dummy_frame_bpt): New function.
1706 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1707 (dummy_frame_discard): New function.
1708 (cleanup_dummy_frames): Update the comment about longjmps.
1709 * dummy-frame.h (dummy_frame_discard): New declaration.
1710 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1711 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1712 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1713 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1714 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1715 keep_going if IS_LONGJMP and there is no other reason to stop.
1716
1717 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1718
1719 * remote-sim.c (sim_command_completer): Initialize
1720 variable 'result'.
1721
1722 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1723
1724 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1725 * dwarf2loc.c (call_site_parameter_matches): Support
1726 CALL_SITE_PARAMETER_PARAM_OFFSET.
1727 (needs_dwarf_reg_entry_value): Push stub value.
1728 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1729 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1730 * gdbtypes.h (enum call_site_parameter_kind): New item
1731 CALL_SITE_PARAMETER_PARAM_OFFSET.
1732 (struct call_site.parameter.u): New field param_offset.
1733
1734 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1735
1736 Code cleanup: Generalize call_site.parameter key.
1737 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1738 variable dwarf_reg. New variable kind_u. Update parameters to
1739 push_dwarf_reg_entry_value.
1740 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1741 * dwarf2expr.h (enum call_site_parameter_kind)
1742 (union call_site_parameter_u): Forward declarations.
1743 (struct dwarf_expr_context_funcs): Update parameters and their
1744 description for push_dwarf_reg_entry_value.
1745 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1746 * dwarf2loc.c (call_site_parameter_matches): New function.
1747 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1748 description. Use call_site_parameter_matches.
1749 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1750 Update parameters and their description.
1751 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1752 New variable kind_u. Adjust the caller for updated parameters.
1753 (needs_dwarf_reg_entry_value): Update parameters.
1754 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1755 instead of attr. Update for the changed fields of struct
1756 call_site_parameter.
1757 * gdbtypes.h: Include dwarf2expr.h.
1758 (enum call_site_parameter_kind): New.
1759 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1760 fb_offset into new union u.
1761
1762 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1763
1764 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1765 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1766 for x32.
1767
1768 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1769
1770 * amd64-linux-nat.c (compat_x32_clock_t): New.
1771 (compat_x32_siginfo_t): Likewise.
1772 (compat_x32_siginfo_from_siginfo): Likewise.
1773 (siginfo_from_compat_x32_siginfo): Likewise.
1774 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1775 and siginfo_from_compat_x32_siginfo for x32.
1776
1777 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
1778
1779 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1780
1781 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1782
1783 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1784 instead of gdbarch_ptr_bit.
1785 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1786 (amd64_supply_native_gregset): Likewise.
1787 (amd64_collect_native_gregset): Likewise.
1788 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1789 (amd64_supply_xsave): Likewise.
1790 (amd64_collect_fxsave): Likewise.
1791 (amd64_collect_xsave): Likewise.
1792
1793 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1794
1795 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1796 (amd64_linux_read_description): Check DS segment register for
1797 x32 process.
1798
1799 2012-06-15 Tom Tromey <tromey@redhat.com>
1800
1801 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1802 init_cutu_and_read_dies.
1803
1804 2012-06-15 Iain Sandoe <iain@codesourcery.com>
1805
1806 * MAINTAINERS (Write After Approval): Add myself to the list.
1807
1808 2012-06-15 Tom Tromey <tromey@redhat.com>
1809
1810 * valops.c (value_find_oload_method_list): Now static.
1811 * value.h (value_find_oload_method_list): Don't declare.
1812
1813 2012-06-15 Tom Tromey <tromey@redhat.com>
1814
1815 * valops.c (find_overload_match): Use value_ind.
1816
1817 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1818
1819 * infrun.c (handle_inferior_event): Correct indentation.
1820
1821 2012-06-14 Doug Evans <dje@google.com>
1822
1823 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1824 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1825 All uses updated.
1826 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1827 updated. Handle DEBUG_LOC_START_LENGTH.
1828 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1829 (loclist_describe_location): Ditto.
1830
1831 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1832
1833 PR backtrace/13866
1834 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1835 after hiding inline functions.
1836
1837 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1838
1839 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1840 _initialize_inf_ttrace.
1841
1842 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1843
1844 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1845 _initialize_hppa_hpux_nat.
1846
1847 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1848
1849 * remote-sim.c (sim_command_completer): Change type of return
1850 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1851
1852 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1853 Jan Kratochvil <jan.kratochvil@redhat.com>
1854
1855 PR tdep/14222
1856 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1857 stack on a 16-byte boundary.
1858
1859 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
1860
1861 * jit.c (finalize_symtab): Set function's return type to 'void' by
1862 default.
1863
1864 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1865 H.J. Lu <hongjiu.lu@intel.com>
1866
1867 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1868 Move bits common to both the classic LP64 and the new x32 ILP32
1869 ABI here.
1870 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1871 (amd64_x32_linux_init_abi): New function.
1872 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1873 subtype.
1874
1875 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1876 * i386-tdep.c (i386_pseudo_register_name): Make public.
1877 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1878 * amd64-tdep.c (amd64_dword_names): Add "eip".
1879 (amd64_x32_pseudo_register_type): New function
1880 (amd64_x32_init_abi): New function.
1881
1882 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1883
1884 PR build/14003
1885 * inferior.h (struct inferior_suspend_state): Comment out.
1886 (struct inferior): Comment out the field suspend.
1887 * infrun.c (struct infcall_suspend_state): Comment out the field
1888 inferior_suspend.
1889 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1890 out its assignment.
1891
1892 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1893
1894 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1895 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1896 function comment. Return ERROR for unresolved cases. Implement
1897 returning proper NAME.
1898 (yylex): Accept also NAME from classify_inner_name.
1899 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1900 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1901 LOC_TYPEDEF type.
1902 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1903
1904 2012-06-13 Tom Tromey <tromey@redhat.com>
1905
1906 * breakpoint.c (condition_completer): New function.
1907 (_initialize_breakpoint): Use it.
1908 * value.c (complete_internalvar): New function.
1909 * value.h (complete_internalvar): Declare.
1910
1911 2012-06-13 Tom Tromey <tromey@redhat.com>
1912
1913 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1914 * breakpoint.c (catch_syscall_completer): Return a VEC.
1915 * cli/cli-cmds.c (complete_command): Update.
1916 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1917 (complete_on_enum): Likewise.
1918 * command.h: Include gdb_vecs.h.
1919 (completer_ftype): Change return type.
1920 (complete_on_cmdlist, complete_on_enum): Likewise.
1921 * completer.c (noop_completer, filename_completer)
1922 (location_completer): Return a VEC.
1923 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1924 to a VEC.
1925 (expression_completer, complete_line_internal, complete_line)
1926 (command_completer): Return a VEC.
1927 (gdb_completion_word_break_characters, line_completion_function):
1928 Update.
1929 * completer.h: Include gdb_vecs.h.
1930 (complete_line, noop_completer, filename_completer)
1931 (expression_completer, location_completer, command_completer):
1932 Update.
1933 * f-lang.c (f_word_break_characters): Return a VEC.
1934 * interps.c (interpreter_completer): Return a VEC.
1935 * language.h (struct language_defn)
1936 <la_make_symbol_completion_list>: Return a VEC.
1937 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1938 * symtab.c (free_completion_list): Take a VEC.
1939 (return_val_size, return_val_index): Remove.
1940 (return_val): Now a VEC.
1941 (completion_list_add_name): Update.
1942 (default_make_symbol_completion_list_break_on)
1943 (default_make_symbol_completion_list, make_symbol_completion_list)
1944 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1945 Return a VEC.
1946 (add_filename_to_list): Update.
1947 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1948 <list>: Now a VEC.
1949 (maybe_add_partial_symtab_filename): Update.
1950 (make_source_files_completion_list): Return a VEC.
1951 * symtab.h (default_make_symbol_completion_list_break_on)
1952 (default_make_symbol_completion_list, make_symbol_completion_list)
1953 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1954 (make_source_files_completion_list): Update.
1955
1956 2012-06-13 Tom Tromey <tromey@redhat.com>
1957
1958 * breakpoint.c (add_catch_command): Use completer_ftype.
1959 * breakpoint.h: Include command.h.
1960 (add_catch_command): Use completer_ftype.
1961 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1962 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1963 Use completer_ftype.
1964 * command.h (completer_ftype): New typedef.
1965 (set_cmd_completer): Use it.
1966 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1967 completer_ftype.
1968
1969 2012-06-13 Pedro Alves <palves@redhat.com>
1970
1971 Partial revert of previous change.
1972
1973 * serial.c (scb_base): New global.
1974 (serial_for_fd): New.
1975 (serial_open, serial_fdopen_ops): Link new serial in open serials
1976 chain.
1977 (do_serial_close): Unlink serial from the open serials chain.
1978
1979 2012-06-12 Pedro Alves <palves@redhat.com>
1980
1981 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
1982 threads here.
1983 (prepare_for_detach): No longer context switch here in non-stop
1984 mode.
1985 (fetch_inferior_event): Ditto.
1986 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
1987 to the event thread before removing breakpoints. Switch to the
1988 event thread before inserting breakpoints and resuming.
1989 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
1990 event thread before resuming.
1991 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
1992 Switch to the event thread before removing breakpoints.
1993
1994 2012-06-12 Eli Zaretskii <eliz@gnu.org>
1995
1996 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
1997 special characters correctly for the Windows shells. See
1998 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
1999 report.
2000 [!__MINGW32__]: Remove extra double quote character from special
2001 characters.
2002
2003 2012-06-11 Stan Shebs <stan@codesourcery.com>
2004
2005 * ui-out.h: Remove #if 0 declarations.
2006 * ui-out.c: Remove #if 0 functions.
2007
2008 2012-06-11 Pedro Alves <palves@redhat.com>
2009
2010 * ser-base.c (run_async_handler_and_reschedule): New.
2011 (fd_event, push_event): Use it.
2012 * serial.c (serial_open, serial_fdopen_ops): Set the initial
2013 reference count to 1.
2014 (do_serial_close): Set the bufp field to NULL. Use serial_unref
2015 instead of xfree.
2016 (serial_is_open, serial_ref, serial_unref): New.
2017 * serial.h (serial_open): Adjust comment.
2018 (serial_is_open): Declare.
2019 (serial_close): Adjust comment.
2020 (serial_ref, serial_unref) Declare.
2021 (struct serial): New field 'refcnt'.
2022
2023 2012-06-11 Pedro Alves <palves@redhat.com>
2024
2025 Remove #if 0'd "connect" command, and unnecessary associated
2026 refcounting and serial reuse bits.
2027
2028 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
2029 * serial.c (last_serial_opened): Delete.
2030 (scb_base): Delete.
2031 (serial_open): Adjust.
2032 (serial_for_fd): Delete.
2033 (serial_fdopen_ops, do_serial_close): Adjust.
2034 (serial_fdopen_ops): Adjust.
2035
2036 2012-06-11 Pedro Alves <palves@redhat.com>
2037
2038 * serial.c (do_serial_close): Remove early return when SCB is
2039 null.
2040
2041 2012-06-11 Tom Tromey <tromey@redhat.com>
2042
2043 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
2044
2045 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2046
2047 Fix regression by the "ambiguous linespec" series.
2048 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
2049 get_last_displayed_symtab and get_last_displayed_line and depending
2050 on CURSAL.
2051
2052 2012-06-11 Tom Tromey <tromey@redhat.com>
2053
2054 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
2055 (dw2_find_symbol_file): Use it.
2056
2057 2012-06-11 Michael Eager <eager@eagercon.com>
2058
2059 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
2060 * mips-linux-tdep.h (mips_signals): New
2061
2062 2012-06-11 Tom Tromey <tromey@redhat.com>
2063
2064 * infrun.c (handle_inferior_event)
2065 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
2066 breakpoint.
2067 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
2068 exception logic in all cases. Update comments.
2069 (insert_longjmp_resume_breakpoint): Set the exception resume
2070 breakpoint.
2071
2072 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
2073
2074 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
2075
2076 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
2077
2078 * valarith.c (binop_types_user_defined_p): Fix a typo.
2079
2080 2012-06-08 Yao Qi <yao@codesourcery.com>
2081 Chung-Lin Tang <cltang@codesourcery.com>
2082
2083 * arch-utils.c (default_return_in_first_hidden_param_p): New.
2084 * arch-utils.h: Declare.
2085 * gdbarch.sh: Add return_in_first_hidden_param_p.
2086 * gdbarch.c, gdbarch.h: Regenerated.
2087 * infcall.c (call_function_by_hand): Call
2088 gdbarch_return_in_first_hidden_param_p instead of
2089 language_pass_by_reference.
2090
2091 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
2092 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
2093 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
2094 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
2095 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
2096 `cplus_return_struct_by_reference'.
2097 (tic6x_return_value): Handle language cplusplus.
2098 (tic6x_return_in_first_hidden_param_p): New.
2099 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
2100
2101 2012-06-07 Doug Evans <dje@google.com>
2102
2103 * dwarf2read.c (dwarf2_cu): Add comment.
2104
2105 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2106
2107 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
2108 variable.
2109 (mips_eabi_push_dummy_call): Likewise.
2110 (mips_n32n64_push_dummy_call): Likewise.
2111 (mips_o32_push_dummy_call): Likewise.
2112 (mips_o64_push_dummy_call): Likewise.
2113
2114 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2115
2116 * mips-tdep.c (mips_convert_register_p): Correct coding style.
2117
2118 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2119
2120 * mips-tdep.c (mips_pseudo_register_type): Use
2121 mips_float_register_p.
2122
2123 2012-06-06 Pedro Alves <palves@redhat.com>
2124
2125 * infrun.c (handle_inferior_event): Remove calls to
2126 reinit_frame_cache that follow a context_switch call.
2127
2128 2012-06-06 Pedro Alves <palves@redhat.com>
2129
2130 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
2131 context_switch and remove stale comment.
2132
2133 2012-06-06 Pedro Alves <palves@redhat.com>
2134
2135 * infrun.c (struct execution_control_state): Remove
2136 `new_thread_event' field.
2137 (handle_inferior_event): Simplify new threads handling; don't
2138 resume the inferior if we find a new thread.
2139
2140 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
2141
2142 * NEWS: Document the deprecation of SH's 'regs' command.
2143 * inferior.h (all_registers_info): Add function declaration.
2144 * sh-tdep.c (sh_show_regs): Remove variable.
2145 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2146 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2147 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2148 (sh_show_regs_command): Remove functions.
2149 (sh_gdbarch_init): Don't set sh_show_regs.
2150 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2151 'info all-registers'.
2152 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2153 (sh64_show_regs): Remove functions.
2154 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2155
2156 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2157
2158 * configure.ac: Move development=true below AC_INIT.
2159 * configure: Regenerate.
2160
2161 2012-06-05 Stan Shebs <stan@codesourcery.com>
2162
2163 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2164 gdb_stdout.
2165
2166 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2167
2168 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2169 argument as ssize_t.
2170 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2171 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2172 * target.c (target_read_stack, target_write_memory)
2173 (target_write_raw_memory): Likewise.
2174 * target.h (target_read_stack, target_write_memory)
2175 (target_write_raw_memory): Likewise.
2176
2177 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2178
2179 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2180 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2181 * target.c (target_read_memory): Change LEN to ssize_t.
2182 * target.h (target_read_memory): Change LEN to ssize_t.
2183
2184 2012-06-05 Pedro Alves <palves@redhat.com>
2185
2186 PR backtrace/13866
2187
2188 * breakpoint.c (until_break_command): Only fetch the selected
2189 frame after decode_line_1.
2190
2191 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2192
2193 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2194 event breakpoint at _start, __start or main if a program
2195 interpreter is not found.
2196
2197 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2198
2199 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2200 Add declaration.
2201 * windows-tdep.c: #include "objfiles.h".
2202 (windows_iterate_over_objfiles_in_search_order): New function.
2203 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2204 iterate_over_objfiles_in_search_order gdbarch method to
2205 windows_iterate_over_objfiles_in_search_order.
2206 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2207
2208 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2209
2210 * gdbarch.sh: Add generation of
2211 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2212 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2213 (iterate_over_objfiles_in_search_order): New gdbarch method.
2214 * gdbarch.h, gdbarch.c: Regenerate.
2215 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2216 Add declaration.
2217 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2218 New function.
2219 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2220 out of lookup_symbol_aux_symtabs.
2221 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2222 call to lookup_symbol_aux_objfile.
2223 (struct global_sym_lookup_data): New type.
2224 (lookup_symbol_global_iterator_cb): New function.
2225 (lookup_symbol_global): Search for symbol using
2226 gdbarch_iterate_over_objfiles_in_search_order and
2227 lookup_symbol_global_iterator_cb.
2228 * findvar.c (struct minsym_lookup_data): New type.
2229 (minsym_lookup_iterator_cb): New function.
2230 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2231 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2232 and minsym_lookup_iterator_cb.
2233
2234 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2235
2236 Revert the following patch:
2237 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2238 try locating the symbol in the symbol's own objfile first, before
2239 extending the search to all objfiles.
2240 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2241 out of lookup_symbol_aux_symtabs.
2242 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2243 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2244 Do not search EXCLUDE_OBJFILE.
2245 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2246 (lookup_symbol_global): Search for matches in the block's objfile
2247 first, before searching all other objfiles.
2248
2249 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2250
2251 * breakpoint.c (find_condition_and_thread): Stop parsing
2252 as soon as the first invalid keyword is found.
2253
2254 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2255
2256 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2257
2258 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2259
2260 * config/djgpp/djcheck.sh: Add copyright header.
2261
2262 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2263
2264 * copyright.py (update_files, main): Fix path to update-copyright
2265 script.
2266
2267 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2268
2269 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2270 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2271 for which a reminder to update by hand is printed.
2272
2273 2012-06-04 Doug Evans <dje@google.com>
2274
2275 * buildsym.c (make_blockvector): Add comment.
2276
2277 2012-06-04 Pedro Alves <palves@redhat.com>
2278
2279 * arch-utils.c (default_gdb_signal_from_target): Delete.
2280 * arch-utils.h (default_gdb_signal_from_target): Delete.
2281 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2282 gdbarch_gdb_signal_from_target_p.
2283 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2284 predicate).
2285 * gdbarch.h: Regenerate.
2286 * gdbarch.c: Regenerate.
2287
2288 2012-06-04 Pedro Alves <palves@redhat.com>
2289
2290 * gdbarch.sh (gdb_signal_from_target): Mention that the
2291 implementation of the method must be host independent.
2292 * gdbarch.h: Regenerate.
2293
2294 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2295
2296 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2297 parameters.
2298 (target_read_memory_bfd): New function.
2299 (symbol_file_add_from_memory): Use it.
2300
2301 2012-06-03 Doug Evans <dje@google.com>
2302
2303 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2304 of primary symtab.
2305 (basic_lookup_transparent_type): Ditto.
2306
2307 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2308 (ALL_PRIMARY_SYMTABS): Use it.
2309 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2310 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2311 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2312 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2313 (basic_lookup_transparent_type): Ditto.
2314
2315 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2316
2317 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2318 it to optimize resolution of demangled name.
2319
2320 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2321
2322 * configure.ac (development): Define new variable.
2323 Call AC_CHECK_LIB for mcheck if $development.
2324 (ERROR_ON_WARNING): Enable it by default only if $development.
2325 * config.in: Regenerate.
2326 * configure: Regenerate.
2327
2328 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2329
2330 * target.c (target_read_memory): Make LEN argument as size_t.
2331 * target.h (target_read_memory): Likewise.
2332
2333 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2334
2335 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2336
2337 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2338
2339 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2340 BookE interface for PowerPC server processors if not available
2341 in the Linux Kernel.
2342
2343 2012-05-31 Keith Seitz <keiths@redhat.com>
2344
2345 * linespec.c (decode_objc): Add cleanup to free
2346 INFO.FILE_SYMTABS.
2347 (find_linespec_symbols): Add cleanup to free CLASSES.
2348 * symfile.c (find_separate_debug_file_by_debuglink): Add
2349 cleanup to free DEBUGLINK.
2350 * ui-out.c (clear_header_list): No need to check if
2351 HEADER_NEXT.COLHDR is NULL.
2352 Free HEADER_NEXT.COL_NAME.
2353
2354 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2355
2356 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2357 warning.
2358
2359 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2360
2361 * configure.host (gdb_host_cpu): Handle tilegx*.
2362 (gdb_host): Handle tilegx-*-linux*.
2363 * tilegx-linux-nat.c: New file.
2364 * config/tilegx/linux.mh: New file.
2365
2366 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2367
2368 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2369 tilegx-linux-tdep.o.
2370 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2371 tilegx-linux-tdep.c.
2372 * configure.tgt: Handle tilegx-*-linux*.
2373 * tilegx-tdep.h: New file.
2374 * tilegx-tdep.c: New file.
2375 * tilegx-linux-tdep.c: New file.
2376 * regformats/reg-tilegx.dat: New file.
2377
2378 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2379
2380 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2381 accounting of hw watchpoints on ppc.
2382
2383 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2384
2385 * source.c (openp): Expand tilde in path entries.
2386
2387 2012-05-29 Doug Evans <dje@google.com>
2388
2389 * buildsym.c (block_compar): Fix comment.
2390 (end_symtab): Fix and clarify some comments.
2391
2392 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2393 cleanup_undefined_types.
2394 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2395 All callers updated.
2396
2397 2012-05-29 Tom Tromey <tromey@redhat.com>
2398
2399 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2400 fails.
2401 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2402 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2403 fails.
2404 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2405 fails.
2406
2407 2012-05-29 Tristan Gingold <gingold@adacore.com>
2408
2409 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2410 (struct darwin_info): ... New struct.
2411 (solib_darwin_pspace_data): New variable.
2412 (darwin_pspace_data_cleanup): New function.
2413 (get_darwin_info): Likewise.
2414 (darwin_dyld_version_ok, darwin_load_image_infos)
2415 (darwin_solib_get_all_image_info_addr_at_init)
2416 (darwin_solib_read_all_image_info_addr): Add info argument.
2417 Adjust code.
2418 (darwin_current_sos): Use per pspace structure.
2419 (darwin_solib_create_inferior_hook): Likewise.
2420 (darwin_clear_solib): Likewise.
2421 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2422
2423 2012-05-28 Pedro Alves <palves@redhat.com>
2424
2425 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2426 block that uses them. Clear ecss before handling each event.
2427
2428 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2429
2430 * solib-svr4.c (svr4_current_sos): New comment on
2431 svr4_current_sos_via_xfer_libraries fall back.
2432
2433 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2434
2435 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2436 it as a fallback for TYPE_IS_OPAQUE.
2437 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2438 symbols for lookup_symbol.
2439
2440 2012-05-24 John Steele Scott <toojays@toojays.net>
2441
2442 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2443 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2444 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2445 (check_producer): ... this new function, which also checks for ICC
2446 and caches the result.
2447 (producer_is_icc): New function.
2448 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2449 producer was ICC.
2450
2451 2012-05-24 Pedro Alves <palves@redhat.com>
2452
2453 PR gdb/7205
2454
2455 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2456 (default_gdb_signal_to_target): ... this. Add comment.
2457 (default_gdb_signal_from_host): Rename to ...
2458 (default_gdb_signal_from_target): ... this. Add comment.
2459 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2460 (default_gdb_signal_to_target): ... this.
2461 (default_gdb_signal_from_host): Rename to ...
2462 (default_gdb_signal_from_target): ... this.
2463 * corelow.c (core_open): Adjust to naming change. Replace comment.
2464 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2465 (gdb_signal_from_target): ... this. Adjust to
2466 default_gdb_signal_from_host naming change. Extend comment.
2467 (gdb_signal_to_host): Rename to ...
2468 (gdb_signal_to_target): ... this. Adjust to
2469 default_gdb_signal_to_host naming change.
2470 * gdbarch.h, gdbarch.c: Renegerate.
2471
2472 2012-05-24 Pedro Alves <palves@redhat.com>
2473
2474 PR gdb/7205
2475
2476 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2477
2478 2012-05-24 Pedro Alves <palves@redhat.com>
2479
2480 PR gdb/7205
2481
2482 Replace target_signal with gdb_signal throughout.
2483
2484 2012-05-24 Pedro Alves <palves@redhat.com>
2485
2486 PR tui/14159
2487
2488 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2489 string, instead of reusing the va_list argument.
2490
2491 2012-05-24 Tom Tromey <tromey@redhat.com>
2492
2493 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2494 Remove.
2495
2496 2012-05-23 Doug Evans <dje@google.com>
2497
2498 * symtab.c (search_symbols): Formatting fixes.
2499 (print_symbol_info): Formatting fixes.
2500
2501 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2502 int64_t change to leb128 API.
2503 (read_encoded_value, decode_frame_entry_1): Ditto.
2504 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2505 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2506 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2507 (execute_stack_op): Ditto.
2508 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2509 (safe_read_uleb128, safe_read_sleb128): Ditto.
2510 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2511 (dwarf2_compile_expr_to_ax): Ditto.
2512 (locexpr_describe_location_piece): Ditto.
2513 (disassemble_dwarf_expression): Ditto.
2514 (locexpr_describe_location_1): Ditto.
2515
2516 2012-05-23 Stan Shebs <stan@codesourcery.com>
2517 Kwok Cheung Yeung <kcy@codesourcery.com>
2518
2519 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2520 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2521 (mi-cmd-info.o): New rule.
2522 * osdata.h (info_osdata_command): New declaration.
2523 * osdata.c (info_osdata_command): Change to non-static.
2524 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2525 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2526 * mi/mi-cmd-info.c: New file.
2527
2528 2012-05-23 Doug Evans <dje@google.com>
2529
2530 * symtab.c (search_symbols): Pass NULL for file_matcher to
2531 expand_symtabs_matching if there are no files to match.
2532
2533 * gdbtypes.c (lookup_typename): Simplify.
2534
2535 2012-05-23 Pedro Alves <palves@redhat.com>
2536
2537 * arch-utils.h (default_target_signal_to_host): Delete.
2538 * arch-utils.c (default_target_signal_to_host): Delete.
2539 * gdbarch.sh (target_signal_to_host): Remove.
2540 * gdbarch.h, gdbarch.c: Regenerate.
2541
2542 2012-05-22 Doug Evans <dje@google.com>
2543
2544 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2545 "const gdb_byte *".
2546 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2547 (execute_cfa_program): Update to match API of leb128 functions.
2548 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2549 "const gdb_byte *".
2550 (read_unsigned_leb128, read_signed_leb128): Delete.
2551 (read_initial_length): Change type of buf argument to
2552 "const gdb_byte *".
2553 (read_encoded_value): Update to match API of leb128 functions.
2554 (decode_frame_entry): Change result to "const gdb_byte *", and
2555 similarly for "start" parameter.
2556 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2557 (dwarf2_build_frame_info): Change local frame_ptr to
2558 "const gdb_byte *".
2559 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2560 read_uleb128, read_sleb128. All callers updated.
2561 (safe_skip_leb128): New function.
2562 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2563 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2564 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2565 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2566 read_uleb128, read_sleb128.
2567 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2568 (execute_stack_op): Update to match API of leb128 functions.
2569 * dwarf2expr.h: #include "leb128.h".
2570 (read_uleb128, read_sleb128): Delete.
2571 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2572 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2573 * dwarf2loc.c (debug_loc_kind): New enum.
2574 (decode_debug_loc_addresses): New function.
2575 (decode_debug_loc_dwo_addresses): New function.
2576 (dwarf2_find_location_expression): Rewrite.
2577 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2578 (locexpr_describe_location_piece): Ditto.
2579 (disassemble_dwarf_expression): Ditto.
2580 (locexpr_describe_location_1): Ditto.
2581 (loclist_describe_location): Rewrite.
2582 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2583 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2584 (dwarf2_section_buffer_overflow_complaint): Renamed from
2585 dwarf2_macros_too_long_complaint. All callers updated.
2586 (skip_leb128): Delete.
2587 (init_cu_die_reader): Initialize reader->buffer_end.
2588 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2589 (skip_form_bytes): New arg buffer_end. All callers updated.
2590 Replace call to skip_leb128 with gdb_skip_leb128.
2591 (skip_unknown_opcode): New arg mac_end. All callers updated.
2592 (fill_in_loclist_baton): Initialize baton->from_dwo.
2593
2594 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2595
2596 * mips-linux-nat.c (mips_linux_read_description): Use a more
2597 verbose error message.
2598
2599 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2600
2601 * NEWS: Add MIPS/Linux DSP support.
2602 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2603 (SIGCONTEXT_DSPCTL): New macro.
2604 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2605 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2606 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2607 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2608 (N64_SIGCONTEXT_HI3): Likewise.
2609 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2610 (N64_SIGCONTEXT_LO3): Likewise.
2611 (N64_SIGCONTEXT_DSPCTL): Likewise.
2612 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2613 (mips_linux_o32_sigframe_init): Handle DSP registers.
2614 (mips_linux_n32n64_sigframe_init): Likewise.
2615
2616 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2617
2618 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2619 call to abort.
2620
2621 2012-05-22 Pedro Alves <palves@redhat.com>
2622
2623 * target.h (store_waitstatus): Move declaration ...
2624 * inf-child.h (store_waitstatus): ... here.
2625 * target.c: Move inclusion of gdb_wait.h, and ...
2626 (store_waitstatus): ... this ...
2627 * inf-child.c: ... here.
2628 * linux-nat.c: Include inf-child.h.
2629 * rs6000-nat.c: Include inf-child.h.
2630 * spu-linux-nat.c: Include inf-child.h.
2631
2632 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2633
2634 * tracepoint.c (start_tracing): Add missing i18n markup.
2635 (stop_tracing, set_trace_user): Ditto.
2636 (set_trace_notes, set_trace_stop_notes): Ditto.
2637
2638 2012-05-21 Tom Tromey <tromey@redhat.com>
2639
2640 PR c++/7173:
2641 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2642 types.
2643 * value.h (value_cast_pointers): Update.
2644 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2645 (value_cast): Update.
2646 (update_search_result): New function.
2647 (do_search_struct_field): New, from search_struct_field. Check
2648 for ambiguous results.
2649 (search_struct_field): Rewrite.
2650 * infcall.c (value_arg_coerce): Update.
2651 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2652 value_cast_pointers.
2653 * ada-lang.c (ada_convert_actual): Update.
2654
2655 2012-05-21 Tom Tromey <tromey@redhat.com>
2656
2657 * macroexp.c (macro_stringify): Terminate the string.
2658
2659 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2660
2661 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2662 Describe it.
2663 * auto-load.c (auto_load_expand_dir_vars): New function.
2664 (auto_load_safe_path_vec_update): Use it, remove the
2665 substitute_path_component call thanks to it.
2666 (auto_load_objfile_script): Remove the debug_file_directory processing.
2667 Use auto_load_expand_dir_vars, remove the substitute_path_component
2668 call thanks to it.
2669 * configure: Regenerate.
2670 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2671 path. Escape $ also for $debugdir.
2672 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2673 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2674
2675 2012-05-20 Doug Evans <dje@google.com>
2676
2677 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2678 before use. Check for symtab->includes == NULL before scanning it.
2679
2680 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2681
2682 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2683
2684 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2685
2686 * NEWS: Add microMIPS support and "set mips compression",
2687 "show mips compression" commands.
2688 * mips-tdep.h (mips_isa): New enum.
2689 (gdbarch_tdep): Add mips_isa.
2690 (mips_pc_is_mips16): Update prototype.
2691 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2692 * mips-tdep.c (mips_compression_mips16): New variable.
2693 (mips_compression_micromips): Likewise.
2694 (mips_compression_strings): Likewise.
2695 (mips_compression_string): Likewise.
2696 (is_mips16_isa, is_micromips_isa): New functions.
2697 (is_mips16_addr): Rename to...
2698 (is_compact_addr): ... this.
2699 (unmake_mips16_addr): Likewise to...
2700 (unmake_compact_addr): ... this.
2701 (make_mips16_addr): Likewise to...
2702 (make_compact_addr): ... this.
2703 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2704 functions.
2705 (mips_elf_make_msymbol_special): Handle microMIPS code.
2706 (msymbol_is_special): Rename to...
2707 (msymbol_is_mips16): ... this.
2708 (mips_make_symbol_special, mips_pc_is_mips16): Update
2709 accordingly.
2710 (msymbol_is_mips, msymbol_is_micromips): New functions.
2711 (mips16_to_32_reg): Rename to...
2712 (mips_reg3_to_reg): ... this.
2713 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2714 (mips_pc_isa): Likewise.
2715 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2716 code.
2717 (mips_fetch_instruction): Pass return status instead of printing
2718 an error message if requested. Handle microMIPS code. Bail out
2719 on an invalid ISA.
2720 (micromips_op): New macro.
2721 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2722 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2723 (b6s4_op, b7s3_reg): Likewise.
2724 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2725 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2726 (mips_insn_size): New function.
2727 (mips32_next_pc): Update mips_fetch_instruction call.
2728 (micromips_relative_offset7): New function.
2729 (micromips_relative_offset10): Likewise.
2730 (micromips_relative_offset16): Likewise.
2731 (micromips_pc_insn_size): Likewise.
2732 (micromips_bc1_pc): Likewise.
2733 (micromips_next_pc): Likewise.
2734 (unpack_mips16): Update mips_fetch_instruction call.
2735 (extended_mips16_next_pc): Update according to change to
2736 mips16_to_32_reg.
2737 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2738 code.
2739 (mips16_scan_prologue): Update mips_fetch_instruction call.
2740 Update according to change to mips16_to_32_reg.
2741 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2742 (mips_insn16_frame_base_sniffer): Likewise.
2743 (micromips_decode_imm9): New function.
2744 (micromips_scan_prologue): Likewise.
2745 (mips_micro_frame_cache): Likewise.
2746 (mips_micro_frame_this_id): Likewise.
2747 (mips_micro_frame_prev_register): Likewise.
2748 (mips_micro_frame_sniffer): Likewise.
2749 (mips_micro_frame_unwind): New variable.
2750 (mips_micro_frame_base_address): New function.
2751 (mips_micro_frame_base): New variable.
2752 (mips_micro_frame_base_sniffer): New function.
2753 (mips32_scan_prologue): Update mips_fetch_instruction call.
2754 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2755 rather than for MIPS16.
2756 (mips_insn32_frame_base_sniffer): Likewise.
2757 (mips_addr_bits_remove): Handle microMIPS code.
2758 (deal_with_atomic_sequence): Rename to...
2759 (mips_deal_with_atomic_sequence): ... this. Update the type
2760 of the variable used to hold an instruction. Remove the ISA bit
2761 check. Update mips_fetch_instruction call.
2762 (micromips_deal_with_atomic_sequence): New function.
2763 (deal_with_atomic_sequence): Likewise.
2764 (mips_about_to_return): Handle microMIPS code. Update
2765 mips_fetch_instruction call.
2766 (heuristic_proc_start): Check for the standard MIPS ISA rather
2767 than for MIPS16. Update mips_pc_is_mips16 and
2768 mips_fetch_instruction calls. Handle microMIPS code.
2769 (mips_push_dummy_code): Handle microMIPS code.
2770 (mips_eabi_push_dummy_call): Likewise.
2771 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2772 (mips_o64_push_dummy_call): Handle microMIPS code.
2773 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2774 (is_delayed): Remove function.
2775 (mips_single_step_through_delay): Replace the call to is_delayed
2776 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2777 Handle microMIPS code.
2778 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2779 microMIPS code.
2780 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2781 call.
2782 (micromips_in_function_epilogue_p): New function.
2783 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2784 call.
2785 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2786 Handle microMIPS.
2787 (gdb_print_insn_mips): Likewise.
2788 (mips_breakpoint_from_pc): Likewise.
2789 (mips_remote_breakpoint_from_pc): New function.
2790 (mips32_instruction_has_delay_slot): Simplify making use of the
2791 updated mips_fetch_instruction interface.
2792 (micromips_instruction_has_delay_slot): New function.
2793 (mips16_instruction_has_delay_slot): Simplify making use of the
2794 updated mips_fetch_instruction interface.
2795 (mips_adjust_breakpoint_address): Check for the standard MIPS
2796 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2797 calls. Handle microMIPS code.
2798 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2799 (mips_skip_trampoline_code): Handle microMIPS code.
2800 (global_mips_compression): New function.
2801 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2802 file flags. Register the microMIPS remote breakpoint handler
2803 and heuristic frame unwinder.
2804 (show_mips_compression): New function.
2805 (_initialize_mips_tdep): Add the "set mips compression" and
2806 "show mips compression" commands.
2807
2808 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2809
2810 * ada-lang.c:
2811 * ada-tasks.c:
2812 * ada-varobj.c:
2813 * amd64-darwin-tdep.c:
2814 * arm-symbian-tdep.c:
2815 * arm-tdep.c:
2816 * avr-tdep.c:
2817 * ax-gdb.c:
2818 * bfin-linux-tdep.c:
2819 * breakpoint.c:
2820 * c-valprint.c:
2821 * cli/cli-cmds.c:
2822 * coffread.c:
2823 * cp-support.c:
2824 * cris-tdep.c:
2825 * dwarf2-frame-tailcall.c:
2826 * dwarf2-frame.c:
2827 * dwarf2expr.c:
2828 * dwarf2loc.c:
2829 * dwarf2read.c:
2830 * elfread.c:
2831 * eval.c:
2832 * expprint.c:
2833 * f-valprint.c:
2834 * frv-tdep.c:
2835 * h8300-tdep.c:
2836 * hppa-hpux-tdep.c:
2837 * hppa-tdep.c:
2838 * hppanbsd-tdep.c:
2839 * i386-nto-tdep.c:
2840 * i386-tdep.c:
2841 * i387-tdep.c:
2842 * ia64-tdep.c:
2843 * jit.c:
2844 * linespec.c:
2845 * linux-tdep.c:
2846 * lm32-tdep.c:
2847 * m2-valprint.c:
2848 * m32c-tdep.c:
2849 * m32r-rom.c:
2850 * m32r-tdep.c:
2851 * m68k-tdep.c:
2852 * m68klinux-tdep.c:
2853 * mi/mi-main.c:
2854 * microblaze-tdep.c:
2855 * mips-linux-tdep.c:
2856 * mips-tdep.c:
2857 * mn10300-tdep.c:
2858 * p-valprint.c:
2859 * parse.c:
2860 * ppc-linux-tdep.c:
2861 * ppc-sysv-tdep.c:
2862 * printcmd.c:
2863 * python/py-finishbreakpoint.c:
2864 * python/py-inferior.c:
2865 * python/py-infthread.c:
2866 * python/py-type.c:
2867 * python/python.c:
2868 * remote-fileio.c:
2869 * remote-m32r-sdi.c:
2870 * remote-mips.c:
2871 * reverse.c:
2872 * rl78-tdep.c:
2873 * rs6000-aix-tdep.c:
2874 * rs6000-tdep.c:
2875 * s390-tdep.c:
2876 * score-tdep.c:
2877 * sh64-tdep.c:
2878 * skip.c:
2879 * solib-darwin.c:
2880 * solib-dsbt.c:
2881 * solib-frv.c:
2882 * sparc-tdep.c:
2883 * spu-multiarch.c:
2884 * spu-tdep.c:
2885 * stack.c:
2886 * symfile.c:
2887 * symtab.c:
2888 * tic6x-tdep.c:
2889 * tracepoint.c:
2890 * v850-tdep.c:
2891 * valarith.c:
2892 * valprint.c:
2893 * value.c:
2894 * xcoffread.c:
2895 * xtensa-tdep.c:
2896 * ada-lang.c:
2897 * ada-tasks.c:
2898 * ada-varobj.c:
2899 * amd64-darwin-tdep.c:
2900 * arm-symbian-tdep.c:
2901 * arm-tdep.c: Delete unused variables.
2902
2903 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2904
2905 Rename $ddir to $datadir.
2906 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2907 * auto-load.c (auto_load_safe_path_vec_update)
2908 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2909 * configure: Regenerate.
2910 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2911 Likewise. Remove the 'use $ddir' help string.
2912
2913 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2914
2915 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2916 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2917
2918 2012-05-18 Tom Tromey <tromey@redhat.com>
2919
2920 PR exp/13907:
2921 * valprint.h (struct value_print_options) <symbol_print>: New
2922 field.
2923 * valprint.c (user_print_options): Add default for symbol_print.
2924 (show_symbol_print): New function.
2925 (generic_val_print): Respect symbol_print.
2926 (_initialize_valprint): Add "print symbol" setting.
2927 * f-valprint.c (f_val_print): Respect symbol_print.
2928 * c-valprint.c (c_val_print): Respect symbol_print.
2929 * NEWS: Update.
2930 * printcmd.c (print_address_symbolic): Return int. Ignore some
2931 zero-size symbols.
2932 (print_address_demangle): Return int.
2933 * defs.h: (print_address_symbolic): Return int.
2934 * value.h (print_address_demangle): Return int.
2935
2936 2012-05-18 Tom Tromey <tromey@redhat.com>
2937
2938 * valprint.c (val_print_string): Don't print leading space.
2939 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2940 print space before string or vtbl.
2941 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2942 before string.
2943 * jv-valprint.c (java_value_print): Print space before string.
2944 * go-valprint.c (print_go_string): Print space before string.
2945 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2946 space before string.
2947 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2948 space before string or vtbl.
2949 * auxv.c (fprint_target_auxv): Print space after address.
2950
2951 2012-05-18 Tom Tromey <tromey@redhat.com>
2952
2953 * printcmd.c (print_address_demangle): Remove special case for 0.
2954
2955 2012-05-18 Tom Tromey <tromey@redhat.com>
2956
2957 * printcmd.c (print_address_demangle): Add 'opts' argument.
2958 * p-valprint.c (pascal_val_print): Update.
2959 * jv-valprint.c (java_val_print): Update.
2960 * value.h: Update.
2961 * valprint.c (generic_val_print): Update.
2962 (print_function_pointer_address): Add 'options' argument. Remove
2963 'addressprint' argument. Update.
2964 * m2-valprint.c (print_unpacked_pointer): Update.
2965 * gnu-v3-abi.c (print_one_vtable): Update.
2966 (gnuv3_print_method_ptr): Update.
2967 * f-valprint.c (f_val_print): Update.
2968 * cp-valprint.c (cp_print_value_fields): Update.
2969 * valprint.h (print_function_pointer_address): Update.
2970 * c-valprint.c (c_val_print): Update.
2971
2972 2012-05-18 Tom Tromey <tromey@redhat.com>
2973
2974 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2975 directly corresponding to the found psymtab.
2976 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2977 (dw2_find_pc_sect_symtab): Use it.
2978 * block.h (blockvector_contains_pc): Declare.
2979 * block.c (find_block_in_blockvector): New function.
2980 (blockvector_for_pc_sect): Use it.
2981 (blockvector_contains_pc): New function.
2982
2983 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2984
2985 * mips-tdep.h (mips_write_pc): New prototype.
2986 * mips-tdep.c (mips_write_pc): Make external, add description.
2987 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
2988 add description.
2989
2990 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2991
2992 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
2993 mips_regnum->pc.
2994 (mips_unwind_pc, mips_write_pc): Likewise.
2995 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
2996 gdbarch_read_pc.
2997
2998 2012-05-17 Joel Brobecker <brobecker@adacore.com>
2999
3000 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
3001 proc_warn, proc_error, proc_get_status, proc_flags,
3002 proc_why, proc_what, proc_nsysarg, proc_sysargs,
3003 proc_set_run_on_last_close, proc_unset_run_on_last_close,
3004 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
3005 proc_stop_process, proc_wait_for_stop, proc_run_process,
3006 proc_set_traced_signals, proc_set_traced_faults,
3007 proc_set_traced_sysentry, proc_set_traced_sysexit,
3008 proc_set_held_signals, proc_get_held_signals,
3009 proc_get_traced_signals, proc_get_traced_faults,
3010 proc_get_traced_sysentry, proc_get_traced_sysexit,
3011 proc_clear_current_fault, proc_set_current_signal,
3012 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
3013 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
3014 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
3015 proc_get_current_thread, proc_get_current_thread,
3016 proc_get_current_thread, proc_update_threads,
3017 proc_update_threads, proc_update_threads, proc_update_threads,
3018 proc_iterate_over_threads, procfs_find_new_threads,
3019 procfs_pid_to_str): Make static. Remove advance declaration.
3020 (proc_cursig): Make static. Conditionalized defintion on
3021 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
3022 (proc_syscall, proc_set_kill_on_last_close,
3023 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
3024 proc_get_pending_signals, proc_get_signal_actions,
3025 proc_trace_signal, proc_ignore_signal): Delete.
3026
3027 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3028
3029 * coffread.c (cs_section_address): Passing proper argument for
3030 `bfd_get_section_vma'.
3031 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
3032 `bfd_get_section_flags'.
3033 * remote.c (remote_trace_set_readonly_regions): Likewise, for
3034 `bfd_get_section_vma'.
3035
3036 2012-05-16 Tom Tromey <tromey@redhat.com>
3037
3038 PR macros/13205:
3039 * macrotab.h: (macro_define_special): Declare.
3040 (enum macro_special_kind): New.
3041 (struct macro_definition) <argc, replacement>: Update comments.
3042 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
3043 (macro_define_object_internal): New function.
3044 (macro_define_object): Use it.
3045 (macro_define_special): New function.
3046 (fixup_definition): New function.
3047 (macro_lookup_definition, foreach_macro_in_scope)
3048 (foreach_macro): Use fixup_definition.
3049 * macroexp.h (macro_stringify): Declare.
3050 * macroexp.c (free_buffer_return_text): New function.
3051 (stringify): Constify "arg".
3052 (macro_stringify): New function.
3053 * dwarf2read.c (macro_start_file): Call macro_define_special.
3054
3055 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
3056 Maciej W. Rozycki <macro@mips.com>
3057
3058 * breakpoint.h (bp_location): Add related_address member.
3059 * inferior.h (get_return_value): Take a pointer to struct value
3060 instead of struct type for the function requested.
3061 * value.h (using_struct_return): Likewise.
3062 * gdbarch.sh (return_value): Take a pointer to struct value
3063 instead of struct type for the function requested.
3064 * breakpoint.c (set_breakpoint_location_function): Initialize
3065 related_address for bp_gnu_ifunc_resolver breakpoints.
3066 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
3067 requested function's address to gdbarch_return_value.
3068 * eval.c (evaluate_subexp_standard): Pass the requested
3069 function's address to using_struct_return.
3070 * infcall.c (call_function_by_hand): Pass the requested
3071 function's address to using_struct_return and
3072 gdbarch_return_value.
3073 * infcmd.c (get_return_value): Take a pointer to struct value
3074 instead of struct type for the function requested.
3075 (print_return_value): Update accordingly.
3076 (finish_command_continuation): Likewise.
3077 * stack.c (return_command): Pass the requested function's
3078 address to using_struct_return and gdbarch_return_value.
3079 * value.c (using_struct_return): Take a pointer to struct value
3080 instead of struct type for the function requested. Pass the
3081 requested function's address to gdbarch_return_value.
3082 * python/py-finishbreakpoint.c (finish_breakpoint_object):
3083 New function_value member, replacing function_type.
3084 (bpfinishpy_dealloc): Update accordingly.
3085 (bpfinishpy_pre_stop_hook): Likewise.
3086 (bpfinishpy_init): Likewise. Record the requested function's
3087 address.
3088 * mips-tdep.c (mips_fval_reg): New enum.
3089 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
3090 words put in GP registers.
3091 (mips_o64_push_dummy_call): Update a comment.
3092 (mips_o32_return_value): Take a pointer to struct value instead
3093 of struct type for the function requested and use it to check if
3094 using the MIPS16 calling convention. Return the designated
3095 general purpose registers for floating-point values returned in
3096 MIPS16 mode.
3097 (mips_o64_return_value): Likewise.
3098 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
3099 (ppc_sysv_abi_broken_return_value): Likewise.
3100 (ppc64_sysv_abi_return_value): Likewise.
3101 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
3102 value instead of struct type for the function requested.
3103 * amd64-tdep.c (amd64_return_value): Likewise.
3104 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
3105 * arm-tdep.c (arm_return_value): Likewise.
3106 * avr-tdep.c (avr_return_value): Likewise.
3107 * bfin-tdep.c (bfin_return_value): Likewise.
3108 * cris-tdep.c (cris_return_value): Likewise.
3109 * frv-tdep.c (frv_return_value): Likewise.
3110 * h8300-tdep.c (h8300_return_value): Likewise.
3111 (h8300h_return_value): Likewise.
3112 * hppa-tdep.c (hppa32_return_value): Likewise.
3113 (hppa64_return_value): Likewise.
3114 * i386-tdep.c (i386_return_value): Likewise.
3115 * ia64-tdep.c (ia64_return_value): Likewise.
3116 * iq2000-tdep.c (iq2000_return_value): Likewise.
3117 * lm32-tdep.c (lm32_return_value): Likewise.
3118 * m32c-tdep.c (m32c_return_value): Likewise.
3119 * m32r-tdep.c (m32r_return_value): Likewise.
3120 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
3121 * m68k-tdep.c (m68k_return_value): Likewise.
3122 (m68k_svr4_return_value): Likewise.
3123 * m88k-tdep.c (m88k_return_value): Likewise.
3124 * mep-tdep.c (mep_return_value): Likewise.
3125 * microblaze-tdep.c (microblaze_return_value): Likewise.
3126 * mn10300-tdep.c (mn10300_return_value): Likewise.
3127 * moxie-tdep.c (moxie_return_value): Likewise.
3128 * mt-tdep.c (mt_return_value): Likewise.
3129 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
3130 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
3131 (ppc_sysv_abi_broken_return_value): Likewise.
3132 (ppc64_sysv_abi_return_value): Likewise.
3133 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
3134 * rl78-tdep.c (rl78_return_value): Likewise.
3135 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
3136 * rx-tdep.c (rx_return_value): Likewise.
3137 * s390-tdep.c (s390_return_value): Likewise.
3138 * score-tdep.c (score_return_value): Likewise.
3139 * sh-tdep.c (sh_return_value_nofpu): Likewise.
3140 (sh_return_value_fpu): Likewise.
3141 * sh64-tdep.c (sh64_return_value): Likewise.
3142 * sparc-tdep.c (sparc32_return_value): Likewise.
3143 * sparc64-tdep.c (sparc64_return_value): Likewise.
3144 * spu-tdep.c (spu_return_value): Likewise.
3145 * tic6x-tdep.c (tic6x_return_value): Likewise.
3146 * v850-tdep.c (v850_return_value): Likewise.
3147 * vax-tdep.c (vax_return_value): Likewise.
3148 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3149 * xtensa-tdep.c (xtensa_return_value): Likewise.
3150 * gdbarch.c: Regenerate.
3151 * gdbarch.h: Regenerate.
3152
3153 2012-05-15 Tom Tromey <tromey@redhat.com>
3154
3155 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3156
3157 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3158
3159 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3160 of command in two error message.
3161
3162 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3163
3164 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3165
3166 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3167
3168 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3169
3170 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3171
3172 * NEWS (show auto-load scripts-directory): Add forgotten command.
3173
3174 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3175
3176 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3177 parameters.
3178
3179 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3180
3181 * amd64-tdep.c: Include features/i386/x32.c and
3182 features/i386/x32-avx.c.
3183 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3184 initialize_tdesc_x32_avx.
3185
3186 2012-05-14 Stan Shebs <stan@codesourcery.com>
3187
3188 Add dynamic printf.
3189 * breakpoint.h (enum bptype): New type bp_dprintf.
3190 (struct breakpoint): New field extra_string.
3191 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3192 (create_breakpoint): Add extra_string arg.
3193 * breakpoint.c (dprintf_breakpoint_ops): New.
3194 (is_breakpoint): Add bp_dprintf.
3195 (bpstat_what): Add dprintf case.
3196 (bptype_string): Ditto.
3197 (print_one_breakpoint_location): Ditto.
3198 (init_bp_location): Ditto.
3199 (bkpt_print_mention): Ditto.
3200 (dprintf_style_enums): New array.
3201 (dprintf_style): New global.
3202 (dprintf_function): New global.
3203 (dprintf_channel): New global.
3204 (update_dprintf_command_list): New function.
3205 (update_dprintf_commands): New function.
3206 (init_breakpoint_sal): Add extra_string argument, handle it.
3207 (create_breakpoint_sal): Add extra_string argument.
3208 (create_breakpoints_sal): Add extra_string argument, update callers.
3209 (find_condition_and_thread): Add extra argument.
3210 (create_breakpoint): Add extra_string argument, record it.
3211 (dprintf_command): New function.
3212 (break_command_1): Add arg to create_breakpoint call.
3213 (handle_gnu_v3_exceptions): Ditto.
3214 (trace_command): Ditto.
3215 (ftrace_command): Ditto.
3216 (strace_command): Ditto.
3217 (bkpt_print_mention): Add dprintf case.
3218 (create_breakpoint_sal_default): Add extra_string argument.
3219 (_initialize_breakpoint): Add new commands.
3220 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3221 * python/py-breakpoint.c (bppy_init): Ditto.
3222 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3223
3224 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3225
3226 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3227
3228 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3229
3230 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3231 unsigned long long.
3232
3233 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3234
3235 Add a new function gdb.find_pc_line to the Python API.
3236 * NEWS (Python Scripting): Add entry about the new function.
3237 * python/python.c (gdbpy_find_pc_line): New function which
3238 implements gdb.find_pc_line.
3239 (GdbMethods): Add entry for the new function.
3240
3241 2012-05-12 Pedro Alves <palves@redhat.com>
3242
3243 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3244 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3245
3246 2012-05-12 Eli Zaretskii <eliz@gnu.org>
3247
3248 * inferior.c: Include completer.h
3249 (initialize_inferiors): Set completer of add-inferior to
3250 filename_completer.
3251
3252 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3253
3254 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3255 gdbarch_ptr_bit for x32 core dump.
3256
3257 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3258
3259 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3260 and features/i386/x32-avx-linux.c.
3261
3262 2012-05-11 Stan Shebs <stan@codesourcery.com>
3263 Kwok Cheung Yeung <kcy@codesourcery.com>
3264
3265 * NEWS: Describe new info os commands.
3266 * common/linux-osdata.c (PID_T, TIME_T): Define.
3267 (MAX_PID_T_STRLEN): New.
3268 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3269 MAX_PID_T_STRLEN.
3270 (command_from_pid): Add comment. Change to use PID_T.
3271 (commandline_from_pid): Change to use PID_T.
3272 (user_from_pid): Add comment.
3273 (get_process_owner): Add comment. Change to use PID_T and
3274 MAX_PID_T_STRLEN.
3275 (get_number_of_cpu_cores): Add comment.
3276 (get_cores_used_by_process): Add comment. Change to use PID_T and
3277 MAX_PID_T_STRLEN.
3278 (linux_xfer_osdata_processes): Change to use PID_T and
3279 MAX_PID_T_STRLEN.
3280 (compare_processes): New function.
3281 (linux_xfer_osdata_processgroups): New function.
3282 (linux_xfer_osdata_threads): Change to use PID_T.
3283 (linux_xfer_osdata_fds): New function.
3284 (format_socket_state, print_sockets): New functions.
3285 (union socket_addr): New union.
3286 (linux_xfer_osdata_isockets): New function.
3287 (time_from_time_t, group_from_gid): New functions.
3288 (linux_xfer_osdata_shm): New function.
3289 (linux_xfer_osdata_sem): New function.
3290 (linux_xfer_osdata_msg): New function.
3291 (linux_xfer_osdata_modules): New function.
3292 (osdata_table): Add new entries.
3293 * common/buffer.c (buffer_xml_printf): Add support for long and
3294 long long format specifiers.
3295
3296 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3297
3298 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3299 (tdesc_x32_avx_linux): Likewise.
3300
3301 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3302
3303 Implement multi-component --with-auto-load-dir.
3304 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3305 entries.
3306 (--with-auto-load-safe-path): Update the default value description.
3307 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3308 New.
3309 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3310 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3311 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3312 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3313 "set auto-load scripts-directory".
3314 * config.in: Regenerate.
3315 * configure: Regenerate.
3316 * configure.ac (--with-auto-load-dir): New configure option.
3317 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3318
3319 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3320
3321 Provide $ddir substitution for --with-auto-load-safe-path.
3322 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3323 entries.
3324 * auto-load.c: Include observer.h.
3325 (auto_load_safe_path_vec_update): Call substitute_path_component for
3326 each component. New variable ddir_subst.
3327 (auto_load_gdb_datadir_changed): New function.
3328 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3329 AUTO_LOAD_SAFE_PATH. New comment.
3330 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3331 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3332 * config.in: Regenerate.
3333 * configure: Regenerate.
3334 * configure.ac (--auto-load-safe-path): Rename
3335 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3336 GDB_DATADIR/auto-load.
3337 * defs.h (substitute_path_component): New declaration.
3338 * top.c: Include observer.h.
3339 (set_gdb_datadir): New function.
3340 (init_main): Install it for "set data-directory".
3341 * utils.c (substitute_path_component): New function.
3342
3343 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3344
3345 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3346 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3347 DEBUG_FILE_DIRECTORY. Handle multiple components of
3348 DEBUG_FILE_DIRECTORY.
3349
3350 2012-05-10 Tom Tromey <tromey@redhat.com>
3351
3352 * dwarf2read.c (recursively_write_psymbols): New function.
3353 (write_psymtabs_to_index): Use it.
3354
3355 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3356 field.
3357 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3358 (load_partial_comp_unit): Update.
3359 (queue_comp_unit): Add argument 'pretend_language'.
3360 (process_queue): Update.
3361 (psymtab_to_symtab_1): Skip dependencies that have a user.
3362 (load_partial_comp_unit_reader): Give meaning to the 'data'
3363 argument.
3364 (load_full_comp_unit): Add 'pretend_language' argument.
3365 (process_full_comp_unit): Add 'pretend_language' argument. Set
3366 language on CU.
3367 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3368 Update.
3369 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3370 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3371 Update.
3372 (prepare_one_comp_unit): Add 'pretend_language' argument.
3373
3374 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3375 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3376 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3377 (dw2_do_instantiate_symtab): Check whether symtab was read in
3378 before queueing.
3379 (dw2_instantiate_symtab): Add assertion. Call
3380 process_cu_includes.
3381 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3382 (partial_symtab_p): New typedef.
3383 (set_partial_user): New function.
3384 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3385 (scan_partial_symbols): Add imported CU to imported_symtabs.
3386 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3387 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3388 (get_symtab, recursively_compute_inclusions)
3389 (compute_symtab_includes, process_cu_includes)
3390 (process_imported_unit_die): New functions.
3391 (process_die) <DW_TAG_imported_unit>: New case.
3392 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3393
3394 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3395 comment.
3396 (struct partial_die_info) <locdesc>: Remove.
3397 <d>: New field.
3398 (process_psymtab_comp_unit): Add 'read_partial' argument.
3399 Update.
3400 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3401 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3402 (add_partial_symbol): Update.
3403 (process_die): Handle DW_TAG_partial_unit.
3404 (read_file_scope): Update comment.
3405 (load_partial_dies): Handle DW_TAG_imported_unit.
3406 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3407 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3408
3409 2012-05-10 Tom Tromey <tromey@redhat.com>
3410
3411 * cc-with-dwz.sh: New file.
3412
3413 2012-05-10 Tom Tromey <tromey@redhat.com>
3414
3415 * symtab.h (struct symtab) <includes, user>: New fields.
3416 * block.h (struct block_iterator) <d, idx, which>: New fields.
3417 * block.c (initialize_block_iterator, find_iterator_symtab)
3418 (block_iterator_step, block_iter_name_step)
3419 (block_iter_match_step): New functions.
3420 (block_iterator_first, block_iterator_next)
3421 (block_iter_name_first, block_iter_name_next)
3422 (block_iter_match_first, block_iter_match_next): Rewrite.
3423 (get_block_symtab): New function.
3424
3425 2012-05-10 Tom Tromey <tromey@redhat.com>
3426
3427 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3428 set_block_symtab.
3429 * jit.c (finalize_symtab): Use allocate_global_block,
3430 set_block_symtab.
3431 * buildsym.c (finish_block_internal): New function, from old
3432 finish_block.
3433 (finish_block): Rewrite.
3434 (end_symtab): Use finish_block_internal, set_block_symtab.
3435 * block.h (struct global_block): New.
3436 (allocate_global_block, set_block_symtab): Declare.
3437 * block.c (allocate_global_block, set_block_symtab): New
3438 functions.
3439
3440 2012-05-10 Tom Tromey <tromey@redhat.com>
3441
3442 * psymtab.c (partial_map_expand_apply): Add assertion.
3443 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3444 (psymtab_to_symtab): Find unshared psymtab.
3445 (dump_psymtab): Print including psymtabs.
3446 (recursively_search_psymtabs): New function.
3447 (expand_symtabs_matching_via_partial): Use it.
3448 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3449 fields.
3450 (enum psymtab_search_status): New.
3451
3452 2012-05-10 Tom Tromey <tromey@redhat.com>
3453
3454 * tracepoint.c (scope_info): Update.
3455 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3456 (find_pc_sect_symtab, search_symbols)
3457 (default_make_symbol_completion_list_break_on)
3458 (make_file_symbol_completion_list): Update.
3459 * symmisc.c (dump_symtab_1): Update.
3460 * stack.c (print_frame_args, iterate_over_block_locals)
3461 (print_frame_labels, iterate_over_block_arg_vars): Update.
3462 * python/py-block.c (block_object) <dict>: Remove.
3463 <block>: New field.
3464 <iter>: Change type.
3465 (blpy_iter): Update.
3466 (blpy_block_syms_iternext): Update.
3467 * psymtab.c (map_block): Use block iterators.
3468 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3469 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3470 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3471 * infrun.c (check_exception_resume): Update.
3472 * cp-support.c (make_symbol_overload_list_block): Update.
3473 * coffread.c (patch_opaque_types): Update.
3474 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3475 * block.h (struct block_iterator): New.
3476 (block_iterator_first, block_iterator_next, block_iter_name_first)
3477 (block_iter_name_next, block_iter_match_first)
3478 (block_iter_match_next): Declare.
3479 (ALL_BLOCK_SYMBOLS): Redefine.
3480 * block.c (block_iterator_first, block_iterator_next)
3481 (block_iter_name_first, block_iter_name_next)
3482 (block_iter_match_first, block_iter_match_next): New functions.
3483 * ada-lang.c (ada_add_block_symbols)
3484 (ada_make_symbol_completion_list): Use block iterator.
3485
3486 2012-05-10 Tom Tromey <tromey@redhat.com>
3487
3488 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3489 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3490 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3491 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3492 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3493 Update.
3494
3495 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3496
3497 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3498 print-file-var-lib2.c, print-file-var-main.c and
3499 print-file-var.exp (located in gdb/testsuite/gdb.base).
3500
3501 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3502
3503 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3504 try locating the symbol in the symbol's own objfile first, before
3505 extending the search to all objfiles.
3506 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3507 out of lookup_symbol_aux_symtabs.
3508 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3509 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3510 Do not search EXCLUDE_OBJFILE.
3511 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3512 (lookup_symbol_global): Search for matches in the block's objfile
3513 first, before searching all other objfiles.
3514
3515 2012-05-10 Tristan Gingold <gingold@adacore.com>
3516
3517 * printcmd.c (set_command): Add pre/post inc/dec.
3518
3519 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3520
3521 * gdb.1: Document -ex option.
3522
3523 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3524
3525 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3526 * inferior.h (AT_SYMBOL): Delete.
3527
3528 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3529
3530 * mips-tdep.c (mips_push_dummy_code): New function.
3531 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3532 ON_STACK and install mips_push_dummy_code as our gdbarch
3533 push_dummy_code routine.
3534
3535 2012-05-09 Pedro Alves <palves@redhat.com>
3536
3537 * target.c (set_maintenance_target_async_permitted): Rename to ...
3538 (set_target_async_command): ... this.
3539 (show_maintenance_target_async_permitted): Rename to ...
3540 (show_target_async_command): ... this.
3541 (initialize_targets): Adjust.
3542
3543 2012-05-08 Doug Evans <dje@google.com>
3544
3545 * go-exp.y (classify_name): Add missing assignment of fields of
3546 yylval.ssym.
3547
3548 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3549
3550 Display the ">" prompt in interactive mode while reading canned
3551 commands, even when the current interpreter is MI.
3552
3553 * interps.c (interp_set_temp): New function.
3554
3555 * interps.h (interp_set_temp): Add prototype.
3556
3557 * cli/cli-script.c (restore_interp): New cleanup function.
3558 (read_command_lines): Temporarily override the current interpreter
3559 with CLI and arrange for restoring the original one.
3560
3561 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3562
3563 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3564
3565 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3566
3567 * probe.c (parse_probes): Move conditional to check for
3568 debuginfo files from here...
3569 * stap-probe.c (stap_get_probes): ... to here.
3570
3571 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3572 H.J. Lu <hongjiu.lu@intel.com>
3573
3574 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3575 `movl %esp, %ebp' for the X32 ABI.
3576
3577 2012-05-07 Tom Tromey <tromey@redhat.com>
3578
3579 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3580 get_DW_TAG_name.
3581 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3582 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3583 (dwarf_stack_op_name): Remove.
3584 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3585 (decode_locdesc): Use get_DW_OP_name.
3586 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3587 (dwarf2_compile_expr_to_ax): Likewise.
3588 (disassemble_dwarf_expression): Likewise.
3589 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3590
3591 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3592
3593 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3594 (sh_linux_sigtramp_cache): New function.
3595 (sh_linux_sigreturn_init): New function.
3596 (sh_linux_rt_sigreturn_init): New function.
3597 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3598 patterns.
3599 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3600 syscall codes.
3601 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3602 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3603 (sh_linux_init_abi): Add init calls to register new tramp_frame
3604 definitions under 32-bit SH, update comments.
3605
3606 2012-05-07 Pedro Alves <palves@redhat.com>
3607
3608 PR gdb/10952
3609
3610 * amd64-linux-tdep.c: Include glibc-tdep.h.
3611 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3612 gdbarch_skip_solib_resolver callback.
3613
3614 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3615
3616 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3617 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3618 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3619 (add_auto_load_safe_path): Change the error message.
3620 (_initialize_auto_load): Change the "safe-path" help text.
3621 * configure: Regenerate
3622 * configure.ac (--without-auto-load-safe-path): Set
3623 WITH_AUTO_LOAD_SAFE_PATH to /.
3624
3625 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3626
3627 * stap-probe.h: Do not include unecessary `probe.h'.
3628
3629 2012-05-05 Alan Modra <amodra@gmail.com>
3630
3631 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3632 bfd_und_section_ptr.
3633 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3634 and bfd_com_section_ptr.
3635
3636 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3637
3638 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3639
3640 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3641
3642 * windows-nat.h (segment_register_p_ftype): New typedef.
3643 (windows_set_segment_register_p): Add declaration.
3644 * windows-nat.c (segment_register_p): New static global.
3645 (windows_set_segment_register_p): New function.
3646 (do_windows_fetch_inferior_registers): Add special handling
3647 for segment registers.
3648 * amd64-windows-nat.c: #include "amd64-tdep.h".
3649 (amd64_windows_segment_register_p): New function.
3650 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3651 * i386-windows-nat.c: #include "i386-tdep.h".
3652 (i386_windows_segment_register_p): New function.
3653 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3654
3655 2012-05-04 Tristan Gingold <gingold@adacore.com>
3656
3657 * printcmd.c (set_command): Emit a warning if the expression is not
3658 an assignment.
3659
3660 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3661
3662 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3663 Make static.
3664
3665 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3666
3667 * stap-probe.c (stap_is_operator): Change declaration.
3668 (stap_get_opcode): Change return value.
3669 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3670 `stap_parse_argument_1'.
3671
3672 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3673
3674 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3675 debug log.
3676
3677 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3678
3679 Add two new methods global_block and static_block to gdb.Symtab
3680 objects.
3681 * NEWS (Python scripting): Add entry about the new methods.
3682 * python/py-symtab.c (stpy_global_block): New function which
3683 implements the gdb.Symtab.global_block() method.
3684 (stpy_static_block): New function which implements the
3685 gdb.Symtab.static_block() method.
3686 (symtab_object_methods): Add entries for the two new methods.
3687
3688 2012-05-03 Doug Evans <dje@google.com>
3689
3690 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3691 files.
3692
3693 2012-05-03 Yao Qi <yao@codesourcery.com>
3694
3695 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3696 space.
3697 (i386_process_record): Ditto.
3698
3699 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3700
3701 * infcall.c (unwind_on_signal_p): Make static.
3702
3703 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3704
3705 * sol-thread.c (solaris_pid_to_str): Make static.
3706 (_initialize_sol_thread): Add prototype.
3707
3708 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3709
3710 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3711
3712 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3713
3714 * MAINTAINERS: Remove myself.
3715
3716 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3717
3718 Fix --without-auto-load-safe-path for MS-Windows host platform.
3719 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3720
3721 2012-05-02 Eli Zaretskii <eliz@gnu.org>
3722
3723 * gdb_curses.h: Undefine KEY_EVENT before including curses
3724 headers. Move "#undef MOUSE_MOVED" before any curses header
3725 inclusion.
3726
3727 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3728
3729 * features/i386/i386-mmx-linux.c: Regenerate.
3730 * features/rs6000/powerpc-32.c: Likewise.
3731 * features/rs6000/powerpc-32l.c: Likewise.
3732 * features/rs6000/powerpc-403.c: Likewise.
3733 * features/rs6000/powerpc-403gc.c: Likewise.
3734 * features/rs6000/powerpc-405.c: Likewise.
3735 * features/rs6000/powerpc-505.c: Likewise.
3736 * features/rs6000/powerpc-601.c: Likewise.
3737 * features/rs6000/powerpc-602.c: Likewise.
3738 * features/rs6000/powerpc-603.c: Likewise.
3739 * features/rs6000/powerpc-604.c: Likewise.
3740 * features/rs6000/powerpc-64.c: Likewise.
3741 * features/rs6000/powerpc-64l.c: Likewise.
3742 * features/rs6000/powerpc-750.c: Likewise.
3743 * features/rs6000/powerpc-860.c: Likewise.
3744 * features/rs6000/powerpc-e500.c: Likewise.
3745 * features/rs6000/powerpc-e500l.c: Likewise.
3746 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3747 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3748 * features/rs6000/rs6000.c: Likewise.
3749
3750 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3751
3752 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3753 variable.
3754 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3755 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3756 (stap_parse_argument) <e>: Likewise.
3757 (handle_stap_probe) <byte_order>: Likewise.
3758
3759 2012-04-30 Doug Evans <dje@google.com>
3760
3761 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3762 init_and_read_dies_worker. All callers updated.
3763 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3764 replaced with init_cutu_and_read_dies.
3765 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3766 (find_partial_die): Remove FIXME. Don't free current CU.
3767
3768 2012-04-30 Sterling Augustine <saugustine@google.com>
3769
3770 * contrib: New directory.
3771 * contrib/test_pubnames_and_indexes.py: New file.
3772
3773 2012-04-30 Doug Evans <dje@google.com>
3774
3775 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3776 All callers updated.
3777 (init_cu_die_reader): Verify the section is non-empty.
3778 (dwarf_decode_line_header): Don't dereference section->asection
3779 until we know the section is present.
3780
3781 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3782
3783 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3784 probes.
3785
3786 2012-04-29 Yao Qi <yao@codesourcery.com>
3787
3788 * gdb-code-style.el: New hook gdb-markup-hook
3789 and gdb-comment-hook.
3790
3791 2012-04-28 Doug Evans <dje@google.com>
3792
3793 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3794 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3795 objfile->obfd.
3796 * symfile.h (dwarf2_debug_sections): New member addr.
3797 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3798 (ctx_no_get_addr_index): New function.
3799 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3800 (ctx_no_get_addr_index): Declare.
3801 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3802 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3803 (dwarf_expr_ctx_funcs): Update.
3804 (needs_get_addr_index): New function.
3805 (needs_frame_ctx_funcs): Update.
3806 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3807 * dwarf2read.c: #include "gdbcore.h".
3808 (dwarf2_per_objfile): New members addr, dwo_files.
3809 (dwarf2_elf_names): Add entry for addr.
3810 (struct dwo_section_names): New type.
3811 (dwo_section_names): New static global.
3812 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3813 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3814 old debug_types_section member updated to use this.
3815 Rename member debug_types_section to info_or_types_section,
3816 all uses updated.
3817 (signatured_type): Rename member type_offset to type_offset_in_tu,
3818 all uses updated. New member type_offset_in_section.
3819 (struct dwo_sections): New type.
3820 (struct dwo_unit): New type.
3821 (struct dwo_file): New type.
3822 (die_reader_specs): New member dwo_file.
3823 (dwarf2_locate_sections): Watch for .debug_addr.
3824 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3825 (dwarf2_read_section): Get bfd of section from bfd's asection,
3826 instead of objfile.
3827 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3828 (create_signatured_type_table_from_index): Initialize
3829 sig_type->info_or_types_section.
3830 (dw2_get_file_names): Statement lists for type units with DWO files
3831 live in the DWO file.
3832 (create_debug_types_hash_table): New function.
3833 (create_all_type_units): Rewrite.
3834 (init_cu_die_reader): New arg dwo_file, all callers updated.
3835 (init_and_read_dies_worker): Get section from
3836 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3837 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3838 continue reading the CU/TU from there.
3839 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3840 updated. Get section from this_cu->info_or_types_section.
3841 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3842 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3843 DW_FORM_GNU_str_index.
3844 (hash_dwo_file, eq_dwo_file): New functions.
3845 (allocate_dwo_file_hash_table): New function.
3846 (hash_dwo_unit, eq_dwo_unit): New functions.
3847 (allocate_dwo_unit_table): New function.
3848 (dwarf2_locate_dwo_sections): New function.
3849 (struct create_dwo_info_table_data): New type.
3850 (create_debug_info_hash_table_reader): New function.
3851 (create_debug_info_hash_table): New function.
3852 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3853 (lookup_dwo_file): New function.
3854 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3855 (free_dwo_file, free_dwo_file_cleanup): New functions.
3856 (free_dwo_file_from_slot, free_dwo_files): New functions.
3857 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3858 (dwarf2_record_block_ranges): Ditto.
3859 (read_partial_die): Ditto.
3860 (process_enumeration_scope): Update to use type_offset_in_section.
3861 (read_full_die_1): New function.
3862 (read_full_die): Rewrite.
3863 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3864 DW_FORM_GNU_str_index.
3865 (read_addr_index_1, read_addr_index): New functions.
3866 (read_addr_index_from_leb128): New function.
3867 (struct dwarf2_read_addr_index_data): New type.
3868 (dwarf2_read_addr_index_reader): New function.
3869 (dwarf2_read_addr_index): New function.
3870 (read_str_index): New function.
3871 (leb128_size): New function.
3872 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3873 If processing a type unit from a DWO file, get the line section
3874 from the DWO file.
3875 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3876 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3877 DW_FORM_GNU_str_index.
3878 (lookup_die_type): Check whether section offset of type's die is
3879 known before looking it up. Remove assert. Condition can
3880 legimately happen for inter-cu type references.
3881 (dwarf_attr_name): Handle Fission attributes.
3882 (dwarf_form_name): Handle Fission forms.
3883 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3884 DW_FORM_GNU_str_index.
3885 (follow_die_sig): Update to use type_offset_in_section.
3886 (decode_locdesc): New case DW_OP_GNU_addr_index.
3887 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3888 DW_FORM_GNU_str_index.
3889 (cu_debug_loc_section): New function.
3890 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3891 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3892 Free DWO files if present.
3893 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3894
3895 Refactor DIE reading.
3896 * dwarf2read.c (dwarf2_per_objfile): Replace members
3897 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3898 (die_reader_specs): New member "die_section". Temporarily make
3899 member "buffer" non-const, pending constifying all info_ptr uses.
3900 (die_reader_func_ftype): New typedef.
3901 (dw2_get_file_names_reader): New function.
3902 (dw2_get_file_names): Rewrite.
3903 (read_and_check_type_unit_head): Rename arg type_offset to
3904 type_offset_in_tu.
3905 (create_all_type_units): Improve debugging message.
3906 Improve dummy type unit check.
3907 (init_cu_die_reader): New arg "section". All callers updated.
3908 (init_and_read_dies_worker): New function.
3909 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3910 (init_cutu_and_read_dies_no_follow): New function.
3911 (init_cutu_and_read_dies_simple): New function.
3912 (process_psymtab_comp_unit_reader): New function.
3913 (process_psymtab_comp_unit): Delete args section,
3914 is_debug_types_section. Rewrite. All callers updated.
3915 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3916 All callers updated. Rewrite.
3917 (load_partial_comp_unit_reader): New function.
3918 (load_partial_comp_unit): Rewrite.
3919 (skip_children): New arg reader. Delete args buffer, cu.
3920 All callers updated.
3921 (skip_one_die): New arg reader. Delete args buffer, cu.
3922 All callers updated.
3923 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3924 All callers updated.
3925 (load_full_comp_unit_reader): New function.
3926 (load_full_comp_unit): Rewrite.
3927 (read_comp_unit): Delete.
3928 (read_die_and_children_1): Delete, contents moved ...
3929 (read_die_and_children): ... here.
3930 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3931 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3932 All callers updated.
3933 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3934 All callers updated.
3935 (find_partial_die): Rewrite load_all_dies support.
3936 (read_attribute_value): New arg reader. Delete args abfd, cu.
3937 All callers updated.
3938 (read_attribute): New arg reader. Delete args abfd, cu.
3939 All callers updated.
3940 (load_full_type_unit): Add assert.
3941 (read_signatured_type_reader): New function.
3942 (read_signatured_type): Rewrite.
3943 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3944 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3945 All callers updated. Set per_cu->cu = NULL after freeing it.
3946 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3947 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3948 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3949 (set_die_type): Update.
3950 (get_die_type_at_offset): Update.
3951 (read_file_scope): Call prepare_one_comp_unit.
3952 (read_type_unit_scope): Ditto.
3953 (prepare_one_comp_unit): Set producer if present.
3954
3955 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
3956
3957 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3958 gettext function on `error'.
3959
3960 2012-04-27 Doug Evans <dje@google.com>
3961
3962 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3963 is empty.
3964
3965 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3966 Tom Tromey <tromey@redhat.com>
3967
3968 * breakpoint.c (struct breakpoint_objfile_data)
3969 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3970 <exception_probes>: New fields.
3971 (free_breakpoint_probes): New function.
3972 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3973 `_Unwind_DebugHook'.
3974 (create_exception_master_breakpoint): Likewise.
3975 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3976 * infrun.c: Including necessary header files for handling SystemTap
3977 probes.
3978 (handle_inferior_event): Handling longjmp breakpoint and exceptions
3979 via SystemTap probes.
3980 (check_exception_resume): Remove `func' argument. Handle exception
3981 unwinding breakpoint set via a SystemTap probe.
3982 (insert_exception_resume_from_probe): New function.
3983
3984 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3985 Tom Tromey <tromey@redhat.com>
3986 Jan Kratochvil <jan.kratochvil@redhat.com>
3987
3988 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
3989 (COMMON_OBS): Likewise.
3990 (HFILES_NO_SRCDIR): Add `probe'.
3991 * NEWS: Mention support for static and SystemTap probes.
3992 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
3993 SystemTap probes' arguments parser.
3994 * arm-linux-tdep.c: Including headers needed to perform the parsing
3995 of SystemTap probes' arguments.
3996 (arm_stap_is_single_operand): New function.
3997 (arm_stap_parse_special_token): Likewise.
3998 (arm_linux_init_abi): Initializing proper fields used by SystemTap
3999 probes' arguments parser.
4000 * ax-gdb.c (require_rvalue): Removing static declaration.
4001 (gen_expr): Likewise.
4002 * ax-gdb.h (gen_expr): Declaring function.
4003 (require_rvalue): Likewise.
4004 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
4005 (bkpt_probe_breakpoint_ops): New variable.
4006 (momentary_breakpoint_from_master): Set the `probe' value.
4007 (add_location_to_breakpoint): Likewise.
4008 (break_command_1): Using proper breakpoint_ops according to the
4009 argument passed by the user in the command line.
4010 (bkpt_probe_insert_location): New function.
4011 (bkpt_probe_remove_location): Likewise.
4012 (bkpt_probe_create_sals_from_address): Likewise.
4013 (bkpt_probe_decode_linespec): Likewise.
4014 (tracepoint_probe_create_sals_from_address): Likewise.
4015 (tracepoint_probe_decode_linespec): Likewise.
4016 (tracepoint_probe_breakpoint_ops): New variable.
4017 (trace_command): Using proper breakpoint_ops according to the
4018 argument passed by the user in the command line.
4019 (initialize_breakpoint_ops): Initializing breakpoint_ops for
4020 static probes on breakpoints and tracepoints.
4021 * breakpoint.h (struct bp_location) <probe>: New field.
4022 * cli-utils.c (skip_spaces_const): New function.
4023 (extract_arg): Likewise.
4024 * cli-utils.h (skip_spaces_const): Likewise.
4025 (extract_arg): Likewise.
4026 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
4027 * configure.ac: Append `stap-probe.o' to be generated when ELF
4028 support is present.
4029 * configure: Regenerate.
4030 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
4031 * elfread.c: Include `probe.h' and `arch-utils.h'.
4032 (probe_key): New variable.
4033 (elf_get_probes): New function.
4034 (elf_get_probe_argument_count): Likewise.
4035 (elf_evaluate_probe_argument): Likewise.
4036 (elf_compile_to_ax): Likewise.
4037 (elf_symfile_relocate_probe): Likewise.
4038 (stap_probe_key_free): Likewise.
4039 (elf_probe_fns): New variable.
4040 (elf_sym_fns): Add `sym_probe_fns' value.
4041 (elf_sym_fns_lazy_psyms): Likewise.
4042 (elf_sym_fns_gdb_index): Likewise.
4043 (_initialize_elfread): Initialize objfile cache for static
4044 probes.
4045 * gdb_vecs.h (struct probe): New forward declaration.
4046 (probe_p): New VEC declaration.
4047 * gdbarch.c: Regenerate.
4048 * gdbarch.h: Regenerate.
4049 * gdbarch.sh (stap_integer_prefix): New variable.
4050 (stap_integer_suffix): Likewise.
4051 (stap_register_prefix): Likewise.
4052 (stap_register_suffix): Likewise.
4053 (stap_register_indirection_prefix): Likewise.
4054 (stap_register_indirection_suffix): Likewise.
4055 (stap_gdb_register_prefix): Likewise.
4056 (stap_gdb_register_suffix): Likewise.
4057 (stap_is_single_operand): New function.
4058 (stap_parse_special_token): Likewise.
4059 (struct stap_parse_info): Forward declaration.
4060 * i386-tdep.c: Including headers needed to perform the parsing
4061 of SystemTap probes' arguments.
4062 (i386_stap_is_single_operand): New function.
4063 (i386_stap_parse_special_token): Likewise.
4064 (i386_elf_init_abi): Initializing proper fields used by SystemTap
4065 probes' arguments parser.
4066 * i386-tdep.h (i386_stap_is_single_operand): New function.
4067 (i386_stap_parse_special_token): Likewise.
4068 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
4069 * mipsread.c (ecoff_sym_fns): Likewise.
4070 * objfiles.c (objfile_relocate1): Support relocation for static
4071 probes.
4072 * parse.c (prefixify_expression): Remove static declaration.
4073 (initialize_expout): Likewise.
4074 (reallocate_expout): Likewise.
4075 * parser-defs.h (initialize_expout): Declare function.
4076 (reallocate_expout): Likewise.
4077 (prefixify_expression): Likewise.
4078 * ppc-linux-tdep.c: Including headers needed to perform the parsing
4079 of SystemTap probes' arguments.
4080 (ppc_stap_is_single_operand): New function.
4081 (ppc_stap_parse_special_token): Likewise.
4082 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
4083 probes' arguments parser.
4084 * probe.c: New file, for generic statically defined probe support.
4085 * probe.h: Likewise.
4086 * s390-tdep.c: Including headers needed to perform the parsing of
4087 SystemTap probes' arguments.
4088 (s390_stap_is_single_operand): New function.
4089 (s390_gdbarch_init): Initializing proper fields used by SystemTap
4090 probes' arguments parser.
4091 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
4092 * stap-probe.c: New file, for SystemTap probe support.
4093 * stap-probe.h: Likewise.
4094 * symfile.h: Include `gdb_vecs.h'.
4095 (struct sym_probe_fns): New struct.
4096 (struct sym_fns) <sym_probe_fns>: New field.
4097 * symtab.c (init_sal): Initialize `probe' field.
4098 * symtab.h (struct probe): Forward declaration.
4099 (struct symtab_and_line) <probe>: New field.
4100 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
4101 locations.
4102 (stop_tracing): Likewise.
4103 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
4104
4105 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4106 Tom Tromey <tromey@redhat.com>
4107
4108 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
4109 and to compile agent expressions.
4110 * infrun.c (siginfo_make_value): New argument `ignore'.
4111 (siginfo_funcs): New struct.
4112 (_initialize_infrun): New argument when calling
4113 `create_internalvar_type_lazy'.
4114 * thread.c (thread_id_make_value): New argument `ignore'.
4115 (thread_funcs): New struct.
4116 (_initialize_thread): New argument when calling
4117 `create_internalvar_type_lazy'.
4118 * tracepoint.c (sdata_make_value): New argument `ignore'.
4119 (sdata_funcs): New struct.
4120 (_initialize_tracepoint): New argument when calling
4121 `create_internalvar_type_lazy'.
4122 * value.c (make_value): New struct.
4123 (create_internalvar_type_lazy): New argument `data'.
4124 (compile_internalvar_to_ax): New function.
4125 (value_of_internalvar): Properly handling `make_value' case.
4126 (clear_internalvar): Likewise.
4127 (show_convenience): Adding `TRY_CATCH' block.
4128 * value.h (internalvar_make_value): Delete, replace by...
4129 (struct internalvar_funcs): ... this.
4130 (create_internalvar_type_lazy) <fun>: Delete argument.
4131 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
4132 (compile_internalvar_to_ax): New function.
4133 * windows-tdep.c (tlb_make_value): New argument `ignore'.
4134 (tlb_funcs): New struct.
4135 (_initialize_windows_tdep): New argument when calling
4136 `create_internalvar_type_lazy'.
4137
4138 2012-04-27 Mark Wielaard <mjw@redhat.com>
4139
4140 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4141 see whether it is an address or a constant offset from DW_AT_low_pc.
4142 (dwarf2_record_block_ranges): Likewise.
4143 (read_partial_die): Likewise.
4144
4145 2012-04-26 Mark Wielaard <mjw@redhat.com>
4146
4147 * MAINTAINERS (Write After Approval): Add myself to the list.
4148
4149 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4150
4151 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4152 (proc_prettyprint_signal): Likewise.
4153 (proc_prettyprint_faultset): Likewise.
4154 (proc_prettyprint_fault): Likewise.
4155 (proc_prettyprint_actionset): Likewise.
4156 (proc_prettyprint_flags): Move to new proc-flags.c section.
4157 (proc_prettyfprint_flags): New prototype.
4158 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4159 (proc_syscall, proc_cursig): Likewise.
4160 (proc_set_kill_on_last_close): Likewise.
4161 (proc_unset_kill_on_last_close): Likewise.
4162 (proc_set_watchpoint): Make static.
4163 (proc_delete_dead_threads): Likewise.
4164 (procfs_set_watchpoint): Likewise.
4165 (_initialize_procfs): Add prototype.
4166 * proc-events.c: Include proc-utils.h.
4167 (init_syscall_table): Make static.
4168 * proc-api.c (_initialize_proc_api): Add prototype.
4169 * proc-flags.c: Include proc-utils.h.
4170
4171 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4172
4173 * configure.ac: Add AC_ARG_PROGRAM.
4174 * configure: Regenerate.
4175
4176 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4177
4178 Fix DW_AT_lower_bound defaults for DWARF-4+.
4179 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4180 high. New variable low_default_is_valid. Implement DWARF-4+
4181 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4182 no default by the DWARF standard.
4183
4184 2012-04-26 Maciej W. Rozycki <macro@mips.com>
4185 Maciej W. Rozycki <macro@codesourcery.com>
4186
4187 * infrun.c (handle_inferior_event): Move the check for return
4188 trampolines ahead of the check for function trampolines.
4189 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4190 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4191 (mips_str_mips16_ret_stub): Likewise.
4192 (mips_str_call_fp_stub): Likewise.
4193 (mips_str_call_stub): Likewise.
4194 (mips_str_fn_stub): Likewise.
4195 (mips_str_pic): Likewise.
4196 (mips_in_frame_stub): New function.
4197 (mips_unwind_pc): Return the return address rather than the PC
4198 if the PC of an intermediate frame is inside a call thunk.
4199 (mips_is_stub_suffix): New function.
4200 (mips_is_stub_mode): Likewise.
4201 (mips_get_mips16_fn_stub_pc): Likewise.
4202 (mips_skip_mips16_trampoline_code): Update to handle all the
4203 currently generated stub types. Don't recurse into __fn_stub
4204 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4205 Use cooked register accesses.
4206 (mips_in_return_stub): Reintroduce function.
4207 (mips_skip_trampoline_code): Traverse trampolines recursively.
4208 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4209
4210 2012-04-26 Joel Brobecker <brobecker@adacore.com>
4211
4212 GDB 7.4.1 released.
4213
4214 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4215
4216 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4217 * features/arm-with-m-vfp-d16.xml: New file. Describes
4218 Cortex-M with VFPv4-sp-d16 FPU register layout.
4219 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4220 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4221 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4222 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4223 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4224
4225 2012-04-25 Doug Evans <dje@google.com>
4226
4227 * cli/cli-decode.c (print_doc_line): Use stream instead of
4228 current_uiout.
4229
4230 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4231
4232 * features/arm-with-iwmmxt.c: Regenerate.
4233 * features/arm-with-m-fpa-layout.c: Likewise.
4234 * features/arm-with-m.c: Likewise.
4235 * features/arm-with-neon.c: Likewise.
4236 * features/arm-with-vfpv2.c: Likewise.
4237 * features/arm-with-vfpv3.c: Likewise.
4238 * features/mips-dsp-linux.c: Likewise.
4239 * features/mips-linux.c: Likewise.
4240 * features/mips64-dsp-linux.c: Likewise.
4241 * features/mips64-linux.c: Likewise.
4242 * features/s390-linux32.c: Likewise.
4243 * features/s390-linux32v1.c: Likewise.
4244 * features/s390-linux32v2.c: Likewise.
4245 * features/s390-linux64.c: Likewise.
4246 * features/s390-linux64v1.c: Likewise.
4247 * features/s390-linux64v2.c: Likewise.
4248 * features/s390x-linux64.c: Likewise.
4249 * features/s390x-linux64v1.c: Likewise.
4250 * features/s390x-linux64v2.c: Likewise.
4251 * features/tic6x-c62x-linux.c: Likewise.
4252 * features/tic6x-c62x.c: Likewise.
4253 * features/tic6x-c64x-linux.c: Likewise.
4254 * features/tic6x-c64x.c: Likewise.
4255 * features/tic6x-c64xp-linux.c: Likewise.
4256 * features/tic6x-c64xp.c: Likewise.
4257 * target-descriptions.c: Only generate `field_type' and `type'
4258 variables when needed.
4259
4260 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4261
4262 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4263
4264 2012-04-25 Doug Evans <dje@google.com>
4265
4266 Initial pass at Go language support.
4267 * NEWS: Mention Go.
4268 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4269 go-valprint.c.
4270 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4271 (YYFILES): Add go-exp.c.
4272 (YYOBJ): Add go-exp.o.
4273 (local-maintainer-clean): Delete go-exp.c.
4274 * defs.h (enum language): Add language_go.
4275 * dwarf2read.c: #include "go-lang.h".
4276 (fixup_go_packaging): New function.
4277 (process_full_comp_unit): Call it when processing Go CUs.
4278 (dwarf2_physname): Add Go support.
4279 (read_file_scope): Handle missing language spec for GNU Go.
4280 (set_cu_language): Handle DW_LANG_Go.
4281 * go-exp.y: New file.
4282 * go-lang.h: New file.
4283 * go-lang.c: New file.
4284 * go-typeprint.c: New file.
4285 * go-valprint.c: New file.
4286 * symtab.c: #include "go-lang.h".
4287 (symbol_set_language): Handle language_go.
4288 (symbol_find_demangled_name, symbol_set_names): Ditto.
4289 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4290
4291 2012-04-24 Jim Meyering <meyering@redhat.com>
4292
4293 avoid a few strncpy-induced buffer overruns
4294 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4295 fname and psargs before trying to concatenate.
4296 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4297 "name" before applying strchr.
4298
4299 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4300
4301 * CONTRIBUTE: Use unified diff instead of context diff when
4302 generating patches.
4303
4304 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4305
4306 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4307 code. Handle JR.HB correctly.
4308
4309 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4310
4311 * mips-tdep.c
4312 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4313 with the other MIPS16 helpers.
4314
4315 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4316
4317 * observer.sh: Conditionally declare `args', thus cleaning up
4318 unused instances of this variable.
4319
4320 2012-04-24 Yao Qi <yao@codesourcery.com>
4321
4322 Revert this patch to allow breakpoint always-inserted
4323 in record target.
4324 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4325 * breakpoint.c: Include record.h.
4326 (breakpoints_always_inserted_mode): Return false when the record
4327 target is in use.
4328
4329 * breakpoint.c (iterate_over_bp_locations): New.
4330 * breakpoint.h: Declare.
4331 New typedef walk_bp_location_callback.
4332 * record.c (record_open): Call record_init_record_breakpoints.
4333 (record_sync_record_breakpoints): New.
4334 (record_init_record_breakpoints): New.
4335 * NEWS: Mention supporting breakpoint always-inserted mode in
4336 record target.
4337
4338 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4339
4340 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4341 any thread.
4342
4343 2012-04-24 Yao Qi <yao@codesourcery.com>
4344
4345 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4346 (is_catchpoint): ... it.
4347 (print_one_breakpoint_location): Caller update.
4348 * breakpoint.h: Update declaration.
4349
4350 2012-04-23 David S. Miller <davem@davemloft.net>
4351
4352 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4353
4354 2012-04-23 Tom Tromey <tromey@redhat.com>
4355
4356 * buildsym.c (add_free_pendings): Remove.
4357 * buildsym.h (add_free_pendings): Remove.
4358
4359 2012-04-23 Doug Evans <dje@google.com>
4360
4361 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4362 attr.u.unsnd instead of attr.u.addr.
4363 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4364 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4365 DW_FORM_ref_udata.
4366 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4367 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4368 DW_FORM_ref_udata.
4369 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4370
4371 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4372
4373 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4374 (mips_o32_return_value): Likewise.
4375 (mips_o64_return_value): Likewise.
4376
4377 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4378
4379 * ada-lang.c (ada_evaluate_subexp): Add cases for
4380 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4381 their treatment in eval.c.
4382
4383 2012-04-21 David S. Miller <davem@davemloft.net>
4384
4385 * sparc-tdep.c (X_DISP10): Define.
4386 (sparc_analyze_control_transfer): Handle compare-and-branch.
4387
4388 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4389
4390 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4391 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4392
4393 2012-04-20 Nigel Stephens <nigel@mips.com>
4394 Maciej W. Rozycki <macro@codesourcery.com>
4395
4396 * mips-tdep.c (mips_float_register_p): New function.
4397 (mips_convert_register_float_case_p): Use mips_float_register_p.
4398 (mips_register_type): Likewise.
4399 (mips_print_register): Likewise.
4400 (print_gp_register_row): Likewise.
4401 (mips_print_registers_info): Likewise.
4402
4403 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4404
4405 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4406 of mips16 symbols.
4407
4408 2012-04-20 Andrew Pinski <apinski@cavium.com>
4409
4410 * MAINTAINERS (Write After Approval): Add myself to the list.
4411
4412 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4413
4414 * MAINTAINERS: Update my e-mail address.
4415
4416 2012-04-20 Pedro Alves <palves@redhat.com>
4417
4418 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4419 $srcdir.
4420 * configure: Regenerate.
4421
4422 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4423
4424 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4425 declaration.
4426 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4427
4428 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4429
4430 Fix compilation compatibility with python-2.4
4431 * python/py-type.c (convert_field): Cast ADDRSTRING for
4432 PyObject_SetAttrString as non-const. New comment.
4433
4434 2012-04-19 Tom Tromey <tromey@redhat.com>
4435
4436 * top.c (quit_target): Use all_cleanups.
4437 * main.c (captured_command_loop): Use all_cleanups.
4438 * exceptions.c (throw_exception): Use all_cleanups.
4439
4440 2012-04-19 Pedro Alves <palves@redhat.com>
4441
4442 * Makefile.in (GNULIB_BUILDDIR): New.
4443 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4444 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4445 (CLEANDIRS). Remove gnulib/import.
4446 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4447 (all-lib): Ditto.
4448 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4449 (gnulib/import/Makefile): Replace gnulib/import with
4450 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4451 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4452 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4453 acx_configure_dir.m4.
4454 * acinclude.m4: Include acx_configure_dir.m4.
4455 * acx_configure_dir.m4: New file.
4456 * aclocal.m4: Regenerate.
4457 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4458 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4459 (GNULIB): New variable.
4460 (GNULIB_STDINT_H): Adjust.
4461 (AC_OUTPUT): Don't output gnulib/Makefile.
4462 * gdb/defs.h: Include build-gnulib/config.h.
4463 * aclocal.m4: Regenerate.
4464 * config.in: Regenerate.
4465 * configure: Regenerate.
4466
4467 * gnulib/Makefile.in: New file.
4468 * gnulib/configure.ac: New file.
4469 * gnulib/aclocal.m4: New file.
4470 * gnulib/config.in: New file.
4471 * gnulib/configure: New file.
4472 * gnulib/: Re-run gnulib-tool to adjust.
4473
4474 2012-04-19 Doug Evans <dje@google.com>
4475
4476 * cleanups.h (struct cleanup): Move to cleanups.c.
4477 (make_cleanup_dtor_ftype): New typedef.
4478 (make_cleanup_dtor): Use it.
4479 (ALL_CLEANUPS): Replace with ...
4480 (all_cleanups): ... this. Declare. All uses updated.
4481 * cleanups.c: #include "gdb_assert.h".
4482 (sentinel_cleanup): New static global.
4483 (SENTINEL_CLEANUP): Define.
4484 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4485 (make_my_cleanup2): Assert result is non-NULL.
4486 (all_cleanups): New function.
4487 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4488 of NULL.
4489
4490 2012-04-19 Pedro Alves <palves@redhat.com>
4491
4492 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4493 Adjust paths to gnulib imported files.
4494
4495 2012-04-19 Pedro Alves <palves@redhat.com>
4496
4497 * gnulib/: Move whole directory ...
4498 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4499 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4500 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4501 (aclocal_m4_deps): Adjust.
4502 * aclocal.m4: Regenerate.
4503 * configure: Regenerate.
4504 * configure.ac: Adjust AC_OUTPUT output.
4505
4506 2012-04-19 Yao Qi <yao@codesourcery.com>
4507
4508 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4509 (vec.o): New rule.
4510 * vec.c: Move it ...
4511 * common/vec.c: ... here.
4512 * vec.h: Move it ...
4513 * common/vec.h: ... here.
4514
4515 2012-04-19 Yao Qi <yao@codesourcery.com>
4516
4517 * gdb-code-style.el: New.
4518
4519 2012-04-18 Pedro Alves <palves@redhat.com>
4520
4521 Update gnulib from latest git.
4522 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4523
4524 * gnulib/Makefile.am: Update.
4525 * gnulib/dummy.c: Update.
4526 * gnulib/extra/arg-nonnull.h: Update.
4527 * gnulib/extra/c++defs.h: Update.
4528 * gnulib/extra/update-copyright: Update.
4529 * gnulib/extra/warn-on-use.h: Update.
4530 * gnulib/inttypes.in.h: Update.
4531 * gnulib/m4/00gnulib.m4: Update.
4532 * gnulib/m4/extensions.m4: Update.
4533 * gnulib/m4/gnulib-cache.m4: Update.
4534 * gnulib/m4/gnulib-common.m4: Update.
4535 * gnulib/m4/gnulib-comp.m4: Update.
4536 * gnulib/m4/gnulib-tool.m4: Update.
4537 * gnulib/m4/include_next.m4: Update.
4538 * gnulib/m4/inttypes-pri.m4: Update.
4539 * gnulib/m4/inttypes.m4: Update.
4540 * gnulib/m4/longlong.m4: Update.
4541 * gnulib/m4/memchr.m4: Update.
4542 * gnulib/m4/memmem.m4: Update.
4543 * gnulib/m4/mmap-anon.m4: Update.
4544 * gnulib/m4/multiarch.m4: Update.
4545 * gnulib/m4/onceonly.m4: Update.
4546 * gnulib/m4/stddef_h.m4: Update.
4547 * gnulib/m4/stdint.m4: Update.
4548 * gnulib/m4/string_h.m4: Update.
4549 * gnulib/m4/warn-on-use.m4: Update.
4550 * gnulib/m4/wchar_h.m4: Update.
4551 * gnulib/m4/wchar_t.m4: Update.
4552 * gnulib/m4/wint_t.m4: Update.
4553 * gnulib/memchr.c: Update.
4554 * gnulib/memmem.c: Update.
4555 * gnulib/stddef.in.h: Update.
4556 * gnulib/stdint.in.h: Update.
4557 * gnulib/str-two-way.h: Update.
4558 * gnulib/string.in.h: Update.
4559 * gnulib/wchar.in.h: Update.
4560
4561 * gnulib/extra/arg-nonnull.h: Delete.
4562 * gnulib/extra/c++defs.h: Delete.
4563 * gnulib/extra/warn-on-use.h: Delete.
4564 * gnulib/m4/wchar_h.m4: Delete.
4565 * gnulib/m4/wint_t.m4: Delete.
4566 * gnulib/wchar.in.h: Delete.
4567
4568 * gnulib/extra/snippets/arg-nonnull.h: New.
4569 * gnulib/extra/snippets/c++defs.h: New.
4570 * gnulib/extra/snippets/warn-on-use.h: New.
4571
4572 * aclocal.m4: Regenerate.
4573 * config.in: Regenerate.
4574 * configure: Regenerate.
4575 * gnulib/Makefile.in: Regenerate.
4576
4577 2012-04-18 Pedro Alves <palves@redhat.com>
4578
4579 Reimport the update-copyright module from gnulib
4580 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4581
4582 * configure: Regenerate.
4583 * gnulib/Makefile.am: Update.
4584 * gnulib/Makefile.in: Regenerate.
4585 * gnulib/extra/update-copyright: Update.
4586 * gnulib/m4/gnulib-cache.m4: Update.
4587 * gnulib/m4/gnulib-comp.m4: Update.
4588
4589 2012-04-18 Tristan Gingold <gingold@adacore.com>
4590
4591 * configure.ac (aix): Put -lpthread into libs.
4592 * configure: Regenerate.
4593
4594 2012-04-18 Tom Tromey <tromey@redhat.com>
4595
4596 * linespec.c (convert_linespec_to_sals): Don't use
4597 SYMBOL_OBJ_SECTION.
4598 (compare_msymbols): Arguments are minsym_and_objfile, not
4599 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4600
4601 2012-04-18 Pedro Alves <palves@redhat.com>
4602
4603 Revert gnulib/ part of:
4604 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4605 Copyright year update in most files (performed by copyright.sh).
4606
4607 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4608
4609 Fix 64-bit constants on 32-bit hosts.
4610 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4611 from unsigned long to ULONGEST.
4612 (read_signed_leb128): Change declaration return type from long to
4613 LONGEST.
4614 (dwarf2_const_value_attr): Change declaration parameter value from long
4615 to LONGEST.
4616 (dwarf2_compute_name): Change variable value from long to LONGEST.
4617 (read_unsigned_leb128): Change return type, variable result and some
4618 casts from unsigned long to ULONGEST.
4619 (read_signed_leb128): Change return type, variable result and some
4620 casts from long to LONGEST.
4621 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4622 value from long to LONGEST.
4623 (dwarf2_const_value): Change variable value from long to LONGEST.
4624 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4625 plongest and hex_string.
4626 * symtab.h (struct general_symbol_info): Change ivalue from long to
4627 LONGEST, remove the comment.
4628 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4629 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4630
4631 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4632
4633 PR symtab/7259:
4634 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4635 * ada-lang.c (ada_discrete_type_high_bound)
4636 (ada_discrete_type_low_bound): Fix function comment. Use
4637 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4638 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4639 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4640 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4641 Use TYPE_FIELD_ENUMVAL.
4642 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4643 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4644 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4645 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4646 TYPE_CODE_ENUM.
4647 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4648 * dwarf2read.c (process_enumeration_scope): Likewise.
4649 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4650 field.bitpos.
4651 (class StructMainTypePrettyPrinter): Support also
4652 FIELD_LOC_KIND_ENUMVAL.
4653 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4654 TYPE_CODE_ENUM.
4655 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4656 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4657 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4658 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4659 field enumval.
4660 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4661 accommodate enumval.
4662 (struct call_site): Adjust loc_kind to accommodate enumval.
4663 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4664 (TYPE_FIELD_ENUMVAL): New macros.
4665 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4666 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4667 TYPE_CODE_ENUM.
4668 * p-typeprint.c (pascal_type_print_base): Likewise.
4669 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4670 enumval.
4671 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4672 * python/py-type.c (convert_field): New variable addrstring. Use
4673 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4674 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4675 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4676 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4677 TYPE_CODE_ENUM.
4678 * valprint.c (generic_val_print): Likewise.
4679
4680 2012-04-17 Doug Evans <dje@google.com>
4681
4682 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4683
4684 * dwarf2read.c: Whitespace fixes.
4685 (lookup_signatured_type): Tweak comment.
4686 (get_die_type_at_offset): Fix comment.
4687
4688 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4689
4690 * xcoffread.c (xcoff_secnum_to_sections): New function.
4691 (secnum_to_section, secnum_to_bfd_section): Reimplement
4692 using xcoff_secnum_to_sections. Rename "secnum" parameter
4693 into "n_scnum".
4694 (RECORD_MINIMAL_SYMBOL): Delete.
4695 (record_minimal_symbol): New function.
4696 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4697 by call to record_minimal_symbol and set misc_func_recorded
4698 to 1. Set last_csect_sec to the XCOFF section index instead
4699 of GDB's section_offset index. Update calls to
4700 prim_record_minimal_symbol_and_info to pass the BFD section
4701 as well.
4702
4703 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4704
4705 * xcoffread.c (read_xcoff_symtab): Delete variables
4706 last_csect_val and last_csect_sec and associated code.
4707
4708 2012-04-17 Doug Evans <dje@google.com>
4709
4710 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4711 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4712 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4713 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4714
4715 * cleanups.h: New file.
4716 * cleanups.c: New file.
4717 * Makefile.in (SFILES): Add cleanups.c.
4718 (HFILES_NO_SRCDIR): Add cleanups.h.
4719 (COMMON_OBS): Add cleanups.o.
4720 * defs.h (struct cleanup): Moved to cleanups.h.
4721 (do_cleanups,do_final_cleanups): Ditto.
4722 (discard_cleanups,discard_final_cleanups): Ditto
4723 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4724 (save_cleanups,save_final_cleanups): Ditto.
4725 (restore_cleanups,restore_final_cleanups): Ditto.
4726 (null_cleanup): Ditto.
4727 (make_my_cleanup,make_my_cleanup2): Ditto.
4728 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4729 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4730 (do_cleanups,do_final_cleanups): Ditto.
4731 (discard_cleanups,discard_final_cleanups): Ditto
4732 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4733 (save_cleanups,save_final_cleanups): Ditto.
4734 (restore_cleanups,restore_final_cleanups): Ditto.
4735 (null_cleanup): Ditto.
4736 (make_my_cleanup,make_my_cleanup2): Ditto.
4737 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4738
4739 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4740 make_my_cleanup.
4741 (make_cleanup_dyn_string_delete): Ditto.
4742 (make_cleanup_ui_file_delete): Ditto.
4743 (make_cleanup_ui_out_redirect_pop): Ditto.
4744 (make_cleanup_free_section_addr_info): Ditto.
4745 (make_cleanup_restore_integer): Ditto.
4746 (make_cleanup_unpush_target): Ditto.
4747 (make_cleanup_value_free_to_mark): Ditto.
4748 (make_cleanup_value_free): Ditto.
4749 (make_cleanup_free_so): Ditto.
4750
4751 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4752
4753 New option "set debug auto-load".
4754 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4755 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4756 (auto_load_safe_path_vec_update)
4757 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4758 if DEBUG_AUTO_LOAD.
4759 (file_is_auto_load_safe): New parameters debug_fmt and ....
4760 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4761 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4762 caller by explanatory string.
4763 (_initialize_auto_load): Register "set debug auto-load".
4764 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4765 and ....
4766 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4767 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4768 by explanatory string.
4769 * main.c (captured_main): Likewise.
4770 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4771 (source_section_scripts): Likewise.
4772
4773 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4774
4775 New option "set auto-load safe-path".
4776 * NEWS: New commands "set auto-load safe-path"
4777 and "show auto-load safe-path".
4778 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4779 (auto_load_safe_path, auto_load_safe_path_vec)
4780 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4781 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4782 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4783 (source_gdb_script_for_objfile): New variable is_safe. Call
4784 file_is_auto_load_safe. Return if it is not.
4785 (struct loaded_script): New field loaded.
4786 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4787 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4788 output "Missing" to "No".
4789 (_initialize_auto_load): New variable cmd. Initialize
4790 auto_load_safe_path. Register "set auto-load safe-path",
4791 "show auto-load safe-path" and "add-auto-load-safe-path".
4792 * auto-load.h (maybe_add_script): Add parameter loaded.
4793 (file_is_auto_load_safe): New declaration.
4794 * config.in: Regenerate.
4795 * configure: Regenerate.
4796 * configure.ac: New parameters --with-auto-load-safe-path
4797 and --without-auto-load-safe-path.
4798 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4799 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4800 * main.c (captured_main): Check file_is_auto_load_safe for
4801 LOCAL_GDBINIT.
4802 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4803 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4804 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4805 not.
4806
4807 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4808
4809 auto-load: Implementation.
4810 * NEWS: New descriptions for "info auto-load",
4811 "info auto-load gdb-scripts", "info auto-load python-scripts",
4812 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4813 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4814 and "show auto-load-scripts". New description for "set auto-load",
4815 "show auto-load", "set auto-load gdb-scripts",
4816 "show auto-load gdb-scripts", "set auto-load python-scripts",
4817 "show auto-load python-scripts", "set auto-load local-gdbinit",
4818 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4819 "show auto-load libthread-db".
4820 * auto-load.c: Remove include python/python-internal.h. Add includes
4821 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4822 cli/cli-setshow.h.
4823 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4824 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4825 (gdbpy_global_auto_load): Rename to ...
4826 (global_auto_load): ... here.
4827 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4828 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4829 (script_language_gdb, source_gdb_script_for_objfile): New.
4830 (struct loaded_script): New field language.
4831 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4832 LANGUAGE.
4833 (maybe_add_script): Add parameter language. Drop redundant
4834 entry.full_path initialization. Initialize entry.language and
4835 (*slot)->language.
4836 (auto_load_objfile_script): Change parameter suffix to language.
4837 Remove the call of maybe_add_script.
4838 Call language->source_script_for_objfile.
4839 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4840 New.
4841 (collect_matching_scripts): Adjust it for
4842 struct collect_matching_scripts_data.
4843 (auto_load_info_scripts_pattern_nl): New variable.
4844 (info_auto_load_scripts): Rename to ...
4845 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4846 for struct collect_matching_scripts_data.
4847 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4848 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4849 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4850 (auto_load_info_cmdlist_get): New.
4851 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4852 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4853 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4854 "info auto-load local-gdbinit".
4855 * auto-load.h (struct script_language): New.
4856 (gdbpy_global_auto_load): Rename to ...
4857 (global_auto_load): ... here.
4858 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4859 (auto_load_local_gdbinit_loaded): New declarations.
4860 (maybe_add_script): New parameter language.
4861 (auto_load_objfile_script): Change parameter suffix to language.
4862 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4863 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4864 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4865 declarations.
4866 * linux-thread-db.c: Include auto-load.h and ctype.h.
4867 (auto_load_thread_db, show_auto_load_thread_db): New.
4868 (struct thread_db_info): New field filename.
4869 (delete_thread_db_info): Call xfree for FILENAME.
4870 (try_thread_db_load): Initialize FILENAME.
4871 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4872 if !AUTO_LOAD_THREAD_DB.
4873 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4874 (_initialize_thread_db): Install auto_load_thread_db
4875 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4876 as "info auto-load libthread-db".
4877 * main.c (captured_main): Rename gdbpy_global_auto_load to
4878 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4879 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4880 (print_gdb_help): Extend the help for 'local init file'.
4881 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4882 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4883 (auto_load_scripts): Rename to ...
4884 (auto_load_python_scripts): ... here, update the comment.
4885 (gdbpy_load_auto_script_for_objfile): New declaration.
4886 (show_auto_load_python_scripts, script_language_python)
4887 (gdbpy_load_auto_script_for_objfile): New.
4888 (source_section_scripts): Refactor the code.
4889 (load_auto_scripts_for_objfile): Rename to ...
4890 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4891 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4892 (info_auto_load_python_scripts): New.
4893 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4894 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4895 Register "set auto-load-scripts" as its deprecated alias. Register
4896 "info auto-load python-scripts". Register "info auto-load-scripts" as
4897 its deprecated alias.
4898 (load_auto_scripts_for_objfile): Rename to ...
4899 (gdbpy_load_auto_scripts_for_objfile): ... here.
4900 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4901 (gdbpy_load_auto_scripts_for_objfile): ... here.
4902
4903 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4904
4905 auto-load: Move files.
4906 * Makefile.in (SFILES): Add auto-load.c.
4907 (HFILES_NO_SRCDIR): Add auto-load.h.
4908 (COMMON_OBS): Add auto-load.o.
4909 (distclean): Change .gdbinit for gdb-gdb.gdb.
4910 * auto-load.c: New file, with parts from python/py-auto-load.c.
4911 * auto-load.h: New file, with parts from python/python.h.
4912 * configure: Regenerate.
4913 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4914 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4915 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4916 * main.c: Include auto-load.h.
4917 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4918 command.h, observer.h and progspace.h to auto-load.c. Add include
4919 auto-load.h.
4920 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4921 (struct loaded_script, auto_load_pspace_data)
4922 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4923 (hash_loaded_script_entry, eq_loaded_script_entry)
4924 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4925 (maybe_add_script): Move to auto-load.c.
4926 (source_section_scripts): Change maybe_add_script parameters passing,
4927 use script_not_found_warning_print.
4928 (clear_section_scripts, auto_load_objfile_script)
4929 (auto_load_new_objfile, loaded_script_ptr)
4930 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4931 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4932 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4933 auto_load_new_objfile and info_auto_load_scripts initizations to
4934 auto-load.c.
4935 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4936
4937 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4938
4939 Code cleanup.
4940 * charset.c (find_charset_names): Remove variables ix and elt.
4941 Use free_char_ptr_vec.
4942 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4943 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4944 debugdir_end. New variable debugdir_len.
4945 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4946 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4947 declarations.
4948 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4949 and elt. Use free_char_ptr_vec.
4950 * source.c (add_path): Remove variables argv, arg and argv_index.
4951 New variables dir_vec, back_to, ix and name.
4952 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4953 make_cleanup_freeargv. Remove variable separator. Simplify the code
4954 no longer expecting DIRNAME_SEPARATOR.
4955 (openp): Remove variable p, p1 and len. New variables dir_vec,
4956 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4957 no longer expecting DIRNAME_SEPARATOR.
4958 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4959 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4960 debugdir_end.
4961 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4962 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4963 (dirnames_to_char_ptr_vec): New functions.
4964
4965 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4966
4967 Code cleanup.
4968 * source.c (add_path): Remove always true conditional 'p == 0' and
4969 unindent its code block.
4970
4971 2012-04-17 Pedro Alves <palves@redhat.com>
4972
4973 * gdbtypes.h (FIELD_BITPOS): Rename to ...
4974 (FIELD_BITPOS_LVAL): ... this.
4975 (FIELD_BITPOS): New.
4976 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4977 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
4978 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
4979 SET_FIELD_BITPOS.
4980 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
4981 SET_FIELD_BITPOS.
4982 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
4983 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
4984 * target-descriptions.c (tdesc_gdb_type): Adjust to use
4985 SET_FIELD_BITPOS.
4986
4987 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4988
4989 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
4990 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
4991 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
4992 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
4993 * jv-lang.c (java_link_class_type): Likewise, once.
4994 * stabsread.c (read_enum_type): Likewise.
4995
4996 2012-04-16 Yao Qi <yao@codesourcery.com>
4997
4998 * common/agent.c (agent_run_command): Add one more parameter `len'.
4999 Update callers.
5000 * common/agent.h: Update declaration.
5001 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5002 Update.
5003 (linux_child_static_tracepoint_markers_by_strid): Ditto.
5004
5005 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
5006
5007 PR mi/13393
5008 * value.c (value_actual_type): New function.
5009 * value.h (value_actual_type): New declaration.
5010 * varobj.c (update_type_if_necessary): New function.
5011 (varobj_create): Call value_actual_type instead of
5012 value_type.
5013 (install_dynamic_child): distinct changed and type changed MI variable
5014 objects.
5015 (update_dynamic_varobj_children): Updated for install_dynamic_child
5016 change. All callers updated.
5017 (varobj_update): Support for MI variable object type change if
5018 the value changed and RTTI is used to determine the type.
5019 (create_child_with_value): Call value_actual_type instead of
5020 value_type.
5021 (adjust_value_for_child_access): Extended with a new parameter which
5022 specify whether the given value should be casted to enclosing type.
5023 All callers updated.
5024
5025 2012-04-14 Yao Qi <yao@codesourcery.com>
5026
5027 Import gnulib module inttypes from git
5028 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5029 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
5030 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
5031 gnulib/m4/inttypes-pri.m4
5032 * aclocal.m4, config.in, configure: Regenerated.
5033 * gnulib/Makefile.am: Update.
5034 * gnulib/Makefile.in: Update.
5035 * gnulib/m4/gnulib-cache.m4: Update.
5036 * gnulib/m4/gnulib-comp.m4: Update.
5037 * gnulib/inttypes.in.h: New.
5038 * gnulib/m4/inttypes-pri.m4: New.
5039 * gnulib/m4/inttypes.m4: New.
5040
5041 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
5042
5043 * infrun.c (resume): Update PC address to the real PC after
5044 preparing to do displaced stepping.
5045
5046 2012-04-12 Doug Evans <dje@google.com>
5047
5048 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
5049 All callers updated.
5050
5051 2012-04-12 Mark Kettenis <kettenis@gnu.org>
5052
5053 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
5054
5055 2012-04-12 Doug Evans <dje@google.com>
5056
5057 * dwarf2read.c (create_all_type_units): Renamed from
5058 create_debug_types_hash_table. All callers updated.
5059
5060 * dwarf2read.c (create_signatured_type_table_from_index): Rename
5061 local type_sig to sig_type, type_offset to type_offset_in_tu.
5062 (hash_signatured_type): Renamed from hash_type_signature,
5063 all callers updated.
5064 (eq_signatured_type): Renamed from eq_type_signature,
5065 all callers updated.
5066 (create_debug_types_hash_table): Rename local type_sig to sig_type.
5067 (process_enumeration_scope): Ditto.
5068 (lookup_signatured_type_at_offset): Ditto.
5069 (load_full_type_unit, read_signatured_type): Ditto.
5070
5071 2012-04-12 Yao Qi <yao@codesourcery.com>
5072
5073 * remote.c (async_remote_interrupt): Correct function name in
5074 debug message.
5075 (async_remote_interrupt_twice): Ditto.
5076
5077 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
5078
5079 * source.c (find_and_open_source): Consistently pass resulting
5080 full path through xfullpath.
5081
5082 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5083
5084 Provide more specific displaced-stepping memory error message.
5085 * infrun.c (displaced_step_prepare): New variable status. Call
5086 target_read_memory instead of read_memory, provide more specific
5087 error message.
5088
5089 2012-04-11 Tristan Gingold <gingold@adacore.com>
5090
5091 PR gdb/13901
5092 * darwin-nat.c (darwin_execvp): Revert previous patch.
5093
5094 2012-04-11 Tristan Gingold <gingold@adacore.com>
5095
5096 PR gdb/13901
5097 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
5098 in case of change.
5099
5100 2012-04-11 Tristan Gingold <gingold@adacore.com>
5101
5102 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5103 warning.
5104
5105 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
5106
5107 New command 'explore' which helps explore values and types in
5108 scope.
5109 * NEWS: Add an entry about the new 'explore' command.
5110 * data-directory/Makefile.in: Add gdb/command/explore.py
5111 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
5112 command using the GDB Python API.
5113
5114 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5115
5116 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
5117 extension in jump target calculation.
5118
5119 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5120
5121 * mips-tdep.c (mips32_next_pc): Handle JALX.
5122
5123 2012-04-10 Yao Qi <yao@codesourcery.com>
5124
5125 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
5126
5127 2012-04-10 Yao Qi <yao@codesourcery.com>
5128
5129 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
5130 and gnulib/m4/gnulib-tool.m4.
5131
5132 2012-04-10 Doug Evans <dje@google.com>
5133
5134 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
5135 (load_partial_dies): Clarify comment.
5136 (find_partial_die): Support rereading type units.
5137 Clarify CU handling, if we know offset is in CU, don't search for the
5138 containing CU. Add comment regarding memory waste.
5139
5140 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
5141
5142 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5143 i386/x32-avx and i386/x32-avx-linux.
5144 (i386/x32-expedite): New.
5145 (i386/x32-linux-expedite): Likewise.
5146 (i386/x32-avx-expedite): Likewise.
5147 (i386/x32-avx-linux-expedite): Likewise.
5148 ($(outdir)/i386/x32.dat): Likewise.
5149 ($(outdir)/i386/x32-linux.dat): Likewise.
5150 ($(outdir)/i386/x32-avx.dat): Likewise.
5151 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5152
5153 * features/i386/x32-avx-linux.xml: New file.
5154 * features/i386/x32-avx.xml: Likewise.
5155 * features/i386/x32-core.xml: Likewise.
5156 * features/i386/x32-linux.xml: Likewise.
5157 * features/i386/x32.xml: Likewise.
5158
5159 * features/i386/x32-avx-linux.c: New. Generated.
5160 * features/i386/x32-avx.c: Likewise.
5161 * features/i386/x32-linux.c: Likewise.
5162 * features/i386/x32.c: Likewise.
5163 * regformats/i386/x32-avx-linux.dat: Likewise.
5164 * regformats/i386/x32-avx.dat: Likewise.
5165 * regformats/i386/x32-linux.dat: Likewise.
5166 * regformats/i386/x32.dat: Likewise.
5167
5168 2012-04-10 Tristan Gingold <gingold@adacore.com>
5169
5170 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5171 code to kill the inferior.
5172
5173 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5174
5175 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5176 defines.
5177 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5178 defines.
5179 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5180 (yyvsp): New defines.
5181 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5182 defines.
5183 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5184 defines.
5185 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5186 defines.
5187 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5188 defines.
5189 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5190 defines.
5191
5192 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5193
5194 * sparc64-tdep.c (sparc64_store_arguments)
5195 (sparc64_store_arguments): Fix coding style.
5196
5197 2012-04-07 Mark Kettenis <kettenis@gnu.org>
5198
5199 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5200 complex floats, adjust some related comments and tighten a related
5201 assertion.
5202 (sparc64_extract_return_value): Handle complex floats.
5203
5204 2012-04-07 Doug Evans <dje@google.com>
5205
5206 * dwarf2read.c (load_partial_dies): Change condition to assert.
5207
5208 2012-04-06 Doug Evans <dje@google.com>
5209
5210 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5211 "mov %rsp,%rbp".
5212
5213 2012-04-05 Kevin Buettner <kevinb@redhat.com>
5214
5215 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5216 fencepost error.
5217 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5218 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5219 architecture.
5220
5221 2012-04-05 Keith Seitz <keiths@redhat.com>
5222
5223 * linespec.c (decode_compound): Remove.
5224 (enum offset_relative_sign): New enum.
5225 (struct line_offset): New struct.
5226 (struct linespec): New struct.
5227 (struct linespec_state): Move file_symtabs,
5228 user_filename, and user_function into struct linespec.
5229 Make result an anonymous struct holding vectors of
5230 symbolp and minsym_and_objfile_d.
5231 Add language member.
5232 (enum ls_token_type): New enum.
5233 (linespec_keywords): New array.
5234 (struct ls_token): New struct.
5235 (struct ls_parser): New struct.
5236 (linespec_lexer_lex_number): New function.
5237 (linespec_lexer_lex_keyword): New function.
5238 (is_ada_operator): New function.
5239 (skip_quote_char): New function.
5240 (copy_token_string): New function.
5241 (is_closing_quote_enclosed): New function.
5242 (find_parameter_list_end): New function.
5243 (linespec_lexer_lex_string): New function.
5244 (linespec_lexer_lex_one): New function.
5245 (linespec_lexer_consume_token): New function.
5246 (linespec_lexer_peek_token): New function.
5247 (cplusplus_error): Remove unused function.
5248 (find_methods): Update comment.
5249 (find_toplevel_char): Return const.
5250 (is_objc_method_format): Remove unused function.
5251 (find_toplevel_string): New function.
5252 (is_linespec_boundary): Remove.
5253 (symbol_not_found_error): New function.
5254 (find_method_overload_end): Remove function.
5255 (unexpected_linespec_error): New function.
5256 (keep_name_info): Remove.
5257 (linespec_parse_line_offset): New function.
5258 (linespec_parse_basic): New function.
5259 (canonicalize_linespec): New function.
5260 (decode_line_internal): Remove.
5261 (create_sals_line_offset): New function adapted from
5262 decode_all_digits.
5263 (convert_linespec_to_sals): New function.
5264 (parse_linespec): New function.
5265 (linespec_parser_new): New function.
5266 (linespec_state_destructor): Change parameter type to
5267 struct linespec_state *.
5268 Add language parameter.
5269 Remove freeing of moved members.
5270 (linespec_parser_delete): New function.
5271 (decode_line_full): Use parse_linespec and linespec_parser_new.
5272 (decode_line_1): Likewise.
5273 (decode_indirect): Rename to ...
5274 (linespec_expression_to_pc): ... this and rewrite
5275 to simply find CORE_ADDR, storing this result for later
5276 conversion to SALs.
5277 (locate_first_half): Remove.
5278 (deocde_objc): Add parameter LS.
5279 Initialize new struct collect_info members.
5280 Handle minimal symbols, too.
5281 (decode_compound): Delete.
5282 (lookup_prefix_sym): Rewrite.
5283 (compare_msymbols): New function.
5284 (find_method): Rewrite.
5285 Do not call cplusplus_error.
5286 (symtabs_from_filename): Rewrite.
5287 (collect_function_symbols): Delete.
5288 (find_function_symbols): Rewrite without ARGPTR-style
5289 processing.
5290 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5291 (decode_dollar): Adapted and renamed to ...
5292 (linespec_parse_variable): ... this.
5293 (find_linespec_symbols): New function.
5294 (decode_label): Adapted and renamed to ...
5295 (find_label_symbols): ... this.
5296 (decode_digits_list_mode): Add and use LS argument.
5297 (decode_digits_ordinary): Likewise.
5298 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5299 If in list mode, allow any symbol class. Otherwise, only
5300 permit LOC_BLOCK symbols.
5301 (minsym_found): Update comments.
5302 (search_minsyms_for_name): Do not convert the matching symbol
5303 into a SAL. Simply push the symbol and objfile into the
5304 result vector.
5305 (decode_variable): Delete. Contents adapted into
5306 find_linespec_symbols.
5307
5308 * cp-support.c (SKIP_SPACE): Remove.
5309 (operator_tokens): Remove unused global.
5310 (cp_validate_operator): Remove.
5311 * cp-support.h (cp_validate_operator): Remove declaration.
5312
5313 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5314
5315 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5316 for TYPE_VPTR_FIELDNO.
5317 * valprint.c (valprint_check_validity): Make it global, move the
5318 function comment ...
5319 * value.h (valprint_check_validity): ... to this new declaration.
5320
5321 2012-04-02 Tristan Gingold <gingold@adacore.com>
5322
5323 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5324 the STATE32 api for i386 state.
5325 (i386_darwin_store_inferior_registers): Likewise.
5326
5327 2012-04-02 Tristan Gingold <gingold@adacore.com>
5328
5329 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5330 SS offset.
5331 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5332 format_string.
5333
5334 2012-04-02 Tristan Gingold <gingold@adacore.com>
5335
5336 PR gdb/13901
5337 * darwin-nat.c (darwin_execvp): Set binary preference.
5338
5339 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5340
5341 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5342
5343 2012-03-30 Tom Tromey <tromey@redhat.com>
5344
5345 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5346 of TRY_CATCH. Fix error handling.
5347 * python/py-value.c (convert_value_from_python): Move 'old'
5348 declaration to innermost scope.
5349
5350 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5351 Andrey Smirnov <andrew.smirnov@gmail.com>
5352
5353 -Wshadow warning fix.
5354 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5355 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5356 Adjust code accordingly.
5357
5358 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5359
5360 * ada-lang.c (symbol_completion_add): Rename parameter
5361 "encoded" into "encoded_p". Ajust code and documentation
5362 accordingly.
5363
5364 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5365 Andrey Smirnov <andrew.smirnov@gmail.com>
5366
5367 -Wshadow warning fix.
5368 * ada-lang.c (symbol_completion_add): Rename parameter
5369 "wild_match" into wild_match_p. Update code and documentation
5370 accordingly.
5371
5372 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5373
5374 * ada-lang.c (symbol_completion_match): Rename parameter
5375 "encoded" into "encoded_p". Ajust code and documentation
5376 accordingly.
5377
5378 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5379 Andrey Smirnov <andrew.smirnov@gmail.com>
5380
5381 -Wshadow warning fix.
5382 * ada-lang.c (symbol_completion_match): Rename parameter
5383 "wild_match" into "wild_match_p". Adjust code and function
5384 documentation accordingly.
5385
5386 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5387 Andrey Smirnov <andrew.smirnov@gmail.com>
5388
5389 -Wshadow warning fix.
5390 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5391 "symbol_info" into "info". Adjust code accordingly.
5392 (ada_lookup_symbol): Likewise.
5393
5394 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5395
5396 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5397 of this function's documentation.
5398
5399 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5400 Andrey Smirnov <andrew.smirnov@gmail.com>
5401
5402 -Wshadow warning fix.
5403 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5404 variable into "wild_match_p". Adjust code accordingly.
5405
5406 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5407 Andrey Smirnov <andrew.smirnov@gmail.com>
5408
5409 -Wshadow warning fix.
5410 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5411 parameter into "wild_match_p". Adjust code accordingly.
5412 Document this parameter in the function description.
5413
5414 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5415 Andrey Smirnov <andrew.smirnov@gmail.com>
5416
5417 -Wshadow warning fix.
5418 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5419 "wild_match" parameter to "wild_match_p" (-Wshadow).
5420
5421 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5422
5423 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5424 in function documentation.
5425
5426 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5427 Andrey Smirnov <andrew.smirnov@gmail.com>
5428
5429 -Wshadow warning fix.
5430 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5431 variable into wild_match_p. Adjust code accordingly.
5432
5433 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5434 Andrey Smirnov <andrew.smirnov@gmail.com>
5435
5436 * ada-valprint.c (ada_val_print_1): Move the code handling
5437 TYPE_CODE_ENUM inside its own lexical block. Declare
5438 variables len and val there, instead of in the function's
5439 top level block. Avoid declaring deref_val again in a way
5440 that shadows another variable of the same name declared
5441 in one of the up-level blocks. Just re-use the up-level
5442 variable instead.
5443
5444 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5445
5446 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5447 Replace block_found argument by symbol_info. Adjust
5448 implementation accordingly. Add function documentation.
5449 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5450 Fix documentation.
5451 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5452 * ada-exp.y (write_object_renaming): Adjust to new
5453 ada_lookup_encoded_symbol API.
5454
5455 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5456
5457 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5458 documentation.
5459
5460 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5461
5462 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5463 (v850_register_name): Add the mpu and fpu register names.
5464 (v850e_register_name): Add the mpu and fpu register names.
5465 (v850e2_register_name): New function.
5466 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5467 bfd_mach_v850e2v3.
5468
5469 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5470
5471 * NEWS: Add entry for Ada varobj support.
5472
5473 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5474
5475 * varobj.c (default_value_is_changeable_p): New function,
5476 extracted from varobj_value_is_changeable_p. Add declaration.
5477 (ada_value_is_changeable_p): New function, extracted from
5478 varobj_value_is_changeable_p. Add declaration.
5479 (struct language_specific): New field "value_is_changeable_p".
5480 (languages): Add entries for new field.
5481 (varobj_create): Set language before calling install_new_value.
5482 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5483 "value_is_changeable_p" language callback.
5484
5485 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5486
5487 * ada-varobj.h, ada-varobj.c: New files.
5488 * Makefile.in (SFILES): Add ada-varobj.c.
5489 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5490 (COMMON_OBS): Add ada-varobj.o.
5491
5492 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5493
5494 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5495 (struct language_specific): New field "value_has_mutated".
5496 (languages): Set field "value_has_mutated" in each entry of array.
5497 (varobj_value_has_mutated): New function.
5498 (varobj_udpdate): Add handling of type mutation.
5499 (value_of_root): Add handling of type mutation.
5500 (ada_value_has_mutated): New function.
5501
5502 2012-03-28 Pedro Alves <palves@redhat.com>
5503
5504 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5505 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5506
5507 2012-03-28 Tom Tromey <tromey@redhat.com>
5508
5509 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5510 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5511 before returning.
5512
5513 2012-03-28 Tom Tromey <tromey@redhat.com>
5514
5515 * .dir-locals.el: New file.
5516
5517 2012-03-28 Pedro Alves <palves@redhat.com>
5518
5519 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5520
5521 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5522
5523 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5524 handling for r0.
5525
5526 2012-03-27 Pedro Alves <palves@redhat.com>
5527
5528 Eliminate struct ui_stream.
5529
5530 * ui-out.h (struct ui_stream): Delete.
5531 (ui_out_field_stream): Adjust prototype.
5532 (ui_out_stream_new, ui_out_stream_delete)
5533 (make_cleanup_ui_out_stream_delete): Delete declarations.
5534 * ui-out.c (ui_out_field_stream): Change prototype to take a
5535 ui_file instead of a ui_stream. Adjust.
5536 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5537 (make_cleanup_ui_out_stream_delete): Delete.
5538 * breakpoint.c (print_breakpoint_location)
5539 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5540 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5541 * disasm.c (dump_insns): Ditto.
5542 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5543 prototype.
5544 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5545 ui_stream/ui_out_stream_new.
5546 * infcmd.c (print_return_value): Ditto.
5547 * osdata.c (info_osdata_command): Don't allocate a local
5548 ui_stream.
5549 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5550 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5551 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5552 allocate a local ui_stream.
5553 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5554 instead of ui_stream/ui_out_stream_new.
5555 (list_args_or_locals): Don't allocate a local ui_stream.
5556 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5557 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5558 ui_stream/ui_out_stream_new.
5559 * cli/cli-setshow.c (do_setshow_command): Ditto.
5560
5561 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5562
5563 * arm-linux-tdep.c (arm_linux_init_abi): Call
5564 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5565 * arm-tdep.c (arm_process_record): New function.
5566 (deallocate_reg_mem): New function.
5567 (decode_insn): New function.
5568 (thumb_record_branch): New function.
5569 (thumb_record_ldm_stm_swi(): New function.
5570 (thumb_record_misc): New function.
5571 (thumb_record_ld_st_stack): New function.
5572 (thumb_record_ld_st_imm_offset): New function.
5573 (thumb_record_ld_st_reg_offset(): New function.
5574 (thumb_record_add_sub_cmp_mov): New function.
5575 (thumb_record_shift_add_sub): New function.
5576 (arm_record_coproc_data_proc): New function.
5577 (arm_record_coproc): New function.
5578 (arm_record_b_bl): New function.
5579 (arm_record_ld_st_multiple): New function.
5580 (arm_record_ld_st_reg_offset): New function.
5581 (arm_record_ld_st_imm_offset): New function.
5582 (arm_record_data_proc_imm): New function.
5583 (arm_record_data_proc_misc_ld_str): New function.
5584 (arm_record_extension_space): New function.
5585 (arm_record_strx): New function.
5586 (sbo_sbz): New function.
5587 (struct insn_decode_record): New structure for arm insn record.
5588 (REG_ALLOC): New macro for reg allocations.
5589 (MEM_ALLOC): New macro for memory allocations.
5590 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5591
5592 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5593
5594 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5595 (store_register): Likewise.
5596
5597 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5598
5599 * MAINTAINERS (Write After Approval): Add myself to the list.
5600
5601 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5602
5603 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5604 Describe also the option "auto".
5605
5606 2012-03-22 Richard Henderson <rth@redhat.com>
5607
5608 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5609 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5610
5611 2012-03-22 Richard Henderson <rth@redhat.com>
5612
5613 * jit.c (jit_read_code_entry): Compute alignment and offset of
5614 int64_t member before computing entry_size.
5615
5616 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5617
5618 Python scripting: Add new method Value.referenced_value to
5619 gdb.Value which can dereference pointer as well as reference
5620 values.
5621 * NEWS: Add entry under 'Python scripting' about the new method
5622 Value.referenced_value on gdb.Value objects.
5623 * python/py-value.c (valpy_referenced_value): New function
5624 defining a new method on gdb.Value objects which can dereference
5625 pointer and reference values.
5626
5627 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5628
5629 * MAINTAINERS (Write After Approval): Add myself to the list.
5630
5631 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5632
5633 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5634 in addition to "main".
5635
5636 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5637
5638 * expression.h (op_name): Add declaration.
5639 * expprint.c (op_name): Remove declaration. Make non-static.
5640 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5641
5642 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5643
5644 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5645 of struct siginfo.
5646 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5647 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5648 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5649 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5650 (linux_nat_get_siginfo): Likewise.
5651 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5652 (linux_nat_get_siginfo): Likewise.
5653 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5654 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5655 * procfs.c (gdb_siginfo_t): Likewise.
5656
5657 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5658
5659 * .gitignore: Ignore more files.
5660
5661 2012-03-20 Pedro Alves <palves@redhat.com>
5662
5663 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5664 returns.
5665
5666 2012-03-20 Yao Qi <yao@codesourcery.com>
5667
5668 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5669 comment.
5670
5671 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5672
5673 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5674 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5675 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5676 sect_offset.
5677 * dwarf2expr.h (cu_offset, sect_offset): New types.
5678 (struct dwarf_expr_context_funcs) <dwarf_call>
5679 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5680 sect_offset.
5681 (struct dwarf_expr_context) <len>: Improve the comment.
5682 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5683 cu_offset and sect_offset.
5684 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5685 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5686 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5687 * dwarf2loc.h: Include dwarf2expr.h.
5688 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5689 and sect_offset.
5690 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5691 Improve the comment.
5692 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5693 (struct signatured_type, struct line_header, struct partial_die_info)
5694 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5695 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5696 (get_die_type_at_offset, create_cus_from_index)
5697 (create_signatured_type_table_from_index, dw2_get_file_names)
5698 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5699 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5700 (create_debug_types_hash_table, process_psymtab_comp_unit)
5701 (load_partial_comp_unit, create_all_comp_units)
5702 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5703 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5704 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5705 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5706 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5707 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5708 (find_partial_die, read_attribute_value, lookup_die_type)
5709 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5710 (is_ref_attr): New function comment.
5711 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5712 Use cu_offset and sect_offset.
5713 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5714 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5715 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5716 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5717 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5718 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5719 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5720 sect_offset.
5721
5722 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5723
5724 Code cleanup.
5725 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5726 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5727 with xfree.
5728 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5729
5730 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5731
5732 * NEWS: Describe new options --init-command=FILE, -ix and
5733 --init-eval-command=COMMAND, -iex.
5734 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5735 CMDARG_INIT_COMMAND.
5736 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5737 "init-command", "init-eval-command", "ix" and "iex" to the variable
5738 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5739 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5740 (print_gdb_help): Describe --init-command=FILE, -ix and
5741 --init-eval-command=COMMAND, -iex.
5742
5743 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5744
5745 Code cleanup.
5746 * main.c (struct cmdarg): Move it here from main. Add more comments.
5747 (cmdarg_s, VEC (cmdarg_s)): New.
5748 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5749 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5750 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5751 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5752 of CMDARG.
5753
5754 2012-03-19 Tom Tromey <tromey@redhat.com>
5755
5756 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5757
5758 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5759
5760 PR symtab/13777
5761 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5762 GCC >=4.5.
5763
5764 2012-03-16 Chris January <chris.january@allinea.com>
5765
5766 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5767 of clear.
5768
5769 2012-03-16 Chris January <chris.january@allinea.com>
5770
5771 * source.c (add_path): Use memmove instead of strcpy because the
5772 strings overlap.
5773
5774 2012-03-16 Joel Brobecker <brobecker@adacore.com>
5775
5776 * value.h (set_value_parent): Add declaration.
5777 * value.c (set_value_parent): New function.
5778 (value_address): If VALUE->PARENT is not NULL, then use it as
5779 the base address instead of VALUE->LOCATION.address.
5780 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5781 the same as OBJ's address. Adjust V's offset accordingly.
5782 Set V's parent.
5783
5784 2012-03-16 Gary Benson <gbenson@redhat.com>
5785
5786 PR breakpoints/10738
5787 * dwarf2read.c (use_deprecated_index_sections): New global.
5788 (struct partial_die_info): New member may_be_inlined.
5789 (read_partial_die): Set may_be_inlined where appropriate.
5790 (add_partial_subprogram): Add partial symbols for partial
5791 DIEs that may be inlined.
5792 (new_symbol_full): Add inlined subroutines to the current
5793 scope.
5794 (write_psymtabs_to_index): Bump version number.
5795 (dwarf2_read_index): Read only version 6 indices unless
5796 use_deprecated_index_sections is set.
5797 * linespec.c (symbol_and_data_callback): New structure.
5798 (iterate_inline_only): New function.
5799 (iterate_over_all_matching_symtabs): New argument
5800 "include_inline". If nonzero, also call the callback for
5801 symbols representing inlined subroutines.
5802 (lookup_prefix_sym): Pass extra argument to the above.
5803 (find_function_symbols): Likewise.
5804 (add_matching_symbols_to_info): Likewise.
5805 * NEWS: Mention that GDB can now set breakpoints on inlined
5806 functions.
5807
5808 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5809
5810 * p-typeprint.c (pascal_type_print_method_args):
5811 Fix display of parameter of methods.
5812
5813 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5814
5815 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5816 Add missing prototype.
5817
5818 2012-03-16 Yao Qi <yao@codesourcery.com>
5819 Jan Kratochvil <jan.kratochvil@redhat.com>
5820
5821 Fix false compilation warning.
5822 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5823
5824 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5825 Pedro Alves <pedro@codesourcery.com>
5826
5827 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5828 (arm_register_g_packet_guesses): New function.
5829 (arm_gdbarch_init): Don't force a target description with
5830 registers when the executable is detected as M-profile. Instead
5831 set gdbarch->tdep->is_m. Register `g' packet guesses.
5832 (_initialize_arm_tdep): Initialize the new target description.
5833 * features/arm-with-m-fpa-layout.xml: New description.
5834 * features/arm-with-m-fpa-layout.c: New, generated.
5835
5836 2012-03-15 Joel Brobecker <brobecker@adacore.com>
5837
5838 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5839 Update function description.
5840 (insert_bp_location): Do not wipe bl->target_info out.
5841 * mem-break.c: #include "gdb_string.h".
5842 (default_memory_insert_breakpoint): Do not call target_read_memory
5843 with a pointer to the breakpoint's shadow_contents buffer. Use
5844 a local buffer instead.
5845 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5846
5847 2012-03-15 Tom Tromey <tromey@redhat.com>
5848
5849 * NEWS: Mention "info vtbl", not "info vtable".
5850 * cp-support.c (info_vtbl_command): Fix comment.
5851 (_initialize_cp_support): Fix text.
5852
5853 2012-03-15 Tom Tromey <tromey@redhat.com>
5854
5855 * cp-valprint.c (cp_print_value_fields): Use
5856 print_function_pointer_address for vtable slot.
5857
5858 2012-03-15 Tom Tromey <tromey@redhat.com>
5859
5860 * gnu-v3-abi.c (struct value_and_voffset): New.
5861 (hash_value_and_voffset, eq_value_and_voffset)
5862 (compare_value_and_voffset, compute_vtable_size)
5863 (print_one_vtable, gnuv3_print_vtable): New functions.
5864 (init_gnuv3_ops): Initialize 'print_vtable' field.
5865 * cp-support.c (info_vtbl_command): New function.
5866 (_initialize_cp_support): Add "info vtbl".
5867 * cp-abi.h (cplus_print_vtable): Declare.
5868 (struct cp_abi_ops) <print_vtable>: New field.
5869 * cp-abi.c (cplus_print_vtable): New function.
5870 * NEWS: Update.
5871
5872 2012-03-15 Tom Tromey <tromey@redhat.com>
5873
5874 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5875 iterate_over_symbols.
5876
5877 2012-03-14 Doug Evans <dje@google.com>
5878
5879 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5880 DW_OP_GNU_parameter_ref.
5881
5882 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5883
5884 Fix double prompt of 'interpreter-exec mi'.
5885 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5886 (mi_interpreter_resume): use it.
5887 (mi_execute_command_input_handler): New function.
5888 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5889 mi_execute_command_input_handler.
5890
5891 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
5892
5893 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5894 prototype.
5895 (darwin_debug_port_info): Make static.
5896 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5897 * machoread.c (_initialize_machoread): Add prototype.
5898 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5899 (i386_darwin_set_control, i386_darwin_get_control)
5900 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5901 i386_darwin_get_status, i386_darwin_get_control):
5902 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5903
5904 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5905
5906 * ax-gdb.c (gen_usual_unary): Remove special handling of
5907 enum and bool types.
5908
5909 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5910
5911 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5912
5913 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5914
5915 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5916
5917 2012-03-13 Chris January <chris.january@allinea.com>
5918
5919 * aix-thread.c (fill_sprs): Store the floating point registers
5920 at the correct offsets into vals.
5921
5922 2012-03-13 Doug Evans <dje@google.com>
5923
5924 * NEWS: Mention symbol-reloading has been deleted.
5925 * symfile.c (symbol_reloading): Delete.
5926 (show_symbol_reloading): Delete.
5927 (_initialize_symfile): Delete set/show symbol-reloading.
5928
5929 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5930 read_in_chain until we have successfully read it in.
5931 (load_full_comp_unit): Ditto.
5932 (read_signatured_type): Add comment.
5933
5934 2012-03-13 Chris January <chris.january@allinea.com>
5935
5936 * stabsread.c (fix_common_block): Change type of valu argument
5937 to CORE_ADDR.
5938
5939 2012-03-13 Chris January <chris.january@allinea.com>
5940
5941 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5942 instruction.
5943
5944 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5945
5946 * common/linux-procfs.c (linux_proc_get_int): New, from
5947 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5948 field.
5949 (linux_proc_get_tgid): Only call linux_proc_get_int.
5950 (linux_proc_get_tracerpid): New.
5951 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5952 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5953 linux_proc_pid_has_state.
5954 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5955 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5956 (linux_ptrace_attach_warnings): New.
5957 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5958 New declaration.
5959 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5960 (linux_nat_attach): New variables ex, buffer, message and message_s.
5961 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5962
5963 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5964
5965 * Makefile.in (linux-ptrace.o): New.
5966 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5967 from linux-nat.c.
5968 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5969 * common/linux-ptrace.c: New file.
5970 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5971 * config/arm/linux.mh: Likewise.
5972 * config/i386/linux.mh: Likewise.
5973 * config/i386/linux64.mh: Likewise.
5974 * config/ia64/linux.mh: Likewise.
5975 * config/m32r/linux.mh: Likewise.
5976 * config/m68k/linux.mh: Likewise.
5977 * config/mips/linux.mh: Likewise.
5978 * config/pa/linux.mh: Likewise.
5979 * config/powerpc/linux.mh: Likewise.
5980 * config/powerpc/ppc64-linux.mh: Likewise.
5981 * config/powerpc/spu-linux.mh: Likewise.
5982 * config/s390/s390.mh: Likewise.
5983 * config/sparc/linux.mh: Likewise.
5984 * config/sparc/linux64.mh: Likewise.
5985 * config/xtensa/linux.mh: Likewise.
5986 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
5987 common/linux-procfs.c.
5988 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
5989
5990 2012-03-13 Hui Zhu <teawater@gmail.com>
5991 Pedro Alves <palves@redhat.com>
5992
5993 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
5994 CREATE_BREAKPOINT_FLAGS_INSERTED.
5995 (create_breakpoint_sal, create_breakpoints_sal)
5996 (base_breakpoint_create_breakpoints_sal)
5997 (tracepoint_create_breakpoints_sal)
5998 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
5999 down.
6000 (break_command_1, handle_gnu_v3_exceptions, trace_command)
6001 (ftrace_command, strace_command): Adjust.
6002 (create_tracepoint_from_upload): Pass
6003 CREATE_BREAKPOINT_FLAGS_INSERTED.
6004 * breakpoint.h (enum breakpoint_create_flags): New.
6005 (create_breakpoint): New flags parameter.
6006 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
6007 * python/py-breakpoint.c (bppy_init): Adjust.
6008 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
6009 * spu-tdep.c (spu_catch_start): Adjust.
6010
6011 2012-03-13 Pedro Alves <palves@redhat.com>
6012 Hui Zhu <teawater@gmail.com>
6013 Yao Qi <yao@codesourcery.com>
6014
6015 * remote.c (struct remote_state): New field `starting_up'.
6016 (remote_start_remote): Set and clear it.
6017 (remote_can_download_tracepoint): If starting up, return false.
6018
6019 2012-03-13 Yao Qi <yao@codesourcery.com>
6020
6021 * inferior.h (struct inferior): Remove fields any_syscall_count,
6022 syscalls_counts and total_syscalls_count. Move them to new
6023 struct catch_syscall_inferior_data in breakpoint.c.
6024 * breakpoint.c: Call DEF_VEC_I(int).
6025 (struct catch_syscall_inferior_data): New.
6026 (get_catch_syscall_inferior_data): New.
6027 (catch_syscall_inferior_data_cleanup): New.
6028 (insert_catch_syscall): Update to access data in
6029 struct catch_syscall_inferior_data.
6030 (insert_catch_syscall): Likewise.
6031 (remove_catch_syscall): Likewise.
6032 (remove_catch_syscall): Likewise.
6033 (is_syscall_catchpoint_enabled): Likewise.
6034 (add_catch_command): Likewise.
6035 (_initialize_breakpoint): Register cleanup.
6036 * breakpoint.h: Removed DEF_VEC_I(int).
6037 * dwarf2loc.c: Call DEF_VEC_I(int).
6038 * mi/mi-main.c: Likewise.
6039
6040 2012-03-12 Mark Kettenis <kettenis@gnu.org>
6041
6042 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
6043
6044 2012-03-12 Chris January <chris.january@allinea.com>
6045
6046 * aix-thread.c (_initialize_aix_thread): Add prototype.
6047 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
6048 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
6049
6050 2012-03-12 Joel Brobecker <brobecker@adacore.com>
6051
6052 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
6053 include of "amd64-nat.h".
6054
6055 2012-03-12 Tom Tromey <tromey@redhat.com>
6056
6057 * buildsym.c (record_pending_block): Now static.
6058 * buildsym.h: (record_pending_block): Remove.
6059
6060 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
6061
6062 * amd64bsd-nat.c: Include amd64bsd-nat.h.
6063
6064 2012-03-09 Tom Tromey <tromey@redhat.com>
6065
6066 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
6067 producer_is_gxx_lt_4_6>: New fields.
6068 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
6069
6070 2012-03-09 Tom Tromey <tromey@redhat.com>
6071
6072 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
6073
6074 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6075
6076 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
6077 prototype.
6078
6079 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6080
6081 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
6082
6083 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6084
6085 Fix -Wmissing-prototypes build.
6086 * arm-linux-nat.c (get_thread_id): Make it static.
6087 * xtensa-linux-nat.c (get_thread_id): Likewise.
6088
6089 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6090
6091 * server.c (process_point_options): If a conditional expression
6092 is found, only print a message if remote_debug is nonzero.
6093
6094 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
6095
6096 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
6097 of internal error for unknown/unsupported types.
6098
6099 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6100
6101 Fix CU relative vs. absolute DIE offsets.
6102 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
6103 offset to offset_in_cu.
6104 * dwarf2read.c (process_enumeration_scope): Add CU offset to
6105 TYPE_OFFSET.
6106 (dwarf2_fetch_die_location_block): Rename parameter offset to
6107 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
6108
6109 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6110
6111 * libunwind-frame.c: Rename to ...
6112 * ia64-libunwind-tdep.c: ... here.
6113 * libunwind-frame.h: Rename to ...
6114 * ia64-libunwind-tdep.h: ... here.
6115 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
6116 ia64-libunwind-tdep.h.
6117 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
6118 * README (--with-libunwind): Rename to ...
6119 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
6120 * config.in: Regenerate.
6121 * configure: Regenerate.
6122 * configure.ac: New option --with-libunwind-ia64, make the
6123 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
6124 Remove AC_DEFINE for HAVE_LIBUNWIND.
6125 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
6126 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
6127 Rename libunwind-frame in the general comment.
6128 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
6129 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
6130 Move forward declarations inside #ifndef. Rename libunwind-frame in
6131 the general comment.
6132 * ia64-tdep.c: Rename libunwind-frame.h #include to
6133 ia64-libunwind-tdep.h.
6134 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
6135 (ia64_libunwind_descr): Rename libunwind-frame to
6136 ia64-libunwind-tdep in these function comments.
6137 * ia64-tdep.h: Rename libunwind-frame.h #include to
6138 ia64-libunwind-tdep.h.
6139 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6140 ia64-libunwind-tdep in that data comment.
6141
6142 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6143
6144 * libunwind-frame.h (struct frame_unwind): New declaration.
6145
6146 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6147
6148 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6149 "set breakpoint condition-evaluation" command.
6150
6151 2012-03-08 Tristan Gingold <gingold@adacore.com>
6152
6153 * sparc-stub.c: Move to stubs/
6154 * sh-stub.c: Likewise.
6155 * m68k-stub.c: Likewise.
6156 * m32r-stub.c: Likewise.
6157 * i386-stub.c: Likewise.
6158
6159 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6160
6161 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6162 linux_get_siginfo_type.
6163
6164 * m68klinux-nat.c: Include "gdb_proc_service.h".
6165 (PTRACE_GET_THREAD_AREA): Define.
6166 (ps_get_thread_area): New function.
6167
6168 2012-03-08 Yao Qi <yao@codesourcery.com>
6169
6170 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6171 `xsnprintf'.
6172 (remote_query_attached): Likewise.
6173 (remote_static_tracepoint_marker_at): Likewise.
6174 (remote_set_permissions): Likewise.
6175 (remote_detach_1, extended_remote_attach_1): Likewise.
6176 (send_g_packet, remote_vkill): Likewise.
6177 (extended_remote_disable_randomization): Likewise.
6178 (remote_add_target_side_condition): Likewise.
6179 (remote_insert_breakpoint): Likewise.
6180 (remote_remove_breakpoint): Likewise.
6181 (remote_insert_watchpoint): Likewise.
6182 (remote_remove_watchpoint): Likewise.
6183 (remote_insert_hw_breakpoint): Likewise.
6184 (remote_insert_hw_breakpoint): Likewise.
6185 (remote_remove_hw_breakpoint): Likewise.
6186 (remote_download_command_source): Likewise.
6187 (remote_download_tracepoint): Likewise.
6188 (remote_download_trace_state_variable): Likewise.
6189 (remote_disable_tracepoint): Likewise.
6190 (remote_trace_set_readonly_regions): Likewise.
6191 (remote_get_tracepoint_status): Likewise.
6192 (remote_trace_find): Likewise.
6193 (remote_get_trace_state_variable_value): Likewise.
6194 (remote_set_disconnected_tracing): Likewise.
6195 (remote_set_circular_trace_buffer): Likewise.
6196 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6197 (remote_use_agent): Likewise.
6198 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6199 Update callers.
6200
6201 2012-03-07 Pedro Alves <palves@redhat.com>
6202
6203 * NEWS: Mention QProgramSignals.
6204 * inferior.h (update_signals_program_target): Declare.
6205 * infrun.c: (update_signals_program_target): New.
6206 (handle_command): Update the target of the new program signals
6207 array changes.
6208 * remote.c (PACKET_QProgramSignals): New enum.
6209 (last_program_signals_packet): New global.
6210 (remote_program_signals): New.
6211 (remote_start_remote): Update the target with the program signals
6212 list.
6213 (remote_protocol_features): Add entry for QPassSignals.
6214 (remote_open_1): Free anc clear last_program_signals_packet.
6215 (init_remote_ops): Install remote_program_signals.
6216 * target.c (update_current_target): Adjust.
6217 (target_program_signals): New.
6218 * target.h (struct target_ops) <to_program_signals>: New field.
6219 (target_program_signals): Declare.
6220
6221 2012-03-07 Pedro Alves <palves@redhat.com>
6222
6223 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6224 extensions.
6225
6226 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6227
6228 * m68klinux-nat.c (getregs_supplies): Make static.
6229 (getfpregs_supplies): Likewise.
6230 (have_ptrace_getregs): Likewise.
6231
6232 2012-03-06 Joel Brobecker <brobecker@adacore.com>
6233
6234 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6235 in call to get_die_type_at_offset.
6236
6237 2012-03-06 Stan Shebs <stan@codesourcery.com>
6238
6239 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6240 * mi/mi-cmd-disas.c: Ditto.
6241 * mi/mi-cmd-env.c: Ditto.
6242 * mi/mi-cmd-file.c: Ditto.
6243 * mi/mi-cmd-stack.c: Ditto.
6244 * mi/mi-cmd-target.c: Ditto.
6245 * mi/mi-cmd-var.c: Ditto.
6246 * mi/mi-cmds.c: Ditto.
6247 * mi/mi-cmds.h: Ditto.
6248 * mi/mi-console.c: Ditto.
6249 * mi/mi-getopt.c: Ditto.
6250 * mi/mi-getopt.h: Ditto.
6251 * mi/mi-interp.c: Ditto.
6252 * mi/mi-main.c: Ditto.
6253 * mi/mi-out.c: Ditto.
6254 * mi/mi-parse.c: Ditto.
6255 * mi/mi-parse.h: Ditto.
6256 * mi/mi-symbol-cmds.c: Ditto.
6257
6258 * mi/mi-getopt.h: Move mi_opt struct up.
6259 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6260 return.
6261 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6262
6263 2012-03-06 Tom Tromey <tromey@redhat.com>
6264
6265 * proc-service.c (ps_pglobal_lookup): Set the current program
6266 space.
6267
6268 2012-03-06 Pedro Alves <palves@redhat.com>
6269
6270 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6271
6272 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6273
6274 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6275
6276 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6277
6278 Code cleanup.
6279 * common/linux-osdata.c (linux_common_core_of_thread): New function
6280 comment.
6281 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6282 call by linux_common_core_of_thread.
6283 (linux_nat_core_of_thread_1): Remove.
6284 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6285 * linux-thread-db.c: Include linux-osdata.h.
6286 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6287 linux_common_core_of_thread.
6288
6289 2012-03-05 Tom Tromey <tromey@redhat.com>
6290
6291 * value.c (value_primitive_field): Don't fetch contents for
6292 non-virtual bases.
6293
6294 2012-03-05 Tom Tromey <tromey@redhat.com>
6295
6296 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6297
6298 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6299
6300 * s390-nat.c: Include "gregset.h".
6301
6302 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6303
6304 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6305 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6306 (libunwind_load): New variable so_error, use it for dlerror. Try to
6307 load also LIBUNWIND_SO_7.
6308
6309 2012-03-05 Pedro Alves <palves@redhat.com>
6310
6311 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6312 is not NULL, and remove resulting dead code.
6313
6314 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6315
6316 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6317 prologue to sh_analyze_prologue.
6318 (sh_analyze_prologue): Make better use of such an upper limit, and
6319 generally be more cautious about accessing memory.
6320
6321 2012-03-05 Tom Tromey <tromey@redhat.com>
6322
6323 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6324 _initialize_ia64_hpux_tdep.
6325
6326 2012-03-05 Pedro Alves <palves@redhat.com>
6327
6328 PR gdb/13766
6329
6330 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6331 the register state is clear, supply explicit zero, instead of
6332 marking the register unavailable.
6333
6334 2012-03-05 Tristan Gingold <gingold@adacore.com>
6335
6336 * NEWS: Mention OpenVMS ia64 new target.
6337
6338 2012-03-05 Tristan Gingold <gingold@adacore.com>
6339
6340 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6341 (ia64_unw_accessors, ia64_unw_rse_accessors)
6342 (ia64_libunwind_descr): Declare.
6343 * ia64-vms-tdep.c: New file.
6344 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6345 (ia64_libunwind_descr): Make them public.
6346 * configure.tgt: Add ia64-*-*vms*.
6347 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6348 (ALLDEPFILES): Add ia64-vms-tdep.c
6349
6350 2012-03-05 Tristan Gingold <gingold@adacore.com>
6351
6352 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6353 * remote.c (PACKET_qXfer_uib): New enum value.
6354 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6355 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6356 (_initialize_remote): Call add_packet_config_cmd for
6357 xfer:uib packet.
6358
6359 2012-03-05 Tristan Gingold <gingold@adacore.com>
6360
6361 * osabi.c (gdb_osabi_names): Add OpenVMS.
6362 (generic_elf_osabi_sniffer): Likewise.
6363 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6364
6365 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6366
6367 Removed unused code.
6368 * libunwind-frame.c (libunwind_frame_unwind)
6369 (libunwind_frame_base_address): Remove.
6370 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6371
6372 2012-03-04 Yao Qi <yao@codesourcery.com>
6373
6374 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6375 remove trailing new line.
6376 (agent_run_command, agent_run_command): Add _ markup.
6377 (agent_capability_check): Likewise.
6378
6379 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6380
6381 * breakpoint.c (set_condition_evaluation_mode): Set
6382 CONDITION_EVALUATION_MODE unconditionally.
6383
6384 2012-03-03 Yao Qi <yao@codesourcery.com>
6385
6386 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6387 * common/agent.h: Update declaration.
6388 * inf-child.c (inf_child_use_agent): New.
6389 (inf_child_can_use_agent): New.
6390 (inf_child_target): Initialize fields `to_use_agent'
6391 and `to_can_use_agent'.
6392 * agent.c (agent_new_objfile): New.
6393 (_initialize_agent): Add agent_new_objfile to new_objfile
6394 observer.
6395
6396 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6397 New.
6398 (linux_target_install_ops): Initialize field
6399 `to_static_tracepoint_markers_by_strid'.
6400 * remote.c (free_current_marker): Move it to ...
6401 * tracepoint.c (free_current_marker): ... here. New.
6402 (cleanup_target_stop): New.
6403 * tracepoint.h: Declare free_current_marker.
6404 * NEWS: Add one entry about `info static-tracepoint-marker'.
6405
6406 2012-03-03 Yao Qi <yao@codesourcery.com>
6407
6408 * common/agent.c (agent_loaded_p): New.
6409 (agent_look_up_symbols): New global.
6410 * common/agent.h: Declare agent_loaded_p.
6411
6412 2012-03-03 Yao Qi <yao@codesourcery.com>
6413
6414 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6415 (agent_capability_check, agent_capability_invalidate): New.
6416 (symbol_list): New array element.
6417 * common/agent.h (enum agent_capa): New.
6418 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6419
6420 2012-03-03 Yao Qi <yao@codesourcery.com>
6421
6422 * target.h (struct target_ops) <to_use_agent>: New field.
6423 (struct target_ops) <to_can_use_agent>: New field.
6424 (target_use_agent, target_can_use_agent): New macro.
6425 * target.c (update_current_target): Update.
6426 * remote.c: New enum `PACKET_QAgent'.
6427 (remote_protocol_features): Add a new element.
6428 (remote_use_agent, remote_can_use_agent): New.
6429 (init_remote_ops): Initialize field `can_use_agent' with
6430 remote_can_use_agent. Intiailize field `use_agent' with
6431 remote_use_agent.
6432 * common/agent.c (use_agent): New global.
6433 * common/agent.h: Declare it.
6434 * tracepoint.c (info_static_tracepoint_markers_command): Add
6435 comment.
6436 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6437 (COMMON_OBS): Add common/agent.o and agent.o
6438 (common-agent.o): New rule.
6439 * agent.c: New.
6440
6441 2012-03-03 Yao Qi <yao@codesourcery.com>
6442
6443 * common/agent.c: New.
6444 * common/agent.h: New.
6445 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6446 AC_CHECK_HEADERS.
6447 * configure, configh.in: Regenerated.
6448
6449 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6450
6451 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6452 unless it exists for this architecture.
6453
6454 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6455
6456 * language.h (struct language_defn): New "method" la_read_var_value.
6457 * findvar.c: #include "language.h".
6458 (default_read_var_value): Renames read_var_value. Rewrite
6459 function description.
6460 (read_var_value): New function.
6461 * value.h (default_read_var_value): Add prototype.
6462 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6463 New functions.
6464 (ada_language_defn): Add entry for la_read_var_value.
6465 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6466 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6467 language_defn structures to add entry for new la_read_var_value
6468 field.
6469
6470 2012-03-02 Tom Tromey <tromey@redhat.com>
6471 Pedro Alves <palves@redhat.com>
6472
6473 PR breakpoints/13776:
6474 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6475 breakpoints.
6476 (delete_longjmp_breakpoint_at_next_stop): New.
6477 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6478 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6479 before deleting the inferior. Add comments.
6480 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6481 breakpoints immediately, but only on next stop. Move that code
6482 next to where we mark other breakpoints for deletion.
6483
6484 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6485
6486 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6487 marker.
6488 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6489 violation.
6490
6491 2012-03-02 Pedro Alves <palves@redhat.com>
6492
6493 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6494
6495 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6496
6497 Fix -Wmissing-prototypes build.
6498 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6499 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6500 (gdbsim_has_memory): Likewise.
6501
6502 2012-03-02 Yao Qi <yao@codesourcery.com>
6503
6504 Fix -Wmissing-prototypes build.
6505 * charset.c (phony_iconv_open): Make static.
6506 (phony_iconv_close, phony_iconv): Likewise.
6507 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6508 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6509 prototype.
6510 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6511 * ser-mingw.c (create_select_thread): Make static.
6512 * windows-termcap.c (tgetent): New prototype.
6513 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6514
6515 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6516
6517 Fix -Wmissing-prototypes build.
6518 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6519 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6520 (_initialize_loadable): New prototypes.
6521
6522 2012-03-02 Doug Evans <dje@google.com>
6523
6524 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6525 abbrev table, read_comp_unit will do it.
6526
6527 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6528
6529 Fix -Wmissing-prototypes build.
6530 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6531 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6532 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6533 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6534 (_initialize_arm_symbian_tdep): New prototype.
6535 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6536 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6537 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6538 static.
6539 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6540 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6541 prototype.
6542 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6543 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6544 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6545 static.
6546 * moxie-tdep.c (moxie_process_record): Likewise.
6547 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6548 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6549 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6550 (_initialize_rl78_tdep): New prototype.
6551 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6552 (_initialize_rx_tdep): New prototype.
6553 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6554 (_initialize_darwin_solib): New prototype.
6555 * solib-spu.c: Include solib-spu.h.
6556 (_initialize_spu_solib): New prototype.
6557 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6558 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6559 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6560 (tic6x_software_single_step): Make it static.
6561 (_initialize_tic6x_tdep): New prototype.
6562
6563 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6564
6565 Fix -Wmissing-prototypes build.
6566 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6567 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6568
6569 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6570
6571 Fix -Wmissing-prototypes build.
6572 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6573 (frv_have_stopped_data_address): Remove.
6574
6575 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6576
6577 Fix -Wmissing-prototypes build.
6578 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6579 * sh-tdep.c: Include sh64-tdep.h.
6580 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6581 * sh64-tdep.c: Include sh64-tdep.h.
6582 * sh64-tdep.h: New file.
6583
6584 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6585
6586 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6587
6588 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6589
6590 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6591 sp_regnum once the gdbarch_init_osabi hook has been called.
6592
6593 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6594
6595 * mips-tdep.c (mips32_bc1_pc): New function.
6596 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6597 BPOSGE32 and BPOSGE64 instructions.
6598 (deal_with_atomic_sequence): Likewise.
6599 (mips32_instruction_has_delay_slot): Likewise.
6600
6601 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6602 Chris Dearman <chris@mips.com>
6603 Maciej W. Rozycki <macro@codesourcery.com>
6604 Joseph Myers <joseph@codesourcery.com>
6605
6606 * features/mips-dsp.xml: New file.
6607 * features/mips64-dsp.xml: New file.
6608 * features/mips-dsp-linux.xml: New file.
6609 * features/mips64-dsp-linux.xml: New file.
6610 * features/Makefile (WHICH): Add mips-dsp-linux and
6611 mips64-dsp-linux.
6612 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6613 * features/mips-dsp-linux.c: New file.
6614 * features/mips64-dsp-linux.c: New file.
6615 * regformats/mips-dsp-linux.dat: New file.
6616 * regformats/mips64-dsp-linux.dat: New file.
6617 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6618 registers.
6619 (mips64_linux_register_addr): Likewise.
6620 (mips64_linux_regsets_fetch_registers): Likewise.
6621 (mips64_linux_regsets_store_registers): Likewise.
6622 (mips64_linux_fetch_registers): Update call to
6623 mips64_linux_regsets_fetch_registers.
6624 (mips64_linux_store_registers): Update call to
6625 mips64_linux_regsets_store_registers.
6626 (mips_linux_read_description): Probe for DSP registers.
6627 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6628 and initialize_tdesc_mips64_dsp_linux.
6629 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6630 Remove padding of no longer used embedded register slots.
6631 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6632 (MIPS_RESTART_REGNUM): Redefine enum value.
6633 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6634 strings.
6635 (mips_tx39_reg_names): Likewise.
6636 (mips_linux_reg_names): New array of register names for Linux
6637 targets.
6638 (mips_register_name): Check for a null pointer in
6639 mips_processor_reg_names and return an empty string.
6640 (mips_register_type): Exclude embedded registers for the IRIX
6641 and Linux ABIs.
6642 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6643 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6644 DSP registers.
6645 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6646 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6647 (mips_gdbarch_init): Likewise. Initialize internal register
6648 indices for the Linux ABI. Use dynamic numbers to refer to
6649 registers, as applicable, while parsing the target description.
6650 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6651
6652 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6653
6654 * frame.h (read_frame_register_unsigned): Fix typo in function
6655 description.
6656
6657 2012-03-01 Pedro Alves <palves@redhat.com>
6658
6659 * jit-reader.in [!__cplusplus]
6660 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6661
6662 2012-03-01 Pedro Alves <palves@redhat.com>
6663
6664 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6665 * configure: Regenerate.
6666
6667 2012-03-01 Pedro Alves <palves@redhat.com>
6668
6669 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6670 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6671 (ftrace_command, strace_command): Make static.
6672 * d-lang.c (_initialize_d_language): Declare.
6673 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6674 * dwarf2loc.c (_initialize_dwarf2loc):
6675 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6676 * exec.c (exec_get_section_table): Make static.
6677 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6678 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6679 * inferior.c (remove_inferior_command, add_inferior_command)
6680 (clone_inferior_command): Make static.
6681 * linux-nat.c (linux_nat_thread_address_space)
6682 (linux_nat_core_of_thread): Make static.
6683 * linux-tdep.c (_initialize_linux_tdep): Declare.
6684 * objc-lang.c (_initialize_objc_lang): Declare.
6685 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6686 Make static.
6687 (_initialize_opencl_language): Declare.
6688 * record.c (_initialize_record): Declare.
6689 * remote.c (demand_private_info, remote_get_tib_address)
6690 (remote_supports_cond_tracepoints)
6691 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6692 Make static.
6693 * skip.c (_initialize_step_skip): Declare.
6694 * symtab.c (skip_prologue_using_lineinfo): Make static.
6695 * tracepoint.c (delete_trace_state_variable)
6696 (trace_variable_command, delete_trace_variable_command)
6697 (get_uploaded_tsv, find_matching_tracepoint_location)
6698 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6699 Make static.
6700 * value.c (pack_unsigned_long): Make static.
6701 * varobj.c (varobj_ensure_python_env): Make static.
6702 * windows-tdep.c (_initialize_windows_tdep): Declare.
6703 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6704
6705 2012-03-01 Pedro Alves <palves@redhat.com>
6706
6707 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6708 gdbarch parameter.
6709 (linux_init_abi): Install it as has_shared_address_space gdbarch
6710 callback.
6711
6712 2012-03-01 Pedro Alves <palves@redhat.com>
6713
6714 * observer.c (observer_test_first_notification_function)
6715 (observer_test_second_notification_function)
6716 (observer_test_third_notification_function): Add declarations.
6717
6718 2012-03-01 Pedro Alves <palves@redhat.com>
6719
6720 * common/signals.c (default_target_signal_to_host)
6721 (default_target_signal_from_host): Move ...
6722 * arch-utils.c: ... here.
6723 * arch-utils.h (default_target_signal_to_host)
6724 (default_target_signal_from_host): Declare.
6725
6726 * common/signals.c (target_signal_from_command): Move ...
6727 * infrun.c: ... here.
6728 * inferior.h (target_signal_from_command): Declare.
6729 * target.h (target_signal_from_command)
6730 (default_target_signal_from_host, default_target_signal_to_host):
6731 Delete declarations.
6732
6733 * common/signals.c (_initialize_signals): Delete.
6734
6735 2012-03-01 Pedro Alves <palves@redhat.com>
6736
6737 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6738 both __cplusplus and !__cplusplus.
6739
6740 2012-03-01 Pedro Alves <palves@redhat.com>
6741
6742 * psymtab.c (find_and_open_source): Delete declaration.
6743 * source.c (find_and_open_source): Move comment ...
6744 * source.h (find_and_open_source): ... to this new declaration.
6745
6746 2012-03-01 Pedro Alves <palves@redhat.com>
6747
6748 * inline-frame.c: Include inline-frame.h.
6749
6750 2012-03-01 Pedro Alves <palves@redhat.com>
6751
6752 * tui/tui-data.c (set_gen_win_origin): Delete.
6753 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6754 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6755
6756 2012-03-01 Pedro Alves <palves@redhat.com>
6757
6758 * remote.c (encode_actions): Delete declaration.
6759 * tracepoint.c (encode_actions): Make extern.
6760 * tracepoint.h (encode_actions): Declare.
6761
6762 2012-03-01 Pedro Alves <palves@redhat.com>
6763
6764 * python/py-breakpoint.c: Include python.h.
6765 * python/py-continueevent.c (create_continue_event_object): Make
6766 static.
6767 * python/py-lazy-string.c (stpy_get_type): Make static.
6768 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6769 Make static.
6770 * python/py-utils.c (unicode_to_target_python_string): Make
6771 static.
6772 * python/py-value.c: Include python.h.
6773
6774 2012-03-01 Pedro Alves <palves@redhat.com>
6775
6776 * inferior.c (delete_threads_of_inferior): Delete.
6777
6778 2012-03-01 Pedro Alves <palves@redhat.com>
6779
6780 Import fallback definitions from glibc.
6781
6782 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6783 ps_prochandle): Forward declare.
6784 (ps_err_e): Use glibc's comments.
6785 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6786 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6787 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6788 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6789 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6790 (struct ps_prochandle): Adjust comment.
6791
6792 2012-03-01 Pedro Alves <palves@redhat.com>
6793
6794 * ada-lang.c (ada_modulus_from_name): Delete.
6795 * ada-lex.l (lexer_init): Make static.
6796
6797 2012-03-01 Pedro Alves <palves@redhat.com>
6798
6799 PR gdb/13767
6800
6801 * frame.c (read_frame_register_unsigned): New.
6802 * frame.h (read_frame_register_unsigned): Declare.
6803 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6804 Handle it.
6805 (print_i387_control_word): New parameter `control_p'. Handle it.
6806 (i387_print_float_info): Handle unavailable float registers.
6807
6808 2012-03-01 Keith Seitz <keiths@redhat.com>
6809
6810 * linespec.c (decode_line_2): Sort the list of methods
6811 alphabetically before presenting the user with a selection
6812 menu.
6813
6814 2012-03-01 Doug Evans <dje@google.com>
6815
6816 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6817 has_namespace_info.
6818 (dwarf2_read_abbrevs): Remove corresponding initialization.
6819
6820 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
6821
6822 * NEWS: Mention new python command class gdb.COMMAND_USER.
6823 * cli/cli-cmds.c (show_user): Print error when used on a python
6824 command.
6825 (init_cli_cmds): Update documentation strings for "show user" and
6826 "set/show max-user-call-depth" to clarify that it does not apply to
6827 python commands.
6828 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6829 error check.
6830 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6831 gdb python api.
6832 * top.c (execute_command): Only execute a user-defined command as a
6833 legacy macro if c->user_commands is set.
6834
6835 2012-03-01 Tom Tromey <tromey@redhat.com>
6836
6837 * valprint.h (struct generic_val_print_decorations): New.
6838 (generic_val_print): Declare.
6839 * valprint.c (generic_val_print): New function.
6840 * p-valprint.c (p_decorations): New global.
6841 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6842 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6843 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6844 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6845 * m2-valprint.c (m2_decorations): New global.
6846 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6847 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6848 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6849 TYPE_CODE_ERROR>: Call generic_val_print.
6850 * f-valprint.c (f_decorations): New global.
6851 (f_val_print): Use print_function_pointer_address.
6852 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6853 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6854 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6855 generic_val_print.
6856 * c-valprint.c (c_decorations): New global.
6857 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6858 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6859 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6860 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6861 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6862 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6863 case.
6864
6865 2012-03-01 Tom Tromey <tromey@redhat.com>
6866
6867 * valprint.c (val_print): Update.
6868 * p-valprint (pascal_val_print): Return void.
6869 * p-lang.h (pascal_val_print): Return void.
6870 * m2-valprint.c (m2_val_print): Return void.
6871 * m2-lang.h (m2_val_print): Return void.
6872 * language.h (struct language_defn) <la_val_print>: Return void.
6873 * language.c (unk_lang_val_print): Return void.
6874 * jv-valprint.c (java_val_print): Return void.
6875 * jv-lang.h (java_val_print): Return void.
6876 * f-valprint.c (f_val_print): Return void.
6877 * f-lang.h (f_val_print): Return void.
6878 * d-valprint.c (d_val_print): Return void.
6879 (dynamic_array_type): Update.
6880 * d-lang.h (d_val_print): Return void.
6881 * c-valprint.c (c_val_print): Return void.
6882 * c-lang.h (c_val_print): Return void.
6883 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6884 void.
6885 * ada-lang.h (ada_val_print): Return void.
6886
6887 2012-03-01 Tom Tromey <tromey@redhat.com>
6888
6889 * value.h (val_print): Return void.
6890 * valprint.c (val_print): Return void.
6891
6892 2012-03-01 Tom Tromey <tromey@redhat.com>
6893
6894 * value.h (common_val_print): Return void.
6895 * valprint.c (common_val_print): Return void.
6896
6897 2012-03-01 Tom Tromey <tromey@redhat.com>
6898
6899 * value.h (value_print): Return void.
6900 * valprint.c (value_print): Return void.
6901 * p-valprint.c (pascal_value_print): Return void.
6902 * p-lang.h (pascal_value_print): Return void.
6903 * language.h (struct language_defn) <la_value_print>: Return
6904 void.
6905 * language.c (unk_lang_value_print): Return void.
6906 * jv-valprint.c (java_value_print): Return void.
6907 * jv-lang.h (java_value_print): Return void.
6908 * f-valprint.c (c_value_print): Don't declare.
6909 Include c-lang.h.
6910 * c-valprint.c (c_value_print): Return void.
6911 * c-lang.h (c_value_print): Return void.
6912 * ada-valprint.c (ada_value_print): Return void.
6913 * ada-lang.h (ada_value_print): Return void.
6914
6915 2012-03-01 Tom Tromey <tromey@redhat.com>
6916
6917 * value.c (value_primitive_field): Handle virtual base classes.
6918
6919 2012-03-01 Tom Tromey <tromey@redhat.com>
6920
6921 * gdbtypes.h (struct vbase): Remove.
6922
6923 2012-03-01 Tom Tromey <tromey@redhat.com>
6924
6925 * c-valprint.c (print_function_pointer_address): Move...
6926 * valprint.c: ... here. Make non-static.
6927 * m2-valprint.c (print_function_pointer_address): Remove.
6928 * valprint.h (print_function_pointer_address): Declare.
6929
6930 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6931
6932 * NEWS: Document the fact that one can provide a condition when
6933 creating an Ada exception catchpoint.
6934
6935 2012-03-01 Tom Tromey <tromey@redhat.com>
6936
6937 * valprint.c (val_print_type_code_flags): Fix placement of
6938 trailing brace.
6939
6940 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6941
6942 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6943 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6944 environment variable before calling update-copyright.
6945
6946 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6947
6948 * gnulib/extra/update-copyright: Update to the latest from
6949 gnulib's git repository.
6950 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6951 variable to 2 instead of 1.
6952
6953 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6954
6955 * varobj.c (c_value_of_variable): Remove dead code.
6956
6957 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6958
6959 * ada-lex.p (processId): Do not modify already encoded IDs.
6960 Update function documentation.
6961
6962 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6963
6964 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6965 "name" with "struct symbol *name_sym".
6966 * ada-exp.y (write_var_or_type): Update call to
6967 ada_find_renaming_symbol.
6968 "name" with "struct symbol *name_sym". Adjust Implementation
6969 accordingly. Adjust the function documentation.
6970
6971 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6972
6973 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6974 * ada-lang.c (ada_find_any_type): Add advance declaration.
6975 Make static. Replace ada_find_any_symbol by
6976 ada_find_any_type_symbol.
6977 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
6978 Improve function description. Make static.
6979 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
6980 Replace ada_find_any_symbol by ada_find_any_type_symbol.
6981
6982 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6983
6984 * ada-lang.c (struct tag_args): Delete.
6985 (ada_get_tsd_type): Function body moved up in source file.
6986 (ada_tag_name_1, ada_tag_name_2): Delete.
6987 (ada_get_tsd_from_tag): New function.
6988 (ada_tag_name_from_tsd): New function.
6989 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
6990 to determine the tag name.
6991
6992 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6993
6994 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
6995 declaration.
6996 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
6997 function.
6998
6999 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7000
7001 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
7002
7003 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7004
7005 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
7006 full searches.
7007
7008 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7009
7010 * ada-lang.c (constrained_packed_array_type): If there is a
7011 parallel XA type, use it to determine the array index type.
7012
7013 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7014
7015 * ada-valprint.c (ada_val_print_1): If our value is a reference
7016 to an array descriptor, dereference it before converting it
7017 to a simple array.
7018
7019 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7020
7021 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
7022 creating fixed value.
7023 (ada_value_ind, ada_coerce_ref, assign_component)
7024 (ada_evaluate_subexp): Remove call to unwrap_value before
7025 call to ada_to_fixed_value.
7026
7027 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7028
7029 * ada-lang.c (to_fixed_array_type): Set result's type name.
7030
7031 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7032
7033 * ada-lang.c (catch_ada_exception_command_split): Add new
7034 argument cond_string. Add support for condition at end of
7035 "catch exception" commands.
7036 (ada_decode_exception_location): Add new argument cond_string.
7037 Update call to catch_ada_exception_command_split.
7038 (create_ada_exception_catchpoint): Add new argument cond_string.
7039 Set the breakpoint condition if needed.
7040 (catch_ada_exception_command): Update call to
7041 ada_decode_exception_location.
7042 (ada_decode_assert_location): Add function documentation.
7043 Add support for condition at end of "catch assert" command.
7044 (catch_assert_command): Update calls to ada_decode_assert_location
7045 and create_ada_exception_catchpoint.
7046
7047 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7048
7049 Fix disp-step-syscall.exp: fork: single step over fork.
7050 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
7051 (i386_linux_get_syscall_number_from_regcache): ... here, new function
7052 comment, change parameters gdbarch and ptid to regcache. Remove
7053 parameter regcache, initialize gdbarch from regcache here.
7054 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
7055 New functions.
7056 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
7057 instead.
7058 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
7059 'syscall'. Make the 'int' check more strict.
7060
7061 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7062
7063 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
7064 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
7065 (i386_linux_intx80_sysenter_syscall_record): ... here.
7066 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
7067 Use the renamed function name.
7068
7069 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7070
7071 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
7072 * breakpoint.c (until_break_command): Likewise.
7073 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
7074 * infcall.c (call_function_by_hand): Likewise.
7075 * infcmd.c (finish_forward): Likewise.
7076 * infrun.c (insert_exception_resume_breakpoint): Likewise.
7077
7078 2012-02-28 Tristan Gingold <gingold@adacore.com>
7079
7080 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
7081 avoid variable assignments inside condition.
7082
7083 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7084
7085 Fix static analysis issue found by cppcheck.
7086 * microblaze-tdep.c (microblaze_extract_return_value): Fix
7087 uninitialized BUF for size 2.
7088
7089 2012-02-27 Chris Dearman <chris@mips.com>
7090 Nathan Froyd <froydnj@codesourcery.com>
7091 Maciej W. Rozycki <macro@codesourcery.com>
7092
7093 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
7094 (mips16_instruction_has_delay_slot): Likewise.
7095 (mips_segment_boundary): Likewise.
7096 (mips_adjust_breakpoint_address): Likewise.
7097 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
7098
7099 2012-02-27 Maciej W. Rozycki <macro@mips.com>
7100 Maciej W. Rozycki <macro@codesourcery.com>
7101
7102 * infrun.c (handle_inferior_event): Don't proceed through
7103 shared library trampolines if stepping at the machine
7104 instruction level.
7105
7106 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
7107
7108 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
7109 too.
7110
7111 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
7112
7113 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
7114 (sh_stub_unwind_sniffer): New functions.
7115 (sh_stub_unwind): New variable.
7116 (sh_gdbarch_init): Wire everything.
7117
7118 2012-02-27 Pedro Alves <palves@redhat.com>
7119
7120 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
7121 (linux_nat_post_attach_wait): Adjust to use
7122 linux_proc_pid_is_stopped.
7123 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
7124 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
7125 based on pid_is_stopped from both linux-nat.c and
7126 gdbserver/linux-low.c, and renamed.
7127
7128 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7129
7130 * remote.c (remote_watchpoint_addr_within_range): New function.
7131 (init_remote_ops): Use it.
7132
7133 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7134
7135 * target.h (target_watchpoint_addr_within_range): Document macro.
7136
7137 2012-02-24 Pedro Alves <palves@redhat.com>
7138
7139 * stack.c (set_last_displayed_sal): Issue internal_error instead
7140 of warning, and issue it after clearing the last displayed sal.
7141
7142 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7143 Pedro Alves <palves@redhat.com>
7144
7145 * breakpoint.c (until_break_command): Install breakpoints after
7146 all frame manipulations.
7147
7148 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7149
7150 * remote.c (remote_supports_cond_breakpoints): New forward
7151 declaration.
7152 (remote_add_target_side_condition): New function.
7153 (remote_insert_breakpoint): Add target-side breakpoint
7154 conditional if supported.
7155 (remote_insert_hw_breakpoint): Likewise.
7156 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7157 hook.
7158
7159 * target.c (update_current_target): Inherit
7160 to_supports_evaluation_of_breakpoint_conditions.
7161 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7162
7163 * target.h (struct target_ops)
7164 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7165 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7166
7167 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7168 (condition_evaluation_both, condition_evaluation_auto,
7169 condition_evaluation_host, condition_evaluation_target,
7170 condition_evaluation_enums, condition_evaluation_mode_1,
7171 condition_evaluation_mode): New static globals.
7172 (translate_condition_evaluation_mode): New function.
7173 (breakpoint_condition_evaluation_mode): New function.
7174 (gdb_evaluates_breakpoint_condition_p): New function.
7175 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7176 (mark_breakpoint_modified): New function.
7177 (mark_breakpoint_location_modified): New function.
7178 (set_condition_evaluation_mode): New function.
7179 (show_condition_evaluation_mode): New function.
7180 (bp_location_compare_addrs): New function.
7181 (get_first_location_gte_addr): New helper function.
7182 (set_breakpoint_condition): Free condition bytecode if locations
7183 has become unconditional. Call mark_breakpoint_modified (...).
7184 (condition_command): Call update_global_location_list (1) for
7185 breakpoints.
7186 (breakpoint_xfer_memory): Use is_breakpoint (...).
7187 (is_breakpoint): New function.
7188 (parse_cond_to_aexpr): New function.
7189 (build_target_condition_list): New function.
7190 (insert_bp_location): Handle target-side conditional
7191 breakpoints and call build_target_condition_list (...).
7192 (update_inserted_breakpoint_locations): New function.
7193 (insert_breakpoint_locations): Handle target-side conditional
7194 breakpoints.
7195 (bpstat_check_breakpoint_conditions): Add comment.
7196 (bp_condition_evaluator): New function.
7197 (bp_location_condition_evaluator): New function.
7198 (print_breakpoint_location): Print information on where the condition
7199 will be evaluated.
7200 (print_one_breakpoint_location): Likewise.
7201 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7202 breakpoint location.
7203 (force_breakpoint_reinsertion): New functions.
7204 (update_global_location_list): Handle target-side breakpoint
7205 conditions.
7206 Reinsert locations that are already inserted if conditions have
7207 changed.
7208 (bp_location_dtor): Free agent expression bytecode.
7209 (disable_breakpoint): Call mark_breakpoint_modified (...).
7210 Call update_global_location_list (...) with parameter 1 for breakpoints.
7211 (disable_command): Call mark_breakpoint_location_modified (...).
7212 Call update_global_location_list (...) with parameter 1 for breakpoints.
7213 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7214 (enable_command): mark_breakpoint_location_modified (...).
7215 (_initialize_breakpoint): Update documentation and add
7216 condition-evaluation breakpoint subcommand.
7217
7218 * breakpoint.h: Include ax.h.
7219 (condition_list): New data structure.
7220 (condition_status): New enum.
7221 (bp_target_info) <cond_list>: New field.
7222 (bp_location) <condition_changed, cond_bytecode>: New fields.
7223 (is_breakpoint): New prototype.
7224
7225 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7226
7227 * remote.c (remote_state) <cond_breakpoints>: New field.
7228 (PACKET_ConditionalBreakpoints): New enum.
7229 (remote_cond_breakpoint_feature): New function.
7230 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7231 (remote_supports_cond_breakpoints): New function.
7232 (_initialize_remote): Add new packet configuration for
7233 target-side conditional breakpoints.
7234
7235 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7236
7237 * NEWS: Mention target-side conditional breakpoint support,
7238 new condition-evaluation breakpoint subcommand and remote
7239 packet extensions.
7240
7241 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7242
7243 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7244 number.
7245
7246 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7247
7248 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7249 (after_prologue): Remove.
7250
7251 2012-02-23 Tom Tromey <tromey@redhat.com>
7252
7253 * jv-valprint.c (java_val_print): Remove dead code.
7254
7255 2012-02-23 Tristan Gingold <gingold@adacore.com>
7256
7257 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7258 known_tasks_element and known_tasks_length fields.
7259 (read_known_tasks_array): Change argument type. Use pointer type
7260 and number of elements from DATA. Adjust.
7261 (read_known_tasks_list): Likewise.
7262 (get_known_tasks_addr): Remove.
7263 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7264 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7265 type and array length. Merge former get_known_tasks_addr code.
7266
7267 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7268
7269 PR backtrace/13716
7270 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7271 it after set_momentary_breakpoint.
7272
7273 2012-02-22 Sterling Augustine <saugustine@google.com>
7274
7275 PR 13689:
7276 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7277
7278 2012-02-22 Gary Benson <gbenson@redhat.com>
7279
7280 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7281 (find_slot_in_mapped_hash): Likewise.
7282
7283 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7284
7285 PR build/13638
7286 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7287 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7288 * configure: Regenerate.
7289
7290 2012-02-21 Tristan Gingold <gingold@adacore.com>
7291 Pedro Alves <palves@redhat.com>
7292
7293 * ia64-tdep.c: Do not include libunwind-ia64.h.
7294 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7295 Include libunwind-ia64.h instead of libunwind.h.
7296 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7297 for libunwind.h existence.
7298 * configure, config.in: Regenerate.
7299
7300 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7301
7302 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7303 instead of value_rtti_target_type.
7304 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7305 instead of value_rtti_target_type.
7306 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7307 value_rtti_target_type.
7308 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7309 (value_rtti_target_type): Rename to ...
7310 (value_rtti_indirect_type): ... here and make it indirect. Update
7311 function comment.
7312 * value.c (readjust_indirect_value_type): New function.
7313 (coerce_ref): Support for enclosing type setting for references
7314 with readjust_indirect_value_type.
7315 * value.h (readjust_value_type): New declaration.
7316 (value_rtti_target_type): Rename to ...
7317 (value_rtti_indirect_type): ... here.
7318
7319 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7320
7321 * MAINTAINERS (Write After Approval): Add myself to the list.
7322
7323 2012-02-20 Doug Evans <dje@google.com>
7324
7325 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7326 Rename objfile_p_char parameter to objfilep.
7327 (build_objfile_section_table): Result is now void. All callers
7328 updated.
7329 * objfiles.h (struct objfile): Tweak comments, whitespace.
7330 (build_objfile_section_table): Update.
7331
7332 * elfread.c (elf_symfile_segments): Fix warning text.
7333
7334 2012-02-20 Tom Tromey <tromey@redhat.com>
7335
7336 PR gdb/13498:
7337 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7338 particular set of file names once.
7339 (dw2_map_symbol_filenames): Likewise.
7340
7341 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7342
7343 Code cleanup.
7344 * main.c (write_files): Remove the declaration.
7345 (external_editor_command): Move the declaration ...
7346 [GDBTK] (external_editor_command): ... here. Fix the comment.
7347
7348 2012-02-20 Tom Tromey <tromey@redhat.com>
7349
7350 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7351 extraneous block.
7352
7353 2012-02-20 Tristan Gingold <gingold@adacore.com>
7354
7355 * darwin-nat.h (enum darwin_msg_state): Add comments.
7356
7357 2012-02-20 Tristan Gingold <gingold@adacore.com>
7358
7359 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7360 value.
7361
7362 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7363
7364 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7365 between function description and implementation.
7366
7367 2012-02-17 Tom Tromey <tromey@redhat.com>
7368
7369 PR python/12070:
7370 * python/py-event.c (event_object_getset): New global.
7371 (event_object_type): Reference it.
7372 * python/py-type.c (field_object_getset): New global.
7373 (field_object_type): Reference it.
7374 * python/python-internal.h (gdb_py_generic_dict): Declare.
7375 * python/py-utils.c (gdb_py_generic_dict): New function.
7376
7377 2012-02-17 Tristan Gingold <gingold@adacore.com>
7378
7379 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7380
7381 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7382
7383 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7384 TYPE_CALLING_CONVENTION annotation.
7385
7386 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7387
7388 * MAINTAINERS: Add rx to target ISA section.
7389 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7390 (ALLDEPFILES): Add rx-tdep.c.
7391
7392 2012-02-16 Tom Tromey <tromey@redhat.com>
7393
7394 * symfile.c (symbol_file_add_main_1): Use inferior's
7395 symfile_flags.
7396 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7397 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7398 inferior.
7399 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7400 inferior.
7401 (follow_exec): Use inferior's symfile_flags.
7402 * inferior.h (struct inferior) <symfile_flags>: New field.
7403
7404 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7405
7406 PR gdb/9734:
7407 * remote-sim.c (gdbsim_create_inferior): Call error() when
7408 sim_create_inferior() fails.
7409
7410 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7411
7412 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7413
7414 2012-02-16 Tom Tromey <tromey@redhat.com>
7415
7416 PR c++/13653:
7417 * thread.c (struct current_thread_cleanup) <was_removable>: New
7418 field.
7419 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7420 (make_cleanup_restore_current_thread): Initialize new field.
7421
7422 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7423
7424 * MAINTAINERS: Add rl78 to target ISA section.
7425 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7426 (ALLDEPFILES): Add rl78-tdep.c.
7427 * NEWS: Mention rl78 as a new target.
7428
7429 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7430
7431 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7432 data.
7433 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7434
7435 2012-02-15 Tom Tromey <tromey@redhat.com>
7436
7437 PR gdb/12659:
7438 * infcmd.c (registers_info): Print just the current register's
7439 name.
7440
7441 2012-02-15 Tom Tromey <tromey@redhat.com>
7442
7443 * python/py-symbol.c (sympy_value): Use _().
7444
7445 2012-02-15 Pedro Alves <palves@redhat.com>
7446
7447 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7448 output to be like native targets'.
7449 (remote_pid_to_str): Special case the null ptid.
7450
7451 2012-02-14 Stan Shebs <stan@codesourcery.com>
7452
7453 * NEWS: Mention enable count command.
7454 * breakpoint.h (struct breakpoint): New field enable_count.
7455 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7456 (enable_breakpoint): Add arg to call.
7457 (struct disp_data): New struct.
7458 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7459 (do_map_enable_once_breakpoint): Create a struct and pass it.
7460 (do_map_enable_delete_breakpoint): Ditto.
7461 (do_map_enable_count_breakpoint): New function.
7462 (enable_count_command): New function.
7463 (bpstat_stop_status): Decrement enable_count.
7464 (print_one_breakpoint_location): Report enable count.
7465 (_initialize_breakpoint): Add enable count command.
7466
7467 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7468
7469 * rl78-tdep.c (reggroups.h): Include.
7470 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7471 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7472 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7473 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7474 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7475 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7476 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7477 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7478 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7479 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7480 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7481 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7482 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7483 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7484 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7485 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7486 beginning of register list.
7487 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7488 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7489 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7490 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7491 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7492 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7493 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7494 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7495 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7496 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7497 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7498 the pseudo registers. Rearrange other pseudo registers too so
7499 that the bank registers appear at the end.
7500 (rl78_register_type): Account for the fact that the byte sized
7501 bank registers are now pseudo-registers.
7502 (rl78_register_name): Rearrange the register name array. Make
7503 initial set of raw banked registers inaccessible.
7504 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7505 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7506 case for copying bytes back and forth between raw and pseudo
7507 versions of the banked registers. Update other cases to reflect
7508 the changed names.
7509 (rl78_return_value): Update to account for changed names of
7510 raw registers.
7511 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7512 rl78_register_sim_regno().
7513
7514 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7515
7516 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7517 the name parameter being passed to find_pc_partial_function().
7518
7519 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7520
7521 * MAINTAINERS: Step down from being ia64 target maintainer.
7522
7523 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7524
7525 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7526 compilation warning.
7527
7528 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7529
7530 Fix crash on loaded shlibs without loaded exec_bfd.
7531 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7532 (set_section_command): Replace exec_bfd by p->bfd.
7533
7534 2012-02-10 Tom Tromey <tromey@redhat.com>
7535
7536 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7537 when we have a C++ qualified name.
7538
7539 2012-02-10 Pedro Alves <palves@redhat.com>
7540
7541 * inferior.c (inferior_pid_to_str): New.
7542 (print_inferior, inferior_command): Use it.
7543
7544 2012-02-10 Pedro Alves <palves@redhat.com>
7545
7546 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7547 the test CFLAGS.
7548 * configure: Regenerate.
7549
7550 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7551
7552 * linespec.c (decode_line_internal): Fix comment correctness.
7553
7554 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7555
7556 PR gdb/12953
7557 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7558 * amd64bsd-nat.c: Add support for debug registers (adapted from
7559 i386bsd-nat.c).
7560 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7561 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7562 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7563 (amd64bsd_dr_get_control): New functions.
7564 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7565 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7566 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7567 watchpoints initialization.
7568 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7569
7570 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7571
7572 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7573 flds_bnds.fields.
7574 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7575
7576 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7577
7578 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7579
7580 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7581
7582 * language.h (symbol_name_cmp_ftype): Renames
7583 symbol_name_match_p_ftype.
7584 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7585 la_get_symbol_name_match_p.
7586 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7587 ada_get_symbol_name_match_p. Update comment.
7588 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7589 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7590 Renames symbol_name_match_p. Update field type.
7591 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7592 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7593 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7594 "la_get_symbol_name_cmp" in comments.
7595 * language.c: Likewise.
7596
7597 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7598
7599 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7600 %eflags offset.
7601 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7602 (amd64_sol2_gregset32_reg_offs): Likewise.
7603
7604 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7605
7606 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7607 of the returned BFD is allocated by GDB.
7608
7609 2012-02-07 Tom Tromey <tromey@redhat.com>
7610
7611 PR python/12027:
7612 * python/python-internal.h (frame_object_type): Declare.
7613 * python/py-symbol.c (sympy_needs_frame): New function.
7614 (sympy_value): New function.
7615 (symbol_object_getset): Add "needs_frame".
7616 (symbol_object_methods): Add "value".
7617 * python/py-frame.c (frame_object_type): No longer static.
7618
7619 2012-02-07 Tom Tromey <tromey@redhat.com>
7620
7621 PR python/13599:
7622 * python/py-symbol.c (sympy_line): New function.
7623 (symbol_object_getset): Add "line".
7624
7625 2012-02-07 Tom Tromey <tromey@redhat.com>
7626
7627 * charset.c (find_charset_names): Check 'in' against NULL.
7628
7629 2012-02-06 Doug Evans <dje@google.com>
7630
7631 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7632 and fields.name members from char * to const char *. All uses updated.
7633 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7634 from char * to const char *. All uses updated.
7635 (type_name_no_tag): Update.
7636 (lookup_unsigned_typename, lookup_signed_typename): Update.
7637 * gdbtypes.c (type_name_no_tag): Change result type
7638 from char * to const char *. All callers updated.
7639 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7640 name parameter from char * to const char *.
7641 * symtab.h (struct cplus_specific): Change type of demangled_name
7642 member from char * to const char *. All uses updated.
7643 (struct general_symbol_info): Change type of name and
7644 mangled_lang.demangled_name members from char * to const char *.
7645 All uses updated.
7646 (symbol_get_demangled_name, symbol_natural_name): Update.
7647 (symbol_demangled_name, symbol_search_name): Update.
7648 * symtab.c (symbol_get_demangled_name): Change result type
7649 from char * to const char *. All callers updated.
7650 (symbol_natural_name, symbol_demangled_name): Ditto.
7651 (symbol_search_name): Ditto.
7652 (completion_list_add_name): Change type of symname,sym_text,
7653 text,word parameters from char * to const char *.
7654 (completion_list_objc_symbol): Change type of sym_text,
7655 text,word parameters from char * to const char *.
7656 * ada-lang.c (find_struct_field): Change type of name parameter
7657 from char * to const char *.
7658 (encoded_ordered_before): Similarly for N0,N1 parameters.
7659 (old_renaming_is_invisible): Similarly for function_name parameter.
7660 (ada_type_name): Change result type from char * to const char *.
7661 All callers updated.
7662 * ada-lang.h (ada_type_name): Update.
7663 * buildsym.c (hashname): Change type of name parameter
7664 from char * to const char *.
7665 * buildsym.h (hashname): Update.
7666 * dbxread.c (end_psymtab): Change type of include_list parameter
7667 from char ** to const char **.
7668 * dwarf2read.c (determine_prefix): Change result type
7669 from char * to const char *. All callers updated.
7670 * f-lang.c (find_common_for_function): Change type of name, funcname
7671 parameters from char * to const char *.
7672 * f-lang.c (find_common_for_function): Update.
7673 * f-valprint.c (list_all_visible_commons): Change type of funcname
7674 parameters from char * to const char *.
7675 * gdbarch.sh (static_transform_name): Change type of name parameter
7676 and result from char * to const char *.
7677 * gdbarch.c: Regenerate.
7678 * gdbarch.h: Regenerate.
7679 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7680 of name parameter from char * to const char *.
7681 * jv-lang.c (java_primitive_type_from_name): Ditto.
7682 (java_demangled_signature_length): Similarly for signature parameter.
7683 (java_demangled_signature_copy): Ditto.
7684 (java_demangle_type_signature): Ditto.
7685 * jv-lang.h (java_primitive_type_from_name): Update.
7686 (java_demangle_type_signature): Update.
7687 * objc-lang.c (specialcmp): Change type of a,b parameters
7688 from char * to const char *.
7689 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7690 from char * to const char *. All callers updated.
7691 * p-lang.h (is_pascal_string_type): Update.
7692 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7693 of name parameter from char * to const char *.
7694 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7695 * utils.c (fprintf_symbol_filtered): Ditto.
7696 * defs.h (fprintf_symbol_filtered): Update.
7697 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7698 * stabsread.h (end_psymtab): Update.
7699 * stack.c (find_frame_funname): Change type of funname parameter
7700 from char ** to const char **.
7701 * stack.h (find_frame_funname): Update.
7702 * typeprint.c (type_print): Change type of varstring parameter
7703 from char * to const char *.
7704 * value.h (type_print): Update.
7705 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7706 from char * to const char *. All callers updated.
7707 (xcoff_end_psymtab): Change type of include_list parameter
7708 from char ** to const char **. All callers updated.
7709 (swap_sym): Similarly for name parameter. All callers updated.
7710 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7711 Use xstrdup.
7712 (process_coff_symbol): Use xstrdup.
7713 * stabsread.c (stabs_method_name_from_physname): Renamed from
7714 update_method_name_from_physname. Change result type from void
7715 to char *. All callers updated.
7716 (read_member_functions): In has_destructor case, store name in objfile
7717 obstack instead of malloc space. In !has_stub case, fix mem leak.
7718
7719 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7720
7721 * configure: Rebuild.
7722 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7723 LDFLAGS.
7724
7725 2012-02-03 Kevin Buettner <kevinb@redhat.com>
7726
7727 * configure.tgt (rl78-*-elf): New target.
7728 * rl78-tdep.c: New file.
7729
7730 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7731
7732 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7733 and continue the loop. Add QUIT statement.
7734
7735 2012-02-03 Tom Tromey <tromey@redhat.com>
7736
7737 PR gdb/13596:
7738 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7739 bfd_lookup_symbol_from_symtab.
7740 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7741 gdb_bfd_lookup_symbol_from_symtab.
7742
7743 2012-02-03 Joel Brobecker <brobecker@adacore.com>
7744
7745 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7746 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7747 symbol. Add assertion that sym2 is never NULL.
7748
7749 2012-02-02 Doug Evans <dje@google.com>
7750
7751 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7752 "name" parameter to const char ** from char **. All callers updated.
7753 (find_pc_partial_function): Ditto.
7754 (cache_pc_function_name): Change type to const char * from char *.
7755 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7756 (find_pc_partial_function): Update.
7757 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7758 type of "name" parameter to const char * from char *.
7759 All uses updated.
7760 * arch-utils.c (generic_in_solib_return_trampoline): Change
7761 type of "name" parameter to const char * from char *.
7762 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7763 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7764 type of "name" parameter to const char * from char *.
7765 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7766 * gdbarch.c: Regenerate.
7767 * gdbarch.h: Regenerate.
7768 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7769 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7770 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7771 type of "name" parameter to const char * from char *.
7772 * skip.c (skip_function_pc): Ditto.
7773 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7774 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7775 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7776 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7777 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7778 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7779 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7780 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7781 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7782
7783 2012-02-02 Pedro Alves <palves@redhat.com>
7784
7785 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7786 the current inferior has no execution. Make sure the current
7787 remote process matches gdb's current inferior.
7788
7789 2012-02-02 Tom Tromey <tromey@redhat.com>
7790
7791 PR gdb/13405:
7792 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7793 read-only memory.
7794
7795 2012-02-02 Tom Tromey <tromey@redhat.com>
7796
7797 PR gdb/9307:
7798 * symtab.c (lookup_language_this): Set block_found.
7799
7800 2012-02-01 Tom Tromey <tromey@redhat.com>
7801
7802 PR gdb/13431:
7803 * jit.c (struct jit_inferior_data): Rewrite.
7804 (struct jit_objfile_data): New.
7805 (get_jit_objfile_data): New function.
7806 (add_objfile_entry): Update.
7807 (jit_read_descriptor): Return int. Replace descriptor_addr
7808 argument with inf_data. Update. Don't call error.
7809 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7810 descriptor here.
7811 (jit_inferior_init): Don't look up descriptor. Don't call error.
7812 (jit_reset_inferior_data_and_breakpoints)
7813 (jit_inferior_created_observer): Remove.
7814 (jit_inferior_exit_hook): Update.
7815 (jit_executable_changed_observer): Remove.
7816 (jit_event_handler): Update.
7817 (free_objfile_data): Reset inferior data if needed.
7818 (_initialize_jit): Update.
7819
7820 2012-02-01 Tom Tromey <tromey@redhat.com>
7821
7822 * jit.c (bfd_open_from_target_memory): Move higher in file.
7823
7824 2012-02-01 Tristan Gingold <gingold@adacore.com>
7825
7826 * libunwind-frame.c (libunwind_load): Display message if dlopen
7827 failed.
7828
7829 2012-02-01 Gary Benson <gbenson@redhat.com>
7830
7831 * symtab.h (symbol_found_callback_ftype): New typedef.
7832 (iterate_over_symbols): Use the above.
7833 * symtab.c (iterate_over_symbols): Likewise.
7834 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7835 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7836 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7837 (iterate_name_matcher): Document return values.
7838 (collect_one_symbol): Likewise.
7839 (collect_function_symbols): Likewise.
7840 (collect_symbols): Likewise.
7841
7842 2012-02-01 Tom Tromey <tromey@redhat.com>
7843
7844 * ada-lang.c (resolve_subexp): Update.
7845 (ada_lookup_symbol_list): Add 'full_search' argument.
7846 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7847 ada_lookup_symbol_list.
7848 (ada_lookup_encoded_symbol): Update.
7849 (get_var_value): Update.
7850 * ada-exp.y (block_lookup): Update.
7851 (write_var_or_type): Update.
7852 (write_name_assoc): Update.
7853 * ada-lang.h (ada_lookup_symbol_list): Update.
7854
7855 2012-01-31 Tom Tromey <tromey@redhat.com>
7856
7857 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7858 comment.
7859
7860 2012-01-31 Doug Evans <dje@google.com>
7861
7862 * symtab.h: Remove outdated comment.
7863 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7864
7865 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
7866
7867 Fix build error in Darwin port.
7868 * i386-darwin-nat.c: Include i386-nat.h.
7869
7870 2012-01-30 Tom Tromey <tromey@redhat.com>
7871
7872 PR breakpoints/13568:
7873 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7874 argument. Check for recursive includes.
7875 (dwarf_decode_macros): Create an include hash.
7876
7877 2012-01-30 Michael Eager <eager@eagercon.com>
7878
7879 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7880 * ppc-linux-tdep.c: Include glibc-tdep.h.
7881 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7882 (powerpc_linux_in_plt_stub): New function.
7883 (powerpc_linux_in_dynsym_resolve_code): New function.
7884 (ppc_skip_trampoline_code): New function.
7885 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7886 Use glibc_skip_solib_resolver.
7887
7888 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7889
7890 Code cleanup: Make 1440 bytes of data segment read-only.
7891 * arch-utils.c (endian_enum): Make it const char *const [].
7892 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7893 Likewise.
7894 * breakpoint.c (always_inserted_enums): Likewise.
7895 * cli/cli-cmds.c (script_ext_enums): Likewise.
7896 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7897 enumlist parameter const char *const *.
7898 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7899 const char *const *.
7900 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7901 parameter const char *const *.
7902 * cris-tdep.c (cris_modes): Make it const char *const [].
7903 * filesystem.c (target_file_system_kinds): Likewise.
7904 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7905 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7906 (can_use_displaced_stepping_enum, scheduler_enums)
7907 (exec_direction_names): Likewise.
7908 * language.c (_initialize_language): Make the type_or_range_names and
7909 case_sensitive_names variables const char *const [].
7910 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7911 * python/python.c (python_excp_enums): Likewise.
7912 * remote.c (interrupt_sequence_modes): Likewise.
7913 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7914 * serial.c (logbase_enums): Likewise.
7915 * sh-tdep.c (sh_cc_enum): Likewise.
7916 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7917 Likewise.
7918 * symtab.c (multiple_symbols_modes): Likewise.
7919 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7920 Likewise.
7921 * utils.c (internal_problem_modes): Likewise.
7922
7923 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7924
7925 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7926 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7927 result.
7928
7929 2012-01-27 Doug Evans <dje@google.com>
7930
7931 * configure.ac (with_python): Fix absolute path handling for win32.
7932 * configure: Regenerate.
7933
7934 2012-01-26 Doug Evans <dje@google.com>
7935
7936 * symtab.c: Whitespace cleanup, no code changes.
7937
7938 * symtab.c (lookup_symbol_in_language): Improve comment.
7939 (lookup_symbol_aux): Fix comment.
7940
7941 * psymtab.c (add_psymbol_to_list): Result is now "void".
7942 * psympriv.h (add_psymbol_to_list): Update.
7943
7944 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7945
7946 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7947
7948 Do not open script filenames twice.
7949 * cli/cli-cmds.c (source_script_from_stream): Pass to
7950 source_python_script also STREAM.
7951 * python/py-auto-load.c (source_section_scripts): Pass to
7952 source_python_script_for_objfile also STREAM.
7953 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7954 also INPUT.
7955 * python/python-internal.h (source_python_script_for_objfile): New
7956 parameter file, rename parameter file to filename.
7957 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7958 instead if !_WIN32. Update the function comment.
7959 (source_python_script, source_python_script_for_objfile)
7960 (source_python_script): New parameter file, rename parameter file to
7961 filename. Pass FILENAME to python_run_simple_file.
7962 * python/python.h (source_python_script): New parameter file, rename
7963 parameter file to filename.
7964
7965 2012-01-26 Pedro Alves <palves@redhat.com>
7966
7967 * corelow.c (core_has_fake_pid): Delete.
7968 (core_close): Delete references to `core_has_fake_pid'.
7969 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7970 (core_open): Delete references to `core_has_fake_pid'.
7971 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7972 the removed global.
7973
7974 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7975
7976 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7977 Remove language parameter from name_matcher. Adjust the comment.
7978 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
7979 Remove language parameter.
7980 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
7981 * linespec.c (iterate_name_matcher): Likewise.
7982 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
7983 name_matcher. Adjust call accordingly.
7984 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
7985 (maintenance_check_symtabs): Adjust type of parameter "fun".
7986 * psymtab.h (maintenance_check_symtabs): Likewise.
7987
7988 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7989
7990 * language.h (symbol_name_match_p_ftype): New typedef.
7991 (struct language_defn): Replace field la_symbol_name_compare
7992 by la_get_symbol_name_match_p.
7993 * ada-lang.c (ada_get_symbol_name_match_p): New function.
7994 (ada_language_defn): Use it.
7995 * linespec.c (struct symbol_matcher_data): New type.
7996 (iterate_name_matcher): Rewrite.
7997 (iterate_over_all_matching_symtabs): Pass a pointer to
7998 a symbol_matcher_data struct to expand_symtabs_matching
7999 instead of just the lookup name.
8000 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8001 opencl-lang.c, p-lang.c, language.c: Delete field
8002 la_symbol_name_compare, and replace by NULL for new field
8003 la_get_symbol_name_match_p.
8004 * symfile.h (struct quick_symbol_functions): Update comment.
8005
8006 2012-01-25 Tom Tromey <tromey@redhat.com>
8007
8008 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
8009 dereferencing.
8010
8011 2012-01-24 Tom Tromey <tromey@redhat.com>
8012
8013 PR symtab/12406:
8014 * solib.c (update_solib_list): Update the program space's
8015 added_solibs and deleted_solibs fields.
8016 * progspace.h (struct program_space) <added_solibs,
8017 deleted_solibs>: New fields.
8018 (clear_program_space_solib_cache): Declare.
8019 * progspace.c (release_program_space): Call
8020 clear_program_space_solib_cache.
8021 (clear_program_space_solib_cache): New function.
8022 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
8023 bpstat_stop_status. Use handle_solib_event.
8024 * breakpoint.c: Include gdb_regex.h.
8025 (print_solib_event): New function.
8026 (bpstat_print): Use print_solib_event.
8027 (bpstat_stop_status): Add special case for bp_shlib_event.
8028 (handle_solib_event): New function.
8029 (bpstat_what): Use handle_solib_event.
8030 (struct solib_catchpoint): New.
8031 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
8032 (breakpoint_hit_catch_solib, check_status_catch_solib)
8033 (print_it_catch_solib, print_one_catch_solib)
8034 (print_mention_catch_solib, print_recreate_catch_solib): New
8035 functions.
8036 (catch_solib_breakpoint_ops): New global.
8037 (catch_load_or_unload, catch_load_command_1)
8038 (catch_unload_command_1): New functions.
8039 (internal_bkpt_check_status): Add special case for
8040 bp_shlib_event.
8041 (internal_bkpt_print_it): Use print_solib_event.
8042 (initialize_breakpoint_ops): Initialize
8043 catch_solib_breakpoint_ops.
8044 (_initialize_breakpoint): Register "catch load" and "catch
8045 unload".
8046 * breakpoint.h (handle_solib_event): Declare.
8047 * NEWS: Add entry for "catch load" and "catch unload".
8048
8049 2012-01-24 Tom Tromey <tromey@redhat.com>
8050
8051 * ada-lang.c: Include gdb_vecs.h.
8052 * charset.c: Include gdb_vecs.h.
8053 * tracepoint.h: Include gdb_vecs.h.
8054 * gdb_vecs.h: New file.
8055
8056 2012-01-24 Pedro Alves <pedro@codesourcery.com>
8057
8058 * breakpoint.c (breakpoint_hit_catch_fork)
8059 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
8060 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
8061 * infrun.c (inferior_has_forked, inferior_has_vforked)
8062 (inferior_has_execd, inferior_has_called_syscall): Delete.
8063 (handle_syscall_event): Get syscall_number from the execution
8064 control state's wait status.
8065 (wait_for_inferior): Don't clear syscall_number.
8066
8067 2012-01-24 Pedro Alves <palves@redhat.com>
8068
8069 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
8070 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
8071 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
8072 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
8073 `ws' parameter.
8074 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
8075 false for events other than TARGET_SIGNAL_TRAP.
8076 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
8077 Add `ws' parameter.
8078 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
8079 events other than TARGET_SIGNAL_TRAP.
8080 (tracepoint_breakpoint_hit): Add `ws' parameter.
8081 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
8082 parameter.
8083 (bpstat_stop_status): Same.
8084 (pc_at_non_inline_function): Same.
8085 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
8086 to pass the current event's waitstatus to bpstat_stop_status
8087 and pc_at_non_inline_function.
8088
8089 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8090
8091 Code cleanup.
8092 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
8093 Update the function comment for it.
8094 (source_script_with_search): Call make_cleanup_fclose for STREAM.
8095 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
8096 for STREAM.
8097
8098 2012-01-24 Pedro Alves <palves@redhat.com>
8099
8100 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
8101 outside `bs->stop' block.
8102 (bpstat_what): Rework bp_shlib_event handling.
8103 (internal_bkpt_check_status): If the breakpoint is a
8104 bp_shlib_event, then set bs->stop and bs->print if
8105 stop_on_solib_events is set.
8106
8107 2012-01-24 Gary Benson <gbenson@redhat.com>
8108
8109 Delete #if 0'd out code.
8110 * stack.c (print_frame_label_vars): Remove.
8111 (catch_info): Likewise.
8112 (_initialize_stack): Remove "info catch" command.
8113 * NEWS: Mention the above.
8114
8115 2012-01-24 Pedro Alves <palves@redhat.com>
8116
8117 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
8118 it.
8119 (remote_notice_new_inferior): If the remote end doesn't support
8120 the multiprocess extensions, then the PID is fake.
8121 (add_current_inferior_and_thread): New.
8122 (remote_start_remote): Use it.
8123 (extended_remote_attach_1): Adjust.
8124 (extended_remote_create_inferior_1): Use
8125 add_current_inferior_and_thread.
8126
8127 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8128
8129 Fix watchpoints to be specific for each inferior.
8130 * breakpoint.c (watchpoint_in_thread_scope): Verify also
8131 current_program_space.
8132 * i386-nat.c (i386_inferior_data_cleanup): New.
8133 (i386_inferior_data_get): Replace variable inf_data_local by an
8134 inferior_data call.
8135 (i386_use_watchpoints): Initialize i386_inferior_data.
8136 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
8137 specific iterate_over_lwps.
8138
8139 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8140
8141 Fix watchpoints across inferior fork.
8142 * amd64-linux-nat.c (update_debug_registers_callback): Update the
8143 comment for linux_nat_iterate_watchpoint_lwps.
8144 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8145 linux_nat_iterate_watchpoint_lwps.
8146 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8147 * i386-linux-nat.c (update_debug_registers_callback): Update the
8148 comment for linux_nat_iterate_watchpoint_lwps.
8149 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8150 linux_nat_iterate_watchpoint_lwps.
8151 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8152 * i386-nat.c: Include inferior.h.
8153 (dr_mirror): Remove.
8154 (i386_inferior_data, struct i386_inferior_data)
8155 (i386_inferior_data_get): New.
8156 (i386_debug_reg_state): Use i386_inferior_data_get.
8157 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8158 (i386_insert_watchpoint, i386_remove_watchpoint)
8159 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8160 (i386_remove_hw_breakpoint): New variable state, use
8161 i386_debug_reg_state instead of DR_MIRROR.
8162 * linux-nat.c (delete_lwp): New declaration.
8163 (num_lwps): Move here from downwards.
8164 (delete_lwp_cleanup): New.
8165 (linux_child_follow_fork): Create new child_lp, call
8166 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8167 PTRACE_DETACH.
8168 (num_lwps): Move upwards.
8169 (linux_nat_iterate_watchpoint_lwps): New.
8170 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8171 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8172
8173 2012-01-24 Joel Brobecker <brobecker@adacore.com>
8174
8175 GDB 7.4 released.
8176
8177 2012-01-23 Pedro Alves <palves@redhat.com>
8178
8179 * top.c (caution): Rename to ...
8180 (confirm): ... this.
8181 (show_caution): Rename to ...
8182 (show_confirm): ... this.
8183 (quit_cover): Adjust.
8184 (init_main): Adjust.
8185 * top.h (caution): Rename to ...
8186 (confirm): ... this.
8187 * utils.c (internal_vproblem, defaulted_query): Adjust.
8188
8189 2012-01-23 Pedro Alves <palves@redhat.com>
8190
8191 * top.c (caution): Update comment.
8192 (execute_command): Don't consider the current value of `caution'.
8193
8194 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8195
8196 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8197
8198 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8199
8200 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8201 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8202 * target.c (target_fileio_pwrite): Remove buffer address from
8203 debug output.
8204 (target_fileio_pread): Likewise.
8205
8206 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8207
8208 * NEWS: Document remote "info proc" and "generate-core-file".
8209
8210 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8211
8212 * gdbarch.sh (find_memory_regions): New callback.
8213 * gdbarch.c, gdbarch.h: Regenerate.
8214
8215 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8216 callback before falling back to target method.
8217
8218 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8219 (linux_target_install_ops): No longer install it.
8220
8221 * linux-tdep.c (linux_find_memory_regions): New function.
8222 (linux_init_abi): Install it.
8223
8224 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8225
8226 * gdbarch.sh (make_corefile_notes): New architecture callback.
8227 * gdbarch.c: Regenerate.
8228 * gdbarch.h: Likewise.
8229
8230 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8231 before target_make_corefile_notes. If NULL is returned, the
8232 target does not support core file generation.
8233
8234 * linux-nat.c: Include "linux-tdep.h".
8235 (find_signalled_thread, find_stop_signal): Remove.
8236 (linux_nat_do_thread_registers): Likewise.
8237 (struct linux_nat_corefile_thread_data): Likewise.
8238 (linux_nat_corefile_thread_callback): Likewise.
8239 (iterate_over_spus): Likewise.
8240 (struct linux_spu_corefile_data): Likewise.
8241 (linux_spu_corefile_callback): Likewise.
8242 (linux_spu_make_corefile_notes): Likewise.
8243 (linux_nat_collect_thread_registers): New function.
8244 (linux_nat_make_corefile_notes): Replace contents by call to
8245 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8246 as native-only callback.
8247
8248 * linux-tdep.h: Include "bfd.h".
8249 (struct regcache): Add forward declaration.
8250 (linux_collect_thread_registers_ftype): New typedef.
8251 (linux_make_corefile_notes): Add prototype.
8252 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8253 "regset.h", and "elf-bfd.h".
8254 (find_signalled_thread, find_stop_signal): New functions.
8255 (linux_spu_make_corefile_notes): Likewise.
8256 (linux_collect_thread_registers): Likewise.
8257 (struct linux_corefile_thread_data): New data structure.
8258 (linux_corefile_thread_callback): New funcion.
8259 (linux_make_corefile_notes): Likewise.
8260 (linux_make_corefile_notes_1): Likewise.
8261 (linux_init_abi): Install it.
8262
8263 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8264
8265 * gdbarch.sh (info_proc): New callback.
8266 * gdbarch.c, gdbarch.h: Regenerate.
8267
8268 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8269 before falling back to the target info_proc callback.
8270
8271 * linux-nat.c: Do not include "cli/cli-utils.h".
8272 (linux_nat_info_proc): Remove.
8273 (linux_target_install_ops): No longer install it.
8274
8275 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8276 (read_mapping): New function.
8277 (linux_info_proc): Likewise.
8278 (linux_init_abi): Install it.
8279
8280 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8281
8282 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8283 * infcmd.c: (info_proc_cmd_1): New function.
8284 (info_proc_cmd): New function, moved here from equivalent routine
8285 orignally in linux-nat.c.
8286 (info_proc_cmd_mappings): Likewise.
8287 (info_proc_cmd_stat): Likewise.
8288 (info_proc_cmd_status): Likewise.
8289 (info_proc_cmd_cwd): Likewise.
8290 (info_proc_cmd_cmdline): Likewise.
8291 (info_proc_cmd_exe): Likewise.
8292 (info_proc_cmd_all): Likewise.
8293 (_initialize_infcmd): Install "info proc" command and subcommands.
8294
8295 * target.h (struct target_ops): Add to_info_proc.
8296 (target_info_proc): Add prototype.
8297 * target.c (target_info_proc): New function.
8298
8299 * procfs.c (procfs_info_proc): Add prototype.
8300 (info_proc_cmd): Rename into ...
8301 (procfs_info_proc): ... this. Update argument types as appropriate
8302 for a to_info_proc implementation. Handle "what" argument.
8303 (procfs_target): Install procfs_info_proc.
8304 (_initialize_procfs): No longer install "info proc" command.
8305
8306 * linux-nat.c: (enum info_proc_what): Remove.
8307 (linux_nat_info_proc_cmd_1): Rename into ...
8308 (linux_nat_info_proc): ... this. Update argument types as appropriate
8309 for a to_info_proc implementation.
8310 (linux_nat_info_proc_cmd): Remove.
8311 (linux_nat_info_proc_cmd_mappings): Likewise.
8312 (linux_nat_info_proc_cmd_stat): Likewise.
8313 (linux_nat_info_proc_cmd_status): Likewise.
8314 (linux_nat_info_proc_cmd_cwd): Likewise.
8315 (linux_nat_info_proc_cmd_cmdline): Likewise.
8316 (linux_nat_info_proc_cmd_exe): Likewise.
8317 (linux_nat_info_proc_cmd_all): Likewise.
8318 (linux_target_install_ops): Install linux_nat_info_proc.
8319 (_initialize_linux_nat): No longer install "info proc" command
8320 and subcommands.
8321
8322 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8323
8324 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8325 * config.in, configure: Regenerate.
8326
8327 * target.h (struct target_ops): Add to_fileio_readlink.
8328 (target_fileio_readlink): Add prototype.
8329 * target.c (target_fileio_readlink): New function.
8330
8331 * inf-child.c: Conditionally include <sys/param.h>.
8332 (inf_child_fileio_readlink): New function.
8333 (inf_child_target): Install it.
8334
8335 * remote.c (PACKET_vFile_readlink): New enum value.
8336 (remote_hostio_readlink): New function.
8337 (init_remote_ops): Install it.
8338 (_initialize_remote): Handle vFile:readlink packet type.
8339
8340 2012-01-20 Pedro Alves <palves@redhat.com>
8341 Ulrich Weigand <ulrich.weigand@linaro.org>
8342
8343 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8344 * config.in, configure: Regenerate.
8345
8346 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8347 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8348 (target_fileio_open): Add prototype.
8349 (target_fileio_pwrite): Likewise.
8350 (target_fileio_pread): Likewise.
8351 (target_fileio_close): Likewise.
8352 (target_fileio_unlink): Likewise.
8353 (target_fileio_read_alloc): Likewise.
8354 (target_fileio_read_stralloc): Likewise.
8355
8356 * target.c: Include "gdb/fileio.h".
8357 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8358 (default_fileio_target): New function.
8359 (target_fileio_open): Likewise.
8360 (target_fileio_pwrite): Likewise.
8361 (target_fileio_pread): Likewise.
8362 (target_fileio_close): Likewise.
8363 (target_fileio_unlink): Likewise.
8364 (target_fileio_close_cleanup): Likewise.
8365 (target_fileio_read_alloc_1): Likewise.
8366 (target_fileio_read_alloc): Likewise.
8367 (target_fileio_read_stralloc): Likewise.
8368
8369 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8370 <fcntl.h>, and <unistd.h>.
8371 (inf_child_fileio_open_flags_to_host): New function.
8372 (inf_child_errno_to_fileio_error): Likewise.
8373 (inf_child_fileio_open): Likewise.
8374 (inf_child_fileio_pwrite): Likewise.
8375 (inf_child_fileio_pread): Likewise.
8376 (inf_child_fileio_close): Likewise.
8377 (inf_child_fileio_unlink): Likewise.
8378 (inf_child_target): Install to_fileio routines.
8379
8380 * remote.c (init_remote_ops): Install to_fileio routines.
8381
8382 2012-01-20 Pedro Alves <palves@redhat.com>
8383 Ulrich Weigand <ulrich.weigand@linaro.org>
8384
8385 * remote.c (remote_multi_process_p): Only check for multi-process
8386 protocol feature, do not check for extended protocol.
8387 (remote_supports_multi_process): Check for extended protocol here.
8388 (set_general_process): Likewise.
8389 (extended_remote_kill): Likewise.
8390 (remote_pid_to_str): Likewise.
8391 (remote_query_supported): Always query multiprocess mode.
8392
8393 2012-01-20 Pedro Alves <palves@redhat.com>
8394 Ulrich Weigand <ulrich.weigand@linaro.org>
8395
8396 * inferior.h (struct inferior): Add fake_pid_p.
8397 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8398 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8399 magic_null_ptid since the remote side doesn't provide a real PID.
8400
8401 2012-01-19 Tom Tromey <tromey@redhat.com>
8402
8403 * NEWS: Combine the two Python sections.
8404
8405 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8406
8407 * target.h (target_close): Update comment on the target's unpush state.
8408
8409 2012-01-19 Pedro Alves <palves@redhat.com>
8410
8411 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8412 linux_nat_async directly instead of going through the target
8413 vector.
8414 * target.c (unpush_target): Close target after unpushing it, not
8415 before.
8416
8417 2012-01-19 Gary Benson <gbenson@redhat.com>
8418
8419 * mdebugread.c (sort_blocks): Replace integer constants with ones
8420 derived from FIRST_LOCAL_BLOCK.
8421
8422 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8423 Jan Kratochvil <jan.kratochvil@redhat.com>
8424
8425 PR gdb/9538
8426 * symfile.c (find_separate_debug_file): New function.
8427 (terminate_after_last_dir_separator): Likewise.
8428 (find_separate_debug_file_by_debuglink): Also try realpath.
8429 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8430 * configure: Regenerate.
8431 * config.in: Regenerate.
8432
8433 2012-01-18 Doug Evans <dje@google.com>
8434
8435 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8436 (main.o): Remove rule.
8437 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8438 (--with-sysroot): Rewrite.
8439 * configure: Regenerate.
8440 * config.in: Regenerate.
8441
8442 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8443
8444 * parse.c (initialize_expout): New function.
8445 (reallocate_expout): Likewise.
8446 (parse_exp_in_context): Use `initialize_expout' and
8447 `reallocate_expout' when appropriate.
8448
8449 2012-01-18 Pedro Alves <palves@redhat.com>
8450
8451 * record.c (struct record_breakpoint, record_breakpoint_p)
8452 (record_breakpoints): New.
8453 (record_insert_breakpoint, record_remove_breakpoint): Manage
8454 record breakpoints list. Only remove breakpoints from the
8455 inferior if they had been inserted there in the first place.
8456
8457 2012-01-17 Doug Evans <dje@google.com>
8458
8459 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8460 if we know we don't have a file name to look for.
8461
8462 2012-01-17 Pedro Alves <palves@redhat.com>
8463
8464 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8465 the frame's stop reason is UNWIND_UNAVAILABLE.
8466
8467 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8468
8469 Fix compilation error.
8470 * m2-exp.y (yyerror): Use ANSI C prototype.
8471
8472 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8473
8474 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8475 (growbuf_by_size): Likewise.
8476 (yyerror): Likewise.
8477 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8478 (modblock): Remove variable (was #if 0'ed).
8479 (parse_number): Convert prototype from K&R to ANSI C.
8480 (yyerror): Likewise.
8481 * objc-exp.y (parse_number): Likewise.
8482 (yyerror): Likewise.
8483 (yylex): Remove #if 0'ed code.
8484 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8485 (yyerror): Likewise.
8486
8487 2012-01-16 Tom Tromey <tromey@redhat.com>
8488
8489 * NEWS: Add item.
8490 * symtab.h (compare_filenames_for_search): Declare.
8491 * symtab.c (compare_filenames_for_search): New function.
8492 (iterate_over_some_symtabs): Use it.
8493 * symfile.h (struct quick_symbol_functions)
8494 <map_symtabs_matching_filename>: Change spec.
8495 * psymtab.c (partial_map_symtabs_matching_filename): Use
8496 compare_filenames_for_search. Update for new spec.
8497 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8498 compare_filenames_for_search. Update for new spec.
8499 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8500
8501 2012-01-16 Tom Tromey <tromey@redhat.com>
8502
8503 PR python/13281:
8504 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8505 (struct main_type) <flag_flag_enum>: New field.
8506 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8507 * NEWS: Add entries.
8508 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8509 enums.
8510 * python/lib/gdb/printing.py (_EnumInstance): New class.
8511 (FlagEnumerationPrinter): Likewise.
8512
8513 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8514
8515 * breakpoint.c (create_sals_from_address_default): New function.
8516 (create_breakpoints_sal_default): Likewise.
8517 (decode_linespec_default): Likewise.
8518 (is_marker_spec): Removed.
8519 (strace_marker_p): New function.
8520 (init_breakpoint_sal): Using `strace_marker_p' instead of
8521 `is_marker_spec'.
8522 (create_breakpoint): Call method `create_sals_from_address' from
8523 breakpoint_ops, replacing code that created SALs conditionally
8524 on the type of the breakpoint. Call method `create_breakpoints_sal',
8525 replacing code that created breakpoints conditionally on the type
8526 wanted.
8527 (base_breakpoint_create_sals_from_address): New function.
8528 (base_breakpoint_create_breakpoints_sal): Likewise.
8529 (base_breakpoint_decode_linespec): Likewise.
8530 (base_breakpoint_ops): Add methods
8531 `base_breakpoint_create_sals_from_address',
8532 `base_breakpoint_create_breakpoints_sal' and
8533 `base_breakpoint_decode_linespec'.
8534 (bkpt_create_sals_from_address): New function.
8535 (bkpt_create_breakpoints_sal): Likewise.
8536 (bkpt_decode_linespec): Likewise.
8537 (tracepoint_create_sals_from_address): Likewise.
8538 (tracepoint_create_breakpoints_sal): Likewise.
8539 (tracepoint_decode_linespec): Likewise.
8540 (strace_marker_create_sals_from_address): Likewise.
8541 (strace_marker_create_breakpoints_sal): Likewise.
8542 (strace_marker_decode_linespec): Likewise.
8543 (strace_marker_breakpoint_ops): New variable.
8544 (addr_string_to_sals): Remove `marker_spec'. Call method
8545 `decode_linespec' from breakpoint_ops, replacing code that decoded
8546 an address string into a SAL. Use `strace_marker_p' instead of
8547 `marker_spec'.
8548 (strace_command): Decide whether we are dealing with a static
8549 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8550 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8551 * breakpoint.h (linespec_result, linespec_sals): New forward
8552 declarations.
8553 (breakpoint_ops) <create_sals_from_address>,
8554 <create_breakpoints_sal>, <decode_linespec>: New methods.
8555
8556 2012-01-14 Doug Evans <dje@google.com>
8557
8558 * NEWS: Update text for "maint set python print-stack".
8559 It is deprecated in gdb 7.4 and deleted in 7.5.
8560
8561 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8562
8563 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8564 including curses.h.
8565
8566 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8567
8568 * configure: Regenerate.
8569 * config.in: Regenerate.
8570
8571 2012-01-12 Keith Seitz <keiths@redhat.com>
8572
8573 PR mi/10586
8574 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8575 (ANONYMOUS_UNION_NAME): Define.
8576 (is_path_expr_parent): New function.
8577 (get_path_expr_parent): New function.
8578 (is_anonymous_child): New function.
8579 (create_child_with_value): If the child is anonymous and without
8580 a name, assign an object name to it.
8581 (c_describe_child): Use get_path_expr_parent to determine
8582 the parent expression.
8583 If there field represents an anonymous struct or union and
8584 has no name, set an appropriate display name and expression.
8585 (cplus_describe_child): Likewise.
8586
8587 2012-01-12 Pedro Alves <palves@redhat.com>
8588
8589 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8590 available when %ebp is found to be zero (outermost).
8591
8592 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8593
8594 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8595 an internal gdb_static_assert.
8596 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8597
8598 2012-01-11 Tom Tromey <tromey@redhat.com>
8599
8600 PR gdb/9598:
8601 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8602 catch" and "catch throw".
8603
8604 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8605
8606 * blockframe.c (block_innermost_frame): Start search from selected
8607 frame, if present, or otherwise the current frame.
8608
8609 * c-exp.y (variable): Update innermost_block for
8610 'block COLONCOLON NAME' clause.
8611 * m2-exp.y (variable): Ditto.
8612 * objc-exp.y (variable): Ditto.
8613
8614 2012-01-10 Tom Tromey <tromey@redhat.com>
8615
8616 PR python/13199:
8617 * python/python.c (finish_python_initialization): Set sys.argv.
8618
8619 2012-01-10 Doug Evans <dje@google.com>
8620
8621 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8622 "want_line_info". All callers updated.
8623 (dwarf_decode_lines_1): New function.
8624 (handle_DW_AT_stmt_list): Add function comment.
8625 New arg "want_line_info". All callers updated.
8626 (read_file_scope,read_type_unit_scope): Move comment from
8627 handle_DW_AT_stmt_list to here.
8628
8629 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8630
8631 Fix regression after libiberty/ update for GCC PR 6057 and others.
8632 * c-exp.y (operator) <OPERATOR DELETE>
8633 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8634 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8635 (make_builtin_type, make_name): New variable i, add gdb_assert.
8636 (operator) <OPERATOR NEW>: Update ARGS to 3.
8637 (operator) <OPERATOR DELETE>: Add trailing space.
8638 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8639 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8640 * cp-support.c (cp_canonicalize_string): Check NULL from
8641 cp_comp_to_string, call warning and return.
8642
8643 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8644
8645 Fix duplicate .o files after omitting libbfd.a.
8646 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8647 (SFILES): Add corelow.c.
8648 (COMMON_OBS): Add corelow.o.
8649 (ALLDEPFILES): Remove corelow.c.
8650 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8651 * config/alpha/alpha-osf3.mh: Likewise.
8652 * config/alpha/fbsd.mh: Likewise.
8653 * config/arm/nbsdaout.mh: Likewise.
8654 * config/arm/nbsdelf.mh: Likewise.
8655 * config/i386/i386gnu.mh: Likewise.
8656 * config/ia64/hpux.mh: Likewise.
8657 * config/ia64/linux.mh: Likewise.
8658 * config/m32r/linux.mh: Likewise.
8659 * config/m68k/linux.mh: Likewise.
8660 * config/mips/irix5.mh: Likewise.
8661 * config/mips/irix6.mh: Likewise.
8662 * config/pa/hpux.mh: Likewise.
8663 * config/pa/linux.mh: Likewise.
8664 * config/powerpc/aix.mh: Likewise.
8665 * config/sparc/linux.mh: Likewise.
8666 * config/sparc/linux64.mh: Likewise.
8667 * config/sparc/sol2.mh: Likewise.
8668 * config/vax/vax.mh: Likewise.
8669 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8670 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8671 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8672 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8673 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8674 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8675 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8676 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8677 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8678 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8679 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8680 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8681 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8682 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8683 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8684 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8685 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8686 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8687 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8688 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8689 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8690 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8691 corelow.o from gdb_target_obs.
8692 * corefile.c (core_target): Update the comment on NULL value.
8693 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8694 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8695 MATCHES. Drop YUMMY set on NULL.
8696 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8697 reclaim CORE_DATA if it is already NULL.
8698
8699 2012-01-09 Doug Evans <dje@google.com>
8700
8701 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8702 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8703
8704 2012-01-09 Keith Seitz <keiths@redhat.com>
8705
8706 * breakpoint.c (wrapper.h): Don't include.
8707
8708 2012-01-09 Keith Seitz <keiths@redhat.com>
8709
8710 * Makefile.in (SFILES): Remove wrapper.c.
8711 (HFILES_NO_SRCDIR): Remove wrapper.h.
8712 (COMMON_OBS): Remove wrapper.o.
8713 * cli/cli-interp.c: Don't inlude wrapper.h.
8714 * corelow.c: Likewise.
8715 (core_open): Replace gdb_target_find_new_threads with
8716 TRY_CATCH around target_find_new_threads.
8717 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8718 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8719 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8720 evaluate_expression.
8721 (varobj_set_value): Likewise for evaluate_expression and
8722 value_assign.
8723 (install_new_variable): Likewise for value_fetch_lazy.
8724 (adjust_value_for_child_access): Likewise for value_ind.
8725 (c_describe_child): Likewise for value_subscript and
8726 value_ind.
8727 (c_value_of_root): Likewise for evaluate_expression.
8728 * wrapper.c: Remove.
8729 * wrapper.h: Remove.
8730
8731 2012-01-09 Doug Evans <dje@google.com>
8732
8733 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8734 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8735 "abfd" args with "section". All callers updated.
8736 Error checking code moved ...
8737 (error_check_comp_unit_head): ... here. New function.
8738 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8739 Delete arg "abfd". New arg "type_offset". All callers updated.
8740 (create_debug_types_hash_table): Simplify by using
8741 read_and_check_type_unit_head.
8742
8743 * parser-defs.h (namecopy): Delete.
8744 * parse.c (namecopy, namecopy_size): Move into copy_name.
8745
8746 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8747
8748 Partially fix duplicate .o files after omitting libbfd.a.
8749 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8750 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8751 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8752 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8753 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8754 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8755 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8756
8757 2012-01-09 Pedro Alves <palves@redhat.com>
8758
8759 * MAINTAINERS: Update my email address.
8760
8761 2012-01-08 Doug Evans <dje@google.com>
8762
8763 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8764 n_type_units. Rename type_comp_units to all_type_units.
8765 All uses updated.
8766 (add_signatured_type_cu_to_table): Renamed from
8767 add_signatured_type_cu_to_list. All callers updated.
8768
8769 * gdbtypes.h (struct cplus_struct_type): Delete member
8770 nfn_fields_total. All uses removed.
8771
8772 2012-01-06 Doug Evans <dje@google.com>
8773
8774 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8775 to top of file.
8776 (dwarf2_find_comp_unit): Delete.
8777 (process_psymtab_comp_unit): Make result "void".
8778 Delete args buffer, info_ptr, buffer_size, and replace with
8779 "section". All callers updated.
8780 (dwarf2_build_psymtabs_hard): Simplify.
8781
8782 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8783 Thiago Jung Bauermann <bauerman@br.ibm.com>
8784
8785 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8786 before `struct gdb_exception'.
8787 * breakpoint.c (update_global_location_list_nothrow)
8788 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8789 * cp-abi.c (value_rtti_type): Likewise.
8790 * cp-support.c (cp_validate_operator): Likewise.
8791 * infrun.c (insert_exception_resume_breakpoint)
8792 (check_exception_resume, keep_going): Likewise.
8793 * mi-interp.c (mi_breakpoint_created)
8794 (mi_breakpoint_modified): Likewise.
8795 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8796 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8797 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8798
8799 2012-01-05 Doug Evans <dje@google.com>
8800
8801 * dwarf2read.c (statement_prologue): Delete, unused.
8802
8803 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8804 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8805
8806 * dwarf2read.c (comp_unit_header): Delete, unused.
8807
8808 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8809
8810 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8811 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8812
8813 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8814
8815 * infrun.c (normal_stop): Don't skip calling the normal_stop
8816 observers if the thread was doing a multi-step, but stopped for
8817 some reason other than stepping.
8818
8819 2012-01-05 Pedro Alves <alves.ped@gmail.com>
8820
8821 * cli/cli-decode.h: Add comments.
8822 (CMD_LIST_AMBIGUOUS): Moved to command.h
8823 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8824 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8825 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8826 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8827 (add_com, add_com_alias, add_info, add_info_alias)
8828 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8829 declarations.
8830 * command.h: Add and adjust comments.
8831 (CMD_LIST_AMBIGUOUS): Moved here.
8832 (help_cmd, help_cmd_list): Delete declarations.
8833
8834 2012-01-04 Doug Evans <dje@google.com>
8835
8836 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8837 All callers updated.
8838 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8839 Replace all arguments with "per_cu". All callers updated.
8840
8841 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8842
8843 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8844 New arg "per_cu". All callers updated.
8845
8846 Delete #if 0'd out code.
8847 * language.c (binop_result_type): Delete.
8848 (simple_type, ordered_type, same_type, integral_type): Delete.
8849 (numeric_type, character_type, string_type, boolean_type): Delete.
8850 (float_type, structured_type): Delete.
8851 * language.h: Update.
8852
8853 2012-01-04 Tom Tromey <tromey@redhat.com>
8854
8855 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8856
8857 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8858
8859 * corefile.c (close_exec_file): Delete.
8860 (reopen_exec_file): Remove commented out code that seems related
8861 to close_exec_file, which is being deleted here.
8862 * inferior.h (close_exec_file): Delete.
8863 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8864
8865 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8866
8867 * ada-lang.c: #include "cli/cli-utils.h".
8868 (get_selections): Use skip_spaces.
8869 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8870 (catch_ada_exception_command_split): Use skip_spaces.
8871 (ada_decode_assert_location): Likewise.
8872
8873 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8874
8875 * linespec.c (decode_line_internal): Check for C++ or Java
8876 compound constructs only if the current language is C, C++
8877 or Java.
8878
8879 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8880
8881 Revert:
8882 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8883 Joel Brobecker <brobecker@adacore.com>
8884 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8885 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8886 3 times.
8887 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8888 fall through into AT_ENTRY_POINT.
8889 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8890 DUMMY_ADDR with it.
8891 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8892 PPC_INSN_SIZE skip to 3 times.
8893
8894 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8895
8896 * linespec.c (add_minsym): Preserve function descriptors.
8897
8898 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8899
8900 * breakpoint.c (all_locations_are_pending): Consider locations
8901 in program spaces executing during startup pending as well.
8902
8903 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8904
8905 Copyright year update in most files of the GDB Project.
8906
8907 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8908
8909 * copyright.sh: Delete.
8910 * copyright.py: Rewrite.
8911
8912 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8913
8914 * gnulib/extra/update-copyright: New file, imported from gnulib.
8915
8916 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8917
8918 * README (Copyright and License Notices): New section.
8919
8920 2012-01-03 Tom Tromey <tromey@redhat.com>
8921
8922 PR python/12533:
8923 * python/py-value.c (valpy_dereference, valpy_get_address
8924 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8925 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8926 (valpy_absolute, valpy_richcompare): Free intermediate values.
8927
8928 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8929
8930 * ada-lang.c: Reformat the copyright notice.
8931
8932 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8933
8934 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8935 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8936 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8937 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8938 Revert this part of:
8939 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8940 Build gdb directly from *.o files not using libgdb.a.
8941 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8942
8943 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8944
8945 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8946 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8947 Reformat the copyright header.
8948
8949 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8950
8951 Revert this part of:
8952 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8953 Remove the gdbtui binary.
8954 * gdb.c (main): Remove args.interpreter_p initialization.
8955 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8956 * main.h (struct captured_main_args): Remove interpreter_p.
8957
8958 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8959
8960 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8961
8962 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8963
8964 * top.c (print_gdb_version): Update copyright year.
8965
8966 2012-01-02 Yao Qi <yao@codesourcery.com>
8967
8968 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8969
8970 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8971 Joel Brobecker <brobecker@adacore.com>
8972
8973 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8974 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8975 3 times.
8976 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8977 fall through into AT_ENTRY_POINT.
8978 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8979 DUMMY_ADDR with it.
8980 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8981 PPC_INSN_SIZE skip to 3 times.
8982
8983 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8984
8985 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
8986 the return value.
8987 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
8988
8989 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8990
8991 Build gdb directly from *.o files not using libgdb.a.
8992 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
8993 (COMMON_OBS): Remove solib-target.o.
8994 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
8995 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8996 (LIBGDB_OBS, libgdb.a): Move it above.
8997 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
8998 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
8999 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
9000 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
9001 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
9002 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
9003 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
9004 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
9005 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
9006 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
9007 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
9008 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
9009 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
9010 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
9011 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9012 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
9013 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
9014 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9015 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
9016 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
9017 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
9018 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
9019 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
9020 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
9021 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
9022 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
9023 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
9024
9025 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9026
9027 Remove the gdbtui binary.
9028 * .gitignore (/gdbtui): Remove.
9029 * Makefile.in (TUI): Remove.
9030 (SUBDIR_TUI_OBS): Remove tui-main.o.
9031 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
9032 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
9033 (tui-main.o): Remove.
9034 (all_object_files): Remove tui-main.o.
9035 * NEWS: New note for the gdbtui removal.
9036 * configure: Rebuilt.
9037 * configure.ac: No longer add all-tui, clean-tui, install-tui and
9038 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
9039 CONFIG_UNINSTALL respectively.
9040 * gdb.c (main): Remove args.interpreter_p initialization.
9041 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9042 * main.h (struct captured_main_args): Remove interpreter_p.
9043 * tui/tui-main.c: Remove.
9044
9045 2012-01-01 Doug Evans <dje@google.com>
9046
9047 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
9048 (dwarf2_physname, read_import_statement): Ditto.
9049 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
9050 (process_structure_scope read_subroutine_type): Ditto.
9051 (read_typedef, load_partial_dies, read_partial_die): Ditto.
9052 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
9053 (dwarf2_fetch_die_location_block): Ditto.
9054 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
9055
9056 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
9057 All callers updated.
9058 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
9059 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
9060 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
9061
9062 * dwarf2read.c (load_cu): Move assert to more useful location.
9063
9064 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
9065 All callers updated.
9066
9067 * dwarf2read.c (dwarf2_per_objfile): Add comment.
9068 (dwarf2_elf_names): Minor reformat.
9069 (dwarf2_per_cu_data): Tweak comment.
9070 (dwarf2_read_section): Fix comment.
9071 (create_all_comp_units): Fix comment.
9072 (load_full_comp_unit): Fix comment.
9073 (process_full_comp_unit): Fix comment.
9074 (read_signatured_type): Fix comment.
9075
9076 For older changes see ChangeLog-2011.
9077 \f
9078 Local Variables:
9079 mode: change-log
9080 left-margin: 8
9081 fill-column: 74
9082 version-control: never
9083 coding: utf-8
9084 End:
This page took 0.199845 seconds and 5 git commands to generate.