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