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