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