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