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