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