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