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