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