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