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