* coffread.c (coff_symfile_init): Use set_objfile_data.
[external/binutils.git] / gdb / ChangeLog
1 2012-12-12  Tom Tromey  <tromey@redhat.com>
2
3         * coffread.c (coff_symfile_init): Use set_objfile_data.
4         (coff_symfile_read): Use DBX_SYMFILE_INFO.
5         * dbxread.c (dbx_objfile_data_key): New global.
6         (dbx_symfile_init): Use set_objfile_data.
7         (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
8         (dbx_free_symfile_info): New function.
9         (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
10         DBX_SYMFILE_INFO.
11         (stabsect_build_psymtabs): Use set_objfile_data.
12         (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
13         * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
14         set_objfile_data.
15         (free_elfinfo): Use DBX_SYMFILE_INFO.
16         (elf_symfile_finish): Don't free deprecated_sym_stab_info.
17         (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
18         * gdb-stabs.h (dbx_objfile_data_key): Declare.
19         (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
20         * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
21         * somread.c (som_symfile_finish): Don't free
22         deprecated_sym_stab_info.
23
24 2012-12-12  Joel Brobecker  <brobecker@adacore.com>
25
26         * gdbarch.sh (software_single_step): Remove trailing space in
27         comment (gdbarch.h is already correct).
28
29 2012-12-11  Tom Tromey  <tromey@redhat.com>
30
31         * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
32
33 2012-12-11  Tom Tromey  <tromey@redhat.com>
34
35         * dsrec.c (report_transfer_performance): Don't declare.
36         (load_srec): Use gettimeofday, print_transfer_performance.
37         * symfile.c (report_transfer_performance): Remove.
38
39 2012-12-11  Pedro Alves  <pedro@codesourcery.com>
40             Pedro Alves  <palves@redhat.com>
41
42         * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
43         NT_PSTATUS note.
44         * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
45         differently from LWP IDs.
46
47 2012-12-11  Pedro Alves  <palves@redhat.com>
48
49         * configure.ac (detect type of /proc): Remove Unixware handling.
50         * configure: Regenerate.
51         * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
52         (ioctl_table) [PCRESET]: Remove entry.
53         * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
54         (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
55         (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
56         * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
57         * procfs.c: Remove all UNIXWARE guarded code, and all traces of
58         Unixware in comments throughout.
59         * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
60         and remove mention of Unixware.
61
62 2012-12-10  Doug Evans  <dje@google.com>
63
64         * dwarf2read.c (dwarf2_cu): Enhance comment.
65         (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
66         the DWO file.
67         (dwarf2_record_block_ranges): Ditto.
68
69         * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
70
71         * symtab.c (find_pc_sect_symtab): Add comment.
72
73 2012-12-10  Tom Tromey  <tromey@redhat.com>
74
75         * defs.h: Don't check for definition of LONGEST.
76         (min, max): Remove duplicates.
77
78 2012-12-10  Tom Tromey  <tromey@redhat.com>
79
80         * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
81         (dwarf2_fetch_die_loc_cu_off): Rename from
82         dwarf2_fetch_die_location_block.  Rewrite to use
83         dwarf2_fetch_die_loc_sect_off.
84         * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
85         (dwarf2_fetch_die_loc_cu_off): Rename.
86         * dwarf2loc.c (indirect_pieced_value): Use
87         dwarf2_fetch_die_loc_sect_off.
88         * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
89         comment.
90         (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
91         * dwarf2expr.c (add_piece): Update.
92         (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
93
94 2012-12-10  Tom Tromey  <tromey@redhat.com>
95
96         * buildsym.c (struct pending_block): Move from buildsym.h.
97         (pending_blocks): Likewise; now static.
98         (pending_block_obstack): New global.
99         (free_pending_blocks): Free blocks.
100         (record_pending_block): Use pending_block_obstack.
101         * buildsym.h (struct pending_block): Move definition to
102         buildsym.c.
103         (pending_blocks): Don't declare.
104
105 2012-12-10  Pedro Alves  <palves@redhat.com>
106
107         * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
108         dead SCO code, and adjust function description comment.
109
110 2012-12-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
111
112         * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
113         * defs.h (LONGEST, ULONGEST): Remove conditionalization for
114         CC_HAS_LONG_LONG.
115         * dwarf2-frame.c (DW64_CIE_ID): Likewise.
116         * dwarf2read.c (extract_cu_value): Remove the function.
117         (create_cus_from_index_list): Make the return type void, inline the
118         extract_cu_value caller, include new gdb_static_assert.
119         (create_cus_from_index): Make the return type void, update the function
120         comment, update the create_cus_from_index_list caller.
121         (create_signatured_type_table_from_index): Make the return type void,
122         inline the extract_cu_value caller, include new gdb_static_assert.
123         (dwarf2_read_index): Update the create_cus_from_index and
124         create_signatured_type_table_from_index caller.
125         * printcmd.c (ui_printf): Remove conditionalizations for
126         CC_HAS_LONG_LONG.
127         * config.in: Regenerate.
128         * configure: Regenerate.
129
130 2012-12-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
131
132         * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
133         Update the comment for checked_producer.
134         (check_producer): New forward declaration.
135         (producer_is_gcc_lt_4_3): New function.
136         (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
137         (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
138
139 2012-12-07  Tom Tromey  <tromey@redhat.com>
140
141         * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
142         argument, assertion.
143         * c-exp.y (typebase): Add completion productions.
144         * completer.c (expression_completer): Handle tag completion.
145         * expression.h (parse_expression_for_completion): Add argument.
146         * f-lang.c (f_make_symbol_completion_list): Add 'code'
147         argument.
148         * language.h (struct language_defn)
149         <la_make_symbol_completion_list>: Add 'code' argument.
150         * parse.c (expout_tag_completion_type, expout_completion_name):
151         New globals.
152         (mark_struct_expression): Add assertion.
153         (mark_completion_tag): New function.
154         (parse_exp_in_context): Initialize new globals.
155         (parse_expression_for_completion): Add 'code' argument.  Handle
156         tag completion.
157         * parser-defs.h (mark_completion_tag): Declare.
158         * symtab.c (default_make_symbol_completion_list_break_on): Add
159         'code' argument.  Update.
160         (default_make_symbol_completion_list): Add 'code' argument.
161         (make_symbol_completion_list): Update.
162         (make_symbol_completion_type): New function.
163         * symtab.h (default_make_symbol_completion_list_break_on)
164         (default_make_symbol_completion_list): Update.
165         (make_symbol_completion_type): Declare.
166
167 2012-12-07  Tom Tromey  <tromey@redhat.com>
168
169         * expression.h (parse_expression_for_completion): Rename
170         from parse_field_expression.
171         (parse_completion): Rename from in_parse_field.
172         * c-exp.y (lex_one_token): Update.
173         * completer.c (expression_completer): Update.
174         * go-exp.y (lex_one_token): Update.
175         * p-exp.y (yylex): Update.
176         * parse.c (parse_completion): Rename from in_parse_field.
177         (parse_exp_in_context): Update.
178         (parse_expression_for_completion): Rename from
179         parse_field_expression.  Update.
180
181 2012-12-07  Tom Tromey  <tromey@redhat.com>
182
183         * typeprint.c (_initialize_typeprint): Set completer
184         for "whatis" and "ptype".
185
186 2012-12-07  Joel Brobecker  <brobecker@adacore.com>
187
188         * copyright.py (NOT_FSF_LIST): Remove duplicate entry
189         "sim/common/cgen-fpu.h".  Remove invalid entries
190         "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
191         which actually have an FSF copyright header.
192
193 2012-12-07  Joel Brobecker  <brobecker@adacore.com>
194
195         * osf-share/AT386/cma_thread_io.h: Delete.
196         * osf-share/HP800/cma_thread_io.h: Delete.
197         * osf-share/README: Delete.
198         * osf-share/RIOS/cma_thread_io.h: Delete.
199         * osf-share/cma_attr.h: Delete.
200         * osf-share/cma_deb_core.h: Delete.
201         * osf-share/cma_debug_client.h: Delete.
202         * osf-share/cma_errors.h: Delete.
203         * osf-share/cma_handle.h: Delete.
204         * osf-share/cma_init.h: Delete.
205         * osf-share/cma_list.h: Delete.
206         * osf-share/cma_mutex.h: Delete.
207         * osf-share/cma_sched.h: Delete.
208         * osf-share/cma_semaphore_defs.h: Delete.
209         * osf-share/cma_sequence.h: Delete.
210         * osf-share/cma_stack.h: Delete.
211         * osf-share/cma_stack_int.h: Delete.
212         * osf-share/cma_tcb_defs.h: Delete.
213         * osf-share/cma_util.h: Delete.
214         * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
215         in osf-share.
216         * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
217         * contrib/ari/gdb_find.sh: Remove handling of osf-share.
218         * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
219
220 2012-12-06  Pedro Alves  <palves@redhat.com>
221             Tom Tromey  <tromey@redhat.com>
222
223         * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
224
225 2012-12-06  Jens Elmenthaler <jens.elmenthaler@advantest.com>
226
227         PR mi/14741:
228         * mi/mi-cmd-var.c (varobj_update_one): Take value of
229         attribute "dynamic" and "displayhint" from printed child,
230         not the root variable.
231
232 2012-12-06  Joel Brobecker  <brobecker@adacore.com>
233
234         * aix-thread.c (getthrds): Fix type of 4th parameter.
235         (get_signaled_thread): Change type of variable ktid to tid_t.
236
237 2012-12-06  Hui Zhu  <hui_zhu@mentor.com>
238
239         * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
240         value of get_frame_block.
241
242 2012-12-05  Pierre Muller  <muller@sourceware.org>
243
244         Avoid memory leaks on struct cmd_list_element.doc field.
245         * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
246         if flags contains DOC_ALLOCATED.
247         (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
248         flags.
249         (delete_cmd): Handle DOC_ALLOCATED flag.
250         * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
251         in flags filed of struct cmd_list_element.
252         (struct cmd_list_element): Document new flag item.
253
254 2012-12-04  Doug Evans  <dje@google.com>
255
256         * symmisc.c: Whitespace fixes.
257
258 2012-12-04  Karthik Bhat  <kv.bhat@samsung.com>
259
260         * i386-tdep.c (i386_skip_prologue): Using symbol table
261         to find the end of prologue for clang compiled binaries.
262         * amd64-tdep.c (amd64_skip_prologue): Using symbol table
263         to find the end of prologue for clang compiled binaries.
264
265 2012-12-03  Doug Evans  <dje@google.com>
266
267         * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
268         (dw2_find_symbol_file): Delete unused local file_data.
269
270 2012-12-03  Tom Tromey  <tromey@redhat.com>
271
272         * ada-exp.y (write_object_renaming, write_var_or_type)
273         (write_ambiguous_var, write_var_from_sym): Make blocks const.
274         * ada-lang.c (replace_operator_with_call)
275         (find_old_style_renaming_symbol): Make blocks const.
276         * ada-lang.h (ada_find_renaming_symbol): Update.
277         (struct ada_symbol_info) <block>: Now const.
278         * breakpoint.c (watch_command_1): Update.
279         * breakpoint.h (struct watchpoint) <exp_valid_block,
280         cond_exp_valid_block>: Now const.
281         * c-exp.y (classify_inner_name, classify_name): Make block
282         argument const.
283         * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
284         const.
285         * expression.h (innermost_block, parse_exp_1): Update.
286         (union exp_element) <block>: Now const.
287         * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
288         (lookup_struct): Make block argument const.
289         * gdbtypes.h (lookup_template_type): Update.
290         * go-exp.y (classify_name, classify_packaged_name)
291         (package_name_p): Make block argument const.
292         * objc-lang.c (lookup_struct_typedef): Make block argument const.
293         * objc-lang.h (lookup_struct_typedef): Update.
294         * parse.c (parse_exp_in_context, parse_exp_1)
295         (write_exp_elt_block): Make block arguments const.
296         (expression_context_block, innermost_block): Now const.
297         * parser-defs.h (write_exp_elt_block): Update.
298         (expression_context_block, innermost_block, block_found): Now
299         const.
300         * printcmd.c (struct display) <block>: Now const.
301         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
302         * valops.c (address_of_variable): Make block argument const.
303         * value.h (value_of_variable): Update.
304         * varobj.c (struct varobj_root) <valid_block>: Now const.
305
306 2012-11-30  Yao Qi  <yao@codesourcery.com>
307
308         * breakpoint.c (print_one_breakpoint_location): Indent code.
309
310 2012-11-30  Yao Qi  <yao@codesourcery.com>
311
312         * breakpoint.c (print_one_breakpoint_location): Combine two
313         blocks handling 'hit count' together.
314
315 2012-11-30  Yao Qi  <yao@codesourcery.com>
316
317         * infrun.c (error_is_running, ensure_not_running): Move them
318         to ...
319         * infcmd.c (error_is_running, ensure_not_running): ... here.
320         Make them 'static'.
321         * inferior.h: Remove declarations of error_is_running and
322         ensure_not_running.
323
324 2012-11-30  Yao Qi  <yao@codesourcery.com>
325
326         * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
327         check REGNUM >= 0.
328
329 2012-11-30  Yao Qi  <yao@codesourcery.com>
330
331         * infrun.c: Make the declaration of 'init_infwait_state'
332         static.
333         (init_infwait_state): Make it 'static'.
334
335 2012-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
336
337         * python/python.c (finalize_python): Cast unused PyGILState_Ensure
338         return value to void to avoid compiler warning.
339
340 2012-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
341
342         * opencl-lang.c (opencl_print_type): New function.
343         (opencl_language_arch_info): Install it.
344
345 2012-11-29  Tom Tromey  <tromey@redhat.com>
346
347         * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
348         xvasprintf.
349         * common/common-utils.c (xasprintf, xvasprintf): Remove.
350         * common/common-utils.h (xasprintf, xvasprintf): Remove.
351
352 2012-11-29  Jerome Guitton  <guitton@adacore.com>
353
354         * ada-lang.c (ada_is_interface_tag): New function.
355         (ada_is_ignored_field): Add interface tags to the list
356         of ignored fields.
357
358 2012-11-29  Jerome Guitton  <guitton@adacore.com>
359
360         * ada-lang.h (ada_tag_value_at_base_address): New function
361         declaration.
362         * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
363         New functions.
364         (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
365         relocate the class-wide value if need be.
366         (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
367         Let ada_tag_value_at_base_address relocate the class-wide access/ref
368         before dereferencing it.
369         * ada-valprint.c (ada_val_print_1): Relocate to base address
370         before displaying the content of an interface-wide ref.
371
372 2012-11-29  Jerome Guitton  <guitton@adacore.com>
373
374         * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
375
376 2012-11-29  Joel Brobecker  <brobecker@adacore.com>
377
378         GDB 7.5.1 released.
379
380 2012-11-29  Yao Qi  <yao@codesourcery.com>
381             Tom Tromey  <tromey@redhat.com>
382
383         * eval.c (evaluate_subexp_standard): Get the correct pointer
384         type for TYPE_CODE_MEMBERPTR.
385
386 2012-11-28  Edjunior Machado  <emachado@linux.vnet.ibm.com>
387
388         * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
389         since now it is being done by binutils' powerpc_init_dialect().
390
391 2012-11-28  Tom Tromey  <tromey@redhat.com>
392
393         PR gdb/14290:
394         * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
395         (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
396         Use it.
397         * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
398         * gdb_bfd.c (gdb_bfd_mark_parent): New function.
399         (gdb_bfd_openr_next_archived_file): Use it.
400
401 2012-11-28  Markus Metzger <markus.t.metzger@intel.com>
402
403         * configure.ac: Check for linux/perf_event.h.
404         * config.in: Regenerated.
405         * configure: Regenerated.
406
407 2012-11-28  Yao Qi  <yao@codesourcery.com>
408
409         * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
410         abbreviate 'delete tracepoints' to 'delete tr'.
411         * corefile.c (_initialize_core): Call add_alias_cmd to
412         abbreviate 'set gnutarget' to 'set g'.
413         * value.c (_initialize_values): Call add_alias_cmd to abbreviate
414         'show convenience' to 'show conv'.
415
416 2012-11-27  Joel Brobecker  <brobecker@adacore.com>
417
418         * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
419         call to sparc_supply_fpregset.
420         (fill_fpregset): Fix first parameter in call to
421         sparc_collect_fpregset.
422
423 2012-11-27  Daniel Jacobowitz  <dan@codesourcery.com>
424             Kazu Hirata  <kazu@codesourcery.com>
425             Yao Qi  <yao@codesourcery.com>
426
427         * objfiles.c (init_entry_point_info): Call
428         gdbarch_convert_from_func_ptr_addr and
429         gdbarch_addr_bits_remove here ...
430         (entry_point_address_query): ... instead of here.
431         * solib-svr4.c (exec_entry_point): Call
432         gdbarch_addr_bits_remove.
433         * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
434         the entry address.
435
436 2012-11-27  Daniel Jacobowitz  <dan@codesourcery.com>
437             Yao Qi  <yao@codesourcery.com>
438
439         * eval.c (evaluate_subexp_standard): Add handling of
440         TYPE_CODE_MEMBERPTR when calling functions.  Correct the
441         result of ptype for calling a TYPE_CODE_METHODPTR.
442
443 2012-11-27  Yao Qi  <yao@codesourcery.com>
444
445         * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
446         warning.
447         Add i18n markup.
448
449 2012-11-26  Alexander Larsson  <alexl@redhat.com>
450             Jan Kratochvil  <jan.kratochvil@redhat.com>
451             Tom Tromey  <tromey@redhat.com>
452
453         * NEWS: Mention mini debuginfo feature.
454         * minidebug.c: New file.
455         * configure.ac: Check for lzma.
456         * configure, config.in: Rebuild.
457         * Makefile.in (LIBLZMA): New variable.
458         (CLIBS): Include LIBLZMA.
459         (SFILES): Mention minidebug.c.
460         (COMMON_OBS): Mention minidebug.o.
461         * symfile.c (read_symbols): New function.
462         (syms_from_objfile, reread_symbols): Call it.
463         * symfile.h (find_separate_debug_file_in_section): Declare.
464
465 2012-11-26  Keith Seitz  <keiths@redhat.com>
466
467         * exec.c (exec_file_attach): Move cleanup after verifying that
468         memory has in fact been allocated.
469
470 2012-11-26  Tom Tromey  <tromey@redhat.com>
471
472         * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
473         * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
474         SYMBOL_SYMTAB.
475         * skip.c (skip_info): Use SYMBOL_SYMTAB.
476
477 2012-11-26  Maxime Villard  <rustyBSD@gmx.fr>
478             Pedro Alves  <palves@redhat.com>
479
480         * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
481         size parameter passed to readlink by one byte.
482         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
483         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
484         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
485         * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
486         size by one byte.
487
488 2012-11-26  Yao Qi  <yao@codesourcery.com>
489
490         * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
491         extraneous parentheses.
492
493 2012-11-26  Yao Qi  <yao@codesourcery.com>
494
495         * remote.c (remote_start_remote): Typo fix.
496
497 2012-11-23  David S. Miller  <davem@davemloft.net>
498
499         * sparc-tdep.h (struct sparc_fpregset): New data structure.
500         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
501         sparc32_sol2_fpregset): Declare new globals.
502         (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
503         'fpregset' argument.
504         * sparc64-tdep.h (sparc64_supply_fpregset,
505         sparc64_collect_fpregset): Likewise.
506         (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
507         globals.
508         * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
509         (sparc_fpregset): Declare new global.
510         (sparc_supply_fpregset, sparc_collect_fpregset): Add new
511         'fpregset' argument.
512         * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
513         into handler.
514         (fill_fpregset): Likewise.
515         (_initialize_sparc_linux_nat): Set sparc_fpregset to
516         sparc32_bsd_fpregset.
517         * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
518         sparc32_bsd_fpregset down into handler.
519         (sparc32_linux_collect_core_fpregset): Likewise.
520         * sparc-nat.c (sparc_fpregset): Define.
521         (sparc_supply_fpregset): Add 'fpregset' argument.
522         (sparc_collect_fpregset): Likewise.
523         (sparc_fetch_inferior_registers): Pass sparc_fpregset down
524         into fpregset handler.
525         (sparc_store_inferior_registers): Likewise.
526         (_initialize_sparc_nat): Set sparc_fpregset to
527         sparc32_sunos4_fpregset if NULL.
528         * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
529         down into handler.
530         (fill_fpregset): Likewise.
531         * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
532         * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
533         use it to compute offsets.
534         (sparc32_collect_fpregset): Likewise.
535         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
536         * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
537         down into handler.
538         (fill_fpregset): Likewise.
539         * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
540         Likewise.
541         (sparc64_linux_collect_core_fpregset): Likewise.
542         * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
543         * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
544         use it to compute offsets.
545         (sparc64_collect_fpregset): Likewise.
546         (sparc64_bsd_fpregset): Define.
547         * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
548         sparc64_bsd_fpregset down into handler.
549         (sparc64fbsd_collect_fpregset): Likewise.
550         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
551         and pass sparc{32,64}_bsd_fpregset down into handler.
552         (sparc64nbsd_collect_fpregset): Likewise.
553         * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
554         sparc64_bsd_fpregset down into handler.
555         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
556         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
557         to sparc32_bsd_fpregset.
558         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
559         sparc32_bsd_fpregset down into sparc32_supply_fpregset.
560         (sparc32nbsd_supply_fpregset): Likewise.
561
562 2012-11-21  Tom Tromey  <tromey@redhat.com>
563
564         * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
565         field.
566         (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
567         Remove.
568         * c-typeprint.c (c_type_print_base): Update.
569
570 2012-11-21  Yao Qi  <yao@codesourcery.com>
571
572         PR tdep/7438
573         * gdbarch.sh (smash_text_address): Remove.
574         * gdbarch.c, gdbarch.h: Regenerate.
575         * arm-tdep.c (arm_smash_text_address): Remove.
576         (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
577         * hppa-tdep.c (hppa_smash_text_address): Remove.
578         (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
579         (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
580         Caller update.
581         * coffread.c (coff_symtab_read): Caller update.
582         * dbxread.c (process_one_symbol): Likewise.
583         * elfread.c (record_minimal_symbol): Likewise.
584         * somread.c (som_symtab_read): Likewise.
585
586 2012-11-20  Pierre Muller  <muller@sourceware.org>
587
588         ARI fixes: sprintf rule.
589         Replace sprintf function calls for char arrays by
590         calls to xsnprintf calls.
591         * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
592         (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
593         (arm_neon_quad_read, arm_pseudo_read): Ditto.
594         (arm_neon_quad_write, arm_pseudo_write): Ditto.
595         * breakpoint.c (condition_completer): Ditto.
596         (create_tracepoint_from_upload): Ditto.
597         * dwarf2read.c (file_full_name): Ditto.
598         * gcore.c (gcore_command): Ditto.
599         * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
600         * go32-nat.c (go32_sysinfo): Ditto.
601         * interps.c (interp_set): Ditto.
602         * m32c-tdep.c (make_types): Ditto.
603         * ppc-linux-nat.c (fetch_register, store_register): Ditto.
604         * remote-m32r-sdi.c (m32r_open): Ditto.
605         * sol-thread.c (td_err_string): Ditto.
606         (td_state_string, solaris_pid_to_str): Ditto.
607         * symtab.c (gdb_mangle_name): Ditto.
608         * cli/cli-script.c (execute_control_command): Ditto.
609         (define_command, document_command): Ditto.
610         * tui/tui-io.c (tui_rl_display_match_list): Ditto.
611         * tui/tui-stack.c (tui_make_status_line): Ditto.
612         * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
613
614 2012-11-20  Mike Frysinger  <vapier@gentoo.org>
615
616         * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
617         it when looking at ptr->func.
618         * command.h (complete_on_cmdlist): Add a fourth arg.
619         * completer.c (complete_line_internal): Add local ignore_help_classes,
620         and set it to 1 when reason is not handle_help.  Pass this down to
621         lookup_cmd_1 and complete_on_cmdlist.
622
623 2012-11-20  Tom Tromey  <tromey@redhat.com>
624
625         * completer.c (count_struct_fields): Remove.
626         (expression_completer): Don't call count_struct_fields.
627
628 2012-11-20  Pedro Alves  <palves@redhat.com>
629
630         * annotate.c (breakpoints_changed): Rename to ...
631         (annotate_breakpoints_changed): ... this.
632         (annotate_stopped, breakpoint_changed): Adjust caller.
633         * annotate.h (breakpoints_changed): Rename to ...
634         (annotate_breakpoints_changed): ... this.
635         * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
636         (do_map_commands_command, init_raw_breakpoint, clear_command)
637         (set_ignore_count, enable_breakpoint_disp): Adjust callers.
638
639 2012-11-20  David S. Miller  <davem@davemloft.net>
640
641         * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
642         (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
643         sysconf.
644         (get_cores_used_by_process): Update comment.
645
646 2012-11-20  Yao Qi  <yao@codesourcery.com>
647
648         * objfiles.c (init_entry_point_info): Remove trailing spaces.
649
650 2012-11-20  Yao Qi  <yao@codesourcery.com>
651
652         * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
653         to deprecated_context_hook.
654
655 2012-11-19  Yao Qi  <yao@codesourcery.com>
656
657         * infrun.c (infwait_state): Add static.
658
659 2012-11-16  Keith Seitz  <keiths@redhat.com>
660
661         PR c++/13615
662         * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
663         parameter and pass it to lookup_symbol_file.
664         (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
665         to search base classes.
666         (cp_lookup_symbol_namespace): Likewise.
667         (lookup_namespace_scope): Likewise.
668         (lookup_symbol_file): Add SEARCH parameter.
669         If SEARCH is non-zero and no symbol is found, lookup the class
670         and call cp_lookup_nested_symbol.
671         (find_symbol_in_baseclass): New function.
672         (cp_lookup_nested_symbol): Do not let
673         cp_lookup_symbol_in_namespace search through base classes.
674         Do that later when there is no global symbol match.
675
676 2012-11-16  Doug Evans  <dje@google.com>
677
678         * main.c (gdb_datadir_provided): New static global.
679         (get_init_files): If --data-directory is provided,
680         and SYSTEM_GDBINIT lives in data-directory, look for it there.
681         * NEWS: Mention it.
682
683 2012-11-15  Pierre Muller  <muller@sourceware.org>
684
685         ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
686         * gdb_stat.h: Delete. Moved to common directory.
687         * common/gdb_stat.h: New file.
688         * gdb_wait.h: Delete. Moved to common directory.
689         * common/gdb_wait.h: New file.
690         * Makefile.in (H_FILES_NO_SRC): Adapt to new header
691         location.
692         * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
693         location.
694         (stat.h rule): Adapt to new gdb_stat.h location.
695         * common/linux-osdata.c: Include "gdb_stat.h" header instead of
696         <sys/stat.h> header.
697         * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
698         <sys/wait.h> header.
699
700 2012-11-15  Pierre Muller  <muller@sourceware.org>
701
702         * configure.ac (AC_HEADER_STAT): Remove.
703         * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
704         and corresponding code.
705         * configure: Regenerate.
706         * config.in: Regenerate.
707
708 2012-11-15  Pierre Muller  <muller@sourceware.org>
709
710         ARI xasprintf rule fixes.
711         * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
712         instead of xasprintf.
713         (open_and_init_dwp_file): Ditto.
714
715 2012-11-14  Luis Machado  <lgustavo@codesourcery.com>
716
717         * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
718         target types.
719
720 2012-11-14  Tom Tromey  <tromey@redhat.com>
721
722         * configure, config.in: Rebuild.
723         * configure.ac: Don't check for ctype.h, time.h.
724         * expprint.c: Don't use HAVE_CTYPE_H.
725
726 2012-11-13  Tom Tromey  <tromey@redhat.com>
727
728         * gdbarch.h, gdbarch.c: Rebuild.
729         * gdbarch.sh (set_target_gdbarch): Rename from
730         deprecated_target_gdbarch_select_hack.
731         * arch-utils.c (gdbarch_update_p): Update.
732         (set_gdbarch_from_file): Update.
733
734 2012-11-14  Pierre Muller  <muller@sourceware.org>
735
736         * MAINTAINERS (Responsible Maintainers/misc): Add myself
737         as responsible of contrib/ari directory.
738
739 2012-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
740             Yao Qi  <yao@codesourcery.com>
741
742         * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
743         bit of EXC_RETURN.
744         (arm_m_exception_cache, arm_m_exception_this_id)
745         (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
746         (arm_m_exception_unwind): New.
747         (arm_gdbarch_init): Register arm_m_exception_unwind.
748
749 2012-11-13  Giuseppe Montalto  <giuseppe.montalto@st.com>
750
751         * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
752         parameter COUNT, for pattern filling of memory regions.
753         * NEWS: Mention it.
754
755 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
756
757         * disasm.h (DISASSEMBLY_FILENAME): New macro.
758         * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
759         to print_source_lines ().
760         * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
761         flag.
762         * source.c (print_source_lines_base): Prefix source line with
763         filename if PRINT_SOURCE_LINES_FILENAME flag is set.
764
765 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
766
767         * symtab.h (print_source_lines_flags): New enum.
768         * source.c (print_source_lines_base): Change noerror to flags.
769         (print_source_lines): Change noerror to flags.
770
771 2012-11-13  Pierre Muller  <muller@sourceware.org>
772
773         ARI fixes: Avoid sprintf function use rule.
774         * charset.c (convert_between_encodings): Use xsnprintf.
775         * cli-out.c (cli_field_int): Likewise.
776         * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
777         * expprint.c (op_name_standard): Likewise.
778         * frv-tdep.c (set_variant_num_gprs): Likewise.
779         (set_variant_num_fprs): Likewise.
780         * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
781         * nto-tdep.c (nto_find_and_open_solib): Likewise.
782         (nto_init_solib_absolute_prefix): Likewise.
783         * source.c (init_source_path): Likewise.
784         (print_source_lines_base): Likewise.
785         * valprint.c (print_wchar): Likewise.
786         * mi/mi-out.c (mi_field_int): Likewise.
787         windows-nat.c (windows_pid_to_exec_file): Likewise.
788         (windows_create_inferior): Likewise.
789         (_initialize_check_for_gdb_ini): Likewise.
790
791 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
792
793         * frame.h (deprecated_frame_register_read): Renames
794         frame_register_read.
795         * frame.c (deprecated_frame_register_read): Renames
796         frame_register_read.  Update all callers.
797         * i386-tdep.c: Update all callers of frame_register_read.
798         * infcmd.c: Likewise.
799         * jit.c: Likewise.
800         * mips-tdep.c: Likewise.
801         * mt-tdep.c: Likewise.
802         * sh64-tdep.c: Likewise.
803
804 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
805
806         * frame.h (frame_register_read): Remove FIXME comment.
807         * frame.c (frame_register_read): Add suggestion explaining
808         which function to use in place of this one.
809
810 2012-11-12  Tom Tromey  <tromey@redhat.com>
811
812         * python/python.c (start_type_printers): Initialize 'result_obj'.
813
814 2012-11-12  Tom Tromey  <tromey@redhat.com>
815
816         * NEWS: Update.
817         * data-directory/Makefile.in (PYTHON_FILES): Add
818         type_printers.py.
819         * python/lib/gdb/command/type_printers.py: New file.
820         * python/lib/gdb/command/types.py (TypePrinter): New class.
821         (_get_some_type_recognizers, get_type_recognizers,
822         apply_type_recognizers, register_type_printer): New
823         functions.
824         * python/py-objfile.c (objfile_object) <type_printers>: New
825         field.
826         (objfpy_dealloc): Decref new field.
827         (objfpy_new): Set new field.
828         (objfpy_get_type_printers, objfpy_set_type_printers): New
829         functions.
830         (objfile_to_objfile_object): Set new field.
831         (objfile_getset): Add "type_printers".
832         * python/py-progspace.c (pspace_object) <type_printers>: New
833         field.
834         (pspy_dealloc): Decref new field.
835         (pspy_new): Set new field.
836         (pspy_get_type_printers, pspy_set_type_printers): New functions.
837         (pspace_to_pspace_object): Set new field.
838         (pspace_getset): Add "type_printers".
839         * python/python.c (start_type_printers, apply_type_printers,
840         free_type_printers): New functions.
841         (_initialize_python): Set gdb.type_printers.
842         * python/python.h (start_type_printers, apply_type_printers,
843         free_type_printers): Declare.
844         * typeprint.c (type_print_raw_options, default_ptype_flags):
845         Update for new fields.
846         (do_free_global_table, create_global_typedef_table,
847         find_global_typedef): New functions.
848         (find_typedef_in_hash): Use find_global_typedef.
849         (whatis_exp): Use create_global_typedef_table.  Change cleanup
850         handling.
851         * typeprint.h (struct type_print_options) <global_typedefs,
852         global_printers>: New fields.
853
854 2012-11-12  Tom Tromey  <tromey@redhat.com>
855
856         * c-typeprint.c (find_typedef_for_canonicalize,
857         print_name_maybe_canonical): New functions.
858         (c_print_type): Look up type name.
859         (cp_type_print_derivation_info): Add flags argument.  Use
860         print_name_maybe_canonical.
861         (cp_type_print_method_args): Add wrapping.
862         (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
863         (c_type_print_template_args): New function.
864         (c_type_print_base): Change wrapping.  Use
865         print_name_maybe_canonical.
866         <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
867         type name lookups.
868         * gdbtypes.c (types_equal): No longer static.
869         * gdbtypes.h (types_equal): Declare.
870         * typeprint.c (type_print_raw_options, default_ptype_flags):
871         Update.
872         (struct typedef_hash_table): New.
873         (hash_typedef_field, eq_typedef_field,
874         recursively_update_typedef_hash, add_template_parameters,
875         create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
876         make_cleanup_free_typedef_hash, copy_typedef_hash_element,
877         copy_typedef_hash, find_typedef_in_hash): New functions.
878         * typeprint.h (struct type_print_options) <local_typedefs>:
879         New field.
880         (recursively_update_typedef_hash, add_template_parameters,
881         create_typedef_hash, free_typedef_hash,
882         make_cleanup_free_typedef_hash, copy_typedef_hash,
883         find_typedef_in_hash): Declare.
884
885 2012-11-12  Tom Tromey  <tromey@redhat.com>
886
887         * cp-support.c (inspect_type,
888         replace_typedefs_qualified_name, replace_typedefs): Add
889         finder, data arguments.  Call as needed.
890         (cp_canonicalize_string_full): New function.
891         (cp_canonicalize_string_no_typedefs): Rewrite.
892         * cp-support.h (canonicalization_ftype): New typedef.
893         (cp_canonicalize_string_full): Declare.
894
895 2012-11-12  Tom Tromey  <tromey@redhat.com>
896
897         * NEWS: Update.
898         * c-typeprint.c (c_type_print_base): Handle print_method and
899         print_typedefs flags.
900         * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
901         * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
902         options.
903         * typeprint.c (type_print_raw_options, default_ptype_flags):
904         Update for new field.s
905         (whatis_exp): Parse flags.  Use LA_PRINT_TYPE.
906         (setprinttypelist, showprinttypelist, print_methods,
907         print_typedefs): New globals.
908         (set_print_type, show_print_type, set_print_type_methods,
909         show_print_type_methods, set_print_type_typedefs,
910         show_print_type_typedefs): New functions.
911         (_initialize_typeprint): Update documentation.  Add "print
912         type methods" and "print type typedefs" parameters.
913         * typeprint.h (struct type_print_options) <print_methods,
914         print_typedefs>: New fields.
915
916 2012-11-12  Tom Tromey  <tromey@redhat.com>
917
918         * c-typeprint.c (cp_type_print_method_args): Add flags
919         argument.  Call c_print_type, not type_print.
920         (c_type_print_base): Call c_print_type, not type_print.
921         Update.
922
923 2012-11-12  Tom Tromey  <tromey@redhat.com>
924
925         * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
926         to type-printing functions.
927         * ada-lang.h (ada_print_type): Add argument.
928         * ada-typeprint.c (print_array_type, print_variant_clauses,
929         print_variant_part, print_selected_record_field_types,
930         print_record_field_types, print_unchecked_union_type,
931         print_func_type, ada_print_type): Add flags argument.
932         (ada_print_typedef): Update.
933         * c-exp.y (OPERATOR conversion_type_id): Update.
934         * c-lang.h (c_print_type, c_type_print_base): Update.
935         * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
936         c_type_print_modifier, c_type_print_args,
937         c_type_print_varspec_suffix, c_type_print_base): Add flags
938         argument.
939         * cp-valprint.c (cp_print_class_member): Update.
940         * dwarf2read.c (dwarf2_compute_name): Update.
941         * f-lang.h (f_print_type): Add argument.
942         * f-typeprint.c (f_print_type): Add flags argument.
943         * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
944         * go-lang.h (go_print_type): Add argument.
945         * go-typeprint.c (go_print_type): Add flags argument.
946         * jv-lang.h (java_print_type): Add argument.
947         * jv-typeprint.c (java_type_print_base, java_print_type): Add
948         flags argument.
949         * language.c (unk_lang_print_type): Add flags argument.
950         * language.h (struct language_defn) <la_print_type>: Add flags
951         argument.
952         (LA_PRINT_TYPE): Likewise.
953         * m2-lang.h (m2_print_type): Add argument.
954         * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
955         m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
956         m2_unbounded_array, m2_record_fields): Add flags argument.
957         * p-lang.h (pascal_print_type, pascal_type_print_base,
958         pascal_type_print_varspec_prefix): Add argument.
959         * p-typeprint.c (pascal_print_type,
960         pascal_type_print_varspec_prefix, pascal_print_func_args,
961         pascal_type_print_varspec_suffix, pascal_type_print_base): Add
962         flags argument.
963         * symmisc.c (print_symbol): Update.
964         * typeprint.c (type_print_raw_options, default_ptype_flags):
965         New globals.
966         (type_print): Update.
967         * typeprint.h (struct type_print_options): New.
968         (type_print_raw_options): Declare.
969         (c_type_print_varspec_suffix, c_type_print_args): Add argument.
970
971 2012-11-10  Keith Seitz  <keiths@redhat.com>
972
973         * breakpoint.c (clear_command): Add cleanup for
974         sals.sals if an argument is given.
975
976         * linespec.c (parse_linespec): Do cleanups after
977         parsing a convenience variable.
978
979 2012-11-10  Keith Seitz  <keiths@redhat.com>
980
981         PR gdb/14288
982         * c-valprint.c (c_val_print): For character arrays
983         with "print null" option on, print ellipses if
984         the output is truncated and the next character is not \000.
985         * valprint.c (MAX_WCHARS): Define.
986         (WCHAR_BUFLEN): Likewise.
987         (WCHAR_BUFLEN_MAX): Likewise.
988         (struct converted_character): New structure.
989         (count_next_character): New function.
990         (print_converted_chars_to_obstack): New function.
991         (generic_printstr): Rewrite using count_next_character
992         and print_converted_chars_to_obstack.
993
994 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
995
996         * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
997         while executing the gdb command.
998         (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
999         are called from prompt_for_continue.
1000         * tui/tui-io.c (tui_redisplay_readline): Likewise.
1001
1002 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
1003
1004         PR tui/9584
1005
1006         * tui/tui.c (tui_rl_command_key): Do not call execute_command
1007         but insert the command to execute in readline's buffer.
1008
1009 2012-11-09  Tom Tromey  <tromey@redhat.com>
1010
1011         * gdbarch.sh (target_gdbarch): Remove macro.
1012         (get_target_gdbarch): Rename to target_gdbarch.
1013         * gdbarch.c, gdbarch.h: Rebuild.
1014         * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1015         arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1016         darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1017         filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1018         ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1019         linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1020         mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1021         mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1022         nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1023         procfs.c, progspace.c, ravenscar-thread.c, record.c,
1024         remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1025         rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1026         solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1027         solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1028         solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1029         spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1030         target-descriptions.c, target.c, target.h, tracepoint.c,
1031         windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1032         common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1033         python/py-inferior.c, python/python.c: Update.
1034
1035 2012-11-09  Andrew Burgess  <aburgess@broadcom.com>
1036
1037         * source.c (print_source_lines_base): Add fullname field giving
1038         full path to file in mi output.
1039         * NEWS: Mention the new fullname field.
1040
1041 2012-11-09  Yao Qi  <yao@codesourcery.com>
1042
1043         * NEWS: Mention the fix to the ambiguity of 'fo' command.
1044
1045 2012-11-09  Pedro Alves  <palves@redhat.com>
1046
1047         PR gdb/14306
1048
1049         * infrun.c: Include target-descriptions.h.
1050         (follow_exec): Fetch new target description.
1051
1052 2012-11-09  Yao Qi  <yao@codesourcery.com>
1053
1054         * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1055         0x8d (lea).
1056
1057 2012-11-09  Yao Qi  <yao@codesourcery.com>
1058
1059         * breakpoint.c: Declare set_tracepoint_count.
1060         (install_breakpoint): Call set_tracepoint_count if B is a
1061         tracepoint.
1062         (trace_command): Don't call set_tracepoint_count.  Re-indent.
1063         (strace_command, ftrace_command):
1064         (create_tracepoint_from_upload): Likewise.
1065
1066 2012-11-09  Pedro Alves  <palves@redhat.com>
1067
1068         * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1069         (get_target_gdbarch) <gdbarch.h>: New function.
1070         (startup_gdbarch) <gdbarch.h>: Declare.
1071         <gdbarch.c> (target_gdbarch): Delete.
1072         <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1073         current inferior's gdbarch.
1074         <gdbarch.c> (get_target_gdbarch): New function.
1075         * inferior.c: Include target-descriptions.h.
1076         (free_inferior): Free target description info.
1077         (add_inferior_with_spaces): Set the inferior's initial
1078         architecture.
1079         (clone_inferior_command): Copy the original inferior's target
1080         description if it was user specified.
1081         (initialize_inferiors): Add comment.
1082         * inferior.h (struct target_desc_info): Forward declare.
1083         (struct inferior) <gdbarch>: New field.
1084         * linux-nat.c: Include target-descriptions.h.
1085         (linux_child_follow_fork): Copy the parent's architecture and
1086         target description to the child.
1087         * target-descriptions.c: Include inferior.h.
1088         (struct target_desc_info): New structure, holding the equivalents
1089         of ...
1090         (target_desc_fetched, current_target_desc)
1091         (target_description_filename): ... these removed globals.
1092         (get_tdesc_info, target_desc_info_from_user_p)
1093         (copy_inferior_target_desc_info, target_desc_info_free): New.
1094         (target_desc_fetched, current_target_desc)
1095         (target_description_filename): Reimplemented as convenience
1096         macros.
1097         (tdesc_filename_cmd_string): New global.
1098         (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1099         tdescs filename ..." commands to the per-inferior equivalent.
1100         (show_tdesc_filename_cmd): Get the value to show from the
1101         per-inferior description filename.
1102         (_initilize_target_descriptions): Change the "set/show tdesc
1103         filename" commands' variable.
1104         * target-descriptions.h (struct target_desc, struct target_desc_info)
1105         (struct inferior): Forward declare.
1106         (target_find_description, target_clear_description)
1107         (target_current_description): Adjust comments.
1108         (copy_inferior_target_desc_info, target_desc_info_free)
1109         (target_desc_info_from_user_p). Declare.
1110
1111 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
1112
1113         * tui/tui-hooks.c (tui_about_to_proceed): New function.
1114         (tui_target_wait_hook): Remove.
1115         (tui_install_hooks): Install the about_to_proceed observer.
1116         (tui_remove_hooks): And remove it here.
1117
1118 2012-11-08  Tom Tromey  <tromey@redhat.com>
1119
1120         * linux-tdep.c (linux_make_siginfo_note): New function.
1121         (linux_make_corefile_notes): Use it.
1122         * corelow.c (get_core_siginfo): New function.
1123         (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1124
1125 2012-11-08  Tom Tromey  <tromey@redhat.com>
1126
1127         PR gdb/14704:
1128         * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1129         (zlib_decompress_section): Remove.
1130         (gdb_bfd_map_section): Only check for compressed section
1131         in mmap case.  Use bfd_get_full_section_contents.
1132         * osabi.c (check_note): Add 'sectsize' argument.  Read
1133         section data.
1134         (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1135         section data.  Update for check_note change.
1136         * xcoffread.c (xcoff_initial_scan): Use
1137         bfd_get_full_section_contents.
1138         * py-auto-load.c (auto_load_section_scripts): Use
1139         bfd_get_full_section_contents.
1140         * contrib/cc-with-tweaks.sh: Add -Z option.
1141
1142 2012-11-08  Tom Tromey  <tromey@redhat.com>
1143
1144         * python/py-bpevent.c: Include defs.h.
1145         * python/py-continueevent.c: Include defs.h.
1146         * python/py-event.c: Include defs.h.
1147         * python/py-event.h: Don't include defs.h.
1148         * python/py-events.h: Don't include defs.h.
1149         * python/py-evts.c: Include defs.h.
1150         * python/py-exitedevent.c: Include defs.h.
1151         * python/py-newobjfileevent.c: Include defs.h.
1152         * python/py-signalevent.c: Include defs.h.
1153         * python/py-stopevent.c: Include defs.h.
1154         * python/py-threadevent.c: Include defs.h.
1155
1156 2012-11-08  Pierre Muller  <muller@sourceware.org>
1157
1158         * update-web-ari.sh (print_heading): Add number of files
1159         checked.
1160         (nb_files): New variable counting the number of sources
1161         files found by gdb_find.sh script.
1162         (debug_awk): New variable to allow extra debug output.
1163         (indexes): Add more information if DEBUG_AWK is set.
1164
1165 2012-11-08  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1166
1167         * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1168         ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1169         following the change in PLT call stubs on linker.
1170
1171 2012-11-08  Pierre Muller  <muller@sourceware.org>
1172
1173         * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1174         as default language.
1175         (AWK): Use = instead of == for sh test to avoid warning.
1176         (Linux rule): Correct [:digit] into [[:digit:]].
1177         (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1178         (vasprintf rule): Adapt to common subdirectory moves.
1179         (xasprintf rule): Idem.
1180         (xvasprintf rule): Idem.
1181         (var_boolean rule): Accept occurence in == or != test.
1182
1183         * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1184
1185 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
1186
1187         * tui/tui-hooks.c (tui_inferior_exit): New function.
1188         (tui_detach_hook): Remove.
1189         (tui_install_hooks): Install the inferior exit observer.
1190         (tui_remove_hooks): Remove it.
1191
1192 2012-11-08  Yao Qi  <yao@codesourcery.com>
1193
1194         PR gdb/14777.
1195         * source.c (_initialize_source): Call add_com_alias to abbreviate
1196         'forward-search' as 'fo'.
1197
1198 2012-11-07  Pedro Alves  <palves@redhat.com>
1199
1200         * arm-tdep.c: Make defs.h be the first include.
1201         * coff-pe-read.c: Ditto.
1202         * gnu-nat.c: Ditto.
1203         * go32-nat.c: Ditto.
1204         * i386-nat.c: Ditto.
1205         * ppcnbsd-nat.c: Ditto.
1206         * ada-varobj.h: Don't include defs.h.
1207         * i386-darwin-tdep.h: Ditto.
1208         * i386-nat.h: Ditto.
1209
1210 2012-11-07  Pedro Alves  <palves@redhat.com>
1211
1212         * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1213         Committee.
1214
1215 2012-11-07  Pierre Muller  <muller@sourceware.org>
1216
1217         * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1218         File already uses "gdb_dirent.h" header.
1219
1220 2012-11-07  Yao Qi  <yao@codesourcery.com>
1221
1222         * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1223         tracepoint_count'.
1224
1225 2012-11-06  Tom Tromey  <tromey@redhat.com>
1226
1227         * target.h (inferior_has_forked, inferior_has_vforked)
1228         (inferior_has_execd, inferior_has_called_syscall): Remove
1229         declarations.
1230
1231 2012-11-06  Pierre Muller  <muller@sourceware.org>
1232
1233         * remote.c (remote_insert_hw_breakpoint): ARI fix,
1234         add missing internalization markup.
1235
1236 2012-11-06  Pedro Alves  <palves@redhat.com>
1237
1238         PR gdb/14810
1239
1240         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1241
1242 2012-11-06  Pierre Muller  <muller@sourceware.org>
1243
1244         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1245         is not executable.
1246
1247 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
1248
1249         * gnulib/update-gnulib.sh: New script.
1250
1251 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
1252
1253         * MAINTAINERS: Update my email address.
1254
1255 2012-11-05  Tom Tromey  <tromey@redhat.com>
1256
1257         * frame.c (put_frame_register): Don't use temporary buffer.
1258
1259 2012-11-05  Pedro Alves  <palves@redhat.com>
1260
1261         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1262         child.  Clear 'pending_detach'.
1263         * infrun.c (handle_vfork_child_exec_or_exit): Clear
1264         'pending_detach' in the vfork parent.
1265
1266 2012-11-05  Doug Evans  <dje@google.com>
1267
1268         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
1269         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1270         * dwarf2read.c: #include "elf-bfd.h".
1271         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1272         (dwop_section_names): Renamed from dwo_section names.  All uses
1273         updated.  Add entries for .debug_cu_index, .debug_tu_index.
1274         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1275         All uses updated.
1276         (struct dwp_sections): New type.
1277         (struct virtual_dwo_sections): New type.
1278         (struct dwp_hash_table): New type.
1279         (struct dwp_file): New type.
1280         (init_cutu_and_read_dies): Ensure DWO info/types section has been
1281         read in.  Handle DWOs coming from DWP files.
1282         (lookup_dwo_file_slot): New function.
1283         (dwarf2_locate_dwo_sections): Move definition closer to use.
1284         (create_dwo_debug_info_hash_table_reader): Renamed from
1285         create_debug_info_hash_table_reader.  All callers updated.
1286         (create_dwo_debug_info_hash_table): Renamed from
1287         create_debug_info_hash_table.  All callers updated.
1288         (create_dwp_hash_table): New function.
1289         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1290         (lookup_dwo_in_dwp): New function.
1291         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
1292         is_dwp.  All callers updated.
1293         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
1294         (open_and_init_dwo_file): Renamed from init_dwo_file.
1295         All callers updated.
1296         (lookup_dwo_file): Delete.
1297         (dwarf2_locate_dwp_sections): New function.
1298         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1299         (allocate_dwp_loaded_cutus_table): New function.
1300         (open_and_init_dwp_file): New function.
1301         (lookup_dwo_cutu): New function.
1302         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1303
1304 2012-11-03  Yao Qi  <yao@codesourcery.com>
1305
1306         Fix PR gdb/14617.
1307         * breakpoint.c (trace_pass_set_count): Call
1308         observer_notify_breakpoint_modified instead of
1309         observer_notify_tracepoint_modified.
1310         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1311
1312 2012-11-02  Tom Tromey  <tromey@redhat.com>
1313
1314         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1315         argument to complete_on_enum.
1316
1317 2012-11-02  Tom Tromey  <tromey@redhat.com>
1318
1319         * configure: Rebuild.
1320         * configure.ac (build_warnings): Add -Wempty-body.
1321         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1322         * remote.c (handle_notification): Use braces for empty 'else' body.
1323         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1324         'else' body.
1325         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1326         'else' body.
1327         * solib-som.c (som_relocate_section_addresses): Use braces
1328         for empty 'else' body.
1329         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1330         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1331
1332 2012-11-02  Pedro Alves  <palves@redhat.com>
1333
1334         PR gdb/14766
1335
1336         * infrun.c (handle_inferior_event)
1337         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1338         null_ptid before handling a vfork child exec or exit.  Switch to
1339         the event ptid afterwards.
1340
1341 2012-11-02  Yao Qi  <yao@codesourcery.com>
1342
1343         * std-operator.def: Remove OP_LABELED.
1344         * eval.c: Remove the declaration of 'get_label'.
1345         (get_label): Remove.
1346         (evaluate_struct_tuple): Remove code handling OP_LABELED.
1347         Update comment.
1348         Remove local variable 'variantno' and related code.
1349         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
1350         with 'fieldno'.
1351         * expprint.c (print_subexp_standard): Likewise.
1352         (dump_subexp_body_standard): Likewise.
1353         * parse.c (operator_length_standard): Likewise.
1354
1355 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
1356
1357         Incorporate ARI web page generator into GDB sources.
1358         * contrib/ari/create-web-ari-in-src.sh: New file.
1359         * contrib/ari/gdb_ari.sh: New file.
1360         * contrib/ari/gdb_find.sh: New file.
1361         * contrib/ari/update-web-ari.sh: New file.
1362
1363 2012-10-31  Tom Tromey  <tromey@redhat.com>
1364
1365         * gdbarch.c: Rebuild.
1366         * gdbarch.sh: Remove references to gdbarch_swap.
1367         * corelow.c (core_open): Remove obsolete comment.
1368
1369 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
1370
1371         PR cli/14772
1372         * c-typeprint.c (c_print_type): Don't print a space for vector
1373         types, this is handled within the suffix.
1374         (c_type_print_varspec_suffix): Add a space to vector suffix.
1375
1376 2012-10-26  Pedro Alves  <palves@redhat.com>
1377
1378         * amd64-tdep.c (amd64_relocate_instruction): Use
1379         store_unsigned_integer instead of memcpy.
1380         * i386-tdep.c (i386_relocate_instruction): Ditto.
1381
1382 2012-10-26  Pedro Alves  <palves@redhat.com>
1383
1384         * infrun.c (handle_inferior_event): Merge handling of
1385         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1386         switch case.
1387
1388 2012-10-26  Pedro Alves  <palves@redhat.com>
1389
1390         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1391         Remove comment.
1392
1393 2012-10-26  Pedro Alves  <palves@redhat.com>
1394
1395         * target.c (target_waitstatus_to_string): Handle
1396         TARGET_WAITKIND_VFORK_DONE.
1397
1398 2012-10-26  Pedro Alves  <palves@redhat.com>
1399
1400         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1401         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1402
1403 2012-10-24  Tristan Gingold  <gingold@adacore.com>
1404
1405         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1406         Add comments.
1407
1408 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1409
1410         * ravenscar-thread.c (ravenscar_wait): Only update the list
1411         of threads and inferior_ptid if the inferior is still alive.
1412
1413 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1414
1415         * ada-lang.c (is_known_support_routine): Use lbasename when
1416         matching the symtab's filename against
1417         known_runtime_file_name_patterns.
1418
1419 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1420
1421         * ada-lang.c (ada_same_array_size_p): New function.
1422         (ada_promote_array_of_integrals): New function.
1423         (coerce_for_assign): Add handling of arrays where the elements
1424         are integrals of a smaller size than the size of the target
1425         array element type.
1426
1427 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1428
1429         * doublest.c (convert_doublest_to_floatformat): Fix comparison
1430         against maximum exponent value.
1431
1432 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1433
1434         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1435         "unwind-seh.c".
1436
1437 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1438
1439         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1440         strip typedef layer when computing the fixed type's field type,
1441         only when computing its size.
1442
1443 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
1444
1445         PR gdb/12783
1446         * i386-tdep.c (i386_return_value): Handle complex double and long
1447         double.
1448
1449 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1450
1451         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1452         New local variable args_len.
1453         Quote the name of the executable when computing the command line.
1454
1455 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
1456
1457         PR gdb/12796
1458         PR gdb/12798
1459         PR gdb/12800
1460         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1461         AMD64_FTAG_REGNUM.
1462         * amd64-tdep.c (amd64_classify): Classify complex types.
1463         (amd64_return_value): Handle the COMPLEX_X87 class.
1464
1465 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
1466
1467         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1468         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1469
1470 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
1471
1472         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1473         function.
1474         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1475         to amd64_windows_auto_wide_charset.
1476
1477 2012-10-23  Yao Qi  <yao@codesourcery.com>
1478
1479         * event-top.c (mark_async_signal_handler_wrapper): Remove.
1480         * event-top.h: Remove its declaration.
1481         (async_request_quit): Call mark_async_signal_handler instead of
1482         mark_async_signal_handler_wrapper.
1483         (async_do_nothing, async_disconnect): Likewise.
1484         (async_stop_sig): Likewise.
1485         * remote.c (handle_remote_sigint): Likewise.
1486         (handle_remote_sigint_twice): Likewise.
1487
1488 2012-10-23  Yao Qi  <yao@codesourcery.com>
1489
1490         * event-top.c (sigint_token, sighup_token): Replace 'void *'
1491         with 'static struct async_signal_handler *'.
1492         (sighup_token, sigquit_token, sigstp_token): Likewise.
1493
1494 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
1495
1496         * gdbarch.sh (function_list): Use 'pstring' when printing
1497         a variable which could return NULL.
1498         * gdbarch.c: Regenerate.
1499
1500 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
1501             Tom Tromey  <tromey@redhat.com>
1502
1503         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1504         inneffective if condition by gdb assertion.  Add function
1505         description comment.
1506
1507 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
1508
1509         * parser-defs.h (struct exp_descriptor): Document constraint
1510         on return value for "op_name" callbacks.
1511
1512 2012-10-18  Tom Tromey  <tromey@redhat.com>
1513
1514         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1515         * symtab.c (iterate_over_some_symtabs): Constify.
1516         * source.h (symtab_to_fullname): Return 'const char *'.
1517         * source.c (symtab_to_fullname): Return 'const char *'.
1518         * python/py-symtab.c (stpy_fullname): Constify.
1519         * cli/cli-cmds.c (edit_command): Constify.
1520         * breakpoint.c (print_breakpoint_location)
1521         (update_static_tracepoint): Constify.
1522
1523 2012-10-18  Tom Tromey  <tromey@redhat.com>
1524
1525         * breakpoint.c (compare_breakpoints): Fix comparison.
1526
1527 2012-10-18  Tom Tromey  <tromey@redhat.com>
1528
1529         * valprint.c (generic_emit_char, generic_printstr): Pass size of
1530         gdb_wchar_t to convert_between_encodings.
1531
1532 2012-10-17  Yao Qi  <yao@codesourcery.com>
1533
1534         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1535         more parameter 'inferior'.
1536         * corefile.c (write_memory_with_notification): Caller update.
1537
1538         * mi/mi-cmd-var.c: Include "mi-main.h".
1539         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1540         to 1 and restore it later.
1541         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1542         and "data-write-memory-bytes.
1543         * mi/mi-interp.c: Include objfiles.h.
1544         (mi_interpreter_init): Call observer_attach_memory_changed.
1545         (mi_memory_changed): New.
1546         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1547         New field.
1548
1549         * NEWS: Mention new MI notification "memory-changed".
1550
1551 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1552
1553         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1554
1555 2012-10-15  Doug Evans  <dje@google.com>
1556
1557         New option -nh: inhibit loading of ~/.gdbinit.
1558         * NEWS: Mention -nh.
1559         * main.c (captured_main): Recognize and process -nh.
1560         (print_gdb_help): Mention -nh.
1561         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
1562
1563 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1564
1565         PR backtrace/14646
1566         PR gdb/14647
1567         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1568         pc_regnum_from_eax.
1569         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1570         nor pc_regnum_from_eax.
1571         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1572         nor pc_regnum_from_eax.
1573
1574 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1575
1576         Fix entry values resolving in inlined frames.
1577         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1578         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
1579         entries of FRAME.
1580
1581 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
1582
1583         * configure.ac: Build with -DMS_WIN64 if building with Python
1584         enabled using GCC on amd64-windows.
1585         * configure: Regenerate.
1586
1587 2012-10-15  Tom Tromey  <tromey@redhat.com>
1588
1589         PR python/14635:
1590         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1591         to Py_None.
1592
1593 2012-10-15  Tom Tromey  <tromey@redhat.com>
1594
1595         PR python/14634:
1596         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1597
1598 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
1599
1600         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1601         reset thread numbering back to 1.
1602
1603 2012-10-11  Doug Evans  <dje@google.com>
1604
1605         PR breakpoints/14643.
1606         * linespec.c (struct ls_parser): New member keyword_ok.
1607         (linespec_lexer_lex_string): Add comment.
1608         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1609         for one.
1610         (parse_linespec): Set keyword_ok.
1611
1612 2012-10-10  Doug Evans  <dje@google.com>
1613
1614         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1615         "0x" prefix on address in log message.
1616
1617         * dwarf2read.c (read_1_byte): Add const to buf parameter.
1618         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1619         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1620         (lookup_dwo_file): Add const to dwo_name parameter.
1621         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1622
1623 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1624
1625         Fix crash during stepping on ppc32.
1626         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1627         SYM.
1628
1629 2012-10-03  Doug Evans  <dje@google.com>
1630
1631         PR symtab/14601
1632         * buildsym.c (buildsym_init): Reset using_directives to NULL.
1633
1634 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
1635
1636         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1637         output and use uint32_t not long to ensure 4 byte size.
1638
1639 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
1640
1641         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1642         unref'ed it.
1643
1644 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
1645
1646         * target.c (simple_search_memory): Include access length in
1647         warning message.
1648
1649 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
1650             Edjunior Machado  <emachado@linux.vnet.ibm.com>
1651
1652         PR gdb/13989
1653         * solib.c (solib_find): Prevent GDB from loading native libraries when
1654         debugging a cross-target corefile.
1655
1656 2012-09-28  selven  <pcthegreat@gmail.com>
1657
1658         Make definition match declaration.
1659
1660         * regcache.c (regcache_register_status): Change return type to
1661         enum register_status.
1662
1663 2012-09-28  Yao Qi  <yao@codesourcery.com>
1664
1665         * mi/mi-main.c (mi_cmd_data_write_memory): Call
1666         write_memory_with_notification instead of write_memory.
1667         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1668         instead of target_write_memory.
1669
1670 2012-09-28  Yao Qi  <yao@codesourcery.com>
1671
1672         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1673         when the length of content is not an even number.
1674
1675 2012-09-27  Tom Tromey  <tromey@redhat.com>
1676
1677         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1678         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1679
1680 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1681
1682         * sol-thread.c (sol_thread_fetch_registers)
1683         (sol_thread_store_registers): Delete commented out code.
1684
1685 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1686
1687         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1688         Move these functions to sparc-sol-thread.c.
1689         * sparc-sol-thread.c: New file.
1690         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1691         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1692         configurations.
1693         * configure: Regenerate.
1694
1695 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1696
1697         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1698         Remove commented-out code.
1699
1700 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1701
1702         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1703         Enable this code for sparc hosts only.
1704
1705 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1706
1707         * procfs.h (procfs_find_LDT_entry): Add declaration.
1708         * sol-thread.c (ps_lgetLDT): Delete local declaration of
1709         function procfs_find_LDT_entry.
1710
1711 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1712
1713         * procfs.c (proc_get_LDT_entry): Make static.
1714
1715 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1716
1717         * procfs.c (proc_find_memory_regions): Fix declaration.
1718
1719 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1720
1721         * amd64-tdep.c (amd64_return_value): Revert previous change
1722         that used TYPE_LENGTH directly.
1723         * bfin-tdep.c (bfin_extract_return_value): Likewise.
1724         (bfin_store_return_value): Likewise.
1725         * cris-tdep.c (cris_store_return_value): Likewise.
1726         (cris_extract_return_value): Likewise.
1727         * h8300-tdep.c (h8300_extract_return_value): Likewise.
1728         * hppa-tdep.c (hppa64_return_value): Likewise.
1729         * lm32-tdep.c (lm32_store_return_value): Likewise.
1730         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1731         * spu-tdep.c (spu_value_from_register): Likewise.
1732         * vax-tdep.c (vax_return_value): Likewise.
1733
1734 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1735
1736         * gdbtypes.c (lookup_array_range_type): Expand parameters
1737         LOW_BOUND and HIGH_BOUND to LONGEST.
1738         (lookup_string_range_type): Likewise.
1739         * gdbtypes.h (lookup_array_range_type): Likewise.
1740         (lookup_string_range_type): Likewise.
1741         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1742         Expand HIGHBOUND to ssize_t.
1743         (value_string): Likewise.
1744         * value.h (value_cstring): Expand parameter LEN to ssize_t.
1745         (value_string): Likewise.
1746
1747 2012-09-27  Yao Qi  <yao@codesourcery.com>
1748
1749         PR breakpoints/13898
1750         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1751         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1752         per breakpoint type.
1753
1754 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
1755
1756         * procfs.c: Add gdb_bfd header.
1757         * rs6000-nat.c: Likewise.
1758         * solib-pa64.c: Likewise.
1759         * spu-linux-nat.c: Likewise.
1760         * windows-nat.c: Likewise.
1761
1762 2012-09-26  Tom Tromey  <tromey@redhat.com>
1763
1764         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1765
1766 2012-09-26  Tom Tromey  <tromey@redhat.com>
1767
1768         * dwarf2read.c (mark_common_block_symbol_computed): New function.
1769         (read_common_block): Handle child DIEs with
1770         DW_AT_data_member_location.
1771         (new_symbol_full): Add special case for common blocks.
1772
1773 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1774             Tom Tromey  <tromey@redhat.com>
1775
1776         * dwarf2read.c (read_common_block): Rewrite.
1777         (new_symbol_full): Handle DW_TAG_common_block.
1778         * f-lang.c (head_common_list, find_common_for_function):
1779         Remove.
1780         * f-lang.h (struct common_entry, struct saved_f77_common,
1781         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1782         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1783         BLANK_COMMON_NAME_LOCAL): Remove.
1784         (struct common_block): New.
1785         * f-valprint.c (list_all_visible_commons): Remove.
1786         (info_common_command_for_block): New function.
1787         (info_common_command): Use it.
1788         * stack.c (iterate_over_block_locals): Special case for
1789         COMMON_BLOCK_DOMAIN.
1790         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1791         constant.
1792         (struct general_symbol_info) <value.common_block>: New field.
1793         (SYMBOL_VALUE_COMMON_BLOCK): New define.
1794
1795 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1796             Tom Tromey  <tromey@redhat.com>
1797
1798         * f-lang.c (allocate_saved_bf_node,
1799         allocate_saved_function_node, allocate_saved_f77_common_node,
1800         allocate_common_entry_node, tail_common_list, current_common,
1801         saved_bf_list, saved_bf_list_end, current_head_bf_list,
1802         tmp_bf_ptr, add_common_block, add_common_entry,
1803         find_first_common_named, patch_common_entries,
1804         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1805         global_remote_debug, get_bf_for_fcn, saved_function_list,
1806         saved_function_list_end, clear_function_list, struct saved_fcn,
1807         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1808         SAVED_BF, SAVED_BF_PTR): Remove.
1809         * f-lang.h (tail_common_list, current_common,
1810         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1811         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1812         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1813         real_main_c_value): Remove.
1814         * f-valprint.c (there_is_a_visible_common_named): Remove.
1815
1816 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
1817
1818         * breakpoint.c (update_global_location_list): Ignore previous
1819         duplicate status of a breakpoint when starting a new scan for
1820         duplicate breakpoints.
1821
1822 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
1823         PR breakpoints/14419
1824         * arm-tdep.c (arm_skip_prologue): Extending producer check to
1825         support LLVM compiler.
1826
1827 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1828
1829         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1830         * bfin-tdep.c (bfin_extract_return_value): Likewise.
1831         (bfin_store_return_value): Likewise.
1832         * cris-tdep.c (cris_store_return_value): Likewise.
1833         (cris_extract_return_value): Likewise.
1834         * h8300-tdep.c (h8300_extract_return_value): Likewise.
1835         * hppa-tdep.c (hppa64_return_value): Likewise.
1836         * lm32-tdep.c (lm32_store_return_value): Likewise.
1837         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1838         * spu-tdep.c (spu_value_from_register): Likewise.
1839         * vax-tdep.c (vax_return_value): Likewise.
1840
1841 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1842
1843         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1844         parameter LEN to ssize_t.
1845
1846 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1847
1848         * ada-valprint.c (ada_val_print_1): Eliminate single-use
1849         variable LEN.
1850         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1851         directly.
1852         (alpha_store_return_value): Likewise.
1853         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1854         (amd64_push_arguments): Likewise.
1855         * ax-gdb.c (gen_trace_static_fields): Likewise.
1856         (gen_traced_pop): Likewise.
1857         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1858         * breakpoint.c (update_watchpoint): Likewise.
1859         * findcmd.c (parse_find_args): Use local variable for type
1860         instead of length.
1861         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1862         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1863         (h8300_store_return_value): Likewise.
1864         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1865         Use i386_darwin_arg_type_alignment directly.
1866         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1867         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1868         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1869         (m68hc11_extract_return_value): Likewise.
1870         * mep-tdep.c (mep_push_dummy_call): Likewise.
1871         * printcmd.c (float_type_from_length): Likewise.
1872         * s390-tdep.c (s390_value_from_register): Likewise.
1873         * stack.c (read_frame_arg): Likewise.
1874         * tracepoint.c (encode_actions_1): Likewise.
1875         * valops.c (value_fetch_lazy): Use local variable for type
1876         instead of length.  Use TYPE_LENGTH directly.
1877         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1878
1879 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
1880
1881         * symtab.c (skip_prologue_sal): Fix typo in comment.
1882
1883 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
1884
1885         * linespec.c (create_sals_line_offset): Fix typo in comment.
1886
1887 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1888
1889         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1890         use plongest to print the array size.
1891
1892 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1893
1894         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1895         * p-valprint.c (pascal_type_print_base): Likewise.
1896
1897 2012-09-22  Yao Qi  <yao@codesourcery.com>
1898
1899         * remote.c (remote_get_trace_status): Remove setting default
1900         values of fields of 'ts'.
1901
1902 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1903
1904         Fix internal error on canonicalization of clang types.
1905         * cp-name-parser.y (operator): New comment at make_operator call for
1906         new, delete, new[] and delete[].
1907         (exp): Use "sizeof ".  Add new comment at make_operator call.
1908
1909 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1910
1911         Fix disassemble without parameters in tailcall frame.
1912         * cli/cli-cmds.c (disassemble_current_function): Use
1913         get_frame_address_in_block.
1914
1915 2012-09-21  Tom Tromey  <tromey@redhat.com>
1916
1917         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1918         TYPE_CODE_UNION>: Unify, removing a goto.
1919
1920 2012-09-21  Tom Tromey  <tromey@redhat.com>
1921
1922         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1923
1924 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
1925
1926         * findvar.c (read_frame_register_value): Mark the result value as
1927         optimized out if any of the input registers have been optimized out.
1928
1929 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
1930
1931         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1932
1933 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1934
1935         * eval.c (evaluate_subexp_standard): Eliminate single-use
1936         variable LOWER.
1937
1938 2012-09-21  Yao Qi  <yao@codesourcery.com>
1939
1940         * mi/mi-interp.c: Declare mi_record_changed.
1941         (mi_interpreter_init): Call observer_attach_record_changed.
1942         (mi_record_changed): New.
1943         * record.c (record_open): Call observer_notify_record_changed.
1944         (cmd_record_stop): Call observer_notify_record_changed.
1945         * NEWS: Mention it.
1946
1947 2012-09-20  Tom Tromey  <tromey@redhat.com>
1948
1949         * NEWS: Update.
1950         * python/python.c (finalize_python): New function.
1951         (_initialize_python): Make a final cleanup.
1952
1953 2012-09-19  Doug Evans  <dje@google.com>
1954
1955         * buildsym.h (param_symbols): Delete, unused.
1956         (context_stack): Delete member "params", unused.
1957         * buildsym.c (push_context): Update.
1958         * dwarf2read.c (read_func_scope): Update.
1959
1960 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
1961
1962         * sh-tdep.c (sh_register_convert_to_virtual)
1963         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
1964         all callers.  Just do a memcpy if not the little-endian case.
1965
1966         * h8300-tdep.c (h8300_gdbarch_init): Invoke
1967         set_gdbarch_double_format and set_gdbarch_long_double_format.
1968         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1969         set_gdbarch_double_format.
1970         * sh-tdep.c (sh_gdbarch_init): Likewise.
1971
1972         * NEWS: Document the removal of SH's 'regs' command.
1973         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1974         command.
1975
1976 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
1977
1978         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1979         `jump'.
1980
1981 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
1982
1983         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1984         language when iterating over symbols.
1985
1986 2012-09-18  Yao Qi  <yao@codesourcery.com>
1987
1988         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1989         (mi_interpreter_init): Call observer_attach_tsv_created and
1990         observer_attach_tsv_deleted.
1991         (mi_tsv_created, mi_tsv_deleted): New.
1992         * tracepoint.c (delete_trace_state_variable): Call
1993         observer_notify_tsv_deleted.
1994         (trace_variable_command): Call observer_notify_tsv_created.
1995         (delete_trace_variable_command): Call
1996         observer_notify_tsv_deleted.
1997         (create_tsv_from_upload): Call observer_notify_tsv_created.
1998         * NEWS: Mention it.
1999
2000 2012-09-18  Yao Qi  <yao@codesourcery.com>
2001
2002         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2003         if traceframe changed.
2004         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2005         "trace-find".
2006         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2007         (mi_interpreter_init): Hook mi_traceframe_changed to observer
2008         'traceframe_changed'.
2009         (mi_traceframe_changed): New.
2010         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2011         New field.
2012         * NEWS: Mention the new MI notification.
2013
2014 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
2015
2016         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2017
2018 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2019
2020         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2021         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
2022         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2023         Extend code also for PaX support.  Convert all gdb_assert to warning
2024         calls.
2025
2026 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2027
2028         Implement auto-load user conveniences suggested by Doug Evans.
2029         * auto-load.c: Include top.h.
2030         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
2031         (_initialize_auto_load): New variable scripts_directory_help.  Mention
2032         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2033         scripts-directory.  Document in online help one can use also files for
2034         set auto-load safe-path.
2035         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2036         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2037
2038 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2039
2040         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2041         of LEN.
2042
2043 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2044
2045         * m2-valprint.c (m2_print_array_contents): Eliminate variable
2046         ELTLEN and use TYPE_LENGTH directly.
2047         (m2_val_print): Likewise.
2048         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2049         variable LEN and use TYPE_LENGTH directly.
2050         (m68k_svr4_store_return_value): Likewise.
2051         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2052         ARGLEN and use TYPE_LENGTH directly.
2053         (mips_o64_push_dummy_call): Likewise.
2054         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2055         variable LENGTH and use TYPE_LENGTH directly.
2056         (s390_function_arg_float): Likewise.
2057         (s390_function_arg_integer): Likewise.
2058         (s390_push_dummy_call): Likewise.
2059         (s390_return_value_convention): Likewise.
2060         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2061         TYPE_LENGTH directly.
2062
2063 2012-09-17  Yao Qi  <yao@codesourcery.com>
2064
2065         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2066         Update comment to add_setshow_integer_cmd.
2067         * cli/cli-setshow.c (do_set_command): Handle case
2068         'var_zuinteger_unlimited'.
2069         (do_show_command): Likewise.
2070         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2071         for command 'remotetimeout'.
2072         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
2073         to var_integer.
2074         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
2075         for command 'set listsize'.
2076
2077 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2078
2079         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2080         variable LEN.
2081
2082 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2083
2084         PR 14119
2085         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2086         (frame_pop): Drop also TAILCALL_FRAME frames.
2087         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2088
2089 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2090             Pedro Alves  <palves@redhat.com>
2091
2092         PR 14548
2093         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2094         function start if we are already at function start.  Both for
2095         reverse-next and for reverse-step into function without line number
2096         info.
2097
2098 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2099
2100         Code cleanup - rename 'inline' depth to 'artificial' depth.
2101         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2102         frame_id_artificial_p, extend the comment.
2103         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2104         * frame.c (fprint_frame_id): Rename at a user, change debug output
2105         text to "artificial=".
2106         (skip_inlined_frames): Rename to ...
2107         (skip_artificial_frames): ... here.  Extend the comment.
2108         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2109         (frame_id_inlined_p): Rename to ...
2110         (frame_id_artificial_p): ... here.  Rename at a user.
2111         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2112         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2113         at a user.
2114         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2115         Extend the comment.
2116         (frame_id_inlined_p): Rename to ...
2117         (frame_id_artificial_p): ... here.
2118         * inline-frame.c (inline_frame_this_id): Rename at a user.
2119
2120 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
2121
2122         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2123         vector variables using vector_size syntax rather than array
2124         syntax.
2125
2126 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2127
2128         * valarith.c (value_concat): Replace unsafe ALLOCA with
2129         XMALLOC/XFREE.
2130
2131 2012-09-14  Pedro Alves  <palves@redhat.com>
2132
2133         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2134
2135 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
2136
2137         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2138         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2139         data-directory as appropriate.
2140
2141 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2142
2143         * printcmd.c (ui_printf): Eliminate single-use variable
2144         PARAM_LEN.
2145
2146 2012-09-14  Yao Qi  <yao@codesourcery.com>
2147             Pedro Alves  <palves@redhat.com>
2148
2149         * valops.c (value_assign): Move observer_notify_target_changed
2150         below to replace reinit_frame_cache.
2151
2152 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
2153
2154         Refactor Python "gdb" module into a proper Python package, by
2155         introducing a new "_gdb" module for code implemented in C, and
2156         using reload/__import__ instead of exec.
2157         * python/lib/gdb/__init__.py: Import * from _gdb.
2158         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2159         prompt_hook, sys.argv): Moved from finish_python_initialization.
2160         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2161         (packages, auto_load_packages): New list and function replacing
2162         module_dict and auto-loading code, using __file__ instead of
2163         gdb.PYTHONDIR and reload/__import__ instead of exec.
2164         (GdbSetPythonDirectory): Replacing function of the same name
2165         from finish_python_initialization, using reload/__import__ instead
2166         of exec, as well as call auto_load_packages.
2167         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2168         gdb_python_module and not gdb_module.
2169         * python/python-internal.h (gdb_python_module): Declare.
2170         * python/python.c (gdb_python_module): New global.
2171         (before_prompt_hook): Check gdb_python_module and not gdb_module.
2172         (_initialize_python): Rename gdb module to _gdb.
2173         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2174         (finish_python_initialization): Move Python code to
2175         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2176         __main__.
2177
2178 2012-09-13  Pedro Alves  <palves@redhat.com>
2179
2180         * Makefile.in (COMMON_OBS): Add registry.o.
2181         * registry.c: New file.
2182         * registry.h (struct registry_container): Declare.
2183         (registry_data_callback): New typedef.
2184         (struct registry_data, struct registry_data_registration, struct
2185         registry_data_registry): New type.
2186         (register_data_with_cleanup, registry_alloc_data)
2187         (registry_callback_adaptor, registry_clear_data)
2188         (registry_container_free_data, registry_set_data, registry_data):
2189         Declare.
2190         (DEFINE_REGISTRY): Refactor structures and functions as shims over
2191         the new common structures and functions.
2192         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
2193         callback typedefs.
2194
2195 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
2196
2197         * remote.c (remote_insert_hw_breakpoint): Throw exception if
2198         there is an error inserting hardware breakpoints and use the
2199         error message from the target.
2200
2201         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2202         Catch this exception and print the error message contained within. Do not
2203         print the default hardware error breakpoint message in this case.
2204
2205 2012-09-12  Doug Evans  <dje@google.com>
2206
2207         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2208         cu == NULL.
2209
2210 2012-09-11  Doug Evans  <dje@google.com>
2211
2212         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2213         .gdb_index symbol attributes if there are none.
2214
2215 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
2216
2217         * symtab.h (struct minimal_symbol) [has_size]: New field.
2218         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2219         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2220         * printcmd.c (build_address_symbolic): Only filter out zero-sized
2221         minimal symbols if the symbol's size is actually known.
2222         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2223         of msymbol's size field.  Add comment.
2224         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2225         SET_MSYMBOL_SIZE to set the minimal symbol size.
2226
2227 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
2228
2229         * minsyms.c (install_minimal_symbols): Use memset to fill entire
2230         minimal_symbol struct object, rather than setting some of its
2231         fields one by one.
2232
2233 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
2234
2235         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2236         passed_a_ptr flag when displaying typedef types.
2237
2238 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
2239
2240         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2241         the optimized_out flag is preserved.
2242
2243 2012-09-10  Anthony Green  <green@moxielogic.com>
2244
2245         * moxie-tdep.c (moxie_analyze_prologue): Update for function
2246         prologue changes in GCC.
2247
2248 2012-09-10  Keith Seitz  <keiths@redhat.com>
2249
2250         PR gdb/13483
2251         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2252         (BOOL_CONVERSION_BADNESS): ... this.
2253         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2254         (rank_one_type): Allow all boolean conversions
2255         permitted by the standard.
2256
2257 2012-09-06  Tom Tromey  <tromey@redhat.com>
2258
2259         * python/py-newobjfileevent.c (create_new_objfile_event_object):
2260         Don't decref py_objfile.
2261
2262 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
2263
2264         Do not enable -lmcheck by default when Python is enabled with
2265         threading support.
2266         * configure.ac: (python_has_threads) New variable, by testing
2267         if WITH_THREAD is defined in Python.h.
2268         Move --enable-lmcheck after --with-python.
2269         Do not enable -lmcheck by default if python_has_threads=yes.
2270         Warn if --enable-lmcheck and python_has_threads=yes.
2271         * configure: Regenerate.
2272
2273 2012-08-31  Yao Qi  <yao@codesourcery.com>
2274
2275         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2276         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2277         Update some commands.
2278         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2279         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2280         to 1.
2281
2282 2012-08-31  Yao Qi  <yao@codesourcery.com>
2283
2284         * mi/mi-cmds.c (mi_cmds): Add 'static'.
2285
2286 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
2287
2288         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2289
2290 2012-08-29  Doug Evans  <dje@google.com>
2291
2292         * main.c (print_gdb_help): Remove reference to
2293         --use-deprecated-index-sections.
2294
2295 2012-08-28  Yao Qi  <yao@codesourcery.com>
2296
2297         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2298         (init_cmds): Call add_setshow_uinteger_cmd for command
2299         'max-user-call-depth'.
2300         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2301         declaration of 'max_user_call_depth'.
2302         * frame.c (backtrace_limit): Add 'unsigned'.
2303         (_initialize_frame): Call add_setshow_uinteger_cmd for command
2304         'limit'.
2305         * remote.c (remoteaddresssize): Add 'unsigned'.
2306         (remote_address_masked): Change local var 'address_size' to
2307         'unsigned'.
2308         (_initialize_remote): Call add_setshow_uinteger_cmd for
2309         'remoteaddresssize'.
2310         * top.c (history_size): Add 'unsigned'.
2311         (show_commands): Change local variables to 'unsigned'.
2312         (set_history_size_command): Don't check history_size is negative.
2313         Adjust the condition to call unstifle_history and set history_size
2314         to UNIT_MAX.
2315
2316 2012-08-28  Pedro Alves  <palves@redhat.com>
2317
2318         PR gdb/14428
2319
2320         * infcmd.c (default_print_one_register_info): New, factored out
2321         from default_print_registers_info.
2322         (default_print_registers_info): Use it.  Mark value unavailable if
2323         necessary.
2324         (registers_info): Print user registers with
2325         default_print_one_register_info.
2326
2327 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
2328
2329         PR tui/14486
2330         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2331         is not NULL before referencing it.
2332
2333 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2334
2335         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2336         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
2337         original PC for it.
2338
2339 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
2340             Jan Kratochvil  <jan.kratochvil@redhat.com>
2341
2342         * auto-load.c (auto_load_objfile_script): Rename to ...
2343         (auto_load_objfile_script_1): ... here, change variable realname to
2344         parameter realname, document it, add return value, add variable retval.
2345         (auto_load_objfile_script): New function.
2346
2347 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2348
2349         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2350         followed by a whitespace.
2351
2352 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2353
2354         PR gdb/14494.
2355         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2356         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2357         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2358         here.
2359
2360 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
2361
2362         * memattr.c (create_mem_region): Fix memory region overlapping
2363         checking.
2364
2365 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2366
2367         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2368         with xmalloc/cleanup.
2369         * mt-tdep.c (mt_push_dummy_call): Likewise.
2370         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2371         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2372
2373 2012-08-24  Yao Qi  <yao@codesourcery.com>
2374
2375         * jv-exp.y (push_expression_name): Add "." at the end of error
2376         message.
2377
2378 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
2379
2380         Document how to return from "python-interactive" to GDB.
2381         * python/python.c (_initialize_python): Update documentation.
2382
2383 2012-08-23  Pedro Alves  <palves@redhat.com>
2384
2385         * infrun.c (_initialize_infrun) <handle command help text>:
2386         Mention that multiple signals are supported.
2387
2388 2012-08-23  Pedro Alves  <palves@redhat.com>
2389
2390         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2391         string.
2392
2393 2012-08-23  Yao Qi  <yao@codesourcery.com>
2394
2395         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2396         (tfind_1): Don't call registers_changed, set_traceframe_num,
2397         and clear_traceframe_info.
2398         Call set_current_traceframe.
2399         (set_current_traceframe): call set_traceframe_num.
2400
2401 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
2402
2403         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2404         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2405
2406 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
2407
2408         Enable readline in Python in a GDB-specific way and block the
2409         standard Python readline module to prevent conflicts with GDB.
2410         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2411         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2412         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2413         * python/py-gdb-readline.c: New file.
2414         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2415         prototype.
2416         * python/python.c (_initialize_python): Call
2417         gdbpy_initialize_gdb_readline.
2418
2419 2012-08-22  Keith Seitz  <keiths@redhat.com>
2420
2421         * defs.h: Include build-gnulib/config.h
2422
2423 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
2424
2425         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2426         and blx pc.
2427
2428 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
2429
2430         Add a new "python-interactive" command that starts a standard
2431         Python interactive prompt with "pi" as alias, and add "py" as
2432         an alias to "python".
2433         * NEWS: Mention the new commands.
2434         * python/python.c (eval_python_command): New function.
2435         (python_interactive_command): For "python-interactive" with
2436         arguments, call eval_python_command.  For "python-interactive"
2437         without arguments, call PyRun_InteractiveLoop.
2438         (_initialize_python): Add "python-interactive" command with
2439         "pi" as alias, and add "py" as an alias to "python".
2440
2441 2012-08-22  Tom Tromey  <tromey@redhat.com>
2442
2443         * defs.h (quit_flag): Don't declare.
2444         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2445         (QUIT): Use new functions.
2446         * event-top.c (command_handler): Use clear_quit_flag.
2447         (handle_sigint): Use set_quit_flag.
2448         (async_request_quit): Use check_quit_flag.  Don't check
2449         immediate_quit.
2450         * exceptions.c (throw_exception): Use clear_quit_flag.
2451         * main.c (captured_main): Use clear_quit_flag.
2452         * python/python.c (clear_quit_flag, set_quit_flag)
2453         (check_quit_flag): New functions.
2454         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2455         clear_quit_flag.
2456         * remote.c (remote_wait_as): Use check_quit_flag,
2457         clear_quit_flag.
2458         (remote_start_remote): Call QUIT.
2459         * symfile.c (load_progress): Use check_quit_flag.
2460         * top.c (command_loop): Use clear_quit_flag.
2461         (command_line_input): Call QUIT.
2462         * utils.c (quit_flag): Conditionally define.
2463         (clear_quit_flag, check_quit_flag, set_quit_flag): New
2464         functions.
2465         (prompt_for_continue): Call QUIT.  Use quit, not
2466         async_request_quit.
2467         * remote-mips.c (mips_expect_timeout): Call QUIT.
2468         * monitor.c (monitor_expect): Call QUIT.
2469
2470 2012-08-22  Tom Tromey  <tromey@redhat.com>
2471
2472         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2473         (async_init_signals): Update.
2474         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2475         (SIGWINCH_HANDLER_BODY): Remove.
2476
2477 2012-08-22  Tom Tromey  <tromey@redhat.com>
2478
2479         * jit.c (jit_object_close_impl): Don't malloc the objfile
2480         name.
2481         * objfiles.c (allocate_objfile): Don't malloc the objfile
2482         name.
2483         (free_objfile): Don't free the objfile name.
2484         * objfiles.h (struct objfile) <name>: Update comment.
2485         * symfile.c (reread_symbols): Fix reference counting.  Don't
2486         malloc objfile name.
2487
2488 2012-08-22  Tom Tromey  <tromey@redhat.com>
2489
2490         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2491         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2492         (symfile_bfd_open): Likewise.
2493         (generic_load): Likewise.
2494         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2495         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2496         gdb_bfd_open.
2497         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2498         Use gdb_bfd_open.
2499         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2500         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2501         (pmon_load_fast): Likewise.
2502         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2503         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2504         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2505         (macho_check_dsym): Likewise.
2506         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2507         (m32r_upload_command): Likewise.
2508         * gdb_bfd.h (gdb_bfd_cache): Declare.
2509         * gdb_bfd.c (struct gdb_bfd_data): New.
2510         (gdb_bfd_cache): New global.
2511         (struct gdb_bfd_cache_search): New.
2512         (hash_bfd): New function.
2513         (eq_bfd): Likewise.
2514         (gdb_bfd_open): Likewise.
2515         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2516         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
2517         gdb_bfd_data.
2518         * exec.c (exec_file_attach): Use gdb_bfd_open.
2519         * dsrec.c (load_srec): Use gdb_bfd_open.
2520
2521 2012-08-22  Tom Tromey  <tromey@redhat.com>
2522
2523         * dwarf2read.c (macro_start_file): Update.
2524         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2525         (free_objfile_per_bfd_storage): Destroy macro_cache.
2526         (allocate_objfile, free_objfile): Update.
2527         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2528         New field.
2529         (struct objfile) <macro_cache>: Remove.
2530         * symfile.c (reread_symbols): Update.
2531         * symmisc.c (print_symbol_bcache_statistics): Update.
2532         (print_objfile_statistics): Update.
2533
2534 2012-08-22  Tom Tromey  <tromey@redhat.com>
2535
2536         * elfread.c (elf_symtab_read): Update.
2537         * objfiles.c (objfiles_bfd_data): New global.
2538         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2539         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2540         (allocate_objfile, free_objfile): Update.
2541         (_initialize_objfiles): Initialize objfiles_bfd_data.
2542         * objfiles.h (struct objfile_per_bfd_storage): New.
2543         (struct objfile) <per_bfd>: New field.
2544         <filename_cache>: Remove.
2545         (set_objfile_per_bfd): Declare.
2546         * symfile.c (reread_symbols): Update.  Call
2547         set_objfile_per_bfd.
2548         (allocate_symtab): Update.
2549         * symmisc.c (print_symbol_bcache_statistics): Update.
2550         (print_objfile_statistics): Print the size of the BFD obstack.
2551
2552 2012-08-22  Tom Tromey  <tromey@redhat.com>
2553
2554         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
2555         * gdb_bfd.c: Use DEFINE_REGISTRY.
2556         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2557         (gdb_bfd_ref): Call bfd_alloc_data.
2558         (gdb_bfd_unref): Call bfd_free_data.
2559
2560 2012-08-22  Tom Tromey  <tromey@redhat.com>
2561
2562         * registry.h (struct registry_fields): New.
2563         (REGISTRY_FIELDS): Redefine.
2564         (REGISTRY_ACCESS_FIELD): New macro.
2565         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
2566         functions.
2567
2568 2012-08-22  Tom Tromey  <tromey@redhat.com>
2569
2570         * auto-load.c (_initialize_auto_load): Update.
2571         * solib-svr4.c (_initialize_svr4_solib): Update
2572         * solib-dsbt.c (_initialize_dsbt_solib): Update.
2573         * solib-darwin.c (_initialize_darwin_solib): Update.
2574         * registry.h: New file.
2575         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2576         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2577         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
2578         (register_program_space_data_with_cleanup)
2579         (register_program_space_data, program_space_alloc_data)
2580         (clear_program_space_data, set_program_space_data)
2581         (program_space_data): Don't declare.
2582         * progspace.c: Use DEFINE_REGISTRY.
2583         (struct program_space_data, struct
2584         program_space_data_registration, struct
2585         program_space_data_registry, program_space_data_registry)
2586         (register_program_space_data_with_cleanup)
2587         (register_program_space_data, program_space_alloc_data)
2588         (program_space_free_data, clear_program_space_data)
2589         (set_program_space_data, program_space_data): Remove.
2590         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
2591         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2592         (register_objfile_data_with_cleanup, register_objfile_data)
2593         (clear_objfile_data, set_objfile_data, objfile_data): Don't
2594         declare.
2595         * objfiles.c: Use DEFINE_REGISTRY.
2596         (struct objfile_data, struct objfile_data_registration, struct
2597         objfile_data_registry, objfile_data_registry)
2598         (register_objfile_data_with_cleanup, register_objfile_data)
2599         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2600         (set_objfile_data, objfile_data): Remove.
2601         (_initialize_objfiles): Update.
2602         * jit.c (_initialize_jit): Update.
2603         * inflow.c (_initialize_inflow): Update.
2604         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
2605         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2606         (register_inferior_data_with_cleanup, register_inferior_data)
2607         (clear_inferior_data, set_inferior_data, inferior_data): Don't
2608         declare.
2609         * inferior.c: Use DEFINE_REGISTRY.
2610         (struct inferior_data, struct inferior_data_registration, struct
2611         inferior_data_registry, inferior_data_registry)
2612         (register_inferior_data_with_cleanup, register_inferior_data)
2613         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
2614         (set_inferior_data, inferior_data): Remove.
2615         * auxv.c (_initialize_auxv): Update.
2616         * ada-lang.c (_initialize_ada_language): Update.
2617         * breakpoint.c (_initialize_breakpoint): Update.
2618         * i386-nat.c (i386_use_watchpoints): Update.
2619
2620 2012-08-22  Tom Tromey  <tromey@redhat.com>
2621
2622         * exec.c (exec_close, exec_file_attach): Update.
2623         (add_to_section_table): Initialize 'key' field.
2624         (add_target_sections, remove_target_sections): Add 'key' argument.
2625         * exec.h (add_target_sections, remove_target_sections): Add
2626         'key' argument.
2627         * solib.c (solib_map_sections, update_solib_list, clear_solib)
2628         (reload_shared_libraries_1): Update.
2629         * target.h (struct target_section) <key>: New field.
2630
2631 2012-08-22  Tom Tromey  <tromey@redhat.com>
2632
2633         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2634
2635 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
2636
2637         * symfile.c (allocate_symtab): Use host_address_to_string
2638         function instead of cast of pointer to long which is not
2639         compatible with x86_64-w64-mingw32 build.
2640
2641 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2642
2643         * mips-tdep.c (is_octeon): New function.
2644         (is_octeon_bbit_op): New function.
2645         (mips32_next_pc): Handle Octeon's bbit instructions.
2646         (mips32_instruction_has_delay_slot): Likewise.
2647
2648 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2649
2650         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2651         before the function.
2652
2653 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2654
2655         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2656
2657 2012-08-19  Keith Seitz  <keiths@redhat.com>
2658
2659         PR c++/14365
2660         * c-typeprint.c (c_type_print_varspec_prefix): Pass
2661         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2662
2663 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
2664
2665         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2666         The typo broke "make TAGS".
2667
2668 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
2669
2670         GDB 7.5 released.
2671
2672 2012-08-17  Keith Seitz  <keiths@redhat.com>
2673
2674         PR c++/13356
2675         * gdbtypes.c (strict_type_checking): New variable.
2676         (show_strict_type_checking): New function.
2677         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2678         if strict type checking is disabled.
2679         (_initialize_gdbtypes): Add "check type" subcommand.
2680         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2681
2682 2012-08-17  Keith Seitz  <keiths@redhat.com>
2683
2684         * language.h (type_mode): Remove.
2685         (type_check): Remove.
2686         (struct language_defn): Remove la_type_check.
2687         (STRICT_TYPE): Remove unused macro.
2688         (type_error): Remove.
2689         * language.c (set_type_range_case): Renamed to ...
2690         (set_range_case): ... this.  Update all callers.
2691         Remove type_mode/type_check.
2692         (type_mode): Remove.
2693         (type_check): Remove.
2694         (show_type_command): Remove.
2695         (set_type_command): Remove.
2696         (language_info): Remove type checking output.
2697         (type_error): Remove unused function.
2698         (range_error): Update comment.
2699         (unknown_language_defn): Remove la_type_check.
2700         (auto_language_defn): Likewise.
2701         (local_language_defn): Likewise.
2702         (_initialize_language): Remove "check type" subcommand.
2703         * ada-lang.c (ada_language_defn): Remove la_type_check.
2704         * c-lang.c (c_language_defn): Likewise.
2705         (cplus_language_defn): Likewise.
2706         (asm_language_defn): Likewise.
2707         (minimal_language_defn): Likewise.
2708         * d-lang.c (d_language_defn): Likewise.
2709         * f-lang.c (f_language_defn): Likewise.
2710         * go-lang.c (go_language_defn): Likewise.
2711         * jv-lang.c (java_language_defn): Likewise.
2712         * m2-lang.c (m2_language_defn): Likewise.
2713         * objc-lang.c (objc_language_defn): Likewise.
2714         * opencl-lang.c (opencl_language_defn): Likewise.
2715         * p-lang.c (pascal_language_defn): Likewise.
2716
2717 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
2718
2719         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2720
2721 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2722
2723         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2724         New function.
2725         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2726         using the regache.  Use ia64_hpux_get_register_from_save_state_t
2727         to access the bsp and bspstore registers if not.
2728
2729 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2730
2731         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2732         * breakpoint.c (detach_breakpoints): Change pid parameter into
2733         a ptid.  Adjust code accordingly.
2734         * infrun.c (handle_inferior_event): Delete variable child_pid.
2735         Update call to detach_breakpoints to pass the child ptid for
2736         fork events.
2737         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2738         assert that inferior_ptid's lwp is zero.
2739         (linux_handle_extended_wait): Update call to detach_breakpoints.
2740         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2741         detach_breakpoints.
2742
2743 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2744
2745         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2746         parent, only call detach_breakpoints if tts.tts_event ==
2747         TTEVT_VFORK.
2748
2749 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2750
2751         * dwarf2-frame.c (dwarf2_frame_cache): Use
2752         get_frame_address_in_block instead of get_frame_pc as
2753         the bound for executing the frame's FDE.
2754
2755 2012-08-16  Yao Qi  <yao@codesourcery.com>
2756
2757         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2758         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2759         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2760         (c_type_print_varspec_suffix): Likewise.
2761         * eval.c (evaluate_subexp_standard): Likewise.
2762         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2763         (f_type_print_varspec_suffix): Likewise.
2764         * gdbtypes.c (is_scalar_type): Likewise.
2765         (recursive_dump_type): Likewise.
2766         * infcall.c (value_arg_coerce): Likewise.
2767         * m2-valprint.c (m2_val_print): Likewise.
2768         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2769         (pascal_type_print_varspec_suffix): Likewise.
2770         (pascal_type_print_base): Likewise.
2771         * p-valprint.c (pascal_val_print): Likewise.
2772         (pascal_val_print): Likewise.
2773         * valops.c (value_slice): Likewise.
2774         * valprint.c (scalar_type_p): Likewise.
2775         * valarith.c (value_bitstring_subscript): Remove.
2776         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2777         Remove comment on TYPE_CODE_BITSTRING.
2778
2779         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2780         TYPE_CODE_BITSTRING.
2781
2782         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2783         slot 0.
2784
2785 2012-08-16  Yao Qi  <yao@codesourcery.com>
2786
2787         * tracepoint.c (trace_find_none_command): Remove.
2788         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2789
2790 2012-08-16  Yao Qi  <yao@codesourcery.com>
2791
2792         * remote.c (handle_notification): Remove parameter 'length'.
2793         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2794
2795 2012-08-15  Keith Seitz  <keiths@redhat.com>
2796
2797         * gdbtypes.c (opaque_type_resolution): Make static.
2798         Add missing comment.
2799         (overload_debug): Add missing comment.
2800         (show_opaque_type_resolution): Likewise.
2801         (show_overload_debug): Likewise.
2802         (print_bit_vector): Remove unnecessary forward declaration.
2803         (print_arg_types): Likewise.
2804         (dump_fn_fieldlists): Likewise.
2805         (print_cplus_stuff): Likewise.
2806
2807 2012-08-15  Tom Tromey  <tromey@redhat.com>
2808
2809         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2810         (gdb_bfd_ref): Initialize new field.
2811         (gdb_bfd_unref): Unref the archive BFD.
2812         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2813         parent archive.
2814
2815 2012-08-15  Tom Tromey  <tromey@redhat.com>
2816
2817         PR python/14387:
2818         * python/py-bpevent.c (create_breakpoint_event_object): Update
2819         comment.
2820         * python/py-event.c (evpy_add_attribute): Update comment.
2821         * python/py-exitedevent.c (create_exited_event_object): Fix
2822         reference counting and error handling.
2823         * python/py-newobjfileevent.c (create_new_objfile_event_object):
2824         Fix reference counting.
2825         * python/py-signalevent.c (create_signal_event_object): Fix
2826         reference counting and error handling.
2827         * python/py-stopevent.c (emit_stop_event): Fix reference
2828         counting.
2829         * python/py-threadevent.c (get_event_thread): Return a
2830         borrowed reference.
2831         * python/py-type.c (convert_field): Fix reference counting.
2832
2833 2012-08-15  Tom Tromey  <tromey@redhat.com>
2834
2835         * dwarf2read.c (dwarf_decode_macro_bytes)
2836         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2837         as hash key.
2838
2839 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2840
2841         * infcmd.c (_initialize_infcmd): Update help text for the signal,
2842         stepi, nexti, finish, next, step, jump, and continue commands.
2843         * infrun.c (_initialize_infrun): Update help text for the handle
2844         command.
2845
2846 2012-08-14  Doug Evans  <dje@google.com>
2847
2848         * gdbtypes.c (struct extra): Delete, unused.
2849
2850         * gdbtypes.c: Whitespace cleanup.
2851         (address_space_name_to_int): Remove "extern" from definition.
2852         (_initialize_gdbtypes): Declare with initialize_file_ftype.
2853
2854         * gdbtypes.c (make_pointer_type): Remove redundant setting of
2855         TYPE_POINTER_TYPE (type).
2856
2857 2012-08-14  Gary Benson  <gbenson@redhat.com>
2858
2859         * solib-svr4.c (svr4_free_library_list): Use free_so.
2860
2861 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
2862
2863         * .gitignore: Add go-exp.c.
2864
2865 2012-08-13  Doug Evans  <dje@google.com>
2866
2867         * value.c (show_convenience): Tweak comment.
2868         (_initialize_values): Mention convenience functions in the help text
2869         for "show convenience".
2870
2871 2012-08-13  Yao Qi  <yao@codesourcery.com>
2872
2873         * std-operator.def: Remove TERNOP_SLICE_COUNT.
2874         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2875         TERNOP_SLICE_COUNT.
2876         * eval.c (evaluate_subexp_standard): Likewise.
2877         * expprint.c (print_subexp_standard): Likewise.
2878         (dump_subexp_body_standard): Likewise.
2879         * parse.c (operator_length_standard): Likewise.
2880
2881 2012-08-13  Yao Qi  <yao@codesourcery.com>
2882
2883         * std-operator.def: Remove OP_BITSTRING.
2884         * breakpoint.c (watchpoint_exp_is_const): Update.
2885         * eval.c (evaluate_subexp_standard): Remove handling to
2886         OP_BITSTRING.
2887         * expprint.c (print_subexp_standard): Likewise.
2888         (dump_subexp_body_standard): Likewise.
2889         * parse.c (operator_length_standard): Likewise.
2890         * valops.c (value_bitstring): Remove.
2891         * value.h: Remove the declaration of 'value_bitstring'.
2892
2893 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2894
2895         * linespec.c (find_methods): Remove unused variables `i1' and
2896         `name_len'.
2897         (decode_line_full): Likewise for `arg_start'.
2898
2899 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2900
2901         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2902         (zlib_decompress_section): Likewise for `section_data'.
2903         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2904
2905 2012-08-10  Doug Evans  <dje@google.com>
2906
2907         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2908         * NEWS: Document them.
2909         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2910         function/strfns.py.
2911         * python/py-type.c (typy_array_1): New function.
2912         (typy_array): Call it.
2913         (typy_vector): New function.
2914         (type_object_methods): Add "vector".
2915         * python/lib/gdb/function/__init__.py: New file.
2916         * python/lib/gdb/function/strfns.py: New file.
2917
2918 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2919
2920         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2921         for TYPE_FIELD_BITPOS.
2922         (typy_get_sizeof): Likewise for TYPE_LENGTH.
2923
2924 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
2925
2926         PR cli/10436:
2927         * common/vec.h (VEC_merge): Define.
2928         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2929         (DEF_VEC_ALLOC_FUNC_P): Likewise.
2930         (DEF_VEC_ALLOC_FUNC_O): Likewise.
2931         * completer.c: Include gdb_signals.h.
2932         (signal_completer): Define.
2933         * completer.h (signal_completer): Add prototype.
2934         * infcmd.c (_initialize_infcmd): Assign the command
2935         completer for "signal" to handle_completer.
2936         * infrun.c: Include completer.h.
2937         (handle_completer): Define.
2938         (_initialize_infrun): Declare a new local variable c.  Store the
2939         result of add_com("handle") to it.  Assign the command
2940         completer for "handle" to handle_completer.
2941
2942 2012-08-09  Yao Qi  <yao@codesourcery.com>
2943
2944         * cli/cli-decode.c (set_cmd_prefix): New.
2945         (lookup_cmd_for_prefixlist): New.
2946         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2947         of each cmd_list_element in *prefixlist.
2948         (add_setshow_cmd_full): set_cmd_prefix.
2949         (add_alias_cmd): Likewise.
2950         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2951         Declare 'auto_boolean_enums'.
2952         * cli/cli-setshow.c: Include "observer.h".
2953         (notify_command_param_changed_p): New.
2954         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2955         Remove 'static'.
2956         (do_setshow_command): Split it to ...
2957         (do_set_command, do_show_command): ... them.  New.
2958         (do_set_command): Call observer_notify_command_param_changed if
2959         notify_command_param_changed_p returns true.
2960         (cmd_show_list): Caller update.
2961         * auto-load.c (set_auto_load_cmd): Likewise.
2962         * remote.c (show_remote_cmd): Likewise.
2963         * cli/cli-setshow.h: Update declarations.
2964         * top.c (execute_command): Call do_set_command and do_show_command.
2965
2966         * NEWS: Mention new MI notification.
2967         * mi/mi-interp.c: Declare mi_command_param_changed.
2968         (mi_interpreter_init): Attach mi_command_param_changed to
2969         observer command_param_changed.
2970         (mi_command_param_changed): New.
2971         Remove mi_suppress_breakpoint_notifications.
2972         Define global variable mi_suppress_notification.
2973         (mi_breakpoint_created): Update.
2974         (mi_breakpoint_deleted): Likewise.
2975         (mi_breakpoint_modified): Likewise.
2976         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
2977         'gdb-set' and set mi_suppress_notification.
2978         * mi/mi-main.h: (mi_suppress_notification): New struct.
2979
2980 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
2981             Jan Kratochvil  <jan.kratochvil@redhat.com>
2982
2983         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2984
2985 2012-08-09  Yao Qi  <yao@codesourcery.com>
2986
2987         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2988         (skiplist): Move it to skip.c.
2989         (init_cmd_lists): Remove code setting enablebreaklist and
2990         skiplist to NULL.
2991         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2992         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2993         skiplist.
2994         * gdbcmd.h: Likewise.
2995         * skip.c (_initialize_step_skip): Move 'skiplist' from
2996         cli/cli-cmds.c.
2997
2998 2012-08-09  Yao Qi  <yao@codesourcery.com>
2999
3000         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3001         * gnu-nat.c, symfile.c: Likewise.
3002
3003 2012-08-08  Aaron Gamble  <agamble@google.com>
3004
3005         * utils.c (prompt_for_continue_wait_time): New static global.
3006         (make_command_stats_cleanup): Initialize it.
3007         (report_command_stats): Subtract time waiting for user.
3008         (prompt_for_continue): Track time waiting for user.
3009         (defaulted_query): Track time waiting for user.
3010
3011 2012-08-08  Doug Evans  <dje@google.com>
3012
3013         * eval.c (evaluate_subexp_standard): Fix thinko in handling
3014         UNOP_MEMVAL_TYPE.
3015         * expprint.c (print_subexp_standard, case OP_TYPE): New.
3016         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3017         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3018         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3019         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3020         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3021         elt.
3022         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3023         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3024         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3025         (dump_prefix_expression): Handle OP_TYPE.
3026
3027 2012-08-08  Keith Seitz  <keiths@redhat.com>
3028
3029         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3030         addr_start.
3031
3032 2012-08-08  Doug Evans  <dje@google.com>
3033
3034         * linux-thread-db.c: #include "gdb_vecs.h".
3035         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
3036         updated.
3037         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
3038         (thread_db_load_search): Use a vector to iterate over path elements.
3039         Handle text appearing after "$pdir".
3040
3041         * gdb_string.h: Moved to ...
3042         * common/gdb_string.h: ... here.
3043         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3044         gdb_string.h and gdb_assert.h.
3045
3046 2012-08-08  Yao Qi  <yao@codesourcery.com>
3047
3048         * tic6x-tdep.c (tic6x_register_to_value): Remove.
3049         (tic6x_value_to_register): Likewise.
3050         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3051         and set_gdbarch_value_to_register.
3052
3053 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3054             Jean-Marc Saffroy  <saffroy@gmail.com>
3055
3056         PR 11804
3057         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
3058         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3059         * gcore.c (gcore_create_callback): New function comment.  Add modified
3060         parameter.  Only write modified regions.  Set SEC_READONLY exactly
3061         according to MODIFIED.
3062         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
3063         the passed modified value to FUNC.
3064         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3065         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3066         first.  New variables modified and has_anonymous.  Parse the lines of
3067         smaps file.  Add the passed MODIFIED value to FUNC.
3068         * procfs.c (find_memory_regions_callback): Add the passed modified
3069         value.
3070
3071 2012-08-06  Tom Tromey  <tromey@redhat.com>
3072
3073         * dwarf2-frame.c (clear_pointer_cleanup): New function.
3074         (dwarf2_frame_cache): Use it.
3075         * frame-unwind.h (frame_sniffer_ftype): Document prologue
3076         cache initialization constraint.
3077
3078 2012-08-06  Tom Tromey  <tromey@redhat.com>
3079
3080         PR python/14386:
3081         * varobj.c (update_dynamic_varobj_children): Don't call
3082         PyIter_Check.
3083
3084 2012-08-06  Tom Tromey  <tromey@redhat.com>
3085
3086         PR cli/14392:
3087         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3088
3089 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
3090
3091         * NEWS: New entry for 'cd' default parameters.
3092         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3093
3094 2012-08-03  Tom Tromey  <tromey@redhat.com>
3095
3096         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3097         return.
3098
3099 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
3100
3101         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3102         to attempting lseek/write.
3103         (inf_child_fileio_pread): Likewise for pread.
3104
3105 2012-08-02  Yao Qi  <yao@codesourcery.com>
3106
3107         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3108         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3109         add_setshow_zinteger_cmd.
3110         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3111         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3112         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3113         instead of add_setshow_zinteger_cmd.
3114         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3115         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3116         instead of add_setshow_zinteger_cmd.
3117         * frame.c (frame_debug): Add 'unsigned'.
3118         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3119         add_setshow_zinteger_cmd.
3120         * frame.h: Update the declaration of 'frame_debug'.
3121         * gdbtypes.c (overload_debug): Add 'unsigned'.
3122         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3123         add_setshow_zinteger_cmd.
3124         * inferior.h: Update declaration of 'debug_infrun'.
3125         * infrun.c (debug_infrun): Add 'unsigned'.
3126         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3127         add_setshow_zinteger_cmd.
3128         * jit.c (jit_debug): Add 'unsigned'.
3129         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3130         add_setshow_zinteger_cmd.
3131         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3132         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3133         instead of add_setshow_zinteger_cmd.
3134         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3135         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3136         add_setshow_zinteger_cmd.
3137         * machoread.c (mach_o_debug_level): Add 'unsigned'.
3138         (_initialize_machoread): Call add_setshow_zuinteger_cmd
3139         instead of add_setshow_zinteger_cmd.
3140         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3141         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3142         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3143         intead of add_setshow_zinteger_cmd.
3144         * mips-tdep.c (mips_debug): Add 'unsigned'.
3145         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3146         instead of add_setshow_zinteger_cmd.
3147         * monitor.c (monitor_debug): Add 'unsigned'.
3148         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3149         add_setshow_zinteger_cmd.
3150         * observer.c (observer_debug): Add 'unsigned'.
3151         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3152         add_setshow_zinteger_cmd.
3153         * parse.c (expressiondebug): Add 'unsigned'.
3154         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3155         add_setshow_zinteger_cmd.
3156         * record.c (record_debug): Add 'unsigned'.
3157         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3158         add_setshow_zinteger_cmd.
3159         * record.h: Update the declaration of 'record_debug'.
3160         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3161         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3162         add_setshow_zinteger_cmd.
3163         * serial.c (global_serial_debug_p): Add 'unsigned'.
3164         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3165         add_setshow_zinteger_cmd.
3166         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3167         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3168         add_setshow_zinteger_cmd.
3169         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3170         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3171         add_setshow_zinteger_cmd.
3172         * target.c (targetdebug): Add 'unsigned'.
3173         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3174         add_setshow_zinteger_cmd.
3175         * valops.c (overload_debug): Add 'unsigned'.
3176         * varobj.c (varobjdebug): Add 'unsigned'.
3177         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3178         add_setshow_zinteger_cmd.
3179         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3180         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3181         instead of add_setshow_zinteger_cmd.
3182
3183         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3184         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3185         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3186         instead of add_setshow_zinteger_cmd.
3187         * gdbarch.c, gdbarch.h: Re-generated.
3188
3189 2012-08-02  Yao Qi  <yao@codesourcery.com>
3190
3191         * nto-tdep.c: Don't include cli/cli-decode.h and
3192         cli/cli-cmds.h.
3193         (_initialize_nto_tdep): Remove.
3194         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3195         Remove field.
3196         Remove macro nto_internal_debugging.
3197
3198 2012-08-01  Richard Henderson  <rth@redhat.com>
3199
3200         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3201         (mep-*-*) [gdb_target_obs]: Likewise.
3202
3203 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
3204
3205         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3206         linux_get_siginfo_type.
3207
3208 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
3209
3210         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3211         AT_ENTRY_POINT.
3212         (call_function_by_hand) <ON_STACK>: Call write_memory with
3213         gdbarch_breakpoint_from_pc, if possible.
3214         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3215         here.
3216
3217 2012-07-31  Yao Qi  <yao@codesourcery.com>
3218
3219         * tracepoint.c: Add 'static' for some variables.
3220
3221 2012-07-31  Yao Qi  <yao@codesourcery.com>
3222
3223         * go32-nat.c: Declare _initialize_go32_nat.
3224         * ser-go32.c: Declare _initialize_ser_dos.
3225         * top.c (do_chdir_cleanup): Add 'static'.
3226
3227 2012-07-30  Keith Seitz  <keiths@redhat.com>
3228
3229         * linespec.c (linespec_lex_number): A number followed
3230         by quotes is a valid number, too.
3231
3232 2012-07-30  Tom Tromey  <tromey@redhat.com>
3233
3234         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3235
3236 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
3237
3238         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3239         attempt to 4-byte-align HW breakpoint addresses for Thumb.
3240
3241 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
3242
3243         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3244         invalid or reevaluated to prevent prevent references to possibly
3245         delete'd type objects being left in the varobj.
3246
3247 2012-07-27  Tom Tromey  <tromey@redhat.com>
3248             Jan Kratochvil  <jan.kratochvil@redhat.com>
3249
3250         * copying.awk: Print buffer-read-only and vi ro markers.
3251         * copying.c: Rebuild.
3252         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3253         * gdbarch.c, gdbarch.h: Rebuild.
3254         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3255         buffer-read-only and vi ro markers.
3256         * features/arm-with-iwmmxt.c: Rebuild.
3257         * features/arm-with-m-fpa-layout.c: Rebuild.
3258         * features/arm-with-m-vfp-d16.c: Rebuild.
3259         * features/arm-with-m.c: Rebuild.
3260         * features/arm-with-neon.c: Rebuild.
3261         * features/arm-with-vfpv2.c: Rebuild.
3262         * features/arm-with-vfpv3.c: Rebuild.
3263         * features/i386/amd64-avx-linux.c: Rebuild.
3264         * features/i386/amd64-avx.c: Rebuild.
3265         * features/i386/amd64-linux.c: Rebuild.
3266         * features/i386/amd64.c: Rebuild.
3267         * features/i386/i386-avx-linux.c: Rebuild.
3268         * features/i386/i386-avx.c: Rebuild.
3269         * features/i386/i386-linux.c: Rebuild.
3270         * features/i386/i386-mmx-linux.c: Rebuild.
3271         * features/i386/i386-mmx.c: Rebuild.
3272         * features/i386/i386.c: Rebuild.
3273         * features/i386/x32-avx-linux.c: Rebuild.
3274         * features/i386/x32-avx.c: Rebuild.
3275         * features/i386/x32-linux.c: Rebuild.
3276         * features/i386/x32.c: Rebuild.
3277         * features/mips-dsp-linux.c: Rebuild.
3278         * features/mips-linux.c: Rebuild.
3279         * features/mips64-dsp-linux.c: Rebuild.
3280         * features/mips64-linux.c: Rebuild.
3281         * features/rs6000/powerpc-32.c: Rebuild.
3282         * features/rs6000/powerpc-32l.c: Rebuild.
3283         * features/rs6000/powerpc-403.c: Rebuild.
3284         * features/rs6000/powerpc-403gc.c: Rebuild.
3285         * features/rs6000/powerpc-405.c: Rebuild.
3286         * features/rs6000/powerpc-505.c: Rebuild.
3287         * features/rs6000/powerpc-601.c: Rebuild.
3288         * features/rs6000/powerpc-602.c: Rebuild.
3289         * features/rs6000/powerpc-603.c: Rebuild.
3290         * features/rs6000/powerpc-604.c: Rebuild.
3291         * features/rs6000/powerpc-64.c: Rebuild.
3292         * features/rs6000/powerpc-64l.c: Rebuild.
3293         * features/rs6000/powerpc-7400.c: Rebuild.
3294         * features/rs6000/powerpc-750.c: Rebuild.
3295         * features/rs6000/powerpc-860.c: Rebuild.
3296         * features/rs6000/powerpc-altivec32.c: Rebuild.
3297         * features/rs6000/powerpc-altivec32l.c: Rebuild.
3298         * features/rs6000/powerpc-altivec64.c: Rebuild.
3299         * features/rs6000/powerpc-altivec64l.c: Rebuild.
3300         * features/rs6000/powerpc-cell32l.c: Rebuild.
3301         * features/rs6000/powerpc-cell64l.c: Rebuild.
3302         * features/rs6000/powerpc-e500.c: Rebuild.
3303         * features/rs6000/powerpc-e500l.c: Rebuild.
3304         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3305         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3306         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3307         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3308         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3309         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3310         * features/rs6000/powerpc-vsx32.c: Rebuild.
3311         * features/rs6000/powerpc-vsx32l.c: Rebuild.
3312         * features/rs6000/powerpc-vsx64.c: Rebuild.
3313         * features/rs6000/powerpc-vsx64l.c: Rebuild.
3314         * features/rs6000/rs6000.c: Rebuild.
3315         * features/s390-linux32.c: Rebuild.
3316         * features/s390-linux32v1.c: Rebuild.
3317         * features/s390-linux32v2.c: Rebuild.
3318         * features/s390-linux64.c: Rebuild.
3319         * features/s390-linux64v1.c: Rebuild.
3320         * features/s390-linux64v2.c: Rebuild.
3321         * features/s390x-linux64.c: Rebuild.
3322         * features/s390x-linux64v1.c: Rebuild.
3323         * features/s390x-linux64v2.c: Rebuild.
3324         * features/tic6x-c62x-linux.c: Rebuild.
3325         * features/tic6x-c62x.c: Rebuild.
3326         * features/tic6x-c64x-linux.c: Rebuild.
3327         * features/tic6x-c64x.c: Rebuild.
3328         * features/tic6x-c64xp-linux.c: Rebuild.
3329         * features/tic6x-c64xp.c: Rebuild.
3330
3331 2012-07-27  Tom Tromey  <tromey@redhat.com>
3332
3333         * c-exp.y (classify_name): Avoid assignment in condition.
3334
3335 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
3336
3337         * amd64-windows-tdep.c: Include "frame.h".
3338         (amd64_windows_skip_trampoline_code): New function.
3339         (amd64_windows_init_abi): Add trampoline registration.
3340
3341 2012-07-27  Yao Qi  <yao@codesourcery.com>
3342
3343         * tracepoint.c (cur_traceframe_number): Remove.
3344         (set_tfile_traceframe): Remove.
3345         (tfile_trace_find, tfile_fetch_registers): Update callers.
3346         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3347         (tfile_open, tfile_trace_find): Likewise.
3348
3349 2012-07-27  Yao Qi  <yao@codesourcery.com>
3350
3351         * thread.c (switch_to_thread): Don't call registers_changed.
3352
3353 2012-07-26  Tom Tromey  <tromey@redhat.com>
3354
3355         * Makefile.in (SFILES): Remove objc-exp.y.
3356         (YYFILES): Remove objc-exp.c.
3357         (YYOBJ): Remove objc-exp.o.
3358         (local-maintainer-clean): Don't mention objc-exp.c.
3359         * c-exp.y: Include objc-lang.h.
3360         (%union) <class>: New field.
3361         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3362         (exp): Clone subscript production for OBJC_LBRAC.  Add various
3363         Objective C productions.
3364         (msglist, msgarglist, msgarg): New productions.
3365         (array_mod, func_mod, operator): Clone productions for
3366         OBJC_LBRAC.
3367         (parse_string_or_char): Handle '@' strings.
3368         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
3369         (classify_name): Check la_name_of_this.  Recognize ObjC class
3370         names.
3371         * objc-exp.y: Remove.
3372         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3373         * objc-lang.h (objc_parse, objc_error): Don't declare.
3374
3375 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
3376
3377         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3378
3379 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3380
3381         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3382         and decrement.
3383
3384 2012-07-26  Tom Tromey  <tromey@redhat.com>
3385
3386         * copying.c: Rebuild.
3387         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
3388         'no_class'.
3389
3390 2012-07-26  Tom Tromey  <tromey@redhat.com>
3391
3392         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3393         immediate_quit.
3394         (print_objfile_statistics): Likewise.
3395         (maintenance_print_symbols): Likewise.
3396         (maintenance_print_msymbols): Likewise.
3397         (maintenance_print_objfiles): Likewise.
3398         * psymtab.c (print_partial_symbols): Call QUIT.
3399         (maintenance_print_psymbols): Likewise.  Don't modify
3400         immediate_quit.
3401         * copying.c (show_copying_command): Don't modify immediate_quit.
3402         (show_warranty_command): Likewise.
3403         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3404
3405 2012-07-26  Keith Seitz  <keiths@redhat.com>
3406
3407         * linespec.c (linespec_lexer_lex_number): The input
3408         is also a valid number if the next character is a comma
3409         or colon.
3410
3411 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
3412
3413         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3414         configure options.
3415
3416 2012-07-26  Tristan Gingold  <gingold@adacore.com>
3417
3418         * machoread.c: Include gdb_bfd.h.
3419
3420 2012-07-26  Tristan Gingold  <gingold@adacore.com>
3421
3422         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3423         offset.
3424
3425 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3426
3427         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3428         SIZE to size_t.
3429         (dwarf2_evaluate_loc_desc): Likewise.
3430         (dwarf2_loc_desc_needs_frame): Likewise.
3431         (locexpr_describe_location_1): Likewise.
3432         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3433         size_t.
3434         (struct dwarf2_loclist_baton): Likewise.
3435         * dwarf2read.c (struct dwarf_block): Likewise.
3436         (dump_die_shallow): Use pulongest to print dwarf_block.size.
3437         (decode_locdesc): Expand SIZE and I to size_t.
3438
3439 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3440
3441         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3442
3443 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
3444
3445         * doublest.c (convert_doublest_to_floatformat): If the exponent
3446         is too small, treat the value as zero.  If the exponent is too
3447         large, treat the value as infinity.
3448
3449 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
3450
3451         * configure.ac: Add --enable-lmcheck configure option.
3452         * configure: Regenerate.
3453
3454 2012-07-25  Tom Tromey  <tromey@redhat.com>
3455
3456         * NEWS: Mention maint info bfds.
3457         * gdb_bfd.c (all_bfds): New global.
3458         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3459         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3460         New functions.
3461
3462 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
3463
3464         * configure.tgt: Add v850*-*-rtems*.
3465
3466 2012-07-25  Tom Tromey  <tromey@redhat.com>
3467
3468         * macrotab.c (macro_bcache_str): Remove cast.
3469
3470 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
3471
3472         * linespec.c (linespec_lexer_lex_number): Update comments,
3473         change the return and add check to make sure the input is
3474         the decimal numbers.
3475         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3476         false, call linespec_lexer_lex_string.
3477
3478 2012-07-24  Tom Tromey  <tromey@redhat.com>
3479
3480         * symfile.c (symbol_file_add): Don't open BFD twice.
3481
3482 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
3483
3484         * breakpoint.c (create_breakpoint): Store condition for pending
3485         breakpoints.
3486
3487 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
3488
3489         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3490         (m68k_return_value): Handle complex types like structures.
3491         (m68k_svr4_return_value): Likewise.
3492
3493 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3494
3495         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3496         parameters to bfd_get_section_name.
3497
3498 2012-07-24  Yao Qi  <yao@codesourcery.com>
3499
3500         * cli/cli-setshow.c: Handle case 'var_uinteger'
3501         and 'var_zuninteger' together.  Handle case 'var_integer' and
3502         'var_zinteger' together.
3503
3504 2012-07-23  Keith Seitz  <keiths@redhat.com>
3505
3506         * linespec.c (convert_linespec_to_sal): Don't add
3507         any symbols to the result vector if symbol_to_sal
3508         returns zero.
3509
3510 2012-07-23  Keith Seitz  <keiths@redhat.com>
3511
3512         * linespec.c (decode_objc): Record the function name
3513         in the linespec.
3514
3515 2012-07-23  Tom Tromey  <tromey@redhat.com>
3516
3517         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
3518         counting.
3519         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3520         (map_vmap): Acquire a reference to the BFD.
3521
3522 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
3523
3524         * p-valprint.c (pascal_object_print_value): Replace potentially
3525         unsafe alloca with xmalloc/xfree.
3526         * valops.c (search_struct_method): Likewise.
3527
3528 2012-07-23  Tom Tromey  <tromey@redhat.com>
3529
3530         * solib-svr4.c (enable_break): Update.
3531         * bfd-target.h (target_bfd_reopen): Update documentation.
3532
3533 2012-07-23  Tom Tromey  <tromey@redhat.com>
3534
3535         * symfile.c (separate_debug_file_exists): Update.
3536         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3537         (reread_symbols): Update.
3538         * elfread.c (build_id_verify): Update.
3539         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3540         bfd_open_maybe_remote.
3541
3542 2012-07-23  Tom Tromey  <tromey@redhat.com>
3543
3544         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3545
3546 2012-07-23  Tom Tromey  <tromey@redhat.com>
3547
3548         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3549         and 'abfd'.
3550         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3551         and 'abfd'.
3552         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3553         * machoread.c (macho_add_oso_symfile): Make a cleanup for
3554         'abfd'.
3555         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3556         * objfiles.c (allocate_objfile): Acquire a new reference.
3557         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3558         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3559         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3560         a cleanup for 'nbfd'.
3561         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3562         for 'nbfd'.
3563         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3564         make a cleanup for 'abfd'.
3565         (symbol_file_add): Make a BFD cleanup.
3566
3567 2012-07-23  Tom Tromey  <tromey@redhat.com>
3568
3569         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3570         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3571         * corelow.c (core_open): Use gdb_bfd_fopen.
3572         * dsrec.c (load_srec): Use gdb_bfd_openr.
3573         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3574         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3575         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3576         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3577         (gdb_bfd_fdopenr): New functions.
3578         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3579         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3580         (gdb_bfd_fdopenr): Declare.
3581         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3582         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3583         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3584         gdb_bfd_openr_next_archived_file.
3585         (macho_check_dsym): Use gdb_bfd_openr.
3586         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3587         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3588         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3589         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3590         gdb_bfd_openr.
3591         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3592         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3593         gdb_bfd_openr_next_archived_file.
3594         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3595         Use gdb_bfd_openr.
3596         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3597         gdb_bfd_openr.
3598         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3599         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3600         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3601         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3602         (symfile_bfd_open): Use gdb_bfd_fopen.
3603         (generic_load): Use gdb_bfd_openr.
3604         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3605
3606 2012-07-23  Tom Tromey  <tromey@redhat.com>
3607
3608         * bfd-target.c (target_bfd_reopen): Update.
3609         * cli/cli-dump.c (bfd_openr_with_cleanup)
3610         (bfd_openw_with_cleanup): Update.
3611         * corelow.c (core_open): Update.
3612         * dsrec.c (load_srec): Update.
3613         * exec.c (exec_file_attach): Update.
3614         * gcore.c (create_gcore_bfd): Update.
3615         * gdb_bfd.c (gdb_bfd_ref): Return void.
3616         (gdb_bfd_open): Update.
3617         * gdb_bfd.h (gdb_bfd_ref): Return void.
3618         Update comments.
3619         * jit.c (jit_bfd_try_read_symtab): Update.
3620         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3621         * machoread.c (macho_symfile_read_all_oso): Update.
3622         (macho_check_dsym): Update.
3623         * procfs.c (insert_dbx_link_bpt_in_file): Update.
3624         * remote-m32r-sdi.c (m32r_load): Update.
3625         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3626         * rs6000-nat.c (add_vmap): Update.
3627         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3628         Update.
3629         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3630         * solib-spu.c (spu_bfd_open): Update.
3631         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3632         * spu-linux-nat.c (spu_bfd_open): Update.
3633         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3634         (generic_load): Update.
3635         * windows-nat.c (windows_make_so): Update.
3636
3637 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3638
3639         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3640
3641 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
3642
3643         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3644         SIGTRAMP_FRAME unwinding.
3645
3646 2012-07-20  Doug Evans  <dje@google.com>
3647
3648         * NEWS: Document new options "set/show use-deprecated-index-sections",
3649         and delete reference to --use-deprecated-index-sections.
3650         * symfile.h (use_deprecated_index_sections): Delete.
3651         * dwarf2read.c (use_deprecated_index_sections): Make static.
3652         (read_index_from_section): Update wording of how to load
3653         deprecated index sections.
3654         (_initialize_dwarf2_read): New options
3655         "set/show use-deprecated-index-sections".
3656         * main.c (captured_main): Delete --use-deprecated-index-sections.
3657
3658 2012-07-20  Pedro Alves  <palves@redhat.com>
3659
3660         PR threads/11692
3661         PR gdb/12203
3662
3663         * infrun.c (handle_inferior_event) <new thread>: Don't special
3664         case minus_one_ptid.
3665         <TARGET_WAITKIND_SPURIOUS>: Ditto.
3666         * linux-thread-db.c (thread_get_info_callback): Don't return early
3667         if the thread is zombie.
3668         (thread_from_lwp): Change return type to void.  Rewrite stale
3669         comment.
3670         (attach_thread): Don't return early if the thread is zombie,
3671         instead set its "dying" flag.
3672         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3673         (find_new_threads_callback): Don't return early if the thread is
3674         zombie.
3675
3676 2012-07-20  Pedro Alves  <palves@redhat.com>
3677
3678         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3679         * target.c (target_wait): Likewise.
3680         (str_comma_list_concat_elem, do_option, target_options_to_string):
3681         New functions.
3682         * target.h (target_options_to_string): Declare.
3683
3684 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
3685             Tom Tromey  <tromey@redhat.com>
3686
3687         * dwarf2read.c (dwarf_decode_macros)
3688         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3689         DW_MACRO_GNU_transparent_include_alt>: New cases.
3690         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3691         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3692
3693 2012-07-20  Tom Tromey  <tromey@redhat.com>
3694
3695         * dwarf2read.c (try_open_dwo_file): Don't call
3696         gdb_bfd_stash_filename.
3697
3698 2012-07-20  Pedro Alves  <palves@redhat.com>
3699
3700         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3701         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3702         (i386_process_record): Tweak description comments.
3703
3704 2012-07-20  Pedro Alves  <palves@redhat.com>
3705
3706         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3707         (i386_process_record): Use record_read_memory.
3708         * record.c (record_read_memory): New function.
3709         (record_arch_list_add_mem, record_exec_insn): Use
3710         record_read_memory.
3711         * record.h (record_read_memory): Declare.
3712
3713 2012-07-20  Yao Qi  <yao@codesourcery.com>
3714
3715         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3716         NULL for xfree.
3717
3718 2012-07-19  Pedro Alves  <palves@redhat.com>
3719
3720         * record.c (record_resume): Ask the target beneath to report all
3721         signals.
3722
3723 2012-07-19  Doug Evans  <dje@google.com>
3724
3725         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3726         there's no section at address zero.
3727         (dwarf2_record_block_ranges): Ditto.
3728
3729 2012-07-19  Yao Qi  <yao@codesourcery.com>
3730
3731         * command.h, remote.c: Fix a typo in comment.
3732
3733 2012-07-19  Tom Tromey  <tromey@redhat.com>
3734
3735         PR exp/13206:
3736         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3737         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3738         OP_DECLTYPE>: New cases.
3739         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3740         (type_exp): Add new productions.
3741         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3742         and decltype.
3743         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3744         New case.
3745         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3746         OP_DECLTYPE>: New case.
3747         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3748         New case.
3749         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3750         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3751
3752 2012-07-19  Tom Tromey  <tromey@redhat.com>
3753
3754         * c-exp.y (enum token_flags): New.
3755         (struct token) <cxx_only>: Remove.
3756         <flags>: New field.
3757         (tokentab3, tokentab2, ident_tokens): Update.
3758         (lex_one_token): Update.  Handle FLAG_SHADOW.
3759
3760 2012-07-19  Tom Tromey  <tromey@redhat.com>
3761
3762         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3763         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3764         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3765         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
3766         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
3767         type_exp production where appropriate.
3768         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3769         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3770         <UNOP_MEMVAL_TYPE>: New case.
3771         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3772         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3773         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3774         <UNOP_MEMVAL_TYPE>: New case.
3775         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3776         UNOP_REINTERPRET_CAST>: Update.
3777         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3778         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3779         UNOP_REINTERPRET_CAST>: Update.
3780         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3781         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3782         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3783         constants.
3784
3785 2012-07-19  Yao Qi  <yao@codesourcery.com>
3786             Jan Kratochvil <jan.kratochvil@redhat.com>
3787
3788         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3789         and case 'var_optional_filename' together.
3790         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3791         instead of add_setshow_optional_filename_cmd for setshow command
3792         'args'.  Set completer for 'set args'.
3793
3794 2012-07-18  Doug Evans  <dje@google.com>
3795
3796         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3797         * common/gdb_vecs.c: New file, contents from utils.c.
3798         * common/host-defs.h: New file, contents from defs.h.
3799         * utils.h: New file, contents from defs.h.
3800         * defs.h: Move all declarations of objects defined in utils.c
3801         to utils.h (except QUIT() and related).
3802         #include "utils.h", "host-defs.h".
3803         * probe.h (probe_p): Move here from gdb_vecs.h.
3804         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3805         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3806         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3807         * Makefile.in (SFILES): Add common/gdb_vecs.c.
3808         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3809         (COMMON_OBS): Add gdb_vecs.o.
3810         (gdb_vecs.o): New rule.
3811
3812 2012-07-18  Keith Seitz  <keiths@redhat.com>
3813
3814         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3815         parameter.  If non-zero, use SYMNAME as the canonical name
3816         for the SaL.
3817         Update all callers.
3818         (convert_linespec_to_sals): Use add_sal_to_sals for
3819         expressions, too.
3820         (decode_line_full): No need to "fill in missing canonical names"
3821         anymore. Simply make cleanups for the allocated names.
3822
3823 2012-07-18  Keith Seitz  <keiths@redhat.com>
3824
3825         * linespec.c (struct linespec): Constify expression,
3826         source_filename, function_name, and label_name.
3827         (symbol_not_found_error): Make all parameters const.
3828         (linespec_parser_delete): No need to check for NULL
3829         when using xfree. Cast const char * to char * for xfree.
3830
3831 2012-07-18  Keith Seitz  <keiths@redhat.com>
3832
3833         * breakpoint.c (invalid_thread_id_error): New function.
3834         (find_condition_and_thread): Use invalid_thread_id_error.
3835         (watch_command_1): Likewise.
3836
3837 2012-07-18  Tom Tromey  <tromey@redhat.com>
3838
3839         * cc-with-index.sh, cc-with-dwz.sh: Remove.
3840         * contrib/cc-with-tweaks.sh: New file.
3841
3842 2012-07-18  Tom Tromey  <tromey@redhat.com>
3843
3844         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3845         (locate_dwz_sections): Recognize .gdb_index.
3846         (create_cus_from_index_list): New function.
3847         (create_cus_from_index): Use it.  Handle .dwz data.
3848         (read_index_from_section): New function, extracted from
3849         dwarf2_read_index.
3850         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
3851         if needed.
3852
3853 2012-07-18  Tom Tromey  <tromey@redhat.com>
3854
3855         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3856         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3857         <is_dwz>: New field.
3858         (struct dwz_file): New.
3859         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3860         (locate_dwz_sections, dwarf2_get_dwz_file)
3861         (get_abbrev_section_for_cu): New functions.
3862         (error_check_comp_unit_head, read_and_check_comp_unit_head)
3863         (read_and_check_type_unit_head): Add abbrev_section argument.
3864         (create_debug_types_hash_table): Update.
3865         (init_cutu_and_read_dies): Use proper abbrev section.
3866         (init_cutu_and_read_dies_no_follow): Likewise.
3867         (set_partial_user): Do nothing if PST==NULL.
3868         (read_comp_units_from_section): New function.
3869         (create_all_comp_units): Use it.
3870         (scan_partial_symbols, partial_die_parent_scope): Update.
3871         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3872         (process_imported_unit_die, read_partial_die): Handle .dwz files.
3873         (find_partial_die): Add offset_in_dwz argument.  Update.
3874         (guess_partial_die_structure_name, fixup_partial_die): Update.
3875         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3876         DW_FORM_GNU_strp_alt.
3877         (read_indirect_string_from_dwz): New function.
3878         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3879         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3880         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3881         (follow_die_offset): Add offset_in_dwz argument.
3882         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3883         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3884         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3885         Handle new macro forms.
3886         (dwarf_decode_macros): Update.
3887         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3888         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3889         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3890         (create_debug_types_hash_table): Use correct abbrev section.
3891         (get_debug_line_section): New function.
3892         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3893         (process_full_comp_unit): Pass 'required' argument to
3894         end_symtab_get_static_block.
3895         * buildsym.h (end_symtab_get_static_block): Update.
3896         * buildsym.c (end_symtab_get_static_block): Add 'required'
3897         argument.
3898         (end_symtab, end_expandable_symtab): Update.
3899
3900 2012-07-18  Tom Tromey  <tromey@redhat.com>
3901
3902         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3903         (pagesize): Remove.
3904         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3905         (zlib_decompress_section): Remove.
3906         (dwarf2_read_section): Use gdb_bfd_map_section.
3907         (munmap_section_buffer): Remove.
3908         (free_dwo_file, dwarf2_per_objfile_free): Don't use
3909         munmap_section_buffer.
3910         * gdb_bfd.c: Include zlib.h, sys/mman.h.
3911         (struct gdb_bfd_section_data): New.
3912         (free_one_bfd_section): New function.
3913         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3914         (get_section_descriptor, zlib_decompress_section)
3915         (gdb_bfd_map_section): New functions.
3916         * gdb_bfd.h (gdb_bfd_map_section): Declare.
3917
3918 2012-07-18  Tom Tromey  <tromey@redhat.com>
3919
3920         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3921
3922 2012-07-18  Tom Tromey  <tromey@redhat.com>
3923
3924         * gdb_bfd.c (struct gdb_bfd_data): New.
3925         (gdb_bfd_cache): New global.
3926         (struct gdb_bfd_cache_search): New.
3927         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3928         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3929         * gdb_bfd.h (gdb_bfd_open): Declare.
3930
3931 2012-07-18  Tom Tromey  <tromey@redhat.com>
3932
3933         * utils.c (make_cleanup_bfd_unref): Rename from
3934         make_cleanup_bfd_close.
3935         * defs.h (make_cleanup_bfd_unref): Rename from
3936         make_cleanup_bfd_close.
3937         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3938         (bfd_openw_with_cleanup): Update.
3939         * corelow.c (core_open): Update.
3940         * dsrec.c (load_srec): Update.
3941         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3942         * remote-m32r-sdi.c (m32r_load): Update.
3943         * remote-mips.c (mips_load_srec): Update.
3944         (pmon_load_fast): Update.
3945         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3946         Update.
3947         (darwin_bfd_open): Update.
3948         * solib.c (solib_bfd_fopen): Update.
3949         * symfile-mem.c (symbol_file_add_from_memory): Update.
3950         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3951         (symfile_bfd_open): Update.
3952         (generic_load): Update.
3953
3954 2012-07-18  Tom Tromey  <tromey@redhat.com>
3955
3956         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3957         (pmon_load_fast): Likewise.
3958         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3959         (m32r_upload_command): Likewise.
3960         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3961         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3962         Use make_cleanup_bfd_close.
3963
3964 2012-07-18  Tom Tromey  <tromey@redhat.com>
3965
3966         * symfile.c (symfile_bfd_open): Don't copy name.  Call
3967         gdb_bfd_stash_filename.
3968         (load_command): Open the new BFD before freeing the old.
3969         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3970         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3971         Call gdb_bfd_stash_filename.
3972         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3973         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
3974         gdb_bfd_stash_filename.
3975         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3976         Free found_pathname.
3977         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
3978         gdb_bfd_stash_filename.
3979         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3980         * machoread.c (macho_add_oso_symfile): Call
3981         gdb_bfd_stash_filename.
3982         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
3983         gdb_bfd_stash_filename.
3984         (macho_check_dsym): Don't copy filename.  Call
3985         gdb_bfd_stash_filename.
3986         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3987         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3988         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3989         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3990         * exec.c (exec_close): Don't free the BFD's filename.
3991         (exec_file_attach): Don't copy the filename.  Call
3992         gdb_bfd_stash_filename.
3993         * corelow.c (core_close): Don't free the BFD's filename.
3994         (core_open): Call gdb_bfd_stash_filename.
3995         * corefile.c (reopen_exec_file): Remove #if 0 code.
3996         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
3997         pathname.
3998         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3999
4000 2012-07-18  Tom Tromey  <tromey@redhat.com>
4001
4002         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4003         gdb_bfd_unref.
4004         (free_dwo_file): Use gdb_bfd_unref.
4005         * cli/cli-dump.c: Include gdb_bfd.h.
4006         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4007         (bfd_openr_with_cleanup): Likewise.
4008         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4009         gdb_bfd_unref.
4010         * utils.c: Include gdb_bfd.h.
4011         (do_bfd_close_cleanup): Use gdb_bfd_unref.
4012         * symfile.c: Include gdb_bfd.h.
4013         (separate_debug_file_exists): Use gdb_bfd_unref.
4014         (bfd_open_maybe_remote): Use gdb_bfd_ref.
4015         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4016         (generic_load): Use gdb_bfd_ref.
4017         (reread_symbols): Use gdb_bfd_unref.
4018         * symfile-mem.c: Include gdb_bfd.h.
4019         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4020         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4021         * solib.c: Include gdb_bfd.h.
4022         (solib_bfd_fopen): Use gdb_bfd_ref.
4023         (solib_bfd_open): Use gdb_bfd_unref.
4024         (free_so_symbols): Use gdb_bfd_unref.
4025         (reload_shared_libraries_1): Use gdb_bfd_unref.
4026         * solib-spu.c: Include gdb_bfd.h.
4027         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4028         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4029         gdb_bfd_unref.
4030         * solib-frv.c: Include gdb_bfd.h.
4031         (enable_break2): Use gdb_bfd_unref.
4032         * solib-dsbt.c: Include gdb_bfd.h.
4033         (enable_break2): Use gdb_bfd_unref.
4034         * solib-darwin.c: Include gdb_bfd.h.
4035         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4036         gdb_bfd_unref.
4037         (darwin_bfd_open): Use gdb_bfd_unref.
4038         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4039         * remote-mips.c: Include gdb_bfd.h.
4040         (mips_load_srec): Use gdb_bfd_ref.
4041         (pmon_load_fast): Use gdb_bfd_ref.
4042         * remote-m32r-sdi.c: Include gdb_bfd.h.
4043         (m32r_load): Use gdb_bfd_ref.
4044         * record.c: Include gdb_bfd.h.
4045         (record_save_cleanups): Use gdb_bfd_unref.
4046         (cmd_record_save): Use gdb_bfd_unref.
4047         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4048         gdb_bfd_unref.
4049         * objfiles.h (gdb_bfd_close_or_warn): Remove.
4050         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4051         * objfiles.c: Include gdb_bfd.h.
4052         (free_objfile): Use gdb_bfd_unref.
4053         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4054         gdb_bfd.c.
4055         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4056         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4057         (macho_check_dsym): Likewise.
4058         * m32r-rom.c: Include gdb_bfd.h.
4059         (m32r_load): Use gdb_bfd_ref.
4060         (m32r_upload_command): Use gdb_bfd_ref.
4061         * jit.c: Include gdb_bfd.h.
4062         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4063         * gdb_bfd.h: New file.
4064         * gdb_bfd.c: New file.
4065         * gcore.c: Include gdb_bfd.h.
4066         (create_gcore_bfd): Use gdb_bfd_ref.
4067         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4068         (gcore_command): Use gdb_bfd_unref.
4069         * exec.c: Include gdb_bfd.h.
4070         (exec_close): Use gdb_bfd_unref.
4071         (exec_close_1): Use gdb_bfd_unref.
4072         (exec_file_attach): Use gdb_bfd_ref.
4073         * elfread.c: Include gdb_bfd.h.
4074         (build_id_verify): Use gdb_bfd_unref.
4075         * dsrec.c: Include gdb_bfd.h.
4076         (load_srec): Use gdb_bfd_ref.
4077         * corelow.c: Include gdb_bfd.h.
4078         (core_close): Use gdb_bfd_unref.
4079         (core_open): Use gdb_bfd_ref.
4080         * bfd-target.c: Include gdb_bfd.h.
4081         (target_bfd_xclose): Use gdb_bfd_unref.
4082         (target_bfd_reopen): Use gdb_bfd_ref.
4083         * Makefile.in (SFILES): Add gdb_bfd.c.
4084         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4085         (COMMON_OBS): Add gdb_bfd.o.
4086
4087 2012-07-18  Keith Seitz  <keiths@redhat.com>
4088
4089         * breakpoint.c (find_condition_and_thread): Initialize
4090         TASK and REST.
4091         (create_breakpiont): find_condition_and_thread will now
4092         initialize COND_STRING, THREAD, and REST (and TASK).
4093         (addr_string_to_sals): Likewise.
4094
4095 2012-07-18  Pedro Alves  <palves@redhat.com>
4096
4097         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4098         Pull the single step breakpoints out of the target.
4099
4100 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4101
4102         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4103         * stap-probe.c (compile_probe_arg): Likewise.
4104
4105 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4106
4107         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4108         (elf_compile_to_ax): Likewise.
4109         * infrun.c (insert_exception_resume_from_probe): Likewise.
4110         (check_exception_resume): Remove `objfile' variable.
4111         * probe.c (find_probe_by_pc): Remove `objfile' argument.
4112         (struct probe_and_objfile, probe_and_objfile_s): Delete.
4113         (collect_probes): Adjust return value to `VEC (probe_p) *'.
4114         (compare_entries): Rename to...
4115         (compare_probes): ...this.  Adjust function to work with
4116         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
4117         respectively.
4118         (gen_ui_out_table_header_info): Adjust `probes' argument to be
4119         `VEC (probe_p) *'.
4120         (print_ui_out_info): Adjust argument to be `struct probe *'.
4121         (info_probes_for_ops): Adjust internal computations to use
4122         `VEC (probe_p) *'.
4123         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4124         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4125         gen_info_probes_table_values>: Remove `objfile' argument.
4126         (struct probe) <objfile>: New field.
4127         (find_probe_by_pc): Remove `objfile' argument.
4128         * stap-probe.c (stap_parse_probe_arguments): Likewise.
4129         (stap_get_probe_argument_count): Likewise.
4130         (stap_get_arg): Likewise.
4131         (stap_evaluate_probe_argument): Likewise.
4132         (stap_compile_to_ax): Likewise.
4133         (compile_probe_arg): Refactor not to pass `objfile' anymore.
4134         (handle_stap_probe): Fill `objfile' field from `struct probe'.
4135         (stap_gen_info_probes_table_header): Remove `objfile' argument.
4136         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4137         sym_compile_to_ax>: Likewise.
4138
4139 2012-07-18  Terry Guo  <terry.guo@arm.com>
4140
4141         PR 14329
4142         * defs.h (GDB_MI_MSG_WIDTH): New.
4143         * ser_base (ser_base_read_error_fd): New function.
4144         (do_ser_base_readchar): Poll error file descriptor as well as
4145         standard output.
4146         (generic_readchar): Refactor error handling.
4147
4148 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
4149
4150         * NEWS: Create a new section for the next release branch.
4151         Rename the section of the current branch, now that it has
4152         been cut.
4153
4154 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
4155
4156         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4157         * version.in: Bump version to 7.5.50.20120718-cvs.
4158
4159 2012-07-17  Keith Seitz  <keiths@redhat.com>
4160
4161         * linespec.c (linespec_parse_line_offset): Make parameter
4162         const.
4163
4164 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4165
4166         PR 11914
4167         * f-valprint.c (info_common_command): New variable frame_id.
4168         Reinitialize FI form FRAME_ID after each print_variable_and_value.
4169         * printcmd.c (print_variable_and_value): Extend function comment.
4170         Add comment for invalidated FRAME.
4171         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
4172         FI form FRAME_ID after each print_frame_local_vars.
4173         (struct print_variable_and_value_data): Change frame to frame_id.
4174         (do_print_variable_and_value): New variable frame, initialize it from
4175         p->frame_id.  Add comment for invalidated FRAME.
4176         (print_frame_local_vars, print_frame_arg_vars): New function comment.
4177         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
4178         for invalidated FRAME.
4179
4180 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
4181             Pedro Alves  <palves@redhat.com>
4182
4183         * linux-nat.c (linux_nat_detach): Don't unregister from the event
4184         loop.
4185
4186 2012-07-16  Tom Tromey  <tromey@redhat.com>
4187
4188         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4189
4190 2012-07-15  Doug Evans  <dje@google.com>
4191
4192         * dwarf2read.c (stmt_list_hash): New struct.
4193         (type_unit_group): Embed "per_cu" member, remove pointer.
4194         New union member "t", move member "tus" into it, all uses updated.
4195         New member "hash", replaces member "line_offset, all uses updated.
4196         (quick_file_names): Replace member "offset" with "hash", all uses
4197         updated.
4198         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4199         (hash_file_name_entry, eq_file_name_entry): Call them.
4200         (hash_type_unit_group, eq_type_unit_group): Ditto.
4201         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4202         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4203         (dw2_get_file_names): Update.
4204         (create_type_unit_group): Replace "per_cu" arg with "cu".
4205         All callers updated.  Fix "quick" (.gdb_index) handling.
4206         (get_type_unit_group): Replace "per_cu" arg with "cu".
4207         All callers updated.
4208         (build_type_unit_groups): Don't reset tu_stats.
4209
4210         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4211         "tab_cur_size".  Change member "tab" to be a htab_t.
4212         (create_filename_seen_cache): Update.
4213         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4214         (filename_seen): Update.
4215
4216 2012-07-13  Doug Evans  <dje@google.com>
4217
4218         * symtab.c (filename_seen): Update comment.
4219
4220 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4221             Doug Evans  <dje@google.com>
4222
4223         * buildsym.c (end_symtab_1): Split it to ...
4224         (end_symtab_get_static_block): ... this ...
4225         (end_symtab_from_static_block): ... and this function.
4226         (end_symtab, end_expandable_symtab): Call them.
4227         * buildsym.h (end_symtab_get_static_block)
4228         (end_symtab_from_static_block): New declarations.
4229         * dwarf2read.c (process_full_comp_unit): New variable static_block.
4230         Set its valid CU ranges.
4231
4232 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4233
4234         * dwarf2loc.c (disassemble_dwarf_expression): Handle
4235         DW_OP_GNU_parameter_ref.
4236
4237 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4238
4239         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4240         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4241
4242 2012-07-13  Doug Evans  <dje@google.com>
4243
4244         * symtab.c (output_source_filename): Delete unnecessary forward decl.
4245         (filename_seen_cache): New struct.
4246         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4247         (create_filename_seen_cache): New function.
4248         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4249         (filename_seen): Delete arg "first".  New arg "cache".  All callers
4250         updated.
4251         (output_source_filename_data): New struct.
4252         (output_source_filename): Delete arg "first".  New arg "data".
4253         All callers updated.
4254         (sources_info): Delete local "first".  New locals "data", "cleanups".
4255         Rewrite to use filename_seen_cache.
4256         (add_partial_filename_data): Delete member "first".  New member
4257         "filename_seen_cache".  All uses updated.
4258         (make_source_files_completion_list): Rewrite to use
4259         filename_seen_cache.
4260
4261 2012-07-12  Doug Evans  <dje@google.com>
4262
4263         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4264
4265 2012-07-10  Doug Evans  <dje@google.com>
4266
4267         PR gdb/13498
4268         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4269         all_type_unit_groups, type_unit_groups, tu_stats.
4270         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4271         All uses updated.  Add type_unit_group to union "s".
4272         (type_unit_group): New struct.
4273         (IS_TYPE_UNIT_GROUP): New macro.
4274         (abbrev_table): Delete unused member "section".
4275         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4276         (dw2_get_cu): Assert not used with type_unit_group.
4277         (dw2_get_primary_cu): New function.
4278         (dw2_build_type_unit_groups_reader): New function.
4279         (dw2_build_type_unit_groups): New function.
4280         (dw2_get_file_names): Assert not called on type units.
4281         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4282         Redo loop to iterate over type unit groups instead of type units.
4283         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4284         (read_abbrev_offset): New function.
4285         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
4286         updated.
4287         (create_partial_symtab): New function.
4288         (process_psymtab_comp_unit_reader): Assert not used with type units.
4289         Call create_partial_symtab.
4290         (process_psymtab_type_unit): Delete.
4291         (hash_type_unit_group, eq_type_unit_group): New functions.
4292         (allocate_type_unit_groups_table): New function.
4293         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4294         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4295         (create_type_unit_group, get_type_unit_group): New functions.
4296         (tu_abbrev_offset): New struct.
4297         (sort_tu_by_abbrev_offset): New function.
4298         (add_type_unit_group_to_table): New function.
4299         (build_type_unit_groups): New function.
4300         (build_type_psymtabs_reader): New function.
4301         (build_type_psymtab_dependencies): New function.
4302         (build_type_psymtabs): Rewrite.
4303         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4304         is seen in a type unit.
4305         (process_queue): Move symtab expansion debugging printfs here.
4306         Call process_full_type_unit for type units.
4307         (compute_symtab_includes): Assert not called for type units.
4308         (process_cu_includes): Don't call compute_symtab_includes for
4309         type units.
4310         (process_full_type_unit): New function.
4311         (process_imported_unit_die): Flag an error if called for type units.
4312         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
4313         updated.  Assert not called for type units.
4314         (read_file_scope): Call dwarf2_start_symtab.
4315         (setup_type_unit_groups): New function.
4316         (read_type_unit_scope): Rewrite.
4317         (abbrev_table_read_table): Initialize abbrev_table->offset.
4318         (abbrev_table_free_cleanup): New function.
4319         (dwarf2_start_symtab): New function.
4320         (load_full_type_unit): Assert not called for type unit groups.
4321         * buildsym.c (finish_block_internal): New arg "expandable".
4322         All callers updated.
4323         (start_symtab): Move most contents to ...
4324         (restart_symtab): ... here.  New function.
4325         (reset_symtab_globals): New function.
4326         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
4327         Call reset_symtab_globals.
4328         (end_symtab, end_expandable_symtab): New functions.
4329         (set_missing_symtab, augment_type_symtab): New functions.
4330         * buildsym.h (end_expandable_symtab): Declare.
4331         (augment_type_symtab, restart_symtab): Declare.
4332         * psympriv.h (struct partial_symtab): New member "anonymous".
4333         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4334         anonymous psymtabs.
4335         (read_psymtabs_with_filename): Ditto.
4336         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4337         (expand_symtabs_matching_via_partial): Ditto.
4338         (dump_psymtab): Update.
4339         * dictionary.c (dict_add_pending): New function.
4340         * dictionary.h (dict_add_pending): Declare.
4341
4342 2012-07-09  Doug Evans  <dje@google.com>
4343
4344         * buildsym.c (start_subfile): Remove unnecessary check for
4345         name == NULL.
4346
4347         * psymtab.c (allocate_psymtab): Use host_address_to_string.
4348
4349         * dwarf2read.c (load_full_type_unit): Simplify.
4350
4351         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4352         to struct signatured_type **.  All uses updated.
4353
4354         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4355         All callers updated.
4356
4357 2012-07-09  Tom Tromey  <tromey@redhat.com>
4358
4359         * c-exp.y (check_parameter_typelist): New function.
4360         (parameter_typelist): Call it.
4361         * eval.c (make_params): Handle '(void)' case.
4362         * gdbtypes.c (lookup_function_type_with_arguments): Handle
4363         '(void)' case.
4364
4365 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4366
4367         * common/linux-ptrace.c: Include gdb_assert.h.
4368         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4369         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4370         stdint.h.
4371         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4372         functions.
4373         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4374         * linux-nat.c (linux_child_post_attach)
4375         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4376
4377 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4378
4379         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4380         nptl <2.7 bug workaround for core files.
4381
4382 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4383
4384         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4385         clearing.
4386         (save_siginfo): Remove.
4387         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4388         call.
4389         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4390         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4391         * linux-nat.h (struct lwp_info): Remove field siginfo.
4392
4393 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4394
4395         Code cleanup for the next patch.
4396         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4397         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4398         call for it.
4399         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4400         (ia64_linux_stopped_data_address):
4401         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4402         the return value.
4403         * linux-nat.h (linux_nat_get_siginfo): Likewise.
4404         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4405         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4406         call for it.
4407
4408 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4409
4410         PR 14321
4411         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4412         Increase buffer sizes to 2x we need, not just 2x of the previous size.
4413
4414 2012-07-06  Tom Tromey  <tromey@redhat.com>
4415
4416         * c-exp.y (DOTDOTDOT): New token.
4417         (func_mod, exp): Use parameter_typelist.
4418         (parameter_typelist): New production.
4419         (tokentab3): Add "..." token.
4420         * eval.c (make_params): Handle varargs.
4421         * gdbtypes.c (lookup_function_type_with_arguments): Handle
4422         varargs.
4423
4424 2012-07-06  Tom Tromey  <tromey@redhat.com>
4425
4426         PR exp/9608:
4427         * c-exp.y (%union) <tvec>: Change type.
4428         (func_mod): Now uses <tvec> type.
4429         (exp): Update for tvec change.
4430         (direct_abs_decl): Push the typelist.
4431         (func_mod): Return a typelist.
4432         (nonempty_typelist): Update for tvec change.
4433         * gdbtypes.c (lookup_function_type_with_arguments): New function.
4434         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4435         * parse.c (pop_type_list): New function.
4436         (push_typelist): New function.
4437         (follow_types): Handle tp_function_with_arguments.
4438         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
4439         (enum type_pieces) <tp_function_with_arguments>: New constant.
4440         (union type_stack_elt) <typelist_val>: New field.
4441         (push_typelist): Declare.
4442
4443 2012-07-06  Tom Tromey  <tromey@redhat.com>
4444
4445         * c-exp.y (%union) <type_stack>: New field.
4446         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
4447         (ptr_operator_ts): New production.
4448         (ptype): Update.
4449         * parse.c (type_stack_reserve): New function.
4450         (check_type_stack_depth): Use it.
4451         (pop_type_stack, append_type_stack, push_type_stack)
4452         (get_type_stack, type_stack_cleanup): New functions.
4453         (follow_types): Handle tp_type_stack.
4454         (_initialize_parse): Simplify initialization.
4455         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4456         constant.
4457         (union type_stack_elt) <stack_val>: New field.
4458         (get_type_stack, append_type_stack, push_type_stack)
4459         (type_stack_cleanup): Declare.
4460
4461 2012-07-06  Tom Tromey  <tromey@redhat.com>
4462
4463         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4464         Remove.
4465         (struct type_stack): New.
4466         * parse.c (type_stack, type_stack_size, type_stack_depth):
4467         Remove.
4468         (type_stack): New global.
4469         (parse_exp_in_context, check_type_stack_depth)
4470         (insert_into_type_stack, insert_type, push_type, push_type_int)
4471         (insert_type_address_space, pop_type, pop_type_int)
4472         (_initialize_parse): Update.
4473
4474 2012-07-06  Tom Tromey  <tromey@redhat.com>
4475
4476         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4477         Remove %type.
4478
4479 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4480
4481         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4482
4483 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4484             Jan Kratochvil  <jan.kratochvil@redhat.com>
4485
4486         * cp-valprint.c (cp_print_value): Replace potentially unsafe
4487         alloca with xmalloc/xfree.
4488
4489 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4490
4491         * MAINTAINERS (Write After Approval): Add myself to the list.
4492
4493 2012-07-05  Doug Evans  <dje@google.com>
4494
4495         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4496
4497 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
4498
4499         * ax-gdb.c (cli/cli-utils.h): New include.
4500         (linespec.h): Ditto.
4501         (agent_eval_command_one): New function.
4502         (agent_command_1): Ditto.
4503         (agent_command): Call function agent_command_1.
4504         (agent_eval_command): Ditto.
4505         (_initialize_ax_gdb): Change help for "maint agent"
4506         and "maint agent-eval".
4507
4508 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
4509
4510         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4511         * cli/cli-utils.c (check_for_argument): New function.
4512         * cli/cli-utils.h (check_for_argument): Ditto.
4513
4514 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
4515
4516         * NEWS: Mention x32 ABI support.
4517
4518 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
4519
4520         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4521         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4522
4523         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4524         and pc_regnum_from_eax to -1.  Update SP regnum from
4525         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4526         needed.
4527
4528         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4529         pc_regnum_from_eax.
4530
4531 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4532
4533         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4534         * dwarf2expr.h: Include gdbtypes.h.
4535         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4536         these forward declarations.
4537         (cu_offset, sect_offset): Move these ...
4538         * gdbtypes.h: Remove include dwarf2expr.h.
4539         (cu_offset, sect_offset): ... here.
4540
4541 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
4542
4543         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4544         (amd64_linux_sigtramp_code): This.
4545         (amd64_x32_linux_sigtramp_code): New.
4546         (LINUX_SIGTRAMP_LEN): Updated.
4547         (amd64_linux_sigtramp_start): Check x32 sigtramp.
4548
4549 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4550
4551         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4552
4553 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4554
4555         * config.in: Regenerate.
4556         * configure: Regenerate.
4557         * configure.ac: Remove check for gnu/libc-version.h.
4558         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4559         gnu/libc-version.h.
4560         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4561         variables libc_version, libc_major and libc_minor.  Replace sscanf by
4562         inferior_has_bug.  Extend the comment.
4563
4564 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4565
4566         * linux-thread-db.c (inferior_has_bug): New function.
4567         (thread_db_find_new_threads_silently): Return boolean as checked by
4568         inferior_has_bug, describe it in the comments.
4569         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4570         earlier.  Abort the initialization if it returned non-zero.
4571         (thread_db_new_objfile): Exclude debug files.
4572         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
4573         if UNTIL_NO_NEW,
4574
4575 2012-07-02  Doug Evans  <dje@google.com>
4576
4577         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4578         related to queue management.
4579
4580         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4581         instead of "debug dwarf2-die" in debugging printfs.
4582         (create_debug_info_hash_table_reader): Ditto.
4583         (create_debug_info_hash_table): Ditto.
4584         (init_dwo_file): Ditto.
4585         (init_cutu_and_read_dies): Add debugging printf.
4586         (init_cutu_and_read_dies_no_follow): Ditto.
4587         (process_psymtab_comp_unit_reader): Ditto.
4588
4589 2012-07-02  Stan Shebs  <stan@codesourcery.com>
4590
4591         Add target-side support for dynamic printf.
4592         * NEWS: Mention the additional style.
4593         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4594         (struct bp_location): New field cmd_bytecode.
4595         * breakpoint.c: Include format.h.
4596         (disconnected_dprintf): New global.
4597         (parse_cmd_to_aexpr): New function.
4598         (build_target_command_list): New function.
4599         (insert_bp_location): Call it.
4600         (remove_breakpoints_pid): Skip dprintf breakpoints.
4601         (print_one_breakpoint_location): Ditto.
4602         (dprintf_style_agent): New global.
4603         (dprintf_style_enums): Add dprintf_style_agent.
4604         (update_dprintf_command_list): Add agent case.
4605         (agent_printf_command): New function.
4606         (_initialize_breakpoint): Add new commands.
4607         * common/ax.def (printf): New bytecode.
4608         * ax.h (ax_string): Declare.
4609         * ax-gdb.h (gen_printf): Declare.
4610         * ax-gdb.c: Include cli-utils.h, format.h.
4611         (gen_printf): New function.
4612         (maint_agent_print_command): New function.
4613         (_initialize_ax_gdb): Add maint agent-printf command.
4614         * ax-general.c (ax_string): New function.
4615         (ax_print): Add printf disassembly.
4616         * Makefile.in (SFILES): Add format.c
4617         (COMMON_OBS): Add format.o.
4618         * common/format.h: New file.
4619         * common/format.c: New file.
4620         * printcmd.c: Include format.h.
4621         (ui_printf): Call parse_format_string.
4622         * remote.c (remote_state): New field breakpoint_commands.
4623         (PACKET_BreakpointCommands): New enum.
4624         (remote_breakpoint_commands_feature): New function.
4625         (remote_protocol_features): Add new BreakpointCommands entry.
4626         (remote_can_run_breakpoint_commands): New function.
4627         (remote_add_target_side_commands): New function.
4628         (remote_insert_breakpoint): Call it.
4629         (remote_insert_hw_breakpoint): Ditto.
4630         (_initialize_remote): Add new packet configuration for
4631         target-side breakpoint commands.
4632         * target.h (struct target_ops): New field
4633         to_can_run_breakpoint_commands.
4634         (target_can_run_breakpoint_commands): New macro.
4635         * target.c (update_current_target): Handle
4636         to_can_run_breakpoint_commands.
4637
4638 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4639
4640         Execute -ix and -iex only after system and user gdbinit files.
4641         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4642         processing down after gdbinit files.
4643
4644 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4645
4646         Add fnmatch-gnu module.
4647         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4648         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4649         * gnulib/aclocal.m4: Regenerate.
4650         * gnulib/config.in: Regenerate.
4651         * gnulib/configure: Regenerate.
4652         * gnulib/import/dummy.c: Remove.
4653         * gnulib/import/Makefile.am: Regenerate.
4654         * gnulib/import/Makefile.in: Likewise.
4655         * gnulib/import/m4/gnulib-cache.m4: Likewise.
4656         * gnulib/import/m4/gnulib-comp.m4: Likewise.
4657         * gnulib/import/alloca.c: New file.
4658         * gnulib/import/alloca.in.h: Likewise.
4659         * gnulib/import/config.charset: Likewise.
4660         * gnulib/import/fnmatch.c: Likewise.
4661         * gnulib/import/fnmatch.in.h: Likewise.
4662         * gnulib/import/fnmatch_loop.c: Likewise.
4663         * gnulib/import/localcharset.c: Likewise.
4664         * gnulib/import/localcharset.h: Likewise.
4665         * gnulib/import/m4/alloca.m4: Likewise.
4666         * gnulib/import/m4/codeset.m4: Likewise.
4667         * gnulib/import/m4/configmake.m4: Likewise.
4668         * gnulib/import/m4/fcntl-o.m4: Likewise.
4669         * gnulib/import/m4/fnmatch.m4: Likewise.
4670         * gnulib/import/m4/glibc21.m4: Likewise.
4671         * gnulib/import/m4/localcharset.m4: Likewise.
4672         * gnulib/import/m4/locale-fr.m4: Likewise.
4673         * gnulib/import/m4/locale-ja.m4: Likewise.
4674         * gnulib/import/m4/locale-zh.m4: Likewise.
4675         * gnulib/import/m4/mbrtowc.m4: Likewise.
4676         * gnulib/import/m4/mbsinit.m4: Likewise.
4677         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4678         * gnulib/import/m4/mbstate_t.m4: Likewise.
4679         * gnulib/import/m4/stdbool.m4: Likewise.
4680         * gnulib/import/m4/wchar_h.m4: Likewise.
4681         * gnulib/import/m4/wctype_h.m4: Likewise.
4682         * gnulib/import/m4/wint_t.m4: Likewise.
4683         * gnulib/import/mbrtowc.c: Likewise.
4684         * gnulib/import/mbsinit.c: Likewise.
4685         * gnulib/import/mbsrtowcs-impl.h: Likewise.
4686         * gnulib/import/mbsrtowcs-state.c: Likewise.
4687         * gnulib/import/mbsrtowcs.c: Likewise.
4688         * gnulib/import/ref-add.sin: Likewise.
4689         * gnulib/import/ref-del.sin: Likewise.
4690         * gnulib/import/stdbool.in.h: Likewise.
4691         * gnulib/import/streq.h: Likewise.
4692         * gnulib/import/strnlen1.c: Likewise.
4693         * gnulib/import/strnlen1.h: Likewise.
4694         * gnulib/import/verify.h: Likewise.
4695         * gnulib/import/wchar.in.h: Likewise.
4696         * gnulib/import/wctype.in.h: Likewise.
4697
4698 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4699
4700         Support shell wildcards for 'set auto-load safe-path'.
4701         * auto-load.c: Include fnmatch.h.
4702         (filename_is_in_dir): Rename to ...
4703         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4704         it.  Update function comment.  Rename dir_len to pattern_len.  New
4705         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
4706         messages.  Use gdb_filename_fnmatch.
4707         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4708         pattern.
4709         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4710         * defs.h (gdb_filename_fnmatch): New declaration.
4711         * utils.c: Include fnmatch.h.
4712         (gdb_filename_fnmatch): New function.
4713
4714 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4715
4716         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4717         `-probe' and `-probe-stap' options.
4718
4719 2012-07-01  Yao Qi  <yao@codesourcery.com>
4720
4721         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4722         always_inserted_off, and always_inserted_enums.
4723         Change always_inserted_mode's type to 'enum auto_boolean'.
4724         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4725         callers.
4726         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4727         of add_setshow_enum_cmd.
4728         * infrun.c: Remove can_use_displaced_stepping_auto,
4729         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4730         can_use_displaced_stepping_enum.
4731         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4732         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4733         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4734         add_setshow_enum_cmd.
4735
4736 2012-06-30  Doug Evans  <dje@google.com>
4737
4738         * dwarf2read.c (signatured_type): Make "per_cu" member first.
4739         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4740         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
4741
4742 2012-06-29  Doug Evans  <dje@google.com>
4743
4744         * linespec.c: #include "stack.h".
4745         (decode_line_with_current_source): Moved here from symtab.c and
4746         renamed from decode_line_spec.  All callers updated.
4747         (decode_line_with_last_displayed): Moved here from breakpoint.c and
4748         renamed from decode_line_spec_1.  All callers updated.
4749         * linespec.h (decode_line_with_current_source): Move declaration here
4750         from symtab.h and renamed from decode_line_spec.
4751         (decode_line_with_last_displayed): Move declaration here from symtab.h
4752         and renamed from decode_line_spec_1.
4753         * macrocmd.c: #include "linespec.h".
4754         * symtab.c: Remove #include "linespec.h".
4755
4756 2012-06-28  Doug Evans  <dje@google.com>
4757
4758         * dwarf2read.c (get_cu_length): New function.
4759         (offset_in_cu_p, error_check_comp_unit_head): Call it.
4760         (create_debug_types_hash_table): Ditto.
4761         (init_cutu_and_read_dies): Ditto.
4762         (init_cutu_and_read_dies_no_follow): Ditto.
4763
4764         * dwarf2read.c (dwarf2_find_base_address): Move definition.
4765
4766         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4767         (struct abbrev_table): Define.
4768         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4769         abbrev_table.
4770         (init_cutu_and_read_dies): Update.
4771         (abbrev_table_alloc_abbrev): New function.  Replaces
4772         dwarf_alloc_abbrev.  All callers updated.
4773         (abbrev_table_add_abbrev): New function.
4774         (abbrev_table_lookup_abbrev): New function.  Replaces
4775         dwarf2_lookup_abbrev.  All callers updated.
4776         (abbrev_table_read_table): New function.  Contents moved here from
4777         dwarf2_read_abbrevs.
4778         (dwarf2_read_abbrevs): Call it.
4779         (abbrev_table_free): New function.
4780         (dwarf2_free_abbrev_table): Call it.
4781
4782 2012-06-28  Stan Shebs  <stan@codesourcery.com>
4783
4784         * osdata.c (info_osdata_command): Filter out "Title" columns
4785         from non-MI uses.
4786         * common/linux-osdata.c (struct osdata_type): Add title field.
4787         (osdata_table): Add titles to each entry.
4788         (linux_command_xfer_osdata): Add a column for title data.
4789
4790 2012-06-28  Stan Shebs  <stan@codesourcery.com>
4791
4792         Make logging work for MI.
4793         * NEWS: Mention it.
4794         * interps.h (interp_set_logging_ftype): New typedef.
4795         (struct interp_procs): New field set_logging_proc.
4796         (current_interp_set_logging): Declare.
4797         * interps.c (current_interp_set_logging): New function.
4798         * cli/cli-logging.c: Include interps.h.
4799         (set_logging_redirect): Call current_interp_set_logging.
4800         (pop_output_files): Ditto.
4801         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4802         * mi/mi-console.h (mi_console_set_raw): Declare.
4803         * mi/mi-console.c (mi_console_set_raw): New function.
4804         * mi/mi-interp.c (saved_raw_stdout): New global.
4805         (mi_set_logging): New function.
4806         (_initialize_mi_interp): Add it to interp procs.
4807
4808 2012-06-28  Doug Evans  <dje@google.com>
4809
4810         * symtab.c (lookup_symbol_aux_objfile): Use
4811         ALL_OBJFILE_PRIMARY_SYMTABS.
4812
4813         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4814
4815 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4816
4817         * common/buffer.c: Include inttypes.h and stdint.h.
4818         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4819
4820 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4821             Pedro Alves  <palves@redhat.com>
4822
4823         * gdbthread.h (ALL_THREADS): New macro.
4824         (thread_list): Declare.
4825         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4826         going, but instead fall through to the stepping handling.
4827         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
4828         the passed in signal.  Adjust debug output.
4829         (resume_callback): Rename to ...
4830         (linux_nat_resume_callback): ... this.  Pass the thread's last
4831         stop signal, if in "pass" state.
4832         (linux_nat_resume): Adjust to rename.
4833         (stop_wait_callback): New assertion.  Don't respawn signals;
4834         instead let the LWP remain with SIGNALLED set.
4835         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4836         * remote.c (append_pending_thread_resumptions): New.
4837         (remote_vcont_resume): Call it.
4838         * target.h (target_resume): Extend comment.
4839
4840 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
4841
4842         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4843
4844 2012-06-27  Doug Evans  <dje@google.com>
4845
4846         * dwarf2read.c (dwarf2_cu): Add ranges_base.
4847         Delete have_addr_base, unused.  All uses updated.
4848         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4849         (dwarf2_get_pc_bounds): Add ranges_base.
4850         (dwarf2_record_block_ranges): Ditto.
4851
4852 2012-06-27  Tom Tromey  <tromey@redhat.com>
4853
4854         PR macros/7961:
4855         * varobj.c (varobj_create): Update.
4856         (varobj_set_value): Update.
4857         * tracepoint.c (validate_actionline): Update.
4858         (encode_actions_1): Update.
4859         * parse.c (parse_exp_1): Add 'pc' argument.
4860         (parse_exp_in_context): Add 'pc' argument.  Change how
4861         expression_context_pc is set.
4862         (parse_expression): Update.
4863         (parse_field_expression): Update.
4864         * expression.h (parse_exp_1): Update.
4865         * eval.c (parse_to_comma_and_eval): Update.
4866         * breakpoint.c (set_breakpoint_condition): Update.
4867         (update_watchpoint): Update.
4868         (init_breakpoint_sal): Update
4869         (find_condition_and_thread): Update.
4870         (watch_command_1): Update.
4871         (update_breakpoint_locations): Update.
4872         * ada-lang.c (ada_read_renaming_var_value): Update.
4873         (create_excep_cond_exprs): Update.
4874
4875 2012-06-27  Doug Evans  <dje@google.com>
4876
4877         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4878         type units.
4879
4880 2012-06-26  Doug Evans  <dje@google.com>
4881
4882         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4883         prototype.
4884         (error_check_comp_unit_head): New arg abbrev_section.  All callers
4885         updated.
4886         (read_and_check_comp_unit_head): Ditto.
4887         (read_and_check_type_unit_head): Ditto.
4888
4889 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
4890
4891         New attribute 'last' for gdb.Symtab_and_line.
4892         * NEWS (Python Scripting): Add entry about the new attribute.
4893         * python/py-symtab.c (salpy_get_last): New function which
4894         implements the get method for the 'last' attribute of
4895         gdb.Symtab_and_line.
4896         (sal_object_getset): Add entry for the 'last' attribute.
4897
4898 2012-06-26  Doug Evans  <dje@google.com>
4899
4900         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4901         (dwo_sections): Add macinfo, macro.
4902         (dwarf2_locate_dwo_sections): Watch for macro sections.
4903         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4904         All callers updated.  Handle DWO files.
4905
4906         * NEWS: Mention new options "set debug dwarf2-read" and
4907         "set debug symtab-create".
4908         * dwarf2read.c (dwarf2_read_debug): New static global.
4909         (dwarf2_build_psymtabs_hard): Add debugging printfs.
4910         (process_queue): Ditto.
4911         (process_full_comp_unit): Ditto.
4912         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4913         * elfread.c (elf_symfile_read): Add debugging printf.
4914         * minsyms.c (install_minimal_symbols): Ditto.
4915         * psymtab.c (allocate_psymtab): Ditto.
4916         * symfile.c (allocate_symtab): Ditto.
4917         * symtab.c (symtab_create_debug): New global.
4918         (_initialize_symtab): Add new option "set debug symtab-create".
4919         * symtab.h (symtab_create_debug): Declare.
4920
4921         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4922         (lookup_dwo_type_unit): Ditto.
4923
4924 2012-06-26  Roland McGrath  <roland@hack.frob.com>
4925             H.J. Lu  <hongjiu.lu@intel.com>
4926
4927         * amd64-linux-nat.c: Include <sys/user.h>.
4928         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4929         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4930         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4931
4932         * configure.ac: Check if the fs_base and gs_base members of
4933         `struct user_regs_struct' exist.
4934         * config.in: Regenerated.
4935         * configure: Likewise.
4936
4937 2012-06-25  Michael Eager  <eager@eagercon.com>
4938
4939         PR python/14291
4940         * python/python.c (gdbpy_write): Check for interrupted output.
4941
4942 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
4943
4944         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4945         register as a stack alignment in ARM mode.
4946
4947 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4948
4949         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4950         * gnulib/config.in: Regenerate.
4951         * gnulib/configure: Likewise.
4952         * gnulib/import/m4/extensions.m4: Update it.
4953         * gnulib/import/m4/gnulib-common.m4: Likewise.
4954         * gnulib/import/m4/memmem.m4: Likewise.
4955         * gnulib/import/m4/mmap-anon.m4: Likewise.
4956         * gnulib/import/m4/multiarch.m4: Likewise.
4957         * gnulib/import/stdint.in.h: Likewise.
4958
4959 2012-06-24  Yao Qi  <yao@codesourcery.com>
4960
4961         * corefile.c (write_memory_with_notification): New.
4962         * gdbcore.h: Declare write_memory_with_notification.
4963         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4964         'observer_notify_memory_changed' with 'write_memory_with_notification'.
4965         * valops.c (value_assign): Likewise.
4966         * python/py-inferior.c (infpy_write_memory): Call
4967         'write_memory_with_notification'.
4968
4969 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4970
4971         * cc-with-index.sh: Use also -ex "set auto-load no".
4972
4973 2012-06-23  Doug Evans  <dje@google.com>
4974
4975         PR 14125
4976         * NEWS: Document additions to .gdb_index.
4977         * dwarf2read.c: #include "gdb/gdb-index.h".
4978         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4979         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4980         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4981         (dwarf2_read_index): Recognize version 7.
4982         (dw2_do_expand_symtabs_matching): New args want_specific_block,
4983         block_kind, domain): All callers updated.
4984         (dw2_find_symbol_file): Handle new index CU values.
4985         (dw2_expand_symtabs_matching): Match symbol kind if requested.
4986         (add_index_entry): New args is_static, kind.  All callers updated.
4987         (offset_type_compare, uniquify_cu_indices): New functions
4988         (symbol_kind): New function.
4989         (write_psymtabs_to_index): Remove duplicate CU values.
4990         (write_psymtabs_to_index): Write .gdb_index version 7.
4991
4992 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
4993
4994         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4995         * configure: Regenerate.
4996
4997 2012-06-20  Yao Qi  <yao@codesourcery.com>
4998
4999         * python/py-inferior.c: Update comments of infpy_read_memory
5000         and infpy_write_memory.
5001
5002 2012-06-19  Tom Tromey  <tromey@redhat.com>
5003
5004         PR exp/9514:
5005         * parser-defs.h (insert_type, insert_type_address_space): Declare.
5006         (push_type_address_space): Remove.
5007         * parse.c (insert_into_type_stack): New function.
5008         (insert_type): Likewise.
5009         (insert_type_address_space): Rename from push_type_address_space.
5010         Insert tp_space_identifier.
5011         * c-exp.y (ptr_operator): New production.
5012         (abs_decl): Use ptr_operator.
5013         (space_identifier): Call insert_type_address_space.
5014         (ptype): Don't use const_or_volatile_or_space_identifier.
5015         (const_or_volatile_noopt): Call insert_type.
5016         (conversion_type_id, conversion_declarator): New productions.
5017         (operator): Use conversion_type_id.
5018
5019 2012-06-18  Doug Evans  <dje@google.com>
5020
5021         * symtab.h (minimal_symbol): New member created_by_gdb.
5022         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5023         created by gdb.
5024         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5025         (search_symbols): Call it instead of lookup_symbol.
5026         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
5027
5028         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5029         Adjust address for DW_OP_GNU_addr_index.
5030         * dwarf2expr.h (dwarf_expr_context): Update comment.
5031         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5032         all callers updated.  Handle TLS vars described with
5033         DW_OP_GNU_const_index.
5034         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5035         and DW_OP_GNU_const_index.
5036         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5037
5038         * block.c (find_block_in_blockvector): Make explicit the fact that we
5039         ignore GLOBAL_BLOCK.
5040
5041 2012-06-18  Tom Tromey  <tromey@redhat.com>
5042
5043         * c-exp.y (operator): Remove trailing space after "delete" and
5044         "delete[]".
5045
5046 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
5047             Jan Kratochvil  <jan.kratochvil@redhat.com>
5048
5049         Switch i386 and derived targets to ON_STACK.
5050         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5051         (amd64_dicos_init_abi): Remove its installment.
5052         * dicos-tdep.c (dicos_init_abi): Remove the
5053         set_gdbarch_call_dummy_location call.  Update the comment here.
5054         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5055         (i386_dicos_init_abi): Remove its installment.
5056         * i386-tdep.c (i386_push_dummy_code): New function.
5057         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5058         i386_push_dummy_code.
5059
5060 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5061
5062         Remove stale dummy frames.
5063         * breakpoint.c: Include dummy-frame.h.
5064         (longjmp_breakpoint_ops): New variable.
5065         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5066         bp_longjmp_call_dummy.
5067         (bpstat_what, bptype_string, print_one_breakpoint_location)
5068         (init_bp_location): Support bp_longjmp_call_dummy.
5069         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
5070         (set_longjmp_breakpoint_for_call_dummy)
5071         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5072         functions.
5073         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5074         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
5075         FIXME comment and extend the other comment for bp_call_dummy.
5076         (set_longjmp_breakpoint_for_call_dummy)
5077         (check_longjmp_breakpoint_for_call_dummy): New declarations.
5078         * dummy-frame.c: Include gdbthread.h.
5079         (pop_dummy_frame_bpt): New function.
5080         (pop_dummy_frame): Call pop_dummy_frame_bpt.
5081         (dummy_frame_discard): New function.
5082         (cleanup_dummy_frames): Update the comment about longjmps.
5083         * dummy-frame.h (dummy_frame_discard): New declaration.
5084         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5085         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
5086         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
5087         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5088         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
5089         keep_going if IS_LONGJMP and there is no other reason to stop.
5090
5091 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
5092
5093         * remote-sim.c (sim_command_completer): Initialize
5094         variable 'result'.
5095
5096 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5097
5098         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5099         * dwarf2loc.c (call_site_parameter_matches): Support
5100         CALL_SITE_PARAMETER_PARAM_OFFSET.
5101         (needs_dwarf_reg_entry_value): Push stub value.
5102         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
5103         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5104         * gdbtypes.h (enum call_site_parameter_kind): New item
5105         CALL_SITE_PARAMETER_PARAM_OFFSET.
5106         (struct call_site.parameter.u): New field param_offset.
5107
5108 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5109
5110         Code cleanup: Generalize call_site.parameter key.
5111         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5112         variable dwarf_reg.  New variable kind_u.  Update parameters to
5113         push_dwarf_reg_entry_value.
5114         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5115         * dwarf2expr.h (enum call_site_parameter_kind)
5116         (union call_site_parameter_u): Forward declarations.
5117         (struct dwarf_expr_context_funcs): Update parameters and their
5118         description for push_dwarf_reg_entry_value.
5119         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5120         * dwarf2loc.c (call_site_parameter_matches): New function.
5121         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5122         description.  Use call_site_parameter_matches.
5123         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5124         Update parameters and their description.
5125         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5126         New variable kind_u.  Adjust the caller for updated parameters.
5127         (needs_dwarf_reg_entry_value): Update parameters.
5128         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
5129         instead of attr.  Update for the changed fields of struct
5130         call_site_parameter.
5131         * gdbtypes.h: Include dwarf2expr.h.
5132         (enum call_site_parameter_kind): New.
5133         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
5134         fb_offset into new union u.
5135
5136 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
5137
5138         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5139         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5140         for x32.
5141
5142 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
5143
5144         * amd64-linux-nat.c (compat_x32_clock_t): New.
5145         (compat_x32_siginfo_t): Likewise.
5146         (compat_x32_siginfo_from_siginfo): Likewise.
5147         (siginfo_from_compat_x32_siginfo): Likewise.
5148         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5149         and siginfo_from_compat_x32_siginfo for x32.
5150
5151 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
5152
5153         * tracepoint.c (tfile_xfer_partial): Add a lseek.
5154
5155 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5156
5157         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5158         instead of gdbarch_ptr_bit.
5159         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5160         (amd64_supply_native_gregset): Likewise.
5161         (amd64_collect_native_gregset): Likewise.
5162         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5163         (amd64_supply_xsave): Likewise.
5164         (amd64_collect_fxsave): Likewise.
5165         (amd64_collect_xsave): Likewise.
5166
5167 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5168
5169         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5170         (amd64_linux_read_description): Check DS segment register for
5171         x32 process.
5172
5173 2012-06-15  Tom Tromey  <tromey@redhat.com>
5174
5175         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5176         init_cutu_and_read_dies.
5177
5178 2012-06-15  Iain Sandoe <iain@codesourcery.com>
5179
5180         * MAINTAINERS (Write After Approval): Add myself to the list.
5181
5182 2012-06-15  Tom Tromey  <tromey@redhat.com>
5183
5184         * valops.c (value_find_oload_method_list): Now static.
5185         * value.h (value_find_oload_method_list): Don't declare.
5186
5187 2012-06-15  Tom Tromey  <tromey@redhat.com>
5188
5189         * valops.c (find_overload_match): Use value_ind.
5190
5191 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
5192
5193         * infrun.c (handle_inferior_event): Correct indentation.
5194
5195 2012-06-14  Doug Evans  <dje@google.com>
5196
5197         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5198         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5199         All uses updated.
5200         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
5201         updated.  Handle DEBUG_LOC_START_LENGTH.
5202         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5203         (loclist_describe_location): Ditto.
5204
5205 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
5206
5207         PR backtrace/13866
5208         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5209         after hiding inline functions.
5210
5211 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
5212
5213         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5214         _initialize_inf_ttrace.
5215
5216 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
5217
5218         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5219         _initialize_hppa_hpux_nat.
5220
5221 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
5222
5223         * remote-sim.c (sim_command_completer): Change type of return
5224         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
5225
5226 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
5227             Jan Kratochvil  <jan.kratochvil@redhat.com>
5228
5229         PR tdep/14222
5230         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5231         stack on a 16-byte boundary.
5232
5233 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
5234
5235         * jit.c (finalize_symtab): Set function's return type to 'void' by
5236         default.
5237
5238 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
5239             H.J. Lu  <hongjiu.lu@intel.com>
5240
5241         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5242         Move bits common to both the classic LP64 and the new x32 ILP32
5243         ABI here.
5244         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5245         (amd64_x32_linux_init_abi): New function.
5246         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5247         subtype.
5248
5249         * i386-tdep.h (i386_pseudo_register_name): New prototype.
5250         * i386-tdep.c (i386_pseudo_register_name): Make public.
5251         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5252         * amd64-tdep.c (amd64_dword_names): Add "eip".
5253         (amd64_x32_pseudo_register_type): New function
5254         (amd64_x32_init_abi): New function.
5255
5256 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5257
5258         PR build/14003
5259         * inferior.h (struct inferior_suspend_state): Comment out.
5260         (struct inferior): Comment out the field suspend.
5261         * infrun.c (struct infcall_suspend_state): Comment out the field
5262         inferior_suspend.
5263         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5264         out its assignment.
5265
5266 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5267
5268         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5269         * c-exp.y (classify_inner_name): Remove caller assumptions in the
5270         function comment.  Return ERROR for unresolved cases.  Implement
5271         returning proper NAME.
5272         (yylex): Accept also NAME from classify_inner_name.
5273         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5274         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
5275         LOC_TYPEDEF type.
5276         * cp-support.h (cp_lookup_nested_type): Update its declaration.
5277
5278 2012-06-13  Tom Tromey  <tromey@redhat.com>
5279
5280         * breakpoint.c (condition_completer): New function.
5281         (_initialize_breakpoint): Use it.
5282         * value.c (complete_internalvar): New function.
5283         * value.h (complete_internalvar): Declare.
5284
5285 2012-06-13  Tom Tromey  <tromey@redhat.com>
5286
5287         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5288         * breakpoint.c (catch_syscall_completer): Return a VEC.
5289         * cli/cli-cmds.c (complete_command): Update.
5290         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5291         (complete_on_enum): Likewise.
5292         * command.h: Include gdb_vecs.h.
5293         (completer_ftype): Change return type.
5294         (complete_on_cmdlist, complete_on_enum): Likewise.
5295         * completer.c (noop_completer, filename_completer)
5296         (location_completer): Return a VEC.
5297         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
5298         to a VEC.
5299         (expression_completer, complete_line_internal, complete_line)
5300         (command_completer): Return a VEC.
5301         (gdb_completion_word_break_characters, line_completion_function):
5302         Update.
5303         * completer.h: Include gdb_vecs.h.
5304         (complete_line, noop_completer, filename_completer)
5305         (expression_completer, location_completer, command_completer):
5306         Update.
5307         * f-lang.c (f_word_break_characters): Return a VEC.
5308         * interps.c (interpreter_completer): Return a VEC.
5309         * language.h (struct language_defn)
5310         <la_make_symbol_completion_list>: Return a VEC.
5311         * python/py-cmd.c (cmdpy_completer): Return a VEC.
5312         * symtab.c (free_completion_list): Take a VEC.
5313         (return_val_size, return_val_index): Remove.
5314         (return_val): Now a VEC.
5315         (completion_list_add_name): Update.
5316         (default_make_symbol_completion_list_break_on)
5317         (default_make_symbol_completion_list, make_symbol_completion_list)
5318         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5319         Return a VEC.
5320         (add_filename_to_list): Update.
5321         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5322         <list>: Now a VEC.
5323         (maybe_add_partial_symtab_filename): Update.
5324         (make_source_files_completion_list): Return a VEC.
5325         * symtab.h (default_make_symbol_completion_list_break_on)
5326         (default_make_symbol_completion_list, make_symbol_completion_list)
5327         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5328         (make_source_files_completion_list): Update.
5329
5330 2012-06-13  Tom Tromey  <tromey@redhat.com>
5331
5332         * breakpoint.c (add_catch_command): Use completer_ftype.
5333         * breakpoint.h: Include command.h.
5334         (add_catch_command): Use completer_ftype.
5335         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5336         * cli/cli-decode.h (struct cmd_list_element) <completer>:
5337         Use completer_ftype.
5338         * command.h (completer_ftype): New typedef.
5339         (set_cmd_completer): Use it.
5340         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5341         completer_ftype.
5342
5343 2012-06-13  Pedro Alves  <palves@redhat.com>
5344
5345         Partial revert of previous change.
5346
5347         * serial.c (scb_base): New global.
5348         (serial_for_fd): New.
5349         (serial_open, serial_fdopen_ops): Link new serial in open serials
5350         chain.
5351         (do_serial_close): Unlink serial from the open serials chain.
5352
5353 2012-06-12  Pedro Alves  <palves@redhat.com>
5354
5355         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5356         threads here.
5357         (prepare_for_detach): No longer context switch here in non-stop
5358         mode.
5359         (fetch_inferior_event): Ditto.
5360         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5361         to the event thread before removing breakpoints.  Switch to the
5362         event thread before inserting breakpoints and resuming.
5363         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5364         event thread before resuming.
5365         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5366         Switch to the event thread before removing breakpoints.
5367
5368 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
5369
5370         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5371         special characters correctly for the Windows shells.  See
5372         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5373         report.
5374         [!__MINGW32__]: Remove extra double quote character from special
5375         characters.
5376
5377 2012-06-11  Stan Shebs  <stan@codesourcery.com>
5378
5379         * ui-out.h: Remove #if 0 declarations.
5380         * ui-out.c: Remove #if 0 functions.
5381
5382 2012-06-11  Pedro Alves  <palves@redhat.com>
5383
5384         * ser-base.c (run_async_handler_and_reschedule): New.
5385         (fd_event, push_event): Use it.
5386         * serial.c (serial_open, serial_fdopen_ops): Set the initial
5387         reference count to 1.
5388         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
5389         instead of xfree.
5390         (serial_is_open, serial_ref, serial_unref): New.
5391         * serial.h (serial_open): Adjust comment.
5392         (serial_is_open): Declare.
5393         (serial_close): Adjust comment.
5394         (serial_ref, serial_unref) Declare.
5395         (struct serial): New field 'refcnt'.
5396
5397 2012-06-11  Pedro Alves  <palves@redhat.com>
5398
5399         Remove #if 0'd "connect" command, and unnecessary associated
5400         refcounting and serial reuse bits.
5401
5402         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5403         * serial.c (last_serial_opened): Delete.
5404         (scb_base): Delete.
5405         (serial_open): Adjust.
5406         (serial_for_fd): Delete.
5407         (serial_fdopen_ops, do_serial_close): Adjust.
5408         (serial_fdopen_ops): Adjust.
5409
5410 2012-06-11  Pedro Alves  <palves@redhat.com>
5411
5412         * serial.c (do_serial_close): Remove early return when SCB is
5413         null.
5414
5415 2012-06-11  Tom Tromey  <tromey@redhat.com>
5416
5417         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5418
5419 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5420
5421         Fix regression by the "ambiguous linespec" series.
5422         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
5423         get_last_displayed_symtab and get_last_displayed_line and depending
5424         on CURSAL.
5425
5426 2012-06-11  Tom Tromey  <tromey@redhat.com>
5427
5428         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5429         (dw2_find_symbol_file): Use it.
5430
5431 2012-06-11  Michael Eager  <eager@eagercon.com>
5432
5433         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5434         * mips-linux-tdep.h (mips_signals): New
5435
5436 2012-06-11  Tom Tromey  <tromey@redhat.com>
5437
5438         * infrun.c (handle_inferior_event)
5439         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5440         breakpoint.
5441         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5442         exception logic in all cases.  Update comments.
5443         (insert_longjmp_resume_breakpoint): Set the exception resume
5444         breakpoint.
5445
5446 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
5447
5448         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5449
5450 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
5451
5452         * valarith.c (binop_types_user_defined_p): Fix a typo.
5453
5454 2012-06-08  Yao Qi  <yao@codesourcery.com>
5455             Chung-Lin Tang <cltang@codesourcery.com>
5456
5457         * arch-utils.c (default_return_in_first_hidden_param_p): New.
5458         * arch-utils.h: Declare.
5459         * gdbarch.sh: Add return_in_first_hidden_param_p.
5460         * gdbarch.c, gdbarch.h: Regenerated.
5461         * infcall.c (call_function_by_hand): Call
5462         gdbarch_return_in_first_hidden_param_p instead of
5463         language_pass_by_reference.
5464
5465         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5466         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5467         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5468         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5469         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5470         `cplus_return_struct_by_reference'.
5471         (tic6x_return_value): Handle language cplusplus.
5472         (tic6x_return_in_first_hidden_param_p): New.
5473         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5474
5475 2012-06-07  Doug Evans  <dje@google.com>
5476
5477         * dwarf2read.c (dwarf2_cu): Add comment.
5478
5479 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
5480
5481         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5482         variable.
5483         (mips_eabi_push_dummy_call): Likewise.
5484         (mips_n32n64_push_dummy_call): Likewise.
5485         (mips_o32_push_dummy_call): Likewise.
5486         (mips_o64_push_dummy_call): Likewise.
5487
5488 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
5489
5490         * mips-tdep.c (mips_convert_register_p): Correct coding style.
5491
5492 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
5493
5494         * mips-tdep.c (mips_pseudo_register_type): Use
5495         mips_float_register_p.
5496
5497 2012-06-06  Pedro Alves  <palves@redhat.com>
5498
5499         * infrun.c (handle_inferior_event): Remove calls to
5500         reinit_frame_cache that follow a context_switch call.
5501
5502 2012-06-06  Pedro Alves  <palves@redhat.com>
5503
5504         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5505         context_switch and remove stale comment.
5506
5507 2012-06-06  Pedro Alves  <palves@redhat.com>
5508
5509         * infrun.c (struct execution_control_state): Remove
5510         `new_thread_event' field.
5511         (handle_inferior_event): Simplify new threads handling; don't
5512         resume the inferior if we find a new thread.
5513
5514 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
5515
5516         * NEWS: Document the deprecation of SH's 'regs' command.
5517         * inferior.h (all_registers_info): Add function declaration.
5518         * sh-tdep.c (sh_show_regs): Remove variable.
5519         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5520         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5521         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5522         (sh_show_regs_command): Remove functions.
5523         (sh_gdbarch_init): Don't set sh_show_regs.
5524         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5525         'info all-registers'.
5526         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5527         (sh64_show_regs): Remove functions.
5528         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5529
5530 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5531
5532         * configure.ac: Move development=true below AC_INIT.
5533         * configure: Regenerate.
5534
5535 2012-06-05  Stan Shebs  <stan@codesourcery.com>
5536
5537         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5538         gdb_stdout.
5539
5540 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
5541
5542         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5543         argument as ssize_t.
5544         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5545         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5546         * target.c (target_read_stack, target_write_memory)
5547         (target_write_raw_memory): Likewise.
5548         * target.h (target_read_stack, target_write_memory)
5549         (target_write_raw_memory): Likewise.
5550
5551 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5552
5553         * symfile-mem.c: Change gdb_static_assert to ssize_t.
5554         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5555         * target.c (target_read_memory): Change LEN to ssize_t.
5556         * target.h (target_read_memory): Change LEN to ssize_t.
5557
5558 2012-06-05  Pedro Alves  <palves@redhat.com>
5559
5560         PR backtrace/13866
5561
5562         * breakpoint.c (until_break_command): Only fetch the selected
5563         frame after decode_line_1.
5564
5565 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
5566
5567         * solib-svr4.c (enable_break): Don't fallback to setting the solib
5568         event breakpoint at _start, __start or main if a program
5569         interpreter is not found.
5570
5571 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5572
5573         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5574         Add declaration.
5575         * windows-tdep.c: #include "objfiles.h".
5576         (windows_iterate_over_objfiles_in_search_order): New function.
5577         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5578         iterate_over_objfiles_in_search_order gdbarch method to
5579         windows_iterate_over_objfiles_in_search_order.
5580         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5581
5582 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5583
5584         * gdbarch.sh: Add generation of
5585         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5586         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
5587         (iterate_over_objfiles_in_search_order): New gdbarch method.
5588         * gdbarch.h, gdbarch.c: Regenerate.
5589         * objfiles.h (default_iterate_over_objfiles_in_search_order):
5590         Add declaration.
5591         * objfiles.c (default_iterate_over_objfiles_in_search_order):
5592         New function.
5593         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5594         out of lookup_symbol_aux_symtabs.
5595         (lookup_symbol_aux_symtabs): Replace extracted-out code by
5596         call to lookup_symbol_aux_objfile.
5597         (struct global_sym_lookup_data): New type.
5598         (lookup_symbol_global_iterator_cb): New function.
5599         (lookup_symbol_global): Search for symbol using
5600         gdbarch_iterate_over_objfiles_in_search_order and
5601         lookup_symbol_global_iterator_cb.
5602         * findvar.c (struct minsym_lookup_data): New type.
5603         (minsym_lookup_iterator_cb): New function.
5604         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5605         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5606         and minsym_lookup_iterator_cb.
5607
5608 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5609
5610         Revert the following patch:
5611         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5612         try locating the symbol in the symbol's own objfile first, before
5613         extending the search to all objfiles.
5614         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5615         out of lookup_symbol_aux_symtabs.
5616         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5617         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5618         Do not search EXCLUDE_OBJFILE.
5619         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5620         (lookup_symbol_global): Search for matches in the block's objfile
5621         first, before searching all other objfiles.
5622
5623 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5624
5625         * breakpoint.c (find_condition_and_thread): Stop parsing
5626         as soon as the first invalid keyword is found.
5627
5628 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5629
5630         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5631
5632 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5633
5634         * config/djgpp/djcheck.sh: Add copyright header.
5635
5636 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5637
5638         * copyright.py (update_files, main): Fix path to update-copyright
5639         script.
5640
5641 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5642
5643         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5644         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5645         for which a reminder to update by hand is printed.
5646
5647 2012-06-04  Doug Evans  <dje@google.com>
5648
5649         * buildsym.c (make_blockvector): Add comment.
5650
5651 2012-06-04  Pedro Alves  <palves@redhat.com>
5652
5653         * arch-utils.c (default_gdb_signal_from_target): Delete.
5654         * arch-utils.h (default_gdb_signal_from_target): Delete.
5655         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
5656         gdbarch_gdb_signal_from_target_p.
5657         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5658         predicate).
5659         * gdbarch.h: Regenerate.
5660         * gdbarch.c: Regenerate.
5661
5662 2012-06-04  Pedro Alves  <palves@redhat.com>
5663
5664         * gdbarch.sh (gdb_signal_from_target): Mention that the
5665         implementation of the method must be host independent.
5666         * gdbarch.h: Regenerate.
5667
5668 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5669
5670         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5671         parameters.
5672         (target_read_memory_bfd): New function.
5673         (symbol_file_add_from_memory): Use it.
5674
5675 2012-06-03  Doug Evans  <dje@google.com>
5676
5677         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5678         of primary symtab.
5679         (basic_lookup_transparent_type): Ditto.
5680
5681         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5682         (ALL_PRIMARY_SYMTABS): Use it.
5683         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5684         * dwarf2read.c (dw2_find_symbol_file): Ditto.
5685         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5686         * symtab.c (lookup_symbol_aux_objfile): Ditto.
5687         (basic_lookup_transparent_type): Ditto.
5688
5689 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5690
5691         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
5692         it to optimize resolution of demangled name.
5693
5694 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5695
5696         * configure.ac (development): Define new variable.
5697         Call AC_CHECK_LIB for mcheck if $development.
5698         (ERROR_ON_WARNING): Enable it by default only if $development.
5699         * config.in: Regenerate.
5700         * configure: Regenerate.
5701
5702 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
5703
5704         * target.c (target_read_memory): Make LEN argument as size_t.
5705         * target.h (target_read_memory): Likewise.
5706
5707 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5708
5709         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5710
5711 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5712
5713         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5714         BookE interface for PowerPC server processors if not available
5715         in the Linux Kernel.
5716
5717 2012-05-31  Keith Seitz  <keiths@redhat.com>
5718
5719         * linespec.c (decode_objc): Add cleanup to free
5720         INFO.FILE_SYMTABS.
5721         (find_linespec_symbols): Add cleanup to free CLASSES.
5722         * symfile.c (find_separate_debug_file_by_debuglink): Add
5723         cleanup to free DEBUGLINK.
5724         * ui-out.c (clear_header_list): No need to check if
5725         HEADER_NEXT.COLHDR is NULL.
5726         Free HEADER_NEXT.COL_NAME.
5727
5728 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5729
5730         * ada-lang.c (standard_lookup): Prevent uninitialized variable
5731         warning.
5732
5733 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
5734
5735         * configure.host (gdb_host_cpu): Handle tilegx*.
5736         (gdb_host): Handle tilegx-*-linux*.
5737         * tilegx-linux-nat.c: New file.
5738         * config/tilegx/linux.mh: New file.
5739
5740 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
5741
5742         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5743         tilegx-linux-tdep.o.
5744         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5745         tilegx-linux-tdep.c.
5746         * configure.tgt: Handle tilegx-*-linux*.
5747         * tilegx-tdep.h: New file.
5748         * tilegx-tdep.c: New file.
5749         * tilegx-linux-tdep.c: New file.
5750         * regformats/reg-tilegx.dat: New file.
5751
5752 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5753
5754         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5755         accounting of hw watchpoints on ppc.
5756
5757 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
5758
5759         * source.c (openp): Expand tilde in path entries.
5760
5761 2012-05-29  Doug Evans  <dje@google.com>
5762
5763         * buildsym.c (block_compar): Fix comment.
5764         (end_symtab): Fix and clarify some comments.
5765
5766         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5767         cleanup_undefined_types.
5768         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5769         All callers updated.
5770
5771 2012-05-29  Tom Tromey  <tromey@redhat.com>
5772
5773         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5774         fails.
5775         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5776         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5777         fails.
5778         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5779         fails.
5780
5781 2012-05-29  Tristan Gingold  <gingold@adacore.com>
5782
5783         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5784         (struct darwin_info): ... New struct.
5785         (solib_darwin_pspace_data): New variable.
5786         (darwin_pspace_data_cleanup): New function.
5787         (get_darwin_info): Likewise.
5788         (darwin_dyld_version_ok, darwin_load_image_infos)
5789         (darwin_solib_get_all_image_info_addr_at_init)
5790         (darwin_solib_read_all_image_info_addr): Add info argument.
5791         Adjust code.
5792         (darwin_current_sos): Use per pspace structure.
5793         (darwin_solib_create_inferior_hook): Likewise.
5794         (darwin_clear_solib): Likewise.
5795         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5796
5797 2012-05-28  Pedro Alves  <palves@redhat.com>
5798
5799         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5800         block that uses them.  Clear ecss before handling each event.
5801
5802 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5803
5804         * solib-svr4.c (svr4_current_sos): New comment on
5805         svr4_current_sos_via_xfer_libraries fall back.
5806
5807 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
5808
5809         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
5810         it as a fallback for TYPE_IS_OPAQUE.
5811         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5812         symbols for lookup_symbol.
5813
5814 2012-05-24  John Steele Scott  <toojays@toojays.net>
5815
5816         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5817         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5818         (producer_is_gxx_lt_4_6): Move the checking and caching to...
5819         (check_producer): ... this new function, which also checks for ICC
5820         and caches the result.
5821         (producer_is_icc): New function.
5822         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5823         producer was ICC.
5824
5825 2012-05-24  Pedro Alves  <palves@redhat.com>
5826
5827         PR gdb/7205
5828
5829         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5830         (default_gdb_signal_to_target): ... this.  Add comment.
5831         (default_gdb_signal_from_host): Rename to ...
5832         (default_gdb_signal_from_target): ... this.  Add comment.
5833         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5834         (default_gdb_signal_to_target): ... this.
5835         (default_gdb_signal_from_host): Rename to ...
5836         (default_gdb_signal_from_target): ... this.
5837         * corelow.c (core_open): Adjust to naming change.  Replace comment.
5838         * gdbarch.sh (gdb_signal_from_host): Rename to ...
5839         (gdb_signal_from_target): ... this.  Adjust to
5840         default_gdb_signal_from_host naming change.  Extend comment.
5841         (gdb_signal_to_host): Rename to ...
5842         (gdb_signal_to_target): ... this.  Adjust to
5843         default_gdb_signal_to_host naming change.
5844         * gdbarch.h, gdbarch.c: Renegerate.
5845
5846 2012-05-24  Pedro Alves  <palves@redhat.com>
5847
5848         PR gdb/7205
5849
5850         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5851
5852 2012-05-24  Pedro Alves  <palves@redhat.com>
5853
5854         PR gdb/7205
5855
5856         Replace target_signal with gdb_signal throughout.
5857
5858 2012-05-24  Pedro Alves  <palves@redhat.com>
5859
5860         PR tui/14159
5861
5862         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5863         string, instead of reusing the va_list argument.
5864
5865 2012-05-24  Tom Tromey  <tromey@redhat.com>
5866
5867         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5868         Remove.
5869
5870 2012-05-23  Doug Evans  <dje@google.com>
5871
5872         * symtab.c (search_symbols): Formatting fixes.
5873         (print_symbol_info): Formatting fixes.
5874
5875         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5876         int64_t change to leb128 API.
5877         (read_encoded_value, decode_frame_entry_1): Ditto.
5878         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5879         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5880         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5881         (execute_stack_op): Ditto.
5882         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5883         (safe_read_uleb128, safe_read_sleb128): Ditto.
5884         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5885         (dwarf2_compile_expr_to_ax): Ditto.
5886         (locexpr_describe_location_piece): Ditto.
5887         (disassemble_dwarf_expression): Ditto.
5888         (locexpr_describe_location_1): Ditto.
5889
5890 2012-05-23  Stan Shebs  <stan@codesourcery.com>
5891             Kwok Cheung Yeung  <kcy@codesourcery.com>
5892
5893         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5894         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5895         (mi-cmd-info.o): New rule.
5896         * osdata.h (info_osdata_command): New declaration.
5897         * osdata.c (info_osdata_command): Change to non-static.
5898         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5899         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5900         * mi/mi-cmd-info.c: New file.
5901
5902 2012-05-23  Doug Evans  <dje@google.com>
5903
5904         * symtab.c (search_symbols): Pass NULL for file_matcher to
5905         expand_symtabs_matching if there are no files to match.
5906
5907         * gdbtypes.c (lookup_typename): Simplify.
5908
5909 2012-05-23  Pedro Alves  <palves@redhat.com>
5910
5911         * arch-utils.h (default_target_signal_to_host): Delete.
5912         * arch-utils.c (default_target_signal_to_host): Delete.
5913         * gdbarch.sh (target_signal_to_host): Remove.
5914         * gdbarch.h, gdbarch.c: Regenerate.
5915
5916 2012-05-22  Doug Evans  <dje@google.com>
5917
5918         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5919         "const gdb_byte *".
5920         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5921         (execute_cfa_program): Update to match API of leb128 functions.
5922         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5923         "const gdb_byte *".
5924         (read_unsigned_leb128, read_signed_leb128): Delete.
5925         (read_initial_length): Change type of buf argument to
5926         "const gdb_byte *".
5927         (read_encoded_value): Update to match API of leb128 functions.
5928         (decode_frame_entry): Change result to "const gdb_byte *", and
5929         similarly for "start" parameter.
5930         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
5931         (dwarf2_build_frame_info): Change local frame_ptr to
5932         "const gdb_byte *".
5933         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5934         read_uleb128, read_sleb128.  All callers updated.
5935         (safe_skip_leb128): New function.
5936         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5937         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5938         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5939         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
5940         read_uleb128, read_sleb128.
5941         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5942         (execute_stack_op): Update to match API of leb128 functions.
5943         * dwarf2expr.h: #include "leb128.h".
5944         (read_uleb128, read_sleb128): Delete.
5945         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5946         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5947         * dwarf2loc.c (debug_loc_kind): New enum.
5948         (decode_debug_loc_addresses): New function.
5949         (decode_debug_loc_dwo_addresses): New function.
5950         (dwarf2_find_location_expression): Rewrite.
5951         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5952         (locexpr_describe_location_piece): Ditto.
5953         (disassemble_dwarf_expression): Ditto.
5954         (locexpr_describe_location_1): Ditto.
5955         (loclist_describe_location): Rewrite.
5956         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5957         * dwarf2read.c (die_reader_specs): New member "buffer_end".
5958         (dwarf2_section_buffer_overflow_complaint): Renamed from
5959         dwarf2_macros_too_long_complaint.  All callers updated.
5960         (skip_leb128): Delete.
5961         (init_cu_die_reader): Initialize reader->buffer_end.
5962         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5963         (skip_form_bytes): New arg buffer_end.  All callers updated.
5964         Replace call to skip_leb128 with gdb_skip_leb128.
5965         (skip_unknown_opcode): New arg mac_end.  All callers updated.
5966         (fill_in_loclist_baton): Initialize baton->from_dwo.
5967
5968 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
5969
5970         * mips-linux-nat.c (mips_linux_read_description): Use a more
5971         verbose error message.
5972
5973 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
5974
5975         * NEWS: Add MIPS/Linux DSP support.
5976         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5977         (SIGCONTEXT_DSPCTL): New macro.
5978         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5979         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5980         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5981         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5982         (N64_SIGCONTEXT_HI3): Likewise.
5983         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5984         (N64_SIGCONTEXT_LO3): Likewise.
5985         (N64_SIGCONTEXT_DSPCTL): Likewise.
5986         (N64_SIGCONTEXT_FPCSR): Clarify definition.
5987         (mips_linux_o32_sigframe_init): Handle DSP registers.
5988         (mips_linux_n32n64_sigframe_init): Likewise.
5989
5990 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5991
5992         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5993         call to abort.
5994
5995 2012-05-22  Pedro Alves  <palves@redhat.com>
5996
5997         * target.h (store_waitstatus): Move declaration ...
5998         * inf-child.h (store_waitstatus): ... here.
5999         * target.c: Move inclusion of gdb_wait.h, and ...
6000         (store_waitstatus): ... this ...
6001         * inf-child.c: ... here.
6002         * linux-nat.c: Include inf-child.h.
6003         * rs6000-nat.c: Include inf-child.h.
6004         * spu-linux-nat.c: Include inf-child.h.
6005
6006 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6007
6008         * tracepoint.c (start_tracing): Add missing i18n markup.
6009         (stop_tracing, set_trace_user): Ditto.
6010         (set_trace_notes, set_trace_stop_notes): Ditto.
6011
6012 2012-05-21  Tom Tromey  <tromey@redhat.com>
6013
6014         PR c++/7173:
6015         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6016         types.
6017         * value.h (value_cast_pointers): Update.
6018         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6019         (value_cast): Update.
6020         (update_search_result): New function.
6021         (do_search_struct_field): New, from search_struct_field.  Check
6022         for ambiguous results.
6023         (search_struct_field): Rewrite.
6024         * infcall.c (value_arg_coerce): Update.
6025         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6026         value_cast_pointers.
6027         * ada-lang.c (ada_convert_actual): Update.
6028
6029 2012-05-21  Tom Tromey  <tromey@redhat.com>
6030
6031         * macroexp.c (macro_stringify): Terminate the string.
6032
6033 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6034
6035         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6036         Describe it.
6037         * auto-load.c (auto_load_expand_dir_vars): New function.
6038         (auto_load_safe_path_vec_update): Use it, remove the
6039         substitute_path_component call thanks to it.
6040         (auto_load_objfile_script): Remove the debug_file_directory processing.
6041         Use auto_load_expand_dir_vars, remove the substitute_path_component
6042         call thanks to it.
6043         * configure: Regenerate.
6044         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6045         path.  Escape $ also for $debugdir.
6046         (--with_auto_load_safe_path): Escape $ also for $debugdir.
6047         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6048
6049 2012-05-20  Doug Evans  <dje@google.com>
6050
6051         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6052         before use.  Check for symtab->includes == NULL before scanning it.
6053
6054 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
6055
6056         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6057
6058 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
6059
6060         * NEWS: Add microMIPS support and "set mips compression",
6061         "show mips compression" commands.
6062         * mips-tdep.h (mips_isa): New enum.
6063         (gdbarch_tdep): Add mips_isa.
6064         (mips_pc_is_mips16): Update prototype.
6065         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6066         * mips-tdep.c (mips_compression_mips16): New variable.
6067         (mips_compression_micromips): Likewise.
6068         (mips_compression_strings): Likewise.
6069         (mips_compression_string): Likewise.
6070         (is_mips16_isa, is_micromips_isa): New functions.
6071         (is_mips16_addr): Rename to...
6072         (is_compact_addr): ... this.
6073         (unmake_mips16_addr): Likewise to...
6074         (unmake_compact_addr): ... this.
6075         (make_mips16_addr): Likewise to...
6076         (make_compact_addr): ... this.
6077         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6078         functions.
6079         (mips_elf_make_msymbol_special): Handle microMIPS code.
6080         (msymbol_is_special): Rename to...
6081         (msymbol_is_mips16): ... this.
6082         (mips_make_symbol_special, mips_pc_is_mips16): Update
6083         accordingly.
6084         (msymbol_is_mips, msymbol_is_micromips): New functions.
6085         (mips16_to_32_reg): Rename to...
6086         (mips_reg3_to_reg): ... this.
6087         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6088         (mips_pc_isa): Likewise.
6089         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6090         code.
6091         (mips_fetch_instruction): Pass return status instead of printing
6092         an error message if requested.  Handle microMIPS code.  Bail out
6093         on an invalid ISA.
6094         (micromips_op): New macro.
6095         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6096         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6097         (b6s4_op, b7s3_reg): Likewise.
6098         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6099         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6100         (mips_insn_size): New function.
6101         (mips32_next_pc): Update mips_fetch_instruction call.
6102         (micromips_relative_offset7): New function.
6103         (micromips_relative_offset10): Likewise.
6104         (micromips_relative_offset16): Likewise.
6105         (micromips_pc_insn_size): Likewise.
6106         (micromips_bc1_pc): Likewise.
6107         (micromips_next_pc): Likewise.
6108         (unpack_mips16): Update mips_fetch_instruction call.
6109         (extended_mips16_next_pc): Update according to change to
6110         mips16_to_32_reg.
6111         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
6112         code.
6113         (mips16_scan_prologue): Update mips_fetch_instruction call.
6114         Update according to change to mips16_to_32_reg.
6115         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6116         (mips_insn16_frame_base_sniffer): Likewise.
6117         (micromips_decode_imm9): New function.
6118         (micromips_scan_prologue): Likewise.
6119         (mips_micro_frame_cache): Likewise.
6120         (mips_micro_frame_this_id): Likewise.
6121         (mips_micro_frame_prev_register): Likewise.
6122         (mips_micro_frame_sniffer): Likewise.
6123         (mips_micro_frame_unwind): New variable.
6124         (mips_micro_frame_base_address): New function.
6125         (mips_micro_frame_base): New variable.
6126         (mips_micro_frame_base_sniffer): New function.
6127         (mips32_scan_prologue): Update mips_fetch_instruction call.
6128         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6129         rather than for MIPS16.
6130         (mips_insn32_frame_base_sniffer): Likewise.
6131         (mips_addr_bits_remove): Handle microMIPS code.
6132         (deal_with_atomic_sequence): Rename to...
6133         (mips_deal_with_atomic_sequence): ... this.  Update the type
6134         of the variable used to hold an instruction.  Remove the ISA bit
6135         check.  Update mips_fetch_instruction call.
6136         (micromips_deal_with_atomic_sequence): New function.
6137         (deal_with_atomic_sequence): Likewise.
6138         (mips_about_to_return): Handle microMIPS code.  Update
6139         mips_fetch_instruction call.
6140         (heuristic_proc_start): Check for the standard MIPS ISA rather
6141         than for MIPS16.  Update mips_pc_is_mips16 and
6142         mips_fetch_instruction calls.  Handle microMIPS code.
6143         (mips_push_dummy_code): Handle microMIPS code.
6144         (mips_eabi_push_dummy_call): Likewise.
6145         (mips_o32_return_value): Update mips_pc_is_mips16 call.
6146         (mips_o64_push_dummy_call): Handle microMIPS code.
6147         (mips_o64_return_value): Update mips_pc_is_mips16 call.
6148         (is_delayed): Remove function.
6149         (mips_single_step_through_delay): Replace the call to is_delayed
6150         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
6151         Handle microMIPS code.
6152         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
6153         microMIPS code.
6154         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6155         call.
6156         (micromips_in_function_epilogue_p): New function.
6157         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6158         call.
6159         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6160         Handle microMIPS.
6161         (gdb_print_insn_mips): Likewise.
6162         (mips_breakpoint_from_pc): Likewise.
6163         (mips_remote_breakpoint_from_pc): New function.
6164         (mips32_instruction_has_delay_slot): Simplify making use of the
6165         updated mips_fetch_instruction interface.
6166         (micromips_instruction_has_delay_slot): New function.
6167         (mips16_instruction_has_delay_slot): Simplify making use of the
6168         updated mips_fetch_instruction interface.
6169         (mips_adjust_breakpoint_address): Check for the standard MIPS
6170         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
6171         calls.  Handle microMIPS code.
6172         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6173         (mips_skip_trampoline_code): Handle microMIPS code.
6174         (global_mips_compression): New function.
6175         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6176         file flags.  Register the microMIPS remote breakpoint handler
6177         and heuristic frame unwinder.
6178         (show_mips_compression): New function.
6179         (_initialize_mips_tdep): Add the "set mips compression" and
6180         "show mips compression" commands.
6181
6182 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
6183
6184         * ada-lang.c:
6185         * ada-tasks.c:
6186         * ada-varobj.c:
6187         * amd64-darwin-tdep.c:
6188         * arm-symbian-tdep.c:
6189         * arm-tdep.c:
6190         * avr-tdep.c:
6191         * ax-gdb.c:
6192         * bfin-linux-tdep.c:
6193         * breakpoint.c:
6194         * c-valprint.c:
6195         * cli/cli-cmds.c:
6196         * coffread.c:
6197         * cp-support.c:
6198         * cris-tdep.c:
6199         * dwarf2-frame-tailcall.c:
6200         * dwarf2-frame.c:
6201         * dwarf2expr.c:
6202         * dwarf2loc.c:
6203         * dwarf2read.c:
6204         * elfread.c:
6205         * eval.c:
6206         * expprint.c:
6207         * f-valprint.c:
6208         * frv-tdep.c:
6209         * h8300-tdep.c:
6210         * hppa-hpux-tdep.c:
6211         * hppa-tdep.c:
6212         * hppanbsd-tdep.c:
6213         * i386-nto-tdep.c:
6214         * i386-tdep.c:
6215         * i387-tdep.c:
6216         * ia64-tdep.c:
6217         * jit.c:
6218         * linespec.c:
6219         * linux-tdep.c:
6220         * lm32-tdep.c:
6221         * m2-valprint.c:
6222         * m32c-tdep.c:
6223         * m32r-rom.c:
6224         * m32r-tdep.c:
6225         * m68k-tdep.c:
6226         * m68klinux-tdep.c:
6227         * mi/mi-main.c:
6228         * microblaze-tdep.c:
6229         * mips-linux-tdep.c:
6230         * mips-tdep.c:
6231         * mn10300-tdep.c:
6232         * p-valprint.c:
6233         * parse.c:
6234         * ppc-linux-tdep.c:
6235         * ppc-sysv-tdep.c:
6236         * printcmd.c:
6237         * python/py-finishbreakpoint.c:
6238         * python/py-inferior.c:
6239         * python/py-infthread.c:
6240         * python/py-type.c:
6241         * python/python.c:
6242         * remote-fileio.c:
6243         * remote-m32r-sdi.c:
6244         * remote-mips.c:
6245         * reverse.c:
6246         * rl78-tdep.c:
6247         * rs6000-aix-tdep.c:
6248         * rs6000-tdep.c:
6249         * s390-tdep.c:
6250         * score-tdep.c:
6251         * sh64-tdep.c:
6252         * skip.c:
6253         * solib-darwin.c:
6254         * solib-dsbt.c:
6255         * solib-frv.c:
6256         * sparc-tdep.c:
6257         * spu-multiarch.c:
6258         * spu-tdep.c:
6259         * stack.c:
6260         * symfile.c:
6261         * symtab.c:
6262         * tic6x-tdep.c:
6263         * tracepoint.c:
6264         * v850-tdep.c:
6265         * valarith.c:
6266         * valprint.c:
6267         * value.c:
6268         * xcoffread.c:
6269         * xtensa-tdep.c:
6270         * ada-lang.c:
6271         * ada-tasks.c:
6272         * ada-varobj.c:
6273         * amd64-darwin-tdep.c:
6274         * arm-symbian-tdep.c:
6275         * arm-tdep.c: Delete unused variables.
6276
6277 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6278
6279         Rename $ddir to $datadir.
6280         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6281         * auto-load.c (auto_load_safe_path_vec_update)
6282         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6283         * configure: Regenerate.
6284         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6285         Likewise.  Remove the 'use $ddir' help string.
6286
6287 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6288
6289         * auto-load.c (show_auto_load_safe_path): Accept any combination of
6290         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6291
6292 2012-05-18  Tom Tromey  <tromey@redhat.com>
6293
6294         PR exp/13907:
6295         * valprint.h (struct value_print_options) <symbol_print>: New
6296         field.
6297         * valprint.c (user_print_options): Add default for symbol_print.
6298         (show_symbol_print): New function.
6299         (generic_val_print): Respect symbol_print.
6300         (_initialize_valprint): Add "print symbol" setting.
6301         * f-valprint.c (f_val_print): Respect symbol_print.
6302         * c-valprint.c (c_val_print): Respect symbol_print.
6303         * NEWS: Update.
6304         * printcmd.c (print_address_symbolic): Return int.  Ignore some
6305         zero-size symbols.
6306         (print_address_demangle): Return int.
6307         * defs.h: (print_address_symbolic): Return int.
6308         * value.h (print_address_demangle): Return int.
6309
6310 2012-05-18  Tom Tromey  <tromey@redhat.com>
6311
6312         * valprint.c (val_print_string): Don't print leading space.
6313         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6314         print space before string or vtbl.
6315         * m2-valprint.c (print_unpacked_pointer): Optionally print space
6316         before string.
6317         * jv-valprint.c (java_value_print): Print space before string.
6318         * go-valprint.c (print_go_string): Print space before string.
6319         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6320         space before string.
6321         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6322         space before string or vtbl.
6323         * auxv.c (fprint_target_auxv): Print space after address.
6324
6325 2012-05-18  Tom Tromey  <tromey@redhat.com>
6326
6327         * printcmd.c (print_address_demangle): Remove special case for 0.
6328
6329 2012-05-18  Tom Tromey  <tromey@redhat.com>
6330
6331         * printcmd.c (print_address_demangle): Add 'opts' argument.
6332         * p-valprint.c (pascal_val_print): Update.
6333         * jv-valprint.c (java_val_print): Update.
6334         * value.h: Update.
6335         * valprint.c (generic_val_print): Update.
6336         (print_function_pointer_address): Add 'options' argument.  Remove
6337         'addressprint' argument.  Update.
6338         * m2-valprint.c (print_unpacked_pointer): Update.
6339         * gnu-v3-abi.c (print_one_vtable): Update.
6340         (gnuv3_print_method_ptr): Update.
6341         * f-valprint.c (f_val_print): Update.
6342         * cp-valprint.c (cp_print_value_fields): Update.
6343         * valprint.h (print_function_pointer_address): Update.
6344         * c-valprint.c (c_val_print): Update.
6345
6346 2012-05-18  Tom Tromey  <tromey@redhat.com>
6347
6348         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6349         directly corresponding to the found psymtab.
6350         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6351         (dw2_find_pc_sect_symtab): Use it.
6352         * block.h (blockvector_contains_pc): Declare.
6353         * block.c (find_block_in_blockvector): New function.
6354         (blockvector_for_pc_sect): Use it.
6355         (blockvector_contains_pc): New function.
6356
6357 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
6358
6359         * mips-tdep.h (mips_write_pc): New prototype.
6360         * mips-tdep.c (mips_write_pc): Make external, add description.
6361         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6362         add description.
6363
6364 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
6365
6366         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6367         mips_regnum->pc.
6368         (mips_unwind_pc, mips_write_pc): Likewise.
6369         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6370         gdbarch_read_pc.
6371
6372 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
6373
6374         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6375         proc_warn, proc_error, proc_get_status, proc_flags,
6376         proc_why, proc_what, proc_nsysarg, proc_sysargs,
6377         proc_set_run_on_last_close, proc_unset_run_on_last_close,
6378         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6379         proc_stop_process, proc_wait_for_stop, proc_run_process,
6380         proc_set_traced_signals, proc_set_traced_faults,
6381         proc_set_traced_sysentry, proc_set_traced_sysexit,
6382         proc_set_held_signals, proc_get_held_signals,
6383         proc_get_traced_signals, proc_get_traced_faults,
6384         proc_get_traced_sysentry, proc_get_traced_sysexit,
6385         proc_clear_current_fault, proc_set_current_signal,
6386         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6387         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6388         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6389         proc_get_current_thread, proc_get_current_thread,
6390         proc_get_current_thread, proc_update_threads,
6391         proc_update_threads, proc_update_threads, proc_update_threads,
6392         proc_iterate_over_threads, procfs_find_new_threads,
6393         procfs_pid_to_str): Make static.  Remove advance declaration.
6394         (proc_cursig): Make static.  Conditionalized defintion on
6395         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6396         (proc_syscall, proc_set_kill_on_last_close,
6397         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6398         proc_get_pending_signals, proc_get_signal_actions,
6399         proc_trace_signal, proc_ignore_signal): Delete.
6400
6401 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
6402
6403         * coffread.c (cs_section_address): Passing proper argument for
6404         `bfd_get_section_vma'.
6405         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6406         `bfd_get_section_flags'.
6407         * remote.c (remote_trace_set_readonly_regions): Likewise, for
6408         `bfd_get_section_vma'.
6409
6410 2012-05-16  Tom Tromey  <tromey@redhat.com>
6411
6412         PR macros/13205:
6413         * macrotab.h: (macro_define_special): Declare.
6414         (enum macro_special_kind): New.
6415         (struct macro_definition) <argc, replacement>: Update comments.
6416         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6417         (macro_define_object_internal): New function.
6418         (macro_define_object): Use it.
6419         (macro_define_special): New function.
6420         (fixup_definition): New function.
6421         (macro_lookup_definition, foreach_macro_in_scope)
6422         (foreach_macro): Use fixup_definition.
6423         * macroexp.h (macro_stringify): Declare.
6424         * macroexp.c (free_buffer_return_text): New function.
6425         (stringify): Constify "arg".
6426         (macro_stringify): New function.
6427         * dwarf2read.c (macro_start_file): Call macro_define_special.
6428
6429 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
6430             Maciej W. Rozycki  <macro@mips.com>
6431
6432         * breakpoint.h (bp_location): Add related_address member.
6433         * inferior.h (get_return_value): Take a pointer to struct value
6434         instead of struct type for the function requested.
6435         * value.h (using_struct_return): Likewise.
6436         * gdbarch.sh (return_value): Take a pointer to struct value
6437         instead of struct type for the function requested.
6438         * breakpoint.c (set_breakpoint_location_function): Initialize
6439         related_address for bp_gnu_ifunc_resolver breakpoints.
6440         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6441         requested function's address to gdbarch_return_value.
6442         * eval.c (evaluate_subexp_standard): Pass the requested
6443         function's address to using_struct_return.
6444         * infcall.c (call_function_by_hand): Pass the requested
6445         function's address to using_struct_return and
6446         gdbarch_return_value.
6447         * infcmd.c (get_return_value): Take a pointer to struct value
6448         instead of struct type for the function requested.
6449         (print_return_value): Update accordingly.
6450         (finish_command_continuation): Likewise.
6451         * stack.c (return_command): Pass the requested function's
6452         address to using_struct_return and gdbarch_return_value.
6453         * value.c (using_struct_return): Take a pointer to struct value
6454         instead of struct type for the function requested.  Pass the
6455         requested function's address to gdbarch_return_value.
6456         * python/py-finishbreakpoint.c (finish_breakpoint_object):
6457         New function_value member, replacing function_type.
6458         (bpfinishpy_dealloc): Update accordingly.
6459         (bpfinishpy_pre_stop_hook): Likewise.
6460         (bpfinishpy_init): Likewise.  Record the requested function's
6461         address.
6462         * mips-tdep.c (mips_fval_reg): New enum.
6463         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6464         words put in GP registers.
6465         (mips_o64_push_dummy_call): Update a comment.
6466         (mips_o32_return_value): Take a pointer to struct value instead
6467         of struct type for the function requested and use it to check if
6468         using the MIPS16 calling convention.  Return the designated
6469         general purpose registers for floating-point values returned in
6470         MIPS16 mode.
6471         (mips_o64_return_value): Likewise.
6472         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6473         (ppc_sysv_abi_broken_return_value): Likewise.
6474         (ppc64_sysv_abi_return_value): Likewise.
6475         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6476         value instead of struct type for the function requested.
6477         * amd64-tdep.c (amd64_return_value): Likewise.
6478         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6479         * arm-tdep.c (arm_return_value): Likewise.
6480         * avr-tdep.c (avr_return_value): Likewise.
6481         * bfin-tdep.c (bfin_return_value): Likewise.
6482         * cris-tdep.c (cris_return_value): Likewise.
6483         * frv-tdep.c (frv_return_value): Likewise.
6484         * h8300-tdep.c (h8300_return_value): Likewise.
6485         (h8300h_return_value): Likewise.
6486         * hppa-tdep.c (hppa32_return_value): Likewise.
6487         (hppa64_return_value): Likewise.
6488         * i386-tdep.c (i386_return_value): Likewise.
6489         * ia64-tdep.c (ia64_return_value): Likewise.
6490         * iq2000-tdep.c (iq2000_return_value): Likewise.
6491         * lm32-tdep.c (lm32_return_value): Likewise.
6492         * m32c-tdep.c (m32c_return_value): Likewise.
6493         * m32r-tdep.c (m32r_return_value): Likewise.
6494         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6495         * m68k-tdep.c (m68k_return_value): Likewise.
6496         (m68k_svr4_return_value): Likewise.
6497         * m88k-tdep.c (m88k_return_value): Likewise.
6498         * mep-tdep.c (mep_return_value): Likewise.
6499         * microblaze-tdep.c (microblaze_return_value): Likewise.
6500         * mn10300-tdep.c (mn10300_return_value): Likewise.
6501         * moxie-tdep.c (moxie_return_value): Likewise.
6502         * mt-tdep.c (mt_return_value): Likewise.
6503         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6504         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6505         (ppc_sysv_abi_broken_return_value): Likewise.
6506         (ppc64_sysv_abi_return_value): Likewise.
6507         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6508         * rl78-tdep.c (rl78_return_value): Likewise.
6509         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6510         * rx-tdep.c (rx_return_value): Likewise.
6511         * s390-tdep.c (s390_return_value): Likewise.
6512         * score-tdep.c (score_return_value): Likewise.
6513         * sh-tdep.c (sh_return_value_nofpu): Likewise.
6514         (sh_return_value_fpu): Likewise.
6515         * sh64-tdep.c (sh64_return_value): Likewise.
6516         * sparc-tdep.c (sparc32_return_value): Likewise.
6517         * sparc64-tdep.c (sparc64_return_value): Likewise.
6518         * spu-tdep.c (spu_return_value): Likewise.
6519         * tic6x-tdep.c (tic6x_return_value): Likewise.
6520         * v850-tdep.c (v850_return_value): Likewise.
6521         * vax-tdep.c (vax_return_value): Likewise.
6522         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6523         * xtensa-tdep.c (xtensa_return_value): Likewise.
6524         * gdbarch.c: Regenerate.
6525         * gdbarch.h: Regenerate.
6526
6527 2012-05-15  Tom Tromey  <tromey@redhat.com>
6528
6529         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6530
6531 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
6532
6533         * breakpoint.c (init_breakpoint_sal): Add quotes around part
6534         of command in two error message.
6535
6536 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
6537
6538         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6539
6540 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
6541
6542         * breakpoint.c (find_condition_and_thread): Minor reformatting.
6543
6544 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6545
6546         * NEWS (show auto-load scripts-directory): Add forgotten command.
6547
6548 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6549
6550         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6551         parameters.
6552
6553 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6554
6555         * amd64-tdep.c: Include features/i386/x32.c and
6556         features/i386/x32-avx.c.
6557         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6558         initialize_tdesc_x32_avx.
6559
6560 2012-05-14  Stan Shebs  <stan@codesourcery.com>
6561
6562         Add dynamic printf.
6563         * breakpoint.h (enum bptype): New type bp_dprintf.
6564         (struct breakpoint): New field extra_string.
6565         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6566         (create_breakpoint): Add extra_string arg.
6567         * breakpoint.c (dprintf_breakpoint_ops): New.
6568         (is_breakpoint): Add bp_dprintf.
6569         (bpstat_what): Add dprintf case.
6570         (bptype_string): Ditto.
6571         (print_one_breakpoint_location): Ditto.
6572         (init_bp_location): Ditto.
6573         (bkpt_print_mention): Ditto.
6574         (dprintf_style_enums): New array.
6575         (dprintf_style): New global.
6576         (dprintf_function): New global.
6577         (dprintf_channel): New global.
6578         (update_dprintf_command_list): New function.
6579         (update_dprintf_commands): New function.
6580         (init_breakpoint_sal): Add extra_string argument, handle it.
6581         (create_breakpoint_sal): Add extra_string argument.
6582         (create_breakpoints_sal): Add extra_string argument, update callers.
6583         (find_condition_and_thread): Add extra argument.
6584         (create_breakpoint): Add extra_string argument, record it.
6585         (dprintf_command): New function.
6586         (break_command_1): Add arg to create_breakpoint call.
6587         (handle_gnu_v3_exceptions): Ditto.
6588         (trace_command): Ditto.
6589         (ftrace_command): Ditto.
6590         (strace_command): Ditto.
6591         (bkpt_print_mention): Add dprintf case.
6592         (create_breakpoint_sal_default): Add extra_string argument.
6593         (_initialize_breakpoint): Add new commands.
6594         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6595         * python/py-breakpoint.c (bppy_init): Ditto.
6596         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6597
6598 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
6599
6600         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6601
6602 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
6603
6604         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6605         unsigned long long.
6606
6607 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
6608
6609         Add a new function gdb.find_pc_line to the Python API.
6610         * NEWS (Python Scripting): Add entry about the new function.
6611         * python/python.c (gdbpy_find_pc_line): New function which
6612         implements gdb.find_pc_line.
6613         (GdbMethods): Add entry for the new function.
6614
6615 2012-05-12  Pedro Alves  <palves@redhat.com>
6616
6617         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6618         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6619
6620 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
6621
6622         * inferior.c: Include completer.h
6623         (initialize_inferiors): Set completer of add-inferior to
6624         filename_completer.
6625
6626 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6627
6628         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6629         gdbarch_ptr_bit for x32 core dump.
6630
6631 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6632
6633         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6634         and features/i386/x32-avx-linux.c.
6635
6636 2012-05-11  Stan Shebs  <stan@codesourcery.com>
6637             Kwok Cheung Yeung  <kcy@codesourcery.com>
6638
6639         * NEWS: Describe new info os commands.
6640         * common/linux-osdata.c (PID_T, TIME_T): Define.
6641         (MAX_PID_T_STRLEN): New.
6642         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
6643         MAX_PID_T_STRLEN.
6644         (command_from_pid): Add comment.  Change to use PID_T.
6645         (commandline_from_pid):  Change to use PID_T.
6646         (user_from_pid): Add comment.
6647         (get_process_owner): Add comment. Change to use PID_T and
6648         MAX_PID_T_STRLEN.
6649         (get_number_of_cpu_cores): Add comment.
6650         (get_cores_used_by_process): Add comment.  Change to use PID_T and
6651         MAX_PID_T_STRLEN.
6652         (linux_xfer_osdata_processes): Change to use PID_T and
6653         MAX_PID_T_STRLEN.
6654         (compare_processes): New function.
6655         (linux_xfer_osdata_processgroups): New function.
6656         (linux_xfer_osdata_threads): Change to use PID_T.
6657         (linux_xfer_osdata_fds): New function.
6658         (format_socket_state, print_sockets): New functions.
6659         (union socket_addr): New union.
6660         (linux_xfer_osdata_isockets): New function.
6661         (time_from_time_t, group_from_gid): New functions.
6662         (linux_xfer_osdata_shm): New function.
6663         (linux_xfer_osdata_sem): New function.
6664         (linux_xfer_osdata_msg): New function.
6665         (linux_xfer_osdata_modules): New function.
6666         (osdata_table): Add new entries.
6667         * common/buffer.c (buffer_xml_printf): Add support for long and
6668         long long format specifiers.
6669
6670 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6671
6672         * amd64-linux-tdep.h (tdesc_x32_linux): New.
6673         (tdesc_x32_avx_linux): Likewise.
6674
6675 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6676
6677         Implement multi-component --with-auto-load-dir.
6678         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6679         entries.
6680         (--with-auto-load-safe-path): Update the default value description.
6681         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6682         New.
6683         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
6684         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
6685         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
6686         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
6687         "set auto-load scripts-directory".
6688         * config.in: Regenerate.
6689         * configure: Regenerate.
6690         * configure.ac (--with-auto-load-dir): New configure option.
6691         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6692
6693 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6694
6695         Provide $ddir substitution for --with-auto-load-safe-path.
6696         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6697         entries.
6698         * auto-load.c: Include observer.h.
6699         (auto_load_safe_path_vec_update): Call substitute_path_component for
6700         each component.  New variable ddir_subst.
6701         (auto_load_gdb_datadir_changed): New function.
6702         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6703         AUTO_LOAD_SAFE_PATH.  New comment.
6704         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6705         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
6706         * config.in: Regenerate.
6707         * configure: Regenerate.
6708         * configure.ac (--auto-load-safe-path): Rename
6709         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
6710         GDB_DATADIR/auto-load.
6711         * defs.h (substitute_path_component): New declaration.
6712         * top.c: Include observer.h.
6713         (set_gdb_datadir): New function.
6714         (init_main): Install it for "set data-directory".
6715         * utils.c (substitute_path_component): New function.
6716
6717 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6718
6719         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6720         * auto-load.c (auto_load_objfile_script): Remove check for NULL
6721         DEBUG_FILE_DIRECTORY.  Handle multiple components of
6722         DEBUG_FILE_DIRECTORY.
6723
6724 2012-05-10  Tom Tromey  <tromey@redhat.com>
6725
6726         * dwarf2read.c (recursively_write_psymbols): New function.
6727         (write_psymtabs_to_index): Use it.
6728
6729         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6730         field.
6731         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6732         (load_partial_comp_unit): Update.
6733         (queue_comp_unit): Add argument 'pretend_language'.
6734         (process_queue): Update.
6735         (psymtab_to_symtab_1): Skip dependencies that have a user.
6736         (load_partial_comp_unit_reader): Give meaning to the 'data'
6737         argument.
6738         (load_full_comp_unit): Add 'pretend_language' argument.
6739         (process_full_comp_unit): Add 'pretend_language' argument.  Set
6740         language on CU.
6741         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6742         Update.
6743         (maybe_queue_comp_unit): Add 'pretend_language' argument.
6744         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6745         Update.
6746         (prepare_one_comp_unit): Add 'pretend_language' argument.
6747
6748         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6749         (struct dwarf2_per_objfile) <just_read_cus>: New field.
6750         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6751         (dw2_do_instantiate_symtab): Check whether symtab was read in
6752         before queueing.
6753         (dw2_instantiate_symtab): Add assertion.  Call
6754         process_cu_includes.
6755         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6756         (partial_symtab_p): New typedef.
6757         (set_partial_user): New function.
6758         (dwarf2_build_psymtabs_hard): Use set_partial_user.
6759         (scan_partial_symbols): Add imported CU to imported_symtabs.
6760         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6761         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6762         (get_symtab, recursively_compute_inclusions)
6763         (compute_symtab_includes, process_cu_includes)
6764         (process_imported_unit_die): New functions.
6765         (process_die) <DW_TAG_imported_unit>: New case.
6766         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6767
6768         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6769         comment.
6770         (struct partial_die_info) <locdesc>: Remove.
6771         <d>: New field.
6772         (process_psymtab_comp_unit): Add 'read_partial' argument.
6773         Update.
6774         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6775         (scan_partial_symbols): Handle DW_TAG_imported_unit.
6776         (add_partial_symbol): Update.
6777         (process_die): Handle DW_TAG_partial_unit.
6778         (read_file_scope): Update comment.
6779         (load_partial_dies): Handle DW_TAG_imported_unit.
6780         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6781         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6782
6783 2012-05-10  Tom Tromey  <tromey@redhat.com>
6784
6785         * cc-with-dwz.sh: New file.
6786
6787 2012-05-10  Tom Tromey  <tromey@redhat.com>
6788
6789         * symtab.h (struct symtab) <includes, user>: New fields.
6790         * block.h (struct block_iterator) <d, idx, which>: New fields.
6791         * block.c (initialize_block_iterator, find_iterator_symtab)
6792         (block_iterator_step, block_iter_name_step)
6793         (block_iter_match_step): New functions.
6794         (block_iterator_first, block_iterator_next)
6795         (block_iter_name_first, block_iter_name_next)
6796         (block_iter_match_first, block_iter_match_next): Rewrite.
6797         (get_block_symtab): New function.
6798
6799 2012-05-10  Tom Tromey  <tromey@redhat.com>
6800
6801         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6802         set_block_symtab.
6803         * jit.c (finalize_symtab): Use allocate_global_block,
6804         set_block_symtab.
6805         * buildsym.c (finish_block_internal): New function, from old
6806         finish_block.
6807         (finish_block): Rewrite.
6808         (end_symtab): Use finish_block_internal, set_block_symtab.
6809         * block.h (struct global_block): New.
6810         (allocate_global_block, set_block_symtab): Declare.
6811         * block.c (allocate_global_block, set_block_symtab): New
6812         functions.
6813
6814 2012-05-10  Tom Tromey  <tromey@redhat.com>
6815
6816         * psymtab.c (partial_map_expand_apply): Add assertion.
6817         (partial_map_symtabs_matching_filename): Skip included psymtabs.
6818         (psymtab_to_symtab): Find unshared psymtab.
6819         (dump_psymtab): Print including psymtabs.
6820         (recursively_search_psymtabs): New function.
6821         (expand_symtabs_matching_via_partial): Use it.
6822         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6823         fields.
6824         (enum psymtab_search_status): New.
6825
6826 2012-05-10  Tom Tromey  <tromey@redhat.com>
6827
6828         * tracepoint.c (scope_info): Update.
6829         * symtab.c (lookup_block_symbol, iterate_over_symbols)
6830         (find_pc_sect_symtab, search_symbols)
6831         (default_make_symbol_completion_list_break_on)
6832         (make_file_symbol_completion_list): Update.
6833         * symmisc.c (dump_symtab_1): Update.
6834         * stack.c (print_frame_args, iterate_over_block_locals)
6835         (print_frame_labels, iterate_over_block_arg_vars): Update.
6836         * python/py-block.c (block_object) <dict>: Remove.
6837         <block>: New field.
6838         <iter>: Change type.
6839         (blpy_iter): Update.
6840         (blpy_block_syms_iternext): Update.
6841         * psymtab.c (map_block): Use block iterators.
6842         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6843         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6844         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6845         * infrun.c (check_exception_resume): Update.
6846         * cp-support.c (make_symbol_overload_list_block): Update.
6847         * coffread.c (patch_opaque_types): Update.
6848         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6849         * block.h (struct block_iterator): New.
6850         (block_iterator_first, block_iterator_next, block_iter_name_first)
6851         (block_iter_name_next, block_iter_match_first)
6852         (block_iter_match_next): Declare.
6853         (ALL_BLOCK_SYMBOLS): Redefine.
6854         * block.c (block_iterator_first, block_iterator_next)
6855         (block_iter_name_first, block_iter_name_next)
6856         (block_iter_match_first, block_iter_match_next): New functions.
6857         * ada-lang.c (ada_add_block_symbols)
6858         (ada_make_symbol_completion_list): Use block iterator.
6859
6860 2012-05-10  Tom Tromey  <tromey@redhat.com>
6861
6862         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6863         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6864         (lookup_partial_symbol, find_last_source_symtab_from_partial)
6865         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6866         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6867         Update.
6868
6869 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
6870
6871         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6872         print-file-var-lib2.c, print-file-var-main.c and
6873         print-file-var.exp (located in gdb/testsuite/gdb.base).
6874
6875 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
6876
6877         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6878         try locating the symbol in the symbol's own objfile first, before
6879         extending the search to all objfiles.
6880         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6881         out of lookup_symbol_aux_symtabs.
6882         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6883         Replace extracted-out code by call to lookup_symbol_aux_objfile.
6884         Do not search EXCLUDE_OBJFILE.
6885         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6886         (lookup_symbol_global): Search for matches in the block's objfile
6887         first, before searching all other objfiles.
6888
6889 2012-05-10  Tristan Gingold  <gingold@adacore.com>
6890
6891         * printcmd.c (set_command): Add pre/post inc/dec.
6892
6893 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
6894
6895         * gdb.1: Document -ex option.
6896
6897 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
6898
6899         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6900         * inferior.h (AT_SYMBOL): Delete.
6901
6902 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
6903
6904         * mips-tdep.c (mips_push_dummy_code): New function.
6905         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6906         ON_STACK and install mips_push_dummy_code as our gdbarch
6907         push_dummy_code routine.
6908
6909 2012-05-09  Pedro Alves  <palves@redhat.com>
6910
6911         * target.c (set_maintenance_target_async_permitted): Rename to ...
6912         (set_target_async_command): ... this.
6913         (show_maintenance_target_async_permitted): Rename to ...
6914         (show_target_async_command): ... this.
6915         (initialize_targets): Adjust.
6916
6917 2012-05-08  Doug Evans  <dje@google.com>
6918
6919         * go-exp.y (classify_name): Add missing assignment of fields of
6920         yylval.ssym.
6921
6922 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
6923
6924         Display the ">" prompt in interactive mode while reading canned
6925         commands, even when the current interpreter is MI.
6926
6927         * interps.c (interp_set_temp): New function.
6928
6929         * interps.h (interp_set_temp): Add prototype.
6930
6931         * cli/cli-script.c (restore_interp): New cleanup function.
6932         (read_command_lines): Temporarily override the current interpreter
6933         with CLI and arrange for restoring the original one.
6934
6935 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
6936
6937         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6938
6939 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
6940
6941         * probe.c (parse_probes): Move conditional to check for
6942         debuginfo files from here...
6943         * stap-probe.c (stap_get_probes): ... to here.
6944
6945 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
6946             H.J. Lu  <hongjiu.lu@intel.com>
6947
6948         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6949         `movl %esp, %ebp' for the X32 ABI.
6950
6951 2012-05-07  Tom Tromey  <tromey@redhat.com>
6952
6953         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
6954         get_DW_TAG_name.
6955         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
6956         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
6957         (dwarf_stack_op_name): Remove.
6958         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
6959         (decode_locdesc): Use get_DW_OP_name.
6960         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6961         (dwarf2_compile_expr_to_ax): Likewise.
6962         (disassemble_dwarf_expression): Likewise.
6963         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6964
6965 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
6966
6967         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6968         (sh_linux_sigtramp_cache): New function.
6969         (sh_linux_sigreturn_init): New function.
6970         (sh_linux_rt_sigreturn_init): New function.
6971         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6972         patterns.
6973         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6974         syscall codes.
6975         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6976         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6977         (sh_linux_init_abi): Add init calls to register new tramp_frame
6978         definitions under 32-bit SH, update comments.
6979
6980 2012-05-07  Pedro Alves  <palves@redhat.com>
6981
6982         PR gdb/10952
6983
6984         * amd64-linux-tdep.c: Include glibc-tdep.h.
6985         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6986         gdbarch_skip_solib_resolver callback.
6987
6988 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6989
6990         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6991         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6992         (show_auto_load_safe_path): Check any-directory by comparison with "/".
6993         (add_auto_load_safe_path): Change the error message.
6994         (_initialize_auto_load): Change the "safe-path" help text.
6995         * configure: Regenerate
6996         * configure.ac (--without-auto-load-safe-path): Set
6997         WITH_AUTO_LOAD_SAFE_PATH to /.
6998
6999 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
7000
7001         * stap-probe.h: Do not include unecessary `probe.h'.
7002
7003 2012-05-05  Alan Modra  <amodra@gmail.com>
7004
7005         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7006         bfd_und_section_ptr.
7007         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7008         and bfd_com_section_ptr.
7009
7010 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
7011
7012         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7013
7014 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
7015
7016         * windows-nat.h (segment_register_p_ftype): New typedef.
7017         (windows_set_segment_register_p): Add declaration.
7018         * windows-nat.c (segment_register_p): New static global.
7019         (windows_set_segment_register_p): New function.
7020         (do_windows_fetch_inferior_registers): Add special handling
7021         for segment registers.
7022         * amd64-windows-nat.c: #include "amd64-tdep.h".
7023         (amd64_windows_segment_register_p): New function.
7024         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7025         * i386-windows-nat.c: #include "i386-tdep.h".
7026         (i386_windows_segment_register_p): New function.
7027         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7028
7029 2012-05-04  Tristan Gingold  <gingold@adacore.com>
7030
7031         * printcmd.c (set_command): Emit a warning if the expression is not
7032         an assignment.
7033
7034 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
7035
7036         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7037         Make static.
7038
7039 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
7040
7041         * stap-probe.c (stap_is_operator): Change declaration.
7042         (stap_get_opcode): Change return value.
7043         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7044         `stap_parse_argument_1'.
7045
7046 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
7047
7048         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7049         debug log.
7050
7051 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
7052
7053         Add two new methods global_block and static_block to gdb.Symtab
7054         objects.
7055         * NEWS (Python scripting): Add entry about the new methods.
7056         * python/py-symtab.c (stpy_global_block): New function which
7057         implements the gdb.Symtab.global_block() method.
7058         (stpy_static_block): New function which implements the
7059         gdb.Symtab.static_block() method.
7060         (symtab_object_methods): Add entries for the two new methods.
7061
7062 2012-05-03  Doug Evans  <dje@google.com>
7063
7064         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7065         files.
7066
7067 2012-05-03  Yao Qi  <yao@codesourcery.com>
7068
7069         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7070         space.
7071         (i386_process_record): Ditto.
7072
7073 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
7074
7075         * infcall.c (unwind_on_signal_p): Make static.
7076
7077 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
7078
7079         * sol-thread.c (solaris_pid_to_str): Make static.
7080         (_initialize_sol_thread): Add prototype.
7081
7082 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
7083
7084         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7085
7086 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
7087
7088         * MAINTAINERS: Remove myself.
7089
7090 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7091
7092         Fix --without-auto-load-safe-path for MS-Windows host platform.
7093         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7094
7095 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
7096
7097         * gdb_curses.h: Undefine KEY_EVENT before including curses
7098         headers.  Move "#undef MOUSE_MOVED" before any curses header
7099         inclusion.
7100
7101 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
7102
7103         * features/i386/i386-mmx-linux.c: Regenerate.
7104         * features/rs6000/powerpc-32.c: Likewise.
7105         * features/rs6000/powerpc-32l.c: Likewise.
7106         * features/rs6000/powerpc-403.c: Likewise.
7107         * features/rs6000/powerpc-403gc.c: Likewise.
7108         * features/rs6000/powerpc-405.c: Likewise.
7109         * features/rs6000/powerpc-505.c: Likewise.
7110         * features/rs6000/powerpc-601.c: Likewise.
7111         * features/rs6000/powerpc-602.c: Likewise.
7112         * features/rs6000/powerpc-603.c: Likewise.
7113         * features/rs6000/powerpc-604.c: Likewise.
7114         * features/rs6000/powerpc-64.c: Likewise.
7115         * features/rs6000/powerpc-64l.c: Likewise.
7116         * features/rs6000/powerpc-750.c: Likewise.
7117         * features/rs6000/powerpc-860.c: Likewise.
7118         * features/rs6000/powerpc-e500.c: Likewise.
7119         * features/rs6000/powerpc-e500l.c: Likewise.
7120         * features/rs6000/powerpc-isa205-32l.c: Likewise.
7121         * features/rs6000/powerpc-isa205-64l.c: Likewise.
7122         * features/rs6000/rs6000.c: Likewise.
7123
7124 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
7125
7126         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7127         variable.
7128         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7129         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7130         (stap_parse_argument) <e>: Likewise.
7131         (handle_stap_probe) <byte_order>: Likewise.
7132
7133 2012-04-30  Doug Evans  <dje@google.com>
7134
7135         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7136         init_and_read_dies_worker.  All callers updated.
7137         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
7138         replaced with init_cutu_and_read_dies.
7139         (load_partial_comp_unit): Pass 1 for use_existing_cu.
7140         (find_partial_die): Remove FIXME.  Don't free current CU.
7141
7142 2012-04-30  Sterling Augustine  <saugustine@google.com>
7143
7144         * contrib: New directory.
7145         * contrib/test_pubnames_and_indexes.py: New file.
7146
7147 2012-04-30  Doug Evans  <dje@google.com>
7148
7149         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7150         All callers updated.
7151         (init_cu_die_reader): Verify the section is non-empty.
7152         (dwarf_decode_line_header): Don't dereference section->asection
7153         until we know the section is present.
7154
7155 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
7156
7157         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7158         probes.
7159
7160 2012-04-29  Yao Qi  <yao@codesourcery.com>
7161
7162         * gdb-code-style.el: New hook gdb-markup-hook
7163         and gdb-comment-hook.
7164
7165 2012-04-28  Doug Evans  <dje@google.com>
7166
7167         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
7168         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7169         objfile->obfd.
7170         * symfile.h (dwarf2_debug_sections): New member addr.
7171         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7172         (ctx_no_get_addr_index): New function.
7173         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7174         (ctx_no_get_addr_index): Declare.
7175         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7176         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7177         (dwarf_expr_ctx_funcs): Update.
7178         (needs_get_addr_index): New function.
7179         (needs_frame_ctx_funcs): Update.
7180         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7181         * dwarf2read.c: #include "gdbcore.h".
7182         (dwarf2_per_objfile): New members addr, dwo_files.
7183         (dwarf2_elf_names): Add entry for addr.
7184         (struct dwo_section_names): New type.
7185         (dwo_section_names): New static global.
7186         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7187         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7188         old debug_types_section member updated to use this.
7189         Rename member debug_types_section to info_or_types_section,
7190         all uses updated.
7191         (signatured_type): Rename member type_offset to type_offset_in_tu,
7192         all uses updated.  New member type_offset_in_section.
7193         (struct dwo_sections): New type.
7194         (struct dwo_unit): New type.
7195         (struct dwo_file): New type.
7196         (die_reader_specs): New member dwo_file.
7197         (dwarf2_locate_sections): Watch for .debug_addr.
7198         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7199         (dwarf2_read_section): Get bfd of section from bfd's asection,
7200         instead of objfile.
7201         (create_cus_from_index): Initialize the_cu->info_or_types_section.
7202         (create_signatured_type_table_from_index): Initialize
7203         sig_type->info_or_types_section.
7204         (dw2_get_file_names): Statement lists for type units with DWO files
7205         live in the DWO file.
7206         (create_debug_types_hash_table): New function.
7207         (create_all_type_units): Rewrite.
7208         (init_cu_die_reader): New arg dwo_file, all callers updated.
7209         (init_and_read_dies_worker): Get section from
7210         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
7211         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7212         continue reading the CU/TU from there.
7213         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7214         updated.  Get section from this_cu->info_or_types_section.
7215         (create_all_comp_units): Initialize this_cu->info_or_types_section.
7216         (skip_one_die): New cases DW_FORM_GNU_addr_index,
7217         DW_FORM_GNU_str_index.
7218         (hash_dwo_file, eq_dwo_file): New functions.
7219         (allocate_dwo_file_hash_table): New function.
7220         (hash_dwo_unit, eq_dwo_unit): New functions.
7221         (allocate_dwo_unit_table): New function.
7222         (dwarf2_locate_dwo_sections): New function.
7223         (struct create_dwo_info_table_data): New type.
7224         (create_debug_info_hash_table_reader): New function.
7225         (create_debug_info_hash_table): New function.
7226         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7227         (lookup_dwo_file): New function.
7228         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7229         (free_dwo_file, free_dwo_file_cleanup): New functions.
7230         (free_dwo_file_from_slot, free_dwo_files): New functions.
7231         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7232         (dwarf2_record_block_ranges): Ditto.
7233         (read_partial_die): Ditto.
7234         (process_enumeration_scope): Update to use type_offset_in_section.
7235         (read_full_die_1): New function.
7236         (read_full_die): Rewrite.
7237         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7238         DW_FORM_GNU_str_index.
7239         (read_addr_index_1, read_addr_index): New functions.
7240         (read_addr_index_from_leb128): New function.
7241         (struct dwarf2_read_addr_index_data): New type.
7242         (dwarf2_read_addr_index_reader): New function.
7243         (dwarf2_read_addr_index): New function.
7244         (read_str_index): New function.
7245         (leb128_size): New function.
7246         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7247         If processing a type unit from a DWO file, get the line section
7248         from the DWO file.
7249         (var_decode_location): Watch for DW_OP_GNU_addr_index.
7250         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7251         DW_FORM_GNU_str_index.
7252         (lookup_die_type): Check whether section offset of type's die is
7253         known before looking it up.  Remove assert.  Condition can
7254         legimately happen for inter-cu type references.
7255         (dwarf_attr_name): Handle Fission attributes.
7256         (dwarf_form_name): Handle Fission forms.
7257         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7258         DW_FORM_GNU_str_index.
7259         (follow_die_sig): Update to use type_offset_in_section.
7260         (decode_locdesc): New case DW_OP_GNU_addr_index.
7261         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7262         DW_FORM_GNU_str_index.
7263         (cu_debug_loc_section): New function.
7264         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7265         (dwarf2_per_objfile_free): Unmap .debug_addr section.
7266         Free DWO files if present.
7267         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7268
7269         Refactor DIE reading.
7270         * dwarf2read.c (dwarf2_per_objfile): Replace members
7271         debug_info_type_hash and debug_types_type_hash with die_type_hash.
7272         (die_reader_specs): New member "die_section".  Temporarily make
7273         member "buffer" non-const, pending constifying all info_ptr uses.
7274         (die_reader_func_ftype): New typedef.
7275         (dw2_get_file_names_reader): New function.
7276         (dw2_get_file_names): Rewrite.
7277         (read_and_check_type_unit_head): Rename arg type_offset to
7278         type_offset_in_tu.
7279         (create_all_type_units): Improve debugging message.
7280         Improve dummy type unit check.
7281         (init_cu_die_reader): New arg "section".  All callers updated.
7282         (init_and_read_dies_worker): New function.
7283         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7284         (init_cutu_and_read_dies_no_follow): New function.
7285         (init_cutu_and_read_dies_simple): New function.
7286         (process_psymtab_comp_unit_reader): New function.
7287         (process_psymtab_comp_unit): Delete args section,
7288         is_debug_types_section.  Rewrite.  All callers updated.
7289         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7290         All callers updated.  Rewrite.
7291         (load_partial_comp_unit_reader): New function.
7292         (load_partial_comp_unit): Rewrite.
7293         (skip_children): New arg reader.  Delete args buffer, cu.
7294         All callers updated.
7295         (skip_one_die): New arg reader.  Delete args buffer, cu.
7296         All callers updated.
7297         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
7298         All callers updated.
7299         (load_full_comp_unit_reader): New function.
7300         (load_full_comp_unit): Rewrite.
7301         (read_comp_unit): Delete.
7302         (read_die_and_children_1): Delete, contents moved ...
7303         (read_die_and_children): ... here.
7304         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
7305         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
7306         All callers updated.
7307         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
7308         All callers updated.
7309         (find_partial_die): Rewrite load_all_dies support.
7310         (read_attribute_value): New arg reader.  Delete args abfd, cu.
7311         All callers updated.
7312         (read_attribute): New arg reader.  Delete args abfd, cu.
7313         All callers updated.
7314         (load_full_type_unit): Add assert.
7315         (read_signatured_type_reader): New function.
7316         (read_signatured_type): Rewrite.
7317         (free_stack_comp_unit): Remove call to age_cached_comp_units.
7318         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7319         All callers updated.  Set per_cu->cu = NULL after freeing it.
7320         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7321         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7322         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7323         (set_die_type): Update.
7324         (get_die_type_at_offset): Update.
7325         (read_file_scope): Call prepare_one_comp_unit.
7326         (read_type_unit_scope): Ditto.
7327         (prepare_one_comp_unit): Set producer if present.
7328
7329 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
7330
7331         * probe.c (compile_rx_or_error): Silence ARI warning about missing
7332          gettext function on `error'.
7333
7334 2012-04-27  Doug Evans  <dje@google.com>
7335
7336         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7337         is empty.
7338
7339 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7340             Tom Tromey  <tromey@redhat.com>
7341
7342         * breakpoint.c (struct breakpoint_objfile_data)
7343         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7344         <exception_probes>: New fields.
7345         (free_breakpoint_probes): New function.
7346         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7347         `_Unwind_DebugHook'.
7348         (create_exception_master_breakpoint): Likewise.
7349         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7350         * infrun.c: Including necessary header files for handling SystemTap
7351         probes.
7352         (handle_inferior_event): Handling longjmp breakpoint and exceptions
7353         via SystemTap probes.
7354         (check_exception_resume): Remove `func' argument.  Handle exception
7355         unwinding breakpoint set via a SystemTap probe.
7356         (insert_exception_resume_from_probe): New function.
7357
7358 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7359             Tom Tromey  <tromey@redhat.com>
7360             Jan Kratochvil  <jan.kratochvil@redhat.com>
7361
7362         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7363         (COMMON_OBS): Likewise.
7364         (HFILES_NO_SRCDIR): Add `probe'.
7365         * NEWS: Mention support for static and SystemTap probes.
7366         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7367         SystemTap probes' arguments parser.
7368         * arm-linux-tdep.c: Including headers needed to perform the parsing
7369         of SystemTap probes' arguments.
7370         (arm_stap_is_single_operand): New function.
7371         (arm_stap_parse_special_token): Likewise.
7372         (arm_linux_init_abi): Initializing proper fields used by SystemTap
7373         probes' arguments parser.
7374         * ax-gdb.c (require_rvalue): Removing static declaration.
7375         (gen_expr): Likewise.
7376         * ax-gdb.h (gen_expr): Declaring function.
7377         (require_rvalue): Likewise.
7378         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7379         (bkpt_probe_breakpoint_ops): New variable.
7380         (momentary_breakpoint_from_master): Set the `probe' value.
7381         (add_location_to_breakpoint): Likewise.
7382         (break_command_1): Using proper breakpoint_ops according to the
7383         argument passed by the user in the command line.
7384         (bkpt_probe_insert_location): New function.
7385         (bkpt_probe_remove_location): Likewise.
7386         (bkpt_probe_create_sals_from_address): Likewise.
7387         (bkpt_probe_decode_linespec): Likewise.
7388         (tracepoint_probe_create_sals_from_address): Likewise.
7389         (tracepoint_probe_decode_linespec): Likewise.
7390         (tracepoint_probe_breakpoint_ops): New variable.
7391         (trace_command): Using proper breakpoint_ops according to the
7392         argument passed by the user in the command line.
7393         (initialize_breakpoint_ops): Initializing breakpoint_ops for
7394         static probes on breakpoints and tracepoints.
7395         * breakpoint.h (struct bp_location) <probe>: New field.
7396         * cli-utils.c (skip_spaces_const): New function.
7397         (extract_arg): Likewise.
7398         * cli-utils.h (skip_spaces_const): Likewise.
7399         (extract_arg): Likewise.
7400         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7401         * configure.ac: Append `stap-probe.o' to be generated when ELF
7402         support is present.
7403         * configure: Regenerate.
7404         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7405         * elfread.c: Include `probe.h' and `arch-utils.h'.
7406         (probe_key): New variable.
7407         (elf_get_probes): New function.
7408         (elf_get_probe_argument_count): Likewise.
7409         (elf_evaluate_probe_argument): Likewise.
7410         (elf_compile_to_ax): Likewise.
7411         (elf_symfile_relocate_probe): Likewise.
7412         (stap_probe_key_free): Likewise.
7413         (elf_probe_fns): New variable.
7414         (elf_sym_fns): Add `sym_probe_fns' value.
7415         (elf_sym_fns_lazy_psyms): Likewise.
7416         (elf_sym_fns_gdb_index): Likewise.
7417         (_initialize_elfread): Initialize objfile cache for static
7418         probes.
7419         * gdb_vecs.h (struct probe): New forward declaration.
7420         (probe_p): New VEC declaration.
7421         * gdbarch.c: Regenerate.
7422         * gdbarch.h: Regenerate.
7423         * gdbarch.sh (stap_integer_prefix): New variable.
7424         (stap_integer_suffix): Likewise.
7425         (stap_register_prefix): Likewise.
7426         (stap_register_suffix): Likewise.
7427         (stap_register_indirection_prefix): Likewise.
7428         (stap_register_indirection_suffix): Likewise.
7429         (stap_gdb_register_prefix): Likewise.
7430         (stap_gdb_register_suffix): Likewise.
7431         (stap_is_single_operand): New function.
7432         (stap_parse_special_token): Likewise.
7433         (struct stap_parse_info): Forward declaration.
7434         * i386-tdep.c: Including headers needed to perform the parsing
7435         of SystemTap probes' arguments.
7436         (i386_stap_is_single_operand): New function.
7437         (i386_stap_parse_special_token): Likewise.
7438         (i386_elf_init_abi): Initializing proper fields used by SystemTap
7439         probes' arguments parser.
7440         * i386-tdep.h (i386_stap_is_single_operand): New function.
7441         (i386_stap_parse_special_token): Likewise.
7442         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7443         * mipsread.c (ecoff_sym_fns): Likewise.
7444         * objfiles.c (objfile_relocate1): Support relocation for static
7445         probes.
7446         * parse.c (prefixify_expression): Remove static declaration.
7447         (initialize_expout): Likewise.
7448         (reallocate_expout): Likewise.
7449         * parser-defs.h (initialize_expout): Declare function.
7450         (reallocate_expout): Likewise.
7451         (prefixify_expression): Likewise.
7452         * ppc-linux-tdep.c: Including headers needed to perform the parsing
7453         of SystemTap probes' arguments.
7454         (ppc_stap_is_single_operand): New function.
7455         (ppc_stap_parse_special_token): Likewise.
7456         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7457         probes' arguments parser.
7458         * probe.c: New file, for generic statically defined probe support.
7459         * probe.h: Likewise.
7460         * s390-tdep.c: Including headers needed to perform the parsing of
7461         SystemTap probes' arguments.
7462         (s390_stap_is_single_operand): New function.
7463         (s390_gdbarch_init): Initializing proper fields used by SystemTap
7464         probes' arguments parser.
7465         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7466         * stap-probe.c: New file, for SystemTap probe support.
7467         * stap-probe.h: Likewise.
7468         * symfile.h: Include `gdb_vecs.h'.
7469         (struct sym_probe_fns): New struct.
7470         (struct sym_fns) <sym_probe_fns>: New field.
7471         * symtab.c (init_sal): Initialize `probe' field.
7472         * symtab.h (struct probe): Forward declaration.
7473         (struct symtab_and_line) <probe>: New field.
7474         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7475         locations.
7476         (stop_tracing): Likewise.
7477         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7478
7479 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7480             Tom Tromey  <tromey@redhat.com>
7481
7482         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7483         and to compile agent expressions.
7484         * infrun.c (siginfo_make_value): New argument `ignore'.
7485         (siginfo_funcs): New struct.
7486         (_initialize_infrun): New argument when calling
7487         `create_internalvar_type_lazy'.
7488         * thread.c (thread_id_make_value): New argument `ignore'.
7489         (thread_funcs): New struct.
7490         (_initialize_thread): New argument when calling
7491         `create_internalvar_type_lazy'.
7492         * tracepoint.c (sdata_make_value): New argument `ignore'.
7493         (sdata_funcs): New struct.
7494         (_initialize_tracepoint): New argument when calling
7495         `create_internalvar_type_lazy'.
7496         * value.c (make_value): New struct.
7497         (create_internalvar_type_lazy): New argument `data'.
7498         (compile_internalvar_to_ax): New function.
7499         (value_of_internalvar): Properly handling `make_value' case.
7500         (clear_internalvar): Likewise.
7501         (show_convenience): Adding `TRY_CATCH' block.
7502         * value.h (internalvar_make_value): Delete, replace by...
7503         (struct internalvar_funcs): ... this.
7504         (create_internalvar_type_lazy) <fun>: Delete argument.
7505         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7506         (compile_internalvar_to_ax): New function.
7507         * windows-tdep.c (tlb_make_value): New argument `ignore'.
7508         (tlb_funcs): New struct.
7509         (_initialize_windows_tdep): New argument when calling
7510         `create_internalvar_type_lazy'.
7511
7512 2012-04-27  Mark Wielaard  <mjw@redhat.com>
7513
7514         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7515         see whether it is an address or a constant offset from DW_AT_low_pc.
7516         (dwarf2_record_block_ranges): Likewise.
7517         (read_partial_die): Likewise.
7518
7519 2012-04-26  Mark Wielaard  <mjw@redhat.com>
7520
7521         * MAINTAINERS (Write After Approval): Add myself to the list.
7522
7523 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
7524
7525         * proc-utils.h (proc_prettyprint_signalset): New prototype.
7526         (proc_prettyprint_signal): Likewise.
7527         (proc_prettyprint_faultset): Likewise.
7528         (proc_prettyprint_fault): Likewise.
7529         (proc_prettyprint_actionset): Likewise.
7530         (proc_prettyprint_flags): Move to new proc-flags.c section.
7531         (proc_prettyfprint_flags): New prototype.
7532         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7533         (proc_syscall, proc_cursig): Likewise.
7534         (proc_set_kill_on_last_close): Likewise.
7535         (proc_unset_kill_on_last_close): Likewise.
7536         (proc_set_watchpoint): Make static.
7537         (proc_delete_dead_threads): Likewise.
7538         (procfs_set_watchpoint): Likewise.
7539         (_initialize_procfs): Add prototype.
7540         * proc-events.c: Include proc-utils.h.
7541         (init_syscall_table): Make static.
7542         * proc-api.c (_initialize_proc_api): Add prototype.
7543         * proc-flags.c: Include proc-utils.h.
7544
7545 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
7546
7547         * configure.ac: Add AC_ARG_PROGRAM.
7548         * configure: Regenerate.
7549
7550 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7551
7552         Fix DW_AT_lower_bound defaults for DWARF-4+.
7553         * dwarf2read.c (read_subrange_type): Remove initialization of low and
7554         high.  New variable low_default_is_valid.  Implement DWARF-4+
7555         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
7556         no default by the DWARF standard.
7557
7558 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
7559             Maciej W. Rozycki  <macro@codesourcery.com>
7560
7561         * infrun.c (handle_inferior_event): Move the check for return
7562         trampolines ahead of the check for function trampolines.
7563         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7564         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7565         (mips_str_mips16_ret_stub): Likewise.
7566         (mips_str_call_fp_stub): Likewise.
7567         (mips_str_call_stub): Likewise.
7568         (mips_str_fn_stub): Likewise.
7569         (mips_str_pic): Likewise.
7570         (mips_in_frame_stub): New function.
7571         (mips_unwind_pc): Return the return address rather than the PC
7572         if the PC of an intermediate frame is inside a call thunk.
7573         (mips_is_stub_suffix): New function.
7574         (mips_is_stub_mode): Likewise.
7575         (mips_get_mips16_fn_stub_pc): Likewise.
7576         (mips_skip_mips16_trampoline_code): Update to handle all the
7577         currently generated stub types.  Don't recurse into __fn_stub
7578         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
7579         Use cooked register accesses.
7580         (mips_in_return_stub): Reintroduce function.
7581         (mips_skip_trampoline_code): Traverse trampolines recursively.
7582         (mips_gdbarch_init): Handle MIPS16 return trampolines.
7583
7584 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
7585
7586         GDB 7.4.1 released.
7587
7588 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
7589
7590         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7591         * features/arm-with-m-vfp-d16.xml: New file. Describes
7592         Cortex-M with VFPv4-sp-d16 FPU register layout.
7593         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7594         * features/arm-with-m-vfp-d16.c: New. Generated from above.
7595         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7596         (arm-register_g_packet_guesses): Add vfp-d16 guess.
7597         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7598
7599 2012-04-25  Doug Evans  <dje@google.com>
7600
7601         * cli/cli-decode.c (print_doc_line): Use stream instead of
7602         current_uiout.
7603
7604 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
7605
7606         * features/arm-with-iwmmxt.c: Regenerate.
7607         * features/arm-with-m-fpa-layout.c: Likewise.
7608         * features/arm-with-m.c: Likewise.
7609         * features/arm-with-neon.c: Likewise.
7610         * features/arm-with-vfpv2.c: Likewise.
7611         * features/arm-with-vfpv3.c: Likewise.
7612         * features/mips-dsp-linux.c: Likewise.
7613         * features/mips-linux.c: Likewise.
7614         * features/mips64-dsp-linux.c: Likewise.
7615         * features/mips64-linux.c: Likewise.
7616         * features/s390-linux32.c: Likewise.
7617         * features/s390-linux32v1.c: Likewise.
7618         * features/s390-linux32v2.c: Likewise.
7619         * features/s390-linux64.c: Likewise.
7620         * features/s390-linux64v1.c: Likewise.
7621         * features/s390-linux64v2.c: Likewise.
7622         * features/s390x-linux64.c: Likewise.
7623         * features/s390x-linux64v1.c: Likewise.
7624         * features/s390x-linux64v2.c: Likewise.
7625         * features/tic6x-c62x-linux.c: Likewise.
7626         * features/tic6x-c62x.c: Likewise.
7627         * features/tic6x-c64x-linux.c: Likewise.
7628         * features/tic6x-c64x.c: Likewise.
7629         * features/tic6x-c64xp-linux.c: Likewise.
7630         * features/tic6x-c64xp.c: Likewise.
7631         * target-descriptions.c: Only generate `field_type' and `type'
7632         variables when needed.
7633
7634 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
7635
7636         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7637
7638 2012-04-25  Doug Evans  <dje@google.com>
7639
7640         Initial pass at Go language support.
7641         * NEWS: Mention Go.
7642         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7643         go-valprint.c.
7644         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7645         (YYFILES): Add go-exp.c.
7646         (YYOBJ): Add go-exp.o.
7647         (local-maintainer-clean): Delete go-exp.c.
7648         * defs.h (enum language): Add language_go.
7649         * dwarf2read.c: #include "go-lang.h".
7650         (fixup_go_packaging): New function.
7651         (process_full_comp_unit): Call it when processing Go CUs.
7652         (dwarf2_physname): Add Go support.
7653         (read_file_scope): Handle missing language spec for GNU Go.
7654         (set_cu_language): Handle DW_LANG_Go.
7655         * go-exp.y: New file.
7656         * go-lang.h: New file.
7657         * go-lang.c: New file.
7658         * go-typeprint.c: New file.
7659         * go-valprint.c: New file.
7660         * symtab.c: #include "go-lang.h".
7661         (symbol_set_language): Handle language_go.
7662         (symbol_find_demangled_name, symbol_set_names): Ditto.
7663         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7664
7665 2012-04-24  Jim Meyering  <meyering@redhat.com>
7666
7667         avoid a few strncpy-induced buffer overruns
7668         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7669         fname and psargs before trying to concatenate.
7670         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7671         "name" before applying strchr.
7672
7673 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
7674
7675         * CONTRIBUTE: Use unified diff instead of context diff when
7676         generating patches.
7677
7678 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
7679
7680         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7681         code.  Handle JR.HB correctly.
7682
7683 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
7684
7685         * mips-tdep.c
7686         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7687         with the other MIPS16 helpers.
7688
7689 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
7690
7691         * observer.sh: Conditionally declare `args', thus cleaning up
7692         unused instances of this variable.
7693
7694 2012-04-24  Yao Qi  <yao@codesourcery.com>
7695
7696         Revert this patch to allow breakpoint always-inserted
7697         in record target.
7698         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
7699         * breakpoint.c: Include record.h.
7700         (breakpoints_always_inserted_mode): Return false when the record
7701         target is in use.
7702
7703         * breakpoint.c (iterate_over_bp_locations): New.
7704         * breakpoint.h: Declare.
7705         New typedef walk_bp_location_callback.
7706         * record.c (record_open): Call record_init_record_breakpoints.
7707         (record_sync_record_breakpoints): New.
7708         (record_init_record_breakpoints): New.
7709         * NEWS: Mention supporting breakpoint always-inserted mode in
7710         record target.
7711
7712 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
7713
7714         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7715         any thread.
7716
7717 2012-04-24  Yao Qi  <yao@codesourcery.com>
7718
7719         * breakpoint.c (ep_is_catchpoint): Renamed to ...
7720         (is_catchpoint): ... it.
7721         (print_one_breakpoint_location): Caller update.
7722         * breakpoint.h: Update declaration.
7723
7724 2012-04-23  David S. Miller  <davem@davemloft.net>
7725
7726         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7727
7728 2012-04-23  Tom Tromey  <tromey@redhat.com>
7729
7730         * buildsym.c (add_free_pendings): Remove.
7731         * buildsym.h (add_free_pendings): Remove.
7732
7733 2012-04-23  Doug Evans  <dje@google.com>
7734
7735         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7736         attr.u.unsnd instead of attr.u.addr.
7737         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7738         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7739         DW_FORM_ref_udata.
7740         (dump_die_shallow): Update cases DW_FORM_ref_addr,
7741         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
7742         DW_FORM_ref_udata.
7743         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7744
7745 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
7746
7747         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7748         (mips_o32_return_value): Likewise.
7749         (mips_o64_return_value): Likewise.
7750
7751 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
7752
7753         * ada-lang.c (ada_evaluate_subexp): Add cases for
7754         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7755         their treatment in eval.c.
7756
7757 2012-04-21  David S. Miller  <davem@davemloft.net>
7758
7759         * sparc-tdep.c (X_DISP10): Define.
7760         (sparc_analyze_control_transfer): Handle compare-and-branch.
7761
7762 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
7763
7764         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7765         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7766
7767 2012-04-20  Nigel Stephens  <nigel@mips.com>
7768             Maciej W. Rozycki  <macro@codesourcery.com>
7769
7770         * mips-tdep.c (mips_float_register_p): New function.
7771         (mips_convert_register_float_case_p): Use mips_float_register_p.
7772         (mips_register_type): Likewise.
7773         (mips_print_register): Likewise.
7774         (print_gp_register_row): Likewise.
7775         (mips_print_registers_info): Likewise.
7776
7777 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
7778
7779         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7780         of mips16 symbols.
7781
7782 2012-04-20  Andrew Pinski  <apinski@cavium.com>
7783
7784         * MAINTAINERS (Write After Approval): Add myself to the list.
7785
7786 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7787
7788         * MAINTAINERS: Update my e-mail address.
7789
7790 2012-04-20  Pedro Alves  <palves@redhat.com>
7791
7792         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7793         $srcdir.
7794         * configure: Regenerate.
7795
7796 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7797
7798         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
7799         declaration.
7800         * gdb_vecs.h: Declare `const_char_ptr' VEC.
7801
7802 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7803
7804         Fix compilation compatibility with python-2.4
7805         * python/py-type.c (convert_field): Cast ADDRSTRING for
7806         PyObject_SetAttrString as non-const.  New comment.
7807
7808 2012-04-19  Tom Tromey  <tromey@redhat.com>
7809
7810         * top.c (quit_target): Use all_cleanups.
7811         * main.c (captured_command_loop): Use all_cleanups.
7812         * exceptions.c (throw_exception): Use all_cleanups.
7813
7814 2012-04-19  Pedro Alves  <palves@redhat.com>
7815
7816         * Makefile.in (GNULIB_BUILDDIR): New.
7817         (LIBGNU, INCGNU, GNULIB_H): Adjust.
7818         (SUBDIRS): Add $(GNULIB_BUILDDIR).
7819         (CLEANDIRS). Remove gnulib/import.
7820         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7821         (all-lib): Ditto.
7822         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7823         (gnulib/import/Makefile): Replace gnulib/import with
7824         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
7825         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7826         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
7827         acx_configure_dir.m4.
7828         * acinclude.m4: Include acx_configure_dir.m4.
7829         * acx_configure_dir.m4: New file.
7830         * aclocal.m4: Regenerate.
7831         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7832         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
7833         (GNULIB): New variable.
7834         (GNULIB_STDINT_H): Adjust.
7835         (AC_OUTPUT): Don't output gnulib/Makefile.
7836         * gdb/defs.h: Include build-gnulib/config.h.
7837         * aclocal.m4: Regenerate.
7838         * config.in: Regenerate.
7839         * configure: Regenerate.
7840
7841         * gnulib/Makefile.in: New file.
7842         * gnulib/configure.ac: New file.
7843         * gnulib/aclocal.m4: New file.
7844         * gnulib/config.in: New file.
7845         * gnulib/configure: New file.
7846         * gnulib/: Re-run gnulib-tool to adjust.
7847
7848 2012-04-19  Doug Evans  <dje@google.com>
7849
7850         * cleanups.h (struct cleanup): Move to cleanups.c.
7851         (make_cleanup_dtor_ftype): New typedef.
7852         (make_cleanup_dtor): Use it.
7853         (ALL_CLEANUPS): Replace with ...
7854         (all_cleanups): ... this.  Declare.  All uses updated.
7855         * cleanups.c: #include "gdb_assert.h".
7856         (sentinel_cleanup): New static global.
7857         (SENTINEL_CLEANUP): Define.
7858         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7859         (make_my_cleanup2): Assert result is non-NULL.
7860         (all_cleanups): New function.
7861         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7862         of NULL.
7863
7864 2012-04-19  Pedro Alves  <palves@redhat.com>
7865
7866         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7867         Adjust paths to gnulib imported files.
7868
7869 2012-04-19  Pedro Alves  <palves@redhat.com>
7870
7871         * gnulib/: Move whole directory ...
7872         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7873         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7874         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7875         (aclocal_m4_deps): Adjust.
7876         * aclocal.m4: Regenerate.
7877         * configure: Regenerate.
7878         * configure.ac: Adjust AC_OUTPUT output.
7879
7880 2012-04-19  Yao Qi  <yao@codesourcery.com>
7881
7882         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7883         (vec.o): New rule.
7884         * vec.c: Move it ...
7885         * common/vec.c: ... here.
7886         * vec.h: Move it ...
7887         * common/vec.h: ... here.
7888
7889 2012-04-19  Yao Qi  <yao@codesourcery.com>
7890
7891         * gdb-code-style.el: New.
7892
7893 2012-04-18  Pedro Alves  <palves@redhat.com>
7894
7895         Update gnulib from latest git.
7896         (639ea5ae15e39fe48d43e04864b2997301e4b969)
7897
7898         * gnulib/Makefile.am: Update.
7899         * gnulib/dummy.c: Update.
7900         * gnulib/extra/arg-nonnull.h: Update.
7901         * gnulib/extra/c++defs.h: Update.
7902         * gnulib/extra/update-copyright: Update.
7903         * gnulib/extra/warn-on-use.h: Update.
7904         * gnulib/inttypes.in.h: Update.
7905         * gnulib/m4/00gnulib.m4: Update.
7906         * gnulib/m4/extensions.m4: Update.
7907         * gnulib/m4/gnulib-cache.m4: Update.
7908         * gnulib/m4/gnulib-common.m4: Update.
7909         * gnulib/m4/gnulib-comp.m4: Update.
7910         * gnulib/m4/gnulib-tool.m4: Update.
7911         * gnulib/m4/include_next.m4: Update.
7912         * gnulib/m4/inttypes-pri.m4: Update.
7913         * gnulib/m4/inttypes.m4: Update.
7914         * gnulib/m4/longlong.m4: Update.
7915         * gnulib/m4/memchr.m4: Update.
7916         * gnulib/m4/memmem.m4: Update.
7917         * gnulib/m4/mmap-anon.m4: Update.
7918         * gnulib/m4/multiarch.m4: Update.
7919         * gnulib/m4/onceonly.m4: Update.
7920         * gnulib/m4/stddef_h.m4: Update.
7921         * gnulib/m4/stdint.m4: Update.
7922         * gnulib/m4/string_h.m4: Update.
7923         * gnulib/m4/warn-on-use.m4: Update.
7924         * gnulib/m4/wchar_h.m4: Update.
7925         * gnulib/m4/wchar_t.m4: Update.
7926         * gnulib/m4/wint_t.m4: Update.
7927         * gnulib/memchr.c: Update.
7928         * gnulib/memmem.c: Update.
7929         * gnulib/stddef.in.h: Update.
7930         * gnulib/stdint.in.h: Update.
7931         * gnulib/str-two-way.h: Update.
7932         * gnulib/string.in.h: Update.
7933         * gnulib/wchar.in.h: Update.
7934
7935         * gnulib/extra/arg-nonnull.h: Delete.
7936         * gnulib/extra/c++defs.h: Delete.
7937         * gnulib/extra/warn-on-use.h: Delete.
7938         * gnulib/m4/wchar_h.m4: Delete.
7939         * gnulib/m4/wint_t.m4: Delete.
7940         * gnulib/wchar.in.h: Delete.
7941
7942         * gnulib/extra/snippets/arg-nonnull.h: New.
7943         * gnulib/extra/snippets/c++defs.h: New.
7944         * gnulib/extra/snippets/warn-on-use.h: New.
7945
7946         * aclocal.m4: Regenerate.
7947         * config.in: Regenerate.
7948         * configure: Regenerate.
7949         * gnulib/Makefile.in: Regenerate.
7950
7951 2012-04-18  Pedro Alves  <palves@redhat.com>
7952
7953         Reimport the update-copyright module from gnulib
7954         (250b80067c1e1d8faa0c42fb572f721975b929c5).
7955
7956         * configure: Regenerate.
7957         * gnulib/Makefile.am: Update.
7958         * gnulib/Makefile.in: Regenerate.
7959         * gnulib/extra/update-copyright: Update.
7960         * gnulib/m4/gnulib-cache.m4: Update.
7961         * gnulib/m4/gnulib-comp.m4: Update.
7962
7963 2012-04-18  Tristan Gingold  <gingold@adacore.com>
7964
7965         * configure.ac (aix): Put -lpthread into libs.
7966         * configure: Regenerate.
7967
7968 2012-04-18  Tom Tromey  <tromey@redhat.com>
7969
7970         * linespec.c (convert_linespec_to_sals): Don't use
7971         SYMBOL_OBJ_SECTION.
7972         (compare_msymbols): Arguments are minsym_and_objfile, not
7973         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
7974
7975 2012-04-18  Pedro Alves  <palves@redhat.com>
7976
7977         Revert gnulib/ part of:
7978         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
7979         Copyright year update in most files (performed by copyright.sh).
7980
7981 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7982
7983         Fix 64-bit constants on 32-bit hosts.
7984         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7985         from unsigned long to ULONGEST.
7986         (read_signed_leb128): Change declaration return type from long to
7987         LONGEST.
7988         (dwarf2_const_value_attr): Change declaration parameter value from long
7989         to LONGEST.
7990         (dwarf2_compute_name): Change variable value from long to LONGEST.
7991         (read_unsigned_leb128): Change return type, variable result and some
7992         casts from unsigned long to ULONGEST.
7993         (read_signed_leb128): Change return type, variable result and some
7994         casts from long to LONGEST.
7995         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7996         value from long to LONGEST.
7997         (dwarf2_const_value): Change variable value from long to LONGEST.
7998         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7999         plongest and hex_string.
8000         * symtab.h (struct general_symbol_info): Change ivalue from long to
8001         LONGEST, remove the comment.
8002         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8003         Change SYMBOL_VALUE format strings to use plongest and hex_string.
8004
8005 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8006
8007         PR symtab/7259:
8008         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8009         * ada-lang.c (ada_discrete_type_high_bound)
8010         (ada_discrete_type_low_bound): Fix function comment.  Use
8011         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8012         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8013         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8014         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8015         Use TYPE_FIELD_ENUMVAL.
8016         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8017         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8018         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8019         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
8020         TYPE_CODE_ENUM.
8021         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8022         * dwarf2read.c (process_enumeration_scope): Likewise.
8023         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8024         field.bitpos.
8025         (class StructMainTypePrettyPrinter): Support also
8026         FIELD_LOC_KIND_ENUMVAL.
8027         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8028         TYPE_CODE_ENUM.
8029         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8030         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8031         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8032         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
8033         field enumval.
8034         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8035         accommodate enumval.
8036         (struct call_site): Adjust loc_kind to accommodate enumval.
8037         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8038         (TYPE_FIELD_ENUMVAL): New macros.
8039         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8040         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8041         TYPE_CODE_ENUM.
8042         * p-typeprint.c (pascal_type_print_base): Likewise.
8043         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8044         enumval.
8045         * python/lib/gdb/types.py (make_enum_dict): Likewise.
8046         * python/py-type.c (convert_field): New variable addrstring.  Use
8047         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8048         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8049         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8050         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8051         TYPE_CODE_ENUM.
8052         * valprint.c (generic_val_print): Likewise.
8053
8054 2012-04-17  Doug Evans  <dje@google.com>
8055
8056         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8057
8058         * dwarf2read.c: Whitespace fixes.
8059         (lookup_signatured_type): Tweak comment.
8060         (get_die_type_at_offset): Fix comment.
8061
8062 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
8063
8064         * xcoffread.c (xcoff_secnum_to_sections): New function.
8065         (secnum_to_section, secnum_to_bfd_section): Reimplement
8066         using xcoff_secnum_to_sections.  Rename "secnum" parameter
8067         into "n_scnum".
8068         (RECORD_MINIMAL_SYMBOL): Delete.
8069         (record_minimal_symbol): New function.
8070         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8071         by call to record_minimal_symbol and set misc_func_recorded
8072         to 1.  Set last_csect_sec to the XCOFF section index instead
8073         of GDB's section_offset index.  Update calls to
8074         prim_record_minimal_symbol_and_info to pass the BFD section
8075         as well.
8076
8077 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
8078
8079         * xcoffread.c (read_xcoff_symtab): Delete variables
8080         last_csect_val and last_csect_sec and associated code.
8081
8082 2012-04-17  Doug Evans  <dje@google.com>
8083
8084         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8085         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8086         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8087         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8088
8089         * cleanups.h: New file.
8090         * cleanups.c: New file.
8091         * Makefile.in (SFILES): Add cleanups.c.
8092         (HFILES_NO_SRCDIR): Add cleanups.h.
8093         (COMMON_OBS): Add cleanups.o.
8094         * defs.h (struct cleanup): Moved to cleanups.h.
8095         (do_cleanups,do_final_cleanups): Ditto.
8096         (discard_cleanups,discard_final_cleanups): Ditto
8097         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8098         (save_cleanups,save_final_cleanups): Ditto.
8099         (restore_cleanups,restore_final_cleanups): Ditto.
8100         (null_cleanup): Ditto.
8101         (make_my_cleanup,make_my_cleanup2): Ditto.
8102         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8103         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8104         (do_cleanups,do_final_cleanups): Ditto.
8105         (discard_cleanups,discard_final_cleanups): Ditto
8106         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8107         (save_cleanups,save_final_cleanups): Ditto.
8108         (restore_cleanups,restore_final_cleanups): Ditto.
8109         (null_cleanup): Ditto.
8110         (make_my_cleanup,make_my_cleanup2): Ditto.
8111         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8112
8113         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8114         make_my_cleanup.
8115         (make_cleanup_dyn_string_delete): Ditto.
8116         (make_cleanup_ui_file_delete): Ditto.
8117         (make_cleanup_ui_out_redirect_pop): Ditto.
8118         (make_cleanup_free_section_addr_info): Ditto.
8119         (make_cleanup_restore_integer): Ditto.
8120         (make_cleanup_unpush_target): Ditto.
8121         (make_cleanup_value_free_to_mark): Ditto.
8122         (make_cleanup_value_free): Ditto.
8123         (make_cleanup_free_so): Ditto.
8124
8125 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8126
8127         New option "set debug auto-load".
8128         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8129         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8130         (auto_load_safe_path_vec_update)
8131         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8132         if DEBUG_AUTO_LOAD.
8133         (file_is_auto_load_safe): New parameters debug_fmt and ....
8134         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8135         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8136         caller by explanatory string.
8137         (_initialize_auto_load): Register "set debug auto-load".
8138         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8139         and ....
8140         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8141         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8142         by explanatory string.
8143         * main.c (captured_main): Likewise.
8144         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8145         (source_section_scripts): Likewise.
8146
8147 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8148
8149         New option "set auto-load safe-path".
8150         * NEWS: New commands "set auto-load safe-path"
8151         and "show auto-load safe-path".
8152         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8153         (auto_load_safe_path, auto_load_safe_path_vec)
8154         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8155         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8156         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8157         (source_gdb_script_for_objfile): New variable is_safe.  Call
8158         file_is_auto_load_safe.  Return if it is not.
8159         (struct loaded_script): New field loaded.
8160         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
8161         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
8162         output "Missing" to "No".
8163         (_initialize_auto_load): New variable cmd.  Initialize
8164         auto_load_safe_path.  Register "set auto-load safe-path",
8165         "show auto-load safe-path" and "add-auto-load-safe-path".
8166         * auto-load.h (maybe_add_script): Add parameter loaded.
8167         (file_is_auto_load_safe): New declaration.
8168         * config.in: Regenerate.
8169         * configure: Regenerate.
8170         * configure.ac: New parameters --with-auto-load-safe-path
8171         and --without-auto-load-safe-path.
8172         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8173         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8174         * main.c (captured_main): Check file_is_auto_load_safe for
8175         LOCAL_GDBINIT.
8176         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8177         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
8178         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
8179         not.
8180
8181 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8182
8183         auto-load: Implementation.
8184         * NEWS: New descriptions for "info auto-load",
8185         "info auto-load gdb-scripts", "info auto-load python-scripts",
8186         "info auto-load local-gdbinit" and "info auto-load libthread-db".
8187         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8188         and "show auto-load-scripts".  New description for "set auto-load",
8189         "show auto-load", "set auto-load gdb-scripts",
8190         "show auto-load gdb-scripts", "set auto-load python-scripts",
8191         "show auto-load python-scripts", "set auto-load local-gdbinit",
8192         "show auto-load local-gdbinit", "set auto-load libthread-db" and
8193         "show auto-load libthread-db".
8194         * auto-load.c: Remove include python/python-internal.h.  Add includes
8195         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8196         cli/cli-setshow.h.
8197         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8198         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8199         (gdbpy_global_auto_load): Rename to ...
8200         (global_auto_load): ... here.
8201         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8202         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8203         (script_language_gdb, source_gdb_script_for_objfile): New.
8204         (struct loaded_script): New field language.
8205         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8206         LANGUAGE.
8207         (maybe_add_script): Add parameter language.  Drop redundant
8208         entry.full_path initialization.  Initialize entry.language and
8209         (*slot)->language.
8210         (auto_load_objfile_script): Change parameter suffix to language.
8211         Remove the call of maybe_add_script.
8212         Call language->source_script_for_objfile.
8213         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8214         New.
8215         (collect_matching_scripts): Adjust it for
8216         struct collect_matching_scripts_data.
8217         (auto_load_info_scripts_pattern_nl): New variable.
8218         (info_auto_load_scripts): Rename to ...
8219         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
8220         for struct collect_matching_scripts_data.
8221         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8222         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8223         (auto_load_show_cmdlist_get, info_auto_load_cmd)
8224         (auto_load_info_cmdlist_get): New.
8225         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8226         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
8227         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8228         "info auto-load local-gdbinit".
8229         * auto-load.h (struct script_language): New.
8230         (gdbpy_global_auto_load): Rename to ...
8231         (global_auto_load): ... here.
8232         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8233         (auto_load_local_gdbinit_loaded): New declarations.
8234         (maybe_add_script): New parameter language.
8235         (auto_load_objfile_script): Change parameter suffix to language.
8236         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8237         (auto_load_info_scripts, auto_load_set_cmdlist_get)
8238         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8239         declarations.
8240         * linux-thread-db.c: Include auto-load.h and ctype.h.
8241         (auto_load_thread_db, show_auto_load_thread_db): New.
8242         (struct thread_db_info): New field filename.
8243         (delete_thread_db_info): Call xfree for FILENAME.
8244         (try_thread_db_load): Initialize FILENAME.
8245         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8246         if !AUTO_LOAD_THREAD_DB.
8247         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8248         (_initialize_thread_db): Install auto_load_thread_db
8249         as "set auto-load libthread-db" and install info_auto_load_libthread_db
8250         as "info auto-load libthread-db".
8251         * main.c (captured_main): Rename gdbpy_global_auto_load to
8252         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8253         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8254         (print_gdb_help): Extend the help for 'local init file'.
8255         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8256         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8257         (auto_load_scripts): Rename to ...
8258         (auto_load_python_scripts): ... here, update the comment.
8259         (gdbpy_load_auto_script_for_objfile): New declaration.
8260         (show_auto_load_python_scripts, script_language_python)
8261         (gdbpy_load_auto_script_for_objfile): New.
8262         (source_section_scripts): Refactor the code.
8263         (load_auto_scripts_for_objfile): Rename to ...
8264         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8265         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8266         (info_auto_load_python_scripts): New.
8267         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8268         Rename "set auto-load-scripts" to "set auto-load python-scripts".
8269         Register "set auto-load-scripts" as its deprecated alias.  Register
8270         "info auto-load python-scripts".  Register "info auto-load-scripts" as
8271         its deprecated alias.
8272         (load_auto_scripts_for_objfile): Rename to ...
8273         (gdbpy_load_auto_scripts_for_objfile): ... here.
8274         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8275         (gdbpy_load_auto_scripts_for_objfile): ... here.
8276
8277 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8278
8279         auto-load: Move files.
8280         * Makefile.in (SFILES): Add auto-load.c.
8281         (HFILES_NO_SRCDIR): Add auto-load.h.
8282         (COMMON_OBS): Add auto-load.o.
8283         (distclean): Change .gdbinit for gdb-gdb.gdb.
8284         * auto-load.c: New file, with parts from python/py-auto-load.c.
8285         * auto-load.h: New file, with parts from python/python.h.
8286         * configure: Regenerate.
8287         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8288         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8289         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8290         * main.c: Include auto-load.h.
8291         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8292         command.h, observer.h and progspace.h to auto-load.c.  Add include
8293         auto-load.h.
8294         (gdbpy_global_auto_load, struct auto_load_pspace_info)
8295         (struct loaded_script, auto_load_pspace_data)
8296         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8297         (hash_loaded_script_entry, eq_loaded_script_entry)
8298         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8299         (maybe_add_script): Move to auto-load.c.
8300         (source_section_scripts): Change maybe_add_script parameters passing,
8301         use script_not_found_warning_print.
8302         (clear_section_scripts, auto_load_objfile_script)
8303         (auto_load_new_objfile, loaded_script_ptr)
8304         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8305         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8306         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8307         auto_load_new_objfile and info_auto_load_scripts initizations to
8308         auto-load.c.
8309         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8310
8311 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8312
8313         Code cleanup.
8314         * charset.c (find_charset_names): Remove variables ix and elt.
8315         Use free_char_ptr_vec.
8316         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8317         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
8318         debugdir_end.  New variable debugdir_len.
8319         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8320         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8321         declarations.
8322         * progspace.c (clear_program_space_solib_cache): Remove variables ix
8323         and elt.  Use free_char_ptr_vec.
8324         * source.c (add_path): Remove variables argv, arg and argv_index.
8325         New variables dir_vec, back_to, ix and name.
8326         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
8327         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
8328         no longer expecting DIRNAME_SEPARATOR.
8329         (openp): Remove variable p, p1 and len.  New variables dir_vec,
8330         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
8331         no longer expecting DIRNAME_SEPARATOR.
8332         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8333         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
8334         debugdir_end.
8335         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8336         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8337         (dirnames_to_char_ptr_vec): New functions.
8338
8339 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8340
8341         Code cleanup.
8342         * source.c (add_path): Remove always true conditional 'p == 0' and
8343         unindent its code block.
8344
8345 2012-04-17  Pedro Alves  <palves@redhat.com>
8346
8347         * gdbtypes.h (FIELD_BITPOS): Rename to ...
8348         (FIELD_BITPOS_LVAL): ... this.
8349         (FIELD_BITPOS): New.
8350         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8351         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8352         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8353         SET_FIELD_BITPOS.
8354         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8355         SET_FIELD_BITPOS.
8356         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8357         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8358         * target-descriptions.c (tdesc_gdb_type): Adjust to use
8359         SET_FIELD_BITPOS.
8360
8361 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8362
8363         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8364         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8365         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8366         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8367         * jv-lang.c (java_link_class_type): Likewise, once.
8368         * stabsread.c (read_enum_type): Likewise.
8369
8370 2012-04-16  Yao Qi  <yao@codesourcery.com>
8371
8372         * common/agent.c (agent_run_command): Add one more parameter `len'.
8373         Update callers.
8374         * common/agent.h: Update declaration.
8375         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8376         Update.
8377         (linux_child_static_tracepoint_markers_by_strid): Ditto.
8378
8379 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
8380
8381         PR mi/13393
8382         * value.c (value_actual_type): New function.
8383         * value.h (value_actual_type): New declaration.
8384         * varobj.c (update_type_if_necessary): New function.
8385         (varobj_create): Call value_actual_type instead of
8386         value_type.
8387         (install_dynamic_child): distinct changed and type changed MI variable
8388         objects.
8389         (update_dynamic_varobj_children): Updated for install_dynamic_child
8390         change.  All callers updated.
8391         (varobj_update): Support for MI variable object type change if
8392         the value changed and RTTI is used to determine the type.
8393         (create_child_with_value): Call value_actual_type instead of
8394         value_type.
8395         (adjust_value_for_child_access): Extended with a new parameter which
8396         specify whether the given value should be casted to enclosing type.
8397         All callers updated.
8398
8399 2012-04-14  Yao Qi  <yao@codesourcery.com>
8400
8401         Import gnulib module inttypes from git
8402         (250b80067c1e1d8faa0c42fb572f721975b929c5)
8403         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8404         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8405         gnulib/m4/inttypes-pri.m4
8406         * aclocal.m4, config.in, configure: Regenerated.
8407         * gnulib/Makefile.am: Update.
8408         * gnulib/Makefile.in: Update.
8409         * gnulib/m4/gnulib-cache.m4: Update.
8410         * gnulib/m4/gnulib-comp.m4: Update.
8411         * gnulib/inttypes.in.h: New.
8412         * gnulib/m4/inttypes-pri.m4: New.
8413         * gnulib/m4/inttypes.m4: New.
8414
8415 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
8416
8417         * infrun.c (resume): Update PC address to the real PC after
8418         preparing to do displaced stepping.
8419
8420 2012-04-12  Doug Evans  <dje@google.com>
8421
8422         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8423         All callers updated.
8424
8425 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
8426
8427         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8428
8429 2012-04-12  Doug Evans  <dje@google.com>
8430
8431         * dwarf2read.c (create_all_type_units): Renamed from
8432         create_debug_types_hash_table.  All callers updated.
8433
8434         * dwarf2read.c (create_signatured_type_table_from_index): Rename
8435         local type_sig to sig_type, type_offset to type_offset_in_tu.
8436         (hash_signatured_type): Renamed from hash_type_signature,
8437         all callers updated.
8438         (eq_signatured_type): Renamed from eq_type_signature,
8439         all callers updated.
8440         (create_debug_types_hash_table): Rename local type_sig to sig_type.
8441         (process_enumeration_scope): Ditto.
8442         (lookup_signatured_type_at_offset): Ditto.
8443         (load_full_type_unit, read_signatured_type): Ditto.
8444
8445 2012-04-12  Yao Qi  <yao@codesourcery.com>
8446
8447         * remote.c (async_remote_interrupt): Correct function name in
8448         debug message.
8449         (async_remote_interrupt_twice): Ditto.
8450
8451 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
8452
8453         * source.c (find_and_open_source): Consistently pass resulting
8454         full path through xfullpath.
8455
8456 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8457
8458         Provide more specific displaced-stepping memory error message.
8459         * infrun.c (displaced_step_prepare): New variable status.  Call
8460         target_read_memory instead of read_memory, provide more specific
8461         error message.
8462
8463 2012-04-11  Tristan Gingold  <gingold@adacore.com>
8464
8465         PR gdb/13901
8466         * darwin-nat.c (darwin_execvp): Revert previous patch.
8467
8468 2012-04-11  Tristan Gingold  <gingold@adacore.com>
8469
8470         PR gdb/13901
8471         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8472         in case of change.
8473
8474 2012-04-11  Tristan Gingold  <gingold@adacore.com>
8475
8476         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8477         warning.
8478
8479 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
8480
8481         New command 'explore' which helps explore values and types in
8482         scope.
8483         * NEWS: Add an entry about the new 'explore' command.
8484         * data-directory/Makefile.in: Add gdb/command/explore.py
8485         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8486         command using the GDB Python API.
8487
8488 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
8489
8490         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8491         extension in jump target calculation.
8492
8493 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
8494
8495         * mips-tdep.c (mips32_next_pc): Handle JALX.
8496
8497 2012-04-10  Yao Qi  <yao@codesourcery.com>
8498
8499         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8500
8501 2012-04-10  Yao Qi  <yao@codesourcery.com>
8502
8503         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8504         and gnulib/m4/gnulib-tool.m4.
8505
8506 2012-04-10  Doug Evans  <dje@google.com>
8507
8508         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8509         (load_partial_dies): Clarify comment.
8510         (find_partial_die): Support rereading type units.
8511         Clarify CU handling, if we know offset is in CU, don't search for the
8512         containing CU.  Add comment regarding memory waste.
8513
8514 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8515
8516         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8517         i386/x32-avx and i386/x32-avx-linux.
8518         (i386/x32-expedite): New.
8519         (i386/x32-linux-expedite): Likewise.
8520         (i386/x32-avx-expedite): Likewise.
8521         (i386/x32-avx-linux-expedite): Likewise.
8522         ($(outdir)/i386/x32.dat): Likewise.
8523         ($(outdir)/i386/x32-linux.dat): Likewise.
8524         ($(outdir)/i386/x32-avx.dat): Likewise.
8525         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8526
8527         * features/i386/x32-avx-linux.xml: New file.
8528         * features/i386/x32-avx.xml: Likewise.
8529         * features/i386/x32-core.xml: Likewise.
8530         * features/i386/x32-linux.xml: Likewise.
8531         * features/i386/x32.xml: Likewise.
8532
8533         * features/i386/x32-avx-linux.c: New.  Generated.
8534         * features/i386/x32-avx.c: Likewise.
8535         * features/i386/x32-linux.c: Likewise.
8536         * features/i386/x32.c: Likewise.
8537         * regformats/i386/x32-avx-linux.dat: Likewise.
8538         * regformats/i386/x32-avx.dat: Likewise.
8539         * regformats/i386/x32-linux.dat: Likewise.
8540         * regformats/i386/x32.dat: Likewise.
8541
8542 2012-04-10  Tristan Gingold  <gingold@adacore.com>
8543
8544         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8545         code to kill the inferior.
8546
8547 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
8548
8549         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8550         defines.
8551         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8552         defines.
8553         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8554         (yyvsp): New defines.
8555         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8556         defines.
8557         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8558         defines.
8559         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8560         defines.
8561         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8562         defines.
8563         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8564         defines.
8565
8566 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
8567
8568         * sparc64-tdep.c (sparc64_store_arguments)
8569         (sparc64_store_arguments): Fix coding style.
8570
8571 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
8572
8573         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8574         complex floats, adjust some related comments and tighten a related
8575         assertion.
8576         (sparc64_extract_return_value): Handle complex floats.
8577
8578 2012-04-07  Doug Evans  <dje@google.com>
8579
8580         * dwarf2read.c (load_partial_dies): Change condition to assert.
8581
8582 2012-04-06  Doug Evans  <dje@google.com>
8583
8584         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8585         "mov %rsp,%rbp".
8586
8587 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
8588
8589         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8590         fencepost error.
8591         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8592         (v850_gdbarch_init): Set `num_regs' as appropriate for the
8593         architecture.
8594
8595 2012-04-05  Keith Seitz  <keiths@redhat.com>
8596
8597         * linespec.c (decode_compound): Remove.
8598         (enum offset_relative_sign): New enum.
8599         (struct line_offset): New struct.
8600         (struct linespec): New struct.
8601         (struct linespec_state): Move file_symtabs,
8602         user_filename, and user_function into struct linespec.
8603         Make result an anonymous struct holding vectors of
8604         symbolp and minsym_and_objfile_d.
8605         Add language member.
8606         (enum ls_token_type): New enum.
8607         (linespec_keywords): New array.
8608         (struct ls_token): New struct.
8609         (struct ls_parser): New struct.
8610         (linespec_lexer_lex_number): New function.
8611         (linespec_lexer_lex_keyword): New function.
8612         (is_ada_operator): New function.
8613         (skip_quote_char): New function.
8614         (copy_token_string): New function.
8615         (is_closing_quote_enclosed): New function.
8616         (find_parameter_list_end): New function.
8617         (linespec_lexer_lex_string): New function.
8618         (linespec_lexer_lex_one): New function.
8619         (linespec_lexer_consume_token): New function.
8620         (linespec_lexer_peek_token): New function.
8621         (cplusplus_error): Remove unused function.
8622         (find_methods): Update comment.
8623         (find_toplevel_char): Return const.
8624         (is_objc_method_format): Remove unused function.
8625         (find_toplevel_string): New function.
8626         (is_linespec_boundary): Remove.
8627         (symbol_not_found_error): New function.
8628         (find_method_overload_end): Remove function.
8629         (unexpected_linespec_error): New function.
8630         (keep_name_info): Remove.
8631         (linespec_parse_line_offset): New function.
8632         (linespec_parse_basic): New function.
8633         (canonicalize_linespec): New function.
8634         (decode_line_internal): Remove.
8635         (create_sals_line_offset): New function adapted from
8636         decode_all_digits.
8637         (convert_linespec_to_sals): New function.
8638         (parse_linespec): New function.
8639         (linespec_parser_new): New function.
8640         (linespec_state_destructor): Change parameter type to
8641         struct linespec_state *.
8642         Add language parameter.
8643         Remove freeing of moved members.
8644         (linespec_parser_delete): New function.
8645         (decode_line_full): Use parse_linespec and linespec_parser_new.
8646         (decode_line_1): Likewise.
8647         (decode_indirect): Rename to ...
8648         (linespec_expression_to_pc): ... this and rewrite
8649         to simply find CORE_ADDR, storing this result for later
8650         conversion to SALs.
8651         (locate_first_half): Remove.
8652         (deocde_objc): Add parameter LS.
8653         Initialize new struct collect_info members.
8654         Handle minimal symbols, too.
8655         (decode_compound): Delete.
8656         (lookup_prefix_sym): Rewrite.
8657         (compare_msymbols): New function.
8658         (find_method): Rewrite.
8659         Do not call cplusplus_error.
8660         (symtabs_from_filename): Rewrite.
8661         (collect_function_symbols): Delete.
8662         (find_function_symbols): Rewrite without ARGPTR-style
8663         processing.
8664         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8665         (decode_dollar): Adapted and renamed to ...
8666         (linespec_parse_variable): ... this.
8667         (find_linespec_symbols): New function.
8668         (decode_label): Adapted and renamed to ...
8669         (find_label_symbols): ... this.
8670         (decode_digits_list_mode): Add and use LS argument.
8671         (decode_digits_ordinary): Likewise.
8672         (collect_symbols): Do not collect SALs, just symbols and msymbols.
8673         If in list mode, allow any symbol class.  Otherwise, only
8674         permit LOC_BLOCK symbols.
8675         (minsym_found): Update comments.
8676         (search_minsyms_for_name): Do not convert the matching symbol
8677         into a SAL.  Simply push the symbol and objfile into the
8678         result vector.
8679         (decode_variable): Delete. Contents adapted into
8680         find_linespec_symbols.
8681
8682         * cp-support.c (SKIP_SPACE): Remove.
8683         (operator_tokens): Remove unused global.
8684         (cp_validate_operator): Remove.
8685         * cp-support.h (cp_validate_operator): Remove declaration.
8686
8687 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8688
8689         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8690         for TYPE_VPTR_FIELDNO.
8691         * valprint.c (valprint_check_validity): Make it global, move the
8692         function comment ...
8693         * value.h (valprint_check_validity): ... to this new declaration.
8694
8695 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8696
8697         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8698         the STATE32 api for i386 state.
8699         (i386_darwin_store_inferior_registers): Likewise.
8700
8701 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8702
8703         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8704         SS offset.
8705         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8706         format_string.
8707
8708 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8709
8710         PR gdb/13901
8711         * darwin-nat.c (darwin_execvp): Set binary preference.
8712
8713 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8714
8715         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8716
8717 2012-03-30  Tom Tromey  <tromey@redhat.com>
8718
8719         * python/python.c (gdbpy_decode_line): Move cleanup creation out
8720         of TRY_CATCH.  Fix error handling.
8721         * python/py-value.c (convert_value_from_python): Move 'old'
8722         declaration to innermost scope.
8723
8724 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8725             Andrey Smirnov  <andrew.smirnov@gmail.com>
8726
8727         -Wshadow warning fix.
8728         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8729         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8730         Adjust code accordingly.
8731
8732 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8733
8734         * ada-lang.c (symbol_completion_add): Rename parameter
8735         "encoded" into "encoded_p".  Ajust code and documentation
8736         accordingly.
8737
8738 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8739             Andrey Smirnov  <andrew.smirnov@gmail.com>
8740
8741         -Wshadow warning fix.
8742         * ada-lang.c (symbol_completion_add): Rename parameter
8743         "wild_match" into wild_match_p.  Update code and documentation
8744         accordingly.
8745
8746 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8747
8748         * ada-lang.c (symbol_completion_match): Rename parameter
8749         "encoded" into "encoded_p".  Ajust code and documentation
8750         accordingly.
8751
8752 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8753             Andrey Smirnov  <andrew.smirnov@gmail.com>
8754
8755         -Wshadow warning fix.
8756         * ada-lang.c (symbol_completion_match): Rename parameter
8757         "wild_match" into "wild_match_p".  Adjust code and function
8758         documentation accordingly.
8759
8760 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8761             Andrey Smirnov  <andrew.smirnov@gmail.com>
8762
8763         -Wshadow warning fix.
8764         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8765         "symbol_info" into "info".  Adjust code accordingly.
8766         (ada_lookup_symbol): Likewise.
8767
8768 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8769
8770         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8771         of this function's documentation.
8772
8773 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8774             Andrey Smirnov  <andrew.smirnov@gmail.com>
8775
8776         -Wshadow warning fix.
8777         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8778         variable into "wild_match_p".  Adjust code accordingly.
8779
8780 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8781             Andrey Smirnov  <andrew.smirnov@gmail.com>
8782
8783         -Wshadow warning fix.
8784         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8785         parameter into "wild_match_p".  Adjust code accordingly.
8786         Document this parameter in the function description.
8787
8788 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8789             Andrey Smirnov  <andrew.smirnov@gmail.com>
8790
8791         -Wshadow warning fix.
8792         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8793         "wild_match" parameter to "wild_match_p" (-Wshadow).
8794
8795 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8796
8797         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8798         in function documentation.
8799
8800 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8801             Andrey Smirnov  <andrew.smirnov@gmail.com>
8802
8803         -Wshadow warning fix.
8804         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8805         variable into wild_match_p.  Adjust code accordingly.
8806
8807 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8808             Andrey Smirnov  <andrew.smirnov@gmail.com>
8809
8810         * ada-valprint.c (ada_val_print_1): Move the code handling
8811         TYPE_CODE_ENUM inside its own lexical block.  Declare
8812         variables len and val there, instead of in the function's
8813         top level block.  Avoid declaring deref_val again in a way
8814         that shadows another variable of the same name declared
8815         in one of the up-level blocks.  Just re-use the up-level
8816         variable instead.
8817
8818 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8819
8820         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8821         Replace block_found argument by symbol_info.  Adjust
8822         implementation accordingly.  Add function documentation.
8823         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8824         Fix documentation.
8825         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8826         * ada-exp.y (write_object_renaming): Adjust to new
8827         ada_lookup_encoded_symbol API.
8828
8829 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8830
8831         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
8832         documentation.
8833
8834 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
8835
8836         * v850-tdep.c: Add the enum values for mpu and fpu registers.
8837         (v850_register_name): Add the mpu and fpu register names.
8838         (v850e_register_name): Add the mpu and fpu register names.
8839         (v850e2_register_name): New function.
8840         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8841         bfd_mach_v850e2v3.
8842
8843 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8844
8845         * NEWS: Add entry for Ada varobj support.
8846
8847 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8848
8849         * varobj.c (default_value_is_changeable_p): New function,
8850         extracted from varobj_value_is_changeable_p.  Add declaration.
8851         (ada_value_is_changeable_p): New function, extracted from
8852         varobj_value_is_changeable_p.  Add declaration.
8853         (struct language_specific): New field "value_is_changeable_p".
8854         (languages): Add entries for new field.
8855         (varobj_create): Set language before calling install_new_value.
8856         (varobj_value_is_changeable_p): Reimplement to call the varobj's
8857         "value_is_changeable_p" language callback.
8858
8859 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8860
8861         * ada-varobj.h, ada-varobj.c: New files.
8862         * Makefile.in (SFILES): Add ada-varobj.c.
8863         (HFILES_NO_SRCDIR): Add ada-varobj.h.
8864         (COMMON_OBS): Add ada-varobj.o.
8865
8866 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8867
8868         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
8869         (struct language_specific): New field "value_has_mutated".
8870         (languages): Set field "value_has_mutated" in each entry of array.
8871         (varobj_value_has_mutated): New function.
8872         (varobj_udpdate): Add handling of type mutation.
8873         (value_of_root): Add handling of type mutation.
8874         (ada_value_has_mutated): New function.
8875
8876 2012-03-28  Pedro Alves  <palves@redhat.com>
8877
8878         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8879         Always supply $fr0 as 0.0 and $fr1 as 1.0.
8880
8881 2012-03-28  Tom Tromey  <tromey@redhat.com>
8882
8883         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8884         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
8885         before returning.
8886
8887 2012-03-28  Tom Tromey  <tromey@redhat.com>
8888
8889         * .dir-locals.el: New file.
8890
8891 2012-03-28  Pedro Alves  <palves@redhat.com>
8892
8893         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8894
8895 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8896
8897         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8898         handling for r0.
8899
8900 2012-03-27  Pedro Alves  <palves@redhat.com>
8901
8902         Eliminate struct ui_stream.
8903
8904         * ui-out.h (struct ui_stream): Delete.
8905         (ui_out_field_stream): Adjust prototype.
8906         (ui_out_stream_new, ui_out_stream_delete)
8907         (make_cleanup_ui_out_stream_delete): Delete declarations.
8908         * ui-out.c (ui_out_field_stream): Change prototype to take a
8909         ui_file instead of a ui_stream.  Adjust.
8910         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8911         (make_cleanup_ui_out_stream_delete): Delete.
8912         * breakpoint.c (print_breakpoint_location)
8913         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8914         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8915         * disasm.c (dump_insns): Ditto.
8916         (do_mixed_source_and_assembly, do_assembly_only): Adjust
8917         prototype.
8918         (gdb_disassembly): Use ui_file/mem_fileopen instead of
8919         ui_stream/ui_out_stream_new.
8920         * infcmd.c (print_return_value): Ditto.
8921         * osdata.c (info_osdata_command): Don't allocate a local
8922         ui_stream.
8923         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8924         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8925         * tracepoint.c (print_one_static_tracepoint_marker): Don't
8926         allocate a local ui_stream.
8927         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8928         instead of ui_stream/ui_out_stream_new.
8929         (list_args_or_locals): Don't allocate a local ui_stream.
8930         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8931         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8932         ui_stream/ui_out_stream_new.
8933         * cli/cli-setshow.c (do_setshow_command): Ditto.
8934
8935 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
8936
8937         * arm-linux-tdep.c (arm_linux_init_abi): Call
8938         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
8939         * arm-tdep.c (arm_process_record): New function.
8940         (deallocate_reg_mem): New function.
8941         (decode_insn): New function.
8942         (thumb_record_branch): New function.
8943         (thumb_record_ldm_stm_swi(): New function.
8944         (thumb_record_misc): New function.
8945         (thumb_record_ld_st_stack): New function.
8946         (thumb_record_ld_st_imm_offset): New function.
8947         (thumb_record_ld_st_reg_offset(): New function.
8948         (thumb_record_add_sub_cmp_mov): New function.
8949         (thumb_record_shift_add_sub): New function.
8950         (arm_record_coproc_data_proc): New function.
8951         (arm_record_coproc): New function.
8952         (arm_record_b_bl): New function.
8953         (arm_record_ld_st_multiple): New function.
8954         (arm_record_ld_st_reg_offset): New function.
8955         (arm_record_ld_st_imm_offset): New function.
8956         (arm_record_data_proc_imm): New function.
8957         (arm_record_data_proc_misc_ld_str): New function.
8958         (arm_record_extension_space): New function.
8959         (arm_record_strx): New function.
8960         (sbo_sbz): New function.
8961         (struct insn_decode_record): New structure for arm insn record.
8962         (REG_ALLOC): New macro for reg allocations.
8963         (MEM_ALLOC): New macro for memory allocations.
8964         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8965
8966 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
8967
8968         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8969         (store_register): Likewise.
8970
8971 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
8972
8973         * MAINTAINERS (Write After Approval): Add myself to the list.
8974
8975 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8976
8977         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8978         Describe also the option "auto".
8979
8980 2012-03-22  Richard Henderson  <rth@redhat.com>
8981
8982         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8983         * sparc-nat.c (sparc_xfer_wcookie): Make static.
8984
8985 2012-03-22  Richard Henderson  <rth@redhat.com>
8986
8987         * jit.c (jit_read_code_entry): Compute alignment and offset of
8988         int64_t member before computing entry_size.
8989
8990 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
8991
8992         Python scripting: Add new method Value.referenced_value to
8993         gdb.Value which can dereference pointer as well as reference
8994         values.
8995         * NEWS: Add entry under 'Python scripting' about the new method
8996         Value.referenced_value on gdb.Value objects.
8997         * python/py-value.c (valpy_referenced_value): New function
8998         defining a new method on gdb.Value objects which can dereference
8999         pointer and reference values.
9000
9001 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
9002
9003         * MAINTAINERS (Write After Approval): Add myself to the list.
9004
9005 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
9006
9007         * symtab.c (skip_prologue_sal): Change test to check for "main()"
9008         in addition to "main".
9009
9010 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
9011
9012         * expression.h (op_name): Add declaration.
9013         * expprint.c (op_name): Remove declaration.  Make non-static.
9014         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9015
9016 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9017
9018         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9019         of struct siginfo.
9020         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9021         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9022         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9023         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9024         (linux_nat_get_siginfo): Likewise.
9025         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9026         (linux_nat_get_siginfo): Likewise.
9027         * linux-tdep.c (linux_get_siginfo_type): Likewise.
9028         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9029         * procfs.c (gdb_siginfo_t): Likewise.
9030
9031 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
9032
9033         * .gitignore: Ignore more files.
9034
9035 2012-03-20  Pedro Alves  <palves@redhat.com>
9036
9037         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9038         returns.
9039
9040 2012-03-20  Yao Qi  <yao@codesourcery.com>
9041
9042         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9043         comment.
9044
9045 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9046
9047         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9048         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9049         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9050         sect_offset.
9051         * dwarf2expr.h (cu_offset, sect_offset): New types.
9052         (struct dwarf_expr_context_funcs) <dwarf_call>
9053         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9054         sect_offset.
9055         (struct dwarf_expr_context) <len>: Improve the comment.
9056         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9057         cu_offset and sect_offset.
9058         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9059         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9060         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9061         * dwarf2loc.h: Include dwarf2expr.h.
9062         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9063         and sect_offset.
9064         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9065         Improve the comment.
9066         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9067         (struct signatured_type, struct line_header, struct partial_die_info)
9068         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9069         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9070         (get_die_type_at_offset, create_cus_from_index)
9071         (create_signatured_type_table_from_index, dw2_get_file_names)
9072         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9073         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9074         (create_debug_types_hash_table, process_psymtab_comp_unit)
9075         (load_partial_comp_unit, create_all_comp_units)
9076         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9077         (load_full_comp_unit, dwarf2_physname, read_import_statement)
9078         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9079         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9080         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9081         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9082         (find_partial_die, read_attribute_value, lookup_die_type)
9083         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9084         (is_ref_attr): New function comment.
9085         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9086         Use cu_offset and sect_offset.
9087         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9088         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9089         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9090         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9091         (offset_and_type_hash, offset_and_type_eq, set_die_type)
9092         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9093         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9094         sect_offset.
9095
9096 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9097
9098         Code cleanup.
9099         * python/py-auto-load.c (source_section_scripts): New variable back_to.
9100         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9101         with xfree.
9102         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9103
9104 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9105
9106         * NEWS: Describe new options --init-command=FILE, -ix and
9107         --init-eval-command=COMMAND, -iex.
9108         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9109         CMDARG_INIT_COMMAND.
9110         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
9111         "init-command", "init-eval-command", "ix" and "iex" to the variable
9112         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
9113         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9114         (print_gdb_help): Describe --init-command=FILE, -ix and
9115         --init-eval-command=COMMAND, -iex.
9116
9117 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9118
9119         Code cleanup.
9120         * main.c (struct cmdarg): Move it here from main.  Add more comments.
9121         (cmdarg_s, VEC (cmdarg_s)): New.
9122         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
9123         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
9124         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
9125         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
9126         of CMDARG.
9127
9128 2012-03-19  Tom Tromey  <tromey@redhat.com>
9129
9130         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9131
9132 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9133
9134         PR symtab/13777
9135         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9136         GCC >=4.5.
9137
9138 2012-03-16  Chris January  <chris.january@allinea.com>
9139
9140         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9141         of clear.
9142
9143 2012-03-16  Chris January  <chris.january@allinea.com>
9144
9145         * source.c (add_path): Use memmove instead of strcpy because the
9146         strings overlap.
9147
9148 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
9149
9150         * value.h (set_value_parent): Add declaration.
9151         * value.c (set_value_parent): New function.
9152         (value_address): If VALUE->PARENT is not NULL, then use it as
9153         the base address instead of VALUE->LOCATION.address.
9154         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9155         the same as OBJ's address.  Adjust V's offset accordingly.
9156         Set V's parent.
9157
9158 2012-03-16  Gary Benson  <gbenson@redhat.com>
9159
9160         PR breakpoints/10738
9161         * dwarf2read.c (use_deprecated_index_sections): New global.
9162         (struct partial_die_info): New member may_be_inlined.
9163         (read_partial_die): Set may_be_inlined where appropriate.
9164         (add_partial_subprogram): Add partial symbols for partial
9165         DIEs that may be inlined.
9166         (new_symbol_full): Add inlined subroutines to the current
9167         scope.
9168         (write_psymtabs_to_index): Bump version number.
9169         (dwarf2_read_index): Read only version 6 indices unless
9170         use_deprecated_index_sections is set.
9171         * linespec.c (symbol_and_data_callback): New structure.
9172         (iterate_inline_only): New function.
9173         (iterate_over_all_matching_symtabs): New argument
9174         "include_inline".  If nonzero, also call the callback for
9175         symbols representing inlined subroutines.
9176         (lookup_prefix_sym): Pass extra argument to the above.
9177         (find_function_symbols): Likewise.
9178         (add_matching_symbols_to_info): Likewise.
9179         * NEWS: Mention that GDB can now set breakpoints on inlined
9180         functions.
9181
9182 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9183
9184         * p-typeprint.c (pascal_type_print_method_args):
9185         Fix display of parameter of methods.
9186
9187 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9188
9189         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9190         Add missing prototype.
9191
9192 2012-03-16  Yao Qi  <yao@codesourcery.com>
9193             Jan Kratochvil  <jan.kratochvil@redhat.com>
9194
9195         Fix false compilation warning.
9196         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9197
9198 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
9199             Pedro Alves  <pedro@codesourcery.com>
9200
9201         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9202         (arm_register_g_packet_guesses): New function.
9203         (arm_gdbarch_init): Don't force a target description with
9204         registers when the executable is detected as M-profile.  Instead
9205         set gdbarch->tdep->is_m.  Register `g' packet guesses.
9206         (_initialize_arm_tdep): Initialize the new target description.
9207         * features/arm-with-m-fpa-layout.xml: New description.
9208         * features/arm-with-m-fpa-layout.c: New, generated.
9209
9210 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
9211
9212         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9213         Update function description.
9214         (insert_bp_location): Do not wipe bl->target_info out.
9215         * mem-break.c: #include "gdb_string.h".
9216         (default_memory_insert_breakpoint): Do not call target_read_memory
9217         with a pointer to the breakpoint's shadow_contents buffer.  Use
9218         a local buffer instead.
9219         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9220
9221 2012-03-15  Tom Tromey  <tromey@redhat.com>
9222
9223         * NEWS: Mention "info vtbl", not "info vtable".
9224         * cp-support.c (info_vtbl_command): Fix comment.
9225         (_initialize_cp_support): Fix text.
9226
9227 2012-03-15  Tom Tromey  <tromey@redhat.com>
9228
9229         * cp-valprint.c (cp_print_value_fields): Use
9230         print_function_pointer_address for vtable slot.
9231
9232 2012-03-15  Tom Tromey  <tromey@redhat.com>
9233
9234         * gnu-v3-abi.c (struct value_and_voffset): New.
9235         (hash_value_and_voffset, eq_value_and_voffset)
9236         (compare_value_and_voffset, compute_vtable_size)
9237         (print_one_vtable, gnuv3_print_vtable): New functions.
9238         (init_gnuv3_ops): Initialize 'print_vtable' field.
9239         * cp-support.c (info_vtbl_command): New function.
9240         (_initialize_cp_support): Add "info vtbl".
9241         * cp-abi.h (cplus_print_vtable): Declare.
9242         (struct cp_abi_ops) <print_vtable>: New field.
9243         * cp-abi.c (cplus_print_vtable): New function.
9244         * NEWS: Update.
9245
9246 2012-03-15  Tom Tromey  <tromey@redhat.com>
9247
9248         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9249         iterate_over_symbols.
9250
9251 2012-03-14  Doug Evans  <dje@google.com>
9252
9253         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9254         DW_OP_GNU_parameter_ref.
9255
9256 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9257
9258         Fix double prompt of 'interpreter-exec mi'.
9259         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9260         (mi_interpreter_resume): use it.
9261         (mi_execute_command_input_handler): New function.
9262         * mi/mi-main.c (mi_execute_command): Move prompt printing to
9263         mi_execute_command_input_handler.
9264
9265 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
9266
9267         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9268         prototype.
9269         (darwin_debug_port_info): Make static.
9270         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9271         * machoread.c (_initialize_machoread): Add prototype.
9272         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9273         (i386_darwin_set_control, i386_darwin_get_control)
9274         i386_darwin_dr_set_addr, i386_darwin_get_addr)
9275         i386_darwin_get_status, i386_darwin_get_control):
9276         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9277
9278 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
9279
9280         * ax-gdb.c (gen_usual_unary): Remove special handling of
9281         enum and bool types.
9282
9283 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
9284
9285         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9286
9287 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
9288
9289         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9290
9291 2012-03-13  Chris January  <chris.january@allinea.com>
9292
9293         * aix-thread.c (fill_sprs): Store the floating point registers
9294         at the correct offsets into vals.
9295
9296 2012-03-13  Doug Evans  <dje@google.com>
9297
9298         * NEWS: Mention symbol-reloading has been deleted.
9299         * symfile.c (symbol_reloading): Delete.
9300         (show_symbol_reloading): Delete.
9301         (_initialize_symfile): Delete set/show symbol-reloading.
9302
9303         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9304         read_in_chain until we have successfully read it in.
9305         (load_full_comp_unit): Ditto.
9306         (read_signatured_type): Add comment.
9307
9308 2012-03-13  Chris January  <chris.january@allinea.com>
9309
9310         * stabsread.c (fix_common_block): Change type of valu argument
9311         to CORE_ADDR.
9312
9313 2012-03-13  Chris January  <chris.january@allinea.com>
9314
9315         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9316         instruction.
9317
9318 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9319
9320         * common/linux-procfs.c (linux_proc_get_int): New, from
9321         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9322         field.
9323         (linux_proc_get_tgid): Only call linux_proc_get_int.
9324         (linux_proc_get_tracerpid): New.
9325         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9326         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9327         linux_proc_pid_has_state.
9328         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9329         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9330         (linux_ptrace_attach_warnings): New.
9331         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9332         New declaration.
9333         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9334         (linux_nat_attach): New variables ex, buffer, message and message_s.
9335         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9336
9337 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9338
9339         * Makefile.in (linux-ptrace.o): New.
9340         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9341         from linux-nat.c.
9342         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9343         * common/linux-ptrace.c: New file.
9344         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9345         * config/arm/linux.mh: Likewise.
9346         * config/i386/linux.mh: Likewise.
9347         * config/i386/linux64.mh: Likewise.
9348         * config/ia64/linux.mh: Likewise.
9349         * config/m32r/linux.mh: Likewise.
9350         * config/m68k/linux.mh: Likewise.
9351         * config/mips/linux.mh: Likewise.
9352         * config/pa/linux.mh: Likewise.
9353         * config/powerpc/linux.mh: Likewise.
9354         * config/powerpc/ppc64-linux.mh: Likewise.
9355         * config/powerpc/spu-linux.mh: Likewise.
9356         * config/s390/s390.mh: Likewise.
9357         * config/sparc/linux.mh: Likewise.
9358         * config/sparc/linux64.mh: Likewise.
9359         * config/xtensa/linux.mh: Likewise.
9360         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9361         common/linux-procfs.c.
9362         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9363
9364 2012-03-13  Hui Zhu  <teawater@gmail.com>
9365             Pedro Alves  <palves@redhat.com>
9366
9367         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
9368         CREATE_BREAKPOINT_FLAGS_INSERTED.
9369         (create_breakpoint_sal, create_breakpoints_sal)
9370         (base_breakpoint_create_breakpoints_sal)
9371         (tracepoint_create_breakpoints_sal)
9372         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
9373         down.
9374         (break_command_1, handle_gnu_v3_exceptions, trace_command)
9375         (ftrace_command, strace_command): Adjust.
9376         (create_tracepoint_from_upload): Pass
9377         CREATE_BREAKPOINT_FLAGS_INSERTED.
9378         * breakpoint.h (enum breakpoint_create_flags): New.
9379         (create_breakpoint): New flags parameter.
9380         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9381         * python/py-breakpoint.c (bppy_init): Adjust.
9382         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9383         * spu-tdep.c (spu_catch_start): Adjust.
9384
9385 2012-03-13  Pedro Alves  <palves@redhat.com>
9386             Hui Zhu  <teawater@gmail.com>
9387             Yao Qi  <yao@codesourcery.com>
9388
9389         * remote.c (struct remote_state): New field `starting_up'.
9390         (remote_start_remote): Set and clear it.
9391         (remote_can_download_tracepoint): If starting up, return false.
9392
9393 2012-03-13  Yao Qi  <yao@codesourcery.com>
9394
9395         * inferior.h (struct inferior): Remove fields any_syscall_count,
9396         syscalls_counts and total_syscalls_count.  Move them to new
9397         struct catch_syscall_inferior_data in breakpoint.c.
9398         * breakpoint.c: Call DEF_VEC_I(int).
9399         (struct catch_syscall_inferior_data): New.
9400         (get_catch_syscall_inferior_data): New.
9401         (catch_syscall_inferior_data_cleanup): New.
9402         (insert_catch_syscall): Update to access data in
9403         struct catch_syscall_inferior_data.
9404         (insert_catch_syscall): Likewise.
9405         (remove_catch_syscall): Likewise.
9406         (remove_catch_syscall): Likewise.
9407         (is_syscall_catchpoint_enabled): Likewise.
9408         (add_catch_command): Likewise.
9409         (_initialize_breakpoint): Register cleanup.
9410         * breakpoint.h: Removed DEF_VEC_I(int).
9411         * dwarf2loc.c: Call DEF_VEC_I(int).
9412         * mi/mi-main.c: Likewise.
9413
9414 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
9415
9416         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9417
9418 2012-03-12  Chris January  <chris.january@allinea.com>
9419
9420         * aix-thread.c (_initialize_aix_thread): Add prototype.
9421         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9422         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9423
9424 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
9425
9426         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9427         include of "amd64-nat.h".
9428
9429 2012-03-12  Tom Tromey  <tromey@redhat.com>
9430
9431         * buildsym.c (record_pending_block): Now static.
9432         * buildsym.h: (record_pending_block): Remove.
9433
9434 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
9435
9436         * amd64bsd-nat.c: Include amd64bsd-nat.h.
9437
9438 2012-03-09  Tom Tromey  <tromey@redhat.com>
9439
9440         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9441         producer_is_gxx_lt_4_6>: New fields.
9442         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9443
9444 2012-03-09  Tom Tromey  <tromey@redhat.com>
9445
9446         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9447
9448 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
9449
9450         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9451         prototype.
9452
9453 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
9454
9455         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9456
9457 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9458
9459         Fix -Wmissing-prototypes build.
9460         * arm-linux-nat.c (get_thread_id): Make it static.
9461         * xtensa-linux-nat.c (get_thread_id): Likewise.
9462
9463 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
9464
9465         * server.c (process_point_options): If a conditional expression
9466         is found, only print a message if remote_debug is nonzero.
9467
9468 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
9469
9470         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9471         of internal error for unknown/unsupported types.
9472
9473 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9474
9475         Fix CU relative vs. absolute DIE offsets.
9476         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9477         offset to offset_in_cu.
9478         * dwarf2read.c (process_enumeration_scope): Add CU offset to
9479         TYPE_OFFSET.
9480         (dwarf2_fetch_die_location_block): Rename parameter offset to
9481         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
9482
9483 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9484
9485         * libunwind-frame.c: Rename to ...
9486         * ia64-libunwind-tdep.c: ... here.
9487         * libunwind-frame.h: Rename to ...
9488         * ia64-libunwind-tdep.h: ... here.
9489         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9490         ia64-libunwind-tdep.h.
9491         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9492         * README (--with-libunwind): Rename to ...
9493         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9494         * config.in: Regenerate.
9495         * configure: Regenerate.
9496         * configure.ac: New option --with-libunwind-ia64, make the
9497         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
9498         Remove AC_DEFINE for HAVE_LIBUNWIND.
9499         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9500         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9501         Rename libunwind-frame in the general comment.
9502         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9503         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9504         Move forward declarations inside #ifndef.  Rename libunwind-frame in
9505         the general comment.
9506         * ia64-tdep.c: Rename libunwind-frame.h #include to
9507         ia64-libunwind-tdep.h.
9508         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9509         (ia64_libunwind_descr): Rename libunwind-frame to
9510         ia64-libunwind-tdep in these function comments.
9511         * ia64-tdep.h: Rename libunwind-frame.h #include to
9512         ia64-libunwind-tdep.h.
9513         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9514         ia64-libunwind-tdep in that data comment.
9515
9516 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9517
9518         * libunwind-frame.h (struct frame_unwind): New declaration.
9519
9520 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
9521
9522         * breakpoint.c (_initialize_breakpoint): Fix error in help of
9523         "set breakpoint condition-evaluation" command.
9524
9525 2012-03-08  Tristan Gingold  <gingold@adacore.com>
9526
9527         * sparc-stub.c: Move to stubs/
9528         * sh-stub.c: Likewise.
9529         * m68k-stub.c: Likewise.
9530         * m32r-stub.c: Likewise.
9531         * i386-stub.c: Likewise.
9532
9533 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
9534
9535         * m68klinux-tdep.c (m68k_linux_init_abi): Register
9536         linux_get_siginfo_type.
9537
9538         * m68klinux-nat.c: Include "gdb_proc_service.h".
9539         (PTRACE_GET_THREAD_AREA): Define.
9540         (ps_get_thread_area): New function.
9541
9542 2012-03-08  Yao Qi  <yao@codesourcery.com>
9543
9544         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9545         `xsnprintf'.
9546         (remote_query_attached): Likewise.
9547         (remote_static_tracepoint_marker_at): Likewise.
9548         (remote_set_permissions): Likewise.
9549         (remote_detach_1, extended_remote_attach_1): Likewise.
9550         (send_g_packet, remote_vkill): Likewise.
9551         (extended_remote_disable_randomization): Likewise.
9552         (remote_add_target_side_condition): Likewise.
9553         (remote_insert_breakpoint): Likewise.
9554         (remote_remove_breakpoint): Likewise.
9555         (remote_insert_watchpoint): Likewise.
9556         (remote_remove_watchpoint): Likewise.
9557         (remote_insert_hw_breakpoint): Likewise.
9558         (remote_insert_hw_breakpoint): Likewise.
9559         (remote_remove_hw_breakpoint): Likewise.
9560         (remote_download_command_source): Likewise.
9561         (remote_download_tracepoint): Likewise.
9562         (remote_download_trace_state_variable): Likewise.
9563         (remote_disable_tracepoint): Likewise.
9564         (remote_trace_set_readonly_regions): Likewise.
9565         (remote_get_tracepoint_status): Likewise.
9566         (remote_trace_find): Likewise.
9567         (remote_get_trace_state_variable_value): Likewise.
9568         (remote_set_disconnected_tracing): Likewise.
9569         (remote_set_circular_trace_buffer): Likewise.
9570         (remote_get_min_fast_tracepoint_insn_len): Likewise.
9571         (remote_use_agent): Likewise.
9572         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9573         Update callers.
9574
9575 2012-03-07  Pedro Alves  <palves@redhat.com>
9576
9577         * NEWS: Mention QProgramSignals.
9578         * inferior.h (update_signals_program_target): Declare.
9579         * infrun.c: (update_signals_program_target): New.
9580         (handle_command): Update the target of the new program signals
9581         array changes.
9582         * remote.c (PACKET_QProgramSignals): New enum.
9583         (last_program_signals_packet): New global.
9584         (remote_program_signals): New.
9585         (remote_start_remote): Update the target with the program signals
9586         list.
9587         (remote_protocol_features): Add entry for QPassSignals.
9588         (remote_open_1): Free anc clear last_program_signals_packet.
9589         (init_remote_ops): Install remote_program_signals.
9590         * target.c (update_current_target): Adjust.
9591         (target_program_signals): New.
9592         * target.h (struct target_ops) <to_program_signals>: New field.
9593         (target_program_signals): Declare.
9594
9595 2012-03-07  Pedro Alves  <palves@redhat.com>
9596
9597         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9598         extensions.
9599
9600 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
9601
9602         * m68klinux-nat.c (getregs_supplies): Make static.
9603         (getfpregs_supplies): Likewise.
9604         (have_ptrace_getregs): Likewise.
9605
9606 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
9607
9608         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9609         in call to get_die_type_at_offset.
9610
9611 2012-03-06  Stan Shebs  <stan@codesourcery.com>
9612
9613         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9614         * mi/mi-cmd-disas.c: Ditto.
9615         * mi/mi-cmd-env.c: Ditto.
9616         * mi/mi-cmd-file.c: Ditto.
9617         * mi/mi-cmd-stack.c: Ditto.
9618         * mi/mi-cmd-target.c: Ditto.
9619         * mi/mi-cmd-var.c: Ditto.
9620         * mi/mi-cmds.c: Ditto.
9621         * mi/mi-cmds.h: Ditto.
9622         * mi/mi-console.c: Ditto.
9623         * mi/mi-getopt.c: Ditto.
9624         * mi/mi-getopt.h: Ditto.
9625         * mi/mi-interp.c: Ditto.
9626         * mi/mi-main.c: Ditto.
9627         * mi/mi-out.c: Ditto.
9628         * mi/mi-parse.c: Ditto.
9629         * mi/mi-parse.h: Ditto.
9630         * mi/mi-symbol-cmds.c: Ditto.
9631
9632         * mi/mi-getopt.h: Move mi_opt struct up.
9633         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9634         return.
9635         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9636
9637 2012-03-06  Tom Tromey  <tromey@redhat.com>
9638
9639         * proc-service.c (ps_pglobal_lookup): Set the current program
9640         space.
9641
9642 2012-03-06  Pedro Alves  <palves@redhat.com>
9643
9644         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9645
9646 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
9647
9648         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9649
9650 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9651
9652         Code cleanup.
9653         * common/linux-osdata.c (linux_common_core_of_thread): New function
9654         comment.
9655         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9656         call by linux_common_core_of_thread.
9657         (linux_nat_core_of_thread_1): Remove.
9658         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9659         * linux-thread-db.c: Include linux-osdata.h.
9660         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9661         linux_common_core_of_thread.
9662
9663 2012-03-05  Tom Tromey  <tromey@redhat.com>
9664
9665         * value.c (value_primitive_field): Don't fetch contents for
9666         non-virtual bases.
9667
9668 2012-03-05  Tom Tromey  <tromey@redhat.com>
9669
9670         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9671
9672 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9673
9674         * s390-nat.c: Include "gregset.h".
9675
9676 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9677
9678         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9679         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9680         (libunwind_load): New variable so_error, use it for dlerror.  Try to
9681         load also LIBUNWIND_SO_7.
9682
9683 2012-03-05  Pedro Alves  <palves@redhat.com>
9684
9685         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9686         is not NULL, and remove resulting dead code.
9687
9688 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
9689
9690         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9691         prologue to sh_analyze_prologue.
9692         (sh_analyze_prologue): Make better use of such an upper limit, and
9693         generally be more cautious about accessing memory.
9694
9695 2012-03-05  Tom Tromey  <tromey@redhat.com>
9696
9697         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9698         _initialize_ia64_hpux_tdep.
9699
9700 2012-03-05  Pedro Alves  <palves@redhat.com>
9701
9702         PR gdb/13766
9703
9704         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9705         the register state is clear, supply explicit zero, instead of
9706         marking the register unavailable.
9707
9708 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9709
9710         * NEWS: Mention OpenVMS ia64 new target.
9711
9712 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9713
9714         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9715         (ia64_unw_accessors, ia64_unw_rse_accessors)
9716         (ia64_libunwind_descr): Declare.
9717         * ia64-vms-tdep.c: New file.
9718         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9719         (ia64_libunwind_descr): Make them public.
9720         * configure.tgt: Add ia64-*-*vms*.
9721         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9722         (ALLDEPFILES): Add ia64-vms-tdep.c
9723
9724 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9725
9726         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9727         * remote.c (PACKET_qXfer_uib): New enum value.
9728         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9729         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9730         (_initialize_remote): Call add_packet_config_cmd for
9731         xfer:uib packet.
9732
9733 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9734
9735         * osabi.c (gdb_osabi_names): Add OpenVMS.
9736         (generic_elf_osabi_sniffer): Likewise.
9737         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9738
9739 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9740
9741         Removed unused code.
9742         * libunwind-frame.c (libunwind_frame_unwind)
9743         (libunwind_frame_base_address): Remove.
9744         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9745
9746 2012-03-04  Yao Qi  <yao@codesourcery.com>
9747
9748         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9749         remove trailing new line.
9750         (agent_run_command, agent_run_command): Add _ markup.
9751         (agent_capability_check): Likewise.
9752
9753 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9754
9755         * breakpoint.c (set_condition_evaluation_mode): Set
9756         CONDITION_EVALUATION_MODE unconditionally.
9757
9758 2012-03-03  Yao Qi  <yao@codesourcery.com>
9759
9760         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9761         * common/agent.h: Update declaration.
9762         * inf-child.c (inf_child_use_agent): New.
9763         (inf_child_can_use_agent): New.
9764         (inf_child_target): Initialize fields `to_use_agent'
9765         and `to_can_use_agent'.
9766         * agent.c (agent_new_objfile): New.
9767         (_initialize_agent): Add agent_new_objfile to new_objfile
9768         observer.
9769
9770         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9771         New.
9772         (linux_target_install_ops): Initialize field
9773         `to_static_tracepoint_markers_by_strid'.
9774         * remote.c (free_current_marker): Move it to ...
9775         * tracepoint.c (free_current_marker): ... here.  New.
9776         (cleanup_target_stop): New.
9777         * tracepoint.h: Declare free_current_marker.
9778         * NEWS: Add one entry about `info static-tracepoint-marker'.
9779
9780 2012-03-03  Yao Qi  <yao@codesourcery.com>
9781
9782         * common/agent.c (agent_loaded_p): New.
9783         (agent_look_up_symbols): New global.
9784         * common/agent.h: Declare agent_loaded_p.
9785
9786 2012-03-03  Yao Qi  <yao@codesourcery.com>
9787
9788         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9789         (agent_capability_check, agent_capability_invalidate): New.
9790         (symbol_list): New array element.
9791         * common/agent.h (enum agent_capa): New.
9792         * target.c (target_pre_inferior): Call agent_capability_invalidate.
9793
9794 2012-03-03  Yao Qi  <yao@codesourcery.com>
9795
9796         * target.h (struct target_ops) <to_use_agent>: New field.
9797         (struct target_ops) <to_can_use_agent>: New field.
9798         (target_use_agent, target_can_use_agent): New macro.
9799         * target.c (update_current_target): Update.
9800         * remote.c: New enum `PACKET_QAgent'.
9801         (remote_protocol_features): Add a new element.
9802         (remote_use_agent, remote_can_use_agent): New.
9803         (init_remote_ops): Initialize field `can_use_agent' with
9804         remote_can_use_agent.  Intiailize field `use_agent' with
9805         remote_use_agent.
9806         * common/agent.c (use_agent): New global.
9807         * common/agent.h: Declare it.
9808         * tracepoint.c (info_static_tracepoint_markers_command): Add
9809         comment.
9810         * Makefile.in (SFILES): Add common/agent.c and agent.c.
9811         (COMMON_OBS): Add common/agent.o and agent.o
9812         (common-agent.o): New rule.
9813         * agent.c: New.
9814
9815 2012-03-03  Yao Qi  <yao@codesourcery.com>
9816
9817         * common/agent.c: New.
9818         * common/agent.h: New.
9819         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9820         AC_CHECK_HEADERS.
9821         * configure, configh.in: Regenerated.
9822
9823 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
9824
9825         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9826         unless it exists for this architecture.
9827
9828 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
9829
9830         * language.h (struct language_defn): New "method" la_read_var_value.
9831         * findvar.c: #include "language.h".
9832         (default_read_var_value): Renames read_var_value.  Rewrite
9833         function description.
9834         (read_var_value): New function.
9835         * value.h (default_read_var_value): Add prototype.
9836         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9837         New functions.
9838         (ada_language_defn): Add entry for la_read_var_value.
9839         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9840         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9841         language_defn structures to add entry for new la_read_var_value
9842         field.
9843
9844 2012-03-02  Tom Tromey  <tromey@redhat.com>
9845             Pedro Alves  <palves@redhat.com>
9846
9847         PR breakpoints/13776:
9848         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9849         breakpoints.
9850         (delete_longjmp_breakpoint_at_next_stop): New.
9851         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9852         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9853         before deleting the inferior.  Add comments.
9854         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9855         breakpoints immediately, but only on next stop.  Move that code
9856         next to where we mark other breakpoints for deletion.
9857
9858 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
9859
9860         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9861         marker.
9862         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9863         violation.
9864
9865 2012-03-02  Pedro Alves  <palves@redhat.com>
9866
9867         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9868
9869 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
9870
9871         Fix -Wmissing-prototypes build.
9872         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9873         * remote-sim.c (gdbsim_has_all_memory): Likewise.
9874         (gdbsim_has_memory): Likewise.
9875
9876 2012-03-02  Yao Qi  <yao@codesourcery.com>
9877
9878         Fix -Wmissing-prototypes build.
9879         * charset.c (phony_iconv_open): Make static.
9880         (phony_iconv_close, phony_iconv): Likewise.
9881         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9882         * i386-windows-nat.c (_initialize_i386_windows_nat): New
9883         prototype.
9884         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9885         * ser-mingw.c (create_select_thread): Make static.
9886         * windows-termcap.c (tgetent): New prototype.
9887         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9888
9889 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
9890
9891         Fix -Wmissing-prototypes build.
9892         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9893         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9894         (_initialize_loadable): New prototypes.
9895
9896 2012-03-02  Doug Evans  <dje@google.com>
9897
9898         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9899         abbrev table, read_comp_unit will do it.
9900
9901 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9902
9903         Fix -Wmissing-prototypes build.
9904         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9905         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9906         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9907         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9908         (_initialize_arm_symbian_tdep): New prototype.
9909         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9910         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9911         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9912         static.
9913         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9914         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9915         prototype.
9916         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9917         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9918         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9919         static.
9920         * moxie-tdep.c (moxie_process_record): Likewise.
9921         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9922         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9923         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9924         (_initialize_rl78_tdep): New prototype.
9925         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9926         (_initialize_rx_tdep): New prototype.
9927         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9928         (_initialize_darwin_solib): New prototype.
9929         * solib-spu.c: Include solib-spu.h.
9930         (_initialize_spu_solib): New prototype.
9931         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9932         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9933         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9934         (tic6x_software_single_step): Make it static.
9935         (_initialize_tic6x_tdep): New prototype.
9936
9937 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9938
9939         Fix -Wmissing-prototypes build.
9940         * cris-tdep.c (cris_can_use_hardware_watchpoint)
9941         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9942
9943 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9944
9945         Fix -Wmissing-prototypes build.
9946         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9947         (frv_have_stopped_data_address): Remove.
9948
9949 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9950
9951         Fix -Wmissing-prototypes build.
9952         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9953         * sh-tdep.c: Include sh64-tdep.h.
9954         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9955         * sh64-tdep.c: Include sh64-tdep.h.
9956         * sh64-tdep.h: New file.
9957
9958 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
9959
9960         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9961
9962 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
9963
9964         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9965         sp_regnum once the gdbarch_init_osabi hook has been called.
9966
9967 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
9968
9969         * mips-tdep.c (mips32_bc1_pc): New function.
9970         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9971         BPOSGE32 and BPOSGE64 instructions.
9972         (deal_with_atomic_sequence): Likewise.
9973         (mips32_instruction_has_delay_slot): Likewise.
9974
9975 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
9976             Chris Dearman  <chris@mips.com>
9977             Maciej W. Rozycki  <macro@codesourcery.com>
9978             Joseph Myers  <joseph@codesourcery.com>
9979
9980         * features/mips-dsp.xml: New file.
9981         * features/mips64-dsp.xml: New file.
9982         * features/mips-dsp-linux.xml: New file.
9983         * features/mips64-dsp-linux.xml: New file.
9984         * features/Makefile (WHICH): Add mips-dsp-linux and
9985         mips64-dsp-linux.
9986         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9987         * features/mips-dsp-linux.c: New file.
9988         * features/mips64-dsp-linux.c: New file.
9989         * regformats/mips-dsp-linux.dat: New file.
9990         * regformats/mips64-dsp-linux.dat: New file.
9991         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9992         registers.
9993         (mips64_linux_register_addr): Likewise.
9994         (mips64_linux_regsets_fetch_registers): Likewise.
9995         (mips64_linux_regsets_store_registers): Likewise.
9996         (mips64_linux_fetch_registers): Update call to
9997         mips64_linux_regsets_fetch_registers.
9998         (mips64_linux_store_registers): Update call to
9999         mips64_linux_regsets_store_registers.
10000         (mips_linux_read_description): Probe for DSP registers.
10001         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10002         and initialize_tdesc_mips64_dsp_linux.
10003         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10004         Remove padding of no longer used embedded register slots.
10005         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10006         (MIPS_RESTART_REGNUM): Redefine enum value.
10007         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10008         strings.
10009         (mips_tx39_reg_names): Likewise.
10010         (mips_linux_reg_names): New array of register names for Linux
10011         targets.
10012         (mips_register_name): Check for a null pointer in
10013         mips_processor_reg_names and return an empty string.
10014         (mips_register_type): Exclude embedded registers for the IRIX
10015         and Linux ABIs.
10016         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
10017         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
10018         DSP registers.
10019         (mips_stab_reg_to_regnum): Handle DSP accumulators.
10020         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10021         (mips_gdbarch_init): Likewise.  Initialize internal register
10022         indices for the Linux ABI.  Use dynamic numbers to refer to
10023         registers, as applicable, while parsing the target description.
10024         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10025
10026 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
10027
10028         * frame.h (read_frame_register_unsigned): Fix typo in function
10029         description.
10030
10031 2012-03-01  Pedro Alves  <palves@redhat.com>
10032
10033         * jit-reader.in [!__cplusplus]
10034         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10035
10036 2012-03-01  Pedro Alves  <palves@redhat.com>
10037
10038         * configure.ac (build_warnings): Add -Wmissing-prototypes.
10039         * configure: Regenerate.
10040
10041 2012-03-01  Pedro Alves  <palves@redhat.com>
10042
10043         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10044         * breakpoint.c (create_exception_master_breakpoint, trace_command)
10045         (ftrace_command, strace_command): Make static.
10046         * d-lang.c (_initialize_d_language): Declare.
10047         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10048         * dwarf2loc.c (_initialize_dwarf2loc):
10049         * dwarf2read.c (process_psymtab_comp_unit): Make static.
10050         * exec.c (exec_get_section_table): Make static.
10051         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10052         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10053         * inferior.c (remove_inferior_command, add_inferior_command)
10054         (clone_inferior_command): Make static.
10055         * linux-nat.c (linux_nat_thread_address_space)
10056         (linux_nat_core_of_thread): Make static.
10057         * linux-tdep.c (_initialize_linux_tdep): Declare.
10058         * objc-lang.c (_initialize_objc_lang): Declare.
10059         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10060         Make static.
10061         (_initialize_opencl_language): Declare.
10062         * record.c (_initialize_record): Declare.
10063         * remote.c (demand_private_info, remote_get_tib_address)
10064         (remote_supports_cond_tracepoints)
10065         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10066         Make static.
10067         * skip.c (_initialize_step_skip): Declare.
10068         * symtab.c (skip_prologue_using_lineinfo): Make static.
10069         * tracepoint.c (delete_trace_state_variable)
10070         (trace_variable_command, delete_trace_variable_command)
10071         (get_uploaded_tsv, find_matching_tracepoint_location)
10072         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10073         Make static.
10074         * value.c (pack_unsigned_long): Make static.
10075         * varobj.c (varobj_ensure_python_env): Make static.
10076         * windows-tdep.c (_initialize_windows_tdep): Declare.
10077         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10078
10079 2012-03-01  Pedro Alves  <palves@redhat.com>
10080
10081         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
10082         gdbarch parameter.
10083         (linux_init_abi): Install it as has_shared_address_space gdbarch
10084         callback.
10085
10086 2012-03-01  Pedro Alves  <palves@redhat.com>
10087
10088         * observer.c (observer_test_first_notification_function)
10089         (observer_test_second_notification_function)
10090         (observer_test_third_notification_function): Add declarations.
10091
10092 2012-03-01  Pedro Alves  <palves@redhat.com>
10093
10094         * common/signals.c (default_target_signal_to_host)
10095         (default_target_signal_from_host): Move ...
10096         * arch-utils.c: ... here.
10097         * arch-utils.h (default_target_signal_to_host)
10098         (default_target_signal_from_host): Declare.
10099
10100         * common/signals.c (target_signal_from_command): Move ...
10101         * infrun.c: ... here.
10102         * inferior.h (target_signal_from_command): Declare.
10103         * target.h (target_signal_from_command)
10104         (default_target_signal_from_host, default_target_signal_to_host):
10105         Delete declarations.
10106
10107         * common/signals.c (_initialize_signals): Delete.
10108
10109 2012-03-01  Pedro Alves  <palves@redhat.com>
10110
10111         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10112         both __cplusplus and !__cplusplus.
10113
10114 2012-03-01  Pedro Alves  <palves@redhat.com>
10115
10116         * psymtab.c (find_and_open_source): Delete declaration.
10117         * source.c (find_and_open_source): Move comment ...
10118         * source.h (find_and_open_source): ... to this new declaration.
10119
10120 2012-03-01  Pedro Alves  <palves@redhat.com>
10121
10122         * inline-frame.c: Include inline-frame.h.
10123
10124 2012-03-01  Pedro Alves  <palves@redhat.com>
10125
10126         * tui/tui-data.c (set_gen_win_origin): Delete.
10127         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10128         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10129
10130 2012-03-01  Pedro Alves  <palves@redhat.com>
10131
10132         * remote.c (encode_actions): Delete declaration.
10133         * tracepoint.c (encode_actions): Make extern.
10134         * tracepoint.h (encode_actions): Declare.
10135
10136 2012-03-01  Pedro Alves  <palves@redhat.com>
10137
10138         * python/py-breakpoint.c: Include python.h.
10139         * python/py-continueevent.c (create_continue_event_object): Make
10140         static.
10141         * python/py-lazy-string.c (stpy_get_type): Make static.
10142         * python/py-newobjfileevent.c (create_new_objfile_event_object):
10143         Make static.
10144         * python/py-utils.c (unicode_to_target_python_string): Make
10145         static.
10146         * python/py-value.c: Include python.h.
10147
10148 2012-03-01  Pedro Alves  <palves@redhat.com>
10149
10150         * inferior.c (delete_threads_of_inferior): Delete.
10151
10152 2012-03-01  Pedro Alves  <palves@redhat.com>
10153
10154         Import fallback definitions from glibc.
10155
10156         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10157         ps_prochandle): Forward declare.
10158         (ps_err_e): Use glibc's comments.
10159         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10160         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10161         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10162         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10163         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10164         (struct ps_prochandle): Adjust comment.
10165
10166 2012-03-01  Pedro Alves  <palves@redhat.com>
10167
10168         * ada-lang.c (ada_modulus_from_name): Delete.
10169         * ada-lex.l (lexer_init): Make static.
10170
10171 2012-03-01  Pedro Alves  <palves@redhat.com>
10172
10173         PR gdb/13767
10174
10175         * frame.c (read_frame_register_unsigned): New.
10176         * frame.h (read_frame_register_unsigned): Declare.
10177         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10178         Handle it.
10179         (print_i387_control_word): New parameter `control_p'.  Handle it.
10180         (i387_print_float_info): Handle unavailable float registers.
10181
10182 2012-03-01  Keith Seitz  <keiths@redhat.com>
10183
10184         * linespec.c (decode_line_2): Sort the list of methods
10185         alphabetically before presenting the user with a selection
10186         menu.
10187
10188 2012-03-01  Doug Evans  <dje@google.com>
10189
10190         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10191         has_namespace_info.
10192         (dwarf2_read_abbrevs): Remove corresponding initialization.
10193
10194 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
10195
10196         * NEWS: Mention new python command class gdb.COMMAND_USER.
10197         * cli/cli-cmds.c (show_user): Print error when used on a python
10198         command.
10199         (init_cli_cmds): Update documentation strings for "show user" and
10200         "set/show max-user-call-depth" to clarify that it does not apply to
10201         python commands.
10202         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10203         error check.
10204         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10205         gdb python api.
10206         * top.c (execute_command): Only execute a user-defined command as a
10207         legacy macro if c->user_commands is set.
10208
10209 2012-03-01  Tom Tromey  <tromey@redhat.com>
10210
10211         * valprint.h (struct generic_val_print_decorations): New.
10212         (generic_val_print): Declare.
10213         * valprint.c (generic_val_print): New function.
10214         * p-valprint.c (p_decorations): New global.
10215         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10216         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10217         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10218         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10219         * m2-valprint.c (m2_decorations): New global.
10220         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10221         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10222         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10223         TYPE_CODE_ERROR>: Call generic_val_print.
10224         * f-valprint.c (f_decorations): New global.
10225         (f_val_print): Use print_function_pointer_address.
10226         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10227         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10228         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10229         generic_val_print.
10230         * c-valprint.c (c_decorations): New global.
10231         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10232         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10233         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10234         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10235         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10236         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10237         case.
10238
10239 2012-03-01  Tom Tromey  <tromey@redhat.com>
10240
10241         * valprint.c (val_print): Update.
10242         * p-valprint (pascal_val_print): Return void.
10243         * p-lang.h (pascal_val_print): Return void.
10244         * m2-valprint.c (m2_val_print): Return void.
10245         * m2-lang.h (m2_val_print): Return void.
10246         * language.h (struct language_defn) <la_val_print>: Return void.
10247         * language.c (unk_lang_val_print): Return void.
10248         * jv-valprint.c (java_val_print): Return void.
10249         * jv-lang.h (java_val_print): Return void.
10250         * f-valprint.c (f_val_print): Return void.
10251         * f-lang.h (f_val_print): Return void.
10252         * d-valprint.c (d_val_print): Return void.
10253         (dynamic_array_type): Update.
10254         * d-lang.h (d_val_print): Return void.
10255         * c-valprint.c (c_val_print): Return void.
10256         * c-lang.h (c_val_print): Return void.
10257         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10258         void.
10259         * ada-lang.h (ada_val_print): Return void.
10260
10261 2012-03-01  Tom Tromey  <tromey@redhat.com>
10262
10263         * value.h (val_print): Return void.
10264         * valprint.c (val_print): Return void.
10265
10266 2012-03-01  Tom Tromey  <tromey@redhat.com>
10267
10268         * value.h (common_val_print): Return void.
10269         * valprint.c (common_val_print): Return void.
10270
10271 2012-03-01  Tom Tromey  <tromey@redhat.com>
10272
10273         * value.h (value_print): Return void.
10274         * valprint.c (value_print): Return void.
10275         * p-valprint.c (pascal_value_print): Return void.
10276         * p-lang.h (pascal_value_print): Return void.
10277         * language.h (struct language_defn) <la_value_print>: Return
10278         void.
10279         * language.c (unk_lang_value_print): Return void.
10280         * jv-valprint.c (java_value_print): Return void.
10281         * jv-lang.h (java_value_print): Return void.
10282         * f-valprint.c (c_value_print): Don't declare.
10283         Include c-lang.h.
10284         * c-valprint.c (c_value_print): Return void.
10285         * c-lang.h (c_value_print): Return void.
10286         * ada-valprint.c (ada_value_print): Return void.
10287         * ada-lang.h (ada_value_print): Return void.
10288
10289 2012-03-01  Tom Tromey  <tromey@redhat.com>
10290
10291         * value.c (value_primitive_field): Handle virtual base classes.
10292
10293 2012-03-01  Tom Tromey  <tromey@redhat.com>
10294
10295         * gdbtypes.h (struct vbase): Remove.
10296
10297 2012-03-01  Tom Tromey  <tromey@redhat.com>
10298
10299         * c-valprint.c (print_function_pointer_address): Move...
10300         * valprint.c: ... here.  Make non-static.
10301         * m2-valprint.c (print_function_pointer_address): Remove.
10302         * valprint.h (print_function_pointer_address): Declare.
10303
10304 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
10305
10306         * NEWS: Document the fact that one can provide a condition when
10307         creating an Ada exception catchpoint.
10308
10309 2012-03-01  Tom Tromey  <tromey@redhat.com>
10310
10311         * valprint.c (val_print_type_code_flags): Fix placement of
10312         trailing brace.
10313
10314 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
10315
10316         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10317         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10318         environment variable before calling update-copyright.
10319
10320 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
10321
10322         * gnulib/extra/update-copyright: Update to the latest from
10323         gnulib's git repository.
10324         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10325         variable to 2 instead of 1.
10326
10327 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10328
10329         * varobj.c (c_value_of_variable): Remove dead code.
10330
10331 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10332
10333         * ada-lex.p (processId): Do not modify already encoded IDs.
10334         Update function documentation.
10335
10336 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10337
10338         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10339         "name" with "struct symbol *name_sym".
10340         * ada-exp.y (write_var_or_type): Update call to
10341         ada_find_renaming_symbol.
10342         "name" with "struct symbol *name_sym". Adjust Implementation
10343         accordingly.  Adjust the function documentation.
10344
10345 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10346
10347         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10348         * ada-lang.c (ada_find_any_type): Add advance declaration.
10349         Make static.  Replace ada_find_any_symbol by
10350         ada_find_any_type_symbol.
10351         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10352         Improve function description.  Make static.
10353         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10354         Replace ada_find_any_symbol by ada_find_any_type_symbol.
10355
10356 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10357
10358         * ada-lang.c (struct tag_args): Delete.
10359         (ada_get_tsd_type): Function body moved up in source file.
10360         (ada_tag_name_1, ada_tag_name_2): Delete.
10361         (ada_get_tsd_from_tag): New function.
10362         (ada_tag_name_from_tsd): New function.
10363         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10364         to determine the tag name.
10365
10366 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10367
10368         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10369         declaration.
10370         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10371         function.
10372
10373 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10374
10375         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10376
10377 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10378
10379         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10380         full searches.
10381
10382 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10383
10384         * ada-lang.c (constrained_packed_array_type): If there is a
10385         parallel XA type, use it to determine the array index type.
10386
10387 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10388
10389         * ada-valprint.c (ada_val_print_1): If our value is a reference
10390         to an array descriptor, dereference it before converting it
10391         to a simple array.
10392
10393 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10394
10395         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10396         creating fixed value.
10397         (ada_value_ind, ada_coerce_ref, assign_component)
10398         (ada_evaluate_subexp): Remove call to unwrap_value before
10399         call to ada_to_fixed_value.
10400
10401 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10402
10403         * ada-lang.c (to_fixed_array_type): Set result's type name.
10404
10405 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10406
10407         * ada-lang.c (catch_ada_exception_command_split): Add new
10408         argument cond_string.  Add support for condition at end of
10409         "catch exception" commands.
10410         (ada_decode_exception_location): Add new argument cond_string.
10411         Update call to catch_ada_exception_command_split.
10412         (create_ada_exception_catchpoint): Add new argument cond_string.
10413         Set the breakpoint condition if needed.
10414         (catch_ada_exception_command): Update call to
10415         ada_decode_exception_location.
10416         (ada_decode_assert_location): Add function documentation.
10417         Add support for condition at end of "catch assert" command.
10418         (catch_assert_command): Update calls to ada_decode_assert_location
10419         and create_ada_exception_catchpoint.
10420
10421 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
10422
10423         Fix disp-step-syscall.exp: fork: single step over fork.
10424         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10425         (i386_linux_get_syscall_number_from_regcache): ... here, new function
10426         comment, change parameters gdbarch and ptid to regcache.  Remove
10427         parameter regcache, initialize gdbarch from regcache here.
10428         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10429         New functions.
10430         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10431         instead.
10432         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10433         'syscall'.  Make the 'int' check more strict.
10434
10435 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
10436
10437         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10438         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10439         (i386_linux_intx80_sysenter_syscall_record): ... here.
10440         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10441         Use the renamed function name.
10442
10443 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
10444
10445         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10446         * breakpoint.c (until_break_command): Likewise.
10447         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10448         * infcall.c (call_function_by_hand): Likewise.
10449         * infcmd.c (finish_forward): Likewise.
10450         * infrun.c (insert_exception_resume_breakpoint): Likewise.
10451
10452 2012-02-28  Tristan Gingold  <gingold@adacore.com>
10453
10454         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10455         avoid variable assignments inside condition.
10456
10457 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
10458
10459         Fix static analysis issue found by cppcheck.
10460         * microblaze-tdep.c (microblaze_extract_return_value): Fix
10461         uninitialized BUF for size 2.
10462
10463 2012-02-27  Chris Dearman  <chris@mips.com>
10464             Nathan Froyd  <froydnj@codesourcery.com>
10465             Maciej W. Rozycki  <macro@codesourcery.com>
10466
10467         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10468         (mips16_instruction_has_delay_slot): Likewise.
10469         (mips_segment_boundary): Likewise.
10470         (mips_adjust_breakpoint_address): Likewise.
10471         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10472
10473 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
10474             Maciej W. Rozycki  <macro@codesourcery.com>
10475
10476         * infrun.c (handle_inferior_event): Don't proceed through
10477         shared library trampolines if stepping at the machine
10478         instruction level.
10479
10480 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
10481
10482         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10483         too.
10484
10485 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
10486
10487         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10488         (sh_stub_unwind_sniffer): New functions.
10489         (sh_stub_unwind): New variable.
10490         (sh_gdbarch_init): Wire everything.
10491
10492 2012-02-27  Pedro Alves  <palves@redhat.com>
10493
10494         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10495         (linux_nat_post_attach_wait): Adjust to use
10496         linux_proc_pid_is_stopped.
10497         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10498         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10499         based on pid_is_stopped from both linux-nat.c and
10500         gdbserver/linux-low.c, and renamed.
10501
10502 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
10503
10504         * remote.c (remote_watchpoint_addr_within_range): New function.
10505         (init_remote_ops): Use it.
10506
10507 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
10508
10509         * target.h (target_watchpoint_addr_within_range): Document macro.
10510
10511 2012-02-24  Pedro Alves  <palves@redhat.com>
10512
10513         * stack.c (set_last_displayed_sal): Issue internal_error instead
10514         of warning, and issue it after clearing the last displayed sal.
10515
10516 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10517             Pedro Alves  <palves@redhat.com>
10518
10519         * breakpoint.c (until_break_command): Install breakpoints after
10520         all frame manipulations.
10521
10522 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10523
10524         * remote.c (remote_supports_cond_breakpoints): New forward
10525         declaration.
10526         (remote_add_target_side_condition): New function.
10527         (remote_insert_breakpoint): Add target-side breakpoint
10528         conditional if supported.
10529         (remote_insert_hw_breakpoint): Likewise.
10530         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10531         hook.
10532
10533         * target.c (update_current_target): Inherit
10534         to_supports_evaluation_of_breakpoint_conditions.
10535         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10536
10537         * target.h (struct target_ops)
10538         <to_supports_evaluation_of_breakpoint_conditions>: New field.
10539         (target_supports_evaluation_of_breakpoint_conditions): New #define.
10540
10541         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10542         (condition_evaluation_both, condition_evaluation_auto,
10543         condition_evaluation_host, condition_evaluation_target,
10544         condition_evaluation_enums, condition_evaluation_mode_1,
10545         condition_evaluation_mode): New static globals.
10546         (translate_condition_evaluation_mode): New function.
10547         (breakpoint_condition_evaluation_mode): New function.
10548         (gdb_evaluates_breakpoint_condition_p): New function.
10549         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10550         (mark_breakpoint_modified): New function.
10551         (mark_breakpoint_location_modified): New function.
10552         (set_condition_evaluation_mode): New function.
10553         (show_condition_evaluation_mode): New function.
10554         (bp_location_compare_addrs): New function.
10555         (get_first_location_gte_addr): New helper function.
10556         (set_breakpoint_condition): Free condition bytecode if locations
10557         has become unconditional.  Call mark_breakpoint_modified (...).
10558         (condition_command): Call update_global_location_list (1) for
10559         breakpoints.
10560         (breakpoint_xfer_memory): Use is_breakpoint (...).
10561         (is_breakpoint): New function.
10562         (parse_cond_to_aexpr): New function.
10563         (build_target_condition_list): New function.
10564         (insert_bp_location): Handle target-side conditional
10565         breakpoints and call build_target_condition_list (...).
10566         (update_inserted_breakpoint_locations): New function.
10567         (insert_breakpoint_locations): Handle target-side conditional
10568         breakpoints.
10569         (bpstat_check_breakpoint_conditions): Add comment.
10570         (bp_condition_evaluator): New function.
10571         (bp_location_condition_evaluator): New function.
10572         (print_breakpoint_location): Print information on where the condition
10573         will be evaluated.
10574         (print_one_breakpoint_location): Likewise.
10575         (init_bp_location): Call mark_breakpoint_location_modified (...) for
10576         breakpoint location.
10577         (force_breakpoint_reinsertion): New functions.
10578         (update_global_location_list): Handle target-side breakpoint
10579         conditions.
10580         Reinsert locations that are already inserted if conditions have
10581         changed.
10582         (bp_location_dtor): Free agent expression bytecode.
10583         (disable_breakpoint): Call mark_breakpoint_modified (...).
10584         Call update_global_location_list (...) with parameter 1 for breakpoints.
10585         (disable_command): Call mark_breakpoint_location_modified (...).
10586         Call update_global_location_list (...) with parameter 1 for breakpoints.
10587         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10588         (enable_command): mark_breakpoint_location_modified (...).
10589         (_initialize_breakpoint): Update documentation and add
10590         condition-evaluation breakpoint subcommand.
10591
10592         * breakpoint.h: Include ax.h.
10593         (condition_list): New data structure.
10594         (condition_status): New enum.
10595         (bp_target_info) <cond_list>: New field.
10596         (bp_location) <condition_changed, cond_bytecode>: New fields.
10597         (is_breakpoint): New prototype.
10598
10599 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10600
10601         * remote.c (remote_state) <cond_breakpoints>: New field.
10602         (PACKET_ConditionalBreakpoints): New enum.
10603         (remote_cond_breakpoint_feature): New function.
10604         (remote_protocol_features): Add new ConditionalBreakpoints entry.
10605         (remote_supports_cond_breakpoints): New function.
10606         (_initialize_remote): Add new packet configuration for
10607         target-side conditional breakpoints.
10608
10609 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10610
10611         * NEWS: Mention target-side conditional breakpoint support,
10612         new condition-evaluation breakpoint subcommand and remote
10613         packet extensions.
10614
10615 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10616
10617         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10618         number.
10619
10620 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
10621
10622         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10623         (after_prologue): Remove.
10624
10625 2012-02-23  Tom Tromey  <tromey@redhat.com>
10626
10627         * jv-valprint.c (java_val_print): Remove dead code.
10628
10629 2012-02-23  Tristan Gingold  <gingold@adacore.com>
10630
10631         * ada-tasks.c (struct ada_tasks_inferior_data): Add
10632         known_tasks_element and known_tasks_length fields.
10633         (read_known_tasks_array): Change argument type.  Use pointer type
10634         and number of elements from DATA.  Adjust.
10635         (read_known_tasks_list): Likewise.
10636         (get_known_tasks_addr): Remove.
10637         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10638         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
10639         type and array length.  Merge former get_known_tasks_addr code.
10640
10641 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10642
10643         PR backtrace/13716
10644         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10645         it after set_momentary_breakpoint.
10646
10647 2012-02-22  Sterling Augustine  <saugustine@google.com>
10648
10649         PR 13689:
10650         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10651
10652 2012-02-22  Gary Benson  <gbenson@redhat.com>
10653
10654         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10655         (find_slot_in_mapped_hash): Likewise.
10656
10657 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10658
10659         PR build/13638
10660         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10661         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10662         * configure: Regenerate.
10663
10664 2012-02-21  Tristan Gingold  <gingold@adacore.com>
10665             Pedro Alves  <palves@redhat.com>
10666
10667         * ia64-tdep.c: Do not include libunwind-ia64.h.
10668         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10669         Include libunwind-ia64.h instead of libunwind.h.
10670         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10671         for libunwind.h existence.
10672         * configure, config.in: Regenerate.
10673
10674 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
10675
10676         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10677         instead of value_rtti_target_type.
10678         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10679         instead of value_rtti_target_type.
10680         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10681         value_rtti_target_type.
10682         * valops.c (value_ind): Extract function readjust_indirect_value_type.
10683         (value_rtti_target_type): Rename to ...
10684         (value_rtti_indirect_type): ... here and make it indirect.  Update
10685         function comment.
10686         * value.c (readjust_indirect_value_type): New function.
10687         (coerce_ref): Support for enclosing type setting for references
10688         with readjust_indirect_value_type.
10689         * value.h (readjust_value_type): New declaration.
10690         (value_rtti_target_type): Rename to ...
10691         (value_rtti_indirect_type): ... here.
10692
10693 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
10694
10695         * MAINTAINERS (Write After Approval): Add myself to the list.
10696
10697 2012-02-20  Doug Evans  <dje@google.com>
10698
10699         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10700         Rename objfile_p_char parameter to objfilep.
10701         (build_objfile_section_table): Result is now void.  All callers
10702         updated.
10703         * objfiles.h (struct objfile): Tweak comments, whitespace.
10704         (build_objfile_section_table): Update.
10705
10706         * elfread.c (elf_symfile_segments): Fix warning text.
10707
10708 2012-02-20  Tom Tromey  <tromey@redhat.com>
10709
10710         PR gdb/13498:
10711         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10712         particular set of file names once.
10713         (dw2_map_symbol_filenames): Likewise.
10714
10715 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10716
10717         Code cleanup.
10718         * main.c (write_files): Remove the declaration.
10719         (external_editor_command): Move the declaration ...
10720         [GDBTK] (external_editor_command): ... here.  Fix the comment.
10721
10722 2012-02-20  Tom Tromey  <tromey@redhat.com>
10723
10724         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10725         extraneous block.
10726
10727 2012-02-20  Tristan Gingold  <gingold@adacore.com>
10728
10729         * darwin-nat.h (enum darwin_msg_state): Add comments.
10730
10731 2012-02-20  Tristan Gingold  <gingold@adacore.com>
10732
10733         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10734         value.
10735
10736 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
10737
10738         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10739         between function description and implementation.
10740
10741 2012-02-17  Tom Tromey  <tromey@redhat.com>
10742
10743         PR python/12070:
10744         * python/py-event.c (event_object_getset): New global.
10745         (event_object_type): Reference it.
10746         * python/py-type.c (field_object_getset): New global.
10747         (field_object_type): Reference it.
10748         * python/python-internal.h (gdb_py_generic_dict): Declare.
10749         * python/py-utils.c (gdb_py_generic_dict): New function.
10750
10751 2012-02-17  Tristan Gingold  <gingold@adacore.com>
10752
10753         * solib-darwin.c (darwin_current_sos): Check magic and filetype
10754
10755 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
10756
10757         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10758         TYPE_CALLING_CONVENTION annotation.
10759
10760 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
10761
10762         * MAINTAINERS: Add rx to target ISA section.
10763         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10764         (ALLDEPFILES): Add rx-tdep.c.
10765
10766 2012-02-16  Tom Tromey  <tromey@redhat.com>
10767
10768         * symfile.c (symbol_file_add_main_1): Use inferior's
10769         symfile_flags.
10770         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10771         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10772         inferior.
10773         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10774         inferior.
10775         (follow_exec): Use inferior's symfile_flags.
10776         * inferior.h (struct inferior) <symfile_flags>: New field.
10777
10778 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
10779
10780         PR gdb/9734:
10781         * remote-sim.c (gdbsim_create_inferior): Call error() when
10782         sim_create_inferior() fails.
10783
10784 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
10785
10786         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10787
10788 2012-02-16  Tom Tromey  <tromey@redhat.com>
10789
10790         PR c++/13653:
10791         * thread.c (struct current_thread_cleanup) <was_removable>: New
10792         field.
10793         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10794         (make_cleanup_restore_current_thread): Initialize new field.
10795
10796 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
10797
10798         * MAINTAINERS: Add rl78 to target ISA section.
10799         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10800         (ALLDEPFILES): Add rl78-tdep.c.
10801         * NEWS: Mention rl78 as a new target.
10802
10803 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
10804
10805         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10806         data.
10807         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10808
10809 2012-02-15  Tom Tromey  <tromey@redhat.com>
10810
10811         PR gdb/12659:
10812         * infcmd.c (registers_info): Print just the current register's
10813         name.
10814
10815 2012-02-15  Tom Tromey  <tromey@redhat.com>
10816
10817         * python/py-symbol.c (sympy_value): Use _().
10818
10819 2012-02-15  Pedro Alves  <palves@redhat.com>
10820
10821         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10822         output to be like native targets'.
10823         (remote_pid_to_str): Special case the null ptid.
10824
10825 2012-02-14  Stan Shebs  <stan@codesourcery.com>
10826
10827         * NEWS: Mention enable count command.
10828         * breakpoint.h (struct breakpoint): New field enable_count.
10829         * breakpoint.c (enable_breakpoint_disp): Add count argument.
10830         (enable_breakpoint): Add arg to call.
10831         (struct disp_data): New struct.
10832         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10833         (do_map_enable_once_breakpoint): Create a struct and pass it.
10834         (do_map_enable_delete_breakpoint): Ditto.
10835         (do_map_enable_count_breakpoint): New function.
10836         (enable_count_command): New function.
10837         (bpstat_stop_status): Decrement enable_count.
10838         (print_one_breakpoint_location): Report enable count.
10839         (_initialize_breakpoint): Add enable count command.
10840
10841 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
10842
10843         * rl78-tdep.c (reggroups.h): Include.
10844         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10845         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10846         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10847         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10848         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10849         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10850         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10851         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10852         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10853         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10854         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10855         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10856         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10857         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10858         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10859         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10860         beginning of register list.
10861         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10862         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10863         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10864         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10865         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10866         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10867         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10868         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10869         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10870         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10871         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10872         the pseudo registers.  Rearrange other pseudo registers too so
10873         that the bank registers appear at the end.
10874         (rl78_register_type): Account for the fact that the byte sized
10875         bank registers are now pseudo-registers.
10876         (rl78_register_name): Rearrange the register name array.  Make
10877         initial set of raw banked registers inaccessible.
10878         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10879         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10880         case for copying bytes back and forth between raw and pseudo
10881         versions of the banked registers.  Update other cases to reflect
10882         the changed names.
10883         (rl78_return_value): Update to account for changed names of
10884         raw registers.
10885         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10886         rl78_register_sim_regno().
10887
10888 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
10889
10890         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10891         the name parameter being passed to find_pc_partial_function().
10892
10893 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10894
10895         * MAINTAINERS: Step down from being ia64 target maintainer.
10896
10897 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10898
10899         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10900         compilation warning.
10901
10902 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10903
10904         Fix crash on loaded shlibs without loaded exec_bfd.
10905         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10906         (set_section_command): Replace exec_bfd by p->bfd.
10907
10908 2012-02-10  Tom Tromey  <tromey@redhat.com>
10909
10910         * linespec.c (decode_line_internal): Skip symtabs_from_filename
10911         when we have a C++ qualified name.
10912
10913 2012-02-10  Pedro Alves  <palves@redhat.com>
10914
10915         * inferior.c (inferior_pid_to_str): New.
10916         (print_inferior, inferior_command): Use it.
10917
10918 2012-02-10  Pedro Alves  <palves@redhat.com>
10919
10920         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10921         the test CFLAGS.
10922         * configure: Regenerate.
10923
10924 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10925
10926         * linespec.c (decode_line_internal): Fix comment correctness.
10927
10928 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
10929
10930         PR gdb/12953
10931         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10932         * amd64bsd-nat.c: Add support for debug registers (adapted from
10933         i386bsd-nat.c).
10934         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10935         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10936         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10937         (amd64bsd_dr_get_control): New functions.
10938         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10939         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10940         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10941         watchpoints initialization.
10942         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10943
10944 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10945
10946         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10947         flds_bnds.fields.
10948         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10949
10950 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10951
10952         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
10953
10954 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
10955
10956         * language.h (symbol_name_cmp_ftype): Renames
10957         symbol_name_match_p_ftype.
10958         (struct language_defn)[la_get_symbol_name_cmp]: Renames
10959         la_get_symbol_name_match_p.
10960         * ada-lang.c (ada_get_symbol_name_cmp): Renames
10961         ada_get_symbol_name_match_p.  Update comment.
10962         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10963         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10964         Renames symbol_name_match_p.  Update field type.
10965         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10966         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10967         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10968         "la_get_symbol_name_cmp" in comments.
10969         * language.c: Likewise.
10970
10971 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10972
10973         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10974         %eflags offset.
10975         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10976         (amd64_sol2_gregset32_reg_offs): Likewise.
10977
10978 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
10979
10980         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10981         of the returned BFD is allocated by GDB.
10982
10983 2012-02-07  Tom Tromey  <tromey@redhat.com>
10984
10985         PR python/12027:
10986         * python/python-internal.h (frame_object_type): Declare.
10987         * python/py-symbol.c (sympy_needs_frame): New function.
10988         (sympy_value): New function.
10989         (symbol_object_getset): Add "needs_frame".
10990         (symbol_object_methods): Add "value".
10991         * python/py-frame.c (frame_object_type): No longer static.
10992
10993 2012-02-07  Tom Tromey  <tromey@redhat.com>
10994
10995         PR python/13599:
10996         * python/py-symbol.c (sympy_line): New function.
10997         (symbol_object_getset): Add "line".
10998
10999 2012-02-07  Tom Tromey  <tromey@redhat.com>
11000
11001         * charset.c (find_charset_names): Check 'in' against NULL.
11002
11003 2012-02-06  Doug Evans  <dje@google.com>
11004
11005         * gdbtypes.h (struct main_type): Change type of name,tag_name,
11006         and fields.name members from char * to const char *.  All uses updated.
11007         (struct cplus_struct_type): Change type of fn_fieldlists.name member
11008         from char * to const char *.  All uses updated.
11009         (type_name_no_tag): Update.
11010         (lookup_unsigned_typename, lookup_signed_typename): Update.
11011         * gdbtypes.c (type_name_no_tag): Change result type
11012         from char * to const char *.  All callers updated.
11013         (lookup_unsigned_typename, lookup_signed_typename): Change type of
11014         name parameter from char * to const char *.
11015         * symtab.h (struct cplus_specific): Change type of demangled_name
11016         member from char * to const char *.  All uses updated.
11017         (struct general_symbol_info): Change type of name and
11018         mangled_lang.demangled_name members from char * to const char *.
11019         All uses updated.
11020         (symbol_get_demangled_name, symbol_natural_name): Update.
11021         (symbol_demangled_name, symbol_search_name): Update.
11022         * symtab.c (symbol_get_demangled_name): Change result type
11023         from char * to const char *.  All callers updated.
11024         (symbol_natural_name, symbol_demangled_name): Ditto.
11025         (symbol_search_name): Ditto.
11026         (completion_list_add_name): Change type of symname,sym_text,
11027         text,word parameters from char * to const char *.
11028         (completion_list_objc_symbol): Change type of sym_text,
11029         text,word parameters from char * to const char *.
11030         * ada-lang.c (find_struct_field): Change type of name parameter
11031         from char * to const char *.
11032         (encoded_ordered_before): Similarly for N0,N1 parameters.
11033         (old_renaming_is_invisible): Similarly for function_name parameter.
11034         (ada_type_name): Change result type from char * to const char *.
11035         All callers updated.
11036         * ada-lang.h (ada_type_name): Update.
11037         * buildsym.c (hashname): Change type of name parameter
11038         from char * to const char *.
11039         * buildsym.h (hashname): Update.
11040         * dbxread.c (end_psymtab): Change type of include_list parameter
11041         from char ** to const char **.
11042         * dwarf2read.c (determine_prefix): Change result type
11043         from char * to const char *.  All callers updated.
11044         * f-lang.c (find_common_for_function): Change type of name, funcname
11045         parameters from char * to const char *.
11046         * f-lang.c (find_common_for_function): Update.
11047         * f-valprint.c (list_all_visible_commons): Change type of funcname
11048         parameters from char * to const char *.
11049         * gdbarch.sh (static_transform_name): Change type of name parameter
11050         and result from char * to const char *.
11051         * gdbarch.c: Regenerate.
11052         * gdbarch.h: Regenerate.
11053         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11054         of name parameter from char * to const char *.
11055         * jv-lang.c (java_primitive_type_from_name): Ditto.
11056         (java_demangled_signature_length): Similarly for signature parameter.
11057         (java_demangled_signature_copy): Ditto.
11058         (java_demangle_type_signature): Ditto.
11059         * jv-lang.h (java_primitive_type_from_name): Update.
11060         (java_demangle_type_signature): Update.
11061         * objc-lang.c (specialcmp): Change type of a,b parameters
11062         from char * to const char *.
11063         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11064         from char * to const char *.  All callers updated.
11065         * p-lang.h (is_pascal_string_type): Update.
11066         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11067         of name parameter from char * to const char *.
11068         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11069         * utils.c (fprintf_symbol_filtered): Ditto.
11070         * defs.h (fprintf_symbol_filtered): Update.
11071         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11072         * stabsread.h (end_psymtab): Update.
11073         * stack.c (find_frame_funname): Change type of funname parameter
11074         from char ** to const char **.
11075         * stack.h (find_frame_funname): Update.
11076         * typeprint.c (type_print): Change type of varstring parameter
11077         from char * to const char *.
11078         * value.h (type_print): Update.
11079         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11080         from char * to const char *.  All callers updated.
11081         (xcoff_end_psymtab): Change type of include_list parameter
11082         from char ** to const char **.  All callers updated.
11083         (swap_sym): Similarly for name parameter.  All callers updated.
11084         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11085         Use xstrdup.
11086         (process_coff_symbol): Use xstrdup.
11087         * stabsread.c (stabs_method_name_from_physname): Renamed from
11088         update_method_name_from_physname.  Change result type from void
11089         to char *.  All callers updated.
11090         (read_member_functions): In has_destructor case, store name in objfile
11091         obstack instead of malloc space.  In !has_stub case, fix mem leak.
11092
11093 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
11094
11095         * configure: Rebuild.
11096         * configure.ac: Put -L../bfd and -L../libiberty at the front of
11097         LDFLAGS.
11098
11099 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
11100
11101         * configure.tgt (rl78-*-elf): New target.
11102         * rl78-tdep.c: New file.
11103
11104 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
11105
11106         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11107         and continue the loop.  Add QUIT statement.
11108
11109 2012-02-03  Tom Tromey  <tromey@redhat.com>
11110
11111         PR gdb/13596:
11112         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11113         bfd_lookup_symbol_from_symtab.
11114         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11115         gdb_bfd_lookup_symbol_from_symtab.
11116
11117 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
11118
11119         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11120         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11121         symbol.  Add assertion that sym2 is never NULL.
11122
11123 2012-02-02  Doug Evans  <dje@google.com>
11124
11125         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11126         "name" parameter to const char ** from char **.  All callers updated.
11127         (find_pc_partial_function): Ditto.
11128         (cache_pc_function_name): Change type to const char * from char *.
11129         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11130         (find_pc_partial_function): Update.
11131         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11132         type of "name" parameter to const char * from char *.
11133         All uses updated.
11134         * arch-utils.c (generic_in_solib_return_trampoline): Change
11135         type of "name" parameter to const char * from char *.
11136         * arch-utils.h (generic_in_solib_return_trampoline): Update.
11137         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11138         type of "name" parameter to const char * from char *.
11139         * gdbarch.sh (in_solib_return_trampoline): Ditto.
11140         * gdbarch.c: Regenerate.
11141         * gdbarch.h: Regenerate.
11142         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11143         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11144         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11145         type of "name" parameter to const char * from char *.
11146         * skip.c (skip_function_pc): Ditto.
11147         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11148         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11149         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11150         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11151         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11152         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11153         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11154         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11155         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11156
11157 2012-02-02  Pedro Alves  <palves@redhat.com>
11158
11159         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11160         the current inferior has no execution.  Make sure the current
11161         remote process matches gdb's current inferior.
11162
11163 2012-02-02  Tom Tromey  <tromey@redhat.com>
11164
11165         PR gdb/13405:
11166         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11167         read-only memory.
11168
11169 2012-02-02  Tom Tromey  <tromey@redhat.com>
11170
11171         PR gdb/9307:
11172         * symtab.c (lookup_language_this): Set block_found.
11173
11174 2012-02-01  Tom Tromey  <tromey@redhat.com>
11175
11176         PR gdb/13431:
11177         * jit.c (struct jit_inferior_data): Rewrite.
11178         (struct jit_objfile_data): New.
11179         (get_jit_objfile_data): New function.
11180         (add_objfile_entry): Update.
11181         (jit_read_descriptor): Return int.  Replace descriptor_addr
11182         argument with inf_data.  Update.  Don't call error.
11183         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
11184         descriptor here.
11185         (jit_inferior_init): Don't look up descriptor.  Don't call error.
11186         (jit_reset_inferior_data_and_breakpoints)
11187         (jit_inferior_created_observer): Remove.
11188         (jit_inferior_exit_hook): Update.
11189         (jit_executable_changed_observer): Remove.
11190         (jit_event_handler): Update.
11191         (free_objfile_data): Reset inferior data if needed.
11192         (_initialize_jit): Update.
11193
11194 2012-02-01  Tom Tromey  <tromey@redhat.com>
11195
11196         * jit.c (bfd_open_from_target_memory): Move higher in file.
11197
11198 2012-02-01  Tristan Gingold  <gingold@adacore.com>
11199
11200         * libunwind-frame.c (libunwind_load): Display message if dlopen
11201         failed.
11202
11203 2012-02-01  Gary Benson  <gbenson@redhat.com>
11204
11205         * symtab.h (symbol_found_callback_ftype): New typedef.
11206         (iterate_over_symbols): Use the above.
11207         * symtab.c (iterate_over_symbols): Likewise.
11208         * language.h (language_defn->la_iterate_over_symbols): Likewise.
11209         * ada-lang.c (ada_iterate_over_symbols): Likewise.
11210         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11211         (iterate_name_matcher): Document return values.
11212         (collect_one_symbol): Likewise.
11213         (collect_function_symbols): Likewise.
11214         (collect_symbols): Likewise.
11215
11216 2012-02-01  Tom Tromey  <tromey@redhat.com>
11217
11218         * ada-lang.c (resolve_subexp): Update.
11219         (ada_lookup_symbol_list): Add 'full_search' argument.
11220         (ada_iterate_over_symbols): Pass 0 as full_search argument to
11221         ada_lookup_symbol_list.
11222         (ada_lookup_encoded_symbol): Update.
11223         (get_var_value): Update.
11224         * ada-exp.y (block_lookup): Update.
11225         (write_var_or_type): Update.
11226         (write_name_assoc): Update.
11227         * ada-lang.h (ada_lookup_symbol_list): Update.
11228
11229 2012-01-31  Tom Tromey  <tromey@redhat.com>
11230
11231         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11232         comment.
11233
11234 2012-01-31  Doug Evans  <dje@google.com>
11235
11236         * symtab.h: Remove outdated comment.
11237         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11238
11239 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
11240
11241         Fix build error in Darwin port.
11242         * i386-darwin-nat.c: Include i386-nat.h.
11243
11244 2012-01-30  Tom Tromey  <tromey@redhat.com>
11245
11246         PR breakpoints/13568:
11247         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11248         argument.  Check for recursive includes.
11249         (dwarf_decode_macros): Create an include hash.
11250
11251 2012-01-30  Michael Eager  <eager@eagercon.com>
11252
11253         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11254         * ppc-linux-tdep.c: Include glibc-tdep.h.
11255         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11256         (powerpc_linux_in_plt_stub): New function.
11257         (powerpc_linux_in_dynsym_resolve_code): New function.
11258         (ppc_skip_trampoline_code): New function.
11259         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11260         Use glibc_skip_solib_resolver.
11261
11262 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
11263
11264         Code cleanup: Make 1440 bytes of data segment read-only.
11265         * arch-utils.c (endian_enum): Make it const char *const [].
11266         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11267         Likewise.
11268         * breakpoint.c (always_inserted_enums): Likewise.
11269         * cli/cli-cmds.c (script_ext_enums): Likewise.
11270         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11271         enumlist parameter const char *const *.
11272         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11273         const char *const *.
11274         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11275         parameter const char *const *.
11276         * cris-tdep.c (cris_modes): Make it const char *const [].
11277         * filesystem.c (target_file_system_kinds): Likewise.
11278         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11279         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11280         (can_use_displaced_stepping_enum, scheduler_enums)
11281         (exec_direction_names): Likewise.
11282         * language.c (_initialize_language): Make the type_or_range_names and
11283         case_sensitive_names variables const char *const [].
11284         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11285         * python/python.c (python_excp_enums): Likewise.
11286         * remote.c (interrupt_sequence_modes): Likewise.
11287         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11288         * serial.c (logbase_enums): Likewise.
11289         * sh-tdep.c (sh_cc_enum): Likewise.
11290         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11291         Likewise.
11292         * symtab.c (multiple_symbols_modes): Likewise.
11293         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11294         Likewise.
11295         * utils.c (internal_problem_modes): Likewise.
11296
11297 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
11298
11299         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11300         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11301         result.
11302
11303 2012-01-27  Doug Evans  <dje@google.com>
11304
11305         * configure.ac (with_python): Fix absolute path handling for win32.
11306         * configure: Regenerate.
11307
11308 2012-01-26  Doug Evans  <dje@google.com>
11309
11310         * symtab.c: Whitespace cleanup, no code changes.
11311
11312         * symtab.c (lookup_symbol_in_language): Improve comment.
11313         (lookup_symbol_aux): Fix comment.
11314
11315         * psymtab.c (add_psymbol_to_list): Result is now "void".
11316         * psympriv.h (add_psymbol_to_list): Update.
11317
11318         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11319
11320 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11321
11322         Do not open script filenames twice.
11323         * cli/cli-cmds.c (source_script_from_stream): Pass to
11324         source_python_script also STREAM.
11325         * python/py-auto-load.c (source_section_scripts): Pass to
11326         source_python_script_for_objfile also STREAM.
11327         (auto_load_objfile_script): Pass to source_python_script_for_objfile
11328         also INPUT.
11329         * python/python-internal.h (source_python_script_for_objfile): New
11330         parameter file, rename parameter file to filename.
11331         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11332         instead if !_WIN32.  Update the function comment.
11333         (source_python_script, source_python_script_for_objfile)
11334         (source_python_script): New parameter file, rename parameter file to
11335         filename.  Pass FILENAME to python_run_simple_file.
11336         * python/python.h (source_python_script): New parameter file, rename
11337         parameter file to filename.
11338
11339 2012-01-26  Pedro Alves  <palves@redhat.com>
11340
11341         * corelow.c (core_has_fake_pid): Delete.
11342         (core_close): Delete references to `core_has_fake_pid'.
11343         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11344         (core_open): Delete references to `core_has_fake_pid'.
11345         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11346         the removed global.
11347
11348 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
11349
11350         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11351         Remove language parameter from name_matcher.  Adjust the comment.
11352         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11353         Remove language parameter.
11354         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11355         * linespec.c (iterate_name_matcher): Likewise.
11356         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11357         name_matcher.  Adjust call accordingly.
11358         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11359         (maintenance_check_symtabs): Adjust type of parameter "fun".
11360         * psymtab.h (maintenance_check_symtabs): Likewise.
11361
11362 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
11363
11364         * language.h (symbol_name_match_p_ftype): New typedef.
11365         (struct language_defn): Replace field la_symbol_name_compare
11366         by la_get_symbol_name_match_p.
11367         * ada-lang.c (ada_get_symbol_name_match_p): New function.
11368         (ada_language_defn): Use it.
11369         * linespec.c (struct symbol_matcher_data): New type.
11370         (iterate_name_matcher): Rewrite.
11371         (iterate_over_all_matching_symtabs): Pass a pointer to
11372         a symbol_matcher_data struct to expand_symtabs_matching
11373         instead of just the lookup name.
11374         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11375         opencl-lang.c, p-lang.c, language.c: Delete field
11376         la_symbol_name_compare, and replace by NULL for new field
11377         la_get_symbol_name_match_p.
11378         * symfile.h (struct quick_symbol_functions): Update comment.
11379
11380 2012-01-25  Tom Tromey  <tromey@redhat.com>
11381
11382         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11383         dereferencing.
11384
11385 2012-01-24  Tom Tromey  <tromey@redhat.com>
11386
11387         PR symtab/12406:
11388         * solib.c (update_solib_list): Update the program space's
11389         added_solibs and deleted_solibs fields.
11390         * progspace.h (struct program_space) <added_solibs,
11391         deleted_solibs>: New fields.
11392         (clear_program_space_solib_cache): Declare.
11393         * progspace.c (release_program_space): Call
11394         clear_program_space_solib_cache.
11395         (clear_program_space_solib_cache): New function.
11396         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11397         bpstat_stop_status.  Use handle_solib_event.
11398         * breakpoint.c: Include gdb_regex.h.
11399         (print_solib_event): New function.
11400         (bpstat_print): Use print_solib_event.
11401         (bpstat_stop_status): Add special case for bp_shlib_event.
11402         (handle_solib_event): New function.
11403         (bpstat_what): Use handle_solib_event.
11404         (struct solib_catchpoint): New.
11405         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11406         (breakpoint_hit_catch_solib, check_status_catch_solib)
11407         (print_it_catch_solib, print_one_catch_solib)
11408         (print_mention_catch_solib, print_recreate_catch_solib): New
11409         functions.
11410         (catch_solib_breakpoint_ops): New global.
11411         (catch_load_or_unload, catch_load_command_1)
11412         (catch_unload_command_1): New functions.
11413         (internal_bkpt_check_status): Add special case for
11414         bp_shlib_event.
11415         (internal_bkpt_print_it): Use print_solib_event.
11416         (initialize_breakpoint_ops): Initialize
11417         catch_solib_breakpoint_ops.
11418         (_initialize_breakpoint): Register "catch load" and "catch
11419         unload".
11420         * breakpoint.h (handle_solib_event): Declare.
11421         * NEWS: Add entry for "catch load" and "catch unload".
11422
11423 2012-01-24  Tom Tromey  <tromey@redhat.com>
11424
11425         * ada-lang.c: Include gdb_vecs.h.
11426         * charset.c: Include gdb_vecs.h.
11427         * tracepoint.h: Include gdb_vecs.h.
11428         * gdb_vecs.h: New file.
11429
11430 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
11431
11432         * breakpoint.c (breakpoint_hit_catch_fork)
11433         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11434         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11435         * infrun.c (inferior_has_forked, inferior_has_vforked)
11436         (inferior_has_execd, inferior_has_called_syscall): Delete.
11437         (handle_syscall_event): Get syscall_number from the execution
11438         control state's wait status.
11439         (wait_for_inferior): Don't clear syscall_number.
11440
11441 2012-01-24  Pedro Alves  <palves@redhat.com>
11442
11443         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11444         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11445         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11446         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11447         `ws' parameter.
11448         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
11449         false for events other than TARGET_SIGNAL_TRAP.
11450         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11451         Add `ws' parameter.
11452         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
11453         events other than TARGET_SIGNAL_TRAP.
11454         (tracepoint_breakpoint_hit): Add `ws' parameter.
11455         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11456         parameter.
11457         (bpstat_stop_status): Same.
11458         (pc_at_non_inline_function): Same.
11459         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11460         to pass the current event's waitstatus to bpstat_stop_status
11461         and pc_at_non_inline_function.
11462
11463 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11464
11465         Code cleanup.
11466         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11467         Update the function comment for it.
11468         (source_script_with_search): Call make_cleanup_fclose for STREAM.
11469         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11470         for STREAM.
11471
11472 2012-01-24  Pedro Alves  <palves@redhat.com>
11473
11474         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11475         outside `bs->stop' block.
11476         (bpstat_what): Rework bp_shlib_event handling.
11477         (internal_bkpt_check_status): If the breakpoint is a
11478         bp_shlib_event, then set bs->stop and bs->print if
11479         stop_on_solib_events is set.
11480
11481 2012-01-24  Gary Benson  <gbenson@redhat.com>
11482
11483         Delete #if 0'd out code.
11484         * stack.c (print_frame_label_vars): Remove.
11485         (catch_info): Likewise.
11486         (_initialize_stack): Remove "info catch" command.
11487         * NEWS: Mention the above.
11488
11489 2012-01-24  Pedro Alves  <palves@redhat.com>
11490
11491         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
11492         it.
11493         (remote_notice_new_inferior): If the remote end doesn't support
11494         the multiprocess extensions, then the PID is fake.
11495         (add_current_inferior_and_thread): New.
11496         (remote_start_remote): Use it.
11497         (extended_remote_attach_1): Adjust.
11498         (extended_remote_create_inferior_1): Use
11499         add_current_inferior_and_thread.
11500
11501 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11502
11503         Fix watchpoints to be specific for each inferior.
11504         * breakpoint.c (watchpoint_in_thread_scope): Verify also
11505         current_program_space.
11506         * i386-nat.c (i386_inferior_data_cleanup): New.
11507         (i386_inferior_data_get): Replace variable inf_data_local by an
11508         inferior_data call.
11509         (i386_use_watchpoints): Initialize i386_inferior_data.
11510         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11511         specific iterate_over_lwps.
11512
11513 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11514
11515         Fix watchpoints across inferior fork.
11516         * amd64-linux-nat.c (update_debug_registers_callback): Update the
11517         comment for linux_nat_iterate_watchpoint_lwps.
11518         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11519         linux_nat_iterate_watchpoint_lwps.
11520         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11521         * i386-linux-nat.c (update_debug_registers_callback): Update the
11522         comment for linux_nat_iterate_watchpoint_lwps.
11523         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11524         linux_nat_iterate_watchpoint_lwps.
11525         (i386_linux_prepare_to_resume): New comment on Linux kernel.
11526         * i386-nat.c: Include inferior.h.
11527         (dr_mirror): Remove.
11528         (i386_inferior_data, struct i386_inferior_data)
11529         (i386_inferior_data_get): New.
11530         (i386_debug_reg_state): Use i386_inferior_data_get.
11531         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11532         (i386_insert_watchpoint, i386_remove_watchpoint)
11533         (i386_stopped_data_address, i386_insert_hw_breakpoint)
11534         (i386_remove_hw_breakpoint): New variable state, use
11535         i386_debug_reg_state instead of DR_MIRROR.
11536         * linux-nat.c (delete_lwp): New declaration.
11537         (num_lwps): Move here from downwards.
11538         (delete_lwp_cleanup): New.
11539         (linux_child_follow_fork): Create new child_lp, call
11540         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11541         PTRACE_DETACH.
11542         (num_lwps): Move upwards.
11543         (linux_nat_iterate_watchpoint_lwps): New.
11544         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11545         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11546
11547 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
11548
11549         GDB 7.4 released.
11550
11551 2012-01-23  Pedro Alves  <palves@redhat.com>
11552
11553         * top.c (caution): Rename to ...
11554         (confirm): ... this.
11555         (show_caution): Rename to ...
11556         (show_confirm): ... this.
11557         (quit_cover): Adjust.
11558         (init_main): Adjust.
11559         * top.h (caution): Rename to ...
11560         (confirm): ... this.
11561         * utils.c (internal_vproblem, defaulted_query): Adjust.
11562
11563 2012-01-23  Pedro Alves  <palves@redhat.com>
11564
11565         * top.c (caution): Update comment.
11566         (execute_command): Don't consider the current value of `caution'.
11567
11568 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
11569
11570         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11571
11572 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
11573
11574         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11575         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11576         * target.c (target_fileio_pwrite): Remove buffer address from
11577         debug output.
11578         (target_fileio_pread): Likewise.
11579
11580 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11581
11582         * NEWS: Document remote "info proc" and "generate-core-file".
11583
11584 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11585
11586         * gdbarch.sh (find_memory_regions): New callback.
11587         * gdbarch.c, gdbarch.h: Regenerate.
11588
11589         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11590         callback before falling back to target method.
11591
11592         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11593         (linux_target_install_ops): No longer install it.
11594
11595         * linux-tdep.c (linux_find_memory_regions): New function.
11596         (linux_init_abi): Install it.
11597
11598 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11599
11600         * gdbarch.sh (make_corefile_notes): New architecture callback.
11601         * gdbarch.c: Regenerate.
11602         * gdbarch.h: Likewise.
11603
11604         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11605         before target_make_corefile_notes.  If NULL is returned, the
11606         target does not support core file generation.
11607
11608         * linux-nat.c: Include "linux-tdep.h".
11609         (find_signalled_thread, find_stop_signal): Remove.
11610         (linux_nat_do_thread_registers): Likewise.
11611         (struct linux_nat_corefile_thread_data): Likewise.
11612         (linux_nat_corefile_thread_callback): Likewise.
11613         (iterate_over_spus): Likewise.
11614         (struct linux_spu_corefile_data): Likewise.
11615         (linux_spu_corefile_callback): Likewise.
11616         (linux_spu_make_corefile_notes): Likewise.
11617         (linux_nat_collect_thread_registers): New function.
11618         (linux_nat_make_corefile_notes): Replace contents by call to
11619         linux_make_corefile_notes passing linux_nat_collect_thread_registers
11620         as native-only callback.
11621
11622         * linux-tdep.h: Include "bfd.h".
11623         (struct regcache): Add forward declaration.
11624         (linux_collect_thread_registers_ftype): New typedef.
11625         (linux_make_corefile_notes): Add prototype.
11626         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11627         "regset.h", and "elf-bfd.h".
11628         (find_signalled_thread, find_stop_signal): New functions.
11629         (linux_spu_make_corefile_notes): Likewise.
11630         (linux_collect_thread_registers): Likewise.
11631         (struct linux_corefile_thread_data): New data structure.
11632         (linux_corefile_thread_callback): New funcion.
11633         (linux_make_corefile_notes): Likewise.
11634         (linux_make_corefile_notes_1): Likewise.
11635         (linux_init_abi): Install it.
11636
11637 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11638
11639         * gdbarch.sh (info_proc): New callback.
11640         * gdbarch.c, gdbarch.h: Regenerate.
11641
11642         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11643         before falling back to the target info_proc callback.
11644
11645         * linux-nat.c: Do not include "cli/cli-utils.h".
11646         (linux_nat_info_proc): Remove.
11647         (linux_target_install_ops): No longer install it.
11648
11649         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11650         (read_mapping): New function.
11651         (linux_info_proc): Likewise.
11652         (linux_init_abi): Install it.
11653
11654 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11655
11656         * defs.h (enum info_proc_what): Moved here from linux-nat.c
11657         * infcmd.c: (info_proc_cmd_1): New function.
11658         (info_proc_cmd): New function, moved here from equivalent routine
11659         orignally in linux-nat.c.
11660         (info_proc_cmd_mappings): Likewise.
11661         (info_proc_cmd_stat): Likewise.
11662         (info_proc_cmd_status): Likewise.
11663         (info_proc_cmd_cwd): Likewise.
11664         (info_proc_cmd_cmdline): Likewise.
11665         (info_proc_cmd_exe): Likewise.
11666         (info_proc_cmd_all): Likewise.
11667         (_initialize_infcmd): Install "info proc" command and subcommands.
11668
11669         * target.h (struct target_ops): Add to_info_proc.
11670         (target_info_proc): Add prototype.
11671         * target.c (target_info_proc): New function.
11672
11673         * procfs.c (procfs_info_proc): Add prototype.
11674         (info_proc_cmd): Rename into ...
11675         (procfs_info_proc): ... this.  Update argument types as appropriate
11676         for a to_info_proc implementation.  Handle "what" argument.
11677         (procfs_target): Install procfs_info_proc.
11678         (_initialize_procfs): No longer install "info proc" command.
11679
11680         * linux-nat.c: (enum info_proc_what): Remove.
11681         (linux_nat_info_proc_cmd_1): Rename into ...
11682         (linux_nat_info_proc): ... this.  Update argument types as appropriate
11683         for a to_info_proc implementation.
11684         (linux_nat_info_proc_cmd): Remove.
11685         (linux_nat_info_proc_cmd_mappings): Likewise.
11686         (linux_nat_info_proc_cmd_stat): Likewise.
11687         (linux_nat_info_proc_cmd_status): Likewise.
11688         (linux_nat_info_proc_cmd_cwd): Likewise.
11689         (linux_nat_info_proc_cmd_cmdline): Likewise.
11690         (linux_nat_info_proc_cmd_exe): Likewise.
11691         (linux_nat_info_proc_cmd_all): Likewise.
11692         (linux_target_install_ops): Install linux_nat_info_proc.
11693         (_initialize_linux_nat): No longer install "info proc" command
11694         and subcommands.
11695
11696 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11697
11698         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11699         * config.in, configure: Regenerate.
11700
11701         * target.h (struct target_ops): Add to_fileio_readlink.
11702         (target_fileio_readlink): Add prototype.
11703         * target.c (target_fileio_readlink): New function.
11704
11705         * inf-child.c: Conditionally include <sys/param.h>.
11706         (inf_child_fileio_readlink): New function.
11707         (inf_child_target): Install it.
11708
11709         * remote.c (PACKET_vFile_readlink): New enum value.
11710         (remote_hostio_readlink): New function.
11711         (init_remote_ops): Install it.
11712         (_initialize_remote): Handle vFile:readlink packet type.
11713
11714 2012-01-20  Pedro Alves  <palves@redhat.com>
11715             Ulrich Weigand  <ulrich.weigand@linaro.org>
11716
11717         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11718         * config.in, configure: Regenerate.
11719
11720         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11721         to_fileio_pread, to_fileio_close, to_fileio_unlink.
11722         (target_fileio_open): Add prototype.
11723         (target_fileio_pwrite): Likewise.
11724         (target_fileio_pread): Likewise.
11725         (target_fileio_close): Likewise.
11726         (target_fileio_unlink): Likewise.
11727         (target_fileio_read_alloc): Likewise.
11728         (target_fileio_read_stralloc): Likewise.
11729
11730         * target.c: Include "gdb/fileio.h".
11731         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11732         (default_fileio_target): New function.
11733         (target_fileio_open): Likewise.
11734         (target_fileio_pwrite): Likewise.
11735         (target_fileio_pread): Likewise.
11736         (target_fileio_close): Likewise.
11737         (target_fileio_unlink): Likewise.
11738         (target_fileio_close_cleanup): Likewise.
11739         (target_fileio_read_alloc_1): Likewise.
11740         (target_fileio_read_alloc): Likewise.
11741         (target_fileio_read_stralloc): Likewise.
11742
11743         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11744         <fcntl.h>, and <unistd.h>.
11745         (inf_child_fileio_open_flags_to_host): New function.
11746         (inf_child_errno_to_fileio_error): Likewise.
11747         (inf_child_fileio_open): Likewise.
11748         (inf_child_fileio_pwrite): Likewise.
11749         (inf_child_fileio_pread): Likewise.
11750         (inf_child_fileio_close): Likewise.
11751         (inf_child_fileio_unlink): Likewise.
11752         (inf_child_target): Install to_fileio routines.
11753
11754         * remote.c (init_remote_ops): Install to_fileio routines.
11755
11756 2012-01-20  Pedro Alves  <palves@redhat.com>
11757             Ulrich Weigand  <ulrich.weigand@linaro.org>
11758
11759         * remote.c (remote_multi_process_p): Only check for multi-process
11760         protocol feature, do not check for extended protocol.
11761         (remote_supports_multi_process): Check for extended protocol here.
11762         (set_general_process): Likewise.
11763         (extended_remote_kill): Likewise.
11764         (remote_pid_to_str): Likewise.
11765         (remote_query_supported): Always query multiprocess mode.
11766
11767 2012-01-20  Pedro Alves  <palves@redhat.com>
11768             Ulrich Weigand  <ulrich.weigand@linaro.org>
11769
11770         * inferior.h (struct inferior): Add fake_pid_p.
11771         * inferior.c (exit_inferior_1): Clear fake_pid_p.
11772         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11773         magic_null_ptid since the remote side doesn't provide a real PID.
11774
11775 2012-01-19  Tom Tromey  <tromey@redhat.com>
11776
11777         * NEWS: Combine the two Python sections.
11778
11779 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
11780
11781         * target.h (target_close): Update comment on the target's unpush state.
11782
11783 2012-01-19  Pedro Alves  <palves@redhat.com>
11784
11785         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11786         linux_nat_async directly instead of going through the target
11787         vector.
11788         * target.c (unpush_target): Close target after unpushing it, not
11789         before.
11790
11791 2012-01-19  Gary Benson  <gbenson@redhat.com>
11792
11793         * mdebugread.c (sort_blocks): Replace integer constants with ones
11794         derived from FIRST_LOCAL_BLOCK.
11795
11796 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11797             Jan Kratochvil  <jan.kratochvil@redhat.com>
11798
11799         PR gdb/9538
11800         * symfile.c (find_separate_debug_file): New function.
11801         (terminate_after_last_dir_separator): Likewise.
11802         (find_separate_debug_file_by_debuglink): Also try realpath.
11803         * configure.ac (AC_CHECK_FUNCS): Add lstat.
11804         * configure: Regenerate.
11805         * config.in: Regenerate.
11806
11807 2012-01-18  Doug Evans  <dje@google.com>
11808
11809         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11810         (main.o): Remove rule.
11811         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11812         (--with-sysroot): Rewrite.
11813         * configure: Regenerate.
11814         * config.in: Regenerate.
11815
11816 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
11817
11818         * parse.c (initialize_expout): New function.
11819         (reallocate_expout): Likewise.
11820         (parse_exp_in_context): Use `initialize_expout' and
11821         `reallocate_expout' when appropriate.
11822
11823 2012-01-18  Pedro Alves  <palves@redhat.com>
11824
11825         * record.c (struct record_breakpoint, record_breakpoint_p)
11826         (record_breakpoints): New.
11827         (record_insert_breakpoint, record_remove_breakpoint): Manage
11828         record breakpoints list.  Only remove breakpoints from the
11829         inferior if they had been inserted there in the first place.
11830
11831 2012-01-17  Doug Evans  <dje@google.com>
11832
11833         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11834         if we know we don't have a file name to look for.
11835
11836 2012-01-17  Pedro Alves  <palves@redhat.com>
11837
11838         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11839         the frame's stop reason is UNWIND_UNAVAILABLE.
11840
11841 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11842
11843         Fix compilation error.
11844         * m2-exp.y (yyerror): Use ANSI C prototype.
11845
11846 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11847
11848         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11849         (growbuf_by_size): Likewise.
11850         (yyerror): Likewise.
11851         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11852         (modblock): Remove variable (was #if 0'ed).
11853         (parse_number): Convert prototype from K&R to ANSI C.
11854         (yyerror): Likewise.
11855         * objc-exp.y (parse_number): Likewise.
11856         (yyerror): Likewise.
11857         (yylex): Remove #if 0'ed code.
11858         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11859         (yyerror): Likewise.
11860
11861 2012-01-16  Tom Tromey  <tromey@redhat.com>
11862
11863         * NEWS: Add item.
11864         * symtab.h (compare_filenames_for_search): Declare.
11865         * symtab.c (compare_filenames_for_search): New function.
11866         (iterate_over_some_symtabs): Use it.
11867         * symfile.h (struct quick_symbol_functions)
11868         <map_symtabs_matching_filename>: Change spec.
11869         * psymtab.c (partial_map_symtabs_matching_filename): Use
11870         compare_filenames_for_search.  Update for new spec.
11871         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11872         compare_filenames_for_search.  Update for new spec.
11873         * breakpoint.c (clear_command): Use compare_filenames_for_search.
11874
11875 2012-01-16  Tom Tromey  <tromey@redhat.com>
11876
11877         PR python/13281:
11878         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11879         (struct main_type) <flag_flag_enum>: New field.
11880         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11881         * NEWS: Add entries.
11882         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11883         enums.
11884         * python/lib/gdb/printing.py (_EnumInstance): New class.
11885         (FlagEnumerationPrinter): Likewise.
11886
11887 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11888
11889         * breakpoint.c (create_sals_from_address_default): New function.
11890         (create_breakpoints_sal_default): Likewise.
11891         (decode_linespec_default): Likewise.
11892         (is_marker_spec): Removed.
11893         (strace_marker_p): New function.
11894         (init_breakpoint_sal): Using `strace_marker_p' instead of
11895         `is_marker_spec'.
11896         (create_breakpoint): Call method `create_sals_from_address' from
11897         breakpoint_ops, replacing code that created SALs conditionally
11898         on the type of the breakpoint.  Call method `create_breakpoints_sal',
11899         replacing code that created breakpoints conditionally on the type
11900         wanted.
11901         (base_breakpoint_create_sals_from_address): New function.
11902         (base_breakpoint_create_breakpoints_sal): Likewise.
11903         (base_breakpoint_decode_linespec): Likewise.
11904         (base_breakpoint_ops): Add methods
11905         `base_breakpoint_create_sals_from_address',
11906         `base_breakpoint_create_breakpoints_sal' and
11907         `base_breakpoint_decode_linespec'.
11908         (bkpt_create_sals_from_address): New function.
11909         (bkpt_create_breakpoints_sal): Likewise.
11910         (bkpt_decode_linespec): Likewise.
11911         (tracepoint_create_sals_from_address): Likewise.
11912         (tracepoint_create_breakpoints_sal): Likewise.
11913         (tracepoint_decode_linespec): Likewise.
11914         (strace_marker_create_sals_from_address): Likewise.
11915         (strace_marker_create_breakpoints_sal): Likewise.
11916         (strace_marker_decode_linespec): Likewise.
11917         (strace_marker_breakpoint_ops): New variable.
11918         (addr_string_to_sals): Remove `marker_spec'.  Call method
11919         `decode_linespec' from breakpoint_ops, replacing code that decoded
11920         an address string into a SAL.  Use `strace_marker_p' instead of
11921         `marker_spec'.
11922         (strace_command): Decide whether we are dealing with a static
11923         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
11924         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11925         * breakpoint.h (linespec_result, linespec_sals): New forward
11926         declarations.
11927         (breakpoint_ops) <create_sals_from_address>,
11928         <create_breakpoints_sal>, <decode_linespec>: New methods.
11929
11930 2012-01-14  Doug Evans  <dje@google.com>
11931
11932         * NEWS: Update text for "maint set python print-stack".
11933         It is deprecated in gdb 7.4 and deleted in 7.5.
11934
11935 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
11936
11937         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11938         including curses.h.
11939
11940 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11941
11942         * configure: Regenerate.
11943         * config.in: Regenerate.
11944
11945 2012-01-12  Keith Seitz  <keiths@redhat.com>
11946
11947         PR mi/10586
11948         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11949         (ANONYMOUS_UNION_NAME): Define.
11950         (is_path_expr_parent): New function.
11951         (get_path_expr_parent): New function.
11952         (is_anonymous_child): New function.
11953         (create_child_with_value): If the child is anonymous and without
11954         a name, assign an object name to it.
11955         (c_describe_child): Use get_path_expr_parent to determine
11956         the parent expression.
11957         If there field represents an anonymous struct or union and
11958         has no name, set an appropriate display name and expression.
11959         (cplus_describe_child): Likewise.
11960
11961 2012-01-12  Pedro Alves  <palves@redhat.com>
11962
11963         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11964         available when %ebp is found to be zero (outermost).
11965
11966 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
11967
11968         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11969         an internal gdb_static_assert.
11970         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11971
11972 2012-01-11  Tom Tromey  <tromey@redhat.com>
11973
11974         PR gdb/9598:
11975         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11976         catch" and "catch throw".
11977
11978 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
11979
11980         * blockframe.c (block_innermost_frame): Start search from selected
11981         frame, if present, or otherwise the current frame.
11982
11983         * c-exp.y (variable): Update innermost_block for
11984         'block COLONCOLON NAME' clause.
11985         * m2-exp.y (variable): Ditto.
11986         * objc-exp.y (variable): Ditto.
11987
11988 2012-01-10  Tom Tromey  <tromey@redhat.com>
11989
11990         PR python/13199:
11991         * python/python.c (finish_python_initialization): Set sys.argv.
11992
11993 2012-01-10  Doug Evans  <dje@google.com>
11994
11995         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
11996         "want_line_info".  All callers updated.
11997         (dwarf_decode_lines_1): New function.
11998         (handle_DW_AT_stmt_list): Add function comment.
11999         New arg "want_line_info".  All callers updated.
12000         (read_file_scope,read_type_unit_scope): Move comment from
12001         handle_DW_AT_stmt_list to here.
12002
12003 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
12004
12005         Fix regression after libiberty/ update for GCC PR 6057 and others.
12006         * c-exp.y (operator) <OPERATOR DELETE>
12007         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12008         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12009         (make_builtin_type, make_name): New variable i, add gdb_assert.
12010         (operator) <OPERATOR NEW>: Update ARGS to 3.
12011         (operator) <OPERATOR DELETE>: Add trailing space.
12012         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12013         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12014         * cp-support.c (cp_canonicalize_string): Check NULL from
12015         cp_comp_to_string, call warning and return.
12016
12017 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
12018
12019         Fix duplicate .o files after omitting libbfd.a.
12020         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12021         (SFILES): Add corelow.c.
12022         (COMMON_OBS): Add corelow.o.
12023         (ALLDEPFILES): Remove corelow.c.
12024         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12025         * config/alpha/alpha-osf3.mh: Likewise.
12026         * config/alpha/fbsd.mh: Likewise.
12027         * config/arm/nbsdaout.mh: Likewise.
12028         * config/arm/nbsdelf.mh: Likewise.
12029         * config/i386/i386gnu.mh: Likewise.
12030         * config/ia64/hpux.mh: Likewise.
12031         * config/ia64/linux.mh: Likewise.
12032         * config/m32r/linux.mh: Likewise.
12033         * config/m68k/linux.mh: Likewise.
12034         * config/mips/irix5.mh: Likewise.
12035         * config/mips/irix6.mh: Likewise.
12036         * config/pa/hpux.mh: Likewise.
12037         * config/pa/linux.mh: Likewise.
12038         * config/powerpc/aix.mh: Likewise.
12039         * config/sparc/linux.mh: Likewise.
12040         * config/sparc/linux64.mh: Likewise.
12041         * config/sparc/sol2.mh: Likewise.
12042         * config/vax/vax.mh: Likewise.
12043         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12044         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12045         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12046         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12047         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12048         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12049         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12050         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12051         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12052         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12053         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12054         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12055         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12056         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12057         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12058         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12059         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12060         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12061         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12062         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12063         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12064         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12065         corelow.o from gdb_target_obs.
12066         * corefile.c (core_target): Update the comment on NULL value.
12067         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12068         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12069         MATCHES.  Drop YUMMY set on NULL.
12070         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
12071         reclaim CORE_DATA if it is already NULL.
12072
12073 2012-01-09  Doug Evans  <dje@google.com>
12074
12075         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12076         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12077
12078 2012-01-09  Keith Seitz  <keiths@redhat.com>
12079
12080         * breakpoint.c (wrapper.h): Don't include.
12081
12082 2012-01-09  Keith Seitz  <keiths@redhat.com>
12083
12084         * Makefile.in (SFILES): Remove wrapper.c.
12085         (HFILES_NO_SRCDIR): Remove wrapper.h.
12086         (COMMON_OBS): Remove wrapper.o.
12087         * cli/cli-interp.c: Don't inlude wrapper.h.
12088         * corelow.c: Likewise.
12089         (core_open): Replace gdb_target_find_new_threads with
12090         TRY_CATCH around target_find_new_threads.
12091         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12092         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12093         * varobj.c (varobj_create): Likewise for parse_exp_1 and
12094         evaluate_expression.
12095         (varobj_set_value): Likewise for evaluate_expression and
12096         value_assign.
12097         (install_new_variable): Likewise for value_fetch_lazy.
12098         (adjust_value_for_child_access): Likewise for value_ind.
12099         (c_describe_child): Likewise for value_subscript and
12100         value_ind.
12101         (c_value_of_root): Likewise for evaluate_expression.
12102         * wrapper.c: Remove.
12103         * wrapper.h: Remove.
12104
12105 2012-01-09  Doug Evans  <dje@google.com>
12106
12107         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12108         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
12109         "abfd" args with "section".  All callers updated.
12110         Error checking code moved ...
12111         (error_check_comp_unit_head): ... here.  New function.
12112         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12113         Delete arg "abfd".  New arg "type_offset".  All callers updated.
12114         (create_debug_types_hash_table): Simplify by using
12115         read_and_check_type_unit_head.
12116
12117         * parser-defs.h (namecopy): Delete.
12118         * parse.c (namecopy, namecopy_size): Move into copy_name.
12119
12120 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
12121
12122         Partially fix duplicate .o files after omitting libbfd.a.
12123         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12124         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12125         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12126         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12127         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12128         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12129         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12130
12131 2012-01-09  Pedro Alves  <palves@redhat.com>
12132
12133         * MAINTAINERS: Update my email address.
12134
12135 2012-01-08  Doug Evans  <dje@google.com>
12136
12137         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12138         n_type_units.  Rename type_comp_units to all_type_units.
12139         All uses updated.
12140         (add_signatured_type_cu_to_table): Renamed from
12141         add_signatured_type_cu_to_list.  All callers updated.
12142
12143         * gdbtypes.h (struct cplus_struct_type): Delete member
12144         nfn_fields_total.  All uses removed.
12145
12146 2012-01-06  Doug Evans  <dje@google.com>
12147
12148         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12149         to top of file.
12150         (dwarf2_find_comp_unit): Delete.
12151         (process_psymtab_comp_unit): Make result "void".
12152         Delete args buffer, info_ptr, buffer_size, and replace with
12153         "section".  All callers updated.
12154         (dwarf2_build_psymtabs_hard): Simplify.
12155
12156 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
12157             Thiago Jung Bauermann  <bauerman@br.ibm.com>
12158
12159         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12160         before `struct gdb_exception'.
12161         * breakpoint.c (update_global_location_list_nothrow)
12162         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12163         * cp-abi.c (value_rtti_type): Likewise.
12164         * cp-support.c (cp_validate_operator): Likewise.
12165         * infrun.c (insert_exception_resume_breakpoint)
12166         (check_exception_resume, keep_going): Likewise.
12167         * mi-interp.c (mi_breakpoint_created)
12168         (mi_breakpoint_modified): Likewise.
12169         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12170         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12171         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12172
12173 2012-01-05  Doug Evans  <dje@google.com>
12174
12175         * dwarf2read.c (statement_prologue): Delete, unused.
12176
12177         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12178         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12179
12180         * dwarf2read.c (comp_unit_header): Delete, unused.
12181
12182 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
12183
12184         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12185         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12186
12187 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
12188
12189         * infrun.c (normal_stop): Don't skip calling the normal_stop
12190         observers if the thread was doing a multi-step, but stopped for
12191         some reason other than stepping.
12192
12193 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
12194
12195         * cli/cli-decode.h: Add comments.
12196         (CMD_LIST_AMBIGUOUS): Moved to command.h
12197         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12198         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12199         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12200         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12201         (add_com, add_com_alias, add_info, add_info_alias)
12202         (complete_on_cmdlist, complete_on_enum, help_list): Remove
12203         declarations.
12204         * command.h: Add and adjust comments.
12205         (CMD_LIST_AMBIGUOUS): Moved here.
12206         (help_cmd, help_cmd_list): Delete declarations.
12207
12208 2012-01-04  Doug Evans  <dje@google.com>
12209
12210         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12211         All callers updated.
12212         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12213         Replace all arguments with "per_cu".  All callers updated.
12214
12215         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12216
12217         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12218         New arg "per_cu".  All callers updated.
12219
12220         Delete #if 0'd out code.
12221         * language.c (binop_result_type): Delete.
12222         (simple_type, ordered_type, same_type, integral_type): Delete.
12223         (numeric_type, character_type, string_type, boolean_type): Delete.
12224         (float_type, structured_type): Delete.
12225         * language.h: Update.
12226
12227 2012-01-04  Tom Tromey  <tromey@redhat.com>
12228
12229         * python/py-value.c (valpy_binop): Initialize 'res_val'.
12230
12231 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12232
12233         * corefile.c (close_exec_file): Delete.
12234         (reopen_exec_file): Remove commented out code that seems related
12235         to close_exec_file, which is being deleted here.
12236         * inferior.h (close_exec_file): Delete.
12237         * fork-child.c (fork_inferior): Remove call to fork_inferior.
12238
12239 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12240
12241         * ada-lang.c: #include "cli/cli-utils.h".
12242         (get_selections): Use skip_spaces.
12243         (ada_get_next_arg): Use skip_spaces and skip_to_space.
12244         (catch_ada_exception_command_split): Use skip_spaces.
12245         (ada_decode_assert_location): Likewise.
12246
12247 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12248
12249         * linespec.c (decode_line_internal): Check for C++ or Java
12250         compound constructs only if the current language is C, C++
12251         or Java.
12252
12253 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
12254
12255         Revert:
12256         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12257                     Joel Brobecker  <brobecker@adacore.com>
12258         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12259         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12260         3 times.
12261         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12262         fall through into AT_ENTRY_POINT.
12263         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
12264         DUMMY_ADDR with it.
12265         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12266         PPC_INSN_SIZE skip to 3 times.
12267
12268 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12269
12270         * linespec.c (add_minsym): Preserve function descriptors.
12271
12272 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
12273
12274         * breakpoint.c (all_locations_are_pending): Consider locations
12275         in program spaces executing during startup pending as well.
12276
12277 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12278
12279         Copyright year update in most files of the GDB Project.
12280
12281 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12282
12283         * copyright.sh: Delete.
12284         * copyright.py: Rewrite.
12285
12286 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12287
12288         * gnulib/extra/update-copyright: New file, imported from gnulib.
12289
12290 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12291
12292         * README (Copyright and License Notices): New section.
12293
12294 2012-01-03  Tom Tromey  <tromey@redhat.com>
12295
12296         PR python/12533:
12297         * python/py-value.c (valpy_dereference, valpy_get_address
12298         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12299         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12300         (valpy_absolute, valpy_richcompare): Free intermediate values.
12301
12302 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
12303
12304         * ada-lang.c: Reformat the copyright notice.
12305
12306 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12307
12308         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12309         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12310         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12311         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12312         Revert this part of:
12313         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12314         Build gdb directly from *.o files not using libgdb.a.
12315         * Makefile.in (COMMON_OBS): Remove solib-target.o.
12316
12317 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
12318
12319         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12320         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12321         Reformat the copyright header.
12322
12323 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12324
12325         Revert this part of:
12326         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12327         Remove the gdbtui binary.
12328         * gdb.c (main): Remove args.interpreter_p initialization.
12329         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12330         * main.h (struct captured_main_args): Remove interpreter_p.
12331
12332 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
12333
12334         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12335
12336 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
12337
12338         * top.c (print_gdb_version): Update copyright year.
12339
12340 2012-01-02  Yao Qi  <yao@codesourcery.com>
12341
12342         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12343
12344 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12345             Joel Brobecker  <brobecker@adacore.com>
12346
12347         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12348         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12349         3 times.
12350         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12351         fall through into AT_ENTRY_POINT.
12352         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
12353         DUMMY_ADDR with it.
12354         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12355         PPC_INSN_SIZE skip to 3 times.
12356
12357 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12358
12359         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12360         the return value.
12361         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12362
12363 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12364
12365         Build gdb directly from *.o files not using libgdb.a.
12366         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12367         (COMMON_OBS): Remove solib-target.o.
12368         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12369         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12370         (LIBGDB_OBS, libgdb.a): Move it above.
12371         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12372         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12373         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12374         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12375         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12376         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12377         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12378         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12379         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12380         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12381         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12382         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12383         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12384         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12385         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12386         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12387         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12388         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12389         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12390         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12391         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12392         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12393         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12394         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12395         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12396         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12397         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12398
12399 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12400
12401         Remove the gdbtui binary.
12402         * .gitignore (/gdbtui): Remove.
12403         * Makefile.in (TUI): Remove.
12404         (SUBDIR_TUI_OBS): Remove tui-main.o.
12405         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12406         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12407         (tui-main.o): Remove.
12408         (all_object_files): Remove tui-main.o.
12409         * NEWS: New note for the gdbtui removal.
12410         * configure: Rebuilt.
12411         * configure.ac: No longer add all-tui, clean-tui, install-tui and
12412         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12413         CONFIG_UNINSTALL respectively.
12414         * gdb.c (main): Remove args.interpreter_p initialization.
12415         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12416         * main.h (struct captured_main_args): Remove interpreter_p.
12417         * tui/tui-main.c: Remove.
12418
12419 2012-01-01  Doug Evans  <dje@google.com>
12420
12421         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12422         (dwarf2_physname, read_import_statement): Ditto.
12423         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12424         (process_structure_scope read_subroutine_type): Ditto.
12425         (read_typedef, load_partial_dies, read_partial_die): Ditto.
12426         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12427         (dwarf2_fetch_die_location_block): Ditto.
12428         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12429
12430         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12431         All callers updated.
12432         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12433         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12434         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12435
12436         * dwarf2read.c (load_cu): Move assert to more useful location.
12437
12438         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12439         All callers updated.
12440
12441         * dwarf2read.c (dwarf2_per_objfile): Add comment.
12442         (dwarf2_elf_names): Minor reformat.
12443         (dwarf2_per_cu_data): Tweak comment.
12444         (dwarf2_read_section): Fix comment.
12445         (create_all_comp_units): Fix comment.
12446         (load_full_comp_unit): Fix comment.
12447         (process_full_comp_unit): Fix comment.
12448         (read_signatured_type): Fix comment.
12449
12450 For older changes see ChangeLog-2011.
12451 \f
12452 Local Variables:
12453 mode: change-log
12454 left-margin: 8
12455 fill-column: 74
12456 version-control: never
12457 coding: utf-8
12458 End: