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