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