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