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