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