2760d223000d97bd265ca5ebf20055a435cf6a5a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
4
5 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
6
7 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
8 NULL.
9
10 2013-11-15 Tom Tromey <tromey@redhat.com>
11
12 PR c++/16117:
13 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
14 (classify_name): Likewise. Prefer a field of "this" over a
15 filename.
16 (classify_inner_name, yylex): Update.
17
18 2013-11-15 Joel Brobecker <brobecker@adacore.com>
19
20 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
21 Extend the documentation a bit.
22 <get_reg_value>: New field.
23 * dwarf2loc.c (dwarf_expr_get_reg_value)
24 (needs_frame_get_reg_value): New functions.
25 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
26 callback.
27 * dwarf2-frame.c (get_reg_value): New function.
28 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
29 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
30 Use new callback to compute result_val.
31
32 2013-11-15 Alan Modra <amodra@gmail.com>
33
34 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
35 (ppc64_desc_entry_point): ..this. Update comments here and at
36 call points.
37 (ppc64_standard_linkage1, ppc64_standard_linkage2,
38 ppc64_standard_linkage3): Update comments.
39 (ppc64_standard_linkage4, ppc64_standard_linkage5,
40 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
41 patterns.
42 (ppc64_standard_linkage4_target): New function.
43 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
44 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
45 nop match. Fix comment wrap.
46
47 2013-11-14 Pedro Alves <palves@redhat.com>
48
49 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
50 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
51
52 2013-11-14 Pedro Alves <palves@redhat.com>
53
54 * infrun.c (struct execution_control_state)
55 <stepped_after_stopped_by_watchpoint>: New field.
56 (get_inferior_stop_soon): New function.
57 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
58 moved to struct execution_control_state -- adjust. Use
59 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
60 new function.
61 (handle_signal_stop): New function, factored out from
62 handle_inferior_event.
63
64 2013-11-14 Pedro Alves <palves@redhat.com>
65
66 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
67 return a boolean.
68 * breakpoint.c (bpstat_explains_signal): Adjust to return a
69 boolean.
70 (explains_signal_watchpoint, base_breakpoint_explains_signal):
71 Adjust to return a boolean.
72 * breakpoint.h (enum bpstat_signal_value): Delete.
73 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
74 (bpstat_explains_signal): Likewise.
75 * infrun.c (handle_inferior_event) <random signal checks>:
76 bpstat_explains_signal now returns a boolean - adjust. No longer
77 consider hiding signals.
78
79 2013-11-14 Pedro Alves <palves@redhat.com>
80
81 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
82 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
83 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
84 BPSTAT_SIGNAL_HIDE.
85 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
86 instead of BPSTAT_SIGNAL_HIDE.
87 * infrun.c (handle_inferior_event): Rework random signal checks.
88
89 2013-11-14 Pedro Alves <palves@redhat.com>
90
91 * infrun.c (struct execution_control_state): Remove
92 'random_signal' field.
93 (handle_syscall_event): Use bpstat_causes_stop instead of
94 bpstat_explains_signal. Don't set ecs->random_signal.
95 (handle_inferior_event): New 'random_signal' local.
96 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
97 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
98 bpstat_explains_signal. Don't set ecs->random_signal.
99 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
100 ecs->random_signal.
101
102 2013-11-14 Pedro Alves <palves@redhat.com>
103
104 * infrun.c (handle_inferior_event): Move comment from the
105 function's body to the function's description, adjusted.
106
107 2013-11-14 Pedro Alves <palves@redhat.com>
108
109 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
110 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
111 Assert we never fall through out of the TARGET_WAITKIND_LOADED
112 case.
113
114 2013-11-14 Tom Tromey <tromey@redhat.com>
115
116 * python/py-linetable.c (ltpy_has_line)
117 (ltpy_get_all_source_lines): Fix loop termination condition.
118
119 2013-11-14 Joel Brobecker <brobecker@adacore.com>
120
121 * mi/mi-parse.h (struct mi_parse) <language>: New field.
122 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
123 PARSE->LANGUAGE during command execution, if set.
124 * mi/mi-parse.c: Add "language.h" #include.
125 (mi_parse): Add parsing of "--language" command option.
126
127 * NEWS: Add entry mentioning the new "--language" command option.
128
129 2013-11-14 Pedro Alves <palves@redhat.com>
130 Joel Brobecker <brobecker@adacore.com>
131
132 * cli/cli-utils.h (extract_arg_const): Add declaration.
133 * cli/cli-utils.c (extract_arg_const): New function.
134 (extract_arg): Reimplement using extract_arg_const.
135
136 2013-11-14 Joel Brobecker <brobecker@adacore.com>
137
138 * language.h: Add "symtab.h" #include.
139
140 2013-11-13 Doug Evans <xdje42@gmail.com>
141
142 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
143 specific breakpoints, don't evaluate breakpoint condition if
144 different thread.
145
146 2013-11-13 Keith Seitz <keiths@redhat.com>
147
148 PR c++/7935
149 PR c++/10541
150 * cp-support.c (insepct_type): Add support for substituting
151 namespace aliases, too.
152 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
153 for DW_TAG_imported_declaration.
154 (add_partial_symbol): Likewise.
155 (process_die): Handle namespace aliases with
156 read_namespace_alias.
157 (die_needs_namespace): Add DW_TAG_imported_declaration.
158 (read_namespace_alias): New function.
159 (load_partial_dies): Load DW_TAG_imported_declaration, too.
160 (new_symbol_full): Handle DW_TAG_imported_declaration.
161
162 2013-11-13 Keith Seitz <keiths@redhat.com>
163
164 * p-exp.y (uptok): Make first parameter const.
165 (yylex): Make `tokstart' and `tokptr' const.
166 Don't copy the lexer input to a temporary buffer.
167 Make `p' const.
168 Remove const workaround for parse_escape.
169 Create a temporary buffer for a convenience variable instead
170 of doing in-place modification of the input.
171 If a match is found with a different case from the input,
172 do not change the input at all.
173 Use `tmp' to construct the resultant stoken instead of
174 `tokstart'.
175
176 2013-11-13 Doug Evans <xdje42@gmail.com>
177
178 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
179
180 2013-11-13 Joel Brobecker <brobecker@adacore.com>
181
182 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
183 entry with "ada-exceptions".
184
185 2013-11-13 Joel Brobecker <brobecker@adacore.com>
186
187 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
188 after re-initialization of OBJFILE's obstack.
189
190 2013-11-12 Doug Evans <xdje42@gmail.com>
191
192 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
193 bs->stop != 0 on entry. Update function comment. Simplify early
194 exit for frame mismatch. Reindent rest of function.
195
196 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
197
198 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
199 NULL.
200
201 2013-11-12 Doug Evans <dje@google.com>
202
203 Work around gold/15646.
204 * dwarf2read.c (read_index_from_section): Update comment.
205 (struct dw2_symtab_iterator): New member global_seen.
206 (dw2_symtab_iter_init): Initialize it.
207 (dw2_symtab_iter_next): Skip duplicate global symbols.
208 (dw2_expand_symtabs_matching): Ditto.
209
210 2013-11-12 Joel Brobecker <brobecker@adacore.com>
211
212 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
213 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
214 command.
215 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
216 (mi_cmd_info_ada_exceptions): New function.
217 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
218
219 2013-11-12 Joel Brobecker <brobecker@adacore.com>
220
221 * ada-lang.h: #include "vec.h".
222 (struct ada_exc_info): New.
223 (ada_exc_info): New typedef.
224 (DEF_VEC_O(ada_exc_info)): New vector.
225 (ada_exceptions_list): Add declaration.
226 * ada-lang.c (ada_is_exception_sym)
227 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
228 (sort_remove_dups_ada_exceptions_list)
229 (ada_exc_search_name_matches, ada_add_standard_exceptions)
230 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
231 (ada_exceptions_list_1, ada_exceptions_list)
232 (info_exceptions_command): New function.
233 (_initialize_ada_language): Add "info exception" command.
234
235 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
236
237 PR python/15629
238 * NEWS: Add linetable feature.
239 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
240 * python/py-linetable.c: New file.
241 * python/py-symtab.c (stpy_get_linetable): New function.
242 * python/python-internal.h (symtab_to_linetable_object): Declare.
243 (gdbpy_initialize_linetable): Ditto.
244 * python/python.c (_initialize_python): Call
245 gdbpy_initialize_linetable.
246
247 2013-11-11 Joel Brobecker <brobecker@adacore.com>
248
249 * ada-lang.c (create_ada_exception_catchpoint): Enhance
250 the documentation of fields "except_string" and "condition".
251 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
252 CONDITION on the heap before passing it to
253 create_ada_exception_catchpoint.
254 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
255 CONDITION.
256
257 2013-11-11 Tom Tromey <tromey@redhat.com>
258
259 * config.in, configure: Rebuild.
260 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
261
262 2013-11-11 Joel Brobecker <brobecker@adacore.com>
263
264 * remote-sim.c (gdbsim_detach): Break declaration into
265 shorter lines. No code change.
266
267 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
268
269 * remote-sim.c (gdbsim_detach): Fix prototype.
270
271 2013-11-08 Doug Evans <dje@google.com>
272
273 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
274 (create_debug_types_hash_table): Only print debugging messages for
275 each TU if dwarf2-read >= 2.
276 (process_queue): Ditto.
277 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
278 Update doc string.
279
280 2013-11-08 Tom Tromey <tromey@redhat.com>
281
282 * configure: Rebuild.
283 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
284
285 2013-11-08 Tom Tromey <tromey@redhat.com>
286
287 * configure, config.in: Rebuild.
288 * configure.ac: Remove unused configury.
289
290 2013-11-08 Tom Tromey <tromey@redhat.com>
291
292 * m32c-tdep.c: Use gdb_string.h.
293
294 2013-11-08 Tom Tromey <tromey@redhat.com>
295
296 * configure, config.in: Rebuild.
297 * configure.ac: Remove all link.h-related checks.
298
299 2013-11-08 Tom Tromey <tromey@redhat.com>
300
301 * acinclude.m4: Include common.m4.
302 * common/common.m4: New file.
303 * configure, config.in: Rebuild.
304 * configure.ac: Use GDB_AC_COMMON.
305
306 2013-11-08 Doug Evans <dje@google.com>
307
308 * NEWS: Mention that "set debug symtab-create" now accepts a
309 verbosity level.
310 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
311 to set the symtab's primary flag.
312 * jit.c (finalize_symtab): Ditto.
313 * mdebugread.c (psymtab_to_symtab_1): Ditto.
314 * symfile.c (allocate_symtab): Only print debugging messages for
315 symtab_create_debug levels 2 and higher.
316 * symtab.c (symtab_create_debug): Change type to unsigned int.
317 (set_symtab_primary): New function.
318 (_initialize_symtab): Change "set debug symtab-create" to a
319 zuinteger option.
320 * symtab.h (set_symtab_primary): Declare.
321 (symtab_create_debug): Update decl.
322
323 2013-11-08 Tom Tromey <tromey@redhat.com>
324
325 * aix-thread.c (aix_thread_detach): Update.
326 * corelow.c (core_detach): Update.
327 * darwin-nat.c (darwin_detach): Update.
328 * dec-thread.c (dec_thread_detach): Update.
329 * gnu-nat.c (gnu_detach): Update.
330 * go32-nat.c (go32_detach): Update.
331 * inf-ptrace.c (inf_ptrace_detach): Update.
332 * inf-ttrace.c (inf_ttrace_detach): Update.
333 * linux-fork.c (linux_fork_detach): Update.
334 * linux-fork.h (linux_fork_detach): Update.
335 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
336 local for const-correctness.
337 * linux-thread-db.c (thread_db_detach): Update.
338 * monitor.c (monitor_detach): Update.
339 * nto-procfs.c (procfs_detach): Update.
340 * procfs.c (procfs_detach): Update.
341 * record.c (record_detach): Update.
342 * record.h (record_detach): Update.
343 * remote-m32r-sdi.c (m32r_detach): Update.
344 * remote-mips.c (mips_detach): Update.
345 * remote-sim.c (gdbsim_detach): Update.
346 * remote.c (remote_detach_1, remote_detach)
347 (extended_remote_detach): Update.
348 * sol-thread.c (sol_thread_detach): Update.
349 * target.c (target_detach): Make "args" const.
350 (init_dummy_target): Update.
351 * target.h (struct target_ops) <to_detach>: Make argument const.
352 (target_detach): Likewise.
353 * windows-nat.c (windows_detach): Update.
354
355 2013-11-07 Doug Evans <dje@google.com>
356
357 PR 11786
358 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
359 and align fields for PT_GNU_RELRO segments.
360
361 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
362
363 PR python/15747
364 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
365
366 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
367
368 * NEWS: Document Python temporary breakpoint support.
369 * python/py-breakpoint.c (bppy_get_temporary): New function.
370 (bppy_init): New keyword: temporary. Parse it and set breakpoint
371 to temporary if True.
372
373 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
374
375 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
376 removed to allow analyzing unconditional branch instructions
377 with PC-relative offsets of zero.
378
379 2013-11-07 Yao Qi <yao@codesourcery.com>
380
381 * mi/mi-cmd-var.c: Include "language.h".
382 (mi_cmd_var_info_expression): Get language name from
383 language_defn.
384 * varobj.c (varobj_language_string): Remove.
385 (variable_language): Remove declaration.
386 (languages): Remove.
387 (varobj_get_language): Change the type of return value.
388 (variable_language): Remove.
389 * varobj.h (enum varobj_languages): Remove.
390 (varobj_language_string): Remove declaration.
391 (varobj_get_language): Update declaration.
392
393 2013-11-07 Yao Qi <yao@codesourcery.com>
394
395 * language.h (struct language_defn) <la_natural_name>: New
396 field.
397 * ada-lang.c (ada_language_defn): Initialize field
398 'la_natural_name'.
399 * c-lang.c (c_language_defn): Likewise.
400 (cplus_language_defn, asm_language_defn): Likewise.
401 * d-lang.c (d_language_defn): Likewise.
402 * f-lang.c (f_language_defn): Likewise.
403 * go-lang.c (go_language_defn): Likewise.
404 * jv-lang.c (java_language_defn): Likewise.
405 * language.c (unknown_language_defn ): Likewise.
406 (auto_language_defn): Likewise.
407 * m2-lang.c (m2_language_defn): Likewise.
408 * objc-lang.c (objc_language_defn): Likewise.
409 * opencl-lang.c (opencl_language_defn): Likewise.
410 * p-lang.c (pascal_language_defn): Likewise.
411
412 2013-11-07 Yao Qi <yao@codesourcery.com>
413
414 * language.c (language_str): Return const char *.
415 (add_language): Add const to 'language_names'
416 * language.h (struct language_defn) <la_name>: Add const.
417 (language_str: Update declaration.
418
419 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
420
421 * s390-linux-nat.c (s390_read_description): Consider the TE field
422 in the HWCAP for determining 'have_regset_tdb'.
423
424 2013-11-06 Will Newton <will.newton@linaro.org>
425
426 PR gdb/12866
427 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
428 values. (read_partial_die): Likewise.
429
430 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
431
432 PR cli/16122
433 * top.c (command_line_input): Unify interactivity tests to use
434 input_from_terminal_p.
435 * event-top.c (command_line_handler): Likewise.
436
437 2013-11-06 Yao Qi <yao@codesourcery.com>
438
439 * Makefile.in (check-perf): New target.
440
441 2013-11-05 Will Newton <will.newton@linaro.org>
442
443 PR gdb/7670
444 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
445 (arm_print_float_info): Likewise.
446
447 2013-11-04 Anton Blanchard <anton@samba.org>
448
449 * target.c (memory_xfer_partial): Cap write to 4KB.
450
451 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
452
453 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
454 probe scan even when the arch provides no get_longjmp_target.
455
456 2013-10-31 Pedro Alves <palves@redhat.com>
457
458 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
459 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
460 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
461 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
462 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
463 <bpstat handling>: If the bpstat chain wants the signal to be
464 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
465 GDB_SIGNAL_TRAP.
466
467 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
468
469 * breakpoint.c (update_watchpoint): Update error message and add
470 an additional error message.
471
472 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
473
474 * s390-tdep.h: Rename to...
475 * s390-linux-tdep.h: ...here.
476 * s390-tdep.c: Rename to...
477 * s390-linux-tdep.c: ...here. Adjust #include.
478 * s390-nat.c: Rename to...
479 * s390-linux-nat.c: ...here. Adjust #include.
480 * config/s390/s390.mh: Rename to...
481 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
482 s390-linux-nat.o.
483 * configure.host: Reflect host rename "s390" -> "linux".
484 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
485 * Makefile.in (ALL_TARGET_OBS): Likewise.
486 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
487 s390-linux-tdep.h.
488 (ALLDEPFILES): Reflect rename of .c files.
489
490 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
491
492 * s390-nat.c: Whitespace cleanup.
493 * s390-tdep.c: Likewise.
494 * s390-tdep.h: Remove empty line at end of file.
495
496 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
497
498 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
499 siginfo_size.
500
501 2013-10-29 Tom Tromey <tromey@redhat.com>
502
503 * utils.c (reg): Move undefinition...
504 * gdb_curses.h: ... here. Update comment to mention AIX.
505
506 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
507
508 * exec.h (add_target_sections_of_objfile): New declaration.
509 * exec.c (add_target_sections_of_objfile): New function.
510 * symfile.c (add_symbol_file_command): Update current target sections.
511 (remove_symbol_file_command): New command.
512 (symfile_free_objfile): New function.
513 (_initialize_symfile): Register observer for free_objfile events.
514 * NEWS: Add description of the remove-symbol-file command.
515 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
516 * objfiles.c (free_objfile): Notify free_objfile.
517 (is_addr_in_objfile): New function.
518 * objfiles.h (is_addr_in_objfile): New declaration.
519 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
520 events instead of solib_unloaded events.
521 (_initialize_printcmd): Register observer for free_objfile instead
522 of solib_unloaded notifications.
523 * solib.c (remove_user_added_objfile): New function.
524 (_initialize_symfile): Add remove-symbol-file.
525
526 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
527
528 * infcmd.c (default_print_one_register_info): Use val_print to
529 print all values even optimized out or unavailable ones. Don't
530 try to print a raw form of optimized out or unavailable values.
531
532 2013-10-29 Yao Qi <yao@codesourcery.com>
533
534 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
535 parameter 'arg' instead of from program_space_data.
536 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
537 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
538 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
539 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
540 * inflow.c (inflow_inferior_data_cleanup): Get data from
541 parameter 'arg' instead of inferior_data.
542 * registry.h: Add comments.
543
544 2013-10-28 Pedro Alves <palves@redhat.com>
545
546 * breakpoint.c (watchpoints_triggered)
547 <!target_stopped_data_address>: Hardcode return 1.
548
549 2013-10-28 Pedro Alves <palves@redhat.com>
550
551 * infrun.c (process_event_stop_test): Remove unnecessary scoping
552 level and reindent.
553
554 2013-10-28 Pedro Alves <palves@redhat.com>
555
556 * infrun.c (process_event_stop_test): New function, factored out
557 from handle_inferior_event.
558 (handle_inferior_event): 'process_event_stop_test' is now a
559 function instead of a goto label -- adjust.
560
561 2013-10-28 Pedro Alves <palves@redhat.com>
562
563 * infrun.c (handle_inferior_event): Move process_event_stop_test
564 goto label to the else branch of the ecs->random_signal check,
565 along with FRAME and GDBARCH re-fetching.
566
567 2013-10-28 Pedro Alves <palves@redhat.com>
568
569 * infrun.c (switch_back_to_stepped_thread): New function, factored
570 out from handle_inferior_event.
571 (handle_inferior_event): Adjust to call
572 switch_back_to_stepped_thread. Call it also at the tail of the
573 random signal handling, and return, instead of also handling
574 random signals just before the stepping tests.
575
576 2013-10-28 Pedro Alves <palves@redhat.com>
577
578 * infrun.c (clear_stop_func): Delete.
579 (handle_inferior_event): Don't call clear_stop_func and don't
580 clear 'ecs->random_signal'.
581
582 2013-10-27 Yao Qi <yao@codesourcery.com>
583
584 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
585 (varobj_create, varobj_get_path_expr): Update.
586 (varobj_value_has_mutated, varobj_update): Likewise.
587 (create_child_with_value, new_root_variable): Likewise.
588 (number_of_children, name_of_variable): Likewise.
589 (value_of_child, my_value_of_variable): Likewise.
590 (varobj_value_is_changeable_p): Likewise.
591
592 2013-10-25 Yao Qi <yao@codesourcery.com>
593
594 * language.h (struct lang_varobj_ops): Declare.
595 (struct language_defn) <la_varobj_ops>: New field.
596 * ada-lang.c: Include "varobj.h"
597 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
598 ada_varobj_ops.
599 * c-lang.c: Include "varobj.h"
600 (c_language_defn): Initialize field 'la_varobj_ops' with
601 c_varobj_ops.
602 (cplus_language_defn): Initialize field 'la_varobj_ops' with
603 cplus_varobj_ops.
604 (asm_language_defn): Initialize field 'la_varobj_ops' with
605 default_varobj_ops.
606 (minimal_language_defn): Likewise.
607 * d-lang.c (d_language_defn): Likewise.
608 * f-lang.c (f_language_defn): Likewise.
609 * go-lang.c (go_language_defn): Likewise.
610 * m2-lang.c (m2_language_defn): Likewise.
611 * objc-lang.c (objc_language_defn): Likewise.
612 * opencl-lang.c (opencl_language_defn): Likewise.
613 * p-lang.c (pascal_language_defn): Likewise.
614 * language.c (unknown_language_defn): Likewise.
615 (auto_language_defn): Likewise.
616 (local_language_defn): Likewise.
617 * jv-lang.c (java_language_defn): Initialize field
618 'la_varobj_ops' with java_varobj_ops.
619 * varobj.c (varobj_create): Update.
620 * varobj.h (default_varobj_ops): Define macro.
621
622 2013-10-25 Pedro Alves <palves@redhat.com>
623
624 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
625 static field value.
626 (cp_print_static_field): If the value is entirely optimized out,
627 print <optimized out> here.
628 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
629 static field value.
630 * p-valprint.c (pascal_object_print_static_field): If the value is
631 entirely optimized out, print <optimized out> here.
632 * valops.c (do_search_struct_field)
633 (value_struct_elt_for_reference): No longer handle a NULL static
634 field value.
635 * value.c (value_static_field): Return an optimized out value
636 instead of NULL.
637
638 2013-10-25 Yao Qi <yao@codesourcery.com>
639
640 * remote.c (remote_traceframe_info): Return early if
641 traceframe is not selected.
642
643 2013-10-25 Yao Qi <yao@codesourcery.com>
644
645 * tracepoint.c (traceframe_fun): Remove.
646 (traceframe_sal): Remove.
647 (set_traceframe_context): Add local variables.
648
649 2013-10-25 Joel Brobecker <brobecker@adacore.com>
650
651 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
652 and parameter name.
653
654 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
655
656 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
657 failure from register information collection.
658
659 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
660
661 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
662 member.
663 (linux_corefile_thread_callback): Update accordingly.
664 (linux_make_corefile_notes): Likewise.
665
666 2013-10-24 Pedro Alves <palves@redhat.com>
667
668 * NEWS (New options): Mention set/show startup-with-shell.
669 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
670 instead of 3.
671 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
672 startup-with-shell'.
673 (show_startup_with_shell): New function.
674 (_initialize_fork_child): Register the set/show startup-with-shell
675 commands.
676 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
677 * inf-ttrace.c (inf_ttrace_him): Remove comment.
678 * procfs.c (procfs_init_inferior): Remove comment.
679 * infcmd.c (startup_with_shell): New global.
680 * inferior.h (startup_with_shell): Declare global.
681 (STARTUP_WITH_SHELL): Delete.
682 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
683
684 2013-10-23 Pedro Alves <palves@redhat.com>
685
686 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
687 * common/signals.c: Include "gdb_assert.h".
688 (signals): New field 'symbol'.
689 (SET): Use the 'symbol' parameter.
690 (gdb_signal_to_symbol_string): New function.
691 * infrun.c (handle_inferior_event) <random signal>: In debug
692 output, print the random signal enum as string in addition to its
693 number.
694 * target/waitstatus.c (target_waitstatus_to_string): Print the
695 signal's enum value as string instead of the (POSIX) signal name.
696
697 2013-10-23 Gary Benson <gbenson@redhat.com>
698
699 PR 16013
700 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
701 from 32 to 18. Adjusted fscanf format string accordingly.
702 (Avoids leaving cmd unterminated.)
703 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
704 trun, retn or extra. (Avoids leaving extra unterminated.) Check
705 that local_address and remote_address will not overflow.
706 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
707 leaving dependencies unterminated. Parse size as "%u" to match
708 definition.
709
710 2013-10-22 Pedro Alves <palves@redhat.com>
711
712 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
713 set ecs->random signal.
714
715 2013-10-22 Pedro Alves <palves@redhat.com>
716
717 * infrun.c (keep_going): Update comments.
718
719 2013-10-22 Pedro Alves <palves@redhat.com>
720
721 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
722 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
723
724 2013-10-22 Pedro Alves <palves@redhat.com>
725
726 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
727 GDB_EXC_BAD_ACCESS.
728 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
729 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
730 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
731 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
732 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
733 (GDB_SIGNAL_LAST): Change description string.
734 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
735 Adjust to signal renaming.
736 * darwin-nat.c (darwin_decode_message): Likewise.
737
738 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
739
740 * MAINTAINERS (Write After Approval): Add myself to the list.
741
742 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
743
744 * breakpoint.c (update_watchpoint): If hardware watchpoints are
745 forced off, downgrade them to software watchpoints if possible,
746 and error out if not possible.
747 (watch_command_1): Move watchpoint type selection closer to
748 watchpoint creation, and extend the comments.
749
750 2013-10-18 Pedro Alves <palves@redhat.com>
751
752 PR gdb/16062
753 * infrun.c (handle_inferior_event): Keep going if we got a random
754 signal we should not stop for, instead of falling through to the
755 step tests.
756
757 2013-10-18 Yao Qi <yao@codesourcery.com>
758
759 * c-varobj.c (cplus_number_of_children): Fix indentation.
760
761 2013-10-17 Tom Tromey <tromey@redhat.com>
762
763 PR gdb/15995:
764 * printcmd.c (printcmd): Call gdb_flush.
765
766 2013-10-17 Tom Tromey <tromey@redhat.com>
767
768 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
769 (elf_locate_sections): Update.
770
771 2013-10-17 Yao Qi <yao@codesourcery.com>
772
773 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
774 * ada-varobj.c: Remove the include of ada-varobj.h.
775 (ada_varobj_get_number_of_children): Declare.
776 (ada_varobj_get_name_of_child): Make it static.
777 (ada_varobj_get_path_expr_of_child): Likewise.
778 (ada_varobj_get_value_of_child): Likewise.
779 (ada_varobj_get_type_of_child): Likewise.
780 (ada_varobj_get_value_of_array_variable): Likewise.
781 * ada-varobj.h: Remove.
782
783 2013-10-17 Yao Qi <yao@codesourcery.com>
784
785 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
786 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
787 * ada-varobj.c: Include "varobj.h".
788 (ada_number_of_children): New. Moved from varobj.c.
789 (ada_name_of_variable, ada_name_of_child): Likewise.
790 (ada_path_expr_of_child, ada_value_of_child): Likewise.
791 (ada_type_of_child, ada_value_of_variable): Likewise.
792 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
793 (ada_varobj_ops): New.
794 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
795 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
796 * gdbtypes.h (get_target_type): Declare.
797 * varobj.c: Remove the inclusion of "ada-varobj.h" and
798 "ada-lang.h".
799 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
800 (ANONYMOUS_UNION_NAME): Likewise.
801 (get_type, get_value_type, get_target_type): Remove declarations.
802 (value_get_print_value, varobj_value_get_print_value): Likewise.
803 (c_number_of_children, c_name_of_variable): Likewise.
804 (c_name_of_child, c_path_expr_of_child): Likewise.
805 (c_value_of_child, c_type_of_child): Likewise.
806 (c_value_of_variable, cplus_number_of_children): Likewise.
807 (cplus_class_num_children, cplus_name_of_variable): Likewise.
808 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
809 (cplus_value_of_child, cplus_type_of_child): Likewise.
810 (cplus_value_of_variable, java_number_of_children): Likewise.
811 (java_name_of_variable, java_name_of_child): Likewise.
812 (java_path_expr_of_child, java_value_of_child): Likewise.
813 (java_type_of_child, java_value_of_variable): Likewise.
814 (ada_number_of_children, ada_name_of_variable): Likewise.
815 (ada_name_of_child, ada_path_expr_of_child): Likewise.
816 (ada_value_of_child, ada_type_of_child): Likewise.
817 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
818 (ada_value_has_mutated): Likewise.
819 (struct language_specific): Move it to varobj.h.
820 (CPLUS_FAKE_CHILD): Move it to varobj.h.
821 (restrict_range): Rename it varobj_restrict_range. Make it extern.
822 Callers update.
823 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
824 Make it extern.
825 (is_anonymous_child): Move it to c-varobj.c and rename to
826 varobj_is_anonymous_child. Caller update.
827 (get_type): Move it to c-varobj.c.
828 (get_value_type): Rename it varobj_get_value_type. Make it
829 extern.
830 (get_target_type): Move it gdbtypes.c.
831 (varobj_formatted_print_options): New function.
832 (value_get_print_value): Rename it to
833 varobj_value_get_print_value and make it extern.
834 (varobj_value_is_changeable_p): Make it extern.
835 (adjust_value_for_child_access): Move it to c-varobj.c.
836 (default_value_is_changeable_p): Rename it to
837 varobj_default_value_is_changeable_p. Make it extern.
838 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
839 (c_name_of_child, c_path_expr_of_child): Likewise.
840 (c_value_of_child, c_type_of_child): Likewise.
841 (c_value_of_variable, cplus_number_of_children): Likewise.
842 (cplus_class_num_children, cplus_name_of_variable): Likewise.
843 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
844 (cplus_value_of_child, cplus_type_of_child): Likewise.
845 (cplus_value_of_variable): Likewise.
846 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
847 (java_name_of_child, java_path_expr_of_child): Likewise.
848 (java_value_of_child, java_type_of_child): Likewise.
849 (java_value_of_variable): Likewise.
850 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
851 (ada_name_of_child, ada_path_expr_of_child): Likewise.
852 (ada_value_of_child, ada_type_of_child): Likewise.
853 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
854 (ada_value_has_mutated): Likewise.
855 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
856 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
857 (c_varobj_ops, cplus_varobj_ops): Declare.
858 (java_varobj_ops, ada_varobj_ops): Declare.
859 (varobj_default_value_is_changeable_p): Declare.
860 (varobj_value_is_changeable_p): Declare.
861 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
862 (varobj_get_path_expr_parent): Declare.
863 (varobj_value_get_print_value): Declare.
864 (varobj_formatted_print_options): Declare.
865 (varobj_restrict_range): Declare.
866
867 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
868
869 * target/waitstatus.h (target_waitkind): Remove spurious
870 character from the comments.
871
872 2013-10-17 Joel Brobecker <brobecker@adacore.com>
873
874 * gdbarch.sh (get_longjmp_target): Add method documentation.
875 * gdbarch.h: Regenerate.
876
877 2013-10-16 Tom Tromey <tromey@redhat.com>
878
879 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
880 label.
881
882 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
883
884 * gcore.in: Call GDB using the full path to the gcore script.
885 Error out if the GDB binary is not found.
886
887 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
888
889 PR gdb/16014
890 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
891 sizeof.
892
893 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
894
895 PR gdb/16042
896 * target.c (target_disable_btrace): Fix invalid return value for
897 void function.
898 (target_teardown_btrace): Likewise.
899
900 2013-10-14 Yao Qi <yao@codesourcery.com>
901
902 * varobj.c (struct varobj): Move most of the fields to
903 varobj.h.
904 (struct varobj_dynamic): New struct.
905 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
906 (varobj_has_more): Likewise.
907 (dynamic_varobj_has_child_method): Likewise.
908 (update_dynamic_varobj_children): Likewise.
909 (varobj_get_num_children): Likewise.
910 (varobj_list_children, varobj_pretty_printed_p): Likewise.
911 (install_new_value_visualizer): Likewise.
912 (install_new_value_visualizer, install_new_value): Likewise.
913 (varobj_update, new_variable, free_variable): Likewise.
914 (my_value_of_variable, value_get_print_value): Likewise.
915 (install_visualizer): Change the type of parameter 'var' to
916 'struct varobjd_dynamic *'. Callers update.
917 * varobj.h (struct varobj): Moved from varobj.c.
918 (struct varobj) <dynamic>: New field.
919
920 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
921
922 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
923 as the preferred name of r30.
924 * nios2-linux-tdep.c (reg_offsets): Likewise.
925 * features/nios2-cpu.xml: Likewise.
926 * features/nios2-linux.c: Regenerated.
927 * features/nios2.c: Regenerated.
928 * regformats/nios2-linux.dat: Regenerated.
929
930 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
931
932 Canonicalize directories for EXEC_FILENAME.
933 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
934 exec_filename.
935 * utils.c (gdb_realpath_keepfile): New function.
936 * utils.h (gdb_realpath_keepfile): New declaration.
937
938 2013-10-11 Doug Evans <dje@google.com>
939
940 * Makefile.in (GDBFLAGS): New variable.
941 (run): New rule.
942
943 2013-10-11 Joel Brobecker <brobecker@adacore.com>
944
945 * NEWS: Add entry documenting the new "-catch-assert" and
946 "-catch-exception" GDB/MI commands.
947
948 2013-10-11 Joel Brobecker <brobecker@adacore.com>
949
950 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
951 "enabled".
952 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
953 "enabled". Set B->ENABLE_STATE accordingly.
954 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
955 ada-lang.c.
956 (create_ada_exception_catchpoint): Add declaration.
957 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
958 (create_ada_exception_catchpoint): Make non-static. Add new
959 parameter "disabled". Use it in call to
960 init_ada_exception_breakpoint.
961 (catch_ada_exception_command): Add parameter "enabled" in call
962 to create_ada_exception_catchpoint.
963 (catch_assert_command): Likewise.
964
965 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
966 Add declarations.
967 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
968 "catch-exception" commands.
969 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
970 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
971
972 2013-10-11 Joel Brobecker <brobecker@adacore.com>
973
974 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
975 "enum exception_catchpoint_kind". Replace the "ex_" prefix
976 of all its enumerates with "ada_". Update the rest of this
977 file throughout.
978
979 2013-10-11 Joel Brobecker <brobecker@adacore.com>
980
981 * ada-lang.c (ada_decode_exception_location): Delete.
982 (create_ada_exception_catchpoint): Remove arguments "sal",
983 "addr_string" and "ops". Add argument "ex_kind" instead.
984 Adjust implementation accordingly, calling ada_exception_sal
985 to get the entities it no longer gets passed as arguments.
986 Document the function's arguments.
987 (catch_ada_exception_command): Use catch_ada_exception_command_split
988 instead of ada_decode_exception_location, and update call to
989 create_ada_exception_catchpoint.
990 (catch_ada_assert_command_split): Renames
991 ada_decode_assert_location. Remove parameters "addr_string" and
992 "ops", and now returns void. Adjust implementation accordingly.
993 Update the function documentation.
994 (catch_assert_command): Use catch_ada_assert_command_split
995 instead of ada_decode_assert_location. Update call to
996 create_ada_exception_catchpoint.
997
998 2013-10-11 Joel Brobecker <brobecker@adacore.com>
999
1000 * utils.h (perror_warning_with_name): Add declaration.
1001 * utils.c (perror_warning_with_name): New function.
1002 * cli/cli-cmds.c (source_script_with_search): Add call to
1003 perror_warning_with_name if from_tty is nul.
1004
1005 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1006
1007 * utils.c (perror_string): New function, extracted out of
1008 throw_perror_with_name.
1009 (throw_perror_with_name): Rework to use perror_string.
1010
1011 2013-10-11 Yao Qi <yao@codesourcery.com>
1012
1013 * remote.c (discard_pending_stop_replies_in_queue): Update
1014 declaration.
1015 (struct stop_reply) <rs>: New field.
1016 (remove_stop_reply_of_remote_state): New function.
1017 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1018 Callers update. Pass remove_stop_reply_of_remote_state to
1019 QUEUE_iterate.
1020 (remote_parse_stop_reply): Initialize field 'rs'.
1021
1022 2013-10-10 Will Newton <will.newton@linaro.org>
1023
1024 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1025 linux_init_abi.
1026
1027 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1028
1029 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1030 serial_baud_show_cmd.
1031 (_initialize_cli_cmds): Delete the code creating the
1032 "set/show remotebaud" commands.
1033 * serial.c (baud_rate): Move here from top.c.
1034 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1035 (_initialize_serial): Create "set/show serial baud" commands.
1036 Add "set/show remotebaud" command aliases.
1037 * top.c (baud_rate): Moved to serial.c.
1038 * NEWS: Document the new "set/show serial baud" commands,
1039 replacing "set/show remotebaud".
1040
1041 2013-10-09 Pedro Alves <palves@redhat.com>
1042
1043 * breakpoint.c (insert_bp_location): Use memory_error_message to
1044 build the memory error string.
1045 * c-lang.c: Include "gdbcore.h".
1046 (c_get_string): Use memory_error to throw error.
1047 (target_xfer_memory_error): Delete.
1048 (memory_error_message): New, factored out from
1049 target_xfer_memory_error.
1050 (memory_error): Change parameter type to target_xfer_error.
1051 Rewrite.
1052 (read_memory): Use memory_error instead of
1053 target_xfer_memory_error.
1054 * gdbcore.h: Include "target.h".
1055 (memory_error): Change parameter type to target_xfer_error.
1056 (memory_error_message): Declare function.
1057 * target.c (target_read_memory, target_read_stack)
1058 (target_write_memory, target_write_raw_memory): Return
1059 TARGET_XFER_E_IO on error. Adjust comments.
1060 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1061 instead of EIO.
1062 * target.h (target_read, target_insert_breakpoint)
1063 (target_remove_breakpoint): Adjust comments.
1064 * valprint.c (partial_memory_read): Rename parameter, and adjust
1065 comment.
1066 (val_print_string): Use memory_error_message to build the memory
1067 error string.
1068
1069 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1070
1071 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1072 result variable. Rename variable fopen_e_ever_failed to
1073 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1074
1075 2013-10-09 Pedro Alves <palves@redhat.com>
1076
1077 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1078 (monitor_write_memory_longlongs, monitor_write_memory_block):
1079 Constify 'myaddr' parameter.
1080 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1081 helper.
1082 (monitor_xfer_partial): New function.
1083 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1084 hook. Install a to_xfer_partial hook.
1085
1086 2013-10-09 Tom Tromey <tromey@redhat.com>
1087
1088 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1089 bfd_get_alt_debug_link_info.
1090
1091 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1092
1093 New flag OBJF_NOT_FILENAME.
1094 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1095 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1096 allocate_objfile.
1097 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1098 symbol_file_add_from_bfd.
1099 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1100 allocate_objfile.
1101 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1102 NULL.
1103 * objfiles.h (OBJF_NOT_FILENAME): New.
1104
1105 2013-10-08 Tom Tromey <tromey@redhat.com>
1106
1107 * Makefile.in (SFILES): Add build-id.c.
1108 (HFILES_NO_SRCDIR): Add build-id.h.
1109 * build-id.c: New file, largely from elfread.c. Modified
1110 most functions.
1111 * build-id.h: New file.
1112 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1113 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1114 Search for dwz file using build-id.
1115 * elfread.c (build_id_bfd_get, build_id_verify)
1116 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1117
1118 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1119
1120 * ada-lang.c (compare_names_with_case): Renamed from
1121 compare_names, adding a new parameter "casing" and its handling.
1122 New function documentation.
1123 (compare_names): New function, implemented using
1124 compare_names_with_case.
1125
1126 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1127
1128 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1129
1130 2013-10-07 Tom Tromey <tromey@redhat.com>
1131
1132 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1133 demangled_names_hash.
1134 (free_objfile): Don't delete the demangled_names_hash.
1135 * objfiles.h (struct objfile_per_bfd_storage)
1136 <demangled_names_hash>: New field.
1137 (struct objfile) <demangled_names_hash>: Move to
1138 objfile_per_bfd_storage.
1139 * symfile.c (reread_symbols): Don't delete the
1140 demangled_names_hash.
1141 * symtab.c (create_demangled_names_hash): Update.
1142 (symbol_set_names): Update.
1143
1144 2013-10-07 Tom Tromey <tromey@redhat.com>
1145
1146 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1147 needs_relocations>: New fields.
1148 (gdb_bfd_requires_relocations): New function.
1149 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1150 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1151 the BFD needs relocations applied.
1152
1153 2013-10-07 Pedro Alves <palves@redhat.com>
1154
1155 PR breakpoints/11568
1156 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1157 the thread list" instead of "gone".
1158
1159 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1160
1161 * NEWS: Mention new convenience variable $_exitsignal.
1162 * corelow.c (core_open): Reset exit convenience variables. Set
1163 $_exitsignal to the uncaught signal which generated the corefile.
1164 * infrun.c (handle_inferior_event): Reset exit convenience
1165 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1166 (clear_exit_convenience_vars): New function.
1167 * inferior.h (clear_exit_convenience_vars): New prototype.
1168
1169 2013-10-06 Yao Qi <yao@codesourcery.com>
1170
1171 * varobj.h: Add comments to enum varobj_languages.
1172
1173 2013-10-04 Doug Evans <dje@google.com>
1174
1175 Add support for DWP file format version 2.
1176 * NEWS: Mention support for DWP file format version 2.
1177 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1178 union of asection, containing_section. New fields virtual_offset
1179 and is_virtual. Change type of readin filed from int to char.
1180 (dwo_sections, dwo_file): Tweak comments.
1181 (dwp_v2_section_ids): New enum.
1182 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1183 str_offsets, types.
1184 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1185 All uses updated.
1186 (virtual_v2_dwo_sections): New struct.
1187 (dwp_hash_table): New fields version, nr_columns. Change type of
1188 section_pool field to a union.
1189 (dwp_file): New field version.
1190 (dwarf2_has_info): Check for virtual sections.
1191 (get_containing_section): New function.
1192 (get_section_bfd_owner, get_section_bfd_section): Call it.
1193 (dwarf2_locate_sections): Update.
1194 (dwarf2_section_empty_p): Update.
1195 (dwarf2_read_section): Handle virtual sections.
1196 (locate_dwz_sections): Update.
1197 (create_dwp_hash_table): Document and handle V2 format.
1198 (locate_v1_virtual_dwo_sections): Renamed from
1199 locate_virtual_dwo_sections and update. All callers updated.
1200 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1201 Delete arg htab. Rename arg section_index to unit_index.
1202 All callers updated.
1203 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1204 All uses updated.
1205 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1206 (lookup_dwo_unit_in_dwp): Add V2 support.
1207 (dwarf2_locate_dwo_sections): Update.
1208 (dwarf2_locate_common_dwp_sections): Renamed from
1209 dwarf2_locate_dwp_sections and update. All callers updated.
1210 (dwarf2_locate_v2_dwp_sections): New function.
1211 (open_and_init_dwp_file): Add V2 support.
1212 (read_str_index): New locals str_section, str_offsets_section.
1213
1214 2013-10-04 Pedro Alves <palves@redhat.com>
1215
1216 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1217 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1218 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1219 describing comments with references to ptid.h.
1220 * common/ptid.h: Remove intro description of constructors,
1221 accessors and predicates.
1222 (struct ptid): Reformat.
1223 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1224 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1225 describing comments.
1226
1227 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1228
1229 * aix-thread.c (sync_threadlists): Add missing ')' in call
1230 to ptid_build.
1231
1232 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1233
1234 * procfs.c (procfs_init_inferior): Fix typo causing the build
1235 to fail.
1236
1237 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1238
1239 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1240
1241 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1242
1243 * mi/mi-main.c (run_one_inferior): Add function description.
1244 Make ARG a pointer to an integer whose value determines whether
1245 we should "run" or "start" the program.
1246 (mi_cmd_exec_run): Add handling of the "--start" option.
1247 Reject all other command-line options.
1248 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1249
1250 2013-10-04 Yao Qi <yao@codesourcery.com>
1251
1252 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1253 (struct notif_client) <pending_event>: Moved
1254 to struct remote_notif_state.
1255 <id>: New field.
1256 (struct remote_notif_state) <pending_event>: New field.
1257 (notif_event_xfree): Declare.
1258 * remote-notif.c (handle_notification): Adjust.
1259 (notif_event_xfree): New function.
1260 (do_notif_event_xfree): Call notif_event_xfree.
1261 (remote_notif_state_xfree): Call notif_event_xfree to free
1262 each element in field pending_event.
1263 * remote.c (discard_pending_stop_replies): Remove declaration.
1264 (discard_pending_stop_replies_in_queue): Declare.
1265 (remote_close): Call discard_pending_stop_replies_in_queue
1266 instead of discard_pending_stop_replies.
1267 (remote_start_remote): Adjust.
1268 (stop_reply_xfree): Call notif_event_xfree.
1269 (notif_client_stop): Adjust initialization.
1270 (remote_notif_remove_all): Rename it to ...
1271 (remove_stop_reply_for_inferior): ... this. Update comments.
1272 Don't check INF is NULL.
1273 (discard_pending_stop_replies): Return early if notif_state is
1274 NULL. Adjust. Don't check INF is NULL.
1275 (remote_notif_get_pending_events): Adjust.
1276 (discard_pending_stop_replies_in_queue): New function.
1277 (remote_wait_ns): Likewise.
1278
1279 2013-10-04 Yao Qi <yao@codesourcery.com>
1280
1281 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1282 (notif_queue): Remove.
1283 (remote_notif_process): Add one parameter 'notif_queue'.
1284 Update comments. Callers update.
1285 (remote_async_get_pending_events_token): Remove.
1286 (remote_notif_register_async_event_handler): Remove.
1287 (remote_notif_unregister_async_event_handler): Remove.
1288 (handle_notification): Add parameter 'notif_queue'. Update
1289 comments. Callers update.
1290 (notif_xfree): Remove.
1291 (remote_notif_state_allocate): New function.
1292 (remote_notif_state_xfree): New function.
1293 (_initialize_notif): Remove code to allocate queue.
1294 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1295 (struct remote_notif_state): New.
1296 (handle_notification): Update declaration.
1297 (remote_notif_process): Likewise.
1298 (remote_notif_register_async_event_handler): Remove.
1299 (remote_notif_unregister_async_event_handler): Remove.
1300 (remote_notif_state_allocate): Declare.
1301 (remote_notif_state_xfree): Declare.
1302 * remote.c (struct remote_state) <notif_state>: New field.
1303 (remote_close): Don't call
1304 remote_notif_unregister_async_event_handler. Call
1305 remote_notif_state_xfree.
1306 (remote_open_1): Don't call
1307 remote_notif_register_async_event_handler. Call
1308 remote_notif_state_allocate.
1309
1310 2013-10-04 Yao Qi <yao@codesourcery.com>
1311
1312 * varobj.c (create_child_with_value): Remove 'const' from the
1313 type of parameter 'name'.
1314 (varobj_add_child): Likewise.
1315 (install_dynamic_child): Remove 'const' from the type of
1316 parameter 'name'.
1317 (varobj_add_child): Likewise.
1318 (create_child_with_value): Likewise. Update comments. Don't
1319 duplicate 'name'.
1320 (update_dynamic_varobj_children): Duplicate 'name'
1321 and pass it to install_dynamic_child.
1322
1323 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1324
1325 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1326 conversion logic to occur after PyLong_Check. Comment on order
1327 change significance.
1328 * python/py-arch.c (archpy_disassemble): Comment on order of
1329 conversion for integers and longs.
1330
1331 2013-10-03 Pedro Alves <palves@redhat.com>
1332
1333 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1334 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1335 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1336 PTRACE_O_TRACEFORK is not supported.
1337 (linux_test_for_tracesysgood): New function.
1338 (linux_test_for_tracefork): New function, factored out from
1339 linux_check_ptrace_features, and also don't kill child_pid here.
1340
1341 2013-10-03 Tristan Gingold <gingold@adacore.com>
1342
1343 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1344 Remove verbose error reporting. Use detected state to
1345 thread_set_state call.
1346 (i386_darwin_dr_get): Fix return type. Remove verbose error
1347 report.
1348 Remove trailing spaces.
1349
1350 2013-10-02 Pedro Alves <palves@redhat.com>
1351
1352 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1353 val_print_optimized_out.
1354 * jv-valprint.c (java_print_value_fields): Likewise.
1355 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1356 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1357 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1358 new optimized out value.
1359 * findvar.c (address_from_register): Likewise.
1360 * frame.c (put_frame_register): Tweak error string to say the
1361 register was not saved, rather than optimized out.
1362 * infcmd.c (default_print_one_register_info): Adjust call to
1363 val_print_optimized_out. Use value_of_register instead of
1364 get_frame_register_value.
1365 * mi/mi-main.c (output_register): Use value_of_register instead of
1366 get_frame_register_value.
1367 * valprint.c (valprint_check_validity): Likewise.
1368 (val_print_optimized_out): New value parameter. If the value is
1369 lval_register, print <not saved> instead.
1370 (value_check_printable, val_print_scalar_formatted): Adjust calls
1371 to val_print_optimized_out.
1372 * valprint.h (val_print_optimized_out): New value parameter.
1373 * value.c (struct value) <optimized_out>: Extend comment.
1374 (error_value_optimized_out): New function.
1375 (require_not_optimized_out): Use it. Use a different string for
1376 lval_register values.
1377 * value.h (error_value_optimized_out): New declaration.
1378 * NEWS: Mention <not saved>.
1379
1380 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1381
1382 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1383 strcmp to compare two symtab filenames.
1384
1385 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1386
1387 * symtab.c (search_symbols_equal): Delete.
1388 (sort_search_symbols_remove_dups): Replace call to
1389 search_symbols_equal by call to compare_search_syms,
1390 adjusting as necessary.
1391
1392 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1393
1394 PR python/15579
1395 * python/python.c: Document gdb.execute command in Python help.
1396
1397 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1398
1399 * python/py-frame.c (frame_info_to_frame_object): Use
1400 gdbpy_convert_exception. Clean up Python object on failure.
1401
1402 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1403
1404 * python/lib/gdb/command/frame_filters.py
1405 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1406 (ShowFrameFilterPriority.invoke): Ditto.
1407
1408 2013-10-01 Keith Seitz <keiths@redhat.com>
1409
1410 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1411 (parse_linespec): Make 'argptr' const.
1412 Remove temporary cast of 'argptr' to const char **.
1413 (decode_line_full): Pass const pointer to parse_linespec.
1414 (decode_line_1): Likewise.
1415 (decode_objc): Make local variable 'new_argptr' const.
1416 (find_function_symbols): Remove temporary cast to char *
1417 to find_imps.
1418 * objc-lang.c (find_imps): Make argument 'method' const.
1419 Return const.
1420 * objc-lang.h (find_imps): Likewise.
1421
1422 2013-10-01 Keith Seitz <keiths@redhat.com>
1423
1424 * completer.c (skip_quoted_chars): Make all arguments const.
1425 Return const.
1426 (skip_quoted): Likewise.
1427 * completer.h (skip_quoted_chars): Likewise.
1428 (skip_quoted): Likewise.
1429 * defs.h (skip_quoted): Remove duplicate declaration.
1430 * jv-exp.y: Include completer.h.
1431 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1432 * p-exp.y: Include completer.h.
1433
1434 2013-10-01 Keith Seitz <keiths@redhat.com>
1435
1436 * c-exp.y (parse_number): Make first argument const.
1437 Make a copy of the input to manipulate.
1438 (c_parse_escape): Make first argument const.
1439 Make local variable 'tokptr' const.
1440 (parse_string_or_char): Make first two arguments const.
1441 (macro_original_text): Make const.
1442 (lex_one_token): Make local variable 'tokstart' const.
1443 Likewise for local variables named 'p'.
1444 Cast away const for struct stoken (temporary).
1445 * c-lang.h (c_parse_escpae): Make first argument const.
1446 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1447 const.
1448 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1449 var_string case.
1450 * f-exp.y (parse_number): Make first argument const.
1451 (match_string_literal): Make local variable 'tokstart'
1452 const.
1453 (yylex): Make local variable 'p' const.
1454 Cast away const for struct stoken (temporary).
1455 * go-exp.y (parse_number): Make first argument const.
1456 (parse_string_or_char): Likewise.
1457 Make local variable 'tokstart' const.
1458 (lex_one_token): Likewise for numerous locals called 'p'.
1459 Cast away const for struct stoken (temporary).
1460 * jv-exp.y (parse_number): Make first argument const.
1461 Make local variables 'tokstart' and 'tokptr' const.
1462 Cast away const for call to skip_quoted (temporary).
1463 (yylex): Make local variable 'p' const.
1464 Cast away const for struct stoken (temporary).
1465 * m2-exp.y (parse_number): Make local variable 'p' const.
1466 (yylex): Likewise for 'tokstart'.
1467 Cast away const for struct stoken (temporary).
1468 Make local variable 'p' const.
1469 * macroexp.c (get_character_constant): Pass a const string
1470 to c_parse_escape.
1471 (get_string_literal): Likewise.
1472 (macro_expand_next): Make first argument const.
1473 Cast away const for init_shared_buffer.
1474 * macroexp.h (macro_expand_next): Make first argument const.
1475 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1476 Pass a const string to c_parse_escape.
1477 Make local variables 'p' and 'namestart' const.
1478 * parse.c (lexptr): Make const.
1479 (prev_lexptr): Likewise.
1480 (find_template_name_end): Return const.
1481 Make argument const, too.
1482 (parse_exp_in_context): Make first argument const.
1483 Remove the entire const_hack.
1484 (parse_exp_in_context_1): Make first argument const.
1485 * parser-defs.h (find_template_name_end): Return const.
1486 Make argument const, too.
1487 (lexptr): Make const.
1488 (prev_lexptr): Likewise.
1489 * utils.c (parse_escape): Make second argument const.
1490 * utils.h (parse_escape): Likewise.
1491
1492 2013-10-01 Keith Seitz <keiths@redhat.com>
1493
1494 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1495 is now const.
1496 (block_lookup): Make 'raw_name' and 'name' const.
1497 * ada-lex.l (processString): Update for struct stoken.ptr.
1498 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1499 (operator_stoken): Likewise.
1500 (lex_one_token): Remove temporary cast to char * for
1501 'yylval.sval.ptr'.
1502 * f-exp.y (yylex): Likewise.
1503 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1504 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1505 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1506 'yylval.sval.ptr'.
1507 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1508 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1509 * linespec.c (struct ls_parser): Make 'stream' const.
1510 (find_parameter_list_end): Make argument 'input' and local
1511 variable 'p' const.
1512 (linespec_lexer_lex_string): Make local variables 'start' and
1513 'p' const.
1514 Use skip_spaces_const instead of skip_spaces.
1515 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1516 const.
1517 (parse_linespec): Temporarily cast 'argptr' to const for
1518 'parser->lexer.stream'.
1519 * m2-exp.y (yylex): Remove temporary cast to char * for
1520 'yylval.sval.ptr'.
1521 * objc-lang.c (add_msglist): Make local variable 'p' const.
1522 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1523 (exp : STRING): Make 'sp' const.
1524 (parse_number): Make argument 'p' const.
1525 * parser-defs.h (struct stoken): Make 'ptr' const.
1526
1527 2013-10-01 Doug Evans <dje@google.com>
1528
1529 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1530
1531 2013-10-01 Yao Qi <yao@codesourcery.com>
1532
1533 * varobj.c (c_value_of_root): Remove declaration.
1534 (cplus_value_of_root, java_value_of_root): Likewise.
1535 (ada_value_of_root): Likewise.
1536 (struct language_specific) <value_of_root>: Remove.
1537 (languages): Update initialization.
1538 (check_scope): Move earlier.
1539 (c_value_of_root): Move earlier and rename to ...
1540 (value_of_root_1): ... this.
1541 (value_of_root): Caller update.
1542 (cplus_value_of_root, java_value_of_root): Remove.
1543 (ada_value_of_root): Remove.
1544
1545 2013-10-01 Yao Qi <yao@codesourcery.com>
1546
1547 * varobj.c (varobj_format_string): Remove "unknown".
1548 (languages): Remove the first element.
1549 * varobj.h (enum varobj_languages): Remove vlang_c.
1550
1551 2013-10-01 Yao Qi <yao@codesourcery.com>
1552
1553 * varobj.c (struct language_specific) <language>: Remove.
1554 (languages): Update the initialization.
1555
1556 2013-10-01 Yao Qi <yao@codesourcery.com>
1557
1558 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1559 "solib-target.h". Include "windows-tdep.h".
1560 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1561 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1562 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1563 windows-tdep.o to gdb_target_obs.
1564
1565 2013-10-01 Yao Qi <yao@codesourcery.com>
1566
1567 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1568 "solib-target.h".
1569 (amd64_windows_init_abi): Don't call set_solib_ops and
1570 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1571 windows_init_abi instead.
1572 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1573 "solib-target.h".
1574 (i386_cygwin_init_abi): Don't call set_solib_ops,
1575 set_gdbarch_has_dos_based_file_system and
1576 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1577 windows_init_abi instead.
1578 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1579 (windows_init_abi): New function.
1580 (windows_iterate_over_objfiles_in_search_order): Make it
1581 static.
1582 * windows-tdep.h (windows_init_abi): Declare.
1583 (windows_iterate_over_objfiles_in_search_order): Remove
1584 declaration.
1585
1586 2013-10-01 Jerome Guitton <guitton@adacore.com>
1587
1588 Checked in by Joel Brobecker <brobecker@adacore.com>
1589 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1590 incomplete dictionnary instead of None in case of missing
1591 environment variables.
1592 (elinos_init): in case of an incomplete environment, best
1593 effort to load system libraries instead of abort.
1594
1595 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1596
1597 * ada-lang.c (ada_has_this_exception_support): Ignore
1598 mst_solib_trampoline minimal symbols.
1599
1600 2013-09-30 Tristan Gingold <gingold@adacore.com>
1601
1602 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1603 hardware watchpoint.
1604 (i386_darwin_dr_set): Support 32 and 64 bit states.
1605 (i386_darwin_dr_get): Likewise.
1606 (i386_darwin_dr_set_control): Make static.
1607 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1608 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1609
1610 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1611
1612 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1613 Replace TIDGET with ptid_get_lwp.
1614 Replace GET_LWP with ptid_get_lwp.
1615 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1616 Replace BUILD_THREAD with ptid_build.
1617 Replace BUILD_LWP with ptid_build.
1618 Replace PIDGET with ptid_get_pid.
1619 Replace TIDGET with ptid_get_lwp.
1620 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1621 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1622 Replace TIDGET with ptid_get_lwp.
1623 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1624 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1625 Replace TIDGET with ptid_get_lwp.
1626 Replace GET_LWP with ptid_get_lwp.
1627 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1628 * auxv.c: Likewise.
1629 * breakpoint.c: Likewise.
1630 * common/ptid.c (ptid_is_pid): Condense check for
1631 null_ptid and minus_one_ptid.
1632 (ptid_lwp_p): New function.
1633 (ptid_tid_p): New function.
1634 * common/ptid.h: Update comments for accessors.
1635 (ptid_lwp_p): New prototype.
1636 (ptid_tid_p): New prototype.
1637 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1638 * gcore.c: Replace PIDGET with ptid_get_pid.
1639 * gdbthread.h: Likewise.
1640 * gnu-nat.c: Likewise.
1641 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1642 Replace TIDGET with ptid_get_lwp.
1643 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1644 * hppanbsd-nat.c: Likewise.
1645 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1646 Replace TIDGET with ptid_get_lwp.
1647 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1648 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1649 * infcmd.c: Likewise.
1650 * inferior.h: Likewise.
1651 * inflow.c: Likewise.
1652 * infrun.c: Likewise.
1653 * linux-fork.c: Likewise.
1654 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1655 Replace GET_PID with ptid_get_pid.
1656 Replace is_lwp with ptid_lwp_p.
1657 Replace GET_LWP with ptid_get_lwp.
1658 Replace BUILD_LWP with ptid_build.
1659
1660 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1661
1662 * common/linux-btrace.c: Move sys/syscall.h out of the
1663 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1664 Also check for SYS_perf_event_open before attempting to buid.
1665
1666 2013-09-27 Doug Evans <dje@google.com>
1667
1668 * dwarf2read.c (dwarf2_section_info): Add comment.
1669 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1670 All uses updated.
1671 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1672 (dwarf2_read_section): Delete unused local "header". Add section
1673 name to error message.
1674 (create_dwo_in_dwp): Tweak comment.
1675 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1676
1677 * dwarf2read.c (die_reader_specs): Tweak comment.
1678 (get_section_bfd_owner, get_section_bfd_section): New functions.
1679 (get_section_name, get_section_file_name): New functions.
1680 (get_section_id, get_section_flags): New functions.
1681 (*): Use new functions to access section fields.
1682
1683 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1684 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1685 arg "htab". All callers updated.
1686 (create_debug_types_hash_table): Remove redundant copy of
1687 abbrev_section.
1688 (create_dwo_in_dwp): Tweak comments.
1689 (read_str_index): Tweak comment. Record dwarf form name in static
1690 local.
1691
1692 2013-09-27 Pedro Alves <palves@redhat.com>
1693
1694 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1695 (remote_filename_p): Add comment.
1696 * remote.c (remote_filename_p): Adjust to use
1697 REMOTE_SYSROOT_PREFIX.
1698 * solib.c (solib_find): When deciding whether we need to add a
1699 directory separator, check whether the sysroot is "remote:"
1700 instead of checking whether the patch has a drive spec. Add
1701 comments.
1702
1703 2013-09-27 Pedro Alves <palves@redhat.com>
1704
1705 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1706 Delete fields.
1707 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1708 directly.
1709
1710 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1711
1712 Fix set debug frame output.
1713 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1714 SENTINEL_FRAME entry lower to match enum frame_type order.
1715
1716 2013-09-26 Pierre Muller <muller@sourceware.org>
1717
1718 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1719 AMD64_R15_REGNUM when a register index is expected.
1720 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1721 Substitute in array.
1722 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1723 (amd64_push_arguments): Substitute in integer_regnum array.
1724
1725 2013-09-25 Doug Evans <dje@google.com>
1726
1727 * objfiles.c (allocate_objfile): Move comment to better place.
1728
1729 New option "set debug symfile on".
1730 * NEWS: Mention "set debug symfile".
1731 * Makefile.in (SFILES): Add symfile-debug.c.
1732 (COMMON_OBS): Add symfile-debug.o.
1733 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1734 objfile's symbol functions.
1735 * objfiles.h (objfile_set_sym_fns): Declare.
1736 * symfile-debug.c: New file.
1737 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1738 objfile's symbol functions.
1739 (reread_symbols): Ditto.
1740
1741 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1742 All uses updated.
1743 (add_symtab_fns): Update prototype.
1744 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1745 (registered_sym_fns): ... this.
1746 (symtab_fns): Update.
1747 (add_symtab_fns): New arg "flavour". All callers updated.
1748 (find_sym_fns): Rewrite to use new sym_fns registry.
1749
1750 * symfile.h (struct sym_fns): Add "objfile" argument to
1751 sym_read_linetable. All uses updated.
1752
1753 * symtab.c (domain_name, search_domain_name): New functions.
1754 * symtab.h (domain_name, search_domain_name): Declare.
1755
1756 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1757 map_matching_symbols so objfile is first. All uses updated.
1758 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1759 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1760
1761 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1762
1763 PR shlibs/8882
1764 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1765 link map entries.
1766
1767 2013-09-24 Doug Evans <dje@google.com>
1768
1769 * objfiles.c (free_objfile): Move comment.
1770
1771 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1772
1773 * ada-exp.y (string_to_operator): Delete.
1774 (dummy_string_to_ada_operator): Delete.
1775
1776 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1777
1778 Revert:
1779 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1780 amd64-tdep.c.
1781 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1782 call_dummy_integer_regs, and classify.
1783 * amd64-tdep.h (amd64_classify): Add declaration.
1784 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1785 (amd64_reg_class): Delete, moved to i386-tdep.h.
1786 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1787 Replace call to amd64_classify by call to tdep->classify.
1788 (amd64_push_arguments): Get the list of registers to use for
1789 passing integer parameters from the gdbarch tdep structure,
1790 rather than using a hardcoded one. Replace calls to amd64_classify
1791 by calls to tdep->classify.
1792 (amd64_push_dummy_call): Get the register number used for
1793 the "hidden" argument from tdep->call_dummy_integer_regs.
1794 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1795 and tdep->call_dummy_integer_regs. Set tdep->classify.
1796
1797 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1798
1799 Revert:
1800 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1801 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1802 where tdep->memory_args_by_pointer is non-zero.
1803
1804 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1805
1806 Revert:
1807 * i386-tdep.h (struct gdbarch_tdep): Add new field
1808 integer_param_regs_saved_in_caller_frame.
1809 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1810 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1811
1812 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1813
1814 * amd64-windows-tdep.c: #include "value.h"
1815 (amd64_windows_classify): Delete.
1816 (amd64_windows_passed_by_integer_register)
1817 (amd64_windows_passed_by_xmm_register)
1818 (amd64_windows_passed_by_pointer)
1819 (amd64_windows_adjust_args_passed_by_pointer)
1820 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1821 (amd64_windows_push_dummy_call): New functions.
1822 (amd64_windows_init_abi): Remove setting of
1823 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1824 tdep->classify, tdep->memory_args_by_pointer and
1825 tdep->integer_param_regs_saved_in_caller_frame.
1826 Add call to set_gdbarch_push_dummy_call.
1827
1828 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1829
1830 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1831 objfile->original_name.
1832
1833 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1834
1835 Pass down original filename for objfile.
1836 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1837 * elfread.c (elf_symfile_read): Likewise.
1838 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1839 longer set ORIGINAL_NAME.
1840 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1841 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1842 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1843 symbol_file_add_from_bfd call.
1844 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1845 (macho_check_dsym): Add parameter filenamep. Change function comment.
1846 Set *filenamep.
1847 (macho_symfile_read): New variable dsym_filename. Update
1848 macho_check_dsym call. Use it for symbol_file_add_separate.
1849 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1850 it. Use it for objfile->original_name.
1851 (objfile_name): Return OBFD's filename, if available.
1852 * objfiles.h (allocate_objfile): Add new parameter name.
1853 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1854 * symfile-mem.c (symbol_file_add_from_memory): Update
1855 symbol_file_add_from_bfd call.
1856 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1857 comment for it.
1858 (symbol_file_add_with_addrs): New parameter name, add function comment
1859 for it. Remove variable name. Update allocate_objfile call.
1860 (symbol_file_add_separate): New parameter name, add function comment
1861 for it. Update symbol_file_add_with_addrs call.
1862 (symbol_file_add_from_bfd): New parameter name. Update
1863 symbol_file_add_with_addrs call.
1864 (symbol_file_add): Update symbol_file_add_from_bfd call.
1865 (reread_symbols): New variable original_name. Save
1866 objfile->original_name by it.
1867 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1868 second parameter.
1869
1870 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1871
1872 Code cleanup: Add objfile_name accessor function.
1873 * ada-lang.c (is_known_support_routine): Use objfile_name.
1874 * auto-load.c (source_gdb_script_for_objfile)
1875 (auto_load_objfile_script): Likewise.
1876 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1877 * dbxread.c (dbx_symfile_read): Likewise.
1878 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1879 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1880 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1881 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1882 (lookup_dwp_signatured_type, lookup_dwo_unit)
1883 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1884 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1885 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1886 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1887 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1888 (read_subrange_type, load_partial_dies, read_partial_die)
1889 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1890 (die_containing_type, build_error_marker_type, lookup_die_type)
1891 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1892 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1893 (get_DW_AT_signature_type, write_psymtabs_to_index)
1894 (save_gdb_index_command): Likewise.
1895 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1896 Likewise.
1897 * expprint.c (dump_subexp_body_standard): Likewise.
1898 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1899 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1900 original_name.
1901 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1902 obj_name, use objfile_name for it, use the variable.
1903 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1904 Use objfile_name.
1905 * machoread.c (macho_symtab_read, macho_check_dsym)
1906 (macho_symfile_relocate): Likewise.
1907 * maint.c (maintenance_translate_address): Likewise.
1908 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1909 * minsyms.c (install_minimal_symbols): Likewise.
1910 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1911 original_name.
1912 (filter_overlapping_sections): Use objfile_name.
1913 (objfile_name): New function.
1914 * objfiles.h (struct objfile): Rename field name to original_name.
1915 (objfile_name): New prototype.
1916 * printcmd.c (sym_info, address_info): Use objfile_name.
1917 * probe.c (parse_probes, collect_probes, compare_probes)
1918 (info_probes_for_ops): Likewise.
1919 * progspace.c (clone_program_space): Likewise.
1920 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1921 (maintenance_info_psymtabs): Likewise.
1922 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1923 (source_section_scripts): Likewise.
1924 * python/py-objfile.c (objfpy_get_filename): Likewise.
1925 * python/py-progspace.c (pspy_get_filename): Likewise.
1926 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1927 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1928 * solib.c (solib_read_symbols): Likewise.
1929 * stabsread.c (scan_file_globals): Likewise.
1930 * stap-probe.c (handle_stap_probe): Likewise.
1931 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1932 (find_separate_debug_file_by_debuglink): Likewise.
1933 (reread_symbols): Likewise. Use the objfile field name renamed to
1934 original_name.
1935 (allocate_symtab): Use objfile_name.
1936 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1937 (dump_objfile, dump_msymbols, dump_symtab_1)
1938 (maintenance_print_msymbols, maintenance_print_objfiles)
1939 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1940 * target.c (target_translate_tls_address, target_info): Likewise.
1941 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1942 objfile_name.
1943
1944 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1945
1946 Code cleanup.
1947 * probe.c (parse_probes): Rename variable objfile_name to
1948 objfile_namestr.
1949
1950 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1951
1952 Remove solib-sunos.c.
1953 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1954 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1955 * objfiles.c (rt_common_objfile): Remove.
1956 (free_objfile): Remove rt_common_objfile comparison.
1957 * objfiles.h (rt_common_objfile): Remove.
1958 * solib-sunos.c: Remove.
1959 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1960
1961 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1962
1963 Remove a.out NetBSD and OpenBSD hosts.
1964 * NEWS (Removed native configurations): New.
1965 * config/arm/nbsdaout.mh: Remove.
1966 * config/i386/nbsdaout.mh: Remove.
1967 * config/i386/obsdaout.mh: Remove.
1968 * config/m68k/nbsdaout.mh: Remove.
1969 * config/sparc/nbsdaout.mh: Remove.
1970 * config/vax/nbsdaout.mh: Remove.
1971 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1972 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1973 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1974 error.
1975 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1976 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1977 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1978
1979 2013-09-23 Tom Tromey <tromey@redhat.com>
1980
1981 * linespec.c (struct minsym_and_objfile): Remove.
1982 (minsym_and_objfile_d): Remove.
1983 (struct linespec, struct collect_info, linespec_parse_basic)
1984 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1985 (compare_msymbols, find_method, find_function_symbols)
1986 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1987 (add_minsym, search_minsyms_for_name): Update.
1988
1989 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1990
1991 * regcache.c: Add include of valprint.h.
1992 (dump_endian_bytes): Delete.
1993 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1994
1995 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1996
1997 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1998
1999 2013-09-19 Pedro Alves <palves@redhat.com>
2000
2001 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2002 breakpoints.
2003
2004 2013-09-19 Pedro Alves <palves@redhat.com>
2005 Thomas Schwinge <thomas@codesourcery.com>
2006 Yue Lu <hacklu.newborn@gmail.com>
2007
2008 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2009 Take a gdb_byte pointer instead of a char pointer.
2010
2011 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2012 gnu_xfer_partial helper.
2013 (gnu_xfer_partial): New function.
2014 (gnu_target): Don't install a deprecated_xfer_memory hook.
2015 Install a to_xfer_partial hook.
2016
2017 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2018
2019 Constification.
2020 * main.c (captured_main): Replace catch_command_errors by
2021 catch_command_errors_const. Twice.
2022 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2023 (symbol_file_add): Make name parameter const.
2024 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2025 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2026 variable name. Change their usage accordingly.
2027 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2028 const.
2029 (symbol_file_add_main): Make args parameter const.
2030
2031 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2032 Ulrich Weigand <uweigand@de.ibm.com>
2033
2034 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2035 of c_value member.
2036 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2037
2038 2013-09-18 Pedro Alves <palves@redhat.com>
2039 Yue Lu <hacklu.newborn@gmail.com>
2040
2041 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2042 (gnu_create_inferior)
2043 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2044 (set_sig_thread_cmd): Use the lwpid field of ptids to
2045 store/extract thread ids instead of the tid field.
2046 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2047
2048 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2049
2050 * infcmd.c (default_print_one_register_info): Add detection of
2051 optimized out values.
2052 (default_print_registers_info): Switch to using
2053 get_frame_register_value.
2054
2055 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2056
2057 * infrun.c (handle_inferior_event): Check if we know the
2058 function start address before setting a resume breakpoint.
2059
2060 2013-09-18 Pedro Alves <palves@redhat.com>
2061
2062 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2063 minus_one_ptid instead of looking at the ptid's tid field and
2064 comparing that to -1.
2065
2066 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2067
2068 * main.h (get_gdb_program_name): Remove extra whitespace.
2069
2070 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2071
2072 * main.h (get_gdb_program_name): Add declaration.
2073 * main.c (get_gdb_program_name): Add definition.
2074
2075 2013-09-17 Doug Evans <dje@google.com>
2076
2077 * dwarf2read.c: Move definitions of complaint functions to after
2078 forward declarations of local functions.
2079
2080 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2081 Pedro Alves <palves@redhat.com>
2082
2083 PR gdb/11568
2084 * breakpoint.c (remove_threaded_breakpoints): New function.
2085 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2086 as thread_exit observer.
2087
2088 2013-09-17 Pedro Alves <palves@redhat.com>
2089
2090 PR gdb/15911
2091 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2092 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2093 * corelow.c (core_open):
2094 * frame.h (print_stack_frame, print_frame_info): New
2095 'set_current_sal' parameter.
2096 * infcmd.c (finish_command, kill_command): Adjust call to
2097 print_stack_frame.
2098 * inferior.c (inferior_command): Likewise.
2099 * infrun.c (normal_stop): Likewise.
2100 * linux-fork.c (linux_fork_context): Likewise.
2101 * record-full.c (record_full_goto_entry, record_full_restore):
2102 Likewise.
2103 * remote-mips.c (common_open): Likewise.
2104 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2105 Use it.
2106 (print_frame_info): New 'set_current_sal' parameter. Set the last
2107 displayed sal depending on the new paremeter instead of looking at
2108 print_what.
2109 (backtrace_command_1, select_and_print_frame, frame_command)
2110 (current_frame_command, up_command, down_command): Adjust call to
2111 print_stack_frame.
2112 * thread.c (print_thread_info, restore_selected_frame)
2113 (do_captured_thread_select): Adjust call to print_stack_frame.
2114 * tracepoint.c (tfind_1): Likewise.
2115 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2116 (mi_cmd_stack_info_frame): Likewise.
2117 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2118 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2119
2120 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2121
2122 * value.c (isvoid_internal_fn): Replace "parameter" with
2123 "argument".
2124
2125 2013-09-16 Stan Shebs <stan@codesourcery.com>
2126
2127 * README: Update references to writing code for GDB.
2128 * configure.ac (build_warnings): Remove obsolete comment.
2129 * configure: Regenerate.
2130 * gdbarch.sh: Remove references to gdbint.texinfo.
2131 * gdbarch.h: Regenerate.
2132 * gdbtypes.c (objfile_type): Remove comments referencing internals
2133 manual and D10V.
2134
2135 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2136
2137 * NEWS: Mention new convenience function $_isvoid.
2138 * value.c (isvoid_internal_fn): New function.
2139 (_initialize_values): Add new convenience function $_isvoid.
2140
2141 2013-09-16 Pierre Muller <muller@sourceware.org>
2142
2143 * arm-linux-tdep.c: Add "elf/common.h" header.
2144 Remove AT_HWCAP macro definintion as it is provided in
2145 added include file.
2146 * s390-tdep.c: Remove system header <elf.h>
2147 Add "elf/common.h" header for AT_HWCAP definition.
2148 (s390_core_read_description): Use correct CORE_ADDR
2149 for hwcap local variable used as third parameter
2150 of function target_auxv_search.
2151
2152 2013-09-14 Pierre Muller <muller@sourceware.org>
2153 Tom Tromey <tromey@redhat.com>
2154 Pedro Alves <palves@redhat.com>
2155
2156 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2157 mode if operating system doesn't know O_CLOEXEC.
2158
2159 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2160
2161 Code cleanup.
2162 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2163 inner block.
2164
2165 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2166
2167 * NEWS: Mention TDB support.
2168 * features/s390-tdb.xml: New file.
2169 * features/s390-te-linux64.xml: New file.
2170 * features/s390x-te-linux64.xml: New file.
2171 * features/Makefile (WHICH): Add new tdescs above.
2172 (s390-te-linux64-expedite): Set.
2173 (s390x-te-linux64-expedite): Set.
2174 * features/s390-te-linux64.c: New file (generated).
2175 * features/s390x-te-linux64.c: New file (generated).
2176 * regformats/s390-te-linux64.dat: New file (generated).
2177 * regformats/s390x-te-linux64.dat: New file (generated).
2178 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2179 (HWCAP_S390_TE): Likewise.
2180 (S390_TDB_DWORD0_REGNUM): Likewise.
2181 (S390_TDB_DWORD0_REGNUM): Likewise.
2182 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2183 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2184 (S390_TDB_ATIA_REGNUM): Likewise.
2185 (S390_TDB_R0_REGNUM): Likewise.
2186 (S390_TDB_R1_REGNUM): Likewise.
2187 (S390_TDB_R2_REGNUM): Likewise.
2188 (S390_TDB_R3_REGNUM): Likewise.
2189 (S390_TDB_R4_REGNUM): Likewise.
2190 (S390_TDB_R5_REGNUM): Likewise.
2191 (S390_TDB_R6_REGNUM): Likewise.
2192 (S390_TDB_R7_REGNUM): Likewise.
2193 (S390_TDB_R8_REGNUM): Likewise.
2194 (S390_TDB_R9_REGNUM): Likewise.
2195 (S390_TDB_R10_REGNUM): Likewise.
2196 (S390_TDB_R11_REGNUM): Likewise.
2197 (S390_TDB_R12_REGNUM): Likewise.
2198 (S390_TDB_R13_REGNUM): Likewise.
2199 (S390_TDB_R14_REGNUM): Likewise.
2200 (S390_TDB_R15_REGNUM): Likewise.
2201 (S390_NUM_REGS): Increase.
2202 (S390_IS_TDBREGSET_REGNUM): New macro.
2203 (s390_regmap_tdb): Declare.
2204 (s390_sizeof_tdbregset): Define.
2205 (tdesc_s390_te_linux64): Declare.
2206 (tdesc_s390x_te_linux64): Likewise.
2207 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2208 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2209 (s390_regmap_tdb): New regmap.
2210 (s390_supply_tdb_regset): New function.
2211 (s390_tdb_regset): New regset.
2212 (s390_linux64v2_regset_sections): Add TDB regset to list.
2213 (s390x_linux64v2_regset_sections): Likewise.
2214 (s390_regset_from_core_section): Recognize TDB core note section.
2215 (s390_core_read_description): If HWCAP indicates TE support,
2216 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2217 (s390_gdbarch_init): Handle TDB regset.
2218 (_initialize_s390_tdep): Initialize new tdescs.
2219 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2220 (have_regset_tdb): New variable.
2221 (s390_native_supply): Support register invalidation.
2222 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2223 (check_regset): Treat ENODATA as "regset exists".
2224 (s390_linux_fetch_inferior_registers): Add TDB.
2225 (s390_read_description): Check for TDB existence and select
2226 appropriate tdesc.
2227 * gdbserver/Makefile.in (clean): Add removal of new makefile
2228 targets.
2229 (s390-te-linux64.c): New makefile target.
2230 (s390x-te-linux64.c): Likewise.
2231 * gdbserver/configure.srv (srv_regobj): Append new objects
2232 s390-te-linux64.o and s390x-te-linux64.o.
2233 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2234 s390x-te-linux64.xml, and s390-tdb.xml.
2235 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2236 declaration.
2237 (tdesc_s390_te_linux64): Likewise.
2238 (init_registers_s390x_te_linux64): Likewise.
2239 (tdesc_s390x_te_linux64): Likewise.
2240 (s390_check_regset): Treat ENODATA as "regset exists".
2241 (s390_arch_setup): Add TDB regset support.
2242 (initialize_low_arch): Initialize registers for new tdescs.
2243
2244 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2245
2246 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2247 (S390_IS_FPREGSET_REGNUM): New macro.
2248 * s390-tdep.c (s390_dwarf_regmap): Make const.
2249 (regnum_is_gpr_full): New function for replacing repeated code.
2250 (s390_pseudo_register_name): Use it.
2251 (s390_pseudo_register_type): Likewise.
2252 (s390_pseudo_register_read): Likewise.
2253 (s390_pseudo_register_write): Likewise.
2254 (s390_unwind_pseudo_register): Likewise.
2255 (s390_regmap_gregset): New format for regmap.
2256 (s390x_regmap_gregset): Likewise.
2257 (s390_regmap_fpregset): Likewise.
2258 (s390_regmap_upper): Likewise.
2259 (s390_regmap_last_break): Likewise.
2260 (s390_regmap_system_call): Likewise.
2261 (s390_supply_regset): Adjust to new regmap format.
2262 (s390_collect_regset): Likewise.
2263 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2264 (s390_native_collect): Likewise.
2265 (supply_gregset): Likewise.
2266 (fill_gregset): Likewise.
2267 (supply_fpregset): Likewise.
2268 (fill_fpregset): Likewise.
2269 (fetch_regset): Likewise.
2270 (store_regset): Likewise.
2271 (s390_linux_fetch_inferior_registers): Likewise.
2272 (s390_linux_fetch_inferior_registers): Likewise.
2273
2274 2013-09-12 Andrew Pinski <apinski@cavium.com>
2275
2276 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2277
2278 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2279
2280 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2281
2282 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2283
2284 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2285
2286 2013-09-06 Pedro Alves <palves@redhat.com>
2287
2288 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2289 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2290 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2291 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2292 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2293 gdb_stdlog.
2294
2295 2013-09-06 Pedro Alves <palves@redhat.com>
2296
2297 * remote-sim.c (dump_mem): Constify buf parameter.
2298 gdbsim_xfer_inferior_memory): Rename to ...
2299 (gdbsim_xfer_memory): ... this. Adjust interface as
2300 target_xfer_partial helper.
2301 (gdbsim_xfer_partial): New function.
2302 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2303 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2304
2305 2013-09-06 Pedro Alves <palves@redhat.com>
2306
2307 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2308 host_address_to_string, and send debug output to gdb_stdlog.
2309
2310 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2311
2312 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2313 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2314 gdb_target_obs for cris target.
2315 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2316 (cris_gdbarch_init): Move calls to
2317 set_gdbarch_fetch_tls_load_module_address and
2318 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2319 Add call to gdbarch_init_osabi.
2320 * cris-linux-tdep.c: New file.
2321 * cris-tdep.h: New file.
2322
2323 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2324
2325 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2326 to deprecated_init_ui_hook.
2327
2328 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2329
2330 * cli/cli-interp.c (_initialize_cli_interp): Add a
2331 command_loop_proc to interp_procs.
2332 * event-top.c (cli_command_loop): Change signature to match
2333 interp_command_loop_ftype.
2334 * event-top.h (cli_command_loop): Same.
2335 * interps.c (interp_new): Require every interpreter to have a
2336 command_loop_proc.
2337 (current_interp_command_loop): Just call the command_loop_proc on
2338 the current interpreter.
2339 * tui/tui-interp.c (_initialize_tui_interp): Add a
2340 command_loop_proc to interp_procs.
2341
2342 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2343
2344 * cris-tdep.c (cris_gdbarch_init): Add call to
2345 get_gdbarch_fetch_tls_load_module_address.
2346
2347 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2348
2349 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2350 (cris_elf_gregset_t): Rename from elf_gregset_t.
2351 (crisv32_elf_gregset_t): Adjust.
2352 (cris_supply_gregset, fetch_core_registers): Adjust.
2353
2354 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2355
2356 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2357
2358 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
2359
2360 * defs.h (deprecated_command_loop_hook): Remove, including
2361 references in comments.
2362 * interps.c (current_interp_command_loop): No longer use
2363 deprecated_command_loop_hook.
2364 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2365 setup.
2366 * top.c (deprecated_command_loop_hook): Remove.
2367
2368 2013-09-05 Pedro Alves <palves@redhat.com>
2369
2370 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2371 local is now int instead of ULONGEST. Print it with %d
2372 instead of paddress.
2373
2374 2013-09-05 Tristan Gingold <gingold@adacore.com>
2375
2376 * MAINTAINERS: Remove avr maintainership.
2377
2378 2013-09-05 Pedro Alves <palves@redhat.com>
2379
2380 * findvar.c (value_of_register): Rework in terms of
2381 value_of_register_lazy.
2382
2383 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2384
2385 * symfile.c (add_symbol_file_command): Remove trailing
2386 whitespaces and blank line after comment.
2387
2388 2013-09-05 Pedro Alves <palves@redhat.com>
2389
2390 * tui/tui-regs.c (tui_register_format): Don't look at the
2391 register's name here. Return string representing register
2392 value instead of storing it in the data element.
2393 (tui_get_register): Compare register string representations
2394 instead of register value states and contents.
2395
2396 2013-09-05 Pedro Alves <palves@redhat.com>
2397
2398 PR tui/15933
2399 * tui/tui-regs.c (tui_show_registers): Show registers of the
2400 selected frame, not the current frame.
2401
2402 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2403
2404 * MAINTAINERS (Write After Approval): Add myself to the list.
2405
2406 2013-09-04 Doug Evans <dje@google.com>
2407
2408 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2409 (queue_and_load_dwo_tu): New function.
2410 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2411 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2412 Make dependent_cu optional.
2413 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2414 and an older .gdb_index is in use, queue and load all its TUs too.
2415
2416 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2417
2418 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2419 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2420 variable search_flags.
2421 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2422 (OPF_RETURN_REALPATH): ... here.
2423 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2424 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2425 call. Twice.
2426 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2427 openp call.
2428 * solib.c (solib_find): Likewise. Four times.
2429 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2430 in the function comment and for the realpath_fptr variable.
2431 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2432 (find_and_open_source): Likewise. Twice.
2433 * symfile.c (symfile_bfd_open): Likewise, also twice.
2434
2435 2013-09-04 Doug Evans <dje@google.com>
2436
2437 * progspace.c (save_current_space_and_thread): Remove unnecessary
2438 call to save_current_inferior.
2439
2440 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2441
2442 * sh64-tdep.c (sh64_do_register): Return after printing message
2443 about unavailable register contents.
2444
2445 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2446 Pedro Alves <palves@redhat.com>
2447
2448 * symfile.c (add_symbol_file_command): Error out on unknown
2449 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2450 options and collapse into single conditional branch.
2451
2452 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2453
2454 * inf-child.c (inf_child_follow_fork): New parameter
2455 detach_fork.
2456 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2457 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2458 * inferior.h (detach_fork): Remove.
2459 * infrun.c (detach_fork): Adjust comment and make it
2460 static.
2461 (follow_fork): Pass detach_fork parameter to
2462 target_follow_fork.
2463 * linux-nat.c (linux_child_follow_fork): New parameter
2464 detach_fork.
2465 * target.c (target_follow_fork): New parameter detach_fork.
2466 Pass detach_fork as parameter and print its value.
2467 * target.h (struct target_ops) <to_follow_fork>: New int
2468 parameter.
2469 (target_follow_fork): New parameter detach_fork.
2470
2471 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2472
2473 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2474 Replace sec->bfd by sec->the_bfd_section->owner.
2475
2476 2013-09-03 Yao Qi <yao@codesourcery.com>
2477
2478 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2479 from linux_has_shared_address_space.
2480 (linux_has_shared_address_space): Call linux_is_uclinux.
2481 * linux-tdep.h (linux_is_uclinux): Declare.
2482 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2483 linux_is_uclinux.
2484
2485 2013-09-03 Yao Qi <yao@codesourcery.com>
2486
2487 * config/djgpp/fnchange.lst: Remove entry of
2488 i386-interix-nat.c and i386-interix-tdep.c.
2489 * configure.ac: Remove '*-*-interix*'.
2490 * configure: Re-generated.
2491 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2492 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2493 obsolete comments.
2494 * osabi.c (gdb_osabi_names): Remove "Interix".
2495
2496 2013-09-03 Yao Qi <yao@codesourcery.com>
2497
2498 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2499
2500 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2501
2502 * record.h (record_print_flag) <record_print_src_line,
2503 record_print_insn_range>: Rename into ...
2504 (record_print_flag) <record_print_src_line,
2505 record_print_insn_range>: ... this. Update all users.
2506
2507 2013-09-02 Pierre Muller <muller@sourceware.org>
2508
2509 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2510 error code.
2511
2512 2013-09-02 Pierre Muller <muller@sourceware.org>
2513
2514 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2515 by use of plongest function.
2516
2517 2013-09-02 Tristan Gingold <gingold@adacore.com>
2518
2519 * NEWS: Add entry mentioning support for native Windows x64
2520 SEH data.
2521
2522 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2523 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2524 (struct amd64_windows_frame_cache): New struct.
2525 (amd64_windows_w2gdb_regnum): New global.
2526 (pc_in_range, amd64_windows_frame_decode_epilogue)
2527 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2528 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2529 (amd64_windows_frame_this_id): New functions.
2530 (amd64_windows_frame_unwind): New static global.
2531 (amd64_windows_skip_prologue): New function.
2532 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2533 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2534 with amd64_windows_skip_prologue.
2535
2536 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2537
2538 GDB 7.6.1 released.
2539
2540 2013-08-30 Pedro Alves <palves@redhat.com>
2541
2542 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2543 SRC_AND_LOC.
2544
2545 2013-08-30 Pedro Alves <palves@redhat.com>
2546
2547 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2548 warning text.
2549
2550 2013-08-30 Pedro Alves <palves@redhat.com>
2551
2552 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2553 Adjust arguments to print_stack_frame.
2554
2555 2013-08-30 Pedro Alves <palves@redhat.com>
2556
2557 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2558
2559 2013-08-30 Pedro Alves <palves@redhat.com>
2560
2561 * frame.h (show_and_print_stack_frame): Delete declaration.
2562
2563 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2564
2565 PR python/15461
2566 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2567 (archpy_name): Check for valid architecture.
2568 (archpy_disassemble): Ditto.
2569
2570 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2571
2572 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2573 instead of "long long" in call to ptrace64.
2574
2575 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2576
2577 * mi/mi-interp.c (mi_command_loop): Change signature to match
2578 interp_command_loop_ftype.
2579 (mi1_command_loop): Remove.
2580 (mi2_command_loop): Remove.
2581 (mi3_command_loop): Remove.
2582 (mi_interpreter_resume): Remove setting of
2583 deprecated_command_loop_hook.
2584 (_initialize_mi_interp): Set mi_command_loop as the command loop
2585 callback.
2586
2587 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2588
2589 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2590 value_type.
2591
2592 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2593
2594 * value.c (allocate_value_contents): Make static.
2595 * value.h (allocate_value_contents): Remove prototype.
2596
2597 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2598
2599 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2600 of assembling value via allocate_value_lazy and attribute setter.
2601 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2602 assembling value via allocate_value_lazy and attribute setter.
2603 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2604 assembling value via allocate_value_lazy and attribute setter.
2605
2606 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2607
2608 * value.c (value_from_contents_and_address): Replace allocate_value and
2609 memcpy with value_from_contents.
2610
2611 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2612
2613 * python/py-framefilter.c (py_print_frame): Remove usage of
2614 PyString_AsString. Use python_string_to_host_string instead.
2615 Refactor function to work with a string as a new allocation
2616 instead of a pointer.
2617 (py_print_frame): Ditto.
2618 * python/lib/gdb/frames.py (return_list): Cain iterators together
2619 instead of adding them as a list.
2620 (_sort_list): Call return_list, and remove duplicate code.
2621 (execute_frame_filters): Convert iterator to a list with list().
2622 * python/lib/gdb/command/frame_filters.py
2623 (SetFrameFilterPriority._set_filter_priority): Convert priority
2624 attribute to an integer.
2625 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2626 wrapper function __next__.
2627 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2628 define as "str".
2629
2630 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2631
2632 PR python/15752
2633 * python/py-framefilter.c (apply_frame_filter): Check
2634 gdb_python_initialized. Exit if the Python frame-filter code
2635 cannot be initialized.
2636
2637 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2638
2639 PR cli/15842
2640 * top.c (print_gdb_version): Remove erroneous newline after help
2641 text.
2642
2643 2013-08-29 Yao Qi <yao@codesourcery.com>
2644
2645 * varobj.c (install_dynamic_child): Remove trailing space.
2646 Add one blank line after variable declaration.
2647
2648 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2649
2650 PR gdb/15415
2651 * corefile.c (get_exec_file): Use exec_filename.
2652 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2653 * exec.c (exec_close): Free EXEC_FILENAME.
2654 (exec_file_attach): New variable canonical_pathname. Use
2655 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2656 EXEC_FILENAME.
2657 * exec.h (exec_filename): New.
2658 * inferior.c (print_inferior, inferior_command): Use
2659 PSPACE_EXEC_FILENAME.
2660 * mi/mi-main.c (print_one_inferior): Likewise.
2661 * progspace.c (clone_program_space, print_program_space): Likewise.
2662 * progspace.h (struct program_space): New field pspace_exec_filename.
2663 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2664 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2665
2666 2013-08-28 Will Newton <will.newton@linaro.org>
2667
2668 * common/linux-ptrace.c: Include stdint.h unconditionally.
2669
2670 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2671
2672 Code cleanup.
2673 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2674
2675 2013-08-28 Yao Qi <yao@codesourcery.com>
2676 Pedro Alves <palves@redhat.com>
2677
2678 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2679 instead of stdio_fileopen.
2680 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2681 .Call stderr_fileopen instead of stdio_fileopen.
2682 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2683 [__MINGW32__] (stderr_file_fputs): New function.
2684 (stderr_fileopen): New function.
2685 * ui-file.h (stderr_fileopen): Declare.
2686
2687 2013-08-27 Doug Evans <dje@google.com>
2688
2689 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2690 (struct dwarf2_per_cu_data): Ditto.
2691 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2692 (process_imported_unit_die): Ditto.
2693 (follow_die_sig_1): Simplify assert.
2694
2695 2013-08-27 Pedro Alves <palves@redhat.com>
2696
2697 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2698 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2699 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2700 windows_xfer_memory directly.
2701 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2702
2703 2013-08-27 Pedro Alves <palves@redhat.com>
2704
2705 * darwin-nat.c (darwin_xfer_memory): Delete.
2706 (_initialize_darwin_inferior): Don't install a
2707 deprecated_xfer_memory method.
2708
2709 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2710 Yao Qi <yao@codesourcery.com>
2711
2712 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2713 (parse_no_frames_option): Remove.
2714 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2715 (mi_cmd_stack_list_args): Adjust.
2716 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2717 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2718 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2719 Caller update.
2720 (list_args_or_locals): New parameter 'skip_unavailable'.
2721 Handle it.
2722 * valprint.c (scalar_type_p): Rename to ...
2723 (val_print_scalar_type_p): ... this. Make extern.
2724 (val_print, value_check_printable): Adjust.
2725 * valprint.h (val_print_scalar_type_p): Declare.
2726 * value.c (value_entirely_unavailable): New function.
2727 * value.h (value_entirely_unavailable): Declare.
2728
2729 * NEWS: Mention the new option "--skip-unavailable" to MI
2730 commands '-stack-list-locals', '-stack-list-arguments' and
2731 '-stack-list-variables'.
2732
2733 2013-08-27 Yao Qi <yao@codesourcery.com>
2734
2735 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2736 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2737 options.
2738 * mi/mi-getopt.c (mi_getopt): Remove.
2739 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2740 'error_on_unknown'.
2741 (mi_getopt): Call mi_getopt_1.
2742 (mi_getopt_silent): New.
2743 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2744
2745 2013-08-26 Doug Evans <dje@google.com>
2746
2747 PR symtab/15885
2748 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2749 .gdb_index is in use.
2750 * symfile.c (reread_symbols): Reset objfile->sf.
2751
2752 * NEWS: Document "mt print objfiles" now takes optional regexp.
2753 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2754 regexp of objfiles to print.
2755 (_initialize_symmisc): Update doc string for "mt print objfiles".
2756
2757 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2758 missing debug info checks.
2759
2760 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2761 Ulrich Weigand <uweigand@de.ibm.com>
2762
2763 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2764 line tables generated by XLC compiled binaries.
2765
2766 2013-08-23 Doug Evans <dje@google.com>
2767
2768 * symmisc.c (dump_symtab): Delete prototype.
2769 (dump_msymbols, dump_objfile): Ditto.
2770 (maintenance_info_symtabs): Mark as dont_repeat.
2771 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2772
2773 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2774 debugging printf to better location.
2775
2776 2013-08-23 Pedro Alves <palves@redhat.com>
2777
2778 * target.c (target_read_live_memory): Change type of 'ret' local
2779 to LONGEST.
2780
2781 2013-08-23 Pedro Alves <palves@redhat.com>
2782
2783 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2784 (remote_read_bytes): Change return type to LONGEST, and adjust to
2785 return a target_xfer_error on error.
2786 (remote_xfer_memory): Delete.
2787 (remote_flash_write): Change type of 'ret' local to LONGEST.
2788 (remote_xfer_partial, remote_xfer_partial): Adjust.
2789 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2790
2791 2013-08-23 Pierre Muller <muller@sourceware.org>
2792
2793 ARI fix: Push # directives to start of line.
2794 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2795
2796 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2797
2798 PR gdb/15501
2799 * breakpoint.c (enable_command, disable_command): Iterate over
2800 all specified breakpoint locations.
2801
2802 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2803
2804 * common/linux-ptrace.c (linux_fork_to_function): Push #
2805 directives to the start of the line.
2806 (linux_check_ptrace_features): Fix warning message to use
2807 the "_" markup.
2808
2809 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2810
2811 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2812 nat/linux-waitpid.h.
2813 (linux-waitpid.o): New object file rule.
2814 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2815 (current_ptrace_options): Moved from linux-nat.c.
2816 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2817 parameters.
2818 (linux_fork_to_function): New function.
2819 (linux_grandchild_function): Likewise.
2820 (linux_child_function): Likewise.
2821 (linux_check_ptrace_features): New function, heavily
2822 based on linux-nat.c:linux_test_for_tracefork.
2823 (linux_enable_event_reporting): New function.
2824 (ptrace_supports_feature): Likewise.
2825 (linux_supports_tracefork): Likewise.
2826 (linux_supports_traceclone): Likewise.
2827 (linux_supports_tracevforkdone): Likewise.
2828 (linux_supports_tracesysgood): Likewise.
2829 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2830 gdbserver/linux-low.c.
2831 (linux_enable_event_reporting): New declaration.
2832 (linux_supports_tracefork): Likewise.
2833 (linux_supports_traceclone): Likewise.
2834 (linux_supports_tracevforkdone): Likewise.
2835 (linux_supports_tracesysgood): Likewise.
2836 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2837 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2838 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2839 * config/arm/linux.mh (NATDEPFILES): Likewise.
2840 * config/i386/linux.mh (NATDEPFILES): Likewise.
2841 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2842 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2843 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2844 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2845 * config/mips/linux.mh (NATDEPFILES): Likewise.
2846 * config/pa/linux.mh (NATDEPFILES): Likewise..
2847 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2848 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2849 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2850 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2851 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2852 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2853 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2854 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2855 ptrace's 4th argument's types.
2856 Check the type of PTRACE_TYPE_ARG4.
2857 * configure: Regenerate.
2858 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2859 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2860 (linux_supports_tracefork_flag): Remove.
2861 (linux_supports_tracesysgood_flag): Likewise.
2862 (linux_supports_tracevforkdone_flag): Likewise.
2863 (current_ptrace_options): Moved to
2864 common/linux-ptrace.c.
2865 (linux_tracefork_child): Remove.
2866 (my_waitpid): Remove.
2867 (linux_test_for_tracefork): Renamed to
2868 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2869 (linux_test_for_tracesysgood): Remove.
2870 (linux_supports_tracesysgood): Remove.
2871 (linux_supports_tracefork): Remove.
2872 (linux_supports_tracevforkdone): Remove.
2873 (linux_enable_tracesysgood): Remove.
2874 (linux_enable_event_reporting): Remove.
2875 (linux_init_ptrace): New function.
2876 (linux_child_post_attach): Call linux_init_ptrace.
2877 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2878 (linux_child_follow_fork): Call linux_supports_tracefork
2879 and linux_supports_tracevforkdone.
2880 (linux_child_insert_fork_catchpoint): Call
2881 linux_supports_tracefork.
2882 (linux_child_insert_vfork_catchpoint): Likewise.
2883 (linux_child_set_syscall_catchpoint): Call
2884 linux_supports_tracesysgood.
2885 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2886 * nat/linux-nat.h: New file.
2887 * nat/linux-waitpid.c: New file.
2888 * nat/linux-waitpid.h: New file.
2889
2890 2013-08-22 Samuel Bronson <naesten@gmail.com>
2891
2892 ARM Linux support for `catch syscall'.
2893 * syscalls/arm-linux.py: New file.
2894 * syscalls/arm-linux.xml: Likewise.
2895 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2896 (arm_linux_init_abi): Register the new function and syscall xml file.
2897 * data-directory/Makefile.in: Install the new syscall xml file.
2898 * NEWS: Brag about this.
2899
2900 2013-08-22 Pedro Alves <palves@redhat.com>
2901
2902 PR gdb/15871
2903 * corefile.c (target_xfer_memory_error): New function.
2904 (memory_error): Defer EIO to target_memory_error.
2905 (read_memory): Use target_xfer_partial, and handle finer-grained
2906 target xfer errors.
2907 * target.c (target_xfer_error_to_string): New function.
2908 (memory_xfer_partial_1): If memory is known to be
2909 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2910 (target_xfer_partial): Make extern.
2911 * target.h (enum target_xfer_error): New enum.
2912 (target_xfer_error_to_string): Declare function.
2913 (target_xfer_partial): Declare function.
2914 (struct target_ops) <xfer_partial>: Adjust describing comment.
2915
2916 2013-08-22 Alan Modra <amodra@gmail.com>
2917
2918 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2919 * configure.tgt: Likewise as targets.
2920
2921 2013-08-20 Doug Evans <dje@google.com>
2922
2923 * buildsym.c (subfile_stack): Move here from buildsym.h.
2924 (pending_macros): Ditto.
2925 (get_macro_table): New function.
2926 (buildsym_init): Initialize subfile_stack.
2927 * coffread.c (type_vector,type_vector_length): Moved here from
2928 buildsym.h.
2929 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2930 (coff_symtab_read): Use it.
2931 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2932 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2933 with call to get_macro_table.
2934 * stabsread.c (type_vector,type_vector_length): Moved here from
2935 buildsym.h.
2936 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2937 * buildsym.h (get_macro_table): Declare.
2938
2939 2013-08-20 Tom Tromey <tromey@redhat.com>
2940
2941 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2942 Update.
2943 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2944
2945 2013-08-20 Doug Evans <dje@google.com>
2946
2947 * blockframe.c: Remove #include "psymtab.h".
2948 * cp-support.c: Ditto.
2949 * source.c: Ditto.
2950 * stack.c: Ditto.
2951
2952 2013-08-20 Tom Tromey <tromey@redhat.com>
2953
2954 PR python/15816:
2955 * exceptions.h (return_mask): Now an enum.
2956 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2957 enum constants.
2958
2959 2013-08-20 Tom Tromey <tromey@redhat.com>
2960
2961 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2962 get_objfile_arch.
2963 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2964 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2965 * jit.c (jit_object_close_impl): Update.
2966 * jv-lang.c (get_dynamics_objfile): Update.
2967 * linespec.c (add_minsym): Use get_dynamics_objfile.
2968 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2969 (allocate_objfile): Don't initialize 'gdbarch' field.
2970 (get_objfile_arch): Update.
2971 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2972 moved from...
2973 (struct objfile) <gdbarch>: ... here. Remove.
2974 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2975 get_objfile_arch.
2976 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2977
2978 2013-08-20 Alan Modra <amodra@gmail.com>
2979
2980 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2981 for IBM long double nan and inf.
2982 (floatformat_is_negative, floatformat_classify,
2983 floatformat_mantissa): Similarly.
2984 (floatformat_ieee_single, floatformat_ieee_double,
2985 floatformat_ieee_quad, floatformat_arm_ext,
2986 floatformat_ia64_spill): Delete unused vars.
2987 (_initialize_doublest): Delete unused function.
2988 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2989 little-endian variants of floatformat_ibm_long_double.
2990
2991 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2992
2993 * Makefile.in (SFILES): Remove common/target-common.c and
2994 add target/waitstatus.c.
2995 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2996 target/resume.h, target/wait.h and target/waitstatus.h.
2997 (COMMON_OBS): Remove target-common.o and add
2998 waitstatus.o.
2999 (target-common.o): Remove.
3000 (waitstatus.o): New target object file.
3001 * common/target-common.c: Move contents to
3002 target/waitstatus.c and remove.
3003 * common/target-common.h: Move contents to other files and
3004 remove.
3005 (enum resume_kind: Move to target/resume.h.
3006 (TARGET_WNOHANG): Move to target/wait.h.
3007 (enum target_waitkind): Move to target/waitstatus.h.
3008 (struct target_waitstatus): Likewise.
3009 * target.h: Do not include target-common.h and
3010 include target/resume.h, target/wait.h and
3011 target/waitstatus.h.
3012 * target/resume.h: New file.
3013 * target/wait.h: New file.
3014 * target/waitstatus.h: New file.
3015 * target/waitstatus.c: New file.
3016
3017 2013-08-19 Pedro Alves <palves@redhat.com>
3018
3019 * linux-nat.c (linux_test_for_tracefork)
3020 (linux_test_for_tracesysgood, linux_child_follow_fork)
3021 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3022 (linux_nat_wait_1): Extend comment.
3023 (linux_async_pipe): Add comment.
3024
3025 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3026
3027 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3028 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3029 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3030 Update to account for fact that PC is now a pseudo-register.
3031 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3032 cases for RL78_PC_REGNUM.
3033
3034 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3035
3036 PR cli/15841
3037 * top.c (quit_force): Skip writing history file
3038 if input is not from terminal.
3039
3040 2013-08-14 Tom Tromey <tromey@redhat.com>
3041
3042 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3043 resultthreadlist>: New fields.
3044 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3045 (remote_get_threadlist, remote_threadlist_iterator): Use
3046 new fields. Remove static variables.
3047
3048 2013-08-14 Tom Tromey <tromey@redhat.com>
3049
3050 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3051 remote_watch_data_address>: New fields.
3052 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3053 (process_stop_reply, remote_wait_as)
3054 (remote_check_watch_resources, remote_stopped_data_address): Update.
3055
3056 2013-08-14 Tom Tromey <tromey@redhat.com>
3057
3058 * remote.c (struct remote_state) <async_client_callback,
3059 async_client_context>: New fields.
3060 (async_client_callback, async_client_context): Remove.
3061 (remote_async_serial_handler, remote_async): Update.
3062
3063 2013-08-14 Tom Tromey <tromey@redhat.com>
3064
3065 * remote.c (sizeof_pkt): Remove.
3066 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3067
3068 2013-08-14 Tom Tromey <tromey@redhat.com>
3069
3070 * remote.c (struct remote_state) <use_threadinfo_query,
3071 use_threadextra_query>: New fields.
3072 (remote_threads_info, remote_threads_extra_info)
3073 (remote_open_1): Update.
3074
3075 2013-08-14 Tom Tromey <tromey@redhat.com>
3076
3077 * remote.c (struct remote_state) <finished_object,
3078 finished_annex, finished_offset>: New fields.
3079 (remote_read_qxfer): Use remote_state fields; remove static
3080 variables.
3081
3082 2013-08-14 Tom Tromey <tromey@redhat.com>
3083
3084 * remote.c (struct remote_state) <last_sent_step>:
3085 New field.
3086 (last_sent_step): Remove.
3087 (remote_resume, remote_wait_as): Update.
3088
3089 2013-08-14 Tom Tromey <tromey@redhat.com>
3090
3091 * remote.c (struct remote_state) <last_sent_signal>:
3092 New field.
3093 (last_sent_signal): Remove.
3094 (new_remote_state, remote_resume, remote_wait_as): Update.
3095
3096 2013-08-14 Tom Tromey <tromey@redhat.com>
3097
3098 * remote.c (struct remote_state) <last_program_signals_packet>:
3099 New field.
3100 (last_program_signals_packet): Remove.
3101 (remote_program_signals, remote_open_1): Update.
3102
3103 2013-08-14 Tom Tromey <tromey@redhat.com>
3104
3105 * remote.c (struct remote_state) <last_pass_packet>:
3106 New field.
3107 (last_pass_packet): Remove.
3108 (remote_pass_signals, remote_open_1): Update.
3109
3110 2013-08-14 Tom Tromey <tromey@redhat.com>
3111
3112 * remote.c (struct remote_state) <remote_traceframe_number>:
3113 New field.
3114 (remote_traceframe_number): Remove.
3115 (new_remote_state, remote_open_1, set_remote_traceframe)
3116 (remote_trace_find): Update.
3117
3118 2013-08-14 Tom Tromey <tromey@redhat.com>
3119
3120 * remote.c (struct remote_state) <general_thread, continue_thread>:
3121 New fields.
3122 (general_thread, continue_thread): Remove.
3123 (record_currthread, set_thread, set_general_process)
3124 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3125 (extended_remote_mourn_1): Update.
3126
3127 2013-08-14 Tom Tromey <tromey@redhat.com>
3128
3129 * remote.c (struct remote_state) <remote_desc>: New field.
3130 (remote_desc): Remove.
3131 (remote_threads_info, remote_threads_extra_info, remote_close)
3132 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3133 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3134 (remote_hostio_send_command, remote_file_put, remote_file_get)
3135 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3136 (remote_async, remote_new_objfile, set_range_stepping): Update.
3137
3138 2013-08-14 Tom Tromey <tromey@redhat.com>
3139
3140 * remote.c (remote_state): Now a pointer.
3141 (get_remote_state_raw): Update.
3142 (new_remote_state): New function.
3143 (_initialize_remote): Use new_remote_state.
3144
3145 2013-08-14 Tom Tromey <tromey@redhat.com>
3146
3147 * remote.c (remote_protocol_features): Now const.
3148
3149 2013-08-14 Tom Tromey <tromey@redhat.com>
3150
3151 * remote.c (crc32_table, crc32): Remove.
3152 (remote_verify_memory): Use xcrc32.
3153
3154 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3155
3156 * value.h (create_internalvar_type_lazy): Adjust prototype
3157 declaration.
3158
3159 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3160
3161 * common/format.c (parse_format_string): Don't allow '#' flag for
3162 pointer arguments in format string.
3163
3164 2013-08-13 Pierre Muller <muller@sourceware.org>
3165
3166 * utils.c (init_page_info): Only call tgetnum function
3167 if rl_get_screen_size did not return useful values.
3168
3169 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3170
3171 PR breakpoints/15117
3172 * linespec.c (linespec_parse_basic): Check for convenience
3173 variable or history value while parsing.
3174
3175 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3176
3177 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3178 AVR.
3179 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3180 different signals between the generic Linux kernel implementation
3181 and AVR's.
3182 (avr_linux_gdb_signal_from_target): Delete.
3183 (avr_linux_gdb_signal_to_target): Delete.
3184 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3185
3186 2013-08-09 Doug Evans <dje@google.com>
3187
3188 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3189 entries.
3190
3191 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3192
3193 * linux-tdep.c: Define enum with generic signal numbers.
3194 (linux_gdb_signal_from_target): New function.
3195 (linux_gdb_signal_to_target): Likewise.
3196 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3197 methods to the functions above.
3198 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3199 (linux_gdb_signal_to_target): Likewise.
3200 * alpha-linux-tdep.c: Define new enum with signals different
3201 from generic Linux kernel.
3202 (alpha_linux_gdb_signal_from_target): New function.
3203 (alpha_linux_gdb_signal_to_target): Likewise.
3204 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3205 with the functions mentioned above.
3206 * avr-tdep.c: Define enum with differences between Linux kernel
3207 and AVR signals.
3208 (avr_linux_gdb_signal_from_target): New function.
3209 (avr_linux_gdb_signal_to_target): Likewise.
3210 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3211 the functions mentioned above.
3212 * sparc-linux-tdep.c: Define enum with differences between SPARC
3213 and generic Linux kernel signal numbers.
3214 (sparc32_linux_gdb_signal_from_target): New function.
3215 (sparc32_linux_gdb_signal_to_target): Likewise.
3216 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3217 to the functions defined above.
3218 * xtensa-linux-tdep.c: Define enum with differences between
3219 Xtensa and Linux kernel generic signals.
3220 (xtensa_linux_gdb_signal_from_target): New function.
3221 (xtensa_linux_gdb_signal_to_target): Likewise.
3222 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3223 to the functions defined above.
3224 * mips-linux-tdep.c: Define enum with differences between
3225 signals in MIPS and Linux kernel generic ones.
3226 (mips_gdb_signal_to_target): New function.
3227 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3228 only different signals from the Linux kernel generic.
3229 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3230 the functions defined above.
3231 * mips-linux-tdep.h (enum mips_signals): Remove.
3232
3233 2013-08-09 Pedro Alves <palves@redhat.com>
3234
3235 * avr-tdep.c (XMALLOC): Delete macro.
3236 * cli/cli-dump.c (XMALLOC): Delete macro.
3237
3238 2013-08-09 Pedro Alves <palves@redhat.com>
3239
3240 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3241 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3242 (fopen_with_cleanup, add_dump_command): Make static.
3243 * cli/cli-dump.h: Delete file.
3244 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3245 cli/cli-dump.h.
3246
3247 2013-08-09 Pedro Alves <palves@redhat.com>
3248
3249 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3250 error message.
3251
3252 2013-08-09 Pedro Alves <palves@redhat.com>
3253
3254 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3255 error message.
3256
3257 2013-08-09 Pedro Alves <palves@redhat.com>
3258
3259 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3260 (gcore_command): Use tilde_expand here, and when showing the
3261 filename to the user, show the expanded version.
3262
3263 2013-08-09 Yao Qi <yao@codesourcery.com>
3264
3265 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3266 'entryval' is set.
3267
3268 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3269
3270 * gcore.c (create_gcore_bfd): Use tilde_expand.
3271
3272 2013-08-08 Yao Qi <yao@codesourcery.com>
3273
3274 * frame.h (read_frame_local): Declare.
3275 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3276 read_frame_local.
3277 * stack.c (read_frame_local): New.
3278
3279 2013-08-08 Yao Qi <yao@codesourcery.com>
3280
3281 * mi/mi-cmd-stack.c: Update comments to function
3282 list_args_or_locals.
3283
3284 2013-08-07 Tom Tromey <tromey@redhat.com>
3285
3286 PR symtab/15028:
3287 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3288 (process_psymtab_comp_unit_reader): Use it.
3289 (process_psymtab_comp_unit): Update. Add "pretend_language"
3290 argument.
3291 (dwarf2_build_psymtabs_hard): Update.
3292 (scan_partial_symbols): Pass CU's language to
3293 process_psymtab_comp_unit.
3294
3295 2013-08-07 Tom Tromey <tromey@redhat.com>
3296
3297 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3298 (dwarf2_gdb_index_functions): Update.
3299 * psymtab.c (find_symbol_file_from_partial): Remove.
3300 (psym_functions): Update.
3301 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3302 Remove.
3303
3304 2013-08-07 Tom Tromey <tromey@redhat.com>
3305
3306 * symfile.c (set_initial_language): Look up "main" symbol
3307 and use its language.
3308 * symtab.c (find_main_filename): Remove.
3309 * symtab.h (find_main_filename): Remove.
3310
3311 2013-08-07 Tom Tromey <tromey@redhat.com>
3312
3313 * dwarf2read.c (recursively_compute_inclusions): Add
3314 "immediate_parent" argument. Set symtab's "user" field
3315 if not set.
3316 (compute_symtab_includes): Update.
3317
3318 2013-08-07 Tom Tromey <tromey@redhat.com>
3319
3320 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3321 when adding label symbols.
3322
3323 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3324 Ulrich Weigand <uweigand@de.ibm.com>
3325
3326 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3327 * configure.host (powerpc64-*-aix*): Likewise.
3328
3329 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3330 Ulrich Weigand <uweigand@de.ibm.com>
3331
3332 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3333 is defined.
3334 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3335 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3336 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3337 * configure.ac: Check for ptrace64.
3338 * configure, config.in: Regenerate.
3339
3340 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3341 Ulrich Weigand <uweigand@de.ibm.com>
3342
3343 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3344 Call ptrace64 instead of ptrace if defined.
3345 Add macro addr_ptr to take care of ptrace address argument.
3346 (pdc_read_regs): Likewise.
3347 (pdc_write_regs): Likewise.
3348 (aix_thread_resume): Likewise.
3349 (fetch_regs_kernel_thread): Likewise.
3350 (store_regs_kernel_thread): Likewise.
3351
3352 2013-08-07 Anton Blanchard <anton@samba.org>
3353
3354 * MAINTAINERS: Add myself to Write After Approval.
3355
3356 2013-08-05 Tom Tromey <tromey@redhat.com>
3357
3358 * aix-thread.c (_initialize_aix_thread): Use
3359 complete_target_initialization.
3360 * bsd-uthread.c (_initialize_bsd_uthread): Use
3361 complete_target_initialization.
3362 * dec-thread.c (_initialize_dec_thread): Use
3363 complete_target_initialization.
3364 * ravenscar-thread.c (_initialize_ravenscar): Use
3365 complete_target_initialization.
3366 * sol-thread.c (_initialize_sol_thread): Use
3367 complete_target_initialization.
3368 * spu-multiarch.c (_initialize_spu_multiarch): Use
3369 complete_target_initialization.
3370
3371 2013-08-05 Tom Tromey <tromey@redhat.com>
3372
3373 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3374 * ada-lang.c (ada_lookup_simple_minsym): Return
3375 bound_minimal_symbol.
3376 * ada-lang.h (ada_lookup_simple_minsym): Update.
3377 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3378 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3379 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3380 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3381 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3382 * minsyms.c (msymbol_objfile): Remove.
3383 (lookup_minimal_symbol_internal): New function, from
3384 lookup_minimal_symbol.
3385 (lookup_minimal_symbol): Rewrite using
3386 lookup_minimal_symbol_internal.
3387 (lookup_bound_minimal_symbol): New function.
3388 * minsyms.h (msymbol_objfile): Remove.
3389 (lookup_bound_minimal_symbol): Declare.
3390 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3391 * parse.c (write_exp_msymbol): Change parameter to a
3392 bound_minimal_symbol.
3393 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3394 * parser-defs.h (write_exp_msymbol): Update.
3395 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3396 * symfile.c (simple_read_overlay_table): Use
3397 lookup_bound_minimal_symbol.
3398 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3399 (search_symbols): Likewise.
3400 (print_msymbol_info): Take a bound_minimal_symbol argument.
3401 (symtab_symbol_info, rbreak_command): Update.
3402 * symtab.h (struct symbol_search) <msymbol>: Change type
3403 to bound_minimal_symbol.
3404 * valops.c (find_function_in_inferior): Use
3405 lookup_bound_minimal_symbol.
3406 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3407
3408 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3409
3410 Code cleanup.
3411 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3412 to ...
3413 (async_cleanup_sigint_signal_handler): ... this.
3414 (initialize_sigint_signal_handler): Remove declaration.
3415 (handle_remote_sigint): Rename the declaration to ...
3416 (async_handle_remote_sigint): ... this.
3417 (handle_remote_sigint_twice): Rename the declaration to ...
3418 (async_handle_remote_sigint_twice): ... this.
3419 (async_remote_interrupt, async_remote_interrupt_twice)
3420 (remote_interrupt): Remove the declarations.
3421 (remote_interrupt_twice): Rename the declaration ...
3422 (sync_remote_interrupt_twice): ... this.
3423 (sigint_remote_twice_token): Rename the variable to ...
3424 (async_sigint_remote_twice_token): ... this.
3425 (sigint_remote_token): Rename the variable to ...
3426 (async_sigint_remote_token): ... this.
3427 (initialize_sigint_signal_handler): Rename the function to ...
3428 (async_initialize_sigint_signal_handler): ... this. Update the name
3429 inside.
3430 (handle_remote_sigint): Rename the function to ...
3431 (async_handle_remote_sigint): ... this. Update the names inside.
3432 (handle_remote_sigint_twice): Rename the function to ...
3433 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3434 (cleanup_sigint_signal_handler): Rename the function to ...
3435 (async_cleanup_sigint_signal_handler): ... this.
3436 (remote_interrupt): Rename the function to ...
3437 (sync_remote_interrupt): this. Update the names inside.
3438 (remote_interrupt_twice): Rename the function to ...
3439 (sync_remote_interrupt_twice): this. Update the names inside.
3440 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3441 (_initialize_remote): Update the names inside.
3442
3443 2013-08-02 Tom Tromey <tromey@redhat.com>
3444
3445 PR symtab/15719:
3446 * breakpoint.c (update_watchpoint, watchpoint_check)
3447 (watch_command_1): Update.
3448 * eval.c (fetch_subexp_value): Add "preserve_errors"
3449 parameter.
3450 * ppc-linux-nat.c (check_condition): Update.
3451 * value.h (fetch_subexp_value): Update.
3452
3453 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3454
3455 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3456 add_file_handler.
3457
3458 2013-08-01 Doug Evans <dje@google.com>
3459
3460 PR symtab/15691
3461 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3462 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3463 Add assert of sig_entry->dwo_unit == NULL.
3464 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3465 had already been read.
3466 (read_signatured_type): Set per_cu.tu_read.
3467
3468 PR symtab/15695
3469 * valops.c (value_struct_elt): Add missing call to check_typedef.
3470 (value_find_oload_method_list): Ditto.
3471
3472 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3473 effectively, struct symbol_search **.
3474 (make_cleanup_free_search_symbols): Change arg to struct
3475 symbol_search **. All callers updated.
3476 (compare_search_syms): Compare symtab file name and block as well.
3477 (search_symbols_equal): New function.
3478 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3479 New args new_head, new_tail. Result is now void. Remove dups after
3480 sorting the symbols.
3481 (search_symbols): Sort all found symbols once, after all have been
3482 found, and remove duplicates. Simplify cleanup tracking of result.
3483 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3484
3485 Further workarounds for binutils/15021.
3486 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3487 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3488 Watch for duplicate symtabs coming from type units.
3489 (compute_symtab_includes): Update call to
3490 recursively_compute_inclusions. Build vector of included symtabs
3491 instead of per_cus.
3492 * symtab.h (symtab_ptr): New typedef.
3493 (DEF_VEC_P (symtab_ptr)): New VEC type.
3494 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3495 instead.
3496
3497 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3498
3499 * cli/cli-script.c (script_from_file): Remove use of
3500 error_pre_print.
3501 * main.c (captured_main): Remove use of error_pre_print and
3502 quit_pre_print.
3503 * utils.c (error_pre_print, quit_pre_print): Remove.
3504 * utils.h (error_pre_print, quit_pre_print): Likewise.
3505
3506 2013-08-01 Yao Qi <yao@codesourcery.com>
3507
3508 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3509 with mi_getopt.
3510 (mi_cmd_stack_list_variables): Likewise.
3511
3512 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3513
3514 * exceptions.c (deprecated_throw_reason): Remove.
3515 * exceptions.h (deprecated_throw_reason): Remove.
3516
3517 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3518
3519 * remote-mips.c (mips_error): Replace use of
3520 deprecated_throw_reason with throw_verror. Use the error message
3521 passed to mips_error as the error message for throw_verror.
3522
3523 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3524
3525 * monitor.c (monitor_interrupt_query): Replace use of
3526 deprecated_throw_reason with quit.
3527 * nto-procfs.c (interrupt_query): Likewise.
3528 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3529 * remote-mips.c (mips_kill): Likewise.
3530 * remote.c (interrupt_query): Likewise.
3531
3532 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3533
3534 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3535 with call to fatal.
3536
3537 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3538 Yao Qi <yao@codesourcery.com>
3539
3540 * tracepoint.c (trace_dump_command): Select the current frame.
3541
3542 2013-07-30 Doug Evans <dje@google.com>
3543
3544 * dwarf2read.c (process_queue): Add type signature to debug output.
3545
3546 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3547
3548 * value.c (value_fetch_lazy): Mark optimized out values as such
3549 rather than raising an error.
3550
3551 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3552
3553 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3554 before checking which bits of the parent, not the child, value are
3555 valid.
3556
3557 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3558
3559 PR gdb/15715
3560 * top.c: Include "filenames.h".
3561 (set_history_filename): New function.
3562 (init_main): Install it as set hook of the "set history filename"
3563 command.
3564
3565 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3566
3567 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3568 attribute parameter.
3569 (dwarf2_const_value_data): Constify struct attribute parameter.
3570 (dwarf2_const_value): Constify struct attribute parameter.
3571 (dwarf2_const_value_attr): Constify struct attribute parameter.
3572 (lookup_die_type): Constify struct attribute parameter.
3573 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3574 (follow_die_ref_or_sig): Constify struct attribute parameter.
3575 (follow_die_ref): Constify struct attribute parameter.
3576 (follow_die_sig): Constify struct attribute parameter.
3577 (get_DW_AT_signature_type): Constify struct attribute parameter.
3578 (get_type_unit_group): Constify struct attribute parameter.
3579 (fill_in_loclist_baton): Constify struct attribute parameter.
3580 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3581 (type_unit_group): Constify struct attribute parameter.
3582
3583 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3584
3585 * dwarf2read.c (attr_form_is_block): Make argument const.
3586 (attr_form_is_section_offset): Make argument const.
3587 (attr_form_is_constant): Make argument const.
3588 (attr_form_is_ref): Make argument const.
3589
3590 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3591
3592 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3593 All uses updated.
3594 (attr_form_is_ref): Moved below attr_form_is_constant.
3595
3596 2013-07-29 Doug Evans <dje@google.com>
3597
3598 * main.c (captured_command_loop): Tweak comment.
3599
3600 * target.c (target_async_permitted_1): Fix comment.
3601
3602 * symtab.c (iterate_over_some_symtabs): Add comment.
3603
3604 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3605
3606 2013-07-27 Yao Qi <yao@codesourcery.com>
3607
3608 * NEWS: Mention that GDBserver now supports hardware
3609 watchpoints on the MIPS GNU/Linux target.
3610
3611 2013-07-27 Yao Qi <yao@codesourcery.com>
3612
3613 * Makefile.in (HFILES_NO_SRCDIR): Add
3614 common/mips-linux-watch.h.
3615 (mips-linux-watch.o): New rule.
3616 * common/mips-linux-watch.c: New.
3617 * common/mips-linux-watch.h: New.
3618 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3619 * mips-linux-nat.c: Include mips-linux-watch.h.
3620 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3621 to common/mips-linux-watch.h.
3622 (MAX_DEBUG_REGISTER): Likewise.
3623 (enum pt_watch_style): Likewise.
3624 (struct mips32_watch_regs): Likewise.
3625 (struct mips64_watch_regs): Likewise.
3626 (struct pt_watch_regs): Likewise.
3627 (struct mips_watchpoint): Likewise.
3628 (mips_linux_watch_get_irw_mask): Move to
3629 common/mips-linux-watch.c.
3630 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3631 (mips_linux_watch_get_watchlo): Likewise.
3632 (mips_linux_watch_set_watchlo): Likewise.
3633 (mips_linux_watch_get_watchhi): Likewise.
3634 (mips_linux_watch_set_watchhi): Likewise.
3635 (mips_linux_read_watch_registers): Likewise.
3636 (mips_linux_watch_type_to_irw): Likewise.
3637 (mips_linux_stopped_data_address, fill_mask): Likewise.
3638 (mips_linux_watch_try_one_watch): Likewise.
3639 (mips_linux_watch_populate_regs): Likewise.
3640
3641 2013-07-27 Yao Qi <yao@codesourcery.com>
3642
3643 * mips-linux-nat.c (get_irw_mask): Rename to ...
3644 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3645 'set' to 'n'. Update function comment. All callers changed.
3646 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3647 function comment. All callers changed.
3648 (get_num_valid): Rename to ...
3649 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3650 'set' to 'n'. Update function comment. All callers changed.
3651 (get_watchlo): Rename to ...
3652 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3653 'set' to 'n'. Update function comment. All callers changed.
3654 (set_watchlo): Rename to ...
3655 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3656 'set' to 'n'. Update function comment. All callers changed.
3657 (get_watchhi): Rename to ...
3658 (mips_linux_watch_get_watchhi): ... this. Update function
3659 comment. All callers changed.
3660 (set_watchhi): Rename to ...
3661 (mips_linux_watch_set_watchhi): ... this. Update function
3662 comment. All callers changed.
3663 (mips_linux_read_watch_registers): Update function comment.
3664 Add new parameters 'lwpid', 'watch_readback', and
3665 'watch_readback_valid'. Update.
3666 (type_to_irw): Rename to ...
3667 (mips_linux_watch_type_to_irw): ... this. Update function
3668 comment. All callers changed.
3669 (fill_mask): Update function comment.
3670 (try_one_watch): Rename to ...
3671 (mips_linux_watch_try_one_watch): ... this. Change the type
3672 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3673 (populate_regs_from_watches): Rename to ...
3674 (mips_linux_watch_populate_regs): ... this. Add parameter
3675 'current_watches'. All callers changed.
3676
3677 2013-07-27 Yao Qi <yao@codesourcery.com>
3678
3679 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3680 the code.
3681 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3682 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3683 (struct pt_watch_regs): Likewise.
3684 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3685 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3686 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3687 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3688 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3689
3690 2013-07-27 Yao Qi <yao@codesourcery.com>
3691
3692 * breakpoint.h: Include break-common.h.
3693 (enum target_hw_bp_type): Move to ...
3694 * common/break-common.h: ... here. New.
3695
3696 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3697
3698 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3699 process group regardless of having tty on stdin.
3700
3701 2013-07-25 Doug Evans <dje@google.com>
3702
3703 * linux-fork.h (detach_fork): Delete.
3704
3705 2013-07-25 Tom Tromey <tromey@redhat.com>
3706
3707 PR remote/15256, PR remote/15266:
3708 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3709 * monitor.c (monitor_detach): Use unpush_target.
3710 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3711 * remote-mips.c (mips_detach): Use unpush_target. Don't
3712 call mips_close.
3713 * remote-sim.c (gdbsim_detach): Use unpush_target.
3714 * target.c (pop_target): Remove.
3715 (pop_all_targets_above): Don't call target_close.
3716 (target_close): Assert that the target is unpushed.
3717 * target.h (pop_target): Don't declare.
3718 * tracepoint.c (tfile_open): Use unpush_target.
3719
3720 2013-07-25 Tom Tromey <tromey@redhat.com>
3721
3722 * linux-thread-db.c (init_thread_db_ops): Call
3723 complete_target_initialization.
3724 (_initialize_thread_db): Don't call add_target.
3725 * target.c (complete_target_initialization): New function.
3726 (add_target_with_completer): Call it.
3727 * target.h (complete_target_initialization): Declare.
3728
3729 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3730
3731 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3732 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3733 (HPPANBSD_SIZEOF_GREGS): New define.
3734 (hppaobsd_supply_gregset): Handle additional registers.
3735 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3736 we provide more registers now.
3737 (hppabsd_supply_gregset): Supply additional registers.
3738 (hppabsd_collect_gregset): Collect additional registers.
3739
3740 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3741
3742 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3743 (hppabsd_dwarf2_frame_init_reg): New function.
3744 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3745
3746 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3747
3748 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3749 'z' format code. Remove error for optimized out values, standard
3750 code will handle these fine.
3751
3752 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3753
3754 * NEWS: Mention new 'z' formatter.
3755 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3756 (_initialize_printcmd): Mention 'z' formatter in help text of the
3757 'x' command.
3758
3759 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3760
3761 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3762 formatting.
3763
3764 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3765
3766 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3767 interface can evaluate arguments. Fallback to the old mode if it
3768 cannot.
3769 (create_exception_master_breakpoint): Likewise.
3770 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3771 (struct sym_probe_fns elf_probe_fns): Export function above to the
3772 probe interface.
3773 * probe.c (can_evaluate_probe_arguments): New function.
3774 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3775 function pointer.
3776 (can_evaluate_probe_arguments): New function prototype.
3777 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3778 probe interface can evaluate arguments. Fallback to the old mode
3779 if it cannot.
3780 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3781 interface can evaluate arguments. Warning the user if it cannot.
3782 (stap_can_evaluate_probe_arguments): New function.
3783 (struct probe_ops stap_probe_ops): Export function above to the
3784 probe interface.
3785 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3786 New function pointer.
3787
3788 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3789
3790 * Makefile.in (SFILES): Add common/target-common.c.
3791 Add common/target-common.h to headers.
3792 (COMMON_OBS): Add target-common.o.
3793 (target-common.o): New target.
3794 * linux-nat.h (resume_kind): Move to common/target-common.h.
3795 * target.c (target_waitstatus_to_string): Move to
3796 common/target-common.c.
3797 * target.h: Include target-common.h.
3798 (target_waitkind): Move to common/target-common.h.
3799 (target_waitstatus): Likewise.
3800 (TARGET_WNOHANG): Likewise.
3801 * common/target-common.c: New file.
3802 * common/target-common.h: New file.
3803
3804 2013-07-24 Doug Evans <dje@google.com>
3805
3806 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3807 a warning.
3808
3809 2013-07-23 Yao Qi <yao@codesourcery.com>
3810
3811 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3812 parameter 'gdbarch'.
3813 (i386_stack_tramp_frame_sniffer): Caller update.
3814 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3815 parameter 'gdbarch' and 'target'.
3816 (i386_linux_core_read_description): Caller update.
3817 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3818 Likewise.
3819 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3820 declaration.
3821
3822 2013-07-23 Tom Tromey <tromey@redhat.com>
3823
3824 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3825 2013-07-22.
3826
3827 2013-07-22 Doug Evans <dje@google.com>
3828
3829 * exec.h (remove_target_sections): Delete arg abfd.
3830 * exec.c (exec_close): Update call to remove_target_sections.
3831 (remove_target_sections): Delete arg abfd.
3832 * solib.c (update_solib_list): Ditto.
3833 (reload_shared_libraries_1): Ditto.
3834 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3835 * target.h (struct target_section): Rename key to owner.
3836 All uses updated.
3837
3838 2013-07-22 Tom Tromey <tromey@redhat.com>
3839
3840 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3841
3842 2013-07-22 Tom Tromey <tromey@redhat.com>
3843
3844 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3845 Simplify cleanup handling.
3846
3847 2013-07-22 Tom Tromey <tromey@redhat.com>
3848
3849 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3850 on all return paths.
3851
3852 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3853
3854 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3855 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3856 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3857
3858 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3859
3860 * top.c (print_gdb_version): Add help, apropos description and
3861 url to online documentation.
3862
3863 2013-07-19 Hui Zhu <hui@codesourcery.com>
3864
3865 PR gdb/15692
3866 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3867
3868 2013-07-19 Yao Qi <yao@codesourcery.com>
3869
3870 * target.c (update_current_target): Change the default action
3871 of 'to_traceframe_info' from tcomplain to return_zero.
3872 * target.h (struct target_ops) <to_traceframe_info>: Add more
3873 comments.
3874 * valops.c (read_value_memory): Call
3875 traceframe_available_memory unconditionally.
3876
3877 2013-07-18 Yao Qi <yao@codesourcery.com>
3878
3879 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3880 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3881 symbol without prefix. If found, set its type to
3882 'mst_solib_trampoline'.
3883
3884 2013-07-17 Doug Evans <dje@google.com>
3885
3886 * NEWS: Mention "set print raw frame-arguments".
3887 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3888 * stack.c (print_raw_frame_arguments): New static global.
3889 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3890 (_initialize_stack): New command "set/show print raw frame-arguments".
3891 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3892 (set_print_raw, show_print_raw): New functions.
3893 (_initialize_valprint): New prefix command "set/show print raw".
3894 * valprint.h (value_print_options): Improve comments.
3895
3896 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3897 of all *list variables.
3898
3899 * gdbcmd.h (togglelist): Delete.
3900 * cli/cli-cmds.c (togglelist): Delete.
3901 (init_cmd_lists): Update.
3902 * cli/cli-cmds.h (togglelist): Delete.
3903
3904 2013-07-17 Tom Tromey <tromey@redhat.com>
3905
3906 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3907 dwarf2_per_objfile.
3908
3909 2013-07-16 Doug Evans <dje@google.com>
3910
3911 * nto-tdep.c (nto_relocate_section_addresses): Update,
3912 target_section.bfd deleted.
3913 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3914 * s390-tdep.c (s390_load): Ditto.
3915 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3916
3917 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3918
3919 * common/format.c (parse_format_string): Add checks for NULL
3920 character before calling strchr.
3921
3922 2013-07-16 Doug Evans <dje@google.com>
3923
3924 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3925 temp_pathname argument.
3926 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3927 when opening the file fails.
3928
3929 * target.h (struct target_section): Delete member bfd.
3930 All users updated to use the_bfd_section->owner instead.
3931 * exec.c (add_to_section_table): Assert bfd is expected value.
3932 Remove initialization of target_section.bfd.
3933 (remove_target_sections): Update.
3934 (section_table_available_memory): Update.
3935 (section_table_xfer_memory_partial): Update.
3936 (print_section_info): Update.
3937 (exec_set_section_address): Update.
3938 * record-full.c (record_full_core_xfer_partial): Update.
3939 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3940 * solib-target.c (solib_target_relocate_section_addresses): Update.
3941 * symfile.c (build_section_addr_info_from_section_table): Update.
3942 * target.c (memory_xfer_live_readonly_partial): Update.
3943 (memory_xfer_partial_1): Update.
3944
3945 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3946
3947 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3948 now available for embedded (BookE) and server (BookS) processors,
3949 correct mentions of 'booke' and adjust comments accordingly in order to
3950 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3951 (have_ptrace_booke_interface): Rename function and variable
3952 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3953 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3954 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3955 'hwdebug_point_cmp'. Update all uses.
3956 (booke_find_thread_points_by_tid): Rename function
3957 'booke_find_thread_points_by_tid' to
3958 'hwdebug_find_thread_points_by_tid'. Update all uses.
3959 (booke_insert_point): Rename function 'booke_insert_point' to
3960 'hwdebug_insert_point'. Update all uses.
3961 (booke_remove_point): Rename function 'booke_remove_point' to
3962 'hwdebug_remove_point'. Update all uses.
3963
3964 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3965
3966 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3967 numbers with enum values.
3968
3969 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3970
3971 PR threads/13217
3972 * thread.c (thread_apply_all_command): Check for valid threads
3973 and thread count.
3974 (thread_array_cleanup): New struct.
3975 (set_thread_refcount): New function.
3976
3977 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3978
3979 * infcmd.c (default_print_one_register_info): Reuse function
3980 print_hex_chars.
3981
3982 2013-07-10 Tom Tromey <tromey@redhat.com>
3983
3984 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3985 (ada-exp.o): New target.
3986
3987 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3988
3989 * mt-tdep.c (mt_registers_info): Call
3990 get_no_prettyformat_print_options instead of
3991 get_raw_print_options (regression by last patch from Doug
3992 Evans).
3993
3994 2013-07-09 Pedro Alves <palves@redhat.com>
3995
3996 Checked in by Joel Brobecker <brobecker@adacore.com>.
3997 * ada-lang.c (coerce_unspec_val_to_type): Use
3998 value_optimized_out_const.
3999 * value.c (value_optimized_out_const): New function.
4000 * value.h (value_optimized_out_const): New declaration.
4001
4002 2013-07-09 Doug Evans <dje@google.com>
4003
4004 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4005 Enum values rename as well. All uses updated.
4006 * valprint.h (value_print_options): Rename member pretty to
4007 pretty format. Rename member prettyprint_arrays to
4008 prettyformat_arrays. Rename member prettyprint_structs to
4009 prettyformat_structs. All uses updated.
4010 (get_no_prettyformat_print_options): Renamed from
4011 get_raw_print_options.
4012 * valprint.c (get_no_prettyformat_print_options): Renamed from
4013 get_raw_print_options. All callers updated.
4014 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4015 All callers updated.
4016 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4017 All callers updated.
4018 (_initialize_valprint): Improve help text for "set print pretty" and
4019 "set print arrays".
4020
4021 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4022
4023 * value.c (value_bits_valid): Revert previous change, and change
4024 by Pedro on 2013-07-04, due to regressions in
4025 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4026
4027 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4028 Pedro Alves <palves@redhat.com>
4029
4030 * value.c (value_bits_valid): If the value is not lval_computed
4031 or has no check validity handler then the answer is the
4032 optimized_out flag, otherwise defer to the handler.
4033
4034 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4035
4036 * top.c (print_gdb_configuration): Explain in output of
4037 --configuration what does "relocatable" mean.
4038
4039 * main.c (print_gdb_help): Regroup options in the --help text.
4040 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4041 the relevant discussions.
4042
4043 2013-07-06 Yao Qi <yao@codesourcery.com>
4044
4045 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4046 Remove parameter 'lsal'.
4047 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4048 to inner block. Caller update.
4049 (base_breakpoint_create_breakpoints_sal): Update.
4050 (bkpt_create_breakpoints_sal): Likewise.
4051 (tracepoint_create_breakpoints_sal): Likewise.
4052 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4053 element 0 of vector 'canonical->sals'.
4054
4055 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4056
4057 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4058 register number instead of the pseudo register one.
4059 (rs6000_dwarf2_reg_to_regnum): Likewise.
4060
4061 2013-07-04 Pedro Alves <palves@redhat.com>
4062
4063 * findvar.c (value_of_register): Use allocate_optimized_out_value
4064 if the register has been optimized out, instead of
4065 set_value_optimized_out.
4066 * frame-unwind.c (frame_unwind_got_optimized): Use
4067 allocate_optimized_out_value.
4068
4069 2013-07-04 Pedro Alves <palves@redhat.com>
4070
4071 * value.c (value_bits_valid): If the value is not lval_computed,
4072 or doesn't have a check_validity hook, assume the value is entirely
4073 valid.
4074
4075 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4076
4077 * stack.c (read_frame_arg): No longer fetch lazy values.
4078 * value.c (value_optimized_out): If the value is not already
4079 marked optimized out, and is lazy then fetch it.
4080 (value_primitive_field): Move optimized out check to later in the
4081 function, after we have loaded any lazy values.
4082 (value_fetch_lazy): Use optimized out flag directly rather than
4083 calling optimized_out method.
4084
4085 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4086
4087 * valops.c: Don't include "user-regs.h".
4088 (value_fetch_lazy): Moved to value.c.
4089 * value.c: Include "user-regs.h".
4090 (value_fetch_lazy): Moved from valops.c.
4091
4092 2013-07-04 Yao Qi <yao@codesourcery.com>
4093
4094 Revert:
4095 2013-06-27 Yao Qi <yao@codesourcery.com>
4096
4097 * common/create-version.sh: Update comments. Handle the case
4098 that TARGET_ALIAS is empty.
4099
4100 2013-07-03 Pedro Alves <palves@redhat.com>
4101
4102 * Makefile.in (config.status): Depend on development.sh.
4103 (aclocal_m4_deps): Add libmcheck.m4.
4104 * acinclude.m4: Include libmcheck.m4.
4105 * configure.ac: Source development.sh instead of setting
4106 'development' here. --enable-libmcheck/--disable-libmcheck code
4107 factored out to GDB_AC_LIBMCHECK. Run it.
4108 * development.sh: New file.
4109 * libmcheck.m4: New file.
4110 * configure: Regenerate.
4111
4112 2013-07-02 Tom Tromey <tromey@redhat.com>
4113
4114 * contrib/ari/update-web-ari.sh: Update for version.in change.
4115
4116 2013-07-02 Tom Tromey <tromey@redhat.com>
4117
4118 * common/ptid.h: Comment fixes.
4119
4120 2013-07-01 Tom Tromey <tromey@redhat.com>
4121
4122 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4123 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4124 (dwarf2_read_index, create_all_comp_units): Update.
4125
4126 2013-07-01 Tom Tromey <tromey@redhat.com>
4127
4128 * configure.ac (build_warnings): Add -Wold-style-definition.
4129 * configure: Rebuild.
4130 * machoread.c (_initialize_machoread): Use "(void)".
4131 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4132 use "(void)".
4133
4134 2013-07-01 Tom Tromey <tromey@redhat.com>
4135
4136 * configure.ac (build_warnings): Add -Wold-style-declaration.
4137 * configure: Rebuild.
4138 * dsrec.c (make_srec): Use "static const", not "const static".
4139 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4140 not "const static".
4141 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4142 Use "static const", not "const static".
4143 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4144 not "const static".
4145 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4146 not "const static".
4147 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4148 not "const static".
4149 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4150 not "const static".
4151 (v850_dbtrap_breakpoint_from_pc): Likewise.
4152 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4153 not "const static".
4154
4155 2013-07-01 Tom Tromey <tromey@redhat.com>
4156
4157 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4158 * configure: Rebuild.
4159
4160 2013-07-01 Pedro Alves <palves@redhat.com>
4161
4162 * defs.h: Include "pathmax.h".
4163 * utils.c: Don't include sys/param.h.
4164 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4165 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4166 instead of MAXPATHLEN.
4167 * solib-sunos.c: Don't include sys/param.h.
4168 * xcoffread.c: Don't include sys/param.h.
4169 * bsd-kvm.c: Don't include sys/param.h.
4170 * darwin-nat.c: Don't include sys/param.h.
4171 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4172 * darwin-nat-info.c: Don't include sys/param.h.
4173 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4174 MAXPATHLEN.
4175 * i386obsd-nat.c: Don't include sys/param.h.
4176 * inf-child.c: Don't include sys/param.h.
4177 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4178 * linux-fork.c: Don't include sys/param.h.
4179 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4180 * linux-nat.c: Don't include sys/param.h.
4181 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4182 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4183 * m68klinux-nat.c: Don't include sys/param.h.
4184 * nbsd-nat.c: Don't include sys/param.h.
4185 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4186 * ppc-linux-nat.c: Don't include sys/param.h.
4187 * rs6000-nat.c: Don't include sys/param.h.
4188 * spu-linux-nat.c. Don't include sys/param.h.
4189 * windows-nat.c: Don't include sys/param.h.
4190 * xtensa-linux-nat.c: Don't include sys/param.h.
4191 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4192
4193 2013-07-01 Pedro Alves <palves@redhat.com>
4194
4195 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4196 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4197 * gnulib/aclocal.m4: Regenerate.
4198 * gnulib/config.in: Regenerate.
4199 * gnulib/configure: Regenerate.
4200 * gnulib/import/pathmax.h: New file.
4201 * gnulib/import/Makefile.am: Regenerate.
4202 * gnulib/import/Makefile.in: Regenerate.
4203 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4204 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4205 * gnulib/import/m4/pathmax.m4: New file.
4206
4207 2013-07-01 Pedro Alves <palves@redhat.com>
4208
4209 * configure.ac (GDBINIT): Define, depending on host.
4210 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4211 * top.c (PATH_MAX): Delete fallback definition.
4212 (GDBINIT_FILENAME): Delete.
4213 (gdbinit): Reimplement as const char array set to the GDBINIT
4214 string constant.
4215 * top.h (gdbinit): Make const.
4216 * configure, config.in: Regenerate.
4217
4218 2013-07-01 Pedro Alves <palves@redhat.com>
4219
4220 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4221 * cli/cli-cmds.h (source_script): Likewise.
4222 * exceptions.c (catch_command_errors_const): New function.
4223 * exceptions.h (catch_command_errors_const): Declare.
4224 * main.c (get_init_files): Make parameters const, and adjust.
4225 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4226 'local_gdbinit' locals const. Adjust to use
4227 catch_command_errors_const.
4228 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4229 'local_gdbinit' locals const.
4230
4231 2013-07-01 Pedro Alves <palves@redhat.com>
4232
4233 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4234 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4235 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4236 <unistd.h>.
4237
4238 2013-07-01 Pedro Alves <palves@redhat.com>
4239
4240 Import the "unistd" gnulib module.
4241 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4242 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4243 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4244 import/m4/unistd_h.m4.
4245 * gnulib/aclocal.m4: Renenerate.
4246 * gnulib/config.in: Renenerate.
4247 * gnulib/configure: Renenerate.
4248 * gnulib/import/Makefile.am: Renenerate.
4249 * gnulib/import/Makefile.in: Renenerate.
4250 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4251 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4252 * gnulib/import/m4/off_t.m4: New file.
4253 * gnulib/import/m4/ssize_t.m4: New file.
4254 * gnulib/import/m4/sys_types_h.m4: New file.
4255 * gnulib/import/m4/unistd_h.m4: New file.
4256 * gnulib/import/sys_types.in.h: New file.
4257 * gnulib/import/unistd.c: New file.
4258 * gnulib/import/unistd.in.h: New file.
4259
4260 2013-07-01 Pedro Alves <palves@redhat.com>
4261
4262 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4263 defined instead of checking HAVE_UNISTD_H.
4264
4265 2013-07-01 Pedro Alves <palves@redhat.com>
4266
4267 Reimport gnulib from scratch.
4268 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4269 import/m4/onceonly.m4.
4270 * gnulib/aclocal.m4: Renegerate.
4271 * gnulib/config.in: Renegerate.
4272 * gnulib/configure: Renegerate.
4273 * gnulib/import/Makefile.in: Renegerate.
4274 * gnulib/import/extra/update-copyright: Renegerate.
4275 * gnulib/import/m4/onceonly.m4: Delete.
4276
4277 2013-07-01 Pedro Alves <palves@redhat.com>
4278
4279 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4280
4281 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4282
4283 Code cleanup.
4284 * remote.c (async_remote_interrupt_twice): Make it static.
4285 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4286
4287 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4288
4289 * ia64-linux-tdep.c: Include <ctype.h>.
4290 (ia64_linux_stap_is_single_operand): New function.
4291 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4292
4293 2013-06-28 Tom Tromey <tromey@redhat.com>
4294
4295 * Makefile.in (version.c): Use version.in, not
4296 common/version.in.
4297 * common/create-version.sh: Likewise.
4298 * common/version.in: Move...
4299 * version.in: ...here.
4300
4301 2013-06-28 Pedro Alves <palves@redhat.com>
4302
4303 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4304 here.
4305 * utils.h (pagination_enabled): Declare.
4306
4307 2013-06-28 Pedro Alves <palves@redhat.com>
4308
4309 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4310 Move higher up in file.
4311
4312 2013-06-28 Tom Tromey <tromey@redhat.com>
4313
4314 * tracepoint.c (deprecated_readline_begin_hook)
4315 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4316 declare.
4317
4318 2013-06-28 Pedro Alves <palves@redhat.com>
4319
4320 PR tui/14880
4321 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4322 checking if they're available.
4323 * value.c (value_available_contents_eq): Change comment.
4324 * value.h (value_available_contents_eq): Expand comment.
4325
4326 2013-06-27 Tom Tromey <tromey@redhat.com>
4327
4328 * target.c (find_run_target): Remove.
4329 * target.h (find_run_target): Remove.
4330
4331 2013-06-27 Tom Tromey <tromey@redhat.com>
4332
4333 * corelow.c (core_gdbarch): Now static.
4334
4335 2013-06-27 Tom Tromey <tromey@redhat.com>
4336
4337 * target.c (target_struct_index): Remove.
4338
4339 2013-06-27 Pedro Alves <palves@redhat.com>
4340
4341 * infrun.c: Remove comment describing the 'stepping over runtime
4342 loader dynamic symbol resolution code' mechanism; moved to
4343 gdbint.texinfo.
4344
4345 2013-06-27 Pedro Alves <palves@redhat.com>
4346
4347 * exceptions.c (catch_command_errors): Remove spurious space.
4348 * exceptions.h (catch_command_errors): Second parameter is "arg",
4349 not "command".
4350
4351 2013-06-27 Yao Qi <yao@codesourcery.com>
4352
4353 * common/create-version.sh: Update comments. Handle the case
4354 that TARGET_ALIAS is empty.
4355
4356 2013-06-26 Pedro Alves <palves@redhat.com>
4357
4358 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4359 comment.
4360
4361 2013-06-26 Pedro Alves <palves@redhat.com>
4362
4363 * infrun.c: Update comments on stepping over runtime loader
4364 dynamic symbol resolution code.
4365
4366 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4367
4368 * ax-gdb.h (union exp_element): Forward declare.
4369 * parser-defs.h: Include expression.h.
4370
4371 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4372
4373 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4374
4375 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4376
4377 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4378
4379 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4380
4381 Fix trace-status to output proper start-time and stop-time.
4382 * tracepoint.c (trace_status_command): Fix type of printf arg to
4383 prevent improper type conversion.
4384 (trace_status_mi): Likewise.
4385
4386 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4387
4388 * mips-tdep.c (mips_next_pc): Fix a typo.
4389
4390 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4391
4392 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4393
4394 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4395 Yao Qi <yao@codesourcery.com>
4396
4397 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4398 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4399 * mi/mi-main.c (print_variable_or_computed): New function.
4400 (mi_cmd_trace_frame_collected): New function.
4401 * tracepoint.c (find_trace_state_variable_by_number): New.
4402 (struct traceframe_info): Move to tracepoint.h
4403 (struct collection_list): Likewise.
4404 (do_collect_symbol): Include locals and arguments in the
4405 collected variables list.
4406 (clear_collection_list): Clear wholly collected variables list
4407 and computed variables list.
4408 (append_exp): New function.
4409 (encode_actions_1): Include variables in the wholly
4410 collected variables list. Include memory ranges and
4411 full-fledged expressions in the computed expressions list.
4412 (encode_actions): Move some code to ...
4413 Return the cleanup chain.
4414 (encode_actions_rsp): ... here. New function.
4415 (get_traceframe_location, get_traceframe_info): Remove static.
4416 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4417 (struct collection_list): Moved from tracepoint.c. Add two
4418 new fields 'wholly_collected' and 'computed'.
4419 (find_trace_state_variable_by_number): Declare.
4420 (encode_actions): Adjust declaration.
4421 (encode_actions_rsp): Declare.
4422 (get_traceframe_info, get_traceframe_location): Declare.
4423
4424 * NEWS: Mention new MI command -trace-frame-collected.
4425
4426 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4427 Yao Qi <yao@codesourcery.com>
4428
4429 * ctf.c (ctf_traceframe_info): Push trace state variables
4430 present in the trace data into the traceframe info object.
4431 * breakpoint.c (DEF_VEC_I): Remove.
4432 * common/filestuff.c (DEF_VEC_I): Likewise.
4433 * dwarf2loc.c (DEF_VEC_I): Likewise.
4434 * mi/mi-main.c (DEF_VEC_I): Likewise.
4435 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4436 * features/traceframe-info.dtd: Add tvar element and its
4437 attributes.
4438 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4439 (build_traceframe_info): Push trace state variables present in
4440 the trace data into the traceframe info object.
4441 (traceframe_info_start_tvar): New function.
4442 (tvar_attributes): New.
4443 (traceframe_info_children): Add "tvar" element.
4444 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4445
4446 * NEWS: Mention the change in GDB and GDBserver.
4447
4448 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4449 Yao Qi <yao@codesourcery.com>
4450
4451 * tracepoint.c (trace_dump_command): Move code to ...
4452 (get_traceframe_location): ... here. New.
4453
4454 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4455 Yao Qi <yao@codesourcery.com>
4456
4457 * tracepoint.c (trace_dump_command): GDB emits an error
4458 instead of a warning when a traceframe is not selected.
4459
4460 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4461 Yao Qi <yao@codesourcery.com>
4462
4463 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4464 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4465 in collection_list.
4466 (do_clear_collection_list, init_collection_list): New.
4467 (encode_actions): Add local variables 'tracepoint_list' and
4468 'stepping_list'. Call init_collection_list and make cleanup
4469 which calls do_clear_collection_list. Don't call
4470 clear_collection_list.
4471 (_initialize_tracepoint): Delete references to
4472 'tracepoint_list' and 'stepping_list'.
4473
4474 2013-06-25 Tom Tromey <tromey@redhat.com>
4475
4476 * common/create-version.sh (date): Use "$", not "$$" in sed
4477 expression.
4478
4479 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4480
4481 * NEWS (New targets): Add entry for TI MSP430.
4482
4483 2013-06-25 Yao Qi <yao@codesourcery.com>
4484
4485 * remote.c (remote_start_remote): Move code to upload tsv
4486 earlier.
4487
4488 2013-06-25 Yao Qi <yao@codesourcery.com>
4489 Hui Zhu <hui@codesourcery.com>
4490 Pedro Alves <palves@redhat.com>
4491
4492 PR breakpoints/15075
4493 PR breakpoints/15434
4494 * breakpoint.c (bpstat_stop_status): Call
4495 b->ops->after_condition_true.
4496 (update_dprintf_command_list): Don't append "continue" command
4497 to the command list of dprintf breakpoint.
4498 (base_breakpoint_after_condition_true): New function.
4499 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4500 (dprintf_after_condition_true): New function.
4501 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4502 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4503
4504 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4505
4506 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4507 (ALLDEPFILES): Add msp430-tdep.c.
4508 * configure.tgt (msp430*-*-elf): New target.
4509 * msp430-tdep.c: New file.
4510
4511 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4512
4513 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4514 microMIPS synthetic symbols.
4515
4516 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4517
4518 * objfiles.h (pc_in_section): New prototype.
4519 (in_plt_section): Remove name argument, replace prototype with
4520 static inline function.
4521 * mips-tdep.h: Include "objfiles.h".
4522 (in_mips_stubs_section): New function.
4523 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4524 in_solib_call_trampoline member.
4525 (hppa_in_solib_call_trampoline): Remove name argument.
4526 * objfiles.c (pc_in_section): New function.
4527 (in_plt_section): Remove function.
4528 * mips-linux-tdep.c: Include "objfiles.h".
4529 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4530 name argument. Return 1 rather than the low 16-bit halfword of
4531 any instruction examined.
4532 (mips_linux_in_dynsym_resolve_code): Update
4533 mips_linux_in_dynsym_stub call accordingly.
4534 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4535 rather than an equivalent hand-coded sequence.
4536 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4537 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4538 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4539 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4540 in_opd_section.
4541 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4542 on call to tdep->in_solib_call_trampoline.
4543 (hppa_in_solib_call_trampoline): Remove name argument, update
4544 according to in_plt_section change.
4545 (hppa_skip_trampoline_code): Update according to in_plt_section
4546 change.
4547 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4548 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4549 Likewise.
4550 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4551 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4552 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4553 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4554 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4555 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4556 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4557 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4558 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4559 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4560 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4561 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4562 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4563
4564 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4565
4566 * common/create-version.sh: Fix expansion of $host_alias
4567 and $target_alias in generation of HOST_NAME and TARGET_NAME
4568 (resp.).
4569
4570 2013-06-24 Tom Tromey <tromey@redhat.com>
4571
4572 * common/create-version.sh: New file.
4573 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4574 create-version.sh.
4575 (HFILES_NO_SRCDIR): Use common/version.h.
4576 * version.in: Move to ...
4577 * common/version.in: ... here. Replace date with "DATE".
4578 * version.h: Move to ...
4579 * common/version.h: ... here.
4580
4581 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4582
4583 * gdb/gnulib/Makefile.in: Update date in copyright header.
4584 * gdb/gnulib/configure.ac: Ditto.
4585 * gdb/gnulib/update-gnulib.sh: Ditto.
4586
4587 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4588
4589 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4590 "gdb/gnulib/import".
4591
4592 2013-06-21 Will Newton <will.newton@linaro.org>
4593
4594 * doublest.c (ldfrexp): Remove function.
4595 (convert_doublest_to_floatformat): Call frexpl instead of
4596 ldfrexp.
4597
4598 2013-06-21 Will Newton <will.newton@linaro.org>
4599
4600 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4601 * gnulib/aclocal.m4: Regenerate.
4602 * gnulib/config.in: Regenerate.
4603 * gnulib/configure: Regenerate.
4604 * gnulib/import/Makefile.am: Update.
4605 * gnulib/import/Makefile.in: Update.
4606 * gnulib/import/m4/gnulib-cache.m4: Update.
4607 * gnulib/import/m4/gnulib-comp.m4: Update.
4608 * gnulib/import/float+.h: Import.
4609 * gnulib/import/float.c: Import.
4610 * gnulib/import/float.in.h: Import.
4611 * gnulib/import/fpucw.h: Import.
4612 * gnulib/import/frexp.c: Import.
4613 * gnulib/import/frexpl.c: Import.
4614 * gnulib/import/isnan.c: Import.
4615 * gnulib/import/isnand-nolibm.h: Import.
4616 * gnulib/import/isnand.c: Import.
4617 * gnulib/import/isnanl-nolibm.h: Import.
4618 * gnulib/import/isnanl.c: Import.
4619 * gnulib/import/itold.c: Import.
4620 * gnulib/import/m4/exponentd.m4: Import.
4621 * gnulib/import/m4/exponentl.m4: Import.
4622 * gnulib/import/m4/float_h.m4: Import.
4623 * gnulib/import/m4/fpieee.m4: Import.
4624 * gnulib/import/m4/frexp.m4: Import.
4625 * gnulib/import/m4/frexpl.m4: Import.
4626 * gnulib/import/m4/isnand.m4: Import.
4627 * gnulib/import/m4/isnanl.m4: Import.
4628 * gnulib/import/m4/math_h.m4: Import.
4629 * gnulib/import/math.c: Import.
4630 * gnulib/import/math.in.h: Import.
4631
4632 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4633
4634 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4635 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4636 signature_INTEL_edx comparisons.
4637
4638 2013-06-20 Doug Evans <dje@google.com>
4639
4640 symtab/15652
4641 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4642 All callers updated.
4643 (open_dwp_file): If we can't find the dwp file, search the basename
4644 in debug-file-directory.
4645
4646 * dwarf2read.c (struct dwp_file): Fix comment.
4647 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4648
4649 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4650 better.
4651
4652 2013-06-20 Yao Qi <yao@codesourcery.com>
4653
4654 * breakpoint.c (create_breakpoint): Fix code indentation.
4655
4656 2013-06-20 Yao Qi <yao@codesourcery.com>
4657
4658 * breakpoint.c (create_breakpoints_sal_default): Remove
4659 parameter 'lsal'. Update declaration.
4660 (bkpt_create_breakpoints_sal): Caller update.
4661 (tracepoint_create_breakpoints_sal): Likewise.
4662
4663 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4664 Yao Qi <yao@codesourcery.com>
4665
4666 * NEWS: Mention the new option '--skip-unavailable' of command
4667 -data-list-register-values.
4668 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4669 --skip-unavailable option. Adjust to use output_register.
4670 (output_register): Add new 'skip_unavailable' parameter.
4671 Handle it.
4672
4673 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4674
4675 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4676 common/i386-gcc-cpuid.h.
4677 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4678 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4679 Copy the latest version from upstream gcc.
4680 * common/linux-btrace.c: Include i386-cpuid.h.
4681 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4682 call to i386_cpuid.
4683 (cpu_supports_btrace): Likewise.
4684 * go32-nat.c: Include i386-cpuid.h.
4685 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4686
4687 2013-06-19 Doug Evans <dje@google.com>
4688
4689 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4690 (get_section_index): Ditto.
4691
4692 2013-06-19 Tom Tromey <tromey@redhat.com>
4693
4694 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4695 "dprintf" help.
4696
4697 2013-06-18 Doug Evans <dje@google.com>
4698
4699 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4700 before using it.
4701 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4702 Move test of cu_index closer to use. Print complaint if cu_index
4703 is bad.
4704
4705 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4706
4707 * machoread.c (oso_vector): Delete this global.
4708 (macho_register_oso): Add new parameter "oso_vector_ptr".
4709 Use it instead of the "oso_vector" global.
4710 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4711 (macho_symfile_read): Use a local oso_vector, to be free'ed
4712 at the end of this function, in place of the old "oso_vector"
4713 global. Update various function calls accordingly. Use one
4714 single cleanup chain for the entire function.
4715
4716 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4717
4718 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4719 DWARF2_PER_OBJFILE by uses of DATA instead.
4720
4721 2013-06-18 Tom Tromey <tromey@redhat.com>
4722
4723 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4724 argument.
4725 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4726 Special case signals other than GDB_SIGNAL_TRAP.
4727 (explains_signal_watchpoint): New function.
4728 (base_breakpoint_explains_signal): Add 'sig' argument.
4729 (initialize_breakpoint_ops): Set 'explains_signal' method for
4730 watchpoints.
4731 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4732 signal argument.
4733 (bpstat_explains_signal): Likewise.
4734 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4735
4736 2013-06-18 Tom Tromey <tromey@redhat.com>
4737
4738 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4739
4740 2013-06-18 Tom Tromey <tromey@redhat.com>
4741
4742 * python/python.c (finish_python_initialization): Decref
4743 'pythondir' on failure path as well.
4744
4745 2013-06-18 Tom Tromey <tromey@redhat.com>
4746
4747 PR symtab/15391:
4748 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4749 after taking bits_to_skip into account. Sign extend byte_offset.
4750 * utils.h (gdb_sign_extend): Declare.
4751 * utils.c (gdb_sign_extend): New function.
4752
4753 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4754
4755 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4756
4757 2013-06-17 Pierre Muller <muller@sourceware.org>
4758
4759 * corelow.c (core_open): Print GDB signal name instead of target
4760 signal number.
4761
4762 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4763
4764 * .gitignore: Add /gcore.
4765
4766 2013-06-13 Doug Evans <dje@google.com>
4767
4768 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4769 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4770
4771 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4772
4773 * stack.c (backtrace_command_1): Fix indentation.
4774
4775 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4776
4777 * window-nat.c (thread_rec): Add missing empty line after
4778 local variable declaration.
4779
4780 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4781
4782 * windows-nat.c (thread_rec): Revert format used to print
4783 error code returned by SuspendThread from %d back to %u.
4784
4785 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4786
4787 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4788 ID in debug trace.
4789 (get_windows_debug_event): Likewise, for all debug traces.
4790
4791 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4792
4793 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4794 warning message.
4795
4796 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4797 Yao Qi <yao@codesourcery.com>
4798
4799 * mi/mi-main.c (get_register): Remove declaration.
4800 (output_register): Declare.
4801 (mi_cmd_data_list_register_values): Remove local variable
4802 'tuple_cleanup'. Move some code into output_register.
4803 (get_register): Renamed to ...
4804 (output_register): ... this. Output the register's
4805 "number" ui_out tuple here.
4806
4807 2013-06-07 Pedro Alves <palves@redhat.com>
4808
4809 * darwin-nat.c: Fix formating in copyright header.
4810 * darwin-nat.h: Likewise.
4811 * gnu-nat.c: Likewise.
4812 * machoread.c: Likewise.
4813
4814 2013-06-07 Pedro Alves <palves@redhat.com>
4815
4816 PR server/14823
4817 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4818 static. Output a global target description pointer.
4819 (init_registers_${name}): Adjust to initialize a
4820 target description structure.
4821
4822 2013-06-07 Will Newton <will.newton@linaro.org>
4823
4824 * printcmd.c (build_address_symbolic): Call
4825 gdbarch_addr_bits_remove for text minimal symbols.
4826
4827 2013-06-07 Will Newton <will.newton@linaro.org>
4828
4829 * MAINTAINERS: Add myself to Write After Approval.
4830
4831 2013-06-07 Yao Qi <yao@codesourcery.com>
4832
4833 * tracepoint.c (start_tracing): Move code to ...
4834 (trace_reset_local_state): ... here. New.
4835 (disconnect_tracing): Don't call set_current_traceframe,
4836 set_tracepoint_num, and set_traceframe_context. Call
4837 trace_reset_local_state instead.
4838 (tfile_close): Call trace_reset_local_state.
4839 * ctf.c (ctf_close): Likewise.
4840 * remote.c (remote_close): Likewise.
4841 * tracepoint.h (trace_reset_local_state): Declare.
4842
4843 2013-06-06 Doug Evans <dje@google.com>
4844
4845 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4846 and fix header docs.
4847
4848 2013-06-05 Doug Evans <dje@google.com>
4849 Keith Seitz <keiths@redhat.com>
4850
4851 PR 15519
4852 * cp-namespace.c (find_symbol_in_baseclass): Call
4853 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4854 Check result of call to lookup_symbol_static.
4855 Call lookup_static_symbol_aux unconditionally.
4856 Call check_typedef on base types before accessing them.
4857 (cp_lookup_nested_symbol): Fix comment.
4858
4859 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4860
4861 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4862 minimal symbols pointing to function descriptors.
4863
4864 2013-06-05 Tom Tromey <tromey@redhat.com>
4865
4866 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4867
4868 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4869 Pedro Alves <palves@redhat.com>
4870
4871 * remote.c (remote_wait_as): Restore signal handler before returning
4872 when GDB gets a notification.
4873
4874 2013-06-04 Gary Benson <gbenson@redhat.com>
4875
4876 PR 2328
4877 * breakpoint.h (handle_solib_event): Moved function declaration
4878 to solib.h.
4879 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4880 (bpstat_stop_status): Pass new argument to handle_solib_event.
4881 * solib.h (update_solib_breakpoints): New function declaration.
4882 (handle_solib_event): Moved function declaration from
4883 breakpoint.h.
4884 * solib.c (update_solib_breakpoints): New function.
4885 (handle_solib_event): Moved function from breakpoint.c.
4886 Updated to call solib_ops->handle_event if not NULL.
4887 * solist.h (target_so_ops): New fields "update_breakpoints" and
4888 "handle_event".
4889 * infrun.c (set_stop_on_solib_events): New function.
4890 (_initialize_infrun): Use the above for "set
4891 stop-on-solib-events".
4892 (handle_inferior_event): Pass new argument to handle_solib_event.
4893 * solib-svr4.c (probe.h): New include.
4894 (svr4_free_library_list): New forward declaration.
4895 (probe_action): New enum.
4896 (probe_info): New struct.
4897 (probe_info): New static variable.
4898 (NUM_PROBES): New definition.
4899 (svr4_info): New fields "using_xfer", "probes_table" and
4900 "solib_list".
4901 (free_probes_table): New function.
4902 (free_solib_list): New function.
4903 (svr4_pspace_data_cleanup): Free probes table and solib list.
4904 (svr4_copy_library_list): New function.
4905 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4906 (svr4_read_so_list): New parameter "prev_lm".
4907 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4908 (svr4_current_sos): New function.
4909 (probe_and_action): New struct.
4910 (hash_probe_and_action): New function.
4911 (equal_probe_and_action): Likewise.
4912 (register_solib_event_probe): Likewise.
4913 (solib_event_probe_at): Likewise.
4914 (solib_event_probe_action): Likewise.
4915 (solist_update_full): Likewise.
4916 (solist_update_incremental): Likewise.
4917 (disable_probes_interface_cleanup): Likewise.
4918 (svr4_handle_solib_event): Likewise.
4919 (svr4_update_solib_event_breakpoint): Likewise.
4920 (svr4_update_solib_event_breakpoints): Likewise.
4921 (svr4_create_solib_event_breakpoints): Likewise.
4922 (enable_break): Free probes table before creating breakpoints.
4923 Use svr4_create_solib_event_breakpoints to create breakpoints.
4924 (svr4_solib_create_inferior_hook): Free the solib list.
4925 (_initialize_svr4_solib): Initialise
4926 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4927
4928 2013-06-04 Gary Benson <gbenson@redhat.com>
4929
4930 * target.h (target_ops): New field
4931 "to_augmented_libraries_svr4_read".
4932 (target_augmented_libraries_svr4_read): New macro.
4933 * target.c (update_current_target): Handle
4934 to_augmented_libraries_svr4_read.
4935 * remote.c (remote_state): New field
4936 "augmented_libraries_svr4_read".
4937 (remote_augmented_libraries_svr4_read_feature): New function.
4938 (remote_protocol_features): Add entry for
4939 "augmented-libraries-svr4-read".
4940 (remote_augmented_libraries_svr4_read): New function.
4941 (init_remote_ops): Initialize
4942 remote_ops.to_augmented_libraries_svr4_read.
4943
4944 2013-06-04 Gary Benson <gbenson@redhat.com>
4945
4946 * NEWS: Update.
4947
4948 2013-06-04 Gary Benson <gbenson@redhat.com>
4949
4950 * objfiles.h (inhibit_section_map_updates): New function
4951 declaration.
4952 (resume_section_map_updates): Likewise.
4953 (resume_section_map_updates_cleanup): Likewise.
4954 * objfiles.c (objfile_pspace_info): Removed field
4955 "objfiles_changed_p". New fields "new_objfiles_available",
4956 "section_map_dirty" and "inhibit_updates".
4957 (allocate_objfile): Set new_objfiles_available.
4958 (free_objfile): Set section_map_dirty.
4959 (objfile_relocate1): Likewise.
4960 (in_plt_section): Likewise.
4961 (find_pc_section): Update the conditions under which the
4962 section map will be updated.
4963 (inhibit_section_map_updates): New function.
4964 (resume_section_map_updates): Likewise.
4965 (resume_section_map_updates_cleanup): Likewise.
4966
4967 2013-06-04 Gary Benson <gbenson@redhat.com>
4968
4969 * probe.h (get_probe_argument_count): New declaration.
4970 (evaluate_probe_argument): Likewise.
4971 * probe.c (get_probe_argument_count): New function.
4972 (evaluate_probe_argument): Likewise.
4973 (probe_safe_evaluate_at_pc): Use the above new functions.
4974
4975 2013-06-04 Alan Modra <amodra@gmail.com>
4976
4977 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4978 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4979 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4980 target mem reads on optional insns.
4981 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4982 ppc_insns_match_pattern calls.
4983 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4984 Add match for power7 thread safety insns, and new order of
4985 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4986 invocation in comment, and update rest of comment.
4987 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4988 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4989 (ppc64_standard_linkage2_target): Update insn offsets.
4990 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4991 stubs first. Update calls.
4992
4993 2013-06-04 Yao Qi <yao@codesourcery.com>
4994
4995 * solib.c (solib_find): Don't need dir separator if path has
4996 drive spec.
4997
4998 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4999
5000 Revert (indirectly causes a SIGSEGV):
5001 * machoread.c (macho_symfile_read): Assign first cleanup to
5002 'back_to'.
5003
5004 2013-06-03 Yao Qi <yao@codesourcery.com>
5005
5006 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5007 mi-parse.c. Make them static.
5008 (mi_all_values): Likewise.
5009 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5010 mi_parse_print_values. Make it external.
5011 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5012 Remove the declarations.
5013 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5014 * mi/mi-parse.h (mi_parse_print_values): Declare.
5015 * mi/mi-cmd-stack.c: Include mi-parse.h.
5016 (parse_print_values): Remove
5017 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5018 of parse_print_values.
5019 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5020
5021 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5022 Yao Qi <yao@codesourcery.com>
5023
5024 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5025 (encode_actions): Move code to ...
5026 (all_tracepoint_actions_and_cleanup): ... here. New.
5027 (trace_dump_command): Likewise.
5028
5029 2013-05-30 Tom Tromey <tromey@redhat.com>
5030
5031 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5032
5033 2013-05-30 Tom Tromey <tromey@redhat.com>
5034
5035 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5036 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5037 'old_chain' argument. Add 'parser_result' argument.
5038 (gdb_xml_create_parser_and_cleanup): Remove old version.
5039 (gdb_xml_parse_quick): Update.
5040 (xml_process_xincludes): Update.
5041 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5042 declare.
5043
5044 2013-05-30 Tom Tromey <tromey@redhat.com>
5045
5046 * probe.c (collect_probes): Check arguments for NULL before
5047 calling compile_rx_or_error.
5048 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5049 Remove NULL return.
5050
5051 2013-05-30 Tom Tromey <tromey@redhat.com>
5052
5053 * infrun.c (adjust_pc_after_break): Introduce an outer null
5054 cleanup.
5055
5056 2013-05-30 Tom Tromey <tromey@redhat.com>
5057
5058 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5059
5060 2013-05-30 Tom Tromey <tromey@redhat.com>
5061
5062 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5063 for 'old_chain'. Do not check 'head' before processing
5064 cleanups.
5065
5066 2013-05-30 Tom Tromey <tromey@redhat.com>
5067
5068 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5069 "cleanup_tuple".
5070
5071 2013-05-30 Tom Tromey <tromey@redhat.com>
5072
5073 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5074 inner scope. Unconditionally call do_cleanups.
5075
5076 2013-05-30 Tom Tromey <tromey@redhat.com>
5077
5078 * source.c (find_and_open_source): Call do_cleanups.
5079
5080 2013-05-30 Tom Tromey <tromey@redhat.com>
5081
5082 * linux-thread-db.c (thread_db_load_search): Unconditionally
5083 call do_cleanups.
5084
5085 2013-05-30 Tom Tromey <tromey@redhat.com>
5086
5087 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5088 for 'cleanup'; instead use a later one.
5089
5090 2013-05-30 Tom Tromey <tromey@redhat.com>
5091
5092 * python/py-breakpoint.c (bppy_get_commands): Use
5093 explicit, unconditional return.
5094 * python/py-frame.c (frapy_read_var): Likewise.
5095 * python/python.c (gdbpy_decode_line): Likewise.
5096
5097 2013-05-30 Tom Tromey <tromey@redhat.com>
5098
5099 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5100 do_cleanups on all return paths.
5101
5102 2013-05-30 Tom Tromey <tromey@redhat.com>
5103
5104 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5105
5106 2013-05-30 Tom Tromey <tromey@redhat.com>
5107
5108 * stabsread.c (read_struct_type): Call do_cleanups along
5109 all return paths.
5110
5111 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5112
5113 * mips-linux-tdep.c: Adjust formatting throughout.
5114
5115 2013-05-30 Tom Tromey <tromey@redhat.com>
5116
5117 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5118 along all return paths.
5119
5120 2013-05-30 Tom Tromey <tromey@redhat.com>
5121
5122 * symfile.c (find_separate_debug_file): Call do_cleanups
5123 along all return paths.
5124
5125 2013-05-30 Tom Tromey <tromey@redhat.com>
5126
5127 * symtab.c (search_symbols): Introduce a null cleanup for
5128 'retval_chain'.
5129
5130 2013-05-30 Tom Tromey <tromey@redhat.com>
5131
5132 * python/py-value.c (valpy_binop): Call do_cleanups before
5133 exiting loop.
5134
5135 2013-05-30 Tom Tromey <tromey@redhat.com>
5136
5137 * python/py-prettyprint.c (print_children): Remove extra
5138 do_cleanups call.
5139
5140 2013-05-30 Tom Tromey <tromey@redhat.com>
5141
5142 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5143 all return paths.
5144
5145 2013-05-30 Tom Tromey <tromey@redhat.com>
5146
5147 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5148 along all return paths.
5149
5150 2013-05-30 Tom Tromey <tromey@redhat.com>
5151
5152 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5153 call do_cleanups.
5154
5155 2013-05-30 Tom Tromey <tromey@redhat.com>
5156
5157 * varobj.c (c_value_of_root): Call do_cleanups along all
5158 return paths.
5159
5160 2013-05-30 Tom Tromey <tromey@redhat.com>
5161
5162 * tracepoint.c (trace_dump_command): Unconditionally call
5163 do_cleanups.
5164
5165 2013-05-30 Tom Tromey <tromey@redhat.com>
5166
5167 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5168 do_cleanups earlier.
5169
5170 2013-05-30 Tom Tromey <tromey@redhat.com>
5171
5172 * machoread.c (macho_symfile_read): Assign first cleanup to
5173 'back_to'.
5174
5175 2013-05-30 Tom Tromey <tromey@redhat.com>
5176
5177 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5178
5179 2013-05-30 Tom Tromey <tromey@redhat.com>
5180
5181 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5182
5183 2013-05-30 Tom Tromey <tromey@redhat.com>
5184
5185 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5186 call discard_cleanups.
5187 (inf_ptrace_attach): Likewise.
5188
5189 2013-05-30 Tom Tromey <tromey@redhat.com>
5190
5191 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5192 return paths.
5193 (mips_initialize): Likewise.
5194 (common_open): Call do_cleanups.
5195
5196 2013-05-30 Tom Tromey <tromey@redhat.com>
5197
5198 * utils.c (internal_vproblem): Call do_cleanups.
5199
5200 2013-05-30 Tom Tromey <tromey@redhat.com>
5201
5202 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5203
5204 2013-05-30 Tom Tromey <tromey@redhat.com>
5205
5206 * cli/cli-script.c (setup_user_args): Don't return after error.
5207
5208 2013-05-30 Tom Tromey <tromey@redhat.com>
5209
5210 * somread.c (som_symtab_read): Call do_cleanups.
5211
5212 2013-05-30 Tom Tromey <tromey@redhat.com>
5213
5214 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5215
5216 2013-05-30 Tom Tromey <tromey@redhat.com>
5217
5218 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5219 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5220 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5221 * source.c (show_substitute_path_command): Call do_cleanups.
5222 (unset_substitute_path_command, set_substitute_path_command):
5223 Likewise.
5224 * symfile.c (load_command): Call do_cleanups.
5225
5226 2013-05-30 Tom Tromey <tromey@redhat.com>
5227
5228 * contrib/cleanup_check.py: New file.
5229 * contrib/gcc-with-excheck: Add option parsing.
5230
5231 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5232
5233 * windows-nat.c (windows_delete_thread): Add missing space
5234 in cast expression.
5235
5236 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5237
5238 * inferior.c (top level): Include tilde.h.
5239 (add_inferior_command): Call tilde_expand on the value of 'exec'
5240 argument.
5241
5242 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5243 Yao Qi <yao@codesourcery.com>
5244
5245 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5246 Caller update.
5247 (encode_actions): Likewise.
5248 * remote.c (remote_download_tracepoint): Caller update.
5249 * tracepoint.h (encode_actions): Update declaration.
5250
5251 2013-05-30 Pedro Alves <palves@redhat.com>
5252
5253 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5254 pointer.
5255
5256 2013-05-30 Yao Qi <yao@codesourcery.com>
5257
5258 * remote.c (remote_check_symbols): Remove unused parameter
5259 'objfile'.
5260 Declaration update.
5261 (remote_start_remote, remote_new_objfile): Caller update.
5262
5263 2013-05-30 Yao Qi <yao@codesourcery.com>
5264
5265 * mi/mi-cmds.c (mi_cmds): Define MI command
5266 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5267 DEF_MI_CMD_CLI.
5268
5269 2013-05-29 Pedro Alves <palves@redhat.com>
5270
5271 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5272 (remote_insert_watchpoint, remote_remove_watchpoint)
5273 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5274 (remote_verify_memory, compare_sections_command)
5275 (remote_search_memory): Set the general process/thread on the
5276 remote side.
5277
5278 2013-05-29 Pedro Alves <palves@redhat.com>
5279
5280 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5281 (_initialize_aarch64_tdep): Don't call
5282 initialize_tdesc_aarch64_without_fpu.
5283 * features/Makefile (WHICH): Remove reference to
5284 aarch64-without-fpu.
5285 * features/aarch64-without-fpu.c: Delete file.
5286 * regformats/aarch64-without-fpu.dat: Delete file.
5287
5288 2013-05-28 Yao Qi <yao@codesourcery.com>
5289
5290 * tracepoint.c (stringify_collection_list): Remove parameter
5291 'string'.
5292 (encode_actions): Caller update. Remove local variables.
5293
5294 2013-05-24 Yao Qi <yao@codesourcery.com>
5295
5296 * tracepoint.c (TFILE_PID): Remove.
5297 (tfile_open): Don't add thread and inferior.
5298 (tfile_close): Don't set 'inferior_ptid'. Don't call
5299 exit_inferior_silent.
5300 (tfile_thread_alive): Remove.
5301 (init_tfile_ops): Don't set field 'to_thread_alive' of
5302 tfile_ops.
5303
5304 2013-05-23 Doug Evans <dje@google.com>
5305
5306 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5307
5308 2013-05-23 Pedro Alves <palves@redhat.com>
5309
5310 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5311 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5312 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5313 Only define if HAVE_SOCKETS is defined.
5314 * configure.ac: Check for sys/socket.h.
5315 * config.in, configure: Regenerate.
5316
5317 2013-05-23 Pedro Alves <palves@redhat.com>
5318
5319 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5320 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5321 printing uint32_t variables.
5322
5323 2013-05-23 Pedro Alves <palves@redhat.com>
5324
5325 * NEWS: Mention GDBserver range stepping support.
5326
5327 2013-05-23 Yao Qi <yao@codesourcery.com>
5328 Pedro Alves <palves@redhat.com>
5329
5330 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5331 field.
5332 * infcmd.c (step_once, until_next_command): Enable range stepping.
5333 * infrun.c (displaced_step_prepare): Disable range stepping.
5334 (resume): Disable range stepping if stepping over a breakpoint or
5335 we have software watchpoints. If range stepping is enabled,
5336 assert the thread is in the stepping range.
5337 (clear_proceed_status_thread): Clear may_range_step.
5338 (handle_inferior_event): Disable range stepping as soon as we know
5339 the thread that hit the event. Re-enable it whenever we're going
5340 to step with a step range.
5341 * remote.c (struct vCont_action_support) <r>: New field.
5342 (use_range_stepping): New global.
5343 (remote_vcont_probe): Handle 'r' action.
5344 (append_resumption): Append an 'r' action if the thread may range
5345 step.
5346 (show_range_stepping): New function.
5347 (set_range_stepping): New function.
5348 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5349 'set range-stepping' and 'show range-stepping' commands.
5350 * NEWS: Mention range stepping, the new vCont;r action, and the
5351 new "set/show range-stepping" commands.
5352
5353 2013-05-23 Yao Qi <yao@codesourcery.com>
5354 Pedro Alves <palves@redhat.com>
5355
5356 * remote.c (struct vCont_action_support): New struct.
5357 (struct remote_state) <support_vCont_t>: Remove field.
5358 <vCont_actions_support>: New field.
5359 (remote_vcont_probe, remote_stop_ns): Update.
5360
5361 2013-05-23 Yao Qi <yao@codesourcery.com>
5362 Pedro Alves <palves@redhat.com>
5363
5364 * gdbthread.h (pc_in_thread_step_range): New declaration.
5365 * thread.c (pc_in_thread_step_range): New function.
5366 * infrun.c (handle_inferior_event): Use it.
5367
5368 2013-05-23 Joel Brobecker <brobecker@adacore.com>
5369
5370 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5371 of sprintf.
5372
5373 2013-05-22 Keith Seitz <keiths@redhat.com>
5374
5375 * ada-lang.c (is_known_support_routine): Add explicit free of
5376 'func_name' from find_frame_funname.
5377 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5378 for func_name from find_frame_funname.
5379 * python/py-frame.c (frapy_name): Add explicit free of
5380 'name' from find_frame_funname.
5381 * stack.c (find_frame_funname): Add comment explaining that
5382 funcp must be freed by the caller.
5383 Return copy of symbol names instead of pointers.
5384 (print_frame): Add a cleanup for 'funname' from
5385 find_frame_funname.
5386 * stack.h (find_frame_funname): Remove "const" from
5387 'funname' parameter.
5388
5389 2013-05-22 Tom Tromey <tromey@redhat.com>
5390
5391 PR c++/15401:
5392 * c-valprint.c (c_value_print): Use value_addr for
5393 references. Convert back to reference type with value_ref.
5394
5395 2013-05-22 Eli Zaretskii <eliz@gnu.org>
5396
5397 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5398 unloaded DLL, it will be done by handle_solib_event. See
5399 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5400 details.
5401
5402 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5403
5404 * ui-out.c: Create typedef ui_out_level_p and define vector
5405 operations for that type.
5406 (struct ui_out): Use a vector instead of an array.
5407 (current_level): Return level from a vector.
5408 (push_level): Create a level in a vector.
5409 (pop_level): Delete a level in a vector.
5410 (ui_out_new): Create initial level zero level, and store in a
5411 vector.
5412 (ui_out_destroy): Add vector cleanup.
5413
5414 2013-05-22 Pedro Alves <palves@redhat.com>
5415
5416 * python/python-internal.h (gdb_Py_DECREF): Tag with
5417 "ARI: editCase function".
5418
5419 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5420
5421 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5422
5423 2013-05-21 Pedro Alves <palves@redhat.com>
5424
5425 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5426 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5427 * python/py-utils.c (py_decref): Don't check for NULL before
5428 calling Py_DECREF.
5429
5430 2013-05-21 Pedro Alves <palves@redhat.com>
5431
5432 * python/py-utils.c (py_decref): Remove extra braces.
5433 (gdb_pymodule_addobject): Remove extra braces.
5434 * python-internal.h (gdb_Py_DECREF): New static inline function.
5435 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5436
5437 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5438
5439 * breakpoints.c (detach_breakpoints): Do not
5440 detach breakpoints locations with loc_type bp_loc_other.
5441
5442 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5443
5444 Workaround Python 2.6.
5445 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5446 a block.
5447
5448 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5449
5450 Code cleanup: constification.
5451 * solib.c (solib_ops): Make return type and ops variable type const.
5452 (set_solib_ops): Make the new_ops parameter and ops variable const.
5453 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5454 (solib_add, solib_keep_data_in_core, clear_solib)
5455 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5456 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5457 const.
5458 * solib.h (set_solib_ops): Make the new_ops parameter const.
5459
5460 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5461
5462 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5463 variable.
5464 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5465 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5466 (SYSTEM_GDBINIT_FILES): New variables.
5467 (all): Add stamp-system-gdbinit.
5468 (stamp-system-gdbinit): New rule.
5469 (clean-system-gdbinit, install-system-gdbinit)
5470 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5471 (install-only): Add dependency on install-system-gdbinit.
5472 (uninstall): Add dependency on uninstall-system-gdbinit.
5473 (clean): Add dependency on clean-system-gdbinit.
5474 * system-gdbinit/elinos.py: New file.
5475 * system-gdbinit/wrs-linux.py: New file.
5476
5477 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5478
5479 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5480
5481 2013-05-21 Hui Zhu <hui@codesourcery.com>
5482
5483 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5484 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5485 * mi/mi-cmd-break.c (ctype.h): New include.
5486 (gdb_obstack.h): New include.
5487 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5488 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5489 (mi_cmd_dprintf_insert): New.
5490 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5491 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5492
5493 2013-05-20 Tom Tromey <tromey@redhat.com>
5494
5495 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5496
5497 2013-05-20 Tom Tromey <tromey@redhat.com>
5498
5499 * python/py-value.c (valpy_get_dynamic_type): Simplify
5500 dynamic_type assignment. Use Py_XINCREF.
5501
5502 2013-05-20 Tom Tromey <tromey@redhat.com>
5503
5504 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5505
5506 2013-05-20 Tom Tromey <tromey@redhat.com>
5507
5508 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5509 (gdbpy_selected_frame): Move object-construction code
5510 out of TRY_CATCH.
5511
5512 2013-05-20 Tom Tromey <tromey@redhat.com>
5513
5514 * python/py-arch.c (gdbpy_initialize_arch): Use
5515 gdb_pymodule_addobject.
5516 * python/py-block.c (gdbpy_initialize_blocks): Use
5517 gdb_pymodule_addobject.
5518 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5519 gdb_pymodule_addobject.
5520 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5521 gdb_pymodule_addobject.
5522 * python/py-event.c (gdbpy_initialize_event_generic): Use
5523 gdb_pymodule_addobject.
5524 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5525 gdb_pymodule_addobject.
5526 * python/py-evts.c (add_new_registry): Use
5527 gdb_pymodule_addobject.
5528 (gdbpy_initialize_py_events): Likewise.
5529 * python/py-finishbreakpoint.c
5530 (gdbpy_initialize_finishbreakpoints): Use
5531 gdb_pymodule_addobject.
5532 * python/py-frame.c (gdbpy_initialize_frames): Use
5533 gdb_pymodule_addobject.
5534 * python/py-function.c (gdbpy_initialize_functions): Use
5535 gdb_pymodule_addobject.
5536 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5537 gdb_pymodule_addobject.
5538 * python/py-infthread.c (gdbpy_initialize_thread): Use
5539 gdb_pymodule_addobject.
5540 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5541 gdb_pymodule_addobject.
5542 * python/py-param.c (gdbpy_initialize_parameters): Use
5543 gdb_pymodule_addobject.
5544 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5545 gdb_pymodule_addobject.
5546 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5547 gdb_pymodule_addobject.
5548 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5549 gdb_pymodule_addobject.
5550 * python/py-type.c (gdbpy_initialize_types): Use
5551 gdb_pymodule_addobject.
5552 * python/py-utils.c (gdb_pymodule_addobject): New function.
5553 * python/py-value.c (gdbpy_initialize_values): Use
5554 gdb_pymodule_addobject.
5555 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5556 * python/python.c (_initialize_python): Use
5557 gdb_pymodule_addobject.
5558
5559 2013-05-20 Tom Tromey <tromey@redhat.com>
5560
5561 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5562 * python/py-param.c (get_set_value, get_show_value): Use
5563 explicit decrefs.
5564 * python/python.c (start_type_printers, apply_type_printers):
5565 Use explicit decrefs.
5566
5567 2013-05-20 Tom Tromey <tromey@redhat.com>
5568
5569 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5570 incref the module.
5571
5572 2013-05-20 Tom Tromey <tromey@redhat.com>
5573
5574 * python/python.c (gdbpy_run_events): Decref the result
5575 of PyObject_CallObject.
5576
5577 2013-05-20 Tom Tromey <tromey@redhat.com>
5578
5579 * python/py-symtab.c (set_sal): Use
5580 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5581 (symtab_and_line_to_sal_object): Update.
5582
5583 2013-05-20 Tom Tromey <tromey@redhat.com>
5584
5585 * python/py-param.c (compute_enum_values): Decref 'item'.
5586
5587 2013-05-20 Tom Tromey <tromey@redhat.com>
5588
5589 * mi/mi-main.c: Include python-internal.h.
5590 (mi_cmd_list_features): Check gdb_python_initialized.
5591 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5592 (python_inferior_exit, python_new_objfile, add_thread_object)
5593 (delete_thread_object, py_free_inferior): Check
5594 gdb_python_initialized.
5595 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5596 gdb_python_initialized.
5597 * python/py-type.c (save_objfile_types): Check
5598 gdb_python_initialized.
5599 * python/python-internal.h (gdb_python_initialized): Declare.
5600 * python/python.c (ensure_python_env): Throw exception if
5601 Python not initialized.
5602 (before_prompt_hook, source_python_script_for_objfile)
5603 (start_type_printers, apply_type_printers,
5604 free_type_printers): Check gdb_python_initialized.
5605 * varobj.c (varobj_get_display_hint)
5606 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5607 (install_new_value_visualizer, varobj_set_visualizer)
5608 (value_get_print_value): Check gdb_python_initialized.
5609
5610 2013-05-20 Tom Tromey <tromey@redhat.com>
5611
5612 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5613 Check errors.
5614 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5615 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5616 Check errors.
5617 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5618 Check errors.
5619 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5620 Check errors.
5621 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5622 Check errors.
5623 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5624 init function to return 'int'.
5625 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5626 Return 'int'. Check errors.
5627 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5628 Check errors.
5629 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5630 Return 'int'. Check errors.
5631 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5632 Check errors.
5633 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5634 Check errors.
5635 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5636 Check errors.
5637 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5638 Check errors.
5639 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5640 Check errors.
5641 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5642 Check errors.
5643 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5644 Check errors.
5645 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5646 Check errors.
5647 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5648 Check errors.
5649 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5650 Check errors.
5651 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5652 Check errors.
5653 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5654 Check errors.
5655 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5656 Check errors.
5657 * python/python-internal.h (gdbpy_initialize_auto_load,
5658 gdbpy_initialize_values, gdbpy_initialize_frames,
5659 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5660 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5661 gdbpy_initialize_blocks, gdbpy_initialize_types,
5662 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5663 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5664 gdbpy_initialize_finishbreakpoints,
5665 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5666 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5667 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5668 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5669 gdbpy_initialize_signal_event,
5670 gdbpy_initialize_breakpoint_event,
5671 gdbpy_initialize_continue_event,
5672 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5673 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5674 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5675 * python/python.c (gdb_python_initialized): New global.
5676 (gdbpy_initialize_events): Return 'int'. Check errors.
5677 (_initialize_python): Check errors. Set
5678 gdb_python_initialized.
5679
5680 2013-05-20 Tom Tromey <tromey@redhat.com>
5681
5682 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5683 Decref the reslut of PyObject_CallMethod.
5684
5685 2013-05-20 Tom Tromey <tromey@redhat.com>
5686
5687 * python/py-event.c (gdbpy_initialize_event_generic): Return
5688 early if PyType_Ready fails.
5689
5690 2013-05-20 Tom Tromey <tromey@redhat.com>
5691
5692 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5693 as 'default' in the switch.
5694
5695 2013-05-20 Tom Tromey <tromey@redhat.com>
5696
5697 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5698 get_addr_from_python calls out of TRY_CATCH.
5699 (infpy_write_memory, infpy_search_memory): Likewise.
5700 * python/py-utils.c (get_addr_from_python): Return negative
5701 value on error. Use TRY_CATCH.
5702 * python/python-internal.h (get_addr_from_python): Use
5703 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5704
5705 2013-05-20 Tom Tromey <tromey@redhat.com>
5706
5707 * python/py-event.c (evpy_emit_event): Decref the
5708 result of PyObject_CallFunctionObjArgs.
5709
5710 2013-05-20 Tom Tromey <tromey@redhat.com>
5711
5712 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5713 Correctly decref.
5714
5715 2013-05-20 Tom Tromey <tromey@redhat.com>
5716
5717 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5718
5719 2013-05-20 Tom Tromey <tromey@redhat.com>
5720
5721 * python/py-event.h (gdbpy_initialize_event_generic): Use
5722 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5723 * python/py-evts.c (add_new_registry): Use
5724 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5725 * python/python-internal.h
5726 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5727
5728 2013-05-20 Tom Tromey <tromey@redhat.com>
5729
5730 * python/py-arch.c (archpy_disassemble): Update.
5731 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5732 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5733 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5734 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5735 macro.
5736 (GDB_PY_HANDLE_EXCEPTION): Update.
5737 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5738
5739 2013-05-20 Tom Tromey <tromey@redhat.com>
5740
5741 * python/python-internal.h (events_object_type): Remove.
5742
5743 2013-05-20 Tom Tromey <tromey@redhat.com>
5744
5745 * python/py-event.h (evpy_emit_event): Use
5746 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5747 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5748 New macro.
5749
5750 2013-05-20 Tom Tromey <tromey@redhat.com>
5751
5752 * py-evtregistry.c (create_event_object): Decref
5753 eventregistry_object if PyList_New fails.
5754
5755 2013-05-20 Tom Tromey <tromey@redhat.com>
5756
5757 * py-cmd.c (gdbpy_string_to_argv): Check result of
5758 PyList_New.
5759
5760 2013-05-20 Tom Tromey <tromey@redhat.com>
5761
5762 * python/python.c (before_prompt_hook): Add cleanup to
5763 decref 'hook'.
5764
5765 2013-05-20 Tom Tromey <tromey@redhat.com>
5766
5767 * python/py-function.c (fnpy_init): Decref result of
5768 PyObject_GetAttrString.
5769
5770 2013-05-20 Tom Tromey <tromey@redhat.com>
5771
5772 * python/py-threadevent.c (get_event_thread): Use
5773 CPYCHECKER_RETURNS_BORROWED_REF.
5774 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5775 New define.
5776 (pspace_to_pspace_object, objfile_to_objfile_object)
5777 (find_thread_object): Use it.
5778
5779 2013-05-20 Tom Tromey <tromey@redhat.com>
5780
5781 * python/py-arch.c (arch_object_type): Use
5782 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5783 * python/py-block.c (block_syms_iterator_object_type):
5784 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5785 * python/py-bpevent.c (breakpoint_event_object_type):
5786 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5787 * python/py-cmd.c (cmdpy_object_type): Use
5788 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5789 * python/py-continueevent.c (continue_event_object_type):
5790 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5791 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5792 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5793 * python/py-events.h (thread_event_object_type):
5794 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5795 * python/py-evtregistry.c (eventregistry_object_type): Use
5796 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5797 * python/py-exitedevent.c (exited_event_object_type):
5798 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5799 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5800 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5801 * python/py-function.c (fnpy_object_type): Use
5802 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5803 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5804 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5805 * python/py-infthread.c (thread_object_type): Use
5806 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5807 * python/py-lazy-string.c (lazy_string_object_type):
5808 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5809 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5810 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5811 * python/py-objfile.c (objfile_object_type): Use
5812 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5813 * python/py-param.c (parmpy_object_type):
5814 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5815 * python/py-progspace.c (pspace_object_type):
5816 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5817 * python/py-signalevent.c (signal_event_object_type):
5818 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5819 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5820 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5821 * python/py-type.c (type_object_type, field_object_type)
5822 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5823 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5824 define.
5825 (value_object_type, block_object_type, symbol_object_type)
5826 (event_object_type, stop_event_object_type, breakpoint_object_type)
5827 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5828
5829 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5830
5831 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5832 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5833
5834 2013-05-20 Doug Evans <dje@google.com>
5835
5836 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5837 For Fission.
5838 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5839 reading_dwo_directly.
5840 (struct signatured_type): New member dwo_unit.
5841 (struct die_reader_specs): New member comp_dir.
5842 (create_signatured_type_table_from_index): Use malloc for
5843 all_type_units instead of objfile's obstack.
5844 (create_all_type_units): Ditto.
5845 (fill_in_sig_entry_from_dwo_entry): New function.
5846 (add_type_unit): New function.
5847 (lookup_dwo_signatured_type): New function.
5848 (lookup_dwp_signatured_type): New function.
5849 (lookup_signatured_type): New arg cu. All callers updated.
5850 (init_cu_die_reader): Initialize comp_dir.
5851 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5852 Change assert of matching type signatures to call error on mismatch.
5853 (lookup_dwo_unit): Add assert.
5854 (init_tu_and_read_dwo_dies): New function.
5855 (init_cutu_and_read_dies): Call it.
5856 (build_type_unit_groups): Handle case of no type unit groups created.
5857 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5858 (lookup_dwo_cutu): Tweak complaint.
5859 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5860 (dwarf2_per_objfile_free): Free all_type_units.
5861
5862 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5863
5864 * windows-nat.c (handle_unload_dll): Add missing empty line.
5865
5866 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5867
5868 * dwarf2read.c (prototyped_function_p): New function.
5869 (read_subroutine_type): Use it.
5870
5871 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5872
5873 * rs6000-aix-tdep.c: De-indent some example code provided
5874 as a comment.
5875
5876 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5877
5878 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5879 region is ok for a hardware watchpoint using the new ptrace interface
5880 on Power servers.
5881
5882 2013-05-17 Doug Evans <dje@google.com>
5883
5884 * NEWS: Mention new maintenance commands check-symtabs, and
5885 expand-symtabs, and renamed check-psymtabs.
5886 * psymtab.c (maintenance_check_psymtabs): Renamed from
5887 maintenance_check_symtabs. Only process already-expanded symbol
5888 tables.
5889 (_initialize_psymtab): Update.
5890 * symmisc.c (maintenance_check_symtabs): New function.
5891 (maintenance_expand_name_matcher): New function
5892 (maintenance_expand_file_matcher): New function
5893 (maintenance_expand_symtabs): New function.
5894 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5895 commands.
5896
5897 2013-05-17 Tom Tromey <tromey@redhat.com>
5898
5899 * python/py-inferior.c (infpy_read_memory): Don't call
5900 PyErr_SetString if PyObject_New fails.
5901 * python/py-frame.c (frame_info_to_frame_object): Don't call
5902 PyErr_SetString if PyObject_New fails.
5903
5904 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5905
5906 * acinclude.m4: Add check for dlopen in libdl.
5907 * configure.ac: Ditto.
5908 * configure: Regenerate.
5909
5910 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5911
5912 * frame.c (frame_stash): Convert to htab.
5913 (frame_addr_hash): New function.
5914 (frame_addr_hash_eq): New function.
5915 (frame_stash_create): Convert function to create
5916 a hash table.
5917 (frame_stash_add): Convert function to add an entry to a hash
5918 table.
5919 (frame_stash_find): Convert function to search the hash table.
5920 (frame_stash_invalidate): Convert function to empty the hash
5921 table.
5922 (get_frame_id): Only add to stash if a frame_id is created.
5923 (_initialize_frame): Call frame_stash_create.
5924
5925 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5926
5927 * configure.ac: Ensure MIG is available when building for GNU Hurd
5928 hosts.
5929 * configure: Regenerate.
5930
5931 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5932
5933 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5934
5935 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5936
5937 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5938 all cleanups are done before returning from this function.
5939
5940 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5941
5942 * utils.h: #include "exceptions.h".
5943 (enum errors): Remove partial declaration.
5944
5945 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5946
5947 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5948 * gdbarch.h, gdbarch.c: Regenerate.
5949 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5950 handling.
5951
5952 * rs6000-aix-tdep.h: New file.
5953 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5954 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5955 "xml-utils.h".
5956 (struct field_info, struct ld_info_desc): New types.
5957 (ld_info32_desc, ld_info64_desc): New static constants.
5958 (struct ld_info): New type.
5959 (rs6000_aix_extract_ld_info): New function.
5960 (rs6000_aix_shared_library_to_xml): Likewise.
5961 (rs6000_aix_ld_info_to_xml): Likewise.
5962 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5963 (rs6000_aix_init_osabi): Add call to
5964 set_gdbarch_core_xfer_shared_libraries_aix.
5965 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5966 Remove "xml-utils.h" include.
5967 (LdInfo): Delete typedef.
5968 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5969 Delete macros.
5970 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5971 Adjust code accordingly.
5972 (rs6000_core_ldinfo): Delete, folded into
5973 rs6000_aix_core_xfer_shared_libraries_aix.
5974 (rs6000_xfer_shared_library): Delete.
5975 (rs6000_xfer_shared_libraries): Reimplement.
5976
5977 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5978
5979 * record.c (record_goto_cmdlist): New.
5980 (cmd_record_goto): Split into this ...
5981 (cmd_record_goto_begin): ... this
5982 (cmd_record_goto_end): ... and this.
5983 (_initialize_record): Change "record goto" to prefix command.
5984 Add commands for "record goto begin" and "record goto end".
5985 Add an alias for "record goto start" to "record goto begin".
5986
5987 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5988
5989 * linespec.c (convert_linespec_to_sals): New comment for
5990 SOURCE_FILENAME assignment.
5991
5992 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5993
5994 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5995 internal_warning.
5996
5997 2013-05-14 Tom Tromey <tromey@redhat.com>
5998
5999 * eval.c (parse_and_eval_long): Make 'exp' const.
6000 * value.h (parse_and_eval_long): Update.
6001
6002 2013-05-14 Tom Tromey <tromey@redhat.com>
6003
6004 * ui-file.c (gdb_fopen): Make arguments const.
6005 * ui-file.h (gdb_fopen): Make arguments const.
6006
6007 2013-05-14 Tom Tromey <tromey@redhat.com>
6008
6009 * remote.c (remote_set_trace_notes): Make arguments const.
6010 * target.c (update_current_target): Update cast.
6011 * target.h (to_set_trace_notes): Make arguments const.
6012
6013 2013-05-14 Tom Tromey <tromey@redhat.com>
6014
6015 * go32-nat.c (go32_terminal_info): Make 'args' const.
6016 * inferior.h (child_terminal_info): Update.
6017 * inflow.c (child_terminal_info): Make 'args' const.
6018 * target.c (default_terminal_info): Make 'args' const.
6019 (debug_to_terminal_save_ours): Likewise.
6020 * target.h (struct target_ops) <to_terminal_info>: Make argument
6021 const.
6022
6023 2013-05-13 Tom Tromey <tromey@redhat.com>
6024
6025 * gcore.c (create_gcore_bfd): Make 'filename' const.
6026 * gcore.h (create_gcore_bfd): Make 'filename' const.
6027 * record-full.c (record_full_save): Make 'recfilename' const.
6028 * target.c (target_save_record): Make 'filename' const.
6029 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6030 const.
6031 (target_save_record): Likewise.
6032
6033 2013-05-13 Tom Tromey <tromey@redhat.com>
6034
6035 PR gdb/15338:
6036 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6037 ranges section has been read.
6038
6039 2013-05-13 Tom Tromey <tromey@redhat.com>
6040
6041 PR exp/15364:
6042 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6043 STRUCTOP_PTR>: Return a not_lval value for
6044 EVAL_AVOID_SIDE_EFFECTS.
6045 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6046 for EVAL_AVOID_SIDE_EFFECTS.
6047
6048 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6049
6050 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6051 floating point registers to register type before storing
6052 value.
6053 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6054 Likewise.
6055
6056 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6057 Tom Tromey <tromey@redhat.com>
6058
6059 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6060 New functions.
6061 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6062 Declare.
6063 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6064 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6065 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6066 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6067
6068 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6069 Tom Tromey <tromey@redhat.com>
6070
6071 PR build/15414:
6072 * configure: Rebuild.
6073 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6074 with -Wno-format.
6075
6076 2013-05-10 Pedro Alves <palves@redhat.com>
6077
6078 * remote.c (_initialize_remote): Fix spelling of
6079 qXfer:traceframe-info:read packet in packet config command.
6080
6081 2013-05-10 David Taylor <dtaylor@emc.com>
6082
6083 PR remote/15455
6084
6085 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6086 "QTro" at start of packet.
6087
6088 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6089
6090 * solib-aix.c (solib_aix_relocate_section_addresses):
6091 For the .bss section action, apply the same offset as
6092 the .data section.
6093
6094 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6095
6096 * solib-aix.c (solib_aix_relocate_section_addresses):
6097 Remove FIXME comment.
6098
6099 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6100
6101 PR tdep/15420:
6102 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6103 New functions, directly copied from sparc-sol-thread.c.
6104 * sparc-sol-thread.c: Delete.
6105 * configure.ac: Remove code handling sparc-solaris-thread.c.
6106 * configure: Regenerate.
6107
6108 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6109
6110 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6111 filter logic.
6112 (backtrace_command): Add "no-filters" option parsing.
6113 (_initialize_stack): Alter help to reflect "no-filters" option.
6114 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6115 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6116 (py-frame.o): Add target
6117 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6118 filter files.
6119 * python/python.h: Add new frame filter constants, and flag enum.
6120 (apply_frame_filter): Add definition.
6121 * python/python.c (apply_frame_filter): New non-Python
6122 enabled function.
6123 * python/py-utils.c (py_xdecref): New function.
6124 (make_cleanup_py_xdecref): Ditto.
6125 * python/py-objfile.c: Declare frame_filters dictionary.
6126 (objfpy_dealloc): Add frame_filters dealloc.
6127 (objfpy_new): Initialize frame_filters attribute.
6128 (objfile_to_objfile_object): Ditto.
6129 (objfpy_get_frame_filters): New function.
6130 (objfpy_set_frame_filters): New function.
6131 * python/py-progspace.c: Declare frame_filters dictionary.
6132 (pspy_dealloc): Add frame_filters dealloc.
6133 (pspy_new): Initialize frame_filters attribute.
6134 (pspacee_to_pspace_object): Ditto.
6135 (pspy_get_frame_filters): New function.
6136 (pspy_set_frame_filters): New function.
6137 * python/py-framefilter.c: New file.
6138 * python/lib/gdb/command/frame_filters.py: New file.
6139 * python/lib/gdb/frames.py: New file.
6140 * python/lib/gdb/__init__.py: Initialize global frame_filters
6141 dictionary
6142 * python/lib/gdb/FrameDecorator.py: New file.
6143 * python/lib/gdb/FrameIterator.py: New file.
6144 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6145 * mi/mi-cmds.h: Declare.
6146 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6147 --no-frame-filter logic, and Python frame filter logic.
6148 (stack_enable_frame_filters): New function.
6149 (parse_no_frame_option): Ditto.
6150 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6151 filter logic.
6152 (mi_cmd_stack_list_locals): Ditto.
6153 (mi_cmd_stack_list_args): Ditto.
6154 (mi_cmd_stack_list_variables): Ditto.
6155 * NEWS: Add frame filter note.
6156
6157 2013-05-09 Doug Evans <dje@google.com>
6158
6159 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6160 All callers updated.
6161 (syms_from_objfile): Ditto. Make static.
6162 (symbol_file_add_with_addrs): Renamed from
6163 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6164 num_offsets. All callers updated.
6165 * symfile.h (syms_from_objfile): Delete.
6166
6167 * symfile.c (decrement_reading_symtab): Add assert.
6168 (increment_reading_symtab): Ditto.
6169
6170 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6171
6172 * source.c (forward_search_command): Replace call to getc
6173 by call to fgetc.
6174 (reverse_search_command): Likewise.
6175
6176 2013-05-08 Doug Evans <dje@google.com>
6177
6178 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6179 matching test.
6180
6181 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6182
6183 * sol-thread.c (info_cb): Factorize the code a little.
6184
6185 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6186
6187 * sol-thread.c (info_cb): Rework the output of the "maintenance
6188 info sol-threads" command a bit.
6189
6190 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6191
6192 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6193 Replace ti.ti_startfunc by ti.ti_pc.
6194
6195 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6196
6197 * solib-aix.c (solib_aix_free_library_list): New function
6198 for the case where HAVE_LIBEXPAT is not defined.
6199
6200 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6201
6202 PR breakpoints/15413:
6203 * breakpoint.c (condition_completer): Simplify the code to
6204 disconsider multiple locations of breakpoints when completing the
6205 "condition" command.
6206
6207 2013-05-07 Pierre Muller <muller@sourceware.org>
6208
6209 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6210 instead of <sys/wait.h>.
6211
6212 2013-05-07 Pierre Muller <muller@sourceware.org>
6213
6214 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6215 trailing new line from warning message.
6216
6217 2013-05-07 Pierre Muller <muller@sourceware.org>
6218
6219 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6220 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6221
6222 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6223
6224 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6225 error message (ARI fix).
6226
6227 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6228
6229 * features/library-list-aix.dtd: Replace library-list by
6230 library-list-aix.
6231 * rs6000-nat.c: Replace library-list by library-list-aix
6232 throughout.
6233 * solib-aix.c: Likewise.
6234
6235 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6236
6237 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6238 Renames TARGET_OBJECT_AIX_LIBRARIES.
6239 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6240 TARGET_OBJECT_LIBRARIES_AIX throughout.
6241 * solib-aix.c: Likwise.
6242
6243 2013-05-07 Yao Qi <yao@codesourcery.com>
6244
6245 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6246 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6247
6248 2013-05-07 Yao Qi <yao@codesourcery.com>
6249
6250 * solib-dsbt.c (enable_break): Declare.
6251 (dsbt_current_sos): Remove call to enable_break2.
6252 (enable_break2): Rename to enable_break. Set solib breakpoint
6253 on '_dl_debug_state'.
6254 (enable_break): Remove.
6255
6256 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6257
6258 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6259 debug state prior to replicating existing hardware watchpoints or
6260 breakpoints.
6261
6262 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6263
6264 * gcore.c (gcore_create_callback): Ignore sections with
6265 separate_debug_objfile_backlink != NULL.
6266
6267 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6268 Andrew Jenner <andrew@codesourcery.com>
6269 Chung-Lin Tang <cltang@codesourcery.com>
6270 Julian Brown <julian@codesourcery.com>
6271
6272 Based on the nios2-elf port from Altera Corporation.
6273
6274 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6275 nios2-linux-tdep.o.
6276 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6277 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6278 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6279 * nios2-tdep.h: New.
6280 * nios2-tdep.c: New.
6281 * nios2-linux-tdep.c: New.
6282 * features/Makefile (WHICH): Add nios2-linux.
6283 (nios2-linux-expedite): Set.
6284 * features/nios2-cpu.xml: New.
6285 * features/nios2.xml: New.
6286 * features/nios2-linux.xml: New.
6287 * features/nios2.c: New (autogenerated).
6288 * features/nios2-linux.c: New (autogenerated).
6289 * regformats/nios2-linux.dat: New (autogenerated).
6290 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6291 and commands.
6292
6293 2013-05-06 Doug Evans <dje@google.com>
6294
6295 * symfile.c: Whitespace cleanup.
6296
6297 * solist.h (struct target_so_ops): New member clear_so.
6298 * solib-svr4.c (svr4_clear_so): New function.
6299 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6300 * solib.c (clear_so): Renamed from free_so_symbols.
6301 All callers updated. Call target clear_so if it exists.
6302
6303 2013-05-06 Tom Tromey <tromey@redhat.com>
6304
6305 * ada-lang.c (ada_value_primitive_packed_val): Don't
6306 call value_incref.
6307 * value.c (set_value_parent): Incref the new parent and decref
6308 the old parent.
6309 (value_copy, value_primitive_field): Use set_value_parent.
6310
6311 2013-05-06 Tom Tromey <tromey@redhat.com>
6312
6313 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6314 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6315 if needed.
6316 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6317 * dwarf2read.c (write_constant_as_bytes)
6318 (dwarf2_fetch_constant_bytes): New functions.
6319
6320 2013-05-06 Tom Tromey <tromey@redhat.com>
6321
6322 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6323 parameters.
6324 (dwarf2_const_value_attr): Update.
6325
6326 2013-05-06 Tom Tromey <tromey@redhat.com>
6327
6328 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6329 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6330 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6331 Remove declaration.
6332
6333 2013-05-06 Tom Tromey <tromey@redhat.com>
6334
6335 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6336 objfile's obstack.
6337
6338 2013-05-06 Doug Evans <dje@google.com>
6339
6340 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6341 * stabsread.h (process_one_symbol): Update declaration.
6342 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6343 * elfread.c (elf_symfile_relocate_probe): Ditto.
6344 * psymtab.c (relocate_psymtabs): Ditto.
6345 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6346 (objfile_relocate): Ditto.
6347 * objfiles.h (objfile_relocate): Update declaration.
6348 * symfile.c (relative_addr_info_to_section_offsets): Constify
6349 addrs parameter.
6350 (default_symfile_offsets): Ditto.
6351 (syms_from_objfile_1): Constify offsets parameter.
6352 (syms_from_objfile): Ditto.
6353 (symbol_file_add_with_addrs_or_offsets): Ditto.
6354 (symfile_map_offsets_to_segments): Constify data parameter.
6355 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6356 delta parameters of member relocate.
6357 (struct sym_probe_fns): Constify new_offsets,
6358 delta parameters of member sym_relocate_probe.
6359 (struct sym_fns): Constify section_addr_info parameter of member
6360 sym_offsets.
6361 (relative_addr_info_to_section_offsets): Update declaration.
6362 (default_symfile_offsets): Ditto.
6363 (syms_from_objfile): Ditto.
6364 (symfile_map_offsets_to_segments): Ditto.
6365
6366 * symfile.c (syms_from_objfile_1): Use correct section count when
6367 objfile->sf == NULL.
6368
6369 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6370
6371 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6372
6373 2013-05-06 Doug Evans <dje@google.com>
6374
6375 * psympriv.h (struct partial_symtab): Augment comment for member
6376 section_offsets.
6377
6378 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6379
6380 Reimplement shared library support on ppc-aix...
6381 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6382 * features/library-list-aix.dtd: New file.
6383 * solib-aix.h, solib-aix.c: New file.
6384 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6385 (rs6000_find_toc_address_hook): Delete.
6386 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6387 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6388 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6389 "xml-utils.h".
6390 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6391 (vmap_symtab, fixup_breakpoints): Delete.
6392 (rs6000_xfer_shared_libraries): New function.
6393 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6394 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6395 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6396 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6397 (rs6000_xfer_shared_library): New function.
6398 (find_toc_address): Delete.
6399 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6400 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6401 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6402 before creating minimal symbol. Adjust function description
6403 accordingly.
6404 (scan_xcoff_symtab): Replace call to
6405 prim_record_minimal_symbol_and_info by call to
6406 record_minimal_symbol.
6407 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6408 around default_symfile_offsets.
6409 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6410 powerpc-aix targets.
6411 * config/rs6000/nm-rs6000.h: Delete.
6412 * config/powerpc/aix.mh (NAT_FILE): Delete.
6413 (NATDEPFILES): Remove xcoffsolib.o.
6414 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6415 (ALL_TARGET_OBS): Add solib-aix.o.
6416 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6417 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6418 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6419 * xcoffsolib.h, xcoffsolib.c: Delete.
6420
6421 * solib.c (reload_shared_libraries): Remove reference to
6422 SOLIB_CREATE_INFERIOR_HOOK.
6423 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6424 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6425 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6426 comment.
6427 * corelow.c (deprecated_core_resize_section_table): Delete.
6428 * exec.c: Remove include of xcoffsolib.h".
6429 (map_vmap, vmap): Delete.
6430 (exec_close_1): Remove references to vmap.
6431 (exec_file_attach): Remove vmap handling code, and reference
6432 to DEPRECATED_IBM6000_TARGET.
6433 (bfdsec_to_vmap): Delete.
6434 (exec_files_info): Remove block of code handling VMAP.
6435 * infcmd.c (post_create_inferior): Remove reference to
6436 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6437 * infrun.c (follow_exec): Remove reference to
6438 SOLIB_CREATE_INFERIOR_HOOK.
6439 * stack.c (print_frame): Remove reference to PC_SOLIB.
6440 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6441 (dsbt_relocate_main_executable): Likewise.
6442 * solib-frv.c (frv_current_sos): Likewise.
6443
6444 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6445
6446 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6447 to target_write_memory and target_read_memory.
6448
6449 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6450
6451 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6452 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6453
6454 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6455
6456 * darwin-nat.c: Replace all "%x" instances in format strings
6457 into "0x%x" throughout.
6458
6459 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6460
6461 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6462 gdb_assert by call to MACH_CHECK_ERROR.
6463 (darwin_attach_pid): Raise an error rather than a failed
6464 assertion when various system calls failed. Report a warning
6465 instead of raising a failed assertion when PREV_NOT is not NULL
6466 after call to mach_port_request_notification.
6467 (darwin_ptrace_me): Raise an error rather than a failed
6468 assertion when read returns nonzero.
6469
6470 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6471
6472 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6473
6474 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6475
6476 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6477
6478 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6479
6480 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6481 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6482 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6483 a stale cleanup. Fix double free of NAME.
6484
6485 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6486
6487 * windows-nat.c (windows_delete_thread): Accept an additional
6488 argument, the thread's exit code, and announce thread death when
6489 print_thread_events is non-zero and we are deleting a thread that
6490 is not the main thread.
6491 (get_windows_debug_event): Pass thread exit code to
6492 windows_delete_thread.
6493
6494 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6495
6496 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6497 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6498 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6499 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6500 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6501 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6502 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6503 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6504 (gdbarch_tdep): New struct.
6505 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6506 E_NUM_REGS.
6507 (v850e3v5_register_name): New function.
6508 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6509 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6510 code handling the struct return conventions for the RH850 ABI.
6511 Update all callers.
6512 (v850_eight_byte_align_p): New function.
6513 (v850_push_call_dummy): Push structs by value, not by reference
6514 for the RH850 ABI. Add support for eight byte alignment.
6515 (v850_dbtrap_breakpoint_from_pc): New function.
6516 (v850_gdbarch_init): Add ABI detection code. Register
6517 v850e3v5_register_name for the v850e3v5 architecture. Set the
6518 number of registers for v850e3v5. Register
6519 v850_dbtrap_breakpoint_from_pc as appropriate.
6520 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6521
6522 2013-05-03 Doug Evans <dje@google.com>
6523
6524 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6525 of bfd_count_sections.
6526 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6527 * symfile.c (default_symfile_offsets): Ditto.
6528 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6529 one entry, not bfd_count_sections entries.
6530
6531 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6532
6533 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6534 `save' and `restore' register groups. Don't include SPL
6535 or SPH in these groups.
6536 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6537 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6538 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6539 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6540 dwarf2_append_unwinders().
6541
6542 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6543
6544 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6545 ignore SIGINT and SIGTRAP in case these internal signals are
6546 caught explicitely.
6547
6548 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6549
6550 * darwin-nat.c (darwin_read_write_inferior): Change types
6551 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6552 of copy_count to "mach_msg_type_number_t".
6553 (darwin_read_dyld_info): Change type of parameter
6554 rdaddr to "gdb_byte *".
6555
6556 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6557
6558 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6559 of &info->load_map from "char *" to "gdb_byte *".
6560
6561 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6562
6563 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6564 from "char *" to "gdb_byte *".
6565 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6566
6567 2013-04-30 Doug Evans <dje@google.com>
6568
6569 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6570 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6571 DWO stub. If DWO isn't found, just use stub.
6572 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6573
6574 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6575 calling init_cutu_and_read_dies.
6576
6577 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6578
6579 * target-descriptions.c (maint_print_c_tdesc_cmd):
6580 Add case to parse structures as register types and
6581 bitfields.
6582
6583 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6584
6585 * MAINTAINERS (Write After Approval): Add myself to the list.
6586
6587 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6588
6589 * sol-thread.c (rw_common): Change type of parameter "buf"
6590 to "gdb_byte *".
6591 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6592 rw_common to "gdb_byte *" instead of "char *".
6593
6594 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6595
6596 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6597 of local variable msym to const struct bound_minimal_symbol.
6598 Adjust use accordingly.
6599 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6600
6601 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6602
6603 * i386gnu-nat.c (CREG_OFFSET): New macro.
6604 (creg_offset): New array.
6605 (CREG_ADDR): Use creg_offset instead of reg_offset.
6606
6607 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6608
6609 * mep-tdep.c (mep_write_pc): Delete.
6610 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6611 Add call to set_gdbarch_pc_regnum.
6612
6613 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6614
6615 * common/filestuff.c: Replace #include <dirent.h> by
6616 #include "gdb_dirent.h".
6617
6618 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6619
6620 * common/filestuff.c: Replace #include <sys/stat.h> by
6621 #include "gdb_stat.h".
6622
6623 2013-04-29 Pierre Muller <muller@sourceware.org>
6624
6625 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6626 editCase function rule.
6627 (get_DW_AT_signature_type): Likewise.
6628
6629 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6630
6631 * m32r-tdep.c (m32r_write_pc): Delete.
6632 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6633 Add call to set_gdbarch_pc_regnum.
6634
6635 2013-04-29 Pierre Muller <muller@sourceware.org>
6636
6637 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6638
6639 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6640
6641 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6642
6643 2013-04-28 Yao Qi <yao@codesourcery.com>
6644
6645 * solib-dsbt.c (fetch_loadmap): Re-indent.
6646 (displacement_from_map, enable_break2): Likewise.
6647 (dsbt_relocate_section_addresses): Likewise.
6648
6649 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6650
6651 GDB 7.6 released.
6652
6653 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6654
6655 PR corefiles/14983:
6656 * dwarf2read.c (process_full_comp_unit): Always create a static
6657 block.
6658
6659 2013-04-25 Hui Zhu <hui@codesourcery.com>
6660
6661 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6662 to loc->cmd_bytecode.
6663
6664 2013-04-24 Doug Evans <dje@google.com>
6665
6666 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6667
6668 2013-04-22 Keith Seitz <keiths@redhat.com>
6669
6670 * tracepoint.c (trace_save): Call the writer's start method.
6671
6672 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6673
6674 PR gdb/10462
6675 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6676 before argument.
6677
6678 2013-04-23 Tom Tromey <tromey@redhat.com>
6679
6680 * common/filestuff.c: Check USE_WIN32API before including
6681 sys/socket.h.
6682 (HAVE_F_GETFD): New define.
6683 (mark_cloexec): Check HAVE_F_GETFD.
6684 (gdb_open_cloexec): Change 'mode' to unsigned long.
6685 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6686 (gdb_pipe_cloexec): Check HAVE_PIPE.
6687 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6688 long.
6689
6690 2013-04-23 Hui Zhu <hui@codesourcery.com>
6691
6692 PR gdb/15293
6693 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6694
6695 2013-04-23 Hui Zhu <hui@codesourcery.com>
6696
6697 PR gdb/15165
6698 * breakpoint.c (dprintf_print_recreate): New.
6699 (save_breakpoints): Let it not save dprintf commands.
6700 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6701
6702 2013-04-22 Tom Tromey <tromey@redhat.com>
6703
6704 PR gdb/7912:
6705 * Makefile.in (SFILES): Add filestuff.c
6706 (COMMON_OBS): Add filestuff.o.
6707 (filestuff.o): New target.
6708 * auto-load.c (auto_load_objfile_script_1): Use
6709 gdb_fopen_cloexec.
6710 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6711 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6712 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6713 * common/agent.c (gdb_connect_sync_socket): Use
6714 gdb_socket_cloexec.
6715 * common/filestuff.c: New file.
6716 * common/filestuff.h: New file.
6717 * common/linux-osdata.c (linux_common_core_of_thread)
6718 (command_from_pid, commandline_from_pid, print_source_lines)
6719 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6720 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6721 gdb_fopen_cloexec.
6722 * common/linux-procfs.c (linux_proc_get_int)
6723 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6724 * config.in, configure: Rebuild.
6725 * configure.ac: Don't check for sys/socket.h. Check for
6726 fdwalk, pipe2.
6727 * corelow.c (core_open): Use gdb_open_cloexec.
6728 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6729 * fork-child.c (fork_inferior): Call close_most_fds.
6730 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6731 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6732 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6733 Use gdb_fopen_cloexec.
6734 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6735 gdb_open_cloexec.
6736 (linux_async_pipe): Use gdb_pipe_cloexec.
6737 * remote-fileio.c (remote_fileio_func_open): Use
6738 gdb_open_cloexec.
6739 * remote.c (remote_file_put, remote_file_get): Use
6740 gdb_fopen_cloexec.
6741 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6742 close_most_fds.
6743 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6744 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6745 * solib.c (solib_find): Use gdb_open_cloexec.
6746 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6747 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6748 (tfile_open): Use gdb_open_cloexec.
6749 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6750 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6751 * xml-support.c (xml_fetch_content_from_file): Use
6752 gdb_fopen_cloexec.
6753 * main.c (captured_main): Call notice_open_fds.
6754
6755 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6756
6757 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6758 'char *' to 'gdb_byte *'.
6759 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6760 'gdb_byte'.
6761
6762 2013-04-22 Yao Qi <yao@codesourcery.com>
6763
6764 * infrun.c: Fix typo in comment.
6765
6766 2013-04-22 Andrew Haley <aph@redhat.com>
6767
6768 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6769 instead of "long".
6770
6771 2013-04-20 Yao Qi <yao@codesourcery.com>
6772
6773 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6774 'char *' to 'gdb_byte *'. Cast the return value of
6775 'bt_ctf_get_char_array' to 'gdb_byte *'.
6776
6777 2013-04-19 Pedro Alves <palves@redhat.com>
6778
6779 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6780 -Wpointer-sign.
6781 * configure: Regenerate.
6782
6783 2013-04-19 Pedro Alves <palves@redhat.com>
6784
6785 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6786 'void *'.
6787
6788 2013-04-19 Pedro Alves <palves@redhat.com>
6789
6790 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6791 Change type of 'myaddr' parameter to gdb_byte pointer.
6792 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6793 to 'long long' pointer instead of to 'unsigned long long'.
6794 (monitor_write_memory_block, monitor_read_memory_single)
6795 (monitor_read_memory): Change type of 'myaddr' parameter to
6796 gdb_byte pointer.
6797
6798 2013-04-19 Pedro Alves <palves@redhat.com>
6799
6800 * record.c (validate_history_size): Make parameter 'setting'
6801 unsigned.
6802
6803 2013-04-19 Pedro Alves <palves@redhat.com>
6804
6805 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6806 to 'gdb_byte *'.
6807
6808 2013-04-19 Pedro Alves <palves@redhat.com>
6809
6810 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6811 local to int.
6812
6813 2013-04-19 Pedro Alves <palves@redhat.com>
6814
6815 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6816 * ada-tasks.c (read_fat_string_value): Likewise.
6817
6818 2013-04-19 Pedro Alves <palves@redhat.com>
6819
6820 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6821 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6822 'offset', and adjust.
6823
6824 2013-04-19 Pedro Alves <palves@redhat.com>
6825
6826 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6827 (read_index_from_section): Add cast to 'char *'.
6828
6829 2013-04-19 Pedro Alves <palves@redhat.com>
6830
6831 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6832
6833 2013-04-19 Pedro Alves <palves@redhat.com>
6834
6835 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6836
6837 2013-04-19 Pedro Alves <palves@redhat.com>
6838
6839 * record-full.c (record_full_get_bookmark): Change local 'ret'
6840 type to char * and add cast to gdb_byte *.
6841 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6842 string.
6843 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6844
6845 2013-04-19 Pedro Alves <palves@redhat.com>
6846
6847 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6848 * python/py-prettyprint.c (print_string_repr): Change type of
6849 'output' local to char *. Add cast to gdb_byte * in
6850 LA_PRINT_STRING call.
6851 (print_children): Change type of 'output' local to char *.
6852 * python/py-value.c (valpy_string): Add cast to const char * in
6853 PyUnicode_Decode call.
6854
6855 2013-04-19 Pedro Alves <palves@redhat.com>
6856
6857 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6858 and change its type to 'const char *'. Adjust.
6859 (mips_send_packet): Add cast to 'char *', and remove cast to
6860 'unsigned char *'.
6861 (mips_receive_packet): Remove cast to 'unsigned char *'.
6862 (mips_load_srec): Use bfd_byte.
6863 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6864 (pmon_checkset): Make 'value' parameter unsigned.
6865
6866 2013-04-19 Pedro Alves <palves@redhat.com>
6867
6868 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6869
6870 2013-04-19 Pedro Alves <palves@redhat.com>
6871
6872 * remote.c (remote_write_bytes_aux, compare_sections_command)
6873 (remote_read_qxfer)
6874 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6875 (remote_hostio_readlink, remote_bfd_iovec_pread)
6876 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6877 binary buffer, and char when buffer is used as string.
6878 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6879 (trace_save, tfile_open, traceframe_walk_blocks)
6880 (tfile_fetch_registers): Likewise.
6881
6882 2013-04-19 Pedro Alves <palves@redhat.com>
6883
6884 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6885 buffer and size_t size. Adjust.
6886 * ser-base.h (ser_base_write): Adjust.
6887 * ser-go32.c (cnts): Change type to size_t.
6888 (dos_write): Change prototype -- take 'void *'
6889 buffer and size_t size. Adjust.
6890 (dos_info): Print elements of 'cnts' as unsigned long.
6891 * serial.c (serial_write): Likewise.
6892 * serial.h (serial_write): Adjust.
6893 (struct serial_ops) <write>: Change prototype -- take 'void *'
6894 buffer and size_t size. Adjust.
6895
6896 2013-04-19 Pedro Alves <palves@redhat.com>
6897
6898 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6899 gdb_byte *.
6900 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6901
6902 2013-04-19 Pedro Alves <palves@redhat.com>
6903
6904 * alpha-tdep.c (alpha_extract_return_value): Use
6905 regcache_cooked_read_unsigned to read 'v0'.
6906
6907 2013-04-19 Pedro Alves <palves@redhat.com>
6908
6909 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6910 parameters 'at', 'as' and 'offset' to uint32_t.
6911
6912 2013-04-19 Pedro Alves <palves@redhat.com>
6913
6914 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6915 'is64' to signed 'int'.
6916
6917 2013-04-19 Pedro Alves <palves@redhat.com>
6918
6919 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6920 parameter to int *.
6921
6922 2013-04-19 Pedro Alves <palves@redhat.com>
6923
6924 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6925 'insnbuf' buffer type to unsigned int[].
6926
6927 2013-04-19 Pedro Alves <palves@redhat.com>
6928
6929 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6930
6931 2013-04-19 Pedro Alves <palves@redhat.com>
6932
6933 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6934 unsigned long *.
6935
6936 2013-04-19 Pedro Alves <palves@redhat.com>
6937
6938 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6939 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6940 UINT_MAX.
6941 * mips-tdep.c (heuristic_fence_post): Change type to int.
6942 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6943
6944 2013-04-19 Pedro Alves <palves@redhat.com>
6945
6946 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6947 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6948 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6949
6950 2013-04-19 Pedro Alves <palves@redhat.com>
6951
6952 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6953 it to get a string view of the byte buffer.
6954 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6955 type to gdb_byte *. Adjust.
6956 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6957 Change local to char *.
6958 * solib-darwin.c (find_program_interpreter): Change return type to
6959 char *. Adjust.
6960 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6961 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6962 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6963 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6964 * solib-svr4.c (find_program_interpreter): Change return type to
6965 char *. Adjust.
6966 (enable_break): Change local 'interp_name' to char *.
6967 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6968 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6969 (spu_pseudo_register_write_spu): Use char for string buffer.
6970 Adjust.
6971 (info_spu_event_command, info_spu_signal_command): Add casts to
6972 'char *'.
6973
6974 2013-04-19 Pedro Alves <palves@redhat.com>
6975
6976 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6977 gdb_byte[].
6978 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6979 * ada-lang.c (ada_value_assign): Use gdb_byte.
6980 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6981 (alphanbsd_sigtramp_offset): Use gdb_byte.
6982 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6983 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6984 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6985 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6986 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6987 * arm-tdep.c (arm_stub_unwind_sniffer)
6988 (arm_displaced_init_closure): Use gdb_byte.
6989 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6990 (arm_default_thumb_le_breakpoint)
6991 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6992 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6993 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6994 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6995 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6996 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6997 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6998 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6999 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7000 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7001 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7002 (cris_store_return_value, cris_extract_return_value): Use
7003 gdb_byte.
7004 (constraint): Change type of parameter to char * from signed
7005 char*. Use gdb_byte.
7006 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7007 of local buffer to gdb_byte *.
7008 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7009 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7010 (add_address_entry): Change type of local buffer to gdb_byte[].
7011 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7012 (frv_push_dummy_call): Use gdb_byte.
7013 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7014 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7015 (hppa_hpux_supply_save_state): Use gdb_byte.
7016 * hppa-tdep.c (hppa32_push_dummy_call)
7017 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7018 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7019 (slotN_contents, replace_slotN_contents): Change type of parameter
7020 to gdb_byte *.
7021 (fetch_instruction, ia64_pseudo_register_write)
7022 (ia64_register_to_value, ia64_value_to_register)
7023 (ia64_extract_return_value, ia64_store_return_value)
7024 (ia64_push_dummy_call): Use gdb_byte.
7025 * m32c-tdep.c (m32c_return_value): Remove cast.
7026 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7027 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7028 gdb_byte.
7029 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7030 * mn10300-tdep.c (mn10300_store_return_value)
7031 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7032 gdb_byte.
7033 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7034 (moxie_process_record): Remove casts.
7035 * ppc-ravenscar-thread.c (supply_register_at_address)
7036 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7037 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7038 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7039 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7040 * remote.c (compare_sections_command): Use gdb_byte.
7041 * score-tdep.c (score7_free_memblock): Change type of parameter to
7042 gdb_byte *.
7043 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7044 gdb_byte *. Use gdb_byte.
7045 (sh_push_dummy_call_fpu): Use gdb_byte.
7046 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7047 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7048 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7049 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7050 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7051 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7052 (sh64_store_return_value, sh64_register_convert_to_virtual):
7053 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7054 (sh64_pseudo_register_write): Use gdb_byte.
7055 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7056 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7057 buffer.
7058 (irix_current_sos): Use gdb_byte.
7059 * solib-som.c (som_current_sos): Use gdb_byte.
7060 * sparc-ravenscar-thread.c (supply_register_at_address)
7061 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7062 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7063 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7064 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7065 'gdb_byte *'.
7066 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7067 'gdb_byte *'.
7068 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7069 * xstormy16-tdep.c (xstormy16_extract_return_value)
7070 (xstormy16_store_return_value): Change parameter type to
7071 'gdb_byte *'. Adjust.
7072 (xstormy16_push_dummy_call): Use gdb_byte.
7073 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7074 (call0_analyze_prologue, execute_code): Use gdb_byte.
7075
7076 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7077 Pedro Alves <palves@redhat.com>
7078
7079 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7080 value contents.
7081
7082 2013-04-17 Doug Evans <dje@google.com>
7083
7084 * dwarf2read.c (struct signatured_type): New member type.
7085 (struct attribute): Replace member signatured_type with signature.
7086 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7087 (read_call_site_scope): Call follow_die_ref instead of
7088 follow_die_ref_or_sig.
7089 (read_structure_type): Rewrite handling of signatured types.
7090 (read_enumeration_type): Ditto.
7091 (read_attribute_value): Update.
7092 (build_error_marker_type): New function.
7093 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7094 Don't call error for bad types, just build an error marker type.
7095 (dump_die_shallow): Update.
7096 (follow_die_sig_1): Renamed from follow_die_sig.
7097 Don't call error for bad types, instead return NULL.
7098 (follow_die_sig): New function.
7099 (get_signatured_type, get_DW_AT_signature_type): New functions.
7100
7101 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7102
7103 * aarch64-tdep.c (aarch64_write_pc): Removed.
7104 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7105 function.
7106
7107 2013-04-17 Yao Qi <yao@codesourcery.com>
7108
7109 * top.c (print_gdb_configuration): Print configure-time
7110 parameter on using libbabeltrace or not.
7111
7112 2013-04-16 Pedro Alves <palves@redhat.com>
7113
7114 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7115
7116 2013-04-16 Pedro Alves <palves@redhat.com>
7117
7118 * common/glibc_thread_db.h: Update from upstream glibc
7119 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7120
7121 2013-04-16 Pedro Alves <palves@redhat.com>
7122
7123 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7124 * common/glibc_thread_db.h: ... this new file ...
7125 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7126
7127 2013-04-16 Will Newton <will.newton@gmail.com>
7128 Pedro Alves <palves@redhat.com>
7129
7130 PR build/11881
7131
7132 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7133 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7134 HAVE_THREAD_DB_H.
7135
7136 2013-04-16 Pedro Alves <palves@redhat.com>
7137 Eli Zaretskii <eliz@gnu.org>
7138
7139 * NEWS: Mention "set foo unlimited".
7140
7141 2013-04-15 Doug Evans <dje@google.com>
7142
7143 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7144 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7145 (create_dwo_cu_reader): Renamed from
7146 create_dwo_debug_info_hash_table_reader.
7147 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7148 Remove support for multiple CUs in a DWO file.
7149 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7150
7151 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7152 instead of phex.
7153 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7154 (create_dwo_in_dwp): Ditto.
7155
7156 2013-04-15 Tom Tromey <tromey@redhat.com>
7157
7158 * NEWS: Move recent entries into "since 7.6" section.
7159
7160 2013-04-15 Tom Tromey <tromey@redhat.com>
7161
7162 PR c++/13588:
7163 * NEWS: Update.
7164 * break-catch-throw.c (struct exception_catchpoint)
7165 <exception_rx, pattern>: New fields.
7166 (fetch_probe_arguments, dtor_exception_catchpoint)
7167 (check_status_exception_catchpoint)
7168 (print_one_detail_exception_catchpoint): New functions.
7169 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7170 Compile regular expression if needed.
7171 (extract_exception_regexp): New function.
7172 (catch_exception_command_1): Use extract_exception_regexp.
7173 (compute_exception): Use fetch_probe_arguments.
7174 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7175 and check_status fields.
7176 * cp-abi.c (cplus_typename_from_type_info): New function.
7177 * cp-abi.h (cplus_typename_from_type_info): Declare.
7178 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7179 * gdb_regex.h (compile_rx_or_error): Declare.
7180 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7181 comment.
7182 (init_gnuv3_ops): Set get_type_from_type_info field.
7183 * probe.c (compile_rx_or_error): Move...
7184 * utils.c (compile_rx_or_error): ... here.
7185
7186 2013-04-15 Tom Tromey <tromey@redhat.com>
7187
7188 PR c++/15176:
7189 * NEWS: Update.
7190 * break-catch-throw.c (compute_exception): New function.
7191 (exception_funcs): New global.
7192 (_initialize_break_catch_throw): Create $_exception.
7193 * cp-abi.c (cplus_type_from_type_info): New function.
7194 * cp-abi.h (cplus_type_from_type_info): Declare.
7195 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7196 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7197 (gnuv3_get_type_from_type_info): New functions.
7198 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7199
7200 2013-04-15 Tom Tromey <tromey@redhat.com>
7201
7202 * break-catch-throw.c (struct exception_names): New.
7203 (exception_functions): Change type.
7204 (re_set_exception_catchpoint): Look for SDT probes.
7205
7206 2013-04-15 Tom Tromey <tromey@redhat.com>
7207
7208 PR c++/10119:
7209 * break-catch-throw.c (exception_functions): New global.
7210 (gnu_v3_exception_catchpoint_ops): Move earlier.
7211 (struct exception_catchpoint): New.
7212 (classify_exception_breakpoint): Rewrite.
7213 (re_set_exception_catchpoint): New function.
7214 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7215 Allocate a struct exception_catchpoint.
7216 (catch_exception_command_1): Update.
7217 (initialize_throw_catchpoint_ops): Set 're_set' method.
7218
7219 2013-04-15 Tom Tromey <tromey@redhat.com>
7220
7221 * Makefile.in (SFILES): Add break-catch-throw.c
7222 (COMMON_OBS): Add break-catch-throw.o.
7223 * break-catch-throw.c: New file.
7224 * breakpoint.c: Move exception-catching code to new file.
7225 (ep_parse_optional_if_clause): No longer static.
7226 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7227
7228 2013-04-15 Tom Tromey <tromey@redhat.com>
7229
7230 PR c++/9065:
7231 * NEWS: Update.
7232 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7233 * c-exp.y (TYPEID): New token.
7234 (exp): Add new TYPEID productions.
7235 (ident_tokens): Add "typeid".
7236 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7237 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7238 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7239 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7240 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7241 case.
7242 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7243 (build_std_type_info_type, gnuv3_get_typeid_type)
7244 (gnuv3_get_typeid): New functions.
7245 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7246 new fields on ABI object.
7247 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7248 * std-operator.def (OP_TYPEID): New.
7249
7250 2013-04-15 Tom Tromey <tromey@redhat.com>
7251
7252 * elfread.c (elf_symtab_read): Install versioned symbol under
7253 unversioned name as well.
7254
7255 2013-04-15 Tom Tromey <tromey@redhat.com>
7256
7257 PR c++/11990:
7258 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7259 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7260 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7261 (gdb_demangle): New function.
7262 * cp-support.h (gdb_demangle): Declare.
7263 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7264 (dwarf2_name): Use gdb_demangle.
7265 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7266 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7267 suffixes from name.
7268 (gnuv3_print_method_ptr): Use gdb_demangle.
7269 * jv-lang.c (java_demangle): Use gdb_demangle.
7270 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7271 * language.c (unk_lang_demangle): Use gdb_demangle.
7272 * symtab.c (symbol_find_demangled_name)
7273 (demangle_for_lookup): Use gdb_demangle.
7274
7275 2013-04-15 Tom Tromey <tromey@redhat.com>
7276
7277 PR c++/12824:
7278 * NEWS: Update.
7279 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7280 New constant.
7281 (classify_exception_breakpoint): New function.
7282 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7283 (print_mention_exception_catchpoint)
7284 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7285 (catch_exception_command_1): Handle "rethrow" catchpoint.
7286 (catch_rethrow_command): New function.
7287 (_initialize_breakpoint): Add "catch rethrow" command.
7288
7289 2013-04-15 Pierre Muller <muller@sourceware.org>
7290
7291 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7292 set_gdbarch_write_pc as deprecated anymore.
7293
7294 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7295
7296 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7297 declarations.
7298
7299 2013-04-13 Yao Qi <yao@codesourcery.com>
7300
7301 * ctf.c (_initialize_ctf): Include "completer.h".
7302 Call add_target_with_completer instead of add_target.
7303
7304 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7305
7306 Fix GDB regression related to PR binutils/14813.
7307 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7308 * minidebug.c (lzma_close): Add return value comment.
7309 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7310 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7311 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7312
7313 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7314
7315 * config.in: Regenerate.
7316
7317 2013-04-12 Tom Tromey <tromey@redhat.com>
7318
7319 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7320 const.
7321 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7322 (struct die_reader_specs) <buffer>: Likewise.
7323 (die_reader_func_ftype): Make 'info_ptr' const.
7324 (struct line_header) <include_dirs, statement_program_start,
7325 statement_program_end>: Now const.
7326 (struct file_entry) <name>: Likewise.
7327 (struct partial_die_info) <sibling>: Likewise.
7328 (struct dwarf_block) <data>: Likewise.
7329 (dwarf2_read_section): Remove cast.
7330 (dwarf2_get_section_info): Make 'bufp' const.
7331 (read_index_from_section): Constify.
7332 (dw2_get_file_names_reader): Make 'info_ptr' const.
7333 (dw2_get_primary_filename_reader): Likewise.
7334 (read_comp_unit_head): Make 'info_ptr' and return type const.
7335 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7336 Likewise.
7337 (read_abbrev_offset): Constify.
7338 (dwarf2_create_include_psymtab): Make 'name' const.
7339 (create_debug_types_hash_table): Update.
7340 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7341 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7342 Constify.
7343 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7344 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7345 (read_comp_units_from_section): Constify.
7346 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7347 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7348 const.
7349 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7350 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7351 (create_dwp_hash_table, dwarf2_ranges_read)
7352 (dwarf2_record_block_ranges): Constify.
7353 (read_die_and_children, read_die_and_siblings_1)
7354 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7355 const.
7356 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7357 (abbrev_table_read_table): Constify.
7358 (load_partial_dies): Make 'info_ptr' const.
7359 (read_partial_die, read_attribute_value, read_attribute): Make
7360 'info_ptr' and return type const.
7361 (read_address, read_initial_length)
7362 (read_checked_initial_length_and_offset, read_offset)
7363 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7364 const.
7365 (read_direct_string): Make 'buf' and return type const.
7366 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7367 (read_indirect_string): Make return type const.
7368 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7369 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7370 'info_ptr' const.
7371 (read_str_index): Make return type const.
7372 (add_include_dir): Make 'include_dir' const.
7373 (add_file_name): Make 'name' const.
7374 (dwarf_decode_line_header): Constify.
7375 (psymtab_include_file_name): Make return type const.
7376 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7377 (dwarf2_start_subfile): Make 'filename' const.
7378 (dwarf2_const_value_attr): Make 'bytes' const.
7379 (read_signatured_type_reader): Make 'info_ptr' const.
7380 (decode_locdesc): Constify.
7381 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7382 const.
7383 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7384 'mac_end', and return type const.
7385 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7386 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7387 type const.
7388 (per_cu_header_read_in): Constify.
7389 * symfile.h (dwarf2_get_section_info): Update.
7390
7391 2013-04-12 Tom Tromey <tromey@redhat.com>
7392
7393 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7394
7395 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7396
7397 * NEWS: Mention "show configuration", --configuration.
7398 * top.c (print_gdb_configuration): New function, displays the
7399 details about GDB configure-time parameters.
7400 (print_gdb_version): Mention "show configuration".
7401 * cli/cli-cmds.c (show_configuration): New function.
7402 (_initialize_cli_cmds): Add the "show configuration" command.
7403 * main.c (captured_main) <print_configuration>: New static var.
7404 <long_options>: Use it.
7405 If --configuration was given, call print_gdb_configuration.
7406
7407 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7408 Pedro Alves <palves@redhat.com>
7409
7410 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7411 (generated_files): Add gcore.
7412 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7413 HAVE_NATIVE_GCORE_HOST.
7414 (gcore): New.
7415 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7416 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7417 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7418 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7419 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7420 Add HAVE_NATIVE_GCORE_HOST.
7421 * configure: Regenerate.
7422 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7423 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7424 AC_CONFIG_FILES for gcore.
7425 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7426 gdb_have_gcore.
7427 * gdb_gcore.sh: Rename to ...
7428 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7429 and GCORE_TRANSFORM_NAME substitutions.
7430
7431 Fix parsing tabs in ${gdb_target_obs}.
7432 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7433
7434 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7435
7436 * remote.c (unpush_and_perror): Add output message final dot.
7437
7438 2013-04-11 Yao Qi <yao@codesourcery.com>
7439
7440 * tracepoint.c (tfile_interp_line): Fit parameters line and
7441 utpp in one line.
7442
7443 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7444
7445 * solib.c (solib_map_sections): Remove code overwriting
7446 SO->SO_NAME with the bfd's filename.
7447
7448 2013-04-10 Pedro Alves <palves@redhat.com>
7449
7450 * cli/cli-decode.c (integer_unlimited_completer): New function.
7451 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7452 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7453 completer.
7454 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7455 (is_unlimited_literal): New function.
7456 (do_set_command): Handle literal "unlimited" arguments.
7457 * frame.c (_initialize_frame) <set backtrace limit>: Document
7458 "unlimited".
7459 * printcmd.c (_initialize_printcmd) <set print
7460 max-symbolic-offset>: Add help text.
7461 * record-full.c (_initialize_record_full) <set record full
7462 insn-number-max>: Likewise.
7463 * record.c (_initialize_record) <set record
7464 instruction-history-size, set record function-call-history-size>:
7465 Add help text.
7466 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7467 help text.
7468 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7469 Likewise.
7470 * source.c (_initialize_source) <set listsize>: Add help text.
7471 * utils.c (initialize_utils) <set height, set width>: Likewise.
7472 <set pagination>: Mention "set height unlimited".
7473 * valprint.c (_initialize_valprint) <set print elements, set print
7474 repeats>: Document "unlimited".
7475
7476 2013-04-10 Pedro Alves <palves@redhat.com>
7477
7478 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7479 instead of disconnect_tracing.
7480 * infcmd.c (detach_command, disconnect_command): Call
7481 query_if_trace_running. Adjust.
7482 * top.c: Include "tracepoint.h".
7483 (quit_target): Delete. Contents moved ...
7484 (quit_force): ... here. Wrap each stage of teardown in
7485 TRY_CATCH. Call disconnect_tracing before detaching.
7486
7487 2013-04-10 Hui Zhu <hui@codesourcery.com>
7488 Yao Qi <yao@codesourcery.com>
7489
7490 * configure.ac: Check libbabeltrace is installed.
7491 * config.in: Regenerate.
7492 * configure: Regenerate.
7493 * Makefile.in (LIBBABELTRACE): New.
7494 (CLIBS): Add LIBBABELTRACE.
7495 * ctf.c: Include "exec.h".
7496 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7497 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7498 (ctf_save_metadata_header): Define new type aliases in
7499 metadata.
7500 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7501 in metadata. Start a new faked packet for trace status.
7502 (ctf_write_status): Write trace status to CTF.
7503 (ctf_write_uploaded_tsv): Write TSV to CTF.
7504 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7505 (ctf_write_definition_end): End the faked packet.
7506
7507 (ctx, ctf_iter, trace_dirname): New.
7508 (start_pos): New variable.
7509 (ctf_destroy, ctf_open_dir, ctf_open): New.
7510 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7511 macros.
7512 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7513 (ctf_fetch_registers, ctf_xfer_partial): New.
7514 (ctf_get_trace_state_variable_value): New.
7515 (ctf_get_tpnum_from_frame_event): New.
7516 (ctf_get_traceframe_address): New.
7517 (ctf_trace_find, ctf_has_stack): New.
7518 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7519 (ctf_get_trace_status, ctf_read_status): New.
7520 (_initialize_ctf): New.
7521 * tracepoint.c (get_tracepoint_number): New
7522 (get_uploaded_tsv): Remove 'static'.
7523 (struct traceframe_info, trace_regblock_size): Move it to ...
7524 * tracepoint.h: ... here.
7525 (get_tracepoint_number): Declare it.
7526 (get_uploaded_tsv): Declare it.
7527
7528 * NEWS: Mention new configure option.
7529
7530 2013-04-10 Pedro Alves <palves@redhat.com>
7531 Hui Zhu <hui@codesourcery.com>
7532
7533 * breakpoint.c (dprintf_re_set): New.
7534 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7535 to dprintf_re_set.
7536
7537 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7538
7539 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7540 Remove solib-svr4.o from the list.
7541
7542 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7543
7544 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7545 Use gdb_assert_not_reached instead of invalid boolean expression.
7546
7547 2013-04-09 Pedro Alves <palves@redhat.com>
7548
7549 * remote.c (unpush_and_perror): New function.
7550 (readchar, remote_serial_write): Use it.
7551
7552 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7553
7554 * NEWS: Mention new btrace RSP packets.
7555
7556 2013-04-08 Tom Tromey <tromey@redhat.com>
7557
7558 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7559 long.
7560
7561 2013-04-08 Tom Tromey <tromey@redhat.com>
7562
7563 * maint.c (print_bfd_section_info): Print the section index.
7564 * symmisc.c (dump_msymbols): Print the section index.
7565
7566 2013-04-08 Tom Tromey <tromey@redhat.com>
7567
7568 PR symtab/8424:
7569 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7570 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7571 * breakpoint.c (resolve_sal_pc): Update.
7572 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7573 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7574 (minsym_lookup_iterator_cb): Use it.
7575 (default_read_var_value): Update.
7576 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7577 Update.
7578 * infcmd.c (jump_command): Update.
7579 * linespec.c (minsym_found): Update.
7580 * maint.c (maintenance_translate_address): Update.
7581 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7582 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7583 * parse.c (write_exp_msymbol): Update.
7584 * printcmd.c (address_info): Update.
7585 * psymtab.c (find_pc_sect_psymbol): Update.
7586 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7587 SYMBOL_OBJ_SECTION.
7588 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7589 Don't initialize SYMBOL_OBJ_SECTION.
7590 * spu-tdep.c (spu_catch_start): Update.
7591 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7592 * symmisc.c (dump_msymbols, print_symbol): Update.
7593 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7594 how fallback section is computed.
7595 (fixup_symbol_section): Update.
7596 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7597 Update.
7598 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7599 Initialize SYMBOL_SECTION.
7600 * symtab.h (struct general_symbol_info) <section>: Update comment.
7601 <obj_section>: Remove.
7602 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7603 (SYMBOL_OBJFILE): New macro.
7604
7605 2013-04-08 Tom Tromey <tromey@redhat.com>
7606
7607 * coffread.c (record_minimal_symbol): Update.
7608 * dbxread.c (record_minimal_symbol): Update.
7609 * elfread.c (record_minimal_symbol): Update.
7610 * machoread.c (macho_symtab_add_minsym): Update.
7611 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7612 Update.
7613 * minsyms.c (prim_record_minimal_symbol): Update.
7614 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7615 argument.
7616 (prim_record_minimal_symbol_and_info): Likewise.
7617 * minsyms.h (prim_record_minimal_symbol_full)
7618 (prim_record_minimal_symbol_and_info): Update.
7619 * symtab.c (allocate_symbol, initialize_symbol)
7620 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7621 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7622 Update.
7623
7624 2013-04-08 Tom Tromey <tromey@redhat.com>
7625
7626 PR symtab/8423:
7627 * solib-som.c (som_solib_section_offsets): Use BFD section
7628 indices. Set offsets for all sections.
7629 * somread.c (som_symtab_read): Compute BFD section for
7630 symbol. Use prim_record_minimal_symbol_and_info.
7631 (som_symfile_read): Fix comment.
7632 (struct find_section_offset_arg): New.
7633 (find_section_offset, set_section_index): New functions.
7634 (som_symfile_offsets): Use set_section_index to compute
7635 section indices.
7636
7637 2013-04-08 Tom Tromey <tromey@redhat.com>
7638
7639 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7640 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7641 gdb_bfd_section_index.
7642 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7643 New functions.
7644 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7645 Declare.
7646 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7647 Update.
7648 * objfiles.c (add_to_objfile_sections_full): New function.
7649 (add_to_objfile_sections): Use it.
7650 (build_section_table): Rewrite.
7651 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7652 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7653 (struct objfile) <sections>: Update comment.
7654 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7655 is NULL.
7656 (ALL_OBJSECTIONS): Use it.
7657 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7658 * solib-frv.c (frv_relocate_main_executable): Update.
7659 * solib-target.c (solib_target_relocate_section_addresses):
7660 Use gdb_bfd_section_index.
7661 * symfile.c (build_section_addr_info_from_section_table):
7662 Use gdb_bfd_section_index.
7663 (build_section_addr_info_from_bfd, place_section): Likewise.
7664 * symtab.c (fixup_section): Update.
7665 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7666
7667 2013-04-08 Tom Tromey <tromey@redhat.com>
7668
7669 * minsyms.h (struct bound_minimal_symbol): New.
7670 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7671 Remove objfile argument.
7672 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7673 Return bound_minimal_symbol.
7674 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7675 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7676 Return bound_minimal_symbol.
7677 (in_gnu_ifunc_stub): Update.
7678 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7679 Remove 'objfile_p' argument.
7680 (lookup_solib_trampoline_symbol_by_pc): Update.
7681 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7682 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7683 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7684 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7685 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7686 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7687 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7688 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7689 stack.c, symtab.c, tui/tui-disasm.c: Update.
7690
7691 2013-04-08 Tom Tromey <tromey@redhat.com>
7692
7693 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7694 Use symbol's obstack, not an objfile.
7695 * coffread.c (process_coff_symbol): Update.
7696 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7697 * jv-lang.c (add_class_symbol): Update.
7698 * mdebugread.c (new_symbol): Update.
7699 * minsyms.c (prim_record_minimal_symbol_full)
7700 (terminate_minimal_symbol_table): Update.
7701 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7702 * stabsread.c (define_symbol, read_enum_type): Update.
7703 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7704 Handle Ada specially.
7705 (symbol_set_language): Add 'obstack' argument.
7706 (symbol_set_names): Update.
7707 (symbol_natural_name, symbol_demangled_name): Always use
7708 ada_decode_symbol.
7709 * symtab.h (struct general_symbol_info)
7710 <language_specific::obstack>: New field.
7711 <ada_mangled>: New field.
7712 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7713 (symbol_set_language): Update.
7714
7715 2013-04-08 Tom Tromey <tromey@redhat.com>
7716
7717 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7718 Take an obstack, not an objfile.
7719 (symbol_set_names): Update.
7720 * symtab.h (symbol_set_demangled_name): Update.
7721
7722 2013-04-08 Tom Tromey <tromey@redhat.com>
7723
7724 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7725 allocate_symbol.
7726 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7727 (read_func_scope): Call allocate_template_symbol.
7728 (new_symbol_full): Call allocate_symbol.
7729 * jit.c (finalize_symtab): Call allocate_symbol.
7730 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7731 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7732 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7733 (common_block_end): Call allocate_symbol.
7734 * symtab.c (allocate_symbol, initialize_symbol)
7735 (allocate_template_symbol): New functions.
7736 * symtab.c (allocate_symbol, initialize_symbol)
7737 (allocate_template_symbol): Declare.
7738 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7739
7740 2013-04-08 Pedro Alves <palves@redhat.com>
7741 Keith Seitz <keiths@redhat.com>
7742
7743 * breakpoint.c (create_breakpoint): Rename
7744 "parse_condition_and_thread" parameter to "parse_arg". Update
7745 describing comment. If !PARSE_ARG, then error out if ARG is not
7746 the empty string after extracting the location.
7747 * breakpoint.h (create_breakpoint): Rename
7748 "parse_condition_and_thread" parameter to "parse_arg".
7749
7750 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7751
7752 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7753
7754 2013-04-07 Yao Qi <yao@codesourcery.com>
7755
7756 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7757 and 'addr2' to CORE_ADDR.
7758 * target.c (update_current_target): Update.
7759 * target.h (struct target_ops) <to_trace_find>: Change parameter
7760 type to CORE_ADDR.
7761 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7762 'addr2' to CORE_ADDR.
7763 (tfile_trace_find): Likewise.
7764 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7765 Change local variable 'addr' to type CORE_ADDR.
7766 * tracepoint.h (tfind_1): Update declaration.
7767
7768 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7769
7770 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7771 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7772 Include main.h.
7773
7774 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7775 here...
7776 * main.h (windows_get_absolute_argv0): ...to here.
7777
7778 2013-04-05 Doug Evans <dje@google.com>
7779
7780 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7781 (read_cutu_die_from_dwo): Add comments.
7782 (read_structure_type): Update comment.
7783 (read_enumeration_type, read_namespace_type): Update comment.
7784 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7785
7786 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7787
7788 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7789 * Makefile.in (gdb.z): Remove.
7790 (install-only): Remove $(man1dir) and gdb.1 installation.
7791 * gdb.1: Remove.
7792
7793 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7794
7795 Fix compatibility with Linux kernel 3.8.3.
7796 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7797 to more inner block. Remove parsing of NUMBER from outer block.
7798 Parse NUMBER only if KEYWORD has been identified.
7799
7800 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7801
7802 Fix variable name shadowing.
7803 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7804 filename to mapsfilename and update its uses.
7805
7806 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7807
7808 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7809 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7810 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7811 details of the problem.
7812
7813 2013-04-04 Pedro Alves <palves@redhat.com>
7814 Hui Zhu <hui@codesourcery.com>
7815
7816 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7817 tracepoint, reset its STEP_COUNT and call validate_actionline.
7818
7819 2013-04-03 Doug Evans <dje@google.com>
7820
7821 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7822 read_die_and_siblings.
7823 (read_die_and_siblings): New function.
7824 (read_cutu_die_from_dwo): Dump die if requested.
7825 (read_die_and_children): Call read_full_die_1 and
7826 read_die_and_siblings_1.
7827 (read_full_die): Dump die if requested.
7828
7829 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7830
7831 * dwarf2read.c (struct dwo_file): New member comp_dir.
7832 Rename member name to dwo_name. All uses updated.
7833 (hash_dwo_file): Include comp_dir in computation.
7834 (eq_dwo_file): Ditto.
7835 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7836 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7837
7838 * psymtab.c (read_psymtabs_with_fullname): Don't call
7839 psymtab_to_fullname if the basenames are different.
7840
7841 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7842
7843 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7844 New entry about "fullname" presence.
7845
7846 2013-04-03 Pedro Alves <palves@redhat.com>
7847
7848 * NEWS: Mention x86_64/Cygwin as new native configuration.
7849
7850 2013-04-02 Doug Evans <dje@google.com>
7851
7852 * dwarf2read.c (read_structure_type): Fix typo in comment.
7853
7854 2013-04-02 Pedro Alves <palves@redhat.com>
7855
7856 * NEWS: Mention "set/show debug aarch64", "set/show debug
7857 coff-pe-read" and "set/show debug mach-o".
7858
7859 2013-04-02 Pedro Alves <palves@redhat.com>
7860
7861 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7862
7863 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7864
7865 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7866 gdb_string.h is now in common/.
7867
7868 2013-04-02 Pedro Alves <palves@redhat.com>
7869
7870 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7871 under "New options".
7872
7873 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7874
7875 Revert this patch:
7876 PR gdb/15275
7877 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7878
7879 2013-04-02 Pedro Alves <palves@redhat.com>
7880
7881 PR gdb/15275
7882
7883 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7884 (remote_serial_write): New function.
7885 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7886
7887 2013-04-01 Jiong Wang <jiwang@tilera.com>
7888
7889 * NEWS: Mention TILE-Gx in "New native configurations" and
7890 "New targets" sections.
7891
7892 2013-04-01 Doug Evans <dje@google.com>
7893
7894 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7895 (process_enumeration_scope): Simplify.
7896
7897 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7898 type_unit_group ...
7899 (struct signatured_type): ... to here.
7900 (sig_type_ptr): New typedef.
7901 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7902 out of union 't'. All uses updated.
7903 (dw2_get_file_names_reader): Assert not called for a type unit.
7904 (dw2_get_file_names): Assert not called for a type unit or type
7905 unit group.
7906 (build_type_psymtabs_reader): Assert called for a type unit.
7907 (build_type_psymtab_dependencies): Assert called for a type unit group.
7908
7909 * dwarf2read.c (free_dwo_file): Add comment.
7910 (dwarf2_per_objfile_free): Unref dwp bfd.
7911
7912 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7913
7914 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7915 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7916 (read_pe_exported_syms): Remove unused 'exportix'.
7917 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7918 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7919 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7920
7921 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7922
7923 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7924 (print_it_watchpoint): Remove unused 'bl'.
7925 (say_where): Remove unused 'uiout'.
7926 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7927 (bkpt_breakpoint_hit): Remove unused 'b'.
7928 (internal_bkpt_print_it): Remove unused 'uiout'.
7929 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7930
7931 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7932
7933 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7934 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7935
7936 2013-03-29 Doug Evans <dje@google.com>
7937
7938 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7939 Delete arg is_dwp. All callers updated.
7940 (open_dwp_file): New function.
7941 (open_and_init_dwp_file): Call it.
7942 (get_dwp_file): New function.
7943 (lookup_dwo_cutu): Call it.
7944
7945 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7946 unnecessary, cleanup.
7947
7948 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7949
7950 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7951 (lookup_dwo_unit): New function.
7952 (init_cutu_and_read_dies): Move DWO handling to new functions.
7953
7954 * dwarf2read.c (struct signatured_type): Tweak comment.
7955 (struct dwo_unit): Tweak comment.
7956 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7957 (create_dwo_debug_info_hash_table): Tweak comment.
7958 (dwarf2_per_cu_offset_and_type): Tweak comment.
7959
7960 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7961 missing .debug_types section.
7962
7963 2013-03-29 Yao Qi <yao@codesourcery.com>
7964
7965 * corelow.c: Include "completer.h".
7966 (_initialize_corelow): Call add_target_with_completer with
7967 argument 'filename_completer'.
7968 * tracepoint.c: Likewise.
7969 * exec.c (_initialize_exec): Likewise.
7970 * target.c (add_target): Rename to ...
7971 (add_target_with_completer): ... this. Call set_cmd_completer
7972 if parameter completer is not NULL.
7973 (add_target): New.
7974 * target.h: Include "command.h".
7975 (add_target_with_completer): Declare it.
7976
7977 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7978
7979 * coffread.c (is_import_fixup_symbol): New function.
7980 (record_minimal_symbol): Use is_import_fixup_symbol to
7981 detect import fixup symbols, and discard them.
7982
7983 2013-03-28 Doug Evans <dje@google.com>
7984
7985 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7986 types hash table until we know we need it.
7987
7988 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7989 index numbers.
7990
7991 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7992 All callers updated.
7993 (dw2_print_stats): Print #read CUs too.
7994 (dump_die_shallow): Print signatured types better.
7995
7996 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7997 info_or_types_section to section. All uses updated.
7998 (struct dwo_unit): Ditto.
7999
8000 2013-03-28 Pedro Alves <palves@redhat.com>
8001
8002 * NEWS (New options): New section.
8003 (New options): Mention set/show remote trace-status-packet.
8004 * remote.c (PACKET_qTStatus): New enumeration value.
8005 (remote_get_trace_status): Skip sending qTStatus if the packet is
8006 disabled. Use packet_ok.
8007 (_initialize_remote): Register a configuration command for
8008 qTStatus packet.
8009
8010 2013-03-28 Doug Evans <dje@google.com>
8011
8012 * symfile.c (find_separate_debug_file): Add comment.
8013 (terminate_after_last_dir_separator): Tweak comment.
8014
8015 * dwarf2read.c (create_partial_symtab): Add forward decl.
8016 (create_partial_symtab): Move to be closer to other psymtab functions.
8017 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8018
8019 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8020 (compute_symtab_includes): Remove unnecessary forward declaration.
8021 (die_needs_namespace): Add comment marking group of functions for
8022 dwarf2 name computation.
8023
8024 * typeprint.c (_initialize_typeprint): Improve type help text.
8025
8026 * python/python.c (finish_python_initialization): Provide suggestion
8027 for how to tell gdb to find its python files.
8028
8029 2013-03-28 Pedro Alves <palves@redhat.com>
8030
8031 PR gdb/15294
8032
8033 * source.c (_initialize_source): Change back "set listsize" to an
8034 integer command.
8035
8036 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8037
8038 PR gdb/15275
8039 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8040
8041 2013-03-27 Pedro Alves <palves@redhat.com>
8042
8043 * top.c (history_size): Rename to ...
8044 (history_size_setshow_var): ... this. Add comment.
8045 (show_commands): Use readline's 'history_length' instead of
8046 computing the history length by calling history_get in a loop.
8047 (set_history_size_command): Error out for sizes over INT_MAX.
8048 Restore previous history size on invalid size.
8049 (init_history): If HISTSIZE is negative, leave the history size as
8050 zero. Add comments.
8051 (init_main): Adjust.
8052
8053 2013-03-27 Pedro Alves <palves@redhat.com>
8054
8055 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8056 coff_pe_read" command to "set debug coff-pe-read".
8057
8058 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8059
8060 * record.c (command_size_to_target_size): Fix size comparison.
8061 Change parameter type from pointer to integer to integer.
8062 Update all users.
8063
8064 2013-03-27 Pierre Muller <muller@sourceware.org>
8065
8066 * windows-nat.c (handle_output_debug_string): Avoid typecast
8067 from integer of different size warning.
8068
8069 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8070
8071 * windows-nat.c (handle_output_debug_string): Add empty line
8072 after local block variable definition.
8073
8074 2013-03-26 Pedro Alves <palves@redhat.com>
8075
8076 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8077 (net_open): Make 'polls' local unsigned.
8078
8079 2013-03-26 Pedro Alves <palves@redhat.com>
8080
8081 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8082 a zuinteger command instead of uinteger.
8083
8084 2013-03-26 Pedro Alves <palves@redhat.com>
8085
8086 * record-full.c (record_full_insn_num): Make it unsigned.
8087 (record_full_check_insn_num, record_full_message)
8088 (record_full_registers_change, record_full_xfer_partial): Remove
8089 record_full_insn_max_num check (it's always != 0).
8090 (record_full_info, record_full_restore): Use %u as format string.
8091 (): Use %u as format string.
8092 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8093 check (it's always != 0).
8094
8095 2013-03-26 Pedro Alves <palves@redhat.com>
8096
8097 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8098 and "set dcache size" commands zuinteger instead of uinteger.
8099
8100 2013-03-26 Pedro Alves <palves@redhat.com>
8101
8102 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8103 command zuinteger instead of uinteger.
8104
8105 2013-03-26 Pedro Alves <palves@redhat.com>
8106
8107 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8108 zuinteger instead of uinteger.
8109
8110 2013-03-26 Pedro Alves <palves@redhat.com>
8111
8112 * record.c (record_insn_history_size_setshow_var)
8113 (record_call_history_size_setshow_var): New globals.
8114 (command_size_to_target_size): New function.
8115 (cmd_record_insn_history, cmd_record_call_history): Use
8116 command_size_to_target_size instead of cast.
8117 (validate_history_size, set_record_insn_history_size)
8118 (set_record_call_history_size): New functions.
8119 (_initialize_record): Install set_record_insn_history_size and
8120 set_record_call_history_size as "set" hooks of "set record
8121 instruction-history-size" and "set record
8122 function-call-history-size".
8123
8124 2013-03-26 Pedro Alves <palves@redhat.com>
8125
8126 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8127 use with history_max_entries use. Remove FIXME note.
8128
8129 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8130
8131 * record-btrace.c (record_btrace_close): Call
8132 record_btrace_auto_disable.
8133
8134 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8135
8136 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8137
8138 2013-03-25 Doug Evans <dje@google.com>
8139
8140 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8141
8142 2013-03-25 Tom Tromey <tromey@redhat.com>
8143
8144 PR symtab/11462:
8145 * c-exp.y (exp): Add new productions for destructors after '.' and
8146 '->'.
8147 (write_destructor_name): New function.
8148
8149 2013-03-25 Tom Tromey <tromey@redhat.com>
8150
8151 PR c++/9197:
8152 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8153 value_struct_elt, not lookup_struct_elt_type.
8154 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8155 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8156 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8157
8158 2013-03-25 Yao Qi <yao@codesourcery.com>
8159
8160 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8161 instead of '_mkdir'.
8162
8163 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8164
8165 * windows-nat.c (windows_get_absolute_argv0): New function.
8166 * windows-nat.h: Add its prototype.
8167
8168 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8169 Use IS_DIR_SEPARATOR instead of looking for a character inside
8170 SLASH_STRING. Include filenames.h.
8171 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8172 relocate_gdb_directory works when passed gdb_program_name.
8173 Include windows-nat.h.
8174
8175 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8176
8177 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8178 * remote.c (trace_error): Remove the special handling of '2'.
8179 (readchar) <SERIAL_EOF>
8180 (readchar) <SERIAL_ERROR>
8181 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8182 (remote_get_trace_status): Call throw_exception if EX is
8183 TARGET_CLOSE_ERROR.
8184 * utils.c (perror_with_name): Rename to ...
8185 (throw_perror_with_name): ... here. New parameter errcode, describe it
8186 in the function comment.
8187 (perror_with_name): New function wrapper.
8188 * utils.h (enum errors): New stub declaration.
8189 (throw_perror_with_name): New declaration.
8190
8191 2013-03-22 Pedro Alves <palves@redhat.com>
8192 Yao Qi <yao@codesourcery.com>
8193 Mark Kettenis <kettenis@gnu.org>
8194
8195 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8196 Don't let the user set the value to UINT_MAX directly.
8197 <var_integer>: Don't let the user set the value to INT_MAX
8198 directly.
8199
8200 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8201
8202 * remote.c (remote_unpush_target): New function.
8203 (remote_open_1): Remove two pop_target calls, update one comment, add
8204 comment to target_preopen call. Replace pop_target call by
8205 remote_unpush_target call.
8206 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8207 pop_target calls by remote_unpush_target calls.
8208
8209 2013-03-22 Pedro Alves <palves@redhat.com>
8210
8211 * linux-nat.c (linux_child_follow_fork): Don't call
8212 linux_enable_event_reporting.
8213 (linux_handle_extended_wait): Don't call
8214 linux_enable_event_reporting.
8215
8216 2013-03-22 Pedro Alves <palves@redhat.com>
8217
8218 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8219 use it to rewrite the trampoline buffers with type gdb_byte[], and
8220 undefine the macro. Remove char* cast.
8221
8222 2013-03-21 Doug Evans <dje@google.com>
8223
8224 New commands "mt set per-command {space,time,symtab} {on,off}".
8225 * NEWS: Add entry.
8226 * event-top.c: #include "maint.h".
8227 * main.c: #include "maint.h".
8228 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8229 timeval-utils.h, maint.h, cli/cli-setshow.h.
8230 (per_command_time, per_command_space): New static globals.
8231 (per_command_symtab): New static global.
8232 (per_command_setlist, per_command_showlist): New static globals.
8233 (struct cmd_stats): Move here from utils.c.
8234 (set_per_command_time): Renamed from set_display_time in utils.c
8235 and moved here. All callers updated.
8236 (set_per_command_space): Renamed from set_display_space in utils.c
8237 and moved here. All callers updated.
8238 (count_symtabs_and_blocks): New function.
8239 (report_command_stats): Moved here from utils.c. Add support for
8240 printing symtab stats. Only print data if enabled before command
8241 executed.
8242 (make_command_stats_cleanup): Ditto.
8243 (sert_per_command_cmd, show_per_command_cmd): New functions.
8244 (_initialize_maint_cmds): Add new commands
8245 mt set per-command {space,time,symtab} {on,off}.
8246 * maint.h: New file.
8247 * top.c: #include "maint.h".
8248 * utils.c (reset_prompt_for_continue_wait_time): New function.
8249 (get_prompt_for_continue_wait_time): New function.
8250 * utils.h (reset_prompt_for_continue_wait_time): Declare
8251 (get_prompt_for_continue_wait_time): Declare.
8252 (make_command_stats_cleanup): Moved to maint.h.
8253 (set_display_time, set_display_space): Moved to maint.h and renamed
8254 to set_per_command_time, set_per_command_space.
8255 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8256 parse_binary_operation and made non-static. Don't call error,
8257 just return an error marker. All callers updated.
8258 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8259
8260 2013-03-21 Tom Tromey <tromey@redhat.com>
8261
8262 * symfile.c (alloc_section_addr_info): Update header. Don't set
8263 'num_sections' field.
8264 (build_section_addr_info_from_section_table): Set 'num_sections'.
8265 (build_section_addr_info_from_bfd): Likewise.
8266 (build_section_addr_info_from_objfile): Remove dead loop
8267 condition.
8268 (free_section_addr_info): Unconditionally call xfree.
8269 (relative_addr_info_to_section_offsets, addrs_section_sort)
8270 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8271 condition.
8272 (syms_from_objfile_1): Remove dead 'if' condition. Check
8273 'num_sections'.
8274 (add_symbol_file_command): Set 'num_sections'.
8275 * symfile-mem.c (symbol_file_add_from_memory): Set
8276 'num_sections'.
8277 * somread.c (som_symfile_offsets): Remove dead loop condition.
8278 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8279 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8280
8281 2013-03-21 Tom Tromey <tromey@redhat.com>
8282
8283 * tracepoint.h (decode_agent_options): Add 'trace_string'
8284 argument.
8285 * tracepoint.c (decode_agent_options): Add 'trace_string'
8286 argument.
8287 (validate_actionline): Update.
8288 (collect_symbol): Add 'trace_string' argument.
8289 (struct add_local_symbols_data) <trace_string>: New field.
8290 (do_collect_symbol): Update.
8291 (add_local_symbols): Add 'trace_string' argument.
8292 (encode_actions_1): Update.
8293 (trace_dump_actions): Update.
8294 * dwarf2loc.c (access_memory): Update.
8295 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8296 * ax-general.c (new_agent_expr): Update.
8297 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8298 (gen_trace_for_return_address): Add argument.
8299 (trace_kludge, trace_string_kludge): Remove.
8300 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8301 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8302 (gen_trace_for_var): Add 'trace_string' argument.
8303 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8304 (gen_printf, agent_eval_command_one): Update.
8305
8306 2013-03-21 Tom Tromey <tromey@redhat.com>
8307
8308 PR exp/15109:
8309 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8310 Handle FILENAME token.
8311
8312 2013-03-21 Tom Tromey <tromey@redhat.com>
8313
8314 * c-exp.y (YYPRINT): Define.
8315 (c_print_token): New function.
8316
8317 2013-03-21 Tom Tromey <tromey@redhat.com>
8318
8319 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8320
8321 2013-03-21 Yao Qi <yao@codesourcery.com>
8322
8323 * ctf.c: Include "gdb_stat.h".
8324 [USE_WIN32API]: New macro 'mkdir'.
8325 (ctf_start): Use permission bits macros if they are defined.
8326
8327 2013-03-20 Keith Seitz <keiths@redhat.com>
8328
8329 * breakpoint.h (struct breakpoint): Add comment to
8330 extra_string indicating that this member is mallod'd.
8331 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8332
8333 2013-03-20 Pedro Alves <palves@redhat.com>
8334
8335 PR gdb/15289
8336
8337 * cli/cli-setshow.c (do_set_command)
8338 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8339 the result of parsing the command argument. Throw error if the
8340 value is greater than UINT_MAX. Print the invalid value with
8341 plongest.
8342 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8343 result of parsing the command argument. Throw error if the value
8344 is greater than INT_MAX, not greater or equal. Also throw error
8345 if the value is less than INT_MIN. Print the invalid value with
8346 plongest.
8347 <var_zuinteger_unlimited>: Throw error if the value is greater
8348 than INT_MAX, not greater or equal.
8349 (do_show_command) <var_integer, var_zinteger,
8350 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8351
8352 2013-03-20 Tom Tromey <tromey@redhat.com>
8353
8354 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8355 if possible.
8356 * dwarf2read.c (read_func_scope): Remove old FIXME.
8357 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8358 not LOC_COMPUTED.
8359 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8360 Unconditionally call via computed ops, if possible.
8361 * printcmd.c (address_info): Unconditionally call via computed ops,
8362 if possible.
8363 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8364 if possible.
8365 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8366 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8367 if possible.
8368
8369 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8370 Tom Tromey <tromey@redhat.com>
8371
8372 PR symtab/8421:
8373 * coffread.c (coff_register_index): New global.
8374 (process_coff_symbol, coff_read_enum_type): Set
8375 SYMBOL_ACLASS_INDEX.
8376 (_initialize_coffread): Initialize new global.
8377 * dwarf2loc.c (locexpr_find_frame_base_location)
8378 (dwarf2_block_frame_base_locexpr_funcs)
8379 (loclist_find_frame_base_location)
8380 (dwarf2_block_frame_base_loclist_funcs): New.
8381 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8382 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8383 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8384 (dwarf2_block_frame_base_loclist_funcs): New.
8385 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8386 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8387 globals.
8388 (read_func_scope): Update.
8389 (fixup_go_packaging, mark_common_block_symbol_computed)
8390 (var_decode_location, new_symbol_full, dwarf2_const_value):
8391 Set SYMBOL_ACLASS_INDEX.
8392 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8393 (_initialize_dwarf2_read): Initialize new globals.
8394 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8395 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8396 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8397 globals.
8398 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8399 (_initialize_mdebugread): Initialize new globals.
8400 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8401 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8402 (stab_register_index, stab_regparm_index): New globals.
8403 (define_symbol, read_enum_type, common_block_end): Set
8404 SYMBOL_ACLASS_INDEX.
8405 (_initialize_stabsread): Initialize new globals.
8406 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8407 globals.
8408 (MAX_SYMBOL_IMPLS): New define.
8409 (register_symbol_computed_impl, register_symbol_block_impl)
8410 (register_symbol_register_impl)
8411 (initialize_ordinary_address_classes): New functions.
8412 (_initialize_symtab): Call initialize_ordinary_address_classes.
8413 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8414 (struct symbol_impl): New.
8415 (SYMBOL_ACLASS_BITS): New define.
8416 (struct symbol) <aclass, ops>: Remove fields.
8417 <aclass_index>: New field.
8418 (symbol_impls): Declare.
8419 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8420 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8421 (register_symbol_computed_impl, register_symbol_block_impl)
8422 (register_symbol_register_impl): Declare.
8423 (struct symbol_computed_ops): Add location_has_loclist.
8424 (struct symbol_block_ops): New.
8425 (SYMBOL_BLOCK_OPS): New.
8426 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8427
8428 2013-03-20 Tom Tromey <tromey@redhat.com>
8429
8430 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8431 (print_partial_symbols, recursively_search_psymtabs): Use
8432 PSYMBOL_CLASS.
8433
8434 2013-03-20 Pierre Muller <muller@sourceware.org>
8435
8436 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8437 addtion, subtraction, multiplication and division binary operator.
8438
8439 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8440
8441 Code cleanup.
8442 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8443 * bsd-kvm.c (bsd_kvm_close): Likewise.
8444 * bsd-uthread.c (bsd_uthread_close): Likewise.
8445 * corelow.c (core_close): Likewise.
8446 (core_close_cleanup): Remove parameter quitting from a caller.
8447 * event-top.c (async_disconnect): Likewise.
8448 * exec.c (exec_close_1): Remove parameter quitting.
8449 * go32-nat.c (go32_close): Likewise.
8450 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8451 parameter quitting from a caller.
8452 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8453 variable.
8454 (mips_linux_close): Remove parameter quitting. Remove parameter
8455 quitting from a caller.
8456 * monitor.c (monitor_close): Remove parameter quitting.
8457 * monitor.h (monitor_close): Likewise.
8458 * record-btrace.c (record_btrace_close): Likewise.
8459 * record-full.c (record_full_close): Likewise.
8460 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8461 it also from fprintf_unfiltered.
8462 * remote-mips.c (mips_close): Remove parameter quitting.
8463 (mips_detach): Remove parameter quitting from a caller.
8464 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8465 (gdbsim_close): Remove duplicate function comment. Remove parameter
8466 quitting and remove it also from printf_filtered.
8467 * remote.c (remote_close): Remove parameter quitting.
8468 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8469 * target.c (update_current_target): Remove parameter int from to_close
8470 de_fault.
8471 (push_target, unpush_target, pop_target): Remove parameter quitting from
8472 a caller.
8473 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8474 Remove parameter quitting from a caller.
8475 (target_preopen): Remove parameter quitting from a caller.
8476 (target_close): Remove parameter quitting. Remove parameter quitting
8477 from a caller two times. Remove parameter quitting also from
8478 fprintf_unfiltered.
8479 * target.h (struct target_ops): Remove parameter quitting and as int
8480 from fields to_xclose and to_close.
8481 (extern struct target_ops current_target):
8482 (target_close, pop_all_targets): Remove parameter quitting. Update the
8483 comment.
8484 (pop_all_targets_above): Remove parameter quitting.
8485 * top.c (quit_target): Remove parameter quitting from a caller.
8486 * tracepoint.c (tfile_close): Remove parameter quitting.
8487 * windows-nat.c (windows_close): Remove parameter quitting.
8488
8489 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8490
8491 * windows-nat.c (handle_output_debug_string): Replace call
8492 to string_to_core_addr with call to strtoull.
8493
8494 2013-03-20 Yao Qi <yao@codesourcery.com>
8495
8496 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8497 and write it to CTF metadata.
8498
8499 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8500
8501 * windows-nat.c (handle_output_debug_string): Change type of n to
8502 SIZE_T to avoid crash on 64 bit systems.
8503
8504 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8505
8506 * python/python-internal.h (HAVE_SNPRINTF)
8507 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8508 about redefinition of snprintf by pyerrors.h.
8509
8510 2013-03-15 Steve Ellcey <sellcey@mips.com>
8511
8512 * remote-sim.c (sim_command_completer): Make char arguments const.
8513
8514 2013-03-15 Tom Tromey <tromey@redhat.com>
8515
8516 PR c++/15116:
8517 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8518
8519 2013-03-14 Tom Tromey <tromey@redhat.com>
8520
8521 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8522 New fields.
8523 (get_file_crc): Move from symfile.c.
8524 (gdb_bfd_crc): New function.
8525 * gdb_bfd.h (gdb_bfd_crc): Declare.
8526 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8527 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8528 (separate_debug_file_exists): Use gdb_bfd_crc.
8529
8530 2013-03-14 Tom Tromey <tromey@redhat.com>
8531
8532 * symfile.c (get_debug_link_info): Remove.
8533 (find_separate_debug_file_by_debuglink): Use
8534 bfd_get_debug_link_info.
8535
8536 2013-03-14 Tom Tromey <tromey@redhat.com>
8537
8538 * symtab.c (error_in_psymtab_expansion): New function.
8539 (lookup_symbol_aux_quick)
8540 (basic_lookup_transparent_type_quick): Remove "last resort"
8541 code. Use error_in_psymtab_expansion.
8542
8543 2013-03-14 Doug Evans <dje@google.com>
8544 Jan Kratochvil <jan.kratochvil@redhat.com>
8545
8546 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8547 any successful compare_filenames_for_search or FILENAME_CMP.
8548 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8549 * symtab.c (iterate_over_some_symtabs): Likewise.
8550
8551 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8552
8553 * source.c (print_source_lines_base): Make a local copy of
8554 symtab_to_fullname.
8555
8556 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8557 Jan Kratochvil <jan.kratochvil@redhat.com>
8558
8559 * source.c (print_source_lines_base): Suppress "file" for TUI.
8560
8561 2013-03-14 Keith Seitz <keiths@redhat.com>
8562 Alan Matsuoka <alanm@redhat.com>
8563
8564 PR c++/15203
8565 PR c++/15210
8566 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8567 TYPE_CODE_METHOD.
8568 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8569 symbols.
8570
8571 2013-03-14 Yao Qi <yao@codesourcery.com>
8572
8573 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8574 status to tfile if trace is stopped by command 'tstop'.
8575
8576 2013-03-14 Yao Qi <yao@codesourcery.com>
8577
8578 * tracepoint.c (tfile_write_status): Write trace notes and user
8579 name into tfile if they are not NULL.
8580
8581 2013-03-14 Hui Zhu <hui@codesourcery.com>
8582 Yao Qi <yao@codesourcery.com>
8583
8584 * Makefile.in (REMOTE_OBS): Add ctf.o.
8585 (SFILES): Add ctf.c.
8586 (HFILES_NO_SRCDIR): Add ctf.h.
8587 * ctf.c, ctf.h: New files.
8588 * tracepoint.c: Include 'ctf.h'.
8589 (collect_pseudocommand): Remove static.
8590 (trace_save_command): Parse option "-ctf".
8591 Produce different trace file writers per option.
8592 Adjust output message.
8593 (trace_save_tfile, trace_save_ctf): New.
8594 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8595 * mi/mi-main.c: Include 'ctf.h'.
8596 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8597 trace_save_tfile or trace_save_ctf.
8598 * NEWS: Mention these changes.
8599
8600 2013-03-14 Yao Qi <yao@codesourcery.com>
8601
8602 * tracepoint.c (trace_file_writer_xfree): New.
8603 (struct tfile_writer_data): New.
8604 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8605 (tfile_write_header, tfile_write_regblock_type): New.
8606 (tfile_write_status, tfile_write_uploaded_tsv): New.
8607 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8608 (tfile_write_raw_data, (tfile_end): New.
8609 (tfile_write_ops): New global variable.
8610 (TRACE_WRITE_R_BLOCK): New macro.
8611 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8612 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8613 (TRACE_WRITE_V_BLOCK): New macro.
8614 (trace_save): Add extra one parameter WRITER. Make it static.
8615 Use WRITER to writer trace.
8616 (tfile_trace_file_writer_new): New.
8617 (trace_save_command): Caller update.
8618 (trace_save_tfile): Write trace data in TFILE format.
8619 * tracepoint.h (struct trace_frame_write_ops): New.
8620 (struct trace_file_write_ops): New.
8621 (struct trace_file_writer): New.
8622 (trace_save): Remove its declaration.
8623 (trace_save_tfile): Declare it.
8624 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8625 instead of trace_save.
8626
8627 2013-03-13 Pedro Alves <palves@redhat.com>
8628
8629 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8630
8631 2013-03-13 Pedro Alves <palves@redhat.com>
8632
8633 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8634 commented out code.
8635 * demangle.c (current_demangling_style_string): Make it const.
8636 (set_demangling_command): Assert the demangling style is known.
8637 Remove all handling of unknown styles. Set
8638 'current_demangling_style_string' to an element of the
8639 demangling_style_names array.
8640 (set_demangling_style): Delete.
8641 (_initialize_demangler): Set current_demangling_style_string to the
8642 element of the demangling_style_names array that corresponds to
8643 the default demangling style. Remove FIXME note. Don't call
8644 set_demangling_style.
8645 * gdb-demangle.h (set_demangling_style): Remove declaration.
8646
8647 2013-03-13 Pedro Alves <palves@redhat.com>
8648
8649 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8650 fields const.
8651 (ada_make_symbol_completion_list): Make "text0" parameter const.
8652 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8653 * breakpoint.c (condition_completer): Make "text" and "word"
8654 parameters const. Adjust.
8655 (check_tracepoint_command): Adjust to validate_actionline
8656 prototype change.
8657 (catch_syscall_completer): Make "text" and "word" parameters
8658 const.
8659 * cli/cli-cmds.c (show_user): Make "comname" local const.
8660 (valid_command_p): Make "command" parameter const.
8661 (alias_command): Make "alias_prefix" and "command_prefix" locals
8662 const.
8663 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8664 (add_alias_cmd): Make "name" and "oldname" parameters const.
8665 Adjust. No longer make copy of OLDNAME.
8666 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8667 (add_setshow_cmd_full, add_setshow_enum_cmd)
8668 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8669 (add_setshow_filename_cmd, add_setshow_string_cmd)
8670 (add_setshow_string_noescape_cmd)
8671 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8672 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8673 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8674 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8675 Make "name" parameter const.
8676 (help_cmd): Rename "command" parameter to "arg". New const local
8677 "command".
8678 (find_cmd): Make "command" parameter const.
8679 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8680 deprecated_cmd_warning prototype change.
8681 (undef_cmd_error): Make "cmdtype" parameter const.
8682 (lookup_cmd): Make "line" parameter const.
8683 (deprecated_cmd_warning): Change type of "text" parameter to
8684 pointer to const char, from pointer to pointer to char. Adjust.
8685 (lookup_cmd_composition): Make "text" parameter const.
8686 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8687 parameters const.
8688 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8689 const.
8690 * cli/cli-script.c (validate_comname): Make "tem" local const.
8691 (define_command): New const local "tem_c". Use it in calls to
8692 lookup_cmd.
8693 (document_command): Make "tem" and "comfull" locals const.
8694 (show_user_1): Make "prefix" and "name" parameters const.
8695 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8696 const.
8697 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8698 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8699 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8700 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8701 (complete_on_enum, add_setshow_enum_cmd)
8702 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8703 (add_setshow_filename_cmd, add_setshow_string_cmd)
8704 (add_setshow_string_noescape_cmd)
8705 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8706 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8707 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8708 Change prototypes, constifying strings.
8709 * completer.c (noop_completer, filename_completer): Make "text"
8710 and "prefix" parameters const.
8711 (location_completer, expression_completer)
8712 (complete_line_internal): Make "text" and "prefix" parameters
8713 const and adjust.
8714 (command_completer, signal_completer): Make "text" and "prefix"
8715 parameters const.
8716 * completer.h (noop_completer, filename_completer)
8717 (expression_completer, location_completer, command_completer)
8718 (signal_completer): Change prototypes.
8719 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8720 parameters const.
8721 * cp-abi.c (cp_abi_completer): Likewise.
8722 * expression.h (parse_expression_for_completion): Change
8723 prototype.
8724 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8725 parameters const.
8726 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8727 * infrun.c (handle_completer): Make "text" and "word" parameters
8728 const.
8729 * interps.c (interpreter_completer): Make "text" and "word"
8730 parameters const.
8731 * language.h (struct language_defn)
8732 <la_make_symbol_completion_list>: Make "text" and "word"
8733 parameters const.
8734 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8735 (parse_exp_in_context): Rename to ...
8736 (parse_exp_in_context_1): ... this.
8737 (parse_exp_in_context): Reimplement, with const hack from
8738 parse_exp_1.
8739 (parse_expression_for_completion): Make "string" parameter const.
8740 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8741 to pointer to const char. Adjust.
8742 (print_command_1): Make "exp" parameter const.
8743 (output_command): Rename to ...
8744 (output_command_const): ... this. Make "exp" parameter const.
8745 (output_command): Reimplement.
8746 (x_command): Adjust.
8747 (display_command): Rename "exp" parameter to "arg". New "exp"
8748 local, const version of "arg".
8749 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8750 "cmd_name" local const.
8751 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8752 call.
8753 (cmdpy_completer): Make "text" and "word" parameters const.
8754 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8755 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8756 const.
8757 * remote.c (_initialize_remote): Make "cmd_name" local const.
8758 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8759 parameters const. Adjust.
8760 (completion_list_add_fields): Make "sym_text", "text" and "word"
8761 parameters const.
8762 (struct add_name_data) <sym_text, text, word>: Make fields const.
8763 (default_make_symbol_completion_list_break_on): Make "text" and
8764 "word" parameters const. Adjust locals.
8765 (default_make_symbol_completion_list)
8766 (make_symbol_completion_list, make_symbol_completion_type)
8767 (make_symbol_completion_list_fn): Make "text" and "word"
8768 parameters const.
8769 (make_file_symbol_completion_list): Make "text", "word" and
8770 "srcfile" parameters const. Adjust locals.
8771 (add_filename_to_list): Make "text" and "word" parameters const.
8772 (struct add_partial_filename_data) <text, word>: Make fields
8773 const.
8774 (make_source_files_completion_list): Make "text" and "word"
8775 parameters const.
8776 * symtab.h (default_make_symbol_completion_list_break_on)
8777 (default_make_symbol_completion_list, make_symbol_completion_list)
8778 (make_symbol_completion_type enum type_code)
8779 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8780 (make_source_files_completion_list): Change prototype.
8781 * top.c (execute_command): Adjust to pass pointer to pointer to
8782 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8783 change.
8784 (set_verbose): Make "cmdname" local const.
8785 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8786 and adjust.
8787 (validate_actionline): Make "line" parameter a pointer to const
8788 char, and adjust.
8789 (encode_actions_1): Make "action_exp" local const, and adjust.
8790 (encode_actions): Adjust.
8791 (replace_comma): Delete.
8792 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8793 const, and adjust. Don't frob the action string while splitting
8794 it at commas. Instead, make a copy of each split substring in
8795 turn.
8796 (trace_dump_command): Adjust to validate_actionline prototype
8797 change.
8798 * tracepoint.h (decode_agent_options, decode_agent_options)
8799 (encode_actions, validate_actionline): Change prototypes.
8800 * valprint.h (output_command): Delete declaration.
8801 (output_command_const): Declare.
8802 * value.c (function_destroyer): Cast const away in xfree call.
8803
8804 2013-03-13 Pedro Alves <palves@redhat.com>
8805
8806 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8807 rather than casting 'const char * const *' to 'const char **'.
8808 * ada-lex.l (processInt): Make "trailer" local const. Remove
8809 'const char **' cast.
8810 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8811 locals, and use those as strtol output pointer, instead than doing
8812 invalid casts to from 'const char **' to 'char **'.
8813 (_initialize_demangle): Remove cast.
8814 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8815 locals, and use those as strtol output pointer, instead than doing
8816 invalid casts to from 'const char **' to 'char **'.
8817 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8818 casts.
8819 * stap-probe.c (stap_parse_register_operand)
8820 (stap_parse_single_operand): Likewise.
8821
8822 2013-03-13 Yao Qi <yao@codesourcery.com>
8823
8824 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8825 the last matched 'V' blcok in trace frame.
8826
8827 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8828
8829 * NEWS: Create a new section for the next release branch.
8830 Rename the section of the current branch, now that it has
8831 been cut.
8832
8833 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8834
8835 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8836 * version.in: Bump version to 7.6.50.20130312-cvs.
8837
8838 2013-03-12 Keith Seitz <keiths@redhat.com>
8839
8840 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8841 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8842 Remove temporary copy of input string.
8843 (mi_execute_command_wrapper): Make "cmd" const.
8844 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8845 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8846 Use const strings.
8847 (mi_parse): Make "cmd" const.
8848 Use const strings.
8849 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8850
8851 2013-03-12 Keith Seitz <keiths@redhat.com>
8852
8853 * ada-lang.c (ada_read_renaming_var_value): Pass const
8854 pointer to expression string to parse_exp_1.
8855 (create_excep_cond_exprs): Likewise.
8856 * ax-gdb.c (agent_eval_command_one): Likewise.
8857 (maint_agent_printf_command): Likewise.
8858 Constify much of the string handling/parsing.
8859 * breakpoint.c (set_breakpoint_condition): Pass const
8860 pointer to expression string to parse_exp_1.
8861 (update_watchpoint): Likewise.
8862 (parse_cmd_to_aexpr): Constify string handling.
8863 Pass const pointer to parse_exp_1.
8864 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8865 (find_condition_and_thread): Likewise.
8866 Make TOK const.
8867 (watch_command_1): Make "arg" const.
8868 Constify string handling.
8869 Copy the expression string instead of changing the input
8870 string.
8871 (update_breakpoint_location): Pass const pointer to
8872 parse_exp_1.
8873 * eval.c (parse_and_eval_address): Make "exp" const.
8874 (parse_to_comma_and_eval): Make "expp" const.
8875 (parse_and_eval): Make "exp" const.
8876 * expression.h (parse_expression): Make argument const.
8877 (parse_exp_1): Make first argument const.
8878 * findcmd.c (parse_find_args): Treat "args" as const.
8879 * linespec.c (parse_linespec): Pass const pointer to
8880 linespec_expression_to_pc.
8881 (linespec_expression_to_pc): Make "exp_ptr" const.
8882 * parse.c (parse_exp_1): Make "stringptr" const.
8883 Make a copy of the expression to pass to parse_exp_in_context until
8884 this whole interface can be constified.
8885 (parse_expression): Make "string" const.
8886 * printcmd.c (ui_printf): Treat "arg" as const.
8887 Handle const strings.
8888 * tracepoint.c (validate_actionline): Pass const pointer to
8889 all calls to parse_exp_1.
8890 (encode_actions_1): Likewise.
8891 * value.h (parse_to_comma_and_eval): Make argument const.
8892 (parse_and_eval_address): Likewise.
8893 (parse_and_eval): Likewise.
8894 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8895 (varobj_set_value): Likewise.
8896 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8897 constify string handling.
8898 Pass const pointers to parse_and_eval_address and
8899 parse_to_comman_and_eval.
8900 * cli/cli-utils.c (skip_to_space): Rename to ...
8901 (skip_to_space_const): ... this. Handle const strings.
8902 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8903 skip_to_space_const.
8904 (skip_to_space_const): Declare.
8905 * common/format.c (parse_format_string): Make "arg" const.
8906 Handle const strings.
8907 * common/format.h (parse_format_string): Make "arg" const.
8908 * gdbserver/ax.c (ax_printf): Make "format" const.
8909 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8910 of the expression string.
8911
8912 2013-03-12 Hui Zhu <hui@codesourcery.com>
8913
8914 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8915
8916 2013-03-12 Yao Qi <yao@codesourcery.com>
8917 Hui Zhu <hui@codesourcery.com>
8918
8919 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8920 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8921 DW_OP_deref_size.
8922
8923 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8924
8925 * ada-lex.l (rules): Only recognize 'thread' as a
8926 delimiter when followed by numerals, as for c-exp.y.
8927 Use new rewind_to_char function to rewind the input for
8928 expression-delimiting tokens.
8929 (rewind_to_char): New function.
8930
8931 2013-03-11 Pedro Alves <palves@redhat.com>
8932 Jan Kratochvil <jan.kratochvil@redhat.com>
8933
8934 * configure: Regenerate.
8935 * configure.ac (check dynamic export flag): Link python test with
8936 $PYTHON_LIBS.
8937
8938 2013-03-11 Doug Evans <dje@google.com>
8939 Keith Seitz <keiths@redhat.com>
8940
8941 * linespec.c (find_linespec_symbols): Call find_function_symbols
8942 first, and then call lookup_prefix_sym/find_method.
8943
8944 2013-03-11 Pedro Alves <palves@redhat.com>
8945
8946 * charset.c (convert_between_encodings): Don't cast between
8947 different pointer to pointer types. Instead, make the 'inp' local
8948 be of the type iconv expects.
8949 (wchar_iterate): Don't cast between different pointer to pointer
8950 types. Instead, use new pointer local of the type iconv expects.
8951 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8952 Add new local of type char pointer, and use it to get a
8953 char/string view of the byte buffer, instead of casting between
8954 pointer to pointer types.
8955
8956 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8957
8958 * remote.c (remote_set_trace_buffer_size): Move != operator
8959 to the start of next line to fix an ARI warning.
8960
8961 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8962
8963 * NEWS: Add record changes.
8964
8965 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8966
8967 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8968 the instruction history disassembly.
8969 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8970 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8971
8972 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8973
8974 * Makefile.in (SFILES): Add record-btrace.c
8975 (COMMON_OBS): Add record-btrace.o
8976 * record-btrace.c: New.
8977 * objfiles.c: Include btrace.h.
8978 (free_objfile): call btrace_free_objfile.
8979
8980 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8981
8982 * target.c (target_call_history, target_call_history_from,
8983 target_call_history_range): New.
8984 * target.h (target_ops) <to_call_history, to_call_history_from,
8985 to_call_history_range>: New fields.
8986 (target_call_history, target_call_history_from,
8987 target_call_history_range): New declaration.
8988 * record.c (get_call_history_modifiers, cmd_record_call_history,
8989 record_call_history_size): New.
8990 (_initialize_record): Add the "record function-call-history" command.
8991 Add "set/show record function-call-history-size" commands.
8992 * record.h (record_print_flag): New.
8993
8994 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8995
8996 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8997 to_insn_history_range>: New fields.
8998 (target_insn_history): New.
8999 (target_insn_history_from): New.
9000 (target_insn_history_range): New.
9001 * target.c (target_insn_history): New.
9002 (target_insn_history_from): New.
9003 (target_insn_history_range): New.
9004 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9005 (record_insn_history_size): New.
9006 (get_insn_number): New.
9007 (get_context_size): New.
9008 (no_chunk): New.
9009 (get_insn_history_modifiers): New.
9010 (cmd_record_insn_history): New.
9011 (_initialize_record): Add "set/show record instruction-history-size"
9012 command. Add "record instruction-history" command.
9013
9014 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9015
9016 * record.h (record_disconnect): New.
9017 (record_detach): New.
9018 (record_mourn_inferior): New.
9019 (record_kill): New.
9020 * record-full.c (record_disconnect, record_detach,
9021 record_mourn_inferior, record_kill): Move to...
9022 * record.c: ...here.
9023 (DEBUG): New.
9024 (record_stop): New.
9025 (record_unpush): New.
9026 (cmd_record_stop): Call record_stop. Replace unpush_target
9027 call with record_unpush call.
9028 (record_disconnect, record_detach): Assert that the target
9029 is of record stratum. Call record_unpush, record_stop, and
9030 DEBUG.
9031 (record_mourn_inferior, record_kill): Assert that the target
9032 is of record stratum. Call record_unpush and DEBUG.
9033
9034 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9035
9036 * record-full.h, record-full.c (record_memory_query): Rename
9037 to ...
9038 (record_full_memory_query): ...this. Update all users.
9039 (record_arch_list_add_reg): Rename to ...
9040 (record_full_arch_list_add_reg): ...this. Update all users.
9041 (record_arch_list_add_mem): Rename to ...
9042 (record_full_arch_list_add_mem): ...this. Update all users.
9043 (record_arch_list_add_end): Rename to ...
9044 (record_full_arch_list_add_end): ...this. Update all users.
9045 (record_gdb_operation_disable_set): Rename to ...
9046 (record_full_gdb_operation_disable_set): ...this.
9047 Update all users.
9048
9049 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9050
9051 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9052 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9053 (RECORD_IS_REPLAY): Renamed to ...
9054 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9055 (RECORD_FILE_MAGIC): Renamed to ...
9056 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9057 (record_mem_entry): Renamed to ...
9058 (record_full_mem_entry): ... this. Updated all users.
9059 (record_reg_entry): Renamed to ...
9060 (record_full_reg_entry): ... this. Updated all users.
9061 (record_end_entry): Renamed to ...
9062 (record_full_end_entry): ... this. Updated all users.
9063 (record_type) <record_end, record_reg, record_mem>: Renamed
9064 to ...
9065 (record_full_type) <record_full_end, record_full_reg,
9066 record_full_mem>: ... this. Updated all users.
9067 (record_entry): Renamed to ...
9068 (record_full_entry): ... this. Updated all users.
9069 (record_core_buf_entry): Renamed to ...
9070 (record_full_core_buf_entry): ... this. Updated all users.
9071 (record_core_regbuf): Renamed to ...
9072 (record_full_core_regbuf): ... this. Updated all users.
9073 (record_core_start): Renamed to ...
9074 (record_full_core_start): ... this. Updated all users.
9075 (record_core_end): Renamed to ...
9076 (record_full_core_end): ... this. Updated all users.
9077 (record_core_buf_list): Renamed to ...
9078 (record_full_core_buf_list): ... this. Updated all users.
9079 (record_first): Renamed to ...
9080 (record_full_first): ... this. Updated all users.
9081 (record_list): Renamed to ...
9082 (record_full_list): ... this. Updated all users.
9083 (record_arch_list_head): Renamed to ...
9084 (record_full_arch_list_head): ... this. Updated all users.
9085 (record_arch_list_tail): Renamed to ...
9086 (record_full_arch_list_tail): ... this. Updated all users.
9087 (record_stop_at_limit): Renamed to ...
9088 (record_full_stop_at_limit): ... this. Updated all users.
9089 (record_insn_max_num): Renamed to ...
9090 (record_full_insn_max_num): ... this. Updated all users.
9091 (record_insn_num): Renamed to ...
9092 (record_full_insn_num): ... this. Updated all users.
9093 (record_insn_count): Renamed to ...
9094 (record_full_insn_count): ... this. Updated all users.
9095 (record_ops): Renamed to ...
9096 (record_full_ops): ... this. Updated all users.
9097 (record_core_ops): Renamed to ...
9098 (record_full_core_ops): ... this. Updated all users.
9099 (set_record_cmdlist): Renamed to ...
9100 (set_record_full_cmdlist): ... this. Updated all users.
9101 (show_record_cmdlist): Renamed to ...
9102 (show_record_full_cmdlist): ... this. Updated all users.
9103 (record_cmdlist): Renamed to ...
9104 (record_full_cmdlist): ... this. Updated all users.
9105 (record_beneath_to_resume_ops): Renamed to ...
9106 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9107 (record_beneath_to_resume): Renamed to ...
9108 (record_full_beneath_to_resume): ... this. Updated all users.
9109 (record_beneath_to_wait_ops): Renamed to ...
9110 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9111 (record_beneath_to_wait): Renamed to ...
9112 (record_full_beneath_to_wait): ... this. Updated all users.
9113 (record_beneath_to_store_registers_ops): Renamed to ...
9114 (record_full_beneath_to_store_registers_ops): ... this.
9115 Updated all users.
9116 (record_beneath_to_store_registers): Renamed to ...
9117 (record_full_beneath_to_store_registers): ... this.
9118 Updated all users.
9119 (record_beneath_to_xfer_partial_ops): Renamed to ...
9120 (record_full_beneath_to_xfer_partial_ops): ... this.
9121 Updated all users.
9122 (record_beneath_to_xfer_partial): Renamed to ...
9123 (record_full_beneath_to_xfer_partial): ... this.
9124 Updated all users.
9125 (record_beneath_to_insert_breakpoint): Renamed to ...
9126 (record_full_beneath_to_insert_breakpoint): ... this.
9127 Updated all users.
9128 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9129 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9130 Updated all users.
9131 (record_beneath_to_stopped_data_address): Renamed to ...
9132 (record_full_beneath_to_stopped_data_address): ... this.
9133 Updated all users.
9134 (record_beneath_to_async): Renamed to ...
9135 (record_full_beneath_to_async): ... this. Updated all users.
9136 (record_goto_insn): Renamed to ...
9137 (record_full_goto_insn): ... this. Updated all users.
9138 (record_save): Renamed to ...
9139 (record_full_save): ... this. Updated all users.
9140 (record_reg_alloc): Renamed to ...
9141 (record_full_reg_alloc): ... this. Updated all users.
9142 (record_reg_release): Renamed to ...
9143 (record_full_reg_release): ... this. Updated all users.
9144 (record_mem_alloc): Renamed to ...
9145 (record_full_mem_alloc): ... this. Updated all users.
9146 (record_mem_release): Renamed to ...
9147 (record_full_mem_release): ... this. Updated all users.
9148 (record_end_alloc): Renamed to ...
9149 (record_full_end_alloc): ... this. Updated all users.
9150 (record_end_release): Renamed to ...
9151 (record_full_end_release): ... this. Updated all users.
9152 (record_entry_release): Renamed to ...
9153 (record_full_entry_release): ... this. Updated all users.
9154 (record_list_release): Renamed to ...
9155 (record_full_list_release): ... this. Updated all users.
9156 (record_list_release_following): Renamed to ...
9157 (record_full_list_release_following): ... this.
9158 Updated all users.
9159 (record_list_release_first): Renamed to ...
9160 (record_full_list_release_first): ... this. Updated all users.
9161 (record_arch_list_add): Renamed to ...
9162 (record_full_arch_list_add): ... this. Updated all users.
9163 (record_get_loc): Renamed to ...
9164 (record_full_get_loc): ... this. Updated all users.
9165 (record_check_insn_num): Renamed to ...
9166 (record_full_check_insn_num): ... this. Updated all users.
9167 (record_arch_list_cleanups): Renamed to ...
9168 (record_full_arch_list_cleanups): ... this. Updated all users.
9169 (record_message): Renamed to ...
9170 (record_full_message): ... this. Updated all users.
9171 (record_message_wrapper): Renamed to ...
9172 (record_full_message_wrapper): ... this. Updated all users.
9173 (record_message_wrapper_safe): Renamed to ...
9174 (record_full_message_wrapper_safe): ... this. Updated all users.
9175 (record_gdb_operation_disable): Renamed to ...
9176 (record_full_gdb_operation_disable): ... this. Updated all users.
9177 (record_hw_watchpoint): Renamed to ...
9178 (record_full_hw_watchpoint): ... this. Updated all users.
9179 (record_exec_insn): Renamed to ...
9180 (record_full_exec_insn): ... this. Updated all users.
9181 (record_restore): Renamed to ...
9182 (record_full_restore): ... this. Updated all users.
9183 (record_async_inferior_event_token): Renamed to ...
9184 (record_full_async_inferior_event_token): ... this.
9185 Updated all users.
9186 (record_async_inferior_event_handler): Renamed to ...
9187 (record_full_async_inferior_event_handler): ... this.
9188 Updated all users.
9189 (record_core_open_1): Renamed to ...
9190 (record_full_core_open_1): ... this. Updated all users.
9191 (record_open_1): Renamed to ...
9192 (record_full_open_1): ... this. Updated all users.
9193 (record_open): Renamed to ...
9194 (record_full_open): ... this. Updated all users.
9195 (record_close): Renamed to ...
9196 (record_full_close): ... this. Updated all users.
9197 (record_resume_step): Renamed to ...
9198 (record_full_resume_step): ... this. Updated all users.
9199 (record_resumed): Renamed to ...
9200 (record_full_resumed): ... this. Updated all users.
9201 (record_execution_dir): Renamed to ...
9202 (record_full_execution_dir): ... this. Updated all users.
9203 (record_resume): Renamed to ...
9204 (record_full_resume): ... this. Updated all users.
9205 (record_get_sig): Renamed to ...
9206 (record_full_get_sig): ... this. Updated all users.
9207 (record_sig_handler): Renamed to ...
9208 (record_full_sig_handler): ... this. Updated all users.
9209 (record_wait_cleanups): Renamed to ...
9210 (record_full_wait_cleanups): ... this. Updated all users.
9211 (record_wait_1): Renamed to ...
9212 (record_full_wait_1): ... this. Updated all users.
9213 (record_wait): Renamed to ...
9214 (record_full_wait): ... this. Updated all users.
9215 (record_stopped_by_watchpoint): Renamed to ...
9216 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9217 (record_disconnect): Renamed to ...
9218 (record_full_disconnect): ... this. Updated all users.
9219 (record_detach): Renamed to ...
9220 (record_full_detach): ... this. Updated all users.
9221 (record_mourn_inferior): Renamed to ...
9222 (record_full_mourn_inferior): ... this. Updated all users.
9223 (record_kill): Renamed to ...
9224 (record_full_kill): ... this. Updated all users.
9225 (record_stopped_data_address): Renamed to ...
9226 (record_full_stopped_data_address): ... this. Updated all users.
9227 (record_registers_change): Renamed to ...
9228 (record_full_registers_change): ... this. Updated all users.
9229 (record_store_registers): Renamed to ...
9230 (record_full_store_registers): ... this. Updated all users.
9231 (record_xfer_partial): Renamed to ...
9232 (record_full_xfer_partial): ... this. Updated all users.
9233 (record_breakpoint): Renamed to ...
9234 (record_full_breakpoint): ... this. Updated all users.
9235 (record_breakpoint_p): Renamed to ...
9236 (record_full_breakpoint_p): ... this. Updated all users.
9237 (record_breakpoints): Renamed to ...
9238 (record_full_breakpoints): ... this. Updated all users.
9239 (record_sync_record_breakpoints): Renamed to ...
9240 (record_full_sync_record_breakpoints): ... this.
9241 Updated all users.
9242 (record_init_record_breakpoints): Renamed to ...
9243 (record_full_init_record_breakpoints): ... this.
9244 Updated all users.
9245 (record_insert_breakpoint): Renamed to ...
9246 (record_full_insert_breakpoint): ... this. Updated all users.
9247 (record_remove_breakpoint): Renamed to ...
9248 (record_full_remove_breakpoint): ... this. Updated all users.
9249 (record_can_execute_reverse): Renamed to ...
9250 (record_full_can_execute_reverse): ... this. Updated all users.
9251 (record_get_bookmark): Renamed to ...
9252 (record_full_get_bookmark): ... this. Updated all users.
9253 (record_goto_bookmark): Renamed to ...
9254 (record_full_goto_bookmark): ... this. Updated all users.
9255 (record_async): Renamed to ...
9256 (record_full_async): ... this. Updated all users.
9257 (record_can_async_p): Renamed to ...
9258 (record_full_can_async_p): ... this. Updated all users.
9259 (record_is_async_p): Renamed to ...
9260 (record_full_is_async_p): ... this. Updated all users.
9261 (record_execution_direction): Renamed to ...
9262 (record_full_execution_direction): ... this. Updated all users.
9263 (record_info): Renamed to ...
9264 (record_full_info): ... this. Updated all users.
9265 (record_delete): Renamed to ...
9266 (record_full_delete): ... this. Updated all users.
9267 (record_is_replaying): Renamed to ...
9268 (record_full_is_replaying): ... this. Updated all users.
9269 (record_goto_entry): Renamed to ...
9270 (record_full_goto_entry): ... this. Updated all users.
9271 (record_goto_begin): Renamed to ...
9272 (record_full_goto_begin): ... this. Updated all users.
9273 (record_goto_end): Renamed to ...
9274 (record_full_goto_end): ... this. Updated all users.
9275 (record_goto): Renamed to ...
9276 (record_full_goto): ... this. Updated all users.
9277 (init_record_ops): Renamed to ...
9278 (init_record_full_ops): ... this. Updated all users.
9279 (record_core_resume): Renamed to ...
9280 (record_full_core_resume): ... this. Updated all users.
9281 (record_core_kill): Renamed to ...
9282 (record_full_core_kill): ... this. Updated all users.
9283 (record_core_fetch_registers): Renamed to ...
9284 (record_full_core_fetch_registers): ... this. Updated all users.
9285 (record_core_prepare_to_store): Renamed to ...
9286 (record_full_core_prepare_to_store): ... this. Updated all users.
9287 (record_core_store_registers): Renamed to ...
9288 (record_full_core_store_registers): ... this. Updated all users.
9289 (record_core_xfer_partial): Renamed to ...
9290 (record_full_core_xfer_partial): ... this. Updated all users.
9291 (record_core_insert_breakpoint): Renamed to ...
9292 (record_full_core_insert_breakpoint): ... this. Updated all users.
9293 (record_core_remove_breakpoint): Renamed to ...
9294 (record_full_core_remove_breakpoint): ... this. Updated all users.
9295 (record_core_has_execution): Renamed to ...
9296 (record_full_core_has_execution): ... this. Updated all users.
9297 (init_record_core_ops): Renamed to ...
9298 (init_record_full_core_ops): ... this. Updated all users.
9299 (cmd_record_restore): Renamed to ...
9300 (cmd_record_full_restore): ... this. Updated all users.
9301 (record_save_cleanups): Renamed to ...
9302 (record_full_save_cleanups): ... this. Updated all users.
9303 (cmd_record_start): Renamed to ...
9304 (cmd_record_full_start): ... this. Updated all users.
9305 (set_record_insn_max_num): Renamed to ...
9306 (set_record_full_insn_max_num): ... this. Updated all users.
9307 (set_record_command): Renamed to ...
9308 (set_record_full_command): ... this. Updated all users.
9309 (show_record_command): Renamed to ...
9310 (show_record_full_command): ... this. Updated all users.
9311 (_initialize_record): Renamed to ...
9312 (_initialize_record_full): ... this. Updated all users.
9313
9314 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9315
9316 * record.h: Split into this and ...
9317 * record-full.h: ... this.
9318 * record.c: Split into this and ...
9319 * record-full.c: ... this.
9320 * target.h (target_ops): Add new fields to_info_record,
9321 to_save_record, to_delete_record, to_record_is_replaying,
9322 to_goto_record_begin, to_goto_record_end, to_goto_record.
9323 (target_info_record): New.
9324 (target_save_record): New.
9325 (target_supports_delete_record): New.
9326 (target_delete_record): New.
9327 (target_record_is_replaying): New.
9328 (target_goto_record_begin): New.
9329 (target_goto_record_end): New.
9330 (target_goto_record): New.
9331 * target.c (target_info_record): New.
9332 (target_save_record): New.
9333 (target_supports_delete_record): New.
9334 (target_delete_record): New.
9335 (target_record_is_replaying): New.
9336 (target_goto_record_begin): New.
9337 (target_goto_record_end): New.
9338 (target_goto_record): New.
9339 * record.h: Declare struct cmd_list_element.
9340 (record_cmdlist): New declaration.
9341 (set_record_cmdlist): New declaration.
9342 (show_record_cmdlist): New declaration.
9343 (info_record_cmdlist): New declaration.
9344 (cmd_record_goto): New declaration.
9345 * record.c: Remove unnecessary includes.
9346 Include inferior.h.
9347 (cmd_record_goto): Remove declaration.
9348 (record_cmdlist): Now extern. Initialize.
9349 (set_record_cmdlist): Now extern. Initialize.
9350 (show_record_cmdlist): Now extern. Initialize.
9351 (info_record_cmdlist): Now extern. Initialize.
9352 (find_record_target): New.
9353 (require_record_target): New.
9354 (cmd_record_start): Update.
9355 (cmd_record_delete): Remove target-specific code.
9356 Call target_delete_record.
9357 (cmd_record_stop): Unpush any record target.
9358 (set_record_insn_max_num): Move to record-full.c
9359 (set_record_command): Add comment.
9360 (show_record_command): Add comment.
9361 (info_record_command): Update comment.
9362 Remove target-specific code.
9363 Call the record target's to_info_record.
9364 (cmd_record_start): New.
9365 (cmd_record_goto): Now extern.
9366 Remove target-specific code.
9367 Call target_goto_begin, target_goto_end, or target_goto.
9368 (_initialize_record): Move record target ops initialization to
9369 record-full.c.
9370 Change "record" command help text.
9371 Move "record restore", "record set", and "record show" commands to
9372 record-full.c.
9373 * Makefile.in (SFILES): Add record-full.c.
9374 (HFILES_NO_SRCDIR): Add record-full.h.
9375 (COMMON_OBS): Add record-full.o.
9376 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9377 * arm-tdep.c: Include record-full.h.
9378 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9379 * i386-tdep.c: Include record-full.h.
9380 * infrun.c: Include record-full.h.
9381 * linux-record.c: Include record-full.h.
9382 * moxie-tdep.c: Include record-full.h.
9383 * record-full.c: Include record-full.h.
9384 Change module comment.
9385 (set_record_full_cmdlist): New.
9386 (show_record_full_cmdlist): New.
9387 (record_full_cmdlist): New.
9388 (record_goto_insn): New declaration.
9389 (record_save): New declaration.
9390 (record_check_insn_num): Change query string.
9391 (record_info): New.
9392 (record_delete): New.
9393 (record_is_replaying): New.
9394 (record_goto_entry): New.
9395 (record_goto_begin): New.
9396 (record_goto_end): New.
9397 (record_goto): New.
9398 (init_record_ops): Update.
9399 (init_record_core_ops): Update.
9400 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9401 (cmd_record_start): New.
9402 (set_record_insn_max_num): Moved from record.c
9403 (set_record_full_command): New.
9404 (show_record_full_command): New.
9405 (_initialize_record_full): New.
9406
9407 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9408
9409 * target.h (add_deprecated_target_alias): New.
9410 * target.c (add_deprecated_target_alias): New.
9411
9412 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9413
9414 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9415 and signal.h.
9416 (linux_supports_btrace): Add kernel and
9417 cpuid check.
9418 (kernel_supports_btrace): New function.
9419 (cpu_supports_btrace): New function.
9420 (intel_supports_btrace): New function.
9421
9422 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9423
9424 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9425 * remote.c: Include btrace.h.
9426 (struct btrace_target_info): New struct.
9427 (remote_supports_btrace): New function.
9428 (send_Qbtrace): New function.
9429 (remote_enable_btrace): New function.
9430 (remote_disable_btrace): New function.
9431 (remote_teardown_btrace): New function.
9432 (remote_read_btrace): New function.
9433 (init_remote_ops): Add btrace ops.
9434 (enum <unnamed>): Add btrace packets.
9435 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9436 (_initialize_remote): Add packet configuration for branch tracing.
9437
9438 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9439
9440 * features/btrace.dtd: New file.
9441 * Makefile.in (XMLFILES): Add btrace.dtd.
9442 * btrace.h (parse_xml_btrace): New declaration.
9443 * btrace.c: Include xml-support.h.
9444 (parse_xml_btrace): New function.
9445 (parse_xml_btrace_block): New function.
9446 (block_attributes): New struct.
9447 (btrace_attributes): New struct.
9448 (btrace_children): New struct.
9449 (btrace_elements): New struct.
9450
9451 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9452
9453 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9454 (amd64_linux_enable_btrace): New.
9455 (amd64_linux_disable_btrace): New.
9456 (amd64_linux_teardown_btrace): New.
9457 (_initialize_amd64_linux_nat): Initialize btrace ops.
9458 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9459 (i386_linux_enable_btrace): New.
9460 (i386_linux_disable_btrace): New.
9461 (i386_linux_teardown_btrace): New.
9462 (_initialize_i386_linux_nat): Initialize btrace ops.
9463 * config/i386/linux.mh: Add linux-btrace.o.
9464 * config/i386/linux64.mh: Add linux-btrace.o.
9465
9466 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9467
9468 * common/linux_btrace.h: New file.
9469 * common/linux_btrace.c: New file.
9470 * Makefile.in (SFILES): Add btrace.c.
9471 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9472 (COMMON_OBS): Add btrace.o.
9473 (linux-btrace.o): New rule.
9474
9475 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9476
9477 * target.h: Include btrace.h.
9478 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9479 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9480 * target.c (target_supports_btrace): New function.
9481 (target_enable_btrace): New function.
9482 (target_disable_btrace): New function.
9483 (target_teardown_btrace): New function.
9484 (target_read_btrace): New function.
9485 * btrace.h: New file.
9486 * btrace.c: New file.
9487 * Makefile.in: Add btrace.c.
9488 * gdbthread.h: Include btrace.h.
9489 (struct thread_info): Add btrace field.
9490 * thread.c: Include btrace.h.
9491 (clear_thread_inferior_resources): Call target_teardown_btrace.
9492 * common/btrace-common.h: New file.
9493
9494 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9495
9496 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9497 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9498 kill_status to outer block.
9499
9500 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9501
9502 Fix entry-values if the callee called a noreturn function.
9503 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9504 get_frame_address_in_block. Add new comment.
9505
9506 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9507
9508 Fix entry-values in C++ across CUs.
9509 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9510 lookup_minimal_symbol. Add a comment.
9511 * dwarf2read.c
9512 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9513 DW_AT_linkage_name.
9514
9515 2013-03-08 Yao Qi <yao@codesourcery.com>
9516
9517 * tracepoint.c (_initialize_tracepoint): Indent the code.
9518
9519 2013-03-08 Pedro Alves <palves@redhat.com>
9520
9521 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9522 (parse_find_args, find_command): Change type of pattern buffer
9523 locals to 'gdb_byte *'.
9524
9525 2013-03-08 Stan Shebs <stan@codesourcery.com>
9526 Hafiz Abid Qadeer <abidh@codesourcery.com>
9527
9528 * NEWS: Mention set and show trace-buffer-size commands.
9529 Mention new packet.
9530 * target.h (struct target_ops): New method
9531 to_set_trace_buffer_size.
9532 (target_set_trace_buffer_size): New macro.
9533 * target.c (update_current_target): Set up new method.
9534 * tracepoint.c (trace_buffer_size): New global.
9535 (start_tracing): Send it to the target.
9536 (set_trace_buffer_size): New function.
9537 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9538 * remote.c (remote_set_trace_buffer_size): New function.
9539 (_initialize_remote): Use it.
9540 (QTBuffer:size) New remote command.
9541 (PACKET_QTBuffer_size): New enum.
9542 (remote_protocol_features): Add an entry for
9543 PACKET_QTBuffer_size.
9544
9545 2013-03-08 Tom Tromey <tromey@redhat.com>
9546
9547 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9548 variable.
9549
9550 2013-03-07 Pedro Alves <palves@redhat.com>
9551
9552 * target.c (target_read_stralloc, target_fileio_read_alloc):
9553 *Cast pointer to 'gdb_byte *' in target call.
9554
9555 2013-03-07 Pedro Alves <palves@redhat.com>
9556
9557 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9558 call.
9559
9560 2013-03-07 Keith Seitz <keiths@redhat.com>
9561
9562 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9563 (trace_pass_command): Likewise.
9564 * cli/cli-cmds.c: Include cli/cli-utils.h.
9565 (source_command): Use skip-spaces.
9566 (disassemble_command): Likewise.
9567 * findcmd.c: Include cli/cli-utils.h.
9568 (parse_find_args): Use skip_spaces.
9569 * go32-nat.c: Include cli/cli-utils.h.
9570 (go32_sldt): Use skip_spaces.
9571 (go32_sgdt): Likewise.
9572 (go32_sidt): Likewise.
9573 (go32_pde): Likewise.
9574 (go32_pte): Likewise.
9575 (go32_pte_for_address): Likewise.
9576 * infcmd.c: Include cli/cli-utils.h.
9577 (registers_info): Use skip_spaces.
9578 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9579 (linux_info_proc): Likewise.
9580 * linux-thread-db.c: Include cli/cli-utils.h.
9581 (info_auto_load_libthread_db): Use skip_spaces_const.
9582 * m32r-rom.c: Include cli/cli-utils.h.
9583 (m32r_upload_command): Use skip_spaces.
9584 * maint.c: Include cli/cli-utils.h.
9585 (maintenance_translate_address): Use skip_spaces.
9586 * mi/mi-parse.c: Include cli/cli-utils.h.
9587 (mi_parse_argv): Use skip_spaces.
9588 (mi_parse): Likewise.
9589 * minsyms.c: Include cli/cli-utils.h.
9590 (msymbol_hash_iw): Use skip_spaces_const.
9591 * objc-lang.c: Include cli/cli-utils.h.
9592 (parse_selector): Use skip_spaces.
9593 (parse_method): Likewise.
9594 * python/python.c: Include cli/cli-utils.h.
9595 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9596 (python_command)[HAVE_PYTHON]: Likewise.
9597 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9598 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9599 (m32r_load): Use skip_spaces.
9600 * serial.c: Include cli/cli-utils.h.
9601 (serial_open): Use skip_spaces_const.
9602 * stack.c: Include cli/cli-utils.h.
9603 (parse_frame_specification_1): Use skip_spaces_const.
9604 * symfile.c: Include cli/cli-utils.h.
9605 (set_ext_lang_command): Use skip_spaces.
9606 * symtab.c: Include cli/cli-utils.h.
9607 (rbreak_command): Use skip_spaces.
9608 * thread.c (thread_name_command): Use skip_spaces.
9609 * tracepoint.c (validate_actionline): Use skip_spaces.
9610 (encode_actions_1): Likewise.
9611 (trace_find_range_command): Likewise.
9612 (trace_find_outside_command): Likewise.
9613 (trace_dump_actions): Likewise.
9614
9615 2013-03-07 Pedro Alves <palves@redhat.com>
9616
9617 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9618 * expprint.c (print_subexp_standard): Likewise.
9619 * utils.c (host_char_to_target): Likewise.
9620 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9621 * varobj.c (value_get_print_value): Change type of local to char*.
9622 Cast it gdb_byte * in call to language printer.
9623
9624 2013-03-07 Pedro Alves <palves@redhat.com>
9625
9626 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9627 gdb_byte *'.
9628 (make_wchar_iterator): Remove cast to char*.
9629 (wchar_iterate): Change type of local.
9630
9631 2013-03-07 Pedro Alves <palves@redhat.com>
9632
9633 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9634 for 'regcache->register_status'.
9635
9636 2013-03-07 Pedro Alves <palves@redhat.com>
9637
9638 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9639 int.
9640
9641 2013-03-07 Pedro Alves <palves@redhat.com>
9642
9643 * stap-probe.c (handle_stap_probe): Add cast to char*.
9644
9645 2013-03-07 Pedro Alves <palves@redhat.com>
9646
9647 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9648 RECORD_MSGRCV>: Pass a signed variable to
9649 regcache_raw_read_signed, instead of an unsigned one.
9650
9651 2013-03-07 Pedro Alves <palves@redhat.com>
9652
9653 * remote-notif.c (notif_debug): Change type to int.
9654 * remote-notif.h (notif_debug): Likewise.
9655
9656 2013-03-07 Pedro Alves <palves@redhat.com>
9657
9658 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9659
9660 2013-03-07 Pedro Alves <palves@redhat.com>
9661
9662 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9663 * remote.h (hex2bin, bin2hex): ... here.
9664 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9665
9666 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9667
9668 * utils.c (initialize_utils): Improve doc strings of "set/show
9669 width", "set/show height", and "set/show pagination".
9670
9671 2013-03-06 Keith Seitz <keiths@redhat.com>
9672
9673 * ax-gdb.c (gen_printf): Make FORMAT const.
9674 * ax-gdb.h (gen_printf): Likewise.
9675 * ax-general.c (ax_string): Make STR const.
9676 * ax.h (ax_string): Likewise.
9677
9678 2013-03-06 Doug Evans <dje@google.com>
9679
9680 * elfread.c (elf_symfile_read): Move debugging printf to more
9681 logical location.
9682
9683 2013-03-06 Pedro Alves <palves@redhat.com>
9684
9685 * python/py-utils.c (target_string_to_unicode): Delete function.
9686 * python/python-internal.h (target_string_to_unicode): Delete
9687 declaration.
9688
9689 2013-03-06 Pierre Muller <muller@sourceware.org>
9690
9691 * linespec.c (get_current_search_block): ARI fix, use (void)
9692 for empty parameter list.
9693
9694 2013-03-05 Doug Evans <dje@google.com>
9695
9696 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9697 of old ada_lookup_symbol_list. In !full_search case, don't
9698 search superblocks.
9699 (ada_lookup_symbol_list): Delete arg full_search, all callers
9700 updated. Call ada_lookup_symbol_list_worker.
9701 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9702 * ada-lang.h (ada_lookup_symbol_list): Update.
9703 * language.h (language_defn): Update comment for
9704 la_iterate_over_symbols.
9705 * linespec.c (iterate_over_file_blocks): New function.
9706 (iterate_over_all_matching_symtabs): Call it.
9707 (lookup_prefix_sym): Ditto.
9708 (get_current_search_block): New function.
9709 (get_search_block): Delete.
9710 (find_label_symbols): Call get_current_search_block.
9711 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9712 * symtab.c (iterate_over_symbols): Don't search superblocks.
9713
9714 2013-03-05 Yao Qi <yao@codesourcery.com>
9715
9716 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9717 parameter VAR's type from "unsigned int" to "int".
9718 * command.h (var_zuinteger_unlimited): Update its comments.
9719 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9720
9721 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9722
9723 * NEWS: Mention new target x86_64-*-cygwin*.
9724
9725 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9726
9727 * configure.host: Add x86_64-*-cygwin* as host.
9728 * configure.tgt: Add x86_64-*-cygwin* as target.
9729 * config/i386/cygwin64.mh: New file.
9730
9731 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9732
9733 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9734
9735 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9736
9737 * linespec.c (struct linespec_canonical_name): New.
9738 (struct linespec_state): Change canonical_names type to it.
9739 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9740 xrealloc element size. Initialize the different CANONICAL fields.
9741 (canonical_to_fullform): New.
9742 (filter_results): Use it. Add variables canonical, fullform and
9743 cleanup.
9744 (struct decode_line_2_item, decode_line_2_compare_items): New.
9745 (decode_line_2): Remove variables iter and item_names, add variables
9746 items and items_count. Modify the code for these new variables.
9747
9748 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9749
9750 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9751 calling do_cleanup.
9752
9753 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9754
9755 * tracepoint.c (build_traceframe_info): Add code for byte order.
9756
9757 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9758
9759 * v850-tdep.c: (v850e2_register_name): Revise system register
9760 names to match current V850E2M architecture specifications.
9761 Update register number enum comments too.
9762
9763 2013-03-01 Jiong Wang <jiwang@tilera.com>
9764 Pedro Alves <palves@redhat.com>
9765
9766 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9767 to END_ADDR.
9768 (tilegx_skip_prologue): Limit prologue analysis to section end.
9769
9770 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9771
9772 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9773 use it.
9774
9775 2013-03-01 Pedro Alves <palves@redhat.com>
9776
9777 Use gdb_byte for bytes from the program being debugged.
9778
9779 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9780 Change type of local 'buf' to gdb_byte.
9781 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9782 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9783 * cris-tdep.c (cris_sigcontext_addr)
9784 (cris_sigtramp_frame_unwind_cache): Likewise.
9785 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9786 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9787 Likewise.
9788 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9789 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9790 (hppa32_hpux_search_dummy_call_sequence)
9791 (hppa_hpux_supply_save_state): Likewise.
9792 * hppa-linux-tdep.c (insns_match_pattern)
9793 (hppa_linux_find_global_pointer): Likewise.
9794 * hppa-tdep.c (hppa_in_function_epilogue_p)
9795 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9796 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9797 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9798 (i386fbsd_collect_uthread): Likewise.
9799 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9800 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9801 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9802 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9803 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9804 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9805 (ia64_libunwind_frame_prev_register)
9806 (ia64_libunwind_sigtramp_frame_this_id)
9807 (ia64_find_global_pointer_from_dynamic_section)
9808 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9809 (ia64_unwind_pc): Likewise.
9810 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9811 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9812 (m68hc11_extract_return_value): Likewise.
9813 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9814 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9815 (mep_get_insn, mep_push_dummy_call): Likewise.
9816 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9817 (mips_linux_in_dynsym_stub): Likewise.
9818 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9819 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9820 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9821 to gdb_byte.
9822 * remote-mips.c (mips_set_register): Likewise.
9823 * remote-sim.c (gdbsim_fetch_register): Likewise.
9824 * score-tdep.c (score7_fetch_inst): Change type of parameter
9825 'memblock' and local 'buf' to gdb_byte.
9826 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9827 Change type of local 'buf' to gdb_byte. Adjust.
9828 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9829 to gdb_byte**.
9830 (score7_analyze_prologue): Change type of 'memblock' and
9831 'memblock_ptr' locals to gdb_byte*.
9832 * sh64-tdep.c (sh64_extract_return_value)
9833 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9834 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9835 * solib-pa64.c (pa64_solib_create_inferior_hook)
9836 (pa64_open_symbol_file_object): Remove local 'buf'.
9837 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9838 (som_open_symbol_file_object): Likewise.
9839 * solib-spu.c (spu_current_sos): Likewise.
9840 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9841 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9842 (spu_store_registers): Likewise.
9843 * target.c (debug_print_register): Likewise.
9844 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9845 * xstormy16-tdep.c (xstormy16_store_return_value)
9846 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9847 (xstormy16_find_jmp_table_entry): Likewise.
9848
9849 2013-03-01 Jiong Wang <jiwang@tilera.com>
9850
9851 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9852 (tilegx_gdbarch_init): Install it.
9853
9854 2013-02-28 Tom Tromey <tromey@redhat.com>
9855
9856 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9857 PyLong_Check.
9858
9859 2013-02-28 Doug Evans <dje@google.com>
9860
9861 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9862 * python/python.c (gdbpy_find_pc_line): Ditto.
9863
9864 2013-02-28 Tom Tromey <tromey@redhat.com>
9865
9866 * contrib/excheck.py: New file.
9867 * contrib/exsummary.py: New file.
9868 * contrib/gcc-with-excheck: New file.
9869
9870 2013-02-28 Tom Tromey <tromey@redhat.com>
9871
9872 * python/python.c (gdbpy_print_stack): Call begin_line and
9873 fprintf_filtered inside TRY_CATCH.
9874
9875 2013-02-28 Tom Tromey <tromey@redhat.com>
9876
9877 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9878 inside TRY_CATCH.
9879
9880 2013-02-28 Tom Tromey <tromey@redhat.com>
9881
9882 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9883 frame_object_to_frame_info inside TRY_CATCH.
9884
9885 2013-02-28 Tom Tromey <tromey@redhat.com>
9886
9887 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9888 TRY_CATCH.
9889
9890 2013-02-28 Tom Tromey <tromey@redhat.com>
9891
9892 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9893
9894 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9895
9896 * windows-nat.c: Throughout, fix format strings and casts of
9897 printf-like functions to avoid type related warnings on all
9898 platforms.
9899 (handle_output_debug_string): Fetch context information address
9900 from debug string using string_to_core_addr.
9901
9902 2013-02-27 Jiong Wang <jiwang@tilera.com>
9903
9904 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9905 * regformats/reg-tilegx32.dat: New.
9906
9907 2013-02-27 Jiong Wang <jiwang@tilera.com>
9908
9909 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9910
9911 2013-02-27 Jiong Wang <jiwang@tilera.com>
9912
9913 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9914
9915 2013-02-27 Yao Qi <yao@codesourcery.com>
9916 Pedro Alves <palves@redhat.com>
9917
9918 * tracepoint.c (tfile_trace_find): For tfind
9919 pc/tp/range/outside, look for the next trace frame instead of
9920 always starting from frame 0.
9921
9922 2013-02-26 Anthony Green <green@moxielogic.com>
9923
9924 * configure.tgt: Add support for moxie-*-rtems* target.
9925
9926 2013-02-25 Pedro Alves <palves@redhat.com>
9927
9928 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9929 warning text.
9930
9931 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9932
9933 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9934 if $fp is used as the virtual frame pointer.
9935
9936 2013-02-23 Alan Modra <amodra@gmail.com>
9937
9938 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9939 symbol size.
9940 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9941 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9942 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9943 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9944
9945 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9946
9947 Code cleanup.
9948 * elfread.c (build_id_bfd_get): Make the return type const.
9949 (build_id_verify): Make the check parameter const.
9950 (build_id_to_debug_filename): Make the build_id parameter and variable
9951 data const.
9952 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9953
9954 2013-02-21 Alan Modra <amodra@gmail.com>
9955
9956 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9957
9958 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9959
9960 Add a new method 'disassemble' to gdb.Architecture class.
9961 * python/py-arch.c (archpy_disassmble): Implementation of the
9962 new method gdb.Architecture.disassemble.
9963 (arch_object_methods): Add entry for the new method.
9964
9965 2013-02-20 Jiong Wang <jiwang@tilera.com>
9966
9967 * MAINTAINERS (Write After Approval): Add myself to the list.
9968
9969 2013-02-19 Pedro Alves <palves@redhat.com>
9970
9971 Garbage collect 'struct monitor_ops'::load_routine.
9972
9973 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9974 * monitor.c (monitor_load): No longer call
9975 current_monitor->load_routine.
9976 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9977 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9978 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9979
9980 2013-02-19 Pedro Alves <palves@redhat.com>
9981
9982 PR gdb/15161
9983
9984 Harmonize with generic_load.
9985
9986 * monitor.c: Include "readline/readline.h".
9987 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9988 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9989 long/strtol for the 'load_offset' local. Error out if no argument
9990 is given or if too many arguments are given. Tilde expand the
9991 passed in file name.
9992
9993 2013-02-19 Kai Tietz <ktietz@redhat.com>
9994
9995 PR gdb/15161
9996 * symfile.c (load_section_data): Change type of load_offset
9997 to CORE_ADDR.
9998 (generic_load): User strtoulst instead of strtoul for conversion
9999 of load_offset.
10000
10001 2013-02-19 Jiong Wang <jiwang@tilera.com>
10002
10003 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10004 for return address, "lr" register, saved on stack.
10005 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10006 after we invoke tilegx_analyze_prologue.
10007
10008 2013-02-19 Jiong Wang <jiwang@tilera.com>
10009
10010 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10011
10012 2013-02-19 Jiong Wang <jiwang@tilera.com>
10013
10014 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10015
10016 2013-02-19 Jiong Wang <jiwang@tilera.com>
10017
10018 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10019 (tilegx_write_pc): New function.
10020 (tilegx_cannot_reference_register): Return zero if REGNO
10021 is TILEGX_FAULTNUM_REGNUM.
10022 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10023 (tilegx_register_name): Add handling of "faultnum" register.
10024 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10025 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10026 handling of TILEGX_FAULTNUM_REGNUM.
10027 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10028
10029 2013-02-19 Jiong Wang <jiwang@tilera.com>
10030
10031 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10032 should be aligned to 64bit.
10033
10034 2013-02-19 Kai Tietz <ktietz@redhat.com>
10035
10036 * windows-nat.c (windows_xfer_memory): Fix debug-output
10037 for LLP64.
10038
10039 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10040
10041 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10042 Don't check DSP register number if HAVE_DSP is not set.
10043
10044 2013-02-19 Alan Modra <amodra@gmail.com>
10045
10046 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10047 throughout file instead.
10048 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10049 Don't xmalloc return value.
10050 (build_id_verify): Similarly. Don't xfree.
10051 (build_id_to_debug_filename): Update.
10052 (find_separate_debug_file_by_buildid): Update, don't xfree.
10053
10054 2013-02-18 Tom Tromey <tromey@redhat.com>
10055
10056 PR gdb/15102:
10057 * dwarf2read.c (read_subrange_type): Use result of
10058 'check_typedef'.
10059
10060 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10061
10062 * frame.c: Remove one extra white space after #include
10063 directive.
10064
10065 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10066
10067 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10068
10069 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10070
10071 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10072 and dir commands into an if block.
10073
10074 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10075
10076 * python/py-breakpoint (struct pybp_code): Use int instead of
10077 enum type_code.
10078
10079 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10080 Hafiz Abid Qadeer <abidh@codesourcery.com>
10081
10082 * NEWS: Mention new field "trace-file".
10083 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10084 (tfile_open): Record the trace file's filename in the trace
10085 status.
10086 (tfile_files_info): Mention the name of the trace file.
10087 Check the "filename" field explicitely.
10088 (trace_status_command): Explicitely check "filename" field.
10089 (trace_find_command): Ditto.
10090 (trace_find_pc_command): Ditto.
10091 (trace_find_tracepoint_command): Ditto.
10092 (trace_find_line_command): Ditto.
10093 (trace_find_range_command): Ditto.
10094 (trace_find_outside_command): Ditto.
10095 * tracepoint.h (struct trace_status) <from_file>: Rename it
10096 to "filename" and make it hold the trace file's filename
10097 instead of a boolean.
10098 * remote.c (remote_get_trace_status): Initialize "filename"
10099 field with NULL instead of 0.
10100
10101 2013-02-15 Yao Qi <yao@codesourcery.com>
10102
10103 * remote.c: Fix a typo.
10104
10105 2013-02-14 Pierre Muller <muller@sourceware.org>
10106
10107 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10108
10109 2013-02-14 Pedro Alves <palves@redhat.com>
10110
10111 * utils.c (savestring): Don't #undef it. Move function to
10112 common/common-utils.c.
10113 * common/common-utils.c: Include gdb_string.h.
10114 (savestring): Move here from utils.c.
10115 * common/common-utils.h (savestring): Declare.
10116
10117 2013-02-14 Pedro Alves <palves@redhat.com>
10118
10119 * utils.c (savestring): Rename parameter 'size' to 'len'.
10120
10121 2013-02-14 Pedro Alves <palves@redhat.com>
10122 Yufeng Zhang <yufeng.zhang@arm.com>
10123
10124 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10125 (aarch64_inferior_data, struct aarch64_inferior_data):
10126 Delete.
10127 (struct aarch64_process_info): New.
10128 (aarch64_process_list): New global.
10129 (aarch64_find_process_pid, aarch64_add_process)
10130 (aarch64_process_info_get): New functions.
10131 (aarch64_inferior_data_get): Delete.
10132 (aarch64_process_info_get): New function.
10133 (aarch64_forget_process): New function.
10134 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10135 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10136 aarch64_get_debug_reg_state.
10137 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10138 instead of linux_nat_iterate_watchpoint_lwps.
10139 (aarch64_linux_new_fork): New function.
10140 (aarch64_linux_child_post_startup_inferior): Use
10141 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10142 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10143 (aarch64_linux_remove_hw_breakpoint)
10144 (aarch64_handle_aligned_watchpoint)
10145 (aarch64_handle_unaligned_watchpoint)
10146 (aarch64_linux_insert_watchpoint)
10147 (aarch64_linux_remove_watchpoint)
10148 (aarch64_linux_stopped_data_address): Adjust to pass the current
10149 process id to aarch64_debug_reg_state.
10150 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10151 linux_nat_new_fork hook, and aarch64_forget_process as
10152 linux_nat_forget_process hook; remove the call to
10153 register_inferior_data_with_cleanup.
10154
10155 2013-02-14 Pedro Alves <palves@redhat.com>
10156
10157 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10158 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10159 lval_memory.
10160
10161 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10162 Hafiz Abid Qadeer <abidh@codesourcery.com>
10163
10164 * tracepoint.h (validate_trace_state_variable_name): Declare.
10165 * tracepoint.c (validate_trace_state_variable_name): New.
10166 (trace_variable_command): Parse the trace state variable's name
10167 without using parse_expression. Do several validations.
10168 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10169 trace state variable's name with parse_expression. Validate it.
10170
10171 2013-02-14 Yao Qi <yao@codesourcery.com>
10172
10173 * infcmd.c (breakpoint_proceeded): Remove it.
10174
10175 2013-02-14 Yao Qi <yao@codesourcery.com>
10176
10177 * tracepoint.c (end_actions_pseudocommand): Make it static.
10178 (while_stepping_pseudocommand): Likewise.
10179 * tracepoint.h (end_actions_pseudocommand): Remove the
10180 declaration.
10181 (while_stepping_pseudocommand): Likewise.
10182
10183 2013-02-14 Yao Qi <yao@codesourcery.com>
10184
10185 * cli/cli-decode.c (help_cmd): Remove the declaration of
10186 "cmdlist".
10187 (help_all): Likewise.
10188
10189 2013-02-13 Pedro Alves <palves@redhat.com>
10190
10191 * amd64-linux-nat.c (update_debug_registers_callback):
10192 Update comment.
10193 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10194 iterate_over_lwps.
10195 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10196 i386_debug_reg_state.
10197 (amd64_linux_new_fork): New function.
10198 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10199 linux_nat_new_fork hook, and i386_forget_process as
10200 linux_nat_forget_process hook.
10201 * i386-linux-nat.c (update_debug_registers_callback):
10202 Update comment.
10203 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10204 iterate_over_lwps.
10205 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10206 i386_debug_reg_state.
10207 (i386_linux_new_fork): New function.
10208 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10209 linux_nat_new_fork hook, and i386_forget_process as
10210 linux_nat_forget_process hook.
10211 * i386-nat.c (i386_init_dregs): Delete.
10212 (i386_inferior_data, struct i386_inferior_data):
10213 Delete.
10214 (struct i386_process_info): New.
10215 (i386_process_list): New global.
10216 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10217 New functions.
10218 (i386_inferior_data_get): Delete.
10219 (i386_process_info_get): New function.
10220 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10221 (i386_forget_process): New function.
10222 (i386_cleanup_dregs): Rewrite.
10223 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10224 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10225 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10226 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10227 to i386_debug_reg_state.
10228 (i386_use_watchpoints): Don't register inferior data.
10229 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10230 adjust comment.
10231 (i386_forget_process): Declare.
10232 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10233 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10234 New static globals.
10235 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10236 (add_initial_lwp): New, factored out from ...
10237 (add_lwp): ... this. Don't check the number of lwps before
10238 calling linux_nat_new_thread.
10239 (linux_nat_iterate_watchpoint_lwps): Delete.
10240 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10241 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10242 forks and vforks.
10243 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10244 initial lwp.
10245 (linux_nat_kill, linux_nat_mourn_inferior): Call
10246 linux_nat_forget_process.
10247 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10248 (linux_nat_forget_process): New functions.
10249 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10250 type.
10251 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10252 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10253 types.
10254 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10255 (linux_nat_forget_process): New declarations.
10256
10257 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10258 (amd64fbsd_mourn_inferior): New function.
10259 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10260 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10261
10262 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10263
10264 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10265 Adding _().
10266
10267 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10268
10269 * aarch64-linux-nat.c (debug_reg_change_callback)
10270 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10271 %s and phex().
10272
10273 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10274
10275 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10276 with LONGEST.
10277
10278 2013-02-13 Pedro Alves <palves@redhat.com>
10279 Hafiz Abid Qadeer <abidh@codesourcery.com>
10280
10281 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10282
10283 2013-02-12 Tom Tromey <tromey@redhat.com>
10284
10285 PR symtab/11464:
10286 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10287 NAME return.
10288 (classify_inner_name): Remove 'first_name' argument, add
10289 'context'. Remove unused variable.
10290 (yylex): Explicitly maintain the context type. Exit loop earlier
10291 if NAME result is seen.
10292
10293 2013-02-12 Pedro Alves <palves@redhat.com>
10294
10295 * amd64-darwin-tdep.c: Add (C) after Copyright.
10296 * cli/cli-cmds.h: Ditto.
10297 * cli/cli-decode.c: Ditto.
10298 * cli/cli-decode.h: Ditto.
10299 * cli/cli-dump.c: Ditto.
10300 * cli/cli-dump.h: Ditto.
10301 * cli/cli-interp.c: Ditto.
10302 * cli/cli-logging.c: Ditto.
10303 * cli/cli-script.c: Ditto.
10304 * cli/cli-script.h: Ditto.
10305 * cli/cli-setshow.c: Ditto.
10306 * cli/cli-setshow.h: Ditto.
10307 * cli/cli-utils.c: Ditto.
10308 * cli/cli-utils.h: Ditto.
10309 * config/alpha/nm-osf3.h: Ditto.
10310 * config/djgpp/djconfig.sh: Ditto.
10311 * config/i386/nm-fbsd.h: Ditto.
10312 * config/i386/nm-i386gnu.h: Ditto.
10313 * config/nm-linux.h: Ditto.
10314 * config/nm-nto.h: Ditto.
10315 * config/rs6000/nm-rs6000.h: Ditto.
10316 * config/sparc/nm-sol2.h: Ditto.
10317 * darwin-nat-info.c: Ditto.
10318 * dfp.c: Ditto.
10319 * dfp.h: Ditto.
10320 * gdb-demangle.h: Ditto.
10321 * i386-darwin-nat.c: Ditto.
10322 * i386-darwin-tdep.c: Ditto.
10323 * linux-fork.h: Ditto.
10324 * m32c-tdep.c: Ditto.
10325 * microblaze-linux-tdep.c: Ditto.
10326 * microblaze-rom.c: Ditto.
10327 * microblaze-tdep.c: Ditto.
10328 * microblaze-tdep.h: Ditto.
10329 * mips-linux-tdep.h: Ditto.
10330 * ppc-ravenscar-thread.c: Ditto.
10331 * ppc-ravenscar-thread.h: Ditto.
10332 * prologue-value.c: Ditto.
10333 * prologue-value.h: Ditto.
10334 * ravenscar-thread.c: Ditto.
10335 * ravenscar-thread.h: Ditto.
10336 * sparc-ravenscar-thread.c: Ditto.
10337 * sparc-ravenscar-thread.h: Ditto.
10338 * tilegx-linux-tdep.c: Ditto.
10339 * unwind_stop_reasons.def: Ditto.
10340 * windows-nat.h: Ditto.
10341 * xtensa-linux-tdep.c: Ditto.
10342 * xtensa-xtregs.c: Ditto.
10343 * regformats/regdat.sh: Ditto.
10344 * regformats/regdef.h: Ditto.
10345
10346 2013-02-12 Pedro Alves <palves@redhat.com>
10347
10348 * break-catch-sig.c: Update copyright years.
10349
10350 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10351
10352 Add support for a destructor for ui_out data and use it to
10353 provide a ui_out destructor.
10354 * ui-out.h: Declare the new ui_out destructor.
10355 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10356 * ui-out.c (default_data_destroy): Add a default data destructor
10357 which does nothing.
10358 (default_ui_out_impl): Set the new data_destroy field to
10359 default_data_destroy
10360 (uo_data_destroy): Local function which invokes the data
10361 destructor if present.
10362 (clear_table): Local function which clears the table data of a
10363 ui_out object.
10364 (ui_out_destroy): Public function which frees a ui_out object.
10365 (ui_out_table_end): Use the new clear_table function.
10366 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10367 NULL.
10368 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10369 to NULL.
10370
10371 2013-02-11 Doug Evans <dje@google.com>
10372
10373 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10374 (printf_decfloat): New function. Broken out from ui_printf.
10375 Remove unnecessary code to shift the entire format string down.
10376 (printf_pointer): New function.
10377 (ui_printf): Code to print C strings, wide C strings, decfloats,
10378 and pointers moved to separate functions.
10379
10380 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10381
10382 * valops.c (value_assign): Handling bitfield offset in
10383 `lval_internalvar_component' case.
10384
10385 2013-02-08 Doug Evans <dje@google.com>
10386
10387 * common/format.c (parse_format_string): Fix whitespace.
10388
10389 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10390
10391 * stack.c (return_command): Work around uninitialized variable
10392 warning.
10393
10394 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10395
10396 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10397 number of the registers from 36 to 34.
10398
10399 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10400
10401 * NEWS: Mention new AArch64 native and target support.
10402
10403 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10404
10405 * MAINTAINERS (Write After Approval): Add myself.
10406
10407 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10408 Marcus Shawcroft <marcus.shawcroft@arm.com>
10409 Nigel Stephens <nigel.stephens@arm.com>
10410 Yufeng Zhang <yufeng.zhang@arm.com>
10411
10412 * aarch64-linux-nat.c: New file.
10413 * config/aarch64/linux.mh: New file.
10414 * configure.host: Add AArch64.
10415 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10416
10417 2013-02-07 Doug Evans <dje@google.com>
10418
10419 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10420 disassemble command.
10421
10422 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10423
10424 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10425 set_gdbarch_fetch_tls_load_module_address.
10426
10427 2013-02-06 David S. Miller <davem@davemloft.net>
10428
10429 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10430 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10431 * value.c (struct_return_convention): New function.
10432 (using_struct_return): Implement in terms of struct_return_convention.
10433 * value.h (struct_return_convention): Declare.
10434 * stack.c (return_command): Allow successful overriding of the return
10435 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10436
10437 2013-02-06 Tom Tromey <tromey@redhat.com>
10438
10439 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10440 outside of TRY_CATCH.
10441
10442 2013-02-06 Yao Qi <yao@codesourcery.com>
10443
10444 * mi/mi-interp.c: Include "tracepoint.h".
10445 (mi_tsv_modified): Declare.
10446 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10447 (mi_interpreter_init): Call observer_attach_tsv_modified.
10448 (mi_tsv_modified): New.
10449 (mi_tsv_created, mi_tsv_deleted): Update.
10450 * tracepoint.c (trace_variable_command): Call
10451 observer_notify_tsv_modified if the initial value of tsv is
10452 changed.
10453 (delete_trace_state_variable): Call
10454 observer_notify_tsv_deleted earlier.
10455 (trace_variable_command): Caller update.
10456 (create_tsv_from_upload): Likewise.
10457 * observer.sh: Declare "struct trace_state_variable".
10458
10459 * NEWS: Mention the new MI notification "=tsv-modified".
10460
10461 2013-02-05 Doug Evans <dje@google.com>
10462
10463 * completer.c (location_completer): Fix typo in comment.
10464
10465 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10466
10467 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10468 ADDRESS sorted.
10469
10470 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10471
10472 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10473 Refactor if statement to avoid trailing || operator.
10474
10475 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10476
10477 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10478
10479 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10480
10481 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10482 * configure.host: Add powerpc*-*-freebsd* target.
10483 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10484 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10485 * config/powerpc/fbsd.mh: New file.
10486
10487 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10488 Denys Vlasenko <dvlasenk@redhat.com>
10489 Pedro Alves <palves@redhat.com>
10490
10491 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10492 (struct elf_internal_linux_prpsinfo): Forward declare.
10493 * gdbarch.h, gdbarch.c: Regenerate.
10494 * linux-tdep.c: Include `cli/cli-utils.h'.
10495 (linux_fill_prpsinfo): New function.
10496 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10497 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10498 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10499 depending on gdbarch pointer bitness.
10500 * ppc-linux-tdep.c: Include elf-bfd.h.
10501 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10502 on 32-bit.
10503
10504 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10505 Marcus Shawcroft <marcus.shawcroft@arm.com>
10506 Nigel Stephens <nigel.stephens@arm.com>
10507 Yufeng Zhang <yufeng.zhang@arm.com>
10508
10509 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10510
10511 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10512 Marcus Shawcroft <marcus.shawcroft@arm.com>
10513 Nigel Stephens <nigel.stephens@arm.com>
10514 Yufeng Zhang <yufeng.zhang@arm.com>
10515
10516 * aarch64-newlib-tdep.c: New file.
10517 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10518 aarch64*-*-elf.
10519 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10520 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10521 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10522 * osabi.c (gdb_osabi_names): Add "Newlib".
10523
10524 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10525 Marcus Shawcroft <marcus.shawcroft@arm.com>
10526 Nigel Stephens <nigel.stephens@arm.com>
10527 Yufeng Zhang <yufeng.zhang@arm.com>
10528
10529 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10530 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10531 * aarch64-linux-tdep.c: New file.
10532 * aarch64-linux-tdep.h: New file.
10533 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10534 * configure.tgt: Add aarch64-none-linux-gnu.
10535
10536 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10537 Marcus Shawcroft <marcus.shawcroft@arm.com>
10538 Nigel Stephens <nigel.stephens@arm.com>
10539 Yufeng Zhang <yufeng.zhang@arm.com>
10540
10541 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10542 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10543 (ALLDEPFILES): Add aarch64-tdep.c.
10544 * aarch64-tdep.c: New file.
10545 * aarch64-tdep.h: New file.
10546 * configure.tgt: Add AArch64.
10547 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10548 (aarch64-expedite): New definition.
10549 * features/aarch64-core.xml: New file.
10550 * features/aarch64-fpu.xml: New file.
10551 * features/aarch64-without-fpu.c: New file (generated).
10552 * features/aarch64-without-fpu.xml: New file.
10553 * features/aarch64.c: New file (generated).
10554 * features/aarch64.xml: New file.
10555 * regformats/aarch64-without-fpu.dat: New file (generated).
10556 * regformats/aarch64.dat: New file (generated).
10557
10558 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10559
10560 * contrib/expect-read1.c: New file.
10561 * contrib/expect-read1.sh: New file.
10562
10563 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10564
10565 * dwarf2read.c (file_file_name): New function with code from
10566 file_full_name.
10567 (file_full_name): Move most of the code to file_file_name.
10568 (macro_start_file): Rename variable full_name to file_name and use
10569 file_file_name for it. Add comp_dir parameter to new_macro_table.
10570 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10571 macro_source_file->filename access by macro_source_fullname call.
10572 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10573 caller.
10574 * macrotab.c (struct macro_table): New field comp_dir.
10575 (macro_include): New variables link_fullname and source_fullname.
10576 Replace any macro_source_file->filename access by macro_source_fullname
10577 call.
10578 (macro_lookup_inclusion): Remove the partial filenames checking code.
10579 (check_for_redefinition): New variables source_fullname and
10580 found_key_fullname. Replace any macro_source_file->filename access by
10581 macro_source_fullname call.
10582 (macro_undef): New variables source_fullname and key_fullname. Replace
10583 any macro_source_file->filename access by macro_source_fullname call.
10584 (macro_lookup_definition): New variables retval and source_fullname.
10585 Replace any macro_source_file->filename access by macro_source_fullname
10586 call.
10587 (foreach_macro): New variable key_fullname. Replace any
10588 macro_source_file->filename access by macro_source_fullname call.
10589 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10590 macro_source_file->filename access by macro_source_fullname call.
10591 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10592 (macro_source_fullname): New function.
10593 * macrotab.h (struct macro_source_file): Extent the filename field
10594 comment.
10595 (new_macro_table): New parameter comp_dir, add a comment for it.
10596 (macro_source_fullname): new declaration.
10597
10598 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10599
10600 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10601 this_real_name to outer block. Use it also for
10602 compare_filenames_for_search.
10603 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10604 with dw2_get_real_path for file_matcher, considering also
10605 BASENAMES_MAY_DIFFER.
10606 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10607
10608 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10609
10610 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10611 to the file_matcher parameter. Pass 0 to it.
10612 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10613 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10614 NULL psymtab_to_fullname result.
10615 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10616 an expected filename instead.
10617 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10618 file_matcher parameter. Call also psymtab_to_fullname, after newly
10619 considering BASENAMES_MAY_DIFFER.
10620 * source.c (rewrite_source_path): Remove static.
10621 * source.h (rewrite_source_path): New declaration.
10622 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10623 the expand_symtabs_matching field. Comment it.
10624 * symtab.c (file_matches): New function comment. Add parameter
10625 basenames, implement it.
10626 (search_symbols_file_matches): Add basenames parameter. Update the
10627 file_matches caller.
10628 (search_symbols): Match FILES also against symtab_to_fullname.
10629 Optimize it for BASENAMES_MAY_DIFFER.
10630
10631 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10632
10633 * source.c (print_source_lines_base): Print for TUI also "fullname".
10634 * tui/tui-data.c (init_content_element): Change tui_locator_element
10635 field to full_name.
10636 * tui/tui-data.h (struct tui_locator_element): Likewise.
10637 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10638 tui_update_locator_filename calls to tui_update_locator_fullname.
10639 Replace symtab->filename refererence by symtab_to_fullname call.
10640 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10641 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10642 field to full_name. Replace symtab->filename refererence by
10643 symtab_to_fullname call.
10644 (tui_show_symtab_source): Rename parameter to fullname. Change
10645 tui_locator_element field to full_name.
10646 * tui/tui-stack.c: Include source.h.
10647 (tui_set_locator_filename): Rename the declaration to ...
10648 (tui_set_locator_fullname): ... here. Rename its parameter to
10649 fullname, updates its comment.
10650 (tui_set_locator_info): Rename its parameter to fullname.
10651 (tui_set_locator_filename): Rename the definition to ...
10652 (tui_set_locator_fullname): ... here. Rename its parameter to
10653 fullname, updates its comment. Change tui_locator_element field to
10654 full_name.
10655 (tui_set_locator_info): Rename its parameter to fullname.
10656 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10657 (tui_update_locator_filename): Rename to ...
10658 (tui_update_locator_fullname): ... here. Rename callee to
10659 tui_set_locator_fullname.
10660 (tui_show_frame_info): Replace symtab->filename refererence by
10661 symtab_to_fullname call.
10662 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10663 (tui_update_locator_fullname): ... here.
10664 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10665 tui_update_locator_fullname. Replace symtab->filename refererence by
10666 symtab_to_fullname call.
10667 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10668 Rename the callee to tui_update_locator_fullname.
10669 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10670
10671 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10672
10673 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10674 by symtab_to_filename_for_display calls.
10675 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10676 (clear_command): New variable sal_fullname, initialize it. Replace
10677 compare_filenames_for_search by filename_cmp with sal_fullname.
10678 (say_where, update_static_tracepoint): Replace symtab->filename
10679 refererences by symtab_to_filename_for_display calls.
10680 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10681 Likewise.
10682 * dwarf2read.c: Include source.h.
10683 (fixup_go_packaging): Replace symtab->filename refererences by
10684 symtab_to_filename_for_display calls.
10685 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10686 Replace symtab->filename refererences by symtab_to_filename_for_display
10687 calls.
10688 (create_sals_line_offset, convert_linespec_to_sals): New variable
10689 fullname, initialize it, replace symtab->filename reference by the
10690 variable.
10691 * linux-fork.c: Include source.h.
10692 (info_checkpoints_command): Replace symtab->filename refererences by
10693 symtab_to_filename_for_display calls.
10694 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10695 by symtab_to_filename_for_display calls.
10696 * mdebugread.c: Include source.h.
10697 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10698 symtab_to_filename_for_display calls.
10699 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10700 (mi_cmd_file_list_exec_source_files): Likewise.
10701 * printcmd.c: Include source.h.
10702 (build_address_symbolic): Replace symtab->filename refererences by
10703 symtab_to_filename_for_display calls.
10704 * psymtab.c (partial_map_symtabs_matching_filename)
10705 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10706 with psymtab_to_fullname.
10707 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10708 by symtab_to_filename_for_display calls.
10709 (stpy_get_filename): New variable filename, initialize it, use instead
10710 of symtab->filename refererences.
10711 (salpy_str): Make variable filename const char *. Replace
10712 symtab->filename refererences by symtab_to_filename_for_display calls.
10713 * skip.c: Include source.h and filenames.h.
10714 (skip_file_command): Remove const from the symtab variable. Replace
10715 symtab->filename refererences by symtab_to_fullname call.
10716 (function_name_is_marked_for_skip): New variables searched_for_fullname
10717 and fullname. Use them to search also with symtab's fullname.
10718 * source.c (find_source_lines): Replace symtab->filename refererences
10719 by symtab_to_filename_for_display calls.
10720 (print_source_lines_base): New variable filename, use it instead of
10721 symtab->filename. Replace symtab->filename refererences by
10722 symtab_to_filename_for_display calls.
10723 (line_info, forward_search_command): Replace symtab->filename
10724 refererences by symtab_to_filename_for_display calls.
10725 (reverse_search_command): Replace symtab->filename refererences by
10726 symtab_to_filename_for_display calls. New variable filename for it.
10727 * stack.c (frame_info): Likewise.
10728 * symmisc.c: Include source.h.
10729 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10730 (maintenance_info_symtabs): Replace symtab->filename refererences by
10731 symtab_to_filename_for_display calls.
10732 * symtab.c (iterate_over_some_symtabs): Call
10733 compare_filenames_for_search also with symtab_to_fullname.
10734 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10735 symtab->filename refererences by symtab_to_filename_for_display calls.
10736 (find_line_symtab): Replace symtab->filename refererences by
10737 symtab_to_filename_for_display calls.
10738 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10739 (print_symbol_info): Make the last parameter const char *. New
10740 variable s_filename. Use it in the function.
10741 (symtab_symbol_info): Make the last_filename variable const char *.
10742 Replace symtab->filename refererences by symtab_to_filename_for_display
10743 calls.
10744 (rbreak_command): New variable fullname. Use it. Replace
10745 symtab->filename refererence by symtab_to_filename_for_display call.
10746 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10747 (print_one_static_tracepoint_marker): Replace symtab->filename
10748 refererences by symtab_to_filename_for_display calls.
10749 * tui/tui-source.c (tui_set_source_content): New variables filename and
10750 s_filename. Replace symtab->filename refererences by this variable.
10751 Replace other symtab->filename refererences by
10752 symtab_to_filename_for_display calls.
10753
10754 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10755 Jan Kratochvil <jan.kratochvil@redhat.com>
10756
10757 Add a new variable that controls a way in which filenames are
10758 displayed.
10759 * NEWS (set filename-display): New entry.
10760 * source.c (filename_display_basename, filename_display_relative)
10761 (filename_display_absolute, filename_display_kind_names)
10762 (filename_display_string, show_filename_display_string)
10763 (symtab_to_filename_for_display): New.
10764 (_initialize_source): Added initialization of 'filename-display'
10765 variable.
10766 * source.h (symtab_to_filename_for_display): Added declaration.
10767 * stack.c (print_frame): Added new variable and calling of a new
10768 function and condition with this variable. Changed third argument of
10769 calling of a function.
10770
10771 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10772
10773 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10774 Rename field reference filename to fullname.
10775 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10776 fullname. New comment for it.
10777 * tui/tui-source.c (tui_set_source_content): Rename field reference
10778 filename to fullname. Initialize field by symtab_to_fullname now.
10779 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10780 reference filename to fullname. Use symtab_to_fullname during
10781 comparison.
10782
10783 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10784
10785 Code cleanup.
10786 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10787 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10788 filename to fullname. Rename variable this_name to this_fullname.
10789 Lowercase FILENAME_CMP call.
10790 (dw2_find_symbol_file): New comment for the returned string.
10791 (dwarf2_gdb_index_functions): Rename the function to
10792 dw2_expand_symtabs_with_fullname.
10793 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10794 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10795 fullname.
10796 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10797 * symfile.h (struct quick_symbol_functions): Rename field
10798 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10799 parameter filename to fullname. Document returned string meaning for
10800 find_symbol_file.
10801 * symtab.c (find_line_symtab): Rename the called function to
10802 expand_symtabs_with_fullname.
10803
10804 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10805
10806 Code cleanup.
10807 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10808 call of filename_cmp with compare_filenames_for_search.
10809 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10810 is_abs, unify the call of FILENAME_CMP with
10811 compare_filenames_for_search. New gdb_asserts for real_path and name.
10812 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10813 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10814 * symfile.h (struct quick_symbol_functions): Extend the comment for
10815 map_symtabs_matching_filename.
10816 * symtab.c (compare_filenames_for_search): Remove the function comment
10817 relative path requirement. Handle absolute filenames, with a comment.
10818 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10819 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10820 real_path and name. Unify the call of compare_filenames_for_search
10821 with FILENAME_CMP.
10822 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10823
10824 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10825
10826 Code cleanup.
10827 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10828 source_file references by symtab field references. Remove variables
10829 sal and fullname.
10830 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10831 (clear_command, say_where): Replace bp_location field source_file
10832 references by symtab field references.
10833 (bp_location_dtor): Remove the source_file reference.
10834 (update_static_tracepoint): Replace bp_location field source_file
10835 references by symtab field references.
10836 (breakpoint_free_objfile): New function.
10837 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10838 Replace the field source_file by field symtab, extend its comment.
10839 (breakpoint_free_objfile): New declaration.
10840 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10841 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10842 field source_file references by symtab field references.
10843
10844 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10845
10846 Replace xfullpath calls by gdb_realpath calls.
10847 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10848 function comment.
10849 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10850 Remove it from the iterate_over_some_symtabs call.
10851 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10852 Remove it from the dw2_map_expand_apply calls, remove a block handling
10853 it.
10854 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10855 Remove it from the iterate_over_some_symtabs call.
10856 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10857 Remove it from the partial_map_expand_apply calls, remove a block
10858 handling it. Drop gdb_realpath call and cleanups from the real_path
10859 handling.
10860 * source.c (openp): Drop the comment part about xfullpath. Replace
10861 xfullpath calls by gdb_realpath calls.
10862 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10863 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10864 from method map_symtabs_matching_filename and its comment.
10865 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10866 gdb_realpath call.
10867 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10868 remove it also from the function comment, remove a block handling it.
10869 Drop gdb_realpath call and cleanups from the real_path handling.
10870 (iterate_over_symtabs): Drop variable full_path and its use.
10871 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10872 * utils.c (xfullpath): Remove.
10873 * utils.h (xfullpath): Remove.
10874
10875 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10876
10877 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10878 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10879 (ALLDEPFILES): Add ppc64-tdep.c.
10880 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10881 ppc64-tdep.o to gdb_target_obs.
10882 * ppc64-tdep.h: New file.
10883 * ppc64-tdep.c: New file.
10884 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10885 ppc-linux-tdep.c to here.
10886 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10887 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10888 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10889 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10890 from ppc-linux-tdep.c to here.
10891 (ppc64_convert_from_func_ptr_addr): Rename from
10892 ppc64_linux_convert_from_func_ptr_addr to
10893 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10894 here.
10895 * rs6000-tdep.c:
10896 (read_insn): Move from ppc-linux-tdep.c to here.
10897 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10898 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10899 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10900 Removed above functions.
10901 (ppc_linux_init_abi): Adjust.
10902
10903 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10904
10905 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10906
10907 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10908
10909 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10910
10911 2013-02-01 Pedro Alves <palves@redhat.com>
10912
10913 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10914 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10915
10916 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10917
10918 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10919 files with no separate debug info.
10920 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10921 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10922 only for files with no separate debug info.
10923
10924 2013-01-31 Tom Tromey <tromey@redhat.com>
10925
10926 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10927 change type.
10928 (struct jit_program_space_data): Rename from jit_inferior_data.
10929 Update comments.
10930 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10931 Change return type. Attach data to program space.
10932 (jit_program_space_data_cleanup): Rename from
10933 jit_inferior_data_cleanup; change argument type.
10934 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10935 change type.
10936 (jit_register_code): Update.
10937 (jit_update_inferior_cache): Remove.
10938 (jit_breakpoint_deleted): Get jit data from the location's program
10939 space.
10940 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10941 'ps_data', change type.
10942 (jit_inferior_init, jit_breakpoint_re_set_internal)
10943 (jit_event_handler): Update.
10944 (free_objfile_data): Get data from objfile's program space.
10945 (_initialize_jit): Update.
10946
10947 2013-01-31 Tom Tromey <tromey@redhat.com>
10948
10949 PR gdb/13987:
10950 * jit.c (struct jit_inferior_data) <cached_code_address,
10951 jit_breakpoint>: New fields.
10952 (jit_breakpoint_re_set_internal): Fix logging. Only create
10953 breakpoint if cached address has changed.
10954 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10955 functions.
10956 (_initialize_jit): Register breakpoint deleted observer.
10957
10958 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10959
10960 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10961 (save_infcall_suspend_state): Ifdef out unused inf.
10962 (restore_infcall_suspend_state): Ifdef out unused inf.
10963 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10964 (jit_frame_sniffer): Remove unused inf_data.
10965
10966 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10967
10968 * c-exp.y (classify_inner_name): Remove unused type.
10969 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10970 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10971 need_escape.
10972 (c_get_string): Remove unused kind.
10973 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10974
10975 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10976
10977 * charset.c (intermediate_encoding): Remove unused i.
10978 * completer.c (signal_completer): Remove unused i.
10979 * continuations.c (discard_my_continuations_1): Remove unused
10980 continuation_ptr.
10981 * corelow.c (core_close): Remove unuseD name.
10982 (get_core_siginfo): Remove unused pid.
10983 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10984 i, cps.
10985 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10986 (loclist_describe_location): Remove unused first.
10987 * event-top.c (command_line_handler): Remove unused got_eof.
10988 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10989 (resize_section_table): Remove unused old_value.
10990 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10991 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10992 * i386-tdep.c (i386_process_record): Remove unused rex.
10993 * infcmd.c (get_return_value): Remove unused uiout.
10994 * jv-lang.c (type_from_class): Remove unused is_array.
10995 * jv-valprint.c (java_val_print): Remove unused i.
10996 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10997 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10998 * m2-typeprint.c (m2_print_type): Remove unused code.
10999 * macroexp.c (get_character_constant): Remove unused body_start.
11000 (macro_stringify): Remove unused result.
11001 * objc-lang.c (find_methods): Remove unused gdbarch.
11002 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11003 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11004 * stack.c (print_frame_args): Remove unused summary.
11005 * thread.c (thread_apply_command): Remove unused p.
11006 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11007 * valops.c (search_struct_method): Remove unused skip.
11008 * valprint.c (generic_val_print): Remove unused byte_order.
11009 * varobj.c (varobj_update): Remove unused changed.
11010 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11011 (alias_command): Remove unused c.
11012 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11013 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11014 format.
11015 (mi_cmd_data_write_memory): Remove unused word_format.
11016 (mi_cmd_data_write_memory_bytes): Remove unused r.
11017 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11018 p_start, p_end.
11019 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11020 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11021 line_width.
11022
11023 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11024
11025 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11026 * symtab.c (iterate_over_symtabs): Remove unused s.
11027 (find_pc_sect_symtab): Remove unused pspAce.
11028 (find_pc_sect_line): Remove unused alt_symtab.
11029 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11030 (completion_list_add_name): Remove unused newsize.
11031
11032 2013-01-31 Tom Tromey <tromey@redhat.com>
11033
11034 PR c++/14998:
11035 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11036 TYPE_CODE_FUNC.
11037
11038 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11039
11040 * target.c (target_read_string): Remove unused origlen.
11041
11042 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11043
11044 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11045 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11046 * ax-general.c (ax_print): Remove unused is_float.
11047 * blockframe.c (block_innermost_frame): Remove unused start, end.
11048 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11049
11050 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11051
11052 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11053 (svr4_read_so_list): Remove unused lmo.
11054 * solib-target.c (solib_target_relocate_section_addresses): Remove
11055 unused flags.
11056
11057 2013-01-30 Tom Tromey <tromey@redhat.com>
11058
11059 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11060
11061 2013-01-30 Tom Tromey <tromey@redhat.com>
11062
11063 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11064 * utils.c (gnu_debuglink_crc32): Remove.
11065 * utils.h (gnu_debuglink_crc32): Don't declare.
11066
11067 2013-01-30 Tom Tromey <tromey@redhat.com>
11068
11069 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11070 (read_structure_type, read_enumeration_type): Remove cast.
11071
11072 2013-01-30 Tom Tromey <tromey@redhat.com>
11073
11074 * dwarf2read.c (read_namespace_type): Remove cast.
11075 (read_typedef): Likewise.
11076
11077 2013-01-29 Tom Tromey <tromey@redhat.com>
11078
11079 * dwarf2read.c (free_dwo_file): Remove assert.
11080
11081 2013-01-29 Tom Tromey <tromey@redhat.com>
11082
11083 * value.c (deprecated_set_value_modifiable): Remove.
11084 * value.h (deprecated_set_value_modifiable): Remove.
11085
11086 2013-01-28 Doug Evans <dje@google.com>
11087
11088 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11089 to addresses from dwo files.
11090
11091 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11092
11093 * valops.c (find_overload_match): Remove unused argument 'lax'.
11094 * value.h: Remove unused argument 'lax' from the declaration of
11095 find_overload_match.
11096 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11097 to find_overload_match.
11098 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11099 argument to find_overload_match.
11100
11101 2013-01-25 Tom Tromey <tromey@redhat.com>
11102
11103 * dwarf2read.c (processing_has_namespace_info): Remove.
11104 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11105 (process_die, read_func_scope, dwarf2_start_symtab)
11106 (new_symbol_full): Update.
11107
11108 2013-01-25 Tom Tromey <tromey@redhat.com>
11109
11110 * cp-namespace.c (cp_set_block_scope): Remove.
11111 * cp-support.h (cp_set_block_scope): Remove.
11112 * dbxread.c: Include block.h.
11113 (cp_set_block_scope): New function.
11114 (process_one_symbol): Update.
11115 * dwarf2read.c (read_func_scope): Use block_set_scope.
11116
11117 2013-01-25 Pedro Alves <palves@redhat.com>
11118
11119 * remote.c (add_current_inferior_and_thread): Tweak comment.
11120
11121 2013-01-25 Tom Tromey <tromey@redhat.com>
11122
11123 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11124 (cp_add_using_directive): Add 'copy_names' argument.
11125 * cp-support.h (cp_add_using_directive): Update.
11126 (struct using_direct) <import_src, import_dest, alias,
11127 declaration>: Now const.
11128 * dwarf2read.c (read_import_statement): Use obconcat.
11129 Don't copy names passed to cp_add_using_directive.
11130
11131 2013-01-25 Tom Tromey <tromey@redhat.com>
11132
11133 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11134
11135 2013-01-25 Pedro Alves <palves@redhat.com>
11136
11137 * remote.c (stop_reply_extract_thread): New.
11138 (add_current_inferior_and_thread): New parameter 'wait_status'.
11139 Handle it.
11140 (remote_start_remote): Pass wait status to
11141 add_current_inferior_and_thread.
11142 (extended_remote_run): Update comment.
11143 (extended_remote_create_inferior_1): Pass wait status to
11144 add_current_inferior_and_thread.
11145
11146 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11147 Ulrich Weigand <uweigand@de.ibm.com>
11148
11149 * valarith.c (value_vector_widen): New function for replicating a
11150 scalar into a vector.
11151 (value_binop): Use value_vector_widen to widen scalar to vector
11152 rather than casting, this better matches gcc C behaviour.
11153 * valops.c (value_casst): Update logic for casting between vector
11154 types, and for casting from scalar to vector, try to match gcc C
11155 behaviour.
11156 * value.h (value_vector_widen): Declare.
11157 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11158 function, handle special case for casting scalar to vector.
11159 (opencl_relop): Use opencl_value_cast.
11160 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11161 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11162 in order to use opencl_value_cast.
11163
11164 2013-01-25 Yao Qi <yao@codesourcery.com>
11165
11166 * event-loop.c: Include "queue.h".
11167 (gdb_event_p): New typedef.
11168 (DECLARE_QUEUE_P): Use.
11169 (DEFINE_QUEUE_P): Use.
11170 (async_queue_event): Remove.
11171 (gdb_event_xfree): New.
11172 (initialize_event_loop): New.
11173 (process_event): Use QUEUE macros.
11174 (event_queue): Remove.
11175 (gdb_wait_for_event): Caller update.
11176 (check_async_event_handlers): Likewise.
11177 (poll_timers): Likewise.
11178 * event-loop.h (initialize_event_loop): Declare.
11179 * event-loop.c (gdb_event_xfree): New.
11180 * top.c (gdb_init): Call initialize_event_loop.
11181
11182 2013-01-25 Yao Qi <yao@codesourcery.com>
11183
11184 * event-loop.c (async_queue_event): Remove one parameter
11185 'position'. Remove code handling 'position' == TAIL.
11186 (gdb_wait_for_event): Caller update.
11187 (check_async_event_handlers): Caller update.
11188 (poll_timers): Caller update.
11189 * event-loop.h (enum queue_position): Remove.
11190
11191 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11192
11193 * MAINTAINERS: Update my email.
11194
11195 2013-01-25 Yao Qi <yao@codesourcery.com>
11196
11197 * main.c (print_gdb_help): Remove "--epoch" from the help
11198 message.
11199
11200 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11201
11202 * symtab.c (skip_prologue_using_sal): Consider a file
11203 change the same as an increased line number
11204
11205 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11206
11207 * MAINTAINERS (Write After Approval): Add myself to the list.
11208
11209 2013-01-24 Tom Tromey <tromey@redhat.com>
11210
11211 * ada-lang.h (ada_decode_symbol): Make return type const.
11212 * ada-lang.c (ada_decode_symbol): Likewise.
11213
11214 2013-01-23 Doug Evans <dje@google.com>
11215
11216 * linespec.c (find_linespec_symbols): Make static.
11217
11218 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11219
11220 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11221 type on float conversion for complex type.
11222
11223 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11224
11225 Add a new class gdb.Architecture which exposes GDB's
11226 internal representation of architecture via GDB Python API.
11227 * Makefile.in: Add entries corresponding to the new file
11228 python/py-arch.c.
11229 * NEWS (Python Scripting): Add entries for the new class
11230 gdb.Architecture and the new method gdb.Frame.architecture.
11231 * python/py-arch.c: Implement gdb.Architecture class.
11232 * python/py-frame.c (frapy_arch): Implement the method
11233 gdb.Frame.architecture().
11234 (frame_object_methods): Add 'architecture' to the method table.
11235 * python/python-internal.h: Add declarations of new utility
11236 functions.
11237 * python/python.c (_initialize_python): Initialize
11238 gdb.Architecture class.
11239
11240 2013-01-23 Doug Evans <dje@google.com>
11241
11242 Work around binutils/15021.
11243 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11244 type_unit_group out of union s. All uses updated.
11245 (read_index_from_section): Watch for index version 8.
11246 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11247 an imported symtab.
11248 (write_psymtabs_to_index): Increment version number to 8.
11249
11250 2013-01-22 Pedro Alves <palves@redhat.com>
11251
11252 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11253 user-visible.
11254
11255 2013-01-22 Pedro Alves <palves@redhat.com>
11256
11257 * annotate.c (annotate_breakpoints_changed): Rename to ...
11258 (annotate_breakpoints_invalid): ... this. Make static.
11259 (breakpoint_changed): Adjust.
11260 (_initialize_annotate): Always install the observers. Install a
11261 "breakpoint_created" observer.
11262 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11263 * breakpoint.c (set_breakpoint_condition)
11264 (breakpoint_set_commands, do_map_commands_command)
11265 (init_raw_breakpoint, clear_command, set_ignore_count)
11266 (enable_breakpoint_disp): No longer call
11267 annotate_breakpoints_changed.
11268
11269 2013-01-22 Pedro Alves <palves@redhat.com>
11270
11271 * annotate.c: Include "inferior.h".
11272 (frames_invalid_emitted)
11273 (breakpoints_invalid_emitted): New globals.
11274 (async_background_execution_p): New function.
11275 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11276 emitting the annotation if it has already been emitted.
11277 (annotate_display_prompt): New function.
11278 * annotate.h (annotate_display_prompt): New declaration.
11279 * event-top.c: Include annotate.h.
11280 (display_gdb_prompt): Call annotate_display_prompt.
11281
11282 2013-01-22 Pedro Alves <palves@redhat.com>
11283
11284 * annotate.c (ignore_count_changed): Delete.
11285 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11286 (annotate_ignore_count_change): Delete.
11287 (annotate_stopped): Don't emit a delayed breakpoints-changed
11288 annotation.
11289 * annotate.h (annotate_ignore_count_change): Delete.
11290 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11291 annotate_ignore_count_change.
11292
11293 2013-01-22 Tom Tromey <tromey@redhat.com>
11294
11295 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11296 require_rvalue for a register location.
11297
11298 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11299
11300 * breakpoint.c (print_one_breakpoint_location): Add MI
11301 field 'thread-groups' when printing a breakpoint.
11302 (output_thread_groups): New function.
11303
11304 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11305
11306 * python/lib/gdb/commands/explore.py
11307 (CompoundExplorer.explore_expr): Correct the name of a method
11308 being invoked.
11309 (ExploreTypeCommand.invoke): Add a missing 'return'.
11310
11311 2013-01-21 Tom Tromey <tromey@redhat.com>
11312
11313 * gdb_obstack.h (obconcat): Move declaration here, from...
11314 * symfile.h (obconcat): ... here.
11315 * gdb_obstack.c: New file.
11316 (obconcat): Move from...
11317 * symfile.c (obconcat): ... here.
11318 * Makefile.in (SFILES): Add gdb_obstack.c.
11319 (COMMON_OBS): Add gdb_obstack.o.
11320
11321 2013-01-21 Tom Tromey <tromey@redhat.com>
11322
11323 * symfile.h (obsavestring): Don't declare.
11324 * symfile.c (obsavestring): Remove.
11325 * ada-exp.y: Use obstack_copy0, not obsavestring.
11326 * ada-lang.c: Use obstack_copy0, not obsavestring.
11327 * coffread.c: Use obstack_copy0, not obsavestring.
11328 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11329 * dbxread.c: Use obstack_copy0, not obsavestring.
11330 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11331 * jit.c: Use obstack_copy0, not obsavestring.
11332 * mdebugread.c: Use obstack_copy0, not obsavestring.
11333 * psymtab.c: Use obstack_copy0, not obsavestring.
11334 * stabsread.c: Use obstack_copy0, not obsavestring.
11335 * xcoffread.c: Use obstack_copy0, not obsavestring.
11336
11337 2013-01-21 Tom Tromey <tromey@redhat.com>
11338
11339 * dwarf2read.c (fixup_go_packaging): Save package name
11340 on objfile obstack.
11341 * gdbtypes.c (init_type): Don't copy name.
11342
11343 2013-01-21 Tom Tromey <tromey@redhat.com>
11344
11345 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11346 const.
11347 (struct attribute) <u.str>: Now const.
11348 (struct fnfieldlist) <name>: Now const.
11349 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11350 (partial_die_parent_scope): Make return type const.
11351 (partial_die_full_name, add_partial_symbol): Update.
11352 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11353 'name' const.
11354 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11355 (read_file_scope, read_func_scope, dwarf2_add_field)
11356 (dwarf2_add_member_fn, read_structure_type)
11357 (process_enumeration_scope, read_array_type, read_module_type)
11358 (read_base_type, read_subrange_type): Update.
11359 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11360 (new_symbol_full, guess_full_die_structure_name): Update.
11361 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11362 (dwarf2_name): Return const type.
11363 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11364 const.
11365
11366 2013-01-21 Tom Tromey <tromey@redhat.com>
11367
11368 * gdbtypes.c (init_type): Make 'name' const.
11369 * gdbtypes.h (init_type): Update.
11370
11371 2013-01-21 Tom Tromey <tromey@redhat.com>
11372
11373 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11374 (start_symtab): Make 'name' and 'dirname' const. Use
11375 set_last_source_file.
11376 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11377 (last_source_file): Define. Now static.
11378 (set_last_source_file, get_last_source_file): New functions.
11379 * buildsym.h (last_source_file): Don't declare.
11380 (start_symtab): Update.
11381 (set_last_source_file, get_last_source_file): Declare.
11382 * coffread.c (complete_symtab): Use set_last_source_file.
11383 (coff_end_symtab): Likewise.
11384 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11385 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11386 set_last_source_file.
11387 (process_one_symbol): Use get_last_source_file.
11388 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11389 (psymtab_to_symtab_1): Use get_last_source_file.
11390 * xcoffread.c (process_linenos): Use get_last_source_file.
11391 (complete_symtab): Use set_last_source_file.
11392 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11393 (scan_xcoff_symtab): Use set_last_source_file.
11394
11395 2013-01-21 Tom Tromey <tromey@redhat.com>
11396
11397 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11398 (symbol_set_names): Remove casts. Handle field const-ness.
11399
11400 2013-01-21 Tom Tromey <tromey@redhat.com>
11401
11402 * dwarf2read.c (new_symbol_full): Remove cast.
11403 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11404 * symtab.h (symbol_set_demangled_name): Update.
11405
11406 2013-01-21 Tom Tromey <tromey@redhat.com>
11407
11408 * main.c (captured_main): Call bfd_init.
11409
11410 2013-01-21 Tom Tromey <tromey@redhat.com>
11411
11412 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11413 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11414 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11415 * NEWS: Update.
11416
11417 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11418
11419 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11420
11421 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11422
11423 Fix gdb.fortran/common-block.exp crash in PIE mode.
11424 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11425 LOC_COMMON_BLOCK.
11426 * f-valprint.c (info_common_command_for_block): Expect
11427 LOC_COMMON_BLOCK in gdb_assert.
11428 * symtab.h (struct general_symbol_info): Update comment for the
11429 common_block member.
11430 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11431 (enum address_class): New member LOC_COMMON_BLOCK.
11432
11433 2013-01-18 David Blaikie <dblaikie@gmail.com>
11434
11435 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11436
11437 2013-01-18 Tom Tromey <tromey@redhat.com>
11438
11439 PR c++/14999:
11440 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11441 Call require_rvalue.
11442
11443 2013-01-18 Yao Qi <yao@codesourcery.com>
11444
11445 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11446 (dbx_read_symtab): New declaration.
11447 (dbx_psymtab_to_symtab): Delete.
11448 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11449 Rename parameter PST to SELF. Exchanged two parameters.
11450 (start_psymtab): Caller update.
11451 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11452 (dwarf2_read_symtab): New declaration.
11453 (dwarf2_psymtab_to_symtab): Delete.
11454 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11455 Rename parameter PST to SELF. Exchanged two parameters.
11456 (create_partial_symtab): Caller update.
11457 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11458 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11459 Rename parameter PST to SELF. Exchanged two parameters.
11460 (parse_partial_symbols, new_psymtab): Caller update.
11461 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11462 two parameters.
11463 * psymtab.c (psymtab_to_symtab): Caller update.
11464 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11465 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11466 Rename parameter PST to SELF. Exchanged two parameters.
11467 (xcoff_start_psymtab): Caller update.
11468
11469 2013-01-18 Yao Qi <yao@codesourcery.com>
11470
11471 * infrun.c (proceed): Rename local variable 'oneproc' to
11472 'force_step'.
11473
11474 2013-01-17 Doug Evans <dje@google.com>
11475
11476 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11477 (dw2_build_type_unit_groups): Delete. All uses updated.
11478
11479 * symtab.h (struct symbol_search): Add comment.
11480
11481 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11482
11483 * symtab.c (compare_filenames_for_search): New comment for
11484 HAS_DRIVE_SPEC.
11485
11486 2013-01-17 Tom Tromey <tromey@redhat.com>
11487
11488 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11489
11490 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11491
11492 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11493 initialize it by existing make_cleanup. Call new do_cleanups.
11494
11495 2013-01-17 Tom Tromey <tromey@redhat.com>
11496
11497 * cp-abi.c (cp_abi_completer): New function.
11498 (_initialize_cp_abi): Set completer for "set cp-abi".
11499
11500 2013-01-17 Tom Tromey <tromey@redhat.com>
11501
11502 * mem-break.c: Remove obsolete comment.
11503 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11504
11505 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11506
11507 * jit.c (jit_reader_load_command): Interpret the jit reader name
11508 as an absolute path if it begins with a forward slash.
11509
11510 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11511
11512 PR gdb/14550
11513
11514 * jit.c (finalize_symtab): Ensure that only the global block has a
11515 NULL superblock.
11516
11517 2013-01-17 Pedro Alves <palves@redhat.com>
11518
11519 * acinclude.m4: Include ../config/plugins.m4,
11520 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11521 * Makefile.in (aclocal_m4_deps): Update.
11522 * aclocal.m4: Renegerate.
11523
11524 2013-01-16 Doug Evans <dje@google.com>
11525
11526 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11527
11528 2013-01-16 Pedro Alves <palves@redhat.com>
11529 Tom Tromey <tromey@redhat.com>
11530
11531 PR cli/7221:
11532 * NEWS: Add "catch signal".
11533 * breakpoint.c (base_breakpoint_ops): No longer static.
11534 (bpstat_explains_signal): New function.
11535 (init_catchpoint): No longer static.
11536 (base_breakpoint_explains_signal): New function.
11537 (base_breakpoint_ops): Initialize new field.
11538 * breakpoint.h (enum bpstat_signal_value): New.
11539 (struct breakpoint_ops) <explains_signal>: New field.
11540 (bpstat_explains_signal): Remove macro, declare as function.
11541 (base_breakpoint_ops, init_catchpoint): Declare.
11542 * break-catch-sig.c: New file.
11543 * inferior.h (signal_catch_update): Declare.
11544 * infrun.c (signal_catch): New global.
11545 (handle_syscall_event): Update for change to
11546 bpstat_explains_signal.
11547 (handle_inferior_event): Likewise. Always handle random signals
11548 via bpstats.
11549 (signal_cache_update): Check signal_catch.
11550 (signal_catch_update): New function.
11551 (_initialize_infrun): Initialize signal_catch.
11552 * Makefile.in (SFILES): Add break-catch-sig.c.
11553 (COMMON_OBS): Add break-catch-sig.o.
11554
11555 2013-01-16 Tom Tromey <tromey@redhat.com>
11556
11557 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11558 (print_one_catch_solib, print_one_catch_syscall)
11559 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11560 "catch-type".
11561
11562 2013-01-16 Yao Qi <yao@codesourcery.com>
11563
11564 * printcmd.c (current_display_number): Make it static.
11565
11566 2013-01-16 Yao Qi <yao@codesourcery.com>
11567
11568 * infcmd.c (step_once): Don't check '!single_inst' as it was
11569 checked before.
11570
11571 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11572
11573 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11574
11575 2013-01-14 Tom Tromey <tromey@redhat.com>
11576
11577 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11578 set command.
11579 * command.h (add_setshow_string_noescape_cmd): Update.
11580 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11581 (complete_set_gnutarget): New function.
11582 (_initialize_core): Set the "set gnutarget" completer.
11583
11584 2013-01-14 Tom Tromey <tromey@redhat.com>
11585
11586 PR symtab/14442:
11587 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11588 (c_type_print_modifier): Likewise.
11589 * dwarf2read.c (read_tag_restrict_type): New function.
11590 (read_type_die_1): Handle DW_TAG_restrict_type.
11591 * gdbtypes.c (make_restrict_type): New function.
11592 (recursive_dump_type): Handle TYPE_RESTRICT.
11593 * gdbtypes.h (enum type_flag_values): Renumber.
11594 (enum type_instance_flag_value): Add
11595 TYPE_INSTANCE_FLAG_RESTRICT.
11596 (TYPE_RESTRICT): New macro.
11597 (make_restrict_type): Declare.
11598
11599 2013-01-14 Tom Tromey <tromey@redhat.com>
11600
11601 PR symtab/14931:
11602 * psymtab.c (struct psymtab_state): New.
11603 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11604 functions.
11605 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11606 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11607
11608 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11609 Pedro Alves <palves@redhat.com>
11610
11611 PR remote/14786
11612
11613 * remote.c (remote_threads_info): Make a copy of the reply from
11614 qfThreadInfo and use that instead of rs->buf.
11615
11616 2013-01-14 Yao Qi <yao@codesourcery.com>
11617
11618 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11619 (dbx_psymtab_to_symtab): Likewise.
11620 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11621 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11622 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11623
11624 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11625
11626 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11627 make_cleanup_restore_current_language. Call set_language. Move
11628 OLD_CHAIN and INNER_CHAIN cleanups.
11629 * utils.c (do_restore_current_language)
11630 (make_cleanup_restore_current_language): New functions.
11631 * utils.h (make_cleanup_restore_current_language): New declaration.
11632
11633 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11634
11635 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11636 non-existing files.
11637
11638 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11639 non-existing files if FILENAME is already absolute.
11640
11641 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11642
11643 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11644 fputs_filtered. Append trailing newline.
11645
11646 2013-01-11 Yao Qi <yao@codesourcery.com>
11647 Stan Shebs <stan@codesourcery.com>
11648
11649 * psymtab.c (init_psymbol_list): Clarify the comment.
11650
11651 2013-01-11 Yao Qi <yao@codesourcery.com>
11652
11653 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11654 (update_dprintf_command_list): Assert that 'printf_line' is
11655 non-null. Remove condition check.
11656
11657 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11658
11659 Code cleanup.
11660 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11661 type const char *.
11662 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11663 const char *.
11664 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11665
11666 2013-01-09 Anthony Green <green@moxielogic.com>
11667
11668 * cp-abi.c (cplus_print_vtable): Don't return value from void
11669 function.
11670 * ada-lang.c (re_set_catch_assert): Ditto.
11671
11672 2013-01-09 Doug Evans <dje@google.com>
11673
11674 * symfile.h (quick_symbol_functions): Delete member
11675 pre_expand_symtabs_matching. All uses removed.
11676 * dwarf2read.c (dw2_lookup_symbol): Implement.
11677 (dw2_do_expand_symtabs_matching): Delete.
11678 (dw2_pre_expand_symtabs_matching): Delete.
11679 (struct dw2_symtab_iterator): New type.
11680 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11681 (dw2_expand_symtabs_for_function): Rewrite.
11682 (dwarf2_gdb_index_functions): Update.
11683 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11684 (psym_functions): Update.
11685
11686 2013-01-09 Tom Tromey <tromey@redhat.com>
11687
11688 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11689 * configure: Rebuild.
11690 * configure.ac: Add somread.o to the build if BFD has SOM
11691 support.
11692 * somread.c: Include som/aout.h, not syms.h.
11693 (som_symtab_read): Use som_external_symbol_dictionary_record.
11694 Unpack records manually.
11695 (_initialize_somread): Declare.
11696
11697 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11698
11699 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11700 Cast return_address to 64bits.
11701
11702 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11703
11704 * printcmd.c: Remove define of function output_command.
11705 * tracepoint.c: Remove extern of function output_command.
11706 * valprint.h: (output_command): New extern.
11707
11708 2013-01-07 Tom Tromey <tromey@redhat.com>
11709
11710 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11711 Remove.
11712 (objc_language_defn): Use c_printchar, c_printstr,
11713 c_emit_char.
11714
11715 2013-01-07 Tom Tromey <tromey@redhat.com>
11716
11717 PR cli/7719:
11718 * NEWS: Update.
11719 * ada-valprint.c (printstr, print_field_values): Remove
11720 "inspect_it" code.
11721 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11722 code.
11723 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11724 code.
11725 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11726 * main.c (captured_main): Remove "epoch" argument.
11727 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11728 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11729 * p-valprint.c (pascal_object_print_value_fields): Remove
11730 "inspect_it" code.
11731 * printcmd.c (print_command_1): Remove 'inspect' argument.
11732 (print_command, call_command): Update.
11733 (inspect_command): Remove.
11734 (_initialize_printcmd): Make "inspect" an alias for "print".
11735 * top.c (epoch_interface): Remove.
11736 * top.h (epoch_interface): Remove.
11737 * valprint.c (user_print_options): Update.
11738 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11739 * valprint.h (struct value_print_options) <inspect_it>: Remove
11740 field.
11741
11742 2013-01-04 Tom Tromey <tromey@redhat.com>
11743
11744 * valprint.h (read_string): Add 'extern'.
11745
11746 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11747
11748 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11749 used to decide whether to define darwin_read_dyld_info or not.
11750
11751 2013-01-03 Pierre Muller <muller@sourceware.org>
11752
11753 * main.c (relocate_gdb_directory): Avoid calling stat function
11754 if DIR is empty.
11755
11756 2013-01-03 Yao Qi <yao@codesourcery.com>
11757
11758 * psymtab.c (fixup_psymbol_section): Update declaration.
11759 (fixup_psymbol_section): Remove code returning value.
11760
11761 2013-01-03 Yao Qi <yao@codesourcery.com>
11762
11763 * symtab.h: Remove some out of date comments.
11764 (enum exception_event_kind): Move it ...
11765 * breakpoint.c: ... here.
11766
11767 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11768
11769 PR gdb/14405
11770 * darwin-nat.c (darwin_read_dyld_info): Only build if
11771 TASK_DYLD_INFO_COUNT is defined.
11772 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11773 TASK_DYLD_INFO_COUNT is defined.
11774
11775 2013-01-02 Tom Tromey <tromey@redhat.com>
11776
11777 * symfile.h (struct ecoff_debug_hack): Remove.
11778 * objfiles.c: Don't include mdebugread.h.
11779
11780 2013-01-02 Tom Tromey <tromey@redhat.com>
11781
11782 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11783 * configure.ac: Check for Mach-O support in BFD. Update
11784 CONFIG_OBS.
11785 * configure: Rebuild.
11786
11787 2013-01-02 Tom Tromey <tromey@redhat.com>
11788
11789 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11790 * configure.ac: Use GDB_AC_CHECK_BFD.
11791 * configure: Rebuild.
11792
11793 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11794
11795 * MAINTAINERS: Update my email.
11796
11797 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11798
11799 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11800
11801 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11802
11803 * rs6000-nat.c (bss_data_overlap): New function.
11804 (vmap_symtab): Use it to adjust the .bss section's offset.
11805
11806 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11807
11808 Update year range in copyright notice of all files.
11809
11810 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11811
11812 * top.c (print_gdb_version): Update copyright year.
11813
11814 For older changes see ChangeLog-2012.
11815 \f
11816 Local Variables:
11817 mode: change-log
11818 left-margin: 8
11819 fill-column: 74
11820 version-control: never
11821 coding: utf-8
11822 End:
This page took 0.257318 seconds and 3 git commands to generate.