5fd218da857a42f194b037906a424cc878f29044
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2013-04-08  Tom Tromey  <tromey@redhat.com>
2
3         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
4         long.
5
6 2013-04-08  Tom Tromey  <tromey@redhat.com>
7
8         * maint.c (print_bfd_section_info): Print the section index.
9         * symmisc.c (dump_msymbols): Print the section index.
10
11 2013-04-08  Tom Tromey  <tromey@redhat.com>
12
13         PR symtab/8424:
14         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
15         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
16         * breakpoint.c (resolve_sal_pc): Update.
17         * elfread.c (elf_gnu_ifunc_record_cache): Update.
18         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
19         (minsym_lookup_iterator_cb): Use it.
20         (default_read_var_value): Update.
21         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
22         Update.
23         * infcmd.c (jump_command): Update.
24         * linespec.c (minsym_found): Update.
25         * maint.c (maintenance_translate_address): Update.
26         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
27         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
28         * parse.c (write_exp_msymbol): Update.
29         * printcmd.c (address_info): Update.
30         * psymtab.c (find_pc_sect_psymbol): Update.
31         (fixup_psymbol_section): Check SYMBOL_SECTION, not
32         SYMBOL_OBJ_SECTION.
33         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
34         Don't initialize SYMBOL_OBJ_SECTION.
35         * spu-tdep.c (spu_catch_start): Update.
36         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
37         * symmisc.c (dump_msymbols, print_symbol): Update.
38         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
39         how fallback section is computed.
40         (fixup_symbol_section): Update.
41         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
42         Update.
43         (allocate_symbol, initialize_symbol, allocate_template_symbol):
44         Initialize SYMBOL_SECTION.
45         * symtab.h (struct general_symbol_info) <section>: Update comment.
46         <obj_section>: Remove.
47         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
48         (SYMBOL_OBJFILE): New macro.
49
50 2013-04-08  Tom Tromey  <tromey@redhat.com>
51
52         * coffread.c (record_minimal_symbol): Update.
53         * dbxread.c (record_minimal_symbol): Update.
54         * elfread.c (record_minimal_symbol): Update.
55         * machoread.c (macho_symtab_add_minsym): Update.
56         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
57         Update.
58         * minsyms.c (prim_record_minimal_symbol): Update.
59         (prim_record_minimal_symbol_full): Remove 'bfd_section'
60         argument.
61         (prim_record_minimal_symbol_and_info): Likewise.
62         * minsyms.h (prim_record_minimal_symbol_full)
63         (prim_record_minimal_symbol_and_info): Update.
64         * symtab.c (allocate_symbol, initialize_symbol)
65         (allocate_template_symbol): Initialize SYMBOL_SECTION.
66         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
67         Update.
68
69 2013-04-08  Tom Tromey  <tromey@redhat.com>
70
71         PR symtab/8423:
72         * solib-som.c (som_solib_section_offsets): Use BFD section
73         indices.  Set offsets for all sections.
74         * somread.c (som_symtab_read): Compute BFD section for
75         symbol.  Use prim_record_minimal_symbol_and_info.
76         (som_symfile_read): Fix comment.
77         (struct find_section_offset_arg): New.
78         (find_section_offset, set_section_index): New functions.
79         (som_symfile_offsets): Use set_section_index to compute
80         section indices.
81
82 2013-04-08  Tom Tromey  <tromey@redhat.com>
83
84         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
85         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
86         gdb_bfd_section_index.
87         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
88         New functions.
89         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
90         Declare.
91         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
92         Update.
93         * objfiles.c (add_to_objfile_sections_full): New function.
94         (add_to_objfile_sections): Use it.
95         (build_section_table): Rewrite.
96         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
97         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
98         (struct objfile) <sections>: Update comment.
99         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
100         is NULL.
101         (ALL_OBJSECTIONS): Use it.
102         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
103         * solib-frv.c (frv_relocate_main_executable): Update.
104         * solib-target.c (solib_target_relocate_section_addresses):
105         Use gdb_bfd_section_index.
106         * symfile.c (build_section_addr_info_from_section_table):
107         Use gdb_bfd_section_index.
108         (build_section_addr_info_from_bfd, place_section): Likewise.
109         * symtab.c (fixup_section): Update.
110         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
111
112 2013-04-08  Tom Tromey  <tromey@redhat.com>
113
114         * minsyms.h (struct bound_minimal_symbol): New.
115         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
116         Remove objfile argument.
117         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
118         Return bound_minimal_symbol.
119         * minsyms.c (lookup_minimal_symbol_by_pc_1)
120         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
121         Return bound_minimal_symbol.
122         (in_gnu_ifunc_stub): Update.
123         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
124         Remove 'objfile_p' argument.
125         (lookup_solib_trampoline_symbol_by_pc): Update.
126         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
127         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
128         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
129         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
130         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
131         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
132         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
133         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
134         stack.c, symtab.c, tui/tui-disasm.c: Update.
135
136 2013-04-08  Tom Tromey  <tromey@redhat.com>
137
138         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
139         Use symbol's obstack, not an objfile.
140         * coffread.c (process_coff_symbol): Update.
141         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
142         * jv-lang.c (add_class_symbol): Update.
143         * mdebugread.c (new_symbol): Update.
144         * minsyms.c (prim_record_minimal_symbol_full)
145         (terminate_minimal_symbol_table): Update.
146         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
147         * stabsread.c (define_symbol, read_enum_type): Update.
148         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
149         Handle Ada specially.
150         (symbol_set_language): Add 'obstack' argument.
151         (symbol_set_names): Update.
152         (symbol_natural_name, symbol_demangled_name): Always use
153         ada_decode_symbol.
154         * symtab.h (struct general_symbol_info)
155         <language_specific::obstack>: New field.
156         <ada_mangled>: New field.
157         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
158         (symbol_set_language): Update.
159
160 2013-04-08  Tom Tromey  <tromey@redhat.com>
161
162         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
163         Take an obstack, not an objfile.
164         (symbol_set_names): Update.
165         * symtab.h (symbol_set_demangled_name): Update.
166
167 2013-04-08  Tom Tromey  <tromey@redhat.com>
168
169         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
170         allocate_symbol.
171         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
172         (read_func_scope): Call allocate_template_symbol.
173         (new_symbol_full): Call allocate_symbol.
174         * jit.c (finalize_symtab): Call allocate_symbol.
175         * jv-lang.c (add_class_symbol): Call allocate_symbol.
176         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
177         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
178         (common_block_end): Call allocate_symbol.
179         * symtab.c (allocate_symbol, initialize_symbol)
180         (allocate_template_symbol): New functions.
181         * symtab.c (allocate_symbol, initialize_symbol)
182         (allocate_template_symbol): Declare.
183         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
184
185 2013-04-08  Pedro Alves  <palves@redhat.com>
186             Keith Seitz  <keiths@redhat.com>
187
188         * breakpoint.c (create_breakpoint): Rename
189         "parse_condition_and_thread" parameter to "parse_arg".  Update
190         describing comment.  If !PARSE_ARG, then error out if ARG is not
191         the empty string after extracting the location.
192         * breakpoint.h (create_breakpoint): Rename
193         "parse_condition_and_thread" parameter to "parse_arg".
194
195 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
196
197         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
198
199 2013-04-07  Yao Qi  <yao@codesourcery.com>
200
201         * remote.c (remote_trace_find): Change type of parameters 'addr1'
202         and 'addr2' to CORE_ADDR.
203         * target.c (update_current_target): Update.
204         * target.h (struct target_ops) <to_trace_find>: Change parameter
205         type to CORE_ADDR.
206         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
207         'addr2' to CORE_ADDR.
208         (tfile_trace_find): Likewise.
209         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
210         Change local variable 'addr' to type CORE_ADDR.
211         * tracepoint.h (tfind_1): Update declaration.
212
213 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
214
215         * windows-nat.c (windows_get_absolute_argv0): Move from here...
216         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
217         Include main.h.
218
219         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
220         here...
221         * main.h (windows_get_absolute_argv0): ...to here.
222
223 2013-04-05  Doug Evans  <dje@google.com>
224
225         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
226         (read_cutu_die_from_dwo): Add comments.
227         (read_structure_type): Update comment.
228         (read_enumeration_type, read_namespace_type): Update comment.
229         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
230
231 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
232
233         Convert man pages to texinfo, new gdbinit.5 texinfo page.
234         * Makefile.in (gdb.z): Remove.
235         (install-only): Remove $(man1dir) and gdb.1 installation.
236         * gdb.1: Remove.
237
238 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
239
240         Fix compatibility with Linux kernel 3.8.3.
241         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
242         to more inner block.  Remove parsing of NUMBER from outer block.
243         Parse NUMBER only if KEYWORD has been identified.
244
245 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
246
247         Fix variable name shadowing.
248         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
249         filename to mapsfilename and update its uses.
250
251 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
252
253         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
254         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
255         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
256         details of the problem.
257
258 2013-04-04  Pedro Alves  <palves@redhat.com>
259             Hui Zhu  <hui@codesourcery.com>
260
261         * breakpoint.c (validate_commands_for_breakpoint): If validating a
262         tracepoint, reset its STEP_COUNT and call validate_actionline.
263
264 2013-04-03  Doug Evans  <dje@google.com>
265
266         * dwarf2read.c (read_die_and_siblings_1): Renamed from
267         read_die_and_siblings.
268         (read_die_and_siblings): New function.
269         (read_cutu_die_from_dwo): Dump die if requested.
270         (read_die_and_children): Call read_full_die_1 and
271         read_die_and_siblings_1.
272         (read_full_die): Dump die if requested.
273
274         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
275
276         * dwarf2read.c (struct dwo_file): New member comp_dir.
277         Rename member name to dwo_name.  All uses updated.
278         (hash_dwo_file): Include comp_dir in computation.
279         (eq_dwo_file): Ditto.
280         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
281         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
282
283         * psymtab.c (read_psymtabs_with_fullname): Don't call
284         psymtab_to_fullname if the basenames are different.
285
286 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
287
288         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
289         New entry about "fullname" presence.
290
291 2013-04-03  Pedro Alves  <palves@redhat.com>
292
293         * NEWS: Mention x86_64/Cygwin as new native configuration.
294
295 2013-04-02  Doug Evans  <dje@google.com>
296
297         * dwarf2read.c (read_structure_type): Fix typo in comment.
298
299 2013-04-02  Pedro Alves  <palves@redhat.com>
300
301         * NEWS: Mention "set/show debug aarch64", "set/show debug
302         coff-pe-read" and "set/show debug mach-o".
303
304 2013-04-02  Pedro Alves  <palves@redhat.com>
305
306         * NEWS: Mention "set/show remote trace-buffer-size-packet".
307
308 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
309
310         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
311         gdb_string.h is now in common/.
312
313 2013-04-02  Pedro Alves  <palves@redhat.com>
314
315         * NEWS: Move "set debug notification" and "set trace-buffer-size"
316         under "New options".
317
318 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
319
320         Revert this patch:
321         PR gdb/15275
322         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
323
324 2013-04-02  Pedro Alves  <palves@redhat.com>
325
326         PR gdb/15275
327
328         * remote.c (send_interrupt_sequence): Use remote_serial_write.
329         (remote_serial_write): New function.
330         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
331
332 2013-04-01  Jiong Wang  <jiwang@tilera.com>
333
334         * NEWS: Mention TILE-Gx in "New native configurations" and
335         "New targets" sections. 
336
337 2013-04-01  Doug Evans  <dje@google.com>
338
339         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
340         (process_enumeration_scope): Simplify.
341
342         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
343         type_unit_group ...
344         (struct signatured_type): ... to here.
345         (sig_type_ptr): New typedef.
346         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
347         out of union 't'.  All uses updated.
348         (dw2_get_file_names_reader): Assert not called for a type unit.
349         (dw2_get_file_names): Assert not called for a type unit or type
350         unit group.
351         (build_type_psymtabs_reader): Assert called for a type unit.
352         (build_type_psymtab_dependencies): Assert called for a type unit group.
353
354         * dwarf2read.c (free_dwo_file): Add comment.
355         (dwarf2_per_objfile_free): Unref dwp bfd.
356
357 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
358
359         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
360         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
361         (read_pe_exported_syms): Remove unused 'exportix'.
362         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
363         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
364         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
365
366 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
367
368         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
369         (print_it_watchpoint): Remove unused 'bl'.
370         (say_where): Remove unused 'uiout'.
371         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
372         (bkpt_breakpoint_hit): Remove unused 'b'.
373         (internal_bkpt_print_it): Remove unused 'uiout'.
374         * buildsym.c (augment_type_symtab): Remove unused 'i'.
375
376 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
377
378         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
379         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
380
381 2013-03-29  Doug Evans  <dje@google.com>
382
383         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
384         Delete arg is_dwp.  All callers updated.
385         (open_dwp_file): New function.
386         (open_and_init_dwp_file): Call it.
387         (get_dwp_file): New function.
388         (lookup_dwo_cutu): Call it.
389
390         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
391         unnecessary, cleanup.
392
393         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
394
395         * dwarf2read.c (read_cutu_die_from_dwo): New function.
396         (lookup_dwo_unit): New function.
397         (init_cutu_and_read_dies): Move DWO handling to new functions.
398
399         * dwarf2read.c (struct signatured_type): Tweak comment.
400         (struct dwo_unit): Tweak comment.
401         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
402         (create_dwo_debug_info_hash_table): Tweak comment.
403         (dwarf2_per_cu_offset_and_type): Tweak comment.
404
405         * dwarf2read.c (lookup_signatured_type): Remove complaint about
406         missing .debug_types section.
407
408 2013-03-29  Yao Qi  <yao@codesourcery.com>
409
410         * corelow.c: Include "completer.h".
411         (_initialize_corelow): Call add_target_with_completer with
412         argument 'filename_completer'.
413         * tracepoint.c: Likewise.
414         * exec.c (_initialize_exec): Likewise.
415         * target.c (add_target): Rename to ...
416         (add_target_with_completer): ... this.  Call set_cmd_completer
417         if parameter completer is not NULL.
418         (add_target): New.
419         * target.h: Include "command.h".
420         (add_target_with_completer): Declare it.
421
422 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
423
424         * coffread.c (is_import_fixup_symbol): New function.
425         (record_minimal_symbol): Use is_import_fixup_symbol to
426         detect import fixup symbols, and discard them.
427
428 2013-03-28  Doug Evans  <dje@google.com>
429
430         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
431         types hash table until we know we need it.
432
433         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
434         index numbers.
435
436         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
437         All callers updated.
438         (dw2_print_stats): Print #read CUs too.
439         (dump_die_shallow): Print signatured types better.
440
441         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
442         info_or_types_section to section.  All uses updated.
443         (struct dwo_unit): Ditto.
444
445 2013-03-28  Pedro Alves  <palves@redhat.com>
446
447         * NEWS (New options): New section.
448         (New options): Mention set/show remote trace-status-packet.
449         * remote.c (PACKET_qTStatus): New enumeration value.
450         (remote_get_trace_status): Skip sending qTStatus if the packet is
451         disabled.  Use packet_ok.
452         (_initialize_remote): Register a configuration command for
453         qTStatus packet.
454
455 2013-03-28  Doug Evans  <dje@google.com>
456
457         * symfile.c (find_separate_debug_file): Add comment.
458         (terminate_after_last_dir_separator): Tweak comment.
459
460         * dwarf2read.c (create_partial_symtab): Add forward decl.
461         (create_partial_symtab): Move to be closer to other psymtab functions.
462         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
463
464         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
465         (compute_symtab_includes): Remove unnecessary forward declaration.
466         (die_needs_namespace): Add comment marking group of functions for
467         dwarf2 name computation.
468
469         * typeprint.c (_initialize_typeprint): Improve type help text.
470
471         * python/python.c (finish_python_initialization): Provide suggestion
472         for how to tell gdb to find its python files.
473
474 2013-03-28  Pedro Alves  <palves@redhat.com>
475
476         PR gdb/15294
477
478         * source.c (_initialize_source): Change back "set listsize" to an
479         integer command.
480
481 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
482
483         PR gdb/15275
484         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
485
486 2013-03-27  Pedro Alves  <palves@redhat.com>
487
488         * top.c (history_size): Rename to ...
489         (history_size_setshow_var): ... this.  Add comment.
490         (show_commands): Use readline's 'history_length' instead of
491         computing the history length by calling history_get in a loop.
492         (set_history_size_command): Error out for sizes over INT_MAX.
493         Restore previous history size on invalid size.
494         (init_history): If HISTSIZE is negative, leave the history size as
495         zero.  Add comments.
496         (init_main): Adjust.
497
498 2013-03-27  Pedro Alves  <palves@redhat.com>
499
500         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
501         coff_pe_read" command to "set debug coff-pe-read".
502
503 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
504
505         * record.c (command_size_to_target_size): Fix size comparison.
506         Change parameter type from pointer to integer to integer.
507         Update all users.
508
509 2013-03-27  Pierre Muller  <muller@sourceware.org>
510
511         * windows-nat.c (handle_output_debug_string): Avoid typecast
512         from integer of different size warning.
513
514 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
515
516         * windows-nat.c (handle_output_debug_string): Add empty line
517         after local block variable definition.
518
519 2013-03-26  Pedro Alves  <palves@redhat.com>
520
521         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
522         (net_open): Make 'polls' local unsigned.
523
524 2013-03-26  Pedro Alves  <palves@redhat.com>
525
526         * remote.c (_initialize_remote): Make "set remoteaddresssize"
527         a zuinteger command instead of uinteger.
528
529 2013-03-26  Pedro Alves  <palves@redhat.com>
530
531         * record-full.c (record_full_insn_num): Make it unsigned.
532         (record_full_check_insn_num, record_full_message)
533         (record_full_registers_change, record_full_xfer_partial): Remove
534         record_full_insn_max_num check (it's always != 0).
535         (record_full_info, record_full_restore): Use %u as format string.
536         (): Use %u as format string.
537         (set_record_full_insn_max_num): Remove record_full_insn_max_num
538         check (it's always != 0).
539
540 2013-03-26  Pedro Alves  <palves@redhat.com>
541
542         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
543         and "set dcache size" commands zuinteger instead of uinteger.
544
545 2013-03-26  Pedro Alves  <palves@redhat.com>
546
547         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
548         command zuinteger instead of uinteger.
549
550 2013-03-26  Pedro Alves  <palves@redhat.com>
551
552         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
553         zuinteger instead of uinteger.
554
555 2013-03-26  Pedro Alves  <palves@redhat.com>
556
557         * record.c (record_insn_history_size_setshow_var)
558         (record_call_history_size_setshow_var): New globals.
559         (command_size_to_target_size): New function.
560         (cmd_record_insn_history, cmd_record_call_history): Use
561         command_size_to_target_size instead of cast.
562         (validate_history_size, set_record_insn_history_size)
563         (set_record_call_history_size): New functions.
564         (_initialize_record): Install set_record_insn_history_size and
565         set_record_call_history_size as "set" hooks of "set record
566         instruction-history-size" and "set record
567         function-call-history-size".
568
569 2013-03-26  Pedro Alves  <palves@redhat.com>
570
571         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
572         use with history_max_entries use.  Remove FIXME note.
573
574 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
575
576         * record-btrace.c (record_btrace_close): Call
577         record_btrace_auto_disable.
578
579 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
580
581         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
582
583 2013-03-25  Doug Evans  <dje@google.com>
584
585         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
586
587 2013-03-25  Tom Tromey  <tromey@redhat.com>
588
589         PR symtab/11462:
590         * c-exp.y (exp): Add new productions for destructors after '.' and
591         '->'.
592         (write_destructor_name): New function.
593
594 2013-03-25  Tom Tromey  <tromey@redhat.com>
595
596         PR c++/9197:
597         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
598         value_struct_elt, not lookup_struct_elt_type.
599         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
600         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
601         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
602
603 2013-03-25  Yao Qi  <yao@codesourcery.com>
604
605         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
606         instead of '_mkdir'.
607
608 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
609
610         * windows-nat.c (windows_get_absolute_argv0): New function.
611         * windows-nat.h: Add its prototype.
612
613         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
614         Use IS_DIR_SEPARATOR instead of looking for a character inside
615         SLASH_STRING.  Include filenames.h.
616         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
617         relocate_gdb_directory works when passed gdb_program_name.
618         Include windows-nat.h.
619
620 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
621
622         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
623         * remote.c (trace_error): Remove the special handling of '2'.
624         (readchar) <SERIAL_EOF>
625         (readchar) <SERIAL_ERROR>
626         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
627         (remote_get_trace_status): Call throw_exception if EX is
628         TARGET_CLOSE_ERROR.
629         * utils.c (perror_with_name): Rename to ...
630         (throw_perror_with_name): ... here.  New parameter errcode, describe it
631         in the function comment.
632         (perror_with_name): New function wrapper.
633         * utils.h (enum errors): New stub declaration.
634         (throw_perror_with_name): New declaration.
635
636 2013-03-22  Pedro Alves  <palves@redhat.com>
637             Yao Qi  <yao@codesourcery.com>
638             Mark Kettenis  <kettenis@gnu.org>
639
640         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
641         Don't let the user set the value to UINT_MAX directly.
642         <var_integer>: Don't let the user set the value to INT_MAX
643         directly.
644
645 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
646
647         * remote.c (remote_unpush_target): New function.
648         (remote_open_1): Remove two pop_target calls, update one comment, add
649         comment to target_preopen call.  Replace pop_target call by
650         remote_unpush_target call.
651         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
652         pop_target calls by remote_unpush_target calls.
653
654 2013-03-22  Pedro Alves  <palves@redhat.com>
655
656         * linux-nat.c (linux_child_follow_fork): Don't call
657         linux_enable_event_reporting.
658         (linux_handle_extended_wait): Don't call
659         linux_enable_event_reporting.
660
661 2013-03-22  Pedro Alves  <palves@redhat.com>
662
663         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
664         use it to rewrite the trampoline buffers with type gdb_byte[], and
665         undefine the macro.  Remove char* cast.
666
667 2013-03-21  Doug Evans  <dje@google.com>
668
669         New commands "mt set per-command {space,time,symtab} {on,off}".
670         * NEWS: Add entry.
671         * event-top.c: #include "maint.h".
672         * main.c: #include "maint.h".
673         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
674         timeval-utils.h, maint.h, cli/cli-setshow.h.
675         (per_command_time, per_command_space): New static globals.
676         (per_command_symtab): New static global.
677         (per_command_setlist, per_command_showlist): New static globals.
678         (struct cmd_stats): Move here from utils.c.
679         (set_per_command_time): Renamed from set_display_time in utils.c
680         and moved here.  All callers updated.
681         (set_per_command_space): Renamed from set_display_space in utils.c
682         and moved here.  All callers updated.
683         (count_symtabs_and_blocks): New function.
684         (report_command_stats): Moved here from utils.c.  Add support for
685         printing symtab stats.  Only print data if enabled before command
686         executed.
687         (make_command_stats_cleanup): Ditto.
688         (sert_per_command_cmd, show_per_command_cmd): New functions.
689         (_initialize_maint_cmds): Add new commands
690         mt set per-command {space,time,symtab} {on,off}.
691         * maint.h: New file.
692         * top.c: #include "maint.h".
693         * utils.c (reset_prompt_for_continue_wait_time): New function.
694         (get_prompt_for_continue_wait_time): New function.
695         * utils.h (reset_prompt_for_continue_wait_time): Declare
696         (get_prompt_for_continue_wait_time): Declare.
697         (make_command_stats_cleanup): Moved to maint.h.
698         (set_display_time, set_display_space): Moved to maint.h and renamed
699         to set_per_command_time, set_per_command_space.
700         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
701         parse_binary_operation and made non-static.  Don't call error,
702         just return an error marker.  All callers updated.
703         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
704
705 2013-03-21  Tom Tromey  <tromey@redhat.com>
706
707         * symfile.c (alloc_section_addr_info): Update header.  Don't set
708         'num_sections' field.
709         (build_section_addr_info_from_section_table): Set 'num_sections'.
710         (build_section_addr_info_from_bfd): Likewise.
711         (build_section_addr_info_from_objfile): Remove dead loop
712         condition.
713         (free_section_addr_info): Unconditionally call xfree.
714         (relative_addr_info_to_section_offsets, addrs_section_sort)
715         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
716         condition.
717         (syms_from_objfile_1): Remove dead 'if' condition.  Check
718         'num_sections'.
719         (add_symbol_file_command): Set 'num_sections'.
720         * symfile-mem.c (symbol_file_add_from_memory): Set
721         'num_sections'.
722         * somread.c (som_symfile_offsets): Remove dead loop condition.
723         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
724         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
725
726 2013-03-21  Tom Tromey  <tromey@redhat.com>
727
728         * tracepoint.h (decode_agent_options): Add 'trace_string'
729         argument.
730         * tracepoint.c (decode_agent_options): Add 'trace_string'
731         argument.
732         (validate_actionline): Update.
733         (collect_symbol): Add 'trace_string' argument.
734         (struct add_local_symbols_data) <trace_string>: New field.
735         (do_collect_symbol): Update.
736         (add_local_symbols): Add 'trace_string' argument.
737         (encode_actions_1): Update.
738         (trace_dump_actions): Update.
739         * dwarf2loc.c (access_memory): Update.
740         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
741         * ax-general.c (new_agent_expr): Update.
742         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
743         (gen_trace_for_return_address): Add argument.
744         (trace_kludge, trace_string_kludge): Remove.
745         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
746         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
747         (gen_trace_for_var): Add 'trace_string' argument.
748         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
749         (gen_printf, agent_eval_command_one): Update.
750
751 2013-03-21  Tom Tromey  <tromey@redhat.com>
752
753         PR exp/15109:
754         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
755         Handle FILENAME token.
756
757 2013-03-21  Tom Tromey  <tromey@redhat.com>
758
759         * c-exp.y (YYPRINT): Define.
760         (c_print_token): New function.
761
762 2013-03-21  Tom Tromey  <tromey@redhat.com>
763
764         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
765
766 2013-03-21  Yao Qi  <yao@codesourcery.com>
767
768         * ctf.c: Include "gdb_stat.h".
769         [USE_WIN32API]: New macro 'mkdir'.
770         (ctf_start): Use permission bits macros if they are defined.
771
772 2013-03-20  Keith Seitz  <keiths@redhat.com>
773
774         * breakpoint.h (struct breakpoint): Add comment to
775         extra_string indicating that this member is mallod'd.
776         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
777
778 2013-03-20  Pedro Alves  <palves@redhat.com>
779
780         PR gdb/15289
781
782         * cli/cli-setshow.c (do_set_command)
783         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
784         the result of parsing the command argument.  Throw error if the
785         value is greater than UINT_MAX.  Print the invalid value with
786         plongest.
787         <var_integer, var_zinteger>: Use LONGEST for variable holding the
788         result of parsing the command argument.  Throw error if the value
789         is greater than INT_MAX, not greater or equal.  Also throw error
790         if the value is less than INT_MIN.  Print the invalid value with
791         plongest.
792         <var_zuinteger_unlimited>: Throw error if the value is greater
793         than INT_MAX, not greater or equal.
794         (do_show_command) <var_integer, var_zinteger,
795         var_zuinteger_unlimited>: Use %d for printing int, not %u.
796
797 2013-03-20  Tom Tromey  <tromey@redhat.com>
798
799         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
800         if possible.
801         * dwarf2read.c (read_func_scope): Remove old FIXME.
802         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
803         not LOC_COMPUTED.
804         * findvar.c (symbol_read_needs_frame, default_read_var_value):
805         Unconditionally call via computed ops, if possible.
806         * printcmd.c (address_info): Unconditionally call via computed ops,
807         if possible.
808         * stack.c (read_frame_arg): Unconditionally call via computed ops,
809         if possible.
810         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
811         * tracepoint.c (scope_info): Unconditionally call via computed ops,
812         if possible.
813
814 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
815             Tom Tromey  <tromey@redhat.com>
816
817         PR symtab/8421:
818         * coffread.c (coff_register_index): New global.
819         (process_coff_symbol, coff_read_enum_type): Set
820         SYMBOL_ACLASS_INDEX.
821         (_initialize_coffread): Initialize new global.
822         * dwarf2loc.c (locexpr_find_frame_base_location)
823         (dwarf2_block_frame_base_locexpr_funcs)
824         (loclist_find_frame_base_location)
825         (dwarf2_block_frame_base_loclist_funcs): New.
826         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
827         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
828         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
829         (dwarf2_block_frame_base_loclist_funcs): New.
830         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
831         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
832         globals.
833         (read_func_scope): Update.
834         (fixup_go_packaging, mark_common_block_symbol_computed)
835         (var_decode_location, new_symbol_full, dwarf2_const_value):
836         Set SYMBOL_ACLASS_INDEX.
837         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
838         (_initialize_dwarf2_read): Initialize new globals.
839         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
840         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
841         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
842         globals.
843         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
844         (_initialize_mdebugread): Initialize new globals.
845         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
846         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
847         (stab_register_index, stab_regparm_index): New globals.
848         (define_symbol, read_enum_type, common_block_end): Set
849         SYMBOL_ACLASS_INDEX.
850         (_initialize_stabsread): Initialize new globals.
851         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
852         globals.
853         (MAX_SYMBOL_IMPLS): New define.
854         (register_symbol_computed_impl, register_symbol_block_impl)
855         (register_symbol_register_impl)
856         (initialize_ordinary_address_classes): New functions.
857         (_initialize_symtab): Call initialize_ordinary_address_classes.
858         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
859         (struct symbol_impl): New.
860         (SYMBOL_ACLASS_BITS): New define.
861         (struct symbol) <aclass, ops>: Remove fields.
862         <aclass_index>: New field.
863         (symbol_impls): Declare.
864         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
865         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
866         (register_symbol_computed_impl, register_symbol_block_impl)
867         (register_symbol_register_impl): Declare.
868         (struct symbol_computed_ops): Add location_has_loclist.
869         (struct symbol_block_ops): New.
870         (SYMBOL_BLOCK_OPS): New.
871         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
872
873 2013-03-20  Tom Tromey  <tromey@redhat.com>
874
875         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
876         (print_partial_symbols, recursively_search_psymtabs): Use
877         PSYMBOL_CLASS.
878
879 2013-03-20  Pierre Muller  <muller@sourceware.org>
880
881         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
882         addtion, subtraction, multiplication and division binary operator.
883
884 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
885
886         Code cleanup.
887         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
888         * bsd-kvm.c (bsd_kvm_close): Likewise.
889         * bsd-uthread.c (bsd_uthread_close): Likewise.
890         * corelow.c (core_close): Likewise.
891         (core_close_cleanup): Remove parameter quitting from a caller.
892         * event-top.c (async_disconnect): Likewise.
893         * exec.c (exec_close_1): Remove parameter quitting.
894         * go32-nat.c (go32_close): Likewise.
895         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
896         parameter quitting from a caller.
897         * mips-linux-nat.c (super_close): Remove parameter quitting from the
898         variable.
899         (mips_linux_close): Remove parameter quitting.  Remove parameter
900         quitting from a caller.
901         * monitor.c (monitor_close): Remove parameter quitting.
902         * monitor.h (monitor_close): Likewise.
903         * record-btrace.c (record_btrace_close): Likewise.
904         * record-full.c (record_full_close): Likewise.
905         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
906         it also from fprintf_unfiltered.
907         * remote-mips.c (mips_close): Remove parameter quitting.
908         (mips_detach): Remove parameter quitting from a caller.
909         * remote-sim.c (gdbsim_close): Remove parameter quitting.
910         (gdbsim_close): Remove duplicate function comment.  Remove parameter
911         quitting and remove it also from printf_filtered.
912         * remote.c (remote_close): Remove parameter quitting.
913         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
914         * target.c (update_current_target): Remove parameter int from to_close
915         de_fault.
916         (push_target, unpush_target, pop_target): Remove parameter quitting from
917         a caller.
918         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
919         Remove parameter quitting from a caller.
920         (target_preopen): Remove parameter quitting from a caller.
921         (target_close): Remove parameter quitting.  Remove parameter quitting
922         from a caller two times.  Remove parameter quitting also from
923         fprintf_unfiltered.
924         * target.h (struct target_ops): Remove parameter quitting and as int
925         from fields to_xclose and to_close.
926         (extern struct target_ops current_target):
927         (target_close, pop_all_targets): Remove parameter quitting.  Update the
928         comment.
929         (pop_all_targets_above): Remove parameter quitting.
930         * top.c (quit_target): Remove parameter quitting from a caller.
931         * tracepoint.c (tfile_close): Remove parameter quitting.
932         * windows-nat.c (windows_close): Remove parameter quitting.
933
934 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
935
936         * windows-nat.c (handle_output_debug_string): Replace call
937         to string_to_core_addr with call to strtoull.
938
939 2013-03-20  Yao Qi  <yao@codesourcery.com>
940
941         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
942         and write it to CTF metadata.
943
944 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
945
946         * windows-nat.c (handle_output_debug_string): Change type of n to
947         SIZE_T to avoid crash on 64 bit systems.
948
949 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
950
951         * python/python-internal.h (HAVE_SNPRINTF)
952         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
953         about redefinition of snprintf by pyerrors.h.
954
955 2013-03-15  Steve Ellcey  <sellcey@mips.com>
956
957         * remote-sim.c (sim_command_completer): Make char arguments const.
958
959 2013-03-15  Tom Tromey  <tromey@redhat.com>
960
961         PR c++/15116:
962         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
963
964 2013-03-14  Tom Tromey  <tromey@redhat.com>
965
966         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
967         New fields.
968         (get_file_crc): Move from symfile.c.
969         (gdb_bfd_crc): New function.
970         * gdb_bfd.h (gdb_bfd_crc): Declare.
971         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
972         * symfile.c (get_file_crc): Move to gdb_bfd.c.
973         (separate_debug_file_exists): Use gdb_bfd_crc.
974
975 2013-03-14  Tom Tromey  <tromey@redhat.com>
976
977         * symfile.c (get_debug_link_info): Remove.
978         (find_separate_debug_file_by_debuglink): Use
979         bfd_get_debug_link_info.
980
981 2013-03-14  Tom Tromey  <tromey@redhat.com>
982
983         * symtab.c (error_in_psymtab_expansion): New function.
984         (lookup_symbol_aux_quick)
985         (basic_lookup_transparent_type_quick): Remove "last resort"
986         code.  Use error_in_psymtab_expansion.
987
988 2013-03-14  Doug Evans  <dje@google.com>
989             Jan Kratochvil  <jan.kratochvil@redhat.com>
990
991         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
992         any successful compare_filenames_for_search or FILENAME_CMP.
993         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
994         * symtab.c (iterate_over_some_symtabs): Likewise.
995
996 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
997
998         * source.c (print_source_lines_base): Make a local copy of
999         symtab_to_fullname.
1000
1001 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
1002             Jan Kratochvil  <jan.kratochvil@redhat.com>
1003
1004         * source.c (print_source_lines_base): Suppress "file" for TUI.
1005
1006 2013-03-14  Keith Seitz  <keiths@redhat.com>
1007             Alan Matsuoka  <alanm@redhat.com>
1008
1009         PR c++/15203
1010         PR c++/15210
1011         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
1012         TYPE_CODE_METHOD.
1013         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
1014         symbols.
1015
1016 2013-03-14  Yao Qi  <yao@codesourcery.com>
1017
1018         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
1019         status to tfile if trace is stopped by command 'tstop'.
1020
1021 2013-03-14  Yao Qi  <yao@codesourcery.com>
1022
1023         * tracepoint.c (tfile_write_status): Write trace notes and user
1024         name into tfile if they are not NULL.
1025
1026 2013-03-14  Hui Zhu  <hui@codesourcery.com>
1027             Yao Qi  <yao@codesourcery.com>
1028
1029         * Makefile.in (REMOTE_OBS): Add ctf.o.
1030         (SFILES): Add ctf.c.
1031         (HFILES_NO_SRCDIR): Add ctf.h.
1032         * ctf.c, ctf.h: New files.
1033         * tracepoint.c: Include 'ctf.h'.
1034         (collect_pseudocommand): Remove static.
1035         (trace_save_command): Parse option "-ctf".
1036         Produce different trace file writers per option.
1037         Adjust output message.
1038         (trace_save_tfile, trace_save_ctf): New.
1039         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
1040         * mi/mi-main.c: Include 'ctf.h'.
1041         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
1042         trace_save_tfile or trace_save_ctf.
1043         * NEWS: Mention these changes.
1044
1045 2013-03-14  Yao Qi  <yao@codesourcery.com>
1046
1047         * tracepoint.c (trace_file_writer_xfree): New.
1048         (struct tfile_writer_data): New.
1049         (tfile_dtor, tfile_can_target_save, tfile_start): New.
1050         (tfile_write_header, tfile_write_regblock_type): New.
1051         (tfile_write_status, tfile_write_uploaded_tsv): New.
1052         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
1053         (tfile_write_raw_data, (tfile_end): New.
1054         (tfile_write_ops): New global variable.
1055         (TRACE_WRITE_R_BLOCK): New macro.
1056         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
1057         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
1058         (TRACE_WRITE_V_BLOCK): New macro.
1059         (trace_save): Add extra one parameter WRITER.  Make it static.
1060         Use WRITER to writer trace.
1061         (tfile_trace_file_writer_new): New.
1062         (trace_save_command): Caller update.
1063         (trace_save_tfile): Write trace data in TFILE format.
1064         * tracepoint.h (struct trace_frame_write_ops): New.
1065         (struct trace_file_write_ops): New.
1066         (struct trace_file_writer): New.
1067         (trace_save): Remove its declaration.
1068         (trace_save_tfile): Declare it.
1069         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
1070         instead of trace_save.
1071
1072 2013-03-13  Pedro Alves  <palves@redhat.com>
1073
1074         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
1075
1076 2013-03-13  Pedro Alves  <palves@redhat.com>
1077
1078         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
1079         commented out code.
1080         * demangle.c (current_demangling_style_string): Make it const.
1081         (set_demangling_command): Assert the demangling style is known.
1082         Remove all handling of unknown styles.  Set
1083         'current_demangling_style_string' to an element of the
1084         demangling_style_names array.
1085         (set_demangling_style): Delete.
1086         (_initialize_demangler): Set current_demangling_style_string to the
1087         element of the demangling_style_names array that corresponds to
1088         the default demangling style.  Remove FIXME note.  Don't call
1089         set_demangling_style.
1090         * gdb-demangle.h (set_demangling_style): Remove declaration.
1091
1092 2013-03-13  Pedro Alves  <palves@redhat.com>
1093
1094         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
1095         fields const.
1096         (ada_make_symbol_completion_list): Make "text0" parameter const.
1097         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
1098         * breakpoint.c (condition_completer): Make "text" and "word"
1099         parameters const.  Adjust.
1100         (check_tracepoint_command): Adjust to validate_actionline
1101         prototype change.
1102         (catch_syscall_completer): Make "text" and "word" parameters
1103         const.
1104         * cli/cli-cmds.c (show_user): Make "comname" local const.
1105         (valid_command_p): Make "command" parameter const.
1106         (alias_command): Make "alias_prefix" and "command_prefix" locals
1107         const.
1108         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
1109         (add_alias_cmd): Make "name" and "oldname" parameters const.
1110         Adjust.  No longer make copy of OLDNAME.
1111         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
1112         (add_setshow_cmd_full, add_setshow_enum_cmd)
1113         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1114         (add_setshow_filename_cmd, add_setshow_string_cmd)
1115         (add_setshow_string_noescape_cmd)
1116         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1117         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1118         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
1119         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
1120         Make "name" parameter const.
1121         (help_cmd): Rename "command" parameter to "arg".  New const local
1122         "command".
1123         (find_cmd): Make "command" parameter const.
1124         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
1125         deprecated_cmd_warning prototype change.
1126         (undef_cmd_error): Make "cmdtype" parameter const.
1127         (lookup_cmd): Make "line" parameter const.
1128         (deprecated_cmd_warning): Change type of "text" parameter to
1129         pointer to const char, from pointer to pointer to char.  Adjust.
1130         (lookup_cmd_composition): Make "text" parameter const.
1131         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
1132         parameters const.
1133         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
1134         const.
1135         * cli/cli-script.c (validate_comname): Make "tem" local const.
1136         (define_command): New const local "tem_c".  Use it in calls to
1137         lookup_cmd.
1138         (document_command): Make "tem" and "comfull" locals const.
1139         (show_user_1): Make "prefix" and "name" parameters const.
1140         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
1141         const.
1142         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
1143         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
1144         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
1145         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
1146         (complete_on_enum, add_setshow_enum_cmd)
1147         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1148         (add_setshow_filename_cmd, add_setshow_string_cmd)
1149         (add_setshow_string_noescape_cmd)
1150         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1151         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1152         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1153         Change prototypes, constifying strings.
1154         * completer.c (noop_completer, filename_completer): Make "text"
1155         and "prefix" parameters const.
1156         (location_completer, expression_completer)
1157         (complete_line_internal): Make "text" and "prefix" parameters
1158         const and adjust.
1159         (command_completer, signal_completer): Make "text" and "prefix"
1160         parameters const.
1161         * completer.h (noop_completer, filename_completer)
1162         (expression_completer, location_completer, command_completer)
1163         (signal_completer): Change prototypes.
1164         * corefile.c (complete_set_gnutarget): Make "text" and "word"
1165         parameters const.
1166         * cp-abi.c (cp_abi_completer): Likewise.
1167         * expression.h (parse_expression_for_completion): Change
1168         prototype.
1169         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
1170         parameters const.
1171         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
1172         * infrun.c (handle_completer): Make "text" and "word" parameters
1173         const.
1174         * interps.c (interpreter_completer): Make "text" and "word"
1175         parameters const.
1176         * language.h (struct language_defn)
1177         <la_make_symbol_completion_list>: Make "text" and "word"
1178         parameters const.
1179         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
1180         (parse_exp_in_context): Rename to ...
1181         (parse_exp_in_context_1): ... this.
1182         (parse_exp_in_context): Reimplement, with const hack from
1183         parse_exp_1.
1184         (parse_expression_for_completion): Make "string" parameter const.
1185         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
1186         to pointer to const char.  Adjust.
1187         (print_command_1): Make "exp" parameter const.
1188         (output_command): Rename to ...
1189         (output_command_const): ... this.  Make "exp" parameter const.
1190         (output_command): Reimplement.
1191         (x_command): Adjust.
1192         (display_command): Rename "exp" parameter to "arg".  New "exp"
1193         local, const version of "arg".
1194         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
1195         "cmd_name" local const.
1196         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
1197         call.
1198         (cmdpy_completer): Make "text" and "word" parameters const.
1199         (gdbpy_parse_command_name): Make "prefix_text2" local const.
1200         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
1201         const.
1202         * remote.c (_initialize_remote): Make "cmd_name" local const.
1203         * symtab.c (language_search_unquoted_string): Make "text" and "p"
1204         parameters const.  Adjust.
1205         (completion_list_add_fields): Make "sym_text", "text" and "word"
1206         parameters const.
1207         (struct add_name_data) <sym_text, text, word>: Make fields const.
1208         (default_make_symbol_completion_list_break_on): Make "text" and
1209         "word" parameters const.  Adjust locals.
1210         (default_make_symbol_completion_list)
1211         (make_symbol_completion_list, make_symbol_completion_type)
1212         (make_symbol_completion_list_fn): Make "text" and "word"
1213         parameters const.
1214         (make_file_symbol_completion_list): Make "text", "word" and
1215         "srcfile" parameters const.  Adjust locals.
1216         (add_filename_to_list): Make "text" and "word" parameters const.
1217         (struct add_partial_filename_data) <text, word>: Make fields
1218         const.
1219         (make_source_files_completion_list): Make "text" and "word"
1220         parameters const.
1221         * symtab.h (default_make_symbol_completion_list_break_on)
1222         (default_make_symbol_completion_list, make_symbol_completion_list)
1223         (make_symbol_completion_type enum type_code)
1224         (make_symbol_completion_list_fn make_file_symbol_completion_list)
1225         (make_source_files_completion_list): Change prototype.
1226         * top.c (execute_command): Adjust to pass pointer to pointer to
1227         const char to lookup_cmd, and to deprecated_cmd_warning prototype
1228         change.
1229         (set_verbose): Make "cmdname" local const.
1230         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
1231         and adjust.
1232         (validate_actionline): Make "line" parameter a pointer to const
1233         char, and adjust.
1234         (encode_actions_1): Make "action_exp" local const, and adjust.
1235         (encode_actions): Adjust.
1236         (replace_comma): Delete.
1237         (trace_dump_actions): Make "action_exp" and "next_comma" locals
1238         const, and adjust.  Don't frob the action string while splitting
1239         it at commas.  Instead, make a copy of each split substring in
1240         turn.
1241         (trace_dump_command): Adjust to validate_actionline prototype
1242         change.
1243         * tracepoint.h (decode_agent_options, decode_agent_options)
1244         (encode_actions, validate_actionline): Change prototypes.
1245         * valprint.h (output_command): Delete declaration.
1246         (output_command_const): Declare.
1247         * value.c (function_destroyer): Cast const away in xfree call.
1248
1249 2013-03-13  Pedro Alves  <palves@redhat.com>
1250
1251         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
1252         rather than casting 'const char * const *' to 'const char **'.
1253         * ada-lex.l (processInt): Make "trailer" local const.  Remove
1254         'const char **' cast.
1255         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
1256         locals, and use those as strtol output pointer, instead than doing
1257         invalid casts to from 'const char **' to 'char **'.
1258         (_initialize_demangle): Remove cast.
1259         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
1260         locals, and use those as strtol output pointer, instead than doing
1261         invalid casts to from 'const char **' to 'char **'.
1262         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
1263         casts.
1264         * stap-probe.c (stap_parse_register_operand)
1265         (stap_parse_single_operand): Likewise.
1266
1267 2013-03-13  Yao Qi  <yao@codesourcery.com>
1268
1269         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
1270         the last matched 'V' blcok in trace frame.
1271
1272 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
1273
1274         * NEWS: Create a new section for the next release branch.
1275         Rename the section of the current branch, now that it has
1276         been cut.
1277
1278 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
1279
1280         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
1281         * version.in: Bump version to 7.6.50.20130312-cvs.
1282
1283 2013-03-12  Keith Seitz  <keiths@redhat.com>
1284
1285         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
1286         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
1287         Remove temporary copy of input string.
1288         (mi_execute_command_wrapper): Make "cmd" const.
1289         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
1290         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
1291         Use const strings.
1292         (mi_parse): Make "cmd" const.
1293         Use const strings.
1294         * mi/mi-parse.h (mi_parse): Make "cmd" const.
1295
1296 2013-03-12  Keith Seitz  <keiths@redhat.com>
1297
1298         * ada-lang.c (ada_read_renaming_var_value): Pass const
1299         pointer to expression string to parse_exp_1.
1300         (create_excep_cond_exprs): Likewise.
1301         * ax-gdb.c (agent_eval_command_one): Likewise.
1302         (maint_agent_printf_command): Likewise.
1303         Constify much of the string handling/parsing.
1304         * breakpoint.c (set_breakpoint_condition): Pass const
1305         pointer to expression string to parse_exp_1.
1306         (update_watchpoint): Likewise.
1307         (parse_cmd_to_aexpr): Constify string handling.
1308         Pass const pointer to parse_exp_1.
1309         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
1310         (find_condition_and_thread): Likewise.
1311         Make TOK const.
1312         (watch_command_1): Make "arg" const.
1313         Constify string handling.
1314         Copy the expression string instead of changing the input
1315         string.
1316         (update_breakpoint_location): Pass const pointer to
1317         parse_exp_1.
1318         * eval.c (parse_and_eval_address): Make "exp" const.
1319         (parse_to_comma_and_eval): Make "expp" const.
1320         (parse_and_eval): Make "exp" const.
1321         * expression.h (parse_expression): Make argument const.
1322         (parse_exp_1): Make first argument const.
1323         * findcmd.c (parse_find_args): Treat "args" as const.
1324         * linespec.c (parse_linespec): Pass const pointer to
1325         linespec_expression_to_pc.
1326         (linespec_expression_to_pc): Make "exp_ptr" const.
1327         * parse.c (parse_exp_1): Make "stringptr" const.
1328         Make a copy of the expression to pass to parse_exp_in_context until
1329         this whole interface can be constified.
1330         (parse_expression): Make "string" const.
1331         * printcmd.c (ui_printf): Treat "arg" as const.
1332         Handle const strings.
1333         * tracepoint.c (validate_actionline): Pass const pointer to
1334         all calls to parse_exp_1.
1335         (encode_actions_1): Likewise.
1336         * value.h (parse_to_comma_and_eval): Make argument const.
1337         (parse_and_eval_address): Likewise.
1338         (parse_and_eval): Likewise.
1339         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
1340         (varobj_set_value): Likewise.
1341         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
1342         constify string handling.
1343         Pass const pointers to parse_and_eval_address and
1344         parse_to_comman_and_eval.
1345         * cli/cli-utils.c (skip_to_space): Rename to ...
1346         (skip_to_space_const): ... this. Handle const strings.
1347         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
1348         skip_to_space_const.
1349         (skip_to_space_const): Declare.
1350         * common/format.c (parse_format_string): Make "arg" const.
1351         Handle const strings.
1352         * common/format.h (parse_format_string): Make "arg" const.
1353         * gdbserver/ax.c (ax_printf): Make "format" const.
1354         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
1355         of the expression string.
1356
1357 2013-03-12  Hui Zhu  <hui@codesourcery.com>
1358
1359         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
1360
1361 2013-03-12  Yao Qi  <yao@codesourcery.com>
1362             Hui Zhu  <hui@codesourcery.com>
1363
1364         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
1365         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
1366         DW_OP_deref_size.
1367
1368 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
1369
1370         * ada-lex.l (rules): Only recognize 'thread' as a
1371         delimiter when followed by numerals, as for c-exp.y.
1372         Use new rewind_to_char function to rewind the input for
1373         expression-delimiting tokens.
1374         (rewind_to_char): New function.
1375
1376 2013-03-11  Pedro Alves  <palves@redhat.com>
1377             Jan Kratochvil  <jan.kratochvil@redhat.com>
1378
1379         * configure: Regenerate.
1380         * configure.ac (check dynamic export flag): Link python test with
1381         $PYTHON_LIBS.
1382
1383 2013-03-11  Doug Evans  <dje@google.com>
1384             Keith Seitz  <keiths@redhat.com>
1385
1386         * linespec.c (find_linespec_symbols): Call find_function_symbols
1387         first, and then call lookup_prefix_sym/find_method.
1388
1389 2013-03-11  Pedro Alves  <palves@redhat.com>
1390
1391         * charset.c (convert_between_encodings): Don't cast between
1392         different pointer to pointer types.  Instead, make the 'inp' local
1393         be of the type iconv expects.
1394         (wchar_iterate): Don't cast between different pointer to pointer
1395         types.  Instead, use new pointer local of the type iconv expects.
1396         * target.c (target_read_stralloc, target_fileio_read_stralloc):
1397         Add new local of type char pointer, and use it to get a
1398         char/string view of the byte buffer, instead of casting between
1399         pointer to pointer types.
1400
1401 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1402
1403         * remote.c (remote_set_trace_buffer_size): Move != operator
1404         to the start of next line to fix an ARI warning.
1405
1406 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1407
1408         * NEWS: Add record changes.
1409
1410 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1411
1412         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
1413         the instruction history disassembly.
1414         * disasm.c (dump_insns): Omit the pc prefix, if requested.
1415         * disasm.h (DISASSEMBLY_OMIT_PC): New.
1416
1417 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1418
1419         * Makefile.in (SFILES): Add record-btrace.c
1420         (COMMON_OBS): Add record-btrace.o
1421         * record-btrace.c: New.
1422         * objfiles.c: Include btrace.h.
1423         (free_objfile): call btrace_free_objfile.
1424
1425 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1426
1427         * target.c (target_call_history, target_call_history_from,
1428         target_call_history_range): New.
1429         * target.h (target_ops) <to_call_history, to_call_history_from,
1430         to_call_history_range>: New fields.
1431         (target_call_history, target_call_history_from,
1432         target_call_history_range): New declaration.
1433         * record.c (get_call_history_modifiers, cmd_record_call_history,
1434         record_call_history_size): New.
1435         (_initialize_record): Add the "record function-call-history" command.
1436         Add "set/show record function-call-history-size" commands.
1437         * record.h (record_print_flag): New.
1438
1439 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1440
1441         * target.h (target_ops) <to_insn_history, to_insn_history_from,
1442         to_insn_history_range>: New fields.
1443         (target_insn_history): New.
1444         (target_insn_history_from): New.
1445         (target_insn_history_range): New.
1446         * target.c (target_insn_history): New.
1447         (target_insn_history_from): New.
1448         (target_insn_history_range): New.
1449         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
1450         (record_insn_history_size): New.
1451         (get_insn_number): New.
1452         (get_context_size): New.
1453         (no_chunk): New.
1454         (get_insn_history_modifiers): New.
1455         (cmd_record_insn_history): New.
1456         (_initialize_record): Add "set/show record instruction-history-size"
1457         command. Add "record instruction-history" command.
1458
1459 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1460
1461         * record.h (record_disconnect): New.
1462         (record_detach): New.
1463         (record_mourn_inferior): New.
1464         (record_kill): New.
1465         * record-full.c (record_disconnect, record_detach,
1466         record_mourn_inferior, record_kill): Move to...
1467         * record.c: ...here.
1468         (DEBUG): New.
1469         (record_stop): New.
1470         (record_unpush): New.
1471         (cmd_record_stop): Call record_stop. Replace unpush_target
1472         call with record_unpush call.
1473         (record_disconnect, record_detach): Assert that the target
1474         is of record stratum. Call record_unpush, record_stop, and
1475         DEBUG.
1476         (record_mourn_inferior, record_kill): Assert that the target
1477         is of record stratum. Call record_unpush and DEBUG.
1478
1479 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1480
1481         * record-full.h, record-full.c (record_memory_query): Rename
1482         to ...
1483         (record_full_memory_query): ...this. Update all users.
1484         (record_arch_list_add_reg): Rename to ...
1485         (record_full_arch_list_add_reg): ...this. Update all users.
1486         (record_arch_list_add_mem): Rename to ...
1487         (record_full_arch_list_add_mem): ...this. Update all users.
1488         (record_arch_list_add_end): Rename to ...
1489         (record_full_arch_list_add_end): ...this. Update all users.
1490         (record_gdb_operation_disable_set): Rename to ...
1491         (record_full_gdb_operation_disable_set): ...this.
1492         Update all users.
1493
1494 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1495
1496         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
1497         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
1498         (RECORD_IS_REPLAY): Renamed to ...
1499         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
1500         (RECORD_FILE_MAGIC): Renamed to ...
1501         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
1502         (record_mem_entry): Renamed to ...
1503         (record_full_mem_entry): ... this. Updated all users.
1504         (record_reg_entry): Renamed to ...
1505         (record_full_reg_entry): ... this. Updated all users.
1506         (record_end_entry): Renamed to ...
1507         (record_full_end_entry): ... this. Updated all users.
1508         (record_type) <record_end, record_reg, record_mem>: Renamed
1509         to ...
1510         (record_full_type) <record_full_end, record_full_reg,
1511         record_full_mem>: ... this. Updated all users.
1512         (record_entry): Renamed to ...
1513         (record_full_entry): ... this. Updated all users.
1514         (record_core_buf_entry): Renamed to ...
1515         (record_full_core_buf_entry): ... this. Updated all users.
1516         (record_core_regbuf): Renamed to ...
1517         (record_full_core_regbuf): ... this. Updated all users.
1518         (record_core_start): Renamed to ...
1519         (record_full_core_start): ... this. Updated all users.
1520         (record_core_end): Renamed to ...
1521         (record_full_core_end): ... this. Updated all users.
1522         (record_core_buf_list): Renamed to ...
1523         (record_full_core_buf_list): ... this. Updated all users.
1524         (record_first): Renamed to ...
1525         (record_full_first): ... this. Updated all users.
1526         (record_list): Renamed to ...
1527         (record_full_list): ... this. Updated all users.
1528         (record_arch_list_head): Renamed to ...
1529         (record_full_arch_list_head): ... this. Updated all users.
1530         (record_arch_list_tail): Renamed to ...
1531         (record_full_arch_list_tail): ... this. Updated all users.
1532         (record_stop_at_limit): Renamed to ...
1533         (record_full_stop_at_limit): ... this. Updated all users.
1534         (record_insn_max_num): Renamed to ...
1535         (record_full_insn_max_num): ... this. Updated all users.
1536         (record_insn_num): Renamed to ...
1537         (record_full_insn_num): ... this. Updated all users.
1538         (record_insn_count): Renamed to ...
1539         (record_full_insn_count): ... this. Updated all users.
1540         (record_ops): Renamed to ...
1541         (record_full_ops): ... this. Updated all users.
1542         (record_core_ops): Renamed to ...
1543         (record_full_core_ops): ... this. Updated all users.
1544         (set_record_cmdlist): Renamed to ...
1545         (set_record_full_cmdlist): ... this. Updated all users.
1546         (show_record_cmdlist): Renamed to ...
1547         (show_record_full_cmdlist): ... this. Updated all users.
1548         (record_cmdlist): Renamed to ...
1549         (record_full_cmdlist): ... this. Updated all users.
1550         (record_beneath_to_resume_ops): Renamed to ...
1551         (record_full_beneath_to_resume_ops): ... this. Updated all users.
1552         (record_beneath_to_resume): Renamed to ...
1553         (record_full_beneath_to_resume): ... this. Updated all users.
1554         (record_beneath_to_wait_ops): Renamed to ...
1555         (record_full_beneath_to_wait_ops): ... this. Updated all users.
1556         (record_beneath_to_wait): Renamed to ...
1557         (record_full_beneath_to_wait): ... this. Updated all users.
1558         (record_beneath_to_store_registers_ops): Renamed to ...
1559         (record_full_beneath_to_store_registers_ops): ... this.
1560         Updated all users.
1561         (record_beneath_to_store_registers): Renamed to ...
1562         (record_full_beneath_to_store_registers): ... this.
1563         Updated all users.
1564         (record_beneath_to_xfer_partial_ops): Renamed to ...
1565         (record_full_beneath_to_xfer_partial_ops): ... this.
1566         Updated all users.
1567         (record_beneath_to_xfer_partial): Renamed to ...
1568         (record_full_beneath_to_xfer_partial): ... this.
1569         Updated all users.
1570         (record_beneath_to_insert_breakpoint): Renamed to ...
1571         (record_full_beneath_to_insert_breakpoint): ... this.
1572         Updated all users.
1573         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
1574         (record_full_beneath_to_stopped_by_watchpoint): ... this.
1575         Updated all users.
1576         (record_beneath_to_stopped_data_address): Renamed to ...
1577         (record_full_beneath_to_stopped_data_address): ... this.
1578         Updated all users.
1579         (record_beneath_to_async): Renamed to ...
1580         (record_full_beneath_to_async): ... this. Updated all users.
1581         (record_goto_insn): Renamed to ...
1582         (record_full_goto_insn): ... this. Updated all users.
1583         (record_save): Renamed to ...
1584         (record_full_save): ... this. Updated all users.
1585         (record_reg_alloc): Renamed to ...
1586         (record_full_reg_alloc): ... this. Updated all users.
1587         (record_reg_release): Renamed to ...
1588         (record_full_reg_release): ... this. Updated all users.
1589         (record_mem_alloc): Renamed to ...
1590         (record_full_mem_alloc): ... this. Updated all users.
1591         (record_mem_release): Renamed to ...
1592         (record_full_mem_release): ... this. Updated all users.
1593         (record_end_alloc): Renamed to ...
1594         (record_full_end_alloc): ... this. Updated all users.
1595         (record_end_release): Renamed to ...
1596         (record_full_end_release): ... this. Updated all users.
1597         (record_entry_release): Renamed to ...
1598         (record_full_entry_release): ... this. Updated all users.
1599         (record_list_release): Renamed to ...
1600         (record_full_list_release): ... this. Updated all users.
1601         (record_list_release_following): Renamed to ...
1602         (record_full_list_release_following): ... this.
1603         Updated all users.
1604         (record_list_release_first): Renamed to ...
1605         (record_full_list_release_first): ... this. Updated all users.
1606         (record_arch_list_add): Renamed to ...
1607         (record_full_arch_list_add): ... this. Updated all users.
1608         (record_get_loc): Renamed to ...
1609         (record_full_get_loc): ... this. Updated all users.
1610         (record_check_insn_num): Renamed to ...
1611         (record_full_check_insn_num): ... this. Updated all users.
1612         (record_arch_list_cleanups): Renamed to ...
1613         (record_full_arch_list_cleanups): ... this. Updated all users.
1614         (record_message): Renamed to ...
1615         (record_full_message): ... this. Updated all users.
1616         (record_message_wrapper): Renamed to ...
1617         (record_full_message_wrapper): ... this. Updated all users.
1618         (record_message_wrapper_safe): Renamed to ...
1619         (record_full_message_wrapper_safe): ... this. Updated all users.
1620         (record_gdb_operation_disable): Renamed to ...
1621         (record_full_gdb_operation_disable): ... this. Updated all users.
1622         (record_hw_watchpoint): Renamed to ...
1623         (record_full_hw_watchpoint): ... this. Updated all users.
1624         (record_exec_insn): Renamed to ...
1625         (record_full_exec_insn): ... this. Updated all users.
1626         (record_restore): Renamed to ...
1627         (record_full_restore): ... this. Updated all users.
1628         (record_async_inferior_event_token): Renamed to ...
1629         (record_full_async_inferior_event_token): ... this.
1630         Updated all users.
1631         (record_async_inferior_event_handler): Renamed to ...
1632         (record_full_async_inferior_event_handler): ... this.
1633         Updated all users.
1634         (record_core_open_1): Renamed to ...
1635         (record_full_core_open_1): ... this. Updated all users.
1636         (record_open_1): Renamed to ...
1637         (record_full_open_1): ... this. Updated all users.
1638         (record_open): Renamed to ...
1639         (record_full_open): ... this. Updated all users.
1640         (record_close): Renamed to ...
1641         (record_full_close): ... this. Updated all users.
1642         (record_resume_step): Renamed to ...
1643         (record_full_resume_step): ... this. Updated all users.
1644         (record_resumed): Renamed to ...
1645         (record_full_resumed): ... this. Updated all users.
1646         (record_execution_dir): Renamed to ...
1647         (record_full_execution_dir): ... this. Updated all users.
1648         (record_resume): Renamed to ...
1649         (record_full_resume): ... this. Updated all users.
1650         (record_get_sig): Renamed to ...
1651         (record_full_get_sig): ... this. Updated all users.
1652         (record_sig_handler): Renamed to ...
1653         (record_full_sig_handler): ... this. Updated all users.
1654         (record_wait_cleanups): Renamed to ...
1655         (record_full_wait_cleanups): ... this. Updated all users.
1656         (record_wait_1): Renamed to ...
1657         (record_full_wait_1): ... this. Updated all users.
1658         (record_wait): Renamed to ...
1659         (record_full_wait): ... this. Updated all users.
1660         (record_stopped_by_watchpoint): Renamed to ...
1661         (record_full_stopped_by_watchpoint): ... this. Updated all users.
1662         (record_disconnect): Renamed to ...
1663         (record_full_disconnect): ... this. Updated all users.
1664         (record_detach): Renamed to ...
1665         (record_full_detach): ... this. Updated all users.
1666         (record_mourn_inferior): Renamed to ...
1667         (record_full_mourn_inferior): ... this. Updated all users.
1668         (record_kill): Renamed to ...
1669         (record_full_kill): ... this. Updated all users.
1670         (record_stopped_data_address): Renamed to ...
1671         (record_full_stopped_data_address): ... this. Updated all users.
1672         (record_registers_change): Renamed to ...
1673         (record_full_registers_change): ... this. Updated all users.
1674         (record_store_registers): Renamed to ...
1675         (record_full_store_registers): ... this. Updated all users.
1676         (record_xfer_partial): Renamed to ...
1677         (record_full_xfer_partial): ... this. Updated all users.
1678         (record_breakpoint): Renamed to ...
1679         (record_full_breakpoint): ... this. Updated all users.
1680         (record_breakpoint_p): Renamed to ...
1681         (record_full_breakpoint_p): ... this. Updated all users.
1682         (record_breakpoints): Renamed to ...
1683         (record_full_breakpoints): ... this. Updated all users.
1684         (record_sync_record_breakpoints): Renamed to ...
1685         (record_full_sync_record_breakpoints): ... this.
1686         Updated all users.
1687         (record_init_record_breakpoints): Renamed to ...
1688         (record_full_init_record_breakpoints): ... this.
1689         Updated all users.
1690         (record_insert_breakpoint): Renamed to ...
1691         (record_full_insert_breakpoint): ... this. Updated all users.
1692         (record_remove_breakpoint): Renamed to ...
1693         (record_full_remove_breakpoint): ... this. Updated all users.
1694         (record_can_execute_reverse): Renamed to ...
1695         (record_full_can_execute_reverse): ... this. Updated all users.
1696         (record_get_bookmark): Renamed to ...
1697         (record_full_get_bookmark): ... this. Updated all users.
1698         (record_goto_bookmark): Renamed to ...
1699         (record_full_goto_bookmark): ... this. Updated all users.
1700         (record_async): Renamed to ...
1701         (record_full_async): ... this. Updated all users.
1702         (record_can_async_p): Renamed to ...
1703         (record_full_can_async_p): ... this. Updated all users.
1704         (record_is_async_p): Renamed to ...
1705         (record_full_is_async_p): ... this. Updated all users.
1706         (record_execution_direction): Renamed to ...
1707         (record_full_execution_direction): ... this. Updated all users.
1708         (record_info): Renamed to ...
1709         (record_full_info): ... this. Updated all users.
1710         (record_delete): Renamed to ...
1711         (record_full_delete): ... this. Updated all users.
1712         (record_is_replaying): Renamed to ...
1713         (record_full_is_replaying): ... this. Updated all users.
1714         (record_goto_entry): Renamed to ...
1715         (record_full_goto_entry): ... this. Updated all users.
1716         (record_goto_begin): Renamed to ...
1717         (record_full_goto_begin): ... this. Updated all users.
1718         (record_goto_end): Renamed to ...
1719         (record_full_goto_end): ... this. Updated all users.
1720         (record_goto): Renamed to ...
1721         (record_full_goto): ... this. Updated all users.
1722         (init_record_ops): Renamed to ...
1723         (init_record_full_ops): ... this. Updated all users.
1724         (record_core_resume): Renamed to ...
1725         (record_full_core_resume): ... this. Updated all users.
1726         (record_core_kill): Renamed to ...
1727         (record_full_core_kill): ... this. Updated all users.
1728         (record_core_fetch_registers): Renamed to ...
1729         (record_full_core_fetch_registers): ... this. Updated all users.
1730         (record_core_prepare_to_store): Renamed to ...
1731         (record_full_core_prepare_to_store): ... this. Updated all users.
1732         (record_core_store_registers): Renamed to ...
1733         (record_full_core_store_registers): ... this. Updated all users.
1734         (record_core_xfer_partial): Renamed to ...
1735         (record_full_core_xfer_partial): ... this. Updated all users.
1736         (record_core_insert_breakpoint): Renamed to ...
1737         (record_full_core_insert_breakpoint): ... this. Updated all users.
1738         (record_core_remove_breakpoint): Renamed to ...
1739         (record_full_core_remove_breakpoint): ... this. Updated all users.
1740         (record_core_has_execution): Renamed to ...
1741         (record_full_core_has_execution): ... this. Updated all users.
1742         (init_record_core_ops): Renamed to ...
1743         (init_record_full_core_ops): ... this. Updated all users.
1744         (cmd_record_restore): Renamed to ...
1745         (cmd_record_full_restore): ... this. Updated all users.
1746         (record_save_cleanups): Renamed to ...
1747         (record_full_save_cleanups): ... this. Updated all users.
1748         (cmd_record_start): Renamed to ...
1749         (cmd_record_full_start): ... this. Updated all users.
1750         (set_record_insn_max_num): Renamed to ...
1751         (set_record_full_insn_max_num): ... this. Updated all users.
1752         (set_record_command): Renamed to ...
1753         (set_record_full_command): ... this. Updated all users.
1754         (show_record_command): Renamed to ...
1755         (show_record_full_command): ... this. Updated all users.
1756         (_initialize_record): Renamed to ...
1757         (_initialize_record_full): ... this. Updated all users.
1758
1759 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1760
1761         * record.h: Split into this and ...
1762         * record-full.h: ... this.
1763         * record.c: Split into this and ...
1764         * record-full.c: ... this.
1765         * target.h (target_ops): Add new fields to_info_record,
1766         to_save_record, to_delete_record, to_record_is_replaying,
1767         to_goto_record_begin, to_goto_record_end, to_goto_record.
1768         (target_info_record): New.
1769         (target_save_record): New.
1770         (target_supports_delete_record): New.
1771         (target_delete_record): New.
1772         (target_record_is_replaying): New.
1773         (target_goto_record_begin): New.
1774         (target_goto_record_end): New.
1775         (target_goto_record): New.
1776         * target.c (target_info_record): New.
1777         (target_save_record): New.
1778         (target_supports_delete_record): New.
1779         (target_delete_record): New.
1780         (target_record_is_replaying): New.
1781         (target_goto_record_begin): New.
1782         (target_goto_record_end): New.
1783         (target_goto_record): New.
1784         * record.h: Declare struct cmd_list_element.
1785         (record_cmdlist): New declaration.
1786         (set_record_cmdlist): New declaration.
1787         (show_record_cmdlist): New declaration.
1788         (info_record_cmdlist): New declaration.
1789         (cmd_record_goto): New declaration.
1790         * record.c: Remove unnecessary includes.
1791         Include inferior.h.
1792         (cmd_record_goto): Remove declaration.
1793         (record_cmdlist): Now extern. Initialize.
1794         (set_record_cmdlist): Now extern. Initialize.
1795         (show_record_cmdlist): Now extern. Initialize.
1796         (info_record_cmdlist): Now extern. Initialize.
1797         (find_record_target): New.
1798         (require_record_target): New.
1799         (cmd_record_start): Update.
1800         (cmd_record_delete): Remove target-specific code.
1801         Call target_delete_record.
1802         (cmd_record_stop): Unpush any record target.
1803         (set_record_insn_max_num): Move to record-full.c
1804         (set_record_command): Add comment.
1805         (show_record_command): Add comment.
1806         (info_record_command): Update comment.
1807         Remove target-specific code.
1808         Call the record target's to_info_record.
1809         (cmd_record_start): New.
1810         (cmd_record_goto): Now extern.
1811         Remove target-specific code.
1812         Call target_goto_begin,  target_goto_end, or target_goto.
1813         (_initialize_record): Move record target ops initialization to
1814         record-full.c.
1815         Change "record" command help text.
1816         Move "record restore", "record set", and "record show" commands to
1817         record-full.c.
1818         * Makefile.in (SFILES): Add record-full.c.
1819         (HFILES_NO_SRCDIR): Add record-full.h.
1820         (COMMON_OBS): Add record-full.o.
1821         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
1822         * arm-tdep.c: Include record-full.h.
1823         * i386-linux-tdep.c: Include record-full.h instead of record.h.
1824         * i386-tdep.c: Include record-full.h.
1825         * infrun.c: Include record-full.h.
1826         * linux-record.c: Include record-full.h.
1827         * moxie-tdep.c: Include record-full.h.
1828         * record-full.c: Include record-full.h.
1829         Change module comment.
1830         (set_record_full_cmdlist): New.
1831         (show_record_full_cmdlist): New.
1832         (record_full_cmdlist): New.
1833         (record_goto_insn): New declaration.
1834         (record_save): New declaration.
1835         (record_check_insn_num): Change query string.
1836         (record_info): New.
1837         (record_delete): New.
1838         (record_is_replaying): New.
1839         (record_goto_entry): New.
1840         (record_goto_begin): New.
1841         (record_goto_end): New.
1842         (record_goto): New.
1843         (init_record_ops): Update.
1844         (init_record_core_ops): Update.
1845         (cmd_record_save): Rename to record_save. Remove target and arg checks.
1846         (cmd_record_start): New.
1847         (set_record_insn_max_num): Moved from record.c
1848         (set_record_full_command): New.
1849         (show_record_full_command): New.
1850         (_initialize_record_full): New.
1851
1852 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1853
1854         * target.h (add_deprecated_target_alias): New.
1855         * target.c (add_deprecated_target_alias): New.
1856
1857 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1858
1859         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
1860         and signal.h.
1861         (linux_supports_btrace): Add kernel and
1862         cpuid check.
1863         (kernel_supports_btrace): New function.
1864         (cpu_supports_btrace): New function.
1865         (intel_supports_btrace): New function.
1866
1867 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1868
1869         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
1870         * remote.c: Include btrace.h.
1871         (struct btrace_target_info): New struct.
1872         (remote_supports_btrace): New function.
1873         (send_Qbtrace): New function.
1874         (remote_enable_btrace): New function.
1875         (remote_disable_btrace): New function.
1876         (remote_teardown_btrace): New function.
1877         (remote_read_btrace): New function.
1878         (init_remote_ops): Add btrace ops.
1879         (enum <unnamed>): Add btrace packets.
1880         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
1881         (_initialize_remote): Add packet configuration for branch tracing.
1882
1883 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1884
1885         * features/btrace.dtd: New file.
1886         * Makefile.in (XMLFILES): Add btrace.dtd.
1887         * btrace.h (parse_xml_btrace): New declaration.
1888         * btrace.c: Include xml-support.h.
1889         (parse_xml_btrace): New function.
1890         (parse_xml_btrace_block): New function.
1891         (block_attributes): New struct.
1892         (btrace_attributes): New struct.
1893         (btrace_children): New struct.
1894         (btrace_elements): New struct.
1895
1896 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1897
1898         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
1899         (amd64_linux_enable_btrace): New.
1900         (amd64_linux_disable_btrace): New.
1901         (amd64_linux_teardown_btrace): New.
1902         (_initialize_amd64_linux_nat): Initialize btrace ops.
1903         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
1904         (i386_linux_enable_btrace): New.
1905         (i386_linux_disable_btrace): New.
1906         (i386_linux_teardown_btrace): New.
1907         (_initialize_i386_linux_nat): Initialize btrace ops.
1908         * config/i386/linux.mh: Add linux-btrace.o.
1909         * config/i386/linux64.mh: Add linux-btrace.o.
1910
1911 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1912
1913         * common/linux_btrace.h: New file.
1914         * common/linux_btrace.c: New file.
1915         * Makefile.in (SFILES): Add btrace.c.
1916         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
1917         (COMMON_OBS): Add btrace.o.
1918         (linux-btrace.o): New rule.
1919
1920 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
1921
1922         * target.h: Include btrace.h.
1923         (struct target_ops) <to_supports_btrace, to_enable_btrace,
1924         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
1925         * target.c (target_supports_btrace): New function.
1926         (target_enable_btrace): New function.
1927         (target_disable_btrace): New function.
1928         (target_teardown_btrace): New function.
1929         (target_read_btrace): New function.
1930         * btrace.h: New file.
1931         * btrace.c: New file.
1932         * Makefile.in: Add btrace.c.
1933         * gdbthread.h: Include btrace.h.
1934         (struct thread_info): Add btrace field.
1935         * thread.c: Include btrace.h.
1936         (clear_thread_inferior_resources): Call target_teardown_btrace.
1937         * common/btrace-common.h: New file.
1938
1939 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1940
1941         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
1942         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
1943         kill_status to outer block.
1944
1945 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1946
1947         Fix entry-values if the callee called a noreturn function.
1948         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
1949         get_frame_address_in_block.  Add new comment.
1950
1951 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1952
1953         Fix entry-values in C++ across CUs.
1954         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
1955         lookup_minimal_symbol.  Add a comment.
1956         * dwarf2read.c
1957         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
1958         DW_AT_linkage_name.
1959
1960 2013-03-08  Yao Qi  <yao@codesourcery.com>
1961
1962         * tracepoint.c (_initialize_tracepoint): Indent the code.
1963
1964 2013-03-08  Pedro Alves  <palves@redhat.com>
1965
1966         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
1967         (parse_find_args, find_command): Change type of pattern buffer
1968         locals to 'gdb_byte *'.
1969
1970 2013-03-08  Stan Shebs  <stan@codesourcery.com>
1971             Hafiz Abid Qadeer  <abidh@codesourcery.com>
1972
1973         * NEWS: Mention set and show trace-buffer-size commands.
1974         Mention new packet.
1975         * target.h (struct target_ops): New method
1976         to_set_trace_buffer_size.
1977         (target_set_trace_buffer_size): New macro.
1978         * target.c (update_current_target): Set up new method.
1979         * tracepoint.c (trace_buffer_size): New global.
1980         (start_tracing): Send it to the target.
1981         (set_trace_buffer_size): New function.
1982         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
1983         * remote.c (remote_set_trace_buffer_size): New function.
1984         (_initialize_remote): Use it.
1985         (QTBuffer:size) New remote command.
1986         (PACKET_QTBuffer_size): New enum.
1987         (remote_protocol_features): Add an entry for
1988         PACKET_QTBuffer_size.
1989
1990 2013-03-08  Tom Tromey  <tromey@redhat.com>
1991
1992         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
1993         variable.
1994
1995 2013-03-07  Pedro Alves  <palves@redhat.com>
1996
1997         * target.c (target_read_stralloc, target_fileio_read_alloc):
1998         *Cast pointer to 'gdb_byte *' in target call.
1999
2000 2013-03-07  Pedro Alves  <palves@redhat.com>
2001
2002         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
2003         call.
2004
2005 2013-03-07  Keith Seitz  <keiths@redhat.com>
2006
2007         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
2008         (trace_pass_command): Likewise.
2009         * cli/cli-cmds.c: Include cli/cli-utils.h.
2010         (source_command): Use skip-spaces.
2011         (disassemble_command): Likewise.
2012         * findcmd.c: Include cli/cli-utils.h.
2013         (parse_find_args): Use skip_spaces.
2014         * go32-nat.c: Include cli/cli-utils.h.
2015         (go32_sldt): Use skip_spaces.
2016         (go32_sgdt): Likewise.
2017         (go32_sidt): Likewise.
2018         (go32_pde): Likewise.
2019         (go32_pte): Likewise.
2020         (go32_pte_for_address): Likewise.
2021         * infcmd.c: Include cli/cli-utils.h.
2022         (registers_info): Use skip_spaces.
2023         * linux-tdep.c (read_mapping): Use skip_spaces_const.
2024         (linux_info_proc): Likewise.
2025         * linux-thread-db.c: Include cli/cli-utils.h.
2026         (info_auto_load_libthread_db): Use skip_spaces_const.
2027         * m32r-rom.c: Include cli/cli-utils.h.
2028         (m32r_upload_command): Use skip_spaces.
2029         * maint.c: Include cli/cli-utils.h.
2030         (maintenance_translate_address): Use skip_spaces.
2031         * mi/mi-parse.c: Include cli/cli-utils.h.
2032         (mi_parse_argv): Use skip_spaces.
2033         (mi_parse): Likewise.
2034         * minsyms.c: Include cli/cli-utils.h.
2035         (msymbol_hash_iw): Use skip_spaces_const.
2036         * objc-lang.c: Include cli/cli-utils.h.
2037         (parse_selector): Use skip_spaces.
2038         (parse_method): Likewise.
2039         * python/python.c: Include cli/cli-utils.h.
2040         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
2041         (python_command)[HAVE_PYTHON]: Likewise.
2042         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
2043         * remote-m32r-sdi.c: Include cli/cli-utils.h.
2044         (m32r_load): Use skip_spaces.
2045         * serial.c: Include cli/cli-utils.h.
2046         (serial_open): Use skip_spaces_const.
2047         * stack.c: Include cli/cli-utils.h.
2048         (parse_frame_specification_1): Use skip_spaces_const.
2049         * symfile.c: Include cli/cli-utils.h.
2050         (set_ext_lang_command): Use skip_spaces.
2051         * symtab.c: Include cli/cli-utils.h.
2052         (rbreak_command): Use skip_spaces.
2053         * thread.c (thread_name_command): Use skip_spaces.
2054         * tracepoint.c (validate_actionline): Use skip_spaces.
2055         (encode_actions_1): Likewise.
2056         (trace_find_range_command): Likewise.
2057         (trace_find_outside_command): Likewise.
2058         (trace_dump_actions): Likewise.
2059
2060 2013-03-07  Pedro Alves  <palves@redhat.com>
2061
2062         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
2063         * expprint.c (print_subexp_standard): Likewise.
2064         * utils.c (host_char_to_target): Likewise.
2065         * valprint.c (generic_emit_char, generic_printstr): Likewise.
2066         * varobj.c (value_get_print_value): Change type of local to char*.
2067         Cast it gdb_byte * in call to language printer.
2068
2069 2013-03-07  Pedro Alves  <palves@redhat.com>
2070
2071         * charset.c (struct wchar_iterator) <input>: Change type to 'const
2072         gdb_byte *'.
2073         (make_wchar_iterator): Remove cast to char*.
2074         (wchar_iterate): Change type of local.
2075
2076 2013-03-07  Pedro Alves  <palves@redhat.com>
2077
2078         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
2079         for 'regcache->register_status'.
2080
2081 2013-03-07  Pedro Alves  <palves@redhat.com>
2082
2083         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
2084         int.
2085
2086 2013-03-07  Pedro Alves  <palves@redhat.com>
2087
2088         * stap-probe.c (handle_stap_probe): Add cast to char*.
2089
2090 2013-03-07  Pedro Alves  <palves@redhat.com>
2091
2092         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
2093         RECORD_MSGRCV>: Pass a signed variable to
2094         regcache_raw_read_signed, instead of an unsigned one.
2095
2096 2013-03-07  Pedro Alves  <palves@redhat.com>
2097
2098         * remote-notif.c (notif_debug): Change type to int.
2099         * remote-notif.h (notif_debug): Likewise.
2100
2101 2013-03-07  Pedro Alves  <palves@redhat.com>
2102
2103         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
2104
2105 2013-03-07  Pedro Alves  <palves@redhat.com>
2106
2107         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
2108         * remote.h (hex2bin, bin2hex): ... here.
2109         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
2110
2111 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
2112
2113         * utils.c (initialize_utils): Improve doc strings of "set/show
2114         width", "set/show height", and "set/show pagination".
2115
2116 2013-03-06  Keith Seitz  <keiths@redhat.com>
2117
2118         * ax-gdb.c (gen_printf): Make FORMAT const.
2119         * ax-gdb.h (gen_printf): Likewise.
2120         * ax-general.c (ax_string): Make STR const.
2121         * ax.h (ax_string): Likewise.
2122
2123 2013-03-06  Doug Evans  <dje@google.com>
2124
2125         * elfread.c (elf_symfile_read): Move debugging printf to more
2126         logical location.
2127
2128 2013-03-06  Pedro Alves  <palves@redhat.com>
2129
2130         * python/py-utils.c (target_string_to_unicode): Delete function.
2131         * python/python-internal.h (target_string_to_unicode): Delete
2132         declaration.
2133
2134 2013-03-06  Pierre Muller  <muller@sourceware.org>
2135
2136         * linespec.c (get_current_search_block): ARI fix, use (void)
2137         for empty parameter list.
2138
2139 2013-03-05  Doug Evans  <dje@google.com>
2140
2141         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
2142         of old ada_lookup_symbol_list.  In !full_search case, don't
2143         search superblocks.
2144         (ada_lookup_symbol_list): Delete arg full_search, all callers
2145         updated.  Call ada_lookup_symbol_list_worker.
2146         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
2147         * ada-lang.h (ada_lookup_symbol_list): Update.
2148         * language.h (language_defn): Update comment for
2149         la_iterate_over_symbols.
2150         * linespec.c (iterate_over_file_blocks): New function.
2151         (iterate_over_all_matching_symtabs): Call it.
2152         (lookup_prefix_sym): Ditto.
2153         (get_current_search_block): New function.
2154         (get_search_block): Delete.
2155         (find_label_symbols): Call get_current_search_block.
2156         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
2157         * symtab.c (iterate_over_symbols): Don't search superblocks.
2158
2159 2013-03-05  Yao Qi  <yao@codesourcery.com>
2160
2161         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
2162         parameter VAR's type from "unsigned int" to "int".
2163         * command.h (var_zuinteger_unlimited): Update its comments.
2164         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
2165
2166 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
2167
2168         * NEWS: Mention new target x86_64-*-cygwin*.
2169
2170 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
2171
2172         * configure.host: Add x86_64-*-cygwin* as host.
2173         * configure.tgt: Add x86_64-*-cygwin* as target.
2174         * config/i386/cygwin64.mh: New file.
2175
2176 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2177
2178         * linespec.c (decode_line_2): Fix duplicate request off by two message.
2179
2180 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2181
2182         * linespec.c (struct linespec_canonical_name): New.
2183         (struct linespec_state): Change canonical_names type to it.
2184         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
2185         xrealloc element size.  Initialize the different CANONICAL fields.
2186         (canonical_to_fullform): New.
2187         (filter_results): Use it.  Add variables canonical, fullform and
2188         cleanup.
2189         (struct decode_line_2_item, decode_line_2_compare_items): New.
2190         (decode_line_2): Remove variables iter and item_names, add variables
2191         items and items_count.  Modify the code for these new variables.
2192
2193 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
2194
2195         * coff-pe-read.c (read_pe_exported_syms): Don't return without
2196         calling do_cleanup.
2197
2198 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
2199
2200         * tracepoint.c (build_traceframe_info): Add code for byte order.
2201
2202 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
2203
2204         * v850-tdep.c: (v850e2_register_name): Revise system register
2205         names to match current V850E2M architecture specifications.
2206         Update register number enum comments too.
2207         
2208 2013-03-01  Jiong Wang  <jiwang@tilera.com>
2209             Pedro Alves  <palves@redhat.com>
2210
2211         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
2212         to END_ADDR.
2213         (tilegx_skip_prologue): Limit prologue analysis to section end.
2214
2215 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2216
2217         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
2218         use it.
2219
2220 2013-03-01  Pedro Alves  <palves@redhat.com>
2221
2222         Use gdb_byte for bytes from the program being debugged.
2223
2224         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
2225         Change type of local 'buf' to gdb_byte.
2226         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
2227         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2228         * cris-tdep.c (cris_sigcontext_addr)
2229         (cris_sigtramp_frame_unwind_cache): Likewise.
2230         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
2231         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
2232         Likewise.
2233         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
2234         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
2235         (hppa32_hpux_search_dummy_call_sequence)
2236         (hppa_hpux_supply_save_state): Likewise.
2237         * hppa-linux-tdep.c (insns_match_pattern)
2238         (hppa_linux_find_global_pointer): Likewise.
2239         * hppa-tdep.c (hppa_in_function_epilogue_p)
2240         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
2241         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
2242         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
2243         (i386fbsd_collect_uthread): Likewise.
2244         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
2245         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
2246         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
2247         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
2248         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
2249         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
2250         (ia64_libunwind_frame_prev_register)
2251         (ia64_libunwind_sigtramp_frame_this_id)
2252         (ia64_find_global_pointer_from_dynamic_section)
2253         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
2254         (ia64_unwind_pc): Likewise.
2255         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
2256         * m68hc11-tdep.c (m68hc11_push_dummy_call)
2257         (m68hc11_extract_return_value): Likewise.
2258         * m68klinux-nat.c (fetch_register, store_register): Likewise.
2259         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
2260         (mep_get_insn, mep_push_dummy_call): Likewise.
2261         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2262         (mips_linux_in_dynsym_stub): Likewise.
2263         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
2264         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
2265         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
2266         to gdb_byte.
2267         * remote-mips.c (mips_set_register): Likewise.
2268         * remote-sim.c (gdbsim_fetch_register): Likewise.
2269         * score-tdep.c (score7_fetch_inst): Change type of parameter
2270         'memblock' and local 'buf' to gdb_byte.
2271         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
2272         Change type of local 'buf' to gdb_byte.  Adjust.
2273         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
2274         to gdb_byte**.
2275         (score7_analyze_prologue): Change type of 'memblock' and
2276         'memblock_ptr' locals to gdb_byte*.
2277         * sh64-tdep.c (sh64_extract_return_value)
2278         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
2279         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
2280         * solib-pa64.c (pa64_solib_create_inferior_hook)
2281         (pa64_open_symbol_file_object): Remove local 'buf'.
2282         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
2283         (som_open_symbol_file_object): Likewise.
2284         * solib-spu.c (spu_current_sos): Likewise.
2285         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2286         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
2287         (spu_store_registers): Likewise.
2288         * target.c (debug_print_register): Likewise.
2289         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
2290         * xstormy16-tdep.c (xstormy16_store_return_value)
2291         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
2292         (xstormy16_find_jmp_table_entry): Likewise.
2293
2294 2013-03-01  Jiong Wang  <jiwang@tilera.com>
2295
2296         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
2297         (tilegx_gdbarch_init): Install it.
2298
2299 2013-02-28  Tom Tromey  <tromey@redhat.com>
2300
2301         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
2302         PyLong_Check.
2303
2304 2013-02-28  Doug Evans  <dje@google.com>
2305
2306         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
2307         * python/python.c (gdbpy_find_pc_line): Ditto.
2308
2309 2013-02-28  Tom Tromey  <tromey@redhat.com>
2310
2311         * contrib/excheck.py: New file.
2312         * contrib/exsummary.py: New file.
2313         * contrib/gcc-with-excheck: New file.
2314
2315 2013-02-28  Tom Tromey  <tromey@redhat.com>
2316
2317         * python/python.c (gdbpy_print_stack): Call begin_line and
2318         fprintf_filtered inside TRY_CATCH.
2319
2320 2013-02-28  Tom Tromey  <tromey@redhat.com>
2321
2322         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
2323         inside TRY_CATCH.
2324
2325 2013-02-28  Tom Tromey  <tromey@redhat.com>
2326
2327         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
2328         frame_object_to_frame_info inside TRY_CATCH.
2329
2330 2013-02-28  Tom Tromey  <tromey@redhat.com>
2331
2332         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
2333         TRY_CATCH.
2334
2335 2013-02-28  Tom Tromey  <tromey@redhat.com>
2336
2337         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
2338
2339 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
2340
2341         * windows-nat.c: Throughout, fix format strings and casts of
2342         printf-like functions to avoid type related warnings on all
2343         platforms.
2344         (handle_output_debug_string): Fetch context information address
2345         from debug string using string_to_core_addr.
2346
2347 2013-02-27  Jiong Wang  <jiwang@tilera.com>
2348
2349         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
2350         * regformats/reg-tilegx32.dat: New.
2351
2352 2013-02-27  Jiong Wang  <jiwang@tilera.com>
2353
2354         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
2355
2356 2013-02-27  Jiong Wang  <jiwang@tilera.com>
2357
2358         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
2359
2360 2013-02-27  Yao Qi  <yao@codesourcery.com>
2361             Pedro Alves  <palves@redhat.com>
2362
2363         * tracepoint.c (tfile_trace_find): For tfind
2364         pc/tp/range/outside, look for the next trace frame instead of
2365         always starting from frame 0.
2366
2367 2013-02-26  Anthony Green  <green@moxielogic.com>
2368
2369         * configure.tgt: Add support for moxie-*-rtems* target.
2370
2371 2013-02-25  Pedro Alves  <palves@redhat.com>
2372
2373         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
2374         warning text.
2375
2376 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
2377
2378         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
2379         if $fp is used as the virtual frame pointer.
2380
2381 2013-02-23  Alan Modra  <amodra@gmail.com>
2382
2383         * elfread.c (elf_symtab_read): Do not use udata.p here to find
2384         symbol size.
2385         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
2386         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
2387         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
2388         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
2389
2390 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2391
2392         Code cleanup.
2393         * elfread.c (build_id_bfd_get): Make the return type const.
2394         (build_id_verify): Make the check parameter const.
2395         (build_id_to_debug_filename): Make the build_id parameter and variable
2396         data const.
2397         (find_separate_debug_file_by_buildid): Make the variable build_id const.
2398
2399 2013-02-21  Alan Modra  <amodra@gmail.com>
2400
2401         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
2402
2403 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
2404
2405         Add a new method 'disassemble' to gdb.Architecture class.
2406         * python/py-arch.c (archpy_disassmble): Implementation of the
2407         new method gdb.Architecture.disassemble.
2408         (arch_object_methods): Add entry for the new method.
2409
2410 2013-02-20  Jiong Wang  <jiwang@tilera.com>
2411
2412         * MAINTAINERS (Write After Approval): Add myself to the list.
2413
2414 2013-02-19  Pedro Alves  <palves@redhat.com>
2415
2416         Garbage collect 'struct monitor_ops'::load_routine.
2417
2418         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
2419         * monitor.c (monitor_load): No longer call
2420         current_monitor->load_routine.
2421         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
2422         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
2423         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
2424
2425 2013-02-19  Pedro Alves  <palves@redhat.com>
2426
2427         PR gdb/15161
2428
2429         Harmonize with generic_load.
2430
2431         * monitor.c: Include "readline/readline.h".
2432         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
2433         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
2434         long/strtol for the 'load_offset' local.  Error out if no argument
2435         is given or if too many arguments are given.  Tilde expand the
2436         passed in file name.
2437
2438 2013-02-19  Kai Tietz  <ktietz@redhat.com>
2439
2440         PR gdb/15161
2441         * symfile.c (load_section_data): Change type of load_offset
2442         to CORE_ADDR.
2443         (generic_load): User strtoulst instead of strtoul for conversion
2444         of load_offset.
2445
2446 2013-02-19  Jiong Wang  <jiwang@tilera.com>
2447
2448         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
2449          for return address, "lr" register, saved on stack.
2450         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
2451         after we invoke tilegx_analyze_prologue.
2452
2453 2013-02-19  Jiong Wang  <jiwang@tilera.com>
2454
2455         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
2456
2457 2013-02-19  Jiong Wang  <jiwang@tilera.com>
2458
2459         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
2460
2461 2013-02-19  Jiong Wang  <jiwang@tilera.com>
2462
2463         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
2464         (tilegx_write_pc): New function.
2465         (tilegx_cannot_reference_register): Return zero if REGNO
2466         is TILEGX_FAULTNUM_REGNUM.
2467         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
2468         (tilegx_register_name): Add handling of "faultnum" register.
2469         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
2470         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
2471         handling of TILEGX_FAULTNUM_REGNUM.
2472         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
2473
2474 2013-02-19  Jiong Wang  <jiwang@tilera.com>
2475
2476         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
2477         should be aligned to 64bit.
2478
2479 2013-02-19  Kai Tietz  <ktietz@redhat.com>
2480
2481         * windows-nat.c (windows_xfer_memory): Fix debug-output
2482         for LLP64.
2483
2484 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
2485
2486         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
2487         Don't check DSP register number if HAVE_DSP is not set.
2488
2489 2013-02-19  Alan Modra  <amodra@gmail.com>
2490
2491         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
2492         throughout file instead.
2493         (build_id_bfd_get): Update to use new elf_tdata build_id field.
2494         Don't xmalloc return value.
2495         (build_id_verify): Similarly.  Don't xfree.
2496         (build_id_to_debug_filename): Update.
2497         (find_separate_debug_file_by_buildid): Update, don't xfree.
2498
2499 2013-02-18  Tom Tromey  <tromey@redhat.com>
2500
2501         PR gdb/15102:
2502         * dwarf2read.c (read_subrange_type): Use result of
2503         'check_typedef'.
2504
2505 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
2506
2507         * frame.c: Remove one extra white space after #include
2508         directive.
2509
2510 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2511
2512         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
2513
2514 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2515
2516         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
2517         and dir commands into an if block.
2518
2519 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
2520
2521         * python/py-breakpoint (struct pybp_code):  Use int instead of
2522         enum type_code.
2523
2524 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
2525             Hafiz Abid Qadeer  <abidh@codesourcery.com>
2526
2527         * NEWS: Mention new field "trace-file".
2528         * tracepoint.c (trace_status_mi): Output "trace-file" field.
2529         (tfile_open): Record the trace file's filename in the trace
2530         status.
2531         (tfile_files_info): Mention the name of the trace file.
2532         Check the "filename" field explicitely.
2533         (trace_status_command): Explicitely check "filename" field.
2534         (trace_find_command): Ditto.
2535         (trace_find_pc_command): Ditto.
2536         (trace_find_tracepoint_command): Ditto.
2537         (trace_find_line_command): Ditto.
2538         (trace_find_range_command): Ditto.
2539         (trace_find_outside_command): Ditto.
2540         * tracepoint.h (struct trace_status) <from_file>: Rename it
2541         to "filename" and make it hold the trace file's filename
2542         instead of a boolean.
2543         * remote.c (remote_get_trace_status): Initialize "filename"
2544         field with NULL instead of 0.
2545
2546 2013-02-15  Yao Qi  <yao@codesourcery.com>
2547
2548         * remote.c: Fix a typo.
2549
2550 2013-02-14  Pierre Muller  <muller@sourceware.org>
2551
2552         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
2553
2554 2013-02-14  Pedro Alves  <palves@redhat.com>
2555
2556         * utils.c (savestring): Don't #undef it.  Move function to
2557         common/common-utils.c.
2558         * common/common-utils.c: Include gdb_string.h.
2559         (savestring): Move here from utils.c.
2560         * common/common-utils.h (savestring): Declare.
2561
2562 2013-02-14  Pedro Alves  <palves@redhat.com>
2563
2564         * utils.c (savestring): Rename parameter 'size' to 'len'.
2565
2566 2013-02-14  Pedro Alves  <palves@redhat.com>
2567             Yufeng Zhang  <yufeng.zhang@arm.com>
2568
2569         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
2570         (aarch64_inferior_data, struct aarch64_inferior_data):
2571         Delete.
2572         (struct aarch64_process_info): New.
2573         (aarch64_process_list): New global.
2574         (aarch64_find_process_pid, aarch64_add_process)
2575         (aarch64_process_info_get): New functions.
2576         (aarch64_inferior_data_get): Delete.
2577         (aarch64_process_info_get): New function.
2578         (aarch64_forget_process): New function.
2579         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
2580         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
2581         aarch64_get_debug_reg_state.
2582         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
2583         instead of linux_nat_iterate_watchpoint_lwps.
2584         (aarch64_linux_new_fork): New function.
2585         (aarch64_linux_child_post_startup_inferior): Use
2586         aarch64_forget_process instead of aarch64_init_debug_reg_state.
2587         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
2588         (aarch64_linux_remove_hw_breakpoint)
2589         (aarch64_handle_aligned_watchpoint)
2590         (aarch64_handle_unaligned_watchpoint)
2591         (aarch64_linux_insert_watchpoint)
2592         (aarch64_linux_remove_watchpoint)
2593         (aarch64_linux_stopped_data_address): Adjust to pass the current
2594         process id to aarch64_debug_reg_state.
2595         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
2596         linux_nat_new_fork hook, and aarch64_forget_process as
2597         linux_nat_forget_process hook; remove the call to
2598         register_inferior_data_with_cleanup.
2599
2600 2013-02-14  Pedro Alves  <palves@redhat.com>
2601
2602         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
2603         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
2604         lval_memory.
2605
2606 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
2607             Hafiz Abid Qadeer  <abidh@codesourcery.com>
2608
2609         * tracepoint.h (validate_trace_state_variable_name): Declare.
2610         * tracepoint.c (validate_trace_state_variable_name): New.
2611         (trace_variable_command): Parse the trace state variable's name
2612         without using parse_expression.  Do several validations.
2613         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
2614         trace state variable's name with parse_expression.  Validate it.
2615
2616 2013-02-14  Yao Qi  <yao@codesourcery.com>
2617
2618         * infcmd.c (breakpoint_proceeded): Remove it.
2619
2620 2013-02-14  Yao Qi  <yao@codesourcery.com>
2621
2622         * tracepoint.c (end_actions_pseudocommand): Make it static.
2623         (while_stepping_pseudocommand): Likewise.
2624         * tracepoint.h (end_actions_pseudocommand): Remove the
2625         declaration.
2626         (while_stepping_pseudocommand): Likewise.
2627
2628 2013-02-14  Yao Qi  <yao@codesourcery.com>
2629
2630         * cli/cli-decode.c (help_cmd): Remove the declaration of
2631         "cmdlist".
2632         (help_all): Likewise.
2633
2634 2013-02-13  Pedro Alves  <palves@redhat.com>
2635
2636         * amd64-linux-nat.c (update_debug_registers_callback):
2637         Update comment.
2638         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
2639         iterate_over_lwps.
2640         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
2641         i386_debug_reg_state.
2642         (amd64_linux_new_fork): New function.
2643         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
2644         linux_nat_new_fork hook, and i386_forget_process as
2645         linux_nat_forget_process hook.
2646         * i386-linux-nat.c (update_debug_registers_callback):
2647         Update comment.
2648         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
2649         iterate_over_lwps.
2650         (i386_linux_prepare_to_resume): Pass the lwp's pid to
2651         i386_debug_reg_state.
2652         (i386_linux_new_fork): New function.
2653         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
2654         linux_nat_new_fork hook, and i386_forget_process as
2655         linux_nat_forget_process hook.
2656         * i386-nat.c (i386_init_dregs): Delete.
2657         (i386_inferior_data, struct i386_inferior_data):
2658         Delete.
2659         (struct i386_process_info): New.
2660         (i386_process_list): New global.
2661         (i386_find_process_pid, i386_add_process, i386_process_info_get):
2662         New functions.
2663         (i386_inferior_data_get): Delete.
2664         (i386_process_info_get): New function.
2665         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
2666         (i386_forget_process): New function.
2667         (i386_cleanup_dregs): Rewrite.
2668         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
2669         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
2670         (i386_stopped_data_address, i386_insert_hw_breakpoint)
2671         (i386_remove_hw_breakpoint): Adjust to pass the current process id
2672         to i386_debug_reg_state.
2673         (i386_use_watchpoints): Don't register inferior data.
2674         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
2675         adjust comment.
2676         (i386_forget_process): Declare.
2677         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
2678         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
2679         New static globals.
2680         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
2681         (add_initial_lwp): New, factored out from ...
2682         (add_lwp): ... this.  Don't check the number of lwps before
2683         calling linux_nat_new_thread.
2684         (linux_nat_iterate_watchpoint_lwps): Delete.
2685         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
2686         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
2687         forks and vforks.
2688         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
2689         initial lwp.
2690         (linux_nat_kill, linux_nat_mourn_inferior): Call
2691         linux_nat_forget_process.
2692         (linux_nat_set_new_fork, linux_nat_set_forget_process)
2693         (linux_nat_forget_process): New functions.
2694         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
2695         type.
2696         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
2697         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
2698         types.
2699         (linux_nat_set_new_fork, linux_nat_set_forget_process)
2700         (linux_nat_forget_process): New declarations.
2701
2702         * amd64fbsd-nat.c (super_mourn_inferior): New global.
2703         (amd64fbsd_mourn_inferior): New function.
2704         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
2705         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
2706
2707 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2708
2709         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
2710         Adding _().
2711
2712 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2713
2714         * aarch64-linux-nat.c (debug_reg_change_callback)
2715         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
2716         %s and phex().
2717
2718 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2719
2720         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
2721         with LONGEST.
2722
2723 2013-02-13  Pedro Alves  <palves@redhat.com>
2724             Hafiz Abid Qadeer  <abidh@codesourcery.com>
2725
2726         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
2727
2728 2013-02-12  Tom Tromey  <tromey@redhat.com>
2729
2730         PR symtab/11464:
2731         * c-exp.y (lex_one_token): Initialize other fields of yylval on
2732         NAME return.
2733         (classify_inner_name): Remove 'first_name' argument, add
2734         'context'.  Remove unused variable.
2735         (yylex): Explicitly maintain the context type.  Exit loop earlier
2736         if NAME result is seen.
2737
2738 2013-02-12  Pedro Alves  <palves@redhat.com>
2739
2740         * amd64-darwin-tdep.c: Add (C) after Copyright.
2741         * cli/cli-cmds.h: Ditto.
2742         * cli/cli-decode.c: Ditto.
2743         * cli/cli-decode.h: Ditto.
2744         * cli/cli-dump.c: Ditto.
2745         * cli/cli-dump.h: Ditto.
2746         * cli/cli-interp.c: Ditto.
2747         * cli/cli-logging.c: Ditto.
2748         * cli/cli-script.c: Ditto.
2749         * cli/cli-script.h: Ditto.
2750         * cli/cli-setshow.c: Ditto.
2751         * cli/cli-setshow.h: Ditto.
2752         * cli/cli-utils.c: Ditto.
2753         * cli/cli-utils.h: Ditto.
2754         * config/alpha/nm-osf3.h: Ditto.
2755         * config/djgpp/djconfig.sh: Ditto.
2756         * config/i386/nm-fbsd.h: Ditto.
2757         * config/i386/nm-i386gnu.h: Ditto.
2758         * config/nm-linux.h: Ditto.
2759         * config/nm-nto.h: Ditto.
2760         * config/rs6000/nm-rs6000.h: Ditto.
2761         * config/sparc/nm-sol2.h: Ditto.
2762         * darwin-nat-info.c: Ditto.
2763         * dfp.c: Ditto.
2764         * dfp.h: Ditto.
2765         * gdb-demangle.h: Ditto.
2766         * i386-darwin-nat.c: Ditto.
2767         * i386-darwin-tdep.c: Ditto.
2768         * linux-fork.h: Ditto.
2769         * m32c-tdep.c: Ditto.
2770         * microblaze-linux-tdep.c: Ditto.
2771         * microblaze-rom.c: Ditto.
2772         * microblaze-tdep.c: Ditto.
2773         * microblaze-tdep.h: Ditto.
2774         * mips-linux-tdep.h: Ditto.
2775         * ppc-ravenscar-thread.c: Ditto.
2776         * ppc-ravenscar-thread.h: Ditto.
2777         * prologue-value.c: Ditto.
2778         * prologue-value.h: Ditto.
2779         * ravenscar-thread.c: Ditto.
2780         * ravenscar-thread.h: Ditto.
2781         * sparc-ravenscar-thread.c: Ditto.
2782         * sparc-ravenscar-thread.h: Ditto.
2783         * tilegx-linux-tdep.c: Ditto.
2784         * unwind_stop_reasons.def: Ditto.
2785         * windows-nat.h: Ditto.
2786         * xtensa-linux-tdep.c: Ditto.
2787         * xtensa-xtregs.c: Ditto.
2788         * regformats/regdat.sh: Ditto.
2789         * regformats/regdef.h: Ditto.
2790
2791 2013-02-12  Pedro Alves  <palves@redhat.com>
2792
2793         * break-catch-sig.c: Update copyright years.
2794
2795 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
2796
2797         Add support for a destructor for ui_out data and use it to
2798         provide a ui_out destructor.
2799         * ui-out.h: Declare the new ui_out destructor.
2800         (ui_out_impl): Add a field for data destructor in ui_out_impl.
2801         * ui-out.c (default_data_destroy): Add a default data destructor
2802         which does nothing.
2803         (default_ui_out_impl): Set the new data_destroy field to
2804         default_data_destroy
2805         (uo_data_destroy): Local function which invokes the data
2806         destructor if present.
2807         (clear_table): Local function which clears the table data of a
2808         ui_out object.
2809         (ui_out_destroy): Public function which frees a ui_out object.
2810         (ui_out_table_end): Use the new clear_table function.
2811         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
2812         NULL.
2813         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
2814         to NULL.
2815
2816 2013-02-11  Doug Evans  <dje@google.com>
2817
2818         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
2819         (printf_decfloat): New function.  Broken out from ui_printf.
2820         Remove unnecessary code to shift the entire format string down.
2821         (printf_pointer): New function.
2822         (ui_printf): Code to print C strings, wide C strings, decfloats,
2823         and pointers moved to separate functions.
2824
2825 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
2826
2827         * valops.c (value_assign): Handling bitfield offset in
2828         `lval_internalvar_component' case.
2829
2830 2013-02-08  Doug Evans  <dje@google.com>
2831
2832         * common/format.c (parse_format_string): Fix whitespace.
2833
2834 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
2835
2836         * stack.c (return_command): Work around uninitialized variable
2837         warning.
2838
2839 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
2840
2841         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
2842         number of the registers from 36 to 34.
2843
2844 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2845
2846         * NEWS: Mention new AArch64 native and target support.
2847
2848 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2849
2850         * MAINTAINERS (Write After Approval): Add myself.
2851
2852 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
2853             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2854             Nigel Stephens  <nigel.stephens@arm.com>
2855             Yufeng Zhang  <yufeng.zhang@arm.com>
2856
2857         * aarch64-linux-nat.c: New file.
2858         * config/aarch64/linux.mh: New file.
2859         * configure.host: Add AArch64.
2860         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
2861
2862 2013-02-07  Doug Evans  <dje@google.com>
2863
2864         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
2865         disassemble command.
2866
2867 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2868
2869         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2870         set_gdbarch_fetch_tls_load_module_address.
2871
2872 2013-02-06  David S. Miller  <davem@davemloft.net>
2873
2874         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
2875         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
2876         * value.c (struct_return_convention): New function.
2877         (using_struct_return): Implement in terms of struct_return_convention.
2878         * value.h (struct_return_convention): Declare.
2879         * stack.c (return_command): Allow successful overriding of the return
2880         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
2881
2882 2013-02-06  Tom Tromey  <tromey@redhat.com>
2883
2884         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
2885         outside of TRY_CATCH.
2886
2887 2013-02-06  Yao Qi  <yao@codesourcery.com>
2888
2889         * mi/mi-interp.c: Include "tracepoint.h".
2890         (mi_tsv_modified): Declare.
2891         (mi_tsv_created, mi_tsv_deleted): Update declaration.
2892         (mi_interpreter_init): Call observer_attach_tsv_modified.
2893         (mi_tsv_modified): New.
2894         (mi_tsv_created, mi_tsv_deleted): Update.
2895         * tracepoint.c (trace_variable_command): Call
2896         observer_notify_tsv_modified if the initial value of tsv is
2897         changed.
2898         (delete_trace_state_variable): Call
2899         observer_notify_tsv_deleted earlier.
2900         (trace_variable_command): Caller update.
2901         (create_tsv_from_upload): Likewise.
2902         * observer.sh: Declare "struct trace_state_variable".
2903
2904         * NEWS: Mention the new MI notification "=tsv-modified".
2905
2906 2013-02-05  Doug Evans  <dje@google.com>
2907
2908         * completer.c (location_completer): Fix typo in comment.
2909
2910 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2911
2912         * breakpoint.c (add_location_to_breakpoint): Insert the location with
2913         ADDRESS sorted.
2914
2915 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2916
2917         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
2918         Refactor if statement to avoid trailing || operator.
2919
2920 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
2921
2922         * NEWS: Add PowerPC FreeBSD as a new native configuration.
2923
2924 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
2925
2926         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
2927         * configure.host: Add powerpc*-*-freebsd* target.
2928         * configure.tgt: Add target info for powerpc*-*-freebsd*.
2929         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
2930         * config/powerpc/fbsd.mh: New file.
2931
2932 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
2933             Denys Vlasenko  <dvlasenk@redhat.com>
2934             Pedro Alves  <palves@redhat.com>
2935
2936         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
2937         (struct elf_internal_linux_prpsinfo): Forward declare.
2938         * gdbarch.h, gdbarch.c: Regenerate.
2939         * linux-tdep.c: Include `cli/cli-utils.h'.
2940         (linux_fill_prpsinfo): New function.
2941         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
2942         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
2943         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
2944         depending on gdbarch pointer bitness.
2945         * ppc-linux-tdep.c: Include elf-bfd.h.
2946         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
2947         on 32-bit.
2948
2949 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
2950             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2951             Nigel Stephens  <nigel.stephens@arm.com>
2952             Yufeng Zhang  <yufeng.zhang@arm.com>
2953
2954         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
2955
2956 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
2957             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2958             Nigel Stephens  <nigel.stephens@arm.com>
2959             Yufeng Zhang  <yufeng.zhang@arm.com>
2960
2961         * aarch64-newlib-tdep.c: New file.
2962         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
2963         aarch64*-*-elf.
2964         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
2965         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
2966         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
2967         * osabi.c (gdb_osabi_names): Add "Newlib".
2968
2969 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
2970             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2971             Nigel Stephens  <nigel.stephens@arm.com>
2972             Yufeng Zhang  <yufeng.zhang@arm.com>
2973
2974         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
2975         (ALLDEPFILES): Add aarch64-linux-tdep.c.
2976         * aarch64-linux-tdep.c: New file.
2977         * aarch64-linux-tdep.h: New file.
2978         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
2979         * configure.tgt: Add aarch64-none-linux-gnu.
2980
2981 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
2982             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2983             Nigel Stephens  <nigel.stephens@arm.com>
2984             Yufeng Zhang  <yufeng.zhang@arm.com>
2985
2986         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
2987         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
2988         (ALLDEPFILES): Add aarch64-tdep.c.
2989         * aarch64-tdep.c: New file.
2990         * aarch64-tdep.h: New file.
2991         * configure.tgt: Add AArch64.
2992         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
2993         (aarch64-expedite): New definition.
2994         * features/aarch64-core.xml: New file.
2995         * features/aarch64-fpu.xml: New file.
2996         * features/aarch64-without-fpu.c: New file (generated).
2997         * features/aarch64-without-fpu.xml: New file.
2998         * features/aarch64.c: New file (generated).
2999         * features/aarch64.xml: New file.
3000         * regformats/aarch64-without-fpu.dat: New file (generated).
3001         * regformats/aarch64.dat: New file (generated).
3002
3003 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3004
3005         * contrib/expect-read1.c: New file.
3006         * contrib/expect-read1.sh: New file.
3007
3008 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3009
3010         * dwarf2read.c (file_file_name): New function with code from
3011         file_full_name.
3012         (file_full_name): Move most of the code to file_file_name.
3013         (macro_start_file): Rename variable full_name to file_name and use
3014         file_file_name for it.  Add comp_dir parameter to new_macro_table.
3015         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
3016         macro_source_file->filename access by macro_source_fullname call.
3017         * macroscope.c (_initialize_macroscope): Update the new_macro_table
3018         caller.
3019         * macrotab.c (struct macro_table): New field comp_dir.
3020         (macro_include): New variables link_fullname and source_fullname.
3021         Replace any macro_source_file->filename access by macro_source_fullname
3022         call.
3023         (macro_lookup_inclusion): Remove the partial filenames checking code.
3024         (check_for_redefinition): New variables source_fullname and
3025         found_key_fullname.  Replace any macro_source_file->filename access by
3026         macro_source_fullname call.
3027         (macro_undef): New variables source_fullname and key_fullname.  Replace
3028         any macro_source_file->filename access by macro_source_fullname call.
3029         (macro_lookup_definition): New variables retval and source_fullname.
3030         Replace any macro_source_file->filename access by macro_source_fullname
3031         call.
3032         (foreach_macro): New variable key_fullname.  Replace any
3033         macro_source_file->filename access by macro_source_fullname call.
3034         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
3035         macro_source_file->filename access by macro_source_fullname call.
3036         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
3037         (macro_source_fullname): New function.
3038         * macrotab.h (struct macro_source_file): Extent the filename field
3039         comment.
3040         (new_macro_table): New parameter comp_dir, add a comment for it.
3041         (macro_source_fullname): new declaration.
3042
3043 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3044
3045         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
3046         this_real_name to outer block.  Use it also for
3047         compare_filenames_for_search.
3048         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
3049         with dw2_get_real_path for file_matcher, considering also
3050         BASENAMES_MAY_DIFFER.
3051         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
3052
3053 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3054
3055         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
3056         to the file_matcher parameter.  Pass 0 to it.
3057         (dwarf2_create_include_psymtab): Copy also DIRNAME.
3058         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
3059         NULL psymtab_to_fullname result.
3060         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
3061         an expected filename instead.
3062         (expand_symtabs_matching_via_partial): Add basenames parameter to the
3063         file_matcher parameter.  Call also psymtab_to_fullname, after newly
3064         considering BASENAMES_MAY_DIFFER.
3065         * source.c (rewrite_source_path): Remove static.
3066         * source.h (rewrite_source_path): New declaration.
3067         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
3068         the expand_symtabs_matching field.  Comment it.
3069         * symtab.c (file_matches): New function comment.  Add parameter
3070         basenames, implement it.
3071         (search_symbols_file_matches): Add basenames parameter.  Update the
3072         file_matches caller.
3073         (search_symbols): Match FILES also against symtab_to_fullname.
3074         Optimize it for BASENAMES_MAY_DIFFER.
3075
3076 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3077
3078         * source.c (print_source_lines_base): Print for TUI also "fullname".
3079         * tui/tui-data.c (init_content_element): Change tui_locator_element
3080         field to full_name.
3081         * tui/tui-data.h (struct tui_locator_element): Likewise.
3082         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
3083         tui_update_locator_filename calls to tui_update_locator_fullname.
3084         Replace symtab->filename refererence by symtab_to_fullname call.
3085         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
3086         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
3087         field to full_name.  Replace symtab->filename refererence by
3088         symtab_to_fullname call.
3089         (tui_show_symtab_source): Rename parameter to fullname.  Change
3090         tui_locator_element field to full_name.
3091         * tui/tui-stack.c: Include source.h.
3092         (tui_set_locator_filename): Rename the declaration to ...
3093         (tui_set_locator_fullname): ... here.  Rename its parameter to
3094         fullname, updates its comment.
3095         (tui_set_locator_info): Rename its parameter to fullname.
3096         (tui_set_locator_filename): Rename the definition to ...
3097         (tui_set_locator_fullname): ... here.  Rename its parameter to
3098         fullname, updates its comment.  Change tui_locator_element field to
3099         full_name.
3100         (tui_set_locator_info): Rename its parameter to fullname.
3101         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
3102         (tui_update_locator_filename): Rename to ...
3103         (tui_update_locator_fullname): ... here. Rename callee to
3104         tui_set_locator_fullname.
3105         (tui_show_frame_info): Replace symtab->filename refererence by
3106         symtab_to_fullname call.
3107         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
3108         (tui_update_locator_fullname): ... here.
3109         * tui/tui-winsource.c (tui_display_main): Rename the callee to
3110         tui_update_locator_fullname.  Replace symtab->filename refererence by
3111         symtab_to_fullname call.
3112         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
3113         Rename the callee to tui_update_locator_fullname.
3114         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
3115
3116 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3117
3118         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
3119         by symtab_to_filename_for_display calls.
3120         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
3121         (clear_command): New variable sal_fullname, initialize it.  Replace
3122         compare_filenames_for_search by filename_cmp with sal_fullname.
3123         (say_where, update_static_tracepoint): Replace symtab->filename
3124         refererences by symtab_to_filename_for_display calls.
3125         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
3126         Likewise.
3127         * dwarf2read.c: Include source.h.
3128         (fixup_go_packaging): Replace symtab->filename refererences by
3129         symtab_to_filename_for_display calls.
3130         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
3131         Replace symtab->filename refererences by symtab_to_filename_for_display
3132         calls.
3133         (create_sals_line_offset, convert_linespec_to_sals): New variable
3134         fullname, initialize it, replace symtab->filename reference by the
3135         variable.
3136         * linux-fork.c: Include source.h.
3137         (info_checkpoints_command): Replace symtab->filename refererences by
3138         symtab_to_filename_for_display calls.
3139         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
3140         by symtab_to_filename_for_display calls.
3141         * mdebugread.c: Include source.h.
3142         (psymtab_to_symtab_1): Replace symtab->filename refererences by
3143         symtab_to_filename_for_display calls.
3144         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3145         (mi_cmd_file_list_exec_source_files): Likewise.
3146         * printcmd.c: Include source.h.
3147         (build_address_symbolic): Replace symtab->filename refererences by
3148         symtab_to_filename_for_display calls.
3149         * psymtab.c (partial_map_symtabs_matching_filename)
3150         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
3151         with psymtab_to_fullname.
3152         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
3153         by symtab_to_filename_for_display calls.
3154         (stpy_get_filename): New variable filename, initialize it, use instead
3155         of symtab->filename refererences.
3156         (salpy_str): Make variable filename const char *.  Replace
3157         symtab->filename refererences by symtab_to_filename_for_display calls.
3158         * skip.c: Include source.h and filenames.h.
3159         (skip_file_command): Remove const from the symtab variable.  Replace
3160         symtab->filename refererences by symtab_to_fullname call.
3161         (function_name_is_marked_for_skip): New variables searched_for_fullname
3162         and fullname.  Use them to search also with symtab's fullname.
3163         * source.c (find_source_lines): Replace symtab->filename refererences
3164         by symtab_to_filename_for_display calls.
3165         (print_source_lines_base): New variable filename, use it instead of
3166         symtab->filename.  Replace symtab->filename refererences by
3167         symtab_to_filename_for_display calls.
3168         (line_info, forward_search_command): Replace symtab->filename
3169         refererences by symtab_to_filename_for_display calls.
3170         (reverse_search_command): Replace symtab->filename refererences by
3171         symtab_to_filename_for_display calls.  New variable filename for it.
3172         * stack.c (frame_info): Likewise.
3173         * symmisc.c: Include source.h.
3174         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
3175         (maintenance_info_symtabs): Replace symtab->filename refererences by
3176         symtab_to_filename_for_display calls.
3177         * symtab.c (iterate_over_some_symtabs): Call
3178         compare_filenames_for_search also with symtab_to_fullname.
3179         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
3180         symtab->filename refererences by symtab_to_filename_for_display calls.
3181         (find_line_symtab): Replace symtab->filename refererences by
3182         symtab_to_filename_for_display calls.
3183         (file_matches): Replace filename_cmp by compare_filenames_for_search.
3184         (print_symbol_info): Make the last parameter const char *.  New
3185         variable s_filename.  Use it in the function.
3186         (symtab_symbol_info): Make the last_filename variable const char *.
3187         Replace symtab->filename refererences by symtab_to_filename_for_display
3188         calls.
3189         (rbreak_command): New variable fullname.  Use it.  Replace
3190         symtab->filename refererence by symtab_to_filename_for_display call.
3191         * tracepoint.c (set_traceframe_context, trace_find_line_command)
3192         (print_one_static_tracepoint_marker): Replace symtab->filename
3193         refererences by symtab_to_filename_for_display calls.
3194         * tui/tui-source.c (tui_set_source_content): New variables filename and
3195         s_filename.  Replace symtab->filename refererences by this variable.
3196         Replace other symtab->filename refererences by
3197         symtab_to_filename_for_display calls.
3198
3199 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
3200             Jan Kratochvil  <jan.kratochvil@redhat.com>
3201
3202         Add a new variable that controls a way in which filenames are
3203         displayed.
3204         * NEWS (set filename-display): New entry.
3205         * source.c (filename_display_basename, filename_display_relative)
3206         (filename_display_absolute, filename_display_kind_names)
3207         (filename_display_string, show_filename_display_string)
3208         (symtab_to_filename_for_display): New.
3209         (_initialize_source): Added initialization of 'filename-display'
3210         variable.
3211         * source.h (symtab_to_filename_for_display): Added declaration.
3212         * stack.c (print_frame): Added new variable and calling of a new
3213         function and condition with this variable. Changed third argument of
3214         calling of a function.
3215
3216 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3217
3218         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
3219         Rename field reference filename to fullname.
3220         * tui/tui-data.h (struct tui_source_info): Rename field filename to
3221         fullname.  New comment for it.
3222         * tui/tui-source.c (tui_set_source_content): Rename field reference
3223         filename to fullname.  Initialize field by symtab_to_fullname now.
3224         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
3225         reference filename to fullname.  Use symtab_to_fullname during
3226         comparison.
3227
3228 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3229
3230         Code cleanup.
3231         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
3232         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
3233         filename to fullname.  Rename variable this_name to this_fullname.
3234         Lowercase FILENAME_CMP call.
3235         (dw2_find_symbol_file): New comment for the returned string.
3236         (dwarf2_gdb_index_functions): Rename the function to
3237         dw2_expand_symtabs_with_fullname.
3238         * psymtab.c (read_psymtabs_with_filename): Rename to ...
3239         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
3240         fullname.
3241         (psym_functions): Rename the function to read_psymtabs_with_fullname.
3242         * symfile.h (struct quick_symbol_functions): Rename field
3243         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
3244         parameter filename to fullname.  Document returned string meaning for
3245         find_symbol_file.
3246         * symtab.c (find_line_symtab): Rename the called function to
3247         expand_symtabs_with_fullname.
3248
3249 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3250
3251         Code cleanup.
3252         * breakpoint.c (clear_command): Remove variable is_abs, unify the
3253         call of filename_cmp with compare_filenames_for_search.
3254         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
3255         is_abs, unify the call of FILENAME_CMP with
3256         compare_filenames_for_search.  New gdb_asserts for real_path and name.
3257         Unify the call of compare_filenames_for_search with FILENAME_CMP.
3258         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
3259         * symfile.h (struct quick_symbol_functions): Extend the comment for
3260         map_symtabs_matching_filename.
3261         * symtab.c (compare_filenames_for_search): Remove the function comment
3262         relative path requirement.  Handle absolute filenames, with a comment.
3263         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
3264         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
3265         real_path and name.  Unify the call of compare_filenames_for_search
3266         with FILENAME_CMP.
3267         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
3268
3269 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3270
3271         Code cleanup.
3272         * breakpoint.c (print_breakpoint_location): Replace bp_location field
3273         source_file references by symtab field references.  Remove variables
3274         sal and fullname.
3275         (momentary_breakpoint_from_master, add_location_to_breakpoint):
3276         (clear_command, say_where): Replace bp_location field source_file
3277         references by symtab field references.
3278         (bp_location_dtor): Remove the source_file reference.
3279         (update_static_tracepoint): Replace bp_location field source_file
3280         references by symtab field references.
3281         (breakpoint_free_objfile): New function.
3282         * breakpoint.h (struct bp_location): Extend the comment for line_number.
3283         Replace the field source_file by field symtab, extend its comment.
3284         (breakpoint_free_objfile): New declaration.
3285         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
3286         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
3287         field source_file references by symtab field references.
3288
3289 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3290
3291         Replace xfullpath calls by gdb_realpath calls.
3292         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
3293         function comment.
3294         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
3295         Remove it from the iterate_over_some_symtabs call.
3296         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
3297         Remove it from the dw2_map_expand_apply calls, remove a block handling
3298         it.
3299         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
3300         Remove it from the iterate_over_some_symtabs call.
3301         (partial_map_symtabs_matching_filename): Remove parameter full_path.
3302         Remove it from the partial_map_expand_apply calls, remove a block
3303         handling it.  Drop gdb_realpath call and cleanups from the real_path
3304         handling.
3305         * source.c (openp): Drop the comment part about xfullpath.  Replace
3306         xfullpath calls by gdb_realpath calls.
3307         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
3308         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
3309         from method map_symtabs_matching_filename and its comment.
3310         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
3311         gdb_realpath call.
3312         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
3313         remove it also from the function comment, remove a block handling it.
3314         Drop gdb_realpath call and cleanups from the real_path handling.
3315         (iterate_over_symtabs): Drop variable full_path and its use.
3316         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
3317         * utils.c (xfullpath): Remove.
3318         * utils.h (xfullpath): Remove.
3319
3320 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
3321
3322         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
3323         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
3324         (ALLDEPFILES): Add ppc64-tdep.c.
3325         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
3326         ppc64-tdep.o to gdb_target_obs.
3327         * ppc64-tdep.h: New file.
3328         * ppc64-tdep.c: New file.
3329         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
3330         ppc-linux-tdep.c to here.
3331         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
3332         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
3333         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
3334         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
3335         from ppc-linux-tdep.c to here.
3336         (ppc64_convert_from_func_ptr_addr): Rename from
3337         ppc64_linux_convert_from_func_ptr_addr to
3338         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
3339         here.
3340         * rs6000-tdep.c:
3341         (read_insn): Move from ppc-linux-tdep.c to here.
3342         (insns_match_pattern, insn_d_field, insn_ds_field): Move
3343         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
3344         * ppc-linux-tdep.c: Include ppc64-tdep.h.
3345         Removed above functions.
3346         (ppc_linux_init_abi): Adjust.
3347
3348 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
3349
3350         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
3351
3352 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
3353
3354         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
3355
3356 2013-02-01  Pedro Alves  <palves@redhat.com>
3357
3358         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
3359         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
3360
3361 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3362
3363         * elfread.c (elf_symfile_read): Limit separate debug info additions to
3364         files with no separate debug info.
3365         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
3366         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
3367         only for files with no separate debug info.
3368
3369 2013-01-31  Tom Tromey  <tromey@redhat.com>
3370
3371         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
3372         change type.
3373         (struct jit_program_space_data): Rename from jit_inferior_data.
3374         Update comments.
3375         (get_jit_program_space_data): Rename from get_jit_inferior_data.
3376         Change return type.  Attach data to program space.
3377         (jit_program_space_data_cleanup): Rename from
3378         jit_inferior_data_cleanup; change argument type.
3379         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
3380         change type.
3381         (jit_register_code): Update.
3382         (jit_update_inferior_cache): Remove.
3383         (jit_breakpoint_deleted): Get jit data from the location's program
3384         space.
3385         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
3386         'ps_data', change type.
3387         (jit_inferior_init, jit_breakpoint_re_set_internal)
3388         (jit_event_handler): Update.
3389         (free_objfile_data): Get data from objfile's program space.
3390         (_initialize_jit): Update.
3391
3392 2013-01-31  Tom Tromey  <tromey@redhat.com>
3393
3394         PR gdb/13987:
3395         * jit.c (struct jit_inferior_data) <cached_code_address,
3396         jit_breakpoint>: New fields.
3397         (jit_breakpoint_re_set_internal): Fix logging.  Only create
3398         breakpoint if cached address has changed.
3399         (jit_update_inferior_cache, jit_breakpoint_deleted): New
3400         functions.
3401         (_initialize_jit): Register breakpoint deleted observer.
3402
3403 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
3404
3405         * infrun.c (handle_syscall_event): Remove unused gdbarch.
3406         (save_infcall_suspend_state): Ifdef out unused inf.
3407         (restore_infcall_suspend_state): Ifdef out unused inf.
3408         * jit.c (jit_register_code): Remove unused i, b, inf_data.
3409         (jit_frame_sniffer): Remove unused inf_data.
3410
3411 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
3412
3413         * c-exp.y (classify_inner_name): Remove unused type.
3414         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
3415         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
3416         need_escape.
3417         (c_get_string): Remove unused kind.
3418         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
3419
3420 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
3421
3422         * charset.c (intermediate_encoding): Remove unused i.
3423         * completer.c (signal_completer): Remove unused i.
3424         * continuations.c (discard_my_continuations_1): Remove unused
3425         continuation_ptr.
3426         * corelow.c (core_close): Remove unuseD name.
3427         (get_core_siginfo): Remove unused pid.
3428         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
3429         i, cps.
3430         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
3431         (loclist_describe_location): Remove unused first.
3432         * event-top.c (command_line_handler): Remove unused got_eof.
3433         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
3434         (resize_section_table): Remove unused old_value.
3435         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
3436         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
3437         * i386-tdep.c (i386_process_record): Remove unused rex.
3438         * infcmd.c (get_return_value): Remove unused uiout.
3439         * jv-lang.c (type_from_class): Remove unused is_array.
3440         * jv-valprint.c (java_val_print): Remove unused i.
3441         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
3442         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
3443         * m2-typeprint.c (m2_print_type): Remove unused code.
3444         * macroexp.c (get_character_constant): Remove unused body_start.
3445         (macro_stringify): Remove unused result.
3446         * objc-lang.c (find_methods): Remove unused gdbarch.
3447         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
3448         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
3449         * stack.c (print_frame_args): Remove unused summary.
3450         * thread.c (thread_apply_command): Remove unused p.
3451         * valarith.c (value_x_unop): Remove unused mangle_ptr.
3452         * valops.c (search_struct_method): Remove unused skip.
3453         * valprint.c (generic_val_print): Remove unused byte_order.
3454         * varobj.c (varobj_update): Remove unused changed.
3455         * cli/cli-cmds.c (complete_command): Remove unused next_item.
3456         (alias_command): Remove unused c.
3457         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
3458         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
3459         format.
3460         (mi_cmd_data_write_memory): Remove unused word_format.
3461         (mi_cmd_data_write_memory_bytes): Remove unused r.
3462         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
3463         p_start, p_end.
3464         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
3465         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
3466         line_width.
3467
3468 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
3469
3470         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
3471         * symtab.c (iterate_over_symtabs): Remove unused s.
3472         (find_pc_sect_symtab): Remove unused pspAce.
3473         (find_pc_sect_line): Remove unused alt_symtab.
3474         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
3475         (completion_list_add_name): Remove unused newsize.
3476
3477 2013-01-31  Tom Tromey  <tromey@redhat.com>
3478
3479         PR c++/14998:
3480         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
3481         TYPE_CODE_FUNC.
3482
3483 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
3484
3485         * target.c (target_read_string): Remove unused origlen.
3486
3487 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
3488
3489         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
3490         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
3491         * ax-general.c (ax_print): Remove unused is_float.
3492         * blockframe.c (block_innermost_frame): Remove unused start, end.
3493         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
3494
3495 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
3496
3497         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
3498         (svr4_read_so_list): Remove unused lmo.
3499         * solib-target.c (solib_target_relocate_section_addresses): Remove
3500         unused flags.
3501
3502 2013-01-30  Tom Tromey  <tromey@redhat.com>
3503
3504         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
3505
3506 2013-01-30  Tom Tromey  <tromey@redhat.com>
3507
3508         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
3509         * utils.c (gnu_debuglink_crc32): Remove.
3510         * utils.h (gnu_debuglink_crc32): Don't declare.
3511
3512 2013-01-30  Tom Tromey  <tromey@redhat.com>
3513
3514         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
3515         (read_structure_type, read_enumeration_type): Remove cast.
3516
3517 2013-01-30  Tom Tromey  <tromey@redhat.com>
3518
3519         * dwarf2read.c (read_namespace_type): Remove cast.
3520         (read_typedef): Likewise.
3521
3522 2013-01-29  Tom Tromey  <tromey@redhat.com>
3523
3524         * dwarf2read.c (free_dwo_file): Remove assert.
3525
3526 2013-01-29  Tom Tromey  <tromey@redhat.com>
3527
3528         * value.c (deprecated_set_value_modifiable): Remove.
3529         * value.h (deprecated_set_value_modifiable): Remove.
3530
3531 2013-01-28  Doug Evans  <dje@google.com>
3532
3533         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
3534         to addresses from dwo files.
3535
3536 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
3537
3538         * valops.c (find_overload_match): Remove unused argument 'lax'.
3539         * value.h: Remove unused argument 'lax' from the declaration of
3540         find_overload_match.
3541         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
3542         to find_overload_match.
3543         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
3544         argument to find_overload_match.
3545
3546 2013-01-25  Tom Tromey  <tromey@redhat.com>
3547
3548         * dwarf2read.c (processing_has_namespace_info): Remove.
3549         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
3550         (process_die, read_func_scope, dwarf2_start_symtab)
3551         (new_symbol_full): Update.
3552
3553 2013-01-25  Tom Tromey  <tromey@redhat.com>
3554
3555         * cp-namespace.c (cp_set_block_scope): Remove.
3556         * cp-support.h (cp_set_block_scope): Remove.
3557         * dbxread.c: Include block.h.
3558         (cp_set_block_scope): New function.
3559         (process_one_symbol): Update.
3560         * dwarf2read.c (read_func_scope): Use block_set_scope.
3561
3562 2013-01-25  Pedro Alves  <palves@redhat.com>
3563
3564         * remote.c (add_current_inferior_and_thread): Tweak comment.
3565
3566 2013-01-25  Tom Tromey  <tromey@redhat.com>
3567
3568         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3569         (cp_add_using_directive): Add 'copy_names' argument.
3570         * cp-support.h (cp_add_using_directive): Update.
3571         (struct using_direct) <import_src, import_dest, alias,
3572         declaration>: Now const.
3573         * dwarf2read.c (read_import_statement): Use obconcat.
3574         Don't copy names passed to cp_add_using_directive.
3575
3576 2013-01-25  Tom Tromey  <tromey@redhat.com>
3577
3578         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
3579
3580 2013-01-25  Pedro Alves  <palves@redhat.com>
3581
3582         * remote.c (stop_reply_extract_thread): New.
3583         (add_current_inferior_and_thread): New parameter 'wait_status'.
3584         Handle it.
3585         (remote_start_remote): Pass wait status to
3586         add_current_inferior_and_thread.
3587         (extended_remote_run): Update comment.
3588         (extended_remote_create_inferior_1): Pass wait status to
3589         add_current_inferior_and_thread.
3590
3591 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
3592             Ulrich Weigand  <uweigand@de.ibm.com>
3593
3594         * valarith.c (value_vector_widen): New function for replicating a
3595         scalar into a vector.
3596         (value_binop): Use value_vector_widen to widen scalar to vector
3597         rather than casting, this better matches gcc C behaviour.
3598         * valops.c (value_casst): Update logic for casting between vector
3599         types, and for casting from scalar to vector, try to match gcc C
3600         behaviour.
3601         * value.h (value_vector_widen): Declare.
3602         * opencl-lang.c (opencl_value_cast): New opencl specific casting
3603         function, handle special case for casting scalar to vector.
3604         (opencl_relop): Use opencl_value_cast.
3605         (evaluate_subexp_opencl): Use opencl_value_cast instead of
3606         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
3607         in order to use opencl_value_cast.
3608
3609 2013-01-25  Yao Qi  <yao@codesourcery.com>
3610
3611         * event-loop.c: Include "queue.h".
3612         (gdb_event_p): New typedef.
3613         (DECLARE_QUEUE_P): Use.
3614         (DEFINE_QUEUE_P): Use.
3615         (async_queue_event): Remove.
3616         (gdb_event_xfree): New.
3617         (initialize_event_loop): New.
3618         (process_event): Use QUEUE macros.
3619         (event_queue): Remove.
3620         (gdb_wait_for_event): Caller update.
3621         (check_async_event_handlers): Likewise.
3622         (poll_timers): Likewise.
3623         * event-loop.h (initialize_event_loop): Declare.
3624         * event-loop.c (gdb_event_xfree): New.
3625         * top.c (gdb_init): Call initialize_event_loop.
3626
3627 2013-01-25  Yao Qi  <yao@codesourcery.com>
3628
3629         * event-loop.c (async_queue_event): Remove one parameter
3630         'position'.  Remove code handling 'position' == TAIL.
3631         (gdb_wait_for_event): Caller update.
3632         (check_async_event_handlers): Caller update.
3633         (poll_timers): Caller update.
3634         * event-loop.h (enum queue_position): Remove.
3635
3636 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
3637
3638         * MAINTAINERS: Update my email.
3639
3640 2013-01-25  Yao Qi  <yao@codesourcery.com>
3641
3642         * main.c (print_gdb_help): Remove "--epoch" from the help
3643         message.
3644
3645 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
3646
3647         * symtab.c (skip_prologue_using_sal): Consider a file
3648         change the same as an increased line number
3649
3650 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
3651
3652         * MAINTAINERS (Write After Approval): Add myself to the list.
3653
3654 2013-01-24  Tom Tromey  <tromey@redhat.com>
3655
3656         * ada-lang.h (ada_decode_symbol): Make return type const.
3657         * ada-lang.c (ada_decode_symbol): Likewise.
3658
3659 2013-01-23  Doug Evans  <dje@google.com>
3660
3661         * linespec.c (find_linespec_symbols): Make static.
3662
3663 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
3664
3665         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
3666         type on float conversion for complex type.
3667
3668 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
3669
3670         Add a new class gdb.Architecture which exposes GDB's
3671         internal representation of architecture via GDB Python API.
3672         * Makefile.in: Add entries corresponding to the new file
3673         python/py-arch.c.
3674         * NEWS (Python Scripting): Add entries for the new class
3675         gdb.Architecture and the new method gdb.Frame.architecture.
3676         * python/py-arch.c: Implement gdb.Architecture class.
3677         * python/py-frame.c (frapy_arch): Implement the method
3678         gdb.Frame.architecture().
3679         (frame_object_methods): Add 'architecture' to the method table.
3680         * python/python-internal.h: Add declarations of new utility
3681         functions.
3682         * python/python.c (_initialize_python): Initialize
3683         gdb.Architecture class.
3684
3685 2013-01-23  Doug Evans  <dje@google.com>
3686
3687         Work around binutils/15021.
3688         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
3689         type_unit_group out of union s.  All uses updated.
3690         (read_index_from_section): Watch for index version 8.
3691         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
3692         an imported symtab.
3693         (write_psymtabs_to_index): Increment version number to 8.
3694
3695 2013-01-22  Pedro Alves  <palves@redhat.com>
3696
3697         * annotate.c (breakpoint_changed): Skip if breakpoint is not
3698         user-visible.
3699
3700 2013-01-22  Pedro Alves  <palves@redhat.com>
3701
3702         * annotate.c (annotate_breakpoints_changed): Rename to ...
3703         (annotate_breakpoints_invalid): ... this.  Make static.
3704         (breakpoint_changed): Adjust.
3705         (_initialize_annotate): Always install the observers.  Install a
3706         "breakpoint_created" observer.
3707         * annotate.h (annotate_breakpoints_changed): Delete declaration.
3708         * breakpoint.c (set_breakpoint_condition)
3709         (breakpoint_set_commands, do_map_commands_command)
3710         (init_raw_breakpoint, clear_command, set_ignore_count)
3711         (enable_breakpoint_disp): No longer call
3712         annotate_breakpoints_changed.
3713
3714 2013-01-22  Pedro Alves  <palves@redhat.com>
3715
3716         * annotate.c: Include "inferior.h".
3717         (frames_invalid_emitted)
3718         (breakpoints_invalid_emitted): New globals.
3719         (async_background_execution_p): New function.
3720         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
3721         emitting the annotation if it has already been emitted.
3722         (annotate_display_prompt): New function.
3723         * annotate.h (annotate_display_prompt): New declaration.
3724         * event-top.c: Include annotate.h.
3725         (display_gdb_prompt): Call annotate_display_prompt.
3726
3727 2013-01-22  Pedro Alves  <palves@redhat.com>
3728
3729         * annotate.c (ignore_count_changed): Delete.
3730         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
3731         (annotate_ignore_count_change): Delete.
3732         (annotate_stopped): Don't emit a delayed breakpoints-changed
3733         annotation.
3734         * annotate.h (annotate_ignore_count_change): Delete.
3735         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
3736         annotate_ignore_count_change.
3737
3738 2013-01-22  Tom Tromey  <tromey@redhat.com>
3739
3740         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
3741         require_rvalue for a register location.
3742
3743 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
3744
3745         * breakpoint.c (print_one_breakpoint_location): Add MI
3746         field 'thread-groups' when printing a breakpoint.
3747         (output_thread_groups): New function.
3748
3749 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
3750
3751         * python/lib/gdb/commands/explore.py
3752         (CompoundExplorer.explore_expr): Correct the name of a method
3753         being invoked.
3754         (ExploreTypeCommand.invoke): Add a missing 'return'.
3755
3756 2013-01-21  Tom Tromey  <tromey@redhat.com>
3757
3758         * gdb_obstack.h (obconcat): Move declaration here, from...
3759         * symfile.h (obconcat): ... here.
3760         * gdb_obstack.c: New file.
3761         (obconcat): Move from...
3762         * symfile.c (obconcat): ... here.
3763         * Makefile.in (SFILES): Add gdb_obstack.c.
3764         (COMMON_OBS): Add gdb_obstack.o.
3765
3766 2013-01-21  Tom Tromey  <tromey@redhat.com>
3767
3768         * symfile.h (obsavestring): Don't declare.
3769         * symfile.c (obsavestring): Remove.
3770         * ada-exp.y: Use obstack_copy0, not obsavestring.
3771         * ada-lang.c: Use obstack_copy0, not obsavestring.
3772         * coffread.c: Use obstack_copy0, not obsavestring.
3773         * cp-namespace.c: Use obstack_copy0, not obsavestring.
3774         * dbxread.c: Use obstack_copy0, not obsavestring.
3775         * dwarf2read.c: Use obstack_copy0, not obsavestring.
3776         * jit.c: Use obstack_copy0, not obsavestring.
3777         * mdebugread.c: Use obstack_copy0, not obsavestring.
3778         * psymtab.c: Use obstack_copy0, not obsavestring.
3779         * stabsread.c: Use obstack_copy0, not obsavestring.
3780         * xcoffread.c: Use obstack_copy0, not obsavestring.
3781
3782 2013-01-21  Tom Tromey  <tromey@redhat.com>
3783
3784         * dwarf2read.c (fixup_go_packaging): Save package name
3785         on objfile obstack.
3786         * gdbtypes.c (init_type): Don't copy name.
3787
3788 2013-01-21  Tom Tromey  <tromey@redhat.com>
3789
3790         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
3791         const.
3792         (struct attribute) <u.str>: Now const.
3793         (struct fnfieldlist) <name>: Now const.
3794         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
3795         (partial_die_parent_scope): Make return type const.
3796         (partial_die_full_name, add_partial_symbol): Update.
3797         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
3798         'name' const.
3799         (find_file_and_directory): Make 'name' and 'comp_dir' const.
3800         (read_file_scope, read_func_scope, dwarf2_add_field)
3801         (dwarf2_add_member_fn, read_structure_type)
3802         (process_enumeration_scope, read_array_type, read_module_type)
3803         (read_base_type, read_subrange_type): Update.
3804         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
3805         (new_symbol_full, guess_full_die_structure_name): Update.
3806         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
3807         (dwarf2_name): Return const type.
3808         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
3809         const.
3810
3811 2013-01-21  Tom Tromey  <tromey@redhat.com>
3812
3813         * gdbtypes.c (init_type): Make 'name' const.
3814         * gdbtypes.h (init_type): Update.
3815
3816 2013-01-21  Tom Tromey  <tromey@redhat.com>
3817
3818         * buildsym.c (patch_subfile_names): Use set_last_source_file.
3819         (start_symtab): Make 'name' and 'dirname' const.  Use
3820         set_last_source_file.
3821         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
3822         (last_source_file): Define.  Now static.
3823         (set_last_source_file, get_last_source_file): New functions.
3824         * buildsym.h (last_source_file): Don't declare.
3825         (start_symtab): Update.
3826         (set_last_source_file, get_last_source_file): Declare.
3827         * coffread.c (complete_symtab): Use set_last_source_file.
3828         (coff_end_symtab): Likewise.
3829         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
3830         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
3831         set_last_source_file.
3832         (process_one_symbol): Use get_last_source_file.
3833         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
3834         (psymtab_to_symtab_1): Use get_last_source_file.
3835         * xcoffread.c (process_linenos): Use get_last_source_file.
3836         (complete_symtab): Use set_last_source_file.
3837         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
3838         (scan_xcoff_symtab): Use set_last_source_file.
3839
3840 2013-01-21  Tom Tromey  <tromey@redhat.com>
3841
3842         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
3843         (symbol_set_names): Remove casts.  Handle field const-ness.
3844
3845 2013-01-21  Tom Tromey  <tromey@redhat.com>
3846
3847         * dwarf2read.c (new_symbol_full): Remove cast.
3848         * symtab.c (symbol_set_demangled_name): Make 'name' const.
3849         * symtab.h (symbol_set_demangled_name): Update.
3850
3851 2013-01-21  Tom Tromey  <tromey@redhat.com>
3852
3853         * main.c (captured_main): Call bfd_init.
3854
3855 2013-01-21  Tom Tromey  <tromey@redhat.com>
3856
3857         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
3858         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
3859         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
3860         * NEWS: Update.
3861
3862 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3863
3864         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
3865
3866 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3867
3868         Fix gdb.fortran/common-block.exp crash in PIE mode.
3869         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
3870         LOC_COMMON_BLOCK.
3871         * f-valprint.c (info_common_command_for_block): Expect
3872         LOC_COMMON_BLOCK in gdb_assert.
3873         * symtab.h (struct general_symbol_info): Update comment for the
3874         common_block member.
3875         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
3876         (enum address_class): New member LOC_COMMON_BLOCK.
3877
3878 2013-01-18  David Blaikie  <dblaikie@gmail.com>
3879
3880         * MAINTAINERS (Write After Approval): Add "David Blaikie".
3881
3882 2013-01-18  Tom Tromey  <tromey@redhat.com>
3883
3884         PR c++/14999:
3885         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
3886         Call require_rvalue.
3887
3888 2013-01-18  Yao Qi  <yao@codesourcery.com>
3889
3890         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
3891         (dbx_read_symtab): New declaration.
3892         (dbx_psymtab_to_symtab): Delete.
3893         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
3894         Rename parameter PST to SELF.  Exchanged two parameters.
3895         (start_psymtab): Caller update.
3896         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
3897         (dwarf2_read_symtab): New declaration.
3898         (dwarf2_psymtab_to_symtab): Delete.
3899         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
3900         Rename parameter PST to SELF.  Exchanged two parameters.
3901         (create_partial_symtab): Caller update.
3902         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
3903         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
3904         Rename parameter PST to SELF.  Exchanged two parameters.
3905         (parse_partial_symbols, new_psymtab): Caller update.
3906         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
3907         two parameters.
3908         * psymtab.c (psymtab_to_symtab): Caller update.
3909         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
3910         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
3911         Rename parameter PST to SELF.  Exchanged two parameters.
3912         (xcoff_start_psymtab): Caller update.
3913
3914 2013-01-18  Yao Qi  <yao@codesourcery.com>
3915
3916         * infrun.c (proceed): Rename local variable 'oneproc' to
3917         'force_step'.
3918
3919 2013-01-17  Doug Evans  <dje@google.com>
3920
3921         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
3922         (dw2_build_type_unit_groups): Delete.  All uses updated.
3923
3924         * symtab.h (struct symbol_search): Add comment.
3925
3926 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3927
3928         * symtab.c (compare_filenames_for_search): New comment for
3929         HAS_DRIVE_SPEC.
3930
3931 2013-01-17  Tom Tromey  <tromey@redhat.com>
3932
3933         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
3934
3935 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3936
3937         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
3938         initialize it by existing make_cleanup.  Call new do_cleanups.
3939
3940 2013-01-17  Tom Tromey  <tromey@redhat.com>
3941
3942         * cp-abi.c (cp_abi_completer): New function.
3943         (_initialize_cp_abi): Set completer for "set cp-abi".
3944
3945 2013-01-17  Tom Tromey  <tromey@redhat.com>
3946
3947         * mem-break.c: Remove obsolete comment.
3948         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
3949
3950 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
3951
3952         * jit.c (jit_reader_load_command): Interpret the jit reader name
3953         as an absolute path if it begins with a forward slash.
3954
3955 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
3956
3957         PR gdb/14550
3958
3959         * jit.c (finalize_symtab): Ensure that only the global block has a
3960         NULL superblock.
3961
3962 2013-01-17  Pedro Alves  <palves@redhat.com>
3963
3964         * acinclude.m4: Include ../config/plugins.m4,
3965         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
3966         * Makefile.in (aclocal_m4_deps): Update.
3967         * aclocal.m4: Renegerate.
3968
3969 2013-01-16  Doug Evans  <dje@google.com>
3970
3971         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
3972
3973 2013-01-16  Pedro Alves  <palves@redhat.com>
3974             Tom Tromey  <tromey@redhat.com>
3975
3976         PR cli/7221:
3977         * NEWS: Add "catch signal".
3978         * breakpoint.c (base_breakpoint_ops): No longer static.
3979         (bpstat_explains_signal): New function.
3980         (init_catchpoint): No longer static.
3981         (base_breakpoint_explains_signal): New function.
3982         (base_breakpoint_ops): Initialize new field.
3983         * breakpoint.h (enum bpstat_signal_value): New.
3984         (struct breakpoint_ops) <explains_signal>: New field.
3985         (bpstat_explains_signal): Remove macro, declare as function.
3986         (base_breakpoint_ops, init_catchpoint): Declare.
3987         * break-catch-sig.c: New file.
3988         * inferior.h (signal_catch_update): Declare.
3989         * infrun.c (signal_catch): New global.
3990         (handle_syscall_event): Update for change to
3991         bpstat_explains_signal.
3992         (handle_inferior_event): Likewise.  Always handle random signals
3993         via bpstats.
3994         (signal_cache_update): Check signal_catch.
3995         (signal_catch_update): New function.
3996         (_initialize_infrun): Initialize signal_catch.
3997         * Makefile.in (SFILES): Add break-catch-sig.c.
3998         (COMMON_OBS): Add break-catch-sig.o.
3999
4000 2013-01-16  Tom Tromey  <tromey@redhat.com>
4001
4002         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
4003         (print_one_catch_solib, print_one_catch_syscall)
4004         (print_one_catch_exec, print_one_exception_catchpoint): Emit
4005         "catch-type".
4006
4007 2013-01-16  Yao Qi  <yao@codesourcery.com>
4008
4009         * printcmd.c (current_display_number): Make it static.
4010
4011 2013-01-16  Yao Qi  <yao@codesourcery.com>
4012
4013         * infcmd.c (step_once): Don't check '!single_inst' as it was
4014         checked before.
4015
4016 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4017
4018         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
4019
4020 2013-01-14  Tom Tromey  <tromey@redhat.com>
4021
4022         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
4023         set command.
4024         * command.h (add_setshow_string_noescape_cmd): Update.
4025         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
4026         (complete_set_gnutarget): New function.
4027         (_initialize_core): Set the "set gnutarget" completer.
4028
4029 2013-01-14  Tom Tromey  <tromey@redhat.com>
4030
4031         PR symtab/14442:
4032         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
4033         (c_type_print_modifier): Likewise.
4034         * dwarf2read.c (read_tag_restrict_type): New function.
4035         (read_type_die_1): Handle DW_TAG_restrict_type.
4036         * gdbtypes.c (make_restrict_type): New function.
4037         (recursive_dump_type): Handle TYPE_RESTRICT.
4038         * gdbtypes.h (enum type_flag_values): Renumber.
4039         (enum type_instance_flag_value): Add
4040         TYPE_INSTANCE_FLAG_RESTRICT.
4041         (TYPE_RESTRICT): New macro.
4042         (make_restrict_type): Declare.
4043
4044 2013-01-14  Tom Tromey  <tromey@redhat.com>
4045
4046         PR symtab/14931:
4047         * psymtab.c (struct psymtab_state): New.
4048         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
4049         functions.
4050         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
4051         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
4052
4053 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
4054             Pedro Alves  <palves@redhat.com>
4055
4056         PR remote/14786
4057
4058         * remote.c (remote_threads_info): Make a copy of the reply from
4059         qfThreadInfo and use that instead of rs->buf.
4060
4061 2013-01-14  Yao Qi  <yao@codesourcery.com>
4062
4063         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
4064         (dbx_psymtab_to_symtab): Likewise.
4065         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
4066         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
4067         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
4068
4069 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4070
4071         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
4072         make_cleanup_restore_current_language.  Call set_language.  Move
4073         OLD_CHAIN and INNER_CHAIN cleanups.
4074         * utils.c (do_restore_current_language)
4075         (make_cleanup_restore_current_language): New functions.
4076         * utils.h (make_cleanup_restore_current_language): New declaration.
4077
4078 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4079
4080         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
4081         non-existing files.
4082
4083         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
4084         non-existing files if FILENAME is already absolute.
4085
4086 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4087
4088         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
4089         fputs_filtered.  Append trailing newline.
4090
4091 2013-01-11  Yao Qi  <yao@codesourcery.com>
4092             Stan Shebs  <stan@codesourcery.com>
4093
4094         * psymtab.c (init_psymbol_list): Clarify the comment.
4095
4096 2013-01-11  Yao Qi  <yao@codesourcery.com>
4097
4098         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
4099         (update_dprintf_command_list): Assert that 'printf_line' is
4100         non-null.  Remove condition check.
4101
4102 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4103
4104         Code cleanup.
4105         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
4106         type const char *.
4107         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
4108         const char *.
4109         * tui/tui-source.h (tui_source_is_displayed): Likewise.
4110
4111 2013-01-09  Anthony Green  <green@moxielogic.com>
4112
4113         * cp-abi.c (cplus_print_vtable): Don't return value from void
4114         function.
4115         * ada-lang.c (re_set_catch_assert): Ditto.
4116
4117 2013-01-09  Doug Evans  <dje@google.com>
4118
4119         * symfile.h (quick_symbol_functions): Delete member
4120         pre_expand_symtabs_matching.  All uses removed.
4121         * dwarf2read.c (dw2_lookup_symbol): Implement.
4122         (dw2_do_expand_symtabs_matching): Delete.
4123         (dw2_pre_expand_symtabs_matching): Delete.
4124         (struct dw2_symtab_iterator): New type.
4125         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
4126         (dw2_expand_symtabs_for_function): Rewrite.
4127         (dwarf2_gdb_index_functions): Update.
4128         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
4129         (psym_functions): Update.
4130
4131 2013-01-09  Tom Tromey  <tromey@redhat.com>
4132
4133         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
4134         * configure: Rebuild.
4135         * configure.ac: Add somread.o to the build if BFD has SOM
4136         support.
4137         * somread.c: Include som/aout.h, not syms.h.
4138         (som_symtab_read): Use som_external_symbol_dictionary_record.
4139         Unpack records manually.
4140         (_initialize_somread): Declare.
4141
4142 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
4143
4144         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
4145         Cast return_address to 64bits.
4146
4147 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
4148
4149         * printcmd.c: Remove define of function output_command.
4150         * tracepoint.c: Remove extern of function output_command.
4151         * valprint.h: (output_command): New extern.
4152
4153 2013-01-07  Tom Tromey  <tromey@redhat.com>
4154
4155         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
4156         Remove.
4157         (objc_language_defn): Use c_printchar, c_printstr,
4158         c_emit_char.
4159
4160 2013-01-07  Tom Tromey  <tromey@redhat.com>
4161
4162         PR cli/7719:
4163         * NEWS: Update.
4164         * ada-valprint.c (printstr, print_field_values): Remove
4165         "inspect_it" code.
4166         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
4167         code.
4168         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
4169         code.
4170         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
4171         * main.c (captured_main): Remove "epoch" argument.
4172         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
4173         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
4174         * p-valprint.c (pascal_object_print_value_fields): Remove
4175         "inspect_it" code.
4176         * printcmd.c (print_command_1): Remove 'inspect' argument.
4177         (print_command, call_command): Update.
4178         (inspect_command): Remove.
4179         (_initialize_printcmd): Make "inspect" an alias for "print".
4180         * top.c (epoch_interface): Remove.
4181         * top.h (epoch_interface): Remove.
4182         * valprint.c (user_print_options): Update.
4183         (print_converted_chars_to_obstack): Remove "inspect_it" code.
4184         * valprint.h (struct value_print_options) <inspect_it>: Remove
4185         field.
4186
4187 2013-01-04  Tom Tromey  <tromey@redhat.com>
4188
4189         * valprint.h (read_string): Add 'extern'.
4190
4191 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
4192
4193         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
4194         used to decide whether to define darwin_read_dyld_info or not.
4195
4196 2013-01-03  Pierre Muller  <muller@sourceware.org>
4197
4198         * main.c (relocate_gdb_directory): Avoid calling stat function
4199         if DIR is empty.
4200
4201 2013-01-03  Yao Qi  <yao@codesourcery.com>
4202
4203         * psymtab.c (fixup_psymbol_section): Update declaration.
4204         (fixup_psymbol_section): Remove code returning value.
4205
4206 2013-01-03  Yao Qi  <yao@codesourcery.com>
4207
4208         * symtab.h: Remove some out of date comments.
4209          (enum exception_event_kind): Move it ...
4210         * breakpoint.c: ... here.
4211
4212 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
4213
4214         PR gdb/14405
4215         * darwin-nat.c (darwin_read_dyld_info): Only build if
4216         TASK_DYLD_INFO_COUNT is defined.
4217         (darwin_xfer_partial): Call darwin_read_dyld_info only if
4218         TASK_DYLD_INFO_COUNT is defined.
4219
4220 2013-01-02  Tom Tromey  <tromey@redhat.com>
4221
4222         * symfile.h (struct ecoff_debug_hack): Remove.
4223         * objfiles.c: Don't include mdebugread.h.
4224
4225 2013-01-02  Tom Tromey  <tromey@redhat.com>
4226
4227         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
4228         * configure.ac: Check for Mach-O support in BFD.  Update
4229         CONFIG_OBS.
4230         * configure: Rebuild.
4231
4232 2013-01-02  Tom Tromey  <tromey@redhat.com>
4233
4234         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
4235         * configure.ac: Use GDB_AC_CHECK_BFD.
4236         * configure: Rebuild.
4237
4238 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
4239
4240         * MAINTAINERS: Update my email.
4241
4242 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
4243
4244         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
4245
4246 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
4247
4248         * rs6000-nat.c (bss_data_overlap): New function.
4249         (vmap_symtab): Use it to adjust the .bss section's offset.
4250
4251 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
4252
4253         Update year range in copyright notice of all files.
4254
4255 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
4256
4257         * top.c (print_gdb_version): Update copyright year.
4258
4259 For older changes see ChangeLog-2012.
4260 \f
4261 Local Variables:
4262 mode: change-log
4263 left-margin: 8
4264 fill-column: 74
4265 version-control: never
4266 coding: utf-8
4267 End: