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