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