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