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