]> Git Repo - binutils.git/blob - gdb/ChangeLog
Fix for incorrect breakpoint set in case of clang compiled binary
[binutils.git] / gdb / ChangeLog
1 2012-12-04  Karthik Bhat  <[email protected]>
2
3         * i386-tdep.c (i386_skip_prologue): Using symbol table
4         to find the end of prologue for clang compiled binaries.
5         * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6         to find the end of prologue for clang compiled binaries.
7
8 2012-12-03  Doug Evans  <[email protected]>
9
10         * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
11         (dw2_find_symbol_file): Delete unused local file_data.
12
13 2012-12-03  Tom Tromey  <[email protected]>
14
15         * ada-exp.y (write_object_renaming, write_var_or_type)
16         (write_ambiguous_var, write_var_from_sym): Make blocks const.
17         * ada-lang.c (replace_operator_with_call)
18         (find_old_style_renaming_symbol): Make blocks const.
19         * ada-lang.h (ada_find_renaming_symbol): Update.
20         (struct ada_symbol_info) <block>: Now const.
21         * breakpoint.c (watch_command_1): Update.
22         * breakpoint.h (struct watchpoint) <exp_valid_block,
23         cond_exp_valid_block>: Now const.
24         * c-exp.y (classify_inner_name, classify_name): Make block
25         argument const.
26         * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
27         const.
28         * expression.h (innermost_block, parse_exp_1): Update.
29         (union exp_element) <block>: Now const.
30         * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
31         (lookup_struct): Make block argument const.
32         * gdbtypes.h (lookup_template_type): Update.
33         * go-exp.y (classify_name, classify_packaged_name)
34         (package_name_p): Make block argument const.
35         * objc-lang.c (lookup_struct_typedef): Make block argument const.
36         * objc-lang.h (lookup_struct_typedef): Update.
37         * parse.c (parse_exp_in_context, parse_exp_1)
38         (write_exp_elt_block): Make block arguments const.
39         (expression_context_block, innermost_block): Now const.
40         * parser-defs.h (write_exp_elt_block): Update.
41         (expression_context_block, innermost_block, block_found): Now
42         const.
43         * printcmd.c (struct display) <block>: Now const.
44         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
45         * valops.c (address_of_variable): Make block argument const.
46         * value.h (value_of_variable): Update.
47         * varobj.c (struct varobj_root) <valid_block>: Now const.
48
49 2012-11-30  Yao Qi  <[email protected]>
50
51         * breakpoint.c (print_one_breakpoint_location): Indent code.
52
53 2012-11-30  Yao Qi  <[email protected]>
54
55         * breakpoint.c (print_one_breakpoint_location): Combine two
56         blocks handling 'hit count' together.
57
58 2012-11-30  Yao Qi  <[email protected]>
59
60         * infrun.c (error_is_running, ensure_not_running): Move them
61         to ...
62         * infcmd.c (error_is_running, ensure_not_running): ... here.
63         Make them 'static'.
64         * inferior.h: Remove declarations of error_is_running and
65         ensure_not_running.
66
67 2012-11-30  Yao Qi  <[email protected]>
68
69         * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
70         check REGNUM >= 0.
71
72 2012-11-30  Yao Qi  <[email protected]>
73
74         * infrun.c: Make the declaration of 'init_infwait_state'
75         static.
76         (init_infwait_state): Make it 'static'.
77
78 2012-11-29  Ulrich Weigand  <[email protected]>
79
80         * python/python.c (finalize_python): Cast unused PyGILState_Ensure
81         return value to void to avoid compiler warning.
82
83 2012-11-29  Ulrich Weigand  <[email protected]>
84
85         * opencl-lang.c (opencl_print_type): New function.
86         (opencl_language_arch_info): Install it.
87
88 2012-11-29  Tom Tromey  <[email protected]>
89
90         * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
91         xvasprintf.
92         * common/common-utils.c (xasprintf, xvasprintf): Remove.
93         * common/common-utils.h (xasprintf, xvasprintf): Remove.
94
95 2012-11-29  Jerome Guitton  <[email protected]>
96
97         * ada-lang.c (ada_is_interface_tag): New function.
98         (ada_is_ignored_field): Add interface tags to the list
99         of ignored fields.
100
101 2012-11-29  Jerome Guitton  <[email protected]>
102
103         * ada-lang.h (ada_tag_value_at_base_address): New function
104         declaration.
105         * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
106         New functions.
107         (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
108         relocate the class-wide value if need be.
109         (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
110         Let ada_tag_value_at_base_address relocate the class-wide access/ref
111         before dereferencing it.
112         * ada-valprint.c (ada_val_print_1): Relocate to base address
113         before displaying the content of an interface-wide ref.
114
115 2012-11-29  Jerome Guitton  <[email protected]>
116
117         * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
118
119 2012-11-29  Joel Brobecker  <[email protected]>
120
121         GDB 7.5.1 released.
122
123 2012-11-29  Yao Qi  <[email protected]>
124             Tom Tromey  <[email protected]>
125
126         * eval.c (evaluate_subexp_standard): Get the correct pointer
127         type for TYPE_CODE_MEMBERPTR.
128
129 2012-11-28  Edjunior Machado  <[email protected]>
130
131         * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
132         since now it is being done by binutils' powerpc_init_dialect().
133
134 2012-11-28  Tom Tromey  <[email protected]>
135
136         PR gdb/14290:
137         * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
138         (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
139         Use it.
140         * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
141         * gdb_bfd.c (gdb_bfd_mark_parent): New function.
142         (gdb_bfd_openr_next_archived_file): Use it.
143
144 2012-11-28  Markus Metzger <[email protected]>
145
146         * configure.ac: Check for linux/perf_event.h.
147         * config.in: Regenerated.
148         * configure: Regenerated.
149
150 2012-11-28  Yao Qi  <[email protected]>
151
152         * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
153         abbreviate 'delete tracepoints' to 'delete tr'.
154         * corefile.c (_initialize_core): Call add_alias_cmd to
155         abbreviate 'set gnutarget' to 'set g'.
156         * value.c (_initialize_values): Call add_alias_cmd to abbreviate
157         'show convenience' to 'show conv'.
158
159 2012-11-27  Joel Brobecker  <[email protected]>
160
161         * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
162         call to sparc_supply_fpregset.
163         (fill_fpregset): Fix first parameter in call to
164         sparc_collect_fpregset.
165
166 2012-11-27  Daniel Jacobowitz  <[email protected]>
167             Kazu Hirata  <[email protected]>
168             Yao Qi  <[email protected]>
169
170         * objfiles.c (init_entry_point_info): Call
171         gdbarch_convert_from_func_ptr_addr and
172         gdbarch_addr_bits_remove here ...
173         (entry_point_address_query): ... instead of here.
174         * solib-svr4.c (exec_entry_point): Call
175         gdbarch_addr_bits_remove.
176         * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
177         the entry address.
178
179 2012-11-27  Daniel Jacobowitz  <[email protected]>
180             Yao Qi  <[email protected]>
181
182         * eval.c (evaluate_subexp_standard): Add handling of
183         TYPE_CODE_MEMBERPTR when calling functions.  Correct the
184         result of ptype for calling a TYPE_CODE_METHODPTR.
185
186 2012-11-27  Yao Qi  <[email protected]>
187
188         * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
189         warning.
190         Add i18n markup.
191
192 2012-11-26  Alexander Larsson  <[email protected]>
193             Jan Kratochvil  <[email protected]>
194             Tom Tromey  <[email protected]>
195
196         * NEWS: Mention mini debuginfo feature.
197         * minidebug.c: New file.
198         * configure.ac: Check for lzma.
199         * configure, config.in: Rebuild.
200         * Makefile.in (LIBLZMA): New variable.
201         (CLIBS): Include LIBLZMA.
202         (SFILES): Mention minidebug.c.
203         (COMMON_OBS): Mention minidebug.o.
204         * symfile.c (read_symbols): New function.
205         (syms_from_objfile, reread_symbols): Call it.
206         * symfile.h (find_separate_debug_file_in_section): Declare.
207
208 2012-11-26  Keith Seitz  <[email protected]>
209
210         * exec.c (exec_file_attach): Move cleanup after verifying that
211         memory has in fact been allocated.
212
213 2012-11-26  Tom Tromey  <[email protected]>
214
215         * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
216         * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
217         SYMBOL_SYMTAB.
218         * skip.c (skip_info): Use SYMBOL_SYMTAB.
219
220 2012-11-26  Maxime Villard  <[email protected]>
221             Pedro Alves  <[email protected]>
222
223         * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
224         size parameter passed to readlink by one byte.
225         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
226         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
227         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
228         * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
229         size by one byte.
230
231 2012-11-26  Yao Qi  <[email protected]>
232
233         * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
234         extraneous parentheses.
235
236 2012-11-26  Yao Qi  <[email protected]>
237
238         * remote.c (remote_start_remote): Typo fix.
239
240 2012-11-23  David S. Miller  <[email protected]>
241
242         * sparc-tdep.h (struct sparc_fpregset): New data structure.
243         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
244         sparc32_sol2_fpregset): Declare new globals.
245         (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
246         'fpregset' argument.
247         * sparc64-tdep.h (sparc64_supply_fpregset,
248         sparc64_collect_fpregset): Likewise.
249         (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
250         globals.
251         * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
252         (sparc_fpregset): Declare new global.
253         (sparc_supply_fpregset, sparc_collect_fpregset): Add new
254         'fpregset' argument.
255         * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
256         into handler.
257         (fill_fpregset): Likewise.
258         (_initialize_sparc_linux_nat): Set sparc_fpregset to
259         sparc32_bsd_fpregset.
260         * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
261         sparc32_bsd_fpregset down into handler.
262         (sparc32_linux_collect_core_fpregset): Likewise.
263         * sparc-nat.c (sparc_fpregset): Define.
264         (sparc_supply_fpregset): Add 'fpregset' argument.
265         (sparc_collect_fpregset): Likewise.
266         (sparc_fetch_inferior_registers): Pass sparc_fpregset down
267         into fpregset handler.
268         (sparc_store_inferior_registers): Likewise.
269         (_initialize_sparc_nat): Set sparc_fpregset to
270         sparc32_sunos4_fpregset if NULL.
271         * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
272         down into handler.
273         (fill_fpregset): Likewise.
274         * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
275         * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
276         use it to compute offsets.
277         (sparc32_collect_fpregset): Likewise.
278         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
279         * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
280         down into handler.
281         (fill_fpregset): Likewise.
282         * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
283         Likewise.
284         (sparc64_linux_collect_core_fpregset): Likewise.
285         * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
286         * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
287         use it to compute offsets.
288         (sparc64_collect_fpregset): Likewise.
289         (sparc64_bsd_fpregset): Define.
290         * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
291         sparc64_bsd_fpregset down into handler.
292         (sparc64fbsd_collect_fpregset): Likewise.
293         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
294         and pass sparc{32,64}_bsd_fpregset down into handler.
295         (sparc64nbsd_collect_fpregset): Likewise.
296         * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
297         sparc64_bsd_fpregset down into handler.
298         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
299         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
300         to sparc32_bsd_fpregset.
301         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
302         sparc32_bsd_fpregset down into sparc32_supply_fpregset.
303         (sparc32nbsd_supply_fpregset): Likewise.
304
305 2012-11-21  Tom Tromey  <[email protected]>
306
307         * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
308         field.
309         (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
310         Remove.
311         * c-typeprint.c (c_type_print_base): Update.
312
313 2012-11-21  Yao Qi  <[email protected]>
314
315         PR tdep/7438
316         * gdbarch.sh (smash_text_address): Remove.
317         * gdbarch.c, gdbarch.h: Regenerate.
318         * arm-tdep.c (arm_smash_text_address): Remove.
319         (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
320         * hppa-tdep.c (hppa_smash_text_address): Remove.
321         (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
322         (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
323         Caller update.
324         * coffread.c (coff_symtab_read): Caller update.
325         * dbxread.c (process_one_symbol): Likewise.
326         * elfread.c (record_minimal_symbol): Likewise.
327         * somread.c (som_symtab_read): Likewise.
328
329 2012-11-20  Pierre Muller  <[email protected]>
330
331         ARI fixes: sprintf rule.
332         Replace sprintf function calls for char arrays by
333         calls to xsnprintf calls.
334         * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
335         (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
336         (arm_neon_quad_read, arm_pseudo_read): Ditto.
337         (arm_neon_quad_write, arm_pseudo_write): Ditto.
338         * breakpoint.c (condition_completer): Ditto.
339         (create_tracepoint_from_upload): Ditto.
340         * dwarf2read.c (file_full_name): Ditto.
341         * gcore.c (gcore_command): Ditto.
342         * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
343         * go32-nat.c (go32_sysinfo): Ditto.
344         * interps.c (interp_set): Ditto.
345         * m32c-tdep.c (make_types): Ditto.
346         * ppc-linux-nat.c (fetch_register, store_register): Ditto.
347         * remote-m32r-sdi.c (m32r_open): Ditto.
348         * sol-thread.c (td_err_string): Ditto.
349         (td_state_string, solaris_pid_to_str): Ditto.
350         * symtab.c (gdb_mangle_name): Ditto.
351         * cli/cli-script.c (execute_control_command): Ditto.
352         (define_command, document_command): Ditto.
353         * tui/tui-io.c (tui_rl_display_match_list): Ditto.
354         * tui/tui-stack.c (tui_make_status_line): Ditto.
355         * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
356
357 2012-11-20  Mike Frysinger  <[email protected]>
358
359         * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
360         it when looking at ptr->func.
361         * command.h (complete_on_cmdlist): Add a fourth arg.
362         * completer.c (complete_line_internal): Add local ignore_help_classes,
363         and set it to 1 when reason is not handle_help.  Pass this down to
364         lookup_cmd_1 and complete_on_cmdlist.
365
366 2012-11-20  Tom Tromey  <[email protected]>
367
368         * completer.c (count_struct_fields): Remove.
369         (expression_completer): Don't call count_struct_fields.
370
371 2012-11-20  Pedro Alves  <[email protected]>
372
373         * annotate.c (breakpoints_changed): Rename to ...
374         (annotate_breakpoints_changed): ... this.
375         (annotate_stopped, breakpoint_changed): Adjust caller.
376         * annotate.h (breakpoints_changed): Rename to ...
377         (annotate_breakpoints_changed): ... this.
378         * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
379         (do_map_commands_command, init_raw_breakpoint, clear_command)
380         (set_ignore_count, enable_breakpoint_disp): Adjust callers.
381
382 2012-11-20  David S. Miller  <[email protected]>
383
384         * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
385         (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
386         sysconf.
387         (get_cores_used_by_process): Update comment.
388
389 2012-11-20  Yao Qi  <[email protected]>
390
391         * objfiles.c (init_entry_point_info): Remove trailing spaces.
392
393 2012-11-20  Yao Qi  <[email protected]>
394
395         * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
396         to deprecated_context_hook.
397
398 2012-11-19  Yao Qi  <[email protected]>
399
400         * infrun.c (infwait_state): Add static.
401
402 2012-11-16  Keith Seitz  <[email protected]>
403
404         PR c++/13615
405         * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
406         parameter and pass it to lookup_symbol_file.
407         (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
408         to search base classes.
409         (cp_lookup_symbol_namespace): Likewise.
410         (lookup_namespace_scope): Likewise.
411         (lookup_symbol_file): Add SEARCH parameter.
412         If SEARCH is non-zero and no symbol is found, lookup the class
413         and call cp_lookup_nested_symbol.
414         (find_symbol_in_baseclass): New function.
415         (cp_lookup_nested_symbol): Do not let
416         cp_lookup_symbol_in_namespace search through base classes.
417         Do that later when there is no global symbol match.
418
419 2012-11-16  Doug Evans  <[email protected]>
420
421         * main.c (gdb_datadir_provided): New static global.
422         (get_init_files): If --data-directory is provided,
423         and SYSTEM_GDBINIT lives in data-directory, look for it there.
424         * NEWS: Mention it.
425
426 2012-11-15  Pierre Muller  <[email protected]>
427
428         ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
429         * gdb_stat.h: Delete. Moved to common directory.
430         * common/gdb_stat.h: New file.
431         * gdb_wait.h: Delete. Moved to common directory.
432         * common/gdb_wait.h: New file.
433         * Makefile.in (H_FILES_NO_SRC): Adapt to new header
434         location.
435         * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
436         location.
437         (stat.h rule): Adapt to new gdb_stat.h location.
438         * common/linux-osdata.c: Include "gdb_stat.h" header instead of
439         <sys/stat.h> header.
440         * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
441         <sys/wait.h> header.
442
443 2012-11-15  Pierre Muller  <[email protected]>
444
445         * configure.ac (AC_HEADER_STAT): Remove.
446         * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
447         and corresponding code.
448         * configure: Regenerate.
449         * config.in: Regenerate.
450
451 2012-11-15  Pierre Muller  <[email protected]>
452
453         ARI xasprintf rule fixes.
454         * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
455         instead of xasprintf.
456         (open_and_init_dwp_file): Ditto.
457
458 2012-11-14  Luis Machado  <[email protected]>
459
460         * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
461         target types.
462
463 2012-11-14  Tom Tromey  <[email protected]>
464
465         * configure, config.in: Rebuild.
466         * configure.ac: Don't check for ctype.h, time.h.
467         * expprint.c: Don't use HAVE_CTYPE_H.
468
469 2012-11-13  Tom Tromey  <[email protected]>
470
471         * gdbarch.h, gdbarch.c: Rebuild.
472         * gdbarch.sh (set_target_gdbarch): Rename from
473         deprecated_target_gdbarch_select_hack.
474         * arch-utils.c (gdbarch_update_p): Update.
475         (set_gdbarch_from_file): Update.
476
477 2012-11-14  Pierre Muller  <[email protected]>
478
479         * MAINTAINERS (Responsible Maintainers/misc): Add myself
480         as responsible of contrib/ari directory.
481
482 2012-11-14  Daniel Jacobowitz  <[email protected]>
483             Yao Qi  <[email protected]>
484
485         * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
486         bit of EXC_RETURN.
487         (arm_m_exception_cache, arm_m_exception_this_id)
488         (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
489         (arm_m_exception_unwind): New.
490         (arm_gdbarch_init): Register arm_m_exception_unwind.
491
492 2012-11-13  Giuseppe Montalto  <[email protected]>
493
494         * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
495         parameter COUNT, for pattern filling of memory regions.
496         * NEWS: Mention it.
497
498 2012-11-13 Markus Metzger <[email protected]>
499
500         * disasm.h (DISASSEMBLY_FILENAME): New macro.
501         * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
502         to print_source_lines ().
503         * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
504         flag.
505         * source.c (print_source_lines_base): Prefix source line with
506         filename if PRINT_SOURCE_LINES_FILENAME flag is set.
507
508 2012-11-13 Markus Metzger <[email protected]>
509
510         * symtab.h (print_source_lines_flags): New enum.
511         * source.c (print_source_lines_base): Change noerror to flags.
512         (print_source_lines): Change noerror to flags.
513
514 2012-11-13  Pierre Muller  <[email protected]>
515
516         ARI fixes: Avoid sprintf function use rule.
517         * charset.c (convert_between_encodings): Use xsnprintf.
518         * cli-out.c (cli_field_int): Likewise.
519         * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
520         * expprint.c (op_name_standard): Likewise.
521         * frv-tdep.c (set_variant_num_gprs): Likewise.
522         (set_variant_num_fprs): Likewise.
523         * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
524         * nto-tdep.c (nto_find_and_open_solib): Likewise.
525         (nto_init_solib_absolute_prefix): Likewise.
526         * source.c (init_source_path): Likewise.
527         (print_source_lines_base): Likewise.
528         * valprint.c (print_wchar): Likewise.
529         * mi/mi-out.c (mi_field_int): Likewise.
530         windows-nat.c (windows_pid_to_exec_file): Likewise.
531         (windows_create_inferior): Likewise.
532         (_initialize_check_for_gdb_ini): Likewise.
533
534 2012-11-12  Joel Brobecker  <[email protected]>
535
536         * frame.h (deprecated_frame_register_read): Renames
537         frame_register_read.
538         * frame.c (deprecated_frame_register_read): Renames
539         frame_register_read.  Update all callers.
540         * i386-tdep.c: Update all callers of frame_register_read.
541         * infcmd.c: Likewise.
542         * jit.c: Likewise.
543         * mips-tdep.c: Likewise.
544         * mt-tdep.c: Likewise.
545         * sh64-tdep.c: Likewise.
546
547 2012-11-12  Joel Brobecker  <[email protected]>
548
549         * frame.h (frame_register_read): Remove FIXME comment.
550         * frame.c (frame_register_read): Add suggestion explaining
551         which function to use in place of this one.
552
553 2012-11-12  Tom Tromey  <[email protected]>
554
555         * python/python.c (start_type_printers): Initialize 'result_obj'.
556
557 2012-11-12  Tom Tromey  <[email protected]>
558
559         * NEWS: Update.
560         * data-directory/Makefile.in (PYTHON_FILES): Add
561         type_printers.py.
562         * python/lib/gdb/command/type_printers.py: New file.
563         * python/lib/gdb/command/types.py (TypePrinter): New class.
564         (_get_some_type_recognizers, get_type_recognizers,
565         apply_type_recognizers, register_type_printer): New
566         functions.
567         * python/py-objfile.c (objfile_object) <type_printers>: New
568         field.
569         (objfpy_dealloc): Decref new field.
570         (objfpy_new): Set new field.
571         (objfpy_get_type_printers, objfpy_set_type_printers): New
572         functions.
573         (objfile_to_objfile_object): Set new field.
574         (objfile_getset): Add "type_printers".
575         * python/py-progspace.c (pspace_object) <type_printers>: New
576         field.
577         (pspy_dealloc): Decref new field.
578         (pspy_new): Set new field.
579         (pspy_get_type_printers, pspy_set_type_printers): New functions.
580         (pspace_to_pspace_object): Set new field.
581         (pspace_getset): Add "type_printers".
582         * python/python.c (start_type_printers, apply_type_printers,
583         free_type_printers): New functions.
584         (_initialize_python): Set gdb.type_printers.
585         * python/python.h (start_type_printers, apply_type_printers,
586         free_type_printers): Declare.
587         * typeprint.c (type_print_raw_options, default_ptype_flags):
588         Update for new fields.
589         (do_free_global_table, create_global_typedef_table,
590         find_global_typedef): New functions.
591         (find_typedef_in_hash): Use find_global_typedef.
592         (whatis_exp): Use create_global_typedef_table.  Change cleanup
593         handling.
594         * typeprint.h (struct type_print_options) <global_typedefs,
595         global_printers>: New fields.
596
597 2012-11-12  Tom Tromey  <[email protected]>
598
599         * c-typeprint.c (find_typedef_for_canonicalize,
600         print_name_maybe_canonical): New functions.
601         (c_print_type): Look up type name.
602         (cp_type_print_derivation_info): Add flags argument.  Use
603         print_name_maybe_canonical.
604         (cp_type_print_method_args): Add wrapping.
605         (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
606         (c_type_print_template_args): New function.
607         (c_type_print_base): Change wrapping.  Use
608         print_name_maybe_canonical.
609         <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
610         type name lookups.
611         * gdbtypes.c (types_equal): No longer static.
612         * gdbtypes.h (types_equal): Declare.
613         * typeprint.c (type_print_raw_options, default_ptype_flags):
614         Update.
615         (struct typedef_hash_table): New.
616         (hash_typedef_field, eq_typedef_field,
617         recursively_update_typedef_hash, add_template_parameters,
618         create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
619         make_cleanup_free_typedef_hash, copy_typedef_hash_element,
620         copy_typedef_hash, find_typedef_in_hash): New functions.
621         * typeprint.h (struct type_print_options) <local_typedefs>:
622         New field.
623         (recursively_update_typedef_hash, add_template_parameters,
624         create_typedef_hash, free_typedef_hash,
625         make_cleanup_free_typedef_hash, copy_typedef_hash,
626         find_typedef_in_hash): Declare.
627
628 2012-11-12  Tom Tromey  <[email protected]>
629
630         * cp-support.c (inspect_type,
631         replace_typedefs_qualified_name, replace_typedefs): Add
632         finder, data arguments.  Call as needed.
633         (cp_canonicalize_string_full): New function.
634         (cp_canonicalize_string_no_typedefs): Rewrite.
635         * cp-support.h (canonicalization_ftype): New typedef.
636         (cp_canonicalize_string_full): Declare.
637
638 2012-11-12  Tom Tromey  <[email protected]>
639
640         * NEWS: Update.
641         * c-typeprint.c (c_type_print_base): Handle print_method and
642         print_typedefs flags.
643         * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
644         * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
645         options.
646         * typeprint.c (type_print_raw_options, default_ptype_flags):
647         Update for new field.s
648         (whatis_exp): Parse flags.  Use LA_PRINT_TYPE.
649         (setprinttypelist, showprinttypelist, print_methods,
650         print_typedefs): New globals.
651         (set_print_type, show_print_type, set_print_type_methods,
652         show_print_type_methods, set_print_type_typedefs,
653         show_print_type_typedefs): New functions.
654         (_initialize_typeprint): Update documentation.  Add "print
655         type methods" and "print type typedefs" parameters.
656         * typeprint.h (struct type_print_options) <print_methods,
657         print_typedefs>: New fields.
658
659 2012-11-12  Tom Tromey  <[email protected]>
660
661         * c-typeprint.c (cp_type_print_method_args): Add flags
662         argument.  Call c_print_type, not type_print.
663         (c_type_print_base): Call c_print_type, not type_print.
664         Update.
665
666 2012-11-12  Tom Tromey  <[email protected]>
667
668         * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
669         to type-printing functions.
670         * ada-lang.h (ada_print_type): Add argument.
671         * ada-typeprint.c (print_array_type, print_variant_clauses,
672         print_variant_part, print_selected_record_field_types,
673         print_record_field_types, print_unchecked_union_type,
674         print_func_type, ada_print_type): Add flags argument.
675         (ada_print_typedef): Update.
676         * c-exp.y (OPERATOR conversion_type_id): Update.
677         * c-lang.h (c_print_type, c_type_print_base): Update.
678         * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
679         c_type_print_modifier, c_type_print_args,
680         c_type_print_varspec_suffix, c_type_print_base): Add flags
681         argument.
682         * cp-valprint.c (cp_print_class_member): Update.
683         * dwarf2read.c (dwarf2_compute_name): Update.
684         * f-lang.h (f_print_type): Add argument.
685         * f-typeprint.c (f_print_type): Add flags argument.
686         * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
687         * go-lang.h (go_print_type): Add argument.
688         * go-typeprint.c (go_print_type): Add flags argument.
689         * jv-lang.h (java_print_type): Add argument.
690         * jv-typeprint.c (java_type_print_base, java_print_type): Add
691         flags argument.
692         * language.c (unk_lang_print_type): Add flags argument.
693         * language.h (struct language_defn) <la_print_type>: Add flags
694         argument.
695         (LA_PRINT_TYPE): Likewise.
696         * m2-lang.h (m2_print_type): Add argument.
697         * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
698         m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
699         m2_unbounded_array, m2_record_fields): Add flags argument.
700         * p-lang.h (pascal_print_type, pascal_type_print_base,
701         pascal_type_print_varspec_prefix): Add argument.
702         * p-typeprint.c (pascal_print_type,
703         pascal_type_print_varspec_prefix, pascal_print_func_args,
704         pascal_type_print_varspec_suffix, pascal_type_print_base): Add
705         flags argument.
706         * symmisc.c (print_symbol): Update.
707         * typeprint.c (type_print_raw_options, default_ptype_flags):
708         New globals.
709         (type_print): Update.
710         * typeprint.h (struct type_print_options): New.
711         (type_print_raw_options): Declare.
712         (c_type_print_varspec_suffix, c_type_print_args): Add argument.
713
714 2012-11-10  Keith Seitz  <[email protected]>
715
716         * breakpoint.c (clear_command): Add cleanup for
717         sals.sals if an argument is given.
718
719         * linespec.c (parse_linespec): Do cleanups after
720         parsing a convenience variable.
721
722 2012-11-10  Keith Seitz  <[email protected]>
723
724         PR gdb/14288
725         * c-valprint.c (c_val_print): For character arrays
726         with "print null" option on, print ellipses if
727         the output is truncated and the next character is not \000.
728         * valprint.c (MAX_WCHARS): Define.
729         (WCHAR_BUFLEN): Likewise.
730         (WCHAR_BUFLEN_MAX): Likewise.
731         (struct converted_character): New structure.
732         (count_next_character): New function.
733         (print_converted_chars_to_obstack): New function.
734         (generic_printstr): Rewrite using count_next_character
735         and print_converted_chars_to_obstack.
736
737 2012-11-10  Stephane Carrez  <[email protected]>
738
739         * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
740         while executing the gdb command.
741         (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
742         are called from prompt_for_continue.
743         * tui/tui-io.c (tui_redisplay_readline): Likewise.
744
745 2012-11-10  Stephane Carrez  <[email protected]>
746
747         PR tui/9584
748
749         * tui/tui.c (tui_rl_command_key): Do not call execute_command
750         but insert the command to execute in readline's buffer.
751
752 2012-11-09  Tom Tromey  <[email protected]>
753
754         * gdbarch.sh (target_gdbarch): Remove macro.
755         (get_target_gdbarch): Rename to target_gdbarch.
756         * gdbarch.c, gdbarch.h: Rebuild.
757         * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
758         arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
759         darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
760         filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
761         ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
762         linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
763         mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
764         mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
765         nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
766         procfs.c, progspace.c, ravenscar-thread.c, record.c,
767         remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
768         rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
769         solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
770         solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
771         solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
772         spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
773         target-descriptions.c, target.c, target.h, tracepoint.c,
774         windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
775         common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
776         python/py-inferior.c, python/python.c: Update.
777
778 2012-11-09  Andrew Burgess  <[email protected]>
779
780         * source.c (print_source_lines_base): Add fullname field giving
781         full path to file in mi output.
782         * NEWS: Mention the new fullname field.
783
784 2012-11-09  Yao Qi  <[email protected]>
785
786         * NEWS: Mention the fix to the ambiguity of 'fo' command.
787
788 2012-11-09  Pedro Alves  <[email protected]>
789
790         PR gdb/14306
791
792         * infrun.c: Include target-descriptions.h.
793         (follow_exec): Fetch new target description.
794
795 2012-11-09  Yao Qi  <[email protected]>
796
797         * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
798         0x8d (lea).
799
800 2012-11-09  Yao Qi  <[email protected]>
801
802         * breakpoint.c: Declare set_tracepoint_count.
803         (install_breakpoint): Call set_tracepoint_count if B is a
804         tracepoint.
805         (trace_command): Don't call set_tracepoint_count.  Re-indent.
806         (strace_command, ftrace_command):
807         (create_tracepoint_from_upload): Likewise.
808
809 2012-11-09  Pedro Alves  <[email protected]>
810
811         * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
812         (get_target_gdbarch) <gdbarch.h>: New function.
813         (startup_gdbarch) <gdbarch.h>: Declare.
814         <gdbarch.c> (target_gdbarch): Delete.
815         <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
816         current inferior's gdbarch.
817         <gdbarch.c> (get_target_gdbarch): New function.
818         * inferior.c: Include target-descriptions.h.
819         (free_inferior): Free target description info.
820         (add_inferior_with_spaces): Set the inferior's initial
821         architecture.
822         (clone_inferior_command): Copy the original inferior's target
823         description if it was user specified.
824         (initialize_inferiors): Add comment.
825         * inferior.h (struct target_desc_info): Forward declare.
826         (struct inferior) <gdbarch>: New field.
827         * linux-nat.c: Include target-descriptions.h.
828         (linux_child_follow_fork): Copy the parent's architecture and
829         target description to the child.
830         * target-descriptions.c: Include inferior.h.
831         (struct target_desc_info): New structure, holding the equivalents
832         of ...
833         (target_desc_fetched, current_target_desc)
834         (target_description_filename): ... these removed globals.
835         (get_tdesc_info, target_desc_info_from_user_p)
836         (copy_inferior_target_desc_info, target_desc_info_free): New.
837         (target_desc_fetched, current_target_desc)
838         (target_description_filename): Reimplemented as convenience
839         macros.
840         (tdesc_filename_cmd_string): New global.
841         (set_tdesc_filename_cmd): Copy the string manipulated by the "set
842         tdescs filename ..." commands to the per-inferior equivalent.
843         (show_tdesc_filename_cmd): Get the value to show from the
844         per-inferior description filename.
845         (_initilize_target_descriptions): Change the "set/show tdesc
846         filename" commands' variable.
847         * target-descriptions.h (struct target_desc, struct target_desc_info)
848         (struct inferior): Forward declare.
849         (target_find_description, target_clear_description)
850         (target_current_description): Adjust comments.
851         (copy_inferior_target_desc_info, target_desc_info_free)
852         (target_desc_info_from_user_p). Declare.
853
854 2012-11-08  Stephane Carrez  <[email protected]>
855
856         * tui/tui-hooks.c (tui_about_to_proceed): New function.
857         (tui_target_wait_hook): Remove.
858         (tui_install_hooks): Install the about_to_proceed observer.
859         (tui_remove_hooks): And remove it here.
860
861 2012-11-08  Tom Tromey  <[email protected]>
862
863         * linux-tdep.c (linux_make_siginfo_note): New function.
864         (linux_make_corefile_notes): Use it.
865         * corelow.c (get_core_siginfo): New function.
866         (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
867
868 2012-11-08  Tom Tromey  <[email protected]>
869
870         PR gdb/14704:
871         * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
872         (zlib_decompress_section): Remove.
873         (gdb_bfd_map_section): Only check for compressed section
874         in mmap case.  Use bfd_get_full_section_contents.
875         * osabi.c (check_note): Add 'sectsize' argument.  Read
876         section data.
877         (generic_elf_osabi_sniff_abi_tag_sections): Don't read
878         section data.  Update for check_note change.
879         * xcoffread.c (xcoff_initial_scan): Use
880         bfd_get_full_section_contents.
881         * py-auto-load.c (auto_load_section_scripts): Use
882         bfd_get_full_section_contents.
883         * contrib/cc-with-tweaks.sh: Add -Z option.
884
885 2012-11-08  Tom Tromey  <[email protected]>
886
887         * python/py-bpevent.c: Include defs.h.
888         * python/py-continueevent.c: Include defs.h.
889         * python/py-event.c: Include defs.h.
890         * python/py-event.h: Don't include defs.h.
891         * python/py-events.h: Don't include defs.h.
892         * python/py-evts.c: Include defs.h.
893         * python/py-exitedevent.c: Include defs.h.
894         * python/py-newobjfileevent.c: Include defs.h.
895         * python/py-signalevent.c: Include defs.h.
896         * python/py-stopevent.c: Include defs.h.
897         * python/py-threadevent.c: Include defs.h.
898
899 2012-11-08  Pierre Muller  <[email protected]>
900
901         * update-web-ari.sh (print_heading): Add number of files
902         checked.
903         (nb_files): New variable counting the number of sources
904         files found by gdb_find.sh script.
905         (debug_awk): New variable to allow extra debug output.
906         (indexes): Add more information if DEBUG_AWK is set.
907
908 2012-11-08  Edjunior Machado  <[email protected]>
909
910         * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
911         ppc64_standard_linkage3): Mark ld r11 instructions as optional,
912         following the change in PLT call stubs on linker.
913
914 2012-11-08  Pierre Muller  <[email protected]>
915
916         * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
917         as default language.
918         (AWK): Use = instead of == for sh test to avoid warning.
919         (Linux rule): Correct [:digit] into [[:digit:]].
920         (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
921         (vasprintf rule): Adapt to common subdirectory moves.
922         (xasprintf rule): Idem.
923         (xvasprintf rule): Idem.
924         (var_boolean rule): Accept occurence in == or != test.
925
926         * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
927
928 2012-11-08  Stephane Carrez  <[email protected]>
929
930         * tui/tui-hooks.c (tui_inferior_exit): New function.
931         (tui_detach_hook): Remove.
932         (tui_install_hooks): Install the inferior exit observer.
933         (tui_remove_hooks): Remove it.
934
935 2012-11-08  Yao Qi  <[email protected]>
936
937         PR gdb/14777.
938         * source.c (_initialize_source): Call add_com_alias to abbreviate
939         'forward-search' as 'fo'.
940
941 2012-11-07  Pedro Alves  <[email protected]>
942
943         * arm-tdep.c: Make defs.h be the first include.
944         * coff-pe-read.c: Ditto.
945         * gnu-nat.c: Ditto.
946         * go32-nat.c: Ditto.
947         * i386-nat.c: Ditto.
948         * ppcnbsd-nat.c: Ditto.
949         * ada-varobj.h: Don't include defs.h.
950         * i386-darwin-tdep.h: Ditto.
951         * i386-nat.h: Ditto.
952
953 2012-11-07  Pedro Alves  <[email protected]>
954
955         * MAINTAINERS: New FSF-appointed maintainers replace the Steering
956         Committee.
957
958 2012-11-07  Pierre Muller  <[email protected]>
959
960         * common/linux-osdata.c (dirent.h): ARI fix: Remove.
961         File already uses "gdb_dirent.h" header.
962
963 2012-11-07  Yao Qi  <[email protected]>
964
965         * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
966         tracepoint_count'.
967
968 2012-11-06  Tom Tromey  <[email protected]>
969
970         * target.h (inferior_has_forked, inferior_has_vforked)
971         (inferior_has_execd, inferior_has_called_syscall): Remove
972         declarations.
973
974 2012-11-06  Pierre Muller  <[email protected]>
975
976         * remote.c (remote_insert_hw_breakpoint): ARI fix,
977         add missing internalization markup.
978
979 2012-11-06  Pedro Alves  <[email protected]>
980
981         PR gdb/14810
982
983         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
984
985 2012-11-06  Pierre Muller  <[email protected]>
986
987         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
988         is not executable.
989
990 2012-11-05  Joel Brobecker  <[email protected]>
991
992         * gnulib/update-gnulib.sh: New script.
993
994 2012-11-05  Stephane Carrez  <[email protected]>
995
996         * MAINTAINERS: Update my email address.
997
998 2012-11-05  Tom Tromey  <[email protected]>
999
1000         * frame.c (put_frame_register): Don't use temporary buffer.
1001
1002 2012-11-05  Pedro Alves  <[email protected]>
1003
1004         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1005         child.  Clear 'pending_detach'.
1006         * infrun.c (handle_vfork_child_exec_or_exit): Clear
1007         'pending_detach' in the vfork parent.
1008
1009 2012-11-05  Doug Evans  <[email protected]>
1010
1011         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
1012         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1013         * dwarf2read.c: #include "elf-bfd.h".
1014         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1015         (dwop_section_names): Renamed from dwo_section names.  All uses
1016         updated.  Add entries for .debug_cu_index, .debug_tu_index.
1017         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1018         All uses updated.
1019         (struct dwp_sections): New type.
1020         (struct virtual_dwo_sections): New type.
1021         (struct dwp_hash_table): New type.
1022         (struct dwp_file): New type.
1023         (init_cutu_and_read_dies): Ensure DWO info/types section has been
1024         read in.  Handle DWOs coming from DWP files.
1025         (lookup_dwo_file_slot): New function.
1026         (dwarf2_locate_dwo_sections): Move definition closer to use.
1027         (create_dwo_debug_info_hash_table_reader): Renamed from
1028         create_debug_info_hash_table_reader.  All callers updated.
1029         (create_dwo_debug_info_hash_table): Renamed from
1030         create_debug_info_hash_table.  All callers updated.
1031         (create_dwp_hash_table): New function.
1032         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1033         (lookup_dwo_in_dwp): New function.
1034         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
1035         is_dwp.  All callers updated.
1036         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
1037         (open_and_init_dwo_file): Renamed from init_dwo_file.
1038         All callers updated.
1039         (lookup_dwo_file): Delete.
1040         (dwarf2_locate_dwp_sections): New function.
1041         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1042         (allocate_dwp_loaded_cutus_table): New function.
1043         (open_and_init_dwp_file): New function.
1044         (lookup_dwo_cutu): New function.
1045         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1046
1047 2012-11-03  Yao Qi  <[email protected]>
1048
1049         Fix PR gdb/14617.
1050         * breakpoint.c (trace_pass_set_count): Call
1051         observer_notify_breakpoint_modified instead of
1052         observer_notify_tracepoint_modified.
1053         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1054
1055 2012-11-02  Tom Tromey  <[email protected]>
1056
1057         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1058         argument to complete_on_enum.
1059
1060 2012-11-02  Tom Tromey  <[email protected]>
1061
1062         * configure: Rebuild.
1063         * configure.ac (build_warnings): Add -Wempty-body.
1064         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1065         * remote.c (handle_notification): Use braces for empty 'else' body.
1066         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1067         'else' body.
1068         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1069         'else' body.
1070         * solib-som.c (som_relocate_section_addresses): Use braces
1071         for empty 'else' body.
1072         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1073         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1074
1075 2012-11-02  Pedro Alves  <[email protected]>
1076
1077         PR gdb/14766
1078
1079         * infrun.c (handle_inferior_event)
1080         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1081         null_ptid before handling a vfork child exec or exit.  Switch to
1082         the event ptid afterwards.
1083
1084 2012-11-02  Yao Qi  <[email protected]>
1085
1086         * std-operator.def: Remove OP_LABELED.
1087         * eval.c: Remove the declaration of 'get_label'.
1088         (get_label): Remove.
1089         (evaluate_struct_tuple): Remove code handling OP_LABELED.
1090         Update comment.
1091         Remove local variable 'variantno' and related code.
1092         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
1093         with 'fieldno'.
1094         * expprint.c (print_subexp_standard): Likewise.
1095         (dump_subexp_body_standard): Likewise.
1096         * parse.c (operator_length_standard): Likewise.
1097
1098 2012-11-01  Pierre Muller  <[email protected]>
1099
1100         Incorporate ARI web page generator into GDB sources.
1101         * contrib/ari/create-web-ari-in-src.sh: New file.
1102         * contrib/ari/gdb_ari.sh: New file.
1103         * contrib/ari/gdb_find.sh: New file.
1104         * contrib/ari/update-web-ari.sh: New file.
1105
1106 2012-10-31  Tom Tromey  <[email protected]>
1107
1108         * gdbarch.c: Rebuild.
1109         * gdbarch.sh: Remove references to gdbarch_swap.
1110         * corelow.c (core_open): Remove obsolete comment.
1111
1112 2012-10-31  Andrew Burgess  <[email protected]>
1113
1114         PR cli/14772
1115         * c-typeprint.c (c_print_type): Don't print a space for vector
1116         types, this is handled within the suffix.
1117         (c_type_print_varspec_suffix): Add a space to vector suffix.
1118
1119 2012-10-26  Pedro Alves  <[email protected]>
1120
1121         * amd64-tdep.c (amd64_relocate_instruction): Use
1122         store_unsigned_integer instead of memcpy.
1123         * i386-tdep.c (i386_relocate_instruction): Ditto.
1124
1125 2012-10-26  Pedro Alves  <[email protected]>
1126
1127         * infrun.c (handle_inferior_event): Merge handling of
1128         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1129         switch case.
1130
1131 2012-10-26  Pedro Alves  <[email protected]>
1132
1133         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1134         Remove comment.
1135
1136 2012-10-26  Pedro Alves  <[email protected]>
1137
1138         * target.c (target_waitstatus_to_string): Handle
1139         TARGET_WAITKIND_VFORK_DONE.
1140
1141 2012-10-26  Pedro Alves  <[email protected]>
1142
1143         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1144         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1145
1146 2012-10-24  Tristan Gingold  <[email protected]>
1147
1148         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1149         Add comments.
1150
1151 2012-10-24  Joel Brobecker  <[email protected]>
1152
1153         * ravenscar-thread.c (ravenscar_wait): Only update the list
1154         of threads and inferior_ptid if the inferior is still alive.
1155
1156 2012-10-24  Joel Brobecker  <[email protected]>
1157
1158         * ada-lang.c (is_known_support_routine): Use lbasename when
1159         matching the symtab's filename against
1160         known_runtime_file_name_patterns.
1161
1162 2012-10-24  Joel Brobecker  <[email protected]>
1163
1164         * ada-lang.c (ada_same_array_size_p): New function.
1165         (ada_promote_array_of_integrals): New function.
1166         (coerce_for_assign): Add handling of arrays where the elements
1167         are integrals of a smaller size than the size of the target
1168         array element type.
1169
1170 2012-10-24  Joel Brobecker  <[email protected]>
1171
1172         * doublest.c (convert_doublest_to_floatformat): Fix comparison
1173         against maximum exponent value.
1174
1175 2012-10-24  Joel Brobecker  <[email protected]>
1176
1177         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1178         "unwind-seh.c".
1179
1180 2012-10-24  Joel Brobecker  <[email protected]>
1181
1182         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1183         strip typedef layer when computing the fixed type's field type,
1184         only when computing its size.
1185
1186 2012-10-24  Mark Kettenis  <[email protected]>
1187
1188         PR gdb/12783
1189         * i386-tdep.c (i386_return_value): Handle complex double and long
1190         double.
1191
1192 2012-10-24  Joel Brobecker  <[email protected]>
1193
1194         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1195         New local variable args_len.
1196         Quote the name of the executable when computing the command line.
1197
1198 2012-10-23  Mark Kettenis  <[email protected]>
1199
1200         PR gdb/12796
1201         PR gdb/12798
1202         PR gdb/12800
1203         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1204         AMD64_FTAG_REGNUM.
1205         * amd64-tdep.c (amd64_classify): Classify complex types.
1206         (amd64_return_value): Handle the COMPLEX_X87 class.
1207
1208 2012-10-23  Joel Brobecker  <[email protected]>
1209
1210         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1211         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1212
1213 2012-10-23  Joel Brobecker  <[email protected]>
1214
1215         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1216         function.
1217         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1218         to amd64_windows_auto_wide_charset.
1219
1220 2012-10-23  Yao Qi  <[email protected]>
1221
1222         * event-top.c (mark_async_signal_handler_wrapper): Remove.
1223         * event-top.h: Remove its declaration.
1224         (async_request_quit): Call mark_async_signal_handler instead of
1225         mark_async_signal_handler_wrapper.
1226         (async_do_nothing, async_disconnect): Likewise.
1227         (async_stop_sig): Likewise.
1228         * remote.c (handle_remote_sigint): Likewise.
1229         (handle_remote_sigint_twice): Likewise.
1230
1231 2012-10-23  Yao Qi  <[email protected]>
1232
1233         * event-top.c (sigint_token, sighup_token): Replace 'void *'
1234         with 'static struct async_signal_handler *'.
1235         (sighup_token, sigquit_token, sigstp_token): Likewise.
1236
1237 2012-10-22  Ali Anwar  <[email protected]>
1238
1239         * gdbarch.sh (function_list): Use 'pstring' when printing
1240         a variable which could return NULL.
1241         * gdbarch.c: Regenerate.
1242
1243 2012-10-10  Joel Brobecker  <[email protected]>
1244             Tom Tromey  <[email protected]>
1245
1246         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1247         inneffective if condition by gdb assertion.  Add function
1248         description comment.
1249
1250 2012-10-19  Joel Brobecker  <[email protected]>
1251
1252         * parser-defs.h (struct exp_descriptor): Document constraint
1253         on return value for "op_name" callbacks.
1254
1255 2012-10-18  Tom Tromey  <[email protected]>
1256
1257         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1258         * symtab.c (iterate_over_some_symtabs): Constify.
1259         * source.h (symtab_to_fullname): Return 'const char *'.
1260         * source.c (symtab_to_fullname): Return 'const char *'.
1261         * python/py-symtab.c (stpy_fullname): Constify.
1262         * cli/cli-cmds.c (edit_command): Constify.
1263         * breakpoint.c (print_breakpoint_location)
1264         (update_static_tracepoint): Constify.
1265
1266 2012-10-18  Tom Tromey  <[email protected]>
1267
1268         * breakpoint.c (compare_breakpoints): Fix comparison.
1269
1270 2012-10-18  Tom Tromey  <[email protected]>
1271
1272         * valprint.c (generic_emit_char, generic_printstr): Pass size of
1273         gdb_wchar_t to convert_between_encodings.
1274
1275 2012-10-17  Yao Qi  <[email protected]>
1276
1277         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1278         more parameter 'inferior'.
1279         * corefile.c (write_memory_with_notification): Caller update.
1280
1281         * mi/mi-cmd-var.c: Include "mi-main.h".
1282         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1283         to 1 and restore it later.
1284         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1285         and "data-write-memory-bytes.
1286         * mi/mi-interp.c: Include objfiles.h.
1287         (mi_interpreter_init): Call observer_attach_memory_changed.
1288         (mi_memory_changed): New.
1289         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1290         New field.
1291
1292         * NEWS: Mention new MI notification "memory-changed".
1293
1294 2012-10-16  Jan Kratochvil  <[email protected]>
1295
1296         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1297
1298 2012-10-15  Doug Evans  <[email protected]>
1299
1300         New option -nh: inhibit loading of ~/.gdbinit.
1301         * NEWS: Mention -nh.
1302         * main.c (captured_main): Recognize and process -nh.
1303         (print_gdb_help): Mention -nh.
1304         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
1305
1306 2012-10-15  H.J. Lu  <[email protected]>
1307
1308         PR backtrace/14646
1309         PR gdb/14647
1310         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1311         pc_regnum_from_eax.
1312         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1313         nor pc_regnum_from_eax.
1314         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1315         nor pc_regnum_from_eax.
1316
1317 2012-10-15  Jan Kratochvil  <[email protected]>
1318
1319         Fix entry values resolving in inlined frames.
1320         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1321         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
1322         entries of FRAME.
1323
1324 2012-10-15  Joel Brobecker  <[email protected]>
1325
1326         * configure.ac: Build with -DMS_WIN64 if building with Python
1327         enabled using GCC on amd64-windows.
1328         * configure: Regenerate.
1329
1330 2012-10-15  Tom Tromey  <[email protected]>
1331
1332         PR python/14635:
1333         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1334         to Py_None.
1335
1336 2012-10-15  Tom Tromey  <[email protected]>
1337
1338         PR python/14634:
1339         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1340
1341 2012-10-11  Andrew Burgess  <[email protected]>
1342
1343         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1344         reset thread numbering back to 1.
1345
1346 2012-10-11  Doug Evans  <[email protected]>
1347
1348         PR breakpoints/14643.
1349         * linespec.c (struct ls_parser): New member keyword_ok.
1350         (linespec_lexer_lex_string): Add comment.
1351         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1352         for one.
1353         (parse_linespec): Set keyword_ok.
1354
1355 2012-10-10  Doug Evans  <[email protected]>
1356
1357         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1358         "0x" prefix on address in log message.
1359
1360         * dwarf2read.c (read_1_byte): Add const to buf parameter.
1361         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1362         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1363         (lookup_dwo_file): Add const to dwo_name parameter.
1364         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1365
1366 2012-10-06  Jan Kratochvil  <[email protected]>
1367
1368         Fix crash during stepping on ppc32.
1369         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1370         SYM.
1371
1372 2012-10-03  Doug Evans  <[email protected]>
1373
1374         PR symtab/14601
1375         * buildsym.c (buildsym_init): Reset using_directives to NULL.
1376
1377 2012-10-02  Andrew Burgess  <[email protected]>
1378
1379         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1380         output and use uint32_t not long to ensure 4 byte size.
1381
1382 2012-10-02  Joel Brobecker  <[email protected]>
1383
1384         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1385         unref'ed it.
1386
1387 2012-10-01  Andrew Burgess  <[email protected]>
1388
1389         * target.c (simple_search_memory): Include access length in
1390         warning message.
1391
1392 2012-09-28  Nathan Miller  <[email protected]>
1393             Edjunior Machado  <[email protected]>
1394
1395         PR gdb/13989
1396         * solib.c (solib_find): Prevent GDB from loading native libraries when
1397         debugging a cross-target corefile.
1398
1399 2012-09-28  selven  <[email protected]>
1400
1401         Make definition match declaration.
1402
1403         * regcache.c (regcache_register_status): Change return type to
1404         enum register_status.
1405
1406 2012-09-28  Yao Qi  <[email protected]>
1407
1408         * mi/mi-main.c (mi_cmd_data_write_memory): Call
1409         write_memory_with_notification instead of write_memory.
1410         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1411         instead of target_write_memory.
1412
1413 2012-09-28  Yao Qi  <[email protected]>
1414
1415         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1416         when the length of content is not an even number.
1417
1418 2012-09-27  Tom Tromey  <[email protected]>
1419
1420         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1421         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1422
1423 2012-09-27  Joel Brobecker  <[email protected]>
1424
1425         * sol-thread.c (sol_thread_fetch_registers)
1426         (sol_thread_store_registers): Delete commented out code.
1427
1428 2012-09-27  Joel Brobecker  <[email protected]>
1429
1430         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1431         Move these functions to sparc-sol-thread.c.
1432         * sparc-sol-thread.c: New file.
1433         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1434         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1435         configurations.
1436         * configure: Regenerate.
1437
1438 2012-09-27  Joel Brobecker  <[email protected]>
1439
1440         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1441         Remove commented-out code.
1442
1443 2012-09-27  Joel Brobecker  <[email protected]>
1444
1445         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1446         Enable this code for sparc hosts only.
1447
1448 2012-09-27  Joel Brobecker  <[email protected]>
1449
1450         * procfs.h (procfs_find_LDT_entry): Add declaration.
1451         * sol-thread.c (ps_lgetLDT): Delete local declaration of
1452         function procfs_find_LDT_entry.
1453
1454 2012-09-27  Joel Brobecker  <[email protected]>
1455
1456         * procfs.c (proc_get_LDT_entry): Make static.
1457
1458 2012-09-27  Joel Brobecker  <[email protected]>
1459
1460         * procfs.c (proc_find_memory_regions): Fix declaration.
1461
1462 2012-09-27  Siddhesh Poyarekar  <[email protected]>
1463
1464         * amd64-tdep.c (amd64_return_value): Revert previous change
1465         that used TYPE_LENGTH directly.
1466         * bfin-tdep.c (bfin_extract_return_value): Likewise.
1467         (bfin_store_return_value): Likewise.
1468         * cris-tdep.c (cris_store_return_value): Likewise.
1469         (cris_extract_return_value): Likewise.
1470         * h8300-tdep.c (h8300_extract_return_value): Likewise.
1471         * hppa-tdep.c (hppa64_return_value): Likewise.
1472         * lm32-tdep.c (lm32_store_return_value): Likewise.
1473         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1474         * spu-tdep.c (spu_value_from_register): Likewise.
1475         * vax-tdep.c (vax_return_value): Likewise.
1476
1477 2012-09-27  Siddhesh Poyarekar  <[email protected]>
1478
1479         * gdbtypes.c (lookup_array_range_type): Expand parameters
1480         LOW_BOUND and HIGH_BOUND to LONGEST.
1481         (lookup_string_range_type): Likewise.
1482         * gdbtypes.h (lookup_array_range_type): Likewise.
1483         (lookup_string_range_type): Likewise.
1484         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1485         Expand HIGHBOUND to ssize_t.
1486         (value_string): Likewise.
1487         * value.h (value_cstring): Expand parameter LEN to ssize_t.
1488         (value_string): Likewise.
1489
1490 2012-09-27  Yao Qi  <[email protected]>
1491
1492         PR breakpoints/13898
1493         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1494         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1495         per breakpoint type.
1496
1497 2012-09-26  Pierre Muller  <[email protected]>
1498
1499         * procfs.c: Add gdb_bfd header.
1500         * rs6000-nat.c: Likewise.
1501         * solib-pa64.c: Likewise.
1502         * spu-linux-nat.c: Likewise.
1503         * windows-nat.c: Likewise.
1504
1505 2012-09-26  Tom Tromey  <[email protected]>
1506
1507         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1508
1509 2012-09-26  Tom Tromey  <[email protected]>
1510
1511         * dwarf2read.c (mark_common_block_symbol_computed): New function.
1512         (read_common_block): Handle child DIEs with
1513         DW_AT_data_member_location.
1514         (new_symbol_full): Add special case for common blocks.
1515
1516 2012-09-26  Jan Kratochvil  <[email protected]>
1517             Tom Tromey  <[email protected]>
1518
1519         * dwarf2read.c (read_common_block): Rewrite.
1520         (new_symbol_full): Handle DW_TAG_common_block.
1521         * f-lang.c (head_common_list, find_common_for_function):
1522         Remove.
1523         * f-lang.h (struct common_entry, struct saved_f77_common,
1524         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1525         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1526         BLANK_COMMON_NAME_LOCAL): Remove.
1527         (struct common_block): New.
1528         * f-valprint.c (list_all_visible_commons): Remove.
1529         (info_common_command_for_block): New function.
1530         (info_common_command): Use it.
1531         * stack.c (iterate_over_block_locals): Special case for
1532         COMMON_BLOCK_DOMAIN.
1533         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1534         constant.
1535         (struct general_symbol_info) <value.common_block>: New field.
1536         (SYMBOL_VALUE_COMMON_BLOCK): New define.
1537
1538 2012-09-26  Jan Kratochvil  <[email protected]>
1539             Tom Tromey  <[email protected]>
1540
1541         * f-lang.c (allocate_saved_bf_node,
1542         allocate_saved_function_node, allocate_saved_f77_common_node,
1543         allocate_common_entry_node, tail_common_list, current_common,
1544         saved_bf_list, saved_bf_list_end, current_head_bf_list,
1545         tmp_bf_ptr, add_common_block, add_common_entry,
1546         find_first_common_named, patch_common_entries,
1547         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1548         global_remote_debug, get_bf_for_fcn, saved_function_list,
1549         saved_function_list_end, clear_function_list, struct saved_fcn,
1550         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1551         SAVED_BF, SAVED_BF_PTR): Remove.
1552         * f-lang.h (tail_common_list, current_common,
1553         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1554         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1555         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1556         real_main_c_value): Remove.
1557         * f-valprint.c (there_is_a_visible_common_named): Remove.
1558
1559 2012-09-26  Andrew Burgess  <[email protected]>
1560
1561         * breakpoint.c (update_global_location_list): Ignore previous
1562         duplicate status of a breakpoint when starting a new scan for
1563         duplicate breakpoints.
1564
1565 2012-09-26  Karthik Bhat  <[email protected]>
1566         PR breakpoints/14419
1567         * arm-tdep.c (arm_skip_prologue): Extending producer check to
1568         support LLVM compiler.
1569
1570 2012-09-26  Siddhesh Poyarekar  <[email protected]>
1571
1572         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1573         * bfin-tdep.c (bfin_extract_return_value): Likewise.
1574         (bfin_store_return_value): Likewise.
1575         * cris-tdep.c (cris_store_return_value): Likewise.
1576         (cris_extract_return_value): Likewise.
1577         * h8300-tdep.c (h8300_extract_return_value): Likewise.
1578         * hppa-tdep.c (hppa64_return_value): Likewise.
1579         * lm32-tdep.c (lm32_store_return_value): Likewise.
1580         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1581         * spu-tdep.c (spu_value_from_register): Likewise.
1582         * vax-tdep.c (vax_return_value): Likewise.
1583
1584 2012-09-26  Siddhesh Poyarekar  <[email protected]>
1585
1586         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1587         parameter LEN to ssize_t.
1588
1589 2012-09-25  Siddhesh Poyarekar  <[email protected]>
1590
1591         * ada-valprint.c (ada_val_print_1): Eliminate single-use
1592         variable LEN.
1593         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1594         directly.
1595         (alpha_store_return_value): Likewise.
1596         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1597         (amd64_push_arguments): Likewise.
1598         * ax-gdb.c (gen_trace_static_fields): Likewise.
1599         (gen_traced_pop): Likewise.
1600         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1601         * breakpoint.c (update_watchpoint): Likewise.
1602         * findcmd.c (parse_find_args): Use local variable for type
1603         instead of length.
1604         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1605         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1606         (h8300_store_return_value): Likewise.
1607         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1608         Use i386_darwin_arg_type_alignment directly.
1609         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1610         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1611         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1612         (m68hc11_extract_return_value): Likewise.
1613         * mep-tdep.c (mep_push_dummy_call): Likewise.
1614         * printcmd.c (float_type_from_length): Likewise.
1615         * s390-tdep.c (s390_value_from_register): Likewise.
1616         * stack.c (read_frame_arg): Likewise.
1617         * tracepoint.c (encode_actions_1): Likewise.
1618         * valops.c (value_fetch_lazy): Use local variable for type
1619         instead of length.  Use TYPE_LENGTH directly.
1620         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1621
1622 2012-09-25  Joel Brobecker  <[email protected]>
1623
1624         * symtab.c (skip_prologue_sal): Fix typo in comment.
1625
1626 2012-09-25  Joel Brobecker  <[email protected]>
1627
1628         * linespec.c (create_sals_line_offset): Fix typo in comment.
1629
1630 2012-09-25  Siddhesh Poyarekar  <[email protected]>
1631
1632         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1633         use plongest to print the array size.
1634
1635 2012-09-24  Siddhesh Poyarekar  <[email protected]>
1636
1637         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1638         * p-valprint.c (pascal_type_print_base): Likewise.
1639
1640 2012-09-22  Yao Qi  <[email protected]>
1641
1642         * remote.c (remote_get_trace_status): Remove setting default
1643         values of fields of 'ts'.
1644
1645 2012-09-21  Jan Kratochvil  <[email protected]>
1646
1647         Fix internal error on canonicalization of clang types.
1648         * cp-name-parser.y (operator): New comment at make_operator call for
1649         new, delete, new[] and delete[].
1650         (exp): Use "sizeof ".  Add new comment at make_operator call.
1651
1652 2012-09-21  Jan Kratochvil  <[email protected]>
1653
1654         Fix disassemble without parameters in tailcall frame.
1655         * cli/cli-cmds.c (disassemble_current_function): Use
1656         get_frame_address_in_block.
1657
1658 2012-09-21  Tom Tromey  <[email protected]>
1659
1660         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1661         TYPE_CODE_UNION>: Unify, removing a goto.
1662
1663 2012-09-21  Tom Tromey  <[email protected]>
1664
1665         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1666
1667 2012-09-21  Andrew Burgess  <[email protected]>
1668
1669         * findvar.c (read_frame_register_value): Mark the result value as
1670         optimized out if any of the input registers have been optimized out.
1671
1672 2012-09-21  Andreas Schwab  <[email protected]>
1673
1674         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1675
1676 2012-09-21  Siddhesh Poyarekar  <[email protected]>
1677
1678         * eval.c (evaluate_subexp_standard): Eliminate single-use
1679         variable LOWER.
1680
1681 2012-09-21  Yao Qi  <[email protected]>
1682
1683         * mi/mi-interp.c: Declare mi_record_changed.
1684         (mi_interpreter_init): Call observer_attach_record_changed.
1685         (mi_record_changed): New.
1686         * record.c (record_open): Call observer_notify_record_changed.
1687         (cmd_record_stop): Call observer_notify_record_changed.
1688         * NEWS: Mention it.
1689
1690 2012-09-20  Tom Tromey  <[email protected]>
1691
1692         * NEWS: Update.
1693         * python/python.c (finalize_python): New function.
1694         (_initialize_python): Make a final cleanup.
1695
1696 2012-09-19  Doug Evans  <[email protected]>
1697
1698         * buildsym.h (param_symbols): Delete, unused.
1699         (context_stack): Delete member "params", unused.
1700         * buildsym.c (push_context): Update.
1701         * dwarf2read.c (read_func_scope): Update.
1702
1703 2012-09-19  Thomas Schwinge  <[email protected]>
1704
1705         * sh-tdep.c (sh_register_convert_to_virtual)
1706         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
1707         all callers.  Just do a memcpy if not the little-endian case.
1708
1709         * h8300-tdep.c (h8300_gdbarch_init): Invoke
1710         set_gdbarch_double_format and set_gdbarch_long_double_format.
1711         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1712         set_gdbarch_double_format.
1713         * sh-tdep.c (sh_gdbarch_init): Likewise.
1714
1715         * NEWS: Document the removal of SH's 'regs' command.
1716         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1717         command.
1718
1719 2012-09-18  Sergio Durigan Junior  <[email protected]>
1720
1721         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1722         `jump'.
1723
1724 2012-09-18  Joel Brobecker  <[email protected]>
1725
1726         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1727         language when iterating over symbols.
1728
1729 2012-09-18  Yao Qi  <[email protected]>
1730
1731         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1732         (mi_interpreter_init): Call observer_attach_tsv_created and
1733         observer_attach_tsv_deleted.
1734         (mi_tsv_created, mi_tsv_deleted): New.
1735         * tracepoint.c (delete_trace_state_variable): Call
1736         observer_notify_tsv_deleted.
1737         (trace_variable_command): Call observer_notify_tsv_created.
1738         (delete_trace_variable_command): Call
1739         observer_notify_tsv_deleted.
1740         (create_tsv_from_upload): Call observer_notify_tsv_created.
1741         * NEWS: Mention it.
1742
1743 2012-09-18  Yao Qi  <[email protected]>
1744
1745         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1746         if traceframe changed.
1747         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1748         "trace-find".
1749         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1750         (mi_interpreter_init): Hook mi_traceframe_changed to observer
1751         'traceframe_changed'.
1752         (mi_traceframe_changed): New.
1753         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1754         New field.
1755         * NEWS: Mention the new MI notification.
1756
1757 2012-09-17  Mike Wrighton  <[email protected]>
1758
1759         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1760
1761 2012-09-17  Jan Kratochvil  <[email protected]>
1762
1763         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1764         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
1765         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1766         Extend code also for PaX support.  Convert all gdb_assert to warning
1767         calls.
1768
1769 2012-09-17  Jan Kratochvil  <[email protected]>
1770
1771         Implement auto-load user conveniences suggested by Doug Evans.
1772         * auto-load.c: Include top.h.
1773         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
1774         (_initialize_auto_load): New variable scripts_directory_help.  Mention
1775         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1776         scripts-directory.  Document in online help one can use also files for
1777         set auto-load safe-path.
1778         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1779         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1780
1781 2012-09-17  Siddhesh Poyarekar  <[email protected]>
1782
1783         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1784         of LEN.
1785
1786 2012-09-17  Siddhesh Poyarekar  <[email protected]>
1787
1788         * m2-valprint.c (m2_print_array_contents): Eliminate variable
1789         ELTLEN and use TYPE_LENGTH directly.
1790         (m2_val_print): Likewise.
1791         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1792         variable LEN and use TYPE_LENGTH directly.
1793         (m68k_svr4_store_return_value): Likewise.
1794         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1795         ARGLEN and use TYPE_LENGTH directly.
1796         (mips_o64_push_dummy_call): Likewise.
1797         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1798         variable LENGTH and use TYPE_LENGTH directly.
1799         (s390_function_arg_float): Likewise.
1800         (s390_function_arg_integer): Likewise.
1801         (s390_push_dummy_call): Likewise.
1802         (s390_return_value_convention): Likewise.
1803         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1804         TYPE_LENGTH directly.
1805
1806 2012-09-17  Yao Qi  <[email protected]>
1807
1808         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1809         Update comment to add_setshow_integer_cmd.
1810         * cli/cli-setshow.c (do_set_command): Handle case
1811         'var_zuinteger_unlimited'.
1812         (do_show_command): Likewise.
1813         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1814         for command 'remotetimeout'.
1815         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
1816         to var_integer.
1817         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1818         for command 'set listsize'.
1819
1820 2012-09-17  Siddhesh Poyarekar  <[email protected]>
1821
1822         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1823         variable LEN.
1824
1825 2012-09-17  Jan Kratochvil  <[email protected]>
1826
1827         PR 14119
1828         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1829         (frame_pop): Drop also TAILCALL_FRAME frames.
1830         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1831
1832 2012-09-17  Jan Kratochvil  <[email protected]>
1833             Pedro Alves  <[email protected]>
1834
1835         PR 14548
1836         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1837         function start if we are already at function start.  Both for
1838         reverse-next and for reverse-step into function without line number
1839         info.
1840
1841 2012-09-17  Jan Kratochvil  <[email protected]>
1842
1843         Code cleanup - rename 'inline' depth to 'artificial' depth.
1844         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1845         frame_id_artificial_p, extend the comment.
1846         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1847         * frame.c (fprint_frame_id): Rename at a user, change debug output
1848         text to "artificial=".
1849         (skip_inlined_frames): Rename to ...
1850         (skip_artificial_frames): ... here.  Extend the comment.
1851         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1852         (frame_id_inlined_p): Rename to ...
1853         (frame_id_artificial_p): ... here.  Rename at a user.
1854         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1855         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1856         at a user.
1857         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1858         Extend the comment.
1859         (frame_id_inlined_p): Rename to ...
1860         (frame_id_artificial_p): ... here.
1861         * inline-frame.c (inline_frame_this_id): Rename at a user.
1862
1863 2012-09-14  Andrew Burgess  <[email protected]>
1864
1865         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1866         vector variables using vector_size syntax rather than array
1867         syntax.
1868
1869 2012-09-14  Siddhesh Poyarekar  <[email protected]>
1870
1871         * valarith.c (value_concat): Replace unsafe ALLOCA with
1872         XMALLOC/XFREE.
1873
1874 2012-09-14  Pedro Alves  <[email protected]>
1875
1876         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1877
1878 2012-09-14  Khoo Yit Phang  <[email protected]>
1879
1880         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1881         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1882         data-directory as appropriate.
1883
1884 2012-09-14  Siddhesh Poyarekar  <[email protected]>
1885
1886         * printcmd.c (ui_printf): Eliminate single-use variable
1887         PARAM_LEN.
1888
1889 2012-09-14  Yao Qi  <[email protected]>
1890             Pedro Alves  <[email protected]>
1891
1892         * valops.c (value_assign): Move observer_notify_target_changed
1893         below to replace reinit_frame_cache.
1894
1895 2012-09-13  Khoo Yit Phang  <[email protected]>
1896
1897         Refactor Python "gdb" module into a proper Python package, by
1898         introducing a new "_gdb" module for code implemented in C, and
1899         using reload/__import__ instead of exec.
1900         * python/lib/gdb/__init__.py: Import * from _gdb.
1901         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1902         prompt_hook, sys.argv): Moved from finish_python_initialization.
1903         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1904         (packages, auto_load_packages): New list and function replacing
1905         module_dict and auto-loading code, using __file__ instead of
1906         gdb.PYTHONDIR and reload/__import__ instead of exec.
1907         (GdbSetPythonDirectory): Replacing function of the same name
1908         from finish_python_initialization, using reload/__import__ instead
1909         of exec, as well as call auto_load_packages.
1910         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1911         gdb_python_module and not gdb_module.
1912         * python/python-internal.h (gdb_python_module): Declare.
1913         * python/python.c (gdb_python_module): New global.
1914         (before_prompt_hook): Check gdb_python_module and not gdb_module.
1915         (_initialize_python): Rename gdb module to _gdb.
1916         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1917         (finish_python_initialization): Move Python code to
1918         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1919         __main__.
1920
1921 2012-09-13  Pedro Alves  <[email protected]>
1922
1923         * Makefile.in (COMMON_OBS): Add registry.o.
1924         * registry.c: New file.
1925         * registry.h (struct registry_container): Declare.
1926         (registry_data_callback): New typedef.
1927         (struct registry_data, struct registry_data_registration, struct
1928         registry_data_registry): New type.
1929         (register_data_with_cleanup, registry_alloc_data)
1930         (registry_callback_adaptor, registry_clear_data)
1931         (registry_container_free_data, registry_set_data, registry_data):
1932         Declare.
1933         (DEFINE_REGISTRY): Refactor structures and functions as shims over
1934         the new common structures and functions.
1935         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
1936         callback typedefs.
1937
1938 2012-09-12  Mike Wrighton  <[email protected]>
1939
1940         * remote.c (remote_insert_hw_breakpoint): Throw exception if
1941         there is an error inserting hardware breakpoints and use the
1942         error message from the target.
1943
1944         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1945         Catch this exception and print the error message contained within. Do not
1946         print the default hardware error breakpoint message in this case.
1947
1948 2012-09-12  Doug Evans  <[email protected]>
1949
1950         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1951         cu == NULL.
1952
1953 2012-09-11  Doug Evans  <[email protected]>
1954
1955         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1956         .gdb_index symbol attributes if there are none.
1957
1958 2012-09-11  Joel Brobecker  <[email protected]>
1959
1960         * symtab.h (struct minimal_symbol) [has_size]: New field.
1961         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1962         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1963         * printcmd.c (build_address_symbolic): Only filter out zero-sized
1964         minimal symbols if the symbol's size is actually known.
1965         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1966         of msymbol's size field.  Add comment.
1967         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1968         SET_MSYMBOL_SIZE to set the minimal symbol size.
1969
1970 2012-09-11  Joel Brobecker  <[email protected]>
1971
1972         * minsyms.c (install_minimal_symbols): Use memset to fill entire
1973         minimal_symbol struct object, rather than setting some of its
1974         fields one by one.
1975
1976 2012-09-11  Andrew Burgess  <[email protected]>
1977
1978         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1979         passed_a_ptr flag when displaying typedef types.
1980
1981 2012-09-10  Joel Brobecker  <[email protected]>
1982
1983         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1984         the optimized_out flag is preserved.
1985
1986 2012-09-10  Anthony Green  <[email protected]>
1987
1988         * moxie-tdep.c (moxie_analyze_prologue): Update for function
1989         prologue changes in GCC.
1990
1991 2012-09-10  Keith Seitz  <[email protected]>
1992
1993         PR gdb/13483
1994         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1995         (BOOL_CONVERSION_BADNESS): ... this.
1996         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1997         (rank_one_type): Allow all boolean conversions
1998         permitted by the standard.
1999
2000 2012-09-06  Tom Tromey  <[email protected]>
2001
2002         * python/py-newobjfileevent.c (create_new_objfile_event_object):
2003         Don't decref py_objfile.
2004
2005 2012-09-02  Khoo Yit Phang  <[email protected]>
2006
2007         Do not enable -lmcheck by default when Python is enabled with
2008         threading support.
2009         * configure.ac: (python_has_threads) New variable, by testing
2010         if WITH_THREAD is defined in Python.h.
2011         Move --enable-lmcheck after --with-python.
2012         Do not enable -lmcheck by default if python_has_threads=yes.
2013         Warn if --enable-lmcheck and python_has_threads=yes.
2014         * configure: Regenerate.
2015
2016 2012-08-31  Yao Qi  <[email protected]>
2017
2018         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2019         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2020         Update some commands.
2021         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2022         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2023         to 1.
2024
2025 2012-08-31  Yao Qi  <[email protected]>
2026
2027         * mi/mi-cmds.c (mi_cmds): Add 'static'.
2028
2029 2012-08-30  Khoo Yit Phang  <[email protected]>
2030
2031         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2032
2033 2012-08-29  Doug Evans  <[email protected]>
2034
2035         * main.c (print_gdb_help): Remove reference to
2036         --use-deprecated-index-sections.
2037
2038 2012-08-28  Yao Qi  <[email protected]>
2039
2040         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2041         (init_cmds): Call add_setshow_uinteger_cmd for command
2042         'max-user-call-depth'.
2043         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2044         declaration of 'max_user_call_depth'.
2045         * frame.c (backtrace_limit): Add 'unsigned'.
2046         (_initialize_frame): Call add_setshow_uinteger_cmd for command
2047         'limit'.
2048         * remote.c (remoteaddresssize): Add 'unsigned'.
2049         (remote_address_masked): Change local var 'address_size' to
2050         'unsigned'.
2051         (_initialize_remote): Call add_setshow_uinteger_cmd for
2052         'remoteaddresssize'.
2053         * top.c (history_size): Add 'unsigned'.
2054         (show_commands): Change local variables to 'unsigned'.
2055         (set_history_size_command): Don't check history_size is negative.
2056         Adjust the condition to call unstifle_history and set history_size
2057         to UNIT_MAX.
2058
2059 2012-08-28  Pedro Alves  <[email protected]>
2060
2061         PR gdb/14428
2062
2063         * infcmd.c (default_print_one_register_info): New, factored out
2064         from default_print_registers_info.
2065         (default_print_registers_info): Use it.  Mark value unavailable if
2066         necessary.
2067         (registers_info): Print user registers with
2068         default_print_one_register_info.
2069
2070 2010-08-27  H.J. Lu  <[email protected]>
2071
2072         PR tui/14486
2073         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2074         is not NULL before referencing it.
2075
2076 2012-08-27  Jan Kratochvil  <[email protected]>
2077
2078         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2079         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
2080         original PC for it.
2081
2082 2012-08-27  Eli Zaretskii  <[email protected]>
2083             Jan Kratochvil  <[email protected]>
2084
2085         * auto-load.c (auto_load_objfile_script): Rename to ...
2086         (auto_load_objfile_script_1): ... here, change variable realname to
2087         parameter realname, document it, add return value, add variable retval.
2088         (auto_load_objfile_script): New function.
2089
2090 2012-08-27  Jan Kratochvil  <[email protected]>
2091
2092         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2093         followed by a whitespace.
2094
2095 2012-08-27  Jan Kratochvil  <[email protected]>
2096
2097         PR gdb/14494.
2098         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2099         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2100         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2101         here.
2102
2103 2012-08-27  Wei-cheng Wang  <[email protected]>
2104
2105         * memattr.c (create_mem_region): Fix memory region overlapping
2106         checking.
2107
2108 2012-08-24  Siddhesh Poyarekar  <[email protected]>
2109
2110         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2111         with xmalloc/cleanup.
2112         * mt-tdep.c (mt_push_dummy_call): Likewise.
2113         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2114         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2115
2116 2012-08-24  Yao Qi  <[email protected]>
2117
2118         * jv-exp.y (push_expression_name): Add "." at the end of error
2119         message.
2120
2121 2012-08-23  Khoo Yit Phang <[email protected]>
2122
2123         Document how to return from "python-interactive" to GDB.
2124         * python/python.c (_initialize_python): Update documentation.
2125
2126 2012-08-23  Pedro Alves  <[email protected]>
2127
2128         * infrun.c (_initialize_infrun) <handle command help text>:
2129         Mention that multiple signals are supported.
2130
2131 2012-08-23  Pedro Alves  <[email protected]>
2132
2133         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2134         string.
2135
2136 2012-08-23  Yao Qi  <[email protected]>
2137
2138         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2139         (tfind_1): Don't call registers_changed, set_traceframe_num,
2140         and clear_traceframe_info.
2141         Call set_current_traceframe.
2142         (set_current_traceframe): call set_traceframe_num.
2143
2144 2012-08-22  Sergio Durigan Junior  <[email protected]>
2145
2146         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2147         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2148
2149 2012-08-22  Khoo Yit Phang <[email protected]>
2150
2151         Enable readline in Python in a GDB-specific way and block the
2152         standard Python readline module to prevent conflicts with GDB.
2153         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2154         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2155         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2156         * python/py-gdb-readline.c: New file.
2157         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2158         prototype.
2159         * python/python.c (_initialize_python): Call
2160         gdbpy_initialize_gdb_readline.
2161
2162 2012-08-22  Keith Seitz  <[email protected]>
2163
2164         * defs.h: Include build-gnulib/config.h
2165
2166 2012-08-22  Joseph Myers  <[email protected]>
2167
2168         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2169         and blx pc.
2170
2171 2012-08-22  Khoo Yit Phang <[email protected]>
2172
2173         Add a new "python-interactive" command that starts a standard
2174         Python interactive prompt with "pi" as alias, and add "py" as
2175         an alias to "python".
2176         * NEWS: Mention the new commands.
2177         * python/python.c (eval_python_command): New function.
2178         (python_interactive_command): For "python-interactive" with
2179         arguments, call eval_python_command.  For "python-interactive"
2180         without arguments, call PyRun_InteractiveLoop.
2181         (_initialize_python): Add "python-interactive" command with
2182         "pi" as alias, and add "py" as an alias to "python".
2183
2184 2012-08-22  Tom Tromey  <[email protected]>
2185
2186         * defs.h (quit_flag): Don't declare.
2187         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2188         (QUIT): Use new functions.
2189         * event-top.c (command_handler): Use clear_quit_flag.
2190         (handle_sigint): Use set_quit_flag.
2191         (async_request_quit): Use check_quit_flag.  Don't check
2192         immediate_quit.
2193         * exceptions.c (throw_exception): Use clear_quit_flag.
2194         * main.c (captured_main): Use clear_quit_flag.
2195         * python/python.c (clear_quit_flag, set_quit_flag)
2196         (check_quit_flag): New functions.
2197         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2198         clear_quit_flag.
2199         * remote.c (remote_wait_as): Use check_quit_flag,
2200         clear_quit_flag.
2201         (remote_start_remote): Call QUIT.
2202         * symfile.c (load_progress): Use check_quit_flag.
2203         * top.c (command_loop): Use clear_quit_flag.
2204         (command_line_input): Call QUIT.
2205         * utils.c (quit_flag): Conditionally define.
2206         (clear_quit_flag, check_quit_flag, set_quit_flag): New
2207         functions.
2208         (prompt_for_continue): Call QUIT.  Use quit, not
2209         async_request_quit.
2210         * remote-mips.c (mips_expect_timeout): Call QUIT.
2211         * monitor.c (monitor_expect): Call QUIT.
2212
2213 2012-08-22  Tom Tromey  <[email protected]>
2214
2215         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2216         (async_init_signals): Update.
2217         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2218         (SIGWINCH_HANDLER_BODY): Remove.
2219
2220 2012-08-22  Tom Tromey  <[email protected]>
2221
2222         * jit.c (jit_object_close_impl): Don't malloc the objfile
2223         name.
2224         * objfiles.c (allocate_objfile): Don't malloc the objfile
2225         name.
2226         (free_objfile): Don't free the objfile name.
2227         * objfiles.h (struct objfile) <name>: Update comment.
2228         * symfile.c (reread_symbols): Fix reference counting.  Don't
2229         malloc objfile name.
2230
2231 2012-08-22  Tom Tromey  <[email protected]>
2232
2233         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2234         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2235         (symfile_bfd_open): Likewise.
2236         (generic_load): Likewise.
2237         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2238         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2239         gdb_bfd_open.
2240         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2241         Use gdb_bfd_open.
2242         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2243         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2244         (pmon_load_fast): Likewise.
2245         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2246         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2247         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2248         (macho_check_dsym): Likewise.
2249         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2250         (m32r_upload_command): Likewise.
2251         * gdb_bfd.h (gdb_bfd_cache): Declare.
2252         * gdb_bfd.c (struct gdb_bfd_data): New.
2253         (gdb_bfd_cache): New global.
2254         (struct gdb_bfd_cache_search): New.
2255         (hash_bfd): New function.
2256         (eq_bfd): Likewise.
2257         (gdb_bfd_open): Likewise.
2258         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2259         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
2260         gdb_bfd_data.
2261         * exec.c (exec_file_attach): Use gdb_bfd_open.
2262         * dsrec.c (load_srec): Use gdb_bfd_open.
2263
2264 2012-08-22  Tom Tromey  <[email protected]>
2265
2266         * dwarf2read.c (macro_start_file): Update.
2267         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2268         (free_objfile_per_bfd_storage): Destroy macro_cache.
2269         (allocate_objfile, free_objfile): Update.
2270         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2271         New field.
2272         (struct objfile) <macro_cache>: Remove.
2273         * symfile.c (reread_symbols): Update.
2274         * symmisc.c (print_symbol_bcache_statistics): Update.
2275         (print_objfile_statistics): Update.
2276
2277 2012-08-22  Tom Tromey  <[email protected]>
2278
2279         * elfread.c (elf_symtab_read): Update.
2280         * objfiles.c (objfiles_bfd_data): New global.
2281         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2282         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2283         (allocate_objfile, free_objfile): Update.
2284         (_initialize_objfiles): Initialize objfiles_bfd_data.
2285         * objfiles.h (struct objfile_per_bfd_storage): New.
2286         (struct objfile) <per_bfd>: New field.
2287         <filename_cache>: Remove.
2288         (set_objfile_per_bfd): Declare.
2289         * symfile.c (reread_symbols): Update.  Call
2290         set_objfile_per_bfd.
2291         (allocate_symtab): Update.
2292         * symmisc.c (print_symbol_bcache_statistics): Update.
2293         (print_objfile_statistics): Print the size of the BFD obstack.
2294
2295 2012-08-22  Tom Tromey  <[email protected]>
2296
2297         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
2298         * gdb_bfd.c: Use DEFINE_REGISTRY.
2299         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2300         (gdb_bfd_ref): Call bfd_alloc_data.
2301         (gdb_bfd_unref): Call bfd_free_data.
2302
2303 2012-08-22  Tom Tromey  <[email protected]>
2304
2305         * registry.h (struct registry_fields): New.
2306         (REGISTRY_FIELDS): Redefine.
2307         (REGISTRY_ACCESS_FIELD): New macro.
2308         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
2309         functions.
2310
2311 2012-08-22  Tom Tromey  <[email protected]>
2312
2313         * auto-load.c (_initialize_auto_load): Update.
2314         * solib-svr4.c (_initialize_svr4_solib): Update
2315         * solib-dsbt.c (_initialize_dsbt_solib): Update.
2316         * solib-darwin.c (_initialize_darwin_solib): Update.
2317         * registry.h: New file.
2318         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2319         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2320         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
2321         (register_program_space_data_with_cleanup)
2322         (register_program_space_data, program_space_alloc_data)
2323         (clear_program_space_data, set_program_space_data)
2324         (program_space_data): Don't declare.
2325         * progspace.c: Use DEFINE_REGISTRY.
2326         (struct program_space_data, struct
2327         program_space_data_registration, struct
2328         program_space_data_registry, program_space_data_registry)
2329         (register_program_space_data_with_cleanup)
2330         (register_program_space_data, program_space_alloc_data)
2331         (program_space_free_data, clear_program_space_data)
2332         (set_program_space_data, program_space_data): Remove.
2333         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
2334         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2335         (register_objfile_data_with_cleanup, register_objfile_data)
2336         (clear_objfile_data, set_objfile_data, objfile_data): Don't
2337         declare.
2338         * objfiles.c: Use DEFINE_REGISTRY.
2339         (struct objfile_data, struct objfile_data_registration, struct
2340         objfile_data_registry, objfile_data_registry)
2341         (register_objfile_data_with_cleanup, register_objfile_data)
2342         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2343         (set_objfile_data, objfile_data): Remove.
2344         (_initialize_objfiles): Update.
2345         * jit.c (_initialize_jit): Update.
2346         * inflow.c (_initialize_inflow): Update.
2347         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
2348         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2349         (register_inferior_data_with_cleanup, register_inferior_data)
2350         (clear_inferior_data, set_inferior_data, inferior_data): Don't
2351         declare.
2352         * inferior.c: Use DEFINE_REGISTRY.
2353         (struct inferior_data, struct inferior_data_registration, struct
2354         inferior_data_registry, inferior_data_registry)
2355         (register_inferior_data_with_cleanup, register_inferior_data)
2356         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
2357         (set_inferior_data, inferior_data): Remove.
2358         * auxv.c (_initialize_auxv): Update.
2359         * ada-lang.c (_initialize_ada_language): Update.
2360         * breakpoint.c (_initialize_breakpoint): Update.
2361         * i386-nat.c (i386_use_watchpoints): Update.
2362
2363 2012-08-22  Tom Tromey  <[email protected]>
2364
2365         * exec.c (exec_close, exec_file_attach): Update.
2366         (add_to_section_table): Initialize 'key' field.
2367         (add_target_sections, remove_target_sections): Add 'key' argument.
2368         * exec.h (add_target_sections, remove_target_sections): Add
2369         'key' argument.
2370         * solib.c (solib_map_sections, update_solib_list, clear_solib)
2371         (reload_shared_libraries_1): Update.
2372         * target.h (struct target_section) <key>: New field.
2373
2374 2012-08-22  Tom Tromey  <[email protected]>
2375
2376         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2377
2378 2012-08-21  Pierre Muller  <[email protected]>
2379
2380         * symfile.c (allocate_symtab): Use host_address_to_string
2381         function instead of cast of pointer to long which is not
2382         compatible with x86_64-w64-mingw32 build.
2383
2384 2012-08-19  Andrew Pinski  <[email protected]>
2385
2386         * mips-tdep.c (is_octeon): New function.
2387         (is_octeon_bbit_op): New function.
2388         (mips32_next_pc): Handle Octeon's bbit instructions.
2389         (mips32_instruction_has_delay_slot): Likewise.
2390
2391 2012-08-19  Andrew Pinski  <[email protected]>
2392
2393         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2394         before the function.
2395
2396 2012-08-19  Andrew Pinski  <[email protected]>
2397
2398         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2399
2400 2012-08-19  Keith Seitz  <[email protected]>
2401
2402         PR c++/14365
2403         * c-typeprint.c (c_type_print_varspec_prefix): Pass
2404         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2405
2406 2012-08-18  Eli Zaretskii  <[email protected]>
2407
2408         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2409         The typo broke "make TAGS".
2410
2411 2012-08-17  Joel Brobecker  <[email protected]>
2412
2413         GDB 7.5 released.
2414
2415 2012-08-17  Keith Seitz  <[email protected]>
2416
2417         PR c++/13356
2418         * gdbtypes.c (strict_type_checking): New variable.
2419         (show_strict_type_checking): New function.
2420         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2421         if strict type checking is disabled.
2422         (_initialize_gdbtypes): Add "check type" subcommand.
2423         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2424
2425 2012-08-17  Keith Seitz  <[email protected]>
2426
2427         * language.h (type_mode): Remove.
2428         (type_check): Remove.
2429         (struct language_defn): Remove la_type_check.
2430         (STRICT_TYPE): Remove unused macro.
2431         (type_error): Remove.
2432         * language.c (set_type_range_case): Renamed to ...
2433         (set_range_case): ... this.  Update all callers.
2434         Remove type_mode/type_check.
2435         (type_mode): Remove.
2436         (type_check): Remove.
2437         (show_type_command): Remove.
2438         (set_type_command): Remove.
2439         (language_info): Remove type checking output.
2440         (type_error): Remove unused function.
2441         (range_error): Update comment.
2442         (unknown_language_defn): Remove la_type_check.
2443         (auto_language_defn): Likewise.
2444         (local_language_defn): Likewise.
2445         (_initialize_language): Remove "check type" subcommand.
2446         * ada-lang.c (ada_language_defn): Remove la_type_check.
2447         * c-lang.c (c_language_defn): Likewise.
2448         (cplus_language_defn): Likewise.
2449         (asm_language_defn): Likewise.
2450         (minimal_language_defn): Likewise.
2451         * d-lang.c (d_language_defn): Likewise.
2452         * f-lang.c (f_language_defn): Likewise.
2453         * go-lang.c (go_language_defn): Likewise.
2454         * jv-lang.c (java_language_defn): Likewise.
2455         * m2-lang.c (m2_language_defn): Likewise.
2456         * objc-lang.c (objc_language_defn): Likewise.
2457         * opencl-lang.c (opencl_language_defn): Likewise.
2458         * p-lang.c (pascal_language_defn): Likewise.
2459
2460 2012-08-16  Mike Frysinger  <[email protected]>
2461
2462         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2463
2464 2012-08-16  Joel Brobecker  <[email protected]>
2465
2466         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2467         New function.
2468         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2469         using the regache.  Use ia64_hpux_get_register_from_save_state_t
2470         to access the bsp and bspstore registers if not.
2471
2472 2012-08-16  Joel Brobecker  <[email protected]>
2473
2474         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2475         * breakpoint.c (detach_breakpoints): Change pid parameter into
2476         a ptid.  Adjust code accordingly.
2477         * infrun.c (handle_inferior_event): Delete variable child_pid.
2478         Update call to detach_breakpoints to pass the child ptid for
2479         fork events.
2480         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2481         assert that inferior_ptid's lwp is zero.
2482         (linux_handle_extended_wait): Update call to detach_breakpoints.
2483         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2484         detach_breakpoints.
2485
2486 2012-08-16  Joel Brobecker  <[email protected]>
2487
2488         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2489         parent, only call detach_breakpoints if tts.tts_event ==
2490         TTEVT_VFORK.
2491
2492 2012-08-16  Joel Brobecker  <[email protected]>
2493
2494         * dwarf2-frame.c (dwarf2_frame_cache): Use
2495         get_frame_address_in_block instead of get_frame_pc as
2496         the bound for executing the frame's FDE.
2497
2498 2012-08-16  Yao Qi  <[email protected]>
2499
2500         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2501         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2502         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2503         (c_type_print_varspec_suffix): Likewise.
2504         * eval.c (evaluate_subexp_standard): Likewise.
2505         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2506         (f_type_print_varspec_suffix): Likewise.
2507         * gdbtypes.c (is_scalar_type): Likewise.
2508         (recursive_dump_type): Likewise.
2509         * infcall.c (value_arg_coerce): Likewise.
2510         * m2-valprint.c (m2_val_print): Likewise.
2511         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2512         (pascal_type_print_varspec_suffix): Likewise.
2513         (pascal_type_print_base): Likewise.
2514         * p-valprint.c (pascal_val_print): Likewise.
2515         (pascal_val_print): Likewise.
2516         * valops.c (value_slice): Likewise.
2517         * valprint.c (scalar_type_p): Likewise.
2518         * valarith.c (value_bitstring_subscript): Remove.
2519         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2520         Remove comment on TYPE_CODE_BITSTRING.
2521
2522         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2523         TYPE_CODE_BITSTRING.
2524
2525         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2526         slot 0.
2527
2528 2012-08-16  Yao Qi  <[email protected]>
2529
2530         * tracepoint.c (trace_find_none_command): Remove.
2531         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2532
2533 2012-08-16  Yao Qi  <[email protected]>
2534
2535         * remote.c (handle_notification): Remove parameter 'length'.
2536         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2537
2538 2012-08-15  Keith Seitz  <[email protected]>
2539
2540         * gdbtypes.c (opaque_type_resolution): Make static.
2541         Add missing comment.
2542         (overload_debug): Add missing comment.
2543         (show_opaque_type_resolution): Likewise.
2544         (show_overload_debug): Likewise.
2545         (print_bit_vector): Remove unnecessary forward declaration.
2546         (print_arg_types): Likewise.
2547         (dump_fn_fieldlists): Likewise.
2548         (print_cplus_stuff): Likewise.
2549
2550 2012-08-15  Tom Tromey  <[email protected]>
2551
2552         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2553         (gdb_bfd_ref): Initialize new field.
2554         (gdb_bfd_unref): Unref the archive BFD.
2555         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2556         parent archive.
2557
2558 2012-08-15  Tom Tromey  <[email protected]>
2559
2560         PR python/14387:
2561         * python/py-bpevent.c (create_breakpoint_event_object): Update
2562         comment.
2563         * python/py-event.c (evpy_add_attribute): Update comment.
2564         * python/py-exitedevent.c (create_exited_event_object): Fix
2565         reference counting and error handling.
2566         * python/py-newobjfileevent.c (create_new_objfile_event_object):
2567         Fix reference counting.
2568         * python/py-signalevent.c (create_signal_event_object): Fix
2569         reference counting and error handling.
2570         * python/py-stopevent.c (emit_stop_event): Fix reference
2571         counting.
2572         * python/py-threadevent.c (get_event_thread): Return a
2573         borrowed reference.
2574         * python/py-type.c (convert_field): Fix reference counting.
2575
2576 2012-08-15  Tom Tromey  <[email protected]>
2577
2578         * dwarf2read.c (dwarf_decode_macro_bytes)
2579         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2580         as hash key.
2581
2582 2012-08-14  Mike Frysinger  <[email protected]>
2583
2584         * infcmd.c (_initialize_infcmd): Update help text for the signal,
2585         stepi, nexti, finish, next, step, jump, and continue commands.
2586         * infrun.c (_initialize_infrun): Update help text for the handle
2587         command.
2588
2589 2012-08-14  Doug Evans  <[email protected]>
2590
2591         * gdbtypes.c (struct extra): Delete, unused.
2592
2593         * gdbtypes.c: Whitespace cleanup.
2594         (address_space_name_to_int): Remove "extern" from definition.
2595         (_initialize_gdbtypes): Declare with initialize_file_ftype.
2596
2597         * gdbtypes.c (make_pointer_type): Remove redundant setting of
2598         TYPE_POINTER_TYPE (type).
2599
2600 2012-08-14  Gary Benson  <[email protected]>
2601
2602         * solib-svr4.c (svr4_free_library_list): Use free_so.
2603
2604 2012-08-13  Mike Frysinger  <[email protected]>
2605
2606         * .gitignore: Add go-exp.c.
2607
2608 2012-08-13  Doug Evans  <[email protected]>
2609
2610         * value.c (show_convenience): Tweak comment.
2611         (_initialize_values): Mention convenience functions in the help text
2612         for "show convenience".
2613
2614 2012-08-13  Yao Qi  <[email protected]>
2615
2616         * std-operator.def: Remove TERNOP_SLICE_COUNT.
2617         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2618         TERNOP_SLICE_COUNT.
2619         * eval.c (evaluate_subexp_standard): Likewise.
2620         * expprint.c (print_subexp_standard): Likewise.
2621         (dump_subexp_body_standard): Likewise.
2622         * parse.c (operator_length_standard): Likewise.
2623
2624 2012-08-13  Yao Qi  <[email protected]>
2625
2626         * std-operator.def: Remove OP_BITSTRING.
2627         * breakpoint.c (watchpoint_exp_is_const): Update.
2628         * eval.c (evaluate_subexp_standard): Remove handling to
2629         OP_BITSTRING.
2630         * expprint.c (print_subexp_standard): Likewise.
2631         (dump_subexp_body_standard): Likewise.
2632         * parse.c (operator_length_standard): Likewise.
2633         * valops.c (value_bitstring): Remove.
2634         * value.h: Remove the declaration of 'value_bitstring'.
2635
2636 2012-08-10  Sergio Durigan Junior  <[email protected]>
2637
2638         * linespec.c (find_methods): Remove unused variables `i1' and
2639         `name_len'.
2640         (decode_line_full): Likewise for `arg_start'.
2641
2642 2012-08-10  Sergio Durigan Junior  <[email protected]>
2643
2644         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2645         (zlib_decompress_section): Likewise for `section_data'.
2646         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2647
2648 2012-08-10  Doug Evans  <[email protected]>
2649
2650         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2651         * NEWS: Document them.
2652         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2653         function/strfns.py.
2654         * python/py-type.c (typy_array_1): New function.
2655         (typy_array): Call it.
2656         (typy_vector): New function.
2657         (type_object_methods): Add "vector".
2658         * python/lib/gdb/function/__init__.py: New file.
2659         * python/lib/gdb/function/strfns.py: New file.
2660
2661 2012-08-10  Siddhesh Poyarekar  <[email protected]>
2662
2663         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2664         for TYPE_FIELD_BITPOS.
2665         (typy_get_sizeof): Likewise for TYPE_LENGTH.
2666
2667 2012-08-10  Mike Frysinger  <[email protected]>
2668
2669         PR cli/10436:
2670         * common/vec.h (VEC_merge): Define.
2671         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2672         (DEF_VEC_ALLOC_FUNC_P): Likewise.
2673         (DEF_VEC_ALLOC_FUNC_O): Likewise.
2674         * completer.c: Include gdb_signals.h.
2675         (signal_completer): Define.
2676         * completer.h (signal_completer): Add prototype.
2677         * infcmd.c (_initialize_infcmd): Assign the command
2678         completer for "signal" to handle_completer.
2679         * infrun.c: Include completer.h.
2680         (handle_completer): Define.
2681         (_initialize_infrun): Declare a new local variable c.  Store the
2682         result of add_com("handle") to it.  Assign the command
2683         completer for "handle" to handle_completer.
2684
2685 2012-08-09  Yao Qi  <[email protected]>
2686
2687         * cli/cli-decode.c (set_cmd_prefix): New.
2688         (lookup_cmd_for_prefixlist): New.
2689         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2690         of each cmd_list_element in *prefixlist.
2691         (add_setshow_cmd_full): set_cmd_prefix.
2692         (add_alias_cmd): Likewise.
2693         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2694         Declare 'auto_boolean_enums'.
2695         * cli/cli-setshow.c: Include "observer.h".
2696         (notify_command_param_changed_p): New.
2697         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2698         Remove 'static'.
2699         (do_setshow_command): Split it to ...
2700         (do_set_command, do_show_command): ... them.  New.
2701         (do_set_command): Call observer_notify_command_param_changed if
2702         notify_command_param_changed_p returns true.
2703         (cmd_show_list): Caller update.
2704         * auto-load.c (set_auto_load_cmd): Likewise.
2705         * remote.c (show_remote_cmd): Likewise.
2706         * cli/cli-setshow.h: Update declarations.
2707         * top.c (execute_command): Call do_set_command and do_show_command.
2708
2709         * NEWS: Mention new MI notification.
2710         * mi/mi-interp.c: Declare mi_command_param_changed.
2711         (mi_interpreter_init): Attach mi_command_param_changed to
2712         observer command_param_changed.
2713         (mi_command_param_changed): New.
2714         Remove mi_suppress_breakpoint_notifications.
2715         Define global variable mi_suppress_notification.
2716         (mi_breakpoint_created): Update.
2717         (mi_breakpoint_deleted): Likewise.
2718         (mi_breakpoint_modified): Likewise.
2719         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
2720         'gdb-set' and set mi_suppress_notification.
2721         * mi/mi-main.h: (mi_suppress_notification): New struct.
2722
2723 2012-08-09  Andreas Tobler  <[email protected]>
2724             Jan Kratochvil  <[email protected]>
2725
2726         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2727
2728 2012-08-09  Yao Qi  <[email protected]>
2729
2730         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2731         (skiplist): Move it to skip.c.
2732         (init_cmd_lists): Remove code setting enablebreaklist and
2733         skiplist to NULL.
2734         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2735         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2736         skiplist.
2737         * gdbcmd.h: Likewise.
2738         * skip.c (_initialize_step_skip): Move 'skiplist' from
2739         cli/cli-cmds.c.
2740
2741 2012-08-09  Yao Qi  <[email protected]>
2742
2743         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2744         * gnu-nat.c, symfile.c: Likewise.
2745
2746 2012-08-08  Aaron Gamble  <[email protected]>
2747
2748         * utils.c (prompt_for_continue_wait_time): New static global.
2749         (make_command_stats_cleanup): Initialize it.
2750         (report_command_stats): Subtract time waiting for user.
2751         (prompt_for_continue): Track time waiting for user.
2752         (defaulted_query): Track time waiting for user.
2753
2754 2012-08-08  Doug Evans  <[email protected]>
2755
2756         * eval.c (evaluate_subexp_standard): Fix thinko in handling
2757         UNOP_MEMVAL_TYPE.
2758         * expprint.c (print_subexp_standard, case OP_TYPE): New.
2759         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2760         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2761         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2762         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2763         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2764         elt.
2765         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2766         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2767         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2768         (dump_prefix_expression): Handle OP_TYPE.
2769
2770 2012-08-08  Keith Seitz  <[email protected]>
2771
2772         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2773         addr_start.
2774
2775 2012-08-08  Doug Evans  <[email protected]>
2776
2777         * linux-thread-db.c: #include "gdb_vecs.h".
2778         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
2779         updated.
2780         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
2781         (thread_db_load_search): Use a vector to iterate over path elements.
2782         Handle text appearing after "$pdir".
2783
2784         * gdb_string.h: Moved to ...
2785         * common/gdb_string.h: ... here.
2786         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2787         gdb_string.h and gdb_assert.h.
2788
2789 2012-08-08  Yao Qi  <[email protected]>
2790
2791         * tic6x-tdep.c (tic6x_register_to_value): Remove.
2792         (tic6x_value_to_register): Likewise.
2793         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2794         and set_gdbarch_value_to_register.
2795
2796 2012-08-07  Jan Kratochvil  <[email protected]>
2797             Jean-Marc Saffroy  <[email protected]>
2798
2799         PR 11804
2800         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
2801         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2802         * gcore.c (gcore_create_callback): New function comment.  Add modified
2803         parameter.  Only write modified regions.  Set SEC_READONLY exactly
2804         according to MODIFIED.
2805         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
2806         the passed modified value to FUNC.
2807         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2808         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2809         first.  New variables modified and has_anonymous.  Parse the lines of
2810         smaps file.  Add the passed MODIFIED value to FUNC.
2811         * procfs.c (find_memory_regions_callback): Add the passed modified
2812         value.
2813
2814 2012-08-06  Tom Tromey  <[email protected]>
2815
2816         * dwarf2-frame.c (clear_pointer_cleanup): New function.
2817         (dwarf2_frame_cache): Use it.
2818         * frame-unwind.h (frame_sniffer_ftype): Document prologue
2819         cache initialization constraint.
2820
2821 2012-08-06  Tom Tromey  <[email protected]>
2822
2823         PR python/14386:
2824         * varobj.c (update_dynamic_varobj_children): Don't call
2825         PyIter_Check.
2826
2827 2012-08-06  Tom Tromey  <[email protected]>
2828
2829         PR cli/14392:
2830         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2831
2832 2012-08-06  Nathaniel Flath  <[email protected]>
2833
2834         * NEWS: New entry for 'cd' default parameters.
2835         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2836
2837 2012-08-03  Tom Tromey  <[email protected]>
2838
2839         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2840         return.
2841
2842 2012-08-02  Ulrich Weigand  <[email protected]>
2843
2844         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2845         to attempting lseek/write.
2846         (inf_child_fileio_pread): Likewise for pread.
2847
2848 2012-08-02  Yao Qi  <[email protected]>
2849
2850         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2851         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2852         add_setshow_zinteger_cmd.
2853         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2854         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2855         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2856         instead of add_setshow_zinteger_cmd.
2857         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2858         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2859         instead of add_setshow_zinteger_cmd.
2860         * frame.c (frame_debug): Add 'unsigned'.
2861         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2862         add_setshow_zinteger_cmd.
2863         * frame.h: Update the declaration of 'frame_debug'.
2864         * gdbtypes.c (overload_debug): Add 'unsigned'.
2865         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2866         add_setshow_zinteger_cmd.
2867         * inferior.h: Update declaration of 'debug_infrun'.
2868         * infrun.c (debug_infrun): Add 'unsigned'.
2869         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2870         add_setshow_zinteger_cmd.
2871         * jit.c (jit_debug): Add 'unsigned'.
2872         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2873         add_setshow_zinteger_cmd.
2874         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2875         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2876         instead of add_setshow_zinteger_cmd.
2877         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2878         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2879         add_setshow_zinteger_cmd.
2880         * machoread.c (mach_o_debug_level): Add 'unsigned'.
2881         (_initialize_machoread): Call add_setshow_zuinteger_cmd
2882         instead of add_setshow_zinteger_cmd.
2883         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2884         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2885         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2886         intead of add_setshow_zinteger_cmd.
2887         * mips-tdep.c (mips_debug): Add 'unsigned'.
2888         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2889         instead of add_setshow_zinteger_cmd.
2890         * monitor.c (monitor_debug): Add 'unsigned'.
2891         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2892         add_setshow_zinteger_cmd.
2893         * observer.c (observer_debug): Add 'unsigned'.
2894         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2895         add_setshow_zinteger_cmd.
2896         * parse.c (expressiondebug): Add 'unsigned'.
2897         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2898         add_setshow_zinteger_cmd.
2899         * record.c (record_debug): Add 'unsigned'.
2900         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2901         add_setshow_zinteger_cmd.
2902         * record.h: Update the declaration of 'record_debug'.
2903         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2904         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2905         add_setshow_zinteger_cmd.
2906         * serial.c (global_serial_debug_p): Add 'unsigned'.
2907         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2908         add_setshow_zinteger_cmd.
2909         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2910         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2911         add_setshow_zinteger_cmd.
2912         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2913         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2914         add_setshow_zinteger_cmd.
2915         * target.c (targetdebug): Add 'unsigned'.
2916         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2917         add_setshow_zinteger_cmd.
2918         * valops.c (overload_debug): Add 'unsigned'.
2919         * varobj.c (varobjdebug): Add 'unsigned'.
2920         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2921         add_setshow_zinteger_cmd.
2922         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2923         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2924         instead of add_setshow_zinteger_cmd.
2925
2926         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2927         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2928         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2929         instead of add_setshow_zinteger_cmd.
2930         * gdbarch.c, gdbarch.h: Re-generated.
2931
2932 2012-08-02  Yao Qi  <[email protected]>
2933
2934         * nto-tdep.c: Don't include cli/cli-decode.h and
2935         cli/cli-cmds.h.
2936         (_initialize_nto_tdep): Remove.
2937         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2938         Remove field.
2939         Remove macro nto_internal_debugging.
2940
2941 2012-08-01  Richard Henderson  <[email protected]>
2942
2943         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2944         (mep-*-*) [gdb_target_obs]: Likewise.
2945
2946 2012-07-31  Andreas Schwab  <[email protected]>
2947
2948         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2949         linux_get_siginfo_type.
2950
2951 2012-07-31  Jan Kratochvil  <[email protected]>
2952
2953         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2954         AT_ENTRY_POINT.
2955         (call_function_by_hand) <ON_STACK>: Call write_memory with
2956         gdbarch_breakpoint_from_pc, if possible.
2957         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2958         here.
2959
2960 2012-07-31  Yao Qi  <[email protected]>
2961
2962         * tracepoint.c: Add 'static' for some variables.
2963
2964 2012-07-31  Yao Qi  <[email protected]>
2965
2966         * go32-nat.c: Declare _initialize_go32_nat.
2967         * ser-go32.c: Declare _initialize_ser_dos.
2968         * top.c (do_chdir_cleanup): Add 'static'.
2969
2970 2012-07-30  Keith Seitz  <[email protected]>
2971
2972         * linespec.c (linespec_lex_number): A number followed
2973         by quotes is a valid number, too.
2974
2975 2012-07-30  Tom Tromey  <[email protected]>
2976
2977         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2978
2979 2012-07-30  Ulrich Weigand  <[email protected]>
2980
2981         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2982         attempt to 4-byte-align HW breakpoint addresses for Thumb.
2983
2984 2012-07-30  Andrew Burgess  <[email protected]>
2985
2986         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2987         invalid or reevaluated to prevent prevent references to possibly
2988         delete'd type objects being left in the varobj.
2989
2990 2012-07-27  Tom Tromey  <[email protected]>
2991             Jan Kratochvil  <[email protected]>
2992
2993         * copying.awk: Print buffer-read-only and vi ro markers.
2994         * copying.c: Rebuild.
2995         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2996         * gdbarch.c, gdbarch.h: Rebuild.
2997         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2998         buffer-read-only and vi ro markers.
2999         * features/arm-with-iwmmxt.c: Rebuild.
3000         * features/arm-with-m-fpa-layout.c: Rebuild.
3001         * features/arm-with-m-vfp-d16.c: Rebuild.
3002         * features/arm-with-m.c: Rebuild.
3003         * features/arm-with-neon.c: Rebuild.
3004         * features/arm-with-vfpv2.c: Rebuild.
3005         * features/arm-with-vfpv3.c: Rebuild.
3006         * features/i386/amd64-avx-linux.c: Rebuild.
3007         * features/i386/amd64-avx.c: Rebuild.
3008         * features/i386/amd64-linux.c: Rebuild.
3009         * features/i386/amd64.c: Rebuild.
3010         * features/i386/i386-avx-linux.c: Rebuild.
3011         * features/i386/i386-avx.c: Rebuild.
3012         * features/i386/i386-linux.c: Rebuild.
3013         * features/i386/i386-mmx-linux.c: Rebuild.
3014         * features/i386/i386-mmx.c: Rebuild.
3015         * features/i386/i386.c: Rebuild.
3016         * features/i386/x32-avx-linux.c: Rebuild.
3017         * features/i386/x32-avx.c: Rebuild.
3018         * features/i386/x32-linux.c: Rebuild.
3019         * features/i386/x32.c: Rebuild.
3020         * features/mips-dsp-linux.c: Rebuild.
3021         * features/mips-linux.c: Rebuild.
3022         * features/mips64-dsp-linux.c: Rebuild.
3023         * features/mips64-linux.c: Rebuild.
3024         * features/rs6000/powerpc-32.c: Rebuild.
3025         * features/rs6000/powerpc-32l.c: Rebuild.
3026         * features/rs6000/powerpc-403.c: Rebuild.
3027         * features/rs6000/powerpc-403gc.c: Rebuild.
3028         * features/rs6000/powerpc-405.c: Rebuild.
3029         * features/rs6000/powerpc-505.c: Rebuild.
3030         * features/rs6000/powerpc-601.c: Rebuild.
3031         * features/rs6000/powerpc-602.c: Rebuild.
3032         * features/rs6000/powerpc-603.c: Rebuild.
3033         * features/rs6000/powerpc-604.c: Rebuild.
3034         * features/rs6000/powerpc-64.c: Rebuild.
3035         * features/rs6000/powerpc-64l.c: Rebuild.
3036         * features/rs6000/powerpc-7400.c: Rebuild.
3037         * features/rs6000/powerpc-750.c: Rebuild.
3038         * features/rs6000/powerpc-860.c: Rebuild.
3039         * features/rs6000/powerpc-altivec32.c: Rebuild.
3040         * features/rs6000/powerpc-altivec32l.c: Rebuild.
3041         * features/rs6000/powerpc-altivec64.c: Rebuild.
3042         * features/rs6000/powerpc-altivec64l.c: Rebuild.
3043         * features/rs6000/powerpc-cell32l.c: Rebuild.
3044         * features/rs6000/powerpc-cell64l.c: Rebuild.
3045         * features/rs6000/powerpc-e500.c: Rebuild.
3046         * features/rs6000/powerpc-e500l.c: Rebuild.
3047         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3048         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3049         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3050         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3051         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3052         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3053         * features/rs6000/powerpc-vsx32.c: Rebuild.
3054         * features/rs6000/powerpc-vsx32l.c: Rebuild.
3055         * features/rs6000/powerpc-vsx64.c: Rebuild.
3056         * features/rs6000/powerpc-vsx64l.c: Rebuild.
3057         * features/rs6000/rs6000.c: Rebuild.
3058         * features/s390-linux32.c: Rebuild.
3059         * features/s390-linux32v1.c: Rebuild.
3060         * features/s390-linux32v2.c: Rebuild.
3061         * features/s390-linux64.c: Rebuild.
3062         * features/s390-linux64v1.c: Rebuild.
3063         * features/s390-linux64v2.c: Rebuild.
3064         * features/s390x-linux64.c: Rebuild.
3065         * features/s390x-linux64v1.c: Rebuild.
3066         * features/s390x-linux64v2.c: Rebuild.
3067         * features/tic6x-c62x-linux.c: Rebuild.
3068         * features/tic6x-c62x.c: Rebuild.
3069         * features/tic6x-c64x-linux.c: Rebuild.
3070         * features/tic6x-c64x.c: Rebuild.
3071         * features/tic6x-c64xp-linux.c: Rebuild.
3072         * features/tic6x-c64xp.c: Rebuild.
3073
3074 2012-07-27  Tom Tromey  <[email protected]>
3075
3076         * c-exp.y (classify_name): Avoid assignment in condition.
3077
3078 2012-07-27  Roland Schwingel  <[email protected]>
3079
3080         * amd64-windows-tdep.c: Include "frame.h".
3081         (amd64_windows_skip_trampoline_code): New function.
3082         (amd64_windows_init_abi): Add trampoline registration.
3083
3084 2012-07-27  Yao Qi  <[email protected]>
3085
3086         * tracepoint.c (cur_traceframe_number): Remove.
3087         (set_tfile_traceframe): Remove.
3088         (tfile_trace_find, tfile_fetch_registers): Update callers.
3089         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3090         (tfile_open, tfile_trace_find): Likewise.
3091
3092 2012-07-27  Yao Qi  <[email protected]>
3093
3094         * thread.c (switch_to_thread): Don't call registers_changed.
3095
3096 2012-07-26  Tom Tromey  <[email protected]>
3097
3098         * Makefile.in (SFILES): Remove objc-exp.y.
3099         (YYFILES): Remove objc-exp.c.
3100         (YYOBJ): Remove objc-exp.o.
3101         (local-maintainer-clean): Don't mention objc-exp.c.
3102         * c-exp.y: Include objc-lang.h.
3103         (%union) <class>: New field.
3104         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3105         (exp): Clone subscript production for OBJC_LBRAC.  Add various
3106         Objective C productions.
3107         (msglist, msgarglist, msgarg): New productions.
3108         (array_mod, func_mod, operator): Clone productions for
3109         OBJC_LBRAC.
3110         (parse_string_or_char): Handle '@' strings.
3111         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
3112         (classify_name): Check la_name_of_this.  Recognize ObjC class
3113         names.
3114         * objc-exp.y: Remove.
3115         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3116         * objc-lang.h (objc_parse, objc_error): Don't declare.
3117
3118 2012-07-26  Markus Metzger  <[email protected]>
3119
3120         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3121
3122 2012-07-26  Jan Kratochvil  <[email protected]>
3123
3124         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3125         and decrement.
3126
3127 2012-07-26  Tom Tromey  <[email protected]>
3128
3129         * copying.c: Rebuild.
3130         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
3131         'no_class'.
3132
3133 2012-07-26  Tom Tromey  <[email protected]>
3134
3135         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3136         immediate_quit.
3137         (print_objfile_statistics): Likewise.
3138         (maintenance_print_symbols): Likewise.
3139         (maintenance_print_msymbols): Likewise.
3140         (maintenance_print_objfiles): Likewise.
3141         * psymtab.c (print_partial_symbols): Call QUIT.
3142         (maintenance_print_psymbols): Likewise.  Don't modify
3143         immediate_quit.
3144         * copying.c (show_copying_command): Don't modify immediate_quit.
3145         (show_warranty_command): Likewise.
3146         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3147
3148 2012-07-26  Keith Seitz  <[email protected]>
3149
3150         * linespec.c (linespec_lexer_lex_number): The input
3151         is also a valid number if the next character is a comma
3152         or colon.
3153
3154 2012-07-26  Joel Brobecker  <[email protected]>
3155
3156         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3157         configure options.
3158
3159 2012-07-26  Tristan Gingold  <[email protected]>
3160
3161         * machoread.c: Include gdb_bfd.h.
3162
3163 2012-07-26  Tristan Gingold  <[email protected]>
3164
3165         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3166         offset.
3167
3168 2012-07-26  Siddhesh Poyarekar  <[email protected]>
3169
3170         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3171         SIZE to size_t.
3172         (dwarf2_evaluate_loc_desc): Likewise.
3173         (dwarf2_loc_desc_needs_frame): Likewise.
3174         (locexpr_describe_location_1): Likewise.
3175         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3176         size_t.
3177         (struct dwarf2_loclist_baton): Likewise.
3178         * dwarf2read.c (struct dwarf_block): Likewise.
3179         (dump_die_shallow): Use pulongest to print dwarf_block.size.
3180         (decode_locdesc): Expand SIZE and I to size_t.
3181
3182 2012-07-25  Jan Kratochvil  <[email protected]>
3183
3184         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3185
3186 2012-07-25  Joel Brobecker  <[email protected]>
3187
3188         * doublest.c (convert_doublest_to_floatformat): If the exponent
3189         is too small, treat the value as zero.  If the exponent is too
3190         large, treat the value as infinity.
3191
3192 2012-07-25  Joel Brobecker  <[email protected]>
3193
3194         * configure.ac: Add --enable-lmcheck configure option.
3195         * configure: Regenerate.
3196
3197 2012-07-25  Tom Tromey  <[email protected]>
3198
3199         * NEWS: Mention maint info bfds.
3200         * gdb_bfd.c (all_bfds): New global.
3201         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3202         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3203         New functions.
3204
3205 2012-07-25  Ralf Corsépius  <[email protected]>
3206
3207         * configure.tgt: Add v850*-*-rtems*.
3208
3209 2012-07-25  Tom Tromey  <[email protected]>
3210
3211         * macrotab.c (macro_bcache_str): Remove cast.
3212
3213 2012-07-25  Hui Zhu  <[email protected]>
3214
3215         * linespec.c (linespec_lexer_lex_number): Update comments,
3216         change the return and add check to make sure the input is
3217         the decimal numbers.
3218         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3219         false, call linespec_lexer_lex_string.
3220
3221 2012-07-24  Tom Tromey  <[email protected]>
3222
3223         * symfile.c (symbol_file_add): Don't open BFD twice.
3224
3225 2012-07-24  Marc Khouzam  <[email protected]>
3226
3227         * breakpoint.c (create_breakpoint): Store condition for pending
3228         breakpoints.
3229
3230 2012-07-24  Andreas Schwab  <[email protected]>
3231
3232         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3233         (m68k_return_value): Handle complex types like structures.
3234         (m68k_svr4_return_value): Likewise.
3235
3236 2012-07-24  Marcus Shawcroft  <[email protected]>
3237
3238         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3239         parameters to bfd_get_section_name.
3240
3241 2012-07-24  Yao Qi  <[email protected]>
3242
3243         * cli/cli-setshow.c: Handle case 'var_uinteger'
3244         and 'var_zuninteger' together.  Handle case 'var_integer' and
3245         'var_zinteger' together.
3246
3247 2012-07-23  Keith Seitz  <[email protected]>
3248
3249         * linespec.c (convert_linespec_to_sal): Don't add
3250         any symbols to the result vector if symbol_to_sal
3251         returns zero.
3252
3253 2012-07-23  Keith Seitz  <[email protected]>
3254
3255         * linespec.c (decode_objc): Record the function name
3256         in the linespec.
3257
3258 2012-07-23  Tom Tromey  <[email protected]>
3259
3260         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
3261         counting.
3262         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3263         (map_vmap): Acquire a reference to the BFD.
3264
3265 2012-07-23  Siddhesh Poyarekar  <[email protected]>
3266
3267         * p-valprint.c (pascal_object_print_value): Replace potentially
3268         unsafe alloca with xmalloc/xfree.
3269         * valops.c (search_struct_method): Likewise.
3270
3271 2012-07-23  Tom Tromey  <[email protected]>
3272
3273         * solib-svr4.c (enable_break): Update.
3274         * bfd-target.h (target_bfd_reopen): Update documentation.
3275
3276 2012-07-23  Tom Tromey  <[email protected]>
3277
3278         * symfile.c (separate_debug_file_exists): Update.
3279         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3280         (reread_symbols): Update.
3281         * elfread.c (build_id_verify): Update.
3282         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3283         bfd_open_maybe_remote.
3284
3285 2012-07-23  Tom Tromey  <[email protected]>
3286
3287         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3288
3289 2012-07-23  Tom Tromey  <[email protected]>
3290
3291         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3292         and 'abfd'.
3293         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3294         and 'abfd'.
3295         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3296         * machoread.c (macho_add_oso_symfile): Make a cleanup for
3297         'abfd'.
3298         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3299         * objfiles.c (allocate_objfile): Acquire a new reference.
3300         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3301         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3302         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3303         a cleanup for 'nbfd'.
3304         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3305         for 'nbfd'.
3306         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3307         make a cleanup for 'abfd'.
3308         (symbol_file_add): Make a BFD cleanup.
3309
3310 2012-07-23  Tom Tromey  <[email protected]>
3311
3312         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3313         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3314         * corelow.c (core_open): Use gdb_bfd_fopen.
3315         * dsrec.c (load_srec): Use gdb_bfd_openr.
3316         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3317         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3318         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3319         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3320         (gdb_bfd_fdopenr): New functions.
3321         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3322         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3323         (gdb_bfd_fdopenr): Declare.
3324         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3325         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3326         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3327         gdb_bfd_openr_next_archived_file.
3328         (macho_check_dsym): Use gdb_bfd_openr.
3329         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3330         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3331         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3332         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3333         gdb_bfd_openr.
3334         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3335         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3336         gdb_bfd_openr_next_archived_file.
3337         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3338         Use gdb_bfd_openr.
3339         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3340         gdb_bfd_openr.
3341         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3342         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3343         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3344         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3345         (symfile_bfd_open): Use gdb_bfd_fopen.
3346         (generic_load): Use gdb_bfd_openr.
3347         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3348
3349 2012-07-23  Tom Tromey  <[email protected]>
3350
3351         * bfd-target.c (target_bfd_reopen): Update.
3352         * cli/cli-dump.c (bfd_openr_with_cleanup)
3353         (bfd_openw_with_cleanup): Update.
3354         * corelow.c (core_open): Update.
3355         * dsrec.c (load_srec): Update.
3356         * exec.c (exec_file_attach): Update.
3357         * gcore.c (create_gcore_bfd): Update.
3358         * gdb_bfd.c (gdb_bfd_ref): Return void.
3359         (gdb_bfd_open): Update.
3360         * gdb_bfd.h (gdb_bfd_ref): Return void.
3361         Update comments.
3362         * jit.c (jit_bfd_try_read_symtab): Update.
3363         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3364         * machoread.c (macho_symfile_read_all_oso): Update.
3365         (macho_check_dsym): Update.
3366         * procfs.c (insert_dbx_link_bpt_in_file): Update.
3367         * remote-m32r-sdi.c (m32r_load): Update.
3368         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3369         * rs6000-nat.c (add_vmap): Update.
3370         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3371         Update.
3372         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3373         * solib-spu.c (spu_bfd_open): Update.
3374         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3375         * spu-linux-nat.c (spu_bfd_open): Update.
3376         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3377         (generic_load): Update.
3378         * windows-nat.c (windows_make_so): Update.
3379
3380 2012-07-22  Siddhesh Poyarekar  <[email protected]>
3381
3382         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3383
3384 2012-07-20  Jeff Kenton  <[email protected]>
3385
3386         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3387         SIGTRAMP_FRAME unwinding.
3388
3389 2012-07-20  Doug Evans  <[email protected]>
3390
3391         * NEWS: Document new options "set/show use-deprecated-index-sections",
3392         and delete reference to --use-deprecated-index-sections.
3393         * symfile.h (use_deprecated_index_sections): Delete.
3394         * dwarf2read.c (use_deprecated_index_sections): Make static.
3395         (read_index_from_section): Update wording of how to load
3396         deprecated index sections.
3397         (_initialize_dwarf2_read): New options
3398         "set/show use-deprecated-index-sections".
3399         * main.c (captured_main): Delete --use-deprecated-index-sections.
3400
3401 2012-07-20  Pedro Alves  <[email protected]>
3402
3403         PR threads/11692
3404         PR gdb/12203
3405
3406         * infrun.c (handle_inferior_event) <new thread>: Don't special
3407         case minus_one_ptid.
3408         <TARGET_WAITKIND_SPURIOUS>: Ditto.
3409         * linux-thread-db.c (thread_get_info_callback): Don't return early
3410         if the thread is zombie.
3411         (thread_from_lwp): Change return type to void.  Rewrite stale
3412         comment.
3413         (attach_thread): Don't return early if the thread is zombie,
3414         instead set its "dying" flag.
3415         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3416         (find_new_threads_callback): Don't return early if the thread is
3417         zombie.
3418
3419 2012-07-20  Pedro Alves  <[email protected]>
3420
3421         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3422         * target.c (target_wait): Likewise.
3423         (str_comma_list_concat_elem, do_option, target_options_to_string):
3424         New functions.
3425         * target.h (target_options_to_string): Declare.
3426
3427 2012-07-20  Jan Kratochvil <[email protected]>
3428             Tom Tromey  <[email protected]>
3429
3430         * dwarf2read.c (dwarf_decode_macros)
3431         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3432         DW_MACRO_GNU_transparent_include_alt>: New cases.
3433         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3434         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3435
3436 2012-07-20  Tom Tromey  <[email protected]>
3437
3438         * dwarf2read.c (try_open_dwo_file): Don't call
3439         gdb_bfd_stash_filename.
3440
3441 2012-07-20  Pedro Alves  <[email protected]>
3442
3443         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3444         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3445         (i386_process_record): Tweak description comments.
3446
3447 2012-07-20  Pedro Alves  <[email protected]>
3448
3449         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3450         (i386_process_record): Use record_read_memory.
3451         * record.c (record_read_memory): New function.
3452         (record_arch_list_add_mem, record_exec_insn): Use
3453         record_read_memory.
3454         * record.h (record_read_memory): Declare.
3455
3456 2012-07-20  Yao Qi  <[email protected]>
3457
3458         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3459         NULL for xfree.
3460
3461 2012-07-19  Pedro Alves  <[email protected]>
3462
3463         * record.c (record_resume): Ask the target beneath to report all
3464         signals.
3465
3466 2012-07-19  Doug Evans  <[email protected]>
3467
3468         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3469         there's no section at address zero.
3470         (dwarf2_record_block_ranges): Ditto.
3471
3472 2012-07-19  Yao Qi  <[email protected]>
3473
3474         * command.h, remote.c: Fix a typo in comment.
3475
3476 2012-07-19  Tom Tromey  <[email protected]>
3477
3478         PR exp/13206:
3479         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3480         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3481         OP_DECLTYPE>: New cases.
3482         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3483         (type_exp): Add new productions.
3484         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3485         and decltype.
3486         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3487         New case.
3488         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3489         OP_DECLTYPE>: New case.
3490         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3491         New case.
3492         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3493         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3494
3495 2012-07-19  Tom Tromey  <[email protected]>
3496
3497         * c-exp.y (enum token_flags): New.
3498         (struct token) <cxx_only>: Remove.
3499         <flags>: New field.
3500         (tokentab3, tokentab2, ident_tokens): Update.
3501         (lex_one_token): Update.  Handle FLAG_SHADOW.
3502
3503 2012-07-19  Tom Tromey  <[email protected]>
3504
3505         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3506         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3507         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3508         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
3509         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
3510         type_exp production where appropriate.
3511         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3512         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3513         <UNOP_MEMVAL_TYPE>: New case.
3514         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3515         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3516         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3517         <UNOP_MEMVAL_TYPE>: New case.
3518         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3519         UNOP_REINTERPRET_CAST>: Update.
3520         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3521         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3522         UNOP_REINTERPRET_CAST>: Update.
3523         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3524         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3525         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3526         constants.
3527
3528 2012-07-19  Yao Qi  <[email protected]>
3529             Jan Kratochvil <[email protected]>
3530
3531         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3532         and case 'var_optional_filename' together.
3533         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3534         instead of add_setshow_optional_filename_cmd for setshow command
3535         'args'.  Set completer for 'set args'.
3536
3537 2012-07-18  Doug Evans  <[email protected]>
3538
3539         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3540         * common/gdb_vecs.c: New file, contents from utils.c.
3541         * common/host-defs.h: New file, contents from defs.h.
3542         * utils.h: New file, contents from defs.h.
3543         * defs.h: Move all declarations of objects defined in utils.c
3544         to utils.h (except QUIT() and related).
3545         #include "utils.h", "host-defs.h".
3546         * probe.h (probe_p): Move here from gdb_vecs.h.
3547         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3548         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3549         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3550         * Makefile.in (SFILES): Add common/gdb_vecs.c.
3551         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3552         (COMMON_OBS): Add gdb_vecs.o.
3553         (gdb_vecs.o): New rule.
3554
3555 2012-07-18  Keith Seitz  <[email protected]>
3556
3557         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3558         parameter.  If non-zero, use SYMNAME as the canonical name
3559         for the SaL.
3560         Update all callers.
3561         (convert_linespec_to_sals): Use add_sal_to_sals for
3562         expressions, too.
3563         (decode_line_full): No need to "fill in missing canonical names"
3564         anymore. Simply make cleanups for the allocated names.
3565
3566 2012-07-18  Keith Seitz  <[email protected]>
3567
3568         * linespec.c (struct linespec): Constify expression,
3569         source_filename, function_name, and label_name.
3570         (symbol_not_found_error): Make all parameters const.
3571         (linespec_parser_delete): No need to check for NULL
3572         when using xfree. Cast const char * to char * for xfree.
3573
3574 2012-07-18  Keith Seitz  <[email protected]>
3575
3576         * breakpoint.c (invalid_thread_id_error): New function.
3577         (find_condition_and_thread): Use invalid_thread_id_error.
3578         (watch_command_1): Likewise.
3579
3580 2012-07-18  Tom Tromey  <[email protected]>
3581
3582         * cc-with-index.sh, cc-with-dwz.sh: Remove.
3583         * contrib/cc-with-tweaks.sh: New file.
3584
3585 2012-07-18  Tom Tromey  <[email protected]>
3586
3587         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3588         (locate_dwz_sections): Recognize .gdb_index.
3589         (create_cus_from_index_list): New function.
3590         (create_cus_from_index): Use it.  Handle .dwz data.
3591         (read_index_from_section): New function, extracted from
3592         dwarf2_read_index.
3593         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
3594         if needed.
3595
3596 2012-07-18  Tom Tromey  <[email protected]>
3597
3598         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3599         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3600         <is_dwz>: New field.
3601         (struct dwz_file): New.
3602         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3603         (locate_dwz_sections, dwarf2_get_dwz_file)
3604         (get_abbrev_section_for_cu): New functions.
3605         (error_check_comp_unit_head, read_and_check_comp_unit_head)
3606         (read_and_check_type_unit_head): Add abbrev_section argument.
3607         (create_debug_types_hash_table): Update.
3608         (init_cutu_and_read_dies): Use proper abbrev section.
3609         (init_cutu_and_read_dies_no_follow): Likewise.
3610         (set_partial_user): Do nothing if PST==NULL.
3611         (read_comp_units_from_section): New function.
3612         (create_all_comp_units): Use it.
3613         (scan_partial_symbols, partial_die_parent_scope): Update.
3614         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3615         (process_imported_unit_die, read_partial_die): Handle .dwz files.
3616         (find_partial_die): Add offset_in_dwz argument.  Update.
3617         (guess_partial_die_structure_name, fixup_partial_die): Update.
3618         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3619         DW_FORM_GNU_strp_alt.
3620         (read_indirect_string_from_dwz): New function.
3621         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3622         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3623         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3624         (follow_die_offset): Add offset_in_dwz argument.
3625         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3626         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3627         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3628         Handle new macro forms.
3629         (dwarf_decode_macros): Update.
3630         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3631         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3632         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3633         (create_debug_types_hash_table): Use correct abbrev section.
3634         (get_debug_line_section): New function.
3635         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3636         (process_full_comp_unit): Pass 'required' argument to
3637         end_symtab_get_static_block.
3638         * buildsym.h (end_symtab_get_static_block): Update.
3639         * buildsym.c (end_symtab_get_static_block): Add 'required'
3640         argument.
3641         (end_symtab, end_expandable_symtab): Update.
3642
3643 2012-07-18  Tom Tromey  <[email protected]>
3644
3645         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3646         (pagesize): Remove.
3647         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3648         (zlib_decompress_section): Remove.
3649         (dwarf2_read_section): Use gdb_bfd_map_section.
3650         (munmap_section_buffer): Remove.
3651         (free_dwo_file, dwarf2_per_objfile_free): Don't use
3652         munmap_section_buffer.
3653         * gdb_bfd.c: Include zlib.h, sys/mman.h.
3654         (struct gdb_bfd_section_data): New.
3655         (free_one_bfd_section): New function.
3656         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3657         (get_section_descriptor, zlib_decompress_section)
3658         (gdb_bfd_map_section): New functions.
3659         * gdb_bfd.h (gdb_bfd_map_section): Declare.
3660
3661 2012-07-18  Tom Tromey  <[email protected]>
3662
3663         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3664
3665 2012-07-18  Tom Tromey  <[email protected]>
3666
3667         * gdb_bfd.c (struct gdb_bfd_data): New.
3668         (gdb_bfd_cache): New global.
3669         (struct gdb_bfd_cache_search): New.
3670         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3671         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3672         * gdb_bfd.h (gdb_bfd_open): Declare.
3673
3674 2012-07-18  Tom Tromey  <[email protected]>
3675
3676         * utils.c (make_cleanup_bfd_unref): Rename from
3677         make_cleanup_bfd_close.
3678         * defs.h (make_cleanup_bfd_unref): Rename from
3679         make_cleanup_bfd_close.
3680         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3681         (bfd_openw_with_cleanup): Update.
3682         * corelow.c (core_open): Update.
3683         * dsrec.c (load_srec): Update.
3684         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3685         * remote-m32r-sdi.c (m32r_load): Update.
3686         * remote-mips.c (mips_load_srec): Update.
3687         (pmon_load_fast): Update.
3688         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3689         Update.
3690         (darwin_bfd_open): Update.
3691         * solib.c (solib_bfd_fopen): Update.
3692         * symfile-mem.c (symbol_file_add_from_memory): Update.
3693         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3694         (symfile_bfd_open): Update.
3695         (generic_load): Update.
3696
3697 2012-07-18  Tom Tromey  <[email protected]>
3698
3699         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3700         (pmon_load_fast): Likewise.
3701         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3702         (m32r_upload_command): Likewise.
3703         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3704         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3705         Use make_cleanup_bfd_close.
3706
3707 2012-07-18  Tom Tromey  <[email protected]>
3708
3709         * symfile.c (symfile_bfd_open): Don't copy name.  Call
3710         gdb_bfd_stash_filename.
3711         (load_command): Open the new BFD before freeing the old.
3712         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3713         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3714         Call gdb_bfd_stash_filename.
3715         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3716         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
3717         gdb_bfd_stash_filename.
3718         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3719         Free found_pathname.
3720         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
3721         gdb_bfd_stash_filename.
3722         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3723         * machoread.c (macho_add_oso_symfile): Call
3724         gdb_bfd_stash_filename.
3725         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
3726         gdb_bfd_stash_filename.
3727         (macho_check_dsym): Don't copy filename.  Call
3728         gdb_bfd_stash_filename.
3729         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3730         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3731         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3732         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3733         * exec.c (exec_close): Don't free the BFD's filename.
3734         (exec_file_attach): Don't copy the filename.  Call
3735         gdb_bfd_stash_filename.
3736         * corelow.c (core_close): Don't free the BFD's filename.
3737         (core_open): Call gdb_bfd_stash_filename.
3738         * corefile.c (reopen_exec_file): Remove #if 0 code.
3739         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
3740         pathname.
3741         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3742
3743 2012-07-18  Tom Tromey  <[email protected]>
3744
3745         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3746         gdb_bfd_unref.
3747         (free_dwo_file): Use gdb_bfd_unref.
3748         * cli/cli-dump.c: Include gdb_bfd.h.
3749         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3750         (bfd_openr_with_cleanup): Likewise.
3751         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3752         gdb_bfd_unref.
3753         * utils.c: Include gdb_bfd.h.
3754         (do_bfd_close_cleanup): Use gdb_bfd_unref.
3755         * symfile.c: Include gdb_bfd.h.
3756         (separate_debug_file_exists): Use gdb_bfd_unref.
3757         (bfd_open_maybe_remote): Use gdb_bfd_ref.
3758         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3759         (generic_load): Use gdb_bfd_ref.
3760         (reread_symbols): Use gdb_bfd_unref.
3761         * symfile-mem.c: Include gdb_bfd.h.
3762         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3763         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3764         * solib.c: Include gdb_bfd.h.
3765         (solib_bfd_fopen): Use gdb_bfd_ref.
3766         (solib_bfd_open): Use gdb_bfd_unref.
3767         (free_so_symbols): Use gdb_bfd_unref.
3768         (reload_shared_libraries_1): Use gdb_bfd_unref.
3769         * solib-spu.c: Include gdb_bfd.h.
3770         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3771         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3772         gdb_bfd_unref.
3773         * solib-frv.c: Include gdb_bfd.h.
3774         (enable_break2): Use gdb_bfd_unref.
3775         * solib-dsbt.c: Include gdb_bfd.h.
3776         (enable_break2): Use gdb_bfd_unref.
3777         * solib-darwin.c: Include gdb_bfd.h.
3778         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3779         gdb_bfd_unref.
3780         (darwin_bfd_open): Use gdb_bfd_unref.
3781         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3782         * remote-mips.c: Include gdb_bfd.h.
3783         (mips_load_srec): Use gdb_bfd_ref.
3784         (pmon_load_fast): Use gdb_bfd_ref.
3785         * remote-m32r-sdi.c: Include gdb_bfd.h.
3786         (m32r_load): Use gdb_bfd_ref.
3787         * record.c: Include gdb_bfd.h.
3788         (record_save_cleanups): Use gdb_bfd_unref.
3789         (cmd_record_save): Use gdb_bfd_unref.
3790         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3791         gdb_bfd_unref.
3792         * objfiles.h (gdb_bfd_close_or_warn): Remove.
3793         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3794         * objfiles.c: Include gdb_bfd.h.
3795         (free_objfile): Use gdb_bfd_unref.
3796         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3797         gdb_bfd.c.
3798         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3799         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3800         (macho_check_dsym): Likewise.
3801         * m32r-rom.c: Include gdb_bfd.h.
3802         (m32r_load): Use gdb_bfd_ref.
3803         (m32r_upload_command): Use gdb_bfd_ref.
3804         * jit.c: Include gdb_bfd.h.
3805         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3806         * gdb_bfd.h: New file.
3807         * gdb_bfd.c: New file.
3808         * gcore.c: Include gdb_bfd.h.
3809         (create_gcore_bfd): Use gdb_bfd_ref.
3810         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3811         (gcore_command): Use gdb_bfd_unref.
3812         * exec.c: Include gdb_bfd.h.
3813         (exec_close): Use gdb_bfd_unref.
3814         (exec_close_1): Use gdb_bfd_unref.
3815         (exec_file_attach): Use gdb_bfd_ref.
3816         * elfread.c: Include gdb_bfd.h.
3817         (build_id_verify): Use gdb_bfd_unref.
3818         * dsrec.c: Include gdb_bfd.h.
3819         (load_srec): Use gdb_bfd_ref.
3820         * corelow.c: Include gdb_bfd.h.
3821         (core_close): Use gdb_bfd_unref.
3822         (core_open): Use gdb_bfd_ref.
3823         * bfd-target.c: Include gdb_bfd.h.
3824         (target_bfd_xclose): Use gdb_bfd_unref.
3825         (target_bfd_reopen): Use gdb_bfd_ref.
3826         * Makefile.in (SFILES): Add gdb_bfd.c.
3827         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3828         (COMMON_OBS): Add gdb_bfd.o.
3829
3830 2012-07-18  Keith Seitz  <[email protected]>
3831
3832         * breakpoint.c (find_condition_and_thread): Initialize
3833         TASK and REST.
3834         (create_breakpiont): find_condition_and_thread will now
3835         initialize COND_STRING, THREAD, and REST (and TASK).
3836         (addr_string_to_sals): Likewise.
3837
3838 2012-07-18  Pedro Alves  <[email protected]>
3839
3840         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3841         Pull the single step breakpoints out of the target.
3842
3843 2012-07-18  Sergio Durigan Junior  <[email protected]>
3844
3845         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3846         * stap-probe.c (compile_probe_arg): Likewise.
3847
3848 2012-07-18  Sergio Durigan Junior  <[email protected]>
3849
3850         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3851         (elf_compile_to_ax): Likewise.
3852         * infrun.c (insert_exception_resume_from_probe): Likewise.
3853         (check_exception_resume): Remove `objfile' variable.
3854         * probe.c (find_probe_by_pc): Remove `objfile' argument.
3855         (struct probe_and_objfile, probe_and_objfile_s): Delete.
3856         (collect_probes): Adjust return value to `VEC (probe_p) *'.
3857         (compare_entries): Rename to...
3858         (compare_probes): ...this.  Adjust function to work with
3859         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
3860         respectively.
3861         (gen_ui_out_table_header_info): Adjust `probes' argument to be
3862         `VEC (probe_p) *'.
3863         (print_ui_out_info): Adjust argument to be `struct probe *'.
3864         (info_probes_for_ops): Adjust internal computations to use
3865         `VEC (probe_p) *'.
3866         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3867         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3868         gen_info_probes_table_values>: Remove `objfile' argument.
3869         (struct probe) <objfile>: New field.
3870         (find_probe_by_pc): Remove `objfile' argument.
3871         * stap-probe.c (stap_parse_probe_arguments): Likewise.
3872         (stap_get_probe_argument_count): Likewise.
3873         (stap_get_arg): Likewise.
3874         (stap_evaluate_probe_argument): Likewise.
3875         (stap_compile_to_ax): Likewise.
3876         (compile_probe_arg): Refactor not to pass `objfile' anymore.
3877         (handle_stap_probe): Fill `objfile' field from `struct probe'.
3878         (stap_gen_info_probes_table_header): Remove `objfile' argument.
3879         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3880         sym_compile_to_ax>: Likewise.
3881
3882 2012-07-18  Terry Guo  <[email protected]>
3883
3884         PR 14329
3885         * defs.h (GDB_MI_MSG_WIDTH): New.
3886         * ser_base (ser_base_read_error_fd): New function.
3887         (do_ser_base_readchar): Poll error file descriptor as well as
3888         standard output.
3889         (generic_readchar): Refactor error handling.
3890
3891 2012-07-18  Joel Brobecker  <[email protected]>
3892
3893         * NEWS: Create a new section for the next release branch.
3894         Rename the section of the current branch, now that it has
3895         been cut.
3896
3897 2012-07-18  Joel Brobecker  <[email protected]>
3898
3899         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3900         * version.in: Bump version to 7.5.50.20120718-cvs.
3901
3902 2012-07-17  Keith Seitz  <[email protected]>
3903
3904         * linespec.c (linespec_parse_line_offset): Make parameter
3905         const.
3906
3907 2012-07-16  Jan Kratochvil  <[email protected]>
3908
3909         PR 11914
3910         * f-valprint.c (info_common_command): New variable frame_id.
3911         Reinitialize FI form FRAME_ID after each print_variable_and_value.
3912         * printcmd.c (print_variable_and_value): Extend function comment.
3913         Add comment for invalidated FRAME.
3914         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
3915         FI form FRAME_ID after each print_frame_local_vars.
3916         (struct print_variable_and_value_data): Change frame to frame_id.
3917         (do_print_variable_and_value): New variable frame, initialize it from
3918         p->frame_id.  Add comment for invalidated FRAME.
3919         (print_frame_local_vars, print_frame_arg_vars): New function comment.
3920         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
3921         for invalidated FRAME.
3922
3923 2012-07-16  Marc Khouzam  <[email protected]>
3924             Pedro Alves  <[email protected]>
3925
3926         * linux-nat.c (linux_nat_detach): Don't unregister from the event
3927         loop.
3928
3929 2012-07-16  Tom Tromey  <[email protected]>
3930
3931         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3932
3933 2012-07-15  Doug Evans  <[email protected]>
3934
3935         * dwarf2read.c (stmt_list_hash): New struct.
3936         (type_unit_group): Embed "per_cu" member, remove pointer.
3937         New union member "t", move member "tus" into it, all uses updated.
3938         New member "hash", replaces member "line_offset, all uses updated.
3939         (quick_file_names): Replace member "offset" with "hash", all uses
3940         updated.
3941         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3942         (hash_file_name_entry, eq_file_name_entry): Call them.
3943         (hash_type_unit_group, eq_type_unit_group): Ditto.
3944         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3945         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3946         (dw2_get_file_names): Update.
3947         (create_type_unit_group): Replace "per_cu" arg with "cu".
3948         All callers updated.  Fix "quick" (.gdb_index) handling.
3949         (get_type_unit_group): Replace "per_cu" arg with "cu".
3950         All callers updated.
3951         (build_type_unit_groups): Don't reset tu_stats.
3952
3953         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3954         "tab_cur_size".  Change member "tab" to be a htab_t.
3955         (create_filename_seen_cache): Update.
3956         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3957         (filename_seen): Update.
3958
3959 2012-07-13  Doug Evans  <[email protected]>
3960
3961         * symtab.c (filename_seen): Update comment.
3962
3963 2012-07-13  Jan Kratochvil  <[email protected]>
3964             Doug Evans  <[email protected]>
3965
3966         * buildsym.c (end_symtab_1): Split it to ...
3967         (end_symtab_get_static_block): ... this ...
3968         (end_symtab_from_static_block): ... and this function.
3969         (end_symtab, end_expandable_symtab): Call them.
3970         * buildsym.h (end_symtab_get_static_block)
3971         (end_symtab_from_static_block): New declarations.
3972         * dwarf2read.c (process_full_comp_unit): New variable static_block.
3973         Set its valid CU ranges.
3974
3975 2012-07-13  Jan Kratochvil  <[email protected]>
3976
3977         * dwarf2loc.c (disassemble_dwarf_expression): Handle
3978         DW_OP_GNU_parameter_ref.
3979
3980 2012-07-13  Jan Kratochvil  <[email protected]>
3981
3982         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3983         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3984
3985 2012-07-13  Doug Evans  <[email protected]>
3986
3987         * symtab.c (output_source_filename): Delete unnecessary forward decl.
3988         (filename_seen_cache): New struct.
3989         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3990         (create_filename_seen_cache): New function.
3991         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3992         (filename_seen): Delete arg "first".  New arg "cache".  All callers
3993         updated.
3994         (output_source_filename_data): New struct.
3995         (output_source_filename): Delete arg "first".  New arg "data".
3996         All callers updated.
3997         (sources_info): Delete local "first".  New locals "data", "cleanups".
3998         Rewrite to use filename_seen_cache.
3999         (add_partial_filename_data): Delete member "first".  New member
4000         "filename_seen_cache".  All uses updated.
4001         (make_source_files_completion_list): Rewrite to use
4002         filename_seen_cache.
4003
4004 2012-07-12  Doug Evans  <[email protected]>
4005
4006         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4007
4008 2012-07-10  Doug Evans  <[email protected]>
4009
4010         PR gdb/13498
4011         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4012         all_type_unit_groups, type_unit_groups, tu_stats.
4013         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4014         All uses updated.  Add type_unit_group to union "s".
4015         (type_unit_group): New struct.
4016         (IS_TYPE_UNIT_GROUP): New macro.
4017         (abbrev_table): Delete unused member "section".
4018         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4019         (dw2_get_cu): Assert not used with type_unit_group.
4020         (dw2_get_primary_cu): New function.
4021         (dw2_build_type_unit_groups_reader): New function.
4022         (dw2_build_type_unit_groups): New function.
4023         (dw2_get_file_names): Assert not called on type units.
4024         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4025         Redo loop to iterate over type unit groups instead of type units.
4026         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4027         (read_abbrev_offset): New function.
4028         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
4029         updated.
4030         (create_partial_symtab): New function.
4031         (process_psymtab_comp_unit_reader): Assert not used with type units.
4032         Call create_partial_symtab.
4033         (process_psymtab_type_unit): Delete.
4034         (hash_type_unit_group, eq_type_unit_group): New functions.
4035         (allocate_type_unit_groups_table): New function.
4036         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4037         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4038         (create_type_unit_group, get_type_unit_group): New functions.
4039         (tu_abbrev_offset): New struct.
4040         (sort_tu_by_abbrev_offset): New function.
4041         (add_type_unit_group_to_table): New function.
4042         (build_type_unit_groups): New function.
4043         (build_type_psymtabs_reader): New function.
4044         (build_type_psymtab_dependencies): New function.
4045         (build_type_psymtabs): Rewrite.
4046         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4047         is seen in a type unit.
4048         (process_queue): Move symtab expansion debugging printfs here.
4049         Call process_full_type_unit for type units.
4050         (compute_symtab_includes): Assert not called for type units.
4051         (process_cu_includes): Don't call compute_symtab_includes for
4052         type units.
4053         (process_full_type_unit): New function.
4054         (process_imported_unit_die): Flag an error if called for type units.
4055         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
4056         updated.  Assert not called for type units.
4057         (read_file_scope): Call dwarf2_start_symtab.
4058         (setup_type_unit_groups): New function.
4059         (read_type_unit_scope): Rewrite.
4060         (abbrev_table_read_table): Initialize abbrev_table->offset.
4061         (abbrev_table_free_cleanup): New function.
4062         (dwarf2_start_symtab): New function.
4063         (load_full_type_unit): Assert not called for type unit groups.
4064         * buildsym.c (finish_block_internal): New arg "expandable".
4065         All callers updated.
4066         (start_symtab): Move most contents to ...
4067         (restart_symtab): ... here.  New function.
4068         (reset_symtab_globals): New function.
4069         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
4070         Call reset_symtab_globals.
4071         (end_symtab, end_expandable_symtab): New functions.
4072         (set_missing_symtab, augment_type_symtab): New functions.
4073         * buildsym.h (end_expandable_symtab): Declare.
4074         (augment_type_symtab, restart_symtab): Declare.
4075         * psympriv.h (struct partial_symtab): New member "anonymous".
4076         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4077         anonymous psymtabs.
4078         (read_psymtabs_with_filename): Ditto.
4079         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4080         (expand_symtabs_matching_via_partial): Ditto.
4081         (dump_psymtab): Update.
4082         * dictionary.c (dict_add_pending): New function.
4083         * dictionary.h (dict_add_pending): Declare.
4084
4085 2012-07-09  Doug Evans  <[email protected]>
4086
4087         * buildsym.c (start_subfile): Remove unnecessary check for
4088         name == NULL.
4089
4090         * psymtab.c (allocate_psymtab): Use host_address_to_string.
4091
4092         * dwarf2read.c (load_full_type_unit): Simplify.
4093
4094         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4095         to struct signatured_type **.  All uses updated.
4096
4097         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4098         All callers updated.
4099
4100 2012-07-09  Tom Tromey  <[email protected]>
4101
4102         * c-exp.y (check_parameter_typelist): New function.
4103         (parameter_typelist): Call it.
4104         * eval.c (make_params): Handle '(void)' case.
4105         * gdbtypes.c (lookup_function_type_with_arguments): Handle
4106         '(void)' case.
4107
4108 2012-07-07  Jan Kratochvil  <[email protected]>
4109
4110         * common/linux-ptrace.c: Include gdb_assert.h.
4111         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4112         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4113         stdint.h.
4114         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4115         functions.
4116         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4117         * linux-nat.c (linux_child_post_attach)
4118         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4119
4120 2012-07-07  Jan Kratochvil  <[email protected]>
4121
4122         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4123         nptl <2.7 bug workaround for core files.
4124
4125 2012-07-06  Jan Kratochvil  <[email protected]>
4126
4127         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4128         clearing.
4129         (save_siginfo): Remove.
4130         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4131         call.
4132         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4133         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4134         * linux-nat.h (struct lwp_info): Remove field siginfo.
4135
4136 2012-07-06  Jan Kratochvil  <[email protected]>
4137
4138         Code cleanup for the next patch.
4139         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4140         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4141         call for it.
4142         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4143         (ia64_linux_stopped_data_address):
4144         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4145         the return value.
4146         * linux-nat.h (linux_nat_get_siginfo): Likewise.
4147         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4148         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4149         call for it.
4150
4151 2012-07-06  Jan Kratochvil  <[email protected]>
4152
4153         PR 14321
4154         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4155         Increase buffer sizes to 2x we need, not just 2x of the previous size.
4156
4157 2012-07-06  Tom Tromey  <[email protected]>
4158
4159         * c-exp.y (DOTDOTDOT): New token.
4160         (func_mod, exp): Use parameter_typelist.
4161         (parameter_typelist): New production.
4162         (tokentab3): Add "..." token.
4163         * eval.c (make_params): Handle varargs.
4164         * gdbtypes.c (lookup_function_type_with_arguments): Handle
4165         varargs.
4166
4167 2012-07-06  Tom Tromey  <[email protected]>
4168
4169         PR exp/9608:
4170         * c-exp.y (%union) <tvec>: Change type.
4171         (func_mod): Now uses <tvec> type.
4172         (exp): Update for tvec change.
4173         (direct_abs_decl): Push the typelist.
4174         (func_mod): Return a typelist.
4175         (nonempty_typelist): Update for tvec change.
4176         * gdbtypes.c (lookup_function_type_with_arguments): New function.
4177         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4178         * parse.c (pop_type_list): New function.
4179         (push_typelist): New function.
4180         (follow_types): Handle tp_function_with_arguments.
4181         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
4182         (enum type_pieces) <tp_function_with_arguments>: New constant.
4183         (union type_stack_elt) <typelist_val>: New field.
4184         (push_typelist): Declare.
4185
4186 2012-07-06  Tom Tromey  <[email protected]>
4187
4188         * c-exp.y (%union) <type_stack>: New field.
4189         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
4190         (ptr_operator_ts): New production.
4191         (ptype): Update.
4192         * parse.c (type_stack_reserve): New function.
4193         (check_type_stack_depth): Use it.
4194         (pop_type_stack, append_type_stack, push_type_stack)
4195         (get_type_stack, type_stack_cleanup): New functions.
4196         (follow_types): Handle tp_type_stack.
4197         (_initialize_parse): Simplify initialization.
4198         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4199         constant.
4200         (union type_stack_elt) <stack_val>: New field.
4201         (get_type_stack, append_type_stack, push_type_stack)
4202         (type_stack_cleanup): Declare.
4203
4204 2012-07-06  Tom Tromey  <[email protected]>
4205
4206         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4207         Remove.
4208         (struct type_stack): New.
4209         * parse.c (type_stack, type_stack_size, type_stack_depth):
4210         Remove.
4211         (type_stack): New global.
4212         (parse_exp_in_context, check_type_stack_depth)
4213         (insert_into_type_stack, insert_type, push_type, push_type_int)
4214         (insert_type_address_space, pop_type, pop_type_int)
4215         (_initialize_parse): Update.
4216
4217 2012-07-06  Tom Tromey  <[email protected]>
4218
4219         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4220         Remove %type.
4221
4222 2012-07-06  Siddhesh Poyarekar  <[email protected]>
4223
4224         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4225
4226 2012-07-06  Siddhesh Poyarekar  <[email protected]>
4227             Jan Kratochvil  <[email protected]>
4228
4229         * cp-valprint.c (cp_print_value): Replace potentially unsafe
4230         alloca with xmalloc/xfree.
4231
4232 2012-07-06  Siddhesh Poyarekar  <[email protected]>
4233
4234         * MAINTAINERS (Write After Approval): Add myself to the list.
4235
4236 2012-07-05  Doug Evans  <[email protected]>
4237
4238         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4239
4240 2012-07-05  Hui Zhu  <[email protected]>
4241
4242         * ax-gdb.c (cli/cli-utils.h): New include.
4243         (linespec.h): Ditto.
4244         (agent_eval_command_one): New function.
4245         (agent_command_1): Ditto.
4246         (agent_command): Call function agent_command_1.
4247         (agent_eval_command): Ditto.
4248         (_initialize_ax_gdb): Change help for "maint agent"
4249         and "maint agent-eval".
4250
4251 2012-07-05  Hui Zhu  <[email protected]>
4252
4253         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4254         * cli/cli-utils.c (check_for_argument): New function.
4255         * cli/cli-utils.h (check_for_argument): Ditto.
4256
4257 2012-07-04  H.J. Lu  <[email protected]>
4258
4259         * NEWS: Mention x32 ABI support.
4260
4261 2012-07-04  H.J. Lu  <[email protected]>
4262
4263         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4264         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4265
4266         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4267         and pc_regnum_from_eax to -1.  Update SP regnum from
4268         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4269         needed.
4270
4271         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4272         pc_regnum_from_eax.
4273
4274 2012-07-03  Jan Kratochvil  <[email protected]>
4275
4276         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4277         * dwarf2expr.h: Include gdbtypes.h.
4278         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4279         these forward declarations.
4280         (cu_offset, sect_offset): Move these ...
4281         * gdbtypes.h: Remove include dwarf2expr.h.
4282         (cu_offset, sect_offset): ... here.
4283
4284 2012-07-03  H.J. Lu  <[email protected]>
4285
4286         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4287         (amd64_linux_sigtramp_code): This.
4288         (amd64_x32_linux_sigtramp_code): New.
4289         (LINUX_SIGTRAMP_LEN): Updated.
4290         (amd64_linux_sigtramp_start): Check x32 sigtramp.
4291
4292 2012-07-02  Jan Kratochvil  <[email protected]>
4293
4294         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4295
4296 2012-07-02  Jan Kratochvil  <[email protected]>
4297
4298         * config.in: Regenerate.
4299         * configure: Regenerate.
4300         * configure.ac: Remove check for gnu/libc-version.h.
4301         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4302         gnu/libc-version.h.
4303         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4304         variables libc_version, libc_major and libc_minor.  Replace sscanf by
4305         inferior_has_bug.  Extend the comment.
4306
4307 2012-07-02  Jan Kratochvil  <[email protected]>
4308
4309         * linux-thread-db.c (inferior_has_bug): New function.
4310         (thread_db_find_new_threads_silently): Return boolean as checked by
4311         inferior_has_bug, describe it in the comments.
4312         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4313         earlier.  Abort the initialization if it returned non-zero.
4314         (thread_db_new_objfile): Exclude debug files.
4315         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
4316         if UNTIL_NO_NEW,
4317
4318 2012-07-02  Doug Evans  <[email protected]>
4319
4320         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4321         related to queue management.
4322
4323         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4324         instead of "debug dwarf2-die" in debugging printfs.
4325         (create_debug_info_hash_table_reader): Ditto.
4326         (create_debug_info_hash_table): Ditto.
4327         (init_dwo_file): Ditto.
4328         (init_cutu_and_read_dies): Add debugging printf.
4329         (init_cutu_and_read_dies_no_follow): Ditto.
4330         (process_psymtab_comp_unit_reader): Ditto.
4331
4332 2012-07-02  Stan Shebs  <[email protected]>
4333
4334         Add target-side support for dynamic printf.
4335         * NEWS: Mention the additional style.
4336         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4337         (struct bp_location): New field cmd_bytecode.
4338         * breakpoint.c: Include format.h.
4339         (disconnected_dprintf): New global.
4340         (parse_cmd_to_aexpr): New function.
4341         (build_target_command_list): New function.
4342         (insert_bp_location): Call it.
4343         (remove_breakpoints_pid): Skip dprintf breakpoints.
4344         (print_one_breakpoint_location): Ditto.
4345         (dprintf_style_agent): New global.
4346         (dprintf_style_enums): Add dprintf_style_agent.
4347         (update_dprintf_command_list): Add agent case.
4348         (agent_printf_command): New function.
4349         (_initialize_breakpoint): Add new commands.
4350         * common/ax.def (printf): New bytecode.
4351         * ax.h (ax_string): Declare.
4352         * ax-gdb.h (gen_printf): Declare.
4353         * ax-gdb.c: Include cli-utils.h, format.h.
4354         (gen_printf): New function.
4355         (maint_agent_print_command): New function.
4356         (_initialize_ax_gdb): Add maint agent-printf command.
4357         * ax-general.c (ax_string): New function.
4358         (ax_print): Add printf disassembly.
4359         * Makefile.in (SFILES): Add format.c
4360         (COMMON_OBS): Add format.o.
4361         * common/format.h: New file.
4362         * common/format.c: New file.
4363         * printcmd.c: Include format.h.
4364         (ui_printf): Call parse_format_string.
4365         * remote.c (remote_state): New field breakpoint_commands.
4366         (PACKET_BreakpointCommands): New enum.
4367         (remote_breakpoint_commands_feature): New function.
4368         (remote_protocol_features): Add new BreakpointCommands entry.
4369         (remote_can_run_breakpoint_commands): New function.
4370         (remote_add_target_side_commands): New function.
4371         (remote_insert_breakpoint): Call it.
4372         (remote_insert_hw_breakpoint): Ditto.
4373         (_initialize_remote): Add new packet configuration for
4374         target-side breakpoint commands.
4375         * target.h (struct target_ops): New field
4376         to_can_run_breakpoint_commands.
4377         (target_can_run_breakpoint_commands): New macro.
4378         * target.c (update_current_target): Handle
4379         to_can_run_breakpoint_commands.
4380
4381 2012-07-02  Jan Kratochvil  <[email protected]>
4382
4383         Execute -ix and -iex only after system and user gdbinit files.
4384         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4385         processing down after gdbinit files.
4386
4387 2012-07-02  Jan Kratochvil  <[email protected]>
4388
4389         Add fnmatch-gnu module.
4390         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4391         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4392         * gnulib/aclocal.m4: Regenerate.
4393         * gnulib/config.in: Regenerate.
4394         * gnulib/configure: Regenerate.
4395         * gnulib/import/dummy.c: Remove.
4396         * gnulib/import/Makefile.am: Regenerate.
4397         * gnulib/import/Makefile.in: Likewise.
4398         * gnulib/import/m4/gnulib-cache.m4: Likewise.
4399         * gnulib/import/m4/gnulib-comp.m4: Likewise.
4400         * gnulib/import/alloca.c: New file.
4401         * gnulib/import/alloca.in.h: Likewise.
4402         * gnulib/import/config.charset: Likewise.
4403         * gnulib/import/fnmatch.c: Likewise.
4404         * gnulib/import/fnmatch.in.h: Likewise.
4405         * gnulib/import/fnmatch_loop.c: Likewise.
4406         * gnulib/import/localcharset.c: Likewise.
4407         * gnulib/import/localcharset.h: Likewise.
4408         * gnulib/import/m4/alloca.m4: Likewise.
4409         * gnulib/import/m4/codeset.m4: Likewise.
4410         * gnulib/import/m4/configmake.m4: Likewise.
4411         * gnulib/import/m4/fcntl-o.m4: Likewise.
4412         * gnulib/import/m4/fnmatch.m4: Likewise.
4413         * gnulib/import/m4/glibc21.m4: Likewise.
4414         * gnulib/import/m4/localcharset.m4: Likewise.
4415         * gnulib/import/m4/locale-fr.m4: Likewise.
4416         * gnulib/import/m4/locale-ja.m4: Likewise.
4417         * gnulib/import/m4/locale-zh.m4: Likewise.
4418         * gnulib/import/m4/mbrtowc.m4: Likewise.
4419         * gnulib/import/m4/mbsinit.m4: Likewise.
4420         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4421         * gnulib/import/m4/mbstate_t.m4: Likewise.
4422         * gnulib/import/m4/stdbool.m4: Likewise.
4423         * gnulib/import/m4/wchar_h.m4: Likewise.
4424         * gnulib/import/m4/wctype_h.m4: Likewise.
4425         * gnulib/import/m4/wint_t.m4: Likewise.
4426         * gnulib/import/mbrtowc.c: Likewise.
4427         * gnulib/import/mbsinit.c: Likewise.
4428         * gnulib/import/mbsrtowcs-impl.h: Likewise.
4429         * gnulib/import/mbsrtowcs-state.c: Likewise.
4430         * gnulib/import/mbsrtowcs.c: Likewise.
4431         * gnulib/import/ref-add.sin: Likewise.
4432         * gnulib/import/ref-del.sin: Likewise.
4433         * gnulib/import/stdbool.in.h: Likewise.
4434         * gnulib/import/streq.h: Likewise.
4435         * gnulib/import/strnlen1.c: Likewise.
4436         * gnulib/import/strnlen1.h: Likewise.
4437         * gnulib/import/verify.h: Likewise.
4438         * gnulib/import/wchar.in.h: Likewise.
4439         * gnulib/import/wctype.in.h: Likewise.
4440
4441 2012-07-02  Jan Kratochvil  <[email protected]>
4442
4443         Support shell wildcards for 'set auto-load safe-path'.
4444         * auto-load.c: Include fnmatch.h.
4445         (filename_is_in_dir): Rename to ...
4446         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4447         it.  Update function comment.  Rename dir_len to pattern_len.  New
4448         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
4449         messages.  Use gdb_filename_fnmatch.
4450         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4451         pattern.
4452         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4453         * defs.h (gdb_filename_fnmatch): New declaration.
4454         * utils.c: Include fnmatch.h.
4455         (gdb_filename_fnmatch): New function.
4456
4457 2012-07-02  Sergio Durigan Junior  <[email protected]>
4458
4459         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4460         `-probe' and `-probe-stap' options.
4461
4462 2012-07-01  Yao Qi  <[email protected]>
4463
4464         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4465         always_inserted_off, and always_inserted_enums.
4466         Change always_inserted_mode's type to 'enum auto_boolean'.
4467         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4468         callers.
4469         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4470         of add_setshow_enum_cmd.
4471         * infrun.c: Remove can_use_displaced_stepping_auto,
4472         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4473         can_use_displaced_stepping_enum.
4474         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4475         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4476         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4477         add_setshow_enum_cmd.
4478
4479 2012-06-30  Doug Evans  <[email protected]>
4480
4481         * dwarf2read.c (signatured_type): Make "per_cu" member first.
4482         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4483         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
4484
4485 2012-06-29  Doug Evans  <[email protected]>
4486
4487         * linespec.c: #include "stack.h".
4488         (decode_line_with_current_source): Moved here from symtab.c and
4489         renamed from decode_line_spec.  All callers updated.
4490         (decode_line_with_last_displayed): Moved here from breakpoint.c and
4491         renamed from decode_line_spec_1.  All callers updated.
4492         * linespec.h (decode_line_with_current_source): Move declaration here
4493         from symtab.h and renamed from decode_line_spec.
4494         (decode_line_with_last_displayed): Move declaration here from symtab.h
4495         and renamed from decode_line_spec_1.
4496         * macrocmd.c: #include "linespec.h".
4497         * symtab.c: Remove #include "linespec.h".
4498
4499 2012-06-28  Doug Evans  <[email protected]>
4500
4501         * dwarf2read.c (get_cu_length): New function.
4502         (offset_in_cu_p, error_check_comp_unit_head): Call it.
4503         (create_debug_types_hash_table): Ditto.
4504         (init_cutu_and_read_dies): Ditto.
4505         (init_cutu_and_read_dies_no_follow): Ditto.
4506
4507         * dwarf2read.c (dwarf2_find_base_address): Move definition.
4508
4509         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4510         (struct abbrev_table): Define.
4511         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4512         abbrev_table.
4513         (init_cutu_and_read_dies): Update.
4514         (abbrev_table_alloc_abbrev): New function.  Replaces
4515         dwarf_alloc_abbrev.  All callers updated.
4516         (abbrev_table_add_abbrev): New function.
4517         (abbrev_table_lookup_abbrev): New function.  Replaces
4518         dwarf2_lookup_abbrev.  All callers updated.
4519         (abbrev_table_read_table): New function.  Contents moved here from
4520         dwarf2_read_abbrevs.
4521         (dwarf2_read_abbrevs): Call it.
4522         (abbrev_table_free): New function.
4523         (dwarf2_free_abbrev_table): Call it.
4524
4525 2012-06-28  Stan Shebs  <[email protected]>
4526
4527         * osdata.c (info_osdata_command): Filter out "Title" columns
4528         from non-MI uses.
4529         * common/linux-osdata.c (struct osdata_type): Add title field.
4530         (osdata_table): Add titles to each entry.
4531         (linux_command_xfer_osdata): Add a column for title data.
4532
4533 2012-06-28  Stan Shebs  <[email protected]>
4534
4535         Make logging work for MI.
4536         * NEWS: Mention it.
4537         * interps.h (interp_set_logging_ftype): New typedef.
4538         (struct interp_procs): New field set_logging_proc.
4539         (current_interp_set_logging): Declare.
4540         * interps.c (current_interp_set_logging): New function.
4541         * cli/cli-logging.c: Include interps.h.
4542         (set_logging_redirect): Call current_interp_set_logging.
4543         (pop_output_files): Ditto.
4544         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4545         * mi/mi-console.h (mi_console_set_raw): Declare.
4546         * mi/mi-console.c (mi_console_set_raw): New function.
4547         * mi/mi-interp.c (saved_raw_stdout): New global.
4548         (mi_set_logging): New function.
4549         (_initialize_mi_interp): Add it to interp procs.
4550
4551 2012-06-28  Doug Evans  <[email protected]>
4552
4553         * symtab.c (lookup_symbol_aux_objfile): Use
4554         ALL_OBJFILE_PRIMARY_SYMTABS.
4555
4556         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4557
4558 2012-06-28  Jan Kratochvil  <[email protected]>
4559
4560         * common/buffer.c: Include inttypes.h and stdint.h.
4561         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4562
4563 2012-06-28  Jan Kratochvil  <[email protected]>
4564             Pedro Alves  <[email protected]>
4565
4566         * gdbthread.h (ALL_THREADS): New macro.
4567         (thread_list): Declare.
4568         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4569         going, but instead fall through to the stepping handling.
4570         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
4571         the passed in signal.  Adjust debug output.
4572         (resume_callback): Rename to ...
4573         (linux_nat_resume_callback): ... this.  Pass the thread's last
4574         stop signal, if in "pass" state.
4575         (linux_nat_resume): Adjust to rename.
4576         (stop_wait_callback): New assertion.  Don't respawn signals;
4577         instead let the LWP remain with SIGNALLED set.
4578         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4579         * remote.c (append_pending_thread_resumptions): New.
4580         (remote_vcont_resume): Call it.
4581         * target.h (target_resume): Extend comment.
4582
4583 2012-06-28  Iain Sandoe  <[email protected]>
4584
4585         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4586
4587 2012-06-27  Doug Evans  <[email protected]>
4588
4589         * dwarf2read.c (dwarf2_cu): Add ranges_base.
4590         Delete have_addr_base, unused.  All uses updated.
4591         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4592         (dwarf2_get_pc_bounds): Add ranges_base.
4593         (dwarf2_record_block_ranges): Ditto.
4594
4595 2012-06-27  Tom Tromey  <[email protected]>
4596
4597         PR macros/7961:
4598         * varobj.c (varobj_create): Update.
4599         (varobj_set_value): Update.
4600         * tracepoint.c (validate_actionline): Update.
4601         (encode_actions_1): Update.
4602         * parse.c (parse_exp_1): Add 'pc' argument.
4603         (parse_exp_in_context): Add 'pc' argument.  Change how
4604         expression_context_pc is set.
4605         (parse_expression): Update.
4606         (parse_field_expression): Update.
4607         * expression.h (parse_exp_1): Update.
4608         * eval.c (parse_to_comma_and_eval): Update.
4609         * breakpoint.c (set_breakpoint_condition): Update.
4610         (update_watchpoint): Update.
4611         (init_breakpoint_sal): Update
4612         (find_condition_and_thread): Update.
4613         (watch_command_1): Update.
4614         (update_breakpoint_locations): Update.
4615         * ada-lang.c (ada_read_renaming_var_value): Update.
4616         (create_excep_cond_exprs): Update.
4617
4618 2012-06-27  Doug Evans  <[email protected]>
4619
4620         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4621         type units.
4622
4623 2012-06-26  Doug Evans  <[email protected]>
4624
4625         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4626         prototype.
4627         (error_check_comp_unit_head): New arg abbrev_section.  All callers
4628         updated.
4629         (read_and_check_comp_unit_head): Ditto.
4630         (read_and_check_type_unit_head): Ditto.
4631
4632 2012-06-26  Siva Chandra Reddy  <[email protected]>
4633
4634         New attribute 'last' for gdb.Symtab_and_line.
4635         * NEWS (Python Scripting): Add entry about the new attribute.
4636         * python/py-symtab.c (salpy_get_last): New function which
4637         implements the get method for the 'last' attribute of
4638         gdb.Symtab_and_line.
4639         (sal_object_getset): Add entry for the 'last' attribute.
4640
4641 2012-06-26  Doug Evans  <[email protected]>
4642
4643         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4644         (dwo_sections): Add macinfo, macro.
4645         (dwarf2_locate_dwo_sections): Watch for macro sections.
4646         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4647         All callers updated.  Handle DWO files.
4648
4649         * NEWS: Mention new options "set debug dwarf2-read" and
4650         "set debug symtab-create".
4651         * dwarf2read.c (dwarf2_read_debug): New static global.
4652         (dwarf2_build_psymtabs_hard): Add debugging printfs.
4653         (process_queue): Ditto.
4654         (process_full_comp_unit): Ditto.
4655         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4656         * elfread.c (elf_symfile_read): Add debugging printf.
4657         * minsyms.c (install_minimal_symbols): Ditto.
4658         * psymtab.c (allocate_psymtab): Ditto.
4659         * symfile.c (allocate_symtab): Ditto.
4660         * symtab.c (symtab_create_debug): New global.
4661         (_initialize_symtab): Add new option "set debug symtab-create".
4662         * symtab.h (symtab_create_debug): Declare.
4663
4664         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4665         (lookup_dwo_type_unit): Ditto.
4666
4667 2012-06-26  Roland McGrath  <[email protected]>
4668             H.J. Lu  <[email protected]>
4669
4670         * amd64-linux-nat.c: Include <sys/user.h>.
4671         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4672         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4673         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4674
4675         * configure.ac: Check if the fs_base and gs_base members of
4676         `struct user_regs_struct' exist.
4677         * config.in: Regenerated.
4678         * configure: Likewise.
4679
4680 2012-06-25  Michael Eager  <[email protected]>
4681
4682         PR python/14291
4683         * python/python.c (gdbpy_write): Check for interrupted output.
4684
4685 2012-06-25  Greta Yorsh  <[email protected]>
4686
4687         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4688         register as a stack alignment in ARM mode.
4689
4690 2012-06-24  Jan Kratochvil  <[email protected]>
4691
4692         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4693         * gnulib/config.in: Regenerate.
4694         * gnulib/configure: Likewise.
4695         * gnulib/import/m4/extensions.m4: Update it.
4696         * gnulib/import/m4/gnulib-common.m4: Likewise.
4697         * gnulib/import/m4/memmem.m4: Likewise.
4698         * gnulib/import/m4/mmap-anon.m4: Likewise.
4699         * gnulib/import/m4/multiarch.m4: Likewise.
4700         * gnulib/import/stdint.in.h: Likewise.
4701
4702 2012-06-24  Yao Qi  <[email protected]>
4703
4704         * corefile.c (write_memory_with_notification): New.
4705         * gdbcore.h: Declare write_memory_with_notification.
4706         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4707         'observer_notify_memory_changed' with 'write_memory_with_notification'.
4708         * valops.c (value_assign): Likewise.
4709         * python/py-inferior.c (infpy_write_memory): Call
4710         'write_memory_with_notification'.
4711
4712 2012-06-24  Jan Kratochvil  <[email protected]>
4713
4714         * cc-with-index.sh: Use also -ex "set auto-load no".
4715
4716 2012-06-23  Doug Evans  <[email protected]>
4717
4718         PR 14125
4719         * NEWS: Document additions to .gdb_index.
4720         * dwarf2read.c: #include "gdb/gdb-index.h".
4721         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4722         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4723         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4724         (dwarf2_read_index): Recognize version 7.
4725         (dw2_do_expand_symtabs_matching): New args want_specific_block,
4726         block_kind, domain): All callers updated.
4727         (dw2_find_symbol_file): Handle new index CU values.
4728         (dw2_expand_symtabs_matching): Match symbol kind if requested.
4729         (add_index_entry): New args is_static, kind.  All callers updated.
4730         (offset_type_compare, uniquify_cu_indices): New functions
4731         (symbol_kind): New function.
4732         (write_psymtabs_to_index): Remove duplicate CU values.
4733         (write_psymtabs_to_index): Write .gdb_index version 7.
4734
4735 2012-06-22  Joel Brobecker  <[email protected]>
4736
4737         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4738         * configure: Regenerate.
4739
4740 2012-06-20  Yao Qi  <[email protected]>
4741
4742         * python/py-inferior.c: Update comments of infpy_read_memory
4743         and infpy_write_memory.
4744
4745 2012-06-19  Tom Tromey  <[email protected]>
4746
4747         PR exp/9514:
4748         * parser-defs.h (insert_type, insert_type_address_space): Declare.
4749         (push_type_address_space): Remove.
4750         * parse.c (insert_into_type_stack): New function.
4751         (insert_type): Likewise.
4752         (insert_type_address_space): Rename from push_type_address_space.
4753         Insert tp_space_identifier.
4754         * c-exp.y (ptr_operator): New production.
4755         (abs_decl): Use ptr_operator.
4756         (space_identifier): Call insert_type_address_space.
4757         (ptype): Don't use const_or_volatile_or_space_identifier.
4758         (const_or_volatile_noopt): Call insert_type.
4759         (conversion_type_id, conversion_declarator): New productions.
4760         (operator): Use conversion_type_id.
4761
4762 2012-06-18  Doug Evans  <[email protected]>
4763
4764         * symtab.h (minimal_symbol): New member created_by_gdb.
4765         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4766         created by gdb.
4767         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4768         (search_symbols): Call it instead of lookup_symbol.
4769         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
4770
4771         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4772         Adjust address for DW_OP_GNU_addr_index.
4773         * dwarf2expr.h (dwarf_expr_context): Update comment.
4774         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4775         all callers updated.  Handle TLS vars described with
4776         DW_OP_GNU_const_index.
4777         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4778         and DW_OP_GNU_const_index.
4779         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4780
4781         * block.c (find_block_in_blockvector): Make explicit the fact that we
4782         ignore GLOBAL_BLOCK.
4783
4784 2012-06-18  Tom Tromey  <[email protected]>
4785
4786         * c-exp.y (operator): Remove trailing space after "delete" and
4787         "delete[]".
4788
4789 2012-06-18  Mark Kettenis  <[email protected]>
4790             Jan Kratochvil  <[email protected]>
4791
4792         Switch i386 and derived targets to ON_STACK.
4793         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4794         (amd64_dicos_init_abi): Remove its installment.
4795         * dicos-tdep.c (dicos_init_abi): Remove the
4796         set_gdbarch_call_dummy_location call.  Update the comment here.
4797         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4798         (i386_dicos_init_abi): Remove its installment.
4799         * i386-tdep.c (i386_push_dummy_code): New function.
4800         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4801         i386_push_dummy_code.
4802
4803 2012-06-18  Jan Kratochvil  <[email protected]>
4804
4805         Remove stale dummy frames.
4806         * breakpoint.c: Include dummy-frame.h.
4807         (longjmp_breakpoint_ops): New variable.
4808         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4809         bp_longjmp_call_dummy.
4810         (bpstat_what, bptype_string, print_one_breakpoint_location)
4811         (init_bp_location): Support bp_longjmp_call_dummy.
4812         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
4813         (set_longjmp_breakpoint_for_call_dummy)
4814         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4815         functions.
4816         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4817         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
4818         FIXME comment and extend the other comment for bp_call_dummy.
4819         (set_longjmp_breakpoint_for_call_dummy)
4820         (check_longjmp_breakpoint_for_call_dummy): New declarations.
4821         * dummy-frame.c: Include gdbthread.h.
4822         (pop_dummy_frame_bpt): New function.
4823         (pop_dummy_frame): Call pop_dummy_frame_bpt.
4824         (dummy_frame_discard): New function.
4825         (cleanup_dummy_frames): Update the comment about longjmps.
4826         * dummy-frame.h (dummy_frame_discard): New declaration.
4827         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4828         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
4829         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
4830         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4831         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
4832         keep_going if IS_LONGJMP and there is no other reason to stop.
4833
4834 2012-06-18  Greta Yorsh  <[email protected]>
4835
4836         * remote-sim.c (sim_command_completer): Initialize
4837         variable 'result'.
4838
4839 2012-06-17  Jan Kratochvil  <[email protected]>
4840
4841         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4842         * dwarf2loc.c (call_site_parameter_matches): Support
4843         CALL_SITE_PARAMETER_PARAM_OFFSET.
4844         (needs_dwarf_reg_entry_value): Push stub value.
4845         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
4846         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4847         * gdbtypes.h (enum call_site_parameter_kind): New item
4848         CALL_SITE_PARAMETER_PARAM_OFFSET.
4849         (struct call_site.parameter.u): New field param_offset.
4850
4851 2012-06-17  Jan Kratochvil  <[email protected]>
4852
4853         Code cleanup: Generalize call_site.parameter key.
4854         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4855         variable dwarf_reg.  New variable kind_u.  Update parameters to
4856         push_dwarf_reg_entry_value.
4857         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4858         * dwarf2expr.h (enum call_site_parameter_kind)
4859         (union call_site_parameter_u): Forward declarations.
4860         (struct dwarf_expr_context_funcs): Update parameters and their
4861         description for push_dwarf_reg_entry_value.
4862         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4863         * dwarf2loc.c (call_site_parameter_matches): New function.
4864         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4865         description.  Use call_site_parameter_matches.
4866         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4867         Update parameters and their description.
4868         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4869         New variable kind_u.  Adjust the caller for updated parameters.
4870         (needs_dwarf_reg_entry_value): Update parameters.
4871         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
4872         instead of attr.  Update for the changed fields of struct
4873         call_site_parameter.
4874         * gdbtypes.h: Include dwarf2expr.h.
4875         (enum call_site_parameter_kind): New.
4876         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
4877         fb_offset into new union u.
4878
4879 2012-06-16  H.J. Lu  <[email protected]>
4880
4881         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4882         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4883         for x32.
4884
4885 2012-06-16  H.J. Lu  <[email protected]>
4886
4887         * amd64-linux-nat.c (compat_x32_clock_t): New.
4888         (compat_x32_siginfo_t): Likewise.
4889         (compat_x32_siginfo_from_siginfo): Likewise.
4890         (siginfo_from_compat_x32_siginfo): Likewise.
4891         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4892         and siginfo_from_compat_x32_siginfo for x32.
4893
4894 2012-06-15  Hui Zhu  <[email protected]>
4895
4896         * tracepoint.c (tfile_xfer_partial): Add a lseek.
4897
4898 2012-06-15  H.J. Lu  <[email protected]>
4899
4900         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4901         instead of gdbarch_ptr_bit.
4902         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4903         (amd64_supply_native_gregset): Likewise.
4904         (amd64_collect_native_gregset): Likewise.
4905         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4906         (amd64_supply_xsave): Likewise.
4907         (amd64_collect_fxsave): Likewise.
4908         (amd64_collect_xsave): Likewise.
4909
4910 2012-06-15  H.J. Lu  <[email protected]>
4911
4912         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4913         (amd64_linux_read_description): Check DS segment register for
4914         x32 process.
4915
4916 2012-06-15  Tom Tromey  <[email protected]>
4917
4918         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4919         init_cutu_and_read_dies.
4920
4921 2012-06-15  Iain Sandoe <[email protected]>
4922
4923         * MAINTAINERS (Write After Approval): Add myself to the list.
4924
4925 2012-06-15  Tom Tromey  <[email protected]>
4926
4927         * valops.c (value_find_oload_method_list): Now static.
4928         * value.h (value_find_oload_method_list): Don't declare.
4929
4930 2012-06-15  Tom Tromey  <[email protected]>
4931
4932         * valops.c (find_overload_match): Use value_ind.
4933
4934 2012-06-15  Maciej W. Rozycki  <[email protected]>
4935
4936         * infrun.c (handle_inferior_event): Correct indentation.
4937
4938 2012-06-14  Doug Evans  <[email protected]>
4939
4940         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4941         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4942         All uses updated.
4943         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
4944         updated.  Handle DEBUG_LOC_START_LENGTH.
4945         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4946         (loclist_describe_location): Ditto.
4947
4948 2012-06-14  Maciej W. Rozycki  <[email protected]>
4949
4950         PR backtrace/13866
4951         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4952         after hiding inline functions.
4953
4954 2012-06-13  Joel Brobecker  <[email protected]>
4955
4956         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4957         _initialize_inf_ttrace.
4958
4959 2012-06-13  Joel Brobecker  <[email protected]>
4960
4961         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4962         _initialize_hppa_hpux_nat.
4963
4964 2012-06-13  Joel Brobecker  <[email protected]>
4965
4966         * remote-sim.c (sim_command_completer): Change type of return
4967         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
4968
4969 2012-06-13  Mark Kettenis  <[email protected]>
4970             Jan Kratochvil  <[email protected]>
4971
4972         PR tdep/14222
4973         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4974         stack on a 16-byte boundary.
4975
4976 2012-06-13  Kaushik Srenevasan  <[email protected]>
4977
4978         * jit.c (finalize_symtab): Set function's return type to 'void' by
4979         default.
4980
4981 2012-06-13  Mark Kettenis  <[email protected]>
4982             H.J. Lu  <[email protected]>
4983
4984         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4985         Move bits common to both the classic LP64 and the new x32 ILP32
4986         ABI here.
4987         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4988         (amd64_x32_linux_init_abi): New function.
4989         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4990         subtype.
4991
4992         * i386-tdep.h (i386_pseudo_register_name): New prototype.
4993         * i386-tdep.c (i386_pseudo_register_name): Make public.
4994         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4995         * amd64-tdep.c (amd64_dword_names): Add "eip".
4996         (amd64_x32_pseudo_register_type): New function
4997         (amd64_x32_init_abi): New function.
4998
4999 2012-06-13  Jan Kratochvil  <[email protected]>
5000
5001         PR build/14003
5002         * inferior.h (struct inferior_suspend_state): Comment out.
5003         (struct inferior): Comment out the field suspend.
5004         * infrun.c (struct infcall_suspend_state): Comment out the field
5005         inferior_suspend.
5006         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5007         out its assignment.
5008
5009 2012-06-13  Jan Kratochvil  <[email protected]>
5010
5011         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5012         * c-exp.y (classify_inner_name): Remove caller assumptions in the
5013         function comment.  Return ERROR for unresolved cases.  Implement
5014         returning proper NAME.
5015         (yylex): Accept also NAME from classify_inner_name.
5016         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5017         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
5018         LOC_TYPEDEF type.
5019         * cp-support.h (cp_lookup_nested_type): Update its declaration.
5020
5021 2012-06-13  Tom Tromey  <[email protected]>
5022
5023         * breakpoint.c (condition_completer): New function.
5024         (_initialize_breakpoint): Use it.
5025         * value.c (complete_internalvar): New function.
5026         * value.h (complete_internalvar): Declare.
5027
5028 2012-06-13  Tom Tromey  <[email protected]>
5029
5030         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5031         * breakpoint.c (catch_syscall_completer): Return a VEC.
5032         * cli/cli-cmds.c (complete_command): Update.
5033         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5034         (complete_on_enum): Likewise.
5035         * command.h: Include gdb_vecs.h.
5036         (completer_ftype): Change return type.
5037         (complete_on_cmdlist, complete_on_enum): Likewise.
5038         * completer.c (noop_completer, filename_completer)
5039         (location_completer): Return a VEC.
5040         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
5041         to a VEC.
5042         (expression_completer, complete_line_internal, complete_line)
5043         (command_completer): Return a VEC.
5044         (gdb_completion_word_break_characters, line_completion_function):
5045         Update.
5046         * completer.h: Include gdb_vecs.h.
5047         (complete_line, noop_completer, filename_completer)
5048         (expression_completer, location_completer, command_completer):
5049         Update.
5050         * f-lang.c (f_word_break_characters): Return a VEC.
5051         * interps.c (interpreter_completer): Return a VEC.
5052         * language.h (struct language_defn)
5053         <la_make_symbol_completion_list>: Return a VEC.
5054         * python/py-cmd.c (cmdpy_completer): Return a VEC.
5055         * symtab.c (free_completion_list): Take a VEC.
5056         (return_val_size, return_val_index): Remove.
5057         (return_val): Now a VEC.
5058         (completion_list_add_name): Update.
5059         (default_make_symbol_completion_list_break_on)
5060         (default_make_symbol_completion_list, make_symbol_completion_list)
5061         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5062         Return a VEC.
5063         (add_filename_to_list): Update.
5064         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5065         <list>: Now a VEC.
5066         (maybe_add_partial_symtab_filename): Update.
5067         (make_source_files_completion_list): Return a VEC.
5068         * symtab.h (default_make_symbol_completion_list_break_on)
5069         (default_make_symbol_completion_list, make_symbol_completion_list)
5070         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5071         (make_source_files_completion_list): Update.
5072
5073 2012-06-13  Tom Tromey  <[email protected]>
5074
5075         * breakpoint.c (add_catch_command): Use completer_ftype.
5076         * breakpoint.h: Include command.h.
5077         (add_catch_command): Use completer_ftype.
5078         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5079         * cli/cli-decode.h (struct cmd_list_element) <completer>:
5080         Use completer_ftype.
5081         * command.h (completer_ftype): New typedef.
5082         (set_cmd_completer): Use it.
5083         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5084         completer_ftype.
5085
5086 2012-06-13  Pedro Alves  <[email protected]>
5087
5088         Partial revert of previous change.
5089
5090         * serial.c (scb_base): New global.
5091         (serial_for_fd): New.
5092         (serial_open, serial_fdopen_ops): Link new serial in open serials
5093         chain.
5094         (do_serial_close): Unlink serial from the open serials chain.
5095
5096 2012-06-12  Pedro Alves  <[email protected]>
5097
5098         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5099         threads here.
5100         (prepare_for_detach): No longer context switch here in non-stop
5101         mode.
5102         (fetch_inferior_event): Ditto.
5103         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5104         to the event thread before removing breakpoints.  Switch to the
5105         event thread before inserting breakpoints and resuming.
5106         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5107         event thread before resuming.
5108         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5109         Switch to the event thread before removing breakpoints.
5110
5111 2012-06-12  Eli Zaretskii  <[email protected]>
5112
5113         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5114         special characters correctly for the Windows shells.  See
5115         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5116         report.
5117         [!__MINGW32__]: Remove extra double quote character from special
5118         characters.
5119
5120 2012-06-11  Stan Shebs  <[email protected]>
5121
5122         * ui-out.h: Remove #if 0 declarations.
5123         * ui-out.c: Remove #if 0 functions.
5124
5125 2012-06-11  Pedro Alves  <[email protected]>
5126
5127         * ser-base.c (run_async_handler_and_reschedule): New.
5128         (fd_event, push_event): Use it.
5129         * serial.c (serial_open, serial_fdopen_ops): Set the initial
5130         reference count to 1.
5131         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
5132         instead of xfree.
5133         (serial_is_open, serial_ref, serial_unref): New.
5134         * serial.h (serial_open): Adjust comment.
5135         (serial_is_open): Declare.
5136         (serial_close): Adjust comment.
5137         (serial_ref, serial_unref) Declare.
5138         (struct serial): New field 'refcnt'.
5139
5140 2012-06-11  Pedro Alves  <[email protected]>
5141
5142         Remove #if 0'd "connect" command, and unnecessary associated
5143         refcounting and serial reuse bits.
5144
5145         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5146         * serial.c (last_serial_opened): Delete.
5147         (scb_base): Delete.
5148         (serial_open): Adjust.
5149         (serial_for_fd): Delete.
5150         (serial_fdopen_ops, do_serial_close): Adjust.
5151         (serial_fdopen_ops): Adjust.
5152
5153 2012-06-11  Pedro Alves  <[email protected]>
5154
5155         * serial.c (do_serial_close): Remove early return when SCB is
5156         null.
5157
5158 2012-06-11  Tom Tromey  <[email protected]>
5159
5160         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5161
5162 2012-06-11  Jan Kratochvil  <[email protected]>
5163
5164         Fix regression by the "ambiguous linespec" series.
5165         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
5166         get_last_displayed_symtab and get_last_displayed_line and depending
5167         on CURSAL.
5168
5169 2012-06-11  Tom Tromey  <[email protected]>
5170
5171         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5172         (dw2_find_symbol_file): Use it.
5173
5174 2012-06-11  Michael Eager  <[email protected]>
5175
5176         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5177         * mips-linux-tdep.h (mips_signals): New
5178
5179 2012-06-11  Tom Tromey  <[email protected]>
5180
5181         * infrun.c (handle_inferior_event)
5182         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5183         breakpoint.
5184         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5185         exception logic in all cases.  Update comments.
5186         (insert_longjmp_resume_breakpoint): Set the exception resume
5187         breakpoint.
5188
5189 2012-06-11  Maciej W. Rozycki  <[email protected]>
5190
5191         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5192
5193 2012-06-09  Siva Chandra Reddy  <[email protected]>
5194
5195         * valarith.c (binop_types_user_defined_p): Fix a typo.
5196
5197 2012-06-08  Yao Qi  <[email protected]>
5198             Chung-Lin Tang <[email protected]>
5199
5200         * arch-utils.c (default_return_in_first_hidden_param_p): New.
5201         * arch-utils.h: Declare.
5202         * gdbarch.sh: Add return_in_first_hidden_param_p.
5203         * gdbarch.c, gdbarch.h: Regenerated.
5204         * infcall.c (call_function_by_hand): Call
5205         gdbarch_return_in_first_hidden_param_p instead of
5206         language_pass_by_reference.
5207
5208         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5209         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5210         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5211         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5212         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5213         `cplus_return_struct_by_reference'.
5214         (tic6x_return_value): Handle language cplusplus.
5215         (tic6x_return_in_first_hidden_param_p): New.
5216         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5217
5218 2012-06-07  Doug Evans  <[email protected]>
5219
5220         * dwarf2read.c (dwarf2_cu): Add comment.
5221
5222 2012-06-06  Maciej W. Rozycki  <[email protected]>
5223
5224         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5225         variable.
5226         (mips_eabi_push_dummy_call): Likewise.
5227         (mips_n32n64_push_dummy_call): Likewise.
5228         (mips_o32_push_dummy_call): Likewise.
5229         (mips_o64_push_dummy_call): Likewise.
5230
5231 2012-06-06  Maciej W. Rozycki  <[email protected]>
5232
5233         * mips-tdep.c (mips_convert_register_p): Correct coding style.
5234
5235 2012-06-06  Maciej W. Rozycki  <[email protected]>
5236
5237         * mips-tdep.c (mips_pseudo_register_type): Use
5238         mips_float_register_p.
5239
5240 2012-06-06  Pedro Alves  <[email protected]>
5241
5242         * infrun.c (handle_inferior_event): Remove calls to
5243         reinit_frame_cache that follow a context_switch call.
5244
5245 2012-06-06  Pedro Alves  <[email protected]>
5246
5247         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5248         context_switch and remove stale comment.
5249
5250 2012-06-06  Pedro Alves  <[email protected]>
5251
5252         * infrun.c (struct execution_control_state): Remove
5253         `new_thread_event' field.
5254         (handle_inferior_event): Simplify new threads handling; don't
5255         resume the inferior if we find a new thread.
5256
5257 2012-06-06  Thomas Schwinge  <[email protected]>
5258
5259         * NEWS: Document the deprecation of SH's 'regs' command.
5260         * inferior.h (all_registers_info): Add function declaration.
5261         * sh-tdep.c (sh_show_regs): Remove variable.
5262         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5263         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5264         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5265         (sh_show_regs_command): Remove functions.
5266         (sh_gdbarch_init): Don't set sh_show_regs.
5267         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5268         'info all-registers'.
5269         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5270         (sh64_show_regs): Remove functions.
5271         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5272
5273 2012-06-06  Jan Kratochvil  <[email protected]>
5274
5275         * configure.ac: Move development=true below AC_INIT.
5276         * configure: Regenerate.
5277
5278 2012-06-05  Stan Shebs  <[email protected]>
5279
5280         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5281         gdb_stdout.
5282
5283 2012-06-05  Siddhesh Poyarekar  <[email protected]>
5284
5285         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5286         argument as ssize_t.
5287         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5288         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5289         * target.c (target_read_stack, target_write_memory)
5290         (target_write_raw_memory): Likewise.
5291         * target.h (target_read_stack, target_write_memory)
5292         (target_write_raw_memory): Likewise.
5293
5294 2012-06-05  Jan Kratochvil  <[email protected]>
5295
5296         * symfile-mem.c: Change gdb_static_assert to ssize_t.
5297         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5298         * target.c (target_read_memory): Change LEN to ssize_t.
5299         * target.h (target_read_memory): Change LEN to ssize_t.
5300
5301 2012-06-05  Pedro Alves  <[email protected]>
5302
5303         PR backtrace/13866
5304
5305         * breakpoint.c (until_break_command): Only fetch the selected
5306         frame after decode_line_1.
5307
5308 2012-06-05  Joakim Tjernlund  <[email protected]>
5309
5310         * solib-svr4.c (enable_break): Don't fallback to setting the solib
5311         event breakpoint at _start, __start or main if a program
5312         interpreter is not found.
5313
5314 2012-06-05  Joel Brobecker  <[email protected]>
5315
5316         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5317         Add declaration.
5318         * windows-tdep.c: #include "objfiles.h".
5319         (windows_iterate_over_objfiles_in_search_order): New function.
5320         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5321         iterate_over_objfiles_in_search_order gdbarch method to
5322         windows_iterate_over_objfiles_in_search_order.
5323         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5324
5325 2012-06-05  Joel Brobecker  <[email protected]>
5326
5327         * gdbarch.sh: Add generation of
5328         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5329         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
5330         (iterate_over_objfiles_in_search_order): New gdbarch method.
5331         * gdbarch.h, gdbarch.c: Regenerate.
5332         * objfiles.h (default_iterate_over_objfiles_in_search_order):
5333         Add declaration.
5334         * objfiles.c (default_iterate_over_objfiles_in_search_order):
5335         New function.
5336         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5337         out of lookup_symbol_aux_symtabs.
5338         (lookup_symbol_aux_symtabs): Replace extracted-out code by
5339         call to lookup_symbol_aux_objfile.
5340         (struct global_sym_lookup_data): New type.
5341         (lookup_symbol_global_iterator_cb): New function.
5342         (lookup_symbol_global): Search for symbol using
5343         gdbarch_iterate_over_objfiles_in_search_order and
5344         lookup_symbol_global_iterator_cb.
5345         * findvar.c (struct minsym_lookup_data): New type.
5346         (minsym_lookup_iterator_cb): New function.
5347         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5348         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5349         and minsym_lookup_iterator_cb.
5350
5351 2012-06-05  Joel Brobecker  <[email protected]>
5352
5353         Revert the following patch:
5354         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5355         try locating the symbol in the symbol's own objfile first, before
5356         extending the search to all objfiles.
5357         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5358         out of lookup_symbol_aux_symtabs.
5359         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5360         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5361         Do not search EXCLUDE_OBJFILE.
5362         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5363         (lookup_symbol_global): Search for matches in the block's objfile
5364         first, before searching all other objfiles.
5365
5366 2012-06-05  Joel Brobecker  <[email protected]>
5367
5368         * breakpoint.c (find_condition_and_thread): Stop parsing
5369         as soon as the first invalid keyword is found.
5370
5371 2012-06-05  Joel Brobecker  <[email protected]>
5372
5373         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5374
5375 2012-06-05  Joel Brobecker  <[email protected]>
5376
5377         * config/djgpp/djcheck.sh: Add copyright header.
5378
5379 2012-06-05  Joel Brobecker  <[email protected]>
5380
5381         * copyright.py (update_files, main): Fix path to update-copyright
5382         script.
5383
5384 2012-06-05  Joel Brobecker  <[email protected]>
5385
5386         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5387         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5388         for which a reminder to update by hand is printed.
5389
5390 2012-06-04  Doug Evans  <[email protected]>
5391
5392         * buildsym.c (make_blockvector): Add comment.
5393
5394 2012-06-04  Pedro Alves  <[email protected]>
5395
5396         * arch-utils.c (default_gdb_signal_from_target): Delete.
5397         * arch-utils.h (default_gdb_signal_from_target): Delete.
5398         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
5399         gdbarch_gdb_signal_from_target_p.
5400         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5401         predicate).
5402         * gdbarch.h: Regenerate.
5403         * gdbarch.c: Regenerate.
5404
5405 2012-06-04  Pedro Alves  <[email protected]>
5406
5407         * gdbarch.sh (gdb_signal_from_target): Mention that the
5408         implementation of the method must be host independent.
5409         * gdbarch.h: Regenerate.
5410
5411 2012-06-04  Jan Kratochvil  <[email protected]>
5412
5413         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5414         parameters.
5415         (target_read_memory_bfd): New function.
5416         (symbol_file_add_from_memory): Use it.
5417
5418 2012-06-03  Doug Evans  <[email protected]>
5419
5420         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5421         of primary symtab.
5422         (basic_lookup_transparent_type): Ditto.
5423
5424         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5425         (ALL_PRIMARY_SYMTABS): Use it.
5426         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5427         * dwarf2read.c (dw2_find_symbol_file): Ditto.
5428         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5429         * symtab.c (lookup_symbol_aux_objfile): Ditto.
5430         (basic_lookup_transparent_type): Ditto.
5431
5432 2012-06-02  Sergio Durigan Junior  <[email protected]>
5433
5434         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
5435         it to optimize resolution of demangled name.
5436
5437 2012-06-01  Jan Kratochvil  <[email protected]>
5438
5439         * configure.ac (development): Define new variable.
5440         Call AC_CHECK_LIB for mcheck if $development.
5441         (ERROR_ON_WARNING): Enable it by default only if $development.
5442         * config.in: Regenerate.
5443         * configure: Regenerate.
5444
5445 2012-06-01  Siddhesh Poyarekar  <[email protected]>
5446
5447         * target.c (target_read_memory): Make LEN argument as size_t.
5448         * target.h (target_read_memory): Likewise.
5449
5450 2012-06-01  Jan Kratochvil  <[email protected]>
5451
5452         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5453
5454 2012-05-31  Edjunior Machado  <[email protected]>
5455
5456         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5457         BookE interface for PowerPC server processors if not available
5458         in the Linux Kernel.
5459
5460 2012-05-31  Keith Seitz  <[email protected]>
5461
5462         * linespec.c (decode_objc): Add cleanup to free
5463         INFO.FILE_SYMTABS.
5464         (find_linespec_symbols): Add cleanup to free CLASSES.
5465         * symfile.c (find_separate_debug_file_by_debuglink): Add
5466         cleanup to free DEBUGLINK.
5467         * ui-out.c (clear_header_list): No need to check if
5468         HEADER_NEXT.COLHDR is NULL.
5469         Free HEADER_NEXT.COL_NAME.
5470
5471 2012-05-31  Matthew Gretton-Dann  <[email protected]>
5472
5473         * ada-lang.c (standard_lookup): Prevent uninitialized variable
5474         warning.
5475
5476 2012-05-30  Jeff Kenton  <[email protected]>
5477
5478         * configure.host (gdb_host_cpu): Handle tilegx*.
5479         (gdb_host): Handle tilegx-*-linux*.
5480         * tilegx-linux-nat.c: New file.
5481         * config/tilegx/linux.mh: New file.
5482
5483 2012-05-30  Jeff Kenton  <[email protected]>
5484
5485         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5486         tilegx-linux-tdep.o.
5487         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5488         tilegx-linux-tdep.c.
5489         * configure.tgt: Handle tilegx-*-linux*.
5490         * tilegx-tdep.h: New file.
5491         * tilegx-tdep.c: New file.
5492         * tilegx-linux-tdep.c: New file.
5493         * regformats/reg-tilegx.dat: New file.
5494
5495 2012-05-30  Edjunior Machado  <[email protected]>
5496
5497         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5498         accounting of hw watchpoints on ppc.
5499
5500 2012-05-30  Thiago Jung Bauermann  <[email protected]>
5501
5502         * source.c (openp): Expand tilde in path entries.
5503
5504 2012-05-29  Doug Evans  <[email protected]>
5505
5506         * buildsym.c (block_compar): Fix comment.
5507         (end_symtab): Fix and clarify some comments.
5508
5509         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5510         cleanup_undefined_types.
5511         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5512         All callers updated.
5513
5514 2012-05-29  Tom Tromey  <[email protected]>
5515
5516         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5517         fails.
5518         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5519         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5520         fails.
5521         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5522         fails.
5523
5524 2012-05-29  Tristan Gingold  <[email protected]>
5525
5526         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5527         (struct darwin_info): ... New struct.
5528         (solib_darwin_pspace_data): New variable.
5529         (darwin_pspace_data_cleanup): New function.
5530         (get_darwin_info): Likewise.
5531         (darwin_dyld_version_ok, darwin_load_image_infos)
5532         (darwin_solib_get_all_image_info_addr_at_init)
5533         (darwin_solib_read_all_image_info_addr): Add info argument.
5534         Adjust code.
5535         (darwin_current_sos): Use per pspace structure.
5536         (darwin_solib_create_inferior_hook): Likewise.
5537         (darwin_clear_solib): Likewise.
5538         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5539
5540 2012-05-28  Pedro Alves  <[email protected]>
5541
5542         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5543         block that uses them.  Clear ecss before handling each event.
5544
5545 2012-05-28  Jan Kratochvil  <[email protected]>
5546
5547         * solib-svr4.c (svr4_current_sos): New comment on
5548         svr4_current_sos_via_xfer_libraries fall back.
5549
5550 2012-05-24  Jan Kratochvil  <[email protected]>
5551
5552         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
5553         it as a fallback for TYPE_IS_OPAQUE.
5554         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5555         symbols for lookup_symbol.
5556
5557 2012-05-24  John Steele Scott  <[email protected]>
5558
5559         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5560         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5561         (producer_is_gxx_lt_4_6): Move the checking and caching to...
5562         (check_producer): ... this new function, which also checks for ICC
5563         and caches the result.
5564         (producer_is_icc): New function.
5565         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5566         producer was ICC.
5567
5568 2012-05-24  Pedro Alves  <[email protected]>
5569
5570         PR gdb/7205
5571
5572         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5573         (default_gdb_signal_to_target): ... this.  Add comment.
5574         (default_gdb_signal_from_host): Rename to ...
5575         (default_gdb_signal_from_target): ... this.  Add comment.
5576         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5577         (default_gdb_signal_to_target): ... this.
5578         (default_gdb_signal_from_host): Rename to ...
5579         (default_gdb_signal_from_target): ... this.
5580         * corelow.c (core_open): Adjust to naming change.  Replace comment.
5581         * gdbarch.sh (gdb_signal_from_host): Rename to ...
5582         (gdb_signal_from_target): ... this.  Adjust to
5583         default_gdb_signal_from_host naming change.  Extend comment.
5584         (gdb_signal_to_host): Rename to ...
5585         (gdb_signal_to_target): ... this.  Adjust to
5586         default_gdb_signal_to_host naming change.
5587         * gdbarch.h, gdbarch.c: Renegerate.
5588
5589 2012-05-24  Pedro Alves  <[email protected]>
5590
5591         PR gdb/7205
5592
5593         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5594
5595 2012-05-24  Pedro Alves  <[email protected]>
5596
5597         PR gdb/7205
5598
5599         Replace target_signal with gdb_signal throughout.
5600
5601 2012-05-24  Pedro Alves  <[email protected]>
5602
5603         PR tui/14159
5604
5605         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5606         string, instead of reusing the va_list argument.
5607
5608 2012-05-24  Tom Tromey  <[email protected]>
5609
5610         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5611         Remove.
5612
5613 2012-05-23  Doug Evans  <[email protected]>
5614
5615         * symtab.c (search_symbols): Formatting fixes.
5616         (print_symbol_info): Formatting fixes.
5617
5618         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5619         int64_t change to leb128 API.
5620         (read_encoded_value, decode_frame_entry_1): Ditto.
5621         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5622         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5623         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5624         (execute_stack_op): Ditto.
5625         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5626         (safe_read_uleb128, safe_read_sleb128): Ditto.
5627         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5628         (dwarf2_compile_expr_to_ax): Ditto.
5629         (locexpr_describe_location_piece): Ditto.
5630         (disassemble_dwarf_expression): Ditto.
5631         (locexpr_describe_location_1): Ditto.
5632
5633 2012-05-23  Stan Shebs  <[email protected]>
5634             Kwok Cheung Yeung  <[email protected]>
5635
5636         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5637         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5638         (mi-cmd-info.o): New rule.
5639         * osdata.h (info_osdata_command): New declaration.
5640         * osdata.c (info_osdata_command): Change to non-static.
5641         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5642         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5643         * mi/mi-cmd-info.c: New file.
5644
5645 2012-05-23  Doug Evans  <[email protected]>
5646
5647         * symtab.c (search_symbols): Pass NULL for file_matcher to
5648         expand_symtabs_matching if there are no files to match.
5649
5650         * gdbtypes.c (lookup_typename): Simplify.
5651
5652 2012-05-23  Pedro Alves  <[email protected]>
5653
5654         * arch-utils.h (default_target_signal_to_host): Delete.
5655         * arch-utils.c (default_target_signal_to_host): Delete.
5656         * gdbarch.sh (target_signal_to_host): Remove.
5657         * gdbarch.h, gdbarch.c: Regenerate.
5658
5659 2012-05-22  Doug Evans  <[email protected]>
5660
5661         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5662         "const gdb_byte *".
5663         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5664         (execute_cfa_program): Update to match API of leb128 functions.
5665         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5666         "const gdb_byte *".
5667         (read_unsigned_leb128, read_signed_leb128): Delete.
5668         (read_initial_length): Change type of buf argument to
5669         "const gdb_byte *".
5670         (read_encoded_value): Update to match API of leb128 functions.
5671         (decode_frame_entry): Change result to "const gdb_byte *", and
5672         similarly for "start" parameter.
5673         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
5674         (dwarf2_build_frame_info): Change local frame_ptr to
5675         "const gdb_byte *".
5676         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5677         read_uleb128, read_sleb128.  All callers updated.
5678         (safe_skip_leb128): New function.
5679         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5680         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5681         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5682         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
5683         read_uleb128, read_sleb128.
5684         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5685         (execute_stack_op): Update to match API of leb128 functions.
5686         * dwarf2expr.h: #include "leb128.h".
5687         (read_uleb128, read_sleb128): Delete.
5688         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5689         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5690         * dwarf2loc.c (debug_loc_kind): New enum.
5691         (decode_debug_loc_addresses): New function.
5692         (decode_debug_loc_dwo_addresses): New function.
5693         (dwarf2_find_location_expression): Rewrite.
5694         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5695         (locexpr_describe_location_piece): Ditto.
5696         (disassemble_dwarf_expression): Ditto.
5697         (locexpr_describe_location_1): Ditto.
5698         (loclist_describe_location): Rewrite.
5699         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5700         * dwarf2read.c (die_reader_specs): New member "buffer_end".
5701         (dwarf2_section_buffer_overflow_complaint): Renamed from
5702         dwarf2_macros_too_long_complaint.  All callers updated.
5703         (skip_leb128): Delete.
5704         (init_cu_die_reader): Initialize reader->buffer_end.
5705         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5706         (skip_form_bytes): New arg buffer_end.  All callers updated.
5707         Replace call to skip_leb128 with gdb_skip_leb128.
5708         (skip_unknown_opcode): New arg mac_end.  All callers updated.
5709         (fill_in_loclist_baton): Initialize baton->from_dwo.
5710
5711 2012-05-22  Maciej W. Rozycki  <[email protected]>
5712
5713         * mips-linux-nat.c (mips_linux_read_description): Use a more
5714         verbose error message.
5715
5716 2012-05-22  Maciej W. Rozycki  <[email protected]>
5717
5718         * NEWS: Add MIPS/Linux DSP support.
5719         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5720         (SIGCONTEXT_DSPCTL): New macro.
5721         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5722         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5723         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5724         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5725         (N64_SIGCONTEXT_HI3): Likewise.
5726         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5727         (N64_SIGCONTEXT_LO3): Likewise.
5728         (N64_SIGCONTEXT_DSPCTL): Likewise.
5729         (N64_SIGCONTEXT_FPCSR): Clarify definition.
5730         (mips_linux_o32_sigframe_init): Handle DSP registers.
5731         (mips_linux_n32n64_sigframe_init): Likewise.
5732
5733 2012-05-22  Pierre Muller  <[email protected]>
5734
5735         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5736         call to abort.
5737
5738 2012-05-22  Pedro Alves  <[email protected]>
5739
5740         * target.h (store_waitstatus): Move declaration ...
5741         * inf-child.h (store_waitstatus): ... here.
5742         * target.c: Move inclusion of gdb_wait.h, and ...
5743         (store_waitstatus): ... this ...
5744         * inf-child.c: ... here.
5745         * linux-nat.c: Include inf-child.h.
5746         * rs6000-nat.c: Include inf-child.h.
5747         * spu-linux-nat.c: Include inf-child.h.
5748
5749 2012-05-22  Pierre Muller  <[email protected]>
5750
5751         * tracepoint.c (start_tracing): Add missing i18n markup.
5752         (stop_tracing, set_trace_user): Ditto.
5753         (set_trace_notes, set_trace_stop_notes): Ditto.
5754
5755 2012-05-21  Tom Tromey  <[email protected]>
5756
5757         PR c++/7173:
5758         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5759         types.
5760         * value.h (value_cast_pointers): Update.
5761         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5762         (value_cast): Update.
5763         (update_search_result): New function.
5764         (do_search_struct_field): New, from search_struct_field.  Check
5765         for ambiguous results.
5766         (search_struct_field): Rewrite.
5767         * infcall.c (value_arg_coerce): Update.
5768         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5769         value_cast_pointers.
5770         * ada-lang.c (ada_convert_actual): Update.
5771
5772 2012-05-21  Tom Tromey  <[email protected]>
5773
5774         * macroexp.c (macro_stringify): Terminate the string.
5775
5776 2012-05-20  Jan Kratochvil  <[email protected]>
5777
5778         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5779         Describe it.
5780         * auto-load.c (auto_load_expand_dir_vars): New function.
5781         (auto_load_safe_path_vec_update): Use it, remove the
5782         substitute_path_component call thanks to it.
5783         (auto_load_objfile_script): Remove the debug_file_directory processing.
5784         Use auto_load_expand_dir_vars, remove the substitute_path_component
5785         call thanks to it.
5786         * configure: Regenerate.
5787         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5788         path.  Escape $ also for $debugdir.
5789         (--with_auto_load_safe_path): Escape $ also for $debugdir.
5790         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5791
5792 2012-05-20  Doug Evans  <[email protected]>
5793
5794         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5795         before use.  Check for symtab->includes == NULL before scanning it.
5796
5797 2012-05-18  Maciej W. Rozycki  <[email protected]>
5798
5799         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5800
5801 2012-05-18  Maciej W. Rozycki  <[email protected]>
5802
5803         * NEWS: Add microMIPS support and "set mips compression",
5804         "show mips compression" commands.
5805         * mips-tdep.h (mips_isa): New enum.
5806         (gdbarch_tdep): Add mips_isa.
5807         (mips_pc_is_mips16): Update prototype.
5808         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5809         * mips-tdep.c (mips_compression_mips16): New variable.
5810         (mips_compression_micromips): Likewise.
5811         (mips_compression_strings): Likewise.
5812         (mips_compression_string): Likewise.
5813         (is_mips16_isa, is_micromips_isa): New functions.
5814         (is_mips16_addr): Rename to...
5815         (is_compact_addr): ... this.
5816         (unmake_mips16_addr): Likewise to...
5817         (unmake_compact_addr): ... this.
5818         (make_mips16_addr): Likewise to...
5819         (make_compact_addr): ... this.
5820         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5821         functions.
5822         (mips_elf_make_msymbol_special): Handle microMIPS code.
5823         (msymbol_is_special): Rename to...
5824         (msymbol_is_mips16): ... this.
5825         (mips_make_symbol_special, mips_pc_is_mips16): Update
5826         accordingly.
5827         (msymbol_is_mips, msymbol_is_micromips): New functions.
5828         (mips16_to_32_reg): Rename to...
5829         (mips_reg3_to_reg): ... this.
5830         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5831         (mips_pc_isa): Likewise.
5832         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5833         code.
5834         (mips_fetch_instruction): Pass return status instead of printing
5835         an error message if requested.  Handle microMIPS code.  Bail out
5836         on an invalid ISA.
5837         (micromips_op): New macro.
5838         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5839         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5840         (b6s4_op, b7s3_reg): Likewise.
5841         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5842         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5843         (mips_insn_size): New function.
5844         (mips32_next_pc): Update mips_fetch_instruction call.
5845         (micromips_relative_offset7): New function.
5846         (micromips_relative_offset10): Likewise.
5847         (micromips_relative_offset16): Likewise.
5848         (micromips_pc_insn_size): Likewise.
5849         (micromips_bc1_pc): Likewise.
5850         (micromips_next_pc): Likewise.
5851         (unpack_mips16): Update mips_fetch_instruction call.
5852         (extended_mips16_next_pc): Update according to change to
5853         mips16_to_32_reg.
5854         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
5855         code.
5856         (mips16_scan_prologue): Update mips_fetch_instruction call.
5857         Update according to change to mips16_to_32_reg.
5858         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5859         (mips_insn16_frame_base_sniffer): Likewise.
5860         (micromips_decode_imm9): New function.
5861         (micromips_scan_prologue): Likewise.
5862         (mips_micro_frame_cache): Likewise.
5863         (mips_micro_frame_this_id): Likewise.
5864         (mips_micro_frame_prev_register): Likewise.
5865         (mips_micro_frame_sniffer): Likewise.
5866         (mips_micro_frame_unwind): New variable.
5867         (mips_micro_frame_base_address): New function.
5868         (mips_micro_frame_base): New variable.
5869         (mips_micro_frame_base_sniffer): New function.
5870         (mips32_scan_prologue): Update mips_fetch_instruction call.
5871         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5872         rather than for MIPS16.
5873         (mips_insn32_frame_base_sniffer): Likewise.
5874         (mips_addr_bits_remove): Handle microMIPS code.
5875         (deal_with_atomic_sequence): Rename to...
5876         (mips_deal_with_atomic_sequence): ... this.  Update the type
5877         of the variable used to hold an instruction.  Remove the ISA bit
5878         check.  Update mips_fetch_instruction call.
5879         (micromips_deal_with_atomic_sequence): New function.
5880         (deal_with_atomic_sequence): Likewise.
5881         (mips_about_to_return): Handle microMIPS code.  Update
5882         mips_fetch_instruction call.
5883         (heuristic_proc_start): Check for the standard MIPS ISA rather
5884         than for MIPS16.  Update mips_pc_is_mips16 and
5885         mips_fetch_instruction calls.  Handle microMIPS code.
5886         (mips_push_dummy_code): Handle microMIPS code.
5887         (mips_eabi_push_dummy_call): Likewise.
5888         (mips_o32_return_value): Update mips_pc_is_mips16 call.
5889         (mips_o64_push_dummy_call): Handle microMIPS code.
5890         (mips_o64_return_value): Update mips_pc_is_mips16 call.
5891         (is_delayed): Remove function.
5892         (mips_single_step_through_delay): Replace the call to is_delayed
5893         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
5894         Handle microMIPS code.
5895         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
5896         microMIPS code.
5897         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5898         call.
5899         (micromips_in_function_epilogue_p): New function.
5900         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5901         call.
5902         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5903         Handle microMIPS.
5904         (gdb_print_insn_mips): Likewise.
5905         (mips_breakpoint_from_pc): Likewise.
5906         (mips_remote_breakpoint_from_pc): New function.
5907         (mips32_instruction_has_delay_slot): Simplify making use of the
5908         updated mips_fetch_instruction interface.
5909         (micromips_instruction_has_delay_slot): New function.
5910         (mips16_instruction_has_delay_slot): Simplify making use of the
5911         updated mips_fetch_instruction interface.
5912         (mips_adjust_breakpoint_address): Check for the standard MIPS
5913         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
5914         calls.  Handle microMIPS code.
5915         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5916         (mips_skip_trampoline_code): Handle microMIPS code.
5917         (global_mips_compression): New function.
5918         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5919         file flags.  Register the microMIPS remote breakpoint handler
5920         and heuristic frame unwinder.
5921         (show_mips_compression): New function.
5922         (_initialize_mips_tdep): Add the "set mips compression" and
5923         "show mips compression" commands.
5924
5925 2012-05-18  Sergio Durigan Junior  <[email protected]>
5926
5927         * ada-lang.c:
5928         * ada-tasks.c:
5929         * ada-varobj.c:
5930         * amd64-darwin-tdep.c:
5931         * arm-symbian-tdep.c:
5932         * arm-tdep.c:
5933         * avr-tdep.c:
5934         * ax-gdb.c:
5935         * bfin-linux-tdep.c:
5936         * breakpoint.c:
5937         * c-valprint.c:
5938         * cli/cli-cmds.c:
5939         * coffread.c:
5940         * cp-support.c:
5941         * cris-tdep.c:
5942         * dwarf2-frame-tailcall.c:
5943         * dwarf2-frame.c:
5944         * dwarf2expr.c:
5945         * dwarf2loc.c:
5946         * dwarf2read.c:
5947         * elfread.c:
5948         * eval.c:
5949         * expprint.c:
5950         * f-valprint.c:
5951         * frv-tdep.c:
5952         * h8300-tdep.c:
5953         * hppa-hpux-tdep.c:
5954         * hppa-tdep.c:
5955         * hppanbsd-tdep.c:
5956         * i386-nto-tdep.c:
5957         * i386-tdep.c:
5958         * i387-tdep.c:
5959         * ia64-tdep.c:
5960         * jit.c:
5961         * linespec.c:
5962         * linux-tdep.c:
5963         * lm32-tdep.c:
5964         * m2-valprint.c:
5965         * m32c-tdep.c:
5966         * m32r-rom.c:
5967         * m32r-tdep.c:
5968         * m68k-tdep.c:
5969         * m68klinux-tdep.c:
5970         * mi/mi-main.c:
5971         * microblaze-tdep.c:
5972         * mips-linux-tdep.c:
5973         * mips-tdep.c:
5974         * mn10300-tdep.c:
5975         * p-valprint.c:
5976         * parse.c:
5977         * ppc-linux-tdep.c:
5978         * ppc-sysv-tdep.c:
5979         * printcmd.c:
5980         * python/py-finishbreakpoint.c:
5981         * python/py-inferior.c:
5982         * python/py-infthread.c:
5983         * python/py-type.c:
5984         * python/python.c:
5985         * remote-fileio.c:
5986         * remote-m32r-sdi.c:
5987         * remote-mips.c:
5988         * reverse.c:
5989         * rl78-tdep.c:
5990         * rs6000-aix-tdep.c:
5991         * rs6000-tdep.c:
5992         * s390-tdep.c:
5993         * score-tdep.c:
5994         * sh64-tdep.c:
5995         * skip.c:
5996         * solib-darwin.c:
5997         * solib-dsbt.c:
5998         * solib-frv.c:
5999         * sparc-tdep.c:
6000         * spu-multiarch.c:
6001         * spu-tdep.c:
6002         * stack.c:
6003         * symfile.c:
6004         * symtab.c:
6005         * tic6x-tdep.c:
6006         * tracepoint.c:
6007         * v850-tdep.c:
6008         * valarith.c:
6009         * valprint.c:
6010         * value.c:
6011         * xcoffread.c:
6012         * xtensa-tdep.c:
6013         * ada-lang.c:
6014         * ada-tasks.c:
6015         * ada-varobj.c:
6016         * amd64-darwin-tdep.c:
6017         * arm-symbian-tdep.c:
6018         * arm-tdep.c: Delete unused variables.
6019
6020 2012-05-18  Jan Kratochvil  <[email protected]>
6021
6022         Rename $ddir to $datadir.
6023         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6024         * auto-load.c (auto_load_safe_path_vec_update)
6025         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6026         * configure: Regenerate.
6027         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6028         Likewise.  Remove the 'use $ddir' help string.
6029
6030 2012-05-18  Jan Kratochvil  <[email protected]>
6031
6032         * auto-load.c (show_auto_load_safe_path): Accept any combination of
6033         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6034
6035 2012-05-18  Tom Tromey  <[email protected]>
6036
6037         PR exp/13907:
6038         * valprint.h (struct value_print_options) <symbol_print>: New
6039         field.
6040         * valprint.c (user_print_options): Add default for symbol_print.
6041         (show_symbol_print): New function.
6042         (generic_val_print): Respect symbol_print.
6043         (_initialize_valprint): Add "print symbol" setting.
6044         * f-valprint.c (f_val_print): Respect symbol_print.
6045         * c-valprint.c (c_val_print): Respect symbol_print.
6046         * NEWS: Update.
6047         * printcmd.c (print_address_symbolic): Return int.  Ignore some
6048         zero-size symbols.
6049         (print_address_demangle): Return int.
6050         * defs.h: (print_address_symbolic): Return int.
6051         * value.h (print_address_demangle): Return int.
6052
6053 2012-05-18  Tom Tromey  <[email protected]>
6054
6055         * valprint.c (val_print_string): Don't print leading space.
6056         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6057         print space before string or vtbl.
6058         * m2-valprint.c (print_unpacked_pointer): Optionally print space
6059         before string.
6060         * jv-valprint.c (java_value_print): Print space before string.
6061         * go-valprint.c (print_go_string): Print space before string.
6062         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6063         space before string.
6064         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6065         space before string or vtbl.
6066         * auxv.c (fprint_target_auxv): Print space after address.
6067
6068 2012-05-18  Tom Tromey  <[email protected]>
6069
6070         * printcmd.c (print_address_demangle): Remove special case for 0.
6071
6072 2012-05-18  Tom Tromey  <[email protected]>
6073
6074         * printcmd.c (print_address_demangle): Add 'opts' argument.
6075         * p-valprint.c (pascal_val_print): Update.
6076         * jv-valprint.c (java_val_print): Update.
6077         * value.h: Update.
6078         * valprint.c (generic_val_print): Update.
6079         (print_function_pointer_address): Add 'options' argument.  Remove
6080         'addressprint' argument.  Update.
6081         * m2-valprint.c (print_unpacked_pointer): Update.
6082         * gnu-v3-abi.c (print_one_vtable): Update.
6083         (gnuv3_print_method_ptr): Update.
6084         * f-valprint.c (f_val_print): Update.
6085         * cp-valprint.c (cp_print_value_fields): Update.
6086         * valprint.h (print_function_pointer_address): Update.
6087         * c-valprint.c (c_val_print): Update.
6088
6089 2012-05-18  Tom Tromey  <[email protected]>
6090
6091         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6092         directly corresponding to the found psymtab.
6093         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6094         (dw2_find_pc_sect_symtab): Use it.
6095         * block.h (blockvector_contains_pc): Declare.
6096         * block.c (find_block_in_blockvector): New function.
6097         (blockvector_for_pc_sect): Use it.
6098         (blockvector_contains_pc): New function.
6099
6100 2012-05-18  Maciej W. Rozycki  <[email protected]>
6101
6102         * mips-tdep.h (mips_write_pc): New prototype.
6103         * mips-tdep.c (mips_write_pc): Make external, add description.
6104         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6105         add description.
6106
6107 2012-05-18  Maciej W. Rozycki  <[email protected]>
6108
6109         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6110         mips_regnum->pc.
6111         (mips_unwind_pc, mips_write_pc): Likewise.
6112         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6113         gdbarch_read_pc.
6114
6115 2012-05-17  Joel Brobecker  <[email protected]>
6116
6117         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6118         proc_warn, proc_error, proc_get_status, proc_flags,
6119         proc_why, proc_what, proc_nsysarg, proc_sysargs,
6120         proc_set_run_on_last_close, proc_unset_run_on_last_close,
6121         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6122         proc_stop_process, proc_wait_for_stop, proc_run_process,
6123         proc_set_traced_signals, proc_set_traced_faults,
6124         proc_set_traced_sysentry, proc_set_traced_sysexit,
6125         proc_set_held_signals, proc_get_held_signals,
6126         proc_get_traced_signals, proc_get_traced_faults,
6127         proc_get_traced_sysentry, proc_get_traced_sysexit,
6128         proc_clear_current_fault, proc_set_current_signal,
6129         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6130         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6131         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6132         proc_get_current_thread, proc_get_current_thread,
6133         proc_get_current_thread, proc_update_threads,
6134         proc_update_threads, proc_update_threads, proc_update_threads,
6135         proc_iterate_over_threads, procfs_find_new_threads,
6136         procfs_pid_to_str): Make static.  Remove advance declaration.
6137         (proc_cursig): Make static.  Conditionalized defintion on
6138         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6139         (proc_syscall, proc_set_kill_on_last_close,
6140         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6141         proc_get_pending_signals, proc_get_signal_actions,
6142         proc_trace_signal, proc_ignore_signal): Delete.
6143
6144 2012-05-16  Sergio Durigan Junior  <[email protected]>
6145
6146         * coffread.c (cs_section_address): Passing proper argument for
6147         `bfd_get_section_vma'.
6148         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6149         `bfd_get_section_flags'.
6150         * remote.c (remote_trace_set_readonly_regions): Likewise, for
6151         `bfd_get_section_vma'.
6152
6153 2012-05-16  Tom Tromey  <[email protected]>
6154
6155         PR macros/13205:
6156         * macrotab.h: (macro_define_special): Declare.
6157         (enum macro_special_kind): New.
6158         (struct macro_definition) <argc, replacement>: Update comments.
6159         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6160         (macro_define_object_internal): New function.
6161         (macro_define_object): Use it.
6162         (macro_define_special): New function.
6163         (fixup_definition): New function.
6164         (macro_lookup_definition, foreach_macro_in_scope)
6165         (foreach_macro): Use fixup_definition.
6166         * macroexp.h (macro_stringify): Declare.
6167         * macroexp.c (free_buffer_return_text): New function.
6168         (stringify): Constify "arg".
6169         (macro_stringify): New function.
6170         * dwarf2read.c (macro_start_file): Call macro_define_special.
6171
6172 2012-05-16  Maciej W. Rozycki  <[email protected]>
6173             Maciej W. Rozycki  <[email protected]>
6174
6175         * breakpoint.h (bp_location): Add related_address member.
6176         * inferior.h (get_return_value): Take a pointer to struct value
6177         instead of struct type for the function requested.
6178         * value.h (using_struct_return): Likewise.
6179         * gdbarch.sh (return_value): Take a pointer to struct value
6180         instead of struct type for the function requested.
6181         * breakpoint.c (set_breakpoint_location_function): Initialize
6182         related_address for bp_gnu_ifunc_resolver breakpoints.
6183         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6184         requested function's address to gdbarch_return_value.
6185         * eval.c (evaluate_subexp_standard): Pass the requested
6186         function's address to using_struct_return.
6187         * infcall.c (call_function_by_hand): Pass the requested
6188         function's address to using_struct_return and
6189         gdbarch_return_value.
6190         * infcmd.c (get_return_value): Take a pointer to struct value
6191         instead of struct type for the function requested.
6192         (print_return_value): Update accordingly.
6193         (finish_command_continuation): Likewise.
6194         * stack.c (return_command): Pass the requested function's
6195         address to using_struct_return and gdbarch_return_value.
6196         * value.c (using_struct_return): Take a pointer to struct value
6197         instead of struct type for the function requested.  Pass the
6198         requested function's address to gdbarch_return_value.
6199         * python/py-finishbreakpoint.c (finish_breakpoint_object):
6200         New function_value member, replacing function_type.
6201         (bpfinishpy_dealloc): Update accordingly.
6202         (bpfinishpy_pre_stop_hook): Likewise.
6203         (bpfinishpy_init): Likewise.  Record the requested function's
6204         address.
6205         * mips-tdep.c (mips_fval_reg): New enum.
6206         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6207         words put in GP registers.
6208         (mips_o64_push_dummy_call): Update a comment.
6209         (mips_o32_return_value): Take a pointer to struct value instead
6210         of struct type for the function requested and use it to check if
6211         using the MIPS16 calling convention.  Return the designated
6212         general purpose registers for floating-point values returned in
6213         MIPS16 mode.
6214         (mips_o64_return_value): Likewise.
6215         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6216         (ppc_sysv_abi_broken_return_value): Likewise.
6217         (ppc64_sysv_abi_return_value): Likewise.
6218         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6219         value instead of struct type for the function requested.
6220         * amd64-tdep.c (amd64_return_value): Likewise.
6221         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6222         * arm-tdep.c (arm_return_value): Likewise.
6223         * avr-tdep.c (avr_return_value): Likewise.
6224         * bfin-tdep.c (bfin_return_value): Likewise.
6225         * cris-tdep.c (cris_return_value): Likewise.
6226         * frv-tdep.c (frv_return_value): Likewise.
6227         * h8300-tdep.c (h8300_return_value): Likewise.
6228         (h8300h_return_value): Likewise.
6229         * hppa-tdep.c (hppa32_return_value): Likewise.
6230         (hppa64_return_value): Likewise.
6231         * i386-tdep.c (i386_return_value): Likewise.
6232         * ia64-tdep.c (ia64_return_value): Likewise.
6233         * iq2000-tdep.c (iq2000_return_value): Likewise.
6234         * lm32-tdep.c (lm32_return_value): Likewise.
6235         * m32c-tdep.c (m32c_return_value): Likewise.
6236         * m32r-tdep.c (m32r_return_value): Likewise.
6237         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6238         * m68k-tdep.c (m68k_return_value): Likewise.
6239         (m68k_svr4_return_value): Likewise.
6240         * m88k-tdep.c (m88k_return_value): Likewise.
6241         * mep-tdep.c (mep_return_value): Likewise.
6242         * microblaze-tdep.c (microblaze_return_value): Likewise.
6243         * mn10300-tdep.c (mn10300_return_value): Likewise.
6244         * moxie-tdep.c (moxie_return_value): Likewise.
6245         * mt-tdep.c (mt_return_value): Likewise.
6246         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6247         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6248         (ppc_sysv_abi_broken_return_value): Likewise.
6249         (ppc64_sysv_abi_return_value): Likewise.
6250         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6251         * rl78-tdep.c (rl78_return_value): Likewise.
6252         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6253         * rx-tdep.c (rx_return_value): Likewise.
6254         * s390-tdep.c (s390_return_value): Likewise.
6255         * score-tdep.c (score_return_value): Likewise.
6256         * sh-tdep.c (sh_return_value_nofpu): Likewise.
6257         (sh_return_value_fpu): Likewise.
6258         * sh64-tdep.c (sh64_return_value): Likewise.
6259         * sparc-tdep.c (sparc32_return_value): Likewise.
6260         * sparc64-tdep.c (sparc64_return_value): Likewise.
6261         * spu-tdep.c (spu_return_value): Likewise.
6262         * tic6x-tdep.c (tic6x_return_value): Likewise.
6263         * v850-tdep.c (v850_return_value): Likewise.
6264         * vax-tdep.c (vax_return_value): Likewise.
6265         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6266         * xtensa-tdep.c (xtensa_return_value): Likewise.
6267         * gdbarch.c: Regenerate.
6268         * gdbarch.h: Regenerate.
6269
6270 2012-05-15  Tom Tromey  <[email protected]>
6271
6272         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6273
6274 2012-05-15  Joel Brobecker  <[email protected]>
6275
6276         * breakpoint.c (init_breakpoint_sal): Add quotes around part
6277         of command in two error message.
6278
6279 2012-05-15  Joel Brobecker  <[email protected]>
6280
6281         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6282
6283 2012-05-15  Joel Brobecker  <[email protected]>
6284
6285         * breakpoint.c (find_condition_and_thread): Minor reformatting.
6286
6287 2012-05-15  Jan Kratochvil  <[email protected]>
6288
6289         * NEWS (show auto-load scripts-directory): Add forgotten command.
6290
6291 2012-05-15  Jan Kratochvil  <[email protected]>
6292
6293         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6294         parameters.
6295
6296 2012-05-14  H.J. Lu  <[email protected]>
6297
6298         * amd64-tdep.c: Include features/i386/x32.c and
6299         features/i386/x32-avx.c.
6300         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6301         initialize_tdesc_x32_avx.
6302
6303 2012-05-14  Stan Shebs  <[email protected]>
6304
6305         Add dynamic printf.
6306         * breakpoint.h (enum bptype): New type bp_dprintf.
6307         (struct breakpoint): New field extra_string.
6308         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6309         (create_breakpoint): Add extra_string arg.
6310         * breakpoint.c (dprintf_breakpoint_ops): New.
6311         (is_breakpoint): Add bp_dprintf.
6312         (bpstat_what): Add dprintf case.
6313         (bptype_string): Ditto.
6314         (print_one_breakpoint_location): Ditto.
6315         (init_bp_location): Ditto.
6316         (bkpt_print_mention): Ditto.
6317         (dprintf_style_enums): New array.
6318         (dprintf_style): New global.
6319         (dprintf_function): New global.
6320         (dprintf_channel): New global.
6321         (update_dprintf_command_list): New function.
6322         (update_dprintf_commands): New function.
6323         (init_breakpoint_sal): Add extra_string argument, handle it.
6324         (create_breakpoint_sal): Add extra_string argument.
6325         (create_breakpoints_sal): Add extra_string argument, update callers.
6326         (find_condition_and_thread): Add extra argument.
6327         (create_breakpoint): Add extra_string argument, record it.
6328         (dprintf_command): New function.
6329         (break_command_1): Add arg to create_breakpoint call.
6330         (handle_gnu_v3_exceptions): Ditto.
6331         (trace_command): Ditto.
6332         (ftrace_command): Ditto.
6333         (strace_command): Ditto.
6334         (bkpt_print_mention): Add dprintf case.
6335         (create_breakpoint_sal_default): Add extra_string argument.
6336         (_initialize_breakpoint): Add new commands.
6337         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6338         * python/py-breakpoint.c (bppy_init): Ditto.
6339         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6340
6341 2012-05-14  Maciej W. Rozycki  <[email protected]>
6342
6343         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6344
6345 2012-05-14  Siva Chandra Reddy  <[email protected]>
6346
6347         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6348         unsigned long long.
6349
6350 2012-05-13  Siva Chandra Reddy  <[email protected]>
6351
6352         Add a new function gdb.find_pc_line to the Python API.
6353         * NEWS (Python Scripting): Add entry about the new function.
6354         * python/python.c (gdbpy_find_pc_line): New function which
6355         implements gdb.find_pc_line.
6356         (GdbMethods): Add entry for the new function.
6357
6358 2012-05-12  Pedro Alves  <[email protected]>
6359
6360         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6361         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6362
6363 2012-05-12  Eli Zaretskii  <[email protected]>
6364
6365         * inferior.c: Include completer.h
6366         (initialize_inferiors): Set completer of add-inferior to
6367         filename_completer.
6368
6369 2012-05-11  H.J. Lu  <[email protected]>
6370
6371         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6372         gdbarch_ptr_bit for x32 core dump.
6373
6374 2012-05-11  H.J. Lu  <[email protected]>
6375
6376         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6377         and features/i386/x32-avx-linux.c.
6378
6379 2012-05-11  Stan Shebs  <[email protected]>
6380             Kwok Cheung Yeung  <[email protected]>
6381
6382         * NEWS: Describe new info os commands.
6383         * common/linux-osdata.c (PID_T, TIME_T): Define.
6384         (MAX_PID_T_STRLEN): New.
6385         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
6386         MAX_PID_T_STRLEN.
6387         (command_from_pid): Add comment.  Change to use PID_T.
6388         (commandline_from_pid):  Change to use PID_T.
6389         (user_from_pid): Add comment.
6390         (get_process_owner): Add comment. Change to use PID_T and
6391         MAX_PID_T_STRLEN.
6392         (get_number_of_cpu_cores): Add comment.
6393         (get_cores_used_by_process): Add comment.  Change to use PID_T and
6394         MAX_PID_T_STRLEN.
6395         (linux_xfer_osdata_processes): Change to use PID_T and
6396         MAX_PID_T_STRLEN.
6397         (compare_processes): New function.
6398         (linux_xfer_osdata_processgroups): New function.
6399         (linux_xfer_osdata_threads): Change to use PID_T.
6400         (linux_xfer_osdata_fds): New function.
6401         (format_socket_state, print_sockets): New functions.
6402         (union socket_addr): New union.
6403         (linux_xfer_osdata_isockets): New function.
6404         (time_from_time_t, group_from_gid): New functions.
6405         (linux_xfer_osdata_shm): New function.
6406         (linux_xfer_osdata_sem): New function.
6407         (linux_xfer_osdata_msg): New function.
6408         (linux_xfer_osdata_modules): New function.
6409         (osdata_table): Add new entries.
6410         * common/buffer.c (buffer_xml_printf): Add support for long and
6411         long long format specifiers.
6412
6413 2012-05-11  H.J. Lu  <[email protected]>
6414
6415         * amd64-linux-tdep.h (tdesc_x32_linux): New.
6416         (tdesc_x32_avx_linux): Likewise.
6417
6418 2012-05-11  Jan Kratochvil  <[email protected]>
6419
6420         Implement multi-component --with-auto-load-dir.
6421         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6422         entries.
6423         (--with-auto-load-safe-path): Update the default value description.
6424         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6425         New.
6426         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
6427         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
6428         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
6429         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
6430         "set auto-load scripts-directory".
6431         * config.in: Regenerate.
6432         * configure: Regenerate.
6433         * configure.ac (--with-auto-load-dir): New configure option.
6434         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6435
6436 2012-05-11  Jan Kratochvil  <[email protected]>
6437
6438         Provide $ddir substitution for --with-auto-load-safe-path.
6439         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6440         entries.
6441         * auto-load.c: Include observer.h.
6442         (auto_load_safe_path_vec_update): Call substitute_path_component for
6443         each component.  New variable ddir_subst.
6444         (auto_load_gdb_datadir_changed): New function.
6445         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6446         AUTO_LOAD_SAFE_PATH.  New comment.
6447         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6448         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
6449         * config.in: Regenerate.
6450         * configure: Regenerate.
6451         * configure.ac (--auto-load-safe-path): Rename
6452         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
6453         GDB_DATADIR/auto-load.
6454         * defs.h (substitute_path_component): New declaration.
6455         * top.c: Include observer.h.
6456         (set_gdb_datadir): New function.
6457         (init_main): Install it for "set data-directory".
6458         * utils.c (substitute_path_component): New function.
6459
6460 2012-05-11  Jan Kratochvil  <[email protected]>
6461
6462         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6463         * auto-load.c (auto_load_objfile_script): Remove check for NULL
6464         DEBUG_FILE_DIRECTORY.  Handle multiple components of
6465         DEBUG_FILE_DIRECTORY.
6466
6467 2012-05-10  Tom Tromey  <[email protected]>
6468
6469         * dwarf2read.c (recursively_write_psymbols): New function.
6470         (write_psymtabs_to_index): Use it.
6471
6472         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6473         field.
6474         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6475         (load_partial_comp_unit): Update.
6476         (queue_comp_unit): Add argument 'pretend_language'.
6477         (process_queue): Update.
6478         (psymtab_to_symtab_1): Skip dependencies that have a user.
6479         (load_partial_comp_unit_reader): Give meaning to the 'data'
6480         argument.
6481         (load_full_comp_unit): Add 'pretend_language' argument.
6482         (process_full_comp_unit): Add 'pretend_language' argument.  Set
6483         language on CU.
6484         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6485         Update.
6486         (maybe_queue_comp_unit): Add 'pretend_language' argument.
6487         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6488         Update.
6489         (prepare_one_comp_unit): Add 'pretend_language' argument.
6490
6491         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6492         (struct dwarf2_per_objfile) <just_read_cus>: New field.
6493         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6494         (dw2_do_instantiate_symtab): Check whether symtab was read in
6495         before queueing.
6496         (dw2_instantiate_symtab): Add assertion.  Call
6497         process_cu_includes.
6498         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6499         (partial_symtab_p): New typedef.
6500         (set_partial_user): New function.
6501         (dwarf2_build_psymtabs_hard): Use set_partial_user.
6502         (scan_partial_symbols): Add imported CU to imported_symtabs.
6503         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6504         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6505         (get_symtab, recursively_compute_inclusions)
6506         (compute_symtab_includes, process_cu_includes)
6507         (process_imported_unit_die): New functions.
6508         (process_die) <DW_TAG_imported_unit>: New case.
6509         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6510
6511         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6512         comment.
6513         (struct partial_die_info) <locdesc>: Remove.
6514         <d>: New field.
6515         (process_psymtab_comp_unit): Add 'read_partial' argument.
6516         Update.
6517         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6518         (scan_partial_symbols): Handle DW_TAG_imported_unit.
6519         (add_partial_symbol): Update.
6520         (process_die): Handle DW_TAG_partial_unit.
6521         (read_file_scope): Update comment.
6522         (load_partial_dies): Handle DW_TAG_imported_unit.
6523         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6524         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6525
6526 2012-05-10  Tom Tromey  <[email protected]>
6527
6528         * cc-with-dwz.sh: New file.
6529
6530 2012-05-10  Tom Tromey  <[email protected]>
6531
6532         * symtab.h (struct symtab) <includes, user>: New fields.
6533         * block.h (struct block_iterator) <d, idx, which>: New fields.
6534         * block.c (initialize_block_iterator, find_iterator_symtab)
6535         (block_iterator_step, block_iter_name_step)
6536         (block_iter_match_step): New functions.
6537         (block_iterator_first, block_iterator_next)
6538         (block_iter_name_first, block_iter_name_next)
6539         (block_iter_match_first, block_iter_match_next): Rewrite.
6540         (get_block_symtab): New function.
6541
6542 2012-05-10  Tom Tromey  <[email protected]>
6543
6544         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6545         set_block_symtab.
6546         * jit.c (finalize_symtab): Use allocate_global_block,
6547         set_block_symtab.
6548         * buildsym.c (finish_block_internal): New function, from old
6549         finish_block.
6550         (finish_block): Rewrite.
6551         (end_symtab): Use finish_block_internal, set_block_symtab.
6552         * block.h (struct global_block): New.
6553         (allocate_global_block, set_block_symtab): Declare.
6554         * block.c (allocate_global_block, set_block_symtab): New
6555         functions.
6556
6557 2012-05-10  Tom Tromey  <[email protected]>
6558
6559         * psymtab.c (partial_map_expand_apply): Add assertion.
6560         (partial_map_symtabs_matching_filename): Skip included psymtabs.
6561         (psymtab_to_symtab): Find unshared psymtab.
6562         (dump_psymtab): Print including psymtabs.
6563         (recursively_search_psymtabs): New function.
6564         (expand_symtabs_matching_via_partial): Use it.
6565         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6566         fields.
6567         (enum psymtab_search_status): New.
6568
6569 2012-05-10  Tom Tromey  <[email protected]>
6570
6571         * tracepoint.c (scope_info): Update.
6572         * symtab.c (lookup_block_symbol, iterate_over_symbols)
6573         (find_pc_sect_symtab, search_symbols)
6574         (default_make_symbol_completion_list_break_on)
6575         (make_file_symbol_completion_list): Update.
6576         * symmisc.c (dump_symtab_1): Update.
6577         * stack.c (print_frame_args, iterate_over_block_locals)
6578         (print_frame_labels, iterate_over_block_arg_vars): Update.
6579         * python/py-block.c (block_object) <dict>: Remove.
6580         <block>: New field.
6581         <iter>: Change type.
6582         (blpy_iter): Update.
6583         (blpy_block_syms_iternext): Update.
6584         * psymtab.c (map_block): Use block iterators.
6585         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6586         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6587         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6588         * infrun.c (check_exception_resume): Update.
6589         * cp-support.c (make_symbol_overload_list_block): Update.
6590         * coffread.c (patch_opaque_types): Update.
6591         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6592         * block.h (struct block_iterator): New.
6593         (block_iterator_first, block_iterator_next, block_iter_name_first)
6594         (block_iter_name_next, block_iter_match_first)
6595         (block_iter_match_next): Declare.
6596         (ALL_BLOCK_SYMBOLS): Redefine.
6597         * block.c (block_iterator_first, block_iterator_next)
6598         (block_iter_name_first, block_iter_name_next)
6599         (block_iter_match_first, block_iter_match_next): New functions.
6600         * ada-lang.c (ada_add_block_symbols)
6601         (ada_make_symbol_completion_list): Use block iterator.
6602
6603 2012-05-10  Tom Tromey  <[email protected]>
6604
6605         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6606         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6607         (lookup_partial_symbol, find_last_source_symtab_from_partial)
6608         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6609         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6610         Update.
6611
6612 2012-05-10  Joel Brobecker  <[email protected]>
6613
6614         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6615         print-file-var-lib2.c, print-file-var-main.c and
6616         print-file-var.exp (located in gdb/testsuite/gdb.base).
6617
6618 2012-05-10  Joel Brobecker  <[email protected]>
6619
6620         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6621         try locating the symbol in the symbol's own objfile first, before
6622         extending the search to all objfiles.
6623         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6624         out of lookup_symbol_aux_symtabs.
6625         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6626         Replace extracted-out code by call to lookup_symbol_aux_objfile.
6627         Do not search EXCLUDE_OBJFILE.
6628         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6629         (lookup_symbol_global): Search for matches in the block's objfile
6630         first, before searching all other objfiles.
6631
6632 2012-05-10  Tristan Gingold  <[email protected]>
6633
6634         * printcmd.c (set_command): Add pre/post inc/dec.
6635
6636 2012-05-09  Frank Ch. Eigler  <[email protected]>
6637
6638         * gdb.1: Document -ex option.
6639
6640 2012-05-09  Joel Brobecker  <[email protected]>
6641
6642         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6643         * inferior.h (AT_SYMBOL): Delete.
6644
6645 2012-05-09  Joel Brobecker  <[email protected]>
6646
6647         * mips-tdep.c (mips_push_dummy_code): New function.
6648         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6649         ON_STACK and install mips_push_dummy_code as our gdbarch
6650         push_dummy_code routine.
6651
6652 2012-05-09  Pedro Alves  <[email protected]>
6653
6654         * target.c (set_maintenance_target_async_permitted): Rename to ...
6655         (set_target_async_command): ... this.
6656         (show_maintenance_target_async_permitted): Rename to ...
6657         (show_target_async_command): ... this.
6658         (initialize_targets): Adjust.
6659
6660 2012-05-08  Doug Evans  <[email protected]>
6661
6662         * go-exp.y (classify_name): Add missing assignment of fields of
6663         yylval.ssym.
6664
6665 2012-05-08  Eli Zaretskii  <[email protected]>
6666
6667         Display the ">" prompt in interactive mode while reading canned
6668         commands, even when the current interpreter is MI.
6669
6670         * interps.c (interp_set_temp): New function.
6671
6672         * interps.h (interp_set_temp): Add prototype.
6673
6674         * cli/cli-script.c (restore_interp): New cleanup function.
6675         (read_command_lines): Temporarily override the current interpreter
6676         with CLI and arrange for restoring the original one.
6677
6678 2012-05-12  Joel Sherrill <[email protected]>
6679
6680         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6681
6682 2012-05-07  Sergio Durigan Junior  <[email protected]>
6683
6684         * probe.c (parse_probes): Move conditional to check for
6685         debuginfo files from here...
6686         * stap-probe.c (stap_get_probes): ... to here.
6687
6688 2012-05-07  Mark Kettenis  <[email protected]>
6689             H.J. Lu  <[email protected]>
6690
6691         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6692         `movl %esp, %ebp' for the X32 ABI.
6693
6694 2012-05-07  Tom Tromey  <[email protected]>
6695
6696         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
6697         get_DW_TAG_name.
6698         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
6699         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
6700         (dwarf_stack_op_name): Remove.
6701         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
6702         (decode_locdesc): Use get_DW_OP_name.
6703         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6704         (dwarf2_compile_expr_to_ax): Likewise.
6705         (disassemble_dwarf_expression): Likewise.
6706         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6707
6708 2012-05-07  Chung-Lin Tang  <[email protected]>
6709
6710         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6711         (sh_linux_sigtramp_cache): New function.
6712         (sh_linux_sigreturn_init): New function.
6713         (sh_linux_rt_sigreturn_init): New function.
6714         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6715         patterns.
6716         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6717         syscall codes.
6718         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6719         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6720         (sh_linux_init_abi): Add init calls to register new tramp_frame
6721         definitions under 32-bit SH, update comments.
6722
6723 2012-05-07  Pedro Alves  <[email protected]>
6724
6725         PR gdb/10952
6726
6727         * amd64-linux-tdep.c: Include glibc-tdep.h.
6728         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6729         gdbarch_skip_solib_resolver callback.
6730
6731 2012-05-06  Jan Kratochvil  <[email protected]>
6732
6733         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6734         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6735         (show_auto_load_safe_path): Check any-directory by comparison with "/".
6736         (add_auto_load_safe_path): Change the error message.
6737         (_initialize_auto_load): Change the "safe-path" help text.
6738         * configure: Regenerate
6739         * configure.ac (--without-auto-load-safe-path): Set
6740         WITH_AUTO_LOAD_SAFE_PATH to /.
6741
6742 2012-05-05  Sergio Durigan Junior  <[email protected]>
6743
6744         * stap-probe.h: Do not include unecessary `probe.h'.
6745
6746 2012-05-05  Alan Modra  <[email protected]>
6747
6748         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6749         bfd_und_section_ptr.
6750         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6751         and bfd_com_section_ptr.
6752
6753 2012-05-04  Joel Brobecker  <[email protected]>
6754
6755         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6756
6757 2012-05-04  Joel Brobecker  <[email protected]>
6758
6759         * windows-nat.h (segment_register_p_ftype): New typedef.
6760         (windows_set_segment_register_p): Add declaration.
6761         * windows-nat.c (segment_register_p): New static global.
6762         (windows_set_segment_register_p): New function.
6763         (do_windows_fetch_inferior_registers): Add special handling
6764         for segment registers.
6765         * amd64-windows-nat.c: #include "amd64-tdep.h".
6766         (amd64_windows_segment_register_p): New function.
6767         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6768         * i386-windows-nat.c: #include "i386-tdep.h".
6769         (i386_windows_segment_register_p): New function.
6770         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6771
6772 2012-05-04  Tristan Gingold  <[email protected]>
6773
6774         * printcmd.c (set_command): Emit a warning if the expression is not
6775         an assignment.
6776
6777 2012-05-03  Joel Brobecker  <[email protected]>
6778
6779         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6780         Make static.
6781
6782 2012-05-03  Sergio Durigan Junior  <[email protected]>
6783
6784         * stap-probe.c (stap_is_operator): Change declaration.
6785         (stap_get_opcode): Change return value.
6786         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6787         `stap_parse_argument_1'.
6788
6789 2012-05-03  Pedro Alves  <[email protected]>
6790
6791         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6792         debug log.
6793
6794 2012-05-03  Siva Chandra Reddy  <[email protected]>
6795
6796         Add two new methods global_block and static_block to gdb.Symtab
6797         objects.
6798         * NEWS (Python scripting): Add entry about the new methods.
6799         * python/py-symtab.c (stpy_global_block): New function which
6800         implements the gdb.Symtab.global_block() method.
6801         (stpy_static_block): New function which implements the
6802         gdb.Symtab.static_block() method.
6803         (symtab_object_methods): Add entries for the two new methods.
6804
6805 2012-05-03  Doug Evans  <[email protected]>
6806
6807         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6808         files.
6809
6810 2012-05-03  Yao Qi  <[email protected]>
6811
6812         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6813         space.
6814         (i386_process_record): Ditto.
6815
6816 2012-05-02  Joel Brobecker  <[email protected]>
6817
6818         * infcall.c (unwind_on_signal_p): Make static.
6819
6820 2012-05-02  Joel Brobecker  <[email protected]>
6821
6822         * sol-thread.c (solaris_pid_to_str): Make static.
6823         (_initialize_sol_thread): Add prototype.
6824
6825 2012-05-02  Joel Brobecker  <[email protected]>
6826
6827         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6828
6829 2012-05-02  Christopher Faylor  <[email protected]>
6830
6831         * MAINTAINERS: Remove myself.
6832
6833 2012-05-02  Jan Kratochvil  <[email protected]>
6834
6835         Fix --without-auto-load-safe-path for MS-Windows host platform.
6836         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6837
6838 2012-05-02  Eli Zaretskii  <[email protected]>
6839
6840         * gdb_curses.h: Undefine KEY_EVENT before including curses
6841         headers.  Move "#undef MOUSE_MOVED" before any curses header
6842         inclusion.
6843
6844 2012-05-02  Sergio Durigan Junior  <[email protected]>
6845
6846         * features/i386/i386-mmx-linux.c: Regenerate.
6847         * features/rs6000/powerpc-32.c: Likewise.
6848         * features/rs6000/powerpc-32l.c: Likewise.
6849         * features/rs6000/powerpc-403.c: Likewise.
6850         * features/rs6000/powerpc-403gc.c: Likewise.
6851         * features/rs6000/powerpc-405.c: Likewise.
6852         * features/rs6000/powerpc-505.c: Likewise.
6853         * features/rs6000/powerpc-601.c: Likewise.
6854         * features/rs6000/powerpc-602.c: Likewise.
6855         * features/rs6000/powerpc-603.c: Likewise.
6856         * features/rs6000/powerpc-604.c: Likewise.
6857         * features/rs6000/powerpc-64.c: Likewise.
6858         * features/rs6000/powerpc-64l.c: Likewise.
6859         * features/rs6000/powerpc-750.c: Likewise.
6860         * features/rs6000/powerpc-860.c: Likewise.
6861         * features/rs6000/powerpc-e500.c: Likewise.
6862         * features/rs6000/powerpc-e500l.c: Likewise.
6863         * features/rs6000/powerpc-isa205-32l.c: Likewise.
6864         * features/rs6000/powerpc-isa205-64l.c: Likewise.
6865         * features/rs6000/rs6000.c: Likewise.
6866
6867 2012-05-02  Sergio Durigan Junior  <[email protected]>
6868
6869         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6870         variable.
6871         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6872         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6873         (stap_parse_argument) <e>: Likewise.
6874         (handle_stap_probe) <byte_order>: Likewise.
6875
6876 2012-04-30  Doug Evans  <[email protected]>
6877
6878         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6879         init_and_read_dies_worker.  All callers updated.
6880         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
6881         replaced with init_cutu_and_read_dies.
6882         (load_partial_comp_unit): Pass 1 for use_existing_cu.
6883         (find_partial_die): Remove FIXME.  Don't free current CU.
6884
6885 2012-04-30  Sterling Augustine  <[email protected]>
6886
6887         * contrib: New directory.
6888         * contrib/test_pubnames_and_indexes.py: New file.
6889
6890 2012-04-30  Doug Evans  <[email protected]>
6891
6892         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6893         All callers updated.
6894         (init_cu_die_reader): Verify the section is non-empty.
6895         (dwarf_decode_line_header): Don't dereference section->asection
6896         until we know the section is present.
6897
6898 2012-04-29  Sergio Durigan Junior  <[email protected]>
6899
6900         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6901         probes.
6902
6903 2012-04-29  Yao Qi  <[email protected]>
6904
6905         * gdb-code-style.el: New hook gdb-markup-hook
6906         and gdb-comment-hook.
6907
6908 2012-04-28  Doug Evans  <[email protected]>
6909
6910         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
6911         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6912         objfile->obfd.
6913         * symfile.h (dwarf2_debug_sections): New member addr.
6914         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6915         (ctx_no_get_addr_index): New function.
6916         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6917         (ctx_no_get_addr_index): Declare.
6918         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6919         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6920         (dwarf_expr_ctx_funcs): Update.
6921         (needs_get_addr_index): New function.
6922         (needs_frame_ctx_funcs): Update.
6923         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6924         * dwarf2read.c: #include "gdbcore.h".
6925         (dwarf2_per_objfile): New members addr, dwo_files.
6926         (dwarf2_elf_names): Add entry for addr.
6927         (struct dwo_section_names): New type.
6928         (dwo_section_names): New static global.
6929         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6930         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6931         old debug_types_section member updated to use this.
6932         Rename member debug_types_section to info_or_types_section,
6933         all uses updated.
6934         (signatured_type): Rename member type_offset to type_offset_in_tu,
6935         all uses updated.  New member type_offset_in_section.
6936         (struct dwo_sections): New type.
6937         (struct dwo_unit): New type.
6938         (struct dwo_file): New type.
6939         (die_reader_specs): New member dwo_file.
6940         (dwarf2_locate_sections): Watch for .debug_addr.
6941         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6942         (dwarf2_read_section): Get bfd of section from bfd's asection,
6943         instead of objfile.
6944         (create_cus_from_index): Initialize the_cu->info_or_types_section.
6945         (create_signatured_type_table_from_index): Initialize
6946         sig_type->info_or_types_section.
6947         (dw2_get_file_names): Statement lists for type units with DWO files
6948         live in the DWO file.
6949         (create_debug_types_hash_table): New function.
6950         (create_all_type_units): Rewrite.
6951         (init_cu_die_reader): New arg dwo_file, all callers updated.
6952         (init_and_read_dies_worker): Get section from
6953         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
6954         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6955         continue reading the CU/TU from there.
6956         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6957         updated.  Get section from this_cu->info_or_types_section.
6958         (create_all_comp_units): Initialize this_cu->info_or_types_section.
6959         (skip_one_die): New cases DW_FORM_GNU_addr_index,
6960         DW_FORM_GNU_str_index.
6961         (hash_dwo_file, eq_dwo_file): New functions.
6962         (allocate_dwo_file_hash_table): New function.
6963         (hash_dwo_unit, eq_dwo_unit): New functions.
6964         (allocate_dwo_unit_table): New function.
6965         (dwarf2_locate_dwo_sections): New function.
6966         (struct create_dwo_info_table_data): New type.
6967         (create_debug_info_hash_table_reader): New function.
6968         (create_debug_info_hash_table): New function.
6969         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6970         (lookup_dwo_file): New function.
6971         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6972         (free_dwo_file, free_dwo_file_cleanup): New functions.
6973         (free_dwo_file_from_slot, free_dwo_files): New functions.
6974         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6975         (dwarf2_record_block_ranges): Ditto.
6976         (read_partial_die): Ditto.
6977         (process_enumeration_scope): Update to use type_offset_in_section.
6978         (read_full_die_1): New function.
6979         (read_full_die): Rewrite.
6980         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6981         DW_FORM_GNU_str_index.
6982         (read_addr_index_1, read_addr_index): New functions.
6983         (read_addr_index_from_leb128): New function.
6984         (struct dwarf2_read_addr_index_data): New type.
6985         (dwarf2_read_addr_index_reader): New function.
6986         (dwarf2_read_addr_index): New function.
6987         (read_str_index): New function.
6988         (leb128_size): New function.
6989         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6990         If processing a type unit from a DWO file, get the line section
6991         from the DWO file.
6992         (var_decode_location): Watch for DW_OP_GNU_addr_index.
6993         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6994         DW_FORM_GNU_str_index.
6995         (lookup_die_type): Check whether section offset of type's die is
6996         known before looking it up.  Remove assert.  Condition can
6997         legimately happen for inter-cu type references.
6998         (dwarf_attr_name): Handle Fission attributes.
6999         (dwarf_form_name): Handle Fission forms.
7000         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7001         DW_FORM_GNU_str_index.
7002         (follow_die_sig): Update to use type_offset_in_section.
7003         (decode_locdesc): New case DW_OP_GNU_addr_index.
7004         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7005         DW_FORM_GNU_str_index.
7006         (cu_debug_loc_section): New function.
7007         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7008         (dwarf2_per_objfile_free): Unmap .debug_addr section.
7009         Free DWO files if present.
7010         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7011
7012         Refactor DIE reading.
7013         * dwarf2read.c (dwarf2_per_objfile): Replace members
7014         debug_info_type_hash and debug_types_type_hash with die_type_hash.
7015         (die_reader_specs): New member "die_section".  Temporarily make
7016         member "buffer" non-const, pending constifying all info_ptr uses.
7017         (die_reader_func_ftype): New typedef.
7018         (dw2_get_file_names_reader): New function.
7019         (dw2_get_file_names): Rewrite.
7020         (read_and_check_type_unit_head): Rename arg type_offset to
7021         type_offset_in_tu.
7022         (create_all_type_units): Improve debugging message.
7023         Improve dummy type unit check.
7024         (init_cu_die_reader): New arg "section".  All callers updated.
7025         (init_and_read_dies_worker): New function.
7026         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7027         (init_cutu_and_read_dies_no_follow): New function.
7028         (init_cutu_and_read_dies_simple): New function.
7029         (process_psymtab_comp_unit_reader): New function.
7030         (process_psymtab_comp_unit): Delete args section,
7031         is_debug_types_section.  Rewrite.  All callers updated.
7032         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7033         All callers updated.  Rewrite.
7034         (load_partial_comp_unit_reader): New function.
7035         (load_partial_comp_unit): Rewrite.
7036         (skip_children): New arg reader.  Delete args buffer, cu.
7037         All callers updated.
7038         (skip_one_die): New arg reader.  Delete args buffer, cu.
7039         All callers updated.
7040         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
7041         All callers updated.
7042         (load_full_comp_unit_reader): New function.
7043         (load_full_comp_unit): Rewrite.
7044         (read_comp_unit): Delete.
7045         (read_die_and_children_1): Delete, contents moved ...
7046         (read_die_and_children): ... here.
7047         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
7048         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
7049         All callers updated.
7050         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
7051         All callers updated.
7052         (find_partial_die): Rewrite load_all_dies support.
7053         (read_attribute_value): New arg reader.  Delete args abfd, cu.
7054         All callers updated.
7055         (read_attribute): New arg reader.  Delete args abfd, cu.
7056         All callers updated.
7057         (load_full_type_unit): Add assert.
7058         (read_signatured_type_reader): New function.
7059         (read_signatured_type): Rewrite.
7060         (free_stack_comp_unit): Remove call to age_cached_comp_units.
7061         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7062         All callers updated.  Set per_cu->cu = NULL after freeing it.
7063         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7064         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7065         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7066         (set_die_type): Update.
7067         (get_die_type_at_offset): Update.
7068         (read_file_scope): Call prepare_one_comp_unit.
7069         (read_type_unit_scope): Ditto.
7070         (prepare_one_comp_unit): Set producer if present.
7071
7072 2012-04-28  Sergio Durigan Junior  <[email protected]>
7073
7074         * probe.c (compile_rx_or_error): Silence ARI warning about missing
7075          gettext function on `error'.
7076
7077 2012-04-27  Doug Evans  <[email protected]>
7078
7079         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7080         is empty.
7081
7082 2012-04-27  Sergio Durigan Junior  <[email protected]>
7083             Tom Tromey  <[email protected]>
7084
7085         * breakpoint.c (struct breakpoint_objfile_data)
7086         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7087         <exception_probes>: New fields.
7088         (free_breakpoint_probes): New function.
7089         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7090         `_Unwind_DebugHook'.
7091         (create_exception_master_breakpoint): Likewise.
7092         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7093         * infrun.c: Including necessary header files for handling SystemTap
7094         probes.
7095         (handle_inferior_event): Handling longjmp breakpoint and exceptions
7096         via SystemTap probes.
7097         (check_exception_resume): Remove `func' argument.  Handle exception
7098         unwinding breakpoint set via a SystemTap probe.
7099         (insert_exception_resume_from_probe): New function.
7100
7101 2012-04-27  Sergio Durigan Junior  <[email protected]>
7102             Tom Tromey  <[email protected]>
7103             Jan Kratochvil  <[email protected]>
7104
7105         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7106         (COMMON_OBS): Likewise.
7107         (HFILES_NO_SRCDIR): Add `probe'.
7108         * NEWS: Mention support for static and SystemTap probes.
7109         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7110         SystemTap probes' arguments parser.
7111         * arm-linux-tdep.c: Including headers needed to perform the parsing
7112         of SystemTap probes' arguments.
7113         (arm_stap_is_single_operand): New function.
7114         (arm_stap_parse_special_token): Likewise.
7115         (arm_linux_init_abi): Initializing proper fields used by SystemTap
7116         probes' arguments parser.
7117         * ax-gdb.c (require_rvalue): Removing static declaration.
7118         (gen_expr): Likewise.
7119         * ax-gdb.h (gen_expr): Declaring function.
7120         (require_rvalue): Likewise.
7121         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7122         (bkpt_probe_breakpoint_ops): New variable.
7123         (momentary_breakpoint_from_master): Set the `probe' value.
7124         (add_location_to_breakpoint): Likewise.
7125         (break_command_1): Using proper breakpoint_ops according to the
7126         argument passed by the user in the command line.
7127         (bkpt_probe_insert_location): New function.
7128         (bkpt_probe_remove_location): Likewise.
7129         (bkpt_probe_create_sals_from_address): Likewise.
7130         (bkpt_probe_decode_linespec): Likewise.
7131         (tracepoint_probe_create_sals_from_address): Likewise.
7132         (tracepoint_probe_decode_linespec): Likewise.
7133         (tracepoint_probe_breakpoint_ops): New variable.
7134         (trace_command): Using proper breakpoint_ops according to the
7135         argument passed by the user in the command line.
7136         (initialize_breakpoint_ops): Initializing breakpoint_ops for
7137         static probes on breakpoints and tracepoints.
7138         * breakpoint.h (struct bp_location) <probe>: New field.
7139         * cli-utils.c (skip_spaces_const): New function.
7140         (extract_arg): Likewise.
7141         * cli-utils.h (skip_spaces_const): Likewise.
7142         (extract_arg): Likewise.
7143         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7144         * configure.ac: Append `stap-probe.o' to be generated when ELF
7145         support is present.
7146         * configure: Regenerate.
7147         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7148         * elfread.c: Include `probe.h' and `arch-utils.h'.
7149         (probe_key): New variable.
7150         (elf_get_probes): New function.
7151         (elf_get_probe_argument_count): Likewise.
7152         (elf_evaluate_probe_argument): Likewise.
7153         (elf_compile_to_ax): Likewise.
7154         (elf_symfile_relocate_probe): Likewise.
7155         (stap_probe_key_free): Likewise.
7156         (elf_probe_fns): New variable.
7157         (elf_sym_fns): Add `sym_probe_fns' value.
7158         (elf_sym_fns_lazy_psyms): Likewise.
7159         (elf_sym_fns_gdb_index): Likewise.
7160         (_initialize_elfread): Initialize objfile cache for static
7161         probes.
7162         * gdb_vecs.h (struct probe): New forward declaration.
7163         (probe_p): New VEC declaration.
7164         * gdbarch.c: Regenerate.
7165         * gdbarch.h: Regenerate.
7166         * gdbarch.sh (stap_integer_prefix): New variable.
7167         (stap_integer_suffix): Likewise.
7168         (stap_register_prefix): Likewise.
7169         (stap_register_suffix): Likewise.
7170         (stap_register_indirection_prefix): Likewise.
7171         (stap_register_indirection_suffix): Likewise.
7172         (stap_gdb_register_prefix): Likewise.
7173         (stap_gdb_register_suffix): Likewise.
7174         (stap_is_single_operand): New function.
7175         (stap_parse_special_token): Likewise.
7176         (struct stap_parse_info): Forward declaration.
7177         * i386-tdep.c: Including headers needed to perform the parsing
7178         of SystemTap probes' arguments.
7179         (i386_stap_is_single_operand): New function.
7180         (i386_stap_parse_special_token): Likewise.
7181         (i386_elf_init_abi): Initializing proper fields used by SystemTap
7182         probes' arguments parser.
7183         * i386-tdep.h (i386_stap_is_single_operand): New function.
7184         (i386_stap_parse_special_token): Likewise.
7185         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7186         * mipsread.c (ecoff_sym_fns): Likewise.
7187         * objfiles.c (objfile_relocate1): Support relocation for static
7188         probes.
7189         * parse.c (prefixify_expression): Remove static declaration.
7190         (initialize_expout): Likewise.
7191         (reallocate_expout): Likewise.
7192         * parser-defs.h (initialize_expout): Declare function.
7193         (reallocate_expout): Likewise.
7194         (prefixify_expression): Likewise.
7195         * ppc-linux-tdep.c: Including headers needed to perform the parsing
7196         of SystemTap probes' arguments.
7197         (ppc_stap_is_single_operand): New function.
7198         (ppc_stap_parse_special_token): Likewise.
7199         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7200         probes' arguments parser.
7201         * probe.c: New file, for generic statically defined probe support.
7202         * probe.h: Likewise.
7203         * s390-tdep.c: Including headers needed to perform the parsing of
7204         SystemTap probes' arguments.
7205         (s390_stap_is_single_operand): New function.
7206         (s390_gdbarch_init): Initializing proper fields used by SystemTap
7207         probes' arguments parser.
7208         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7209         * stap-probe.c: New file, for SystemTap probe support.
7210         * stap-probe.h: Likewise.
7211         * symfile.h: Include `gdb_vecs.h'.
7212         (struct sym_probe_fns): New struct.
7213         (struct sym_fns) <sym_probe_fns>: New field.
7214         * symtab.c (init_sal): Initialize `probe' field.
7215         * symtab.h (struct probe): Forward declaration.
7216         (struct symtab_and_line) <probe>: New field.
7217         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7218         locations.
7219         (stop_tracing): Likewise.
7220         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7221
7222 2012-04-27  Sergio Durigan Junior  <[email protected]>
7223             Tom Tromey  <[email protected]>
7224
7225         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7226         and to compile agent expressions.
7227         * infrun.c (siginfo_make_value): New argument `ignore'.
7228         (siginfo_funcs): New struct.
7229         (_initialize_infrun): New argument when calling
7230         `create_internalvar_type_lazy'.
7231         * thread.c (thread_id_make_value): New argument `ignore'.
7232         (thread_funcs): New struct.
7233         (_initialize_thread): New argument when calling
7234         `create_internalvar_type_lazy'.
7235         * tracepoint.c (sdata_make_value): New argument `ignore'.
7236         (sdata_funcs): New struct.
7237         (_initialize_tracepoint): New argument when calling
7238         `create_internalvar_type_lazy'.
7239         * value.c (make_value): New struct.
7240         (create_internalvar_type_lazy): New argument `data'.
7241         (compile_internalvar_to_ax): New function.
7242         (value_of_internalvar): Properly handling `make_value' case.
7243         (clear_internalvar): Likewise.
7244         (show_convenience): Adding `TRY_CATCH' block.
7245         * value.h (internalvar_make_value): Delete, replace by...
7246         (struct internalvar_funcs): ... this.
7247         (create_internalvar_type_lazy) <fun>: Delete argument.
7248         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7249         (compile_internalvar_to_ax): New function.
7250         * windows-tdep.c (tlb_make_value): New argument `ignore'.
7251         (tlb_funcs): New struct.
7252         (_initialize_windows_tdep): New argument when calling
7253         `create_internalvar_type_lazy'.
7254
7255 2012-04-27  Mark Wielaard  <[email protected]>
7256
7257         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7258         see whether it is an address or a constant offset from DW_AT_low_pc.
7259         (dwarf2_record_block_ranges): Likewise.
7260         (read_partial_die): Likewise.
7261
7262 2012-04-26  Mark Wielaard  <[email protected]>
7263
7264         * MAINTAINERS (Write After Approval): Add myself to the list.
7265
7266 2012-04-26  Maciej W. Rozycki  <[email protected]>
7267
7268         * proc-utils.h (proc_prettyprint_signalset): New prototype.
7269         (proc_prettyprint_signal): Likewise.
7270         (proc_prettyprint_faultset): Likewise.
7271         (proc_prettyprint_fault): Likewise.
7272         (proc_prettyprint_actionset): Likewise.
7273         (proc_prettyprint_flags): Move to new proc-flags.c section.
7274         (proc_prettyfprint_flags): New prototype.
7275         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7276         (proc_syscall, proc_cursig): Likewise.
7277         (proc_set_kill_on_last_close): Likewise.
7278         (proc_unset_kill_on_last_close): Likewise.
7279         (proc_set_watchpoint): Make static.
7280         (proc_delete_dead_threads): Likewise.
7281         (procfs_set_watchpoint): Likewise.
7282         (_initialize_procfs): Add prototype.
7283         * proc-events.c: Include proc-utils.h.
7284         (init_syscall_table): Make static.
7285         * proc-api.c (_initialize_proc_api): Add prototype.
7286         * proc-flags.c: Include proc-utils.h.
7287
7288 2012-04-26  Maciej W. Rozycki  <[email protected]>
7289
7290         * configure.ac: Add AC_ARG_PROGRAM.
7291         * configure: Regenerate.
7292
7293 2012-04-26  Jan Kratochvil  <[email protected]>
7294
7295         Fix DW_AT_lower_bound defaults for DWARF-4+.
7296         * dwarf2read.c (read_subrange_type): Remove initialization of low and
7297         high.  New variable low_default_is_valid.  Implement DWARF-4+
7298         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
7299         no default by the DWARF standard.
7300
7301 2012-04-26  Maciej W. Rozycki  <[email protected]>
7302             Maciej W. Rozycki  <[email protected]>
7303
7304         * infrun.c (handle_inferior_event): Move the check for return
7305         trampolines ahead of the check for function trampolines.
7306         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7307         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7308         (mips_str_mips16_ret_stub): Likewise.
7309         (mips_str_call_fp_stub): Likewise.
7310         (mips_str_call_stub): Likewise.
7311         (mips_str_fn_stub): Likewise.
7312         (mips_str_pic): Likewise.
7313         (mips_in_frame_stub): New function.
7314         (mips_unwind_pc): Return the return address rather than the PC
7315         if the PC of an intermediate frame is inside a call thunk.
7316         (mips_is_stub_suffix): New function.
7317         (mips_is_stub_mode): Likewise.
7318         (mips_get_mips16_fn_stub_pc): Likewise.
7319         (mips_skip_mips16_trampoline_code): Update to handle all the
7320         currently generated stub types.  Don't recurse into __fn_stub
7321         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
7322         Use cooked register accesses.
7323         (mips_in_return_stub): Reintroduce function.
7324         (mips_skip_trampoline_code): Traverse trampolines recursively.
7325         (mips_gdbarch_init): Handle MIPS16 return trampolines.
7326
7327 2012-04-26  Joel Brobecker  <[email protected]>
7328
7329         GDB 7.4.1 released.
7330
7331 2012-04-26  Jonathan Larmour  <[email protected]>
7332
7333         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7334         * features/arm-with-m-vfp-d16.xml: New file. Describes
7335         Cortex-M with VFPv4-sp-d16 FPU register layout.
7336         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7337         * features/arm-with-m-vfp-d16.c: New. Generated from above.
7338         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7339         (arm-register_g_packet_guesses): Add vfp-d16 guess.
7340         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7341
7342 2012-04-25  Doug Evans  <[email protected]>
7343
7344         * cli/cli-decode.c (print_doc_line): Use stream instead of
7345         current_uiout.
7346
7347 2012-04-25  Sergio Durigan Junior  <[email protected]>
7348
7349         * features/arm-with-iwmmxt.c: Regenerate.
7350         * features/arm-with-m-fpa-layout.c: Likewise.
7351         * features/arm-with-m.c: Likewise.
7352         * features/arm-with-neon.c: Likewise.
7353         * features/arm-with-vfpv2.c: Likewise.
7354         * features/arm-with-vfpv3.c: Likewise.
7355         * features/mips-dsp-linux.c: Likewise.
7356         * features/mips-linux.c: Likewise.
7357         * features/mips64-dsp-linux.c: Likewise.
7358         * features/mips64-linux.c: Likewise.
7359         * features/s390-linux32.c: Likewise.
7360         * features/s390-linux32v1.c: Likewise.
7361         * features/s390-linux32v2.c: Likewise.
7362         * features/s390-linux64.c: Likewise.
7363         * features/s390-linux64v1.c: Likewise.
7364         * features/s390-linux64v2.c: Likewise.
7365         * features/s390x-linux64.c: Likewise.
7366         * features/s390x-linux64v1.c: Likewise.
7367         * features/s390x-linux64v2.c: Likewise.
7368         * features/tic6x-c62x-linux.c: Likewise.
7369         * features/tic6x-c62x.c: Likewise.
7370         * features/tic6x-c64x-linux.c: Likewise.
7371         * features/tic6x-c64x.c: Likewise.
7372         * features/tic6x-c64xp-linux.c: Likewise.
7373         * features/tic6x-c64xp.c: Likewise.
7374         * target-descriptions.c: Only generate `field_type' and `type'
7375         variables when needed.
7376
7377 2012-04-25  Fredrik Hederstierna  <[email protected]>
7378
7379         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7380
7381 2012-04-25  Doug Evans  <[email protected]>
7382
7383         Initial pass at Go language support.
7384         * NEWS: Mention Go.
7385         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7386         go-valprint.c.
7387         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7388         (YYFILES): Add go-exp.c.
7389         (YYOBJ): Add go-exp.o.
7390         (local-maintainer-clean): Delete go-exp.c.
7391         * defs.h (enum language): Add language_go.
7392         * dwarf2read.c: #include "go-lang.h".
7393         (fixup_go_packaging): New function.
7394         (process_full_comp_unit): Call it when processing Go CUs.
7395         (dwarf2_physname): Add Go support.
7396         (read_file_scope): Handle missing language spec for GNU Go.
7397         (set_cu_language): Handle DW_LANG_Go.
7398         * go-exp.y: New file.
7399         * go-lang.h: New file.
7400         * go-lang.c: New file.
7401         * go-typeprint.c: New file.
7402         * go-valprint.c: New file.
7403         * symtab.c: #include "go-lang.h".
7404         (symbol_set_language): Handle language_go.
7405         (symbol_find_demangled_name, symbol_set_names): Ditto.
7406         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7407
7408 2012-04-24  Jim Meyering  <[email protected]>
7409
7410         avoid a few strncpy-induced buffer overruns
7411         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7412         fname and psargs before trying to concatenate.
7413         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7414         "name" before applying strchr.
7415
7416 2012-04-25  Siva Chandra Reddy  <[email protected]>
7417
7418         * CONTRIBUTE: Use unified diff instead of context diff when
7419         generating patches.
7420
7421 2012-04-24  Maciej W. Rozycki  <[email protected]>
7422
7423         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7424         code.  Handle JR.HB correctly.
7425
7426 2012-04-24  Maciej W. Rozycki  <[email protected]>
7427
7428         * mips-tdep.c
7429         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7430         with the other MIPS16 helpers.
7431
7432 2012-04-24  Sergio Durigan Junior  <[email protected]>
7433
7434         * observer.sh: Conditionally declare `args', thus cleaning up
7435         unused instances of this variable.
7436
7437 2012-04-24  Yao Qi  <[email protected]>
7438
7439         Revert this patch to allow breakpoint always-inserted
7440         in record target.
7441         2011-12-05  Pedro Alves  <[email protected]>
7442         * breakpoint.c: Include record.h.
7443         (breakpoints_always_inserted_mode): Return false when the record
7444         target is in use.
7445
7446         * breakpoint.c (iterate_over_bp_locations): New.
7447         * breakpoint.h: Declare.
7448         New typedef walk_bp_location_callback.
7449         * record.c (record_open): Call record_init_record_breakpoints.
7450         (record_sync_record_breakpoints): New.
7451         (record_init_record_breakpoints): New.
7452         * NEWS: Mention supporting breakpoint always-inserted mode in
7453         record target.
7454
7455 2012-04-24  Marc Khouzam  <[email protected]>
7456
7457         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7458         any thread.
7459
7460 2012-04-24  Yao Qi  <[email protected]>
7461
7462         * breakpoint.c (ep_is_catchpoint): Renamed to ...
7463         (is_catchpoint): ... it.
7464         (print_one_breakpoint_location): Caller update.
7465         * breakpoint.h: Update declaration.
7466
7467 2012-04-23  David S. Miller  <[email protected]>
7468
7469         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7470
7471 2012-04-23  Tom Tromey  <[email protected]>
7472
7473         * buildsym.c (add_free_pendings): Remove.
7474         * buildsym.h (add_free_pendings): Remove.
7475
7476 2012-04-23  Doug Evans  <[email protected]>
7477
7478         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7479         attr.u.unsnd instead of attr.u.addr.
7480         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7481         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7482         DW_FORM_ref_udata.
7483         (dump_die_shallow): Update cases DW_FORM_ref_addr,
7484         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
7485         DW_FORM_ref_udata.
7486         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7487
7488 2012-04-23  Maciej W. Rozycki  <[email protected]>
7489
7490         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7491         (mips_o32_return_value): Likewise.
7492         (mips_o64_return_value): Likewise.
7493
7494 2012-04-21  Paul Hilfinger  <[email protected]>
7495
7496         * ada-lang.c (ada_evaluate_subexp): Add cases for
7497         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7498         their treatment in eval.c.
7499
7500 2012-04-21  David S. Miller  <[email protected]>
7501
7502         * sparc-tdep.c (X_DISP10): Define.
7503         (sparc_analyze_control_transfer): Handle compare-and-branch.
7504
7505 2012-04-21  Jonathan Larmour  <[email protected]>
7506
7507         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7508         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7509
7510 2012-04-20  Nigel Stephens  <[email protected]>
7511             Maciej W. Rozycki  <[email protected]>
7512
7513         * mips-tdep.c (mips_float_register_p): New function.
7514         (mips_convert_register_float_case_p): Use mips_float_register_p.
7515         (mips_register_type): Likewise.
7516         (mips_print_register): Likewise.
7517         (print_gp_register_row): Likewise.
7518         (mips_print_registers_info): Likewise.
7519
7520 2012-04-20  Shun-Yen Lu  <[email protected]>
7521
7522         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7523         of mips16 symbols.
7524
7525 2012-04-20  Andrew Pinski  <[email protected]>
7526
7527         * MAINTAINERS (Write After Approval): Add myself to the list.
7528
7529 2012-04-20  Sergio Durigan Junior  <[email protected]>
7530
7531         * MAINTAINERS: Update my e-mail address.
7532
7533 2012-04-20  Pedro Alves  <[email protected]>
7534
7535         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7536         $srcdir.
7537         * configure: Regenerate.
7538
7539 2012-04-20  Sergio Durigan Junior  <[email protected]>
7540
7541         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
7542         declaration.
7543         * gdb_vecs.h: Declare `const_char_ptr' VEC.
7544
7545 2012-04-20  Jan Kratochvil  <[email protected]>
7546
7547         Fix compilation compatibility with python-2.4
7548         * python/py-type.c (convert_field): Cast ADDRSTRING for
7549         PyObject_SetAttrString as non-const.  New comment.
7550
7551 2012-04-19  Tom Tromey  <[email protected]>
7552
7553         * top.c (quit_target): Use all_cleanups.
7554         * main.c (captured_command_loop): Use all_cleanups.
7555         * exceptions.c (throw_exception): Use all_cleanups.
7556
7557 2012-04-19  Pedro Alves  <[email protected]>
7558
7559         * Makefile.in (GNULIB_BUILDDIR): New.
7560         (LIBGNU, INCGNU, GNULIB_H): Adjust.
7561         (SUBDIRS): Add $(GNULIB_BUILDDIR).
7562         (CLEANDIRS). Remove gnulib/import.
7563         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7564         (all-lib): Ditto.
7565         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7566         (gnulib/import/Makefile): Replace gnulib/import with
7567         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
7568         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7569         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
7570         acx_configure_dir.m4.
7571         * acinclude.m4: Include acx_configure_dir.m4.
7572         * acx_configure_dir.m4: New file.
7573         * aclocal.m4: Regenerate.
7574         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7575         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
7576         (GNULIB): New variable.
7577         (GNULIB_STDINT_H): Adjust.
7578         (AC_OUTPUT): Don't output gnulib/Makefile.
7579         * gdb/defs.h: Include build-gnulib/config.h.
7580         * aclocal.m4: Regenerate.
7581         * config.in: Regenerate.
7582         * configure: Regenerate.
7583
7584         * gnulib/Makefile.in: New file.
7585         * gnulib/configure.ac: New file.
7586         * gnulib/aclocal.m4: New file.
7587         * gnulib/config.in: New file.
7588         * gnulib/configure: New file.
7589         * gnulib/: Re-run gnulib-tool to adjust.
7590
7591 2012-04-19  Doug Evans  <[email protected]>
7592
7593         * cleanups.h (struct cleanup): Move to cleanups.c.
7594         (make_cleanup_dtor_ftype): New typedef.
7595         (make_cleanup_dtor): Use it.
7596         (ALL_CLEANUPS): Replace with ...
7597         (all_cleanups): ... this.  Declare.  All uses updated.
7598         * cleanups.c: #include "gdb_assert.h".
7599         (sentinel_cleanup): New static global.
7600         (SENTINEL_CLEANUP): Define.
7601         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7602         (make_my_cleanup2): Assert result is non-NULL.
7603         (all_cleanups): New function.
7604         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7605         of NULL.
7606
7607 2012-04-19  Pedro Alves  <[email protected]>
7608
7609         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7610         Adjust paths to gnulib imported files.
7611
7612 2012-04-19  Pedro Alves  <[email protected]>
7613
7614         * gnulib/: Move whole directory ...
7615         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7616         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7617         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7618         (aclocal_m4_deps): Adjust.
7619         * aclocal.m4: Regenerate.
7620         * configure: Regenerate.
7621         * configure.ac: Adjust AC_OUTPUT output.
7622
7623 2012-04-19  Yao Qi  <[email protected]>
7624
7625         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7626         (vec.o): New rule.
7627         * vec.c: Move it ...
7628         * common/vec.c: ... here.
7629         * vec.h: Move it ...
7630         * common/vec.h: ... here.
7631
7632 2012-04-19  Yao Qi  <[email protected]>
7633
7634         * gdb-code-style.el: New.
7635
7636 2012-04-18  Pedro Alves  <[email protected]>
7637
7638         Update gnulib from latest git.
7639         (639ea5ae15e39fe48d43e04864b2997301e4b969)
7640
7641         * gnulib/Makefile.am: Update.
7642         * gnulib/dummy.c: Update.
7643         * gnulib/extra/arg-nonnull.h: Update.
7644         * gnulib/extra/c++defs.h: Update.
7645         * gnulib/extra/update-copyright: Update.
7646         * gnulib/extra/warn-on-use.h: Update.
7647         * gnulib/inttypes.in.h: Update.
7648         * gnulib/m4/00gnulib.m4: Update.
7649         * gnulib/m4/extensions.m4: Update.
7650         * gnulib/m4/gnulib-cache.m4: Update.
7651         * gnulib/m4/gnulib-common.m4: Update.
7652         * gnulib/m4/gnulib-comp.m4: Update.
7653         * gnulib/m4/gnulib-tool.m4: Update.
7654         * gnulib/m4/include_next.m4: Update.
7655         * gnulib/m4/inttypes-pri.m4: Update.
7656         * gnulib/m4/inttypes.m4: Update.
7657         * gnulib/m4/longlong.m4: Update.
7658         * gnulib/m4/memchr.m4: Update.
7659         * gnulib/m4/memmem.m4: Update.
7660         * gnulib/m4/mmap-anon.m4: Update.
7661         * gnulib/m4/multiarch.m4: Update.
7662         * gnulib/m4/onceonly.m4: Update.
7663         * gnulib/m4/stddef_h.m4: Update.
7664         * gnulib/m4/stdint.m4: Update.
7665         * gnulib/m4/string_h.m4: Update.
7666         * gnulib/m4/warn-on-use.m4: Update.
7667         * gnulib/m4/wchar_h.m4: Update.
7668         * gnulib/m4/wchar_t.m4: Update.
7669         * gnulib/m4/wint_t.m4: Update.
7670         * gnulib/memchr.c: Update.
7671         * gnulib/memmem.c: Update.
7672         * gnulib/stddef.in.h: Update.
7673         * gnulib/stdint.in.h: Update.
7674         * gnulib/str-two-way.h: Update.
7675         * gnulib/string.in.h: Update.
7676         * gnulib/wchar.in.h: Update.
7677
7678         * gnulib/extra/arg-nonnull.h: Delete.
7679         * gnulib/extra/c++defs.h: Delete.
7680         * gnulib/extra/warn-on-use.h: Delete.
7681         * gnulib/m4/wchar_h.m4: Delete.
7682         * gnulib/m4/wint_t.m4: Delete.
7683         * gnulib/wchar.in.h: Delete.
7684
7685         * gnulib/extra/snippets/arg-nonnull.h: New.
7686         * gnulib/extra/snippets/c++defs.h: New.
7687         * gnulib/extra/snippets/warn-on-use.h: New.
7688
7689         * aclocal.m4: Regenerate.
7690         * config.in: Regenerate.
7691         * configure: Regenerate.
7692         * gnulib/Makefile.in: Regenerate.
7693
7694 2012-04-18  Pedro Alves  <[email protected]>
7695
7696         Reimport the update-copyright module from gnulib
7697         (250b80067c1e1d8faa0c42fb572f721975b929c5).
7698
7699         * configure: Regenerate.
7700         * gnulib/Makefile.am: Update.
7701         * gnulib/Makefile.in: Regenerate.
7702         * gnulib/extra/update-copyright: Update.
7703         * gnulib/m4/gnulib-cache.m4: Update.
7704         * gnulib/m4/gnulib-comp.m4: Update.
7705
7706 2012-04-18  Tristan Gingold  <[email protected]>
7707
7708         * configure.ac (aix): Put -lpthread into libs.
7709         * configure: Regenerate.
7710
7711 2012-04-18  Tom Tromey  <[email protected]>
7712
7713         * linespec.c (convert_linespec_to_sals): Don't use
7714         SYMBOL_OBJ_SECTION.
7715         (compare_msymbols): Arguments are minsym_and_objfile, not
7716         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
7717
7718 2012-04-18  Pedro Alves  <[email protected]>
7719
7720         Revert gnulib/ part of:
7721         2011-01-01  Joel Brobecker  <[email protected]>
7722         Copyright year update in most files (performed by copyright.sh).
7723
7724 2012-04-18  Jan Kratochvil  <[email protected]>
7725
7726         Fix 64-bit constants on 32-bit hosts.
7727         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7728         from unsigned long to ULONGEST.
7729         (read_signed_leb128): Change declaration return type from long to
7730         LONGEST.
7731         (dwarf2_const_value_attr): Change declaration parameter value from long
7732         to LONGEST.
7733         (dwarf2_compute_name): Change variable value from long to LONGEST.
7734         (read_unsigned_leb128): Change return type, variable result and some
7735         casts from unsigned long to ULONGEST.
7736         (read_signed_leb128): Change return type, variable result and some
7737         casts from long to LONGEST.
7738         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7739         value from long to LONGEST.
7740         (dwarf2_const_value): Change variable value from long to LONGEST.
7741         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7742         plongest and hex_string.
7743         * symtab.h (struct general_symbol_info): Change ivalue from long to
7744         LONGEST, remove the comment.
7745         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7746         Change SYMBOL_VALUE format strings to use plongest and hex_string.
7747
7748 2012-04-18  Siddhesh Poyarekar  <[email protected]>
7749
7750         PR symtab/7259:
7751         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7752         * ada-lang.c (ada_discrete_type_high_bound)
7753         (ada_discrete_type_low_bound): Fix function comment.  Use
7754         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7755         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7756         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7757         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7758         Use TYPE_FIELD_ENUMVAL.
7759         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7760         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7761         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7762         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
7763         TYPE_CODE_ENUM.
7764         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7765         * dwarf2read.c (process_enumeration_scope): Likewise.
7766         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7767         field.bitpos.
7768         (class StructMainTypePrettyPrinter): Support also
7769         FIELD_LOC_KIND_ENUMVAL.
7770         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7771         TYPE_CODE_ENUM.
7772         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7773         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7774         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7775         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
7776         field enumval.
7777         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7778         accommodate enumval.
7779         (struct call_site): Adjust loc_kind to accommodate enumval.
7780         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7781         (TYPE_FIELD_ENUMVAL): New macros.
7782         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7783         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7784         TYPE_CODE_ENUM.
7785         * p-typeprint.c (pascal_type_print_base): Likewise.
7786         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7787         enumval.
7788         * python/lib/gdb/types.py (make_enum_dict): Likewise.
7789         * python/py-type.c (convert_field): New variable addrstring.  Use
7790         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7791         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7792         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7793         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7794         TYPE_CODE_ENUM.
7795         * valprint.c (generic_val_print): Likewise.
7796
7797 2012-04-17  Doug Evans  <[email protected]>
7798
7799         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7800
7801         * dwarf2read.c: Whitespace fixes.
7802         (lookup_signatured_type): Tweak comment.
7803         (get_die_type_at_offset): Fix comment.
7804
7805 2012-04-17  Joel Brobecker  <[email protected]>
7806
7807         * xcoffread.c (xcoff_secnum_to_sections): New function.
7808         (secnum_to_section, secnum_to_bfd_section): Reimplement
7809         using xcoff_secnum_to_sections.  Rename "secnum" parameter
7810         into "n_scnum".
7811         (RECORD_MINIMAL_SYMBOL): Delete.
7812         (record_minimal_symbol): New function.
7813         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7814         by call to record_minimal_symbol and set misc_func_recorded
7815         to 1.  Set last_csect_sec to the XCOFF section index instead
7816         of GDB's section_offset index.  Update calls to
7817         prim_record_minimal_symbol_and_info to pass the BFD section
7818         as well.
7819
7820 2012-04-17  Joel Brobecker  <[email protected]>
7821
7822         * xcoffread.c (read_xcoff_symtab): Delete variables
7823         last_csect_val and last_csect_sec and associated code.
7824
7825 2012-04-17  Doug Evans  <[email protected]>
7826
7827         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7828         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7829         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7830         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7831
7832         * cleanups.h: New file.
7833         * cleanups.c: New file.
7834         * Makefile.in (SFILES): Add cleanups.c.
7835         (HFILES_NO_SRCDIR): Add cleanups.h.
7836         (COMMON_OBS): Add cleanups.o.
7837         * defs.h (struct cleanup): Moved to cleanups.h.
7838         (do_cleanups,do_final_cleanups): Ditto.
7839         (discard_cleanups,discard_final_cleanups): Ditto
7840         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7841         (save_cleanups,save_final_cleanups): Ditto.
7842         (restore_cleanups,restore_final_cleanups): Ditto.
7843         (null_cleanup): Ditto.
7844         (make_my_cleanup,make_my_cleanup2): Ditto.
7845         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7846         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7847         (do_cleanups,do_final_cleanups): Ditto.
7848         (discard_cleanups,discard_final_cleanups): Ditto
7849         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7850         (save_cleanups,save_final_cleanups): Ditto.
7851         (restore_cleanups,restore_final_cleanups): Ditto.
7852         (null_cleanup): Ditto.
7853         (make_my_cleanup,make_my_cleanup2): Ditto.
7854         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7855
7856         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7857         make_my_cleanup.
7858         (make_cleanup_dyn_string_delete): Ditto.
7859         (make_cleanup_ui_file_delete): Ditto.
7860         (make_cleanup_ui_out_redirect_pop): Ditto.
7861         (make_cleanup_free_section_addr_info): Ditto.
7862         (make_cleanup_restore_integer): Ditto.
7863         (make_cleanup_unpush_target): Ditto.
7864         (make_cleanup_value_free_to_mark): Ditto.
7865         (make_cleanup_value_free): Ditto.
7866         (make_cleanup_free_so): Ditto.
7867
7868 2012-04-17  Jan Kratochvil  <[email protected]>
7869
7870         New option "set debug auto-load".
7871         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7872         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7873         (auto_load_safe_path_vec_update)
7874         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7875         if DEBUG_AUTO_LOAD.
7876         (file_is_auto_load_safe): New parameters debug_fmt and ....
7877         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7878         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7879         caller by explanatory string.
7880         (_initialize_auto_load): Register "set debug auto-load".
7881         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7882         and ....
7883         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7884         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7885         by explanatory string.
7886         * main.c (captured_main): Likewise.
7887         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7888         (source_section_scripts): Likewise.
7889
7890 2012-04-17  Jan Kratochvil  <[email protected]>
7891
7892         New option "set auto-load safe-path".
7893         * NEWS: New commands "set auto-load safe-path"
7894         and "show auto-load safe-path".
7895         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7896         (auto_load_safe_path, auto_load_safe_path_vec)
7897         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7898         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7899         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7900         (source_gdb_script_for_objfile): New variable is_safe.  Call
7901         file_is_auto_load_safe.  Return if it is not.
7902         (struct loaded_script): New field loaded.
7903         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
7904         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
7905         output "Missing" to "No".
7906         (_initialize_auto_load): New variable cmd.  Initialize
7907         auto_load_safe_path.  Register "set auto-load safe-path",
7908         "show auto-load safe-path" and "add-auto-load-safe-path".
7909         * auto-load.h (maybe_add_script): Add parameter loaded.
7910         (file_is_auto_load_safe): New declaration.
7911         * config.in: Regenerate.
7912         * configure: Regenerate.
7913         * configure.ac: New parameters --with-auto-load-safe-path
7914         and --without-auto-load-safe-path.
7915         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7916         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7917         * main.c (captured_main): Check file_is_auto_load_safe for
7918         LOCAL_GDBINIT.
7919         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7920         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
7921         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
7922         not.
7923
7924 2012-04-17  Jan Kratochvil  <[email protected]>
7925
7926         auto-load: Implementation.
7927         * NEWS: New descriptions for "info auto-load",
7928         "info auto-load gdb-scripts", "info auto-load python-scripts",
7929         "info auto-load local-gdbinit" and "info auto-load libthread-db".
7930         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7931         and "show auto-load-scripts".  New description for "set auto-load",
7932         "show auto-load", "set auto-load gdb-scripts",
7933         "show auto-load gdb-scripts", "set auto-load python-scripts",
7934         "show auto-load python-scripts", "set auto-load local-gdbinit",
7935         "show auto-load local-gdbinit", "set auto-load libthread-db" and
7936         "show auto-load libthread-db".
7937         * auto-load.c: Remove include python/python-internal.h.  Add includes
7938         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7939         cli/cli-setshow.h.
7940         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7941         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7942         (gdbpy_global_auto_load): Rename to ...
7943         (global_auto_load): ... here.
7944         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7945         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7946         (script_language_gdb, source_gdb_script_for_objfile): New.
7947         (struct loaded_script): New field language.
7948         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7949         LANGUAGE.
7950         (maybe_add_script): Add parameter language.  Drop redundant
7951         entry.full_path initialization.  Initialize entry.language and
7952         (*slot)->language.
7953         (auto_load_objfile_script): Change parameter suffix to language.
7954         Remove the call of maybe_add_script.
7955         Call language->source_script_for_objfile.
7956         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7957         New.
7958         (collect_matching_scripts): Adjust it for
7959         struct collect_matching_scripts_data.
7960         (auto_load_info_scripts_pattern_nl): New variable.
7961         (info_auto_load_scripts): Rename to ...
7962         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
7963         for struct collect_matching_scripts_data.
7964         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7965         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7966         (auto_load_show_cmdlist_get, info_auto_load_cmd)
7967         (auto_load_info_cmdlist_get): New.
7968         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7969         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
7970         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7971         "info auto-load local-gdbinit".
7972         * auto-load.h (struct script_language): New.
7973         (gdbpy_global_auto_load): Rename to ...
7974         (global_auto_load): ... here.
7975         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7976         (auto_load_local_gdbinit_loaded): New declarations.
7977         (maybe_add_script): New parameter language.
7978         (auto_load_objfile_script): Change parameter suffix to language.
7979         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7980         (auto_load_info_scripts, auto_load_set_cmdlist_get)
7981         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7982         declarations.
7983         * linux-thread-db.c: Include auto-load.h and ctype.h.
7984         (auto_load_thread_db, show_auto_load_thread_db): New.
7985         (struct thread_db_info): New field filename.
7986         (delete_thread_db_info): Call xfree for FILENAME.
7987         (try_thread_db_load): Initialize FILENAME.
7988         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7989         if !AUTO_LOAD_THREAD_DB.
7990         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7991         (_initialize_thread_db): Install auto_load_thread_db
7992         as "set auto-load libthread-db" and install info_auto_load_libthread_db
7993         as "info auto-load libthread-db".
7994         * main.c (captured_main): Rename gdbpy_global_auto_load to
7995         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7996         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7997         (print_gdb_help): Extend the help for 'local init file'.
7998         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7999         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8000         (auto_load_scripts): Rename to ...
8001         (auto_load_python_scripts): ... here, update the comment.
8002         (gdbpy_load_auto_script_for_objfile): New declaration.
8003         (show_auto_load_python_scripts, script_language_python)
8004         (gdbpy_load_auto_script_for_objfile): New.
8005         (source_section_scripts): Refactor the code.
8006         (load_auto_scripts_for_objfile): Rename to ...
8007         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8008         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8009         (info_auto_load_python_scripts): New.
8010         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8011         Rename "set auto-load-scripts" to "set auto-load python-scripts".
8012         Register "set auto-load-scripts" as its deprecated alias.  Register
8013         "info auto-load python-scripts".  Register "info auto-load-scripts" as
8014         its deprecated alias.
8015         (load_auto_scripts_for_objfile): Rename to ...
8016         (gdbpy_load_auto_scripts_for_objfile): ... here.
8017         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8018         (gdbpy_load_auto_scripts_for_objfile): ... here.
8019
8020 2012-04-17  Jan Kratochvil  <[email protected]>
8021
8022         auto-load: Move files.
8023         * Makefile.in (SFILES): Add auto-load.c.
8024         (HFILES_NO_SRCDIR): Add auto-load.h.
8025         (COMMON_OBS): Add auto-load.o.
8026         (distclean): Change .gdbinit for gdb-gdb.gdb.
8027         * auto-load.c: New file, with parts from python/py-auto-load.c.
8028         * auto-load.h: New file, with parts from python/python.h.
8029         * configure: Regenerate.
8030         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8031         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8032         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8033         * main.c: Include auto-load.h.
8034         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8035         command.h, observer.h and progspace.h to auto-load.c.  Add include
8036         auto-load.h.
8037         (gdbpy_global_auto_load, struct auto_load_pspace_info)
8038         (struct loaded_script, auto_load_pspace_data)
8039         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8040         (hash_loaded_script_entry, eq_loaded_script_entry)
8041         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8042         (maybe_add_script): Move to auto-load.c.
8043         (source_section_scripts): Change maybe_add_script parameters passing,
8044         use script_not_found_warning_print.
8045         (clear_section_scripts, auto_load_objfile_script)
8046         (auto_load_new_objfile, loaded_script_ptr)
8047         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8048         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8049         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8050         auto_load_new_objfile and info_auto_load_scripts initizations to
8051         auto-load.c.
8052         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8053
8054 2012-04-17  Jan Kratochvil  <[email protected]>
8055
8056         Code cleanup.
8057         * charset.c (find_charset_names): Remove variables ix and elt.
8058         Use free_char_ptr_vec.
8059         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8060         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
8061         debugdir_end.  New variable debugdir_len.
8062         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8063         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8064         declarations.
8065         * progspace.c (clear_program_space_solib_cache): Remove variables ix
8066         and elt.  Use free_char_ptr_vec.
8067         * source.c (add_path): Remove variables argv, arg and argv_index.
8068         New variables dir_vec, back_to, ix and name.
8069         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
8070         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
8071         no longer expecting DIRNAME_SEPARATOR.
8072         (openp): Remove variable p, p1 and len.  New variables dir_vec,
8073         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
8074         no longer expecting DIRNAME_SEPARATOR.
8075         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8076         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
8077         debugdir_end.
8078         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8079         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8080         (dirnames_to_char_ptr_vec): New functions.
8081
8082 2012-04-17  Jan Kratochvil  <[email protected]>
8083
8084         Code cleanup.
8085         * source.c (add_path): Remove always true conditional 'p == 0' and
8086         unindent its code block.
8087
8088 2012-04-17  Pedro Alves  <[email protected]>
8089
8090         * gdbtypes.h (FIELD_BITPOS): Rename to ...
8091         (FIELD_BITPOS_LVAL): ... this.
8092         (FIELD_BITPOS): New.
8093         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8094         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8095         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8096         SET_FIELD_BITPOS.
8097         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8098         SET_FIELD_BITPOS.
8099         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8100         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8101         * target-descriptions.c (tdesc_gdb_type): Adjust to use
8102         SET_FIELD_BITPOS.
8103
8104 2012-04-17  Jan Kratochvil  <[email protected]>
8105
8106         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8107         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8108         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8109         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8110         * jv-lang.c (java_link_class_type): Likewise, once.
8111         * stabsread.c (read_enum_type): Likewise.
8112
8113 2012-04-16  Yao Qi  <[email protected]>
8114
8115         * common/agent.c (agent_run_command): Add one more parameter `len'.
8116         Update callers.
8117         * common/agent.h: Update declaration.
8118         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8119         Update.
8120         (linux_child_static_tracepoint_markers_by_strid): Ditto.
8121
8122 2012-04-14  Anton Gorenkov <[email protected]>
8123
8124         PR mi/13393
8125         * value.c (value_actual_type): New function.
8126         * value.h (value_actual_type): New declaration.
8127         * varobj.c (update_type_if_necessary): New function.
8128         (varobj_create): Call value_actual_type instead of
8129         value_type.
8130         (install_dynamic_child): distinct changed and type changed MI variable
8131         objects.
8132         (update_dynamic_varobj_children): Updated for install_dynamic_child
8133         change.  All callers updated.
8134         (varobj_update): Support for MI variable object type change if
8135         the value changed and RTTI is used to determine the type.
8136         (create_child_with_value): Call value_actual_type instead of
8137         value_type.
8138         (adjust_value_for_child_access): Extended with a new parameter which
8139         specify whether the given value should be casted to enclosing type.
8140         All callers updated.
8141
8142 2012-04-14  Yao Qi  <[email protected]>
8143
8144         Import gnulib module inttypes from git
8145         (250b80067c1e1d8faa0c42fb572f721975b929c5)
8146         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8147         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8148         gnulib/m4/inttypes-pri.m4
8149         * aclocal.m4, config.in, configure: Regenerated.
8150         * gnulib/Makefile.am: Update.
8151         * gnulib/Makefile.in: Update.
8152         * gnulib/m4/gnulib-cache.m4: Update.
8153         * gnulib/m4/gnulib-comp.m4: Update.
8154         * gnulib/inttypes.in.h: New.
8155         * gnulib/m4/inttypes-pri.m4: New.
8156         * gnulib/m4/inttypes.m4: New.
8157
8158 2012-04-13  Luis Machado  <[email protected]>
8159
8160         * infrun.c (resume): Update PC address to the real PC after
8161         preparing to do displaced stepping.
8162
8163 2012-04-12  Doug Evans  <[email protected]>
8164
8165         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8166         All callers updated.
8167
8168 2012-04-12  Mark Kettenis  <[email protected]>
8169
8170         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8171
8172 2012-04-12  Doug Evans  <[email protected]>
8173
8174         * dwarf2read.c (create_all_type_units): Renamed from
8175         create_debug_types_hash_table.  All callers updated.
8176
8177         * dwarf2read.c (create_signatured_type_table_from_index): Rename
8178         local type_sig to sig_type, type_offset to type_offset_in_tu.
8179         (hash_signatured_type): Renamed from hash_type_signature,
8180         all callers updated.
8181         (eq_signatured_type): Renamed from eq_type_signature,
8182         all callers updated.
8183         (create_debug_types_hash_table): Rename local type_sig to sig_type.
8184         (process_enumeration_scope): Ditto.
8185         (lookup_signatured_type_at_offset): Ditto.
8186         (load_full_type_unit, read_signatured_type): Ditto.
8187
8188 2012-04-12  Yao Qi  <[email protected]>
8189
8190         * remote.c (async_remote_interrupt): Correct function name in
8191         debug message.
8192         (async_remote_interrupt_twice): Ditto.
8193
8194 2012-04-11  Yuanhui Zhang  <[email protected]>
8195
8196         * source.c (find_and_open_source): Consistently pass resulting
8197         full path through xfullpath.
8198
8199 2012-04-11  Jan Kratochvil  <[email protected]>
8200
8201         Provide more specific displaced-stepping memory error message.
8202         * infrun.c (displaced_step_prepare): New variable status.  Call
8203         target_read_memory instead of read_memory, provide more specific
8204         error message.
8205
8206 2012-04-11  Tristan Gingold  <[email protected]>
8207
8208         PR gdb/13901
8209         * darwin-nat.c (darwin_execvp): Revert previous patch.
8210
8211 2012-04-11  Tristan Gingold  <[email protected]>
8212
8213         PR gdb/13901
8214         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8215         in case of change.
8216
8217 2012-04-11  Tristan Gingold  <[email protected]>
8218
8219         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8220         warning.
8221
8222 2012-04-11  Siva Chandra Reddy  <[email protected]>
8223
8224         New command 'explore' which helps explore values and types in
8225         scope.
8226         * NEWS: Add an entry about the new 'explore' command.
8227         * data-directory/Makefile.in: Add gdb/command/explore.py
8228         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8229         command using the GDB Python API.
8230
8231 2012-04-10  Maciej W. Rozycki  <[email protected]>
8232
8233         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8234         extension in jump target calculation.
8235
8236 2012-04-10  Maciej W. Rozycki  <[email protected]>
8237
8238         * mips-tdep.c (mips32_next_pc): Handle JALX.
8239
8240 2012-04-10  Yao Qi  <[email protected]>
8241
8242         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8243
8244 2012-04-10  Yao Qi  <[email protected]>
8245
8246         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8247         and gnulib/m4/gnulib-tool.m4.
8248
8249 2012-04-10  Doug Evans  <[email protected]>
8250
8251         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8252         (load_partial_dies): Clarify comment.
8253         (find_partial_die): Support rereading type units.
8254         Clarify CU handling, if we know offset is in CU, don't search for the
8255         containing CU.  Add comment regarding memory waste.
8256
8257 2012-04-10  H.J. Lu  <[email protected]>
8258
8259         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8260         i386/x32-avx and i386/x32-avx-linux.
8261         (i386/x32-expedite): New.
8262         (i386/x32-linux-expedite): Likewise.
8263         (i386/x32-avx-expedite): Likewise.
8264         (i386/x32-avx-linux-expedite): Likewise.
8265         ($(outdir)/i386/x32.dat): Likewise.
8266         ($(outdir)/i386/x32-linux.dat): Likewise.
8267         ($(outdir)/i386/x32-avx.dat): Likewise.
8268         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8269
8270         * features/i386/x32-avx-linux.xml: New file.
8271         * features/i386/x32-avx.xml: Likewise.
8272         * features/i386/x32-core.xml: Likewise.
8273         * features/i386/x32-linux.xml: Likewise.
8274         * features/i386/x32.xml: Likewise.
8275
8276         * features/i386/x32-avx-linux.c: New.  Generated.
8277         * features/i386/x32-avx.c: Likewise.
8278         * features/i386/x32-linux.c: Likewise.
8279         * features/i386/x32.c: Likewise.
8280         * regformats/i386/x32-avx-linux.dat: Likewise.
8281         * regformats/i386/x32-avx.dat: Likewise.
8282         * regformats/i386/x32-linux.dat: Likewise.
8283         * regformats/i386/x32.dat: Likewise.
8284
8285 2012-04-10  Tristan Gingold  <[email protected]>
8286
8287         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8288         code to kill the inferior.
8289
8290 2012-04-09  Mark Kettenis  <[email protected]>
8291
8292         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8293         defines.
8294         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8295         defines.
8296         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8297         (yyvsp): New defines.
8298         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8299         defines.
8300         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8301         defines.
8302         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8303         defines.
8304         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8305         defines.
8306         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8307         defines.
8308
8309 2012-04-09  Mark Kettenis  <[email protected]>
8310
8311         * sparc64-tdep.c (sparc64_store_arguments)
8312         (sparc64_store_arguments): Fix coding style.
8313
8314 2012-04-07  Mark Kettenis  <[email protected]>
8315
8316         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8317         complex floats, adjust some related comments and tighten a related
8318         assertion.
8319         (sparc64_extract_return_value): Handle complex floats.
8320
8321 2012-04-07  Doug Evans  <[email protected]>
8322
8323         * dwarf2read.c (load_partial_dies): Change condition to assert.
8324
8325 2012-04-06  Doug Evans  <[email protected]>
8326
8327         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8328         "mov %rsp,%rbp".
8329
8330 2012-04-05  Kevin Buettner  <[email protected]>
8331
8332         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8333         fencepost error.
8334         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8335         (v850_gdbarch_init): Set `num_regs' as appropriate for the
8336         architecture.
8337
8338 2012-04-05  Keith Seitz  <[email protected]>
8339
8340         * linespec.c (decode_compound): Remove.
8341         (enum offset_relative_sign): New enum.
8342         (struct line_offset): New struct.
8343         (struct linespec): New struct.
8344         (struct linespec_state): Move file_symtabs,
8345         user_filename, and user_function into struct linespec.
8346         Make result an anonymous struct holding vectors of
8347         symbolp and minsym_and_objfile_d.
8348         Add language member.
8349         (enum ls_token_type): New enum.
8350         (linespec_keywords): New array.
8351         (struct ls_token): New struct.
8352         (struct ls_parser): New struct.
8353         (linespec_lexer_lex_number): New function.
8354         (linespec_lexer_lex_keyword): New function.
8355         (is_ada_operator): New function.
8356         (skip_quote_char): New function.
8357         (copy_token_string): New function.
8358         (is_closing_quote_enclosed): New function.
8359         (find_parameter_list_end): New function.
8360         (linespec_lexer_lex_string): New function.
8361         (linespec_lexer_lex_one): New function.
8362         (linespec_lexer_consume_token): New function.
8363         (linespec_lexer_peek_token): New function.
8364         (cplusplus_error): Remove unused function.
8365         (find_methods): Update comment.
8366         (find_toplevel_char): Return const.
8367         (is_objc_method_format): Remove unused function.
8368         (find_toplevel_string): New function.
8369         (is_linespec_boundary): Remove.
8370         (symbol_not_found_error): New function.
8371         (find_method_overload_end): Remove function.
8372         (unexpected_linespec_error): New function.
8373         (keep_name_info): Remove.
8374         (linespec_parse_line_offset): New function.
8375         (linespec_parse_basic): New function.
8376         (canonicalize_linespec): New function.
8377         (decode_line_internal): Remove.
8378         (create_sals_line_offset): New function adapted from
8379         decode_all_digits.
8380         (convert_linespec_to_sals): New function.
8381         (parse_linespec): New function.
8382         (linespec_parser_new): New function.
8383         (linespec_state_destructor): Change parameter type to
8384         struct linespec_state *.
8385         Add language parameter.
8386         Remove freeing of moved members.
8387         (linespec_parser_delete): New function.
8388         (decode_line_full): Use parse_linespec and linespec_parser_new.
8389         (decode_line_1): Likewise.
8390         (decode_indirect): Rename to ...
8391         (linespec_expression_to_pc): ... this and rewrite
8392         to simply find CORE_ADDR, storing this result for later
8393         conversion to SALs.
8394         (locate_first_half): Remove.
8395         (deocde_objc): Add parameter LS.
8396         Initialize new struct collect_info members.
8397         Handle minimal symbols, too.
8398         (decode_compound): Delete.
8399         (lookup_prefix_sym): Rewrite.
8400         (compare_msymbols): New function.
8401         (find_method): Rewrite.
8402         Do not call cplusplus_error.
8403         (symtabs_from_filename): Rewrite.
8404         (collect_function_symbols): Delete.
8405         (find_function_symbols): Rewrite without ARGPTR-style
8406         processing.
8407         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8408         (decode_dollar): Adapted and renamed to ...
8409         (linespec_parse_variable): ... this.
8410         (find_linespec_symbols): New function.
8411         (decode_label): Adapted and renamed to ...
8412         (find_label_symbols): ... this.
8413         (decode_digits_list_mode): Add and use LS argument.
8414         (decode_digits_ordinary): Likewise.
8415         (collect_symbols): Do not collect SALs, just symbols and msymbols.
8416         If in list mode, allow any symbol class.  Otherwise, only
8417         permit LOC_BLOCK symbols.
8418         (minsym_found): Update comments.
8419         (search_minsyms_for_name): Do not convert the matching symbol
8420         into a SAL.  Simply push the symbol and objfile into the
8421         result vector.
8422         (decode_variable): Delete. Contents adapted into
8423         find_linespec_symbols.
8424
8425         * cp-support.c (SKIP_SPACE): Remove.
8426         (operator_tokens): Remove unused global.
8427         (cp_validate_operator): Remove.
8428         * cp-support.h (cp_validate_operator): Remove declaration.
8429
8430 2012-04-03  Jan Kratochvil  <[email protected]>
8431
8432         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8433         for TYPE_VPTR_FIELDNO.
8434         * valprint.c (valprint_check_validity): Make it global, move the
8435         function comment ...
8436         * value.h (valprint_check_validity): ... to this new declaration.
8437
8438 2012-04-02  Tristan Gingold  <[email protected]>
8439
8440         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8441         the STATE32 api for i386 state.
8442         (i386_darwin_store_inferior_registers): Likewise.
8443
8444 2012-04-02  Tristan Gingold  <[email protected]>
8445
8446         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8447         SS offset.
8448         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8449         format_string.
8450
8451 2012-04-02  Tristan Gingold  <[email protected]>
8452
8453         PR gdb/13901
8454         * darwin-nat.c (darwin_execvp): Set binary preference.
8455
8456 2012-04-02  Jan Kratochvil  <[email protected]>
8457
8458         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8459
8460 2012-03-30  Tom Tromey  <[email protected]>
8461
8462         * python/python.c (gdbpy_decode_line): Move cleanup creation out
8463         of TRY_CATCH.  Fix error handling.
8464         * python/py-value.c (convert_value_from_python): Move 'old'
8465         declaration to innermost scope.
8466
8467 2012-03-29  Joel Brobecker  <[email protected]>
8468             Andrey Smirnov  <[email protected]>
8469
8470         -Wshadow warning fix.
8471         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8472         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8473         Adjust code accordingly.
8474
8475 2012-03-29  Joel Brobecker  <[email protected]>
8476
8477         * ada-lang.c (symbol_completion_add): Rename parameter
8478         "encoded" into "encoded_p".  Ajust code and documentation
8479         accordingly.
8480
8481 2012-03-29  Joel Brobecker  <[email protected]>
8482             Andrey Smirnov  <[email protected]>
8483
8484         -Wshadow warning fix.
8485         * ada-lang.c (symbol_completion_add): Rename parameter
8486         "wild_match" into wild_match_p.  Update code and documentation
8487         accordingly.
8488
8489 2012-03-29  Joel Brobecker  <[email protected]>
8490
8491         * ada-lang.c (symbol_completion_match): Rename parameter
8492         "encoded" into "encoded_p".  Ajust code and documentation
8493         accordingly.
8494
8495 2012-03-29  Joel Brobecker  <[email protected]>
8496             Andrey Smirnov  <[email protected]>
8497
8498         -Wshadow warning fix.
8499         * ada-lang.c (symbol_completion_match): Rename parameter
8500         "wild_match" into "wild_match_p".  Adjust code and function
8501         documentation accordingly.
8502
8503 2012-03-29  Joel Brobecker  <[email protected]>
8504             Andrey Smirnov  <[email protected]>
8505
8506         -Wshadow warning fix.
8507         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8508         "symbol_info" into "info".  Adjust code accordingly.
8509         (ada_lookup_symbol): Likewise.
8510
8511 2012-03-29  Joel Brobecker  <[email protected]>
8512
8513         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8514         of this function's documentation.
8515
8516 2012-03-29  Joel Brobecker  <[email protected]>
8517             Andrey Smirnov  <[email protected]>
8518
8519         -Wshadow warning fix.
8520         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8521         variable into "wild_match_p".  Adjust code accordingly.
8522
8523 2012-03-29  Joel Brobecker  <[email protected]>
8524             Andrey Smirnov  <[email protected]>
8525
8526         -Wshadow warning fix.
8527         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8528         parameter into "wild_match_p".  Adjust code accordingly.
8529         Document this parameter in the function description.
8530
8531 2012-03-29  Joel Brobecker  <[email protected]>
8532             Andrey Smirnov  <[email protected]>
8533
8534         -Wshadow warning fix.
8535         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8536         "wild_match" parameter to "wild_match_p" (-Wshadow).
8537
8538 2012-03-29  Joel Brobecker  <[email protected]>
8539
8540         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8541         in function documentation.
8542
8543 2012-03-29  Joel Brobecker  <[email protected]>
8544             Andrey Smirnov  <[email protected]>
8545
8546         -Wshadow warning fix.
8547         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8548         variable into wild_match_p.  Adjust code accordingly.
8549
8550 2012-03-29  Joel Brobecker  <[email protected]>
8551             Andrey Smirnov  <[email protected]>
8552
8553         * ada-valprint.c (ada_val_print_1): Move the code handling
8554         TYPE_CODE_ENUM inside its own lexical block.  Declare
8555         variables len and val there, instead of in the function's
8556         top level block.  Avoid declaring deref_val again in a way
8557         that shadows another variable of the same name declared
8558         in one of the up-level blocks.  Just re-use the up-level
8559         variable instead.
8560
8561 2012-03-29  Joel Brobecker  <[email protected]>
8562
8563         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8564         Replace block_found argument by symbol_info.  Adjust
8565         implementation accordingly.  Add function documentation.
8566         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8567         Fix documentation.
8568         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8569         * ada-exp.y (write_object_renaming): Adjust to new
8570         ada_lookup_encoded_symbol API.
8571
8572 2012-03-29  Joel Brobecker  <[email protected]>
8573
8574         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
8575         documentation.
8576
8577 2012-03-28  Rathish C  <[email protected]>
8578
8579         * v850-tdep.c: Add the enum values for mpu and fpu registers.
8580         (v850_register_name): Add the mpu and fpu register names.
8581         (v850e_register_name): Add the mpu and fpu register names.
8582         (v850e2_register_name): New function.
8583         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8584         bfd_mach_v850e2v3.
8585
8586 2012-03-28  Joel Brobecker  <[email protected]>
8587
8588         * NEWS: Add entry for Ada varobj support.
8589
8590 2012-03-28  Joel Brobecker  <[email protected]>
8591
8592         * varobj.c (default_value_is_changeable_p): New function,
8593         extracted from varobj_value_is_changeable_p.  Add declaration.
8594         (ada_value_is_changeable_p): New function, extracted from
8595         varobj_value_is_changeable_p.  Add declaration.
8596         (struct language_specific): New field "value_is_changeable_p".
8597         (languages): Add entries for new field.
8598         (varobj_create): Set language before calling install_new_value.
8599         (varobj_value_is_changeable_p): Reimplement to call the varobj's
8600         "value_is_changeable_p" language callback.
8601
8602 2012-03-28  Joel Brobecker  <[email protected]>
8603
8604         * ada-varobj.h, ada-varobj.c: New files.
8605         * Makefile.in (SFILES): Add ada-varobj.c.
8606         (HFILES_NO_SRCDIR): Add ada-varobj.h.
8607         (COMMON_OBS): Add ada-varobj.o.
8608
8609 2012-03-28  Joel Brobecker  <[email protected]>
8610
8611         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
8612         (struct language_specific): New field "value_has_mutated".
8613         (languages): Set field "value_has_mutated" in each entry of array.
8614         (varobj_value_has_mutated): New function.
8615         (varobj_udpdate): Add handling of type mutation.
8616         (value_of_root): Add handling of type mutation.
8617         (ada_value_has_mutated): New function.
8618
8619 2012-03-28  Pedro Alves  <[email protected]>
8620
8621         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8622         Always supply $fr0 as 0.0 and $fr1 as 1.0.
8623
8624 2012-03-28  Tom Tromey  <[email protected]>
8625
8626         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8627         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
8628         before returning.
8629
8630 2012-03-28  Tom Tromey  <[email protected]>
8631
8632         * .dir-locals.el: New file.
8633
8634 2012-03-28  Pedro Alves  <[email protected]>
8635
8636         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8637
8638 2012-03-28  Joel Brobecker  <[email protected]>
8639
8640         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8641         handling for r0.
8642
8643 2012-03-27  Pedro Alves  <[email protected]>
8644
8645         Eliminate struct ui_stream.
8646
8647         * ui-out.h (struct ui_stream): Delete.
8648         (ui_out_field_stream): Adjust prototype.
8649         (ui_out_stream_new, ui_out_stream_delete)
8650         (make_cleanup_ui_out_stream_delete): Delete declarations.
8651         * ui-out.c (ui_out_field_stream): Change prototype to take a
8652         ui_file instead of a ui_stream.  Adjust.
8653         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8654         (make_cleanup_ui_out_stream_delete): Delete.
8655         * breakpoint.c (print_breakpoint_location)
8656         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8657         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8658         * disasm.c (dump_insns): Ditto.
8659         (do_mixed_source_and_assembly, do_assembly_only): Adjust
8660         prototype.
8661         (gdb_disassembly): Use ui_file/mem_fileopen instead of
8662         ui_stream/ui_out_stream_new.
8663         * infcmd.c (print_return_value): Ditto.
8664         * osdata.c (info_osdata_command): Don't allocate a local
8665         ui_stream.
8666         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8667         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8668         * tracepoint.c (print_one_static_tracepoint_marker): Don't
8669         allocate a local ui_stream.
8670         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8671         instead of ui_stream/ui_out_stream_new.
8672         (list_args_or_locals): Don't allocate a local ui_stream.
8673         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8674         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8675         ui_stream/ui_out_stream_new.
8676         * cli/cli-setshow.c (do_setshow_command): Ditto.
8677
8678 2012-03-27  Oza Pawandeep  <[email protected]>
8679
8680         * arm-linux-tdep.c (arm_linux_init_abi): Call
8681         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
8682         * arm-tdep.c (arm_process_record): New function.
8683         (deallocate_reg_mem): New function.
8684         (decode_insn): New function.
8685         (thumb_record_branch): New function.
8686         (thumb_record_ldm_stm_swi(): New function.
8687         (thumb_record_misc): New function.
8688         (thumb_record_ld_st_stack): New function.
8689         (thumb_record_ld_st_imm_offset): New function.
8690         (thumb_record_ld_st_reg_offset(): New function.
8691         (thumb_record_add_sub_cmp_mov): New function.
8692         (thumb_record_shift_add_sub): New function.
8693         (arm_record_coproc_data_proc): New function.
8694         (arm_record_coproc): New function.
8695         (arm_record_b_bl): New function.
8696         (arm_record_ld_st_multiple): New function.
8697         (arm_record_ld_st_reg_offset): New function.
8698         (arm_record_ld_st_imm_offset): New function.
8699         (arm_record_data_proc_imm): New function.
8700         (arm_record_data_proc_misc_ld_str): New function.
8701         (arm_record_extension_space): New function.
8702         (arm_record_strx): New function.
8703         (sbo_sbz): New function.
8704         (struct insn_decode_record): New structure for arm insn record.
8705         (REG_ALLOC): New macro for reg allocations.
8706         (MEM_ALLOC): New macro for memory allocations.
8707         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8708
8709 2012-03-27  Andreas Schwab  <[email protected]>
8710
8711         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8712         (store_register): Likewise.
8713
8714 2012-03-26  Oza Pawandeep  <[email protected]>
8715
8716         * MAINTAINERS (Write After Approval): Add myself to the list.
8717
8718 2012-03-25  Jan Kratochvil  <[email protected]>
8719
8720         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8721         Describe also the option "auto".
8722
8723 2012-03-22  Richard Henderson  <[email protected]>
8724
8725         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8726         * sparc-nat.c (sparc_xfer_wcookie): Make static.
8727
8728 2012-03-22  Richard Henderson  <[email protected]>
8729
8730         * jit.c (jit_read_code_entry): Compute alignment and offset of
8731         int64_t member before computing entry_size.
8732
8733 2012-03-22  Siva Chandra Reddy  <[email protected]>
8734
8735         Python scripting: Add new method Value.referenced_value to
8736         gdb.Value which can dereference pointer as well as reference
8737         values.
8738         * NEWS: Add entry under 'Python scripting' about the new method
8739         Value.referenced_value on gdb.Value objects.
8740         * python/py-value.c (valpy_referenced_value): New function
8741         defining a new method on gdb.Value objects which can dereference
8742         pointer and reference values.
8743
8744 2012-03-22  Siva Chandra Reddy  <[email protected]>
8745
8746         * MAINTAINERS (Write After Approval): Add myself to the list.
8747
8748 2012-03-21  Kevin Buettner  <[email protected]>
8749
8750         * symtab.c (skip_prologue_sal): Change test to check for "main()"
8751         in addition to "main".
8752
8753 2012-03-21  Joel Brobecker  <[email protected]>
8754
8755         * expression.h (op_name): Add declaration.
8756         * expprint.c (op_name): Remove declaration.  Make non-static.
8757         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8758
8759 2012-03-21  Thomas Schwinge  <[email protected]>
8760
8761         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8762         of struct siginfo.
8763         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8764         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8765         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8766         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8767         (linux_nat_get_siginfo): Likewise.
8768         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8769         (linux_nat_get_siginfo): Likewise.
8770         * linux-tdep.c (linux_get_siginfo_type): Likewise.
8771         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8772         * procfs.c (gdb_siginfo_t): Likewise.
8773
8774 2012-03-21  Mike Frysinger  <[email protected]>
8775
8776         * .gitignore: Ignore more files.
8777
8778 2012-03-20  Pedro Alves  <[email protected]>
8779
8780         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8781         returns.
8782
8783 2012-03-20  Yao Qi  <[email protected]>
8784
8785         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8786         comment.
8787
8788 2012-03-19  Jan Kratochvil  <[email protected]>
8789
8790         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8791         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8792         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8793         sect_offset.
8794         * dwarf2expr.h (cu_offset, sect_offset): New types.
8795         (struct dwarf_expr_context_funcs) <dwarf_call>
8796         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8797         sect_offset.
8798         (struct dwarf_expr_context) <len>: Improve the comment.
8799         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8800         cu_offset and sect_offset.
8801         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8802         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8803         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8804         * dwarf2loc.h: Include dwarf2expr.h.
8805         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8806         and sect_offset.
8807         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8808         Improve the comment.
8809         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8810         (struct signatured_type, struct line_header, struct partial_die_info)
8811         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8812         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8813         (get_die_type_at_offset, create_cus_from_index)
8814         (create_signatured_type_table_from_index, dw2_get_file_names)
8815         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8816         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8817         (create_debug_types_hash_table, process_psymtab_comp_unit)
8818         (load_partial_comp_unit, create_all_comp_units)
8819         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8820         (load_full_comp_unit, dwarf2_physname, read_import_statement)
8821         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8822         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8823         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8824         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8825         (find_partial_die, read_attribute_value, lookup_die_type)
8826         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8827         (is_ref_attr): New function comment.
8828         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8829         Use cu_offset and sect_offset.
8830         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8831         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8832         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8833         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8834         (offset_and_type_hash, offset_and_type_eq, set_die_type)
8835         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8836         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8837         sect_offset.
8838
8839 2012-03-19  Jan Kratochvil  <[email protected]>
8840
8841         Code cleanup.
8842         * python/py-auto-load.c (source_section_scripts): New variable back_to.
8843         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8844         with xfree.
8845         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8846
8847 2012-03-19  Jan Kratochvil  <[email protected]>
8848
8849         * NEWS: Describe new options --init-command=FILE, -ix and
8850         --init-eval-command=COMMAND, -iex.
8851         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8852         CMDARG_INIT_COMMAND.
8853         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
8854         "init-command", "init-eval-command", "ix" and "iex" to the variable
8855         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
8856         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8857         (print_gdb_help): Describe --init-command=FILE, -ix and
8858         --init-eval-command=COMMAND, -iex.
8859
8860 2012-03-19  Jan Kratochvil  <[email protected]>
8861
8862         Code cleanup.
8863         * main.c (struct cmdarg): Move it here from main.  Add more comments.
8864         (cmdarg_s, VEC (cmdarg_s)): New.
8865         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
8866         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
8867         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
8868         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
8869         of CMDARG.
8870
8871 2012-03-19  Tom Tromey  <[email protected]>
8872
8873         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8874
8875 2012-03-16  Jan Kratochvil  <[email protected]>
8876
8877         PR symtab/13777
8878         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8879         GCC >=4.5.
8880
8881 2012-03-16  Chris January  <[email protected]>
8882
8883         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8884         of clear.
8885
8886 2012-03-16  Chris January  <[email protected]>
8887
8888         * source.c (add_path): Use memmove instead of strcpy because the
8889         strings overlap.
8890
8891 2012-03-16  Joel Brobecker  <[email protected]>
8892
8893         * value.h (set_value_parent): Add declaration.
8894         * value.c (set_value_parent): New function.
8895         (value_address): If VALUE->PARENT is not NULL, then use it as
8896         the base address instead of VALUE->LOCATION.address.
8897         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8898         the same as OBJ's address.  Adjust V's offset accordingly.
8899         Set V's parent.
8900
8901 2012-03-16  Gary Benson  <[email protected]>
8902
8903         PR breakpoints/10738
8904         * dwarf2read.c (use_deprecated_index_sections): New global.
8905         (struct partial_die_info): New member may_be_inlined.
8906         (read_partial_die): Set may_be_inlined where appropriate.
8907         (add_partial_subprogram): Add partial symbols for partial
8908         DIEs that may be inlined.
8909         (new_symbol_full): Add inlined subroutines to the current
8910         scope.
8911         (write_psymtabs_to_index): Bump version number.
8912         (dwarf2_read_index): Read only version 6 indices unless
8913         use_deprecated_index_sections is set.
8914         * linespec.c (symbol_and_data_callback): New structure.
8915         (iterate_inline_only): New function.
8916         (iterate_over_all_matching_symtabs): New argument
8917         "include_inline".  If nonzero, also call the callback for
8918         symbols representing inlined subroutines.
8919         (lookup_prefix_sym): Pass extra argument to the above.
8920         (find_function_symbols): Likewise.
8921         (add_matching_symbols_to_info): Likewise.
8922         * NEWS: Mention that GDB can now set breakpoints on inlined
8923         functions.
8924
8925 2012-03-16  Pierre Muller  <[email protected]>
8926
8927         * p-typeprint.c (pascal_type_print_method_args):
8928         Fix display of parameter of methods.
8929
8930 2012-03-16  Pierre Muller  <[email protected]>
8931
8932         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8933         Add missing prototype.
8934
8935 2012-03-16  Yao Qi  <[email protected]>
8936             Jan Kratochvil  <[email protected]>
8937
8938         Fix false compilation warning.
8939         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8940
8941 2012-03-15  Jonathan Larmour  <[email protected]>
8942             Pedro Alves  <[email protected]>
8943
8944         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8945         (arm_register_g_packet_guesses): New function.
8946         (arm_gdbarch_init): Don't force a target description with
8947         registers when the executable is detected as M-profile.  Instead
8948         set gdbarch->tdep->is_m.  Register `g' packet guesses.
8949         (_initialize_arm_tdep): Initialize the new target description.
8950         * features/arm-with-m-fpa-layout.xml: New description.
8951         * features/arm-with-m-fpa-layout.c: New, generated.
8952
8953 2012-03-15  Joel Brobecker  <[email protected]>
8954
8955         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8956         Update function description.
8957         (insert_bp_location): Do not wipe bl->target_info out.
8958         * mem-break.c: #include "gdb_string.h".
8959         (default_memory_insert_breakpoint): Do not call target_read_memory
8960         with a pointer to the breakpoint's shadow_contents buffer.  Use
8961         a local buffer instead.
8962         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8963
8964 2012-03-15  Tom Tromey  <[email protected]>
8965
8966         * NEWS: Mention "info vtbl", not "info vtable".
8967         * cp-support.c (info_vtbl_command): Fix comment.
8968         (_initialize_cp_support): Fix text.
8969
8970 2012-03-15  Tom Tromey  <[email protected]>
8971
8972         * cp-valprint.c (cp_print_value_fields): Use
8973         print_function_pointer_address for vtable slot.
8974
8975 2012-03-15  Tom Tromey  <[email protected]>
8976
8977         * gnu-v3-abi.c (struct value_and_voffset): New.
8978         (hash_value_and_voffset, eq_value_and_voffset)
8979         (compare_value_and_voffset, compute_vtable_size)
8980         (print_one_vtable, gnuv3_print_vtable): New functions.
8981         (init_gnuv3_ops): Initialize 'print_vtable' field.
8982         * cp-support.c (info_vtbl_command): New function.
8983         (_initialize_cp_support): Add "info vtbl".
8984         * cp-abi.h (cplus_print_vtable): Declare.
8985         (struct cp_abi_ops) <print_vtable>: New field.
8986         * cp-abi.c (cplus_print_vtable): New function.
8987         * NEWS: Update.
8988
8989 2012-03-15  Tom Tromey  <[email protected]>
8990
8991         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8992         iterate_over_symbols.
8993
8994 2012-03-14  Doug Evans  <[email protected]>
8995
8996         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8997         DW_OP_GNU_parameter_ref.
8998
8999 2012-03-14  Jan Kratochvil  <[email protected]>
9000
9001         Fix double prompt of 'interpreter-exec mi'.
9002         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9003         (mi_interpreter_resume): use it.
9004         (mi_execute_command_input_handler): New function.
9005         * mi/mi-main.c (mi_execute_command): Move prompt printing to
9006         mi_execute_command_input_handler.
9007
9008 2012-03-13  Josh Matthews  <[email protected]>  (tiny change)
9009
9010         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9011         prototype.
9012         (darwin_debug_port_info): Make static.
9013         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9014         * machoread.c (_initialize_machoread): Add prototype.
9015         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9016         (i386_darwin_set_control, i386_darwin_get_control)
9017         i386_darwin_dr_set_addr, i386_darwin_get_addr)
9018         i386_darwin_get_status, i386_darwin_get_control):
9019         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9020
9021 2012-03-13  Joel Brobecker  <[email protected]>
9022
9023         * ax-gdb.c (gen_usual_unary): Remove special handling of
9024         enum and bool types.
9025
9026 2012-03-13  Joel Brobecker  <[email protected]>
9027
9028         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9029
9030 2012-03-13  Joel Brobecker  <[email protected]>
9031
9032         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9033
9034 2012-03-13  Chris January  <[email protected]>
9035
9036         * aix-thread.c (fill_sprs): Store the floating point registers
9037         at the correct offsets into vals.
9038
9039 2012-03-13  Doug Evans  <[email protected]>
9040
9041         * NEWS: Mention symbol-reloading has been deleted.
9042         * symfile.c (symbol_reloading): Delete.
9043         (show_symbol_reloading): Delete.
9044         (_initialize_symfile): Delete set/show symbol-reloading.
9045
9046         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9047         read_in_chain until we have successfully read it in.
9048         (load_full_comp_unit): Ditto.
9049         (read_signatured_type): Add comment.
9050
9051 2012-03-13  Chris January  <[email protected]>
9052
9053         * stabsread.c (fix_common_block): Change type of valu argument
9054         to CORE_ADDR.
9055
9056 2012-03-13  Chris January  <[email protected]>
9057
9058         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9059         instruction.
9060
9061 2012-03-13  Jan Kratochvil  <[email protected]>
9062
9063         * common/linux-procfs.c (linux_proc_get_int): New, from
9064         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9065         field.
9066         (linux_proc_get_tgid): Only call linux_proc_get_int.
9067         (linux_proc_get_tracerpid): New.
9068         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9069         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9070         linux_proc_pid_has_state.
9071         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9072         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9073         (linux_ptrace_attach_warnings): New.
9074         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9075         New declaration.
9076         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9077         (linux_nat_attach): New variables ex, buffer, message and message_s.
9078         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9079
9080 2012-03-13  Jan Kratochvil  <[email protected]>
9081
9082         * Makefile.in (linux-ptrace.o): New.
9083         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9084         from linux-nat.c.
9085         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9086         * common/linux-ptrace.c: New file.
9087         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9088         * config/arm/linux.mh: Likewise.
9089         * config/i386/linux.mh: Likewise.
9090         * config/i386/linux64.mh: Likewise.
9091         * config/ia64/linux.mh: Likewise.
9092         * config/m32r/linux.mh: Likewise.
9093         * config/m68k/linux.mh: Likewise.
9094         * config/mips/linux.mh: Likewise.
9095         * config/pa/linux.mh: Likewise.
9096         * config/powerpc/linux.mh: Likewise.
9097         * config/powerpc/ppc64-linux.mh: Likewise.
9098         * config/powerpc/spu-linux.mh: Likewise.
9099         * config/s390/s390.mh: Likewise.
9100         * config/sparc/linux.mh: Likewise.
9101         * config/sparc/linux64.mh: Likewise.
9102         * config/xtensa/linux.mh: Likewise.
9103         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9104         common/linux-procfs.c.
9105         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9106
9107 2012-03-13  Hui Zhu  <[email protected]>
9108             Pedro Alves  <[email protected]>
9109
9110         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
9111         CREATE_BREAKPOINT_FLAGS_INSERTED.
9112         (create_breakpoint_sal, create_breakpoints_sal)
9113         (base_breakpoint_create_breakpoints_sal)
9114         (tracepoint_create_breakpoints_sal)
9115         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
9116         down.
9117         (break_command_1, handle_gnu_v3_exceptions, trace_command)
9118         (ftrace_command, strace_command): Adjust.
9119         (create_tracepoint_from_upload): Pass
9120         CREATE_BREAKPOINT_FLAGS_INSERTED.
9121         * breakpoint.h (enum breakpoint_create_flags): New.
9122         (create_breakpoint): New flags parameter.
9123         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9124         * python/py-breakpoint.c (bppy_init): Adjust.
9125         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9126         * spu-tdep.c (spu_catch_start): Adjust.
9127
9128 2012-03-13  Pedro Alves  <[email protected]>
9129             Hui Zhu  <[email protected]>
9130             Yao Qi  <[email protected]>
9131
9132         * remote.c (struct remote_state): New field `starting_up'.
9133         (remote_start_remote): Set and clear it.
9134         (remote_can_download_tracepoint): If starting up, return false.
9135
9136 2012-03-13  Yao Qi  <[email protected]>
9137
9138         * inferior.h (struct inferior): Remove fields any_syscall_count,
9139         syscalls_counts and total_syscalls_count.  Move them to new
9140         struct catch_syscall_inferior_data in breakpoint.c.
9141         * breakpoint.c: Call DEF_VEC_I(int).
9142         (struct catch_syscall_inferior_data): New.
9143         (get_catch_syscall_inferior_data): New.
9144         (catch_syscall_inferior_data_cleanup): New.
9145         (insert_catch_syscall): Update to access data in
9146         struct catch_syscall_inferior_data.
9147         (insert_catch_syscall): Likewise.
9148         (remove_catch_syscall): Likewise.
9149         (remove_catch_syscall): Likewise.
9150         (is_syscall_catchpoint_enabled): Likewise.
9151         (add_catch_command): Likewise.
9152         (_initialize_breakpoint): Register cleanup.
9153         * breakpoint.h: Removed DEF_VEC_I(int).
9154         * dwarf2loc.c: Call DEF_VEC_I(int).
9155         * mi/mi-main.c: Likewise.
9156
9157 2012-03-12  Mark Kettenis  <[email protected]>
9158
9159         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9160
9161 2012-03-12  Chris January  <[email protected]>
9162
9163         * aix-thread.c (_initialize_aix_thread): Add prototype.
9164         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9165         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9166
9167 2012-03-12  Joel Brobecker  <[email protected]>
9168
9169         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9170         include of "amd64-nat.h".
9171
9172 2012-03-12  Tom Tromey  <[email protected]>
9173
9174         * buildsym.c (record_pending_block): Now static.
9175         * buildsym.h: (record_pending_block): Remove.
9176
9177 2012-03-12  Andreas Tobler  <[email protected]>
9178
9179         * amd64bsd-nat.c: Include amd64bsd-nat.h.
9180
9181 2012-03-09  Tom Tromey  <[email protected]>
9182
9183         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9184         producer_is_gxx_lt_4_6>: New fields.
9185         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9186
9187 2012-03-09  Tom Tromey  <[email protected]>
9188
9189         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9190
9191 2012-03-08  Joel Brobecker  <[email protected]>
9192
9193         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9194         prototype.
9195
9196 2012-03-08  Joel Brobecker  <[email protected]>
9197
9198         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9199
9200 2012-03-08  Jan Kratochvil  <[email protected]>
9201
9202         Fix -Wmissing-prototypes build.
9203         * arm-linux-nat.c (get_thread_id): Make it static.
9204         * xtensa-linux-nat.c (get_thread_id): Likewise.
9205
9206 2012-03-08  Joel Brobecker  <[email protected]>
9207
9208         * server.c (process_point_options): If a conditional expression
9209         is found, only print a message if remote_debug is nonzero.
9210
9211 2012-03-08  Luis Machado  <[email protected]>
9212
9213         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9214         of internal error for unknown/unsupported types.
9215
9216 2012-03-08  Jan Kratochvil  <[email protected]>
9217
9218         Fix CU relative vs. absolute DIE offsets.
9219         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9220         offset to offset_in_cu.
9221         * dwarf2read.c (process_enumeration_scope): Add CU offset to
9222         TYPE_OFFSET.
9223         (dwarf2_fetch_die_location_block): Rename parameter offset to
9224         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
9225
9226 2012-03-08  Jan Kratochvil  <[email protected]>
9227
9228         * libunwind-frame.c: Rename to ...
9229         * ia64-libunwind-tdep.c: ... here.
9230         * libunwind-frame.h: Rename to ...
9231         * ia64-libunwind-tdep.h: ... here.
9232         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9233         ia64-libunwind-tdep.h.
9234         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9235         * README (--with-libunwind): Rename to ...
9236         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9237         * config.in: Regenerate.
9238         * configure: Regenerate.
9239         * configure.ac: New option --with-libunwind-ia64, make the
9240         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
9241         Remove AC_DEFINE for HAVE_LIBUNWIND.
9242         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9243         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9244         Rename libunwind-frame in the general comment.
9245         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9246         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9247         Move forward declarations inside #ifndef.  Rename libunwind-frame in
9248         the general comment.
9249         * ia64-tdep.c: Rename libunwind-frame.h #include to
9250         ia64-libunwind-tdep.h.
9251         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9252         (ia64_libunwind_descr): Rename libunwind-frame to
9253         ia64-libunwind-tdep in these function comments.
9254         * ia64-tdep.h: Rename libunwind-frame.h #include to
9255         ia64-libunwind-tdep.h.
9256         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9257         ia64-libunwind-tdep in that data comment.
9258
9259 2012-03-08  Jan Kratochvil  <[email protected]>
9260
9261         * libunwind-frame.h (struct frame_unwind): New declaration.
9262
9263 2012-03-08  Joel Brobecker  <[email protected]>
9264
9265         * breakpoint.c (_initialize_breakpoint): Fix error in help of
9266         "set breakpoint condition-evaluation" command.
9267
9268 2012-03-08  Tristan Gingold  <[email protected]>
9269
9270         * sparc-stub.c: Move to stubs/
9271         * sh-stub.c: Likewise.
9272         * m68k-stub.c: Likewise.
9273         * m32r-stub.c: Likewise.
9274         * i386-stub.c: Likewise.
9275
9276 2012-03-08  Andreas Schwab  <[email protected]>
9277
9278         * m68klinux-tdep.c (m68k_linux_init_abi): Register
9279         linux_get_siginfo_type.
9280
9281         * m68klinux-nat.c: Include "gdb_proc_service.h".
9282         (PTRACE_GET_THREAD_AREA): Define.
9283         (ps_get_thread_area): New function.
9284
9285 2012-03-08  Yao Qi  <[email protected]>
9286
9287         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9288         `xsnprintf'.
9289         (remote_query_attached): Likewise.
9290         (remote_static_tracepoint_marker_at): Likewise.
9291         (remote_set_permissions): Likewise.
9292         (remote_detach_1, extended_remote_attach_1): Likewise.
9293         (send_g_packet, remote_vkill): Likewise.
9294         (extended_remote_disable_randomization): Likewise.
9295         (remote_add_target_side_condition): Likewise.
9296         (remote_insert_breakpoint): Likewise.
9297         (remote_remove_breakpoint): Likewise.
9298         (remote_insert_watchpoint): Likewise.
9299         (remote_remove_watchpoint): Likewise.
9300         (remote_insert_hw_breakpoint): Likewise.
9301         (remote_insert_hw_breakpoint): Likewise.
9302         (remote_remove_hw_breakpoint): Likewise.
9303         (remote_download_command_source): Likewise.
9304         (remote_download_tracepoint): Likewise.
9305         (remote_download_trace_state_variable): Likewise.
9306         (remote_disable_tracepoint): Likewise.
9307         (remote_trace_set_readonly_regions): Likewise.
9308         (remote_get_tracepoint_status): Likewise.
9309         (remote_trace_find): Likewise.
9310         (remote_get_trace_state_variable_value): Likewise.
9311         (remote_set_disconnected_tracing): Likewise.
9312         (remote_set_circular_trace_buffer): Likewise.
9313         (remote_get_min_fast_tracepoint_insn_len): Likewise.
9314         (remote_use_agent): Likewise.
9315         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9316         Update callers.
9317
9318 2012-03-07  Pedro Alves  <[email protected]>
9319
9320         * NEWS: Mention QProgramSignals.
9321         * inferior.h (update_signals_program_target): Declare.
9322         * infrun.c: (update_signals_program_target): New.
9323         (handle_command): Update the target of the new program signals
9324         array changes.
9325         * remote.c (PACKET_QProgramSignals): New enum.
9326         (last_program_signals_packet): New global.
9327         (remote_program_signals): New.
9328         (remote_start_remote): Update the target with the program signals
9329         list.
9330         (remote_protocol_features): Add entry for QPassSignals.
9331         (remote_open_1): Free anc clear last_program_signals_packet.
9332         (init_remote_ops): Install remote_program_signals.
9333         * target.c (update_current_target): Adjust.
9334         (target_program_signals): New.
9335         * target.h (struct target_ops) <to_program_signals>: New field.
9336         (target_program_signals): Declare.
9337
9338 2012-03-07  Pedro Alves  <[email protected]>
9339
9340         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9341         extensions.
9342
9343 2012-03-07  Andreas Schwab  <[email protected]>
9344
9345         * m68klinux-nat.c (getregs_supplies): Make static.
9346         (getfpregs_supplies): Likewise.
9347         (have_ptrace_getregs): Likewise.
9348
9349 2012-03-06  Joel Brobecker  <[email protected]>
9350
9351         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9352         in call to get_die_type_at_offset.
9353
9354 2012-03-06  Stan Shebs  <[email protected]>
9355
9356         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9357         * mi/mi-cmd-disas.c: Ditto.
9358         * mi/mi-cmd-env.c: Ditto.
9359         * mi/mi-cmd-file.c: Ditto.
9360         * mi/mi-cmd-stack.c: Ditto.
9361         * mi/mi-cmd-target.c: Ditto.
9362         * mi/mi-cmd-var.c: Ditto.
9363         * mi/mi-cmds.c: Ditto.
9364         * mi/mi-cmds.h: Ditto.
9365         * mi/mi-console.c: Ditto.
9366         * mi/mi-getopt.c: Ditto.
9367         * mi/mi-getopt.h: Ditto.
9368         * mi/mi-interp.c: Ditto.
9369         * mi/mi-main.c: Ditto.
9370         * mi/mi-out.c: Ditto.
9371         * mi/mi-parse.c: Ditto.
9372         * mi/mi-parse.h: Ditto.
9373         * mi/mi-symbol-cmds.c: Ditto.
9374
9375         * mi/mi-getopt.h: Move mi_opt struct up.
9376         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9377         return.
9378         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9379
9380 2012-03-06  Tom Tromey  <[email protected]>
9381
9382         * proc-service.c (ps_pglobal_lookup): Set the current program
9383         space.
9384
9385 2012-03-06  Pedro Alves  <[email protected]>
9386
9387         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9388
9389 2012-03-05  Joel Brobecker  <[email protected]>
9390
9391         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9392
9393 2012-03-05  Jan Kratochvil  <[email protected]>
9394
9395         Code cleanup.
9396         * common/linux-osdata.c (linux_common_core_of_thread): New function
9397         comment.
9398         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9399         call by linux_common_core_of_thread.
9400         (linux_nat_core_of_thread_1): Remove.
9401         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9402         * linux-thread-db.c: Include linux-osdata.h.
9403         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9404         linux_common_core_of_thread.
9405
9406 2012-03-05  Tom Tromey  <[email protected]>
9407
9408         * value.c (value_primitive_field): Don't fetch contents for
9409         non-virtual bases.
9410
9411 2012-03-05  Tom Tromey  <[email protected]>
9412
9413         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9414
9415 2012-03-05  Andreas Arnez  <[email protected]>
9416
9417         * s390-nat.c: Include "gregset.h".
9418
9419 2012-03-05  Jan Kratochvil  <[email protected]>
9420
9421         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9422         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9423         (libunwind_load): New variable so_error, use it for dlerror.  Try to
9424         load also LIBUNWIND_SO_7.
9425
9426 2012-03-05  Pedro Alves  <[email protected]>
9427
9428         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9429         is not NULL, and remove resulting dead code.
9430
9431 2012-03-05  Thomas Schwinge  <[email protected]>
9432
9433         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9434         prologue to sh_analyze_prologue.
9435         (sh_analyze_prologue): Make better use of such an upper limit, and
9436         generally be more cautious about accessing memory.
9437
9438 2012-03-05  Tom Tromey  <[email protected]>
9439
9440         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9441         _initialize_ia64_hpux_tdep.
9442
9443 2012-03-05  Pedro Alves  <[email protected]>
9444
9445         PR gdb/13766
9446
9447         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9448         the register state is clear, supply explicit zero, instead of
9449         marking the register unavailable.
9450
9451 2012-03-05  Tristan Gingold  <[email protected]>
9452
9453         * NEWS: Mention OpenVMS ia64 new target.
9454
9455 2012-03-05  Tristan Gingold  <[email protected]>
9456
9457         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9458         (ia64_unw_accessors, ia64_unw_rse_accessors)
9459         (ia64_libunwind_descr): Declare.
9460         * ia64-vms-tdep.c: New file.
9461         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9462         (ia64_libunwind_descr): Make them public.
9463         * configure.tgt: Add ia64-*-*vms*.
9464         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9465         (ALLDEPFILES): Add ia64-vms-tdep.c
9466
9467 2012-03-05  Tristan Gingold  <[email protected]>
9468
9469         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9470         * remote.c (PACKET_qXfer_uib): New enum value.
9471         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9472         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9473         (_initialize_remote): Call add_packet_config_cmd for
9474         xfer:uib packet.
9475
9476 2012-03-05  Tristan Gingold  <[email protected]>
9477
9478         * osabi.c (gdb_osabi_names): Add OpenVMS.
9479         (generic_elf_osabi_sniffer): Likewise.
9480         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9481
9482 2012-03-04  Jan Kratochvil  <[email protected]>
9483
9484         Removed unused code.
9485         * libunwind-frame.c (libunwind_frame_unwind)
9486         (libunwind_frame_base_address): Remove.
9487         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9488
9489 2012-03-04  Yao Qi  <[email protected]>
9490
9491         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9492         remove trailing new line.
9493         (agent_run_command, agent_run_command): Add _ markup.
9494         (agent_capability_check): Likewise.
9495
9496 2012-03-03  Jan Kratochvil  <[email protected]>
9497
9498         * breakpoint.c (set_condition_evaluation_mode): Set
9499         CONDITION_EVALUATION_MODE unconditionally.
9500
9501 2012-03-03  Yao Qi  <[email protected]>
9502
9503         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9504         * common/agent.h: Update declaration.
9505         * inf-child.c (inf_child_use_agent): New.
9506         (inf_child_can_use_agent): New.
9507         (inf_child_target): Initialize fields `to_use_agent'
9508         and `to_can_use_agent'.
9509         * agent.c (agent_new_objfile): New.
9510         (_initialize_agent): Add agent_new_objfile to new_objfile
9511         observer.
9512
9513         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9514         New.
9515         (linux_target_install_ops): Initialize field
9516         `to_static_tracepoint_markers_by_strid'.
9517         * remote.c (free_current_marker): Move it to ...
9518         * tracepoint.c (free_current_marker): ... here.  New.
9519         (cleanup_target_stop): New.
9520         * tracepoint.h: Declare free_current_marker.
9521         * NEWS: Add one entry about `info static-tracepoint-marker'.
9522
9523 2012-03-03  Yao Qi  <[email protected]>
9524
9525         * common/agent.c (agent_loaded_p): New.
9526         (agent_look_up_symbols): New global.
9527         * common/agent.h: Declare agent_loaded_p.
9528
9529 2012-03-03  Yao Qi  <[email protected]>
9530
9531         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9532         (agent_capability_check, agent_capability_invalidate): New.
9533         (symbol_list): New array element.
9534         * common/agent.h (enum agent_capa): New.
9535         * target.c (target_pre_inferior): Call agent_capability_invalidate.
9536
9537 2012-03-03  Yao Qi  <[email protected]>
9538
9539         * target.h (struct target_ops) <to_use_agent>: New field.
9540         (struct target_ops) <to_can_use_agent>: New field.
9541         (target_use_agent, target_can_use_agent): New macro.
9542         * target.c (update_current_target): Update.
9543         * remote.c: New enum `PACKET_QAgent'.
9544         (remote_protocol_features): Add a new element.
9545         (remote_use_agent, remote_can_use_agent): New.
9546         (init_remote_ops): Initialize field `can_use_agent' with
9547         remote_can_use_agent.  Intiailize field `use_agent' with
9548         remote_use_agent.
9549         * common/agent.c (use_agent): New global.
9550         * common/agent.h: Declare it.
9551         * tracepoint.c (info_static_tracepoint_markers_command): Add
9552         comment.
9553         * Makefile.in (SFILES): Add common/agent.c and agent.c.
9554         (COMMON_OBS): Add common/agent.o and agent.o
9555         (common-agent.o): New rule.
9556         * agent.c: New.
9557
9558 2012-03-03  Yao Qi  <[email protected]>
9559
9560         * common/agent.c: New.
9561         * common/agent.h: New.
9562         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9563         AC_CHECK_HEADERS.
9564         * configure, configh.in: Regenerated.
9565
9566 2012-03-02  Kevin Buettner  <[email protected]>
9567
9568         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9569         unless it exists for this architecture.
9570
9571 2012-03-02  Joel Brobecker  <[email protected]>
9572
9573         * language.h (struct language_defn): New "method" la_read_var_value.
9574         * findvar.c: #include "language.h".
9575         (default_read_var_value): Renames read_var_value.  Rewrite
9576         function description.
9577         (read_var_value): New function.
9578         * value.h (default_read_var_value): Add prototype.
9579         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9580         New functions.
9581         (ada_language_defn): Add entry for la_read_var_value.
9582         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9583         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9584         language_defn structures to add entry for new la_read_var_value
9585         field.
9586
9587 2012-03-02  Tom Tromey  <[email protected]>
9588             Pedro Alves  <[email protected]>
9589
9590         PR breakpoints/13776:
9591         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9592         breakpoints.
9593         (delete_longjmp_breakpoint_at_next_stop): New.
9594         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9595         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9596         before deleting the inferior.  Add comments.
9597         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9598         breakpoints immediately, but only on next stop.  Move that code
9599         next to where we mark other breakpoints for deletion.
9600
9601 2012-03-02  Joel Brobecker  <[email protected]>
9602
9603         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9604         marker.
9605         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9606         violation.
9607
9608 2012-03-02  Pedro Alves  <[email protected]>
9609
9610         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9611
9612 2012-03-02  Ulrich Weigand  <[email protected]>
9613
9614         Fix -Wmissing-prototypes build.
9615         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9616         * remote-sim.c (gdbsim_has_all_memory): Likewise.
9617         (gdbsim_has_memory): Likewise.
9618
9619 2012-03-02  Yao Qi  <[email protected]>
9620
9621         Fix -Wmissing-prototypes build.
9622         * charset.c (phony_iconv_open): Make static.
9623         (phony_iconv_close, phony_iconv): Likewise.
9624         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9625         * i386-windows-nat.c (_initialize_i386_windows_nat): New
9626         prototype.
9627         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9628         * ser-mingw.c (create_select_thread): Make static.
9629         * windows-termcap.c (tgetent): New prototype.
9630         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9631
9632 2012-03-02  Zhang Yuanhui  <[email protected]>
9633
9634         Fix -Wmissing-prototypes build.
9635         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9636         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9637         (_initialize_loadable): New prototypes.
9638
9639 2012-03-02  Doug Evans  <[email protected]>
9640
9641         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9642         abbrev table, read_comp_unit will do it.
9643
9644 2012-03-02  Jan Kratochvil  <[email protected]>
9645
9646         Fix -Wmissing-prototypes build.
9647         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9648         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9649         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9650         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9651         (_initialize_arm_symbian_tdep): New prototype.
9652         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9653         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9654         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9655         static.
9656         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9657         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9658         prototype.
9659         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9660         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9661         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9662         static.
9663         * moxie-tdep.c (moxie_process_record): Likewise.
9664         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9665         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9666         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9667         (_initialize_rl78_tdep): New prototype.
9668         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9669         (_initialize_rx_tdep): New prototype.
9670         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9671         (_initialize_darwin_solib): New prototype.
9672         * solib-spu.c: Include solib-spu.h.
9673         (_initialize_spu_solib): New prototype.
9674         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9675         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9676         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9677         (tic6x_software_single_step): Make it static.
9678         (_initialize_tic6x_tdep): New prototype.
9679
9680 2012-03-02  Jan Kratochvil  <[email protected]>
9681
9682         Fix -Wmissing-prototypes build.
9683         * cris-tdep.c (cris_can_use_hardware_watchpoint)
9684         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9685
9686 2012-03-01  Jan Kratochvil  <[email protected]>
9687
9688         Fix -Wmissing-prototypes build.
9689         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9690         (frv_have_stopped_data_address): Remove.
9691
9692 2012-03-01  Jan Kratochvil  <[email protected]>
9693
9694         Fix -Wmissing-prototypes build.
9695         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9696         * sh-tdep.c: Include sh64-tdep.h.
9697         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9698         * sh64-tdep.c: Include sh64-tdep.h.
9699         * sh64-tdep.h: New file.
9700
9701 2012-03-01  Maciej W. Rozycki <[email protected]>
9702
9703         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9704
9705 2012-03-01  Maciej W. Rozycki  <[email protected]>
9706
9707         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9708         sp_regnum once the gdbarch_init_osabi hook has been called.
9709
9710 2012-03-01  Maciej W. Rozycki  <[email protected]>
9711
9712         * mips-tdep.c (mips32_bc1_pc): New function.
9713         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9714         BPOSGE32 and BPOSGE64 instructions.
9715         (deal_with_atomic_sequence): Likewise.
9716         (mips32_instruction_has_delay_slot): Likewise.
9717
9718 2012-03-01  Maciej W. Rozycki  <[email protected]>
9719             Chris Dearman  <[email protected]>
9720             Maciej W. Rozycki  <[email protected]>
9721             Joseph Myers  <[email protected]>
9722
9723         * features/mips-dsp.xml: New file.
9724         * features/mips64-dsp.xml: New file.
9725         * features/mips-dsp-linux.xml: New file.
9726         * features/mips64-dsp-linux.xml: New file.
9727         * features/Makefile (WHICH): Add mips-dsp-linux and
9728         mips64-dsp-linux.
9729         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9730         * features/mips-dsp-linux.c: New file.
9731         * features/mips64-dsp-linux.c: New file.
9732         * regformats/mips-dsp-linux.dat: New file.
9733         * regformats/mips64-dsp-linux.dat: New file.
9734         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9735         registers.
9736         (mips64_linux_register_addr): Likewise.
9737         (mips64_linux_regsets_fetch_registers): Likewise.
9738         (mips64_linux_regsets_store_registers): Likewise.
9739         (mips64_linux_fetch_registers): Update call to
9740         mips64_linux_regsets_fetch_registers.
9741         (mips64_linux_store_registers): Update call to
9742         mips64_linux_regsets_store_registers.
9743         (mips_linux_read_description): Probe for DSP registers.
9744         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9745         and initialize_tdesc_mips64_dsp_linux.
9746         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9747         Remove padding of no longer used embedded register slots.
9748         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9749         (MIPS_RESTART_REGNUM): Redefine enum value.
9750         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9751         strings.
9752         (mips_tx39_reg_names): Likewise.
9753         (mips_linux_reg_names): New array of register names for Linux
9754         targets.
9755         (mips_register_name): Check for a null pointer in
9756         mips_processor_reg_names and return an empty string.
9757         (mips_register_type): Exclude embedded registers for the IRIX
9758         and Linux ABIs.
9759         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
9760         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
9761         DSP registers.
9762         (mips_stab_reg_to_regnum): Handle DSP accumulators.
9763         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9764         (mips_gdbarch_init): Likewise.  Initialize internal register
9765         indices for the Linux ABI.  Use dynamic numbers to refer to
9766         registers, as applicable, while parsing the target description.
9767         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9768
9769 2012-03-01  Joel Brobecker  <[email protected]>
9770
9771         * frame.h (read_frame_register_unsigned): Fix typo in function
9772         description.
9773
9774 2012-03-01  Pedro Alves  <[email protected]>
9775
9776         * jit-reader.in [!__cplusplus]
9777         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9778
9779 2012-03-01  Pedro Alves  <[email protected]>
9780
9781         * configure.ac (build_warnings): Add -Wmissing-prototypes.
9782         * configure: Regenerate.
9783
9784 2012-03-01  Pedro Alves  <[email protected]>
9785
9786         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9787         * breakpoint.c (create_exception_master_breakpoint, trace_command)
9788         (ftrace_command, strace_command): Make static.
9789         * d-lang.c (_initialize_d_language): Declare.
9790         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9791         * dwarf2loc.c (_initialize_dwarf2loc):
9792         * dwarf2read.c (process_psymtab_comp_unit): Make static.
9793         * exec.c (exec_get_section_table): Make static.
9794         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9795         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9796         * inferior.c (remove_inferior_command, add_inferior_command)
9797         (clone_inferior_command): Make static.
9798         * linux-nat.c (linux_nat_thread_address_space)
9799         (linux_nat_core_of_thread): Make static.
9800         * linux-tdep.c (_initialize_linux_tdep): Declare.
9801         * objc-lang.c (_initialize_objc_lang): Declare.
9802         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9803         Make static.
9804         (_initialize_opencl_language): Declare.
9805         * record.c (_initialize_record): Declare.
9806         * remote.c (demand_private_info, remote_get_tib_address)
9807         (remote_supports_cond_tracepoints)
9808         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9809         Make static.
9810         * skip.c (_initialize_step_skip): Declare.
9811         * symtab.c (skip_prologue_using_lineinfo): Make static.
9812         * tracepoint.c (delete_trace_state_variable)
9813         (trace_variable_command, delete_trace_variable_command)
9814         (get_uploaded_tsv, find_matching_tracepoint_location)
9815         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9816         Make static.
9817         * value.c (pack_unsigned_long): Make static.
9818         * varobj.c (varobj_ensure_python_env): Make static.
9819         * windows-tdep.c (_initialize_windows_tdep): Declare.
9820         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9821
9822 2012-03-01  Pedro Alves  <[email protected]>
9823
9824         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
9825         gdbarch parameter.
9826         (linux_init_abi): Install it as has_shared_address_space gdbarch
9827         callback.
9828
9829 2012-03-01  Pedro Alves  <[email protected]>
9830
9831         * observer.c (observer_test_first_notification_function)
9832         (observer_test_second_notification_function)
9833         (observer_test_third_notification_function): Add declarations.
9834
9835 2012-03-01  Pedro Alves  <[email protected]>
9836
9837         * common/signals.c (default_target_signal_to_host)
9838         (default_target_signal_from_host): Move ...
9839         * arch-utils.c: ... here.
9840         * arch-utils.h (default_target_signal_to_host)
9841         (default_target_signal_from_host): Declare.
9842
9843         * common/signals.c (target_signal_from_command): Move ...
9844         * infrun.c: ... here.
9845         * inferior.h (target_signal_from_command): Declare.
9846         * target.h (target_signal_from_command)
9847         (default_target_signal_from_host, default_target_signal_to_host):
9848         Delete declarations.
9849
9850         * common/signals.c (_initialize_signals): Delete.
9851
9852 2012-03-01  Pedro Alves  <[email protected]>
9853
9854         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9855         both __cplusplus and !__cplusplus.
9856
9857 2012-03-01  Pedro Alves  <[email protected]>
9858
9859         * psymtab.c (find_and_open_source): Delete declaration.
9860         * source.c (find_and_open_source): Move comment ...
9861         * source.h (find_and_open_source): ... to this new declaration.
9862
9863 2012-03-01  Pedro Alves  <[email protected]>
9864
9865         * inline-frame.c: Include inline-frame.h.
9866
9867 2012-03-01  Pedro Alves  <[email protected]>
9868
9869         * tui/tui-data.c (set_gen_win_origin): Delete.
9870         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9871         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9872
9873 2012-03-01  Pedro Alves  <[email protected]>
9874
9875         * remote.c (encode_actions): Delete declaration.
9876         * tracepoint.c (encode_actions): Make extern.
9877         * tracepoint.h (encode_actions): Declare.
9878
9879 2012-03-01  Pedro Alves  <[email protected]>
9880
9881         * python/py-breakpoint.c: Include python.h.
9882         * python/py-continueevent.c (create_continue_event_object): Make
9883         static.
9884         * python/py-lazy-string.c (stpy_get_type): Make static.
9885         * python/py-newobjfileevent.c (create_new_objfile_event_object):
9886         Make static.
9887         * python/py-utils.c (unicode_to_target_python_string): Make
9888         static.
9889         * python/py-value.c: Include python.h.
9890
9891 2012-03-01  Pedro Alves  <[email protected]>
9892
9893         * inferior.c (delete_threads_of_inferior): Delete.
9894
9895 2012-03-01  Pedro Alves  <[email protected]>
9896
9897         Import fallback definitions from glibc.
9898
9899         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9900         ps_prochandle): Forward declare.
9901         (ps_err_e): Use glibc's comments.
9902         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9903         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9904         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9905         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9906         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9907         (struct ps_prochandle): Adjust comment.
9908
9909 2012-03-01  Pedro Alves  <[email protected]>
9910
9911         * ada-lang.c (ada_modulus_from_name): Delete.
9912         * ada-lex.l (lexer_init): Make static.
9913
9914 2012-03-01  Pedro Alves  <[email protected]>
9915
9916         PR gdb/13767
9917
9918         * frame.c (read_frame_register_unsigned): New.
9919         * frame.h (read_frame_register_unsigned): Declare.
9920         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9921         Handle it.
9922         (print_i387_control_word): New parameter `control_p'.  Handle it.
9923         (i387_print_float_info): Handle unavailable float registers.
9924
9925 2012-03-01  Keith Seitz  <[email protected]>
9926
9927         * linespec.c (decode_line_2): Sort the list of methods
9928         alphabetically before presenting the user with a selection
9929         menu.
9930
9931 2012-03-01  Doug Evans  <[email protected]>
9932
9933         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9934         has_namespace_info.
9935         (dwarf2_read_abbrevs): Remove corresponding initialization.
9936
9937 2012-03-01  Scott J. Goldman <[email protected]>
9938
9939         * NEWS: Mention new python command class gdb.COMMAND_USER.
9940         * cli/cli-cmds.c (show_user): Print error when used on a python
9941         command.
9942         (init_cli_cmds): Update documentation strings for "show user" and
9943         "set/show max-user-call-depth" to clarify that it does not apply to
9944         python commands.
9945         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9946         error check.
9947         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9948         gdb python api.
9949         * top.c (execute_command): Only execute a user-defined command as a
9950         legacy macro if c->user_commands is set.
9951
9952 2012-03-01  Tom Tromey  <[email protected]>
9953
9954         * valprint.h (struct generic_val_print_decorations): New.
9955         (generic_val_print): Declare.
9956         * valprint.c (generic_val_print): New function.
9957         * p-valprint.c (p_decorations): New global.
9958         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9959         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9960         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9961         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9962         * m2-valprint.c (m2_decorations): New global.
9963         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9964         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9965         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9966         TYPE_CODE_ERROR>: Call generic_val_print.
9967         * f-valprint.c (f_decorations): New global.
9968         (f_val_print): Use print_function_pointer_address.
9969         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9970         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9971         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9972         generic_val_print.
9973         * c-valprint.c (c_decorations): New global.
9974         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9975         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9976         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9977         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9978         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9979         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9980         case.
9981
9982 2012-03-01  Tom Tromey  <[email protected]>
9983
9984         * valprint.c (val_print): Update.
9985         * p-valprint (pascal_val_print): Return void.
9986         * p-lang.h (pascal_val_print): Return void.
9987         * m2-valprint.c (m2_val_print): Return void.
9988         * m2-lang.h (m2_val_print): Return void.
9989         * language.h (struct language_defn) <la_val_print>: Return void.
9990         * language.c (unk_lang_val_print): Return void.
9991         * jv-valprint.c (java_val_print): Return void.
9992         * jv-lang.h (java_val_print): Return void.
9993         * f-valprint.c (f_val_print): Return void.
9994         * f-lang.h (f_val_print): Return void.
9995         * d-valprint.c (d_val_print): Return void.
9996         (dynamic_array_type): Update.
9997         * d-lang.h (d_val_print): Return void.
9998         * c-valprint.c (c_val_print): Return void.
9999         * c-lang.h (c_val_print): Return void.
10000         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10001         void.
10002         * ada-lang.h (ada_val_print): Return void.
10003
10004 2012-03-01  Tom Tromey  <[email protected]>
10005
10006         * value.h (val_print): Return void.
10007         * valprint.c (val_print): Return void.
10008
10009 2012-03-01  Tom Tromey  <[email protected]>
10010
10011         * value.h (common_val_print): Return void.
10012         * valprint.c (common_val_print): Return void.
10013
10014 2012-03-01  Tom Tromey  <[email protected]>
10015
10016         * value.h (value_print): Return void.
10017         * valprint.c (value_print): Return void.
10018         * p-valprint.c (pascal_value_print): Return void.
10019         * p-lang.h (pascal_value_print): Return void.
10020         * language.h (struct language_defn) <la_value_print>: Return
10021         void.
10022         * language.c (unk_lang_value_print): Return void.
10023         * jv-valprint.c (java_value_print): Return void.
10024         * jv-lang.h (java_value_print): Return void.
10025         * f-valprint.c (c_value_print): Don't declare.
10026         Include c-lang.h.
10027         * c-valprint.c (c_value_print): Return void.
10028         * c-lang.h (c_value_print): Return void.
10029         * ada-valprint.c (ada_value_print): Return void.
10030         * ada-lang.h (ada_value_print): Return void.
10031
10032 2012-03-01  Tom Tromey  <[email protected]>
10033
10034         * value.c (value_primitive_field): Handle virtual base classes.
10035
10036 2012-03-01  Tom Tromey  <[email protected]>
10037
10038         * gdbtypes.h (struct vbase): Remove.
10039
10040 2012-03-01  Tom Tromey  <[email protected]>
10041
10042         * c-valprint.c (print_function_pointer_address): Move...
10043         * valprint.c: ... here.  Make non-static.
10044         * m2-valprint.c (print_function_pointer_address): Remove.
10045         * valprint.h (print_function_pointer_address): Declare.
10046
10047 2012-03-01  Joel Brobecker  <[email protected]>
10048
10049         * NEWS: Document the fact that one can provide a condition when
10050         creating an Ada exception catchpoint.
10051
10052 2012-03-01  Tom Tromey  <[email protected]>
10053
10054         * valprint.c (val_print_type_code_flags): Fix placement of
10055         trailing brace.
10056
10057 2012-03-01  Joel Brobecker  <[email protected]>
10058
10059         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10060         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10061         environment variable before calling update-copyright.
10062
10063 2012-03-01  Joel Brobecker  <[email protected]>
10064
10065         * gnulib/extra/update-copyright: Update to the latest from
10066         gnulib's git repository.
10067         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10068         variable to 2 instead of 1.
10069
10070 2012-02-29  Joel Brobecker  <[email protected]>
10071
10072         * varobj.c (c_value_of_variable): Remove dead code.
10073
10074 2012-02-29  Joel Brobecker  <[email protected]>
10075
10076         * ada-lex.p (processId): Do not modify already encoded IDs.
10077         Update function documentation.
10078
10079 2012-02-29  Joel Brobecker  <[email protected]>
10080
10081         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10082         "name" with "struct symbol *name_sym".
10083         * ada-exp.y (write_var_or_type): Update call to
10084         ada_find_renaming_symbol.
10085         "name" with "struct symbol *name_sym". Adjust Implementation
10086         accordingly.  Adjust the function documentation.
10087
10088 2012-02-29  Joel Brobecker  <[email protected]>
10089
10090         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10091         * ada-lang.c (ada_find_any_type): Add advance declaration.
10092         Make static.  Replace ada_find_any_symbol by
10093         ada_find_any_type_symbol.
10094         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10095         Improve function description.  Make static.
10096         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10097         Replace ada_find_any_symbol by ada_find_any_type_symbol.
10098
10099 2012-02-29  Joel Brobecker  <[email protected]>
10100
10101         * ada-lang.c (struct tag_args): Delete.
10102         (ada_get_tsd_type): Function body moved up in source file.
10103         (ada_tag_name_1, ada_tag_name_2): Delete.
10104         (ada_get_tsd_from_tag): New function.
10105         (ada_tag_name_from_tsd): New function.
10106         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10107         to determine the tag name.
10108
10109 2012-02-29  Joel Brobecker  <[email protected]>
10110
10111         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10112         declaration.
10113         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10114         function.
10115
10116 2012-02-29  Joel Brobecker  <[email protected]>
10117
10118         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10119
10120 2012-02-29  Joel Brobecker  <[email protected]>
10121
10122         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10123         full searches.
10124
10125 2012-02-29  Joel Brobecker  <[email protected]>
10126
10127         * ada-lang.c (constrained_packed_array_type): If there is a
10128         parallel XA type, use it to determine the array index type.
10129
10130 2012-02-29  Joel Brobecker  <[email protected]>
10131
10132         * ada-valprint.c (ada_val_print_1): If our value is a reference
10133         to an array descriptor, dereference it before converting it
10134         to a simple array.
10135
10136 2012-02-29  Joel Brobecker  <[email protected]>
10137
10138         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10139         creating fixed value.
10140         (ada_value_ind, ada_coerce_ref, assign_component)
10141         (ada_evaluate_subexp): Remove call to unwrap_value before
10142         call to ada_to_fixed_value.
10143
10144 2012-02-29  Joel Brobecker  <[email protected]>
10145
10146         * ada-lang.c (to_fixed_array_type): Set result's type name.
10147
10148 2012-02-29  Joel Brobecker  <[email protected]>
10149
10150         * ada-lang.c (catch_ada_exception_command_split): Add new
10151         argument cond_string.  Add support for condition at end of
10152         "catch exception" commands.
10153         (ada_decode_exception_location): Add new argument cond_string.
10154         Update call to catch_ada_exception_command_split.
10155         (create_ada_exception_catchpoint): Add new argument cond_string.
10156         Set the breakpoint condition if needed.
10157         (catch_ada_exception_command): Update call to
10158         ada_decode_exception_location.
10159         (ada_decode_assert_location): Add function documentation.
10160         Add support for condition at end of "catch assert" command.
10161         (catch_assert_command): Update calls to ada_decode_assert_location
10162         and create_ada_exception_catchpoint.
10163
10164 2012-02-29  Jan Kratochvil  <[email protected]>
10165
10166         Fix disp-step-syscall.exp: fork: single step over fork.
10167         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10168         (i386_linux_get_syscall_number_from_regcache): ... here, new function
10169         comment, change parameters gdbarch and ptid to regcache.  Remove
10170         parameter regcache, initialize gdbarch from regcache here.
10171         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10172         New functions.
10173         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10174         instead.
10175         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10176         'syscall'.  Make the 'int' check more strict.
10177
10178 2012-02-29  Jan Kratochvil  <[email protected]>
10179
10180         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10181         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10182         (i386_linux_intx80_sysenter_syscall_record): ... here.
10183         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10184         Use the renamed function name.
10185
10186 2012-02-29  Jan Kratochvil  <[email protected]>
10187
10188         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10189         * breakpoint.c (until_break_command): Likewise.
10190         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10191         * infcall.c (call_function_by_hand): Likewise.
10192         * infcmd.c (finish_forward): Likewise.
10193         * infrun.c (insert_exception_resume_breakpoint): Likewise.
10194
10195 2012-02-28  Tristan Gingold  <[email protected]>
10196
10197         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10198         avoid variable assignments inside condition.
10199
10200 2012-02-28  Jan Kratochvil  <[email protected]>
10201
10202         Fix static analysis issue found by cppcheck.
10203         * microblaze-tdep.c (microblaze_extract_return_value): Fix
10204         uninitialized BUF for size 2.
10205
10206 2012-02-27  Chris Dearman  <[email protected]>
10207             Nathan Froyd  <[email protected]>
10208             Maciej W. Rozycki  <[email protected]>
10209
10210         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10211         (mips16_instruction_has_delay_slot): Likewise.
10212         (mips_segment_boundary): Likewise.
10213         (mips_adjust_breakpoint_address): Likewise.
10214         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10215
10216 2012-02-27  Maciej W. Rozycki  <[email protected]>
10217             Maciej W. Rozycki  <[email protected]>
10218
10219         * infrun.c (handle_inferior_event): Don't proceed through
10220         shared library trampolines if stepping at the machine
10221         instruction level.
10222
10223 2012-02-27  Maciej W. Rozycki  <[email protected]>
10224
10225         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10226         too.
10227
10228 2012-02-27  Thomas Schwinge  <[email protected]>
10229
10230         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10231         (sh_stub_unwind_sniffer): New functions.
10232         (sh_stub_unwind): New variable.
10233         (sh_gdbarch_init): Wire everything.
10234
10235 2012-02-27  Pedro Alves  <[email protected]>
10236
10237         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10238         (linux_nat_post_attach_wait): Adjust to use
10239         linux_proc_pid_is_stopped.
10240         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10241         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10242         based on pid_is_stopped from both linux-nat.c and
10243         gdbserver/linux-low.c, and renamed.
10244
10245 2012-02-24  Maciej W. Rozycki  <[email protected]>
10246
10247         * remote.c (remote_watchpoint_addr_within_range): New function.
10248         (init_remote_ops): Use it.
10249
10250 2012-02-24  Maciej W. Rozycki  <[email protected]>
10251
10252         * target.h (target_watchpoint_addr_within_range): Document macro.
10253
10254 2012-02-24  Pedro Alves  <[email protected]>
10255
10256         * stack.c (set_last_displayed_sal): Issue internal_error instead
10257         of warning, and issue it after clearing the last displayed sal.
10258
10259 2012-02-24  Jan Kratochvil  <[email protected]>
10260             Pedro Alves  <[email protected]>
10261
10262         * breakpoint.c (until_break_command): Install breakpoints after
10263         all frame manipulations.
10264
10265 2012-02-24  Luis Machado  <[email protected]>
10266
10267         * remote.c (remote_supports_cond_breakpoints): New forward
10268         declaration.
10269         (remote_add_target_side_condition): New function.
10270         (remote_insert_breakpoint): Add target-side breakpoint
10271         conditional if supported.
10272         (remote_insert_hw_breakpoint): Likewise.
10273         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10274         hook.
10275
10276         * target.c (update_current_target): Inherit
10277         to_supports_evaluation_of_breakpoint_conditions.
10278         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10279
10280         * target.h (struct target_ops)
10281         <to_supports_evaluation_of_breakpoint_conditions>: New field.
10282         (target_supports_evaluation_of_breakpoint_conditions): New #define.
10283
10284         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10285         (condition_evaluation_both, condition_evaluation_auto,
10286         condition_evaluation_host, condition_evaluation_target,
10287         condition_evaluation_enums, condition_evaluation_mode_1,
10288         condition_evaluation_mode): New static globals.
10289         (translate_condition_evaluation_mode): New function.
10290         (breakpoint_condition_evaluation_mode): New function.
10291         (gdb_evaluates_breakpoint_condition_p): New function.
10292         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10293         (mark_breakpoint_modified): New function.
10294         (mark_breakpoint_location_modified): New function.
10295         (set_condition_evaluation_mode): New function.
10296         (show_condition_evaluation_mode): New function.
10297         (bp_location_compare_addrs): New function.
10298         (get_first_location_gte_addr): New helper function.
10299         (set_breakpoint_condition): Free condition bytecode if locations
10300         has become unconditional.  Call mark_breakpoint_modified (...).
10301         (condition_command): Call update_global_location_list (1) for
10302         breakpoints.
10303         (breakpoint_xfer_memory): Use is_breakpoint (...).
10304         (is_breakpoint): New function.
10305         (parse_cond_to_aexpr): New function.
10306         (build_target_condition_list): New function.
10307         (insert_bp_location): Handle target-side conditional
10308         breakpoints and call build_target_condition_list (...).
10309         (update_inserted_breakpoint_locations): New function.
10310         (insert_breakpoint_locations): Handle target-side conditional
10311         breakpoints.
10312         (bpstat_check_breakpoint_conditions): Add comment.
10313         (bp_condition_evaluator): New function.
10314         (bp_location_condition_evaluator): New function.
10315         (print_breakpoint_location): Print information on where the condition
10316         will be evaluated.
10317         (print_one_breakpoint_location): Likewise.
10318         (init_bp_location): Call mark_breakpoint_location_modified (...) for
10319         breakpoint location.
10320         (force_breakpoint_reinsertion): New functions.
10321         (update_global_location_list): Handle target-side breakpoint
10322         conditions.
10323         Reinsert locations that are already inserted if conditions have
10324         changed.
10325         (bp_location_dtor): Free agent expression bytecode.
10326         (disable_breakpoint): Call mark_breakpoint_modified (...).
10327         Call update_global_location_list (...) with parameter 1 for breakpoints.
10328         (disable_command): Call mark_breakpoint_location_modified (...).
10329         Call update_global_location_list (...) with parameter 1 for breakpoints.
10330         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10331         (enable_command): mark_breakpoint_location_modified (...).
10332         (_initialize_breakpoint): Update documentation and add
10333         condition-evaluation breakpoint subcommand.
10334
10335         * breakpoint.h: Include ax.h.
10336         (condition_list): New data structure.
10337         (condition_status): New enum.
10338         (bp_target_info) <cond_list>: New field.
10339         (bp_location) <condition_changed, cond_bytecode>: New fields.
10340         (is_breakpoint): New prototype.
10341
10342 2012-02-24  Luis Machado  <[email protected]>
10343
10344         * remote.c (remote_state) <cond_breakpoints>: New field.
10345         (PACKET_ConditionalBreakpoints): New enum.
10346         (remote_cond_breakpoint_feature): New function.
10347         (remote_protocol_features): Add new ConditionalBreakpoints entry.
10348         (remote_supports_cond_breakpoints): New function.
10349         (_initialize_remote): Add new packet configuration for
10350         target-side conditional breakpoints.
10351
10352 2012-02-24  Luis Machado  <[email protected]>
10353
10354         * NEWS: Mention target-side conditional breakpoint support,
10355         new condition-evaluation breakpoint subcommand and remote
10356         packet extensions.
10357
10358 2012-02-24  Luis Machado  <[email protected]>
10359
10360         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10361         number.
10362
10363 2012-02-24  Thomas Schwinge  <[email protected]>
10364
10365         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10366         (after_prologue): Remove.
10367
10368 2012-02-23  Tom Tromey  <[email protected]>
10369
10370         * jv-valprint.c (java_val_print): Remove dead code.
10371
10372 2012-02-23  Tristan Gingold  <[email protected]>
10373
10374         * ada-tasks.c (struct ada_tasks_inferior_data): Add
10375         known_tasks_element and known_tasks_length fields.
10376         (read_known_tasks_array): Change argument type.  Use pointer type
10377         and number of elements from DATA.  Adjust.
10378         (read_known_tasks_list): Likewise.
10379         (get_known_tasks_addr): Remove.
10380         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10381         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
10382         type and array length.  Merge former get_known_tasks_addr code.
10383
10384 2012-02-23  Jan Kratochvil  <[email protected]>
10385
10386         PR backtrace/13716
10387         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10388         it after set_momentary_breakpoint.
10389
10390 2012-02-22  Sterling Augustine  <[email protected]>
10391
10392         PR 13689:
10393         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10394
10395 2012-02-22  Gary Benson  <[email protected]>
10396
10397         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10398         (find_slot_in_mapped_hash): Likewise.
10399
10400 2012-02-21  Jan Kratochvil  <[email protected]>
10401
10402         PR build/13638
10403         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10404         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10405         * configure: Regenerate.
10406
10407 2012-02-21  Tristan Gingold  <[email protected]>
10408             Pedro Alves  <[email protected]>
10409
10410         * ia64-tdep.c: Do not include libunwind-ia64.h.
10411         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10412         Include libunwind-ia64.h instead of libunwind.h.
10413         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10414         for libunwind.h existence.
10415         * configure, config.in: Regenerate.
10416
10417 2012-02-21  Anton Gorenkov  <[email protected]>
10418
10419         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10420         instead of value_rtti_target_type.
10421         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10422         instead of value_rtti_target_type.
10423         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10424         value_rtti_target_type.
10425         * valops.c (value_ind): Extract function readjust_indirect_value_type.
10426         (value_rtti_target_type): Rename to ...
10427         (value_rtti_indirect_type): ... here and make it indirect.  Update
10428         function comment.
10429         * value.c (readjust_indirect_value_type): New function.
10430         (coerce_ref): Support for enclosing type setting for references
10431         with readjust_indirect_value_type.
10432         * value.h (readjust_value_type): New declaration.
10433         (value_rtti_target_type): Rename to ...
10434         (value_rtti_indirect_type): ... here.
10435
10436 2012-02-21  Anton Gorenkov  <[email protected]>
10437
10438         * MAINTAINERS (Write After Approval): Add myself to the list.
10439
10440 2012-02-20  Doug Evans  <[email protected]>
10441
10442         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10443         Rename objfile_p_char parameter to objfilep.
10444         (build_objfile_section_table): Result is now void.  All callers
10445         updated.
10446         * objfiles.h (struct objfile): Tweak comments, whitespace.
10447         (build_objfile_section_table): Update.
10448
10449         * elfread.c (elf_symfile_segments): Fix warning text.
10450
10451 2012-02-20  Tom Tromey  <[email protected]>
10452
10453         PR gdb/13498:
10454         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10455         particular set of file names once.
10456         (dw2_map_symbol_filenames): Likewise.
10457
10458 2012-02-20  Jan Kratochvil  <[email protected]>
10459
10460         Code cleanup.
10461         * main.c (write_files): Remove the declaration.
10462         (external_editor_command): Move the declaration ...
10463         [GDBTK] (external_editor_command): ... here.  Fix the comment.
10464
10465 2012-02-20  Tom Tromey  <[email protected]>
10466
10467         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10468         extraneous block.
10469
10470 2012-02-20  Tristan Gingold  <[email protected]>
10471
10472         * darwin-nat.h (enum darwin_msg_state): Add comments.
10473
10474 2012-02-20  Tristan Gingold  <[email protected]>
10475
10476         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10477         value.
10478
10479 2012-20-18  Joel Brobecker  <[email protected]>
10480
10481         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10482         between function description and implementation.
10483
10484 2012-02-17  Tom Tromey  <[email protected]>
10485
10486         PR python/12070:
10487         * python/py-event.c (event_object_getset): New global.
10488         (event_object_type): Reference it.
10489         * python/py-type.c (field_object_getset): New global.
10490         (field_object_type): Reference it.
10491         * python/python-internal.h (gdb_py_generic_dict): Declare.
10492         * python/py-utils.c (gdb_py_generic_dict): New function.
10493
10494 2012-02-17  Tristan Gingold  <[email protected]>
10495
10496         * solib-darwin.c (darwin_current_sos): Check magic and filetype
10497
10498 2012-02-17  Thomas Schwinge  <[email protected]>
10499
10500         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10501         TYPE_CALLING_CONVENTION annotation.
10502
10503 2012-02-16  Kevin Buettner  <[email protected]>
10504
10505         * MAINTAINERS: Add rx to target ISA section.
10506         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10507         (ALLDEPFILES): Add rx-tdep.c.
10508
10509 2012-02-16  Tom Tromey  <[email protected]>
10510
10511         * symfile.c (symbol_file_add_main_1): Use inferior's
10512         symfile_flags.
10513         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10514         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10515         inferior.
10516         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10517         inferior.
10518         (follow_exec): Use inferior's symfile_flags.
10519         * inferior.h (struct inferior) <symfile_flags>: New field.
10520
10521 2012-02-16  Mike Frysinger  <[email protected]>
10522
10523         PR gdb/9734:
10524         * remote-sim.c (gdbsim_create_inferior): Call error() when
10525         sim_create_inferior() fails.
10526
10527 2012-02-16  Josh Matthews  <[email protected]>
10528
10529         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10530
10531 2012-02-16  Tom Tromey  <[email protected]>
10532
10533         PR c++/13653:
10534         * thread.c (struct current_thread_cleanup) <was_removable>: New
10535         field.
10536         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10537         (make_cleanup_restore_current_thread): Initialize new field.
10538
10539 2012-02-15  Kevin Buettner  <[email protected]>
10540
10541         * MAINTAINERS: Add rl78 to target ISA section.
10542         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10543         (ALLDEPFILES): Add rl78-tdep.c.
10544         * NEWS: Mention rl78 as a new target.
10545
10546 2012-02-15  Aleksandar Ristovski  <[email protected]>
10547
10548         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10549         data.
10550         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10551
10552 2012-02-15  Tom Tromey  <[email protected]>
10553
10554         PR gdb/12659:
10555         * infcmd.c (registers_info): Print just the current register's
10556         name.
10557
10558 2012-02-15  Tom Tromey  <[email protected]>
10559
10560         * python/py-symbol.c (sympy_value): Use _().
10561
10562 2012-02-15  Pedro Alves  <[email protected]>
10563
10564         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10565         output to be like native targets'.
10566         (remote_pid_to_str): Special case the null ptid.
10567
10568 2012-02-14  Stan Shebs  <[email protected]>
10569
10570         * NEWS: Mention enable count command.
10571         * breakpoint.h (struct breakpoint): New field enable_count.
10572         * breakpoint.c (enable_breakpoint_disp): Add count argument.
10573         (enable_breakpoint): Add arg to call.
10574         (struct disp_data): New struct.
10575         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10576         (do_map_enable_once_breakpoint): Create a struct and pass it.
10577         (do_map_enable_delete_breakpoint): Ditto.
10578         (do_map_enable_count_breakpoint): New function.
10579         (enable_count_command): New function.
10580         (bpstat_stop_status): Decrement enable_count.
10581         (print_one_breakpoint_location): Report enable count.
10582         (_initialize_breakpoint): Add enable count command.
10583
10584 2012-02-14  Kevin Buettner  <[email protected]>
10585
10586         * rl78-tdep.c (reggroups.h): Include.
10587         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10588         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10589         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10590         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10591         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10592         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10593         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10594         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10595         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10596         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10597         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10598         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10599         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10600         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10601         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10602         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10603         beginning of register list.
10604         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10605         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10606         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10607         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10608         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10609         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10610         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10611         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10612         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10613         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10614         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10615         the pseudo registers.  Rearrange other pseudo registers too so
10616         that the bank registers appear at the end.
10617         (rl78_register_type): Account for the fact that the byte sized
10618         bank registers are now pseudo-registers.
10619         (rl78_register_name): Rearrange the register name array.  Make
10620         initial set of raw banked registers inaccessible.
10621         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10622         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10623         case for copying bytes back and forth between raw and pseudo
10624         versions of the banked registers.  Update other cases to reflect
10625         the changed names.
10626         (rl78_return_value): Update to account for changed names of
10627         raw registers.
10628         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10629         rl78_register_sim_regno().
10630
10631 2012-02-14  Kevin Buettner  <[email protected]>
10632
10633         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10634         the name parameter being passed to find_pc_partial_function().
10635
10636 2012-02-14  Jan Kratochvil  <[email protected]>
10637
10638         * MAINTAINERS: Step down from being ia64 target maintainer.
10639
10640 2012-02-12  Jan Kratochvil  <[email protected]>
10641
10642         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10643         compilation warning.
10644
10645 2012-02-12  Jan Kratochvil  <[email protected]>
10646
10647         Fix crash on loaded shlibs without loaded exec_bfd.
10648         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10649         (set_section_command): Replace exec_bfd by p->bfd.
10650
10651 2012-02-10  Tom Tromey  <[email protected]>
10652
10653         * linespec.c (decode_line_internal): Skip symtabs_from_filename
10654         when we have a C++ qualified name.
10655
10656 2012-02-10  Pedro Alves  <[email protected]>
10657
10658         * inferior.c (inferior_pid_to_str): New.
10659         (print_inferior, inferior_command): Use it.
10660
10661 2012-02-10  Pedro Alves  <[email protected]>
10662
10663         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10664         the test CFLAGS.
10665         * configure: Regenerate.
10666
10667 2012-02-10  Jan Kratochvil  <[email protected]>
10668
10669         * linespec.c (decode_line_internal): Fix comment correctness.
10670
10671 2012-02-09  Valery Khromov  <[email protected]>
10672
10673         PR gdb/12953
10674         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10675         * amd64bsd-nat.c: Add support for debug registers (adapted from
10676         i386bsd-nat.c).
10677         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10678         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10679         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10680         (amd64bsd_dr_get_control): New functions.
10681         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10682         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10683         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10684         watchpoints initialization.
10685         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10686
10687 2012-02-09  Jan Kratochvil  <[email protected]>
10688
10689         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10690         flds_bnds.fields.
10691         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10692
10693 2012-02-09  Jan Kratochvil  <[email protected]>
10694
10695         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
10696
10697 2012-02-08  Joel Brobecker  <[email protected]>
10698
10699         * language.h (symbol_name_cmp_ftype): Renames
10700         symbol_name_match_p_ftype.
10701         (struct language_defn)[la_get_symbol_name_cmp]: Renames
10702         la_get_symbol_name_match_p.
10703         * ada-lang.c (ada_get_symbol_name_cmp): Renames
10704         ada_get_symbol_name_match_p.  Update comment.
10705         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10706         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10707         Renames symbol_name_match_p.  Update field type.
10708         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10709         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10710         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10711         "la_get_symbol_name_cmp" in comments.
10712         * language.c: Likewise.
10713
10714 2012-02-08  Rainer Orth  <[email protected]>
10715
10716         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10717         %eflags offset.
10718         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10719         (amd64_sol2_gregset32_reg_offs): Likewise.
10720
10721 2012-02-08  Joel Brobecker  <[email protected]>
10722
10723         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10724         of the returned BFD is allocated by GDB.
10725
10726 2012-02-07  Tom Tromey  <[email protected]>
10727
10728         PR python/12027:
10729         * python/python-internal.h (frame_object_type): Declare.
10730         * python/py-symbol.c (sympy_needs_frame): New function.
10731         (sympy_value): New function.
10732         (symbol_object_getset): Add "needs_frame".
10733         (symbol_object_methods): Add "value".
10734         * python/py-frame.c (frame_object_type): No longer static.
10735
10736 2012-02-07  Tom Tromey  <[email protected]>
10737
10738         PR python/13599:
10739         * python/py-symbol.c (sympy_line): New function.
10740         (symbol_object_getset): Add "line".
10741
10742 2012-02-07  Tom Tromey  <[email protected]>
10743
10744         * charset.c (find_charset_names): Check 'in' against NULL.
10745
10746 2012-02-06  Doug Evans  <[email protected]>
10747
10748         * gdbtypes.h (struct main_type): Change type of name,tag_name,
10749         and fields.name members from char * to const char *.  All uses updated.
10750         (struct cplus_struct_type): Change type of fn_fieldlists.name member
10751         from char * to const char *.  All uses updated.
10752         (type_name_no_tag): Update.
10753         (lookup_unsigned_typename, lookup_signed_typename): Update.
10754         * gdbtypes.c (type_name_no_tag): Change result type
10755         from char * to const char *.  All callers updated.
10756         (lookup_unsigned_typename, lookup_signed_typename): Change type of
10757         name parameter from char * to const char *.
10758         * symtab.h (struct cplus_specific): Change type of demangled_name
10759         member from char * to const char *.  All uses updated.
10760         (struct general_symbol_info): Change type of name and
10761         mangled_lang.demangled_name members from char * to const char *.
10762         All uses updated.
10763         (symbol_get_demangled_name, symbol_natural_name): Update.
10764         (symbol_demangled_name, symbol_search_name): Update.
10765         * symtab.c (symbol_get_demangled_name): Change result type
10766         from char * to const char *.  All callers updated.
10767         (symbol_natural_name, symbol_demangled_name): Ditto.
10768         (symbol_search_name): Ditto.
10769         (completion_list_add_name): Change type of symname,sym_text,
10770         text,word parameters from char * to const char *.
10771         (completion_list_objc_symbol): Change type of sym_text,
10772         text,word parameters from char * to const char *.
10773         * ada-lang.c (find_struct_field): Change type of name parameter
10774         from char * to const char *.
10775         (encoded_ordered_before): Similarly for N0,N1 parameters.
10776         (old_renaming_is_invisible): Similarly for function_name parameter.
10777         (ada_type_name): Change result type from char * to const char *.
10778         All callers updated.
10779         * ada-lang.h (ada_type_name): Update.
10780         * buildsym.c (hashname): Change type of name parameter
10781         from char * to const char *.
10782         * buildsym.h (hashname): Update.
10783         * dbxread.c (end_psymtab): Change type of include_list parameter
10784         from char ** to const char **.
10785         * dwarf2read.c (determine_prefix): Change result type
10786         from char * to const char *.  All callers updated.
10787         * f-lang.c (find_common_for_function): Change type of name, funcname
10788         parameters from char * to const char *.
10789         * f-lang.c (find_common_for_function): Update.
10790         * f-valprint.c (list_all_visible_commons): Change type of funcname
10791         parameters from char * to const char *.
10792         * gdbarch.sh (static_transform_name): Change type of name parameter
10793         and result from char * to const char *.
10794         * gdbarch.c: Regenerate.
10795         * gdbarch.h: Regenerate.
10796         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10797         of name parameter from char * to const char *.
10798         * jv-lang.c (java_primitive_type_from_name): Ditto.
10799         (java_demangled_signature_length): Similarly for signature parameter.
10800         (java_demangled_signature_copy): Ditto.
10801         (java_demangle_type_signature): Ditto.
10802         * jv-lang.h (java_primitive_type_from_name): Update.
10803         (java_demangle_type_signature): Update.
10804         * objc-lang.c (specialcmp): Change type of a,b parameters
10805         from char * to const char *.
10806         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10807         from char * to const char *.  All callers updated.
10808         * p-lang.h (is_pascal_string_type): Update.
10809         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10810         of name parameter from char * to const char *.
10811         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10812         * utils.c (fprintf_symbol_filtered): Ditto.
10813         * defs.h (fprintf_symbol_filtered): Update.
10814         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10815         * stabsread.h (end_psymtab): Update.
10816         * stack.c (find_frame_funname): Change type of funname parameter
10817         from char ** to const char **.
10818         * stack.h (find_frame_funname): Update.
10819         * typeprint.c (type_print): Change type of varstring parameter
10820         from char * to const char *.
10821         * value.h (type_print): Update.
10822         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10823         from char * to const char *.  All callers updated.
10824         (xcoff_end_psymtab): Change type of include_list parameter
10825         from char ** to const char **.  All callers updated.
10826         (swap_sym): Similarly for name parameter.  All callers updated.
10827         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10828         Use xstrdup.
10829         (process_coff_symbol): Use xstrdup.
10830         * stabsread.c (stabs_method_name_from_physname): Renamed from
10831         update_method_name_from_physname.  Change result type from void
10832         to char *.  All callers updated.
10833         (read_member_functions): In has_destructor case, store name in objfile
10834         obstack instead of malloc space.  In !has_stub case, fix mem leak.
10835
10836 2012-02-06  Luca Pizzamiglio  <[email protected]>
10837
10838         * configure: Rebuild.
10839         * configure.ac: Put -L../bfd and -L../libiberty at the front of
10840         LDFLAGS.
10841
10842 2012-02-03  Kevin Buettner  <[email protected]>
10843
10844         * configure.tgt (rl78-*-elf): New target.
10845         * rl78-tdep.c: New file.
10846
10847 2012-02-03  Philippe Waroquiers  <[email protected]>
10848
10849         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10850         and continue the loop.  Add QUIT statement.
10851
10852 2012-02-03  Tom Tromey  <[email protected]>
10853
10854         PR gdb/13596:
10855         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10856         bfd_lookup_symbol_from_symtab.
10857         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10858         gdb_bfd_lookup_symbol_from_symtab.
10859
10860 2012-02-03  Joel Brobecker  <[email protected]>
10861
10862         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10863         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10864         symbol.  Add assertion that sym2 is never NULL.
10865
10866 2012-02-02  Doug Evans  <[email protected]>
10867
10868         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10869         "name" parameter to const char ** from char **.  All callers updated.
10870         (find_pc_partial_function): Ditto.
10871         (cache_pc_function_name): Change type to const char * from char *.
10872         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10873         (find_pc_partial_function): Update.
10874         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10875         type of "name" parameter to const char * from char *.
10876         All uses updated.
10877         * arch-utils.c (generic_in_solib_return_trampoline): Change
10878         type of "name" parameter to const char * from char *.
10879         * arch-utils.h (generic_in_solib_return_trampoline): Update.
10880         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10881         type of "name" parameter to const char * from char *.
10882         * gdbarch.sh (in_solib_return_trampoline): Ditto.
10883         * gdbarch.c: Regenerate.
10884         * gdbarch.h: Regenerate.
10885         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10886         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10887         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10888         type of "name" parameter to const char * from char *.
10889         * skip.c (skip_function_pc): Ditto.
10890         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10891         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10892         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10893         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10894         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10895         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10896         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10897         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10898         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10899
10900 2012-02-02  Pedro Alves  <[email protected]>
10901
10902         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10903         the current inferior has no execution.  Make sure the current
10904         remote process matches gdb's current inferior.
10905
10906 2012-02-02  Tom Tromey  <[email protected]>
10907
10908         PR gdb/13405:
10909         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10910         read-only memory.
10911
10912 2012-02-02  Tom Tromey  <[email protected]>
10913
10914         PR gdb/9307:
10915         * symtab.c (lookup_language_this): Set block_found.
10916
10917 2012-02-01  Tom Tromey  <[email protected]>
10918
10919         PR gdb/13431:
10920         * jit.c (struct jit_inferior_data): Rewrite.
10921         (struct jit_objfile_data): New.
10922         (get_jit_objfile_data): New function.
10923         (add_objfile_entry): Update.
10924         (jit_read_descriptor): Return int.  Replace descriptor_addr
10925         argument with inf_data.  Update.  Don't call error.
10926         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
10927         descriptor here.
10928         (jit_inferior_init): Don't look up descriptor.  Don't call error.
10929         (jit_reset_inferior_data_and_breakpoints)
10930         (jit_inferior_created_observer): Remove.
10931         (jit_inferior_exit_hook): Update.
10932         (jit_executable_changed_observer): Remove.
10933         (jit_event_handler): Update.
10934         (free_objfile_data): Reset inferior data if needed.
10935         (_initialize_jit): Update.
10936
10937 2012-02-01  Tom Tromey  <[email protected]>
10938
10939         * jit.c (bfd_open_from_target_memory): Move higher in file.
10940
10941 2012-02-01  Tristan Gingold  <[email protected]>
10942
10943         * libunwind-frame.c (libunwind_load): Display message if dlopen
10944         failed.
10945
10946 2012-02-01  Gary Benson  <[email protected]>
10947
10948         * symtab.h (symbol_found_callback_ftype): New typedef.
10949         (iterate_over_symbols): Use the above.
10950         * symtab.c (iterate_over_symbols): Likewise.
10951         * language.h (language_defn->la_iterate_over_symbols): Likewise.
10952         * ada-lang.c (ada_iterate_over_symbols): Likewise.
10953         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10954         (iterate_name_matcher): Document return values.
10955         (collect_one_symbol): Likewise.
10956         (collect_function_symbols): Likewise.
10957         (collect_symbols): Likewise.
10958
10959 2012-02-01  Tom Tromey  <[email protected]>
10960
10961         * ada-lang.c (resolve_subexp): Update.
10962         (ada_lookup_symbol_list): Add 'full_search' argument.
10963         (ada_iterate_over_symbols): Pass 0 as full_search argument to
10964         ada_lookup_symbol_list.
10965         (ada_lookup_encoded_symbol): Update.
10966         (get_var_value): Update.
10967         * ada-exp.y (block_lookup): Update.
10968         (write_var_or_type): Update.
10969         (write_name_assoc): Update.
10970         * ada-lang.h (ada_lookup_symbol_list): Update.
10971
10972 2012-01-31  Tom Tromey  <[email protected]>
10973
10974         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10975         comment.
10976
10977 2012-01-31  Doug Evans  <[email protected]>
10978
10979         * symtab.h: Remove outdated comment.
10980         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10981
10982 2012-02-01  Josh Matthews  <[email protected]>  (tiny change)
10983
10984         Fix build error in Darwin port.
10985         * i386-darwin-nat.c: Include i386-nat.h.
10986
10987 2012-01-30  Tom Tromey  <[email protected]>
10988
10989         PR breakpoints/13568:
10990         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10991         argument.  Check for recursive includes.
10992         (dwarf_decode_macros): Create an include hash.
10993
10994 2012-01-30  Michael Eager  <[email protected]>
10995
10996         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10997         * ppc-linux-tdep.c: Include glibc-tdep.h.
10998         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10999         (powerpc_linux_in_plt_stub): New function.
11000         (powerpc_linux_in_dynsym_resolve_code): New function.
11001         (ppc_skip_trampoline_code): New function.
11002         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11003         Use glibc_skip_solib_resolver.
11004
11005 2012-01-28  Jan Kratochvil  <[email protected]>
11006
11007         Code cleanup: Make 1440 bytes of data segment read-only.
11008         * arch-utils.c (endian_enum): Make it const char *const [].
11009         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11010         Likewise.
11011         * breakpoint.c (always_inserted_enums): Likewise.
11012         * cli/cli-cmds.c (script_ext_enums): Likewise.
11013         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11014         enumlist parameter const char *const *.
11015         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11016         const char *const *.
11017         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11018         parameter const char *const *.
11019         * cris-tdep.c (cris_modes): Make it const char *const [].
11020         * filesystem.c (target_file_system_kinds): Likewise.
11021         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11022         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11023         (can_use_displaced_stepping_enum, scheduler_enums)
11024         (exec_direction_names): Likewise.
11025         * language.c (_initialize_language): Make the type_or_range_names and
11026         case_sensitive_names variables const char *const [].
11027         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11028         * python/python.c (python_excp_enums): Likewise.
11029         * remote.c (interrupt_sequence_modes): Likewise.
11030         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11031         * serial.c (logbase_enums): Likewise.
11032         * sh-tdep.c (sh_cc_enum): Likewise.
11033         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11034         Likewise.
11035         * symtab.c (multiple_symbols_modes): Likewise.
11036         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11037         Likewise.
11038         * utils.c (internal_problem_modes): Likewise.
11039
11040 2012-01-27  Jan Kratochvil  <[email protected]>
11041
11042         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11043         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11044         result.
11045
11046 2012-01-27  Doug Evans  <[email protected]>
11047
11048         * configure.ac (with_python): Fix absolute path handling for win32.
11049         * configure: Regenerate.
11050
11051 2012-01-26  Doug Evans  <[email protected]>
11052
11053         * symtab.c: Whitespace cleanup, no code changes.
11054
11055         * symtab.c (lookup_symbol_in_language): Improve comment.
11056         (lookup_symbol_aux): Fix comment.
11057
11058         * psymtab.c (add_psymbol_to_list): Result is now "void".
11059         * psympriv.h (add_psymbol_to_list): Update.
11060
11061         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11062
11063 2012-01-26  Jan Kratochvil  <[email protected]>
11064
11065         Do not open script filenames twice.
11066         * cli/cli-cmds.c (source_script_from_stream): Pass to
11067         source_python_script also STREAM.
11068         * python/py-auto-load.c (source_section_scripts): Pass to
11069         source_python_script_for_objfile also STREAM.
11070         (auto_load_objfile_script): Pass to source_python_script_for_objfile
11071         also INPUT.
11072         * python/python-internal.h (source_python_script_for_objfile): New
11073         parameter file, rename parameter file to filename.
11074         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11075         instead if !_WIN32.  Update the function comment.
11076         (source_python_script, source_python_script_for_objfile)
11077         (source_python_script): New parameter file, rename parameter file to
11078         filename.  Pass FILENAME to python_run_simple_file.
11079         * python/python.h (source_python_script): New parameter file, rename
11080         parameter file to filename.
11081
11082 2012-01-26  Pedro Alves  <[email protected]>
11083
11084         * corelow.c (core_has_fake_pid): Delete.
11085         (core_close): Delete references to `core_has_fake_pid'.
11086         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11087         (core_open): Delete references to `core_has_fake_pid'.
11088         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11089         the removed global.
11090
11091 2012-01-26  Joel Brobecker  <[email protected]>
11092
11093         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11094         Remove language parameter from name_matcher.  Adjust the comment.
11095         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11096         Remove language parameter.
11097         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11098         * linespec.c (iterate_name_matcher): Likewise.
11099         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11100         name_matcher.  Adjust call accordingly.
11101         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11102         (maintenance_check_symtabs): Adjust type of parameter "fun".
11103         * psymtab.h (maintenance_check_symtabs): Likewise.
11104
11105 2012-01-26  Joel Brobecker  <[email protected]>
11106
11107         * language.h (symbol_name_match_p_ftype): New typedef.
11108         (struct language_defn): Replace field la_symbol_name_compare
11109         by la_get_symbol_name_match_p.
11110         * ada-lang.c (ada_get_symbol_name_match_p): New function.
11111         (ada_language_defn): Use it.
11112         * linespec.c (struct symbol_matcher_data): New type.
11113         (iterate_name_matcher): Rewrite.
11114         (iterate_over_all_matching_symtabs): Pass a pointer to
11115         a symbol_matcher_data struct to expand_symtabs_matching
11116         instead of just the lookup name.
11117         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11118         opencl-lang.c, p-lang.c, language.c: Delete field
11119         la_symbol_name_compare, and replace by NULL for new field
11120         la_get_symbol_name_match_p.
11121         * symfile.h (struct quick_symbol_functions): Update comment.
11122
11123 2012-01-25  Tom Tromey  <[email protected]>
11124
11125         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11126         dereferencing.
11127
11128 2012-01-24  Tom Tromey  <[email protected]>
11129
11130         PR symtab/12406:
11131         * solib.c (update_solib_list): Update the program space's
11132         added_solibs and deleted_solibs fields.
11133         * progspace.h (struct program_space) <added_solibs,
11134         deleted_solibs>: New fields.
11135         (clear_program_space_solib_cache): Declare.
11136         * progspace.c (release_program_space): Call
11137         clear_program_space_solib_cache.
11138         (clear_program_space_solib_cache): New function.
11139         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11140         bpstat_stop_status.  Use handle_solib_event.
11141         * breakpoint.c: Include gdb_regex.h.
11142         (print_solib_event): New function.
11143         (bpstat_print): Use print_solib_event.
11144         (bpstat_stop_status): Add special case for bp_shlib_event.
11145         (handle_solib_event): New function.
11146         (bpstat_what): Use handle_solib_event.
11147         (struct solib_catchpoint): New.
11148         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11149         (breakpoint_hit_catch_solib, check_status_catch_solib)
11150         (print_it_catch_solib, print_one_catch_solib)
11151         (print_mention_catch_solib, print_recreate_catch_solib): New
11152         functions.
11153         (catch_solib_breakpoint_ops): New global.
11154         (catch_load_or_unload, catch_load_command_1)
11155         (catch_unload_command_1): New functions.
11156         (internal_bkpt_check_status): Add special case for
11157         bp_shlib_event.
11158         (internal_bkpt_print_it): Use print_solib_event.
11159         (initialize_breakpoint_ops): Initialize
11160         catch_solib_breakpoint_ops.
11161         (_initialize_breakpoint): Register "catch load" and "catch
11162         unload".
11163         * breakpoint.h (handle_solib_event): Declare.
11164         * NEWS: Add entry for "catch load" and "catch unload".
11165
11166 2012-01-24  Tom Tromey  <[email protected]>
11167
11168         * ada-lang.c: Include gdb_vecs.h.
11169         * charset.c: Include gdb_vecs.h.
11170         * tracepoint.h: Include gdb_vecs.h.
11171         * gdb_vecs.h: New file.
11172
11173 2012-01-24  Pedro Alves  <[email protected]>
11174
11175         * breakpoint.c (breakpoint_hit_catch_fork)
11176         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11177         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11178         * infrun.c (inferior_has_forked, inferior_has_vforked)
11179         (inferior_has_execd, inferior_has_called_syscall): Delete.
11180         (handle_syscall_event): Get syscall_number from the execution
11181         control state's wait status.
11182         (wait_for_inferior): Don't clear syscall_number.
11183
11184 2012-01-24  Pedro Alves  <[email protected]>
11185
11186         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11187         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11188         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11189         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11190         `ws' parameter.
11191         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
11192         false for events other than TARGET_SIGNAL_TRAP.
11193         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11194         Add `ws' parameter.
11195         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
11196         events other than TARGET_SIGNAL_TRAP.
11197         (tracepoint_breakpoint_hit): Add `ws' parameter.
11198         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11199         parameter.
11200         (bpstat_stop_status): Same.
11201         (pc_at_non_inline_function): Same.
11202         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11203         to pass the current event's waitstatus to bpstat_stop_status
11204         and pc_at_non_inline_function.
11205
11206 2012-01-24  Jan Kratochvil  <[email protected]>
11207
11208         Code cleanup.
11209         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11210         Update the function comment for it.
11211         (source_script_with_search): Call make_cleanup_fclose for STREAM.
11212         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11213         for STREAM.
11214
11215 2012-01-24  Pedro Alves  <[email protected]>
11216
11217         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11218         outside `bs->stop' block.
11219         (bpstat_what): Rework bp_shlib_event handling.
11220         (internal_bkpt_check_status): If the breakpoint is a
11221         bp_shlib_event, then set bs->stop and bs->print if
11222         stop_on_solib_events is set.
11223
11224 2012-01-24  Gary Benson  <[email protected]>
11225
11226         Delete #if 0'd out code.
11227         * stack.c (print_frame_label_vars): Remove.
11228         (catch_info): Likewise.
11229         (_initialize_stack): Remove "info catch" command.
11230         * NEWS: Mention the above.
11231
11232 2012-01-24  Pedro Alves  <[email protected]>
11233
11234         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
11235         it.
11236         (remote_notice_new_inferior): If the remote end doesn't support
11237         the multiprocess extensions, then the PID is fake.
11238         (add_current_inferior_and_thread): New.
11239         (remote_start_remote): Use it.
11240         (extended_remote_attach_1): Adjust.
11241         (extended_remote_create_inferior_1): Use
11242         add_current_inferior_and_thread.
11243
11244 2012-01-24  Jan Kratochvil  <[email protected]>
11245
11246         Fix watchpoints to be specific for each inferior.
11247         * breakpoint.c (watchpoint_in_thread_scope): Verify also
11248         current_program_space.
11249         * i386-nat.c (i386_inferior_data_cleanup): New.
11250         (i386_inferior_data_get): Replace variable inf_data_local by an
11251         inferior_data call.
11252         (i386_use_watchpoints): Initialize i386_inferior_data.
11253         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11254         specific iterate_over_lwps.
11255
11256 2012-01-24  Jan Kratochvil  <[email protected]>
11257
11258         Fix watchpoints across inferior fork.
11259         * amd64-linux-nat.c (update_debug_registers_callback): Update the
11260         comment for linux_nat_iterate_watchpoint_lwps.
11261         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11262         linux_nat_iterate_watchpoint_lwps.
11263         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11264         * i386-linux-nat.c (update_debug_registers_callback): Update the
11265         comment for linux_nat_iterate_watchpoint_lwps.
11266         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11267         linux_nat_iterate_watchpoint_lwps.
11268         (i386_linux_prepare_to_resume): New comment on Linux kernel.
11269         * i386-nat.c: Include inferior.h.
11270         (dr_mirror): Remove.
11271         (i386_inferior_data, struct i386_inferior_data)
11272         (i386_inferior_data_get): New.
11273         (i386_debug_reg_state): Use i386_inferior_data_get.
11274         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11275         (i386_insert_watchpoint, i386_remove_watchpoint)
11276         (i386_stopped_data_address, i386_insert_hw_breakpoint)
11277         (i386_remove_hw_breakpoint): New variable state, use
11278         i386_debug_reg_state instead of DR_MIRROR.
11279         * linux-nat.c (delete_lwp): New declaration.
11280         (num_lwps): Move here from downwards.
11281         (delete_lwp_cleanup): New.
11282         (linux_child_follow_fork): Create new child_lp, call
11283         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11284         PTRACE_DETACH.
11285         (num_lwps): Move upwards.
11286         (linux_nat_iterate_watchpoint_lwps): New.
11287         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11288         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11289
11290 2012-01-24  Joel Brobecker  <[email protected]>
11291
11292         GDB 7.4 released.
11293
11294 2012-01-23  Pedro Alves  <[email protected]>
11295
11296         * top.c (caution): Rename to ...
11297         (confirm): ... this.
11298         (show_caution): Rename to ...
11299         (show_confirm): ... this.
11300         (quit_cover): Adjust.
11301         (init_main): Adjust.
11302         * top.h (caution): Rename to ...
11303         (confirm): ... this.
11304         * utils.c (internal_vproblem, defaulted_query): Adjust.
11305
11306 2012-01-23  Pedro Alves  <[email protected]>
11307
11308         * top.c (caution): Update comment.
11309         (execute_command): Don't consider the current value of `caution'.
11310
11311 2012-01-23  Jan Kratochvil  <[email protected]>
11312
11313         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11314
11315 2012-01-23  Ulrich Weigand  <[email protected]>
11316
11317         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11318         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11319         * target.c (target_fileio_pwrite): Remove buffer address from
11320         debug output.
11321         (target_fileio_pread): Likewise.
11322
11323 2012-01-20  Ulrich Weigand  <[email protected]>
11324
11325         * NEWS: Document remote "info proc" and "generate-core-file".
11326
11327 2012-01-20  Ulrich Weigand  <[email protected]>
11328
11329         * gdbarch.sh (find_memory_regions): New callback.
11330         * gdbarch.c, gdbarch.h: Regenerate.
11331
11332         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11333         callback before falling back to target method.
11334
11335         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11336         (linux_target_install_ops): No longer install it.
11337
11338         * linux-tdep.c (linux_find_memory_regions): New function.
11339         (linux_init_abi): Install it.
11340
11341 2012-01-20  Ulrich Weigand  <[email protected]>
11342
11343         * gdbarch.sh (make_corefile_notes): New architecture callback.
11344         * gdbarch.c: Regenerate.
11345         * gdbarch.h: Likewise.
11346
11347         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11348         before target_make_corefile_notes.  If NULL is returned, the
11349         target does not support core file generation.
11350
11351         * linux-nat.c: Include "linux-tdep.h".
11352         (find_signalled_thread, find_stop_signal): Remove.
11353         (linux_nat_do_thread_registers): Likewise.
11354         (struct linux_nat_corefile_thread_data): Likewise.
11355         (linux_nat_corefile_thread_callback): Likewise.
11356         (iterate_over_spus): Likewise.
11357         (struct linux_spu_corefile_data): Likewise.
11358         (linux_spu_corefile_callback): Likewise.
11359         (linux_spu_make_corefile_notes): Likewise.
11360         (linux_nat_collect_thread_registers): New function.
11361         (linux_nat_make_corefile_notes): Replace contents by call to
11362         linux_make_corefile_notes passing linux_nat_collect_thread_registers
11363         as native-only callback.
11364
11365         * linux-tdep.h: Include "bfd.h".
11366         (struct regcache): Add forward declaration.
11367         (linux_collect_thread_registers_ftype): New typedef.
11368         (linux_make_corefile_notes): Add prototype.
11369         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11370         "regset.h", and "elf-bfd.h".
11371         (find_signalled_thread, find_stop_signal): New functions.
11372         (linux_spu_make_corefile_notes): Likewise.
11373         (linux_collect_thread_registers): Likewise.
11374         (struct linux_corefile_thread_data): New data structure.
11375         (linux_corefile_thread_callback): New funcion.
11376         (linux_make_corefile_notes): Likewise.
11377         (linux_make_corefile_notes_1): Likewise.
11378         (linux_init_abi): Install it.
11379
11380 2012-01-20  Ulrich Weigand  <[email protected]>
11381
11382         * gdbarch.sh (info_proc): New callback.
11383         * gdbarch.c, gdbarch.h: Regenerate.
11384
11385         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11386         before falling back to the target info_proc callback.
11387
11388         * linux-nat.c: Do not include "cli/cli-utils.h".
11389         (linux_nat_info_proc): Remove.
11390         (linux_target_install_ops): No longer install it.
11391
11392         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11393         (read_mapping): New function.
11394         (linux_info_proc): Likewise.
11395         (linux_init_abi): Install it.
11396
11397 2012-01-20  Ulrich Weigand  <[email protected]>
11398
11399         * defs.h (enum info_proc_what): Moved here from linux-nat.c
11400         * infcmd.c: (info_proc_cmd_1): New function.
11401         (info_proc_cmd): New function, moved here from equivalent routine
11402         orignally in linux-nat.c.
11403         (info_proc_cmd_mappings): Likewise.
11404         (info_proc_cmd_stat): Likewise.
11405         (info_proc_cmd_status): Likewise.
11406         (info_proc_cmd_cwd): Likewise.
11407         (info_proc_cmd_cmdline): Likewise.
11408         (info_proc_cmd_exe): Likewise.
11409         (info_proc_cmd_all): Likewise.
11410         (_initialize_infcmd): Install "info proc" command and subcommands.
11411
11412         * target.h (struct target_ops): Add to_info_proc.
11413         (target_info_proc): Add prototype.
11414         * target.c (target_info_proc): New function.
11415
11416         * procfs.c (procfs_info_proc): Add prototype.
11417         (info_proc_cmd): Rename into ...
11418         (procfs_info_proc): ... this.  Update argument types as appropriate
11419         for a to_info_proc implementation.  Handle "what" argument.
11420         (procfs_target): Install procfs_info_proc.
11421         (_initialize_procfs): No longer install "info proc" command.
11422
11423         * linux-nat.c: (enum info_proc_what): Remove.
11424         (linux_nat_info_proc_cmd_1): Rename into ...
11425         (linux_nat_info_proc): ... this.  Update argument types as appropriate
11426         for a to_info_proc implementation.
11427         (linux_nat_info_proc_cmd): Remove.
11428         (linux_nat_info_proc_cmd_mappings): Likewise.
11429         (linux_nat_info_proc_cmd_stat): Likewise.
11430         (linux_nat_info_proc_cmd_status): Likewise.
11431         (linux_nat_info_proc_cmd_cwd): Likewise.
11432         (linux_nat_info_proc_cmd_cmdline): Likewise.
11433         (linux_nat_info_proc_cmd_exe): Likewise.
11434         (linux_nat_info_proc_cmd_all): Likewise.
11435         (linux_target_install_ops): Install linux_nat_info_proc.
11436         (_initialize_linux_nat): No longer install "info proc" command
11437         and subcommands.
11438
11439 2012-01-20  Ulrich Weigand  <[email protected]>
11440
11441         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11442         * config.in, configure: Regenerate.
11443
11444         * target.h (struct target_ops): Add to_fileio_readlink.
11445         (target_fileio_readlink): Add prototype.
11446         * target.c (target_fileio_readlink): New function.
11447
11448         * inf-child.c: Conditionally include <sys/param.h>.
11449         (inf_child_fileio_readlink): New function.
11450         (inf_child_target): Install it.
11451
11452         * remote.c (PACKET_vFile_readlink): New enum value.
11453         (remote_hostio_readlink): New function.
11454         (init_remote_ops): Install it.
11455         (_initialize_remote): Handle vFile:readlink packet type.
11456
11457 2012-01-20  Pedro Alves  <[email protected]>
11458             Ulrich Weigand  <[email protected]>
11459
11460         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11461         * config.in, configure: Regenerate.
11462
11463         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11464         to_fileio_pread, to_fileio_close, to_fileio_unlink.
11465         (target_fileio_open): Add prototype.
11466         (target_fileio_pwrite): Likewise.
11467         (target_fileio_pread): Likewise.
11468         (target_fileio_close): Likewise.
11469         (target_fileio_unlink): Likewise.
11470         (target_fileio_read_alloc): Likewise.
11471         (target_fileio_read_stralloc): Likewise.
11472
11473         * target.c: Include "gdb/fileio.h".
11474         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11475         (default_fileio_target): New function.
11476         (target_fileio_open): Likewise.
11477         (target_fileio_pwrite): Likewise.
11478         (target_fileio_pread): Likewise.
11479         (target_fileio_close): Likewise.
11480         (target_fileio_unlink): Likewise.
11481         (target_fileio_close_cleanup): Likewise.
11482         (target_fileio_read_alloc_1): Likewise.
11483         (target_fileio_read_alloc): Likewise.
11484         (target_fileio_read_stralloc): Likewise.
11485
11486         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11487         <fcntl.h>, and <unistd.h>.
11488         (inf_child_fileio_open_flags_to_host): New function.
11489         (inf_child_errno_to_fileio_error): Likewise.
11490         (inf_child_fileio_open): Likewise.
11491         (inf_child_fileio_pwrite): Likewise.
11492         (inf_child_fileio_pread): Likewise.
11493         (inf_child_fileio_close): Likewise.
11494         (inf_child_fileio_unlink): Likewise.
11495         (inf_child_target): Install to_fileio routines.
11496
11497         * remote.c (init_remote_ops): Install to_fileio routines.
11498
11499 2012-01-20  Pedro Alves  <[email protected]>
11500             Ulrich Weigand  <[email protected]>
11501
11502         * remote.c (remote_multi_process_p): Only check for multi-process
11503         protocol feature, do not check for extended protocol.
11504         (remote_supports_multi_process): Check for extended protocol here.
11505         (set_general_process): Likewise.
11506         (extended_remote_kill): Likewise.
11507         (remote_pid_to_str): Likewise.
11508         (remote_query_supported): Always query multiprocess mode.
11509
11510 2012-01-20  Pedro Alves  <[email protected]>
11511             Ulrich Weigand  <[email protected]>
11512
11513         * inferior.h (struct inferior): Add fake_pid_p.
11514         * inferior.c (exit_inferior_1): Clear fake_pid_p.
11515         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11516         magic_null_ptid since the remote side doesn't provide a real PID.
11517
11518 2012-01-19  Tom Tromey  <[email protected]>
11519
11520         * NEWS: Combine the two Python sections.
11521
11522 2012-01-19  Jan Kratochvil  <[email protected]>
11523
11524         * target.h (target_close): Update comment on the target's unpush state.
11525
11526 2012-01-19  Pedro Alves  <[email protected]>
11527
11528         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11529         linux_nat_async directly instead of going through the target
11530         vector.
11531         * target.c (unpush_target): Close target after unpushing it, not
11532         before.
11533
11534 2012-01-19  Gary Benson  <[email protected]>
11535
11536         * mdebugread.c (sort_blocks): Replace integer constants with ones
11537         derived from FIRST_LOCAL_BLOCK.
11538
11539 2012-01-18  Paul Pluzhnikov  <[email protected]>
11540             Jan Kratochvil  <[email protected]>
11541
11542         PR gdb/9538
11543         * symfile.c (find_separate_debug_file): New function.
11544         (terminate_after_last_dir_separator): Likewise.
11545         (find_separate_debug_file_by_debuglink): Also try realpath.
11546         * configure.ac (AC_CHECK_FUNCS): Add lstat.
11547         * configure: Regenerate.
11548         * config.in: Regenerate.
11549
11550 2012-01-18  Doug Evans  <[email protected]>
11551
11552         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11553         (main.o): Remove rule.
11554         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11555         (--with-sysroot): Rewrite.
11556         * configure: Regenerate.
11557         * config.in: Regenerate.
11558
11559 2012-01-18  Sergio Durigan Junior  <[email protected]>
11560
11561         * parse.c (initialize_expout): New function.
11562         (reallocate_expout): Likewise.
11563         (parse_exp_in_context): Use `initialize_expout' and
11564         `reallocate_expout' when appropriate.
11565
11566 2012-01-18  Pedro Alves  <[email protected]>
11567
11568         * record.c (struct record_breakpoint, record_breakpoint_p)
11569         (record_breakpoints): New.
11570         (record_insert_breakpoint, record_remove_breakpoint): Manage
11571         record breakpoints list.  Only remove breakpoints from the
11572         inferior if they had been inserted there in the first place.
11573
11574 2012-01-17  Doug Evans  <[email protected]>
11575
11576         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11577         if we know we don't have a file name to look for.
11578
11579 2012-01-17  Pedro Alves  <[email protected]>
11580
11581         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11582         the frame's stop reason is UNWIND_UNAVAILABLE.
11583
11584 2012-01-17  Jan Kratochvil  <[email protected]>
11585
11586         Fix compilation error.
11587         * m2-exp.y (yyerror): Use ANSI C prototype.
11588
11589 2012-01-16  Sergio Durigan Junior  <[email protected]>
11590
11591         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11592         (growbuf_by_size): Likewise.
11593         (yyerror): Likewise.
11594         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11595         (modblock): Remove variable (was #if 0'ed).
11596         (parse_number): Convert prototype from K&R to ANSI C.
11597         (yyerror): Likewise.
11598         * objc-exp.y (parse_number): Likewise.
11599         (yyerror): Likewise.
11600         (yylex): Remove #if 0'ed code.
11601         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11602         (yyerror): Likewise.
11603
11604 2012-01-16  Tom Tromey  <[email protected]>
11605
11606         * NEWS: Add item.
11607         * symtab.h (compare_filenames_for_search): Declare.
11608         * symtab.c (compare_filenames_for_search): New function.
11609         (iterate_over_some_symtabs): Use it.
11610         * symfile.h (struct quick_symbol_functions)
11611         <map_symtabs_matching_filename>: Change spec.
11612         * psymtab.c (partial_map_symtabs_matching_filename): Use
11613         compare_filenames_for_search.  Update for new spec.
11614         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11615         compare_filenames_for_search.  Update for new spec.
11616         * breakpoint.c (clear_command): Use compare_filenames_for_search.
11617
11618 2012-01-16  Tom Tromey  <[email protected]>
11619
11620         PR python/13281:
11621         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11622         (struct main_type) <flag_flag_enum>: New field.
11623         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11624         * NEWS: Add entries.
11625         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11626         enums.
11627         * python/lib/gdb/printing.py (_EnumInstance): New class.
11628         (FlagEnumerationPrinter): Likewise.
11629
11630 2012-01-16  Sergio Durigan Junior  <[email protected]>
11631
11632         * breakpoint.c (create_sals_from_address_default): New function.
11633         (create_breakpoints_sal_default): Likewise.
11634         (decode_linespec_default): Likewise.
11635         (is_marker_spec): Removed.
11636         (strace_marker_p): New function.
11637         (init_breakpoint_sal): Using `strace_marker_p' instead of
11638         `is_marker_spec'.
11639         (create_breakpoint): Call method `create_sals_from_address' from
11640         breakpoint_ops, replacing code that created SALs conditionally
11641         on the type of the breakpoint.  Call method `create_breakpoints_sal',
11642         replacing code that created breakpoints conditionally on the type
11643         wanted.
11644         (base_breakpoint_create_sals_from_address): New function.
11645         (base_breakpoint_create_breakpoints_sal): Likewise.
11646         (base_breakpoint_decode_linespec): Likewise.
11647         (base_breakpoint_ops): Add methods
11648         `base_breakpoint_create_sals_from_address',
11649         `base_breakpoint_create_breakpoints_sal' and
11650         `base_breakpoint_decode_linespec'.
11651         (bkpt_create_sals_from_address): New function.
11652         (bkpt_create_breakpoints_sal): Likewise.
11653         (bkpt_decode_linespec): Likewise.
11654         (tracepoint_create_sals_from_address): Likewise.
11655         (tracepoint_create_breakpoints_sal): Likewise.
11656         (tracepoint_decode_linespec): Likewise.
11657         (strace_marker_create_sals_from_address): Likewise.
11658         (strace_marker_create_breakpoints_sal): Likewise.
11659         (strace_marker_decode_linespec): Likewise.
11660         (strace_marker_breakpoint_ops): New variable.
11661         (addr_string_to_sals): Remove `marker_spec'.  Call method
11662         `decode_linespec' from breakpoint_ops, replacing code that decoded
11663         an address string into a SAL.  Use `strace_marker_p' instead of
11664         `marker_spec'.
11665         (strace_command): Decide whether we are dealing with a static
11666         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
11667         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11668         * breakpoint.h (linespec_result, linespec_sals): New forward
11669         declarations.
11670         (breakpoint_ops) <create_sals_from_address>,
11671         <create_breakpoints_sal>, <decode_linespec>: New methods.
11672
11673 2012-01-14  Doug Evans  <[email protected]>
11674
11675         * NEWS: Update text for "maint set python print-stack".
11676         It is deprecated in gdb 7.4 and deleted in 7.5.
11677
11678 2012-01-13  Eli Zaretskii  <[email protected]>
11679
11680         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11681         including curses.h.
11682
11683 2012-01-12  Jan Kratochvil  <[email protected]>
11684
11685         * configure: Regenerate.
11686         * config.in: Regenerate.
11687
11688 2012-01-12  Keith Seitz  <[email protected]>
11689
11690         PR mi/10586
11691         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11692         (ANONYMOUS_UNION_NAME): Define.
11693         (is_path_expr_parent): New function.
11694         (get_path_expr_parent): New function.
11695         (is_anonymous_child): New function.
11696         (create_child_with_value): If the child is anonymous and without
11697         a name, assign an object name to it.
11698         (c_describe_child): Use get_path_expr_parent to determine
11699         the parent expression.
11700         If there field represents an anonymous struct or union and
11701         has no name, set an appropriate display name and expression.
11702         (cplus_describe_child): Likewise.
11703
11704 2012-01-12  Pedro Alves  <[email protected]>
11705
11706         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11707         available when %ebp is found to be zero (outermost).
11708
11709 2012-01-11  Andreas Tobler  <[email protected]>
11710
11711         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11712         an internal gdb_static_assert.
11713         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11714
11715 2012-01-11  Tom Tromey  <[email protected]>
11716
11717         PR gdb/9598:
11718         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11719         catch" and "catch throw".
11720
11721 2012-01-11  Paul Hilfinger  <[email protected]>
11722
11723         * blockframe.c (block_innermost_frame): Start search from selected
11724         frame, if present, or otherwise the current frame.
11725
11726         * c-exp.y (variable): Update innermost_block for
11727         'block COLONCOLON NAME' clause.
11728         * m2-exp.y (variable): Ditto.
11729         * objc-exp.y (variable): Ditto.
11730
11731 2012-01-10  Tom Tromey  <[email protected]>
11732
11733         PR python/13199:
11734         * python/python.c (finish_python_initialization): Set sys.argv.
11735
11736 2012-01-10  Doug Evans  <[email protected]>
11737
11738         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
11739         "want_line_info".  All callers updated.
11740         (dwarf_decode_lines_1): New function.
11741         (handle_DW_AT_stmt_list): Add function comment.
11742         New arg "want_line_info".  All callers updated.
11743         (read_file_scope,read_type_unit_scope): Move comment from
11744         handle_DW_AT_stmt_list to here.
11745
11746 2012-01-10  Jan Kratochvil  <[email protected]>
11747
11748         Fix regression after libiberty/ update for GCC PR 6057 and others.
11749         * c-exp.y (operator) <OPERATOR DELETE>
11750         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11751         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11752         (make_builtin_type, make_name): New variable i, add gdb_assert.
11753         (operator) <OPERATOR NEW>: Update ARGS to 3.
11754         (operator) <OPERATOR DELETE>: Add trailing space.
11755         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11756         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11757         * cp-support.c (cp_canonicalize_string): Check NULL from
11758         cp_comp_to_string, call warning and return.
11759
11760 2012-01-10  Jan Kratochvil  <[email protected]>
11761
11762         Fix duplicate .o files after omitting libbfd.a.
11763         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11764         (SFILES): Add corelow.c.
11765         (COMMON_OBS): Add corelow.o.
11766         (ALLDEPFILES): Remove corelow.c.
11767         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11768         * config/alpha/alpha-osf3.mh: Likewise.
11769         * config/alpha/fbsd.mh: Likewise.
11770         * config/arm/nbsdaout.mh: Likewise.
11771         * config/arm/nbsdelf.mh: Likewise.
11772         * config/i386/i386gnu.mh: Likewise.
11773         * config/ia64/hpux.mh: Likewise.
11774         * config/ia64/linux.mh: Likewise.
11775         * config/m32r/linux.mh: Likewise.
11776         * config/m68k/linux.mh: Likewise.
11777         * config/mips/irix5.mh: Likewise.
11778         * config/mips/irix6.mh: Likewise.
11779         * config/pa/hpux.mh: Likewise.
11780         * config/pa/linux.mh: Likewise.
11781         * config/powerpc/aix.mh: Likewise.
11782         * config/sparc/linux.mh: Likewise.
11783         * config/sparc/linux64.mh: Likewise.
11784         * config/sparc/sol2.mh: Likewise.
11785         * config/vax/vax.mh: Likewise.
11786         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11787         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11788         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11789         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11790         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11791         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11792         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11793         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11794         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11795         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11796         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11797         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11798         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11799         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11800         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11801         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11802         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11803         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11804         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11805         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11806         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11807         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11808         corelow.o from gdb_target_obs.
11809         * corefile.c (core_target): Update the comment on NULL value.
11810         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11811         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11812         MATCHES.  Drop YUMMY set on NULL.
11813         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
11814         reclaim CORE_DATA if it is already NULL.
11815
11816 2012-01-09  Doug Evans  <[email protected]>
11817
11818         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11819         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11820
11821 2012-01-09  Keith Seitz  <[email protected]>
11822
11823         * breakpoint.c (wrapper.h): Don't include.
11824
11825 2012-01-09  Keith Seitz  <[email protected]>
11826
11827         * Makefile.in (SFILES): Remove wrapper.c.
11828         (HFILES_NO_SRCDIR): Remove wrapper.h.
11829         (COMMON_OBS): Remove wrapper.o.
11830         * cli/cli-interp.c: Don't inlude wrapper.h.
11831         * corelow.c: Likewise.
11832         (core_open): Replace gdb_target_find_new_threads with
11833         TRY_CATCH around target_find_new_threads.
11834         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11835         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11836         * varobj.c (varobj_create): Likewise for parse_exp_1 and
11837         evaluate_expression.
11838         (varobj_set_value): Likewise for evaluate_expression and
11839         value_assign.
11840         (install_new_variable): Likewise for value_fetch_lazy.
11841         (adjust_value_for_child_access): Likewise for value_ind.
11842         (c_describe_child): Likewise for value_subscript and
11843         value_ind.
11844         (c_value_of_root): Likewise for evaluate_expression.
11845         * wrapper.c: Remove.
11846         * wrapper.h: Remove.
11847
11848 2012-01-09  Doug Evans  <[email protected]>
11849
11850         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11851         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
11852         "abfd" args with "section".  All callers updated.
11853         Error checking code moved ...
11854         (error_check_comp_unit_head): ... here.  New function.
11855         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11856         Delete arg "abfd".  New arg "type_offset".  All callers updated.
11857         (create_debug_types_hash_table): Simplify by using
11858         read_and_check_type_unit_head.
11859
11860         * parser-defs.h (namecopy): Delete.
11861         * parse.c (namecopy, namecopy_size): Move into copy_name.
11862
11863 2012-01-09  Jan Kratochvil  <[email protected]>
11864
11865         Partially fix duplicate .o files after omitting libbfd.a.
11866         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11867         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11868         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11869         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11870         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11871         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11872         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11873
11874 2012-01-09  Pedro Alves  <[email protected]>
11875
11876         * MAINTAINERS: Update my email address.
11877
11878 2012-01-08  Doug Evans  <[email protected]>
11879
11880         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11881         n_type_units.  Rename type_comp_units to all_type_units.
11882         All uses updated.
11883         (add_signatured_type_cu_to_table): Renamed from
11884         add_signatured_type_cu_to_list.  All callers updated.
11885
11886         * gdbtypes.h (struct cplus_struct_type): Delete member
11887         nfn_fields_total.  All uses removed.
11888
11889 2012-01-06  Doug Evans  <[email protected]>
11890
11891         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11892         to top of file.
11893         (dwarf2_find_comp_unit): Delete.
11894         (process_psymtab_comp_unit): Make result "void".
11895         Delete args buffer, info_ptr, buffer_size, and replace with
11896         "section".  All callers updated.
11897         (dwarf2_build_psymtabs_hard): Simplify.
11898
11899 2012-01-06  Sergio Durigan Junior  <[email protected]>
11900             Thiago Jung Bauermann  <[email protected]>
11901
11902         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11903         before `struct gdb_exception'.
11904         * breakpoint.c (update_global_location_list_nothrow)
11905         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11906         * cp-abi.c (value_rtti_type): Likewise.
11907         * cp-support.c (cp_validate_operator): Likewise.
11908         * infrun.c (insert_exception_resume_breakpoint)
11909         (check_exception_resume, keep_going): Likewise.
11910         * mi-interp.c (mi_breakpoint_created)
11911         (mi_breakpoint_modified): Likewise.
11912         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11913         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11914         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11915
11916 2012-01-05  Doug Evans  <[email protected]>
11917
11918         * dwarf2read.c (statement_prologue): Delete, unused.
11919
11920         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11921         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11922
11923         * dwarf2read.c (comp_unit_header): Delete, unused.
11924
11925 2012-01-05  Ulrich Weigand  <[email protected]>
11926
11927         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11928         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11929
11930 2012-01-05  Khoo Yit Phang  <[email protected]>
11931
11932         * infrun.c (normal_stop): Don't skip calling the normal_stop
11933         observers if the thread was doing a multi-step, but stopped for
11934         some reason other than stepping.
11935
11936 2012-01-05  Pedro Alves  <[email protected]>
11937
11938         * cli/cli-decode.h: Add comments.
11939         (CMD_LIST_AMBIGUOUS): Moved to command.h
11940         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11941         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11942         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11943         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11944         (add_com, add_com_alias, add_info, add_info_alias)
11945         (complete_on_cmdlist, complete_on_enum, help_list): Remove
11946         declarations.
11947         * command.h: Add and adjust comments.
11948         (CMD_LIST_AMBIGUOUS): Moved here.
11949         (help_cmd, help_cmd_list): Delete declarations.
11950
11951 2012-01-04  Doug Evans  <[email protected]>
11952
11953         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11954         All callers updated.
11955         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11956         Replace all arguments with "per_cu".  All callers updated.
11957
11958         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11959
11960         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11961         New arg "per_cu".  All callers updated.
11962
11963         Delete #if 0'd out code.
11964         * language.c (binop_result_type): Delete.
11965         (simple_type, ordered_type, same_type, integral_type): Delete.
11966         (numeric_type, character_type, string_type, boolean_type): Delete.
11967         (float_type, structured_type): Delete.
11968         * language.h: Update.
11969
11970 2012-01-04  Tom Tromey  <[email protected]>
11971
11972         * python/py-value.c (valpy_binop): Initialize 'res_val'.
11973
11974 2012-01-04  Joel Brobecker  <[email protected]>
11975
11976         * corefile.c (close_exec_file): Delete.
11977         (reopen_exec_file): Remove commented out code that seems related
11978         to close_exec_file, which is being deleted here.
11979         * inferior.h (close_exec_file): Delete.
11980         * fork-child.c (fork_inferior): Remove call to fork_inferior.
11981
11982 2012-01-04  Joel Brobecker  <[email protected]>
11983
11984         * ada-lang.c: #include "cli/cli-utils.h".
11985         (get_selections): Use skip_spaces.
11986         (ada_get_next_arg): Use skip_spaces and skip_to_space.
11987         (catch_ada_exception_command_split): Use skip_spaces.
11988         (ada_decode_assert_location): Likewise.
11989
11990 2012-01-04  Joel Brobecker  <[email protected]>
11991
11992         * linespec.c (decode_line_internal): Check for C++ or Java
11993         compound constructs only if the current language is C, C++
11994         or Java.
11995
11996 2012-01-04  Jan Kratochvil  <[email protected]>
11997
11998         Revert:
11999         2012-01-02  Jan Kratochvil  <[email protected]>
12000                     Joel Brobecker  <[email protected]>
12001         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12002         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12003         3 times.
12004         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12005         fall through into AT_ENTRY_POINT.
12006         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
12007         DUMMY_ADDR with it.
12008         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12009         PPC_INSN_SIZE skip to 3 times.
12010
12011 2012-01-04  Joel Brobecker  <[email protected]>
12012
12013         * linespec.c (add_minsym): Preserve function descriptors.
12014
12015 2012-01-04  Ulrich Weigand  <[email protected]>
12016
12017         * breakpoint.c (all_locations_are_pending): Consider locations
12018         in program spaces executing during startup pending as well.
12019
12020 2012-01-04  Joel Brobecker  <[email protected]>
12021
12022         Copyright year update in most files of the GDB Project.
12023
12024 2012-01-04  Joel Brobecker  <[email protected]>
12025
12026         * copyright.sh: Delete.
12027         * copyright.py: Rewrite.
12028
12029 2012-01-04  Joel Brobecker  <[email protected]>
12030
12031         * gnulib/extra/update-copyright: New file, imported from gnulib.
12032
12033 2012-01-04  Joel Brobecker  <[email protected]>
12034
12035         * README (Copyright and License Notices): New section.
12036
12037 2012-01-03  Tom Tromey  <[email protected]>
12038
12039         PR python/12533:
12040         * python/py-value.c (valpy_dereference, valpy_get_address
12041         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12042         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12043         (valpy_absolute, valpy_richcompare): Free intermediate values.
12044
12045 2011-01-03  Joel Brobecker  <[email protected]>
12046
12047         * ada-lang.c: Reformat the copyright notice.
12048
12049 2012-01-02  Jan Kratochvil  <[email protected]>
12050
12051         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12052         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12053         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12054         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12055         Revert this part of:
12056         2012-01-02  Jan Kratochvil  <[email protected]>
12057         Build gdb directly from *.o files not using libgdb.a.
12058         * Makefile.in (COMMON_OBS): Remove solib-target.o.
12059
12060 2012-01-02  Joel Brobecker  <[email protected]>
12061
12062         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12063         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12064         Reformat the copyright header.
12065
12066 2012-01-02  Jan Kratochvil  <[email protected]>
12067
12068         Revert this part of:
12069         2012-01-02  Jan Kratochvil  <[email protected]>
12070         Remove the gdbtui binary.
12071         * gdb.c (main): Remove args.interpreter_p initialization.
12072         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12073         * main.h (struct captured_main_args): Remove interpreter_p.
12074
12075 2012-01-02  Joel Brobecker  <[email protected]>
12076
12077         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12078
12079 2012-01-02  Joel Brobecker  <[email protected]>
12080
12081         * top.c (print_gdb_version): Update copyright year.
12082
12083 2012-01-02  Yao Qi  <[email protected]>
12084
12085         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12086
12087 2012-01-02  Jan Kratochvil  <[email protected]>
12088             Joel Brobecker  <[email protected]>
12089
12090         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12091         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12092         3 times.
12093         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12094         fall through into AT_ENTRY_POINT.
12095         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
12096         DUMMY_ADDR with it.
12097         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12098         PPC_INSN_SIZE skip to 3 times.
12099
12100 2012-01-02  Jan Kratochvil  <[email protected]>
12101
12102         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12103         the return value.
12104         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12105
12106 2012-01-02  Jan Kratochvil  <[email protected]>
12107
12108         Build gdb directly from *.o files not using libgdb.a.
12109         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12110         (COMMON_OBS): Remove solib-target.o.
12111         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12112         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12113         (LIBGDB_OBS, libgdb.a): Move it above.
12114         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12115         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12116         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12117         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12118         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12119         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12120         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12121         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12122         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12123         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12124         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12125         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12126         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12127         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12128         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12129         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12130         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12131         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12132         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12133         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12134         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12135         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12136         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12137         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12138         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12139         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12140         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12141
12142 2012-01-02  Jan Kratochvil  <[email protected]>
12143
12144         Remove the gdbtui binary.
12145         * .gitignore (/gdbtui): Remove.
12146         * Makefile.in (TUI): Remove.
12147         (SUBDIR_TUI_OBS): Remove tui-main.o.
12148         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12149         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12150         (tui-main.o): Remove.
12151         (all_object_files): Remove tui-main.o.
12152         * NEWS: New note for the gdbtui removal.
12153         * configure: Rebuilt.
12154         * configure.ac: No longer add all-tui, clean-tui, install-tui and
12155         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12156         CONFIG_UNINSTALL respectively.
12157         * gdb.c (main): Remove args.interpreter_p initialization.
12158         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12159         * main.h (struct captured_main_args): Remove interpreter_p.
12160         * tui/tui-main.c: Remove.
12161
12162 2012-01-01  Doug Evans  <[email protected]>
12163
12164         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12165         (dwarf2_physname, read_import_statement): Ditto.
12166         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12167         (process_structure_scope read_subroutine_type): Ditto.
12168         (read_typedef, load_partial_dies, read_partial_die): Ditto.
12169         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12170         (dwarf2_fetch_die_location_block): Ditto.
12171         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12172
12173         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12174         All callers updated.
12175         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12176         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12177         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12178
12179         * dwarf2read.c (load_cu): Move assert to more useful location.
12180
12181         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12182         All callers updated.
12183
12184         * dwarf2read.c (dwarf2_per_objfile): Add comment.
12185         (dwarf2_elf_names): Minor reformat.
12186         (dwarf2_per_cu_data): Tweak comment.
12187         (dwarf2_read_section): Fix comment.
12188         (create_all_comp_units): Fix comment.
12189         (load_full_comp_unit): Fix comment.
12190         (process_full_comp_unit): Fix comment.
12191         (read_signatured_type): Fix comment.
12192
12193 For older changes see ChangeLog-2011.
12194 \f
12195 Local Variables:
12196 mode: change-log
12197 left-margin: 8
12198 fill-column: 74
12199 version-control: never
12200 coding: utf-8
12201 End:
This page took 0.740566 seconds and 4 git commands to generate.