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