c07579c8d7201f652f278ddc99f0937d6342d54e
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2 Pedro Alves <palves@redhat.com>
3
4 PR gdb/11568
5 * breakpoint.c (remove_threaded_breakpoints): New function.
6 (_initialize_breakpoint): Attach remove_threaded_breakpoints
7 as thread_exit observer.
8
9 2013-09-17 Pedro Alves <palves@redhat.com>
10
11 PR gdb/15911
12 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
13 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
14 * corelow.c (core_open):
15 * frame.h (print_stack_frame, print_frame_info): New
16 'set_current_sal' parameter.
17 * infcmd.c (finish_command, kill_command): Adjust call to
18 print_stack_frame.
19 * inferior.c (inferior_command): Likewise.
20 * infrun.c (normal_stop): Likewise.
21 * linux-fork.c (linux_fork_context): Likewise.
22 * record-full.c (record_full_goto_entry, record_full_restore):
23 Likewise.
24 * remote-mips.c (common_open): Likewise.
25 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
26 Use it.
27 (print_frame_info): New 'set_current_sal' parameter. Set the last
28 displayed sal depending on the new paremeter instead of looking at
29 print_what.
30 (backtrace_command_1, select_and_print_frame, frame_command)
31 (current_frame_command, up_command, down_command): Adjust call to
32 print_stack_frame.
33 * thread.c (print_thread_info, restore_selected_frame)
34 (do_captured_thread_select): Adjust call to print_stack_frame.
35 * tracepoint.c (tfind_1): Likewise.
36 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
37 (mi_cmd_stack_info_frame): Likewise.
38 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
39 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
40
41 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
42
43 * value.c (isvoid_internal_fn): Replace "parameter" with
44 "argument".
45
46 2013-09-16 Stan Shebs <stan@codesourcery.com>
47
48 * README: Update references to writing code for GDB.
49 * configure.ac (build_warnings): Remove obsolete comment.
50 * configure: Regenerate.
51 * gdbarch.sh: Remove references to gdbint.texinfo.
52 * gdbarch.h: Regenerate.
53 * gdbtypes.c (objfile_type): Remove comments referencing internals
54 manual and D10V.
55
56 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
57
58 * NEWS: Mention new convenience function $_isvoid.
59 * value.c (isvoid_internal_fn): New function.
60 (_initialize_values): Add new convenience function $_isvoid.
61
62 2013-09-16 Pierre Muller <muller@sourceware.org>
63
64 * arm-linux-tdep.c: Add "elf/common.h" header.
65 Remove AT_HWCAP macro definintion as it is provided in
66 added include file.
67 * s390-tdep.c: Remove system header <elf.h>
68 Add "elf/common.h" header for AT_HWCAP definition.
69 (s390_core_read_description): Use correct CORE_ADDR
70 for hwcap local variable used as third parameter
71 of function target_auxv_search.
72
73 2013-09-14 Pierre Muller <muller@sourceware.org>
74 Tom Tromey <tromey@redhat.com>
75 Pedro Alves <palves@redhat.com>
76
77 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
78 mode if operating system doesn't know O_CLOEXEC.
79
80 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
81
82 Code cleanup.
83 * symfile.c (reread_symbols): Move variable obfd_filename to a more
84 inner block.
85
86 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
87
88 * NEWS: Mention TDB support.
89 * features/s390-tdb.xml: New file.
90 * features/s390-te-linux64.xml: New file.
91 * features/s390x-te-linux64.xml: New file.
92 * features/Makefile (WHICH): Add new tdescs above.
93 (s390-te-linux64-expedite): Set.
94 (s390x-te-linux64-expedite): Set.
95 * features/s390-te-linux64.c: New file (generated).
96 * features/s390x-te-linux64.c: New file (generated).
97 * regformats/s390-te-linux64.dat: New file (generated).
98 * regformats/s390x-te-linux64.dat: New file (generated).
99 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
100 (HWCAP_S390_TE): Likewise.
101 (S390_TDB_DWORD0_REGNUM): Likewise.
102 (S390_TDB_DWORD0_REGNUM): Likewise.
103 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
104 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
105 (S390_TDB_ATIA_REGNUM): Likewise.
106 (S390_TDB_R0_REGNUM): Likewise.
107 (S390_TDB_R1_REGNUM): Likewise.
108 (S390_TDB_R2_REGNUM): Likewise.
109 (S390_TDB_R3_REGNUM): Likewise.
110 (S390_TDB_R4_REGNUM): Likewise.
111 (S390_TDB_R5_REGNUM): Likewise.
112 (S390_TDB_R6_REGNUM): Likewise.
113 (S390_TDB_R7_REGNUM): Likewise.
114 (S390_TDB_R8_REGNUM): Likewise.
115 (S390_TDB_R9_REGNUM): Likewise.
116 (S390_TDB_R10_REGNUM): Likewise.
117 (S390_TDB_R11_REGNUM): Likewise.
118 (S390_TDB_R12_REGNUM): Likewise.
119 (S390_TDB_R13_REGNUM): Likewise.
120 (S390_TDB_R14_REGNUM): Likewise.
121 (S390_TDB_R15_REGNUM): Likewise.
122 (S390_NUM_REGS): Increase.
123 (S390_IS_TDBREGSET_REGNUM): New macro.
124 (s390_regmap_tdb): Declare.
125 (s390_sizeof_tdbregset): Define.
126 (tdesc_s390_te_linux64): Declare.
127 (tdesc_s390x_te_linux64): Likewise.
128 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
129 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
130 (s390_regmap_tdb): New regmap.
131 (s390_supply_tdb_regset): New function.
132 (s390_tdb_regset): New regset.
133 (s390_linux64v2_regset_sections): Add TDB regset to list.
134 (s390x_linux64v2_regset_sections): Likewise.
135 (s390_regset_from_core_section): Recognize TDB core note section.
136 (s390_core_read_description): If HWCAP indicates TE support,
137 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
138 (s390_gdbarch_init): Handle TDB regset.
139 (_initialize_s390_tdep): Initialize new tdescs.
140 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
141 (have_regset_tdb): New variable.
142 (s390_native_supply): Support register invalidation.
143 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
144 (check_regset): Treat ENODATA as "regset exists".
145 (s390_linux_fetch_inferior_registers): Add TDB.
146 (s390_read_description): Check for TDB existence and select
147 appropriate tdesc.
148 * gdbserver/Makefile.in (clean): Add removal of new makefile
149 targets.
150 (s390-te-linux64.c): New makefile target.
151 (s390x-te-linux64.c): Likewise.
152 * gdbserver/configure.srv (srv_regobj): Append new objects
153 s390-te-linux64.o and s390x-te-linux64.o.
154 (srv_xmlfiles): Append new files s390-te-linux64.xml,
155 s390x-te-linux64.xml, and s390-tdb.xml.
156 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
157 declaration.
158 (tdesc_s390_te_linux64): Likewise.
159 (init_registers_s390x_te_linux64): Likewise.
160 (tdesc_s390x_te_linux64): Likewise.
161 (s390_check_regset): Treat ENODATA as "regset exists".
162 (s390_arch_setup): Add TDB regset support.
163 (initialize_low_arch): Initialize registers for new tdescs.
164
165 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
166
167 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
168 (S390_IS_FPREGSET_REGNUM): New macro.
169 * s390-tdep.c (s390_dwarf_regmap): Make const.
170 (regnum_is_gpr_full): New function for replacing repeated code.
171 (s390_pseudo_register_name): Use it.
172 (s390_pseudo_register_type): Likewise.
173 (s390_pseudo_register_read): Likewise.
174 (s390_pseudo_register_write): Likewise.
175 (s390_unwind_pseudo_register): Likewise.
176 (s390_regmap_gregset): New format for regmap.
177 (s390x_regmap_gregset): Likewise.
178 (s390_regmap_fpregset): Likewise.
179 (s390_regmap_upper): Likewise.
180 (s390_regmap_last_break): Likewise.
181 (s390_regmap_system_call): Likewise.
182 (s390_supply_regset): Adjust to new regmap format.
183 (s390_collect_regset): Likewise.
184 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
185 (s390_native_collect): Likewise.
186 (supply_gregset): Likewise.
187 (fill_gregset): Likewise.
188 (supply_fpregset): Likewise.
189 (fill_fpregset): Likewise.
190 (fetch_regset): Likewise.
191 (store_regset): Likewise.
192 (s390_linux_fetch_inferior_registers): Likewise.
193 (s390_linux_fetch_inferior_registers): Likewise.
194
195 2013-09-12 Andrew Pinski <apinski@cavium.com>
196
197 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
198
199 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
200
201 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
202
203 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
204
205 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
206
207 2013-09-06 Pedro Alves <palves@redhat.com>
208
209 * remote-sim.c (dump_mem, gdbsim_fetch_register)
210 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
211 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
212 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
213 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
214 gdb_stdlog.
215
216 2013-09-06 Pedro Alves <palves@redhat.com>
217
218 * remote-sim.c (dump_mem): Constify buf parameter.
219 gdbsim_xfer_inferior_memory): Rename to ...
220 (gdbsim_xfer_memory): ... this. Adjust interface as
221 target_xfer_partial helper.
222 (gdbsim_xfer_partial): New function.
223 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
224 Install a to_xfer_partial hook. Send output to gdb_stdlog.
225
226 2013-09-06 Pedro Alves <palves@redhat.com>
227
228 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
229 host_address_to_string, and send debug output to gdb_stdlog.
230
231 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
232
233 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
234 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
235 gdb_target_obs for cris target.
236 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
237 (cris_gdbarch_init): Move calls to
238 set_gdbarch_fetch_tls_load_module_address and
239 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
240 Add call to gdbarch_init_osabi.
241 * cris-linux-tdep.c: New file.
242 * cris-tdep.h: New file.
243
244 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
245
246 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
247 to deprecated_init_ui_hook.
248
249 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
250
251 * cli/cli-interp.c (_initialize_cli_interp): Add a
252 command_loop_proc to interp_procs.
253 * event-top.c (cli_command_loop): Change signature to match
254 interp_command_loop_ftype.
255 * event-top.h (cli_command_loop): Same.
256 * interps.c (interp_new): Require every interpreter to have a
257 command_loop_proc.
258 (current_interp_command_loop): Just call the command_loop_proc on
259 the current interpreter.
260 * tui/tui-interp.c (_initialize_tui_interp): Add a
261 command_loop_proc to interp_procs.
262
263 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
264
265 * cris-tdep.c (cris_gdbarch_init): Add call to
266 get_gdbarch_fetch_tls_load_module_address.
267
268 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
269
270 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
271 (cris_elf_gregset_t): Rename from elf_gregset_t.
272 (crisv32_elf_gregset_t): Adjust.
273 (cris_supply_gregset, fetch_core_registers): Adjust.
274
275 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
276
277 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
278
279 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
280
281 * defs.h (deprecated_command_loop_hook): Remove, including
282 references in comments.
283 * interps.c (current_interp_command_loop): No longer use
284 deprecated_command_loop_hook.
285 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
286 setup.
287 * top.c (deprecated_command_loop_hook): Remove.
288
289 2013-09-05 Pedro Alves <palves@redhat.com>
290
291 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
292 local is now int instead of ULONGEST. Print it with %d
293 instead of paddress.
294
295 2013-09-05 Tristan Gingold <gingold@adacore.com>
296
297 * MAINTAINERS: Remove avr maintainership.
298
299 2013-09-05 Pedro Alves <palves@redhat.com>
300
301 * findvar.c (value_of_register): Rework in terms of
302 value_of_register_lazy.
303
304 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
305
306 * symfile.c (add_symbol_file_command): Remove trailing
307 whitespaces and blank line after comment.
308
309 2013-09-05 Pedro Alves <palves@redhat.com>
310
311 * tui/tui-regs.c (tui_register_format): Don't look at the
312 register's name here. Return string representing register
313 value instead of storing it in the data element.
314 (tui_get_register): Compare register string representations
315 instead of register value states and contents.
316
317 2013-09-05 Pedro Alves <palves@redhat.com>
318
319 PR tui/15933
320 * tui/tui-regs.c (tui_show_registers): Show registers of the
321 selected frame, not the current frame.
322
323 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
324
325 * MAINTAINERS (Write After Approval): Add myself to the list.
326
327 2013-09-04 Doug Evans <dje@google.com>
328
329 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
330 (queue_and_load_dwo_tu): New function.
331 (lookup_dwo_signatured_type): Set per_cu.tu_read.
332 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
333 Make dependent_cu optional.
334 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
335 and an older .gdb_index is in use, queue and load all its TUs too.
336
337 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
338
339 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
340 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
341 variable search_flags.
342 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
343 (OPF_RETURN_REALPATH): ... here.
344 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
345 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
346 call. Twice.
347 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
348 openp call.
349 * solib.c (solib_find): Likewise. Four times.
350 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
351 in the function comment and for the realpath_fptr variable.
352 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
353 (find_and_open_source): Likewise. Twice.
354 * symfile.c (symfile_bfd_open): Likewise, also twice.
355
356 2013-09-04 Doug Evans <dje@google.com>
357
358 * progspace.c (save_current_space_and_thread): Remove unnecessary
359 call to save_current_inferior.
360
361 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
362
363 * sh64-tdep.c (sh64_do_register): Return after printing message
364 about unavailable register contents.
365
366 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
367 Pedro Alves <palves@redhat.com>
368
369 * symfile.c (add_symbol_file_command): Error out on unknown
370 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
371 options and collapse into single conditional branch.
372
373 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
374
375 * inf-child.c (inf_child_follow_fork): New parameter
376 detach_fork.
377 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
378 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
379 * inferior.h (detach_fork): Remove.
380 * infrun.c (detach_fork): Adjust comment and make it
381 static.
382 (follow_fork): Pass detach_fork parameter to
383 target_follow_fork.
384 * linux-nat.c (linux_child_follow_fork): New parameter
385 detach_fork.
386 * target.c (target_follow_fork): New parameter detach_fork.
387 Pass detach_fork as parameter and print its value.
388 * target.h (struct target_ops) <to_follow_fork>: New int
389 parameter.
390 (target_follow_fork): New parameter detach_fork.
391
392 2013-09-03 Joel Brobecker <brobecker@adacore.com>
393
394 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
395 Replace sec->bfd by sec->the_bfd_section->owner.
396
397 2013-09-03 Yao Qi <yao@codesourcery.com>
398
399 * linux-tdep.c (linux_is_uclinux): New function. Code moved
400 from linux_has_shared_address_space.
401 (linux_has_shared_address_space): Call linux_is_uclinux.
402 * linux-tdep.h (linux_is_uclinux): Declare.
403 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
404 linux_is_uclinux.
405
406 2013-09-03 Yao Qi <yao@codesourcery.com>
407
408 * config/djgpp/fnchange.lst: Remove entry of
409 i386-interix-nat.c and i386-interix-tdep.c.
410 * configure.ac: Remove '*-*-interix*'.
411 * configure: Re-generated.
412 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
413 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
414 obsolete comments.
415 * osabi.c (gdb_osabi_names): Remove "Interix".
416
417 2013-09-03 Yao Qi <yao@codesourcery.com>
418
419 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
420
421 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
422
423 * record.h (record_print_flag) <record_print_src_line,
424 record_print_insn_range>: Rename into ...
425 (record_print_flag) <record_print_src_line,
426 record_print_insn_range>: ... this. Update all users.
427
428 2013-09-02 Pierre Muller <muller@sourceware.org>
429
430 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
431 error code.
432
433 2013-09-02 Pierre Muller <muller@sourceware.org>
434
435 * windows-nat.c (windows_xfer_memory): Fix compilation failure
436 by use of plongest function.
437
438 2013-09-02 Tristan Gingold <gingold@adacore.com>
439
440 * NEWS: Add entry mentioning support for native Windows x64
441 SEH data.
442
443 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
444 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
445 (struct amd64_windows_frame_cache): New struct.
446 (amd64_windows_w2gdb_regnum): New global.
447 (pc_in_range, amd64_windows_frame_decode_epilogue)
448 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
449 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
450 (amd64_windows_frame_this_id): New functions.
451 (amd64_windows_frame_unwind): New static global.
452 (amd64_windows_skip_prologue): New function.
453 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
454 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
455 with amd64_windows_skip_prologue.
456
457 2013-08-30 Joel Brobecker <brobecker@adacore.com>
458
459 GDB 7.6.1 released.
460
461 2013-08-30 Pedro Alves <palves@redhat.com>
462
463 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
464 SRC_AND_LOC.
465
466 2013-08-30 Pedro Alves <palves@redhat.com>
467
468 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
469 warning text.
470
471 2013-08-30 Pedro Alves <palves@redhat.com>
472
473 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
474 Adjust arguments to print_stack_frame.
475
476 2013-08-30 Pedro Alves <palves@redhat.com>
477
478 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
479
480 2013-08-30 Pedro Alves <palves@redhat.com>
481
482 * frame.h (show_and_print_stack_frame): Delete declaration.
483
484 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
485
486 PR python/15461
487
488 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
489 (archpy_name): Check for valid architecture.
490 (archpy_disassemble): Ditto.
491
492 2013-08-29 Joel Brobecker <brobecker@adacore.com>
493
494 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
495 instead of "long long" in call to ptrace64.
496
497 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
498
499 * mi/mi-interp.c (mi_command_loop): Change signature to match
500 interp_command_loop_ftype.
501 (mi1_command_loop): Remove.
502 (mi2_command_loop): Remove.
503 (mi3_command_loop): Remove.
504 (mi_interpreter_resume): Remove setting of
505 deprecated_command_loop_hook.
506 (_initialize_mi_interp): Set mi_command_loop as the command loop
507 callback.
508
509 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
510
511 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
512 value_type.
513
514 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
515
516 * value.c (allocate_value_contents): Make static.
517 * value.h (allocate_value_contents): Remove prototype.
518
519 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
520
521 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
522 of assembling value via allocate_value_lazy and attribute setter.
523 * findvar.c (default_read_var_value): Use value_at_lazy instead of
524 assembling value via allocate_value_lazy and attribute setter.
525 * valops.c (do_search_struct_field): Use value_at_lazy instead of
526 assembling value via allocate_value_lazy and attribute setter.
527
528 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
529
530 * value.c (value_from_contents_and_address): Replace allocate_value and
531 memcpy with value_from_contents.
532
533 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
534
535 * python/py-framefilter.c (py_print_frame): Remove usage of
536 PyString_AsString. Use python_string_to_host_string instead.
537 Refactor function to work with a string as a new allocation
538 instead of a pointer.
539 (py_print_frame): Ditto.
540 * python/lib/gdb/frames.py (return_list): Cain iterators together
541 instead of adding them as a list.
542 (_sort_list): Call return_list, and remove duplicate code.
543 (execute_frame_filters): Convert iterator to a list with list().
544 * python/lib/gdb/command/frame_filters.py
545 (SetFrameFilterPriority._set_filter_priority): Convert priority
546 attribute to an integer.
547 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
548 wrapper function __next__.
549 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
550 define as "str".
551
552 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
553
554 PR python/15752
555 * python/py-framefilter.c (apply_frame_filter): Check
556 gdb_python_initialized. Exit if the Python frame-filter code
557 cannot be initialized.
558
559 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
560
561 PR cli/15842
562 * top.c (print_gdb_version): Remove erroneous newline after help
563 text.
564
565 2013-08-29 Yao Qi <yao@codesourcery.com>
566
567 * varobj.c (install_dynamic_child): Remove trailing space.
568 Add one blank line after variable declaration.
569
570 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
571
572 PR gdb/15415
573 * corefile.c (get_exec_file): Use exec_filename.
574 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
575 * exec.c (exec_close): Free EXEC_FILENAME.
576 (exec_file_attach): New variable canonical_pathname. Use
577 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
578 EXEC_FILENAME.
579 * exec.h (exec_filename): New.
580 * inferior.c (print_inferior, inferior_command): Use
581 PSPACE_EXEC_FILENAME.
582 * mi/mi-main.c (print_one_inferior): Likewise.
583 * progspace.c (clone_program_space, print_program_space): Likewise.
584 * progspace.h (struct program_space): New field pspace_exec_filename.
585 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
586 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
587
588 2013-08-28 Will Newton <will.newton@linaro.org>
589
590 * common/linux-ptrace.c: Include stdint.h unconditionally.
591
592 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
593
594 Code cleanup.
595 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
596
597 2013-08-28 Yao Qi <yao@codesourcery.com>
598 Pedro Alves <palves@redhat.com>
599
600 * event-top.c (gdb_setup_readline): Call stderr_fileopen
601 instead of stdio_fileopen.
602 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
603 .Call stderr_fileopen instead of stdio_fileopen.
604 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
605 [__MINGW32__] (stderr_file_fputs): New function.
606 (stderr_fileopen): New function.
607 * ui-file.h (stderr_fileopen): Declare.
608
609 2013-08-27 Doug Evans <dje@google.com>
610
611 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
612 (struct dwarf2_per_cu_data): Ditto.
613 (maybe_queue_comp_unit): Delete forward decl. Add comment.
614 (process_imported_unit_die): Ditto.
615 (follow_die_sig_1): Simplify assert.
616
617 2013-08-27 Pedro Alves <palves@redhat.com>
618
619 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
620 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
621 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
622 windows_xfer_memory directly.
623 (init_windows_ops): Don't install a deprecated_xfer_memory method.
624
625 2013-08-27 Pedro Alves <palves@redhat.com>
626
627 * darwin-nat.c (darwin_xfer_memory): Delete.
628 (_initialize_darwin_inferior): Don't install a
629 deprecated_xfer_memory method.
630
631 2013-08-27 Pedro Alves <pedro@codesourcery.com>
632 Yao Qi <yao@codesourcery.com>
633
634 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
635 (parse_no_frames_option): Remove.
636 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
637 (mi_cmd_stack_list_args): Adjust.
638 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
639 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
640 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
641 Caller update.
642 (list_args_or_locals): New parameter 'skip_unavailable'.
643 Handle it.
644 * valprint.c (scalar_type_p): Rename to ...
645 (val_print_scalar_type_p): ... this. Make extern.
646 (val_print, value_check_printable): Adjust.
647 * valprint.h (val_print_scalar_type_p): Declare.
648 * value.c (value_entirely_unavailable): New function.
649 * value.h (value_entirely_unavailable): Declare.
650
651 * NEWS: Mention the new option "--skip-unavailable" to MI
652 commands '-stack-list-locals', '-stack-list-arguments' and
653 '-stack-list-variables'.
654
655 2013-08-27 Yao Qi <yao@codesourcery.com>
656
657 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
658 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
659 options.
660 * mi/mi-getopt.c (mi_getopt): Remove.
661 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
662 'error_on_unknown'.
663 (mi_getopt): Call mi_getopt_1.
664 (mi_getopt_silent): New.
665 * mi/mi-getopt.h (mi_getopt_silent): Declare.
666
667 2013-08-26 Doug Evans <dje@google.com>
668
669 PR symtab/15885
670 * dwarf2read.c (dw2_dump): Print some minimal information indicating
671 .gdb_index is in use.
672 * symfile.c (reread_symbols): Reset objfile->sf.
673
674 * NEWS: Document "mt print objfiles" now takes optional regexp.
675 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
676 regexp of objfiles to print.
677 (_initialize_symmisc): Update doc string for "mt print objfiles".
678
679 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
680 missing debug info checks.
681
682 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
683 Ulrich Weigand <uweigand@de.ibm.com>
684
685 * xcoffread.c (arrange_linetable): Add fix to correctly handle
686 line tables generated by XLC compiled binaries.
687
688 2013-08-23 Doug Evans <dje@google.com>
689
690 * symmisc.c (dump_symtab): Delete prototype.
691 (dump_msymbols, dump_objfile): Ditto.
692 (maintenance_info_symtabs): Mark as dont_repeat.
693 (_initialize_symmisc): Improve doc string for "mt info symtabs".
694
695 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
696 debugging printf to better location.
697
698 2013-08-23 Pedro Alves <palves@redhat.com>
699
700 * target.c (target_read_live_memory): Change type of 'ret' local
701 to LONGEST.
702
703 2013-08-23 Pedro Alves <palves@redhat.com>
704
705 * remote.c (remote_write_bytes_aux, remote_write_bytes)
706 (remote_read_bytes): Change return type to LONGEST, and adjust to
707 return a target_xfer_error on error.
708 (remote_xfer_memory): Delete.
709 (remote_flash_write): Change type of 'ret' local to LONGEST.
710 (remote_xfer_partial, remote_xfer_partial): Adjust.
711 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
712
713 2013-08-23 Pierre Muller <muller@sourceware.org>
714
715 ARI fix: Push # directives to start of line.
716 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
717
718 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
719
720 PR gdb/15501
721 * breakpoint.c (enable_command, disable_command): Iterate over
722 all specified breakpoint locations.
723
724 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
725
726 * common/linux-ptrace.c (linux_fork_to_function): Push #
727 directives to the start of the line.
728 (linux_check_ptrace_features): Fix warning message to use
729 the "_" markup.
730
731 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
732
733 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
734 nat/linux-waitpid.h.
735 (linux-waitpid.o): New object file rule.
736 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
737 (current_ptrace_options): Moved from linux-nat.c.
738 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
739 parameters.
740 (linux_fork_to_function): New function.
741 (linux_grandchild_function): Likewise.
742 (linux_child_function): Likewise.
743 (linux_check_ptrace_features): New function, heavily
744 based on linux-nat.c:linux_test_for_tracefork.
745 (linux_enable_event_reporting): New function.
746 (ptrace_supports_feature): Likewise.
747 (linux_supports_tracefork): Likewise.
748 (linux_supports_traceclone): Likewise.
749 (linux_supports_tracevforkdone): Likewise.
750 (linux_supports_tracesysgood): Likewise.
751 * common/linux-ptrace.h (HAS_NOMMU): Moved from
752 gdbserver/linux-low.c.
753 (linux_enable_event_reporting): New declaration.
754 (linux_supports_tracefork): Likewise.
755 (linux_supports_traceclone): Likewise.
756 (linux_supports_tracevforkdone): Likewise.
757 (linux_supports_tracesysgood): Likewise.
758 * config.in (PTRACE_TYPE_ARG4): Regenerate.
759 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
760 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
761 * config/arm/linux.mh (NATDEPFILES): Likewise.
762 * config/i386/linux.mh (NATDEPFILES): Likewise.
763 * config/i386/linux64.mh (NATDEPFILES): Likewise.
764 * config/ia64/linux.mh (NATDEPFILES): Likewise.
765 * config/m32r/linux.mh (NATDEPFILES): Likewise.
766 * config/m68k/linux.mh (NATDEPFILES): Likewise.
767 * config/mips/linux.mh (NATDEPFILES): Likewise.
768 * config/pa/linux.mh (NATDEPFILES): Likewise..
769 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
770 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
771 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
772 * config/sparc/linux.mh (NATDEPFILES): Likewise.
773 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
774 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
775 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
776 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
777 ptrace's 4th argument's types.
778 Check the type of PTRACE_TYPE_ARG4.
779 * configure: Regenerate.
780 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
781 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
782 (linux_supports_tracefork_flag): Remove.
783 (linux_supports_tracesysgood_flag): Likewise.
784 (linux_supports_tracevforkdone_flag): Likewise.
785 (current_ptrace_options): Moved to
786 common/linux-ptrace.c.
787 (linux_tracefork_child): Remove.
788 (my_waitpid): Remove.
789 (linux_test_for_tracefork): Renamed to
790 linux_check_ptrace_features and moved to common/linux-ptrace.c.
791 (linux_test_for_tracesysgood): Remove.
792 (linux_supports_tracesysgood): Remove.
793 (linux_supports_tracefork): Remove.
794 (linux_supports_tracevforkdone): Remove.
795 (linux_enable_tracesysgood): Remove.
796 (linux_enable_event_reporting): Remove.
797 (linux_init_ptrace): New function.
798 (linux_child_post_attach): Call linux_init_ptrace.
799 (linux_child_post_startup_inferior): Call linux_init_ptrace.
800 (linux_child_follow_fork): Call linux_supports_tracefork
801 and linux_supports_tracevforkdone.
802 (linux_child_insert_fork_catchpoint): Call
803 linux_supports_tracefork.
804 (linux_child_insert_vfork_catchpoint): Likewise.
805 (linux_child_set_syscall_catchpoint): Call
806 linux_supports_tracesysgood.
807 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
808 * nat/linux-nat.h: New file.
809 * nat/linux-waitpid.c: New file.
810 * nat/linux-waitpid.h: New file.
811
812 2013-08-22 Samuel Bronson <naesten@gmail.com>
813
814 ARM Linux support for `catch syscall'.
815 * syscalls/arm-linux.py: New file.
816 * syscalls/arm-linux.xml: Likewise.
817 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
818 (arm_linux_init_abi): Register the new function and syscall xml file.
819 * data-directory/Makefile.in: Install the new syscall xml file.
820 * NEWS: Brag about this.
821
822 2013-08-22 Pedro Alves <palves@redhat.com>
823
824 PR gdb/15871
825 * corefile.c (target_xfer_memory_error): New function.
826 (memory_error): Defer EIO to target_memory_error.
827 (read_memory): Use target_xfer_partial, and handle finer-grained
828 target xfer errors.
829 * target.c (target_xfer_error_to_string): New function.
830 (memory_xfer_partial_1): If memory is known to be
831 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
832 (target_xfer_partial): Make extern.
833 * target.h (enum target_xfer_error): New enum.
834 (target_xfer_error_to_string): Declare function.
835 (target_xfer_partial): Declare function.
836 (struct target_ops) <xfer_partial>: Adjust describing comment.
837
838 2013-08-22 Alan Modra <amodra@gmail.com>
839
840 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
841 * configure.tgt: Likewise as targets.
842
843 2013-08-20 Doug Evans <dje@google.com>
844
845 * buildsym.c (subfile_stack): Move here from buildsym.h.
846 (pending_macros): Ditto.
847 (get_macro_table): New function.
848 (buildsym_init): Initialize subfile_stack.
849 * coffread.c (type_vector,type_vector_length): Moved here from
850 buildsym.h.
851 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
852 (coff_symtab_read): Use it.
853 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
854 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
855 with call to get_macro_table.
856 * stabsread.c (type_vector,type_vector_length): Moved here from
857 buildsym.h.
858 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
859 * buildsym.h (get_macro_table): Declare.
860
861 2013-08-20 Tom Tromey <tromey@redhat.com>
862
863 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
864 Update.
865 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
866
867 2013-08-20 Doug Evans <dje@google.com>
868
869 * blockframe.c: Remove #include "psymtab.h".
870 * cp-support.c: Ditto.
871 * source.c: Ditto.
872 * stack.c: Ditto.
873
874 2013-08-20 Tom Tromey <tromey@redhat.com>
875
876 PR python/15816:
877 * exceptions.h (return_mask): Now an enum.
878 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
879 enum constants.
880
881 2013-08-20 Tom Tromey <tromey@redhat.com>
882
883 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
884 get_objfile_arch.
885 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
886 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
887 * jit.c (jit_object_close_impl): Update.
888 * jv-lang.c (get_dynamics_objfile): Update.
889 * linespec.c (add_minsym): Use get_dynamics_objfile.
890 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
891 (allocate_objfile): Don't initialize 'gdbarch' field.
892 (get_objfile_arch): Update.
893 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
894 moved from...
895 (struct objfile) <gdbarch>: ... here. Remove.
896 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
897 get_objfile_arch.
898 * symfile.c (init_entry_point_info): Use get_objfile_arch.
899
900 2013-08-20 Alan Modra <amodra@gmail.com>
901
902 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
903 for IBM long double nan and inf.
904 (floatformat_is_negative, floatformat_classify,
905 floatformat_mantissa): Similarly.
906 (floatformat_ieee_single, floatformat_ieee_double,
907 floatformat_ieee_quad, floatformat_arm_ext,
908 floatformat_ia64_spill): Delete unused vars.
909 (_initialize_doublest): Delete unused function.
910 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
911 little-endian variants of floatformat_ibm_long_double.
912
913 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
914
915 * Makefile.in (SFILES): Remove common/target-common.c and
916 add target/waitstatus.c.
917 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
918 target/resume.h, target/wait.h and target/waitstatus.h.
919 (COMMON_OBS): Remove target-common.o and add
920 waitstatus.o.
921 (target-common.o): Remove.
922 (waitstatus.o): New target object file.
923 * common/target-common.c: Move contents to
924 target/waitstatus.c and remove.
925 * common/target-common.h: Move contents to other files and
926 remove.
927 (enum resume_kind: Move to target/resume.h.
928 (TARGET_WNOHANG): Move to target/wait.h.
929 (enum target_waitkind): Move to target/waitstatus.h.
930 (struct target_waitstatus): Likewise.
931 * target.h: Do not include target-common.h and
932 include target/resume.h, target/wait.h and
933 target/waitstatus.h.
934 * target/resume.h: New file.
935 * target/wait.h: New file.
936 * target/waitstatus.h: New file.
937 * target/waitstatus.c: New file.
938
939 2013-08-19 Pedro Alves <palves@redhat.com>
940
941 * linux-nat.c (linux_test_for_tracefork)
942 (linux_test_for_tracesysgood, linux_child_follow_fork)
943 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
944 (linux_nat_wait_1): Extend comment.
945 (linux_async_pipe): Add comment.
946
947 2013-08-15 Kevin Buettner <kevinb@redhat.com>
948
949 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
950 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
951 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
952 Update to account for fact that PC is now a pseudo-register.
953 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
954 cases for RL78_PC_REGNUM.
955
956 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
957
958 PR cli/15841
959 * top.c (quit_force): Skip writing history file
960 if input is not from terminal.
961
962 2013-08-14 Tom Tromey <tromey@redhat.com>
963
964 * remote.c (struct remote_state) <echo_nextthread, nextthread,
965 resultthreadlist>: New fields.
966 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
967 (remote_get_threadlist, remote_threadlist_iterator): Use
968 new fields. Remove static variables.
969
970 2013-08-14 Tom Tromey <tromey@redhat.com>
971
972 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
973 remote_watch_data_address>: New fields.
974 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
975 (process_stop_reply, remote_wait_as)
976 (remote_check_watch_resources, remote_stopped_data_address): Update.
977
978 2013-08-14 Tom Tromey <tromey@redhat.com>
979
980 * remote.c (struct remote_state) <async_client_callback,
981 async_client_context>: New fields.
982 (async_client_callback, async_client_context): Remove.
983 (remote_async_serial_handler, remote_async): Update.
984
985 2013-08-14 Tom Tromey <tromey@redhat.com>
986
987 * remote.c (sizeof_pkt): Remove.
988 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
989
990 2013-08-14 Tom Tromey <tromey@redhat.com>
991
992 * remote.c (struct remote_state) <use_threadinfo_query,
993 use_threadextra_query>: New fields.
994 (remote_threads_info, remote_threads_extra_info)
995 (remote_open_1): Update.
996
997 2013-08-14 Tom Tromey <tromey@redhat.com>
998
999 * remote.c (struct remote_state) <finished_object,
1000 finished_annex, finished_offset>: New fields.
1001 (remote_read_qxfer): Use remote_state fields; remove static
1002 variables.
1003
1004 2013-08-14 Tom Tromey <tromey@redhat.com>
1005
1006 * remote.c (struct remote_state) <last_sent_step>:
1007 New field.
1008 (last_sent_step): Remove.
1009 (remote_resume, remote_wait_as): Update.
1010
1011 2013-08-14 Tom Tromey <tromey@redhat.com>
1012
1013 * remote.c (struct remote_state) <last_sent_signal>:
1014 New field.
1015 (last_sent_signal): Remove.
1016 (new_remote_state, remote_resume, remote_wait_as): Update.
1017
1018 2013-08-14 Tom Tromey <tromey@redhat.com>
1019
1020 * remote.c (struct remote_state) <last_program_signals_packet>:
1021 New field.
1022 (last_program_signals_packet): Remove.
1023 (remote_program_signals, remote_open_1): Update.
1024
1025 2013-08-14 Tom Tromey <tromey@redhat.com>
1026
1027 * remote.c (struct remote_state) <last_pass_packet>:
1028 New field.
1029 (last_pass_packet): Remove.
1030 (remote_pass_signals, remote_open_1): Update.
1031
1032 2013-08-14 Tom Tromey <tromey@redhat.com>
1033
1034 * remote.c (struct remote_state) <remote_traceframe_number>:
1035 New field.
1036 (remote_traceframe_number): Remove.
1037 (new_remote_state, remote_open_1, set_remote_traceframe)
1038 (remote_trace_find): Update.
1039
1040 2013-08-14 Tom Tromey <tromey@redhat.com>
1041
1042 * remote.c (struct remote_state) <general_thread, continue_thread>:
1043 New fields.
1044 (general_thread, continue_thread): Remove.
1045 (record_currthread, set_thread, set_general_process)
1046 (remote_open_1, extended_remote_attach_1, remote_wait_as)
1047 (extended_remote_mourn_1): Update.
1048
1049 2013-08-14 Tom Tromey <tromey@redhat.com>
1050
1051 * remote.c (struct remote_state) <remote_desc>: New field.
1052 (remote_desc): Remove.
1053 (remote_threads_info, remote_threads_extra_info, remote_close)
1054 (send_interrupt_sequence, remote_start_remote, remote_open_1)
1055 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
1056 (remote_hostio_send_command, remote_file_put, remote_file_get)
1057 (remote_file_delete, remote_can_async_p, remote_is_async_p)
1058 (remote_async, remote_new_objfile, set_range_stepping): Update.
1059
1060 2013-08-14 Tom Tromey <tromey@redhat.com>
1061
1062 * remote.c (remote_state): Now a pointer.
1063 (get_remote_state_raw): Update.
1064 (new_remote_state): New function.
1065 (_initialize_remote): Use new_remote_state.
1066
1067 2013-08-14 Tom Tromey <tromey@redhat.com>
1068
1069 * remote.c (remote_protocol_features): Now const.
1070
1071 2013-08-14 Tom Tromey <tromey@redhat.com>
1072
1073 * remote.c (crc32_table, crc32): Remove.
1074 (remote_verify_memory): Use xcrc32.
1075
1076 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
1077
1078 * value.h (create_internalvar_type_lazy): Adjust prototype
1079 declaration.
1080
1081 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
1082
1083 * common/format.c (parse_format_string): Don't allow '#' flag for
1084 pointer arguments in format string.
1085
1086 2013-08-13 Pierre Muller <muller@sourceware.org>
1087
1088 * utils.c (init_page_info): Only call tgetnum function
1089 if rl_get_screen_size did not return useful values.
1090
1091 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
1092
1093 PR breakpoints/15117
1094 * linespec.c (linespec_parse_basic): Check for convenience
1095 variable or history value while parsing.
1096
1097 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
1098
1099 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
1100 AVR.
1101 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
1102 different signals between the generic Linux kernel implementation
1103 and AVR's.
1104 (avr_linux_gdb_signal_from_target): Delete.
1105 (avr_linux_gdb_signal_to_target): Delete.
1106 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
1107
1108 2013-08-09 Doug Evans <dje@google.com>
1109
1110 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
1111 entries.
1112
1113 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
1114
1115 * linux-tdep.c: Define enum with generic signal numbers.
1116 (linux_gdb_signal_from_target): New function.
1117 (linux_gdb_signal_to_target): Likewise.
1118 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1119 methods to the functions above.
1120 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
1121 (linux_gdb_signal_to_target): Likewise.
1122 * alpha-linux-tdep.c: Define new enum with signals different
1123 from generic Linux kernel.
1124 (alpha_linux_gdb_signal_from_target): New function.
1125 (alpha_linux_gdb_signal_to_target): Likewise.
1126 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1127 with the functions mentioned above.
1128 * avr-tdep.c: Define enum with differences between Linux kernel
1129 and AVR signals.
1130 (avr_linux_gdb_signal_from_target): New function.
1131 (avr_linux_gdb_signal_to_target): Likewise.
1132 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
1133 the functions mentioned above.
1134 * sparc-linux-tdep.c: Define enum with differences between SPARC
1135 and generic Linux kernel signal numbers.
1136 (sparc32_linux_gdb_signal_from_target): New function.
1137 (sparc32_linux_gdb_signal_to_target): Likewise.
1138 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1139 to the functions defined above.
1140 * xtensa-linux-tdep.c: Define enum with differences between
1141 Xtensa and Linux kernel generic signals.
1142 (xtensa_linux_gdb_signal_from_target): New function.
1143 (xtensa_linux_gdb_signal_to_target): Likewise.
1144 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
1145 to the functions defined above.
1146 * mips-linux-tdep.c: Define enum with differences between
1147 signals in MIPS and Linux kernel generic ones.
1148 (mips_gdb_signal_to_target): New function.
1149 (mips_gdb_signal_from_target): Redefine to use new enum, handle
1150 only different signals from the Linux kernel generic.
1151 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1152 the functions defined above.
1153 * mips-linux-tdep.h (enum mips_signals): Remove.
1154
1155 2013-08-09 Pedro Alves <palves@redhat.com>
1156
1157 * avr-tdep.c (XMALLOC): Delete macro.
1158 * cli/cli-dump.c (XMALLOC): Delete macro.
1159
1160 2013-08-09 Pedro Alves <palves@redhat.com>
1161
1162 * cli/cli-dump.c: Don't include cli/cli-dump.h.
1163 (scan_expression_with_cleanup, scan_filename_with_cleanup)
1164 (fopen_with_cleanup, add_dump_command): Make static.
1165 * cli/cli-dump.h: Delete file.
1166 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
1167 cli/cli-dump.h.
1168
1169 2013-08-09 Pedro Alves <palves@redhat.com>
1170
1171 * tracepoint.c (tfile_start): Show tilde-expanded filename in
1172 error message.
1173
1174 2013-08-09 Pedro Alves <palves@redhat.com>
1175
1176 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
1177 error message.
1178
1179 2013-08-09 Pedro Alves <palves@redhat.com>
1180
1181 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
1182 (gcore_command): Use tilde_expand here, and when showing the
1183 filename to the user, show the expanded version.
1184
1185 2013-08-09 Yao Qi <yao@codesourcery.com>
1186
1187 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
1188 'entryval' is set.
1189
1190 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
1191
1192 * gcore.c (create_gcore_bfd): Use tilde_expand.
1193
1194 2013-08-08 Yao Qi <yao@codesourcery.com>
1195
1196 * frame.h (read_frame_local): Declare.
1197 * mi/mi-cmd-stack.c (list_args_or_locals): Call
1198 read_frame_local.
1199 * stack.c (read_frame_local): New.
1200
1201 2013-08-08 Yao Qi <yao@codesourcery.com>
1202
1203 * mi/mi-cmd-stack.c: Update comments to function
1204 list_args_or_locals.
1205
1206 2013-08-07 Tom Tromey <tromey@redhat.com>
1207
1208 PR symtab/15028:
1209 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
1210 (process_psymtab_comp_unit_reader): Use it.
1211 (process_psymtab_comp_unit): Update. Add "pretend_language"
1212 argument.
1213 (dwarf2_build_psymtabs_hard): Update.
1214 (scan_partial_symbols): Pass CU's language to
1215 process_psymtab_comp_unit.
1216
1217 2013-08-07 Tom Tromey <tromey@redhat.com>
1218
1219 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
1220 (dwarf2_gdb_index_functions): Update.
1221 * psymtab.c (find_symbol_file_from_partial): Remove.
1222 (psym_functions): Update.
1223 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1224 Remove.
1225
1226 2013-08-07 Tom Tromey <tromey@redhat.com>
1227
1228 * symfile.c (set_initial_language): Look up "main" symbol
1229 and use its language.
1230 * symtab.c (find_main_filename): Remove.
1231 * symtab.h (find_main_filename): Remove.
1232
1233 2013-08-07 Tom Tromey <tromey@redhat.com>
1234
1235 * dwarf2read.c (recursively_compute_inclusions): Add
1236 "immediate_parent" argument. Set symtab's "user" field
1237 if not set.
1238 (compute_symtab_includes): Update.
1239
1240 2013-08-07 Tom Tromey <tromey@redhat.com>
1241
1242 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
1243 when adding label symbols.
1244
1245 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1246 Ulrich Weigand <uweigand@de.ibm.com>
1247
1248 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
1249 * configure.host (powerpc64-*-aix*): Likewise.
1250
1251 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1252 Ulrich Weigand <uweigand@de.ibm.com>
1253
1254 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
1255 is defined.
1256 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
1257 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
1258 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
1259 * configure.ac: Check for ptrace64.
1260 * configure, config.in: Regenerate.
1261
1262 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1263 Ulrich Weigand <uweigand@de.ibm.com>
1264
1265 * aixthread.c: Call ptrace64 instead of ptracex if defined.
1266 Call ptrace64 instead of ptrace if defined.
1267 Add macro addr_ptr to take care of ptrace address argument.
1268 (pdc_read_regs): Likewise.
1269 (pdc_write_regs): Likewise.
1270 (aix_thread_resume): Likewise.
1271 (fetch_regs_kernel_thread): Likewise.
1272 (store_regs_kernel_thread): Likewise.
1273
1274 2013-08-07 Anton Blanchard <anton@samba.org>
1275
1276 * MAINTAINERS: Add myself to Write After Approval.
1277
1278 2013-08-05 Tom Tromey <tromey@redhat.com>
1279
1280 * aix-thread.c (_initialize_aix_thread): Use
1281 complete_target_initialization.
1282 * bsd-uthread.c (_initialize_bsd_uthread): Use
1283 complete_target_initialization.
1284 * dec-thread.c (_initialize_dec_thread): Use
1285 complete_target_initialization.
1286 * ravenscar-thread.c (_initialize_ravenscar): Use
1287 complete_target_initialization.
1288 * sol-thread.c (_initialize_sol_thread): Use
1289 complete_target_initialization.
1290 * spu-multiarch.c (_initialize_spu_multiarch): Use
1291 complete_target_initialization.
1292
1293 2013-08-05 Tom Tromey <tromey@redhat.com>
1294
1295 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
1296 * ada-lang.c (ada_lookup_simple_minsym): Return
1297 bound_minimal_symbol.
1298 * ada-lang.h (ada_lookup_simple_minsym): Update.
1299 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
1300 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
1301 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
1302 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
1303 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
1304 * minsyms.c (msymbol_objfile): Remove.
1305 (lookup_minimal_symbol_internal): New function, from
1306 lookup_minimal_symbol.
1307 (lookup_minimal_symbol): Rewrite using
1308 lookup_minimal_symbol_internal.
1309 (lookup_bound_minimal_symbol): New function.
1310 * minsyms.h (msymbol_objfile): Remove.
1311 (lookup_bound_minimal_symbol): Declare.
1312 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
1313 * parse.c (write_exp_msymbol): Change parameter to a
1314 bound_minimal_symbol.
1315 (write_dollar_variable): Use lookup_bound_minimal_symbol.
1316 * parser-defs.h (write_exp_msymbol): Update.
1317 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
1318 * symfile.c (simple_read_overlay_table): Use
1319 lookup_bound_minimal_symbol.
1320 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
1321 (search_symbols): Likewise.
1322 (print_msymbol_info): Take a bound_minimal_symbol argument.
1323 (symtab_symbol_info, rbreak_command): Update.
1324 * symtab.h (struct symbol_search) <msymbol>: Change type
1325 to bound_minimal_symbol.
1326 * valops.c (find_function_in_inferior): Use
1327 lookup_bound_minimal_symbol.
1328 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
1329
1330 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1331
1332 Code cleanup.
1333 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
1334 to ...
1335 (async_cleanup_sigint_signal_handler): ... this.
1336 (initialize_sigint_signal_handler): Remove declaration.
1337 (handle_remote_sigint): Rename the declaration to ...
1338 (async_handle_remote_sigint): ... this.
1339 (handle_remote_sigint_twice): Rename the declaration to ...
1340 (async_handle_remote_sigint_twice): ... this.
1341 (async_remote_interrupt, async_remote_interrupt_twice)
1342 (remote_interrupt): Remove the declarations.
1343 (remote_interrupt_twice): Rename the declaration ...
1344 (sync_remote_interrupt_twice): ... this.
1345 (sigint_remote_twice_token): Rename the variable to ...
1346 (async_sigint_remote_twice_token): ... this.
1347 (sigint_remote_token): Rename the variable to ...
1348 (async_sigint_remote_token): ... this.
1349 (initialize_sigint_signal_handler): Rename the function to ...
1350 (async_initialize_sigint_signal_handler): ... this. Update the name
1351 inside.
1352 (handle_remote_sigint): Rename the function to ...
1353 (async_handle_remote_sigint): ... this. Update the names inside.
1354 (handle_remote_sigint_twice): Rename the function to ...
1355 (async_handle_remote_sigint_twice): ... this. Update the names inside.
1356 (cleanup_sigint_signal_handler): Rename the function to ...
1357 (async_cleanup_sigint_signal_handler): ... this.
1358 (remote_interrupt): Rename the function to ...
1359 (sync_remote_interrupt): this. Update the names inside.
1360 (remote_interrupt_twice): Rename the function to ...
1361 (sync_remote_interrupt_twice): this. Update the names inside.
1362 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
1363 (_initialize_remote): Update the names inside.
1364
1365 2013-08-02 Tom Tromey <tromey@redhat.com>
1366
1367 PR symtab/15719:
1368 * breakpoint.c (update_watchpoint, watchpoint_check)
1369 (watch_command_1): Update.
1370 * eval.c (fetch_subexp_value): Add "preserve_errors"
1371 parameter.
1372 * ppc-linux-nat.c (check_condition): Update.
1373 * value.h (fetch_subexp_value): Update.
1374
1375 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
1376
1377 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
1378 add_file_handler.
1379
1380 2013-08-01 Doug Evans <dje@google.com>
1381
1382 PR symtab/15691
1383 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
1384 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
1385 Add assert of sig_entry->dwo_unit == NULL.
1386 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
1387 had already been read.
1388 (read_signatured_type): Set per_cu.tu_read.
1389
1390 PR symtab/15695
1391 * valops.c (value_struct_elt): Add missing call to check_typedef.
1392 (value_find_oload_method_list): Ditto.
1393
1394 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
1395 effectively, struct symbol_search **.
1396 (make_cleanup_free_search_symbols): Change arg to struct
1397 symbol_search **. All callers updated.
1398 (compare_search_syms): Compare symtab file name and block as well.
1399 (search_symbols_equal): New function.
1400 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
1401 New args new_head, new_tail. Result is now void. Remove dups after
1402 sorting the symbols.
1403 (search_symbols): Sort all found symbols once, after all have been
1404 found, and remove duplicates. Simplify cleanup tracking of result.
1405 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
1406
1407 Further workarounds for binutils/15021.
1408 * dwarf2read.c (recursively_compute_inclusions): Change type of result
1409 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
1410 Watch for duplicate symtabs coming from type units.
1411 (compute_symtab_includes): Update call to
1412 recursively_compute_inclusions. Build vector of included symtabs
1413 instead of per_cus.
1414 * symtab.h (symtab_ptr): New typedef.
1415 (DEF_VEC_P (symtab_ptr)): New VEC type.
1416 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
1417 instead.
1418
1419 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
1420
1421 * cli/cli-script.c (script_from_file): Remove use of
1422 error_pre_print.
1423 * main.c (captured_main): Remove use of error_pre_print and
1424 quit_pre_print.
1425 * utils.c (error_pre_print, quit_pre_print): Remove.
1426 * utils.h (error_pre_print, quit_pre_print): Likewise.
1427
1428 2013-08-01 Yao Qi <yao@codesourcery.com>
1429
1430 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
1431 with mi_getopt.
1432 (mi_cmd_stack_list_variables): Likewise.
1433
1434 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1435
1436 * exceptions.c (deprecated_throw_reason): Remove.
1437 * exceptions.h (deprecated_throw_reason): Remove.
1438
1439 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1440
1441 * remote-mips.c (mips_error): Replace use of
1442 deprecated_throw_reason with throw_verror. Use the error message
1443 passed to mips_error as the error message for throw_verror.
1444
1445 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1446
1447 * monitor.c (monitor_interrupt_query): Replace use of
1448 deprecated_throw_reason with quit.
1449 * nto-procfs.c (interrupt_query): Likewise.
1450 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
1451 * remote-mips.c (mips_kill): Likewise.
1452 * remote.c (interrupt_query): Likewise.
1453
1454 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1455
1456 * utils.c (internal_verror): Replace use of deprecated_throw_reason
1457 with call to fatal.
1458
1459 2013-07-31 Pedro Alves <pedro@codesourcery.com>
1460 Yao Qi <yao@codesourcery.com>
1461
1462 * tracepoint.c (trace_dump_command): Select the current frame.
1463
1464 2013-07-30 Doug Evans <dje@google.com>
1465
1466 * dwarf2read.c (process_queue): Add type signature to debug output.
1467
1468 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
1469
1470 * value.c (value_fetch_lazy): Mark optimized out values as such
1471 rather than raising an error.
1472
1473 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
1474
1475 * value.c (value_fetch_lazy): Ensure parent value is not lazy
1476 before checking which bits of the parent, not the child, value are
1477 valid.
1478
1479 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
1480
1481 PR gdb/15715
1482 * top.c: Include "filenames.h".
1483 (set_history_filename): New function.
1484 (init_main): Install it as set hook of the "set history filename"
1485 command.
1486
1487 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1488
1489 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
1490 attribute parameter.
1491 (dwarf2_const_value_data): Constify struct attribute parameter.
1492 (dwarf2_const_value): Constify struct attribute parameter.
1493 (dwarf2_const_value_attr): Constify struct attribute parameter.
1494 (lookup_die_type): Constify struct attribute parameter.
1495 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
1496 (follow_die_ref_or_sig): Constify struct attribute parameter.
1497 (follow_die_ref): Constify struct attribute parameter.
1498 (follow_die_sig): Constify struct attribute parameter.
1499 (get_DW_AT_signature_type): Constify struct attribute parameter.
1500 (get_type_unit_group): Constify struct attribute parameter.
1501 (fill_in_loclist_baton): Constify struct attribute parameter.
1502 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
1503 (type_unit_group): Constify struct attribute parameter.
1504
1505 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1506
1507 * dwarf2read.c (attr_form_is_block): Make argument const.
1508 (attr_form_is_section_offset): Make argument const.
1509 (attr_form_is_constant): Make argument const.
1510 (attr_form_is_ref): Make argument const.
1511
1512 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1513
1514 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
1515 All uses updated.
1516 (attr_form_is_ref): Moved below attr_form_is_constant.
1517
1518 2013-07-29 Doug Evans <dje@google.com>
1519
1520 * main.c (captured_command_loop): Tweak comment.
1521
1522 * target.c (target_async_permitted_1): Fix comment.
1523
1524 * symtab.c (iterate_over_some_symtabs): Add comment.
1525
1526 * symtab.c (iterate_over_some_symtabs): Fix indentation.
1527
1528 2013-07-27 Yao Qi <yao@codesourcery.com>
1529
1530 * NEWS: Mention that GDBserver now supports hardware
1531 watchpoints on the MIPS GNU/Linux target.
1532
1533 2013-07-27 Yao Qi <yao@codesourcery.com>
1534
1535 * Makefile.in (HFILES_NO_SRCDIR): Add
1536 common/mips-linux-watch.h.
1537 (mips-linux-watch.o): New rule.
1538 * common/mips-linux-watch.c: New.
1539 * common/mips-linux-watch.h: New.
1540 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
1541 * mips-linux-nat.c: Include mips-linux-watch.h.
1542 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
1543 to common/mips-linux-watch.h.
1544 (MAX_DEBUG_REGISTER): Likewise.
1545 (enum pt_watch_style): Likewise.
1546 (struct mips32_watch_regs): Likewise.
1547 (struct mips64_watch_regs): Likewise.
1548 (struct pt_watch_regs): Likewise.
1549 (struct mips_watchpoint): Likewise.
1550 (mips_linux_watch_get_irw_mask): Move to
1551 common/mips-linux-watch.c.
1552 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
1553 (mips_linux_watch_get_watchlo): Likewise.
1554 (mips_linux_watch_set_watchlo): Likewise.
1555 (mips_linux_watch_get_watchhi): Likewise.
1556 (mips_linux_watch_set_watchhi): Likewise.
1557 (mips_linux_read_watch_registers): Likewise.
1558 (mips_linux_watch_type_to_irw): Likewise.
1559 (mips_linux_stopped_data_address, fill_mask): Likewise.
1560 (mips_linux_watch_try_one_watch): Likewise.
1561 (mips_linux_watch_populate_regs): Likewise.
1562
1563 2013-07-27 Yao Qi <yao@codesourcery.com>
1564
1565 * mips-linux-nat.c (get_irw_mask): Rename to ...
1566 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
1567 'set' to 'n'. Update function comment. All callers changed.
1568 (get_reg_mask): Rename parameter 'set' to 'n'. Update
1569 function comment. All callers changed.
1570 (get_num_valid): Rename to ...
1571 (mips_linux_watch_get_num_valid): ... this. Rename parameter
1572 'set' to 'n'. Update function comment. All callers changed.
1573 (get_watchlo): Rename to ...
1574 (mips_linux_watch_get_watchlo): ... this. Rename parameter
1575 'set' to 'n'. Update function comment. All callers changed.
1576 (set_watchlo): Rename to ...
1577 (mips_linux_watch_set_watchlo): ... this. Rename parameter
1578 'set' to 'n'. Update function comment. All callers changed.
1579 (get_watchhi): Rename to ...
1580 (mips_linux_watch_get_watchhi): ... this. Update function
1581 comment. All callers changed.
1582 (set_watchhi): Rename to ...
1583 (mips_linux_watch_set_watchhi): ... this. Update function
1584 comment. All callers changed.
1585 (mips_linux_read_watch_registers): Update function comment.
1586 Add new parameters 'lwpid', 'watch_readback', and
1587 'watch_readback_valid'. Update.
1588 (type_to_irw): Rename to ...
1589 (mips_linux_watch_type_to_irw): ... this. Update function
1590 comment. All callers changed.
1591 (fill_mask): Update function comment.
1592 (try_one_watch): Rename to ...
1593 (mips_linux_watch_try_one_watch): ... this. Change the type
1594 of parameter 'irw' from 'unsigned' to 'uint32_t'.
1595 (populate_regs_from_watches): Rename to ...
1596 (mips_linux_watch_populate_regs): ... this. Add parameter
1597 'current_watches'. All callers changed.
1598
1599 2013-07-27 Yao Qi <yao@codesourcery.com>
1600
1601 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
1602 the code.
1603 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
1604 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
1605 (struct pt_watch_regs): Likewise.
1606 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
1607 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
1608 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
1609 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
1610 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
1611
1612 2013-07-27 Yao Qi <yao@codesourcery.com>
1613
1614 * breakpoint.h: Include break-common.h.
1615 (enum target_hw_bp_type): Move to ...
1616 * common/break-common.h: ... here. New.
1617
1618 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
1619
1620 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
1621 process group regardless of having tty on stdin.
1622
1623 2013-07-25 Doug Evans <dje@google.com>
1624
1625 * linux-fork.h (detach_fork): Delete.
1626
1627 2013-07-25 Tom Tromey <tromey@redhat.com>
1628
1629 PR remote/15256, PR remote/15266:
1630 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
1631 * monitor.c (monitor_detach): Use unpush_target.
1632 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
1633 * remote-mips.c (mips_detach): Use unpush_target. Don't
1634 call mips_close.
1635 * remote-sim.c (gdbsim_detach): Use unpush_target.
1636 * target.c (pop_target): Remove.
1637 (pop_all_targets_above): Don't call target_close.
1638 (target_close): Assert that the target is unpushed.
1639 * target.h (pop_target): Don't declare.
1640 * tracepoint.c (tfile_open): Use unpush_target.
1641
1642 2013-07-25 Tom Tromey <tromey@redhat.com>
1643
1644 * linux-thread-db.c (init_thread_db_ops): Call
1645 complete_target_initialization.
1646 (_initialize_thread_db): Don't call add_target.
1647 * target.c (complete_target_initialization): New function.
1648 (add_target_with_completer): Call it.
1649 * target.h (complete_target_initialization): Declare.
1650
1651 2013-07-25 Mark Kettenis <kettenis@gnu.org>
1652
1653 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
1654 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
1655 (HPPANBSD_SIZEOF_GREGS): New define.
1656 (hppaobsd_supply_gregset): Handle additional registers.
1657 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
1658 we provide more registers now.
1659 (hppabsd_supply_gregset): Supply additional registers.
1660 (hppabsd_collect_gregset): Collect additional registers.
1661
1662 2013-07-25 Mark Kettenis <kettenis@gnu.org>
1663
1664 * hppabsd-tdep.c: Include "dwarf2-frame.h".
1665 (hppabsd_dwarf2_frame_init_reg): New function.
1666 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
1667
1668 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
1669
1670 * mi/mi-main.c (output_register): Make MI 'r' format use standard
1671 'z' format code. Remove error for optimized out values, standard
1672 code will handle these fine.
1673
1674 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
1675
1676 * NEWS: Mention new 'z' formatter.
1677 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
1678 (_initialize_printcmd): Mention 'z' formatter in help text of the
1679 'x' command.
1680
1681 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
1682
1683 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
1684 formatting.
1685
1686 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
1687
1688 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
1689 interface can evaluate arguments. Fallback to the old mode if it
1690 cannot.
1691 (create_exception_master_breakpoint): Likewise.
1692 * elfread.c (elf_can_evaluate_probe_arguments): New function.
1693 (struct sym_probe_fns elf_probe_fns): Export function above to the
1694 probe interface.
1695 * probe.c (can_evaluate_probe_arguments): New function.
1696 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
1697 function pointer.
1698 (can_evaluate_probe_arguments): New function prototype.
1699 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
1700 probe interface can evaluate arguments. Fallback to the old mode
1701 if it cannot.
1702 * stap-probe.c (stap_get_probe_argument_count): Check if probe
1703 interface can evaluate arguments. Warning the user if it cannot.
1704 (stap_can_evaluate_probe_arguments): New function.
1705 (struct probe_ops stap_probe_ops): Export function above to the
1706 probe interface.
1707 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
1708 New function pointer.
1709
1710 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
1711
1712 * Makefile.in (SFILES): Add common/target-common.c.
1713 Add common/target-common.h to headers.
1714 (COMMON_OBS): Add target-common.o.
1715 (target-common.o): New target.
1716 * linux-nat.h (resume_kind): Move to common/target-common.h.
1717 * target.c (target_waitstatus_to_string): Move to
1718 common/target-common.c.
1719 * target.h: Include target-common.h.
1720 (target_waitkind): Move to common/target-common.h.
1721 (target_waitstatus): Likewise.
1722 (TARGET_WNOHANG): Likewise.
1723 * common/target-common.c: New file.
1724 * common/target-common.h: New file.
1725
1726 2013-07-24 Doug Evans <dje@google.com>
1727
1728 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
1729 a warning.
1730
1731 2013-07-23 Yao Qi <yao@codesourcery.com>
1732
1733 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
1734 parameter 'gdbarch'.
1735 (i386_stack_tramp_frame_sniffer): Caller update.
1736 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
1737 parameter 'gdbarch' and 'target'.
1738 (i386_linux_core_read_description): Caller update.
1739 * amd64-linux-tdep.c (amd64_linux_core_read_description):
1740 Likewise.
1741 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
1742 declaration.
1743
1744 2013-07-23 Tom Tromey <tromey@redhat.com>
1745
1746 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
1747 2013-07-22.
1748
1749 2013-07-22 Doug Evans <dje@google.com>
1750
1751 * exec.h (remove_target_sections): Delete arg abfd.
1752 * exec.c (exec_close): Update call to remove_target_sections.
1753 (remove_target_sections): Delete arg abfd.
1754 * solib.c (update_solib_list): Ditto.
1755 (reload_shared_libraries_1): Ditto.
1756 (clear_solib): Ditto, and unconditionally call remove_target_sections.
1757 * target.h (struct target_section): Rename key to owner.
1758 All uses updated.
1759
1760 2013-07-22 Tom Tromey <tromey@redhat.com>
1761
1762 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
1763
1764 2013-07-22 Tom Tromey <tromey@redhat.com>
1765
1766 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
1767 Simplify cleanup handling.
1768
1769 2013-07-22 Tom Tromey <tromey@redhat.com>
1770
1771 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
1772 on all return paths.
1773
1774 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1775
1776 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
1777 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
1778 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
1779
1780 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
1781
1782 * top.c (print_gdb_version): Add help, apropos description and
1783 url to online documentation.
1784
1785 2013-07-19 Hui Zhu <hui@codesourcery.com>
1786
1787 PR gdb/15692
1788 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
1789
1790 2013-07-19 Yao Qi <yao@codesourcery.com>
1791
1792 * target.c (update_current_target): Change the default action
1793 of 'to_traceframe_info' from tcomplain to return_zero.
1794 * target.h (struct target_ops) <to_traceframe_info>: Add more
1795 comments.
1796 * valops.c (read_value_memory): Call
1797 traceframe_available_memory unconditionally.
1798
1799 2013-07-18 Yao Qi <yao@codesourcery.com>
1800
1801 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
1802 if the name is prefixed by "__imp_" or "_imp_", look for minimal
1803 symbol without prefix. If found, set its type to
1804 'mst_solib_trampoline'.
1805
1806 2013-07-17 Doug Evans <dje@google.com>
1807
1808 * NEWS: Mention "set print raw frame-arguments".
1809 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
1810 * stack.c (print_raw_frame_arguments): New static global.
1811 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
1812 (_initialize_stack): New command "set/show print raw frame-arguments".
1813 * valprint.c (setprintrawlist, showprintrawlist): New globals.
1814 (set_print_raw, show_print_raw): New functions.
1815 (_initialize_valprint): New prefix command "set/show print raw".
1816 * valprint.h (value_print_options): Improve comments.
1817
1818 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
1819 of all *list variables.
1820
1821 * gdbcmd.h (togglelist): Delete.
1822 * cli/cli-cmds.c (togglelist): Delete.
1823 (init_cmd_lists): Update.
1824 * cli/cli-cmds.h (togglelist): Delete.
1825
1826 2013-07-17 Tom Tromey <tromey@redhat.com>
1827
1828 * dwarf2read.c (dwarf2_per_objfile_free): Clear
1829 dwarf2_per_objfile.
1830
1831 2013-07-16 Doug Evans <dje@google.com>
1832
1833 * nto-tdep.c (nto_relocate_section_addresses): Update,
1834 target_section.bfd deleted.
1835 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
1836 * s390-tdep.c (s390_load): Ditto.
1837 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
1838
1839 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
1840
1841 * common/format.c (parse_format_string): Add checks for NULL
1842 character before calling strchr.
1843
1844 2013-07-16 Doug Evans <dje@google.com>
1845
1846 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
1847 temp_pathname argument.
1848 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
1849 when opening the file fails.
1850
1851 * target.h (struct target_section): Delete member bfd.
1852 All users updated to use the_bfd_section->owner instead.
1853 * exec.c (add_to_section_table): Assert bfd is expected value.
1854 Remove initialization of target_section.bfd.
1855 (remove_target_sections): Update.
1856 (section_table_available_memory): Update.
1857 (section_table_xfer_memory_partial): Update.
1858 (print_section_info): Update.
1859 (exec_set_section_address): Update.
1860 * record-full.c (record_full_core_xfer_partial): Update.
1861 * solib-svr4.c (svr4_relocate_section_addresses): Update.
1862 * solib-target.c (solib_target_relocate_section_addresses): Update.
1863 * symfile.c (build_section_addr_info_from_section_table): Update.
1864 * target.c (memory_xfer_live_readonly_partial): Update.
1865 (memory_xfer_partial_1): Update.
1866
1867 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1868
1869 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
1870 now available for embedded (BookE) and server (BookS) processors,
1871 correct mentions of 'booke' and adjust comments accordingly in order to
1872 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
1873 (have_ptrace_booke_interface): Rename function and variable
1874 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
1875 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
1876 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
1877 'hwdebug_point_cmp'. Update all uses.
1878 (booke_find_thread_points_by_tid): Rename function
1879 'booke_find_thread_points_by_tid' to
1880 'hwdebug_find_thread_points_by_tid'. Update all uses.
1881 (booke_insert_point): Rename function 'booke_insert_point' to
1882 'hwdebug_insert_point'. Update all uses.
1883 (booke_remove_point): Rename function 'booke_remove_point' to
1884 'hwdebug_remove_point'. Update all uses.
1885
1886 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
1887
1888 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
1889 numbers with enum values.
1890
1891 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
1892
1893 PR threads/13217
1894 * thread.c (thread_apply_all_command): Check for valid threads
1895 and thread count.
1896 (thread_array_cleanup): New struct.
1897 (set_thread_refcount): New function.
1898
1899 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
1900
1901 * infcmd.c (default_print_one_register_info): Reuse function
1902 print_hex_chars.
1903
1904 2013-07-10 Tom Tromey <tromey@redhat.com>
1905
1906 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
1907 (ada-exp.o): New target.
1908
1909 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
1910
1911 * mt-tdep.c (mt_registers_info): Call
1912 get_no_prettyformat_print_options instead of
1913 get_raw_print_options (regression by last patch from Doug
1914 Evans).
1915
1916 2013-07-09 Pedro Alves <palves@redhat.com>
1917
1918 Checked in by Joel Brobecker <brobecker@adacore.com>.
1919 * ada-lang.c (coerce_unspec_val_to_type): Use
1920 value_optimized_out_const.
1921 * value.c (value_optimized_out_const): New function.
1922 * value.h (value_optimized_out_const): New declaration.
1923
1924 2013-07-09 Doug Evans <dje@google.com>
1925
1926 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
1927 Enum values rename as well. All uses updated.
1928 * valprint.h (value_print_options): Rename member pretty to
1929 pretty format. Rename member prettyprint_arrays to
1930 prettyformat_arrays. Rename member prettyprint_structs to
1931 prettyformat_structs. All uses updated.
1932 (get_no_prettyformat_print_options): Renamed from
1933 get_raw_print_options.
1934 * valprint.c (get_no_prettyformat_print_options): Renamed from
1935 get_raw_print_options. All callers updated.
1936 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
1937 All callers updated.
1938 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
1939 All callers updated.
1940 (_initialize_valprint): Improve help text for "set print pretty" and
1941 "set print arrays".
1942
1943 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
1944
1945 * value.c (value_bits_valid): Revert previous change, and change
1946 by Pedro on 2013-07-04, due to regressions in
1947 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
1948
1949 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
1950 Pedro Alves <palves@redhat.com>
1951
1952 * value.c (value_bits_valid): If the value is not lval_computed
1953 or has no check validity handler then the answer is the
1954 optimized_out flag, otherwise defer to the handler.
1955
1956 2013-07-06 Eli Zaretskii <eliz@gnu.org>
1957
1958 * top.c (print_gdb_configuration): Explain in output of
1959 --configuration what does "relocatable" mean.
1960
1961 * main.c (print_gdb_help): Regroup options in the --help text.
1962 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
1963 the relevant discussions.
1964
1965 2013-07-06 Yao Qi <yao@codesourcery.com>
1966
1967 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
1968 Remove parameter 'lsal'.
1969 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
1970 to inner block. Caller update.
1971 (base_breakpoint_create_breakpoints_sal): Update.
1972 (bkpt_create_breakpoints_sal): Likewise.
1973 (tracepoint_create_breakpoints_sal): Likewise.
1974 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
1975 element 0 of vector 'canonical->sals'.
1976
1977 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
1978
1979 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
1980 register number instead of the pseudo register one.
1981 (rs6000_dwarf2_reg_to_regnum): Likewise.
1982
1983 2013-07-04 Pedro Alves <palves@redhat.com>
1984
1985 * findvar.c (value_of_register): Use allocate_optimized_out_value
1986 if the register has been optimized out, instead of
1987 set_value_optimized_out.
1988 * frame-unwind.c (frame_unwind_got_optimized): Use
1989 allocate_optimized_out_value.
1990
1991 2013-07-04 Pedro Alves <palves@redhat.com>
1992
1993 * value.c (value_bits_valid): If the value is not lval_computed,
1994 or doesn't have a check_validity hook, assume the value is entirely
1995 valid.
1996
1997 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
1998
1999 * stack.c (read_frame_arg): No longer fetch lazy values.
2000 * value.c (value_optimized_out): If the value is not already
2001 marked optimized out, and is lazy then fetch it.
2002 (value_primitive_field): Move optimized out check to later in the
2003 function, after we have loaded any lazy values.
2004 (value_fetch_lazy): Use optimized out flag directly rather than
2005 calling optimized_out method.
2006
2007 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
2008
2009 * valops.c: Don't include "user-regs.h".
2010 (value_fetch_lazy): Moved to value.c.
2011 * value.c: Include "user-regs.h".
2012 (value_fetch_lazy): Moved from valops.c.
2013
2014 2013-07-04 Yao Qi <yao@codesourcery.com>
2015
2016 Revert:
2017 2013-06-27 Yao Qi <yao@codesourcery.com>
2018
2019 * common/create-version.sh: Update comments. Handle the case
2020 that TARGET_ALIAS is empty.
2021
2022 2013-07-03 Pedro Alves <palves@redhat.com>
2023
2024 * Makefile.in (config.status): Depend on development.sh.
2025 (aclocal_m4_deps): Add libmcheck.m4.
2026 * acinclude.m4: Include libmcheck.m4.
2027 * configure.ac: Source development.sh instead of setting
2028 'development' here. --enable-libmcheck/--disable-libmcheck code
2029 factored out to GDB_AC_LIBMCHECK. Run it.
2030 * development.sh: New file.
2031 * libmcheck.m4: New file.
2032 * configure: Regenerate.
2033
2034 2013-07-02 Tom Tromey <tromey@redhat.com>
2035
2036 * contrib/ari/update-web-ari.sh: Update for version.in change.
2037
2038 2013-07-02 Tom Tromey <tromey@redhat.com>
2039
2040 * common/ptid.h: Comment fixes.
2041
2042 2013-07-01 Tom Tromey <tromey@redhat.com>
2043
2044 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
2045 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
2046 (dwarf2_read_index, create_all_comp_units): Update.
2047
2048 2013-07-01 Tom Tromey <tromey@redhat.com>
2049
2050 * configure.ac (build_warnings): Add -Wold-style-definition.
2051 * configure: Rebuild.
2052 * machoread.c (_initialize_machoread): Use "(void)".
2053 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
2054 use "(void)".
2055
2056 2013-07-01 Tom Tromey <tromey@redhat.com>
2057
2058 * configure.ac (build_warnings): Add -Wold-style-declaration.
2059 * configure: Rebuild.
2060 * dsrec.c (make_srec): Use "static const", not "const static".
2061 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
2062 not "const static".
2063 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
2064 Use "static const", not "const static".
2065 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
2066 not "const static".
2067 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
2068 not "const static".
2069 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
2070 not "const static".
2071 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
2072 not "const static".
2073 (v850_dbtrap_breakpoint_from_pc): Likewise.
2074 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
2075 not "const static".
2076
2077 2013-07-01 Tom Tromey <tromey@redhat.com>
2078
2079 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
2080 * configure: Rebuild.
2081
2082 2013-07-01 Pedro Alves <palves@redhat.com>
2083
2084 * defs.h: Include "pathmax.h".
2085 * utils.c: Don't include sys/param.h.
2086 (gdb_realpath): Remove code that checks for MAXPATHLEN.
2087 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
2088 instead of MAXPATHLEN.
2089 * solib-sunos.c: Don't include sys/param.h.
2090 * xcoffread.c: Don't include sys/param.h.
2091 * bsd-kvm.c: Don't include sys/param.h.
2092 * darwin-nat.c: Don't include sys/param.h.
2093 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2094 * darwin-nat-info.c: Don't include sys/param.h.
2095 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
2096 MAXPATHLEN.
2097 * i386obsd-nat.c: Don't include sys/param.h.
2098 * inf-child.c: Don't include sys/param.h.
2099 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
2100 * linux-fork.c: Don't include sys/param.h.
2101 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
2102 * linux-nat.c: Don't include sys/param.h.
2103 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
2104 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
2105 * m68klinux-nat.c: Don't include sys/param.h.
2106 * nbsd-nat.c: Don't include sys/param.h.
2107 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2108 * ppc-linux-nat.c: Don't include sys/param.h.
2109 * rs6000-nat.c: Don't include sys/param.h.
2110 * spu-linux-nat.c. Don't include sys/param.h.
2111 * windows-nat.c: Don't include sys/param.h.
2112 * xtensa-linux-nat.c: Don't include sys/param.h.
2113 * config/i386/nm-fbsd.h: Don't include sys/param.h.
2114
2115 2013-07-01 Pedro Alves <palves@redhat.com>
2116
2117 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
2118 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
2119 * gnulib/aclocal.m4: Regenerate.
2120 * gnulib/config.in: Regenerate.
2121 * gnulib/configure: Regenerate.
2122 * gnulib/import/pathmax.h: New file.
2123 * gnulib/import/Makefile.am: Regenerate.
2124 * gnulib/import/Makefile.in: Regenerate.
2125 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2126 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2127 * gnulib/import/m4/pathmax.m4: New file.
2128
2129 2013-07-01 Pedro Alves <palves@redhat.com>
2130
2131 * configure.ac (GDBINIT): Define, depending on host.
2132 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
2133 * top.c (PATH_MAX): Delete fallback definition.
2134 (GDBINIT_FILENAME): Delete.
2135 (gdbinit): Reimplement as const char array set to the GDBINIT
2136 string constant.
2137 * top.h (gdbinit): Make const.
2138 * configure, config.in: Regenerate.
2139
2140 2013-07-01 Pedro Alves <palves@redhat.com>
2141
2142 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
2143 * cli/cli-cmds.h (source_script): Likewise.
2144 * exceptions.c (catch_command_errors_const): New function.
2145 * exceptions.h (catch_command_errors_const): Declare.
2146 * main.c (get_init_files): Make parameters const, and adjust.
2147 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
2148 'local_gdbinit' locals const. Adjust to use
2149 catch_command_errors_const.
2150 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
2151 'local_gdbinit' locals const.
2152
2153 2013-07-01 Pedro Alves <palves@redhat.com>
2154
2155 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
2156 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
2157 * tracepoint.c: Don't check HAVE_UNISTD_H before including
2158 <unistd.h>.
2159
2160 2013-07-01 Pedro Alves <palves@redhat.com>
2161
2162 Import the "unistd" gnulib module.
2163 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
2164 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
2165 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
2166 import/m4/unistd_h.m4.
2167 * gnulib/aclocal.m4: Renenerate.
2168 * gnulib/config.in: Renenerate.
2169 * gnulib/configure: Renenerate.
2170 * gnulib/import/Makefile.am: Renenerate.
2171 * gnulib/import/Makefile.in: Renenerate.
2172 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
2173 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
2174 * gnulib/import/m4/off_t.m4: New file.
2175 * gnulib/import/m4/ssize_t.m4: New file.
2176 * gnulib/import/m4/sys_types_h.m4: New file.
2177 * gnulib/import/m4/unistd_h.m4: New file.
2178 * gnulib/import/sys_types.in.h: New file.
2179 * gnulib/import/unistd.c: New file.
2180 * gnulib/import/unistd.in.h: New file.
2181
2182 2013-07-01 Pedro Alves <palves@redhat.com>
2183
2184 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
2185 defined instead of checking HAVE_UNISTD_H.
2186
2187 2013-07-01 Pedro Alves <palves@redhat.com>
2188
2189 Reimport gnulib from scratch.
2190 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
2191 import/m4/onceonly.m4.
2192 * gnulib/aclocal.m4: Renegerate.
2193 * gnulib/config.in: Renegerate.
2194 * gnulib/configure: Renegerate.
2195 * gnulib/import/Makefile.in: Renegerate.
2196 * gnulib/import/extra/update-copyright: Renegerate.
2197 * gnulib/import/m4/onceonly.m4: Delete.
2198
2199 2013-07-01 Pedro Alves <palves@redhat.com>
2200
2201 * tui/tui-regs.c (pagination_enabled): Delete declaration.
2202
2203 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2204
2205 Code cleanup.
2206 * remote.c (async_remote_interrupt_twice): Make it static.
2207 * remote.h (async_remote_interrupt_twice): Remove the declaration.
2208
2209 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
2210
2211 * ia64-linux-tdep.c: Include <ctype.h>.
2212 (ia64_linux_stap_is_single_operand): New function.
2213 (ia64_linux_init_abi): Initialize SystemTap related attributes.
2214
2215 2013-06-28 Tom Tromey <tromey@redhat.com>
2216
2217 * Makefile.in (version.c): Use version.in, not
2218 common/version.in.
2219 * common/create-version.sh: Likewise.
2220 * common/version.in: Move...
2221 * version.in: ...here.
2222
2223 2013-06-28 Pedro Alves <palves@redhat.com>
2224
2225 * infrun.c (set_observer_mode): Don't declare pagination_enabled
2226 here.
2227 * utils.h (pagination_enabled): Declare.
2228
2229 2013-06-28 Pedro Alves <palves@redhat.com>
2230
2231 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
2232 Move higher up in file.
2233
2234 2013-06-28 Tom Tromey <tromey@redhat.com>
2235
2236 * tracepoint.c (deprecated_readline_begin_hook)
2237 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
2238 declare.
2239
2240 2013-06-28 Pedro Alves <palves@redhat.com>
2241
2242 PR tui/14880
2243 * tui/tui-regs.c (tui_get_register): Fetch value contents before
2244 checking if they're available.
2245 * value.c (value_available_contents_eq): Change comment.
2246 * value.h (value_available_contents_eq): Expand comment.
2247
2248 2013-06-27 Tom Tromey <tromey@redhat.com>
2249
2250 * target.c (find_run_target): Remove.
2251 * target.h (find_run_target): Remove.
2252
2253 2013-06-27 Tom Tromey <tromey@redhat.com>
2254
2255 * corelow.c (core_gdbarch): Now static.
2256
2257 2013-06-27 Tom Tromey <tromey@redhat.com>
2258
2259 * target.c (target_struct_index): Remove.
2260
2261 2013-06-27 Pedro Alves <palves@redhat.com>
2262
2263 * infrun.c: Remove comment describing the 'stepping over runtime
2264 loader dynamic symbol resolution code' mechanism; moved to
2265 gdbint.texinfo.
2266
2267 2013-06-27 Pedro Alves <palves@redhat.com>
2268
2269 * exceptions.c (catch_command_errors): Remove spurious space.
2270 * exceptions.h (catch_command_errors): Second parameter is "arg",
2271 not "command".
2272
2273 2013-06-27 Yao Qi <yao@codesourcery.com>
2274
2275 * common/create-version.sh: Update comments. Handle the case
2276 that TARGET_ALIAS is empty.
2277
2278 2013-06-26 Pedro Alves <palves@redhat.com>
2279
2280 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
2281 comment.
2282
2283 2013-06-26 Pedro Alves <palves@redhat.com>
2284
2285 * infrun.c: Update comments on stepping over runtime loader
2286 dynamic symbol resolution code.
2287
2288 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
2289
2290 * ax-gdb.h (union exp_element): Forward declare.
2291 * parser-defs.h: Include expression.h.
2292
2293 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2294
2295 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
2296
2297 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
2298
2299 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
2300
2301 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
2302
2303 Fix trace-status to output proper start-time and stop-time.
2304 * tracepoint.c (trace_status_command): Fix type of printf arg to
2305 prevent improper type conversion.
2306 (trace_status_mi): Likewise.
2307
2308 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2309
2310 * mips-tdep.c (mips_next_pc): Fix a typo.
2311
2312 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2313
2314 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
2315
2316 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2317 Yao Qi <yao@codesourcery.com>
2318
2319 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
2320 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
2321 * mi/mi-main.c (print_variable_or_computed): New function.
2322 (mi_cmd_trace_frame_collected): New function.
2323 * tracepoint.c (find_trace_state_variable_by_number): New.
2324 (struct traceframe_info): Move to tracepoint.h
2325 (struct collection_list): Likewise.
2326 (do_collect_symbol): Include locals and arguments in the
2327 collected variables list.
2328 (clear_collection_list): Clear wholly collected variables list
2329 and computed variables list.
2330 (append_exp): New function.
2331 (encode_actions_1): Include variables in the wholly
2332 collected variables list. Include memory ranges and
2333 full-fledged expressions in the computed expressions list.
2334 (encode_actions): Move some code to ...
2335 Return the cleanup chain.
2336 (encode_actions_rsp): ... here. New function.
2337 (get_traceframe_location, get_traceframe_info): Remove static.
2338 * tracepoint.h (struct memrange): Moved from tracepoint.c.
2339 (struct collection_list): Moved from tracepoint.c. Add two
2340 new fields 'wholly_collected' and 'computed'.
2341 (find_trace_state_variable_by_number): Declare.
2342 (encode_actions): Adjust declaration.
2343 (encode_actions_rsp): Declare.
2344 (get_traceframe_info, get_traceframe_location): Declare.
2345
2346 * NEWS: Mention new MI command -trace-frame-collected.
2347
2348 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2349 Yao Qi <yao@codesourcery.com>
2350
2351 * ctf.c (ctf_traceframe_info): Push trace state variables
2352 present in the trace data into the traceframe info object.
2353 * breakpoint.c (DEF_VEC_I): Remove.
2354 * common/filestuff.c (DEF_VEC_I): Likewise.
2355 * dwarf2loc.c (DEF_VEC_I): Likewise.
2356 * mi/mi-main.c (DEF_VEC_I): Likewise.
2357 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
2358 * features/traceframe-info.dtd: Add tvar element and its
2359 attributes.
2360 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
2361 (build_traceframe_info): Push trace state variables present in
2362 the trace data into the traceframe info object.
2363 (traceframe_info_start_tvar): New function.
2364 (tvar_attributes): New.
2365 (traceframe_info_children): Add "tvar" element.
2366 * tracepoint.h (struct traceframe_info) <tvars>: New field.
2367
2368 * NEWS: Mention the change in GDB and GDBserver.
2369
2370 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2371 Yao Qi <yao@codesourcery.com>
2372
2373 * tracepoint.c (trace_dump_command): Move code to ...
2374 (get_traceframe_location): ... here. New.
2375
2376 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2377 Yao Qi <yao@codesourcery.com>
2378
2379 * tracepoint.c (trace_dump_command): GDB emits an error
2380 instead of a warning when a traceframe is not selected.
2381
2382 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2383 Yao Qi <yao@codesourcery.com>
2384
2385 * tracepoint.c (tracepoint_list, stepping_list): Remove.
2386 (clear_collection_list): Free fields 'aexpre_list' and 'list'
2387 in collection_list.
2388 (do_clear_collection_list, init_collection_list): New.
2389 (encode_actions): Add local variables 'tracepoint_list' and
2390 'stepping_list'. Call init_collection_list and make cleanup
2391 which calls do_clear_collection_list. Don't call
2392 clear_collection_list.
2393 (_initialize_tracepoint): Delete references to
2394 'tracepoint_list' and 'stepping_list'.
2395
2396 2013-06-25 Tom Tromey <tromey@redhat.com>
2397
2398 * common/create-version.sh (date): Use "$", not "$$" in sed
2399 expression.
2400
2401 2013-06-25 Kevin Buettner <kevinb@redhat.com>
2402
2403 * NEWS (New targets): Add entry for TI MSP430.
2404
2405 2013-06-25 Yao Qi <yao@codesourcery.com>
2406
2407 * remote.c (remote_start_remote): Move code to upload tsv
2408 earlier.
2409
2410 2013-06-25 Yao Qi <yao@codesourcery.com>
2411 Hui Zhu <hui@codesourcery.com>
2412 Pedro Alves <palves@redhat.com>
2413
2414 PR breakpoints/15075
2415 PR breakpoints/15434
2416 * breakpoint.c (bpstat_stop_status): Call
2417 b->ops->after_condition_true.
2418 (update_dprintf_command_list): Don't append "continue" command
2419 to the command list of dprintf breakpoint.
2420 (base_breakpoint_after_condition_true): New function.
2421 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
2422 (dprintf_after_condition_true): New function.
2423 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
2424 * breakpoint.h (breakpoint_ops): Add after_condition_true.
2425
2426 2013-06-24 Kevin Buettner <kevinb@redhat.com>
2427
2428 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
2429 (ALLDEPFILES): Add msp430-tdep.c.
2430 * configure.tgt (msp430*-*-elf): New target.
2431 * msp430-tdep.c: New file.
2432
2433 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
2434
2435 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
2436 microMIPS synthetic symbols.
2437
2438 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
2439
2440 * objfiles.h (pc_in_section): New prototype.
2441 (in_plt_section): Remove name argument, replace prototype with
2442 static inline function.
2443 * mips-tdep.h: Include "objfiles.h".
2444 (in_mips_stubs_section): New function.
2445 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
2446 in_solib_call_trampoline member.
2447 (hppa_in_solib_call_trampoline): Remove name argument.
2448 * objfiles.c (pc_in_section): New function.
2449 (in_plt_section): Remove function.
2450 * mips-linux-tdep.c: Include "objfiles.h".
2451 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
2452 name argument. Return 1 rather than the low 16-bit halfword of
2453 any instruction examined.
2454 (mips_linux_in_dynsym_resolve_code): Update
2455 mips_linux_in_dynsym_stub call accordingly.
2456 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
2457 rather than an equivalent hand-coded sequence.
2458 * hppa-hpux-tdep.c (in_opd_section): Remove function.
2459 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
2460 (hppa64_hpux_in_solib_call_trampoline): Likewise.
2461 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
2462 in_opd_section.
2463 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
2464 on call to tdep->in_solib_call_trampoline.
2465 (hppa_in_solib_call_trampoline): Remove name argument, update
2466 according to in_plt_section change.
2467 (hppa_skip_trampoline_code): Update according to in_plt_section
2468 change.
2469 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
2470 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
2471 Likewise.
2472 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
2473 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2474 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2475 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
2476 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
2477 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
2478 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
2479 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
2480 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
2481 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
2482 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
2483 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
2484 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
2485
2486 2013-06-24 Joel Brobecker <brobecker@adacore.com>
2487
2488 * common/create-version.sh: Fix expansion of $host_alias
2489 and $target_alias in generation of HOST_NAME and TARGET_NAME
2490 (resp.).
2491
2492 2013-06-24 Tom Tromey <tromey@redhat.com>
2493
2494 * common/create-version.sh: New file.
2495 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
2496 create-version.sh.
2497 (HFILES_NO_SRCDIR): Use common/version.h.
2498 * version.in: Move to ...
2499 * common/version.in: ... here. Replace date with "DATE".
2500 * version.h: Move to ...
2501 * common/version.h: ... here.
2502
2503 2013-06-21 Joel Brobecker <brobecker@adacore.com>
2504
2505 * gdb/gnulib/Makefile.in: Update date in copyright header.
2506 * gdb/gnulib/configure.ac: Ditto.
2507 * gdb/gnulib/update-gnulib.sh: Ditto.
2508
2509 2013-06-21 Joel Brobecker <brobecker@adacore.com>
2510
2511 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
2512 "gdb/gnulib/import".
2513
2514 2013-06-21 Will Newton <will.newton@linaro.org>
2515
2516 * doublest.c (ldfrexp): Remove function.
2517 (convert_doublest_to_floatformat): Call frexpl instead of
2518 ldfrexp.
2519
2520 2013-06-21 Will Newton <will.newton@linaro.org>
2521
2522 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
2523 * gnulib/aclocal.m4: Regenerate.
2524 * gnulib/config.in: Regenerate.
2525 * gnulib/configure: Regenerate.
2526 * gnulib/import/Makefile.am: Update.
2527 * gnulib/import/Makefile.in: Update.
2528 * gnulib/import/m4/gnulib-cache.m4: Update.
2529 * gnulib/import/m4/gnulib-comp.m4: Update.
2530 * gnulib/import/float+.h: Import.
2531 * gnulib/import/float.c: Import.
2532 * gnulib/import/float.in.h: Import.
2533 * gnulib/import/fpucw.h: Import.
2534 * gnulib/import/frexp.c: Import.
2535 * gnulib/import/frexpl.c: Import.
2536 * gnulib/import/isnan.c: Import.
2537 * gnulib/import/isnand-nolibm.h: Import.
2538 * gnulib/import/isnand.c: Import.
2539 * gnulib/import/isnanl-nolibm.h: Import.
2540 * gnulib/import/isnanl.c: Import.
2541 * gnulib/import/itold.c: Import.
2542 * gnulib/import/m4/exponentd.m4: Import.
2543 * gnulib/import/m4/exponentl.m4: Import.
2544 * gnulib/import/m4/float_h.m4: Import.
2545 * gnulib/import/m4/fpieee.m4: Import.
2546 * gnulib/import/m4/frexp.m4: Import.
2547 * gnulib/import/m4/frexpl.m4: Import.
2548 * gnulib/import/m4/isnand.m4: Import.
2549 * gnulib/import/m4/isnanl.m4: Import.
2550 * gnulib/import/m4/math_h.m4: Import.
2551 * gnulib/import/math.c: Import.
2552 * gnulib/import/math.in.h: Import.
2553
2554 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2555
2556 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
2557 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
2558 signature_INTEL_edx comparisons.
2559
2560 2013-06-20 Doug Evans <dje@google.com>
2561
2562 symtab/15652
2563 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
2564 All callers updated.
2565 (open_dwp_file): If we can't find the dwp file, search the basename
2566 in debug-file-directory.
2567
2568 * dwarf2read.c (struct dwp_file): Fix comment.
2569 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
2570
2571 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
2572 better.
2573
2574 2013-06-20 Yao Qi <yao@codesourcery.com>
2575
2576 * breakpoint.c (create_breakpoint): Fix code indentation.
2577
2578 2013-06-20 Yao Qi <yao@codesourcery.com>
2579
2580 * breakpoint.c (create_breakpoints_sal_default): Remove
2581 parameter 'lsal'. Update declaration.
2582 (bkpt_create_breakpoints_sal): Caller update.
2583 (tracepoint_create_breakpoints_sal): Likewise.
2584
2585 2013-06-20 Pedro Alves <pedro@codesourcery.com>
2586 Yao Qi <yao@codesourcery.com>
2587
2588 * NEWS: Mention the new option '--skip-unavailable' of command
2589 -data-list-register-values.
2590 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
2591 --skip-unavailable option. Adjust to use output_register.
2592 (output_register): Add new 'skip_unavailable' parameter.
2593 Handle it.
2594
2595 2013-06-19 Mike Frysinger <vapier@gentoo.org>
2596
2597 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
2598 common/i386-gcc-cpuid.h.
2599 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
2600 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
2601 Copy the latest version from upstream gcc.
2602 * common/linux-btrace.c: Include i386-cpuid.h.
2603 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
2604 call to i386_cpuid.
2605 (cpu_supports_btrace): Likewise.
2606 * go32-nat.c: Include i386-cpuid.h.
2607 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
2608
2609 2013-06-19 Doug Evans <dje@google.com>
2610
2611 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
2612 (get_section_index): Ditto.
2613
2614 2013-06-19 Tom Tromey <tromey@redhat.com>
2615
2616 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
2617 "dprintf" help.
2618
2619 2013-06-18 Doug Evans <dje@google.com>
2620
2621 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
2622 before using it.
2623 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
2624 Move test of cu_index closer to use. Print complaint if cu_index
2625 is bad.
2626
2627 2013-06-18 Joel Brobecker <brobecker@adacore.com>
2628
2629 * machoread.c (oso_vector): Delete this global.
2630 (macho_register_oso): Add new parameter "oso_vector_ptr".
2631 Use it instead of the "oso_vector" global.
2632 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
2633 (macho_symfile_read): Use a local oso_vector, to be free'ed
2634 at the end of this function, in place of the old "oso_vector"
2635 global. Update various function calls accordingly. Use one
2636 single cleanup chain for the entire function.
2637
2638 2013-06-18 Joel Brobecker <brobecker@adacore.com>
2639
2640 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
2641 DWARF2_PER_OBJFILE by uses of DATA instead.
2642
2643 2013-06-18 Tom Tromey <tromey@redhat.com>
2644
2645 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
2646 argument.
2647 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
2648 Special case signals other than GDB_SIGNAL_TRAP.
2649 (explains_signal_watchpoint): New function.
2650 (base_breakpoint_explains_signal): Add 'sig' argument.
2651 (initialize_breakpoint_ops): Set 'explains_signal' method for
2652 watchpoints.
2653 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
2654 signal argument.
2655 (bpstat_explains_signal): Likewise.
2656 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
2657
2658 2013-06-18 Tom Tromey <tromey@redhat.com>
2659
2660 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
2661
2662 2013-06-18 Tom Tromey <tromey@redhat.com>
2663
2664 * python/python.c (finish_python_initialization): Decref
2665 'pythondir' on failure path as well.
2666
2667 2013-06-18 Tom Tromey <tromey@redhat.com>
2668
2669 PR symtab/15391:
2670 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
2671 after taking bits_to_skip into account. Sign extend byte_offset.
2672 * utils.h (gdb_sign_extend): Declare.
2673 * utils.c (gdb_sign_extend): New function.
2674
2675 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2676
2677 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
2678
2679 2013-06-17 Pierre Muller <muller@sourceware.org>
2680
2681 * corelow.c (core_open): Print GDB signal name instead of target
2682 signal number.
2683
2684 2013-06-17 Mike Frysinger <vapier@gentoo.org>
2685
2686 * .gitignore: Add /gcore.
2687
2688 2013-06-13 Doug Evans <dje@google.com>
2689
2690 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
2691 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
2692
2693 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
2694
2695 * stack.c (backtrace_command_1): Fix indentation.
2696
2697 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2698
2699 * window-nat.c (thread_rec): Add missing empty line after
2700 local variable declaration.
2701
2702 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2703
2704 * windows-nat.c (thread_rec): Revert format used to print
2705 error code returned by SuspendThread from %d back to %u.
2706
2707 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2708
2709 * windows-nat.c (windows_continue): Add "0x" prefix for thread
2710 ID in debug trace.
2711 (get_windows_debug_event): Likewise, for all debug traces.
2712
2713 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2714
2715 * window-nat.c (thread_rec): Add thread ID in SuspendThread
2716 warning message.
2717
2718 2013-06-08 Pedro Alves <pedro@codesourcery.com>
2719 Yao Qi <yao@codesourcery.com>
2720
2721 * mi/mi-main.c (get_register): Remove declaration.
2722 (output_register): Declare.
2723 (mi_cmd_data_list_register_values): Remove local variable
2724 'tuple_cleanup'. Move some code into output_register.
2725 (get_register): Renamed to ...
2726 (output_register): ... this. Output the register's
2727 "number" ui_out tuple here.
2728
2729 2013-06-07 Pedro Alves <palves@redhat.com>
2730
2731 * darwin-nat.c: Fix formating in copyright header.
2732 * darwin-nat.h: Likewise.
2733 * gnu-nat.c: Likewise.
2734 * machoread.c: Likewise.
2735
2736 2013-06-07 Pedro Alves <palves@redhat.com>
2737
2738 PR server/14823
2739 * regformats/regdat.sh: Output #include tdesc.h. Make globals
2740 static. Output a global target description pointer.
2741 (init_registers_${name}): Adjust to initialize a
2742 target description structure.
2743
2744 2013-06-07 Will Newton <will.newton@linaro.org>
2745
2746 * printcmd.c (build_address_symbolic): Call
2747 gdbarch_addr_bits_remove for text minimal symbols.
2748
2749 2013-06-07 Will Newton <will.newton@linaro.org>
2750
2751 * MAINTAINERS: Add myself to Write After Approval.
2752
2753 2013-06-07 Yao Qi <yao@codesourcery.com>
2754
2755 * tracepoint.c (start_tracing): Move code to ...
2756 (trace_reset_local_state): ... here. New.
2757 (disconnect_tracing): Don't call set_current_traceframe,
2758 set_tracepoint_num, and set_traceframe_context. Call
2759 trace_reset_local_state instead.
2760 (tfile_close): Call trace_reset_local_state.
2761 * ctf.c (ctf_close): Likewise.
2762 * remote.c (remote_close): Likewise.
2763 * tracepoint.h (trace_reset_local_state): Declare.
2764
2765 2013-06-06 Doug Evans <dje@google.com>
2766
2767 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
2768 and fix header docs.
2769
2770 2013-06-05 Doug Evans <dje@google.com>
2771 Keith Seitz <keiths@redhat.com>
2772
2773 PR 15519
2774 * cp-namespace.c (find_symbol_in_baseclass): Call
2775 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
2776 Check result of call to lookup_symbol_static.
2777 Call lookup_static_symbol_aux unconditionally.
2778 Call check_typedef on base types before accessing them.
2779 (cp_lookup_nested_symbol): Fix comment.
2780
2781 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
2782
2783 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
2784 minimal symbols pointing to function descriptors.
2785
2786 2013-06-05 Tom Tromey <tromey@redhat.com>
2787
2788 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
2789
2790 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
2791 Pedro Alves <palves@redhat.com>
2792
2793 * remote.c (remote_wait_as): Restore signal handler before returning
2794 when GDB gets a notification.
2795
2796 2013-06-04 Gary Benson <gbenson@redhat.com>
2797
2798 PR 2328
2799 * breakpoint.h (handle_solib_event): Moved function declaration
2800 to solib.h.
2801 * breakpoint.c (handle_solib_event): Moved function to solib.c.
2802 (bpstat_stop_status): Pass new argument to handle_solib_event.
2803 * solib.h (update_solib_breakpoints): New function declaration.
2804 (handle_solib_event): Moved function declaration from
2805 breakpoint.h.
2806 * solib.c (update_solib_breakpoints): New function.
2807 (handle_solib_event): Moved function from breakpoint.c.
2808 Updated to call solib_ops->handle_event if not NULL.
2809 * solist.h (target_so_ops): New fields "update_breakpoints" and
2810 "handle_event".
2811 * infrun.c (set_stop_on_solib_events): New function.
2812 (_initialize_infrun): Use the above for "set
2813 stop-on-solib-events".
2814 (handle_inferior_event): Pass new argument to handle_solib_event.
2815 * solib-svr4.c (probe.h): New include.
2816 (svr4_free_library_list): New forward declaration.
2817 (probe_action): New enum.
2818 (probe_info): New struct.
2819 (probe_info): New static variable.
2820 (NUM_PROBES): New definition.
2821 (svr4_info): New fields "using_xfer", "probes_table" and
2822 "solib_list".
2823 (free_probes_table): New function.
2824 (free_solib_list): New function.
2825 (svr4_pspace_data_cleanup): Free probes table and solib list.
2826 (svr4_copy_library_list): New function.
2827 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
2828 (svr4_read_so_list): New parameter "prev_lm".
2829 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
2830 (svr4_current_sos): New function.
2831 (probe_and_action): New struct.
2832 (hash_probe_and_action): New function.
2833 (equal_probe_and_action): Likewise.
2834 (register_solib_event_probe): Likewise.
2835 (solib_event_probe_at): Likewise.
2836 (solib_event_probe_action): Likewise.
2837 (solist_update_full): Likewise.
2838 (solist_update_incremental): Likewise.
2839 (disable_probes_interface_cleanup): Likewise.
2840 (svr4_handle_solib_event): Likewise.
2841 (svr4_update_solib_event_breakpoint): Likewise.
2842 (svr4_update_solib_event_breakpoints): Likewise.
2843 (svr4_create_solib_event_breakpoints): Likewise.
2844 (enable_break): Free probes table before creating breakpoints.
2845 Use svr4_create_solib_event_breakpoints to create breakpoints.
2846 (svr4_solib_create_inferior_hook): Free the solib list.
2847 (_initialize_svr4_solib): Initialise
2848 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
2849
2850 2013-06-04 Gary Benson <gbenson@redhat.com>
2851
2852 * target.h (target_ops): New field
2853 "to_augmented_libraries_svr4_read".
2854 (target_augmented_libraries_svr4_read): New macro.
2855 * target.c (update_current_target): Handle
2856 to_augmented_libraries_svr4_read.
2857 * remote.c (remote_state): New field
2858 "augmented_libraries_svr4_read".
2859 (remote_augmented_libraries_svr4_read_feature): New function.
2860 (remote_protocol_features): Add entry for
2861 "augmented-libraries-svr4-read".
2862 (remote_augmented_libraries_svr4_read): New function.
2863 (init_remote_ops): Initialize
2864 remote_ops.to_augmented_libraries_svr4_read.
2865
2866 2013-06-04 Gary Benson <gbenson@redhat.com>
2867
2868 * NEWS: Update.
2869
2870 2013-06-04 Gary Benson <gbenson@redhat.com>
2871
2872 * objfiles.h (inhibit_section_map_updates): New function
2873 declaration.
2874 (resume_section_map_updates): Likewise.
2875 (resume_section_map_updates_cleanup): Likewise.
2876 * objfiles.c (objfile_pspace_info): Removed field
2877 "objfiles_changed_p". New fields "new_objfiles_available",
2878 "section_map_dirty" and "inhibit_updates".
2879 (allocate_objfile): Set new_objfiles_available.
2880 (free_objfile): Set section_map_dirty.
2881 (objfile_relocate1): Likewise.
2882 (in_plt_section): Likewise.
2883 (find_pc_section): Update the conditions under which the
2884 section map will be updated.
2885 (inhibit_section_map_updates): New function.
2886 (resume_section_map_updates): Likewise.
2887 (resume_section_map_updates_cleanup): Likewise.
2888
2889 2013-06-04 Gary Benson <gbenson@redhat.com>
2890
2891 * probe.h (get_probe_argument_count): New declaration.
2892 (evaluate_probe_argument): Likewise.
2893 * probe.c (get_probe_argument_count): New function.
2894 (evaluate_probe_argument): Likewise.
2895 (probe_safe_evaluate_at_pc): Use the above new functions.
2896
2897 2013-06-04 Alan Modra <amodra@gmail.com>
2898
2899 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2900 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
2901 (ppc_insns_match_pattern): Add frame param. Avoid multiple
2902 target mem reads on optional insns.
2903 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
2904 ppc_insns_match_pattern calls.
2905 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
2906 Add match for power7 thread safety insns, and new order of
2907 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
2908 invocation in comment, and update rest of comment.
2909 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
2910 PPC64_STANDARD_LINKAGE3_LEN): Delete.
2911 (ppc64_standard_linkage2_target): Update insn offsets.
2912 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
2913 stubs first. Update calls.
2914
2915 2013-06-04 Yao Qi <yao@codesourcery.com>
2916
2917 * solib.c (solib_find): Don't need dir separator if path has
2918 drive spec.
2919
2920 2013-06-03 Joel Brobecker <brobecker@adacore.com>
2921
2922 Revert (indirectly causes a SIGSEGV):
2923 * machoread.c (macho_symfile_read): Assign first cleanup to
2924 'back_to'.
2925
2926 2013-06-03 Yao Qi <yao@codesourcery.com>
2927
2928 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
2929 mi-parse.c. Make them static.
2930 (mi_all_values): Likewise.
2931 (mi_parse_values_option): Move to mi-parse.c. Rename it to
2932 mi_parse_print_values. Make it external.
2933 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
2934 Remove the declarations.
2935 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
2936 * mi/mi-parse.h (mi_parse_print_values): Declare.
2937 * mi/mi-cmd-stack.c: Include mi-parse.h.
2938 (parse_print_values): Remove
2939 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
2940 of parse_print_values.
2941 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
2942
2943 2013-05-31 Pedro Alves <pedro@codesourcery.com>
2944 Yao Qi <yao@codesourcery.com>
2945
2946 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
2947 (encode_actions): Move code to ...
2948 (all_tracepoint_actions_and_cleanup): ... here. New.
2949 (trace_dump_command): Likewise.
2950
2951 2013-05-30 Tom Tromey <tromey@redhat.com>
2952
2953 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
2954
2955 2013-05-30 Tom Tromey <tromey@redhat.com>
2956
2957 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
2958 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
2959 'old_chain' argument. Add 'parser_result' argument.
2960 (gdb_xml_create_parser_and_cleanup): Remove old version.
2961 (gdb_xml_parse_quick): Update.
2962 (xml_process_xincludes): Update.
2963 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
2964 declare.
2965
2966 2013-05-30 Tom Tromey <tromey@redhat.com>
2967
2968 * probe.c (collect_probes): Check arguments for NULL before
2969 calling compile_rx_or_error.
2970 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
2971 Remove NULL return.
2972
2973 2013-05-30 Tom Tromey <tromey@redhat.com>
2974
2975 * infrun.c (adjust_pc_after_break): Introduce an outer null
2976 cleanup.
2977
2978 2013-05-30 Tom Tromey <tromey@redhat.com>
2979
2980 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
2981
2982 2013-05-30 Tom Tromey <tromey@redhat.com>
2983
2984 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
2985 for 'old_chain'. Do not check 'head' before processing
2986 cleanups.
2987
2988 2013-05-30 Tom Tromey <tromey@redhat.com>
2989
2990 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
2991 "cleanup_tuple".
2992
2993 2013-05-30 Tom Tromey <tromey@redhat.com>
2994
2995 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
2996 inner scope. Unconditionally call do_cleanups.
2997
2998 2013-05-30 Tom Tromey <tromey@redhat.com>
2999
3000 * source.c (find_and_open_source): Call do_cleanups.
3001
3002 2013-05-30 Tom Tromey <tromey@redhat.com>
3003
3004 * linux-thread-db.c (thread_db_load_search): Unconditionally
3005 call do_cleanups.
3006
3007 2013-05-30 Tom Tromey <tromey@redhat.com>
3008
3009 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
3010 for 'cleanup'; instead use a later one.
3011
3012 2013-05-30 Tom Tromey <tromey@redhat.com>
3013
3014 * python/py-breakpoint.c (bppy_get_commands): Use
3015 explicit, unconditional return.
3016 * python/py-frame.c (frapy_read_var): Likewise.
3017 * python/python.c (gdbpy_decode_line): Likewise.
3018
3019 2013-05-30 Tom Tromey <tromey@redhat.com>
3020
3021 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
3022 do_cleanups on all return paths.
3023
3024 2013-05-30 Tom Tromey <tromey@redhat.com>
3025
3026 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
3027
3028 2013-05-30 Tom Tromey <tromey@redhat.com>
3029
3030 * stabsread.c (read_struct_type): Call do_cleanups along
3031 all return paths.
3032
3033 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
3034
3035 * mips-linux-tdep.c: Adjust formatting throughout.
3036
3037 2013-05-30 Tom Tromey <tromey@redhat.com>
3038
3039 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
3040 along all return paths.
3041
3042 2013-05-30 Tom Tromey <tromey@redhat.com>
3043
3044 * symfile.c (find_separate_debug_file): Call do_cleanups
3045 along all return paths.
3046
3047 2013-05-30 Tom Tromey <tromey@redhat.com>
3048
3049 * symtab.c (search_symbols): Introduce a null cleanup for
3050 'retval_chain'.
3051
3052 2013-05-30 Tom Tromey <tromey@redhat.com>
3053
3054 * python/py-value.c (valpy_binop): Call do_cleanups before
3055 exiting loop.
3056
3057 2013-05-30 Tom Tromey <tromey@redhat.com>
3058
3059 * python/py-prettyprint.c (print_children): Remove extra
3060 do_cleanups call.
3061
3062 2013-05-30 Tom Tromey <tromey@redhat.com>
3063
3064 * python/py-frame.c (frapy_read_var): Call do_cleanups along
3065 all return paths.
3066
3067 2013-05-30 Tom Tromey <tromey@redhat.com>
3068
3069 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
3070 along all return paths.
3071
3072 2013-05-30 Tom Tromey <tromey@redhat.com>
3073
3074 * cli/cli-logging.c (set_logging_redirect): Unconditionally
3075 call do_cleanups.
3076
3077 2013-05-30 Tom Tromey <tromey@redhat.com>
3078
3079 * varobj.c (c_value_of_root): Call do_cleanups along all
3080 return paths.
3081
3082 2013-05-30 Tom Tromey <tromey@redhat.com>
3083
3084 * tracepoint.c (trace_dump_command): Unconditionally call
3085 do_cleanups.
3086
3087 2013-05-30 Tom Tromey <tromey@redhat.com>
3088
3089 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
3090 do_cleanups earlier.
3091
3092 2013-05-30 Tom Tromey <tromey@redhat.com>
3093
3094 * machoread.c (macho_symfile_read): Assign first cleanup to
3095 'back_to'.
3096
3097 2013-05-30 Tom Tromey <tromey@redhat.com>
3098
3099 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
3100
3101 2013-05-30 Tom Tromey <tromey@redhat.com>
3102
3103 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
3104
3105 2013-05-30 Tom Tromey <tromey@redhat.com>
3106
3107 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
3108 call discard_cleanups.
3109 (inf_ptrace_attach): Likewise.
3110
3111 2013-05-30 Tom Tromey <tromey@redhat.com>
3112
3113 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
3114 return paths.
3115 (mips_initialize): Likewise.
3116 (common_open): Call do_cleanups.
3117
3118 2013-05-30 Tom Tromey <tromey@redhat.com>
3119
3120 * utils.c (internal_vproblem): Call do_cleanups.
3121
3122 2013-05-30 Tom Tromey <tromey@redhat.com>
3123
3124 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
3125
3126 2013-05-30 Tom Tromey <tromey@redhat.com>
3127
3128 * cli/cli-script.c (setup_user_args): Don't return after error.
3129
3130 2013-05-30 Tom Tromey <tromey@redhat.com>
3131
3132 * somread.c (som_symtab_read): Call do_cleanups.
3133
3134 2013-05-30 Tom Tromey <tromey@redhat.com>
3135
3136 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
3137
3138 2013-05-30 Tom Tromey <tromey@redhat.com>
3139
3140 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
3141 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
3142 * interps.c (interpreter_exec_cmd): Call do_cleanups.
3143 * source.c (show_substitute_path_command): Call do_cleanups.
3144 (unset_substitute_path_command, set_substitute_path_command):
3145 Likewise.
3146 * symfile.c (load_command): Call do_cleanups.
3147
3148 2013-05-30 Tom Tromey <tromey@redhat.com>
3149
3150 * contrib/cleanup_check.py: New file.
3151 * contrib/gcc-with-excheck: Add option parsing.
3152
3153 2013-05-30 Joel Brobecker <brobecker@adacore.com>
3154
3155 * windows-nat.c (windows_delete_thread): Add missing space
3156 in cast expression.
3157
3158 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
3159
3160 * inferior.c (top level): Include tilde.h.
3161 (add_inferior_command): Call tilde_expand on the value of 'exec'
3162 argument.
3163
3164 2013-05-30 Pedro Alves <pedro@codesourcery.com>
3165 Yao Qi <yao@codesourcery.com>
3166
3167 * tracepoint.c (encode_actions_1): Remove parameter 't'.
3168 Caller update.
3169 (encode_actions): Likewise.
3170 * remote.c (remote_download_tracepoint): Caller update.
3171 * tracepoint.h (encode_actions): Update declaration.
3172
3173 2013-05-30 Pedro Alves <palves@redhat.com>
3174
3175 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
3176 pointer.
3177
3178 2013-05-30 Yao Qi <yao@codesourcery.com>
3179
3180 * remote.c (remote_check_symbols): Remove unused parameter
3181 'objfile'.
3182 Declaration update.
3183 (remote_start_remote, remote_new_objfile): Caller update.
3184
3185 2013-05-30 Yao Qi <yao@codesourcery.com>
3186
3187 * mi/mi-cmds.c (mi_cmds): Define MI command
3188 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
3189 DEF_MI_CMD_CLI.
3190
3191 2013-05-29 Pedro Alves <palves@redhat.com>
3192
3193 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
3194 (remote_insert_watchpoint, remote_remove_watchpoint)
3195 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
3196 (remote_verify_memory, compare_sections_command)
3197 (remote_search_memory): Set the general process/thread on the
3198 remote side.
3199
3200 2013-05-29 Pedro Alves <palves@redhat.com>
3201
3202 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
3203 (_initialize_aarch64_tdep): Don't call
3204 initialize_tdesc_aarch64_without_fpu.
3205 * features/Makefile (WHICH): Remove reference to
3206 aarch64-without-fpu.
3207 * features/aarch64-without-fpu.c: Delete file.
3208 * regformats/aarch64-without-fpu.dat: Delete file.
3209
3210 2013-05-28 Yao Qi <yao@codesourcery.com>
3211
3212 * tracepoint.c (stringify_collection_list): Remove parameter
3213 'string'.
3214 (encode_actions): Caller update. Remove local variables.
3215
3216 2013-05-24 Yao Qi <yao@codesourcery.com>
3217
3218 * tracepoint.c (TFILE_PID): Remove.
3219 (tfile_open): Don't add thread and inferior.
3220 (tfile_close): Don't set 'inferior_ptid'. Don't call
3221 exit_inferior_silent.
3222 (tfile_thread_alive): Remove.
3223 (init_tfile_ops): Don't set field 'to_thread_alive' of
3224 tfile_ops.
3225
3226 2013-05-23 Doug Evans <dje@google.com>
3227
3228 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
3229
3230 2013-05-23 Pedro Alves <palves@redhat.com>
3231
3232 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
3233 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
3234 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
3235 Only define if HAVE_SOCKETS is defined.
3236 * configure.ac: Check for sys/socket.h.
3237 * config.in, configure: Regenerate.
3238
3239 2013-05-23 Pedro Alves <palves@redhat.com>
3240
3241 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
3242 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
3243 printing uint32_t variables.
3244
3245 2013-05-23 Pedro Alves <palves@redhat.com>
3246
3247 * NEWS: Mention GDBserver range stepping support.
3248
3249 2013-05-23 Yao Qi <yao@codesourcery.com>
3250 Pedro Alves <palves@redhat.com>
3251
3252 * gdbthread.h (struct thread_control_state) <may_range_step>: New
3253 field.
3254 * infcmd.c (step_once, until_next_command): Enable range stepping.
3255 * infrun.c (displaced_step_prepare): Disable range stepping.
3256 (resume): Disable range stepping if stepping over a breakpoint or
3257 we have software watchpoints. If range stepping is enabled,
3258 assert the thread is in the stepping range.
3259 (clear_proceed_status_thread): Clear may_range_step.
3260 (handle_inferior_event): Disable range stepping as soon as we know
3261 the thread that hit the event. Re-enable it whenever we're going
3262 to step with a step range.
3263 * remote.c (struct vCont_action_support) <r>: New field.
3264 (use_range_stepping): New global.
3265 (remote_vcont_probe): Handle 'r' action.
3266 (append_resumption): Append an 'r' action if the thread may range
3267 step.
3268 (show_range_stepping): New function.
3269 (set_range_stepping): New function.
3270 (_initialize_remote): Call add_setshow_boolean_cmd to register the
3271 'set range-stepping' and 'show range-stepping' commands.
3272 * NEWS: Mention range stepping, the new vCont;r action, and the
3273 new "set/show range-stepping" commands.
3274
3275 2013-05-23 Yao Qi <yao@codesourcery.com>
3276 Pedro Alves <palves@redhat.com>
3277
3278 * remote.c (struct vCont_action_support): New struct.
3279 (struct remote_state) <support_vCont_t>: Remove field.
3280 <vCont_actions_support>: New field.
3281 (remote_vcont_probe, remote_stop_ns): Update.
3282
3283 2013-05-23 Yao Qi <yao@codesourcery.com>
3284 Pedro Alves <palves@redhat.com>
3285
3286 * gdbthread.h (pc_in_thread_step_range): New declaration.
3287 * thread.c (pc_in_thread_step_range): New function.
3288 * infrun.c (handle_inferior_event): Use it.
3289
3290 2013-05-23 Joel Brobecker <brobecker@adacore.com>
3291
3292 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
3293 of sprintf.
3294
3295 2013-05-22 Keith Seitz <keiths@redhat.com>
3296
3297 * ada-lang.c (is_known_support_routine): Add explicit free of
3298 'func_name' from find_frame_funname.
3299 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
3300 for func_name from find_frame_funname.
3301 * python/py-frame.c (frapy_name): Add explicit free of
3302 'name' from find_frame_funname.
3303 * stack.c (find_frame_funname): Add comment explaining that
3304 funcp must be freed by the caller.
3305 Return copy of symbol names instead of pointers.
3306 (print_frame): Add a cleanup for 'funname' from
3307 find_frame_funname.
3308 * stack.h (find_frame_funname): Remove "const" from
3309 'funname' parameter.
3310
3311 2013-05-22 Tom Tromey <tromey@redhat.com>
3312
3313 PR c++/15401:
3314 * c-valprint.c (c_value_print): Use value_addr for
3315 references. Convert back to reference type with value_ref.
3316
3317 2013-05-22 Eli Zaretskii <eliz@gnu.org>
3318
3319 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
3320 unloaded DLL, it will be done by handle_solib_event. See
3321 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
3322 details.
3323
3324 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
3325
3326 * ui-out.c: Create typedef ui_out_level_p and define vector
3327 operations for that type.
3328 (struct ui_out): Use a vector instead of an array.
3329 (current_level): Return level from a vector.
3330 (push_level): Create a level in a vector.
3331 (pop_level): Delete a level in a vector.
3332 (ui_out_new): Create initial level zero level, and store in a
3333 vector.
3334 (ui_out_destroy): Add vector cleanup.
3335
3336 2013-05-22 Pedro Alves <palves@redhat.com>
3337
3338 * python/python-internal.h (gdb_Py_DECREF): Tag with
3339 "ARI: editCase function".
3340
3341 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
3342
3343 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
3344
3345 2013-05-21 Pedro Alves <palves@redhat.com>
3346
3347 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3348 whether PRINTER is NULL before installing a Py_DECREF cleanup.
3349 * python/py-utils.c (py_decref): Don't check for NULL before
3350 calling Py_DECREF.
3351
3352 2013-05-21 Pedro Alves <palves@redhat.com>
3353
3354 * python/py-utils.c (py_decref): Remove extra braces.
3355 (gdb_pymodule_addobject): Remove extra braces.
3356 * python-internal.h (gdb_Py_DECREF): New static inline function.
3357 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
3358
3359 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3360
3361 * breakpoints.c (detach_breakpoints): Do not
3362 detach breakpoints locations with loc_type bp_loc_other.
3363
3364 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3365
3366 Workaround Python 2.6.
3367 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
3368 a block.
3369
3370 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3371
3372 Code cleanup: constification.
3373 * solib.c (solib_ops): Make return type and ops variable type const.
3374 (set_solib_ops): Make the new_ops parameter and ops variable const.
3375 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
3376 (solib_add, solib_keep_data_in_core, clear_solib)
3377 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3378 (reload_shared_libraries, solib_global_lookup): Make the ops variable
3379 const.
3380 * solib.h (set_solib_ops): Make the new_ops parameter const.
3381
3382 2013-05-21 Joel Brobecker <brobecker@adacore.com>
3383
3384 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
3385 variable.
3386 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
3387 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
3388 (SYSTEM_GDBINIT_FILES): New variables.
3389 (all): Add stamp-system-gdbinit.
3390 (stamp-system-gdbinit): New rule.
3391 (clean-system-gdbinit, install-system-gdbinit)
3392 (uninstall-system-gdbinit): New rules. Make them .PHONY.
3393 (install-only): Add dependency on install-system-gdbinit.
3394 (uninstall): Add dependency on uninstall-system-gdbinit.
3395 (clean): Add dependency on clean-system-gdbinit.
3396 * system-gdbinit/elinos.py: New file.
3397 * system-gdbinit/wrs-linux.py: New file.
3398
3399 2013-05-21 Joel Brobecker <brobecker@adacore.com>
3400
3401 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
3402
3403 2013-05-21 Hui Zhu <hui@codesourcery.com>
3404
3405 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
3406 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
3407 * mi/mi-cmd-break.c (ctype.h): New include.
3408 (gdb_obstack.h): New include.
3409 (mi_argv_to_format, mi_cmd_break_insert_1): New.
3410 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
3411 (mi_cmd_dprintf_insert): New.
3412 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
3413 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
3414
3415 2013-05-20 Tom Tromey <tromey@redhat.com>
3416
3417 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
3418
3419 2013-05-20 Tom Tromey <tromey@redhat.com>
3420
3421 * python/py-value.c (valpy_get_dynamic_type): Simplify
3422 dynamic_type assignment. Use Py_XINCREF.
3423
3424 2013-05-20 Tom Tromey <tromey@redhat.com>
3425
3426 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
3427
3428 2013-05-20 Tom Tromey <tromey@redhat.com>
3429
3430 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
3431 (gdbpy_selected_frame): Move object-construction code
3432 out of TRY_CATCH.
3433
3434 2013-05-20 Tom Tromey <tromey@redhat.com>
3435
3436 * python/py-arch.c (gdbpy_initialize_arch): Use
3437 gdb_pymodule_addobject.
3438 * python/py-block.c (gdbpy_initialize_blocks): Use
3439 gdb_pymodule_addobject.
3440 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
3441 gdb_pymodule_addobject.
3442 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
3443 gdb_pymodule_addobject.
3444 * python/py-event.c (gdbpy_initialize_event_generic): Use
3445 gdb_pymodule_addobject.
3446 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
3447 gdb_pymodule_addobject.
3448 * python/py-evts.c (add_new_registry): Use
3449 gdb_pymodule_addobject.
3450 (gdbpy_initialize_py_events): Likewise.
3451 * python/py-finishbreakpoint.c
3452 (gdbpy_initialize_finishbreakpoints): Use
3453 gdb_pymodule_addobject.
3454 * python/py-frame.c (gdbpy_initialize_frames): Use
3455 gdb_pymodule_addobject.
3456 * python/py-function.c (gdbpy_initialize_functions): Use
3457 gdb_pymodule_addobject.
3458 * python/py-inferior.c (gdbpy_initialize_inferior): Use
3459 gdb_pymodule_addobject.
3460 * python/py-infthread.c (gdbpy_initialize_thread): Use
3461 gdb_pymodule_addobject.
3462 * python/py-objfile.c (gdbpy_initialize_objfile): Use
3463 gdb_pymodule_addobject.
3464 * python/py-param.c (gdbpy_initialize_parameters): Use
3465 gdb_pymodule_addobject.
3466 * python/py-progspace.c (gdbpy_initialize_pspace): Use
3467 gdb_pymodule_addobject.
3468 * python/py-symbol.c (gdbpy_initialize_symbols): Use
3469 gdb_pymodule_addobject.
3470 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
3471 gdb_pymodule_addobject.
3472 * python/py-type.c (gdbpy_initialize_types): Use
3473 gdb_pymodule_addobject.
3474 * python/py-utils.c (gdb_pymodule_addobject): New function.
3475 * python/py-value.c (gdbpy_initialize_values): Use
3476 gdb_pymodule_addobject.
3477 * python/python-internal.h (gdb_pymodule_addobject): Declare.
3478 * python/python.c (_initialize_python): Use
3479 gdb_pymodule_addobject.
3480
3481 2013-05-20 Tom Tromey <tromey@redhat.com>
3482
3483 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
3484 * python/py-param.c (get_set_value, get_show_value): Use
3485 explicit decrefs.
3486 * python/python.c (start_type_printers, apply_type_printers):
3487 Use explicit decrefs.
3488
3489 2013-05-20 Tom Tromey <tromey@redhat.com>
3490
3491 * python/py-evts.c (gdbpy_initialize_py_events): Don't
3492 incref the module.
3493
3494 2013-05-20 Tom Tromey <tromey@redhat.com>
3495
3496 * python/python.c (gdbpy_run_events): Decref the result
3497 of PyObject_CallObject.
3498
3499 2013-05-20 Tom Tromey <tromey@redhat.com>
3500
3501 * python/py-symtab.c (set_sal): Use
3502 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
3503 (symtab_and_line_to_sal_object): Update.
3504
3505 2013-05-20 Tom Tromey <tromey@redhat.com>
3506
3507 * python/py-param.c (compute_enum_values): Decref 'item'.
3508
3509 2013-05-20 Tom Tromey <tromey@redhat.com>
3510
3511 * mi/mi-main.c: Include python-internal.h.
3512 (mi_cmd_list_features): Check gdb_python_initialized.
3513 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
3514 (python_inferior_exit, python_new_objfile, add_thread_object)
3515 (delete_thread_object, py_free_inferior): Check
3516 gdb_python_initialized.
3517 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3518 gdb_python_initialized.
3519 * python/py-type.c (save_objfile_types): Check
3520 gdb_python_initialized.
3521 * python/python-internal.h (gdb_python_initialized): Declare.
3522 * python/python.c (ensure_python_env): Throw exception if
3523 Python not initialized.
3524 (before_prompt_hook, source_python_script_for_objfile)
3525 (start_type_printers, apply_type_printers,
3526 free_type_printers): Check gdb_python_initialized.
3527 * varobj.c (varobj_get_display_hint)
3528 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
3529 (install_new_value_visualizer, varobj_set_visualizer)
3530 (value_get_print_value): Check gdb_python_initialized.
3531
3532 2013-05-20 Tom Tromey <tromey@redhat.com>
3533
3534 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
3535 Check errors.
3536 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
3537 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
3538 Check errors.
3539 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
3540 Check errors.
3541 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
3542 Check errors.
3543 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
3544 Check errors.
3545 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
3546 init function to return 'int'.
3547 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
3548 Return 'int'. Check errors.
3549 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
3550 Check errors.
3551 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
3552 Return 'int'. Check errors.
3553 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
3554 Check errors.
3555 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
3556 Check errors.
3557 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
3558 Check errors.
3559 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
3560 Check errors.
3561 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
3562 Check errors.
3563 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
3564 Check errors.
3565 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
3566 Check errors.
3567 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
3568 Check errors.
3569 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
3570 Check errors.
3571 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
3572 Check errors.
3573 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
3574 Check errors.
3575 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
3576 Check errors.
3577 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
3578 Check errors.
3579 * python/python-internal.h (gdbpy_initialize_auto_load,
3580 gdbpy_initialize_values, gdbpy_initialize_frames,
3581 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
3582 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
3583 gdbpy_initialize_blocks, gdbpy_initialize_types,
3584 gdbpy_initialize_functions, gdbpy_initialize_pspace,
3585 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
3586 gdbpy_initialize_finishbreakpoints,
3587 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
3588 gdbpy_initialize_thread, gdbpy_initialize_inferior,
3589 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
3590 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
3591 gdbpy_initialize_signal_event,
3592 gdbpy_initialize_breakpoint_event,
3593 gdbpy_initialize_continue_event,
3594 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
3595 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
3596 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3597 * python/python.c (gdb_python_initialized): New global.
3598 (gdbpy_initialize_events): Return 'int'. Check errors.
3599 (_initialize_python): Check errors. Set
3600 gdb_python_initialized.
3601
3602 2013-05-20 Tom Tromey <tromey@redhat.com>
3603
3604 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
3605 Decref the reslut of PyObject_CallMethod.
3606
3607 2013-05-20 Tom Tromey <tromey@redhat.com>
3608
3609 * python/py-event.c (gdbpy_initialize_event_generic): Return
3610 early if PyType_Ready fails.
3611
3612 2013-05-20 Tom Tromey <tromey@redhat.com>
3613
3614 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
3615 as 'default' in the switch.
3616
3617 2013-05-20 Tom Tromey <tromey@redhat.com>
3618
3619 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
3620 get_addr_from_python calls out of TRY_CATCH.
3621 (infpy_write_memory, infpy_search_memory): Likewise.
3622 * python/py-utils.c (get_addr_from_python): Return negative
3623 value on error. Use TRY_CATCH.
3624 * python/python-internal.h (get_addr_from_python): Use
3625 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3626
3627 2013-05-20 Tom Tromey <tromey@redhat.com>
3628
3629 * python/py-event.c (evpy_emit_event): Decref the
3630 result of PyObject_CallFunctionObjArgs.
3631
3632 2013-05-20 Tom Tromey <tromey@redhat.com>
3633
3634 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
3635 Correctly decref.
3636
3637 2013-05-20 Tom Tromey <tromey@redhat.com>
3638
3639 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
3640
3641 2013-05-20 Tom Tromey <tromey@redhat.com>
3642
3643 * python/py-event.h (gdbpy_initialize_event_generic): Use
3644 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3645 * python/py-evts.c (add_new_registry): Use
3646 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3647 * python/python-internal.h
3648 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
3649
3650 2013-05-20 Tom Tromey <tromey@redhat.com>
3651
3652 * python/py-arch.c (archpy_disassemble): Update.
3653 * python/py-type.c (typy_get_composite, typy_lookup_typename)
3654 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
3655 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
3656 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
3657 macro.
3658 (GDB_PY_HANDLE_EXCEPTION): Update.
3659 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
3660
3661 2013-05-20 Tom Tromey <tromey@redhat.com>
3662
3663 * python/python-internal.h (events_object_type): Remove.
3664
3665 2013-05-20 Tom Tromey <tromey@redhat.com>
3666
3667 * python/py-event.h (evpy_emit_event): Use
3668 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3669 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3670 New macro.
3671
3672 2013-05-20 Tom Tromey <tromey@redhat.com>
3673
3674 * py-evtregistry.c (create_event_object): Decref
3675 eventregistry_object if PyList_New fails.
3676
3677 2013-05-20 Tom Tromey <tromey@redhat.com>
3678
3679 * py-cmd.c (gdbpy_string_to_argv): Check result of
3680 PyList_New.
3681
3682 2013-05-20 Tom Tromey <tromey@redhat.com>
3683
3684 * python/python.c (before_prompt_hook): Add cleanup to
3685 decref 'hook'.
3686
3687 2013-05-20 Tom Tromey <tromey@redhat.com>
3688
3689 * python/py-function.c (fnpy_init): Decref result of
3690 PyObject_GetAttrString.
3691
3692 2013-05-20 Tom Tromey <tromey@redhat.com>
3693
3694 * python/py-threadevent.c (get_event_thread): Use
3695 CPYCHECKER_RETURNS_BORROWED_REF.
3696 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3697 New define.
3698 (pspace_to_pspace_object, objfile_to_objfile_object)
3699 (find_thread_object): Use it.
3700
3701 2013-05-20 Tom Tromey <tromey@redhat.com>
3702
3703 * python/py-arch.c (arch_object_type): Use
3704 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3705 * python/py-block.c (block_syms_iterator_object_type):
3706 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3707 * python/py-bpevent.c (breakpoint_event_object_type):
3708 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3709 * python/py-cmd.c (cmdpy_object_type): Use
3710 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3711 * python/py-continueevent.c (continue_event_object_type):
3712 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3713 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
3714 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3715 * python/py-events.h (thread_event_object_type):
3716 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3717 * python/py-evtregistry.c (eventregistry_object_type): Use
3718 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3719 * python/py-exitedevent.c (exited_event_object_type):
3720 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3721 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
3722 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3723 * python/py-function.c (fnpy_object_type): Use
3724 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3725 * python/py-inferior.c (inferior_object_type, membuf_object_type):
3726 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3727 * python/py-infthread.c (thread_object_type): Use
3728 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3729 * python/py-lazy-string.c (lazy_string_object_type):
3730 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3731 * python/py-newobjfileevent.c (new_objfile_event_object_type):
3732 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3733 * python/py-objfile.c (objfile_object_type): Use
3734 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3735 * python/py-param.c (parmpy_object_type):
3736 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3737 * python/py-progspace.c (pspace_object_type):
3738 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3739 * python/py-signalevent.c (signal_event_object_type):
3740 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3741 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
3742 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3743 * python/py-type.c (type_object_type, field_object_type)
3744 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3745 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
3746 define.
3747 (value_object_type, block_object_type, symbol_object_type)
3748 (event_object_type, stop_event_object_type, breakpoint_object_type)
3749 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3750
3751 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
3752
3753 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
3754 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
3755
3756 2013-05-20 Doug Evans <dje@google.com>
3757
3758 When reading CU, stay in DWO. Be more tolerent of bad debug info.
3759 For Fission.
3760 * dwarf2read.c (struct dwarf2_per_cu_data): New member
3761 reading_dwo_directly.
3762 (struct signatured_type): New member dwo_unit.
3763 (struct die_reader_specs): New member comp_dir.
3764 (create_signatured_type_table_from_index): Use malloc for
3765 all_type_units instead of objfile's obstack.
3766 (create_all_type_units): Ditto.
3767 (fill_in_sig_entry_from_dwo_entry): New function.
3768 (add_type_unit): New function.
3769 (lookup_dwo_signatured_type): New function.
3770 (lookup_dwp_signatured_type): New function.
3771 (lookup_signatured_type): New arg cu. All callers updated.
3772 (init_cu_die_reader): Initialize comp_dir.
3773 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
3774 Change assert of matching type signatures to call error on mismatch.
3775 (lookup_dwo_unit): Add assert.
3776 (init_tu_and_read_dwo_dies): New function.
3777 (init_cutu_and_read_dies): Call it.
3778 (build_type_unit_groups): Handle case of no type unit groups created.
3779 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
3780 (lookup_dwo_cutu): Tweak complaint.
3781 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
3782 (dwarf2_per_objfile_free): Free all_type_units.
3783
3784 2013-05-20 Joel Brobecker <brobecker@adacore.com>
3785
3786 * windows-nat.c (handle_unload_dll): Add missing empty line.
3787
3788 2013-05-20 Joel Brobecker <brobecker@adacore.com>
3789
3790 * dwarf2read.c (prototyped_function_p): New function.
3791 (read_subroutine_type): Use it.
3792
3793 2013-05-20 Joel Brobecker <brobecker@adacore.com>
3794
3795 * rs6000-aix-tdep.c: De-indent some example code provided
3796 as a comment.
3797
3798 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
3799
3800 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
3801 region is ok for a hardware watchpoint using the new ptrace interface
3802 on Power servers.
3803
3804 2013-05-17 Doug Evans <dje@google.com>
3805
3806 * NEWS: Mention new maintenance commands check-symtabs, and
3807 expand-symtabs, and renamed check-psymtabs.
3808 * psymtab.c (maintenance_check_psymtabs): Renamed from
3809 maintenance_check_symtabs. Only process already-expanded symbol
3810 tables.
3811 (_initialize_psymtab): Update.
3812 * symmisc.c (maintenance_check_symtabs): New function.
3813 (maintenance_expand_name_matcher): New function
3814 (maintenance_expand_file_matcher): New function
3815 (maintenance_expand_symtabs): New function.
3816 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
3817 commands.
3818
3819 2013-05-17 Tom Tromey <tromey@redhat.com>
3820
3821 * python/py-inferior.c (infpy_read_memory): Don't call
3822 PyErr_SetString if PyObject_New fails.
3823 * python/py-frame.c (frame_info_to_frame_object): Don't call
3824 PyErr_SetString if PyObject_New fails.
3825
3826 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
3827
3828 * acinclude.m4: Add check for dlopen in libdl.
3829 * configure.ac: Ditto.
3830 * configure: Regenerate.
3831
3832 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
3833
3834 * frame.c (frame_stash): Convert to htab.
3835 (frame_addr_hash): New function.
3836 (frame_addr_hash_eq): New function.
3837 (frame_stash_create): Convert function to create
3838 a hash table.
3839 (frame_stash_add): Convert function to add an entry to a hash
3840 table.
3841 (frame_stash_find): Convert function to search the hash table.
3842 (frame_stash_invalidate): Convert function to empty the hash
3843 table.
3844 (get_frame_id): Only add to stash if a frame_id is created.
3845 (_initialize_frame): Call frame_stash_create.
3846
3847 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
3848
3849 * configure.ac: Ensure MIG is available when building for GNU Hurd
3850 hosts.
3851 * configure: Regenerate.
3852
3853 2013-05-16 Joel Brobecker <brobecker@adacore.com>
3854
3855 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
3856
3857 2013-05-16 Joel Brobecker <brobecker@adacore.com>
3858
3859 * ada-lang.c (ada_make_symbol_completion_list): Make sure
3860 all cleanups are done before returning from this function.
3861
3862 2013-05-15 Joel Brobecker <brobecker@adacore.com>
3863
3864 * utils.h: #include "exceptions.h".
3865 (enum errors): Remove partial declaration.
3866
3867 2013-05-15 Joel Brobecker <brobecker@adacore.com>
3868
3869 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
3870 * gdbarch.h, gdbarch.c: Regenerate.
3871 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
3872 handling.
3873
3874 * rs6000-aix-tdep.h: New file.
3875 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
3876 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
3877 "xml-utils.h".
3878 (struct field_info, struct ld_info_desc): New types.
3879 (ld_info32_desc, ld_info64_desc): New static constants.
3880 (struct ld_info): New type.
3881 (rs6000_aix_extract_ld_info): New function.
3882 (rs6000_aix_shared_library_to_xml): Likewise.
3883 (rs6000_aix_ld_info_to_xml): Likewise.
3884 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3885 (rs6000_aix_init_osabi): Add call to
3886 set_gdbarch_core_xfer_shared_libraries_aix.
3887 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
3888 Remove "xml-utils.h" include.
3889 (LdInfo): Delete typedef.
3890 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
3891 Delete macros.
3892 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
3893 Adjust code accordingly.
3894 (rs6000_core_ldinfo): Delete, folded into
3895 rs6000_aix_core_xfer_shared_libraries_aix.
3896 (rs6000_xfer_shared_library): Delete.
3897 (rs6000_xfer_shared_libraries): Reimplement.
3898
3899 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
3900
3901 * record.c (record_goto_cmdlist): New.
3902 (cmd_record_goto): Split into this ...
3903 (cmd_record_goto_begin): ... this
3904 (cmd_record_goto_end): ... and this.
3905 (_initialize_record): Change "record goto" to prefix command.
3906 Add commands for "record goto begin" and "record goto end".
3907 Add an alias for "record goto start" to "record goto begin".
3908
3909 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3910
3911 * linespec.c (convert_linespec_to_sals): New comment for
3912 SOURCE_FILENAME assignment.
3913
3914 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3915
3916 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
3917 internal_warning.
3918
3919 2013-05-14 Tom Tromey <tromey@redhat.com>
3920
3921 * eval.c (parse_and_eval_long): Make 'exp' const.
3922 * value.h (parse_and_eval_long): Update.
3923
3924 2013-05-14 Tom Tromey <tromey@redhat.com>
3925
3926 * ui-file.c (gdb_fopen): Make arguments const.
3927 * ui-file.h (gdb_fopen): Make arguments const.
3928
3929 2013-05-14 Tom Tromey <tromey@redhat.com>
3930
3931 * remote.c (remote_set_trace_notes): Make arguments const.
3932 * target.c (update_current_target): Update cast.
3933 * target.h (to_set_trace_notes): Make arguments const.
3934
3935 2013-05-14 Tom Tromey <tromey@redhat.com>
3936
3937 * go32-nat.c (go32_terminal_info): Make 'args' const.
3938 * inferior.h (child_terminal_info): Update.
3939 * inflow.c (child_terminal_info): Make 'args' const.
3940 * target.c (default_terminal_info): Make 'args' const.
3941 (debug_to_terminal_save_ours): Likewise.
3942 * target.h (struct target_ops) <to_terminal_info>: Make argument
3943 const.
3944
3945 2013-05-13 Tom Tromey <tromey@redhat.com>
3946
3947 * gcore.c (create_gcore_bfd): Make 'filename' const.
3948 * gcore.h (create_gcore_bfd): Make 'filename' const.
3949 * record-full.c (record_full_save): Make 'recfilename' const.
3950 * target.c (target_save_record): Make 'filename' const.
3951 * target.h (struct target_ops) <to_save_record>: Make 'filename'
3952 const.
3953 (target_save_record): Likewise.
3954
3955 2013-05-13 Tom Tromey <tromey@redhat.com>
3956
3957 PR gdb/15338:
3958 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
3959 ranges section has been read.
3960
3961 2013-05-13 Tom Tromey <tromey@redhat.com>
3962
3963 PR exp/15364:
3964 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
3965 STRUCTOP_PTR>: Return a not_lval value for
3966 EVAL_AVOID_SIDE_EFFECTS.
3967 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
3968 for EVAL_AVOID_SIDE_EFFECTS.
3969
3970 2013-05-13 Joel Brobecker <brobecker@adacore.com>
3971
3972 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
3973 floating point registers to register type before storing
3974 value.
3975 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
3976 Likewise.
3977
3978 2013-05-10 Joel Brobecker <brobecker@adacore.com>
3979 Tom Tromey <tromey@redhat.com>
3980
3981 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
3982 New functions.
3983 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
3984 Declare.
3985 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
3986 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
3987 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
3988 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
3989
3990 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
3991 Tom Tromey <tromey@redhat.com>
3992
3993 PR build/15414:
3994 * configure: Rebuild.
3995 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
3996 with -Wno-format.
3997
3998 2013-05-10 Pedro Alves <palves@redhat.com>
3999
4000 * remote.c (_initialize_remote): Fix spelling of
4001 qXfer:traceframe-info:read packet in packet config command.
4002
4003 2013-05-10 David Taylor <dtaylor@emc.com>
4004
4005 PR remote/15455
4006
4007 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
4008 "QTro" at start of packet.
4009
4010 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4011
4012 * solib-aix.c (solib_aix_relocate_section_addresses):
4013 For the .bss section action, apply the same offset as
4014 the .data section.
4015
4016 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4017
4018 * solib-aix.c (solib_aix_relocate_section_addresses):
4019 Remove FIXME comment.
4020
4021 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4022
4023 PR tdep/15420:
4024 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
4025 New functions, directly copied from sparc-sol-thread.c.
4026 * sparc-sol-thread.c: Delete.
4027 * configure.ac: Remove code handling sparc-solaris-thread.c.
4028 * configure: Regenerate.
4029
4030 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
4031
4032 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
4033 filter logic.
4034 (backtrace_command): Add "no-filters" option parsing.
4035 (_initialize_stack): Alter help to reflect "no-filters" option.
4036 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
4037 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
4038 (py-frame.o): Add target
4039 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
4040 filter files.
4041 * python/python.h: Add new frame filter constants, and flag enum.
4042 (apply_frame_filter): Add definition.
4043 * python/python.c (apply_frame_filter): New non-Python
4044 enabled function.
4045 * python/py-utils.c (py_xdecref): New function.
4046 (make_cleanup_py_xdecref): Ditto.
4047 * python/py-objfile.c: Declare frame_filters dictionary.
4048 (objfpy_dealloc): Add frame_filters dealloc.
4049 (objfpy_new): Initialize frame_filters attribute.
4050 (objfile_to_objfile_object): Ditto.
4051 (objfpy_get_frame_filters): New function.
4052 (objfpy_set_frame_filters): New function.
4053 * python/py-progspace.c: Declare frame_filters dictionary.
4054 (pspy_dealloc): Add frame_filters dealloc.
4055 (pspy_new): Initialize frame_filters attribute.
4056 (pspacee_to_pspace_object): Ditto.
4057 (pspy_get_frame_filters): New function.
4058 (pspy_set_frame_filters): New function.
4059 * python/py-framefilter.c: New file.
4060 * python/lib/gdb/command/frame_filters.py: New file.
4061 * python/lib/gdb/frames.py: New file.
4062 * python/lib/gdb/__init__.py: Initialize global frame_filters
4063 dictionary
4064 * python/lib/gdb/FrameDecorator.py: New file.
4065 * python/lib/gdb/FrameIterator.py: New file.
4066 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
4067 * mi/mi-cmds.h: Declare.
4068 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
4069 --no-frame-filter logic, and Python frame filter logic.
4070 (stack_enable_frame_filters): New function.
4071 (parse_no_frame_option): Ditto.
4072 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
4073 filter logic.
4074 (mi_cmd_stack_list_locals): Ditto.
4075 (mi_cmd_stack_list_args): Ditto.
4076 (mi_cmd_stack_list_variables): Ditto.
4077 * NEWS: Add frame filter note.
4078
4079 2013-05-09 Doug Evans <dje@google.com>
4080
4081 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
4082 All callers updated.
4083 (syms_from_objfile): Ditto. Make static.
4084 (symbol_file_add_with_addrs): Renamed from
4085 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
4086 num_offsets. All callers updated.
4087 * symfile.h (syms_from_objfile): Delete.
4088
4089 * symfile.c (decrement_reading_symtab): Add assert.
4090 (increment_reading_symtab): Ditto.
4091
4092 2013-05-09 Joel Brobecker <brobecker@adacore.com>
4093
4094 * source.c (forward_search_command): Replace call to getc
4095 by call to fgetc.
4096 (reverse_search_command): Likewise.
4097
4098 2013-05-08 Doug Evans <dje@google.com>
4099
4100 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
4101 matching test.
4102
4103 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4104
4105 * sol-thread.c (info_cb): Factorize the code a little.
4106
4107 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4108
4109 * sol-thread.c (info_cb): Rework the output of the "maintenance
4110 info sol-threads" command a bit.
4111
4112 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4113
4114 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
4115 Replace ti.ti_startfunc by ti.ti_pc.
4116
4117 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4118
4119 * solib-aix.c (solib_aix_free_library_list): New function
4120 for the case where HAVE_LIBEXPAT is not defined.
4121
4122 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4123
4124 PR breakpoints/15413:
4125 * breakpoint.c (condition_completer): Simplify the code to
4126 disconsider multiple locations of breakpoints when completing the
4127 "condition" command.
4128
4129 2013-05-07 Pierre Muller <muller@sourceware.org>
4130
4131 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
4132 instead of <sys/wait.h>.
4133
4134 2013-05-07 Pierre Muller <muller@sourceware.org>
4135
4136 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
4137 trailing new line from warning message.
4138
4139 2013-05-07 Pierre Muller <muller@sourceware.org>
4140
4141 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
4142 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
4143
4144 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4145
4146 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
4147 error message (ARI fix).
4148
4149 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4150
4151 * features/library-list-aix.dtd: Replace library-list by
4152 library-list-aix.
4153 * rs6000-nat.c: Replace library-list by library-list-aix
4154 throughout.
4155 * solib-aix.c: Likewise.
4156
4157 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4158
4159 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
4160 Renames TARGET_OBJECT_AIX_LIBRARIES.
4161 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
4162 TARGET_OBJECT_LIBRARIES_AIX throughout.
4163 * solib-aix.c: Likwise.
4164
4165 2013-05-07 Yao Qi <yao@codesourcery.com>
4166
4167 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
4168 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
4169
4170 2013-05-07 Yao Qi <yao@codesourcery.com>
4171
4172 * solib-dsbt.c (enable_break): Declare.
4173 (dsbt_current_sos): Remove call to enable_break2.
4174 (enable_break2): Rename to enable_break. Set solib breakpoint
4175 on '_dl_debug_state'.
4176 (enable_break): Remove.
4177
4178 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
4179
4180 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
4181 debug state prior to replicating existing hardware watchpoints or
4182 breakpoints.
4183
4184 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4185
4186 * gcore.c (gcore_create_callback): Ignore sections with
4187 separate_debug_objfile_backlink != NULL.
4188
4189 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
4190 Andrew Jenner <andrew@codesourcery.com>
4191 Chung-Lin Tang <cltang@codesourcery.com>
4192 Julian Brown <julian@codesourcery.com>
4193
4194 Based on the nios2-elf port from Altera Corporation.
4195
4196 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
4197 nios2-linux-tdep.o.
4198 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
4199 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
4200 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
4201 * nios2-tdep.h: New.
4202 * nios2-tdep.c: New.
4203 * nios2-linux-tdep.c: New.
4204 * features/Makefile (WHICH): Add nios2-linux.
4205 (nios2-linux-expedite): Set.
4206 * features/nios2-cpu.xml: New.
4207 * features/nios2.xml: New.
4208 * features/nios2-linux.xml: New.
4209 * features/nios2.c: New (autogenerated).
4210 * features/nios2-linux.c: New (autogenerated).
4211 * regformats/nios2-linux.dat: New (autogenerated).
4212 * NEWS (Changes since GDB 7.6): Add new Nios II targets
4213 and commands.
4214
4215 2013-05-06 Doug Evans <dje@google.com>
4216
4217 * symfile.c: Whitespace cleanup.
4218
4219 * solist.h (struct target_so_ops): New member clear_so.
4220 * solib-svr4.c (svr4_clear_so): New function.
4221 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
4222 * solib.c (clear_so): Renamed from free_so_symbols.
4223 All callers updated. Call target clear_so if it exists.
4224
4225 2013-05-06 Tom Tromey <tromey@redhat.com>
4226
4227 * ada-lang.c (ada_value_primitive_packed_val): Don't
4228 call value_incref.
4229 * value.c (set_value_parent): Incref the new parent and decref
4230 the old parent.
4231 (value_copy, value_primitive_field): Use set_value_parent.
4232
4233 2013-05-06 Tom Tromey <tromey@redhat.com>
4234
4235 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
4236 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
4237 if needed.
4238 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
4239 * dwarf2read.c (write_constant_as_bytes)
4240 (dwarf2_fetch_constant_bytes): New functions.
4241
4242 2013-05-06 Tom Tromey <tromey@redhat.com>
4243
4244 * dwarf2read.c (dwarf2_const_value_data): Remove unused
4245 parameters.
4246 (dwarf2_const_value_attr): Update.
4247
4248 2013-05-06 Tom Tromey <tromey@redhat.com>
4249
4250 * somread.c (som_symfile_offsets): Add 'const' to addrs.
4251 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
4252 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
4253 Remove declaration.
4254
4255 2013-05-06 Tom Tromey <tromey@redhat.com>
4256
4257 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
4258 objfile's obstack.
4259
4260 2013-05-06 Doug Evans <dje@google.com>
4261
4262 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
4263 * stabsread.h (process_one_symbol): Update declaration.
4264 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
4265 * elfread.c (elf_symfile_relocate_probe): Ditto.
4266 * psymtab.c (relocate_psymtabs): Ditto.
4267 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
4268 (objfile_relocate): Ditto.
4269 * objfiles.h (objfile_relocate): Update declaration.
4270 * symfile.c (relative_addr_info_to_section_offsets): Constify
4271 addrs parameter.
4272 (default_symfile_offsets): Ditto.
4273 (syms_from_objfile_1): Constify offsets parameter.
4274 (syms_from_objfile): Ditto.
4275 (symbol_file_add_with_addrs_or_offsets): Ditto.
4276 (symfile_map_offsets_to_segments): Constify data parameter.
4277 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
4278 delta parameters of member relocate.
4279 (struct sym_probe_fns): Constify new_offsets,
4280 delta parameters of member sym_relocate_probe.
4281 (struct sym_fns): Constify section_addr_info parameter of member
4282 sym_offsets.
4283 (relative_addr_info_to_section_offsets): Update declaration.
4284 (default_symfile_offsets): Ditto.
4285 (syms_from_objfile): Ditto.
4286 (symfile_map_offsets_to_segments): Ditto.
4287
4288 * symfile.c (syms_from_objfile_1): Use correct section count when
4289 objfile->sf == NULL.
4290
4291 2013-05-06 Mike Frysinger <vapier@gentoo.org>
4292
4293 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
4294
4295 2013-05-06 Doug Evans <dje@google.com>
4296
4297 * psympriv.h (struct partial_symtab): Augment comment for member
4298 section_offsets.
4299
4300 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4301
4302 Reimplement shared library support on ppc-aix...
4303 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
4304 * features/library-list-aix.dtd: New file.
4305 * solib-aix.h, solib-aix.c: New file.
4306 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
4307 (rs6000_find_toc_address_hook): Delete.
4308 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
4309 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
4310 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
4311 "xml-utils.h".
4312 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
4313 (vmap_symtab, fixup_breakpoints): Delete.
4314 (rs6000_xfer_shared_libraries): New function.
4315 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
4316 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
4317 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
4318 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
4319 (rs6000_xfer_shared_library): New function.
4320 (find_toc_address): Delete.
4321 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
4322 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
4323 * xcoffread.c (record_minimal_symbol): Reloate symbol address
4324 before creating minimal symbol. Adjust function description
4325 accordingly.
4326 (scan_xcoff_symtab): Replace call to
4327 prim_record_minimal_symbol_and_info by call to
4328 record_minimal_symbol.
4329 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
4330 around default_symfile_offsets.
4331 * configure.tgt: Add solib-aix.o to gdb_target_obs for
4332 powerpc-aix targets.
4333 * config/rs6000/nm-rs6000.h: Delete.
4334 * config/powerpc/aix.mh (NAT_FILE): Delete.
4335 (NATDEPFILES): Remove xcoffsolib.o.
4336 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
4337 (ALL_TARGET_OBS): Add solib-aix.o.
4338 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
4339 config/rs6000/nm-rs6000.h. Add solib-aix.h.
4340 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
4341 * xcoffsolib.h, xcoffsolib.c: Delete.
4342
4343 * solib.c (reload_shared_libraries): Remove reference to
4344 SOLIB_CREATE_INFERIOR_HOOK.
4345 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
4346 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
4347 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
4348 comment.
4349 * corelow.c (deprecated_core_resize_section_table): Delete.
4350 * exec.c: Remove include of xcoffsolib.h".
4351 (map_vmap, vmap): Delete.
4352 (exec_close_1): Remove references to vmap.
4353 (exec_file_attach): Remove vmap handling code, and reference
4354 to DEPRECATED_IBM6000_TARGET.
4355 (bfdsec_to_vmap): Delete.
4356 (exec_files_info): Remove block of code handling VMAP.
4357 * infcmd.c (post_create_inferior): Remove reference to
4358 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
4359 * infrun.c (follow_exec): Remove reference to
4360 SOLIB_CREATE_INFERIOR_HOOK.
4361 * stack.c (print_frame): Remove reference to PC_SOLIB.
4362 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
4363 (dsbt_relocate_main_executable): Likewise.
4364 * solib-frv.c (frv_current_sos): Likewise.
4365
4366 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4367
4368 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
4369 to target_write_memory and target_read_memory.
4370
4371 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4372
4373 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
4374 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
4375
4376 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4377
4378 * darwin-nat.c: Replace all "%x" instances in format strings
4379 into "0x%x" throughout.
4380
4381 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4382
4383 * darwin-nat.c (darwin_mourn_inferior): Replace call to
4384 gdb_assert by call to MACH_CHECK_ERROR.
4385 (darwin_attach_pid): Raise an error rather than a failed
4386 assertion when various system calls failed. Report a warning
4387 instead of raising a failed assertion when PREV_NOT is not NULL
4388 after call to mach_port_request_notification.
4389 (darwin_ptrace_me): Raise an error rather than a failed
4390 assertion when read returns nonzero.
4391
4392 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4393
4394 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
4395
4396 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4397
4398 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
4399
4400 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4401
4402 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
4403 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
4404 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
4405 a stale cleanup. Fix double free of NAME.
4406
4407 2013-05-04 Eli Zaretskii <eliz@gnu.org>
4408
4409 * windows-nat.c (windows_delete_thread): Accept an additional
4410 argument, the thread's exit code, and announce thread death when
4411 print_thread_events is non-zero and we are deleting a thread that
4412 is not the main thread.
4413 (get_windows_debug_event): Pass thread exit code to
4414 windows_delete_thread.
4415
4416 2013-05-03 Kevin Buettner <kevinb@redhat.com>
4417
4418 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
4419 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
4420 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
4421 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
4422 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
4423 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
4424 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
4425 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
4426 (gdbarch_tdep): New struct.
4427 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
4428 E_NUM_REGS.
4429 (v850e3v5_register_name): New function.
4430 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
4431 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
4432 code handling the struct return conventions for the RH850 ABI.
4433 Update all callers.
4434 (v850_eight_byte_align_p): New function.
4435 (v850_push_call_dummy): Push structs by value, not by reference
4436 for the RH850 ABI. Add support for eight byte alignment.
4437 (v850_dbtrap_breakpoint_from_pc): New function.
4438 (v850_gdbarch_init): Add ABI detection code. Register
4439 v850e3v5_register_name for the v850e3v5 architecture. Set the
4440 number of registers for v850e3v5. Register
4441 v850_dbtrap_breakpoint_from_pc as appropriate.
4442 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
4443
4444 2013-05-03 Doug Evans <dje@google.com>
4445
4446 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
4447 of bfd_count_sections.
4448 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
4449 * symfile.c (default_symfile_offsets): Ditto.
4450 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
4451 one entry, not bfd_count_sections entries.
4452
4453 2013-05-03 Kevin Buettner <kevinb@redhat.com>
4454
4455 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
4456 `save' and `restore' register groups. Don't include SPL
4457 or SPH in these groups.
4458 (rl78_dwarf_reg_to_regnum): Adjust mapping for
4459 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
4460 RL78_ES_REGNUM, and RL78_CS_REGNUM.
4461 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
4462 dwarf2_append_unwinders().
4463
4464 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4465
4466 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
4467 ignore SIGINT and SIGTRAP in case these internal signals are
4468 caught explicitely.
4469
4470 2013-05-01 Joel Brobecker <brobecker@adacore.com>
4471
4472 * darwin-nat.c (darwin_read_write_inferior): Change types
4473 of parameters rdaddr and wraddr to "gdb_byte *". Change type
4474 of copy_count to "mach_msg_type_number_t".
4475 (darwin_read_dyld_info): Change type of parameter
4476 rdaddr to "gdb_byte *".
4477
4478 2013-05-01 Joel Brobecker <brobecker@adacore.com>
4479
4480 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
4481 of &info->load_map from "char *" to "gdb_byte *".
4482
4483 2013-05-01 Joel Brobecker <brobecker@adacore.com>
4484
4485 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
4486 from "char *" to "gdb_byte *".
4487 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
4488
4489 2013-04-30 Doug Evans <dje@google.com>
4490
4491 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
4492 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
4493 DWO stub. If DWO isn't found, just use stub.
4494 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
4495
4496 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
4497 calling init_cutu_and_read_dies.
4498
4499 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4500
4501 * target-descriptions.c (maint_print_c_tdesc_cmd):
4502 Add case to parse structures as register types and
4503 bitfields.
4504
4505 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
4506
4507 * MAINTAINERS (Write After Approval): Add myself to the list.
4508
4509 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4510
4511 * sol-thread.c (rw_common): Change type of parameter "buf"
4512 to "gdb_byte *".
4513 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
4514 rw_common to "gdb_byte *" instead of "char *".
4515
4516 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4517
4518 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
4519 of local variable msym to const struct bound_minimal_symbol.
4520 Adjust use accordingly.
4521 [ti.ti_state == TD_THR_SLEEP]: Likewise.
4522
4523 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
4524
4525 * i386gnu-nat.c (CREG_OFFSET): New macro.
4526 (creg_offset): New array.
4527 (CREG_ADDR): Use creg_offset instead of reg_offset.
4528
4529 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4530
4531 * mep-tdep.c (mep_write_pc): Delete.
4532 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
4533 Add call to set_gdbarch_pc_regnum.
4534
4535 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4536
4537 * common/filestuff.c: Replace #include <dirent.h> by
4538 #include "gdb_dirent.h".
4539
4540 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4541
4542 * common/filestuff.c: Replace #include <sys/stat.h> by
4543 #include "gdb_stat.h".
4544
4545 2013-04-29 Pierre Muller <muller@sourceware.org>
4546
4547 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
4548 editCase function rule.
4549 (get_DW_AT_signature_type): Likewise.
4550
4551 2013-04-29 Joel Brobecker <brobecker@adacore.com>
4552
4553 * m32r-tdep.c (m32r_write_pc): Delete.
4554 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
4555 Add call to set_gdbarch_pc_regnum.
4556
4557 2013-04-29 Pierre Muller <muller@sourceware.org>
4558
4559 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
4560
4561 2013-04-29 Joel Brobecker <brobecker@adacore.com>
4562
4563 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
4564
4565 2013-04-28 Yao Qi <yao@codesourcery.com>
4566
4567 * solib-dsbt.c (fetch_loadmap): Re-indent.
4568 (displacement_from_map, enable_break2): Likewise.
4569 (dsbt_relocate_section_addresses): Likewise.
4570
4571 2013-04-26 Joel Brobecker <brobecker@adacore.com>
4572
4573 GDB 7.6 released.
4574
4575 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
4576
4577 PR corefiles/14983:
4578 * dwarf2read.c (process_full_comp_unit): Always create a static
4579 block.
4580
4581 2013-04-25 Hui Zhu <hui@codesourcery.com>
4582
4583 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
4584 to loc->cmd_bytecode.
4585
4586 2013-04-24 Doug Evans <dje@google.com>
4587
4588 * dwarf2read.c (setup_type_unit_groups): Fix comment.
4589
4590 2013-04-22 Keith Seitz <keiths@redhat.com>
4591
4592 * tracepoint.c (trace_save): Call the writer's start method.
4593
4594 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
4595
4596 PR gdb/10462
4597 * cli/cli-decode.c (lookup_command): Show an error if there is no space
4598 before argument.
4599
4600 2013-04-23 Tom Tromey <tromey@redhat.com>
4601
4602 * common/filestuff.c: Check USE_WIN32API before including
4603 sys/socket.h.
4604 (HAVE_F_GETFD): New define.
4605 (mark_cloexec): Check HAVE_F_GETFD.
4606 (gdb_open_cloexec): Change 'mode' to unsigned long.
4607 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
4608 (gdb_pipe_cloexec): Check HAVE_PIPE.
4609 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
4610 long.
4611
4612 2013-04-23 Hui Zhu <hui@codesourcery.com>
4613
4614 PR gdb/15293
4615 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
4616
4617 2013-04-23 Hui Zhu <hui@codesourcery.com>
4618
4619 PR gdb/15165
4620 * breakpoint.c (dprintf_print_recreate): New.
4621 (save_breakpoints): Let it not save dprintf commands.
4622 (initialize_breakpoint_ops): Set dprintf_print_recreate.
4623
4624 2013-04-22 Tom Tromey <tromey@redhat.com>
4625
4626 PR gdb/7912:
4627 * Makefile.in (SFILES): Add filestuff.c
4628 (COMMON_OBS): Add filestuff.o.
4629 (filestuff.o): New target.
4630 * auto-load.c (auto_load_objfile_script_1): Use
4631 gdb_fopen_cloexec.
4632 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
4633 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
4634 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
4635 * common/agent.c (gdb_connect_sync_socket): Use
4636 gdb_socket_cloexec.
4637 * common/filestuff.c: New file.
4638 * common/filestuff.h: New file.
4639 * common/linux-osdata.c (linux_common_core_of_thread)
4640 (command_from_pid, commandline_from_pid, print_source_lines)
4641 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4642 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
4643 gdb_fopen_cloexec.
4644 * common/linux-procfs.c (linux_proc_get_int)
4645 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
4646 * config.in, configure: Rebuild.
4647 * configure.ac: Don't check for sys/socket.h. Check for
4648 fdwalk, pipe2.
4649 * corelow.c (core_open): Use gdb_open_cloexec.
4650 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
4651 * fork-child.c (fork_inferior): Call close_most_fds.
4652 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
4653 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
4654 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
4655 Use gdb_fopen_cloexec.
4656 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
4657 gdb_open_cloexec.
4658 (linux_async_pipe): Use gdb_pipe_cloexec.
4659 * remote-fileio.c (remote_fileio_func_open): Use
4660 gdb_open_cloexec.
4661 * remote.c (remote_file_put, remote_file_get): Use
4662 gdb_fopen_cloexec.
4663 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
4664 close_most_fds.
4665 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
4666 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
4667 * solib.c (solib_find): Use gdb_open_cloexec.
4668 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
4669 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
4670 (tfile_open): Use gdb_open_cloexec.
4671 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
4672 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
4673 * xml-support.c (xml_fetch_content_from_file): Use
4674 gdb_fopen_cloexec.
4675 * main.c (captured_main): Call notice_open_fds.
4676
4677 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
4678
4679 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
4680 'char *' to 'gdb_byte *'.
4681 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
4682 'gdb_byte'.
4683
4684 2013-04-22 Yao Qi <yao@codesourcery.com>
4685
4686 * infrun.c: Fix typo in comment.
4687
4688 2013-04-22 Andrew Haley <aph@redhat.com>
4689
4690 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
4691 instead of "long".
4692
4693 2013-04-20 Yao Qi <yao@codesourcery.com>
4694
4695 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
4696 'char *' to 'gdb_byte *'. Cast the return value of
4697 'bt_ctf_get_char_array' to 'gdb_byte *'.
4698
4699 2013-04-19 Pedro Alves <palves@redhat.com>
4700
4701 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
4702 -Wpointer-sign.
4703 * configure: Regenerate.
4704
4705 2013-04-19 Pedro Alves <palves@redhat.com>
4706
4707 * ser-tcp.c (net_read_prim): Cast second argument to recv to
4708 'void *'.
4709
4710 2013-04-19 Pedro Alves <palves@redhat.com>
4711
4712 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
4713 Change type of 'myaddr' parameter to gdb_byte pointer.
4714 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
4715 to 'long long' pointer instead of to 'unsigned long long'.
4716 (monitor_write_memory_block, monitor_read_memory_single)
4717 (monitor_read_memory): Change type of 'myaddr' parameter to
4718 gdb_byte pointer.
4719
4720 2013-04-19 Pedro Alves <palves@redhat.com>
4721
4722 * record.c (validate_history_size): Make parameter 'setting'
4723 unsigned.
4724
4725 2013-04-19 Pedro Alves <palves@redhat.com>
4726
4727 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
4728 to 'gdb_byte *'.
4729
4730 2013-04-19 Pedro Alves <palves@redhat.com>
4731
4732 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
4733 local to int.
4734
4735 2013-04-19 Pedro Alves <palves@redhat.com>
4736
4737 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
4738 * ada-tasks.c (read_fat_string_value): Likewise.
4739
4740 2013-04-19 Pedro Alves <palves@redhat.com>
4741
4742 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
4743 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
4744 'offset', and adjust.
4745
4746 2013-04-19 Pedro Alves <palves@redhat.com>
4747
4748 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
4749 (read_index_from_section): Add cast to 'char *'.
4750
4751 2013-04-19 Pedro Alves <palves@redhat.com>
4752
4753 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
4754
4755 2013-04-19 Pedro Alves <palves@redhat.com>
4756
4757 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
4758
4759 2013-04-19 Pedro Alves <palves@redhat.com>
4760
4761 * record-full.c (record_full_get_bookmark): Change local 'ret'
4762 type to char * and add cast to gdb_byte *.
4763 (record_full_goto_bookmark): Handle 'bookmark' argument as a
4764 string.
4765 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
4766
4767 2013-04-19 Pedro Alves <palves@redhat.com>
4768
4769 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
4770 * python/py-prettyprint.c (print_string_repr): Change type of
4771 'output' local to char *. Add cast to gdb_byte * in
4772 LA_PRINT_STRING call.
4773 (print_children): Change type of 'output' local to char *.
4774 * python/py-value.c (valpy_string): Add cast to const char * in
4775 PyUnicode_Decode call.
4776
4777 2013-04-19 Pedro Alves <palves@redhat.com>
4778
4779 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
4780 and change its type to 'const char *'. Adjust.
4781 (mips_send_packet): Add cast to 'char *', and remove cast to
4782 'unsigned char *'.
4783 (mips_receive_packet): Remove cast to 'unsigned char *'.
4784 (mips_load_srec): Use bfd_byte.
4785 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
4786 (pmon_checkset): Make 'value' parameter unsigned.
4787
4788 2013-04-19 Pedro Alves <palves@redhat.com>
4789
4790 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
4791
4792 2013-04-19 Pedro Alves <palves@redhat.com>
4793
4794 * remote.c (remote_write_bytes_aux, compare_sections_command)
4795 (remote_read_qxfer)
4796 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
4797 (remote_hostio_readlink, remote_bfd_iovec_pread)
4798 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
4799 binary buffer, and char when buffer is used as string.
4800 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
4801 (trace_save, tfile_open, traceframe_walk_blocks)
4802 (tfile_fetch_registers): Likewise.
4803
4804 2013-04-19 Pedro Alves <palves@redhat.com>
4805
4806 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
4807 buffer and size_t size. Adjust.
4808 * ser-base.h (ser_base_write): Adjust.
4809 * ser-go32.c (cnts): Change type to size_t.
4810 (dos_write): Change prototype -- take 'void *'
4811 buffer and size_t size. Adjust.
4812 (dos_info): Print elements of 'cnts' as unsigned long.
4813 * serial.c (serial_write): Likewise.
4814 * serial.h (serial_write): Adjust.
4815 (struct serial_ops) <write>: Change prototype -- take 'void *'
4816 buffer and size_t size. Adjust.
4817
4818 2013-04-19 Pedro Alves <palves@redhat.com>
4819
4820 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
4821 gdb_byte *.
4822 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
4823
4824 2013-04-19 Pedro Alves <palves@redhat.com>
4825
4826 * alpha-tdep.c (alpha_extract_return_value): Use
4827 regcache_cooked_read_unsigned to read 'v0'.
4828
4829 2013-04-19 Pedro Alves <palves@redhat.com>
4830
4831 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
4832 parameters 'at', 'as' and 'offset' to uint32_t.
4833
4834 2013-04-19 Pedro Alves <palves@redhat.com>
4835
4836 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
4837 'is64' to signed 'int'.
4838
4839 2013-04-19 Pedro Alves <palves@redhat.com>
4840
4841 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
4842 parameter to int *.
4843
4844 2013-04-19 Pedro Alves <palves@redhat.com>
4845
4846 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
4847 'insnbuf' buffer type to unsigned int[].
4848
4849 2013-04-19 Pedro Alves <palves@redhat.com>
4850
4851 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
4852
4853 2013-04-19 Pedro Alves <palves@redhat.com>
4854
4855 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
4856 unsigned long *.
4857
4858 2013-04-19 Pedro Alves <palves@redhat.com>
4859
4860 * alpha-tdep.c (heuristic_fence_post): Change type to int.
4861 (alpha_heuristic_proc_start): Adjust to check -1 instead of
4862 UINT_MAX.
4863 * mips-tdep.c (heuristic_fence_post): Change type to int.
4864 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
4865
4866 2013-04-19 Pedro Alves <palves@redhat.com>
4867
4868 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
4869 (struct gdbarch_tdep) <cris_version>: Make unsigned.
4870 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
4871
4872 2013-04-19 Pedro Alves <palves@redhat.com>
4873
4874 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
4875 it to get a string view of the byte buffer.
4876 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
4877 type to gdb_byte *. Adjust.
4878 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
4879 Change local to char *.
4880 * solib-darwin.c (find_program_interpreter): Change return type to
4881 char *. Adjust.
4882 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
4883 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
4884 * solib-frv.c (enable_break2): Change local 'buf' to char *.
4885 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
4886 * solib-svr4.c (find_program_interpreter): Change return type to
4887 char *. Adjust.
4888 (enable_break): Change local 'interp_name' to char *.
4889 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
4890 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
4891 (spu_pseudo_register_write_spu): Use char for string buffer.
4892 Adjust.
4893 (info_spu_event_command, info_spu_signal_command): Add casts to
4894 'char *'.
4895
4896 2013-04-19 Pedro Alves <palves@redhat.com>
4897
4898 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
4899 gdb_byte[].
4900 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
4901 * ada-lang.c (ada_value_assign): Use gdb_byte.
4902 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
4903 (alphanbsd_sigtramp_offset): Use gdb_byte.
4904 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
4905 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
4906 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
4907 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
4908 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
4909 * arm-tdep.c (arm_stub_unwind_sniffer)
4910 (arm_displaced_init_closure): Use gdb_byte.
4911 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
4912 (arm_default_thumb_le_breakpoint)
4913 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
4914 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
4915 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
4916 * arm-wince-tdep.c (arm_wince_le_breakpoint)
4917 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
4918 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
4919 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
4920 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
4921 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
4922 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
4923 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
4924 (cris_store_return_value, cris_extract_return_value): Use
4925 gdb_byte.
4926 (constraint): Change type of parameter to char * from signed
4927 char*. Use gdb_byte.
4928 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
4929 of local buffer to gdb_byte *.
4930 * dwarf2read.c (read_index_from_section): Use gdb_byte.
4931 (create_dwp_hash_table): Change type of locals to gdb_byte *.
4932 (add_address_entry): Change type of local buffer to gdb_byte[].
4933 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
4934 (frv_push_dummy_call): Use gdb_byte.
4935 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
4936 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
4937 (hppa_hpux_supply_save_state): Use gdb_byte.
4938 * hppa-tdep.c (hppa32_push_dummy_call)
4939 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
4940 * ia64-tdep.c (extract_bit_field, replace_bit_field)
4941 (slotN_contents, replace_slotN_contents): Change type of parameter
4942 to gdb_byte *.
4943 (fetch_instruction, ia64_pseudo_register_write)
4944 (ia64_register_to_value, ia64_value_to_register)
4945 (ia64_extract_return_value, ia64_store_return_value)
4946 (ia64_push_dummy_call): Use gdb_byte.
4947 * m32c-tdep.c (m32c_return_value): Remove cast.
4948 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
4949 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
4950 gdb_byte.
4951 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
4952 * mn10300-tdep.c (mn10300_store_return_value)
4953 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
4954 gdb_byte.
4955 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
4956 (moxie_process_record): Remove casts.
4957 * ppc-ravenscar-thread.c (supply_register_at_address)
4958 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
4959 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
4960 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
4961 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
4962 * remote.c (compare_sections_command): Use gdb_byte.
4963 * score-tdep.c (score7_free_memblock): Change type of parameter to
4964 gdb_byte *.
4965 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
4966 gdb_byte *. Use gdb_byte.
4967 (sh_push_dummy_call_fpu): Use gdb_byte.
4968 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
4969 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
4970 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
4971 Change parameter type to 'gdb_byte *'. Use gdb_byte.
4972 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
4973 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
4974 (sh64_store_return_value, sh64_register_convert_to_virtual):
4975 Change parameter type to 'gdb_byte *'. Use gdb_byte.
4976 (sh64_pseudo_register_write): Use gdb_byte.
4977 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
4978 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
4979 buffer.
4980 (irix_current_sos): Use gdb_byte.
4981 * solib-som.c (som_current_sos): Use gdb_byte.
4982 * sparc-ravenscar-thread.c (supply_register_at_address)
4983 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
4984 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
4985 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
4986 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
4987 'gdb_byte *'.
4988 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
4989 'gdb_byte *'.
4990 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
4991 * xstormy16-tdep.c (xstormy16_extract_return_value)
4992 (xstormy16_store_return_value): Change parameter type to
4993 'gdb_byte *'. Adjust.
4994 (xstormy16_push_dummy_call): Use gdb_byte.
4995 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
4996 (call0_analyze_prologue, execute_code): Use gdb_byte.
4997
4998 2013-04-19 Vladimir Kargov <kargov@gmail.com>
4999 Pedro Alves <palves@redhat.com>
5000
5001 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
5002 value contents.
5003
5004 2013-04-17 Doug Evans <dje@google.com>
5005
5006 * dwarf2read.c (struct signatured_type): New member type.
5007 (struct attribute): Replace member signatured_type with signature.
5008 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
5009 (read_call_site_scope): Call follow_die_ref instead of
5010 follow_die_ref_or_sig.
5011 (read_structure_type): Rewrite handling of signatured types.
5012 (read_enumeration_type): Ditto.
5013 (read_attribute_value): Update.
5014 (build_error_marker_type): New function.
5015 (lookup_die_type): Add assert. Rewrite handling of signatured types.
5016 Don't call error for bad types, just build an error marker type.
5017 (dump_die_shallow): Update.
5018 (follow_die_sig_1): Renamed from follow_die_sig.
5019 Don't call error for bad types, instead return NULL.
5020 (follow_die_sig): New function.
5021 (get_signatured_type, get_DW_AT_signature_type): New functions.
5022
5023 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
5024
5025 * aarch64-tdep.c (aarch64_write_pc): Removed.
5026 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
5027 function.
5028
5029 2013-04-17 Yao Qi <yao@codesourcery.com>
5030
5031 * top.c (print_gdb_configuration): Print configure-time
5032 parameter on using libbabeltrace or not.
5033
5034 2013-04-16 Pedro Alves <palves@redhat.com>
5035
5036 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
5037
5038 2013-04-16 Pedro Alves <palves@redhat.com>
5039
5040 * common/glibc_thread_db.h: Update from upstream glibc
5041 (git 568035b7874a099087b77f7bba3e36a1173787b0).
5042
5043 2013-04-16 Pedro Alves <palves@redhat.com>
5044
5045 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
5046 * common/glibc_thread_db.h: ... this new file ...
5047 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
5048
5049 2013-04-16 Will Newton <will.newton@gmail.com>
5050 Pedro Alves <palves@redhat.com>
5051
5052 PR build/11881
5053
5054 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
5055 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
5056 HAVE_THREAD_DB_H.
5057
5058 2013-04-16 Pedro Alves <palves@redhat.com>
5059 Eli Zaretskii <eliz@gnu.org>
5060
5061 * NEWS: Mention "set foo unlimited".
5062
5063 2013-04-15 Doug Evans <dje@google.com>
5064
5065 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
5066 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
5067 (create_dwo_cu_reader): Renamed from
5068 create_dwo_debug_info_hash_table_reader.
5069 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
5070 Remove support for multiple CUs in a DWO file.
5071 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
5072
5073 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
5074 instead of phex.
5075 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
5076 (create_dwo_in_dwp): Ditto.
5077
5078 2013-04-15 Tom Tromey <tromey@redhat.com>
5079
5080 * NEWS: Move recent entries into "since 7.6" section.
5081
5082 2013-04-15 Tom Tromey <tromey@redhat.com>
5083
5084 PR c++/13588:
5085 * NEWS: Update.
5086 * break-catch-throw.c (struct exception_catchpoint)
5087 <exception_rx, pattern>: New fields.
5088 (fetch_probe_arguments, dtor_exception_catchpoint)
5089 (check_status_exception_catchpoint)
5090 (print_one_detail_exception_catchpoint): New functions.
5091 (handle_gnu_v3_exceptions): Add "except_rx" argument.
5092 Compile regular expression if needed.
5093 (extract_exception_regexp): New function.
5094 (catch_exception_command_1): Use extract_exception_regexp.
5095 (compute_exception): Use fetch_probe_arguments.
5096 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
5097 and check_status fields.
5098 * cp-abi.c (cplus_typename_from_type_info): New function.
5099 * cp-abi.h (cplus_typename_from_type_info): Declare.
5100 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
5101 * gdb_regex.h (compile_rx_or_error): Declare.
5102 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
5103 comment.
5104 (init_gnuv3_ops): Set get_type_from_type_info field.
5105 * probe.c (compile_rx_or_error): Move...
5106 * utils.c (compile_rx_or_error): ... here.
5107
5108 2013-04-15 Tom Tromey <tromey@redhat.com>
5109
5110 PR c++/15176:
5111 * NEWS: Update.
5112 * break-catch-throw.c (compute_exception): New function.
5113 (exception_funcs): New global.
5114 (_initialize_break_catch_throw): Create $_exception.
5115 * cp-abi.c (cplus_type_from_type_info): New function.
5116 * cp-abi.h (cplus_type_from_type_info): Declare.
5117 (struct cp_abi_ops) <get_type_from_type_info>: New field.
5118 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
5119 (gnuv3_get_type_from_type_info): New functions.
5120 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
5121
5122 2013-04-15 Tom Tromey <tromey@redhat.com>
5123
5124 * break-catch-throw.c (struct exception_names): New.
5125 (exception_functions): Change type.
5126 (re_set_exception_catchpoint): Look for SDT probes.
5127
5128 2013-04-15 Tom Tromey <tromey@redhat.com>
5129
5130 PR c++/10119:
5131 * break-catch-throw.c (exception_functions): New global.
5132 (gnu_v3_exception_catchpoint_ops): Move earlier.
5133 (struct exception_catchpoint): New.
5134 (classify_exception_breakpoint): Rewrite.
5135 (re_set_exception_catchpoint): New function.
5136 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
5137 Allocate a struct exception_catchpoint.
5138 (catch_exception_command_1): Update.
5139 (initialize_throw_catchpoint_ops): Set 're_set' method.
5140
5141 2013-04-15 Tom Tromey <tromey@redhat.com>
5142
5143 * Makefile.in (SFILES): Add break-catch-throw.c
5144 (COMMON_OBS): Add break-catch-throw.o.
5145 * break-catch-throw.c: New file.
5146 * breakpoint.c: Move exception-catching code to new file.
5147 (ep_parse_optional_if_clause): No longer static.
5148 * breakpoint.h (ep_parse_optional_if_clause): Declare.
5149
5150 2013-04-15 Tom Tromey <tromey@redhat.com>
5151
5152 PR c++/9065:
5153 * NEWS: Update.
5154 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
5155 * c-exp.y (TYPEID): New token.
5156 (exp): Add new TYPEID productions.
5157 (ident_tokens): Add "typeid".
5158 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
5159 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
5160 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
5161 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
5162 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
5163 case.
5164 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
5165 (build_std_type_info_type, gnuv3_get_typeid_type)
5166 (gnuv3_get_typeid): New functions.
5167 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
5168 new fields on ABI object.
5169 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
5170 * std-operator.def (OP_TYPEID): New.
5171
5172 2013-04-15 Tom Tromey <tromey@redhat.com>
5173
5174 * elfread.c (elf_symtab_read): Install versioned symbol under
5175 unversioned name as well.
5176
5177 2013-04-15 Tom Tromey <tromey@redhat.com>
5178
5179 PR c++/11990:
5180 * c-lang.c (cplus_language_defn): Use gdb_demangle.
5181 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
5182 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
5183 (gdb_demangle): New function.
5184 * cp-support.h (gdb_demangle): Declare.
5185 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
5186 (dwarf2_name): Use gdb_demangle.
5187 * gdbtypes.c (check_stub_method): Use gdb_demangle.
5188 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
5189 suffixes from name.
5190 (gnuv3_print_method_ptr): Use gdb_demangle.
5191 * jv-lang.c (java_demangle): Use gdb_demangle.
5192 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
5193 * language.c (unk_lang_demangle): Use gdb_demangle.
5194 * symtab.c (symbol_find_demangled_name)
5195 (demangle_for_lookup): Use gdb_demangle.
5196
5197 2013-04-15 Tom Tromey <tromey@redhat.com>
5198
5199 PR c++/12824:
5200 * NEWS: Update.
5201 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
5202 New constant.
5203 (classify_exception_breakpoint): New function.
5204 (print_it_exception_catchpoint, print_one_exception_catchpoint)
5205 (print_mention_exception_catchpoint)
5206 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
5207 (catch_exception_command_1): Handle "rethrow" catchpoint.
5208 (catch_rethrow_command): New function.
5209 (_initialize_breakpoint): Add "catch rethrow" command.
5210
5211 2013-04-15 Pierre Muller <muller@sourceware.org>
5212
5213 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
5214 set_gdbarch_write_pc as deprecated anymore.
5215
5216 2013-04-15 Joel Brobecker <brobecker@adacore.com>
5217
5218 * spu-tdep.c (spu_write_pc): Add empty line after local variable
5219 declarations.
5220
5221 2013-04-13 Yao Qi <yao@codesourcery.com>
5222
5223 * ctf.c (_initialize_ctf): Include "completer.h".
5224 Call add_target_with_completer instead of add_target.
5225
5226 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5227
5228 Fix GDB regression related to PR binutils/14813.
5229 * jit.c (mem_bfd_iovec_close): Return 0 for success.
5230 * minidebug.c (lzma_close): Add return value comment.
5231 * remote.c (remote_bfd_iovec_close): Return 0 for success.
5232 * solib-spu.c (spu_bfd_iovec_close): Likewise.
5233 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
5234
5235 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5236
5237 * config.in: Regenerate.
5238
5239 2013-04-12 Tom Tromey <tromey@redhat.com>
5240
5241 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
5242 const.
5243 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
5244 (struct die_reader_specs) <buffer>: Likewise.
5245 (die_reader_func_ftype): Make 'info_ptr' const.
5246 (struct line_header) <include_dirs, statement_program_start,
5247 statement_program_end>: Now const.
5248 (struct file_entry) <name>: Likewise.
5249 (struct partial_die_info) <sibling>: Likewise.
5250 (struct dwarf_block) <data>: Likewise.
5251 (dwarf2_read_section): Remove cast.
5252 (dwarf2_get_section_info): Make 'bufp' const.
5253 (read_index_from_section): Constify.
5254 (dw2_get_file_names_reader): Make 'info_ptr' const.
5255 (dw2_get_primary_filename_reader): Likewise.
5256 (read_comp_unit_head): Make 'info_ptr' and return type const.
5257 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
5258 Likewise.
5259 (read_abbrev_offset): Constify.
5260 (dwarf2_create_include_psymtab): Make 'name' const.
5261 (create_debug_types_hash_table): Update.
5262 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
5263 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
5264 Constify.
5265 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
5266 (load_partial_comp_unit_reader): Make 'info_ptr' const.
5267 (read_comp_units_from_section): Constify.
5268 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
5269 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
5270 const.
5271 (dwarf2_compute_name, setup_type_unit_groups): Constify.
5272 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
5273 (create_dwp_hash_table, dwarf2_ranges_read)
5274 (dwarf2_record_block_ranges): Constify.
5275 (read_die_and_children, read_die_and_siblings_1)
5276 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
5277 const.
5278 (read_full_die_1, read_full_die): Make 'info_ptr' const.
5279 (abbrev_table_read_table): Constify.
5280 (load_partial_dies): Make 'info_ptr' const.
5281 (read_partial_die, read_attribute_value, read_attribute): Make
5282 'info_ptr' and return type const.
5283 (read_address, read_initial_length)
5284 (read_checked_initial_length_and_offset, read_offset)
5285 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
5286 const.
5287 (read_direct_string): Make 'buf' and return type const.
5288 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
5289 (read_indirect_string): Make return type const.
5290 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
5291 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
5292 'info_ptr' const.
5293 (read_str_index): Make return type const.
5294 (add_include_dir): Make 'include_dir' const.
5295 (add_file_name): Make 'name' const.
5296 (dwarf_decode_line_header): Constify.
5297 (psymtab_include_file_name): Make return type const.
5298 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
5299 (dwarf2_start_subfile): Make 'filename' const.
5300 (dwarf2_const_value_attr): Make 'bytes' const.
5301 (read_signatured_type_reader): Make 'info_ptr' const.
5302 (decode_locdesc): Constify.
5303 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
5304 const.
5305 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
5306 'mac_end', and return type const.
5307 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
5308 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
5309 type const.
5310 (per_cu_header_read_in): Constify.
5311 * symfile.h (dwarf2_get_section_info): Update.
5312
5313 2013-04-12 Tom Tromey <tromey@redhat.com>
5314
5315 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
5316
5317 2013-04-12 Eli Zaretskii <eliz@gnu.org>
5318
5319 * NEWS: Mention "show configuration", --configuration.
5320 * top.c (print_gdb_configuration): New function, displays the
5321 details about GDB configure-time parameters.
5322 (print_gdb_version): Mention "show configuration".
5323 * cli/cli-cmds.c (show_configuration): New function.
5324 (_initialize_cli_cmds): Add the "show configuration" command.
5325 * main.c (captured_main) <print_configuration>: New static var.
5326 <long_options>: Use it.
5327 If --configuration was given, call print_gdb_configuration.
5328
5329 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5330 Pedro Alves <palves@redhat.com>
5331
5332 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
5333 (generated_files): Add gcore.
5334 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
5335 HAVE_NATIVE_GCORE_HOST.
5336 (gcore): New.
5337 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
5338 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
5339 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
5340 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
5341 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
5342 Add HAVE_NATIVE_GCORE_HOST.
5343 * configure: Regenerate.
5344 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
5345 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
5346 AC_CONFIG_FILES for gcore.
5347 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
5348 gdb_have_gcore.
5349 * gdb_gcore.sh: Rename to ...
5350 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
5351 and GCORE_TRANSFORM_NAME substitutions.
5352
5353 Fix parsing tabs in ${gdb_target_obs}.
5354 * configure.tgt (gdb_have_gcore): Replace case with for and if.
5355
5356 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5357
5358 * remote.c (unpush_and_perror): Add output message final dot.
5359
5360 2013-04-11 Yao Qi <yao@codesourcery.com>
5361
5362 * tracepoint.c (tfile_interp_line): Fit parameters line and
5363 utpp in one line.
5364
5365 2013-04-10 Joel Brobecker <brobecker@adacore.com>
5366
5367 * solib.c (solib_map_sections): Remove code overwriting
5368 SO->SO_NAME with the bfd's filename.
5369
5370 2013-04-10 Pedro Alves <palves@redhat.com>
5371
5372 * cli/cli-decode.c (integer_unlimited_completer): New function.
5373 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
5374 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
5375 completer.
5376 * cli/cli-setshow.c: Include "cli/cli-utils.h".
5377 (is_unlimited_literal): New function.
5378 (do_set_command): Handle literal "unlimited" arguments.
5379 * frame.c (_initialize_frame) <set backtrace limit>: Document
5380 "unlimited".
5381 * printcmd.c (_initialize_printcmd) <set print
5382 max-symbolic-offset>: Add help text.
5383 * record-full.c (_initialize_record_full) <set record full
5384 insn-number-max>: Likewise.
5385 * record.c (_initialize_record) <set record
5386 instruction-history-size, set record function-call-history-size>:
5387 Add help text.
5388 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
5389 help text.
5390 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
5391 Likewise.
5392 * source.c (_initialize_source) <set listsize>: Add help text.
5393 * utils.c (initialize_utils) <set height, set width>: Likewise.
5394 <set pagination>: Mention "set height unlimited".
5395 * valprint.c (_initialize_valprint) <set print elements, set print
5396 repeats>: Document "unlimited".
5397
5398 2013-04-10 Pedro Alves <palves@redhat.com>
5399
5400 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
5401 instead of disconnect_tracing.
5402 * infcmd.c (detach_command, disconnect_command): Call
5403 query_if_trace_running. Adjust.
5404 * top.c: Include "tracepoint.h".
5405 (quit_target): Delete. Contents moved ...
5406 (quit_force): ... here. Wrap each stage of teardown in
5407 TRY_CATCH. Call disconnect_tracing before detaching.
5408
5409 2013-04-10 Hui Zhu <hui@codesourcery.com>
5410 Yao Qi <yao@codesourcery.com>
5411
5412 * configure.ac: Check libbabeltrace is installed.
5413 * config.in: Regenerate.
5414 * configure: Regenerate.
5415 * Makefile.in (LIBBABELTRACE): New.
5416 (CLIBS): Add LIBBABELTRACE.
5417 * ctf.c: Include "exec.h".
5418 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
5419 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
5420 (ctf_save_metadata_header): Define new type aliases in
5421 metadata.
5422 (ctf_write_header): Define event type "tsv_def" and "tp_def"
5423 in metadata. Start a new faked packet for trace status.
5424 (ctf_write_status): Write trace status to CTF.
5425 (ctf_write_uploaded_tsv): Write TSV to CTF.
5426 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
5427 (ctf_write_definition_end): End the faked packet.
5428
5429 (ctx, ctf_iter, trace_dirname): New.
5430 (start_pos): New variable.
5431 (ctf_destroy, ctf_open_dir, ctf_open): New.
5432 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
5433 macros.
5434 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
5435 (ctf_fetch_registers, ctf_xfer_partial): New.
5436 (ctf_get_trace_state_variable_value): New.
5437 (ctf_get_tpnum_from_frame_event): New.
5438 (ctf_get_traceframe_address): New.
5439 (ctf_trace_find, ctf_has_stack): New.
5440 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
5441 (ctf_get_trace_status, ctf_read_status): New.
5442 (_initialize_ctf): New.
5443 * tracepoint.c (get_tracepoint_number): New
5444 (get_uploaded_tsv): Remove 'static'.
5445 (struct traceframe_info, trace_regblock_size): Move it to ...
5446 * tracepoint.h: ... here.
5447 (get_tracepoint_number): Declare it.
5448 (get_uploaded_tsv): Declare it.
5449
5450 * NEWS: Mention new configure option.
5451
5452 2013-04-10 Pedro Alves <palves@redhat.com>
5453 Hui Zhu <hui@codesourcery.com>
5454
5455 * breakpoint.c (dprintf_re_set): New.
5456 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
5457 to dprintf_re_set.
5458
5459 2013-04-09 Joel Brobecker <brobecker@adacore.com>
5460
5461 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
5462 Remove solib-svr4.o from the list.
5463
5464 2013-04-09 Joel Brobecker <brobecker@adacore.com>
5465
5466 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
5467 Use gdb_assert_not_reached instead of invalid boolean expression.
5468
5469 2013-04-09 Pedro Alves <palves@redhat.com>
5470
5471 * remote.c (unpush_and_perror): New function.
5472 (readchar, remote_serial_write): Use it.
5473
5474 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
5475
5476 * NEWS: Mention new btrace RSP packets.
5477
5478 2013-04-08 Tom Tromey <tromey@redhat.com>
5479
5480 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
5481 long.
5482
5483 2013-04-08 Tom Tromey <tromey@redhat.com>
5484
5485 * maint.c (print_bfd_section_info): Print the section index.
5486 * symmisc.c (dump_msymbols): Print the section index.
5487
5488 2013-04-08 Tom Tromey <tromey@redhat.com>
5489
5490 PR symtab/8424:
5491 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
5492 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
5493 * breakpoint.c (resolve_sal_pc): Update.
5494 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5495 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
5496 (minsym_lookup_iterator_cb): Use it.
5497 (default_read_var_value): Update.
5498 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
5499 Update.
5500 * infcmd.c (jump_command): Update.
5501 * linespec.c (minsym_found): Update.
5502 * maint.c (maintenance_translate_address): Update.
5503 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
5504 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
5505 * parse.c (write_exp_msymbol): Update.
5506 * printcmd.c (address_info): Update.
5507 * psymtab.c (find_pc_sect_psymbol): Update.
5508 (fixup_psymbol_section): Check SYMBOL_SECTION, not
5509 SYMBOL_OBJ_SECTION.
5510 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
5511 Don't initialize SYMBOL_OBJ_SECTION.
5512 * spu-tdep.c (spu_catch_start): Update.
5513 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
5514 * symmisc.c (dump_msymbols, print_symbol): Update.
5515 * symtab.c (fixup_section): Don't set 'obj_section'. Change
5516 how fallback section is computed.
5517 (fixup_symbol_section): Update.
5518 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
5519 Update.
5520 (allocate_symbol, initialize_symbol, allocate_template_symbol):
5521 Initialize SYMBOL_SECTION.
5522 * symtab.h (struct general_symbol_info) <section>: Update comment.
5523 <obj_section>: Remove.
5524 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
5525 (SYMBOL_OBJFILE): New macro.
5526
5527 2013-04-08 Tom Tromey <tromey@redhat.com>
5528
5529 * coffread.c (record_minimal_symbol): Update.
5530 * dbxread.c (record_minimal_symbol): Update.
5531 * elfread.c (record_minimal_symbol): Update.
5532 * machoread.c (macho_symtab_add_minsym): Update.
5533 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
5534 Update.
5535 * minsyms.c (prim_record_minimal_symbol): Update.
5536 (prim_record_minimal_symbol_full): Remove 'bfd_section'
5537 argument.
5538 (prim_record_minimal_symbol_and_info): Likewise.
5539 * minsyms.h (prim_record_minimal_symbol_full)
5540 (prim_record_minimal_symbol_and_info): Update.
5541 * symtab.c (allocate_symbol, initialize_symbol)
5542 (allocate_template_symbol): Initialize SYMBOL_SECTION.
5543 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
5544 Update.
5545
5546 2013-04-08 Tom Tromey <tromey@redhat.com>
5547
5548 PR symtab/8423:
5549 * solib-som.c (som_solib_section_offsets): Use BFD section
5550 indices. Set offsets for all sections.
5551 * somread.c (som_symtab_read): Compute BFD section for
5552 symbol. Use prim_record_minimal_symbol_and_info.
5553 (som_symfile_read): Fix comment.
5554 (struct find_section_offset_arg): New.
5555 (find_section_offset, set_section_index): New functions.
5556 (som_symfile_offsets): Use set_section_index to compute
5557 section indices.
5558
5559 2013-04-08 Tom Tromey <tromey@redhat.com>
5560
5561 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
5562 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
5563 gdb_bfd_section_index.
5564 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
5565 New functions.
5566 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
5567 Declare.
5568 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
5569 Update.
5570 * objfiles.c (add_to_objfile_sections_full): New function.
5571 (add_to_objfile_sections): Use it.
5572 (build_section_table): Rewrite.
5573 (objfile_relocate1): Use gdb_bfd_section_index. Update.
5574 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
5575 (struct objfile) <sections>: Update comment.
5576 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
5577 is NULL.
5578 (ALL_OBJSECTIONS): Use it.
5579 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5580 * solib-frv.c (frv_relocate_main_executable): Update.
5581 * solib-target.c (solib_target_relocate_section_addresses):
5582 Use gdb_bfd_section_index.
5583 * symfile.c (build_section_addr_info_from_section_table):
5584 Use gdb_bfd_section_index.
5585 (build_section_addr_info_from_bfd, place_section): Likewise.
5586 * symtab.c (fixup_section): Update.
5587 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
5588
5589 2013-04-08 Tom Tromey <tromey@redhat.com>
5590
5591 * minsyms.h (struct bound_minimal_symbol): New.
5592 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5593 Remove objfile argument.
5594 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5595 Return bound_minimal_symbol.
5596 * minsyms.c (lookup_minimal_symbol_by_pc_1)
5597 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5598 Return bound_minimal_symbol.
5599 (in_gnu_ifunc_stub): Update.
5600 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5601 Remove 'objfile_p' argument.
5602 (lookup_solib_trampoline_symbol_by_pc): Update.
5603 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
5604 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
5605 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
5606 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
5607 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
5608 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
5609 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
5610 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
5611 stack.c, symtab.c, tui/tui-disasm.c: Update.
5612
5613 2013-04-08 Tom Tromey <tromey@redhat.com>
5614
5615 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
5616 Use symbol's obstack, not an objfile.
5617 * coffread.c (process_coff_symbol): Update.
5618 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
5619 * jv-lang.c (add_class_symbol): Update.
5620 * mdebugread.c (new_symbol): Update.
5621 * minsyms.c (prim_record_minimal_symbol_full)
5622 (terminate_minimal_symbol_table): Update.
5623 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
5624 * stabsread.c (define_symbol, read_enum_type): Update.
5625 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
5626 Handle Ada specially.
5627 (symbol_set_language): Add 'obstack' argument.
5628 (symbol_set_names): Update.
5629 (symbol_natural_name, symbol_demangled_name): Always use
5630 ada_decode_symbol.
5631 * symtab.h (struct general_symbol_info)
5632 <language_specific::obstack>: New field.
5633 <ada_mangled>: New field.
5634 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
5635 (symbol_set_language): Update.
5636
5637 2013-04-08 Tom Tromey <tromey@redhat.com>
5638
5639 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
5640 Take an obstack, not an objfile.
5641 (symbol_set_names): Update.
5642 * symtab.h (symbol_set_demangled_name): Update.
5643
5644 2013-04-08 Tom Tromey <tromey@redhat.com>
5645
5646 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
5647 allocate_symbol.
5648 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
5649 (read_func_scope): Call allocate_template_symbol.
5650 (new_symbol_full): Call allocate_symbol.
5651 * jit.c (finalize_symtab): Call allocate_symbol.
5652 * jv-lang.c (add_class_symbol): Call allocate_symbol.
5653 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
5654 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5655 (common_block_end): Call allocate_symbol.
5656 * symtab.c (allocate_symbol, initialize_symbol)
5657 (allocate_template_symbol): New functions.
5658 * symtab.c (allocate_symbol, initialize_symbol)
5659 (allocate_template_symbol): Declare.
5660 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
5661
5662 2013-04-08 Pedro Alves <palves@redhat.com>
5663 Keith Seitz <keiths@redhat.com>
5664
5665 * breakpoint.c (create_breakpoint): Rename
5666 "parse_condition_and_thread" parameter to "parse_arg". Update
5667 describing comment. If !PARSE_ARG, then error out if ARG is not
5668 the empty string after extracting the location.
5669 * breakpoint.h (create_breakpoint): Rename
5670 "parse_condition_and_thread" parameter to "parse_arg".
5671
5672 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
5673
5674 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
5675
5676 2013-04-07 Yao Qi <yao@codesourcery.com>
5677
5678 * remote.c (remote_trace_find): Change type of parameters 'addr1'
5679 and 'addr2' to CORE_ADDR.
5680 * target.c (update_current_target): Update.
5681 * target.h (struct target_ops) <to_trace_find>: Change parameter
5682 type to CORE_ADDR.
5683 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
5684 'addr2' to CORE_ADDR.
5685 (tfile_trace_find): Likewise.
5686 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
5687 Change local variable 'addr' to type CORE_ADDR.
5688 * tracepoint.h (tfind_1): Update declaration.
5689
5690 2013-04-06 Eli Zaretskii <eliz@gnu.org>
5691
5692 * windows-nat.c (windows_get_absolute_argv0): Move from here...
5693 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
5694 Include main.h.
5695
5696 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
5697 here...
5698 * main.h (windows_get_absolute_argv0): ...to here.
5699
5700 2013-04-05 Doug Evans <dje@google.com>
5701
5702 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
5703 (read_cutu_die_from_dwo): Add comments.
5704 (read_structure_type): Update comment.
5705 (read_enumeration_type, read_namespace_type): Update comment.
5706 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
5707
5708 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5709
5710 Convert man pages to texinfo, new gdbinit.5 texinfo page.
5711 * Makefile.in (gdb.z): Remove.
5712 (install-only): Remove $(man1dir) and gdb.1 installation.
5713 * gdb.1: Remove.
5714
5715 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5716
5717 Fix compatibility with Linux kernel 3.8.3.
5718 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
5719 to more inner block. Remove parsing of NUMBER from outer block.
5720 Parse NUMBER only if KEYWORD has been identified.
5721
5722 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5723
5724 Fix variable name shadowing.
5725 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
5726 filename to mapsfilename and update its uses.
5727
5728 2013-04-05 Eli Zaretskii <eliz@gnu.org>
5729
5730 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
5731 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
5732 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
5733 details of the problem.
5734
5735 2013-04-04 Pedro Alves <palves@redhat.com>
5736 Hui Zhu <hui@codesourcery.com>
5737
5738 * breakpoint.c (validate_commands_for_breakpoint): If validating a
5739 tracepoint, reset its STEP_COUNT and call validate_actionline.
5740
5741 2013-04-03 Doug Evans <dje@google.com>
5742
5743 * dwarf2read.c (read_die_and_siblings_1): Renamed from
5744 read_die_and_siblings.
5745 (read_die_and_siblings): New function.
5746 (read_cutu_die_from_dwo): Dump die if requested.
5747 (read_die_and_children): Call read_full_die_1 and
5748 read_die_and_siblings_1.
5749 (read_full_die): Dump die if requested.
5750
5751 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
5752
5753 * dwarf2read.c (struct dwo_file): New member comp_dir.
5754 Rename member name to dwo_name. All uses updated.
5755 (hash_dwo_file): Include comp_dir in computation.
5756 (eq_dwo_file): Ditto.
5757 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
5758 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
5759
5760 * psymtab.c (read_psymtabs_with_fullname): Don't call
5761 psymtab_to_fullname if the basenames are different.
5762
5763 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5764
5765 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
5766 New entry about "fullname" presence.
5767
5768 2013-04-03 Pedro Alves <palves@redhat.com>
5769
5770 * NEWS: Mention x86_64/Cygwin as new native configuration.
5771
5772 2013-04-02 Doug Evans <dje@google.com>
5773
5774 * dwarf2read.c (read_structure_type): Fix typo in comment.
5775
5776 2013-04-02 Pedro Alves <palves@redhat.com>
5777
5778 * NEWS: Mention "set/show debug aarch64", "set/show debug
5779 coff-pe-read" and "set/show debug mach-o".
5780
5781 2013-04-02 Pedro Alves <palves@redhat.com>
5782
5783 * NEWS: Mention "set/show remote trace-buffer-size-packet".
5784
5785 2013-04-02 Eli Zaretskii <eliz@gnu.org>
5786
5787 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
5788 gdb_string.h is now in common/.
5789
5790 2013-04-02 Pedro Alves <palves@redhat.com>
5791
5792 * NEWS: Move "set debug notification" and "set trace-buffer-size"
5793 under "New options".
5794
5795 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5796
5797 Revert this patch:
5798 PR gdb/15275
5799 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
5800
5801 2013-04-02 Pedro Alves <palves@redhat.com>
5802
5803 PR gdb/15275
5804
5805 * remote.c (send_interrupt_sequence): Use remote_serial_write.
5806 (remote_serial_write): New function.
5807 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
5808
5809 2013-04-01 Jiong Wang <jiwang@tilera.com>
5810
5811 * NEWS: Mention TILE-Gx in "New native configurations" and
5812 "New targets" sections.
5813
5814 2013-04-01 Doug Evans <dje@google.com>
5815
5816 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
5817 (process_enumeration_scope): Simplify.
5818
5819 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
5820 type_unit_group ...
5821 (struct signatured_type): ... to here.
5822 (sig_type_ptr): New typedef.
5823 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
5824 out of union 't'. All uses updated.
5825 (dw2_get_file_names_reader): Assert not called for a type unit.
5826 (dw2_get_file_names): Assert not called for a type unit or type
5827 unit group.
5828 (build_type_psymtabs_reader): Assert called for a type unit.
5829 (build_type_psymtab_dependencies): Assert called for a type unit group.
5830
5831 * dwarf2read.c (free_dwo_file): Add comment.
5832 (dwarf2_per_objfile_free): Unref dwp bfd.
5833
5834 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
5835
5836 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
5837 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
5838 (read_pe_exported_syms): Remove unused 'exportix'.
5839 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
5840 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
5841 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
5842
5843 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
5844
5845 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
5846 (print_it_watchpoint): Remove unused 'bl'.
5847 (say_where): Remove unused 'uiout'.
5848 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
5849 (bkpt_breakpoint_hit): Remove unused 'b'.
5850 (internal_bkpt_print_it): Remove unused 'uiout'.
5851 * buildsym.c (augment_type_symtab): Remove unused 'i'.
5852
5853 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
5854
5855 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
5856 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
5857
5858 2013-03-29 Doug Evans <dje@google.com>
5859
5860 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
5861 Delete arg is_dwp. All callers updated.
5862 (open_dwp_file): New function.
5863 (open_and_init_dwp_file): Call it.
5864 (get_dwp_file): New function.
5865 (lookup_dwo_cutu): Call it.
5866
5867 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
5868 unnecessary, cleanup.
5869
5870 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
5871
5872 * dwarf2read.c (read_cutu_die_from_dwo): New function.
5873 (lookup_dwo_unit): New function.
5874 (init_cutu_and_read_dies): Move DWO handling to new functions.
5875
5876 * dwarf2read.c (struct signatured_type): Tweak comment.
5877 (struct dwo_unit): Tweak comment.
5878 (create_debug_types_hash_table): Tweak comment. Reformat long line.
5879 (create_dwo_debug_info_hash_table): Tweak comment.
5880 (dwarf2_per_cu_offset_and_type): Tweak comment.
5881
5882 * dwarf2read.c (lookup_signatured_type): Remove complaint about
5883 missing .debug_types section.
5884
5885 2013-03-29 Yao Qi <yao@codesourcery.com>
5886
5887 * corelow.c: Include "completer.h".
5888 (_initialize_corelow): Call add_target_with_completer with
5889 argument 'filename_completer'.
5890 * tracepoint.c: Likewise.
5891 * exec.c (_initialize_exec): Likewise.
5892 * target.c (add_target): Rename to ...
5893 (add_target_with_completer): ... this. Call set_cmd_completer
5894 if parameter completer is not NULL.
5895 (add_target): New.
5896 * target.h: Include "command.h".
5897 (add_target_with_completer): Declare it.
5898
5899 2013-03-28 Joel Brobecker <brobecker@adacore.com>
5900
5901 * coffread.c (is_import_fixup_symbol): New function.
5902 (record_minimal_symbol): Use is_import_fixup_symbol to
5903 detect import fixup symbols, and discard them.
5904
5905 2013-03-28 Doug Evans <dje@google.com>
5906
5907 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
5908 types hash table until we know we need it.
5909
5910 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
5911 index numbers.
5912
5913 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
5914 All callers updated.
5915 (dw2_print_stats): Print #read CUs too.
5916 (dump_die_shallow): Print signatured types better.
5917
5918 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
5919 info_or_types_section to section. All uses updated.
5920 (struct dwo_unit): Ditto.
5921
5922 2013-03-28 Pedro Alves <palves@redhat.com>
5923
5924 * NEWS (New options): New section.
5925 (New options): Mention set/show remote trace-status-packet.
5926 * remote.c (PACKET_qTStatus): New enumeration value.
5927 (remote_get_trace_status): Skip sending qTStatus if the packet is
5928 disabled. Use packet_ok.
5929 (_initialize_remote): Register a configuration command for
5930 qTStatus packet.
5931
5932 2013-03-28 Doug Evans <dje@google.com>
5933
5934 * symfile.c (find_separate_debug_file): Add comment.
5935 (terminate_after_last_dir_separator): Tweak comment.
5936
5937 * dwarf2read.c (create_partial_symtab): Add forward decl.
5938 (create_partial_symtab): Move to be closer to other psymtab functions.
5939 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
5940
5941 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
5942 (compute_symtab_includes): Remove unnecessary forward declaration.
5943 (die_needs_namespace): Add comment marking group of functions for
5944 dwarf2 name computation.
5945
5946 * typeprint.c (_initialize_typeprint): Improve type help text.
5947
5948 * python/python.c (finish_python_initialization): Provide suggestion
5949 for how to tell gdb to find its python files.
5950
5951 2013-03-28 Pedro Alves <palves@redhat.com>
5952
5953 PR gdb/15294
5954
5955 * source.c (_initialize_source): Change back "set listsize" to an
5956 integer command.
5957
5958 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
5959
5960 PR gdb/15275
5961 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
5962
5963 2013-03-27 Pedro Alves <palves@redhat.com>
5964
5965 * top.c (history_size): Rename to ...
5966 (history_size_setshow_var): ... this. Add comment.
5967 (show_commands): Use readline's 'history_length' instead of
5968 computing the history length by calling history_get in a loop.
5969 (set_history_size_command): Error out for sizes over INT_MAX.
5970 Restore previous history size on invalid size.
5971 (init_history): If HISTSIZE is negative, leave the history size as
5972 zero. Add comments.
5973 (init_main): Adjust.
5974
5975 2013-03-27 Pedro Alves <palves@redhat.com>
5976
5977 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
5978 coff_pe_read" command to "set debug coff-pe-read".
5979
5980 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
5981
5982 * record.c (command_size_to_target_size): Fix size comparison.
5983 Change parameter type from pointer to integer to integer.
5984 Update all users.
5985
5986 2013-03-27 Pierre Muller <muller@sourceware.org>
5987
5988 * windows-nat.c (handle_output_debug_string): Avoid typecast
5989 from integer of different size warning.
5990
5991 2013-03-26 Joel Brobecker <brobecker@adacore.com>
5992
5993 * windows-nat.c (handle_output_debug_string): Add empty line
5994 after local block variable definition.
5995
5996 2013-03-26 Pedro Alves <palves@redhat.com>
5997
5998 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
5999 (net_open): Make 'polls' local unsigned.
6000
6001 2013-03-26 Pedro Alves <palves@redhat.com>
6002
6003 * remote.c (_initialize_remote): Make "set remoteaddresssize"
6004 a zuinteger command instead of uinteger.
6005
6006 2013-03-26 Pedro Alves <palves@redhat.com>
6007
6008 * record-full.c (record_full_insn_num): Make it unsigned.
6009 (record_full_check_insn_num, record_full_message)
6010 (record_full_registers_change, record_full_xfer_partial): Remove
6011 record_full_insn_max_num check (it's always != 0).
6012 (record_full_info, record_full_restore): Use %u as format string.
6013 (): Use %u as format string.
6014 (set_record_full_insn_max_num): Remove record_full_insn_max_num
6015 check (it's always != 0).
6016
6017 2013-03-26 Pedro Alves <palves@redhat.com>
6018
6019 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
6020 and "set dcache size" commands zuinteger instead of uinteger.
6021
6022 2013-03-26 Pedro Alves <palves@redhat.com>
6023
6024 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
6025 command zuinteger instead of uinteger.
6026
6027 2013-03-26 Pedro Alves <palves@redhat.com>
6028
6029 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
6030 zuinteger instead of uinteger.
6031
6032 2013-03-26 Pedro Alves <palves@redhat.com>
6033
6034 * record.c (record_insn_history_size_setshow_var)
6035 (record_call_history_size_setshow_var): New globals.
6036 (command_size_to_target_size): New function.
6037 (cmd_record_insn_history, cmd_record_call_history): Use
6038 command_size_to_target_size instead of cast.
6039 (validate_history_size, set_record_insn_history_size)
6040 (set_record_call_history_size): New functions.
6041 (_initialize_record): Install set_record_insn_history_size and
6042 set_record_call_history_size as "set" hooks of "set record
6043 instruction-history-size" and "set record
6044 function-call-history-size".
6045
6046 2013-03-26 Pedro Alves <palves@redhat.com>
6047
6048 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
6049 use with history_max_entries use. Remove FIXME note.
6050
6051 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
6052
6053 * record-btrace.c (record_btrace_close): Call
6054 record_btrace_auto_disable.
6055
6056 2013-03-25 Joel Brobecker <brobecker@adacore.com>
6057
6058 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
6059
6060 2013-03-25 Doug Evans <dje@google.com>
6061
6062 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
6063
6064 2013-03-25 Tom Tromey <tromey@redhat.com>
6065
6066 PR symtab/11462:
6067 * c-exp.y (exp): Add new productions for destructors after '.' and
6068 '->'.
6069 (write_destructor_name): New function.
6070
6071 2013-03-25 Tom Tromey <tromey@redhat.com>
6072
6073 PR c++/9197:
6074 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
6075 value_struct_elt, not lookup_struct_elt_type.
6076 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6077 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
6078 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
6079
6080 2013-03-25 Yao Qi <yao@codesourcery.com>
6081
6082 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
6083 instead of '_mkdir'.
6084
6085 2013-03-23 Eli Zaretskii <eliz@gnu.org>
6086
6087 * windows-nat.c (windows_get_absolute_argv0): New function.
6088 * windows-nat.h: Add its prototype.
6089
6090 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
6091 Use IS_DIR_SEPARATOR instead of looking for a character inside
6092 SLASH_STRING. Include filenames.h.
6093 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
6094 relocate_gdb_directory works when passed gdb_program_name.
6095 Include windows-nat.h.
6096
6097 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6098
6099 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
6100 * remote.c (trace_error): Remove the special handling of '2'.
6101 (readchar) <SERIAL_EOF>
6102 (readchar) <SERIAL_ERROR>
6103 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
6104 (remote_get_trace_status): Call throw_exception if EX is
6105 TARGET_CLOSE_ERROR.
6106 * utils.c (perror_with_name): Rename to ...
6107 (throw_perror_with_name): ... here. New parameter errcode, describe it
6108 in the function comment.
6109 (perror_with_name): New function wrapper.
6110 * utils.h (enum errors): New stub declaration.
6111 (throw_perror_with_name): New declaration.
6112
6113 2013-03-22 Pedro Alves <palves@redhat.com>
6114 Yao Qi <yao@codesourcery.com>
6115 Mark Kettenis <kettenis@gnu.org>
6116
6117 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
6118 Don't let the user set the value to UINT_MAX directly.
6119 <var_integer>: Don't let the user set the value to INT_MAX
6120 directly.
6121
6122 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6123
6124 * remote.c (remote_unpush_target): New function.
6125 (remote_open_1): Remove two pop_target calls, update one comment, add
6126 comment to target_preopen call. Replace pop_target call by
6127 remote_unpush_target call.
6128 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
6129 pop_target calls by remote_unpush_target calls.
6130
6131 2013-03-22 Pedro Alves <palves@redhat.com>
6132
6133 * linux-nat.c (linux_child_follow_fork): Don't call
6134 linux_enable_event_reporting.
6135 (linux_handle_extended_wait): Don't call
6136 linux_enable_event_reporting.
6137
6138 2013-03-22 Pedro Alves <palves@redhat.com>
6139
6140 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
6141 use it to rewrite the trampoline buffers with type gdb_byte[], and
6142 undefine the macro. Remove char* cast.
6143
6144 2013-03-21 Doug Evans <dje@google.com>
6145
6146 New commands "mt set per-command {space,time,symtab} {on,off}".
6147 * NEWS: Add entry.
6148 * event-top.c: #include "maint.h".
6149 * main.c: #include "maint.h".
6150 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
6151 timeval-utils.h, maint.h, cli/cli-setshow.h.
6152 (per_command_time, per_command_space): New static globals.
6153 (per_command_symtab): New static global.
6154 (per_command_setlist, per_command_showlist): New static globals.
6155 (struct cmd_stats): Move here from utils.c.
6156 (set_per_command_time): Renamed from set_display_time in utils.c
6157 and moved here. All callers updated.
6158 (set_per_command_space): Renamed from set_display_space in utils.c
6159 and moved here. All callers updated.
6160 (count_symtabs_and_blocks): New function.
6161 (report_command_stats): Moved here from utils.c. Add support for
6162 printing symtab stats. Only print data if enabled before command
6163 executed.
6164 (make_command_stats_cleanup): Ditto.
6165 (sert_per_command_cmd, show_per_command_cmd): New functions.
6166 (_initialize_maint_cmds): Add new commands
6167 mt set per-command {space,time,symtab} {on,off}.
6168 * maint.h: New file.
6169 * top.c: #include "maint.h".
6170 * utils.c (reset_prompt_for_continue_wait_time): New function.
6171 (get_prompt_for_continue_wait_time): New function.
6172 * utils.h (reset_prompt_for_continue_wait_time): Declare
6173 (get_prompt_for_continue_wait_time): Declare.
6174 (make_command_stats_cleanup): Moved to maint.h.
6175 (set_display_time, set_display_space): Moved to maint.h and renamed
6176 to set_per_command_time, set_per_command_space.
6177 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
6178 parse_binary_operation and made non-static. Don't call error,
6179 just return an error marker. All callers updated.
6180 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
6181
6182 2013-03-21 Tom Tromey <tromey@redhat.com>
6183
6184 * symfile.c (alloc_section_addr_info): Update header. Don't set
6185 'num_sections' field.
6186 (build_section_addr_info_from_section_table): Set 'num_sections'.
6187 (build_section_addr_info_from_bfd): Likewise.
6188 (build_section_addr_info_from_objfile): Remove dead loop
6189 condition.
6190 (free_section_addr_info): Unconditionally call xfree.
6191 (relative_addr_info_to_section_offsets, addrs_section_sort)
6192 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
6193 condition.
6194 (syms_from_objfile_1): Remove dead 'if' condition. Check
6195 'num_sections'.
6196 (add_symbol_file_command): Set 'num_sections'.
6197 * symfile-mem.c (symbol_file_add_from_memory): Set
6198 'num_sections'.
6199 * somread.c (som_symfile_offsets): Remove dead loop condition.
6200 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
6201 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
6202
6203 2013-03-21 Tom Tromey <tromey@redhat.com>
6204
6205 * tracepoint.h (decode_agent_options): Add 'trace_string'
6206 argument.
6207 * tracepoint.c (decode_agent_options): Add 'trace_string'
6208 argument.
6209 (validate_actionline): Update.
6210 (collect_symbol): Add 'trace_string' argument.
6211 (struct add_local_symbols_data) <trace_string>: New field.
6212 (do_collect_symbol): Update.
6213 (add_local_symbols): Add 'trace_string' argument.
6214 (encode_actions_1): Update.
6215 (trace_dump_actions): Update.
6216 * dwarf2loc.c (access_memory): Update.
6217 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
6218 * ax-general.c (new_agent_expr): Update.
6219 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
6220 (gen_trace_for_return_address): Add argument.
6221 (trace_kludge, trace_string_kludge): Remove.
6222 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
6223 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
6224 (gen_trace_for_var): Add 'trace_string' argument.
6225 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
6226 (gen_printf, agent_eval_command_one): Update.
6227
6228 2013-03-21 Tom Tromey <tromey@redhat.com>
6229
6230 PR exp/15109:
6231 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
6232 Handle FILENAME token.
6233
6234 2013-03-21 Tom Tromey <tromey@redhat.com>
6235
6236 * c-exp.y (YYPRINT): Define.
6237 (c_print_token): New function.
6238
6239 2013-03-21 Tom Tromey <tromey@redhat.com>
6240
6241 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
6242
6243 2013-03-21 Yao Qi <yao@codesourcery.com>
6244
6245 * ctf.c: Include "gdb_stat.h".
6246 [USE_WIN32API]: New macro 'mkdir'.
6247 (ctf_start): Use permission bits macros if they are defined.
6248
6249 2013-03-20 Keith Seitz <keiths@redhat.com>
6250
6251 * breakpoint.h (struct breakpoint): Add comment to
6252 extra_string indicating that this member is mallod'd.
6253 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
6254
6255 2013-03-20 Pedro Alves <palves@redhat.com>
6256
6257 PR gdb/15289
6258
6259 * cli/cli-setshow.c (do_set_command)
6260 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
6261 the result of parsing the command argument. Throw error if the
6262 value is greater than UINT_MAX. Print the invalid value with
6263 plongest.
6264 <var_integer, var_zinteger>: Use LONGEST for variable holding the
6265 result of parsing the command argument. Throw error if the value
6266 is greater than INT_MAX, not greater or equal. Also throw error
6267 if the value is less than INT_MIN. Print the invalid value with
6268 plongest.
6269 <var_zuinteger_unlimited>: Throw error if the value is greater
6270 than INT_MAX, not greater or equal.
6271 (do_show_command) <var_integer, var_zinteger,
6272 var_zuinteger_unlimited>: Use %d for printing int, not %u.
6273
6274 2013-03-20 Tom Tromey <tromey@redhat.com>
6275
6276 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
6277 if possible.
6278 * dwarf2read.c (read_func_scope): Remove old FIXME.
6279 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
6280 not LOC_COMPUTED.
6281 * findvar.c (symbol_read_needs_frame, default_read_var_value):
6282 Unconditionally call via computed ops, if possible.
6283 * printcmd.c (address_info): Unconditionally call via computed ops,
6284 if possible.
6285 * stack.c (read_frame_arg): Unconditionally call via computed ops,
6286 if possible.
6287 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
6288 * tracepoint.c (scope_info): Unconditionally call via computed ops,
6289 if possible.
6290
6291 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6292 Tom Tromey <tromey@redhat.com>
6293
6294 PR symtab/8421:
6295 * coffread.c (coff_register_index): New global.
6296 (process_coff_symbol, coff_read_enum_type): Set
6297 SYMBOL_ACLASS_INDEX.
6298 (_initialize_coffread): Initialize new global.
6299 * dwarf2loc.c (locexpr_find_frame_base_location)
6300 (dwarf2_block_frame_base_locexpr_funcs)
6301 (loclist_find_frame_base_location)
6302 (dwarf2_block_frame_base_loclist_funcs): New.
6303 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
6304 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
6305 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
6306 (dwarf2_block_frame_base_loclist_funcs): New.
6307 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
6308 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
6309 globals.
6310 (read_func_scope): Update.
6311 (fixup_go_packaging, mark_common_block_symbol_computed)
6312 (var_decode_location, new_symbol_full, dwarf2_const_value):
6313 Set SYMBOL_ACLASS_INDEX.
6314 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
6315 (_initialize_dwarf2_read): Initialize new globals.
6316 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
6317 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
6318 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
6319 globals.
6320 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
6321 (_initialize_mdebugread): Initialize new globals.
6322 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
6323 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
6324 (stab_register_index, stab_regparm_index): New globals.
6325 (define_symbol, read_enum_type, common_block_end): Set
6326 SYMBOL_ACLASS_INDEX.
6327 (_initialize_stabsread): Initialize new globals.
6328 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
6329 globals.
6330 (MAX_SYMBOL_IMPLS): New define.
6331 (register_symbol_computed_impl, register_symbol_block_impl)
6332 (register_symbol_register_impl)
6333 (initialize_ordinary_address_classes): New functions.
6334 (_initialize_symtab): Call initialize_ordinary_address_classes.
6335 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
6336 (struct symbol_impl): New.
6337 (SYMBOL_ACLASS_BITS): New define.
6338 (struct symbol) <aclass, ops>: Remove fields.
6339 <aclass_index>: New field.
6340 (symbol_impls): Declare.
6341 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
6342 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
6343 (register_symbol_computed_impl, register_symbol_block_impl)
6344 (register_symbol_register_impl): Declare.
6345 (struct symbol_computed_ops): Add location_has_loclist.
6346 (struct symbol_block_ops): New.
6347 (SYMBOL_BLOCK_OPS): New.
6348 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
6349
6350 2013-03-20 Tom Tromey <tromey@redhat.com>
6351
6352 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
6353 (print_partial_symbols, recursively_search_psymtabs): Use
6354 PSYMBOL_CLASS.
6355
6356 2013-03-20 Pierre Muller <muller@sourceware.org>
6357
6358 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
6359 addtion, subtraction, multiplication and division binary operator.
6360
6361 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6362
6363 Code cleanup.
6364 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
6365 * bsd-kvm.c (bsd_kvm_close): Likewise.
6366 * bsd-uthread.c (bsd_uthread_close): Likewise.
6367 * corelow.c (core_close): Likewise.
6368 (core_close_cleanup): Remove parameter quitting from a caller.
6369 * event-top.c (async_disconnect): Likewise.
6370 * exec.c (exec_close_1): Remove parameter quitting.
6371 * go32-nat.c (go32_close): Likewise.
6372 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
6373 parameter quitting from a caller.
6374 * mips-linux-nat.c (super_close): Remove parameter quitting from the
6375 variable.
6376 (mips_linux_close): Remove parameter quitting. Remove parameter
6377 quitting from a caller.
6378 * monitor.c (monitor_close): Remove parameter quitting.
6379 * monitor.h (monitor_close): Likewise.
6380 * record-btrace.c (record_btrace_close): Likewise.
6381 * record-full.c (record_full_close): Likewise.
6382 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
6383 it also from fprintf_unfiltered.
6384 * remote-mips.c (mips_close): Remove parameter quitting.
6385 (mips_detach): Remove parameter quitting from a caller.
6386 * remote-sim.c (gdbsim_close): Remove parameter quitting.
6387 (gdbsim_close): Remove duplicate function comment. Remove parameter
6388 quitting and remove it also from printf_filtered.
6389 * remote.c (remote_close): Remove parameter quitting.
6390 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
6391 * target.c (update_current_target): Remove parameter int from to_close
6392 de_fault.
6393 (push_target, unpush_target, pop_target): Remove parameter quitting from
6394 a caller.
6395 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
6396 Remove parameter quitting from a caller.
6397 (target_preopen): Remove parameter quitting from a caller.
6398 (target_close): Remove parameter quitting. Remove parameter quitting
6399 from a caller two times. Remove parameter quitting also from
6400 fprintf_unfiltered.
6401 * target.h (struct target_ops): Remove parameter quitting and as int
6402 from fields to_xclose and to_close.
6403 (extern struct target_ops current_target):
6404 (target_close, pop_all_targets): Remove parameter quitting. Update the
6405 comment.
6406 (pop_all_targets_above): Remove parameter quitting.
6407 * top.c (quit_target): Remove parameter quitting from a caller.
6408 * tracepoint.c (tfile_close): Remove parameter quitting.
6409 * windows-nat.c (windows_close): Remove parameter quitting.
6410
6411 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
6412
6413 * windows-nat.c (handle_output_debug_string): Replace call
6414 to string_to_core_addr with call to strtoull.
6415
6416 2013-03-20 Yao Qi <yao@codesourcery.com>
6417
6418 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
6419 and write it to CTF metadata.
6420
6421 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
6422
6423 * windows-nat.c (handle_output_debug_string): Change type of n to
6424 SIZE_T to avoid crash on 64 bit systems.
6425
6426 2013-03-17 Eli Zaretskii <eliz@gnu.org>
6427
6428 * python/python-internal.h (HAVE_SNPRINTF)
6429 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
6430 about redefinition of snprintf by pyerrors.h.
6431
6432 2013-03-15 Steve Ellcey <sellcey@mips.com>
6433
6434 * remote-sim.c (sim_command_completer): Make char arguments const.
6435
6436 2013-03-15 Tom Tromey <tromey@redhat.com>
6437
6438 PR c++/15116:
6439 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
6440
6441 2013-03-14 Tom Tromey <tromey@redhat.com>
6442
6443 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
6444 New fields.
6445 (get_file_crc): Move from symfile.c.
6446 (gdb_bfd_crc): New function.
6447 * gdb_bfd.h (gdb_bfd_crc): Declare.
6448 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
6449 * symfile.c (get_file_crc): Move to gdb_bfd.c.
6450 (separate_debug_file_exists): Use gdb_bfd_crc.
6451
6452 2013-03-14 Tom Tromey <tromey@redhat.com>
6453
6454 * symfile.c (get_debug_link_info): Remove.
6455 (find_separate_debug_file_by_debuglink): Use
6456 bfd_get_debug_link_info.
6457
6458 2013-03-14 Tom Tromey <tromey@redhat.com>
6459
6460 * symtab.c (error_in_psymtab_expansion): New function.
6461 (lookup_symbol_aux_quick)
6462 (basic_lookup_transparent_type_quick): Remove "last resort"
6463 code. Use error_in_psymtab_expansion.
6464
6465 2013-03-14 Doug Evans <dje@google.com>
6466 Jan Kratochvil <jan.kratochvil@redhat.com>
6467
6468 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
6469 any successful compare_filenames_for_search or FILENAME_CMP.
6470 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6471 * symtab.c (iterate_over_some_symtabs): Likewise.
6472
6473 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6474
6475 * source.c (print_source_lines_base): Make a local copy of
6476 symtab_to_fullname.
6477
6478 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
6479 Jan Kratochvil <jan.kratochvil@redhat.com>
6480
6481 * source.c (print_source_lines_base): Suppress "file" for TUI.
6482
6483 2013-03-14 Keith Seitz <keiths@redhat.com>
6484 Alan Matsuoka <alanm@redhat.com>
6485
6486 PR c++/15203
6487 PR c++/15210
6488 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
6489 TYPE_CODE_METHOD.
6490 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
6491 symbols.
6492
6493 2013-03-14 Yao Qi <yao@codesourcery.com>
6494
6495 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
6496 status to tfile if trace is stopped by command 'tstop'.
6497
6498 2013-03-14 Yao Qi <yao@codesourcery.com>
6499
6500 * tracepoint.c (tfile_write_status): Write trace notes and user
6501 name into tfile if they are not NULL.
6502
6503 2013-03-14 Hui Zhu <hui@codesourcery.com>
6504 Yao Qi <yao@codesourcery.com>
6505
6506 * Makefile.in (REMOTE_OBS): Add ctf.o.
6507 (SFILES): Add ctf.c.
6508 (HFILES_NO_SRCDIR): Add ctf.h.
6509 * ctf.c, ctf.h: New files.
6510 * tracepoint.c: Include 'ctf.h'.
6511 (collect_pseudocommand): Remove static.
6512 (trace_save_command): Parse option "-ctf".
6513 Produce different trace file writers per option.
6514 Adjust output message.
6515 (trace_save_tfile, trace_save_ctf): New.
6516 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
6517 * mi/mi-main.c: Include 'ctf.h'.
6518 (mi_cmd_trace_save): Handle option '-ctf'. Call either
6519 trace_save_tfile or trace_save_ctf.
6520 * NEWS: Mention these changes.
6521
6522 2013-03-14 Yao Qi <yao@codesourcery.com>
6523
6524 * tracepoint.c (trace_file_writer_xfree): New.
6525 (struct tfile_writer_data): New.
6526 (tfile_dtor, tfile_can_target_save, tfile_start): New.
6527 (tfile_write_header, tfile_write_regblock_type): New.
6528 (tfile_write_status, tfile_write_uploaded_tsv): New.
6529 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
6530 (tfile_write_raw_data, (tfile_end): New.
6531 (tfile_write_ops): New global variable.
6532 (TRACE_WRITE_R_BLOCK): New macro.
6533 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
6534 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
6535 (TRACE_WRITE_V_BLOCK): New macro.
6536 (trace_save): Add extra one parameter WRITER. Make it static.
6537 Use WRITER to writer trace.
6538 (tfile_trace_file_writer_new): New.
6539 (trace_save_command): Caller update.
6540 (trace_save_tfile): Write trace data in TFILE format.
6541 * tracepoint.h (struct trace_frame_write_ops): New.
6542 (struct trace_file_write_ops): New.
6543 (struct trace_file_writer): New.
6544 (trace_save): Remove its declaration.
6545 (trace_save_tfile): Declare it.
6546 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
6547 instead of trace_save.
6548
6549 2013-03-13 Pedro Alves <palves@redhat.com>
6550
6551 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
6552
6553 2013-03-13 Pedro Alves <palves@redhat.com>
6554
6555 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
6556 commented out code.
6557 * demangle.c (current_demangling_style_string): Make it const.
6558 (set_demangling_command): Assert the demangling style is known.
6559 Remove all handling of unknown styles. Set
6560 'current_demangling_style_string' to an element of the
6561 demangling_style_names array.
6562 (set_demangling_style): Delete.
6563 (_initialize_demangler): Set current_demangling_style_string to the
6564 element of the demangling_style_names array that corresponds to
6565 the default demangling style. Remove FIXME note. Don't call
6566 set_demangling_style.
6567 * gdb-demangle.h (set_demangling_style): Remove declaration.
6568
6569 2013-03-13 Pedro Alves <palves@redhat.com>
6570
6571 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
6572 fields const.
6573 (ada_make_symbol_completion_list): Make "text0" parameter const.
6574 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
6575 * breakpoint.c (condition_completer): Make "text" and "word"
6576 parameters const. Adjust.
6577 (check_tracepoint_command): Adjust to validate_actionline
6578 prototype change.
6579 (catch_syscall_completer): Make "text" and "word" parameters
6580 const.
6581 * cli/cli-cmds.c (show_user): Make "comname" local const.
6582 (valid_command_p): Make "command" parameter const.
6583 (alias_command): Make "alias_prefix" and "command_prefix" locals
6584 const.
6585 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
6586 (add_alias_cmd): Make "name" and "oldname" parameters const.
6587 Adjust. No longer make copy of OLDNAME.
6588 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
6589 (add_setshow_cmd_full, add_setshow_enum_cmd)
6590 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6591 (add_setshow_filename_cmd, add_setshow_string_cmd)
6592 (add_setshow_string_noescape_cmd)
6593 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6594 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6595 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
6596 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
6597 Make "name" parameter const.
6598 (help_cmd): Rename "command" parameter to "arg". New const local
6599 "command".
6600 (find_cmd): Make "command" parameter const.
6601 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
6602 deprecated_cmd_warning prototype change.
6603 (undef_cmd_error): Make "cmdtype" parameter const.
6604 (lookup_cmd): Make "line" parameter const.
6605 (deprecated_cmd_warning): Change type of "text" parameter to
6606 pointer to const char, from pointer to pointer to char. Adjust.
6607 (lookup_cmd_composition): Make "text" parameter const.
6608 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
6609 parameters const.
6610 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
6611 const.
6612 * cli/cli-script.c (validate_comname): Make "tem" local const.
6613 (define_command): New const local "tem_c". Use it in calls to
6614 lookup_cmd.
6615 (document_command): Make "tem" and "comfull" locals const.
6616 (show_user_1): Make "prefix" and "name" parameters const.
6617 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
6618 const.
6619 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
6620 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
6621 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
6622 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
6623 (complete_on_enum, add_setshow_enum_cmd)
6624 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6625 (add_setshow_filename_cmd, add_setshow_string_cmd)
6626 (add_setshow_string_noescape_cmd)
6627 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6628 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6629 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
6630 Change prototypes, constifying strings.
6631 * completer.c (noop_completer, filename_completer): Make "text"
6632 and "prefix" parameters const.
6633 (location_completer, expression_completer)
6634 (complete_line_internal): Make "text" and "prefix" parameters
6635 const and adjust.
6636 (command_completer, signal_completer): Make "text" and "prefix"
6637 parameters const.
6638 * completer.h (noop_completer, filename_completer)
6639 (expression_completer, location_completer, command_completer)
6640 (signal_completer): Change prototypes.
6641 * corefile.c (complete_set_gnutarget): Make "text" and "word"
6642 parameters const.
6643 * cp-abi.c (cp_abi_completer): Likewise.
6644 * expression.h (parse_expression_for_completion): Change
6645 prototype.
6646 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
6647 parameters const.
6648 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
6649 * infrun.c (handle_completer): Make "text" and "word" parameters
6650 const.
6651 * interps.c (interpreter_completer): Make "text" and "word"
6652 parameters const.
6653 * language.h (struct language_defn)
6654 <la_make_symbol_completion_list>: Make "text" and "word"
6655 parameters const.
6656 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
6657 (parse_exp_in_context): Rename to ...
6658 (parse_exp_in_context_1): ... this.
6659 (parse_exp_in_context): Reimplement, with const hack from
6660 parse_exp_1.
6661 (parse_expression_for_completion): Make "string" parameter const.
6662 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
6663 to pointer to const char. Adjust.
6664 (print_command_1): Make "exp" parameter const.
6665 (output_command): Rename to ...
6666 (output_command_const): ... this. Make "exp" parameter const.
6667 (output_command): Reimplement.
6668 (x_command): Adjust.
6669 (display_command): Rename "exp" parameter to "arg". New "exp"
6670 local, const version of "arg".
6671 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
6672 "cmd_name" local const.
6673 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
6674 call.
6675 (cmdpy_completer): Make "text" and "word" parameters const.
6676 (gdbpy_parse_command_name): Make "prefix_text2" local const.
6677 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
6678 const.
6679 * remote.c (_initialize_remote): Make "cmd_name" local const.
6680 * symtab.c (language_search_unquoted_string): Make "text" and "p"
6681 parameters const. Adjust.
6682 (completion_list_add_fields): Make "sym_text", "text" and "word"
6683 parameters const.
6684 (struct add_name_data) <sym_text, text, word>: Make fields const.
6685 (default_make_symbol_completion_list_break_on): Make "text" and
6686 "word" parameters const. Adjust locals.
6687 (default_make_symbol_completion_list)
6688 (make_symbol_completion_list, make_symbol_completion_type)
6689 (make_symbol_completion_list_fn): Make "text" and "word"
6690 parameters const.
6691 (make_file_symbol_completion_list): Make "text", "word" and
6692 "srcfile" parameters const. Adjust locals.
6693 (add_filename_to_list): Make "text" and "word" parameters const.
6694 (struct add_partial_filename_data) <text, word>: Make fields
6695 const.
6696 (make_source_files_completion_list): Make "text" and "word"
6697 parameters const.
6698 * symtab.h (default_make_symbol_completion_list_break_on)
6699 (default_make_symbol_completion_list, make_symbol_completion_list)
6700 (make_symbol_completion_type enum type_code)
6701 (make_symbol_completion_list_fn make_file_symbol_completion_list)
6702 (make_source_files_completion_list): Change prototype.
6703 * top.c (execute_command): Adjust to pass pointer to pointer to
6704 const char to lookup_cmd, and to deprecated_cmd_warning prototype
6705 change.
6706 (set_verbose): Make "cmdname" local const.
6707 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
6708 and adjust.
6709 (validate_actionline): Make "line" parameter a pointer to const
6710 char, and adjust.
6711 (encode_actions_1): Make "action_exp" local const, and adjust.
6712 (encode_actions): Adjust.
6713 (replace_comma): Delete.
6714 (trace_dump_actions): Make "action_exp" and "next_comma" locals
6715 const, and adjust. Don't frob the action string while splitting
6716 it at commas. Instead, make a copy of each split substring in
6717 turn.
6718 (trace_dump_command): Adjust to validate_actionline prototype
6719 change.
6720 * tracepoint.h (decode_agent_options, decode_agent_options)
6721 (encode_actions, validate_actionline): Change prototypes.
6722 * valprint.h (output_command): Delete declaration.
6723 (output_command_const): Declare.
6724 * value.c (function_destroyer): Cast const away in xfree call.
6725
6726 2013-03-13 Pedro Alves <palves@redhat.com>
6727
6728 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
6729 rather than casting 'const char * const *' to 'const char **'.
6730 * ada-lex.l (processInt): Make "trailer" local const. Remove
6731 'const char **' cast.
6732 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
6733 locals, and use those as strtol output pointer, instead than doing
6734 invalid casts to from 'const char **' to 'char **'.
6735 (_initialize_demangle): Remove cast.
6736 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
6737 locals, and use those as strtol output pointer, instead than doing
6738 invalid casts to from 'const char **' to 'char **'.
6739 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
6740 casts.
6741 * stap-probe.c (stap_parse_register_operand)
6742 (stap_parse_single_operand): Likewise.
6743
6744 2013-03-13 Yao Qi <yao@codesourcery.com>
6745
6746 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
6747 the last matched 'V' blcok in trace frame.
6748
6749 2013-03-12 Joel Brobecker <brobecker@adacore.com>
6750
6751 * NEWS: Create a new section for the next release branch.
6752 Rename the section of the current branch, now that it has
6753 been cut.
6754
6755 2013-03-12 Joel Brobecker <brobecker@adacore.com>
6756
6757 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
6758 * version.in: Bump version to 7.6.50.20130312-cvs.
6759
6760 2013-03-12 Keith Seitz <keiths@redhat.com>
6761
6762 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
6763 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
6764 Remove temporary copy of input string.
6765 (mi_execute_command_wrapper): Make "cmd" const.
6766 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
6767 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
6768 Use const strings.
6769 (mi_parse): Make "cmd" const.
6770 Use const strings.
6771 * mi/mi-parse.h (mi_parse): Make "cmd" const.
6772
6773 2013-03-12 Keith Seitz <keiths@redhat.com>
6774
6775 * ada-lang.c (ada_read_renaming_var_value): Pass const
6776 pointer to expression string to parse_exp_1.
6777 (create_excep_cond_exprs): Likewise.
6778 * ax-gdb.c (agent_eval_command_one): Likewise.
6779 (maint_agent_printf_command): Likewise.
6780 Constify much of the string handling/parsing.
6781 * breakpoint.c (set_breakpoint_condition): Pass const
6782 pointer to expression string to parse_exp_1.
6783 (update_watchpoint): Likewise.
6784 (parse_cmd_to_aexpr): Constify string handling.
6785 Pass const pointer to parse_exp_1.
6786 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
6787 (find_condition_and_thread): Likewise.
6788 Make TOK const.
6789 (watch_command_1): Make "arg" const.
6790 Constify string handling.
6791 Copy the expression string instead of changing the input
6792 string.
6793 (update_breakpoint_location): Pass const pointer to
6794 parse_exp_1.
6795 * eval.c (parse_and_eval_address): Make "exp" const.
6796 (parse_to_comma_and_eval): Make "expp" const.
6797 (parse_and_eval): Make "exp" const.
6798 * expression.h (parse_expression): Make argument const.
6799 (parse_exp_1): Make first argument const.
6800 * findcmd.c (parse_find_args): Treat "args" as const.
6801 * linespec.c (parse_linespec): Pass const pointer to
6802 linespec_expression_to_pc.
6803 (linespec_expression_to_pc): Make "exp_ptr" const.
6804 * parse.c (parse_exp_1): Make "stringptr" const.
6805 Make a copy of the expression to pass to parse_exp_in_context until
6806 this whole interface can be constified.
6807 (parse_expression): Make "string" const.
6808 * printcmd.c (ui_printf): Treat "arg" as const.
6809 Handle const strings.
6810 * tracepoint.c (validate_actionline): Pass const pointer to
6811 all calls to parse_exp_1.
6812 (encode_actions_1): Likewise.
6813 * value.h (parse_to_comma_and_eval): Make argument const.
6814 (parse_and_eval_address): Likewise.
6815 (parse_and_eval): Likewise.
6816 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
6817 (varobj_set_value): Likewise.
6818 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
6819 constify string handling.
6820 Pass const pointers to parse_and_eval_address and
6821 parse_to_comman_and_eval.
6822 * cli/cli-utils.c (skip_to_space): Rename to ...
6823 (skip_to_space_const): ... this. Handle const strings.
6824 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
6825 skip_to_space_const.
6826 (skip_to_space_const): Declare.
6827 * common/format.c (parse_format_string): Make "arg" const.
6828 Handle const strings.
6829 * common/format.h (parse_format_string): Make "arg" const.
6830 * gdbserver/ax.c (ax_printf): Make "format" const.
6831 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
6832 of the expression string.
6833
6834 2013-03-12 Hui Zhu <hui@codesourcery.com>
6835
6836 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
6837
6838 2013-03-12 Yao Qi <yao@codesourcery.com>
6839 Hui Zhu <hui@codesourcery.com>
6840
6841 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
6842 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
6843 DW_OP_deref_size.
6844
6845 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
6846
6847 * ada-lex.l (rules): Only recognize 'thread' as a
6848 delimiter when followed by numerals, as for c-exp.y.
6849 Use new rewind_to_char function to rewind the input for
6850 expression-delimiting tokens.
6851 (rewind_to_char): New function.
6852
6853 2013-03-11 Pedro Alves <palves@redhat.com>
6854 Jan Kratochvil <jan.kratochvil@redhat.com>
6855
6856 * configure: Regenerate.
6857 * configure.ac (check dynamic export flag): Link python test with
6858 $PYTHON_LIBS.
6859
6860 2013-03-11 Doug Evans <dje@google.com>
6861 Keith Seitz <keiths@redhat.com>
6862
6863 * linespec.c (find_linespec_symbols): Call find_function_symbols
6864 first, and then call lookup_prefix_sym/find_method.
6865
6866 2013-03-11 Pedro Alves <palves@redhat.com>
6867
6868 * charset.c (convert_between_encodings): Don't cast between
6869 different pointer to pointer types. Instead, make the 'inp' local
6870 be of the type iconv expects.
6871 (wchar_iterate): Don't cast between different pointer to pointer
6872 types. Instead, use new pointer local of the type iconv expects.
6873 * target.c (target_read_stralloc, target_fileio_read_stralloc):
6874 Add new local of type char pointer, and use it to get a
6875 char/string view of the byte buffer, instead of casting between
6876 pointer to pointer types.
6877
6878 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
6879
6880 * remote.c (remote_set_trace_buffer_size): Move != operator
6881 to the start of next line to fix an ARI warning.
6882
6883 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6884
6885 * NEWS: Add record changes.
6886
6887 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6888
6889 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
6890 the instruction history disassembly.
6891 * disasm.c (dump_insns): Omit the pc prefix, if requested.
6892 * disasm.h (DISASSEMBLY_OMIT_PC): New.
6893
6894 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6895
6896 * Makefile.in (SFILES): Add record-btrace.c
6897 (COMMON_OBS): Add record-btrace.o
6898 * record-btrace.c: New.
6899 * objfiles.c: Include btrace.h.
6900 (free_objfile): call btrace_free_objfile.
6901
6902 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6903
6904 * target.c (target_call_history, target_call_history_from,
6905 target_call_history_range): New.
6906 * target.h (target_ops) <to_call_history, to_call_history_from,
6907 to_call_history_range>: New fields.
6908 (target_call_history, target_call_history_from,
6909 target_call_history_range): New declaration.
6910 * record.c (get_call_history_modifiers, cmd_record_call_history,
6911 record_call_history_size): New.
6912 (_initialize_record): Add the "record function-call-history" command.
6913 Add "set/show record function-call-history-size" commands.
6914 * record.h (record_print_flag): New.
6915
6916 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6917
6918 * target.h (target_ops) <to_insn_history, to_insn_history_from,
6919 to_insn_history_range>: New fields.
6920 (target_insn_history): New.
6921 (target_insn_history_from): New.
6922 (target_insn_history_range): New.
6923 * target.c (target_insn_history): New.
6924 (target_insn_history_from): New.
6925 (target_insn_history_range): New.
6926 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
6927 (record_insn_history_size): New.
6928 (get_insn_number): New.
6929 (get_context_size): New.
6930 (no_chunk): New.
6931 (get_insn_history_modifiers): New.
6932 (cmd_record_insn_history): New.
6933 (_initialize_record): Add "set/show record instruction-history-size"
6934 command. Add "record instruction-history" command.
6935
6936 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6937
6938 * record.h (record_disconnect): New.
6939 (record_detach): New.
6940 (record_mourn_inferior): New.
6941 (record_kill): New.
6942 * record-full.c (record_disconnect, record_detach,
6943 record_mourn_inferior, record_kill): Move to...
6944 * record.c: ...here.
6945 (DEBUG): New.
6946 (record_stop): New.
6947 (record_unpush): New.
6948 (cmd_record_stop): Call record_stop. Replace unpush_target
6949 call with record_unpush call.
6950 (record_disconnect, record_detach): Assert that the target
6951 is of record stratum. Call record_unpush, record_stop, and
6952 DEBUG.
6953 (record_mourn_inferior, record_kill): Assert that the target
6954 is of record stratum. Call record_unpush and DEBUG.
6955
6956 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6957
6958 * record-full.h, record-full.c (record_memory_query): Rename
6959 to ...
6960 (record_full_memory_query): ...this. Update all users.
6961 (record_arch_list_add_reg): Rename to ...
6962 (record_full_arch_list_add_reg): ...this. Update all users.
6963 (record_arch_list_add_mem): Rename to ...
6964 (record_full_arch_list_add_mem): ...this. Update all users.
6965 (record_arch_list_add_end): Rename to ...
6966 (record_full_arch_list_add_end): ...this. Update all users.
6967 (record_gdb_operation_disable_set): Rename to ...
6968 (record_full_gdb_operation_disable_set): ...this.
6969 Update all users.
6970
6971 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6972
6973 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
6974 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
6975 (RECORD_IS_REPLAY): Renamed to ...
6976 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
6977 (RECORD_FILE_MAGIC): Renamed to ...
6978 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
6979 (record_mem_entry): Renamed to ...
6980 (record_full_mem_entry): ... this. Updated all users.
6981 (record_reg_entry): Renamed to ...
6982 (record_full_reg_entry): ... this. Updated all users.
6983 (record_end_entry): Renamed to ...
6984 (record_full_end_entry): ... this. Updated all users.
6985 (record_type) <record_end, record_reg, record_mem>: Renamed
6986 to ...
6987 (record_full_type) <record_full_end, record_full_reg,
6988 record_full_mem>: ... this. Updated all users.
6989 (record_entry): Renamed to ...
6990 (record_full_entry): ... this. Updated all users.
6991 (record_core_buf_entry): Renamed to ...
6992 (record_full_core_buf_entry): ... this. Updated all users.
6993 (record_core_regbuf): Renamed to ...
6994 (record_full_core_regbuf): ... this. Updated all users.
6995 (record_core_start): Renamed to ...
6996 (record_full_core_start): ... this. Updated all users.
6997 (record_core_end): Renamed to ...
6998 (record_full_core_end): ... this. Updated all users.
6999 (record_core_buf_list): Renamed to ...
7000 (record_full_core_buf_list): ... this. Updated all users.
7001 (record_first): Renamed to ...
7002 (record_full_first): ... this. Updated all users.
7003 (record_list): Renamed to ...
7004 (record_full_list): ... this. Updated all users.
7005 (record_arch_list_head): Renamed to ...
7006 (record_full_arch_list_head): ... this. Updated all users.
7007 (record_arch_list_tail): Renamed to ...
7008 (record_full_arch_list_tail): ... this. Updated all users.
7009 (record_stop_at_limit): Renamed to ...
7010 (record_full_stop_at_limit): ... this. Updated all users.
7011 (record_insn_max_num): Renamed to ...
7012 (record_full_insn_max_num): ... this. Updated all users.
7013 (record_insn_num): Renamed to ...
7014 (record_full_insn_num): ... this. Updated all users.
7015 (record_insn_count): Renamed to ...
7016 (record_full_insn_count): ... this. Updated all users.
7017 (record_ops): Renamed to ...
7018 (record_full_ops): ... this. Updated all users.
7019 (record_core_ops): Renamed to ...
7020 (record_full_core_ops): ... this. Updated all users.
7021 (set_record_cmdlist): Renamed to ...
7022 (set_record_full_cmdlist): ... this. Updated all users.
7023 (show_record_cmdlist): Renamed to ...
7024 (show_record_full_cmdlist): ... this. Updated all users.
7025 (record_cmdlist): Renamed to ...
7026 (record_full_cmdlist): ... this. Updated all users.
7027 (record_beneath_to_resume_ops): Renamed to ...
7028 (record_full_beneath_to_resume_ops): ... this. Updated all users.
7029 (record_beneath_to_resume): Renamed to ...
7030 (record_full_beneath_to_resume): ... this. Updated all users.
7031 (record_beneath_to_wait_ops): Renamed to ...
7032 (record_full_beneath_to_wait_ops): ... this. Updated all users.
7033 (record_beneath_to_wait): Renamed to ...
7034 (record_full_beneath_to_wait): ... this. Updated all users.
7035 (record_beneath_to_store_registers_ops): Renamed to ...
7036 (record_full_beneath_to_store_registers_ops): ... this.
7037 Updated all users.
7038 (record_beneath_to_store_registers): Renamed to ...
7039 (record_full_beneath_to_store_registers): ... this.
7040 Updated all users.
7041 (record_beneath_to_xfer_partial_ops): Renamed to ...
7042 (record_full_beneath_to_xfer_partial_ops): ... this.
7043 Updated all users.
7044 (record_beneath_to_xfer_partial): Renamed to ...
7045 (record_full_beneath_to_xfer_partial): ... this.
7046 Updated all users.
7047 (record_beneath_to_insert_breakpoint): Renamed to ...
7048 (record_full_beneath_to_insert_breakpoint): ... this.
7049 Updated all users.
7050 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
7051 (record_full_beneath_to_stopped_by_watchpoint): ... this.
7052 Updated all users.
7053 (record_beneath_to_stopped_data_address): Renamed to ...
7054 (record_full_beneath_to_stopped_data_address): ... this.
7055 Updated all users.
7056 (record_beneath_to_async): Renamed to ...
7057 (record_full_beneath_to_async): ... this. Updated all users.
7058 (record_goto_insn): Renamed to ...
7059 (record_full_goto_insn): ... this. Updated all users.
7060 (record_save): Renamed to ...
7061 (record_full_save): ... this. Updated all users.
7062 (record_reg_alloc): Renamed to ...
7063 (record_full_reg_alloc): ... this. Updated all users.
7064 (record_reg_release): Renamed to ...
7065 (record_full_reg_release): ... this. Updated all users.
7066 (record_mem_alloc): Renamed to ...
7067 (record_full_mem_alloc): ... this. Updated all users.
7068 (record_mem_release): Renamed to ...
7069 (record_full_mem_release): ... this. Updated all users.
7070 (record_end_alloc): Renamed to ...
7071 (record_full_end_alloc): ... this. Updated all users.
7072 (record_end_release): Renamed to ...
7073 (record_full_end_release): ... this. Updated all users.
7074 (record_entry_release): Renamed to ...
7075 (record_full_entry_release): ... this. Updated all users.
7076 (record_list_release): Renamed to ...
7077 (record_full_list_release): ... this. Updated all users.
7078 (record_list_release_following): Renamed to ...
7079 (record_full_list_release_following): ... this.
7080 Updated all users.
7081 (record_list_release_first): Renamed to ...
7082 (record_full_list_release_first): ... this. Updated all users.
7083 (record_arch_list_add): Renamed to ...
7084 (record_full_arch_list_add): ... this. Updated all users.
7085 (record_get_loc): Renamed to ...
7086 (record_full_get_loc): ... this. Updated all users.
7087 (record_check_insn_num): Renamed to ...
7088 (record_full_check_insn_num): ... this. Updated all users.
7089 (record_arch_list_cleanups): Renamed to ...
7090 (record_full_arch_list_cleanups): ... this. Updated all users.
7091 (record_message): Renamed to ...
7092 (record_full_message): ... this. Updated all users.
7093 (record_message_wrapper): Renamed to ...
7094 (record_full_message_wrapper): ... this. Updated all users.
7095 (record_message_wrapper_safe): Renamed to ...
7096 (record_full_message_wrapper_safe): ... this. Updated all users.
7097 (record_gdb_operation_disable): Renamed to ...
7098 (record_full_gdb_operation_disable): ... this. Updated all users.
7099 (record_hw_watchpoint): Renamed to ...
7100 (record_full_hw_watchpoint): ... this. Updated all users.
7101 (record_exec_insn): Renamed to ...
7102 (record_full_exec_insn): ... this. Updated all users.
7103 (record_restore): Renamed to ...
7104 (record_full_restore): ... this. Updated all users.
7105 (record_async_inferior_event_token): Renamed to ...
7106 (record_full_async_inferior_event_token): ... this.
7107 Updated all users.
7108 (record_async_inferior_event_handler): Renamed to ...
7109 (record_full_async_inferior_event_handler): ... this.
7110 Updated all users.
7111 (record_core_open_1): Renamed to ...
7112 (record_full_core_open_1): ... this. Updated all users.
7113 (record_open_1): Renamed to ...
7114 (record_full_open_1): ... this. Updated all users.
7115 (record_open): Renamed to ...
7116 (record_full_open): ... this. Updated all users.
7117 (record_close): Renamed to ...
7118 (record_full_close): ... this. Updated all users.
7119 (record_resume_step): Renamed to ...
7120 (record_full_resume_step): ... this. Updated all users.
7121 (record_resumed): Renamed to ...
7122 (record_full_resumed): ... this. Updated all users.
7123 (record_execution_dir): Renamed to ...
7124 (record_full_execution_dir): ... this. Updated all users.
7125 (record_resume): Renamed to ...
7126 (record_full_resume): ... this. Updated all users.
7127 (record_get_sig): Renamed to ...
7128 (record_full_get_sig): ... this. Updated all users.
7129 (record_sig_handler): Renamed to ...
7130 (record_full_sig_handler): ... this. Updated all users.
7131 (record_wait_cleanups): Renamed to ...
7132 (record_full_wait_cleanups): ... this. Updated all users.
7133 (record_wait_1): Renamed to ...
7134 (record_full_wait_1): ... this. Updated all users.
7135 (record_wait): Renamed to ...
7136 (record_full_wait): ... this. Updated all users.
7137 (record_stopped_by_watchpoint): Renamed to ...
7138 (record_full_stopped_by_watchpoint): ... this. Updated all users.
7139 (record_disconnect): Renamed to ...
7140 (record_full_disconnect): ... this. Updated all users.
7141 (record_detach): Renamed to ...
7142 (record_full_detach): ... this. Updated all users.
7143 (record_mourn_inferior): Renamed to ...
7144 (record_full_mourn_inferior): ... this. Updated all users.
7145 (record_kill): Renamed to ...
7146 (record_full_kill): ... this. Updated all users.
7147 (record_stopped_data_address): Renamed to ...
7148 (record_full_stopped_data_address): ... this. Updated all users.
7149 (record_registers_change): Renamed to ...
7150 (record_full_registers_change): ... this. Updated all users.
7151 (record_store_registers): Renamed to ...
7152 (record_full_store_registers): ... this. Updated all users.
7153 (record_xfer_partial): Renamed to ...
7154 (record_full_xfer_partial): ... this. Updated all users.
7155 (record_breakpoint): Renamed to ...
7156 (record_full_breakpoint): ... this. Updated all users.
7157 (record_breakpoint_p): Renamed to ...
7158 (record_full_breakpoint_p): ... this. Updated all users.
7159 (record_breakpoints): Renamed to ...
7160 (record_full_breakpoints): ... this. Updated all users.
7161 (record_sync_record_breakpoints): Renamed to ...
7162 (record_full_sync_record_breakpoints): ... this.
7163 Updated all users.
7164 (record_init_record_breakpoints): Renamed to ...
7165 (record_full_init_record_breakpoints): ... this.
7166 Updated all users.
7167 (record_insert_breakpoint): Renamed to ...
7168 (record_full_insert_breakpoint): ... this. Updated all users.
7169 (record_remove_breakpoint): Renamed to ...
7170 (record_full_remove_breakpoint): ... this. Updated all users.
7171 (record_can_execute_reverse): Renamed to ...
7172 (record_full_can_execute_reverse): ... this. Updated all users.
7173 (record_get_bookmark): Renamed to ...
7174 (record_full_get_bookmark): ... this. Updated all users.
7175 (record_goto_bookmark): Renamed to ...
7176 (record_full_goto_bookmark): ... this. Updated all users.
7177 (record_async): Renamed to ...
7178 (record_full_async): ... this. Updated all users.
7179 (record_can_async_p): Renamed to ...
7180 (record_full_can_async_p): ... this. Updated all users.
7181 (record_is_async_p): Renamed to ...
7182 (record_full_is_async_p): ... this. Updated all users.
7183 (record_execution_direction): Renamed to ...
7184 (record_full_execution_direction): ... this. Updated all users.
7185 (record_info): Renamed to ...
7186 (record_full_info): ... this. Updated all users.
7187 (record_delete): Renamed to ...
7188 (record_full_delete): ... this. Updated all users.
7189 (record_is_replaying): Renamed to ...
7190 (record_full_is_replaying): ... this. Updated all users.
7191 (record_goto_entry): Renamed to ...
7192 (record_full_goto_entry): ... this. Updated all users.
7193 (record_goto_begin): Renamed to ...
7194 (record_full_goto_begin): ... this. Updated all users.
7195 (record_goto_end): Renamed to ...
7196 (record_full_goto_end): ... this. Updated all users.
7197 (record_goto): Renamed to ...
7198 (record_full_goto): ... this. Updated all users.
7199 (init_record_ops): Renamed to ...
7200 (init_record_full_ops): ... this. Updated all users.
7201 (record_core_resume): Renamed to ...
7202 (record_full_core_resume): ... this. Updated all users.
7203 (record_core_kill): Renamed to ...
7204 (record_full_core_kill): ... this. Updated all users.
7205 (record_core_fetch_registers): Renamed to ...
7206 (record_full_core_fetch_registers): ... this. Updated all users.
7207 (record_core_prepare_to_store): Renamed to ...
7208 (record_full_core_prepare_to_store): ... this. Updated all users.
7209 (record_core_store_registers): Renamed to ...
7210 (record_full_core_store_registers): ... this. Updated all users.
7211 (record_core_xfer_partial): Renamed to ...
7212 (record_full_core_xfer_partial): ... this. Updated all users.
7213 (record_core_insert_breakpoint): Renamed to ...
7214 (record_full_core_insert_breakpoint): ... this. Updated all users.
7215 (record_core_remove_breakpoint): Renamed to ...
7216 (record_full_core_remove_breakpoint): ... this. Updated all users.
7217 (record_core_has_execution): Renamed to ...
7218 (record_full_core_has_execution): ... this. Updated all users.
7219 (init_record_core_ops): Renamed to ...
7220 (init_record_full_core_ops): ... this. Updated all users.
7221 (cmd_record_restore): Renamed to ...
7222 (cmd_record_full_restore): ... this. Updated all users.
7223 (record_save_cleanups): Renamed to ...
7224 (record_full_save_cleanups): ... this. Updated all users.
7225 (cmd_record_start): Renamed to ...
7226 (cmd_record_full_start): ... this. Updated all users.
7227 (set_record_insn_max_num): Renamed to ...
7228 (set_record_full_insn_max_num): ... this. Updated all users.
7229 (set_record_command): Renamed to ...
7230 (set_record_full_command): ... this. Updated all users.
7231 (show_record_command): Renamed to ...
7232 (show_record_full_command): ... this. Updated all users.
7233 (_initialize_record): Renamed to ...
7234 (_initialize_record_full): ... this. Updated all users.
7235
7236 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7237
7238 * record.h: Split into this and ...
7239 * record-full.h: ... this.
7240 * record.c: Split into this and ...
7241 * record-full.c: ... this.
7242 * target.h (target_ops): Add new fields to_info_record,
7243 to_save_record, to_delete_record, to_record_is_replaying,
7244 to_goto_record_begin, to_goto_record_end, to_goto_record.
7245 (target_info_record): New.
7246 (target_save_record): New.
7247 (target_supports_delete_record): New.
7248 (target_delete_record): New.
7249 (target_record_is_replaying): New.
7250 (target_goto_record_begin): New.
7251 (target_goto_record_end): New.
7252 (target_goto_record): New.
7253 * target.c (target_info_record): New.
7254 (target_save_record): New.
7255 (target_supports_delete_record): New.
7256 (target_delete_record): New.
7257 (target_record_is_replaying): New.
7258 (target_goto_record_begin): New.
7259 (target_goto_record_end): New.
7260 (target_goto_record): New.
7261 * record.h: Declare struct cmd_list_element.
7262 (record_cmdlist): New declaration.
7263 (set_record_cmdlist): New declaration.
7264 (show_record_cmdlist): New declaration.
7265 (info_record_cmdlist): New declaration.
7266 (cmd_record_goto): New declaration.
7267 * record.c: Remove unnecessary includes.
7268 Include inferior.h.
7269 (cmd_record_goto): Remove declaration.
7270 (record_cmdlist): Now extern. Initialize.
7271 (set_record_cmdlist): Now extern. Initialize.
7272 (show_record_cmdlist): Now extern. Initialize.
7273 (info_record_cmdlist): Now extern. Initialize.
7274 (find_record_target): New.
7275 (require_record_target): New.
7276 (cmd_record_start): Update.
7277 (cmd_record_delete): Remove target-specific code.
7278 Call target_delete_record.
7279 (cmd_record_stop): Unpush any record target.
7280 (set_record_insn_max_num): Move to record-full.c
7281 (set_record_command): Add comment.
7282 (show_record_command): Add comment.
7283 (info_record_command): Update comment.
7284 Remove target-specific code.
7285 Call the record target's to_info_record.
7286 (cmd_record_start): New.
7287 (cmd_record_goto): Now extern.
7288 Remove target-specific code.
7289 Call target_goto_begin, target_goto_end, or target_goto.
7290 (_initialize_record): Move record target ops initialization to
7291 record-full.c.
7292 Change "record" command help text.
7293 Move "record restore", "record set", and "record show" commands to
7294 record-full.c.
7295 * Makefile.in (SFILES): Add record-full.c.
7296 (HFILES_NO_SRCDIR): Add record-full.h.
7297 (COMMON_OBS): Add record-full.o.
7298 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
7299 * arm-tdep.c: Include record-full.h.
7300 * i386-linux-tdep.c: Include record-full.h instead of record.h.
7301 * i386-tdep.c: Include record-full.h.
7302 * infrun.c: Include record-full.h.
7303 * linux-record.c: Include record-full.h.
7304 * moxie-tdep.c: Include record-full.h.
7305 * record-full.c: Include record-full.h.
7306 Change module comment.
7307 (set_record_full_cmdlist): New.
7308 (show_record_full_cmdlist): New.
7309 (record_full_cmdlist): New.
7310 (record_goto_insn): New declaration.
7311 (record_save): New declaration.
7312 (record_check_insn_num): Change query string.
7313 (record_info): New.
7314 (record_delete): New.
7315 (record_is_replaying): New.
7316 (record_goto_entry): New.
7317 (record_goto_begin): New.
7318 (record_goto_end): New.
7319 (record_goto): New.
7320 (init_record_ops): Update.
7321 (init_record_core_ops): Update.
7322 (cmd_record_save): Rename to record_save. Remove target and arg checks.
7323 (cmd_record_start): New.
7324 (set_record_insn_max_num): Moved from record.c
7325 (set_record_full_command): New.
7326 (show_record_full_command): New.
7327 (_initialize_record_full): New.
7328
7329 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7330
7331 * target.h (add_deprecated_target_alias): New.
7332 * target.c (add_deprecated_target_alias): New.
7333
7334 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7335
7336 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
7337 and signal.h.
7338 (linux_supports_btrace): Add kernel and
7339 cpuid check.
7340 (kernel_supports_btrace): New function.
7341 (cpu_supports_btrace): New function.
7342 (intel_supports_btrace): New function.
7343
7344 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7345
7346 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
7347 * remote.c: Include btrace.h.
7348 (struct btrace_target_info): New struct.
7349 (remote_supports_btrace): New function.
7350 (send_Qbtrace): New function.
7351 (remote_enable_btrace): New function.
7352 (remote_disable_btrace): New function.
7353 (remote_teardown_btrace): New function.
7354 (remote_read_btrace): New function.
7355 (init_remote_ops): Add btrace ops.
7356 (enum <unnamed>): Add btrace packets.
7357 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
7358 (_initialize_remote): Add packet configuration for branch tracing.
7359
7360 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7361
7362 * features/btrace.dtd: New file.
7363 * Makefile.in (XMLFILES): Add btrace.dtd.
7364 * btrace.h (parse_xml_btrace): New declaration.
7365 * btrace.c: Include xml-support.h.
7366 (parse_xml_btrace): New function.
7367 (parse_xml_btrace_block): New function.
7368 (block_attributes): New struct.
7369 (btrace_attributes): New struct.
7370 (btrace_children): New struct.
7371 (btrace_elements): New struct.
7372
7373 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7374
7375 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
7376 (amd64_linux_enable_btrace): New.
7377 (amd64_linux_disable_btrace): New.
7378 (amd64_linux_teardown_btrace): New.
7379 (_initialize_amd64_linux_nat): Initialize btrace ops.
7380 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
7381 (i386_linux_enable_btrace): New.
7382 (i386_linux_disable_btrace): New.
7383 (i386_linux_teardown_btrace): New.
7384 (_initialize_i386_linux_nat): Initialize btrace ops.
7385 * config/i386/linux.mh: Add linux-btrace.o.
7386 * config/i386/linux64.mh: Add linux-btrace.o.
7387
7388 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7389
7390 * common/linux_btrace.h: New file.
7391 * common/linux_btrace.c: New file.
7392 * Makefile.in (SFILES): Add btrace.c.
7393 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
7394 (COMMON_OBS): Add btrace.o.
7395 (linux-btrace.o): New rule.
7396
7397 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7398
7399 * target.h: Include btrace.h.
7400 (struct target_ops) <to_supports_btrace, to_enable_btrace,
7401 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
7402 * target.c (target_supports_btrace): New function.
7403 (target_enable_btrace): New function.
7404 (target_disable_btrace): New function.
7405 (target_teardown_btrace): New function.
7406 (target_read_btrace): New function.
7407 * btrace.h: New file.
7408 * btrace.c: New file.
7409 * Makefile.in: Add btrace.c.
7410 * gdbthread.h: Include btrace.h.
7411 (struct thread_info): Add btrace field.
7412 * thread.c: Include btrace.h.
7413 (clear_thread_inferior_resources): Call target_teardown_btrace.
7414 * common/btrace-common.h: New file.
7415
7416 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7417
7418 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
7419 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
7420 kill_status to outer block.
7421
7422 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7423
7424 Fix entry-values if the callee called a noreturn function.
7425 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7426 get_frame_address_in_block. Add new comment.
7427
7428 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7429
7430 Fix entry-values in C++ across CUs.
7431 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
7432 lookup_minimal_symbol. Add a comment.
7433 * dwarf2read.c
7434 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
7435 DW_AT_linkage_name.
7436
7437 2013-03-08 Yao Qi <yao@codesourcery.com>
7438
7439 * tracepoint.c (_initialize_tracepoint): Indent the code.
7440
7441 2013-03-08 Pedro Alves <palves@redhat.com>
7442
7443 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
7444 (parse_find_args, find_command): Change type of pattern buffer
7445 locals to 'gdb_byte *'.
7446
7447 2013-03-08 Stan Shebs <stan@codesourcery.com>
7448 Hafiz Abid Qadeer <abidh@codesourcery.com>
7449
7450 * NEWS: Mention set and show trace-buffer-size commands.
7451 Mention new packet.
7452 * target.h (struct target_ops): New method
7453 to_set_trace_buffer_size.
7454 (target_set_trace_buffer_size): New macro.
7455 * target.c (update_current_target): Set up new method.
7456 * tracepoint.c (trace_buffer_size): New global.
7457 (start_tracing): Send it to the target.
7458 (set_trace_buffer_size): New function.
7459 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
7460 * remote.c (remote_set_trace_buffer_size): New function.
7461 (_initialize_remote): Use it.
7462 (QTBuffer:size) New remote command.
7463 (PACKET_QTBuffer_size): New enum.
7464 (remote_protocol_features): Add an entry for
7465 PACKET_QTBuffer_size.
7466
7467 2013-03-08 Tom Tromey <tromey@redhat.com>
7468
7469 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
7470 variable.
7471
7472 2013-03-07 Pedro Alves <palves@redhat.com>
7473
7474 * target.c (target_read_stralloc, target_fileio_read_alloc):
7475 *Cast pointer to 'gdb_byte *' in target call.
7476
7477 2013-03-07 Pedro Alves <palves@redhat.com>
7478
7479 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
7480 call.
7481
7482 2013-03-07 Keith Seitz <keiths@redhat.com>
7483
7484 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
7485 (trace_pass_command): Likewise.
7486 * cli/cli-cmds.c: Include cli/cli-utils.h.
7487 (source_command): Use skip-spaces.
7488 (disassemble_command): Likewise.
7489 * findcmd.c: Include cli/cli-utils.h.
7490 (parse_find_args): Use skip_spaces.
7491 * go32-nat.c: Include cli/cli-utils.h.
7492 (go32_sldt): Use skip_spaces.
7493 (go32_sgdt): Likewise.
7494 (go32_sidt): Likewise.
7495 (go32_pde): Likewise.
7496 (go32_pte): Likewise.
7497 (go32_pte_for_address): Likewise.
7498 * infcmd.c: Include cli/cli-utils.h.
7499 (registers_info): Use skip_spaces.
7500 * linux-tdep.c (read_mapping): Use skip_spaces_const.
7501 (linux_info_proc): Likewise.
7502 * linux-thread-db.c: Include cli/cli-utils.h.
7503 (info_auto_load_libthread_db): Use skip_spaces_const.
7504 * m32r-rom.c: Include cli/cli-utils.h.
7505 (m32r_upload_command): Use skip_spaces.
7506 * maint.c: Include cli/cli-utils.h.
7507 (maintenance_translate_address): Use skip_spaces.
7508 * mi/mi-parse.c: Include cli/cli-utils.h.
7509 (mi_parse_argv): Use skip_spaces.
7510 (mi_parse): Likewise.
7511 * minsyms.c: Include cli/cli-utils.h.
7512 (msymbol_hash_iw): Use skip_spaces_const.
7513 * objc-lang.c: Include cli/cli-utils.h.
7514 (parse_selector): Use skip_spaces.
7515 (parse_method): Likewise.
7516 * python/python.c: Include cli/cli-utils.h.
7517 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
7518 (python_command)[HAVE_PYTHON]: Likewise.
7519 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
7520 * remote-m32r-sdi.c: Include cli/cli-utils.h.
7521 (m32r_load): Use skip_spaces.
7522 * serial.c: Include cli/cli-utils.h.
7523 (serial_open): Use skip_spaces_const.
7524 * stack.c: Include cli/cli-utils.h.
7525 (parse_frame_specification_1): Use skip_spaces_const.
7526 * symfile.c: Include cli/cli-utils.h.
7527 (set_ext_lang_command): Use skip_spaces.
7528 * symtab.c: Include cli/cli-utils.h.
7529 (rbreak_command): Use skip_spaces.
7530 * thread.c (thread_name_command): Use skip_spaces.
7531 * tracepoint.c (validate_actionline): Use skip_spaces.
7532 (encode_actions_1): Likewise.
7533 (trace_find_range_command): Likewise.
7534 (trace_find_outside_command): Likewise.
7535 (trace_dump_actions): Likewise.
7536
7537 2013-03-07 Pedro Alves <palves@redhat.com>
7538
7539 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
7540 * expprint.c (print_subexp_standard): Likewise.
7541 * utils.c (host_char_to_target): Likewise.
7542 * valprint.c (generic_emit_char, generic_printstr): Likewise.
7543 * varobj.c (value_get_print_value): Change type of local to char*.
7544 Cast it gdb_byte * in call to language printer.
7545
7546 2013-03-07 Pedro Alves <palves@redhat.com>
7547
7548 * charset.c (struct wchar_iterator) <input>: Change type to 'const
7549 gdb_byte *'.
7550 (make_wchar_iterator): Remove cast to char*.
7551 (wchar_iterate): Change type of local.
7552
7553 2013-03-07 Pedro Alves <palves@redhat.com>
7554
7555 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
7556 for 'regcache->register_status'.
7557
7558 2013-03-07 Pedro Alves <palves@redhat.com>
7559
7560 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
7561 int.
7562
7563 2013-03-07 Pedro Alves <palves@redhat.com>
7564
7565 * stap-probe.c (handle_stap_probe): Add cast to char*.
7566
7567 2013-03-07 Pedro Alves <palves@redhat.com>
7568
7569 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
7570 RECORD_MSGRCV>: Pass a signed variable to
7571 regcache_raw_read_signed, instead of an unsigned one.
7572
7573 2013-03-07 Pedro Alves <palves@redhat.com>
7574
7575 * remote-notif.c (notif_debug): Change type to int.
7576 * remote-notif.h (notif_debug): Likewise.
7577
7578 2013-03-07 Pedro Alves <palves@redhat.com>
7579
7580 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
7581
7582 2013-03-07 Pedro Alves <palves@redhat.com>
7583
7584 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
7585 * remote.h (hex2bin, bin2hex): ... here.
7586 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
7587
7588 2013-03-07 Eli Zaretskii <eliz@gnu.org>
7589
7590 * utils.c (initialize_utils): Improve doc strings of "set/show
7591 width", "set/show height", and "set/show pagination".
7592
7593 2013-03-06 Keith Seitz <keiths@redhat.com>
7594
7595 * ax-gdb.c (gen_printf): Make FORMAT const.
7596 * ax-gdb.h (gen_printf): Likewise.
7597 * ax-general.c (ax_string): Make STR const.
7598 * ax.h (ax_string): Likewise.
7599
7600 2013-03-06 Doug Evans <dje@google.com>
7601
7602 * elfread.c (elf_symfile_read): Move debugging printf to more
7603 logical location.
7604
7605 2013-03-06 Pedro Alves <palves@redhat.com>
7606
7607 * python/py-utils.c (target_string_to_unicode): Delete function.
7608 * python/python-internal.h (target_string_to_unicode): Delete
7609 declaration.
7610
7611 2013-03-06 Pierre Muller <muller@sourceware.org>
7612
7613 * linespec.c (get_current_search_block): ARI fix, use (void)
7614 for empty parameter list.
7615
7616 2013-03-05 Doug Evans <dje@google.com>
7617
7618 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
7619 of old ada_lookup_symbol_list. In !full_search case, don't
7620 search superblocks.
7621 (ada_lookup_symbol_list): Delete arg full_search, all callers
7622 updated. Call ada_lookup_symbol_list_worker.
7623 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
7624 * ada-lang.h (ada_lookup_symbol_list): Update.
7625 * language.h (language_defn): Update comment for
7626 la_iterate_over_symbols.
7627 * linespec.c (iterate_over_file_blocks): New function.
7628 (iterate_over_all_matching_symtabs): Call it.
7629 (lookup_prefix_sym): Ditto.
7630 (get_current_search_block): New function.
7631 (get_search_block): Delete.
7632 (find_label_symbols): Call get_current_search_block.
7633 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
7634 * symtab.c (iterate_over_symbols): Don't search superblocks.
7635
7636 2013-03-05 Yao Qi <yao@codesourcery.com>
7637
7638 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
7639 parameter VAR's type from "unsigned int" to "int".
7640 * command.h (var_zuinteger_unlimited): Update its comments.
7641 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
7642
7643 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
7644
7645 * NEWS: Mention new target x86_64-*-cygwin*.
7646
7647 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
7648
7649 * configure.host: Add x86_64-*-cygwin* as host.
7650 * configure.tgt: Add x86_64-*-cygwin* as target.
7651 * config/i386/cygwin64.mh: New file.
7652
7653 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7654
7655 * linespec.c (decode_line_2): Fix duplicate request off by two message.
7656
7657 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7658
7659 * linespec.c (struct linespec_canonical_name): New.
7660 (struct linespec_state): Change canonical_names type to it.
7661 (add_sal_to_sals): Change variable canonical_name to canonical. Change
7662 xrealloc element size. Initialize the different CANONICAL fields.
7663 (canonical_to_fullform): New.
7664 (filter_results): Use it. Add variables canonical, fullform and
7665 cleanup.
7666 (struct decode_line_2_item, decode_line_2_compare_items): New.
7667 (decode_line_2): Remove variables iter and item_names, add variables
7668 items and items_count. Modify the code for these new variables.
7669
7670 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
7671
7672 * coff-pe-read.c (read_pe_exported_syms): Don't return without
7673 calling do_cleanup.
7674
7675 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
7676
7677 * tracepoint.c (build_traceframe_info): Add code for byte order.
7678
7679 2013-03-02 Kevin Buettner <kevinb@redhat.com>
7680
7681 * v850-tdep.c: (v850e2_register_name): Revise system register
7682 names to match current V850E2M architecture specifications.
7683 Update register number enum comments too.
7684
7685 2013-03-01 Jiong Wang <jiwang@tilera.com>
7686 Pedro Alves <palves@redhat.com>
7687
7688 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
7689 to END_ADDR.
7690 (tilegx_skip_prologue): Limit prologue analysis to section end.
7691
7692 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7693
7694 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
7695 use it.
7696
7697 2013-03-01 Pedro Alves <palves@redhat.com>
7698
7699 Use gdb_byte for bytes from the program being debugged.
7700
7701 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
7702 Change type of local 'buf' to gdb_byte.
7703 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
7704 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
7705 * cris-tdep.c (cris_sigcontext_addr)
7706 (cris_sigtramp_frame_unwind_cache): Likewise.
7707 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
7708 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
7709 Likewise.
7710 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
7711 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
7712 (hppa32_hpux_search_dummy_call_sequence)
7713 (hppa_hpux_supply_save_state): Likewise.
7714 * hppa-linux-tdep.c (insns_match_pattern)
7715 (hppa_linux_find_global_pointer): Likewise.
7716 * hppa-tdep.c (hppa_in_function_epilogue_p)
7717 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
7718 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
7719 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
7720 (i386fbsd_collect_uthread): Likewise.
7721 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
7722 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
7723 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
7724 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
7725 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
7726 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
7727 (ia64_libunwind_frame_prev_register)
7728 (ia64_libunwind_sigtramp_frame_this_id)
7729 (ia64_find_global_pointer_from_dynamic_section)
7730 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
7731 (ia64_unwind_pc): Likewise.
7732 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
7733 * m68hc11-tdep.c (m68hc11_push_dummy_call)
7734 (m68hc11_extract_return_value): Likewise.
7735 * m68klinux-nat.c (fetch_register, store_register): Likewise.
7736 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
7737 (mep_get_insn, mep_push_dummy_call): Likewise.
7738 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
7739 (mips_linux_in_dynsym_stub): Likewise.
7740 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
7741 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
7742 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
7743 to gdb_byte.
7744 * remote-mips.c (mips_set_register): Likewise.
7745 * remote-sim.c (gdbsim_fetch_register): Likewise.
7746 * score-tdep.c (score7_fetch_inst): Change type of parameter
7747 'memblock' and local 'buf' to gdb_byte.
7748 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
7749 Change type of local 'buf' to gdb_byte. Adjust.
7750 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
7751 to gdb_byte**.
7752 (score7_analyze_prologue): Change type of 'memblock' and
7753 'memblock_ptr' locals to gdb_byte*.
7754 * sh64-tdep.c (sh64_extract_return_value)
7755 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
7756 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
7757 * solib-pa64.c (pa64_solib_create_inferior_hook)
7758 (pa64_open_symbol_file_object): Remove local 'buf'.
7759 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
7760 (som_open_symbol_file_object): Likewise.
7761 * solib-spu.c (spu_current_sos): Likewise.
7762 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7763 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
7764 (spu_store_registers): Likewise.
7765 * target.c (debug_print_register): Likewise.
7766 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
7767 * xstormy16-tdep.c (xstormy16_store_return_value)
7768 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
7769 (xstormy16_find_jmp_table_entry): Likewise.
7770
7771 2013-03-01 Jiong Wang <jiwang@tilera.com>
7772
7773 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
7774 (tilegx_gdbarch_init): Install it.
7775
7776 2013-02-28 Tom Tromey <tromey@redhat.com>
7777
7778 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
7779 PyLong_Check.
7780
7781 2013-02-28 Doug Evans <dje@google.com>
7782
7783 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
7784 * python/python.c (gdbpy_find_pc_line): Ditto.
7785
7786 2013-02-28 Tom Tromey <tromey@redhat.com>
7787
7788 * contrib/excheck.py: New file.
7789 * contrib/exsummary.py: New file.
7790 * contrib/gcc-with-excheck: New file.
7791
7792 2013-02-28 Tom Tromey <tromey@redhat.com>
7793
7794 * python/python.c (gdbpy_print_stack): Call begin_line and
7795 fprintf_filtered inside TRY_CATCH.
7796
7797 2013-02-28 Tom Tromey <tromey@redhat.com>
7798
7799 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
7800 inside TRY_CATCH.
7801
7802 2013-02-28 Tom Tromey <tromey@redhat.com>
7803
7804 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
7805 frame_object_to_frame_info inside TRY_CATCH.
7806
7807 2013-02-28 Tom Tromey <tromey@redhat.com>
7808
7809 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
7810 TRY_CATCH.
7811
7812 2013-02-28 Tom Tromey <tromey@redhat.com>
7813
7814 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
7815
7816 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
7817
7818 * windows-nat.c: Throughout, fix format strings and casts of
7819 printf-like functions to avoid type related warnings on all
7820 platforms.
7821 (handle_output_debug_string): Fetch context information address
7822 from debug string using string_to_core_addr.
7823
7824 2013-02-27 Jiong Wang <jiwang@tilera.com>
7825
7826 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
7827 * regformats/reg-tilegx32.dat: New.
7828
7829 2013-02-27 Jiong Wang <jiwang@tilera.com>
7830
7831 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
7832
7833 2013-02-27 Jiong Wang <jiwang@tilera.com>
7834
7835 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
7836
7837 2013-02-27 Yao Qi <yao@codesourcery.com>
7838 Pedro Alves <palves@redhat.com>
7839
7840 * tracepoint.c (tfile_trace_find): For tfind
7841 pc/tp/range/outside, look for the next trace frame instead of
7842 always starting from frame 0.
7843
7844 2013-02-26 Anthony Green <green@moxielogic.com>
7845
7846 * configure.tgt: Add support for moxie-*-rtems* target.
7847
7848 2013-02-25 Pedro Alves <palves@redhat.com>
7849
7850 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
7851 warning text.
7852
7853 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7854
7855 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
7856 if $fp is used as the virtual frame pointer.
7857
7858 2013-02-23 Alan Modra <amodra@gmail.com>
7859
7860 * elfread.c (elf_symtab_read): Do not use udata.p here to find
7861 symbol size.
7862 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
7863 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
7864 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
7865 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
7866
7867 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7868
7869 Code cleanup.
7870 * elfread.c (build_id_bfd_get): Make the return type const.
7871 (build_id_verify): Make the check parameter const.
7872 (build_id_to_debug_filename): Make the build_id parameter and variable
7873 data const.
7874 (find_separate_debug_file_by_buildid): Make the variable build_id const.
7875
7876 2013-02-21 Alan Modra <amodra@gmail.com>
7877
7878 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
7879
7880 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
7881
7882 Add a new method 'disassemble' to gdb.Architecture class.
7883 * python/py-arch.c (archpy_disassmble): Implementation of the
7884 new method gdb.Architecture.disassemble.
7885 (arch_object_methods): Add entry for the new method.
7886
7887 2013-02-20 Jiong Wang <jiwang@tilera.com>
7888
7889 * MAINTAINERS (Write After Approval): Add myself to the list.
7890
7891 2013-02-19 Pedro Alves <palves@redhat.com>
7892
7893 Garbage collect 'struct monitor_ops'::load_routine.
7894
7895 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
7896 * monitor.c (monitor_load): No longer call
7897 current_monitor->load_routine.
7898 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
7899 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
7900 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
7901
7902 2013-02-19 Pedro Alves <palves@redhat.com>
7903
7904 PR gdb/15161
7905
7906 Harmonize with generic_load.
7907
7908 * monitor.c: Include "readline/readline.h".
7909 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
7910 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
7911 long/strtol for the 'load_offset' local. Error out if no argument
7912 is given or if too many arguments are given. Tilde expand the
7913 passed in file name.
7914
7915 2013-02-19 Kai Tietz <ktietz@redhat.com>
7916
7917 PR gdb/15161
7918 * symfile.c (load_section_data): Change type of load_offset
7919 to CORE_ADDR.
7920 (generic_load): User strtoulst instead of strtoul for conversion
7921 of load_offset.
7922
7923 2013-02-19 Jiong Wang <jiwang@tilera.com>
7924
7925 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
7926 for return address, "lr" register, saved on stack.
7927 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
7928 after we invoke tilegx_analyze_prologue.
7929
7930 2013-02-19 Jiong Wang <jiwang@tilera.com>
7931
7932 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
7933
7934 2013-02-19 Jiong Wang <jiwang@tilera.com>
7935
7936 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
7937
7938 2013-02-19 Jiong Wang <jiwang@tilera.com>
7939
7940 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
7941 (tilegx_write_pc): New function.
7942 (tilegx_cannot_reference_register): Return zero if REGNO
7943 is TILEGX_FAULTNUM_REGNUM.
7944 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
7945 (tilegx_register_name): Add handling of "faultnum" register.
7946 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
7947 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
7948 handling of TILEGX_FAULTNUM_REGNUM.
7949 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
7950
7951 2013-02-19 Jiong Wang <jiwang@tilera.com>
7952
7953 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
7954 should be aligned to 64bit.
7955
7956 2013-02-19 Kai Tietz <ktietz@redhat.com>
7957
7958 * windows-nat.c (windows_xfer_memory): Fix debug-output
7959 for LLP64.
7960
7961 2013-02-19 Lei Liu <lei.liu2@windriver.com>
7962
7963 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
7964 Don't check DSP register number if HAVE_DSP is not set.
7965
7966 2013-02-19 Alan Modra <amodra@gmail.com>
7967
7968 * elfread.c (struct build_id): Delete. Use struct elf_build_id
7969 throughout file instead.
7970 (build_id_bfd_get): Update to use new elf_tdata build_id field.
7971 Don't xmalloc return value.
7972 (build_id_verify): Similarly. Don't xfree.
7973 (build_id_to_debug_filename): Update.
7974 (find_separate_debug_file_by_buildid): Update, don't xfree.
7975
7976 2013-02-18 Tom Tromey <tromey@redhat.com>
7977
7978 PR gdb/15102:
7979 * dwarf2read.c (read_subrange_type): Use result of
7980 'check_typedef'.
7981
7982 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
7983
7984 * frame.c: Remove one extra white space after #include
7985 directive.
7986
7987 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7988
7989 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
7990
7991 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7992
7993 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
7994 and dir commands into an if block.
7995
7996 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
7997
7998 * python/py-breakpoint (struct pybp_code): Use int instead of
7999 enum type_code.
8000
8001 2013-02-15 Pedro Alves <pedro@codesourcery.com>
8002 Hafiz Abid Qadeer <abidh@codesourcery.com>
8003
8004 * NEWS: Mention new field "trace-file".
8005 * tracepoint.c (trace_status_mi): Output "trace-file" field.
8006 (tfile_open): Record the trace file's filename in the trace
8007 status.
8008 (tfile_files_info): Mention the name of the trace file.
8009 Check the "filename" field explicitely.
8010 (trace_status_command): Explicitely check "filename" field.
8011 (trace_find_command): Ditto.
8012 (trace_find_pc_command): Ditto.
8013 (trace_find_tracepoint_command): Ditto.
8014 (trace_find_line_command): Ditto.
8015 (trace_find_range_command): Ditto.
8016 (trace_find_outside_command): Ditto.
8017 * tracepoint.h (struct trace_status) <from_file>: Rename it
8018 to "filename" and make it hold the trace file's filename
8019 instead of a boolean.
8020 * remote.c (remote_get_trace_status): Initialize "filename"
8021 field with NULL instead of 0.
8022
8023 2013-02-15 Yao Qi <yao@codesourcery.com>
8024
8025 * remote.c: Fix a typo.
8026
8027 2013-02-14 Pierre Muller <muller@sourceware.org>
8028
8029 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
8030
8031 2013-02-14 Pedro Alves <palves@redhat.com>
8032
8033 * utils.c (savestring): Don't #undef it. Move function to
8034 common/common-utils.c.
8035 * common/common-utils.c: Include gdb_string.h.
8036 (savestring): Move here from utils.c.
8037 * common/common-utils.h (savestring): Declare.
8038
8039 2013-02-14 Pedro Alves <palves@redhat.com>
8040
8041 * utils.c (savestring): Rename parameter 'size' to 'len'.
8042
8043 2013-02-14 Pedro Alves <palves@redhat.com>
8044 Yufeng Zhang <yufeng.zhang@arm.com>
8045
8046 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
8047 (aarch64_inferior_data, struct aarch64_inferior_data):
8048 Delete.
8049 (struct aarch64_process_info): New.
8050 (aarch64_process_list): New global.
8051 (aarch64_find_process_pid, aarch64_add_process)
8052 (aarch64_process_info_get): New functions.
8053 (aarch64_inferior_data_get): Delete.
8054 (aarch64_process_info_get): New function.
8055 (aarch64_forget_process): New function.
8056 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
8057 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
8058 aarch64_get_debug_reg_state.
8059 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
8060 instead of linux_nat_iterate_watchpoint_lwps.
8061 (aarch64_linux_new_fork): New function.
8062 (aarch64_linux_child_post_startup_inferior): Use
8063 aarch64_forget_process instead of aarch64_init_debug_reg_state.
8064 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
8065 (aarch64_linux_remove_hw_breakpoint)
8066 (aarch64_handle_aligned_watchpoint)
8067 (aarch64_handle_unaligned_watchpoint)
8068 (aarch64_linux_insert_watchpoint)
8069 (aarch64_linux_remove_watchpoint)
8070 (aarch64_linux_stopped_data_address): Adjust to pass the current
8071 process id to aarch64_debug_reg_state.
8072 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
8073 linux_nat_new_fork hook, and aarch64_forget_process as
8074 linux_nat_forget_process hook; remove the call to
8075 register_inferior_data_with_cleanup.
8076
8077 2013-02-14 Pedro Alves <palves@redhat.com>
8078
8079 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
8080 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
8081 lval_memory.
8082
8083 2013-02-14 Pedro Alves <pedro@codesourcery.com>
8084 Hafiz Abid Qadeer <abidh@codesourcery.com>
8085
8086 * tracepoint.h (validate_trace_state_variable_name): Declare.
8087 * tracepoint.c (validate_trace_state_variable_name): New.
8088 (trace_variable_command): Parse the trace state variable's name
8089 without using parse_expression. Do several validations.
8090 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
8091 trace state variable's name with parse_expression. Validate it.
8092
8093 2013-02-14 Yao Qi <yao@codesourcery.com>
8094
8095 * infcmd.c (breakpoint_proceeded): Remove it.
8096
8097 2013-02-14 Yao Qi <yao@codesourcery.com>
8098
8099 * tracepoint.c (end_actions_pseudocommand): Make it static.
8100 (while_stepping_pseudocommand): Likewise.
8101 * tracepoint.h (end_actions_pseudocommand): Remove the
8102 declaration.
8103 (while_stepping_pseudocommand): Likewise.
8104
8105 2013-02-14 Yao Qi <yao@codesourcery.com>
8106
8107 * cli/cli-decode.c (help_cmd): Remove the declaration of
8108 "cmdlist".
8109 (help_all): Likewise.
8110
8111 2013-02-13 Pedro Alves <palves@redhat.com>
8112
8113 * amd64-linux-nat.c (update_debug_registers_callback):
8114 Update comment.
8115 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8116 iterate_over_lwps.
8117 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
8118 i386_debug_reg_state.
8119 (amd64_linux_new_fork): New function.
8120 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
8121 linux_nat_new_fork hook, and i386_forget_process as
8122 linux_nat_forget_process hook.
8123 * i386-linux-nat.c (update_debug_registers_callback):
8124 Update comment.
8125 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8126 iterate_over_lwps.
8127 (i386_linux_prepare_to_resume): Pass the lwp's pid to
8128 i386_debug_reg_state.
8129 (i386_linux_new_fork): New function.
8130 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
8131 linux_nat_new_fork hook, and i386_forget_process as
8132 linux_nat_forget_process hook.
8133 * i386-nat.c (i386_init_dregs): Delete.
8134 (i386_inferior_data, struct i386_inferior_data):
8135 Delete.
8136 (struct i386_process_info): New.
8137 (i386_process_list): New global.
8138 (i386_find_process_pid, i386_add_process, i386_process_info_get):
8139 New functions.
8140 (i386_inferior_data_get): Delete.
8141 (i386_process_info_get): New function.
8142 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
8143 (i386_forget_process): New function.
8144 (i386_cleanup_dregs): Rewrite.
8145 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
8146 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
8147 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8148 (i386_remove_hw_breakpoint): Adjust to pass the current process id
8149 to i386_debug_reg_state.
8150 (i386_use_watchpoints): Don't register inferior data.
8151 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
8152 adjust comment.
8153 (i386_forget_process): Declare.
8154 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
8155 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
8156 New static globals.
8157 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
8158 (add_initial_lwp): New, factored out from ...
8159 (add_lwp): ... this. Don't check the number of lwps before
8160 calling linux_nat_new_thread.
8161 (linux_nat_iterate_watchpoint_lwps): Delete.
8162 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
8163 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
8164 forks and vforks.
8165 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
8166 initial lwp.
8167 (linux_nat_kill, linux_nat_mourn_inferior): Call
8168 linux_nat_forget_process.
8169 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8170 (linux_nat_forget_process): New functions.
8171 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
8172 type.
8173 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
8174 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
8175 types.
8176 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8177 (linux_nat_forget_process): New declarations.
8178
8179 * amd64fbsd-nat.c (super_mourn_inferior): New global.
8180 (amd64fbsd_mourn_inferior): New function.
8181 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
8182 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
8183
8184 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8185
8186 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
8187 Adding _().
8188
8189 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8190
8191 * aarch64-linux-nat.c (debug_reg_change_callback)
8192 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
8193 %s and phex().
8194
8195 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8196
8197 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
8198 with LONGEST.
8199
8200 2013-02-13 Pedro Alves <palves@redhat.com>
8201 Hafiz Abid Qadeer <abidh@codesourcery.com>
8202
8203 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
8204
8205 2013-02-12 Tom Tromey <tromey@redhat.com>
8206
8207 PR symtab/11464:
8208 * c-exp.y (lex_one_token): Initialize other fields of yylval on
8209 NAME return.
8210 (classify_inner_name): Remove 'first_name' argument, add
8211 'context'. Remove unused variable.
8212 (yylex): Explicitly maintain the context type. Exit loop earlier
8213 if NAME result is seen.
8214
8215 2013-02-12 Pedro Alves <palves@redhat.com>
8216
8217 * amd64-darwin-tdep.c: Add (C) after Copyright.
8218 * cli/cli-cmds.h: Ditto.
8219 * cli/cli-decode.c: Ditto.
8220 * cli/cli-decode.h: Ditto.
8221 * cli/cli-dump.c: Ditto.
8222 * cli/cli-dump.h: Ditto.
8223 * cli/cli-interp.c: Ditto.
8224 * cli/cli-logging.c: Ditto.
8225 * cli/cli-script.c: Ditto.
8226 * cli/cli-script.h: Ditto.
8227 * cli/cli-setshow.c: Ditto.
8228 * cli/cli-setshow.h: Ditto.
8229 * cli/cli-utils.c: Ditto.
8230 * cli/cli-utils.h: Ditto.
8231 * config/alpha/nm-osf3.h: Ditto.
8232 * config/djgpp/djconfig.sh: Ditto.
8233 * config/i386/nm-fbsd.h: Ditto.
8234 * config/i386/nm-i386gnu.h: Ditto.
8235 * config/nm-linux.h: Ditto.
8236 * config/nm-nto.h: Ditto.
8237 * config/rs6000/nm-rs6000.h: Ditto.
8238 * config/sparc/nm-sol2.h: Ditto.
8239 * darwin-nat-info.c: Ditto.
8240 * dfp.c: Ditto.
8241 * dfp.h: Ditto.
8242 * gdb-demangle.h: Ditto.
8243 * i386-darwin-nat.c: Ditto.
8244 * i386-darwin-tdep.c: Ditto.
8245 * linux-fork.h: Ditto.
8246 * m32c-tdep.c: Ditto.
8247 * microblaze-linux-tdep.c: Ditto.
8248 * microblaze-rom.c: Ditto.
8249 * microblaze-tdep.c: Ditto.
8250 * microblaze-tdep.h: Ditto.
8251 * mips-linux-tdep.h: Ditto.
8252 * ppc-ravenscar-thread.c: Ditto.
8253 * ppc-ravenscar-thread.h: Ditto.
8254 * prologue-value.c: Ditto.
8255 * prologue-value.h: Ditto.
8256 * ravenscar-thread.c: Ditto.
8257 * ravenscar-thread.h: Ditto.
8258 * sparc-ravenscar-thread.c: Ditto.
8259 * sparc-ravenscar-thread.h: Ditto.
8260 * tilegx-linux-tdep.c: Ditto.
8261 * unwind_stop_reasons.def: Ditto.
8262 * windows-nat.h: Ditto.
8263 * xtensa-linux-tdep.c: Ditto.
8264 * xtensa-xtregs.c: Ditto.
8265 * regformats/regdat.sh: Ditto.
8266 * regformats/regdef.h: Ditto.
8267
8268 2013-02-12 Pedro Alves <palves@redhat.com>
8269
8270 * break-catch-sig.c: Update copyright years.
8271
8272 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
8273
8274 Add support for a destructor for ui_out data and use it to
8275 provide a ui_out destructor.
8276 * ui-out.h: Declare the new ui_out destructor.
8277 (ui_out_impl): Add a field for data destructor in ui_out_impl.
8278 * ui-out.c (default_data_destroy): Add a default data destructor
8279 which does nothing.
8280 (default_ui_out_impl): Set the new data_destroy field to
8281 default_data_destroy
8282 (uo_data_destroy): Local function which invokes the data
8283 destructor if present.
8284 (clear_table): Local function which clears the table data of a
8285 ui_out object.
8286 (ui_out_destroy): Public function which frees a ui_out object.
8287 (ui_out_table_end): Use the new clear_table function.
8288 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
8289 NULL.
8290 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
8291 to NULL.
8292
8293 2013-02-11 Doug Evans <dje@google.com>
8294
8295 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
8296 (printf_decfloat): New function. Broken out from ui_printf.
8297 Remove unnecessary code to shift the entire format string down.
8298 (printf_pointer): New function.
8299 (ui_printf): Code to print C strings, wide C strings, decfloats,
8300 and pointers moved to separate functions.
8301
8302 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
8303
8304 * valops.c (value_assign): Handling bitfield offset in
8305 `lval_internalvar_component' case.
8306
8307 2013-02-08 Doug Evans <dje@google.com>
8308
8309 * common/format.c (parse_format_string): Fix whitespace.
8310
8311 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8312
8313 * stack.c (return_command): Work around uninitialized variable
8314 warning.
8315
8316 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
8317
8318 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
8319 number of the registers from 36 to 34.
8320
8321 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
8322
8323 * NEWS: Mention new AArch64 native and target support.
8324
8325 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
8326
8327 * MAINTAINERS (Write After Approval): Add myself.
8328
8329 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
8330 Marcus Shawcroft <marcus.shawcroft@arm.com>
8331 Nigel Stephens <nigel.stephens@arm.com>
8332 Yufeng Zhang <yufeng.zhang@arm.com>
8333
8334 * aarch64-linux-nat.c: New file.
8335 * config/aarch64/linux.mh: New file.
8336 * configure.host: Add AArch64.
8337 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
8338
8339 2013-02-07 Doug Evans <dje@google.com>
8340
8341 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
8342 disassemble command.
8343
8344 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
8345
8346 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
8347 set_gdbarch_fetch_tls_load_module_address.
8348
8349 2013-02-06 David S. Miller <davem@davemloft.net>
8350
8351 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
8352 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8353 * value.c (struct_return_convention): New function.
8354 (using_struct_return): Implement in terms of struct_return_convention.
8355 * value.h (struct_return_convention): Declare.
8356 * stack.c (return_command): Allow successful overriding of the return
8357 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8358
8359 2013-02-06 Tom Tromey <tromey@redhat.com>
8360
8361 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
8362 outside of TRY_CATCH.
8363
8364 2013-02-06 Yao Qi <yao@codesourcery.com>
8365
8366 * mi/mi-interp.c: Include "tracepoint.h".
8367 (mi_tsv_modified): Declare.
8368 (mi_tsv_created, mi_tsv_deleted): Update declaration.
8369 (mi_interpreter_init): Call observer_attach_tsv_modified.
8370 (mi_tsv_modified): New.
8371 (mi_tsv_created, mi_tsv_deleted): Update.
8372 * tracepoint.c (trace_variable_command): Call
8373 observer_notify_tsv_modified if the initial value of tsv is
8374 changed.
8375 (delete_trace_state_variable): Call
8376 observer_notify_tsv_deleted earlier.
8377 (trace_variable_command): Caller update.
8378 (create_tsv_from_upload): Likewise.
8379 * observer.sh: Declare "struct trace_state_variable".
8380
8381 * NEWS: Mention the new MI notification "=tsv-modified".
8382
8383 2013-02-05 Doug Evans <dje@google.com>
8384
8385 * completer.c (location_completer): Fix typo in comment.
8386
8387 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8388
8389 * breakpoint.c (add_location_to_breakpoint): Insert the location with
8390 ADDRESS sorted.
8391
8392 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8393
8394 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
8395 Refactor if statement to avoid trailing || operator.
8396
8397 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
8398
8399 * NEWS: Add PowerPC FreeBSD as a new native configuration.
8400
8401 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
8402
8403 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
8404 * configure.host: Add powerpc*-*-freebsd* target.
8405 * configure.tgt: Add target info for powerpc*-*-freebsd*.
8406 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
8407 * config/powerpc/fbsd.mh: New file.
8408
8409 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
8410 Denys Vlasenko <dvlasenk@redhat.com>
8411 Pedro Alves <palves@redhat.com>
8412
8413 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
8414 (struct elf_internal_linux_prpsinfo): Forward declare.
8415 * gdbarch.h, gdbarch.c: Regenerate.
8416 * linux-tdep.c: Include `cli/cli-utils.h'.
8417 (linux_fill_prpsinfo): New function.
8418 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
8419 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
8420 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
8421 depending on gdbarch pointer bitness.
8422 * ppc-linux-tdep.c: Include elf-bfd.h.
8423 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
8424 on 32-bit.
8425
8426 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8427 Marcus Shawcroft <marcus.shawcroft@arm.com>
8428 Nigel Stephens <nigel.stephens@arm.com>
8429 Yufeng Zhang <yufeng.zhang@arm.com>
8430
8431 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
8432
8433 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8434 Marcus Shawcroft <marcus.shawcroft@arm.com>
8435 Nigel Stephens <nigel.stephens@arm.com>
8436 Yufeng Zhang <yufeng.zhang@arm.com>
8437
8438 * aarch64-newlib-tdep.c: New file.
8439 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
8440 aarch64*-*-elf.
8441 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
8442 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
8443 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
8444 * osabi.c (gdb_osabi_names): Add "Newlib".
8445
8446 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8447 Marcus Shawcroft <marcus.shawcroft@arm.com>
8448 Nigel Stephens <nigel.stephens@arm.com>
8449 Yufeng Zhang <yufeng.zhang@arm.com>
8450
8451 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
8452 (ALLDEPFILES): Add aarch64-linux-tdep.c.
8453 * aarch64-linux-tdep.c: New file.
8454 * aarch64-linux-tdep.h: New file.
8455 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
8456 * configure.tgt: Add aarch64-none-linux-gnu.
8457
8458 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8459 Marcus Shawcroft <marcus.shawcroft@arm.com>
8460 Nigel Stephens <nigel.stephens@arm.com>
8461 Yufeng Zhang <yufeng.zhang@arm.com>
8462
8463 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
8464 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
8465 (ALLDEPFILES): Add aarch64-tdep.c.
8466 * aarch64-tdep.c: New file.
8467 * aarch64-tdep.h: New file.
8468 * configure.tgt: Add AArch64.
8469 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
8470 (aarch64-expedite): New definition.
8471 * features/aarch64-core.xml: New file.
8472 * features/aarch64-fpu.xml: New file.
8473 * features/aarch64-without-fpu.c: New file (generated).
8474 * features/aarch64-without-fpu.xml: New file.
8475 * features/aarch64.c: New file (generated).
8476 * features/aarch64.xml: New file.
8477 * regformats/aarch64-without-fpu.dat: New file (generated).
8478 * regformats/aarch64.dat: New file (generated).
8479
8480 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8481
8482 * contrib/expect-read1.c: New file.
8483 * contrib/expect-read1.sh: New file.
8484
8485 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8486
8487 * dwarf2read.c (file_file_name): New function with code from
8488 file_full_name.
8489 (file_full_name): Move most of the code to file_file_name.
8490 (macro_start_file): Rename variable full_name to file_name and use
8491 file_file_name for it. Add comp_dir parameter to new_macro_table.
8492 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
8493 macro_source_file->filename access by macro_source_fullname call.
8494 * macroscope.c (_initialize_macroscope): Update the new_macro_table
8495 caller.
8496 * macrotab.c (struct macro_table): New field comp_dir.
8497 (macro_include): New variables link_fullname and source_fullname.
8498 Replace any macro_source_file->filename access by macro_source_fullname
8499 call.
8500 (macro_lookup_inclusion): Remove the partial filenames checking code.
8501 (check_for_redefinition): New variables source_fullname and
8502 found_key_fullname. Replace any macro_source_file->filename access by
8503 macro_source_fullname call.
8504 (macro_undef): New variables source_fullname and key_fullname. Replace
8505 any macro_source_file->filename access by macro_source_fullname call.
8506 (macro_lookup_definition): New variables retval and source_fullname.
8507 Replace any macro_source_file->filename access by macro_source_fullname
8508 call.
8509 (foreach_macro): New variable key_fullname. Replace any
8510 macro_source_file->filename access by macro_source_fullname call.
8511 (foreach_macro_in_scope): New variable datum_fullname. Replace any
8512 macro_source_file->filename access by macro_source_fullname call.
8513 (new_macro_table): Add parameter comp_dir. Initialize T with it.
8514 (macro_source_fullname): New function.
8515 * macrotab.h (struct macro_source_file): Extent the filename field
8516 comment.
8517 (new_macro_table): New parameter comp_dir, add a comment for it.
8518 (macro_source_fullname): new declaration.
8519
8520 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8521
8522 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
8523 this_real_name to outer block. Use it also for
8524 compare_filenames_for_search.
8525 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
8526 with dw2_get_real_path for file_matcher, considering also
8527 BASENAMES_MAY_DIFFER.
8528 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
8529
8530 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8531
8532 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
8533 to the file_matcher parameter. Pass 0 to it.
8534 (dwarf2_create_include_psymtab): Copy also DIRNAME.
8535 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
8536 NULL psymtab_to_fullname result.
8537 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
8538 an expected filename instead.
8539 (expand_symtabs_matching_via_partial): Add basenames parameter to the
8540 file_matcher parameter. Call also psymtab_to_fullname, after newly
8541 considering BASENAMES_MAY_DIFFER.
8542 * source.c (rewrite_source_path): Remove static.
8543 * source.h (rewrite_source_path): New declaration.
8544 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
8545 the expand_symtabs_matching field. Comment it.
8546 * symtab.c (file_matches): New function comment. Add parameter
8547 basenames, implement it.
8548 (search_symbols_file_matches): Add basenames parameter. Update the
8549 file_matches caller.
8550 (search_symbols): Match FILES also against symtab_to_fullname.
8551 Optimize it for BASENAMES_MAY_DIFFER.
8552
8553 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8554
8555 * source.c (print_source_lines_base): Print for TUI also "fullname".
8556 * tui/tui-data.c (init_content_element): Change tui_locator_element
8557 field to full_name.
8558 * tui/tui-data.h (struct tui_locator_element): Likewise.
8559 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
8560 tui_update_locator_filename calls to tui_update_locator_fullname.
8561 Replace symtab->filename refererence by symtab_to_fullname call.
8562 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
8563 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
8564 field to full_name. Replace symtab->filename refererence by
8565 symtab_to_fullname call.
8566 (tui_show_symtab_source): Rename parameter to fullname. Change
8567 tui_locator_element field to full_name.
8568 * tui/tui-stack.c: Include source.h.
8569 (tui_set_locator_filename): Rename the declaration to ...
8570 (tui_set_locator_fullname): ... here. Rename its parameter to
8571 fullname, updates its comment.
8572 (tui_set_locator_info): Rename its parameter to fullname.
8573 (tui_set_locator_filename): Rename the definition to ...
8574 (tui_set_locator_fullname): ... here. Rename its parameter to
8575 fullname, updates its comment. Change tui_locator_element field to
8576 full_name.
8577 (tui_set_locator_info): Rename its parameter to fullname.
8578 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
8579 (tui_update_locator_filename): Rename to ...
8580 (tui_update_locator_fullname): ... here. Rename callee to
8581 tui_set_locator_fullname.
8582 (tui_show_frame_info): Replace symtab->filename refererence by
8583 symtab_to_fullname call.
8584 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
8585 (tui_update_locator_fullname): ... here.
8586 * tui/tui-winsource.c (tui_display_main): Rename the callee to
8587 tui_update_locator_fullname. Replace symtab->filename refererence by
8588 symtab_to_fullname call.
8589 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
8590 Rename the callee to tui_update_locator_fullname.
8591 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
8592
8593 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8594
8595 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
8596 by symtab_to_filename_for_display calls.
8597 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
8598 (clear_command): New variable sal_fullname, initialize it. Replace
8599 compare_filenames_for_search by filename_cmp with sal_fullname.
8600 (say_where, update_static_tracepoint): Replace symtab->filename
8601 refererences by symtab_to_filename_for_display calls.
8602 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
8603 Likewise.
8604 * dwarf2read.c: Include source.h.
8605 (fixup_go_packaging): Replace symtab->filename refererences by
8606 symtab_to_filename_for_display calls.
8607 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
8608 Replace symtab->filename refererences by symtab_to_filename_for_display
8609 calls.
8610 (create_sals_line_offset, convert_linespec_to_sals): New variable
8611 fullname, initialize it, replace symtab->filename reference by the
8612 variable.
8613 * linux-fork.c: Include source.h.
8614 (info_checkpoints_command): Replace symtab->filename refererences by
8615 symtab_to_filename_for_display calls.
8616 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
8617 by symtab_to_filename_for_display calls.
8618 * mdebugread.c: Include source.h.
8619 (psymtab_to_symtab_1): Replace symtab->filename refererences by
8620 symtab_to_filename_for_display calls.
8621 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8622 (mi_cmd_file_list_exec_source_files): Likewise.
8623 * printcmd.c: Include source.h.
8624 (build_address_symbolic): Replace symtab->filename refererences by
8625 symtab_to_filename_for_display calls.
8626 * psymtab.c (partial_map_symtabs_matching_filename)
8627 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
8628 with psymtab_to_fullname.
8629 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
8630 by symtab_to_filename_for_display calls.
8631 (stpy_get_filename): New variable filename, initialize it, use instead
8632 of symtab->filename refererences.
8633 (salpy_str): Make variable filename const char *. Replace
8634 symtab->filename refererences by symtab_to_filename_for_display calls.
8635 * skip.c: Include source.h and filenames.h.
8636 (skip_file_command): Remove const from the symtab variable. Replace
8637 symtab->filename refererences by symtab_to_fullname call.
8638 (function_name_is_marked_for_skip): New variables searched_for_fullname
8639 and fullname. Use them to search also with symtab's fullname.
8640 * source.c (find_source_lines): Replace symtab->filename refererences
8641 by symtab_to_filename_for_display calls.
8642 (print_source_lines_base): New variable filename, use it instead of
8643 symtab->filename. Replace symtab->filename refererences by
8644 symtab_to_filename_for_display calls.
8645 (line_info, forward_search_command): Replace symtab->filename
8646 refererences by symtab_to_filename_for_display calls.
8647 (reverse_search_command): Replace symtab->filename refererences by
8648 symtab_to_filename_for_display calls. New variable filename for it.
8649 * stack.c (frame_info): Likewise.
8650 * symmisc.c: Include source.h.
8651 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
8652 (maintenance_info_symtabs): Replace symtab->filename refererences by
8653 symtab_to_filename_for_display calls.
8654 * symtab.c (iterate_over_some_symtabs): Call
8655 compare_filenames_for_search also with symtab_to_fullname.
8656 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
8657 symtab->filename refererences by symtab_to_filename_for_display calls.
8658 (find_line_symtab): Replace symtab->filename refererences by
8659 symtab_to_filename_for_display calls.
8660 (file_matches): Replace filename_cmp by compare_filenames_for_search.
8661 (print_symbol_info): Make the last parameter const char *. New
8662 variable s_filename. Use it in the function.
8663 (symtab_symbol_info): Make the last_filename variable const char *.
8664 Replace symtab->filename refererences by symtab_to_filename_for_display
8665 calls.
8666 (rbreak_command): New variable fullname. Use it. Replace
8667 symtab->filename refererence by symtab_to_filename_for_display call.
8668 * tracepoint.c (set_traceframe_context, trace_find_line_command)
8669 (print_one_static_tracepoint_marker): Replace symtab->filename
8670 refererences by symtab_to_filename_for_display calls.
8671 * tui/tui-source.c (tui_set_source_content): New variables filename and
8672 s_filename. Replace symtab->filename refererences by this variable.
8673 Replace other symtab->filename refererences by
8674 symtab_to_filename_for_display calls.
8675
8676 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
8677 Jan Kratochvil <jan.kratochvil@redhat.com>
8678
8679 Add a new variable that controls a way in which filenames are
8680 displayed.
8681 * NEWS (set filename-display): New entry.
8682 * source.c (filename_display_basename, filename_display_relative)
8683 (filename_display_absolute, filename_display_kind_names)
8684 (filename_display_string, show_filename_display_string)
8685 (symtab_to_filename_for_display): New.
8686 (_initialize_source): Added initialization of 'filename-display'
8687 variable.
8688 * source.h (symtab_to_filename_for_display): Added declaration.
8689 * stack.c (print_frame): Added new variable and calling of a new
8690 function and condition with this variable. Changed third argument of
8691 calling of a function.
8692
8693 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8694
8695 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
8696 Rename field reference filename to fullname.
8697 * tui/tui-data.h (struct tui_source_info): Rename field filename to
8698 fullname. New comment for it.
8699 * tui/tui-source.c (tui_set_source_content): Rename field reference
8700 filename to fullname. Initialize field by symtab_to_fullname now.
8701 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
8702 reference filename to fullname. Use symtab_to_fullname during
8703 comparison.
8704
8705 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8706
8707 Code cleanup.
8708 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
8709 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
8710 filename to fullname. Rename variable this_name to this_fullname.
8711 Lowercase FILENAME_CMP call.
8712 (dw2_find_symbol_file): New comment for the returned string.
8713 (dwarf2_gdb_index_functions): Rename the function to
8714 dw2_expand_symtabs_with_fullname.
8715 * psymtab.c (read_psymtabs_with_filename): Rename to ...
8716 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
8717 fullname.
8718 (psym_functions): Rename the function to read_psymtabs_with_fullname.
8719 * symfile.h (struct quick_symbol_functions): Rename field
8720 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
8721 parameter filename to fullname. Document returned string meaning for
8722 find_symbol_file.
8723 * symtab.c (find_line_symtab): Rename the called function to
8724 expand_symtabs_with_fullname.
8725
8726 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8727
8728 Code cleanup.
8729 * breakpoint.c (clear_command): Remove variable is_abs, unify the
8730 call of filename_cmp with compare_filenames_for_search.
8731 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
8732 is_abs, unify the call of FILENAME_CMP with
8733 compare_filenames_for_search. New gdb_asserts for real_path and name.
8734 Unify the call of compare_filenames_for_search with FILENAME_CMP.
8735 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8736 * symfile.h (struct quick_symbol_functions): Extend the comment for
8737 map_symtabs_matching_filename.
8738 * symtab.c (compare_filenames_for_search): Remove the function comment
8739 relative path requirement. Handle absolute filenames, with a comment.
8740 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
8741 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
8742 real_path and name. Unify the call of compare_filenames_for_search
8743 with FILENAME_CMP.
8744 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
8745
8746 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8747
8748 Code cleanup.
8749 * breakpoint.c (print_breakpoint_location): Replace bp_location field
8750 source_file references by symtab field references. Remove variables
8751 sal and fullname.
8752 (momentary_breakpoint_from_master, add_location_to_breakpoint):
8753 (clear_command, say_where): Replace bp_location field source_file
8754 references by symtab field references.
8755 (bp_location_dtor): Remove the source_file reference.
8756 (update_static_tracepoint): Replace bp_location field source_file
8757 references by symtab field references.
8758 (breakpoint_free_objfile): New function.
8759 * breakpoint.h (struct bp_location): Extend the comment for line_number.
8760 Replace the field source_file by field symtab, extend its comment.
8761 (breakpoint_free_objfile): New declaration.
8762 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
8763 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
8764 field source_file references by symtab field references.
8765
8766 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8767
8768 Replace xfullpath calls by gdb_realpath calls.
8769 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
8770 function comment.
8771 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
8772 Remove it from the iterate_over_some_symtabs call.
8773 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
8774 Remove it from the dw2_map_expand_apply calls, remove a block handling
8775 it.
8776 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
8777 Remove it from the iterate_over_some_symtabs call.
8778 (partial_map_symtabs_matching_filename): Remove parameter full_path.
8779 Remove it from the partial_map_expand_apply calls, remove a block
8780 handling it. Drop gdb_realpath call and cleanups from the real_path
8781 handling.
8782 * source.c (openp): Drop the comment part about xfullpath. Replace
8783 xfullpath calls by gdb_realpath calls.
8784 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
8785 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
8786 from method map_symtabs_matching_filename and its comment.
8787 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
8788 gdb_realpath call.
8789 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
8790 remove it also from the function comment, remove a block handling it.
8791 Drop gdb_realpath call and cleanups from the real_path handling.
8792 (iterate_over_symtabs): Drop variable full_path and its use.
8793 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
8794 * utils.c (xfullpath): Remove.
8795 * utils.h (xfullpath): Remove.
8796
8797 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
8798
8799 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
8800 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
8801 (ALLDEPFILES): Add ppc64-tdep.c.
8802 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
8803 ppc64-tdep.o to gdb_target_obs.
8804 * ppc64-tdep.h: New file.
8805 * ppc64-tdep.c: New file.
8806 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
8807 ppc-linux-tdep.c to here.
8808 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
8809 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
8810 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
8811 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
8812 from ppc-linux-tdep.c to here.
8813 (ppc64_convert_from_func_ptr_addr): Rename from
8814 ppc64_linux_convert_from_func_ptr_addr to
8815 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
8816 here.
8817 * rs6000-tdep.c:
8818 (read_insn): Move from ppc-linux-tdep.c to here.
8819 (insns_match_pattern, insn_d_field, insn_ds_field): Move
8820 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
8821 * ppc-linux-tdep.c: Include ppc64-tdep.h.
8822 Removed above functions.
8823 (ppc_linux_init_abi): Adjust.
8824
8825 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
8826
8827 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
8828
8829 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
8830
8831 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
8832
8833 2013-02-01 Pedro Alves <palves@redhat.com>
8834
8835 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
8836 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
8837
8838 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8839
8840 * elfread.c (elf_symfile_read): Limit separate debug info additions to
8841 files with no separate debug info.
8842 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
8843 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
8844 only for files with no separate debug info.
8845
8846 2013-01-31 Tom Tromey <tromey@redhat.com>
8847
8848 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
8849 change type.
8850 (struct jit_program_space_data): Rename from jit_inferior_data.
8851 Update comments.
8852 (get_jit_program_space_data): Rename from get_jit_inferior_data.
8853 Change return type. Attach data to program space.
8854 (jit_program_space_data_cleanup): Rename from
8855 jit_inferior_data_cleanup; change argument type.
8856 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
8857 change type.
8858 (jit_register_code): Update.
8859 (jit_update_inferior_cache): Remove.
8860 (jit_breakpoint_deleted): Get jit data from the location's program
8861 space.
8862 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
8863 'ps_data', change type.
8864 (jit_inferior_init, jit_breakpoint_re_set_internal)
8865 (jit_event_handler): Update.
8866 (free_objfile_data): Get data from objfile's program space.
8867 (_initialize_jit): Update.
8868
8869 2013-01-31 Tom Tromey <tromey@redhat.com>
8870
8871 PR gdb/13987:
8872 * jit.c (struct jit_inferior_data) <cached_code_address,
8873 jit_breakpoint>: New fields.
8874 (jit_breakpoint_re_set_internal): Fix logging. Only create
8875 breakpoint if cached address has changed.
8876 (jit_update_inferior_cache, jit_breakpoint_deleted): New
8877 functions.
8878 (_initialize_jit): Register breakpoint deleted observer.
8879
8880 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8881
8882 * infrun.c (handle_syscall_event): Remove unused gdbarch.
8883 (save_infcall_suspend_state): Ifdef out unused inf.
8884 (restore_infcall_suspend_state): Ifdef out unused inf.
8885 * jit.c (jit_register_code): Remove unused i, b, inf_data.
8886 (jit_frame_sniffer): Remove unused inf_data.
8887
8888 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8889
8890 * c-exp.y (classify_inner_name): Remove unused type.
8891 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
8892 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
8893 need_escape.
8894 (c_get_string): Remove unused kind.
8895 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
8896
8897 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8898
8899 * charset.c (intermediate_encoding): Remove unused i.
8900 * completer.c (signal_completer): Remove unused i.
8901 * continuations.c (discard_my_continuations_1): Remove unused
8902 continuation_ptr.
8903 * corelow.c (core_close): Remove unuseD name.
8904 (get_core_siginfo): Remove unused pid.
8905 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
8906 i, cps.
8907 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
8908 (loclist_describe_location): Remove unused first.
8909 * event-top.c (command_line_handler): Remove unused got_eof.
8910 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
8911 (resize_section_table): Remove unused old_value.
8912 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
8913 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
8914 * i386-tdep.c (i386_process_record): Remove unused rex.
8915 * infcmd.c (get_return_value): Remove unused uiout.
8916 * jv-lang.c (type_from_class): Remove unused is_array.
8917 * jv-valprint.c (java_val_print): Remove unused i.
8918 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
8919 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
8920 * m2-typeprint.c (m2_print_type): Remove unused code.
8921 * macroexp.c (get_character_constant): Remove unused body_start.
8922 (macro_stringify): Remove unused result.
8923 * objc-lang.c (find_methods): Remove unused gdbarch.
8924 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
8925 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
8926 * stack.c (print_frame_args): Remove unused summary.
8927 * thread.c (thread_apply_command): Remove unused p.
8928 * valarith.c (value_x_unop): Remove unused mangle_ptr.
8929 * valops.c (search_struct_method): Remove unused skip.
8930 * valprint.c (generic_val_print): Remove unused byte_order.
8931 * varobj.c (varobj_update): Remove unused changed.
8932 * cli/cli-cmds.c (complete_command): Remove unused next_item.
8933 (alias_command): Remove unused c.
8934 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
8935 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
8936 format.
8937 (mi_cmd_data_write_memory): Remove unused word_format.
8938 (mi_cmd_data_write_memory_bytes): Remove unused r.
8939 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
8940 p_start, p_end.
8941 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
8942 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
8943 line_width.
8944
8945 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8946
8947 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
8948 * symtab.c (iterate_over_symtabs): Remove unused s.
8949 (find_pc_sect_symtab): Remove unused pspAce.
8950 (find_pc_sect_line): Remove unused alt_symtab.
8951 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
8952 (completion_list_add_name): Remove unused newsize.
8953
8954 2013-01-31 Tom Tromey <tromey@redhat.com>
8955
8956 PR c++/14998:
8957 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
8958 TYPE_CODE_FUNC.
8959
8960 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8961
8962 * target.c (target_read_string): Remove unused origlen.
8963
8964 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8965
8966 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
8967 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
8968 * ax-general.c (ax_print): Remove unused is_float.
8969 * blockframe.c (block_innermost_frame): Remove unused start, end.
8970 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
8971
8972 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8973
8974 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
8975 (svr4_read_so_list): Remove unused lmo.
8976 * solib-target.c (solib_target_relocate_section_addresses): Remove
8977 unused flags.
8978
8979 2013-01-30 Tom Tromey <tromey@redhat.com>
8980
8981 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
8982
8983 2013-01-30 Tom Tromey <tromey@redhat.com>
8984
8985 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
8986 * utils.c (gnu_debuglink_crc32): Remove.
8987 * utils.h (gnu_debuglink_crc32): Don't declare.
8988
8989 2013-01-30 Tom Tromey <tromey@redhat.com>
8990
8991 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
8992 (read_structure_type, read_enumeration_type): Remove cast.
8993
8994 2013-01-30 Tom Tromey <tromey@redhat.com>
8995
8996 * dwarf2read.c (read_namespace_type): Remove cast.
8997 (read_typedef): Likewise.
8998
8999 2013-01-29 Tom Tromey <tromey@redhat.com>
9000
9001 * dwarf2read.c (free_dwo_file): Remove assert.
9002
9003 2013-01-29 Tom Tromey <tromey@redhat.com>
9004
9005 * value.c (deprecated_set_value_modifiable): Remove.
9006 * value.h (deprecated_set_value_modifiable): Remove.
9007
9008 2013-01-28 Doug Evans <dje@google.com>
9009
9010 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
9011 to addresses from dwo files.
9012
9013 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
9014
9015 * valops.c (find_overload_match): Remove unused argument 'lax'.
9016 * value.h: Remove unused argument 'lax' from the declaration of
9017 find_overload_match.
9018 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
9019 to find_overload_match.
9020 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
9021 argument to find_overload_match.
9022
9023 2013-01-25 Tom Tromey <tromey@redhat.com>
9024
9025 * dwarf2read.c (processing_has_namespace_info): Remove.
9026 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
9027 (process_die, read_func_scope, dwarf2_start_symtab)
9028 (new_symbol_full): Update.
9029
9030 2013-01-25 Tom Tromey <tromey@redhat.com>
9031
9032 * cp-namespace.c (cp_set_block_scope): Remove.
9033 * cp-support.h (cp_set_block_scope): Remove.
9034 * dbxread.c: Include block.h.
9035 (cp_set_block_scope): New function.
9036 (process_one_symbol): Update.
9037 * dwarf2read.c (read_func_scope): Use block_set_scope.
9038
9039 2013-01-25 Pedro Alves <palves@redhat.com>
9040
9041 * remote.c (add_current_inferior_and_thread): Tweak comment.
9042
9043 2013-01-25 Tom Tromey <tromey@redhat.com>
9044
9045 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
9046 (cp_add_using_directive): Add 'copy_names' argument.
9047 * cp-support.h (cp_add_using_directive): Update.
9048 (struct using_direct) <import_src, import_dest, alias,
9049 declaration>: Now const.
9050 * dwarf2read.c (read_import_statement): Use obconcat.
9051 Don't copy names passed to cp_add_using_directive.
9052
9053 2013-01-25 Tom Tromey <tromey@redhat.com>
9054
9055 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
9056
9057 2013-01-25 Pedro Alves <palves@redhat.com>
9058
9059 * remote.c (stop_reply_extract_thread): New.
9060 (add_current_inferior_and_thread): New parameter 'wait_status'.
9061 Handle it.
9062 (remote_start_remote): Pass wait status to
9063 add_current_inferior_and_thread.
9064 (extended_remote_run): Update comment.
9065 (extended_remote_create_inferior_1): Pass wait status to
9066 add_current_inferior_and_thread.
9067
9068 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
9069 Ulrich Weigand <uweigand@de.ibm.com>
9070
9071 * valarith.c (value_vector_widen): New function for replicating a
9072 scalar into a vector.
9073 (value_binop): Use value_vector_widen to widen scalar to vector
9074 rather than casting, this better matches gcc C behaviour.
9075 * valops.c (value_casst): Update logic for casting between vector
9076 types, and for casting from scalar to vector, try to match gcc C
9077 behaviour.
9078 * value.h (value_vector_widen): Declare.
9079 * opencl-lang.c (opencl_value_cast): New opencl specific casting
9080 function, handle special case for casting scalar to vector.
9081 (opencl_relop): Use opencl_value_cast.
9082 (evaluate_subexp_opencl): Use opencl_value_cast instead of
9083 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
9084 in order to use opencl_value_cast.
9085
9086 2013-01-25 Yao Qi <yao@codesourcery.com>
9087
9088 * event-loop.c: Include "queue.h".
9089 (gdb_event_p): New typedef.
9090 (DECLARE_QUEUE_P): Use.
9091 (DEFINE_QUEUE_P): Use.
9092 (async_queue_event): Remove.
9093 (gdb_event_xfree): New.
9094 (initialize_event_loop): New.
9095 (process_event): Use QUEUE macros.
9096 (event_queue): Remove.
9097 (gdb_wait_for_event): Caller update.
9098 (check_async_event_handlers): Likewise.
9099 (poll_timers): Likewise.
9100 * event-loop.h (initialize_event_loop): Declare.
9101 * event-loop.c (gdb_event_xfree): New.
9102 * top.c (gdb_init): Call initialize_event_loop.
9103
9104 2013-01-25 Yao Qi <yao@codesourcery.com>
9105
9106 * event-loop.c (async_queue_event): Remove one parameter
9107 'position'. Remove code handling 'position' == TAIL.
9108 (gdb_wait_for_event): Caller update.
9109 (check_async_event_handlers): Caller update.
9110 (poll_timers): Caller update.
9111 * event-loop.h (enum queue_position): Remove.
9112
9113 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
9114
9115 * MAINTAINERS: Update my email.
9116
9117 2013-01-25 Yao Qi <yao@codesourcery.com>
9118
9119 * main.c (print_gdb_help): Remove "--epoch" from the help
9120 message.
9121
9122 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
9123
9124 * symtab.c (skip_prologue_using_sal): Consider a file
9125 change the same as an increased line number
9126
9127 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
9128
9129 * MAINTAINERS (Write After Approval): Add myself to the list.
9130
9131 2013-01-24 Tom Tromey <tromey@redhat.com>
9132
9133 * ada-lang.h (ada_decode_symbol): Make return type const.
9134 * ada-lang.c (ada_decode_symbol): Likewise.
9135
9136 2013-01-23 Doug Evans <dje@google.com>
9137
9138 * linespec.c (find_linespec_symbols): Make static.
9139
9140 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9141
9142 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
9143 type on float conversion for complex type.
9144
9145 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
9146
9147 Add a new class gdb.Architecture which exposes GDB's
9148 internal representation of architecture via GDB Python API.
9149 * Makefile.in: Add entries corresponding to the new file
9150 python/py-arch.c.
9151 * NEWS (Python Scripting): Add entries for the new class
9152 gdb.Architecture and the new method gdb.Frame.architecture.
9153 * python/py-arch.c: Implement gdb.Architecture class.
9154 * python/py-frame.c (frapy_arch): Implement the method
9155 gdb.Frame.architecture().
9156 (frame_object_methods): Add 'architecture' to the method table.
9157 * python/python-internal.h: Add declarations of new utility
9158 functions.
9159 * python/python.c (_initialize_python): Initialize
9160 gdb.Architecture class.
9161
9162 2013-01-23 Doug Evans <dje@google.com>
9163
9164 Work around binutils/15021.
9165 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
9166 type_unit_group out of union s. All uses updated.
9167 (read_index_from_section): Watch for index version 8.
9168 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
9169 an imported symtab.
9170 (write_psymtabs_to_index): Increment version number to 8.
9171
9172 2013-01-22 Pedro Alves <palves@redhat.com>
9173
9174 * annotate.c (breakpoint_changed): Skip if breakpoint is not
9175 user-visible.
9176
9177 2013-01-22 Pedro Alves <palves@redhat.com>
9178
9179 * annotate.c (annotate_breakpoints_changed): Rename to ...
9180 (annotate_breakpoints_invalid): ... this. Make static.
9181 (breakpoint_changed): Adjust.
9182 (_initialize_annotate): Always install the observers. Install a
9183 "breakpoint_created" observer.
9184 * annotate.h (annotate_breakpoints_changed): Delete declaration.
9185 * breakpoint.c (set_breakpoint_condition)
9186 (breakpoint_set_commands, do_map_commands_command)
9187 (init_raw_breakpoint, clear_command, set_ignore_count)
9188 (enable_breakpoint_disp): No longer call
9189 annotate_breakpoints_changed.
9190
9191 2013-01-22 Pedro Alves <palves@redhat.com>
9192
9193 * annotate.c: Include "inferior.h".
9194 (frames_invalid_emitted)
9195 (breakpoints_invalid_emitted): New globals.
9196 (async_background_execution_p): New function.
9197 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
9198 emitting the annotation if it has already been emitted.
9199 (annotate_display_prompt): New function.
9200 * annotate.h (annotate_display_prompt): New declaration.
9201 * event-top.c: Include annotate.h.
9202 (display_gdb_prompt): Call annotate_display_prompt.
9203
9204 2013-01-22 Pedro Alves <palves@redhat.com>
9205
9206 * annotate.c (ignore_count_changed): Delete.
9207 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
9208 (annotate_ignore_count_change): Delete.
9209 (annotate_stopped): Don't emit a delayed breakpoints-changed
9210 annotation.
9211 * annotate.h (annotate_ignore_count_change): Delete.
9212 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
9213 annotate_ignore_count_change.
9214
9215 2013-01-22 Tom Tromey <tromey@redhat.com>
9216
9217 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
9218 require_rvalue for a register location.
9219
9220 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
9221
9222 * breakpoint.c (print_one_breakpoint_location): Add MI
9223 field 'thread-groups' when printing a breakpoint.
9224 (output_thread_groups): New function.
9225
9226 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
9227
9228 * python/lib/gdb/commands/explore.py
9229 (CompoundExplorer.explore_expr): Correct the name of a method
9230 being invoked.
9231 (ExploreTypeCommand.invoke): Add a missing 'return'.
9232
9233 2013-01-21 Tom Tromey <tromey@redhat.com>
9234
9235 * gdb_obstack.h (obconcat): Move declaration here, from...
9236 * symfile.h (obconcat): ... here.
9237 * gdb_obstack.c: New file.
9238 (obconcat): Move from...
9239 * symfile.c (obconcat): ... here.
9240 * Makefile.in (SFILES): Add gdb_obstack.c.
9241 (COMMON_OBS): Add gdb_obstack.o.
9242
9243 2013-01-21 Tom Tromey <tromey@redhat.com>
9244
9245 * symfile.h (obsavestring): Don't declare.
9246 * symfile.c (obsavestring): Remove.
9247 * ada-exp.y: Use obstack_copy0, not obsavestring.
9248 * ada-lang.c: Use obstack_copy0, not obsavestring.
9249 * coffread.c: Use obstack_copy0, not obsavestring.
9250 * cp-namespace.c: Use obstack_copy0, not obsavestring.
9251 * dbxread.c: Use obstack_copy0, not obsavestring.
9252 * dwarf2read.c: Use obstack_copy0, not obsavestring.
9253 * jit.c: Use obstack_copy0, not obsavestring.
9254 * mdebugread.c: Use obstack_copy0, not obsavestring.
9255 * psymtab.c: Use obstack_copy0, not obsavestring.
9256 * stabsread.c: Use obstack_copy0, not obsavestring.
9257 * xcoffread.c: Use obstack_copy0, not obsavestring.
9258
9259 2013-01-21 Tom Tromey <tromey@redhat.com>
9260
9261 * dwarf2read.c (fixup_go_packaging): Save package name
9262 on objfile obstack.
9263 * gdbtypes.c (init_type): Don't copy name.
9264
9265 2013-01-21 Tom Tromey <tromey@redhat.com>
9266
9267 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
9268 const.
9269 (struct attribute) <u.str>: Now const.
9270 (struct fnfieldlist) <name>: Now const.
9271 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
9272 (partial_die_parent_scope): Make return type const.
9273 (partial_die_full_name, add_partial_symbol): Update.
9274 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
9275 'name' const.
9276 (find_file_and_directory): Make 'name' and 'comp_dir' const.
9277 (read_file_scope, read_func_scope, dwarf2_add_field)
9278 (dwarf2_add_member_fn, read_structure_type)
9279 (process_enumeration_scope, read_array_type, read_module_type)
9280 (read_base_type, read_subrange_type): Update.
9281 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
9282 (new_symbol_full, guess_full_die_structure_name): Update.
9283 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
9284 (dwarf2_name): Return const type.
9285 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
9286 const.
9287
9288 2013-01-21 Tom Tromey <tromey@redhat.com>
9289
9290 * gdbtypes.c (init_type): Make 'name' const.
9291 * gdbtypes.h (init_type): Update.
9292
9293 2013-01-21 Tom Tromey <tromey@redhat.com>
9294
9295 * buildsym.c (patch_subfile_names): Use set_last_source_file.
9296 (start_symtab): Make 'name' and 'dirname' const. Use
9297 set_last_source_file.
9298 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
9299 (last_source_file): Define. Now static.
9300 (set_last_source_file, get_last_source_file): New functions.
9301 * buildsym.h (last_source_file): Don't declare.
9302 (start_symtab): Update.
9303 (set_last_source_file, get_last_source_file): Declare.
9304 * coffread.c (complete_symtab): Use set_last_source_file.
9305 (coff_end_symtab): Likewise.
9306 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
9307 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
9308 set_last_source_file.
9309 (process_one_symbol): Use get_last_source_file.
9310 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
9311 (psymtab_to_symtab_1): Use get_last_source_file.
9312 * xcoffread.c (process_linenos): Use get_last_source_file.
9313 (complete_symtab): Use set_last_source_file.
9314 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
9315 (scan_xcoff_symtab): Use set_last_source_file.
9316
9317 2013-01-21 Tom Tromey <tromey@redhat.com>
9318
9319 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
9320 (symbol_set_names): Remove casts. Handle field const-ness.
9321
9322 2013-01-21 Tom Tromey <tromey@redhat.com>
9323
9324 * dwarf2read.c (new_symbol_full): Remove cast.
9325 * symtab.c (symbol_set_demangled_name): Make 'name' const.
9326 * symtab.h (symbol_set_demangled_name): Update.
9327
9328 2013-01-21 Tom Tromey <tromey@redhat.com>
9329
9330 * main.c (captured_main): Call bfd_init.
9331
9332 2013-01-21 Tom Tromey <tromey@redhat.com>
9333
9334 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
9335 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
9336 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
9337 * NEWS: Update.
9338
9339 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9340
9341 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
9342
9343 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9344
9345 Fix gdb.fortran/common-block.exp crash in PIE mode.
9346 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
9347 LOC_COMMON_BLOCK.
9348 * f-valprint.c (info_common_command_for_block): Expect
9349 LOC_COMMON_BLOCK in gdb_assert.
9350 * symtab.h (struct general_symbol_info): Update comment for the
9351 common_block member.
9352 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
9353 (enum address_class): New member LOC_COMMON_BLOCK.
9354
9355 2013-01-18 David Blaikie <dblaikie@gmail.com>
9356
9357 * MAINTAINERS (Write After Approval): Add "David Blaikie".
9358
9359 2013-01-18 Tom Tromey <tromey@redhat.com>
9360
9361 PR c++/14999:
9362 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
9363 Call require_rvalue.
9364
9365 2013-01-18 Yao Qi <yao@codesourcery.com>
9366
9367 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
9368 (dbx_read_symtab): New declaration.
9369 (dbx_psymtab_to_symtab): Delete.
9370 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
9371 Rename parameter PST to SELF. Exchanged two parameters.
9372 (start_psymtab): Caller update.
9373 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
9374 (dwarf2_read_symtab): New declaration.
9375 (dwarf2_psymtab_to_symtab): Delete.
9376 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
9377 Rename parameter PST to SELF. Exchanged two parameters.
9378 (create_partial_symtab): Caller update.
9379 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
9380 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
9381 Rename parameter PST to SELF. Exchanged two parameters.
9382 (parse_partial_symbols, new_psymtab): Caller update.
9383 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
9384 two parameters.
9385 * psymtab.c (psymtab_to_symtab): Caller update.
9386 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
9387 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
9388 Rename parameter PST to SELF. Exchanged two parameters.
9389 (xcoff_start_psymtab): Caller update.
9390
9391 2013-01-18 Yao Qi <yao@codesourcery.com>
9392
9393 * infrun.c (proceed): Rename local variable 'oneproc' to
9394 'force_step'.
9395
9396 2013-01-17 Doug Evans <dje@google.com>
9397
9398 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
9399 (dw2_build_type_unit_groups): Delete. All uses updated.
9400
9401 * symtab.h (struct symbol_search): Add comment.
9402
9403 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9404
9405 * symtab.c (compare_filenames_for_search): New comment for
9406 HAS_DRIVE_SPEC.
9407
9408 2013-01-17 Tom Tromey <tromey@redhat.com>
9409
9410 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
9411
9412 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9413
9414 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
9415 initialize it by existing make_cleanup. Call new do_cleanups.
9416
9417 2013-01-17 Tom Tromey <tromey@redhat.com>
9418
9419 * cp-abi.c (cp_abi_completer): New function.
9420 (_initialize_cp_abi): Set completer for "set cp-abi".
9421
9422 2013-01-17 Tom Tromey <tromey@redhat.com>
9423
9424 * mem-break.c: Remove obsolete comment.
9425 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
9426
9427 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
9428
9429 * jit.c (jit_reader_load_command): Interpret the jit reader name
9430 as an absolute path if it begins with a forward slash.
9431
9432 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
9433
9434 PR gdb/14550
9435
9436 * jit.c (finalize_symtab): Ensure that only the global block has a
9437 NULL superblock.
9438
9439 2013-01-17 Pedro Alves <palves@redhat.com>
9440
9441 * acinclude.m4: Include ../config/plugins.m4,
9442 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
9443 * Makefile.in (aclocal_m4_deps): Update.
9444 * aclocal.m4: Renegerate.
9445
9446 2013-01-16 Doug Evans <dje@google.com>
9447
9448 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
9449
9450 2013-01-16 Pedro Alves <palves@redhat.com>
9451 Tom Tromey <tromey@redhat.com>
9452
9453 PR cli/7221:
9454 * NEWS: Add "catch signal".
9455 * breakpoint.c (base_breakpoint_ops): No longer static.
9456 (bpstat_explains_signal): New function.
9457 (init_catchpoint): No longer static.
9458 (base_breakpoint_explains_signal): New function.
9459 (base_breakpoint_ops): Initialize new field.
9460 * breakpoint.h (enum bpstat_signal_value): New.
9461 (struct breakpoint_ops) <explains_signal>: New field.
9462 (bpstat_explains_signal): Remove macro, declare as function.
9463 (base_breakpoint_ops, init_catchpoint): Declare.
9464 * break-catch-sig.c: New file.
9465 * inferior.h (signal_catch_update): Declare.
9466 * infrun.c (signal_catch): New global.
9467 (handle_syscall_event): Update for change to
9468 bpstat_explains_signal.
9469 (handle_inferior_event): Likewise. Always handle random signals
9470 via bpstats.
9471 (signal_cache_update): Check signal_catch.
9472 (signal_catch_update): New function.
9473 (_initialize_infrun): Initialize signal_catch.
9474 * Makefile.in (SFILES): Add break-catch-sig.c.
9475 (COMMON_OBS): Add break-catch-sig.o.
9476
9477 2013-01-16 Tom Tromey <tromey@redhat.com>
9478
9479 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
9480 (print_one_catch_solib, print_one_catch_syscall)
9481 (print_one_catch_exec, print_one_exception_catchpoint): Emit
9482 "catch-type".
9483
9484 2013-01-16 Yao Qi <yao@codesourcery.com>
9485
9486 * printcmd.c (current_display_number): Make it static.
9487
9488 2013-01-16 Yao Qi <yao@codesourcery.com>
9489
9490 * infcmd.c (step_once): Don't check '!single_inst' as it was
9491 checked before.
9492
9493 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9494
9495 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
9496
9497 2013-01-14 Tom Tromey <tromey@redhat.com>
9498
9499 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
9500 set command.
9501 * command.h (add_setshow_string_noescape_cmd): Update.
9502 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
9503 (complete_set_gnutarget): New function.
9504 (_initialize_core): Set the "set gnutarget" completer.
9505
9506 2013-01-14 Tom Tromey <tromey@redhat.com>
9507
9508 PR symtab/14442:
9509 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
9510 (c_type_print_modifier): Likewise.
9511 * dwarf2read.c (read_tag_restrict_type): New function.
9512 (read_type_die_1): Handle DW_TAG_restrict_type.
9513 * gdbtypes.c (make_restrict_type): New function.
9514 (recursive_dump_type): Handle TYPE_RESTRICT.
9515 * gdbtypes.h (enum type_flag_values): Renumber.
9516 (enum type_instance_flag_value): Add
9517 TYPE_INSTANCE_FLAG_RESTRICT.
9518 (TYPE_RESTRICT): New macro.
9519 (make_restrict_type): Declare.
9520
9521 2013-01-14 Tom Tromey <tromey@redhat.com>
9522
9523 PR symtab/14931:
9524 * psymtab.c (struct psymtab_state): New.
9525 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
9526 functions.
9527 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
9528 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
9529
9530 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
9531 Pedro Alves <palves@redhat.com>
9532
9533 PR remote/14786
9534
9535 * remote.c (remote_threads_info): Make a copy of the reply from
9536 qfThreadInfo and use that instead of rs->buf.
9537
9538 2013-01-14 Yao Qi <yao@codesourcery.com>
9539
9540 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
9541 (dbx_psymtab_to_symtab): Likewise.
9542 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
9543 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
9544 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
9545
9546 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9547
9548 * parse.c (parse_exp_in_context): New variable inner_chain. Call
9549 make_cleanup_restore_current_language. Call set_language. Move
9550 OLD_CHAIN and INNER_CHAIN cleanups.
9551 * utils.c (do_restore_current_language)
9552 (make_cleanup_restore_current_language): New functions.
9553 * utils.h (make_cleanup_restore_current_language): New declaration.
9554
9555 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9556
9557 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
9558 non-existing files.
9559
9560 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
9561 non-existing files if FILENAME is already absolute.
9562
9563 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9564
9565 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
9566 fputs_filtered. Append trailing newline.
9567
9568 2013-01-11 Yao Qi <yao@codesourcery.com>
9569 Stan Shebs <stan@codesourcery.com>
9570
9571 * psymtab.c (init_psymbol_list): Clarify the comment.
9572
9573 2013-01-11 Yao Qi <yao@codesourcery.com>
9574
9575 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
9576 (update_dprintf_command_list): Assert that 'printf_line' is
9577 non-null. Remove condition check.
9578
9579 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9580
9581 Code cleanup.
9582 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
9583 type const char *.
9584 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
9585 const char *.
9586 * tui/tui-source.h (tui_source_is_displayed): Likewise.
9587
9588 2013-01-09 Anthony Green <green@moxielogic.com>
9589
9590 * cp-abi.c (cplus_print_vtable): Don't return value from void
9591 function.
9592 * ada-lang.c (re_set_catch_assert): Ditto.
9593
9594 2013-01-09 Doug Evans <dje@google.com>
9595
9596 * symfile.h (quick_symbol_functions): Delete member
9597 pre_expand_symtabs_matching. All uses removed.
9598 * dwarf2read.c (dw2_lookup_symbol): Implement.
9599 (dw2_do_expand_symtabs_matching): Delete.
9600 (dw2_pre_expand_symtabs_matching): Delete.
9601 (struct dw2_symtab_iterator): New type.
9602 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
9603 (dw2_expand_symtabs_for_function): Rewrite.
9604 (dwarf2_gdb_index_functions): Update.
9605 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
9606 (psym_functions): Update.
9607
9608 2013-01-09 Tom Tromey <tromey@redhat.com>
9609
9610 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
9611 * configure: Rebuild.
9612 * configure.ac: Add somread.o to the build if BFD has SOM
9613 support.
9614 * somread.c: Include som/aout.h, not syms.h.
9615 (som_symtab_read): Use som_external_symbol_dictionary_record.
9616 Unpack records manually.
9617 (_initialize_somread): Declare.
9618
9619 2012-01-08 Mike Frysinger <vapier@gentoo.org>
9620
9621 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
9622 Cast return_address to 64bits.
9623
9624 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
9625
9626 * printcmd.c: Remove define of function output_command.
9627 * tracepoint.c: Remove extern of function output_command.
9628 * valprint.h: (output_command): New extern.
9629
9630 2013-01-07 Tom Tromey <tromey@redhat.com>
9631
9632 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
9633 Remove.
9634 (objc_language_defn): Use c_printchar, c_printstr,
9635 c_emit_char.
9636
9637 2013-01-07 Tom Tromey <tromey@redhat.com>
9638
9639 PR cli/7719:
9640 * NEWS: Update.
9641 * ada-valprint.c (printstr, print_field_values): Remove
9642 "inspect_it" code.
9643 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
9644 code.
9645 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
9646 code.
9647 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
9648 * main.c (captured_main): Remove "epoch" argument.
9649 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
9650 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
9651 * p-valprint.c (pascal_object_print_value_fields): Remove
9652 "inspect_it" code.
9653 * printcmd.c (print_command_1): Remove 'inspect' argument.
9654 (print_command, call_command): Update.
9655 (inspect_command): Remove.
9656 (_initialize_printcmd): Make "inspect" an alias for "print".
9657 * top.c (epoch_interface): Remove.
9658 * top.h (epoch_interface): Remove.
9659 * valprint.c (user_print_options): Update.
9660 (print_converted_chars_to_obstack): Remove "inspect_it" code.
9661 * valprint.h (struct value_print_options) <inspect_it>: Remove
9662 field.
9663
9664 2013-01-04 Tom Tromey <tromey@redhat.com>
9665
9666 * valprint.h (read_string): Add 'extern'.
9667
9668 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9669
9670 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
9671 used to decide whether to define darwin_read_dyld_info or not.
9672
9673 2013-01-03 Pierre Muller <muller@sourceware.org>
9674
9675 * main.c (relocate_gdb_directory): Avoid calling stat function
9676 if DIR is empty.
9677
9678 2013-01-03 Yao Qi <yao@codesourcery.com>
9679
9680 * psymtab.c (fixup_psymbol_section): Update declaration.
9681 (fixup_psymbol_section): Remove code returning value.
9682
9683 2013-01-03 Yao Qi <yao@codesourcery.com>
9684
9685 * symtab.h: Remove some out of date comments.
9686 (enum exception_event_kind): Move it ...
9687 * breakpoint.c: ... here.
9688
9689 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
9690
9691 PR gdb/14405
9692 * darwin-nat.c (darwin_read_dyld_info): Only build if
9693 TASK_DYLD_INFO_COUNT is defined.
9694 (darwin_xfer_partial): Call darwin_read_dyld_info only if
9695 TASK_DYLD_INFO_COUNT is defined.
9696
9697 2013-01-02 Tom Tromey <tromey@redhat.com>
9698
9699 * symfile.h (struct ecoff_debug_hack): Remove.
9700 * objfiles.c: Don't include mdebugread.h.
9701
9702 2013-01-02 Tom Tromey <tromey@redhat.com>
9703
9704 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
9705 * configure.ac: Check for Mach-O support in BFD. Update
9706 CONFIG_OBS.
9707 * configure: Rebuild.
9708
9709 2013-01-02 Tom Tromey <tromey@redhat.com>
9710
9711 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
9712 * configure.ac: Use GDB_AC_CHECK_BFD.
9713 * configure: Rebuild.
9714
9715 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
9716
9717 * MAINTAINERS: Update my email.
9718
9719 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9720
9721 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
9722
9723 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9724
9725 * rs6000-nat.c (bss_data_overlap): New function.
9726 (vmap_symtab): Use it to adjust the .bss section's offset.
9727
9728 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9729
9730 Update year range in copyright notice of all files.
9731
9732 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
9733
9734 * top.c (print_gdb_version): Update copyright year.
9735
9736 For older changes see ChangeLog-2012.
9737 \f
9738 Local Variables:
9739 mode: change-log
9740 left-margin: 8
9741 fill-column: 74
9742 version-control: never
9743 coding: utf-8
9744 End:
This page took 0.227615 seconds and 4 git commands to generate.