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