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