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