sparc: support single-stepping over longjmp calls.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
2
3 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
4 * sparc-tdep.h: And its prototype.
5
6 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
7 function.
8 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
9
10 2013-11-18 Pedro Alves <palves@redhat.com>
11
12 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
13 use unpack_pointer.
14
15 2013-11-18 Joel Brobecker <brobecker@adacore.com>
16
17 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
18 to -list-features output.
19
20 2013-11-17 Joel Brobecker <brobecker@adacore.com>
21
22 * dwarf2expr.h (struct dwarf_expr_context_funcs)
23 <read_addr_from_reg>: Renames "read_reg".
24 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
25 Adjust comment.
26 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
27 Use read_addr_from_reg in place of read_reg.
28 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
29 in place of read_reg.
30 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
31 dwarf_expr_read_reg.
32 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
33 with dwarf_expr_read_addr_from_reg.
34 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
35 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
36 needs_frame_read_addr_from_reg.
37
38 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
39
40 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
41
42 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
43
44 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
45 NULL.
46
47 2013-11-15 Tom Tromey <tromey@redhat.com>
48
49 PR c++/16117:
50 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
51 (classify_name): Likewise. Prefer a field of "this" over a
52 filename.
53 (classify_inner_name, yylex): Update.
54
55 2013-11-15 Joel Brobecker <brobecker@adacore.com>
56
57 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
58 Extend the documentation a bit.
59 <get_reg_value>: New field.
60 * dwarf2loc.c (dwarf_expr_get_reg_value)
61 (needs_frame_get_reg_value): New functions.
62 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
63 callback.
64 * dwarf2-frame.c (get_reg_value): New function.
65 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
66 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
67 Use new callback to compute result_val.
68
69 2013-11-15 Alan Modra <amodra@gmail.com>
70
71 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
72 (ppc64_desc_entry_point): ..this. Update comments here and at
73 call points.
74 (ppc64_standard_linkage1, ppc64_standard_linkage2,
75 ppc64_standard_linkage3): Update comments.
76 (ppc64_standard_linkage4, ppc64_standard_linkage5,
77 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
78 patterns.
79 (ppc64_standard_linkage4_target): New function.
80 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
81 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
82 nop match. Fix comment wrap.
83
84 2013-11-14 Pedro Alves <palves@redhat.com>
85
86 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
87 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
88
89 2013-11-14 Pedro Alves <palves@redhat.com>
90
91 * infrun.c (struct execution_control_state)
92 <stepped_after_stopped_by_watchpoint>: New field.
93 (get_inferior_stop_soon): New function.
94 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
95 moved to struct execution_control_state -- adjust. Use
96 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
97 new function.
98 (handle_signal_stop): New function, factored out from
99 handle_inferior_event.
100
101 2013-11-14 Pedro Alves <palves@redhat.com>
102
103 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
104 return a boolean.
105 * breakpoint.c (bpstat_explains_signal): Adjust to return a
106 boolean.
107 (explains_signal_watchpoint, base_breakpoint_explains_signal):
108 Adjust to return a boolean.
109 * breakpoint.h (enum bpstat_signal_value): Delete.
110 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
111 (bpstat_explains_signal): Likewise.
112 * infrun.c (handle_inferior_event) <random signal checks>:
113 bpstat_explains_signal now returns a boolean - adjust. No longer
114 consider hiding signals.
115
116 2013-11-14 Pedro Alves <palves@redhat.com>
117
118 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
119 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
120 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
121 BPSTAT_SIGNAL_HIDE.
122 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
123 instead of BPSTAT_SIGNAL_HIDE.
124 * infrun.c (handle_inferior_event): Rework random signal checks.
125
126 2013-11-14 Pedro Alves <palves@redhat.com>
127
128 * infrun.c (struct execution_control_state): Remove
129 'random_signal' field.
130 (handle_syscall_event): Use bpstat_causes_stop instead of
131 bpstat_explains_signal. Don't set ecs->random_signal.
132 (handle_inferior_event): New 'random_signal' local.
133 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
134 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
135 bpstat_explains_signal. Don't set ecs->random_signal.
136 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
137 ecs->random_signal.
138
139 2013-11-14 Pedro Alves <palves@redhat.com>
140
141 * infrun.c (handle_inferior_event): Move comment from the
142 function's body to the function's description, adjusted.
143
144 2013-11-14 Pedro Alves <palves@redhat.com>
145
146 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
147 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
148 Assert we never fall through out of the TARGET_WAITKIND_LOADED
149 case.
150
151 2013-11-14 Tom Tromey <tromey@redhat.com>
152
153 * python/py-linetable.c (ltpy_has_line)
154 (ltpy_get_all_source_lines): Fix loop termination condition.
155
156 2013-11-14 Joel Brobecker <brobecker@adacore.com>
157
158 * mi/mi-parse.h (struct mi_parse) <language>: New field.
159 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
160 PARSE->LANGUAGE during command execution, if set.
161 * mi/mi-parse.c: Add "language.h" #include.
162 (mi_parse): Add parsing of "--language" command option.
163
164 * NEWS: Add entry mentioning the new "--language" command option.
165
166 2013-11-14 Pedro Alves <palves@redhat.com>
167 Joel Brobecker <brobecker@adacore.com>
168
169 * cli/cli-utils.h (extract_arg_const): Add declaration.
170 * cli/cli-utils.c (extract_arg_const): New function.
171 (extract_arg): Reimplement using extract_arg_const.
172
173 2013-11-14 Joel Brobecker <brobecker@adacore.com>
174
175 * language.h: Add "symtab.h" #include.
176
177 2013-11-13 Doug Evans <xdje42@gmail.com>
178
179 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
180 specific breakpoints, don't evaluate breakpoint condition if
181 different thread.
182
183 2013-11-13 Keith Seitz <keiths@redhat.com>
184
185 PR c++/7935
186 PR c++/10541
187 * cp-support.c (insepct_type): Add support for substituting
188 namespace aliases, too.
189 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
190 for DW_TAG_imported_declaration.
191 (add_partial_symbol): Likewise.
192 (process_die): Handle namespace aliases with
193 read_namespace_alias.
194 (die_needs_namespace): Add DW_TAG_imported_declaration.
195 (read_namespace_alias): New function.
196 (load_partial_dies): Load DW_TAG_imported_declaration, too.
197 (new_symbol_full): Handle DW_TAG_imported_declaration.
198
199 2013-11-13 Keith Seitz <keiths@redhat.com>
200
201 * p-exp.y (uptok): Make first parameter const.
202 (yylex): Make `tokstart' and `tokptr' const.
203 Don't copy the lexer input to a temporary buffer.
204 Make `p' const.
205 Remove const workaround for parse_escape.
206 Create a temporary buffer for a convenience variable instead
207 of doing in-place modification of the input.
208 If a match is found with a different case from the input,
209 do not change the input at all.
210 Use `tmp' to construct the resultant stoken instead of
211 `tokstart'.
212
213 2013-11-13 Doug Evans <xdje42@gmail.com>
214
215 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
216
217 2013-11-13 Joel Brobecker <brobecker@adacore.com>
218
219 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
220 entry with "ada-exceptions".
221
222 2013-11-13 Joel Brobecker <brobecker@adacore.com>
223
224 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
225 after re-initialization of OBJFILE's obstack.
226
227 2013-11-12 Doug Evans <xdje42@gmail.com>
228
229 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
230 bs->stop != 0 on entry. Update function comment. Simplify early
231 exit for frame mismatch. Reindent rest of function.
232
233 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
234
235 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
236 NULL.
237
238 2013-11-12 Doug Evans <dje@google.com>
239
240 Work around gold/15646.
241 * dwarf2read.c (read_index_from_section): Update comment.
242 (struct dw2_symtab_iterator): New member global_seen.
243 (dw2_symtab_iter_init): Initialize it.
244 (dw2_symtab_iter_next): Skip duplicate global symbols.
245 (dw2_expand_symtabs_matching): Ditto.
246
247 2013-11-12 Joel Brobecker <brobecker@adacore.com>
248
249 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
250 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
251 command.
252 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
253 (mi_cmd_info_ada_exceptions): New function.
254 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
255
256 2013-11-12 Joel Brobecker <brobecker@adacore.com>
257
258 * ada-lang.h: #include "vec.h".
259 (struct ada_exc_info): New.
260 (ada_exc_info): New typedef.
261 (DEF_VEC_O(ada_exc_info)): New vector.
262 (ada_exceptions_list): Add declaration.
263 * ada-lang.c (ada_is_exception_sym)
264 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
265 (sort_remove_dups_ada_exceptions_list)
266 (ada_exc_search_name_matches, ada_add_standard_exceptions)
267 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
268 (ada_exceptions_list_1, ada_exceptions_list)
269 (info_exceptions_command): New function.
270 (_initialize_ada_language): Add "info exception" command.
271
272 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
273
274 PR python/15629
275 * NEWS: Add linetable feature.
276 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
277 * python/py-linetable.c: New file.
278 * python/py-symtab.c (stpy_get_linetable): New function.
279 * python/python-internal.h (symtab_to_linetable_object): Declare.
280 (gdbpy_initialize_linetable): Ditto.
281 * python/python.c (_initialize_python): Call
282 gdbpy_initialize_linetable.
283
284 2013-11-11 Joel Brobecker <brobecker@adacore.com>
285
286 * ada-lang.c (create_ada_exception_catchpoint): Enhance
287 the documentation of fields "except_string" and "condition".
288 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
289 CONDITION on the heap before passing it to
290 create_ada_exception_catchpoint.
291 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
292 CONDITION.
293
294 2013-11-11 Tom Tromey <tromey@redhat.com>
295
296 * config.in, configure: Rebuild.
297 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
298
299 2013-11-11 Joel Brobecker <brobecker@adacore.com>
300
301 * remote-sim.c (gdbsim_detach): Break declaration into
302 shorter lines. No code change.
303
304 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
305
306 * remote-sim.c (gdbsim_detach): Fix prototype.
307
308 2013-11-08 Doug Evans <dje@google.com>
309
310 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
311 (create_debug_types_hash_table): Only print debugging messages for
312 each TU if dwarf2-read >= 2.
313 (process_queue): Ditto.
314 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
315 Update doc string.
316
317 2013-11-08 Tom Tromey <tromey@redhat.com>
318
319 * configure: Rebuild.
320 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
321
322 2013-11-08 Tom Tromey <tromey@redhat.com>
323
324 * configure, config.in: Rebuild.
325 * configure.ac: Remove unused configury.
326
327 2013-11-08 Tom Tromey <tromey@redhat.com>
328
329 * m32c-tdep.c: Use gdb_string.h.
330
331 2013-11-08 Tom Tromey <tromey@redhat.com>
332
333 * configure, config.in: Rebuild.
334 * configure.ac: Remove all link.h-related checks.
335
336 2013-11-08 Tom Tromey <tromey@redhat.com>
337
338 * acinclude.m4: Include common.m4.
339 * common/common.m4: New file.
340 * configure, config.in: Rebuild.
341 * configure.ac: Use GDB_AC_COMMON.
342
343 2013-11-08 Doug Evans <dje@google.com>
344
345 * NEWS: Mention that "set debug symtab-create" now accepts a
346 verbosity level.
347 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
348 to set the symtab's primary flag.
349 * jit.c (finalize_symtab): Ditto.
350 * mdebugread.c (psymtab_to_symtab_1): Ditto.
351 * symfile.c (allocate_symtab): Only print debugging messages for
352 symtab_create_debug levels 2 and higher.
353 * symtab.c (symtab_create_debug): Change type to unsigned int.
354 (set_symtab_primary): New function.
355 (_initialize_symtab): Change "set debug symtab-create" to a
356 zuinteger option.
357 * symtab.h (set_symtab_primary): Declare.
358 (symtab_create_debug): Update decl.
359
360 2013-11-08 Tom Tromey <tromey@redhat.com>
361
362 * aix-thread.c (aix_thread_detach): Update.
363 * corelow.c (core_detach): Update.
364 * darwin-nat.c (darwin_detach): Update.
365 * dec-thread.c (dec_thread_detach): Update.
366 * gnu-nat.c (gnu_detach): Update.
367 * go32-nat.c (go32_detach): Update.
368 * inf-ptrace.c (inf_ptrace_detach): Update.
369 * inf-ttrace.c (inf_ttrace_detach): Update.
370 * linux-fork.c (linux_fork_detach): Update.
371 * linux-fork.h (linux_fork_detach): Update.
372 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
373 local for const-correctness.
374 * linux-thread-db.c (thread_db_detach): Update.
375 * monitor.c (monitor_detach): Update.
376 * nto-procfs.c (procfs_detach): Update.
377 * procfs.c (procfs_detach): Update.
378 * record.c (record_detach): Update.
379 * record.h (record_detach): Update.
380 * remote-m32r-sdi.c (m32r_detach): Update.
381 * remote-mips.c (mips_detach): Update.
382 * remote-sim.c (gdbsim_detach): Update.
383 * remote.c (remote_detach_1, remote_detach)
384 (extended_remote_detach): Update.
385 * sol-thread.c (sol_thread_detach): Update.
386 * target.c (target_detach): Make "args" const.
387 (init_dummy_target): Update.
388 * target.h (struct target_ops) <to_detach>: Make argument const.
389 (target_detach): Likewise.
390 * windows-nat.c (windows_detach): Update.
391
392 2013-11-07 Doug Evans <dje@google.com>
393
394 PR 11786
395 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
396 and align fields for PT_GNU_RELRO segments.
397
398 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
399
400 PR python/15747
401 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
402
403 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
404
405 * NEWS: Document Python temporary breakpoint support.
406 * python/py-breakpoint.c (bppy_get_temporary): New function.
407 (bppy_init): New keyword: temporary. Parse it and set breakpoint
408 to temporary if True.
409
410 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
411
412 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
413 removed to allow analyzing unconditional branch instructions
414 with PC-relative offsets of zero.
415
416 2013-11-07 Yao Qi <yao@codesourcery.com>
417
418 * mi/mi-cmd-var.c: Include "language.h".
419 (mi_cmd_var_info_expression): Get language name from
420 language_defn.
421 * varobj.c (varobj_language_string): Remove.
422 (variable_language): Remove declaration.
423 (languages): Remove.
424 (varobj_get_language): Change the type of return value.
425 (variable_language): Remove.
426 * varobj.h (enum varobj_languages): Remove.
427 (varobj_language_string): Remove declaration.
428 (varobj_get_language): Update declaration.
429
430 2013-11-07 Yao Qi <yao@codesourcery.com>
431
432 * language.h (struct language_defn) <la_natural_name>: New
433 field.
434 * ada-lang.c (ada_language_defn): Initialize field
435 'la_natural_name'.
436 * c-lang.c (c_language_defn): Likewise.
437 (cplus_language_defn, asm_language_defn): Likewise.
438 * d-lang.c (d_language_defn): Likewise.
439 * f-lang.c (f_language_defn): Likewise.
440 * go-lang.c (go_language_defn): Likewise.
441 * jv-lang.c (java_language_defn): Likewise.
442 * language.c (unknown_language_defn ): Likewise.
443 (auto_language_defn): Likewise.
444 * m2-lang.c (m2_language_defn): Likewise.
445 * objc-lang.c (objc_language_defn): Likewise.
446 * opencl-lang.c (opencl_language_defn): Likewise.
447 * p-lang.c (pascal_language_defn): Likewise.
448
449 2013-11-07 Yao Qi <yao@codesourcery.com>
450
451 * language.c (language_str): Return const char *.
452 (add_language): Add const to 'language_names'
453 * language.h (struct language_defn) <la_name>: Add const.
454 (language_str: Update declaration.
455
456 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
457
458 * s390-linux-nat.c (s390_read_description): Consider the TE field
459 in the HWCAP for determining 'have_regset_tdb'.
460
461 2013-11-06 Will Newton <will.newton@linaro.org>
462
463 PR gdb/12866
464 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
465 values. (read_partial_die): Likewise.
466
467 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
468
469 PR cli/16122
470 * top.c (command_line_input): Unify interactivity tests to use
471 input_from_terminal_p.
472 * event-top.c (command_line_handler): Likewise.
473
474 2013-11-06 Yao Qi <yao@codesourcery.com>
475
476 * Makefile.in (check-perf): New target.
477
478 2013-11-05 Will Newton <will.newton@linaro.org>
479
480 PR gdb/7670
481 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
482 (arm_print_float_info): Likewise.
483
484 2013-11-04 Anton Blanchard <anton@samba.org>
485
486 * target.c (memory_xfer_partial): Cap write to 4KB.
487
488 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
489
490 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
491 probe scan even when the arch provides no get_longjmp_target.
492
493 2013-10-31 Pedro Alves <palves@redhat.com>
494
495 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
496 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
497 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
498 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
499 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
500 <bpstat handling>: If the bpstat chain wants the signal to be
501 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
502 GDB_SIGNAL_TRAP.
503
504 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
505
506 * breakpoint.c (update_watchpoint): Update error message and add
507 an additional error message.
508
509 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
510
511 * s390-tdep.h: Rename to...
512 * s390-linux-tdep.h: ...here.
513 * s390-tdep.c: Rename to...
514 * s390-linux-tdep.c: ...here. Adjust #include.
515 * s390-nat.c: Rename to...
516 * s390-linux-nat.c: ...here. Adjust #include.
517 * config/s390/s390.mh: Rename to...
518 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
519 s390-linux-nat.o.
520 * configure.host: Reflect host rename "s390" -> "linux".
521 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
522 * Makefile.in (ALL_TARGET_OBS): Likewise.
523 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
524 s390-linux-tdep.h.
525 (ALLDEPFILES): Reflect rename of .c files.
526
527 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
528
529 * s390-nat.c: Whitespace cleanup.
530 * s390-tdep.c: Likewise.
531 * s390-tdep.h: Remove empty line at end of file.
532
533 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
534
535 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
536 siginfo_size.
537
538 2013-10-29 Tom Tromey <tromey@redhat.com>
539
540 * utils.c (reg): Move undefinition...
541 * gdb_curses.h: ... here. Update comment to mention AIX.
542
543 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
544
545 * exec.h (add_target_sections_of_objfile): New declaration.
546 * exec.c (add_target_sections_of_objfile): New function.
547 * symfile.c (add_symbol_file_command): Update current target sections.
548 (remove_symbol_file_command): New command.
549 (symfile_free_objfile): New function.
550 (_initialize_symfile): Register observer for free_objfile events.
551 * NEWS: Add description of the remove-symbol-file command.
552 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
553 * objfiles.c (free_objfile): Notify free_objfile.
554 (is_addr_in_objfile): New function.
555 * objfiles.h (is_addr_in_objfile): New declaration.
556 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
557 events instead of solib_unloaded events.
558 (_initialize_printcmd): Register observer for free_objfile instead
559 of solib_unloaded notifications.
560 * solib.c (remove_user_added_objfile): New function.
561 (_initialize_symfile): Add remove-symbol-file.
562
563 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
564
565 * infcmd.c (default_print_one_register_info): Use val_print to
566 print all values even optimized out or unavailable ones. Don't
567 try to print a raw form of optimized out or unavailable values.
568
569 2013-10-29 Yao Qi <yao@codesourcery.com>
570
571 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
572 parameter 'arg' instead of from program_space_data.
573 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
574 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
575 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
576 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
577 * inflow.c (inflow_inferior_data_cleanup): Get data from
578 parameter 'arg' instead of inferior_data.
579 * registry.h: Add comments.
580
581 2013-10-28 Pedro Alves <palves@redhat.com>
582
583 * breakpoint.c (watchpoints_triggered)
584 <!target_stopped_data_address>: Hardcode return 1.
585
586 2013-10-28 Pedro Alves <palves@redhat.com>
587
588 * infrun.c (process_event_stop_test): Remove unnecessary scoping
589 level and reindent.
590
591 2013-10-28 Pedro Alves <palves@redhat.com>
592
593 * infrun.c (process_event_stop_test): New function, factored out
594 from handle_inferior_event.
595 (handle_inferior_event): 'process_event_stop_test' is now a
596 function instead of a goto label -- adjust.
597
598 2013-10-28 Pedro Alves <palves@redhat.com>
599
600 * infrun.c (handle_inferior_event): Move process_event_stop_test
601 goto label to the else branch of the ecs->random_signal check,
602 along with FRAME and GDBARCH re-fetching.
603
604 2013-10-28 Pedro Alves <palves@redhat.com>
605
606 * infrun.c (switch_back_to_stepped_thread): New function, factored
607 out from handle_inferior_event.
608 (handle_inferior_event): Adjust to call
609 switch_back_to_stepped_thread. Call it also at the tail of the
610 random signal handling, and return, instead of also handling
611 random signals just before the stepping tests.
612
613 2013-10-28 Pedro Alves <palves@redhat.com>
614
615 * infrun.c (clear_stop_func): Delete.
616 (handle_inferior_event): Don't call clear_stop_func and don't
617 clear 'ecs->random_signal'.
618
619 2013-10-27 Yao Qi <yao@codesourcery.com>
620
621 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
622 (varobj_create, varobj_get_path_expr): Update.
623 (varobj_value_has_mutated, varobj_update): Likewise.
624 (create_child_with_value, new_root_variable): Likewise.
625 (number_of_children, name_of_variable): Likewise.
626 (value_of_child, my_value_of_variable): Likewise.
627 (varobj_value_is_changeable_p): Likewise.
628
629 2013-10-25 Yao Qi <yao@codesourcery.com>
630
631 * language.h (struct lang_varobj_ops): Declare.
632 (struct language_defn) <la_varobj_ops>: New field.
633 * ada-lang.c: Include "varobj.h"
634 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
635 ada_varobj_ops.
636 * c-lang.c: Include "varobj.h"
637 (c_language_defn): Initialize field 'la_varobj_ops' with
638 c_varobj_ops.
639 (cplus_language_defn): Initialize field 'la_varobj_ops' with
640 cplus_varobj_ops.
641 (asm_language_defn): Initialize field 'la_varobj_ops' with
642 default_varobj_ops.
643 (minimal_language_defn): Likewise.
644 * d-lang.c (d_language_defn): Likewise.
645 * f-lang.c (f_language_defn): Likewise.
646 * go-lang.c (go_language_defn): Likewise.
647 * m2-lang.c (m2_language_defn): Likewise.
648 * objc-lang.c (objc_language_defn): Likewise.
649 * opencl-lang.c (opencl_language_defn): Likewise.
650 * p-lang.c (pascal_language_defn): Likewise.
651 * language.c (unknown_language_defn): Likewise.
652 (auto_language_defn): Likewise.
653 (local_language_defn): Likewise.
654 * jv-lang.c (java_language_defn): Initialize field
655 'la_varobj_ops' with java_varobj_ops.
656 * varobj.c (varobj_create): Update.
657 * varobj.h (default_varobj_ops): Define macro.
658
659 2013-10-25 Pedro Alves <palves@redhat.com>
660
661 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
662 static field value.
663 (cp_print_static_field): If the value is entirely optimized out,
664 print <optimized out> here.
665 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
666 static field value.
667 * p-valprint.c (pascal_object_print_static_field): If the value is
668 entirely optimized out, print <optimized out> here.
669 * valops.c (do_search_struct_field)
670 (value_struct_elt_for_reference): No longer handle a NULL static
671 field value.
672 * value.c (value_static_field): Return an optimized out value
673 instead of NULL.
674
675 2013-10-25 Yao Qi <yao@codesourcery.com>
676
677 * remote.c (remote_traceframe_info): Return early if
678 traceframe is not selected.
679
680 2013-10-25 Yao Qi <yao@codesourcery.com>
681
682 * tracepoint.c (traceframe_fun): Remove.
683 (traceframe_sal): Remove.
684 (set_traceframe_context): Add local variables.
685
686 2013-10-25 Joel Brobecker <brobecker@adacore.com>
687
688 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
689 and parameter name.
690
691 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
692
693 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
694 failure from register information collection.
695
696 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
697
698 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
699 member.
700 (linux_corefile_thread_callback): Update accordingly.
701 (linux_make_corefile_notes): Likewise.
702
703 2013-10-24 Pedro Alves <palves@redhat.com>
704
705 * NEWS (New options): Mention set/show startup-with-shell.
706 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
707 instead of 3.
708 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
709 startup-with-shell'.
710 (show_startup_with_shell): New function.
711 (_initialize_fork_child): Register the set/show startup-with-shell
712 commands.
713 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
714 * inf-ttrace.c (inf_ttrace_him): Remove comment.
715 * procfs.c (procfs_init_inferior): Remove comment.
716 * infcmd.c (startup_with_shell): New global.
717 * inferior.h (startup_with_shell): Declare global.
718 (STARTUP_WITH_SHELL): Delete.
719 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
720
721 2013-10-23 Pedro Alves <palves@redhat.com>
722
723 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
724 * common/signals.c: Include "gdb_assert.h".
725 (signals): New field 'symbol'.
726 (SET): Use the 'symbol' parameter.
727 (gdb_signal_to_symbol_string): New function.
728 * infrun.c (handle_inferior_event) <random signal>: In debug
729 output, print the random signal enum as string in addition to its
730 number.
731 * target/waitstatus.c (target_waitstatus_to_string): Print the
732 signal's enum value as string instead of the (POSIX) signal name.
733
734 2013-10-23 Gary Benson <gbenson@redhat.com>
735
736 PR 16013
737 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
738 from 32 to 18. Adjusted fscanf format string accordingly.
739 (Avoids leaving cmd unterminated.)
740 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
741 trun, retn or extra. (Avoids leaving extra unterminated.) Check
742 that local_address and remote_address will not overflow.
743 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
744 leaving dependencies unterminated. Parse size as "%u" to match
745 definition.
746
747 2013-10-22 Pedro Alves <palves@redhat.com>
748
749 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
750 set ecs->random signal.
751
752 2013-10-22 Pedro Alves <palves@redhat.com>
753
754 * infrun.c (keep_going): Update comments.
755
756 2013-10-22 Pedro Alves <palves@redhat.com>
757
758 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
759 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
760
761 2013-10-22 Pedro Alves <palves@redhat.com>
762
763 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
764 GDB_EXC_BAD_ACCESS.
765 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
766 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
767 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
768 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
769 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
770 (GDB_SIGNAL_LAST): Change description string.
771 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
772 Adjust to signal renaming.
773 * darwin-nat.c (darwin_decode_message): Likewise.
774
775 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
776
777 * MAINTAINERS (Write After Approval): Add myself to the list.
778
779 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
780
781 * breakpoint.c (update_watchpoint): If hardware watchpoints are
782 forced off, downgrade them to software watchpoints if possible,
783 and error out if not possible.
784 (watch_command_1): Move watchpoint type selection closer to
785 watchpoint creation, and extend the comments.
786
787 2013-10-18 Pedro Alves <palves@redhat.com>
788
789 PR gdb/16062
790 * infrun.c (handle_inferior_event): Keep going if we got a random
791 signal we should not stop for, instead of falling through to the
792 step tests.
793
794 2013-10-18 Yao Qi <yao@codesourcery.com>
795
796 * c-varobj.c (cplus_number_of_children): Fix indentation.
797
798 2013-10-17 Tom Tromey <tromey@redhat.com>
799
800 PR gdb/15995:
801 * printcmd.c (printcmd): Call gdb_flush.
802
803 2013-10-17 Tom Tromey <tromey@redhat.com>
804
805 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
806 (elf_locate_sections): Update.
807
808 2013-10-17 Yao Qi <yao@codesourcery.com>
809
810 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
811 * ada-varobj.c: Remove the include of ada-varobj.h.
812 (ada_varobj_get_number_of_children): Declare.
813 (ada_varobj_get_name_of_child): Make it static.
814 (ada_varobj_get_path_expr_of_child): Likewise.
815 (ada_varobj_get_value_of_child): Likewise.
816 (ada_varobj_get_type_of_child): Likewise.
817 (ada_varobj_get_value_of_array_variable): Likewise.
818 * ada-varobj.h: Remove.
819
820 2013-10-17 Yao Qi <yao@codesourcery.com>
821
822 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
823 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
824 * ada-varobj.c: Include "varobj.h".
825 (ada_number_of_children): New. Moved from varobj.c.
826 (ada_name_of_variable, ada_name_of_child): Likewise.
827 (ada_path_expr_of_child, ada_value_of_child): Likewise.
828 (ada_type_of_child, ada_value_of_variable): Likewise.
829 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
830 (ada_varobj_ops): New.
831 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
832 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
833 * gdbtypes.h (get_target_type): Declare.
834 * varobj.c: Remove the inclusion of "ada-varobj.h" and
835 "ada-lang.h".
836 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
837 (ANONYMOUS_UNION_NAME): Likewise.
838 (get_type, get_value_type, get_target_type): Remove declarations.
839 (value_get_print_value, varobj_value_get_print_value): Likewise.
840 (c_number_of_children, c_name_of_variable): Likewise.
841 (c_name_of_child, c_path_expr_of_child): Likewise.
842 (c_value_of_child, c_type_of_child): Likewise.
843 (c_value_of_variable, cplus_number_of_children): Likewise.
844 (cplus_class_num_children, cplus_name_of_variable): Likewise.
845 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
846 (cplus_value_of_child, cplus_type_of_child): Likewise.
847 (cplus_value_of_variable, java_number_of_children): Likewise.
848 (java_name_of_variable, java_name_of_child): Likewise.
849 (java_path_expr_of_child, java_value_of_child): Likewise.
850 (java_type_of_child, java_value_of_variable): Likewise.
851 (ada_number_of_children, ada_name_of_variable): Likewise.
852 (ada_name_of_child, ada_path_expr_of_child): Likewise.
853 (ada_value_of_child, ada_type_of_child): Likewise.
854 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
855 (ada_value_has_mutated): Likewise.
856 (struct language_specific): Move it to varobj.h.
857 (CPLUS_FAKE_CHILD): Move it to varobj.h.
858 (restrict_range): Rename it varobj_restrict_range. Make it extern.
859 Callers update.
860 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
861 Make it extern.
862 (is_anonymous_child): Move it to c-varobj.c and rename to
863 varobj_is_anonymous_child. Caller update.
864 (get_type): Move it to c-varobj.c.
865 (get_value_type): Rename it varobj_get_value_type. Make it
866 extern.
867 (get_target_type): Move it gdbtypes.c.
868 (varobj_formatted_print_options): New function.
869 (value_get_print_value): Rename it to
870 varobj_value_get_print_value and make it extern.
871 (varobj_value_is_changeable_p): Make it extern.
872 (adjust_value_for_child_access): Move it to c-varobj.c.
873 (default_value_is_changeable_p): Rename it to
874 varobj_default_value_is_changeable_p. Make it extern.
875 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
876 (c_name_of_child, c_path_expr_of_child): Likewise.
877 (c_value_of_child, c_type_of_child): Likewise.
878 (c_value_of_variable, cplus_number_of_children): Likewise.
879 (cplus_class_num_children, cplus_name_of_variable): Likewise.
880 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
881 (cplus_value_of_child, cplus_type_of_child): Likewise.
882 (cplus_value_of_variable): Likewise.
883 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
884 (java_name_of_child, java_path_expr_of_child): Likewise.
885 (java_value_of_child, java_type_of_child): Likewise.
886 (java_value_of_variable): Likewise.
887 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
888 (ada_name_of_child, ada_path_expr_of_child): Likewise.
889 (ada_value_of_child, ada_type_of_child): Likewise.
890 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
891 (ada_value_has_mutated): Likewise.
892 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
893 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
894 (c_varobj_ops, cplus_varobj_ops): Declare.
895 (java_varobj_ops, ada_varobj_ops): Declare.
896 (varobj_default_value_is_changeable_p): Declare.
897 (varobj_value_is_changeable_p): Declare.
898 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
899 (varobj_get_path_expr_parent): Declare.
900 (varobj_value_get_print_value): Declare.
901 (varobj_formatted_print_options): Declare.
902 (varobj_restrict_range): Declare.
903
904 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
905
906 * target/waitstatus.h (target_waitkind): Remove spurious
907 character from the comments.
908
909 2013-10-17 Joel Brobecker <brobecker@adacore.com>
910
911 * gdbarch.sh (get_longjmp_target): Add method documentation.
912 * gdbarch.h: Regenerate.
913
914 2013-10-16 Tom Tromey <tromey@redhat.com>
915
916 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
917 label.
918
919 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
920
921 * gcore.in: Call GDB using the full path to the gcore script.
922 Error out if the GDB binary is not found.
923
924 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
925
926 PR gdb/16014
927 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
928 sizeof.
929
930 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
931
932 PR gdb/16042
933 * target.c (target_disable_btrace): Fix invalid return value for
934 void function.
935 (target_teardown_btrace): Likewise.
936
937 2013-10-14 Yao Qi <yao@codesourcery.com>
938
939 * varobj.c (struct varobj): Move most of the fields to
940 varobj.h.
941 (struct varobj_dynamic): New struct.
942 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
943 (varobj_has_more): Likewise.
944 (dynamic_varobj_has_child_method): Likewise.
945 (update_dynamic_varobj_children): Likewise.
946 (varobj_get_num_children): Likewise.
947 (varobj_list_children, varobj_pretty_printed_p): Likewise.
948 (install_new_value_visualizer): Likewise.
949 (install_new_value_visualizer, install_new_value): Likewise.
950 (varobj_update, new_variable, free_variable): Likewise.
951 (my_value_of_variable, value_get_print_value): Likewise.
952 (install_visualizer): Change the type of parameter 'var' to
953 'struct varobjd_dynamic *'. Callers update.
954 * varobj.h (struct varobj): Moved from varobj.c.
955 (struct varobj) <dynamic>: New field.
956
957 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
958
959 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
960 as the preferred name of r30.
961 * nios2-linux-tdep.c (reg_offsets): Likewise.
962 * features/nios2-cpu.xml: Likewise.
963 * features/nios2-linux.c: Regenerated.
964 * features/nios2.c: Regenerated.
965 * regformats/nios2-linux.dat: Regenerated.
966
967 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
968
969 Canonicalize directories for EXEC_FILENAME.
970 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
971 exec_filename.
972 * utils.c (gdb_realpath_keepfile): New function.
973 * utils.h (gdb_realpath_keepfile): New declaration.
974
975 2013-10-11 Doug Evans <dje@google.com>
976
977 * Makefile.in (GDBFLAGS): New variable.
978 (run): New rule.
979
980 2013-10-11 Joel Brobecker <brobecker@adacore.com>
981
982 * NEWS: Add entry documenting the new "-catch-assert" and
983 "-catch-exception" GDB/MI commands.
984
985 2013-10-11 Joel Brobecker <brobecker@adacore.com>
986
987 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
988 "enabled".
989 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
990 "enabled". Set B->ENABLE_STATE accordingly.
991 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
992 ada-lang.c.
993 (create_ada_exception_catchpoint): Add declaration.
994 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
995 (create_ada_exception_catchpoint): Make non-static. Add new
996 parameter "disabled". Use it in call to
997 init_ada_exception_breakpoint.
998 (catch_ada_exception_command): Add parameter "enabled" in call
999 to create_ada_exception_catchpoint.
1000 (catch_assert_command): Likewise.
1001
1002 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1003 Add declarations.
1004 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1005 "catch-exception" commands.
1006 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1007 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1008
1009 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1010
1011 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1012 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1013 of all its enumerates with "ada_". Update the rest of this
1014 file throughout.
1015
1016 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1017
1018 * ada-lang.c (ada_decode_exception_location): Delete.
1019 (create_ada_exception_catchpoint): Remove arguments "sal",
1020 "addr_string" and "ops". Add argument "ex_kind" instead.
1021 Adjust implementation accordingly, calling ada_exception_sal
1022 to get the entities it no longer gets passed as arguments.
1023 Document the function's arguments.
1024 (catch_ada_exception_command): Use catch_ada_exception_command_split
1025 instead of ada_decode_exception_location, and update call to
1026 create_ada_exception_catchpoint.
1027 (catch_ada_assert_command_split): Renames
1028 ada_decode_assert_location. Remove parameters "addr_string" and
1029 "ops", and now returns void. Adjust implementation accordingly.
1030 Update the function documentation.
1031 (catch_assert_command): Use catch_ada_assert_command_split
1032 instead of ada_decode_assert_location. Update call to
1033 create_ada_exception_catchpoint.
1034
1035 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1036
1037 * utils.h (perror_warning_with_name): Add declaration.
1038 * utils.c (perror_warning_with_name): New function.
1039 * cli/cli-cmds.c (source_script_with_search): Add call to
1040 perror_warning_with_name if from_tty is nul.
1041
1042 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1043
1044 * utils.c (perror_string): New function, extracted out of
1045 throw_perror_with_name.
1046 (throw_perror_with_name): Rework to use perror_string.
1047
1048 2013-10-11 Yao Qi <yao@codesourcery.com>
1049
1050 * remote.c (discard_pending_stop_replies_in_queue): Update
1051 declaration.
1052 (struct stop_reply) <rs>: New field.
1053 (remove_stop_reply_of_remote_state): New function.
1054 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1055 Callers update. Pass remove_stop_reply_of_remote_state to
1056 QUEUE_iterate.
1057 (remote_parse_stop_reply): Initialize field 'rs'.
1058
1059 2013-10-10 Will Newton <will.newton@linaro.org>
1060
1061 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1062 linux_init_abi.
1063
1064 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1065
1066 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1067 serial_baud_show_cmd.
1068 (_initialize_cli_cmds): Delete the code creating the
1069 "set/show remotebaud" commands.
1070 * serial.c (baud_rate): Move here from top.c.
1071 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1072 (_initialize_serial): Create "set/show serial baud" commands.
1073 Add "set/show remotebaud" command aliases.
1074 * top.c (baud_rate): Moved to serial.c.
1075 * NEWS: Document the new "set/show serial baud" commands,
1076 replacing "set/show remotebaud".
1077
1078 2013-10-09 Pedro Alves <palves@redhat.com>
1079
1080 * breakpoint.c (insert_bp_location): Use memory_error_message to
1081 build the memory error string.
1082 * c-lang.c: Include "gdbcore.h".
1083 (c_get_string): Use memory_error to throw error.
1084 (target_xfer_memory_error): Delete.
1085 (memory_error_message): New, factored out from
1086 target_xfer_memory_error.
1087 (memory_error): Change parameter type to target_xfer_error.
1088 Rewrite.
1089 (read_memory): Use memory_error instead of
1090 target_xfer_memory_error.
1091 * gdbcore.h: Include "target.h".
1092 (memory_error): Change parameter type to target_xfer_error.
1093 (memory_error_message): Declare function.
1094 * target.c (target_read_memory, target_read_stack)
1095 (target_write_memory, target_write_raw_memory): Return
1096 TARGET_XFER_E_IO on error. Adjust comments.
1097 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1098 instead of EIO.
1099 * target.h (target_read, target_insert_breakpoint)
1100 (target_remove_breakpoint): Adjust comments.
1101 * valprint.c (partial_memory_read): Rename parameter, and adjust
1102 comment.
1103 (val_print_string): Use memory_error_message to build the memory
1104 error string.
1105
1106 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1107
1108 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1109 result variable. Rename variable fopen_e_ever_failed to
1110 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1111
1112 2013-10-09 Pedro Alves <palves@redhat.com>
1113
1114 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1115 (monitor_write_memory_longlongs, monitor_write_memory_block):
1116 Constify 'myaddr' parameter.
1117 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1118 helper.
1119 (monitor_xfer_partial): New function.
1120 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1121 hook. Install a to_xfer_partial hook.
1122
1123 2013-10-09 Tom Tromey <tromey@redhat.com>
1124
1125 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1126 bfd_get_alt_debug_link_info.
1127
1128 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1129
1130 New flag OBJF_NOT_FILENAME.
1131 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1132 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1133 allocate_objfile.
1134 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1135 symbol_file_add_from_bfd.
1136 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1137 allocate_objfile.
1138 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1139 NULL.
1140 * objfiles.h (OBJF_NOT_FILENAME): New.
1141
1142 2013-10-08 Tom Tromey <tromey@redhat.com>
1143
1144 * Makefile.in (SFILES): Add build-id.c.
1145 (HFILES_NO_SRCDIR): Add build-id.h.
1146 * build-id.c: New file, largely from elfread.c. Modified
1147 most functions.
1148 * build-id.h: New file.
1149 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1150 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1151 Search for dwz file using build-id.
1152 * elfread.c (build_id_bfd_get, build_id_verify)
1153 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1154
1155 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1156
1157 * ada-lang.c (compare_names_with_case): Renamed from
1158 compare_names, adding a new parameter "casing" and its handling.
1159 New function documentation.
1160 (compare_names): New function, implemented using
1161 compare_names_with_case.
1162
1163 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1164
1165 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1166
1167 2013-10-07 Tom Tromey <tromey@redhat.com>
1168
1169 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1170 demangled_names_hash.
1171 (free_objfile): Don't delete the demangled_names_hash.
1172 * objfiles.h (struct objfile_per_bfd_storage)
1173 <demangled_names_hash>: New field.
1174 (struct objfile) <demangled_names_hash>: Move to
1175 objfile_per_bfd_storage.
1176 * symfile.c (reread_symbols): Don't delete the
1177 demangled_names_hash.
1178 * symtab.c (create_demangled_names_hash): Update.
1179 (symbol_set_names): Update.
1180
1181 2013-10-07 Tom Tromey <tromey@redhat.com>
1182
1183 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1184 needs_relocations>: New fields.
1185 (gdb_bfd_requires_relocations): New function.
1186 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1187 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1188 the BFD needs relocations applied.
1189
1190 2013-10-07 Pedro Alves <palves@redhat.com>
1191
1192 PR breakpoints/11568
1193 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1194 the thread list" instead of "gone".
1195
1196 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1197
1198 * NEWS: Mention new convenience variable $_exitsignal.
1199 * corelow.c (core_open): Reset exit convenience variables. Set
1200 $_exitsignal to the uncaught signal which generated the corefile.
1201 * infrun.c (handle_inferior_event): Reset exit convenience
1202 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1203 (clear_exit_convenience_vars): New function.
1204 * inferior.h (clear_exit_convenience_vars): New prototype.
1205
1206 2013-10-06 Yao Qi <yao@codesourcery.com>
1207
1208 * varobj.h: Add comments to enum varobj_languages.
1209
1210 2013-10-04 Doug Evans <dje@google.com>
1211
1212 Add support for DWP file format version 2.
1213 * NEWS: Mention support for DWP file format version 2.
1214 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1215 union of asection, containing_section. New fields virtual_offset
1216 and is_virtual. Change type of readin filed from int to char.
1217 (dwo_sections, dwo_file): Tweak comments.
1218 (dwp_v2_section_ids): New enum.
1219 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1220 str_offsets, types.
1221 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1222 All uses updated.
1223 (virtual_v2_dwo_sections): New struct.
1224 (dwp_hash_table): New fields version, nr_columns. Change type of
1225 section_pool field to a union.
1226 (dwp_file): New field version.
1227 (dwarf2_has_info): Check for virtual sections.
1228 (get_containing_section): New function.
1229 (get_section_bfd_owner, get_section_bfd_section): Call it.
1230 (dwarf2_locate_sections): Update.
1231 (dwarf2_section_empty_p): Update.
1232 (dwarf2_read_section): Handle virtual sections.
1233 (locate_dwz_sections): Update.
1234 (create_dwp_hash_table): Document and handle V2 format.
1235 (locate_v1_virtual_dwo_sections): Renamed from
1236 locate_virtual_dwo_sections and update. All callers updated.
1237 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1238 Delete arg htab. Rename arg section_index to unit_index.
1239 All callers updated.
1240 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1241 All uses updated.
1242 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1243 (lookup_dwo_unit_in_dwp): Add V2 support.
1244 (dwarf2_locate_dwo_sections): Update.
1245 (dwarf2_locate_common_dwp_sections): Renamed from
1246 dwarf2_locate_dwp_sections and update. All callers updated.
1247 (dwarf2_locate_v2_dwp_sections): New function.
1248 (open_and_init_dwp_file): Add V2 support.
1249 (read_str_index): New locals str_section, str_offsets_section.
1250
1251 2013-10-04 Pedro Alves <palves@redhat.com>
1252
1253 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1254 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1255 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1256 describing comments with references to ptid.h.
1257 * common/ptid.h: Remove intro description of constructors,
1258 accessors and predicates.
1259 (struct ptid): Reformat.
1260 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1261 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1262 describing comments.
1263
1264 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1265
1266 * aix-thread.c (sync_threadlists): Add missing ')' in call
1267 to ptid_build.
1268
1269 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1270
1271 * procfs.c (procfs_init_inferior): Fix typo causing the build
1272 to fail.
1273
1274 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1275
1276 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1277
1278 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1279
1280 * mi/mi-main.c (run_one_inferior): Add function description.
1281 Make ARG a pointer to an integer whose value determines whether
1282 we should "run" or "start" the program.
1283 (mi_cmd_exec_run): Add handling of the "--start" option.
1284 Reject all other command-line options.
1285 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1286
1287 2013-10-04 Yao Qi <yao@codesourcery.com>
1288
1289 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1290 (struct notif_client) <pending_event>: Moved
1291 to struct remote_notif_state.
1292 <id>: New field.
1293 (struct remote_notif_state) <pending_event>: New field.
1294 (notif_event_xfree): Declare.
1295 * remote-notif.c (handle_notification): Adjust.
1296 (notif_event_xfree): New function.
1297 (do_notif_event_xfree): Call notif_event_xfree.
1298 (remote_notif_state_xfree): Call notif_event_xfree to free
1299 each element in field pending_event.
1300 * remote.c (discard_pending_stop_replies): Remove declaration.
1301 (discard_pending_stop_replies_in_queue): Declare.
1302 (remote_close): Call discard_pending_stop_replies_in_queue
1303 instead of discard_pending_stop_replies.
1304 (remote_start_remote): Adjust.
1305 (stop_reply_xfree): Call notif_event_xfree.
1306 (notif_client_stop): Adjust initialization.
1307 (remote_notif_remove_all): Rename it to ...
1308 (remove_stop_reply_for_inferior): ... this. Update comments.
1309 Don't check INF is NULL.
1310 (discard_pending_stop_replies): Return early if notif_state is
1311 NULL. Adjust. Don't check INF is NULL.
1312 (remote_notif_get_pending_events): Adjust.
1313 (discard_pending_stop_replies_in_queue): New function.
1314 (remote_wait_ns): Likewise.
1315
1316 2013-10-04 Yao Qi <yao@codesourcery.com>
1317
1318 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1319 (notif_queue): Remove.
1320 (remote_notif_process): Add one parameter 'notif_queue'.
1321 Update comments. Callers update.
1322 (remote_async_get_pending_events_token): Remove.
1323 (remote_notif_register_async_event_handler): Remove.
1324 (remote_notif_unregister_async_event_handler): Remove.
1325 (handle_notification): Add parameter 'notif_queue'. Update
1326 comments. Callers update.
1327 (notif_xfree): Remove.
1328 (remote_notif_state_allocate): New function.
1329 (remote_notif_state_xfree): New function.
1330 (_initialize_notif): Remove code to allocate queue.
1331 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1332 (struct remote_notif_state): New.
1333 (handle_notification): Update declaration.
1334 (remote_notif_process): Likewise.
1335 (remote_notif_register_async_event_handler): Remove.
1336 (remote_notif_unregister_async_event_handler): Remove.
1337 (remote_notif_state_allocate): Declare.
1338 (remote_notif_state_xfree): Declare.
1339 * remote.c (struct remote_state) <notif_state>: New field.
1340 (remote_close): Don't call
1341 remote_notif_unregister_async_event_handler. Call
1342 remote_notif_state_xfree.
1343 (remote_open_1): Don't call
1344 remote_notif_register_async_event_handler. Call
1345 remote_notif_state_allocate.
1346
1347 2013-10-04 Yao Qi <yao@codesourcery.com>
1348
1349 * varobj.c (create_child_with_value): Remove 'const' from the
1350 type of parameter 'name'.
1351 (varobj_add_child): Likewise.
1352 (install_dynamic_child): Remove 'const' from the type of
1353 parameter 'name'.
1354 (varobj_add_child): Likewise.
1355 (create_child_with_value): Likewise. Update comments. Don't
1356 duplicate 'name'.
1357 (update_dynamic_varobj_children): Duplicate 'name'
1358 and pass it to install_dynamic_child.
1359
1360 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1361
1362 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1363 conversion logic to occur after PyLong_Check. Comment on order
1364 change significance.
1365 * python/py-arch.c (archpy_disassemble): Comment on order of
1366 conversion for integers and longs.
1367
1368 2013-10-03 Pedro Alves <palves@redhat.com>
1369
1370 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1371 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1372 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1373 PTRACE_O_TRACEFORK is not supported.
1374 (linux_test_for_tracesysgood): New function.
1375 (linux_test_for_tracefork): New function, factored out from
1376 linux_check_ptrace_features, and also don't kill child_pid here.
1377
1378 2013-10-03 Tristan Gingold <gingold@adacore.com>
1379
1380 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1381 Remove verbose error reporting. Use detected state to
1382 thread_set_state call.
1383 (i386_darwin_dr_get): Fix return type. Remove verbose error
1384 report.
1385 Remove trailing spaces.
1386
1387 2013-10-02 Pedro Alves <palves@redhat.com>
1388
1389 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1390 val_print_optimized_out.
1391 * jv-valprint.c (java_print_value_fields): Likewise.
1392 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1393 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1394 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1395 new optimized out value.
1396 * findvar.c (address_from_register): Likewise.
1397 * frame.c (put_frame_register): Tweak error string to say the
1398 register was not saved, rather than optimized out.
1399 * infcmd.c (default_print_one_register_info): Adjust call to
1400 val_print_optimized_out. Use value_of_register instead of
1401 get_frame_register_value.
1402 * mi/mi-main.c (output_register): Use value_of_register instead of
1403 get_frame_register_value.
1404 * valprint.c (valprint_check_validity): Likewise.
1405 (val_print_optimized_out): New value parameter. If the value is
1406 lval_register, print <not saved> instead.
1407 (value_check_printable, val_print_scalar_formatted): Adjust calls
1408 to val_print_optimized_out.
1409 * valprint.h (val_print_optimized_out): New value parameter.
1410 * value.c (struct value) <optimized_out>: Extend comment.
1411 (error_value_optimized_out): New function.
1412 (require_not_optimized_out): Use it. Use a different string for
1413 lval_register values.
1414 * value.h (error_value_optimized_out): New declaration.
1415 * NEWS: Mention <not saved>.
1416
1417 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1418
1419 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1420 strcmp to compare two symtab filenames.
1421
1422 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1423
1424 * symtab.c (search_symbols_equal): Delete.
1425 (sort_search_symbols_remove_dups): Replace call to
1426 search_symbols_equal by call to compare_search_syms,
1427 adjusting as necessary.
1428
1429 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1430
1431 PR python/15579
1432 * python/python.c: Document gdb.execute command in Python help.
1433
1434 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1435
1436 * python/py-frame.c (frame_info_to_frame_object): Use
1437 gdbpy_convert_exception. Clean up Python object on failure.
1438
1439 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1440
1441 * python/lib/gdb/command/frame_filters.py
1442 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1443 (ShowFrameFilterPriority.invoke): Ditto.
1444
1445 2013-10-01 Keith Seitz <keiths@redhat.com>
1446
1447 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1448 (parse_linespec): Make 'argptr' const.
1449 Remove temporary cast of 'argptr' to const char **.
1450 (decode_line_full): Pass const pointer to parse_linespec.
1451 (decode_line_1): Likewise.
1452 (decode_objc): Make local variable 'new_argptr' const.
1453 (find_function_symbols): Remove temporary cast to char *
1454 to find_imps.
1455 * objc-lang.c (find_imps): Make argument 'method' const.
1456 Return const.
1457 * objc-lang.h (find_imps): Likewise.
1458
1459 2013-10-01 Keith Seitz <keiths@redhat.com>
1460
1461 * completer.c (skip_quoted_chars): Make all arguments const.
1462 Return const.
1463 (skip_quoted): Likewise.
1464 * completer.h (skip_quoted_chars): Likewise.
1465 (skip_quoted): Likewise.
1466 * defs.h (skip_quoted): Remove duplicate declaration.
1467 * jv-exp.y: Include completer.h.
1468 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1469 * p-exp.y: Include completer.h.
1470
1471 2013-10-01 Keith Seitz <keiths@redhat.com>
1472
1473 * c-exp.y (parse_number): Make first argument const.
1474 Make a copy of the input to manipulate.
1475 (c_parse_escape): Make first argument const.
1476 Make local variable 'tokptr' const.
1477 (parse_string_or_char): Make first two arguments const.
1478 (macro_original_text): Make const.
1479 (lex_one_token): Make local variable 'tokstart' const.
1480 Likewise for local variables named 'p'.
1481 Cast away const for struct stoken (temporary).
1482 * c-lang.h (c_parse_escpae): Make first argument const.
1483 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1484 const.
1485 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1486 var_string case.
1487 * f-exp.y (parse_number): Make first argument const.
1488 (match_string_literal): Make local variable 'tokstart'
1489 const.
1490 (yylex): Make local variable 'p' const.
1491 Cast away const for struct stoken (temporary).
1492 * go-exp.y (parse_number): Make first argument const.
1493 (parse_string_or_char): Likewise.
1494 Make local variable 'tokstart' const.
1495 (lex_one_token): Likewise for numerous locals called 'p'.
1496 Cast away const for struct stoken (temporary).
1497 * jv-exp.y (parse_number): Make first argument const.
1498 Make local variables 'tokstart' and 'tokptr' const.
1499 Cast away const for call to skip_quoted (temporary).
1500 (yylex): Make local variable 'p' const.
1501 Cast away const for struct stoken (temporary).
1502 * m2-exp.y (parse_number): Make local variable 'p' const.
1503 (yylex): Likewise for 'tokstart'.
1504 Cast away const for struct stoken (temporary).
1505 Make local variable 'p' const.
1506 * macroexp.c (get_character_constant): Pass a const string
1507 to c_parse_escape.
1508 (get_string_literal): Likewise.
1509 (macro_expand_next): Make first argument const.
1510 Cast away const for init_shared_buffer.
1511 * macroexp.h (macro_expand_next): Make first argument const.
1512 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1513 Pass a const string to c_parse_escape.
1514 Make local variables 'p' and 'namestart' const.
1515 * parse.c (lexptr): Make const.
1516 (prev_lexptr): Likewise.
1517 (find_template_name_end): Return const.
1518 Make argument const, too.
1519 (parse_exp_in_context): Make first argument const.
1520 Remove the entire const_hack.
1521 (parse_exp_in_context_1): Make first argument const.
1522 * parser-defs.h (find_template_name_end): Return const.
1523 Make argument const, too.
1524 (lexptr): Make const.
1525 (prev_lexptr): Likewise.
1526 * utils.c (parse_escape): Make second argument const.
1527 * utils.h (parse_escape): Likewise.
1528
1529 2013-10-01 Keith Seitz <keiths@redhat.com>
1530
1531 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1532 is now const.
1533 (block_lookup): Make 'raw_name' and 'name' const.
1534 * ada-lex.l (processString): Update for struct stoken.ptr.
1535 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1536 (operator_stoken): Likewise.
1537 (lex_one_token): Remove temporary cast to char * for
1538 'yylval.sval.ptr'.
1539 * f-exp.y (yylex): Likewise.
1540 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1541 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1542 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1543 'yylval.sval.ptr'.
1544 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1545 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1546 * linespec.c (struct ls_parser): Make 'stream' const.
1547 (find_parameter_list_end): Make argument 'input' and local
1548 variable 'p' const.
1549 (linespec_lexer_lex_string): Make local variables 'start' and
1550 'p' const.
1551 Use skip_spaces_const instead of skip_spaces.
1552 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1553 const.
1554 (parse_linespec): Temporarily cast 'argptr' to const for
1555 'parser->lexer.stream'.
1556 * m2-exp.y (yylex): Remove temporary cast to char * for
1557 'yylval.sval.ptr'.
1558 * objc-lang.c (add_msglist): Make local variable 'p' const.
1559 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1560 (exp : STRING): Make 'sp' const.
1561 (parse_number): Make argument 'p' const.
1562 * parser-defs.h (struct stoken): Make 'ptr' const.
1563
1564 2013-10-01 Doug Evans <dje@google.com>
1565
1566 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1567
1568 2013-10-01 Yao Qi <yao@codesourcery.com>
1569
1570 * varobj.c (c_value_of_root): Remove declaration.
1571 (cplus_value_of_root, java_value_of_root): Likewise.
1572 (ada_value_of_root): Likewise.
1573 (struct language_specific) <value_of_root>: Remove.
1574 (languages): Update initialization.
1575 (check_scope): Move earlier.
1576 (c_value_of_root): Move earlier and rename to ...
1577 (value_of_root_1): ... this.
1578 (value_of_root): Caller update.
1579 (cplus_value_of_root, java_value_of_root): Remove.
1580 (ada_value_of_root): Remove.
1581
1582 2013-10-01 Yao Qi <yao@codesourcery.com>
1583
1584 * varobj.c (varobj_format_string): Remove "unknown".
1585 (languages): Remove the first element.
1586 * varobj.h (enum varobj_languages): Remove vlang_c.
1587
1588 2013-10-01 Yao Qi <yao@codesourcery.com>
1589
1590 * varobj.c (struct language_specific) <language>: Remove.
1591 (languages): Update the initialization.
1592
1593 2013-10-01 Yao Qi <yao@codesourcery.com>
1594
1595 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1596 "solib-target.h". Include "windows-tdep.h".
1597 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1598 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1599 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1600 windows-tdep.o to gdb_target_obs.
1601
1602 2013-10-01 Yao Qi <yao@codesourcery.com>
1603
1604 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1605 "solib-target.h".
1606 (amd64_windows_init_abi): Don't call set_solib_ops and
1607 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1608 windows_init_abi instead.
1609 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1610 "solib-target.h".
1611 (i386_cygwin_init_abi): Don't call set_solib_ops,
1612 set_gdbarch_has_dos_based_file_system and
1613 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1614 windows_init_abi instead.
1615 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1616 (windows_init_abi): New function.
1617 (windows_iterate_over_objfiles_in_search_order): Make it
1618 static.
1619 * windows-tdep.h (windows_init_abi): Declare.
1620 (windows_iterate_over_objfiles_in_search_order): Remove
1621 declaration.
1622
1623 2013-10-01 Jerome Guitton <guitton@adacore.com>
1624
1625 Checked in by Joel Brobecker <brobecker@adacore.com>
1626 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1627 incomplete dictionnary instead of None in case of missing
1628 environment variables.
1629 (elinos_init): in case of an incomplete environment, best
1630 effort to load system libraries instead of abort.
1631
1632 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1633
1634 * ada-lang.c (ada_has_this_exception_support): Ignore
1635 mst_solib_trampoline minimal symbols.
1636
1637 2013-09-30 Tristan Gingold <gingold@adacore.com>
1638
1639 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1640 hardware watchpoint.
1641 (i386_darwin_dr_set): Support 32 and 64 bit states.
1642 (i386_darwin_dr_get): Likewise.
1643 (i386_darwin_dr_set_control): Make static.
1644 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1645 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1646
1647 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1648
1649 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1650 Replace TIDGET with ptid_get_lwp.
1651 Replace GET_LWP with ptid_get_lwp.
1652 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1653 Replace BUILD_THREAD with ptid_build.
1654 Replace BUILD_LWP with ptid_build.
1655 Replace PIDGET with ptid_get_pid.
1656 Replace TIDGET with ptid_get_lwp.
1657 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1658 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1659 Replace TIDGET with ptid_get_lwp.
1660 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1661 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1662 Replace TIDGET with ptid_get_lwp.
1663 Replace GET_LWP with ptid_get_lwp.
1664 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1665 * auxv.c: Likewise.
1666 * breakpoint.c: Likewise.
1667 * common/ptid.c (ptid_is_pid): Condense check for
1668 null_ptid and minus_one_ptid.
1669 (ptid_lwp_p): New function.
1670 (ptid_tid_p): New function.
1671 * common/ptid.h: Update comments for accessors.
1672 (ptid_lwp_p): New prototype.
1673 (ptid_tid_p): New prototype.
1674 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1675 * gcore.c: Replace PIDGET with ptid_get_pid.
1676 * gdbthread.h: Likewise.
1677 * gnu-nat.c: Likewise.
1678 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1679 Replace TIDGET with ptid_get_lwp.
1680 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1681 * hppanbsd-nat.c: Likewise.
1682 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1683 Replace TIDGET with ptid_get_lwp.
1684 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1685 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1686 * infcmd.c: Likewise.
1687 * inferior.h: Likewise.
1688 * inflow.c: Likewise.
1689 * infrun.c: Likewise.
1690 * linux-fork.c: Likewise.
1691 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1692 Replace GET_PID with ptid_get_pid.
1693 Replace is_lwp with ptid_lwp_p.
1694 Replace GET_LWP with ptid_get_lwp.
1695 Replace BUILD_LWP with ptid_build.
1696
1697 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1698
1699 * common/linux-btrace.c: Move sys/syscall.h out of the
1700 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1701 Also check for SYS_perf_event_open before attempting to buid.
1702
1703 2013-09-27 Doug Evans <dje@google.com>
1704
1705 * dwarf2read.c (dwarf2_section_info): Add comment.
1706 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1707 All uses updated.
1708 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1709 (dwarf2_read_section): Delete unused local "header". Add section
1710 name to error message.
1711 (create_dwo_in_dwp): Tweak comment.
1712 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1713
1714 * dwarf2read.c (die_reader_specs): Tweak comment.
1715 (get_section_bfd_owner, get_section_bfd_section): New functions.
1716 (get_section_name, get_section_file_name): New functions.
1717 (get_section_id, get_section_flags): New functions.
1718 (*): Use new functions to access section fields.
1719
1720 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1721 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1722 arg "htab". All callers updated.
1723 (create_debug_types_hash_table): Remove redundant copy of
1724 abbrev_section.
1725 (create_dwo_in_dwp): Tweak comments.
1726 (read_str_index): Tweak comment. Record dwarf form name in static
1727 local.
1728
1729 2013-09-27 Pedro Alves <palves@redhat.com>
1730
1731 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1732 (remote_filename_p): Add comment.
1733 * remote.c (remote_filename_p): Adjust to use
1734 REMOTE_SYSROOT_PREFIX.
1735 * solib.c (solib_find): When deciding whether we need to add a
1736 directory separator, check whether the sysroot is "remote:"
1737 instead of checking whether the patch has a drive spec. Add
1738 comments.
1739
1740 2013-09-27 Pedro Alves <palves@redhat.com>
1741
1742 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1743 Delete fields.
1744 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1745 directly.
1746
1747 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1748
1749 Fix set debug frame output.
1750 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1751 SENTINEL_FRAME entry lower to match enum frame_type order.
1752
1753 2013-09-26 Pierre Muller <muller@sourceware.org>
1754
1755 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1756 AMD64_R15_REGNUM when a register index is expected.
1757 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1758 Substitute in array.
1759 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1760 (amd64_push_arguments): Substitute in integer_regnum array.
1761
1762 2013-09-25 Doug Evans <dje@google.com>
1763
1764 * objfiles.c (allocate_objfile): Move comment to better place.
1765
1766 New option "set debug symfile on".
1767 * NEWS: Mention "set debug symfile".
1768 * Makefile.in (SFILES): Add symfile-debug.c.
1769 (COMMON_OBS): Add symfile-debug.o.
1770 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1771 objfile's symbol functions.
1772 * objfiles.h (objfile_set_sym_fns): Declare.
1773 * symfile-debug.c: New file.
1774 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1775 objfile's symbol functions.
1776 (reread_symbols): Ditto.
1777
1778 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1779 All uses updated.
1780 (add_symtab_fns): Update prototype.
1781 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1782 (registered_sym_fns): ... this.
1783 (symtab_fns): Update.
1784 (add_symtab_fns): New arg "flavour". All callers updated.
1785 (find_sym_fns): Rewrite to use new sym_fns registry.
1786
1787 * symfile.h (struct sym_fns): Add "objfile" argument to
1788 sym_read_linetable. All uses updated.
1789
1790 * symtab.c (domain_name, search_domain_name): New functions.
1791 * symtab.h (domain_name, search_domain_name): Declare.
1792
1793 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1794 map_matching_symbols so objfile is first. All uses updated.
1795 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1796 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1797
1798 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1799
1800 PR shlibs/8882
1801 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1802 link map entries.
1803
1804 2013-09-24 Doug Evans <dje@google.com>
1805
1806 * objfiles.c (free_objfile): Move comment.
1807
1808 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1809
1810 * ada-exp.y (string_to_operator): Delete.
1811 (dummy_string_to_ada_operator): Delete.
1812
1813 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1814
1815 Revert:
1816 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1817 amd64-tdep.c.
1818 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1819 call_dummy_integer_regs, and classify.
1820 * amd64-tdep.h (amd64_classify): Add declaration.
1821 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1822 (amd64_reg_class): Delete, moved to i386-tdep.h.
1823 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1824 Replace call to amd64_classify by call to tdep->classify.
1825 (amd64_push_arguments): Get the list of registers to use for
1826 passing integer parameters from the gdbarch tdep structure,
1827 rather than using a hardcoded one. Replace calls to amd64_classify
1828 by calls to tdep->classify.
1829 (amd64_push_dummy_call): Get the register number used for
1830 the "hidden" argument from tdep->call_dummy_integer_regs.
1831 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1832 and tdep->call_dummy_integer_regs. Set tdep->classify.
1833
1834 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1835
1836 Revert:
1837 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1838 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1839 where tdep->memory_args_by_pointer is non-zero.
1840
1841 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1842
1843 Revert:
1844 * i386-tdep.h (struct gdbarch_tdep): Add new field
1845 integer_param_regs_saved_in_caller_frame.
1846 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1847 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1848
1849 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1850
1851 * amd64-windows-tdep.c: #include "value.h"
1852 (amd64_windows_classify): Delete.
1853 (amd64_windows_passed_by_integer_register)
1854 (amd64_windows_passed_by_xmm_register)
1855 (amd64_windows_passed_by_pointer)
1856 (amd64_windows_adjust_args_passed_by_pointer)
1857 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1858 (amd64_windows_push_dummy_call): New functions.
1859 (amd64_windows_init_abi): Remove setting of
1860 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1861 tdep->classify, tdep->memory_args_by_pointer and
1862 tdep->integer_param_regs_saved_in_caller_frame.
1863 Add call to set_gdbarch_push_dummy_call.
1864
1865 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1866
1867 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1868 objfile->original_name.
1869
1870 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1871
1872 Pass down original filename for objfile.
1873 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1874 * elfread.c (elf_symfile_read): Likewise.
1875 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1876 longer set ORIGINAL_NAME.
1877 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1878 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1879 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1880 symbol_file_add_from_bfd call.
1881 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1882 (macho_check_dsym): Add parameter filenamep. Change function comment.
1883 Set *filenamep.
1884 (macho_symfile_read): New variable dsym_filename. Update
1885 macho_check_dsym call. Use it for symbol_file_add_separate.
1886 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1887 it. Use it for objfile->original_name.
1888 (objfile_name): Return OBFD's filename, if available.
1889 * objfiles.h (allocate_objfile): Add new parameter name.
1890 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1891 * symfile-mem.c (symbol_file_add_from_memory): Update
1892 symbol_file_add_from_bfd call.
1893 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1894 comment for it.
1895 (symbol_file_add_with_addrs): New parameter name, add function comment
1896 for it. Remove variable name. Update allocate_objfile call.
1897 (symbol_file_add_separate): New parameter name, add function comment
1898 for it. Update symbol_file_add_with_addrs call.
1899 (symbol_file_add_from_bfd): New parameter name. Update
1900 symbol_file_add_with_addrs call.
1901 (symbol_file_add): Update symbol_file_add_from_bfd call.
1902 (reread_symbols): New variable original_name. Save
1903 objfile->original_name by it.
1904 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1905 second parameter.
1906
1907 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1908
1909 Code cleanup: Add objfile_name accessor function.
1910 * ada-lang.c (is_known_support_routine): Use objfile_name.
1911 * auto-load.c (source_gdb_script_for_objfile)
1912 (auto_load_objfile_script): Likewise.
1913 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1914 * dbxread.c (dbx_symfile_read): Likewise.
1915 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1916 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1917 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1918 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1919 (lookup_dwp_signatured_type, lookup_dwo_unit)
1920 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1921 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1922 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1923 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1924 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1925 (read_subrange_type, load_partial_dies, read_partial_die)
1926 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1927 (die_containing_type, build_error_marker_type, lookup_die_type)
1928 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1929 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1930 (get_DW_AT_signature_type, write_psymtabs_to_index)
1931 (save_gdb_index_command): Likewise.
1932 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1933 Likewise.
1934 * expprint.c (dump_subexp_body_standard): Likewise.
1935 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1936 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1937 original_name.
1938 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1939 obj_name, use objfile_name for it, use the variable.
1940 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1941 Use objfile_name.
1942 * machoread.c (macho_symtab_read, macho_check_dsym)
1943 (macho_symfile_relocate): Likewise.
1944 * maint.c (maintenance_translate_address): Likewise.
1945 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1946 * minsyms.c (install_minimal_symbols): Likewise.
1947 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1948 original_name.
1949 (filter_overlapping_sections): Use objfile_name.
1950 (objfile_name): New function.
1951 * objfiles.h (struct objfile): Rename field name to original_name.
1952 (objfile_name): New prototype.
1953 * printcmd.c (sym_info, address_info): Use objfile_name.
1954 * probe.c (parse_probes, collect_probes, compare_probes)
1955 (info_probes_for_ops): Likewise.
1956 * progspace.c (clone_program_space): Likewise.
1957 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1958 (maintenance_info_psymtabs): Likewise.
1959 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1960 (source_section_scripts): Likewise.
1961 * python/py-objfile.c (objfpy_get_filename): Likewise.
1962 * python/py-progspace.c (pspy_get_filename): Likewise.
1963 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1964 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1965 * solib.c (solib_read_symbols): Likewise.
1966 * stabsread.c (scan_file_globals): Likewise.
1967 * stap-probe.c (handle_stap_probe): Likewise.
1968 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1969 (find_separate_debug_file_by_debuglink): Likewise.
1970 (reread_symbols): Likewise. Use the objfile field name renamed to
1971 original_name.
1972 (allocate_symtab): Use objfile_name.
1973 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1974 (dump_objfile, dump_msymbols, dump_symtab_1)
1975 (maintenance_print_msymbols, maintenance_print_objfiles)
1976 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1977 * target.c (target_translate_tls_address, target_info): Likewise.
1978 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1979 objfile_name.
1980
1981 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1982
1983 Code cleanup.
1984 * probe.c (parse_probes): Rename variable objfile_name to
1985 objfile_namestr.
1986
1987 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1988
1989 Remove solib-sunos.c.
1990 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1991 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1992 * objfiles.c (rt_common_objfile): Remove.
1993 (free_objfile): Remove rt_common_objfile comparison.
1994 * objfiles.h (rt_common_objfile): Remove.
1995 * solib-sunos.c: Remove.
1996 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1997
1998 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1999
2000 Remove a.out NetBSD and OpenBSD hosts.
2001 * NEWS (Removed native configurations): New.
2002 * config/arm/nbsdaout.mh: Remove.
2003 * config/i386/nbsdaout.mh: Remove.
2004 * config/i386/obsdaout.mh: Remove.
2005 * config/m68k/nbsdaout.mh: Remove.
2006 * config/sparc/nbsdaout.mh: Remove.
2007 * config/vax/nbsdaout.mh: Remove.
2008 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2009 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2010 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2011 error.
2012 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2013 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2014 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2015
2016 2013-09-23 Tom Tromey <tromey@redhat.com>
2017
2018 * linespec.c (struct minsym_and_objfile): Remove.
2019 (minsym_and_objfile_d): Remove.
2020 (struct linespec, struct collect_info, linespec_parse_basic)
2021 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2022 (compare_msymbols, find_method, find_function_symbols)
2023 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2024 (add_minsym, search_minsyms_for_name): Update.
2025
2026 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2027
2028 * regcache.c: Add include of valprint.h.
2029 (dump_endian_bytes): Delete.
2030 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2031
2032 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2033
2034 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2035
2036 2013-09-19 Pedro Alves <palves@redhat.com>
2037
2038 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2039 breakpoints.
2040
2041 2013-09-19 Pedro Alves <palves@redhat.com>
2042 Thomas Schwinge <thomas@codesourcery.com>
2043 Yue Lu <hacklu.newborn@gmail.com>
2044
2045 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2046 Take a gdb_byte pointer instead of a char pointer.
2047
2048 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2049 gnu_xfer_partial helper.
2050 (gnu_xfer_partial): New function.
2051 (gnu_target): Don't install a deprecated_xfer_memory hook.
2052 Install a to_xfer_partial hook.
2053
2054 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2055
2056 Constification.
2057 * main.c (captured_main): Replace catch_command_errors by
2058 catch_command_errors_const. Twice.
2059 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2060 (symbol_file_add): Make name parameter const.
2061 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2062 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2063 variable name. Change their usage accordingly.
2064 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2065 const.
2066 (symbol_file_add_main): Make args parameter const.
2067
2068 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2069 Ulrich Weigand <uweigand@de.ibm.com>
2070
2071 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2072 of c_value member.
2073 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2074
2075 2013-09-18 Pedro Alves <palves@redhat.com>
2076 Yue Lu <hacklu.newborn@gmail.com>
2077
2078 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2079 (gnu_create_inferior)
2080 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2081 (set_sig_thread_cmd): Use the lwpid field of ptids to
2082 store/extract thread ids instead of the tid field.
2083 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2084
2085 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2086
2087 * infcmd.c (default_print_one_register_info): Add detection of
2088 optimized out values.
2089 (default_print_registers_info): Switch to using
2090 get_frame_register_value.
2091
2092 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2093
2094 * infrun.c (handle_inferior_event): Check if we know the
2095 function start address before setting a resume breakpoint.
2096
2097 2013-09-18 Pedro Alves <palves@redhat.com>
2098
2099 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2100 minus_one_ptid instead of looking at the ptid's tid field and
2101 comparing that to -1.
2102
2103 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2104
2105 * main.h (get_gdb_program_name): Remove extra whitespace.
2106
2107 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2108
2109 * main.h (get_gdb_program_name): Add declaration.
2110 * main.c (get_gdb_program_name): Add definition.
2111
2112 2013-09-17 Doug Evans <dje@google.com>
2113
2114 * dwarf2read.c: Move definitions of complaint functions to after
2115 forward declarations of local functions.
2116
2117 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2118 Pedro Alves <palves@redhat.com>
2119
2120 PR gdb/11568
2121 * breakpoint.c (remove_threaded_breakpoints): New function.
2122 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2123 as thread_exit observer.
2124
2125 2013-09-17 Pedro Alves <palves@redhat.com>
2126
2127 PR gdb/15911
2128 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2129 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2130 * corelow.c (core_open):
2131 * frame.h (print_stack_frame, print_frame_info): New
2132 'set_current_sal' parameter.
2133 * infcmd.c (finish_command, kill_command): Adjust call to
2134 print_stack_frame.
2135 * inferior.c (inferior_command): Likewise.
2136 * infrun.c (normal_stop): Likewise.
2137 * linux-fork.c (linux_fork_context): Likewise.
2138 * record-full.c (record_full_goto_entry, record_full_restore):
2139 Likewise.
2140 * remote-mips.c (common_open): Likewise.
2141 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2142 Use it.
2143 (print_frame_info): New 'set_current_sal' parameter. Set the last
2144 displayed sal depending on the new paremeter instead of looking at
2145 print_what.
2146 (backtrace_command_1, select_and_print_frame, frame_command)
2147 (current_frame_command, up_command, down_command): Adjust call to
2148 print_stack_frame.
2149 * thread.c (print_thread_info, restore_selected_frame)
2150 (do_captured_thread_select): Adjust call to print_stack_frame.
2151 * tracepoint.c (tfind_1): Likewise.
2152 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2153 (mi_cmd_stack_info_frame): Likewise.
2154 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2155 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2156
2157 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2158
2159 * value.c (isvoid_internal_fn): Replace "parameter" with
2160 "argument".
2161
2162 2013-09-16 Stan Shebs <stan@codesourcery.com>
2163
2164 * README: Update references to writing code for GDB.
2165 * configure.ac (build_warnings): Remove obsolete comment.
2166 * configure: Regenerate.
2167 * gdbarch.sh: Remove references to gdbint.texinfo.
2168 * gdbarch.h: Regenerate.
2169 * gdbtypes.c (objfile_type): Remove comments referencing internals
2170 manual and D10V.
2171
2172 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2173
2174 * NEWS: Mention new convenience function $_isvoid.
2175 * value.c (isvoid_internal_fn): New function.
2176 (_initialize_values): Add new convenience function $_isvoid.
2177
2178 2013-09-16 Pierre Muller <muller@sourceware.org>
2179
2180 * arm-linux-tdep.c: Add "elf/common.h" header.
2181 Remove AT_HWCAP macro definintion as it is provided in
2182 added include file.
2183 * s390-tdep.c: Remove system header <elf.h>
2184 Add "elf/common.h" header for AT_HWCAP definition.
2185 (s390_core_read_description): Use correct CORE_ADDR
2186 for hwcap local variable used as third parameter
2187 of function target_auxv_search.
2188
2189 2013-09-14 Pierre Muller <muller@sourceware.org>
2190 Tom Tromey <tromey@redhat.com>
2191 Pedro Alves <palves@redhat.com>
2192
2193 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2194 mode if operating system doesn't know O_CLOEXEC.
2195
2196 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2197
2198 Code cleanup.
2199 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2200 inner block.
2201
2202 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2203
2204 * NEWS: Mention TDB support.
2205 * features/s390-tdb.xml: New file.
2206 * features/s390-te-linux64.xml: New file.
2207 * features/s390x-te-linux64.xml: New file.
2208 * features/Makefile (WHICH): Add new tdescs above.
2209 (s390-te-linux64-expedite): Set.
2210 (s390x-te-linux64-expedite): Set.
2211 * features/s390-te-linux64.c: New file (generated).
2212 * features/s390x-te-linux64.c: New file (generated).
2213 * regformats/s390-te-linux64.dat: New file (generated).
2214 * regformats/s390x-te-linux64.dat: New file (generated).
2215 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2216 (HWCAP_S390_TE): Likewise.
2217 (S390_TDB_DWORD0_REGNUM): Likewise.
2218 (S390_TDB_DWORD0_REGNUM): Likewise.
2219 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2220 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2221 (S390_TDB_ATIA_REGNUM): Likewise.
2222 (S390_TDB_R0_REGNUM): Likewise.
2223 (S390_TDB_R1_REGNUM): Likewise.
2224 (S390_TDB_R2_REGNUM): Likewise.
2225 (S390_TDB_R3_REGNUM): Likewise.
2226 (S390_TDB_R4_REGNUM): Likewise.
2227 (S390_TDB_R5_REGNUM): Likewise.
2228 (S390_TDB_R6_REGNUM): Likewise.
2229 (S390_TDB_R7_REGNUM): Likewise.
2230 (S390_TDB_R8_REGNUM): Likewise.
2231 (S390_TDB_R9_REGNUM): Likewise.
2232 (S390_TDB_R10_REGNUM): Likewise.
2233 (S390_TDB_R11_REGNUM): Likewise.
2234 (S390_TDB_R12_REGNUM): Likewise.
2235 (S390_TDB_R13_REGNUM): Likewise.
2236 (S390_TDB_R14_REGNUM): Likewise.
2237 (S390_TDB_R15_REGNUM): Likewise.
2238 (S390_NUM_REGS): Increase.
2239 (S390_IS_TDBREGSET_REGNUM): New macro.
2240 (s390_regmap_tdb): Declare.
2241 (s390_sizeof_tdbregset): Define.
2242 (tdesc_s390_te_linux64): Declare.
2243 (tdesc_s390x_te_linux64): Likewise.
2244 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2245 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2246 (s390_regmap_tdb): New regmap.
2247 (s390_supply_tdb_regset): New function.
2248 (s390_tdb_regset): New regset.
2249 (s390_linux64v2_regset_sections): Add TDB regset to list.
2250 (s390x_linux64v2_regset_sections): Likewise.
2251 (s390_regset_from_core_section): Recognize TDB core note section.
2252 (s390_core_read_description): If HWCAP indicates TE support,
2253 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2254 (s390_gdbarch_init): Handle TDB regset.
2255 (_initialize_s390_tdep): Initialize new tdescs.
2256 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2257 (have_regset_tdb): New variable.
2258 (s390_native_supply): Support register invalidation.
2259 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2260 (check_regset): Treat ENODATA as "regset exists".
2261 (s390_linux_fetch_inferior_registers): Add TDB.
2262 (s390_read_description): Check for TDB existence and select
2263 appropriate tdesc.
2264 * gdbserver/Makefile.in (clean): Add removal of new makefile
2265 targets.
2266 (s390-te-linux64.c): New makefile target.
2267 (s390x-te-linux64.c): Likewise.
2268 * gdbserver/configure.srv (srv_regobj): Append new objects
2269 s390-te-linux64.o and s390x-te-linux64.o.
2270 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2271 s390x-te-linux64.xml, and s390-tdb.xml.
2272 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2273 declaration.
2274 (tdesc_s390_te_linux64): Likewise.
2275 (init_registers_s390x_te_linux64): Likewise.
2276 (tdesc_s390x_te_linux64): Likewise.
2277 (s390_check_regset): Treat ENODATA as "regset exists".
2278 (s390_arch_setup): Add TDB regset support.
2279 (initialize_low_arch): Initialize registers for new tdescs.
2280
2281 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2282
2283 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2284 (S390_IS_FPREGSET_REGNUM): New macro.
2285 * s390-tdep.c (s390_dwarf_regmap): Make const.
2286 (regnum_is_gpr_full): New function for replacing repeated code.
2287 (s390_pseudo_register_name): Use it.
2288 (s390_pseudo_register_type): Likewise.
2289 (s390_pseudo_register_read): Likewise.
2290 (s390_pseudo_register_write): Likewise.
2291 (s390_unwind_pseudo_register): Likewise.
2292 (s390_regmap_gregset): New format for regmap.
2293 (s390x_regmap_gregset): Likewise.
2294 (s390_regmap_fpregset): Likewise.
2295 (s390_regmap_upper): Likewise.
2296 (s390_regmap_last_break): Likewise.
2297 (s390_regmap_system_call): Likewise.
2298 (s390_supply_regset): Adjust to new regmap format.
2299 (s390_collect_regset): Likewise.
2300 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2301 (s390_native_collect): Likewise.
2302 (supply_gregset): Likewise.
2303 (fill_gregset): Likewise.
2304 (supply_fpregset): Likewise.
2305 (fill_fpregset): Likewise.
2306 (fetch_regset): Likewise.
2307 (store_regset): Likewise.
2308 (s390_linux_fetch_inferior_registers): Likewise.
2309 (s390_linux_fetch_inferior_registers): Likewise.
2310
2311 2013-09-12 Andrew Pinski <apinski@cavium.com>
2312
2313 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2314
2315 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2316
2317 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2318
2319 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2320
2321 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2322
2323 2013-09-06 Pedro Alves <palves@redhat.com>
2324
2325 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2326 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2327 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2328 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2329 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2330 gdb_stdlog.
2331
2332 2013-09-06 Pedro Alves <palves@redhat.com>
2333
2334 * remote-sim.c (dump_mem): Constify buf parameter.
2335 gdbsim_xfer_inferior_memory): Rename to ...
2336 (gdbsim_xfer_memory): ... this. Adjust interface as
2337 target_xfer_partial helper.
2338 (gdbsim_xfer_partial): New function.
2339 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2340 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2341
2342 2013-09-06 Pedro Alves <palves@redhat.com>
2343
2344 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2345 host_address_to_string, and send debug output to gdb_stdlog.
2346
2347 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2348
2349 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2350 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2351 gdb_target_obs for cris target.
2352 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2353 (cris_gdbarch_init): Move calls to
2354 set_gdbarch_fetch_tls_load_module_address and
2355 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2356 Add call to gdbarch_init_osabi.
2357 * cris-linux-tdep.c: New file.
2358 * cris-tdep.h: New file.
2359
2360 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2361
2362 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2363 to deprecated_init_ui_hook.
2364
2365 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2366
2367 * cli/cli-interp.c (_initialize_cli_interp): Add a
2368 command_loop_proc to interp_procs.
2369 * event-top.c (cli_command_loop): Change signature to match
2370 interp_command_loop_ftype.
2371 * event-top.h (cli_command_loop): Same.
2372 * interps.c (interp_new): Require every interpreter to have a
2373 command_loop_proc.
2374 (current_interp_command_loop): Just call the command_loop_proc on
2375 the current interpreter.
2376 * tui/tui-interp.c (_initialize_tui_interp): Add a
2377 command_loop_proc to interp_procs.
2378
2379 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2380
2381 * cris-tdep.c (cris_gdbarch_init): Add call to
2382 get_gdbarch_fetch_tls_load_module_address.
2383
2384 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2385
2386 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2387 (cris_elf_gregset_t): Rename from elf_gregset_t.
2388 (crisv32_elf_gregset_t): Adjust.
2389 (cris_supply_gregset, fetch_core_registers): Adjust.
2390
2391 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2392
2393 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2394
2395 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
2396
2397 * defs.h (deprecated_command_loop_hook): Remove, including
2398 references in comments.
2399 * interps.c (current_interp_command_loop): No longer use
2400 deprecated_command_loop_hook.
2401 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2402 setup.
2403 * top.c (deprecated_command_loop_hook): Remove.
2404
2405 2013-09-05 Pedro Alves <palves@redhat.com>
2406
2407 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2408 local is now int instead of ULONGEST. Print it with %d
2409 instead of paddress.
2410
2411 2013-09-05 Tristan Gingold <gingold@adacore.com>
2412
2413 * MAINTAINERS: Remove avr maintainership.
2414
2415 2013-09-05 Pedro Alves <palves@redhat.com>
2416
2417 * findvar.c (value_of_register): Rework in terms of
2418 value_of_register_lazy.
2419
2420 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2421
2422 * symfile.c (add_symbol_file_command): Remove trailing
2423 whitespaces and blank line after comment.
2424
2425 2013-09-05 Pedro Alves <palves@redhat.com>
2426
2427 * tui/tui-regs.c (tui_register_format): Don't look at the
2428 register's name here. Return string representing register
2429 value instead of storing it in the data element.
2430 (tui_get_register): Compare register string representations
2431 instead of register value states and contents.
2432
2433 2013-09-05 Pedro Alves <palves@redhat.com>
2434
2435 PR tui/15933
2436 * tui/tui-regs.c (tui_show_registers): Show registers of the
2437 selected frame, not the current frame.
2438
2439 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2440
2441 * MAINTAINERS (Write After Approval): Add myself to the list.
2442
2443 2013-09-04 Doug Evans <dje@google.com>
2444
2445 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2446 (queue_and_load_dwo_tu): New function.
2447 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2448 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2449 Make dependent_cu optional.
2450 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2451 and an older .gdb_index is in use, queue and load all its TUs too.
2452
2453 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2454
2455 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2456 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2457 variable search_flags.
2458 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2459 (OPF_RETURN_REALPATH): ... here.
2460 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2461 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2462 call. Twice.
2463 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2464 openp call.
2465 * solib.c (solib_find): Likewise. Four times.
2466 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2467 in the function comment and for the realpath_fptr variable.
2468 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2469 (find_and_open_source): Likewise. Twice.
2470 * symfile.c (symfile_bfd_open): Likewise, also twice.
2471
2472 2013-09-04 Doug Evans <dje@google.com>
2473
2474 * progspace.c (save_current_space_and_thread): Remove unnecessary
2475 call to save_current_inferior.
2476
2477 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2478
2479 * sh64-tdep.c (sh64_do_register): Return after printing message
2480 about unavailable register contents.
2481
2482 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2483 Pedro Alves <palves@redhat.com>
2484
2485 * symfile.c (add_symbol_file_command): Error out on unknown
2486 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2487 options and collapse into single conditional branch.
2488
2489 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2490
2491 * inf-child.c (inf_child_follow_fork): New parameter
2492 detach_fork.
2493 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2494 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2495 * inferior.h (detach_fork): Remove.
2496 * infrun.c (detach_fork): Adjust comment and make it
2497 static.
2498 (follow_fork): Pass detach_fork parameter to
2499 target_follow_fork.
2500 * linux-nat.c (linux_child_follow_fork): New parameter
2501 detach_fork.
2502 * target.c (target_follow_fork): New parameter detach_fork.
2503 Pass detach_fork as parameter and print its value.
2504 * target.h (struct target_ops) <to_follow_fork>: New int
2505 parameter.
2506 (target_follow_fork): New parameter detach_fork.
2507
2508 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2509
2510 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2511 Replace sec->bfd by sec->the_bfd_section->owner.
2512
2513 2013-09-03 Yao Qi <yao@codesourcery.com>
2514
2515 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2516 from linux_has_shared_address_space.
2517 (linux_has_shared_address_space): Call linux_is_uclinux.
2518 * linux-tdep.h (linux_is_uclinux): Declare.
2519 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2520 linux_is_uclinux.
2521
2522 2013-09-03 Yao Qi <yao@codesourcery.com>
2523
2524 * config/djgpp/fnchange.lst: Remove entry of
2525 i386-interix-nat.c and i386-interix-tdep.c.
2526 * configure.ac: Remove '*-*-interix*'.
2527 * configure: Re-generated.
2528 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2529 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2530 obsolete comments.
2531 * osabi.c (gdb_osabi_names): Remove "Interix".
2532
2533 2013-09-03 Yao Qi <yao@codesourcery.com>
2534
2535 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2536
2537 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2538
2539 * record.h (record_print_flag) <record_print_src_line,
2540 record_print_insn_range>: Rename into ...
2541 (record_print_flag) <record_print_src_line,
2542 record_print_insn_range>: ... this. Update all users.
2543
2544 2013-09-02 Pierre Muller <muller@sourceware.org>
2545
2546 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2547 error code.
2548
2549 2013-09-02 Pierre Muller <muller@sourceware.org>
2550
2551 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2552 by use of plongest function.
2553
2554 2013-09-02 Tristan Gingold <gingold@adacore.com>
2555
2556 * NEWS: Add entry mentioning support for native Windows x64
2557 SEH data.
2558
2559 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2560 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2561 (struct amd64_windows_frame_cache): New struct.
2562 (amd64_windows_w2gdb_regnum): New global.
2563 (pc_in_range, amd64_windows_frame_decode_epilogue)
2564 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2565 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2566 (amd64_windows_frame_this_id): New functions.
2567 (amd64_windows_frame_unwind): New static global.
2568 (amd64_windows_skip_prologue): New function.
2569 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2570 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2571 with amd64_windows_skip_prologue.
2572
2573 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2574
2575 GDB 7.6.1 released.
2576
2577 2013-08-30 Pedro Alves <palves@redhat.com>
2578
2579 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2580 SRC_AND_LOC.
2581
2582 2013-08-30 Pedro Alves <palves@redhat.com>
2583
2584 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2585 warning text.
2586
2587 2013-08-30 Pedro Alves <palves@redhat.com>
2588
2589 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2590 Adjust arguments to print_stack_frame.
2591
2592 2013-08-30 Pedro Alves <palves@redhat.com>
2593
2594 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2595
2596 2013-08-30 Pedro Alves <palves@redhat.com>
2597
2598 * frame.h (show_and_print_stack_frame): Delete declaration.
2599
2600 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2601
2602 PR python/15461
2603 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2604 (archpy_name): Check for valid architecture.
2605 (archpy_disassemble): Ditto.
2606
2607 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2608
2609 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2610 instead of "long long" in call to ptrace64.
2611
2612 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2613
2614 * mi/mi-interp.c (mi_command_loop): Change signature to match
2615 interp_command_loop_ftype.
2616 (mi1_command_loop): Remove.
2617 (mi2_command_loop): Remove.
2618 (mi3_command_loop): Remove.
2619 (mi_interpreter_resume): Remove setting of
2620 deprecated_command_loop_hook.
2621 (_initialize_mi_interp): Set mi_command_loop as the command loop
2622 callback.
2623
2624 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2625
2626 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2627 value_type.
2628
2629 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2630
2631 * value.c (allocate_value_contents): Make static.
2632 * value.h (allocate_value_contents): Remove prototype.
2633
2634 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2635
2636 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2637 of assembling value via allocate_value_lazy and attribute setter.
2638 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2639 assembling value via allocate_value_lazy and attribute setter.
2640 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2641 assembling value via allocate_value_lazy and attribute setter.
2642
2643 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2644
2645 * value.c (value_from_contents_and_address): Replace allocate_value and
2646 memcpy with value_from_contents.
2647
2648 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2649
2650 * python/py-framefilter.c (py_print_frame): Remove usage of
2651 PyString_AsString. Use python_string_to_host_string instead.
2652 Refactor function to work with a string as a new allocation
2653 instead of a pointer.
2654 (py_print_frame): Ditto.
2655 * python/lib/gdb/frames.py (return_list): Cain iterators together
2656 instead of adding them as a list.
2657 (_sort_list): Call return_list, and remove duplicate code.
2658 (execute_frame_filters): Convert iterator to a list with list().
2659 * python/lib/gdb/command/frame_filters.py
2660 (SetFrameFilterPriority._set_filter_priority): Convert priority
2661 attribute to an integer.
2662 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2663 wrapper function __next__.
2664 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2665 define as "str".
2666
2667 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2668
2669 PR python/15752
2670 * python/py-framefilter.c (apply_frame_filter): Check
2671 gdb_python_initialized. Exit if the Python frame-filter code
2672 cannot be initialized.
2673
2674 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2675
2676 PR cli/15842
2677 * top.c (print_gdb_version): Remove erroneous newline after help
2678 text.
2679
2680 2013-08-29 Yao Qi <yao@codesourcery.com>
2681
2682 * varobj.c (install_dynamic_child): Remove trailing space.
2683 Add one blank line after variable declaration.
2684
2685 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2686
2687 PR gdb/15415
2688 * corefile.c (get_exec_file): Use exec_filename.
2689 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2690 * exec.c (exec_close): Free EXEC_FILENAME.
2691 (exec_file_attach): New variable canonical_pathname. Use
2692 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2693 EXEC_FILENAME.
2694 * exec.h (exec_filename): New.
2695 * inferior.c (print_inferior, inferior_command): Use
2696 PSPACE_EXEC_FILENAME.
2697 * mi/mi-main.c (print_one_inferior): Likewise.
2698 * progspace.c (clone_program_space, print_program_space): Likewise.
2699 * progspace.h (struct program_space): New field pspace_exec_filename.
2700 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2701 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2702
2703 2013-08-28 Will Newton <will.newton@linaro.org>
2704
2705 * common/linux-ptrace.c: Include stdint.h unconditionally.
2706
2707 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2708
2709 Code cleanup.
2710 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2711
2712 2013-08-28 Yao Qi <yao@codesourcery.com>
2713 Pedro Alves <palves@redhat.com>
2714
2715 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2716 instead of stdio_fileopen.
2717 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2718 .Call stderr_fileopen instead of stdio_fileopen.
2719 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2720 [__MINGW32__] (stderr_file_fputs): New function.
2721 (stderr_fileopen): New function.
2722 * ui-file.h (stderr_fileopen): Declare.
2723
2724 2013-08-27 Doug Evans <dje@google.com>
2725
2726 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2727 (struct dwarf2_per_cu_data): Ditto.
2728 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2729 (process_imported_unit_die): Ditto.
2730 (follow_die_sig_1): Simplify assert.
2731
2732 2013-08-27 Pedro Alves <palves@redhat.com>
2733
2734 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2735 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2736 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2737 windows_xfer_memory directly.
2738 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2739
2740 2013-08-27 Pedro Alves <palves@redhat.com>
2741
2742 * darwin-nat.c (darwin_xfer_memory): Delete.
2743 (_initialize_darwin_inferior): Don't install a
2744 deprecated_xfer_memory method.
2745
2746 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2747 Yao Qi <yao@codesourcery.com>
2748
2749 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2750 (parse_no_frames_option): Remove.
2751 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2752 (mi_cmd_stack_list_args): Adjust.
2753 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2754 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2755 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2756 Caller update.
2757 (list_args_or_locals): New parameter 'skip_unavailable'.
2758 Handle it.
2759 * valprint.c (scalar_type_p): Rename to ...
2760 (val_print_scalar_type_p): ... this. Make extern.
2761 (val_print, value_check_printable): Adjust.
2762 * valprint.h (val_print_scalar_type_p): Declare.
2763 * value.c (value_entirely_unavailable): New function.
2764 * value.h (value_entirely_unavailable): Declare.
2765
2766 * NEWS: Mention the new option "--skip-unavailable" to MI
2767 commands '-stack-list-locals', '-stack-list-arguments' and
2768 '-stack-list-variables'.
2769
2770 2013-08-27 Yao Qi <yao@codesourcery.com>
2771
2772 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2773 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2774 options.
2775 * mi/mi-getopt.c (mi_getopt): Remove.
2776 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2777 'error_on_unknown'.
2778 (mi_getopt): Call mi_getopt_1.
2779 (mi_getopt_silent): New.
2780 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2781
2782 2013-08-26 Doug Evans <dje@google.com>
2783
2784 PR symtab/15885
2785 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2786 .gdb_index is in use.
2787 * symfile.c (reread_symbols): Reset objfile->sf.
2788
2789 * NEWS: Document "mt print objfiles" now takes optional regexp.
2790 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2791 regexp of objfiles to print.
2792 (_initialize_symmisc): Update doc string for "mt print objfiles".
2793
2794 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2795 missing debug info checks.
2796
2797 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2798 Ulrich Weigand <uweigand@de.ibm.com>
2799
2800 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2801 line tables generated by XLC compiled binaries.
2802
2803 2013-08-23 Doug Evans <dje@google.com>
2804
2805 * symmisc.c (dump_symtab): Delete prototype.
2806 (dump_msymbols, dump_objfile): Ditto.
2807 (maintenance_info_symtabs): Mark as dont_repeat.
2808 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2809
2810 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2811 debugging printf to better location.
2812
2813 2013-08-23 Pedro Alves <palves@redhat.com>
2814
2815 * target.c (target_read_live_memory): Change type of 'ret' local
2816 to LONGEST.
2817
2818 2013-08-23 Pedro Alves <palves@redhat.com>
2819
2820 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2821 (remote_read_bytes): Change return type to LONGEST, and adjust to
2822 return a target_xfer_error on error.
2823 (remote_xfer_memory): Delete.
2824 (remote_flash_write): Change type of 'ret' local to LONGEST.
2825 (remote_xfer_partial, remote_xfer_partial): Adjust.
2826 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2827
2828 2013-08-23 Pierre Muller <muller@sourceware.org>
2829
2830 ARI fix: Push # directives to start of line.
2831 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2832
2833 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2834
2835 PR gdb/15501
2836 * breakpoint.c (enable_command, disable_command): Iterate over
2837 all specified breakpoint locations.
2838
2839 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2840
2841 * common/linux-ptrace.c (linux_fork_to_function): Push #
2842 directives to the start of the line.
2843 (linux_check_ptrace_features): Fix warning message to use
2844 the "_" markup.
2845
2846 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2847
2848 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2849 nat/linux-waitpid.h.
2850 (linux-waitpid.o): New object file rule.
2851 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2852 (current_ptrace_options): Moved from linux-nat.c.
2853 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2854 parameters.
2855 (linux_fork_to_function): New function.
2856 (linux_grandchild_function): Likewise.
2857 (linux_child_function): Likewise.
2858 (linux_check_ptrace_features): New function, heavily
2859 based on linux-nat.c:linux_test_for_tracefork.
2860 (linux_enable_event_reporting): New function.
2861 (ptrace_supports_feature): Likewise.
2862 (linux_supports_tracefork): Likewise.
2863 (linux_supports_traceclone): Likewise.
2864 (linux_supports_tracevforkdone): Likewise.
2865 (linux_supports_tracesysgood): Likewise.
2866 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2867 gdbserver/linux-low.c.
2868 (linux_enable_event_reporting): New declaration.
2869 (linux_supports_tracefork): Likewise.
2870 (linux_supports_traceclone): Likewise.
2871 (linux_supports_tracevforkdone): Likewise.
2872 (linux_supports_tracesysgood): Likewise.
2873 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2874 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2875 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2876 * config/arm/linux.mh (NATDEPFILES): Likewise.
2877 * config/i386/linux.mh (NATDEPFILES): Likewise.
2878 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2879 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2880 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2881 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2882 * config/mips/linux.mh (NATDEPFILES): Likewise.
2883 * config/pa/linux.mh (NATDEPFILES): Likewise..
2884 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2885 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2886 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2887 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2888 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2889 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2890 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2891 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2892 ptrace's 4th argument's types.
2893 Check the type of PTRACE_TYPE_ARG4.
2894 * configure: Regenerate.
2895 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2896 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2897 (linux_supports_tracefork_flag): Remove.
2898 (linux_supports_tracesysgood_flag): Likewise.
2899 (linux_supports_tracevforkdone_flag): Likewise.
2900 (current_ptrace_options): Moved to
2901 common/linux-ptrace.c.
2902 (linux_tracefork_child): Remove.
2903 (my_waitpid): Remove.
2904 (linux_test_for_tracefork): Renamed to
2905 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2906 (linux_test_for_tracesysgood): Remove.
2907 (linux_supports_tracesysgood): Remove.
2908 (linux_supports_tracefork): Remove.
2909 (linux_supports_tracevforkdone): Remove.
2910 (linux_enable_tracesysgood): Remove.
2911 (linux_enable_event_reporting): Remove.
2912 (linux_init_ptrace): New function.
2913 (linux_child_post_attach): Call linux_init_ptrace.
2914 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2915 (linux_child_follow_fork): Call linux_supports_tracefork
2916 and linux_supports_tracevforkdone.
2917 (linux_child_insert_fork_catchpoint): Call
2918 linux_supports_tracefork.
2919 (linux_child_insert_vfork_catchpoint): Likewise.
2920 (linux_child_set_syscall_catchpoint): Call
2921 linux_supports_tracesysgood.
2922 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2923 * nat/linux-nat.h: New file.
2924 * nat/linux-waitpid.c: New file.
2925 * nat/linux-waitpid.h: New file.
2926
2927 2013-08-22 Samuel Bronson <naesten@gmail.com>
2928
2929 ARM Linux support for `catch syscall'.
2930 * syscalls/arm-linux.py: New file.
2931 * syscalls/arm-linux.xml: Likewise.
2932 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2933 (arm_linux_init_abi): Register the new function and syscall xml file.
2934 * data-directory/Makefile.in: Install the new syscall xml file.
2935 * NEWS: Brag about this.
2936
2937 2013-08-22 Pedro Alves <palves@redhat.com>
2938
2939 PR gdb/15871
2940 * corefile.c (target_xfer_memory_error): New function.
2941 (memory_error): Defer EIO to target_memory_error.
2942 (read_memory): Use target_xfer_partial, and handle finer-grained
2943 target xfer errors.
2944 * target.c (target_xfer_error_to_string): New function.
2945 (memory_xfer_partial_1): If memory is known to be
2946 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2947 (target_xfer_partial): Make extern.
2948 * target.h (enum target_xfer_error): New enum.
2949 (target_xfer_error_to_string): Declare function.
2950 (target_xfer_partial): Declare function.
2951 (struct target_ops) <xfer_partial>: Adjust describing comment.
2952
2953 2013-08-22 Alan Modra <amodra@gmail.com>
2954
2955 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2956 * configure.tgt: Likewise as targets.
2957
2958 2013-08-20 Doug Evans <dje@google.com>
2959
2960 * buildsym.c (subfile_stack): Move here from buildsym.h.
2961 (pending_macros): Ditto.
2962 (get_macro_table): New function.
2963 (buildsym_init): Initialize subfile_stack.
2964 * coffread.c (type_vector,type_vector_length): Moved here from
2965 buildsym.h.
2966 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2967 (coff_symtab_read): Use it.
2968 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2969 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2970 with call to get_macro_table.
2971 * stabsread.c (type_vector,type_vector_length): Moved here from
2972 buildsym.h.
2973 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2974 * buildsym.h (get_macro_table): Declare.
2975
2976 2013-08-20 Tom Tromey <tromey@redhat.com>
2977
2978 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2979 Update.
2980 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2981
2982 2013-08-20 Doug Evans <dje@google.com>
2983
2984 * blockframe.c: Remove #include "psymtab.h".
2985 * cp-support.c: Ditto.
2986 * source.c: Ditto.
2987 * stack.c: Ditto.
2988
2989 2013-08-20 Tom Tromey <tromey@redhat.com>
2990
2991 PR python/15816:
2992 * exceptions.h (return_mask): Now an enum.
2993 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2994 enum constants.
2995
2996 2013-08-20 Tom Tromey <tromey@redhat.com>
2997
2998 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2999 get_objfile_arch.
3000 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3001 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3002 * jit.c (jit_object_close_impl): Update.
3003 * jv-lang.c (get_dynamics_objfile): Update.
3004 * linespec.c (add_minsym): Use get_dynamics_objfile.
3005 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3006 (allocate_objfile): Don't initialize 'gdbarch' field.
3007 (get_objfile_arch): Update.
3008 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3009 moved from...
3010 (struct objfile) <gdbarch>: ... here. Remove.
3011 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3012 get_objfile_arch.
3013 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3014
3015 2013-08-20 Alan Modra <amodra@gmail.com>
3016
3017 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3018 for IBM long double nan and inf.
3019 (floatformat_is_negative, floatformat_classify,
3020 floatformat_mantissa): Similarly.
3021 (floatformat_ieee_single, floatformat_ieee_double,
3022 floatformat_ieee_quad, floatformat_arm_ext,
3023 floatformat_ia64_spill): Delete unused vars.
3024 (_initialize_doublest): Delete unused function.
3025 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3026 little-endian variants of floatformat_ibm_long_double.
3027
3028 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3029
3030 * Makefile.in (SFILES): Remove common/target-common.c and
3031 add target/waitstatus.c.
3032 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3033 target/resume.h, target/wait.h and target/waitstatus.h.
3034 (COMMON_OBS): Remove target-common.o and add
3035 waitstatus.o.
3036 (target-common.o): Remove.
3037 (waitstatus.o): New target object file.
3038 * common/target-common.c: Move contents to
3039 target/waitstatus.c and remove.
3040 * common/target-common.h: Move contents to other files and
3041 remove.
3042 (enum resume_kind: Move to target/resume.h.
3043 (TARGET_WNOHANG): Move to target/wait.h.
3044 (enum target_waitkind): Move to target/waitstatus.h.
3045 (struct target_waitstatus): Likewise.
3046 * target.h: Do not include target-common.h and
3047 include target/resume.h, target/wait.h and
3048 target/waitstatus.h.
3049 * target/resume.h: New file.
3050 * target/wait.h: New file.
3051 * target/waitstatus.h: New file.
3052 * target/waitstatus.c: New file.
3053
3054 2013-08-19 Pedro Alves <palves@redhat.com>
3055
3056 * linux-nat.c (linux_test_for_tracefork)
3057 (linux_test_for_tracesysgood, linux_child_follow_fork)
3058 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3059 (linux_nat_wait_1): Extend comment.
3060 (linux_async_pipe): Add comment.
3061
3062 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3063
3064 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3065 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3066 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3067 Update to account for fact that PC is now a pseudo-register.
3068 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3069 cases for RL78_PC_REGNUM.
3070
3071 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3072
3073 PR cli/15841
3074 * top.c (quit_force): Skip writing history file
3075 if input is not from terminal.
3076
3077 2013-08-14 Tom Tromey <tromey@redhat.com>
3078
3079 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3080 resultthreadlist>: New fields.
3081 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3082 (remote_get_threadlist, remote_threadlist_iterator): Use
3083 new fields. Remove static variables.
3084
3085 2013-08-14 Tom Tromey <tromey@redhat.com>
3086
3087 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3088 remote_watch_data_address>: New fields.
3089 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3090 (process_stop_reply, remote_wait_as)
3091 (remote_check_watch_resources, remote_stopped_data_address): Update.
3092
3093 2013-08-14 Tom Tromey <tromey@redhat.com>
3094
3095 * remote.c (struct remote_state) <async_client_callback,
3096 async_client_context>: New fields.
3097 (async_client_callback, async_client_context): Remove.
3098 (remote_async_serial_handler, remote_async): Update.
3099
3100 2013-08-14 Tom Tromey <tromey@redhat.com>
3101
3102 * remote.c (sizeof_pkt): Remove.
3103 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3104
3105 2013-08-14 Tom Tromey <tromey@redhat.com>
3106
3107 * remote.c (struct remote_state) <use_threadinfo_query,
3108 use_threadextra_query>: New fields.
3109 (remote_threads_info, remote_threads_extra_info)
3110 (remote_open_1): Update.
3111
3112 2013-08-14 Tom Tromey <tromey@redhat.com>
3113
3114 * remote.c (struct remote_state) <finished_object,
3115 finished_annex, finished_offset>: New fields.
3116 (remote_read_qxfer): Use remote_state fields; remove static
3117 variables.
3118
3119 2013-08-14 Tom Tromey <tromey@redhat.com>
3120
3121 * remote.c (struct remote_state) <last_sent_step>:
3122 New field.
3123 (last_sent_step): Remove.
3124 (remote_resume, remote_wait_as): Update.
3125
3126 2013-08-14 Tom Tromey <tromey@redhat.com>
3127
3128 * remote.c (struct remote_state) <last_sent_signal>:
3129 New field.
3130 (last_sent_signal): Remove.
3131 (new_remote_state, remote_resume, remote_wait_as): Update.
3132
3133 2013-08-14 Tom Tromey <tromey@redhat.com>
3134
3135 * remote.c (struct remote_state) <last_program_signals_packet>:
3136 New field.
3137 (last_program_signals_packet): Remove.
3138 (remote_program_signals, remote_open_1): Update.
3139
3140 2013-08-14 Tom Tromey <tromey@redhat.com>
3141
3142 * remote.c (struct remote_state) <last_pass_packet>:
3143 New field.
3144 (last_pass_packet): Remove.
3145 (remote_pass_signals, remote_open_1): Update.
3146
3147 2013-08-14 Tom Tromey <tromey@redhat.com>
3148
3149 * remote.c (struct remote_state) <remote_traceframe_number>:
3150 New field.
3151 (remote_traceframe_number): Remove.
3152 (new_remote_state, remote_open_1, set_remote_traceframe)
3153 (remote_trace_find): Update.
3154
3155 2013-08-14 Tom Tromey <tromey@redhat.com>
3156
3157 * remote.c (struct remote_state) <general_thread, continue_thread>:
3158 New fields.
3159 (general_thread, continue_thread): Remove.
3160 (record_currthread, set_thread, set_general_process)
3161 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3162 (extended_remote_mourn_1): Update.
3163
3164 2013-08-14 Tom Tromey <tromey@redhat.com>
3165
3166 * remote.c (struct remote_state) <remote_desc>: New field.
3167 (remote_desc): Remove.
3168 (remote_threads_info, remote_threads_extra_info, remote_close)
3169 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3170 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3171 (remote_hostio_send_command, remote_file_put, remote_file_get)
3172 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3173 (remote_async, remote_new_objfile, set_range_stepping): Update.
3174
3175 2013-08-14 Tom Tromey <tromey@redhat.com>
3176
3177 * remote.c (remote_state): Now a pointer.
3178 (get_remote_state_raw): Update.
3179 (new_remote_state): New function.
3180 (_initialize_remote): Use new_remote_state.
3181
3182 2013-08-14 Tom Tromey <tromey@redhat.com>
3183
3184 * remote.c (remote_protocol_features): Now const.
3185
3186 2013-08-14 Tom Tromey <tromey@redhat.com>
3187
3188 * remote.c (crc32_table, crc32): Remove.
3189 (remote_verify_memory): Use xcrc32.
3190
3191 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3192
3193 * value.h (create_internalvar_type_lazy): Adjust prototype
3194 declaration.
3195
3196 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3197
3198 * common/format.c (parse_format_string): Don't allow '#' flag for
3199 pointer arguments in format string.
3200
3201 2013-08-13 Pierre Muller <muller@sourceware.org>
3202
3203 * utils.c (init_page_info): Only call tgetnum function
3204 if rl_get_screen_size did not return useful values.
3205
3206 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3207
3208 PR breakpoints/15117
3209 * linespec.c (linespec_parse_basic): Check for convenience
3210 variable or history value while parsing.
3211
3212 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3213
3214 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3215 AVR.
3216 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3217 different signals between the generic Linux kernel implementation
3218 and AVR's.
3219 (avr_linux_gdb_signal_from_target): Delete.
3220 (avr_linux_gdb_signal_to_target): Delete.
3221 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3222
3223 2013-08-09 Doug Evans <dje@google.com>
3224
3225 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3226 entries.
3227
3228 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3229
3230 * linux-tdep.c: Define enum with generic signal numbers.
3231 (linux_gdb_signal_from_target): New function.
3232 (linux_gdb_signal_to_target): Likewise.
3233 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3234 methods to the functions above.
3235 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3236 (linux_gdb_signal_to_target): Likewise.
3237 * alpha-linux-tdep.c: Define new enum with signals different
3238 from generic Linux kernel.
3239 (alpha_linux_gdb_signal_from_target): New function.
3240 (alpha_linux_gdb_signal_to_target): Likewise.
3241 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3242 with the functions mentioned above.
3243 * avr-tdep.c: Define enum with differences between Linux kernel
3244 and AVR signals.
3245 (avr_linux_gdb_signal_from_target): New function.
3246 (avr_linux_gdb_signal_to_target): Likewise.
3247 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3248 the functions mentioned above.
3249 * sparc-linux-tdep.c: Define enum with differences between SPARC
3250 and generic Linux kernel signal numbers.
3251 (sparc32_linux_gdb_signal_from_target): New function.
3252 (sparc32_linux_gdb_signal_to_target): Likewise.
3253 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3254 to the functions defined above.
3255 * xtensa-linux-tdep.c: Define enum with differences between
3256 Xtensa and Linux kernel generic signals.
3257 (xtensa_linux_gdb_signal_from_target): New function.
3258 (xtensa_linux_gdb_signal_to_target): Likewise.
3259 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3260 to the functions defined above.
3261 * mips-linux-tdep.c: Define enum with differences between
3262 signals in MIPS and Linux kernel generic ones.
3263 (mips_gdb_signal_to_target): New function.
3264 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3265 only different signals from the Linux kernel generic.
3266 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3267 the functions defined above.
3268 * mips-linux-tdep.h (enum mips_signals): Remove.
3269
3270 2013-08-09 Pedro Alves <palves@redhat.com>
3271
3272 * avr-tdep.c (XMALLOC): Delete macro.
3273 * cli/cli-dump.c (XMALLOC): Delete macro.
3274
3275 2013-08-09 Pedro Alves <palves@redhat.com>
3276
3277 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3278 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3279 (fopen_with_cleanup, add_dump_command): Make static.
3280 * cli/cli-dump.h: Delete file.
3281 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3282 cli/cli-dump.h.
3283
3284 2013-08-09 Pedro Alves <palves@redhat.com>
3285
3286 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3287 error message.
3288
3289 2013-08-09 Pedro Alves <palves@redhat.com>
3290
3291 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3292 error message.
3293
3294 2013-08-09 Pedro Alves <palves@redhat.com>
3295
3296 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3297 (gcore_command): Use tilde_expand here, and when showing the
3298 filename to the user, show the expanded version.
3299
3300 2013-08-09 Yao Qi <yao@codesourcery.com>
3301
3302 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3303 'entryval' is set.
3304
3305 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3306
3307 * gcore.c (create_gcore_bfd): Use tilde_expand.
3308
3309 2013-08-08 Yao Qi <yao@codesourcery.com>
3310
3311 * frame.h (read_frame_local): Declare.
3312 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3313 read_frame_local.
3314 * stack.c (read_frame_local): New.
3315
3316 2013-08-08 Yao Qi <yao@codesourcery.com>
3317
3318 * mi/mi-cmd-stack.c: Update comments to function
3319 list_args_or_locals.
3320
3321 2013-08-07 Tom Tromey <tromey@redhat.com>
3322
3323 PR symtab/15028:
3324 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3325 (process_psymtab_comp_unit_reader): Use it.
3326 (process_psymtab_comp_unit): Update. Add "pretend_language"
3327 argument.
3328 (dwarf2_build_psymtabs_hard): Update.
3329 (scan_partial_symbols): Pass CU's language to
3330 process_psymtab_comp_unit.
3331
3332 2013-08-07 Tom Tromey <tromey@redhat.com>
3333
3334 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3335 (dwarf2_gdb_index_functions): Update.
3336 * psymtab.c (find_symbol_file_from_partial): Remove.
3337 (psym_functions): Update.
3338 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3339 Remove.
3340
3341 2013-08-07 Tom Tromey <tromey@redhat.com>
3342
3343 * symfile.c (set_initial_language): Look up "main" symbol
3344 and use its language.
3345 * symtab.c (find_main_filename): Remove.
3346 * symtab.h (find_main_filename): Remove.
3347
3348 2013-08-07 Tom Tromey <tromey@redhat.com>
3349
3350 * dwarf2read.c (recursively_compute_inclusions): Add
3351 "immediate_parent" argument. Set symtab's "user" field
3352 if not set.
3353 (compute_symtab_includes): Update.
3354
3355 2013-08-07 Tom Tromey <tromey@redhat.com>
3356
3357 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3358 when adding label symbols.
3359
3360 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3361 Ulrich Weigand <uweigand@de.ibm.com>
3362
3363 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3364 * configure.host (powerpc64-*-aix*): Likewise.
3365
3366 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3367 Ulrich Weigand <uweigand@de.ibm.com>
3368
3369 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3370 is defined.
3371 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3372 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3373 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3374 * configure.ac: Check for ptrace64.
3375 * configure, config.in: Regenerate.
3376
3377 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3378 Ulrich Weigand <uweigand@de.ibm.com>
3379
3380 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3381 Call ptrace64 instead of ptrace if defined.
3382 Add macro addr_ptr to take care of ptrace address argument.
3383 (pdc_read_regs): Likewise.
3384 (pdc_write_regs): Likewise.
3385 (aix_thread_resume): Likewise.
3386 (fetch_regs_kernel_thread): Likewise.
3387 (store_regs_kernel_thread): Likewise.
3388
3389 2013-08-07 Anton Blanchard <anton@samba.org>
3390
3391 * MAINTAINERS: Add myself to Write After Approval.
3392
3393 2013-08-05 Tom Tromey <tromey@redhat.com>
3394
3395 * aix-thread.c (_initialize_aix_thread): Use
3396 complete_target_initialization.
3397 * bsd-uthread.c (_initialize_bsd_uthread): Use
3398 complete_target_initialization.
3399 * dec-thread.c (_initialize_dec_thread): Use
3400 complete_target_initialization.
3401 * ravenscar-thread.c (_initialize_ravenscar): Use
3402 complete_target_initialization.
3403 * sol-thread.c (_initialize_sol_thread): Use
3404 complete_target_initialization.
3405 * spu-multiarch.c (_initialize_spu_multiarch): Use
3406 complete_target_initialization.
3407
3408 2013-08-05 Tom Tromey <tromey@redhat.com>
3409
3410 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3411 * ada-lang.c (ada_lookup_simple_minsym): Return
3412 bound_minimal_symbol.
3413 * ada-lang.h (ada_lookup_simple_minsym): Update.
3414 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3415 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3416 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3417 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3418 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3419 * minsyms.c (msymbol_objfile): Remove.
3420 (lookup_minimal_symbol_internal): New function, from
3421 lookup_minimal_symbol.
3422 (lookup_minimal_symbol): Rewrite using
3423 lookup_minimal_symbol_internal.
3424 (lookup_bound_minimal_symbol): New function.
3425 * minsyms.h (msymbol_objfile): Remove.
3426 (lookup_bound_minimal_symbol): Declare.
3427 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3428 * parse.c (write_exp_msymbol): Change parameter to a
3429 bound_minimal_symbol.
3430 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3431 * parser-defs.h (write_exp_msymbol): Update.
3432 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3433 * symfile.c (simple_read_overlay_table): Use
3434 lookup_bound_minimal_symbol.
3435 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3436 (search_symbols): Likewise.
3437 (print_msymbol_info): Take a bound_minimal_symbol argument.
3438 (symtab_symbol_info, rbreak_command): Update.
3439 * symtab.h (struct symbol_search) <msymbol>: Change type
3440 to bound_minimal_symbol.
3441 * valops.c (find_function_in_inferior): Use
3442 lookup_bound_minimal_symbol.
3443 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3444
3445 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3446
3447 Code cleanup.
3448 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3449 to ...
3450 (async_cleanup_sigint_signal_handler): ... this.
3451 (initialize_sigint_signal_handler): Remove declaration.
3452 (handle_remote_sigint): Rename the declaration to ...
3453 (async_handle_remote_sigint): ... this.
3454 (handle_remote_sigint_twice): Rename the declaration to ...
3455 (async_handle_remote_sigint_twice): ... this.
3456 (async_remote_interrupt, async_remote_interrupt_twice)
3457 (remote_interrupt): Remove the declarations.
3458 (remote_interrupt_twice): Rename the declaration ...
3459 (sync_remote_interrupt_twice): ... this.
3460 (sigint_remote_twice_token): Rename the variable to ...
3461 (async_sigint_remote_twice_token): ... this.
3462 (sigint_remote_token): Rename the variable to ...
3463 (async_sigint_remote_token): ... this.
3464 (initialize_sigint_signal_handler): Rename the function to ...
3465 (async_initialize_sigint_signal_handler): ... this. Update the name
3466 inside.
3467 (handle_remote_sigint): Rename the function to ...
3468 (async_handle_remote_sigint): ... this. Update the names inside.
3469 (handle_remote_sigint_twice): Rename the function to ...
3470 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3471 (cleanup_sigint_signal_handler): Rename the function to ...
3472 (async_cleanup_sigint_signal_handler): ... this.
3473 (remote_interrupt): Rename the function to ...
3474 (sync_remote_interrupt): this. Update the names inside.
3475 (remote_interrupt_twice): Rename the function to ...
3476 (sync_remote_interrupt_twice): this. Update the names inside.
3477 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3478 (_initialize_remote): Update the names inside.
3479
3480 2013-08-02 Tom Tromey <tromey@redhat.com>
3481
3482 PR symtab/15719:
3483 * breakpoint.c (update_watchpoint, watchpoint_check)
3484 (watch_command_1): Update.
3485 * eval.c (fetch_subexp_value): Add "preserve_errors"
3486 parameter.
3487 * ppc-linux-nat.c (check_condition): Update.
3488 * value.h (fetch_subexp_value): Update.
3489
3490 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3491
3492 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3493 add_file_handler.
3494
3495 2013-08-01 Doug Evans <dje@google.com>
3496
3497 PR symtab/15691
3498 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3499 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3500 Add assert of sig_entry->dwo_unit == NULL.
3501 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3502 had already been read.
3503 (read_signatured_type): Set per_cu.tu_read.
3504
3505 PR symtab/15695
3506 * valops.c (value_struct_elt): Add missing call to check_typedef.
3507 (value_find_oload_method_list): Ditto.
3508
3509 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3510 effectively, struct symbol_search **.
3511 (make_cleanup_free_search_symbols): Change arg to struct
3512 symbol_search **. All callers updated.
3513 (compare_search_syms): Compare symtab file name and block as well.
3514 (search_symbols_equal): New function.
3515 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3516 New args new_head, new_tail. Result is now void. Remove dups after
3517 sorting the symbols.
3518 (search_symbols): Sort all found symbols once, after all have been
3519 found, and remove duplicates. Simplify cleanup tracking of result.
3520 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3521
3522 Further workarounds for binutils/15021.
3523 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3524 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3525 Watch for duplicate symtabs coming from type units.
3526 (compute_symtab_includes): Update call to
3527 recursively_compute_inclusions. Build vector of included symtabs
3528 instead of per_cus.
3529 * symtab.h (symtab_ptr): New typedef.
3530 (DEF_VEC_P (symtab_ptr)): New VEC type.
3531 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3532 instead.
3533
3534 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3535
3536 * cli/cli-script.c (script_from_file): Remove use of
3537 error_pre_print.
3538 * main.c (captured_main): Remove use of error_pre_print and
3539 quit_pre_print.
3540 * utils.c (error_pre_print, quit_pre_print): Remove.
3541 * utils.h (error_pre_print, quit_pre_print): Likewise.
3542
3543 2013-08-01 Yao Qi <yao@codesourcery.com>
3544
3545 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3546 with mi_getopt.
3547 (mi_cmd_stack_list_variables): Likewise.
3548
3549 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3550
3551 * exceptions.c (deprecated_throw_reason): Remove.
3552 * exceptions.h (deprecated_throw_reason): Remove.
3553
3554 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3555
3556 * remote-mips.c (mips_error): Replace use of
3557 deprecated_throw_reason with throw_verror. Use the error message
3558 passed to mips_error as the error message for throw_verror.
3559
3560 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3561
3562 * monitor.c (monitor_interrupt_query): Replace use of
3563 deprecated_throw_reason with quit.
3564 * nto-procfs.c (interrupt_query): Likewise.
3565 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3566 * remote-mips.c (mips_kill): Likewise.
3567 * remote.c (interrupt_query): Likewise.
3568
3569 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3570
3571 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3572 with call to fatal.
3573
3574 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3575 Yao Qi <yao@codesourcery.com>
3576
3577 * tracepoint.c (trace_dump_command): Select the current frame.
3578
3579 2013-07-30 Doug Evans <dje@google.com>
3580
3581 * dwarf2read.c (process_queue): Add type signature to debug output.
3582
3583 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3584
3585 * value.c (value_fetch_lazy): Mark optimized out values as such
3586 rather than raising an error.
3587
3588 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3589
3590 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3591 before checking which bits of the parent, not the child, value are
3592 valid.
3593
3594 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3595
3596 PR gdb/15715
3597 * top.c: Include "filenames.h".
3598 (set_history_filename): New function.
3599 (init_main): Install it as set hook of the "set history filename"
3600 command.
3601
3602 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3603
3604 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3605 attribute parameter.
3606 (dwarf2_const_value_data): Constify struct attribute parameter.
3607 (dwarf2_const_value): Constify struct attribute parameter.
3608 (dwarf2_const_value_attr): Constify struct attribute parameter.
3609 (lookup_die_type): Constify struct attribute parameter.
3610 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3611 (follow_die_ref_or_sig): Constify struct attribute parameter.
3612 (follow_die_ref): Constify struct attribute parameter.
3613 (follow_die_sig): Constify struct attribute parameter.
3614 (get_DW_AT_signature_type): Constify struct attribute parameter.
3615 (get_type_unit_group): Constify struct attribute parameter.
3616 (fill_in_loclist_baton): Constify struct attribute parameter.
3617 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3618 (type_unit_group): Constify struct attribute parameter.
3619
3620 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3621
3622 * dwarf2read.c (attr_form_is_block): Make argument const.
3623 (attr_form_is_section_offset): Make argument const.
3624 (attr_form_is_constant): Make argument const.
3625 (attr_form_is_ref): Make argument const.
3626
3627 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3628
3629 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3630 All uses updated.
3631 (attr_form_is_ref): Moved below attr_form_is_constant.
3632
3633 2013-07-29 Doug Evans <dje@google.com>
3634
3635 * main.c (captured_command_loop): Tweak comment.
3636
3637 * target.c (target_async_permitted_1): Fix comment.
3638
3639 * symtab.c (iterate_over_some_symtabs): Add comment.
3640
3641 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3642
3643 2013-07-27 Yao Qi <yao@codesourcery.com>
3644
3645 * NEWS: Mention that GDBserver now supports hardware
3646 watchpoints on the MIPS GNU/Linux target.
3647
3648 2013-07-27 Yao Qi <yao@codesourcery.com>
3649
3650 * Makefile.in (HFILES_NO_SRCDIR): Add
3651 common/mips-linux-watch.h.
3652 (mips-linux-watch.o): New rule.
3653 * common/mips-linux-watch.c: New.
3654 * common/mips-linux-watch.h: New.
3655 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3656 * mips-linux-nat.c: Include mips-linux-watch.h.
3657 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3658 to common/mips-linux-watch.h.
3659 (MAX_DEBUG_REGISTER): Likewise.
3660 (enum pt_watch_style): Likewise.
3661 (struct mips32_watch_regs): Likewise.
3662 (struct mips64_watch_regs): Likewise.
3663 (struct pt_watch_regs): Likewise.
3664 (struct mips_watchpoint): Likewise.
3665 (mips_linux_watch_get_irw_mask): Move to
3666 common/mips-linux-watch.c.
3667 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3668 (mips_linux_watch_get_watchlo): Likewise.
3669 (mips_linux_watch_set_watchlo): Likewise.
3670 (mips_linux_watch_get_watchhi): Likewise.
3671 (mips_linux_watch_set_watchhi): Likewise.
3672 (mips_linux_read_watch_registers): Likewise.
3673 (mips_linux_watch_type_to_irw): Likewise.
3674 (mips_linux_stopped_data_address, fill_mask): Likewise.
3675 (mips_linux_watch_try_one_watch): Likewise.
3676 (mips_linux_watch_populate_regs): Likewise.
3677
3678 2013-07-27 Yao Qi <yao@codesourcery.com>
3679
3680 * mips-linux-nat.c (get_irw_mask): Rename to ...
3681 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3682 'set' to 'n'. Update function comment. All callers changed.
3683 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3684 function comment. All callers changed.
3685 (get_num_valid): Rename to ...
3686 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3687 'set' to 'n'. Update function comment. All callers changed.
3688 (get_watchlo): Rename to ...
3689 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3690 'set' to 'n'. Update function comment. All callers changed.
3691 (set_watchlo): Rename to ...
3692 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3693 'set' to 'n'. Update function comment. All callers changed.
3694 (get_watchhi): Rename to ...
3695 (mips_linux_watch_get_watchhi): ... this. Update function
3696 comment. All callers changed.
3697 (set_watchhi): Rename to ...
3698 (mips_linux_watch_set_watchhi): ... this. Update function
3699 comment. All callers changed.
3700 (mips_linux_read_watch_registers): Update function comment.
3701 Add new parameters 'lwpid', 'watch_readback', and
3702 'watch_readback_valid'. Update.
3703 (type_to_irw): Rename to ...
3704 (mips_linux_watch_type_to_irw): ... this. Update function
3705 comment. All callers changed.
3706 (fill_mask): Update function comment.
3707 (try_one_watch): Rename to ...
3708 (mips_linux_watch_try_one_watch): ... this. Change the type
3709 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3710 (populate_regs_from_watches): Rename to ...
3711 (mips_linux_watch_populate_regs): ... this. Add parameter
3712 'current_watches'. All callers changed.
3713
3714 2013-07-27 Yao Qi <yao@codesourcery.com>
3715
3716 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3717 the code.
3718 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3719 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3720 (struct pt_watch_regs): Likewise.
3721 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3722 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3723 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3724 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3725 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3726
3727 2013-07-27 Yao Qi <yao@codesourcery.com>
3728
3729 * breakpoint.h: Include break-common.h.
3730 (enum target_hw_bp_type): Move to ...
3731 * common/break-common.h: ... here. New.
3732
3733 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3734
3735 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3736 process group regardless of having tty on stdin.
3737
3738 2013-07-25 Doug Evans <dje@google.com>
3739
3740 * linux-fork.h (detach_fork): Delete.
3741
3742 2013-07-25 Tom Tromey <tromey@redhat.com>
3743
3744 PR remote/15256, PR remote/15266:
3745 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3746 * monitor.c (monitor_detach): Use unpush_target.
3747 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3748 * remote-mips.c (mips_detach): Use unpush_target. Don't
3749 call mips_close.
3750 * remote-sim.c (gdbsim_detach): Use unpush_target.
3751 * target.c (pop_target): Remove.
3752 (pop_all_targets_above): Don't call target_close.
3753 (target_close): Assert that the target is unpushed.
3754 * target.h (pop_target): Don't declare.
3755 * tracepoint.c (tfile_open): Use unpush_target.
3756
3757 2013-07-25 Tom Tromey <tromey@redhat.com>
3758
3759 * linux-thread-db.c (init_thread_db_ops): Call
3760 complete_target_initialization.
3761 (_initialize_thread_db): Don't call add_target.
3762 * target.c (complete_target_initialization): New function.
3763 (add_target_with_completer): Call it.
3764 * target.h (complete_target_initialization): Declare.
3765
3766 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3767
3768 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3769 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3770 (HPPANBSD_SIZEOF_GREGS): New define.
3771 (hppaobsd_supply_gregset): Handle additional registers.
3772 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3773 we provide more registers now.
3774 (hppabsd_supply_gregset): Supply additional registers.
3775 (hppabsd_collect_gregset): Collect additional registers.
3776
3777 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3778
3779 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3780 (hppabsd_dwarf2_frame_init_reg): New function.
3781 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3782
3783 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3784
3785 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3786 'z' format code. Remove error for optimized out values, standard
3787 code will handle these fine.
3788
3789 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3790
3791 * NEWS: Mention new 'z' formatter.
3792 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3793 (_initialize_printcmd): Mention 'z' formatter in help text of the
3794 'x' command.
3795
3796 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3797
3798 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3799 formatting.
3800
3801 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3802
3803 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3804 interface can evaluate arguments. Fallback to the old mode if it
3805 cannot.
3806 (create_exception_master_breakpoint): Likewise.
3807 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3808 (struct sym_probe_fns elf_probe_fns): Export function above to the
3809 probe interface.
3810 * probe.c (can_evaluate_probe_arguments): New function.
3811 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3812 function pointer.
3813 (can_evaluate_probe_arguments): New function prototype.
3814 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3815 probe interface can evaluate arguments. Fallback to the old mode
3816 if it cannot.
3817 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3818 interface can evaluate arguments. Warning the user if it cannot.
3819 (stap_can_evaluate_probe_arguments): New function.
3820 (struct probe_ops stap_probe_ops): Export function above to the
3821 probe interface.
3822 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3823 New function pointer.
3824
3825 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3826
3827 * Makefile.in (SFILES): Add common/target-common.c.
3828 Add common/target-common.h to headers.
3829 (COMMON_OBS): Add target-common.o.
3830 (target-common.o): New target.
3831 * linux-nat.h (resume_kind): Move to common/target-common.h.
3832 * target.c (target_waitstatus_to_string): Move to
3833 common/target-common.c.
3834 * target.h: Include target-common.h.
3835 (target_waitkind): Move to common/target-common.h.
3836 (target_waitstatus): Likewise.
3837 (TARGET_WNOHANG): Likewise.
3838 * common/target-common.c: New file.
3839 * common/target-common.h: New file.
3840
3841 2013-07-24 Doug Evans <dje@google.com>
3842
3843 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3844 a warning.
3845
3846 2013-07-23 Yao Qi <yao@codesourcery.com>
3847
3848 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3849 parameter 'gdbarch'.
3850 (i386_stack_tramp_frame_sniffer): Caller update.
3851 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3852 parameter 'gdbarch' and 'target'.
3853 (i386_linux_core_read_description): Caller update.
3854 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3855 Likewise.
3856 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3857 declaration.
3858
3859 2013-07-23 Tom Tromey <tromey@redhat.com>
3860
3861 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3862 2013-07-22.
3863
3864 2013-07-22 Doug Evans <dje@google.com>
3865
3866 * exec.h (remove_target_sections): Delete arg abfd.
3867 * exec.c (exec_close): Update call to remove_target_sections.
3868 (remove_target_sections): Delete arg abfd.
3869 * solib.c (update_solib_list): Ditto.
3870 (reload_shared_libraries_1): Ditto.
3871 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3872 * target.h (struct target_section): Rename key to owner.
3873 All uses updated.
3874
3875 2013-07-22 Tom Tromey <tromey@redhat.com>
3876
3877 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3878
3879 2013-07-22 Tom Tromey <tromey@redhat.com>
3880
3881 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3882 Simplify cleanup handling.
3883
3884 2013-07-22 Tom Tromey <tromey@redhat.com>
3885
3886 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3887 on all return paths.
3888
3889 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3890
3891 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3892 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3893 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3894
3895 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3896
3897 * top.c (print_gdb_version): Add help, apropos description and
3898 url to online documentation.
3899
3900 2013-07-19 Hui Zhu <hui@codesourcery.com>
3901
3902 PR gdb/15692
3903 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3904
3905 2013-07-19 Yao Qi <yao@codesourcery.com>
3906
3907 * target.c (update_current_target): Change the default action
3908 of 'to_traceframe_info' from tcomplain to return_zero.
3909 * target.h (struct target_ops) <to_traceframe_info>: Add more
3910 comments.
3911 * valops.c (read_value_memory): Call
3912 traceframe_available_memory unconditionally.
3913
3914 2013-07-18 Yao Qi <yao@codesourcery.com>
3915
3916 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3917 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3918 symbol without prefix. If found, set its type to
3919 'mst_solib_trampoline'.
3920
3921 2013-07-17 Doug Evans <dje@google.com>
3922
3923 * NEWS: Mention "set print raw frame-arguments".
3924 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3925 * stack.c (print_raw_frame_arguments): New static global.
3926 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3927 (_initialize_stack): New command "set/show print raw frame-arguments".
3928 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3929 (set_print_raw, show_print_raw): New functions.
3930 (_initialize_valprint): New prefix command "set/show print raw".
3931 * valprint.h (value_print_options): Improve comments.
3932
3933 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3934 of all *list variables.
3935
3936 * gdbcmd.h (togglelist): Delete.
3937 * cli/cli-cmds.c (togglelist): Delete.
3938 (init_cmd_lists): Update.
3939 * cli/cli-cmds.h (togglelist): Delete.
3940
3941 2013-07-17 Tom Tromey <tromey@redhat.com>
3942
3943 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3944 dwarf2_per_objfile.
3945
3946 2013-07-16 Doug Evans <dje@google.com>
3947
3948 * nto-tdep.c (nto_relocate_section_addresses): Update,
3949 target_section.bfd deleted.
3950 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3951 * s390-tdep.c (s390_load): Ditto.
3952 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3953
3954 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3955
3956 * common/format.c (parse_format_string): Add checks for NULL
3957 character before calling strchr.
3958
3959 2013-07-16 Doug Evans <dje@google.com>
3960
3961 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3962 temp_pathname argument.
3963 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3964 when opening the file fails.
3965
3966 * target.h (struct target_section): Delete member bfd.
3967 All users updated to use the_bfd_section->owner instead.
3968 * exec.c (add_to_section_table): Assert bfd is expected value.
3969 Remove initialization of target_section.bfd.
3970 (remove_target_sections): Update.
3971 (section_table_available_memory): Update.
3972 (section_table_xfer_memory_partial): Update.
3973 (print_section_info): Update.
3974 (exec_set_section_address): Update.
3975 * record-full.c (record_full_core_xfer_partial): Update.
3976 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3977 * solib-target.c (solib_target_relocate_section_addresses): Update.
3978 * symfile.c (build_section_addr_info_from_section_table): Update.
3979 * target.c (memory_xfer_live_readonly_partial): Update.
3980 (memory_xfer_partial_1): Update.
3981
3982 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3983
3984 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3985 now available for embedded (BookE) and server (BookS) processors,
3986 correct mentions of 'booke' and adjust comments accordingly in order to
3987 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3988 (have_ptrace_booke_interface): Rename function and variable
3989 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3990 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3991 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3992 'hwdebug_point_cmp'. Update all uses.
3993 (booke_find_thread_points_by_tid): Rename function
3994 'booke_find_thread_points_by_tid' to
3995 'hwdebug_find_thread_points_by_tid'. Update all uses.
3996 (booke_insert_point): Rename function 'booke_insert_point' to
3997 'hwdebug_insert_point'. Update all uses.
3998 (booke_remove_point): Rename function 'booke_remove_point' to
3999 'hwdebug_remove_point'. Update all uses.
4000
4001 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4002
4003 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4004 numbers with enum values.
4005
4006 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4007
4008 PR threads/13217
4009 * thread.c (thread_apply_all_command): Check for valid threads
4010 and thread count.
4011 (thread_array_cleanup): New struct.
4012 (set_thread_refcount): New function.
4013
4014 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4015
4016 * infcmd.c (default_print_one_register_info): Reuse function
4017 print_hex_chars.
4018
4019 2013-07-10 Tom Tromey <tromey@redhat.com>
4020
4021 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4022 (ada-exp.o): New target.
4023
4024 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4025
4026 * mt-tdep.c (mt_registers_info): Call
4027 get_no_prettyformat_print_options instead of
4028 get_raw_print_options (regression by last patch from Doug
4029 Evans).
4030
4031 2013-07-09 Pedro Alves <palves@redhat.com>
4032
4033 Checked in by Joel Brobecker <brobecker@adacore.com>.
4034 * ada-lang.c (coerce_unspec_val_to_type): Use
4035 value_optimized_out_const.
4036 * value.c (value_optimized_out_const): New function.
4037 * value.h (value_optimized_out_const): New declaration.
4038
4039 2013-07-09 Doug Evans <dje@google.com>
4040
4041 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4042 Enum values rename as well. All uses updated.
4043 * valprint.h (value_print_options): Rename member pretty to
4044 pretty format. Rename member prettyprint_arrays to
4045 prettyformat_arrays. Rename member prettyprint_structs to
4046 prettyformat_structs. All uses updated.
4047 (get_no_prettyformat_print_options): Renamed from
4048 get_raw_print_options.
4049 * valprint.c (get_no_prettyformat_print_options): Renamed from
4050 get_raw_print_options. All callers updated.
4051 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4052 All callers updated.
4053 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4054 All callers updated.
4055 (_initialize_valprint): Improve help text for "set print pretty" and
4056 "set print arrays".
4057
4058 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4059
4060 * value.c (value_bits_valid): Revert previous change, and change
4061 by Pedro on 2013-07-04, due to regressions in
4062 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4063
4064 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4065 Pedro Alves <palves@redhat.com>
4066
4067 * value.c (value_bits_valid): If the value is not lval_computed
4068 or has no check validity handler then the answer is the
4069 optimized_out flag, otherwise defer to the handler.
4070
4071 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4072
4073 * top.c (print_gdb_configuration): Explain in output of
4074 --configuration what does "relocatable" mean.
4075
4076 * main.c (print_gdb_help): Regroup options in the --help text.
4077 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4078 the relevant discussions.
4079
4080 2013-07-06 Yao Qi <yao@codesourcery.com>
4081
4082 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4083 Remove parameter 'lsal'.
4084 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4085 to inner block. Caller update.
4086 (base_breakpoint_create_breakpoints_sal): Update.
4087 (bkpt_create_breakpoints_sal): Likewise.
4088 (tracepoint_create_breakpoints_sal): Likewise.
4089 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4090 element 0 of vector 'canonical->sals'.
4091
4092 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4093
4094 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4095 register number instead of the pseudo register one.
4096 (rs6000_dwarf2_reg_to_regnum): Likewise.
4097
4098 2013-07-04 Pedro Alves <palves@redhat.com>
4099
4100 * findvar.c (value_of_register): Use allocate_optimized_out_value
4101 if the register has been optimized out, instead of
4102 set_value_optimized_out.
4103 * frame-unwind.c (frame_unwind_got_optimized): Use
4104 allocate_optimized_out_value.
4105
4106 2013-07-04 Pedro Alves <palves@redhat.com>
4107
4108 * value.c (value_bits_valid): If the value is not lval_computed,
4109 or doesn't have a check_validity hook, assume the value is entirely
4110 valid.
4111
4112 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4113
4114 * stack.c (read_frame_arg): No longer fetch lazy values.
4115 * value.c (value_optimized_out): If the value is not already
4116 marked optimized out, and is lazy then fetch it.
4117 (value_primitive_field): Move optimized out check to later in the
4118 function, after we have loaded any lazy values.
4119 (value_fetch_lazy): Use optimized out flag directly rather than
4120 calling optimized_out method.
4121
4122 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4123
4124 * valops.c: Don't include "user-regs.h".
4125 (value_fetch_lazy): Moved to value.c.
4126 * value.c: Include "user-regs.h".
4127 (value_fetch_lazy): Moved from valops.c.
4128
4129 2013-07-04 Yao Qi <yao@codesourcery.com>
4130
4131 Revert:
4132 2013-06-27 Yao Qi <yao@codesourcery.com>
4133
4134 * common/create-version.sh: Update comments. Handle the case
4135 that TARGET_ALIAS is empty.
4136
4137 2013-07-03 Pedro Alves <palves@redhat.com>
4138
4139 * Makefile.in (config.status): Depend on development.sh.
4140 (aclocal_m4_deps): Add libmcheck.m4.
4141 * acinclude.m4: Include libmcheck.m4.
4142 * configure.ac: Source development.sh instead of setting
4143 'development' here. --enable-libmcheck/--disable-libmcheck code
4144 factored out to GDB_AC_LIBMCHECK. Run it.
4145 * development.sh: New file.
4146 * libmcheck.m4: New file.
4147 * configure: Regenerate.
4148
4149 2013-07-02 Tom Tromey <tromey@redhat.com>
4150
4151 * contrib/ari/update-web-ari.sh: Update for version.in change.
4152
4153 2013-07-02 Tom Tromey <tromey@redhat.com>
4154
4155 * common/ptid.h: Comment fixes.
4156
4157 2013-07-01 Tom Tromey <tromey@redhat.com>
4158
4159 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4160 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4161 (dwarf2_read_index, create_all_comp_units): Update.
4162
4163 2013-07-01 Tom Tromey <tromey@redhat.com>
4164
4165 * configure.ac (build_warnings): Add -Wold-style-definition.
4166 * configure: Rebuild.
4167 * machoread.c (_initialize_machoread): Use "(void)".
4168 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4169 use "(void)".
4170
4171 2013-07-01 Tom Tromey <tromey@redhat.com>
4172
4173 * configure.ac (build_warnings): Add -Wold-style-declaration.
4174 * configure: Rebuild.
4175 * dsrec.c (make_srec): Use "static const", not "const static".
4176 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4177 not "const static".
4178 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4179 Use "static const", not "const static".
4180 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4181 not "const static".
4182 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4183 not "const static".
4184 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4185 not "const static".
4186 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4187 not "const static".
4188 (v850_dbtrap_breakpoint_from_pc): Likewise.
4189 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4190 not "const static".
4191
4192 2013-07-01 Tom Tromey <tromey@redhat.com>
4193
4194 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4195 * configure: Rebuild.
4196
4197 2013-07-01 Pedro Alves <palves@redhat.com>
4198
4199 * defs.h: Include "pathmax.h".
4200 * utils.c: Don't include sys/param.h.
4201 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4202 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4203 instead of MAXPATHLEN.
4204 * solib-sunos.c: Don't include sys/param.h.
4205 * xcoffread.c: Don't include sys/param.h.
4206 * bsd-kvm.c: Don't include sys/param.h.
4207 * darwin-nat.c: Don't include sys/param.h.
4208 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4209 * darwin-nat-info.c: Don't include sys/param.h.
4210 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4211 MAXPATHLEN.
4212 * i386obsd-nat.c: Don't include sys/param.h.
4213 * inf-child.c: Don't include sys/param.h.
4214 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4215 * linux-fork.c: Don't include sys/param.h.
4216 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4217 * linux-nat.c: Don't include sys/param.h.
4218 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4219 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4220 * m68klinux-nat.c: Don't include sys/param.h.
4221 * nbsd-nat.c: Don't include sys/param.h.
4222 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4223 * ppc-linux-nat.c: Don't include sys/param.h.
4224 * rs6000-nat.c: Don't include sys/param.h.
4225 * spu-linux-nat.c. Don't include sys/param.h.
4226 * windows-nat.c: Don't include sys/param.h.
4227 * xtensa-linux-nat.c: Don't include sys/param.h.
4228 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4229
4230 2013-07-01 Pedro Alves <palves@redhat.com>
4231
4232 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4233 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4234 * gnulib/aclocal.m4: Regenerate.
4235 * gnulib/config.in: Regenerate.
4236 * gnulib/configure: Regenerate.
4237 * gnulib/import/pathmax.h: New file.
4238 * gnulib/import/Makefile.am: Regenerate.
4239 * gnulib/import/Makefile.in: Regenerate.
4240 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4241 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4242 * gnulib/import/m4/pathmax.m4: New file.
4243
4244 2013-07-01 Pedro Alves <palves@redhat.com>
4245
4246 * configure.ac (GDBINIT): Define, depending on host.
4247 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4248 * top.c (PATH_MAX): Delete fallback definition.
4249 (GDBINIT_FILENAME): Delete.
4250 (gdbinit): Reimplement as const char array set to the GDBINIT
4251 string constant.
4252 * top.h (gdbinit): Make const.
4253 * configure, config.in: Regenerate.
4254
4255 2013-07-01 Pedro Alves <palves@redhat.com>
4256
4257 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4258 * cli/cli-cmds.h (source_script): Likewise.
4259 * exceptions.c (catch_command_errors_const): New function.
4260 * exceptions.h (catch_command_errors_const): Declare.
4261 * main.c (get_init_files): Make parameters const, and adjust.
4262 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4263 'local_gdbinit' locals const. Adjust to use
4264 catch_command_errors_const.
4265 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4266 'local_gdbinit' locals const.
4267
4268 2013-07-01 Pedro Alves <palves@redhat.com>
4269
4270 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4271 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4272 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4273 <unistd.h>.
4274
4275 2013-07-01 Pedro Alves <palves@redhat.com>
4276
4277 Import the "unistd" gnulib module.
4278 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4279 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4280 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4281 import/m4/unistd_h.m4.
4282 * gnulib/aclocal.m4: Renenerate.
4283 * gnulib/config.in: Renenerate.
4284 * gnulib/configure: Renenerate.
4285 * gnulib/import/Makefile.am: Renenerate.
4286 * gnulib/import/Makefile.in: Renenerate.
4287 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4288 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4289 * gnulib/import/m4/off_t.m4: New file.
4290 * gnulib/import/m4/ssize_t.m4: New file.
4291 * gnulib/import/m4/sys_types_h.m4: New file.
4292 * gnulib/import/m4/unistd_h.m4: New file.
4293 * gnulib/import/sys_types.in.h: New file.
4294 * gnulib/import/unistd.c: New file.
4295 * gnulib/import/unistd.in.h: New file.
4296
4297 2013-07-01 Pedro Alves <palves@redhat.com>
4298
4299 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4300 defined instead of checking HAVE_UNISTD_H.
4301
4302 2013-07-01 Pedro Alves <palves@redhat.com>
4303
4304 Reimport gnulib from scratch.
4305 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4306 import/m4/onceonly.m4.
4307 * gnulib/aclocal.m4: Renegerate.
4308 * gnulib/config.in: Renegerate.
4309 * gnulib/configure: Renegerate.
4310 * gnulib/import/Makefile.in: Renegerate.
4311 * gnulib/import/extra/update-copyright: Renegerate.
4312 * gnulib/import/m4/onceonly.m4: Delete.
4313
4314 2013-07-01 Pedro Alves <palves@redhat.com>
4315
4316 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4317
4318 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4319
4320 Code cleanup.
4321 * remote.c (async_remote_interrupt_twice): Make it static.
4322 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4323
4324 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4325
4326 * ia64-linux-tdep.c: Include <ctype.h>.
4327 (ia64_linux_stap_is_single_operand): New function.
4328 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4329
4330 2013-06-28 Tom Tromey <tromey@redhat.com>
4331
4332 * Makefile.in (version.c): Use version.in, not
4333 common/version.in.
4334 * common/create-version.sh: Likewise.
4335 * common/version.in: Move...
4336 * version.in: ...here.
4337
4338 2013-06-28 Pedro Alves <palves@redhat.com>
4339
4340 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4341 here.
4342 * utils.h (pagination_enabled): Declare.
4343
4344 2013-06-28 Pedro Alves <palves@redhat.com>
4345
4346 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4347 Move higher up in file.
4348
4349 2013-06-28 Tom Tromey <tromey@redhat.com>
4350
4351 * tracepoint.c (deprecated_readline_begin_hook)
4352 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4353 declare.
4354
4355 2013-06-28 Pedro Alves <palves@redhat.com>
4356
4357 PR tui/14880
4358 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4359 checking if they're available.
4360 * value.c (value_available_contents_eq): Change comment.
4361 * value.h (value_available_contents_eq): Expand comment.
4362
4363 2013-06-27 Tom Tromey <tromey@redhat.com>
4364
4365 * target.c (find_run_target): Remove.
4366 * target.h (find_run_target): Remove.
4367
4368 2013-06-27 Tom Tromey <tromey@redhat.com>
4369
4370 * corelow.c (core_gdbarch): Now static.
4371
4372 2013-06-27 Tom Tromey <tromey@redhat.com>
4373
4374 * target.c (target_struct_index): Remove.
4375
4376 2013-06-27 Pedro Alves <palves@redhat.com>
4377
4378 * infrun.c: Remove comment describing the 'stepping over runtime
4379 loader dynamic symbol resolution code' mechanism; moved to
4380 gdbint.texinfo.
4381
4382 2013-06-27 Pedro Alves <palves@redhat.com>
4383
4384 * exceptions.c (catch_command_errors): Remove spurious space.
4385 * exceptions.h (catch_command_errors): Second parameter is "arg",
4386 not "command".
4387
4388 2013-06-27 Yao Qi <yao@codesourcery.com>
4389
4390 * common/create-version.sh: Update comments. Handle the case
4391 that TARGET_ALIAS is empty.
4392
4393 2013-06-26 Pedro Alves <palves@redhat.com>
4394
4395 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4396 comment.
4397
4398 2013-06-26 Pedro Alves <palves@redhat.com>
4399
4400 * infrun.c: Update comments on stepping over runtime loader
4401 dynamic symbol resolution code.
4402
4403 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4404
4405 * ax-gdb.h (union exp_element): Forward declare.
4406 * parser-defs.h: Include expression.h.
4407
4408 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4409
4410 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4411
4412 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4413
4414 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4415
4416 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4417
4418 Fix trace-status to output proper start-time and stop-time.
4419 * tracepoint.c (trace_status_command): Fix type of printf arg to
4420 prevent improper type conversion.
4421 (trace_status_mi): Likewise.
4422
4423 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4424
4425 * mips-tdep.c (mips_next_pc): Fix a typo.
4426
4427 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4428
4429 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4430
4431 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4432 Yao Qi <yao@codesourcery.com>
4433
4434 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4435 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4436 * mi/mi-main.c (print_variable_or_computed): New function.
4437 (mi_cmd_trace_frame_collected): New function.
4438 * tracepoint.c (find_trace_state_variable_by_number): New.
4439 (struct traceframe_info): Move to tracepoint.h
4440 (struct collection_list): Likewise.
4441 (do_collect_symbol): Include locals and arguments in the
4442 collected variables list.
4443 (clear_collection_list): Clear wholly collected variables list
4444 and computed variables list.
4445 (append_exp): New function.
4446 (encode_actions_1): Include variables in the wholly
4447 collected variables list. Include memory ranges and
4448 full-fledged expressions in the computed expressions list.
4449 (encode_actions): Move some code to ...
4450 Return the cleanup chain.
4451 (encode_actions_rsp): ... here. New function.
4452 (get_traceframe_location, get_traceframe_info): Remove static.
4453 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4454 (struct collection_list): Moved from tracepoint.c. Add two
4455 new fields 'wholly_collected' and 'computed'.
4456 (find_trace_state_variable_by_number): Declare.
4457 (encode_actions): Adjust declaration.
4458 (encode_actions_rsp): Declare.
4459 (get_traceframe_info, get_traceframe_location): Declare.
4460
4461 * NEWS: Mention new MI command -trace-frame-collected.
4462
4463 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4464 Yao Qi <yao@codesourcery.com>
4465
4466 * ctf.c (ctf_traceframe_info): Push trace state variables
4467 present in the trace data into the traceframe info object.
4468 * breakpoint.c (DEF_VEC_I): Remove.
4469 * common/filestuff.c (DEF_VEC_I): Likewise.
4470 * dwarf2loc.c (DEF_VEC_I): Likewise.
4471 * mi/mi-main.c (DEF_VEC_I): Likewise.
4472 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4473 * features/traceframe-info.dtd: Add tvar element and its
4474 attributes.
4475 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4476 (build_traceframe_info): Push trace state variables present in
4477 the trace data into the traceframe info object.
4478 (traceframe_info_start_tvar): New function.
4479 (tvar_attributes): New.
4480 (traceframe_info_children): Add "tvar" element.
4481 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4482
4483 * NEWS: Mention the change in GDB and GDBserver.
4484
4485 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4486 Yao Qi <yao@codesourcery.com>
4487
4488 * tracepoint.c (trace_dump_command): Move code to ...
4489 (get_traceframe_location): ... here. New.
4490
4491 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4492 Yao Qi <yao@codesourcery.com>
4493
4494 * tracepoint.c (trace_dump_command): GDB emits an error
4495 instead of a warning when a traceframe is not selected.
4496
4497 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4498 Yao Qi <yao@codesourcery.com>
4499
4500 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4501 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4502 in collection_list.
4503 (do_clear_collection_list, init_collection_list): New.
4504 (encode_actions): Add local variables 'tracepoint_list' and
4505 'stepping_list'. Call init_collection_list and make cleanup
4506 which calls do_clear_collection_list. Don't call
4507 clear_collection_list.
4508 (_initialize_tracepoint): Delete references to
4509 'tracepoint_list' and 'stepping_list'.
4510
4511 2013-06-25 Tom Tromey <tromey@redhat.com>
4512
4513 * common/create-version.sh (date): Use "$", not "$$" in sed
4514 expression.
4515
4516 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4517
4518 * NEWS (New targets): Add entry for TI MSP430.
4519
4520 2013-06-25 Yao Qi <yao@codesourcery.com>
4521
4522 * remote.c (remote_start_remote): Move code to upload tsv
4523 earlier.
4524
4525 2013-06-25 Yao Qi <yao@codesourcery.com>
4526 Hui Zhu <hui@codesourcery.com>
4527 Pedro Alves <palves@redhat.com>
4528
4529 PR breakpoints/15075
4530 PR breakpoints/15434
4531 * breakpoint.c (bpstat_stop_status): Call
4532 b->ops->after_condition_true.
4533 (update_dprintf_command_list): Don't append "continue" command
4534 to the command list of dprintf breakpoint.
4535 (base_breakpoint_after_condition_true): New function.
4536 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4537 (dprintf_after_condition_true): New function.
4538 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4539 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4540
4541 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4542
4543 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4544 (ALLDEPFILES): Add msp430-tdep.c.
4545 * configure.tgt (msp430*-*-elf): New target.
4546 * msp430-tdep.c: New file.
4547
4548 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4549
4550 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4551 microMIPS synthetic symbols.
4552
4553 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4554
4555 * objfiles.h (pc_in_section): New prototype.
4556 (in_plt_section): Remove name argument, replace prototype with
4557 static inline function.
4558 * mips-tdep.h: Include "objfiles.h".
4559 (in_mips_stubs_section): New function.
4560 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4561 in_solib_call_trampoline member.
4562 (hppa_in_solib_call_trampoline): Remove name argument.
4563 * objfiles.c (pc_in_section): New function.
4564 (in_plt_section): Remove function.
4565 * mips-linux-tdep.c: Include "objfiles.h".
4566 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4567 name argument. Return 1 rather than the low 16-bit halfword of
4568 any instruction examined.
4569 (mips_linux_in_dynsym_resolve_code): Update
4570 mips_linux_in_dynsym_stub call accordingly.
4571 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4572 rather than an equivalent hand-coded sequence.
4573 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4574 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4575 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4576 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4577 in_opd_section.
4578 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4579 on call to tdep->in_solib_call_trampoline.
4580 (hppa_in_solib_call_trampoline): Remove name argument, update
4581 according to in_plt_section change.
4582 (hppa_skip_trampoline_code): Update according to in_plt_section
4583 change.
4584 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4585 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4586 Likewise.
4587 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4588 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4589 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4590 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4591 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4592 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4593 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4594 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4595 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4596 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4597 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4598 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4599 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4600
4601 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4602
4603 * common/create-version.sh: Fix expansion of $host_alias
4604 and $target_alias in generation of HOST_NAME and TARGET_NAME
4605 (resp.).
4606
4607 2013-06-24 Tom Tromey <tromey@redhat.com>
4608
4609 * common/create-version.sh: New file.
4610 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4611 create-version.sh.
4612 (HFILES_NO_SRCDIR): Use common/version.h.
4613 * version.in: Move to ...
4614 * common/version.in: ... here. Replace date with "DATE".
4615 * version.h: Move to ...
4616 * common/version.h: ... here.
4617
4618 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4619
4620 * gdb/gnulib/Makefile.in: Update date in copyright header.
4621 * gdb/gnulib/configure.ac: Ditto.
4622 * gdb/gnulib/update-gnulib.sh: Ditto.
4623
4624 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4625
4626 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4627 "gdb/gnulib/import".
4628
4629 2013-06-21 Will Newton <will.newton@linaro.org>
4630
4631 * doublest.c (ldfrexp): Remove function.
4632 (convert_doublest_to_floatformat): Call frexpl instead of
4633 ldfrexp.
4634
4635 2013-06-21 Will Newton <will.newton@linaro.org>
4636
4637 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4638 * gnulib/aclocal.m4: Regenerate.
4639 * gnulib/config.in: Regenerate.
4640 * gnulib/configure: Regenerate.
4641 * gnulib/import/Makefile.am: Update.
4642 * gnulib/import/Makefile.in: Update.
4643 * gnulib/import/m4/gnulib-cache.m4: Update.
4644 * gnulib/import/m4/gnulib-comp.m4: Update.
4645 * gnulib/import/float+.h: Import.
4646 * gnulib/import/float.c: Import.
4647 * gnulib/import/float.in.h: Import.
4648 * gnulib/import/fpucw.h: Import.
4649 * gnulib/import/frexp.c: Import.
4650 * gnulib/import/frexpl.c: Import.
4651 * gnulib/import/isnan.c: Import.
4652 * gnulib/import/isnand-nolibm.h: Import.
4653 * gnulib/import/isnand.c: Import.
4654 * gnulib/import/isnanl-nolibm.h: Import.
4655 * gnulib/import/isnanl.c: Import.
4656 * gnulib/import/itold.c: Import.
4657 * gnulib/import/m4/exponentd.m4: Import.
4658 * gnulib/import/m4/exponentl.m4: Import.
4659 * gnulib/import/m4/float_h.m4: Import.
4660 * gnulib/import/m4/fpieee.m4: Import.
4661 * gnulib/import/m4/frexp.m4: Import.
4662 * gnulib/import/m4/frexpl.m4: Import.
4663 * gnulib/import/m4/isnand.m4: Import.
4664 * gnulib/import/m4/isnanl.m4: Import.
4665 * gnulib/import/m4/math_h.m4: Import.
4666 * gnulib/import/math.c: Import.
4667 * gnulib/import/math.in.h: Import.
4668
4669 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4670
4671 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4672 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4673 signature_INTEL_edx comparisons.
4674
4675 2013-06-20 Doug Evans <dje@google.com>
4676
4677 symtab/15652
4678 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4679 All callers updated.
4680 (open_dwp_file): If we can't find the dwp file, search the basename
4681 in debug-file-directory.
4682
4683 * dwarf2read.c (struct dwp_file): Fix comment.
4684 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4685
4686 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4687 better.
4688
4689 2013-06-20 Yao Qi <yao@codesourcery.com>
4690
4691 * breakpoint.c (create_breakpoint): Fix code indentation.
4692
4693 2013-06-20 Yao Qi <yao@codesourcery.com>
4694
4695 * breakpoint.c (create_breakpoints_sal_default): Remove
4696 parameter 'lsal'. Update declaration.
4697 (bkpt_create_breakpoints_sal): Caller update.
4698 (tracepoint_create_breakpoints_sal): Likewise.
4699
4700 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4701 Yao Qi <yao@codesourcery.com>
4702
4703 * NEWS: Mention the new option '--skip-unavailable' of command
4704 -data-list-register-values.
4705 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4706 --skip-unavailable option. Adjust to use output_register.
4707 (output_register): Add new 'skip_unavailable' parameter.
4708 Handle it.
4709
4710 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4711
4712 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4713 common/i386-gcc-cpuid.h.
4714 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4715 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4716 Copy the latest version from upstream gcc.
4717 * common/linux-btrace.c: Include i386-cpuid.h.
4718 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4719 call to i386_cpuid.
4720 (cpu_supports_btrace): Likewise.
4721 * go32-nat.c: Include i386-cpuid.h.
4722 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4723
4724 2013-06-19 Doug Evans <dje@google.com>
4725
4726 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4727 (get_section_index): Ditto.
4728
4729 2013-06-19 Tom Tromey <tromey@redhat.com>
4730
4731 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4732 "dprintf" help.
4733
4734 2013-06-18 Doug Evans <dje@google.com>
4735
4736 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4737 before using it.
4738 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4739 Move test of cu_index closer to use. Print complaint if cu_index
4740 is bad.
4741
4742 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4743
4744 * machoread.c (oso_vector): Delete this global.
4745 (macho_register_oso): Add new parameter "oso_vector_ptr".
4746 Use it instead of the "oso_vector" global.
4747 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4748 (macho_symfile_read): Use a local oso_vector, to be free'ed
4749 at the end of this function, in place of the old "oso_vector"
4750 global. Update various function calls accordingly. Use one
4751 single cleanup chain for the entire function.
4752
4753 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4754
4755 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4756 DWARF2_PER_OBJFILE by uses of DATA instead.
4757
4758 2013-06-18 Tom Tromey <tromey@redhat.com>
4759
4760 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4761 argument.
4762 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4763 Special case signals other than GDB_SIGNAL_TRAP.
4764 (explains_signal_watchpoint): New function.
4765 (base_breakpoint_explains_signal): Add 'sig' argument.
4766 (initialize_breakpoint_ops): Set 'explains_signal' method for
4767 watchpoints.
4768 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4769 signal argument.
4770 (bpstat_explains_signal): Likewise.
4771 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4772
4773 2013-06-18 Tom Tromey <tromey@redhat.com>
4774
4775 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4776
4777 2013-06-18 Tom Tromey <tromey@redhat.com>
4778
4779 * python/python.c (finish_python_initialization): Decref
4780 'pythondir' on failure path as well.
4781
4782 2013-06-18 Tom Tromey <tromey@redhat.com>
4783
4784 PR symtab/15391:
4785 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4786 after taking bits_to_skip into account. Sign extend byte_offset.
4787 * utils.h (gdb_sign_extend): Declare.
4788 * utils.c (gdb_sign_extend): New function.
4789
4790 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4791
4792 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4793
4794 2013-06-17 Pierre Muller <muller@sourceware.org>
4795
4796 * corelow.c (core_open): Print GDB signal name instead of target
4797 signal number.
4798
4799 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4800
4801 * .gitignore: Add /gcore.
4802
4803 2013-06-13 Doug Evans <dje@google.com>
4804
4805 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4806 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4807
4808 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4809
4810 * stack.c (backtrace_command_1): Fix indentation.
4811
4812 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4813
4814 * window-nat.c (thread_rec): Add missing empty line after
4815 local variable declaration.
4816
4817 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4818
4819 * windows-nat.c (thread_rec): Revert format used to print
4820 error code returned by SuspendThread from %d back to %u.
4821
4822 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4823
4824 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4825 ID in debug trace.
4826 (get_windows_debug_event): Likewise, for all debug traces.
4827
4828 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4829
4830 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4831 warning message.
4832
4833 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4834 Yao Qi <yao@codesourcery.com>
4835
4836 * mi/mi-main.c (get_register): Remove declaration.
4837 (output_register): Declare.
4838 (mi_cmd_data_list_register_values): Remove local variable
4839 'tuple_cleanup'. Move some code into output_register.
4840 (get_register): Renamed to ...
4841 (output_register): ... this. Output the register's
4842 "number" ui_out tuple here.
4843
4844 2013-06-07 Pedro Alves <palves@redhat.com>
4845
4846 * darwin-nat.c: Fix formating in copyright header.
4847 * darwin-nat.h: Likewise.
4848 * gnu-nat.c: Likewise.
4849 * machoread.c: Likewise.
4850
4851 2013-06-07 Pedro Alves <palves@redhat.com>
4852
4853 PR server/14823
4854 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4855 static. Output a global target description pointer.
4856 (init_registers_${name}): Adjust to initialize a
4857 target description structure.
4858
4859 2013-06-07 Will Newton <will.newton@linaro.org>
4860
4861 * printcmd.c (build_address_symbolic): Call
4862 gdbarch_addr_bits_remove for text minimal symbols.
4863
4864 2013-06-07 Will Newton <will.newton@linaro.org>
4865
4866 * MAINTAINERS: Add myself to Write After Approval.
4867
4868 2013-06-07 Yao Qi <yao@codesourcery.com>
4869
4870 * tracepoint.c (start_tracing): Move code to ...
4871 (trace_reset_local_state): ... here. New.
4872 (disconnect_tracing): Don't call set_current_traceframe,
4873 set_tracepoint_num, and set_traceframe_context. Call
4874 trace_reset_local_state instead.
4875 (tfile_close): Call trace_reset_local_state.
4876 * ctf.c (ctf_close): Likewise.
4877 * remote.c (remote_close): Likewise.
4878 * tracepoint.h (trace_reset_local_state): Declare.
4879
4880 2013-06-06 Doug Evans <dje@google.com>
4881
4882 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4883 and fix header docs.
4884
4885 2013-06-05 Doug Evans <dje@google.com>
4886 Keith Seitz <keiths@redhat.com>
4887
4888 PR 15519
4889 * cp-namespace.c (find_symbol_in_baseclass): Call
4890 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4891 Check result of call to lookup_symbol_static.
4892 Call lookup_static_symbol_aux unconditionally.
4893 Call check_typedef on base types before accessing them.
4894 (cp_lookup_nested_symbol): Fix comment.
4895
4896 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4897
4898 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4899 minimal symbols pointing to function descriptors.
4900
4901 2013-06-05 Tom Tromey <tromey@redhat.com>
4902
4903 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4904
4905 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4906 Pedro Alves <palves@redhat.com>
4907
4908 * remote.c (remote_wait_as): Restore signal handler before returning
4909 when GDB gets a notification.
4910
4911 2013-06-04 Gary Benson <gbenson@redhat.com>
4912
4913 PR 2328
4914 * breakpoint.h (handle_solib_event): Moved function declaration
4915 to solib.h.
4916 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4917 (bpstat_stop_status): Pass new argument to handle_solib_event.
4918 * solib.h (update_solib_breakpoints): New function declaration.
4919 (handle_solib_event): Moved function declaration from
4920 breakpoint.h.
4921 * solib.c (update_solib_breakpoints): New function.
4922 (handle_solib_event): Moved function from breakpoint.c.
4923 Updated to call solib_ops->handle_event if not NULL.
4924 * solist.h (target_so_ops): New fields "update_breakpoints" and
4925 "handle_event".
4926 * infrun.c (set_stop_on_solib_events): New function.
4927 (_initialize_infrun): Use the above for "set
4928 stop-on-solib-events".
4929 (handle_inferior_event): Pass new argument to handle_solib_event.
4930 * solib-svr4.c (probe.h): New include.
4931 (svr4_free_library_list): New forward declaration.
4932 (probe_action): New enum.
4933 (probe_info): New struct.
4934 (probe_info): New static variable.
4935 (NUM_PROBES): New definition.
4936 (svr4_info): New fields "using_xfer", "probes_table" and
4937 "solib_list".
4938 (free_probes_table): New function.
4939 (free_solib_list): New function.
4940 (svr4_pspace_data_cleanup): Free probes table and solib list.
4941 (svr4_copy_library_list): New function.
4942 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4943 (svr4_read_so_list): New parameter "prev_lm".
4944 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4945 (svr4_current_sos): New function.
4946 (probe_and_action): New struct.
4947 (hash_probe_and_action): New function.
4948 (equal_probe_and_action): Likewise.
4949 (register_solib_event_probe): Likewise.
4950 (solib_event_probe_at): Likewise.
4951 (solib_event_probe_action): Likewise.
4952 (solist_update_full): Likewise.
4953 (solist_update_incremental): Likewise.
4954 (disable_probes_interface_cleanup): Likewise.
4955 (svr4_handle_solib_event): Likewise.
4956 (svr4_update_solib_event_breakpoint): Likewise.
4957 (svr4_update_solib_event_breakpoints): Likewise.
4958 (svr4_create_solib_event_breakpoints): Likewise.
4959 (enable_break): Free probes table before creating breakpoints.
4960 Use svr4_create_solib_event_breakpoints to create breakpoints.
4961 (svr4_solib_create_inferior_hook): Free the solib list.
4962 (_initialize_svr4_solib): Initialise
4963 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4964
4965 2013-06-04 Gary Benson <gbenson@redhat.com>
4966
4967 * target.h (target_ops): New field
4968 "to_augmented_libraries_svr4_read".
4969 (target_augmented_libraries_svr4_read): New macro.
4970 * target.c (update_current_target): Handle
4971 to_augmented_libraries_svr4_read.
4972 * remote.c (remote_state): New field
4973 "augmented_libraries_svr4_read".
4974 (remote_augmented_libraries_svr4_read_feature): New function.
4975 (remote_protocol_features): Add entry for
4976 "augmented-libraries-svr4-read".
4977 (remote_augmented_libraries_svr4_read): New function.
4978 (init_remote_ops): Initialize
4979 remote_ops.to_augmented_libraries_svr4_read.
4980
4981 2013-06-04 Gary Benson <gbenson@redhat.com>
4982
4983 * NEWS: Update.
4984
4985 2013-06-04 Gary Benson <gbenson@redhat.com>
4986
4987 * objfiles.h (inhibit_section_map_updates): New function
4988 declaration.
4989 (resume_section_map_updates): Likewise.
4990 (resume_section_map_updates_cleanup): Likewise.
4991 * objfiles.c (objfile_pspace_info): Removed field
4992 "objfiles_changed_p". New fields "new_objfiles_available",
4993 "section_map_dirty" and "inhibit_updates".
4994 (allocate_objfile): Set new_objfiles_available.
4995 (free_objfile): Set section_map_dirty.
4996 (objfile_relocate1): Likewise.
4997 (in_plt_section): Likewise.
4998 (find_pc_section): Update the conditions under which the
4999 section map will be updated.
5000 (inhibit_section_map_updates): New function.
5001 (resume_section_map_updates): Likewise.
5002 (resume_section_map_updates_cleanup): Likewise.
5003
5004 2013-06-04 Gary Benson <gbenson@redhat.com>
5005
5006 * probe.h (get_probe_argument_count): New declaration.
5007 (evaluate_probe_argument): Likewise.
5008 * probe.c (get_probe_argument_count): New function.
5009 (evaluate_probe_argument): Likewise.
5010 (probe_safe_evaluate_at_pc): Use the above new functions.
5011
5012 2013-06-04 Alan Modra <amodra@gmail.com>
5013
5014 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5015 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5016 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5017 target mem reads on optional insns.
5018 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5019 ppc_insns_match_pattern calls.
5020 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5021 Add match for power7 thread safety insns, and new order of
5022 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5023 invocation in comment, and update rest of comment.
5024 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5025 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5026 (ppc64_standard_linkage2_target): Update insn offsets.
5027 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5028 stubs first. Update calls.
5029
5030 2013-06-04 Yao Qi <yao@codesourcery.com>
5031
5032 * solib.c (solib_find): Don't need dir separator if path has
5033 drive spec.
5034
5035 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5036
5037 Revert (indirectly causes a SIGSEGV):
5038 * machoread.c (macho_symfile_read): Assign first cleanup to
5039 'back_to'.
5040
5041 2013-06-03 Yao Qi <yao@codesourcery.com>
5042
5043 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5044 mi-parse.c. Make them static.
5045 (mi_all_values): Likewise.
5046 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5047 mi_parse_print_values. Make it external.
5048 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5049 Remove the declarations.
5050 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5051 * mi/mi-parse.h (mi_parse_print_values): Declare.
5052 * mi/mi-cmd-stack.c: Include mi-parse.h.
5053 (parse_print_values): Remove
5054 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5055 of parse_print_values.
5056 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5057
5058 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5059 Yao Qi <yao@codesourcery.com>
5060
5061 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5062 (encode_actions): Move code to ...
5063 (all_tracepoint_actions_and_cleanup): ... here. New.
5064 (trace_dump_command): Likewise.
5065
5066 2013-05-30 Tom Tromey <tromey@redhat.com>
5067
5068 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5069
5070 2013-05-30 Tom Tromey <tromey@redhat.com>
5071
5072 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5073 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5074 'old_chain' argument. Add 'parser_result' argument.
5075 (gdb_xml_create_parser_and_cleanup): Remove old version.
5076 (gdb_xml_parse_quick): Update.
5077 (xml_process_xincludes): Update.
5078 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5079 declare.
5080
5081 2013-05-30 Tom Tromey <tromey@redhat.com>
5082
5083 * probe.c (collect_probes): Check arguments for NULL before
5084 calling compile_rx_or_error.
5085 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5086 Remove NULL return.
5087
5088 2013-05-30 Tom Tromey <tromey@redhat.com>
5089
5090 * infrun.c (adjust_pc_after_break): Introduce an outer null
5091 cleanup.
5092
5093 2013-05-30 Tom Tromey <tromey@redhat.com>
5094
5095 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5096
5097 2013-05-30 Tom Tromey <tromey@redhat.com>
5098
5099 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5100 for 'old_chain'. Do not check 'head' before processing
5101 cleanups.
5102
5103 2013-05-30 Tom Tromey <tromey@redhat.com>
5104
5105 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5106 "cleanup_tuple".
5107
5108 2013-05-30 Tom Tromey <tromey@redhat.com>
5109
5110 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5111 inner scope. Unconditionally call do_cleanups.
5112
5113 2013-05-30 Tom Tromey <tromey@redhat.com>
5114
5115 * source.c (find_and_open_source): Call do_cleanups.
5116
5117 2013-05-30 Tom Tromey <tromey@redhat.com>
5118
5119 * linux-thread-db.c (thread_db_load_search): Unconditionally
5120 call do_cleanups.
5121
5122 2013-05-30 Tom Tromey <tromey@redhat.com>
5123
5124 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5125 for 'cleanup'; instead use a later one.
5126
5127 2013-05-30 Tom Tromey <tromey@redhat.com>
5128
5129 * python/py-breakpoint.c (bppy_get_commands): Use
5130 explicit, unconditional return.
5131 * python/py-frame.c (frapy_read_var): Likewise.
5132 * python/python.c (gdbpy_decode_line): Likewise.
5133
5134 2013-05-30 Tom Tromey <tromey@redhat.com>
5135
5136 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5137 do_cleanups on all return paths.
5138
5139 2013-05-30 Tom Tromey <tromey@redhat.com>
5140
5141 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5142
5143 2013-05-30 Tom Tromey <tromey@redhat.com>
5144
5145 * stabsread.c (read_struct_type): Call do_cleanups along
5146 all return paths.
5147
5148 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5149
5150 * mips-linux-tdep.c: Adjust formatting throughout.
5151
5152 2013-05-30 Tom Tromey <tromey@redhat.com>
5153
5154 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5155 along all return paths.
5156
5157 2013-05-30 Tom Tromey <tromey@redhat.com>
5158
5159 * symfile.c (find_separate_debug_file): Call do_cleanups
5160 along all return paths.
5161
5162 2013-05-30 Tom Tromey <tromey@redhat.com>
5163
5164 * symtab.c (search_symbols): Introduce a null cleanup for
5165 'retval_chain'.
5166
5167 2013-05-30 Tom Tromey <tromey@redhat.com>
5168
5169 * python/py-value.c (valpy_binop): Call do_cleanups before
5170 exiting loop.
5171
5172 2013-05-30 Tom Tromey <tromey@redhat.com>
5173
5174 * python/py-prettyprint.c (print_children): Remove extra
5175 do_cleanups call.
5176
5177 2013-05-30 Tom Tromey <tromey@redhat.com>
5178
5179 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5180 all return paths.
5181
5182 2013-05-30 Tom Tromey <tromey@redhat.com>
5183
5184 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5185 along all return paths.
5186
5187 2013-05-30 Tom Tromey <tromey@redhat.com>
5188
5189 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5190 call do_cleanups.
5191
5192 2013-05-30 Tom Tromey <tromey@redhat.com>
5193
5194 * varobj.c (c_value_of_root): Call do_cleanups along all
5195 return paths.
5196
5197 2013-05-30 Tom Tromey <tromey@redhat.com>
5198
5199 * tracepoint.c (trace_dump_command): Unconditionally call
5200 do_cleanups.
5201
5202 2013-05-30 Tom Tromey <tromey@redhat.com>
5203
5204 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5205 do_cleanups earlier.
5206
5207 2013-05-30 Tom Tromey <tromey@redhat.com>
5208
5209 * machoread.c (macho_symfile_read): Assign first cleanup to
5210 'back_to'.
5211
5212 2013-05-30 Tom Tromey <tromey@redhat.com>
5213
5214 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5215
5216 2013-05-30 Tom Tromey <tromey@redhat.com>
5217
5218 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5219
5220 2013-05-30 Tom Tromey <tromey@redhat.com>
5221
5222 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5223 call discard_cleanups.
5224 (inf_ptrace_attach): Likewise.
5225
5226 2013-05-30 Tom Tromey <tromey@redhat.com>
5227
5228 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5229 return paths.
5230 (mips_initialize): Likewise.
5231 (common_open): Call do_cleanups.
5232
5233 2013-05-30 Tom Tromey <tromey@redhat.com>
5234
5235 * utils.c (internal_vproblem): Call do_cleanups.
5236
5237 2013-05-30 Tom Tromey <tromey@redhat.com>
5238
5239 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5240
5241 2013-05-30 Tom Tromey <tromey@redhat.com>
5242
5243 * cli/cli-script.c (setup_user_args): Don't return after error.
5244
5245 2013-05-30 Tom Tromey <tromey@redhat.com>
5246
5247 * somread.c (som_symtab_read): Call do_cleanups.
5248
5249 2013-05-30 Tom Tromey <tromey@redhat.com>
5250
5251 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5252
5253 2013-05-30 Tom Tromey <tromey@redhat.com>
5254
5255 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5256 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5257 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5258 * source.c (show_substitute_path_command): Call do_cleanups.
5259 (unset_substitute_path_command, set_substitute_path_command):
5260 Likewise.
5261 * symfile.c (load_command): Call do_cleanups.
5262
5263 2013-05-30 Tom Tromey <tromey@redhat.com>
5264
5265 * contrib/cleanup_check.py: New file.
5266 * contrib/gcc-with-excheck: Add option parsing.
5267
5268 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5269
5270 * windows-nat.c (windows_delete_thread): Add missing space
5271 in cast expression.
5272
5273 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5274
5275 * inferior.c (top level): Include tilde.h.
5276 (add_inferior_command): Call tilde_expand on the value of 'exec'
5277 argument.
5278
5279 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5280 Yao Qi <yao@codesourcery.com>
5281
5282 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5283 Caller update.
5284 (encode_actions): Likewise.
5285 * remote.c (remote_download_tracepoint): Caller update.
5286 * tracepoint.h (encode_actions): Update declaration.
5287
5288 2013-05-30 Pedro Alves <palves@redhat.com>
5289
5290 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5291 pointer.
5292
5293 2013-05-30 Yao Qi <yao@codesourcery.com>
5294
5295 * remote.c (remote_check_symbols): Remove unused parameter
5296 'objfile'.
5297 Declaration update.
5298 (remote_start_remote, remote_new_objfile): Caller update.
5299
5300 2013-05-30 Yao Qi <yao@codesourcery.com>
5301
5302 * mi/mi-cmds.c (mi_cmds): Define MI command
5303 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5304 DEF_MI_CMD_CLI.
5305
5306 2013-05-29 Pedro Alves <palves@redhat.com>
5307
5308 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5309 (remote_insert_watchpoint, remote_remove_watchpoint)
5310 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5311 (remote_verify_memory, compare_sections_command)
5312 (remote_search_memory): Set the general process/thread on the
5313 remote side.
5314
5315 2013-05-29 Pedro Alves <palves@redhat.com>
5316
5317 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5318 (_initialize_aarch64_tdep): Don't call
5319 initialize_tdesc_aarch64_without_fpu.
5320 * features/Makefile (WHICH): Remove reference to
5321 aarch64-without-fpu.
5322 * features/aarch64-without-fpu.c: Delete file.
5323 * regformats/aarch64-without-fpu.dat: Delete file.
5324
5325 2013-05-28 Yao Qi <yao@codesourcery.com>
5326
5327 * tracepoint.c (stringify_collection_list): Remove parameter
5328 'string'.
5329 (encode_actions): Caller update. Remove local variables.
5330
5331 2013-05-24 Yao Qi <yao@codesourcery.com>
5332
5333 * tracepoint.c (TFILE_PID): Remove.
5334 (tfile_open): Don't add thread and inferior.
5335 (tfile_close): Don't set 'inferior_ptid'. Don't call
5336 exit_inferior_silent.
5337 (tfile_thread_alive): Remove.
5338 (init_tfile_ops): Don't set field 'to_thread_alive' of
5339 tfile_ops.
5340
5341 2013-05-23 Doug Evans <dje@google.com>
5342
5343 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5344
5345 2013-05-23 Pedro Alves <palves@redhat.com>
5346
5347 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5348 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5349 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5350 Only define if HAVE_SOCKETS is defined.
5351 * configure.ac: Check for sys/socket.h.
5352 * config.in, configure: Regenerate.
5353
5354 2013-05-23 Pedro Alves <palves@redhat.com>
5355
5356 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5357 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5358 printing uint32_t variables.
5359
5360 2013-05-23 Pedro Alves <palves@redhat.com>
5361
5362 * NEWS: Mention GDBserver range stepping support.
5363
5364 2013-05-23 Yao Qi <yao@codesourcery.com>
5365 Pedro Alves <palves@redhat.com>
5366
5367 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5368 field.
5369 * infcmd.c (step_once, until_next_command): Enable range stepping.
5370 * infrun.c (displaced_step_prepare): Disable range stepping.
5371 (resume): Disable range stepping if stepping over a breakpoint or
5372 we have software watchpoints. If range stepping is enabled,
5373 assert the thread is in the stepping range.
5374 (clear_proceed_status_thread): Clear may_range_step.
5375 (handle_inferior_event): Disable range stepping as soon as we know
5376 the thread that hit the event. Re-enable it whenever we're going
5377 to step with a step range.
5378 * remote.c (struct vCont_action_support) <r>: New field.
5379 (use_range_stepping): New global.
5380 (remote_vcont_probe): Handle 'r' action.
5381 (append_resumption): Append an 'r' action if the thread may range
5382 step.
5383 (show_range_stepping): New function.
5384 (set_range_stepping): New function.
5385 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5386 'set range-stepping' and 'show range-stepping' commands.
5387 * NEWS: Mention range stepping, the new vCont;r action, and the
5388 new "set/show range-stepping" commands.
5389
5390 2013-05-23 Yao Qi <yao@codesourcery.com>
5391 Pedro Alves <palves@redhat.com>
5392
5393 * remote.c (struct vCont_action_support): New struct.
5394 (struct remote_state) <support_vCont_t>: Remove field.
5395 <vCont_actions_support>: New field.
5396 (remote_vcont_probe, remote_stop_ns): Update.
5397
5398 2013-05-23 Yao Qi <yao@codesourcery.com>
5399 Pedro Alves <palves@redhat.com>
5400
5401 * gdbthread.h (pc_in_thread_step_range): New declaration.
5402 * thread.c (pc_in_thread_step_range): New function.
5403 * infrun.c (handle_inferior_event): Use it.
5404
5405 2013-05-23 Joel Brobecker <brobecker@adacore.com>
5406
5407 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5408 of sprintf.
5409
5410 2013-05-22 Keith Seitz <keiths@redhat.com>
5411
5412 * ada-lang.c (is_known_support_routine): Add explicit free of
5413 'func_name' from find_frame_funname.
5414 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5415 for func_name from find_frame_funname.
5416 * python/py-frame.c (frapy_name): Add explicit free of
5417 'name' from find_frame_funname.
5418 * stack.c (find_frame_funname): Add comment explaining that
5419 funcp must be freed by the caller.
5420 Return copy of symbol names instead of pointers.
5421 (print_frame): Add a cleanup for 'funname' from
5422 find_frame_funname.
5423 * stack.h (find_frame_funname): Remove "const" from
5424 'funname' parameter.
5425
5426 2013-05-22 Tom Tromey <tromey@redhat.com>
5427
5428 PR c++/15401:
5429 * c-valprint.c (c_value_print): Use value_addr for
5430 references. Convert back to reference type with value_ref.
5431
5432 2013-05-22 Eli Zaretskii <eliz@gnu.org>
5433
5434 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5435 unloaded DLL, it will be done by handle_solib_event. See
5436 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5437 details.
5438
5439 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5440
5441 * ui-out.c: Create typedef ui_out_level_p and define vector
5442 operations for that type.
5443 (struct ui_out): Use a vector instead of an array.
5444 (current_level): Return level from a vector.
5445 (push_level): Create a level in a vector.
5446 (pop_level): Delete a level in a vector.
5447 (ui_out_new): Create initial level zero level, and store in a
5448 vector.
5449 (ui_out_destroy): Add vector cleanup.
5450
5451 2013-05-22 Pedro Alves <palves@redhat.com>
5452
5453 * python/python-internal.h (gdb_Py_DECREF): Tag with
5454 "ARI: editCase function".
5455
5456 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5457
5458 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5459
5460 2013-05-21 Pedro Alves <palves@redhat.com>
5461
5462 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5463 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5464 * python/py-utils.c (py_decref): Don't check for NULL before
5465 calling Py_DECREF.
5466
5467 2013-05-21 Pedro Alves <palves@redhat.com>
5468
5469 * python/py-utils.c (py_decref): Remove extra braces.
5470 (gdb_pymodule_addobject): Remove extra braces.
5471 * python-internal.h (gdb_Py_DECREF): New static inline function.
5472 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5473
5474 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5475
5476 * breakpoints.c (detach_breakpoints): Do not
5477 detach breakpoints locations with loc_type bp_loc_other.
5478
5479 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5480
5481 Workaround Python 2.6.
5482 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5483 a block.
5484
5485 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5486
5487 Code cleanup: constification.
5488 * solib.c (solib_ops): Make return type and ops variable type const.
5489 (set_solib_ops): Make the new_ops parameter and ops variable const.
5490 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5491 (solib_add, solib_keep_data_in_core, clear_solib)
5492 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5493 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5494 const.
5495 * solib.h (set_solib_ops): Make the new_ops parameter const.
5496
5497 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5498
5499 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5500 variable.
5501 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5502 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5503 (SYSTEM_GDBINIT_FILES): New variables.
5504 (all): Add stamp-system-gdbinit.
5505 (stamp-system-gdbinit): New rule.
5506 (clean-system-gdbinit, install-system-gdbinit)
5507 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5508 (install-only): Add dependency on install-system-gdbinit.
5509 (uninstall): Add dependency on uninstall-system-gdbinit.
5510 (clean): Add dependency on clean-system-gdbinit.
5511 * system-gdbinit/elinos.py: New file.
5512 * system-gdbinit/wrs-linux.py: New file.
5513
5514 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5515
5516 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5517
5518 2013-05-21 Hui Zhu <hui@codesourcery.com>
5519
5520 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5521 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5522 * mi/mi-cmd-break.c (ctype.h): New include.
5523 (gdb_obstack.h): New include.
5524 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5525 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5526 (mi_cmd_dprintf_insert): New.
5527 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5528 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5529
5530 2013-05-20 Tom Tromey <tromey@redhat.com>
5531
5532 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5533
5534 2013-05-20 Tom Tromey <tromey@redhat.com>
5535
5536 * python/py-value.c (valpy_get_dynamic_type): Simplify
5537 dynamic_type assignment. Use Py_XINCREF.
5538
5539 2013-05-20 Tom Tromey <tromey@redhat.com>
5540
5541 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5542
5543 2013-05-20 Tom Tromey <tromey@redhat.com>
5544
5545 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5546 (gdbpy_selected_frame): Move object-construction code
5547 out of TRY_CATCH.
5548
5549 2013-05-20 Tom Tromey <tromey@redhat.com>
5550
5551 * python/py-arch.c (gdbpy_initialize_arch): Use
5552 gdb_pymodule_addobject.
5553 * python/py-block.c (gdbpy_initialize_blocks): Use
5554 gdb_pymodule_addobject.
5555 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5556 gdb_pymodule_addobject.
5557 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5558 gdb_pymodule_addobject.
5559 * python/py-event.c (gdbpy_initialize_event_generic): Use
5560 gdb_pymodule_addobject.
5561 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5562 gdb_pymodule_addobject.
5563 * python/py-evts.c (add_new_registry): Use
5564 gdb_pymodule_addobject.
5565 (gdbpy_initialize_py_events): Likewise.
5566 * python/py-finishbreakpoint.c
5567 (gdbpy_initialize_finishbreakpoints): Use
5568 gdb_pymodule_addobject.
5569 * python/py-frame.c (gdbpy_initialize_frames): Use
5570 gdb_pymodule_addobject.
5571 * python/py-function.c (gdbpy_initialize_functions): Use
5572 gdb_pymodule_addobject.
5573 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5574 gdb_pymodule_addobject.
5575 * python/py-infthread.c (gdbpy_initialize_thread): Use
5576 gdb_pymodule_addobject.
5577 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5578 gdb_pymodule_addobject.
5579 * python/py-param.c (gdbpy_initialize_parameters): Use
5580 gdb_pymodule_addobject.
5581 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5582 gdb_pymodule_addobject.
5583 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5584 gdb_pymodule_addobject.
5585 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5586 gdb_pymodule_addobject.
5587 * python/py-type.c (gdbpy_initialize_types): Use
5588 gdb_pymodule_addobject.
5589 * python/py-utils.c (gdb_pymodule_addobject): New function.
5590 * python/py-value.c (gdbpy_initialize_values): Use
5591 gdb_pymodule_addobject.
5592 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5593 * python/python.c (_initialize_python): Use
5594 gdb_pymodule_addobject.
5595
5596 2013-05-20 Tom Tromey <tromey@redhat.com>
5597
5598 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5599 * python/py-param.c (get_set_value, get_show_value): Use
5600 explicit decrefs.
5601 * python/python.c (start_type_printers, apply_type_printers):
5602 Use explicit decrefs.
5603
5604 2013-05-20 Tom Tromey <tromey@redhat.com>
5605
5606 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5607 incref the module.
5608
5609 2013-05-20 Tom Tromey <tromey@redhat.com>
5610
5611 * python/python.c (gdbpy_run_events): Decref the result
5612 of PyObject_CallObject.
5613
5614 2013-05-20 Tom Tromey <tromey@redhat.com>
5615
5616 * python/py-symtab.c (set_sal): Use
5617 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5618 (symtab_and_line_to_sal_object): Update.
5619
5620 2013-05-20 Tom Tromey <tromey@redhat.com>
5621
5622 * python/py-param.c (compute_enum_values): Decref 'item'.
5623
5624 2013-05-20 Tom Tromey <tromey@redhat.com>
5625
5626 * mi/mi-main.c: Include python-internal.h.
5627 (mi_cmd_list_features): Check gdb_python_initialized.
5628 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5629 (python_inferior_exit, python_new_objfile, add_thread_object)
5630 (delete_thread_object, py_free_inferior): Check
5631 gdb_python_initialized.
5632 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5633 gdb_python_initialized.
5634 * python/py-type.c (save_objfile_types): Check
5635 gdb_python_initialized.
5636 * python/python-internal.h (gdb_python_initialized): Declare.
5637 * python/python.c (ensure_python_env): Throw exception if
5638 Python not initialized.
5639 (before_prompt_hook, source_python_script_for_objfile)
5640 (start_type_printers, apply_type_printers,
5641 free_type_printers): Check gdb_python_initialized.
5642 * varobj.c (varobj_get_display_hint)
5643 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5644 (install_new_value_visualizer, varobj_set_visualizer)
5645 (value_get_print_value): Check gdb_python_initialized.
5646
5647 2013-05-20 Tom Tromey <tromey@redhat.com>
5648
5649 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5650 Check errors.
5651 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5652 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5653 Check errors.
5654 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5655 Check errors.
5656 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5657 Check errors.
5658 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5659 Check errors.
5660 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5661 init function to return 'int'.
5662 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5663 Return 'int'. Check errors.
5664 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5665 Check errors.
5666 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5667 Return 'int'. Check errors.
5668 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5669 Check errors.
5670 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5671 Check errors.
5672 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5673 Check errors.
5674 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5675 Check errors.
5676 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5677 Check errors.
5678 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5679 Check errors.
5680 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5681 Check errors.
5682 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5683 Check errors.
5684 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5685 Check errors.
5686 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5687 Check errors.
5688 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5689 Check errors.
5690 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5691 Check errors.
5692 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5693 Check errors.
5694 * python/python-internal.h (gdbpy_initialize_auto_load,
5695 gdbpy_initialize_values, gdbpy_initialize_frames,
5696 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5697 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5698 gdbpy_initialize_blocks, gdbpy_initialize_types,
5699 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5700 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5701 gdbpy_initialize_finishbreakpoints,
5702 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5703 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5704 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5705 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5706 gdbpy_initialize_signal_event,
5707 gdbpy_initialize_breakpoint_event,
5708 gdbpy_initialize_continue_event,
5709 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5710 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5711 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5712 * python/python.c (gdb_python_initialized): New global.
5713 (gdbpy_initialize_events): Return 'int'. Check errors.
5714 (_initialize_python): Check errors. Set
5715 gdb_python_initialized.
5716
5717 2013-05-20 Tom Tromey <tromey@redhat.com>
5718
5719 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5720 Decref the reslut of PyObject_CallMethod.
5721
5722 2013-05-20 Tom Tromey <tromey@redhat.com>
5723
5724 * python/py-event.c (gdbpy_initialize_event_generic): Return
5725 early if PyType_Ready fails.
5726
5727 2013-05-20 Tom Tromey <tromey@redhat.com>
5728
5729 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5730 as 'default' in the switch.
5731
5732 2013-05-20 Tom Tromey <tromey@redhat.com>
5733
5734 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5735 get_addr_from_python calls out of TRY_CATCH.
5736 (infpy_write_memory, infpy_search_memory): Likewise.
5737 * python/py-utils.c (get_addr_from_python): Return negative
5738 value on error. Use TRY_CATCH.
5739 * python/python-internal.h (get_addr_from_python): Use
5740 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5741
5742 2013-05-20 Tom Tromey <tromey@redhat.com>
5743
5744 * python/py-event.c (evpy_emit_event): Decref the
5745 result of PyObject_CallFunctionObjArgs.
5746
5747 2013-05-20 Tom Tromey <tromey@redhat.com>
5748
5749 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5750 Correctly decref.
5751
5752 2013-05-20 Tom Tromey <tromey@redhat.com>
5753
5754 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5755
5756 2013-05-20 Tom Tromey <tromey@redhat.com>
5757
5758 * python/py-event.h (gdbpy_initialize_event_generic): Use
5759 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5760 * python/py-evts.c (add_new_registry): Use
5761 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5762 * python/python-internal.h
5763 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5764
5765 2013-05-20 Tom Tromey <tromey@redhat.com>
5766
5767 * python/py-arch.c (archpy_disassemble): Update.
5768 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5769 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5770 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5771 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5772 macro.
5773 (GDB_PY_HANDLE_EXCEPTION): Update.
5774 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5775
5776 2013-05-20 Tom Tromey <tromey@redhat.com>
5777
5778 * python/python-internal.h (events_object_type): Remove.
5779
5780 2013-05-20 Tom Tromey <tromey@redhat.com>
5781
5782 * python/py-event.h (evpy_emit_event): Use
5783 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5784 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5785 New macro.
5786
5787 2013-05-20 Tom Tromey <tromey@redhat.com>
5788
5789 * py-evtregistry.c (create_event_object): Decref
5790 eventregistry_object if PyList_New fails.
5791
5792 2013-05-20 Tom Tromey <tromey@redhat.com>
5793
5794 * py-cmd.c (gdbpy_string_to_argv): Check result of
5795 PyList_New.
5796
5797 2013-05-20 Tom Tromey <tromey@redhat.com>
5798
5799 * python/python.c (before_prompt_hook): Add cleanup to
5800 decref 'hook'.
5801
5802 2013-05-20 Tom Tromey <tromey@redhat.com>
5803
5804 * python/py-function.c (fnpy_init): Decref result of
5805 PyObject_GetAttrString.
5806
5807 2013-05-20 Tom Tromey <tromey@redhat.com>
5808
5809 * python/py-threadevent.c (get_event_thread): Use
5810 CPYCHECKER_RETURNS_BORROWED_REF.
5811 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5812 New define.
5813 (pspace_to_pspace_object, objfile_to_objfile_object)
5814 (find_thread_object): Use it.
5815
5816 2013-05-20 Tom Tromey <tromey@redhat.com>
5817
5818 * python/py-arch.c (arch_object_type): Use
5819 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5820 * python/py-block.c (block_syms_iterator_object_type):
5821 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5822 * python/py-bpevent.c (breakpoint_event_object_type):
5823 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5824 * python/py-cmd.c (cmdpy_object_type): Use
5825 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5826 * python/py-continueevent.c (continue_event_object_type):
5827 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5828 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5829 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5830 * python/py-events.h (thread_event_object_type):
5831 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5832 * python/py-evtregistry.c (eventregistry_object_type): Use
5833 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5834 * python/py-exitedevent.c (exited_event_object_type):
5835 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5836 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5837 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5838 * python/py-function.c (fnpy_object_type): Use
5839 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5840 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5841 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5842 * python/py-infthread.c (thread_object_type): Use
5843 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5844 * python/py-lazy-string.c (lazy_string_object_type):
5845 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5846 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5847 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5848 * python/py-objfile.c (objfile_object_type): Use
5849 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5850 * python/py-param.c (parmpy_object_type):
5851 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5852 * python/py-progspace.c (pspace_object_type):
5853 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5854 * python/py-signalevent.c (signal_event_object_type):
5855 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5856 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5857 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5858 * python/py-type.c (type_object_type, field_object_type)
5859 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5860 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5861 define.
5862 (value_object_type, block_object_type, symbol_object_type)
5863 (event_object_type, stop_event_object_type, breakpoint_object_type)
5864 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5865
5866 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5867
5868 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5869 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5870
5871 2013-05-20 Doug Evans <dje@google.com>
5872
5873 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5874 For Fission.
5875 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5876 reading_dwo_directly.
5877 (struct signatured_type): New member dwo_unit.
5878 (struct die_reader_specs): New member comp_dir.
5879 (create_signatured_type_table_from_index): Use malloc for
5880 all_type_units instead of objfile's obstack.
5881 (create_all_type_units): Ditto.
5882 (fill_in_sig_entry_from_dwo_entry): New function.
5883 (add_type_unit): New function.
5884 (lookup_dwo_signatured_type): New function.
5885 (lookup_dwp_signatured_type): New function.
5886 (lookup_signatured_type): New arg cu. All callers updated.
5887 (init_cu_die_reader): Initialize comp_dir.
5888 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5889 Change assert of matching type signatures to call error on mismatch.
5890 (lookup_dwo_unit): Add assert.
5891 (init_tu_and_read_dwo_dies): New function.
5892 (init_cutu_and_read_dies): Call it.
5893 (build_type_unit_groups): Handle case of no type unit groups created.
5894 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5895 (lookup_dwo_cutu): Tweak complaint.
5896 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5897 (dwarf2_per_objfile_free): Free all_type_units.
5898
5899 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5900
5901 * windows-nat.c (handle_unload_dll): Add missing empty line.
5902
5903 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5904
5905 * dwarf2read.c (prototyped_function_p): New function.
5906 (read_subroutine_type): Use it.
5907
5908 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5909
5910 * rs6000-aix-tdep.c: De-indent some example code provided
5911 as a comment.
5912
5913 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5914
5915 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5916 region is ok for a hardware watchpoint using the new ptrace interface
5917 on Power servers.
5918
5919 2013-05-17 Doug Evans <dje@google.com>
5920
5921 * NEWS: Mention new maintenance commands check-symtabs, and
5922 expand-symtabs, and renamed check-psymtabs.
5923 * psymtab.c (maintenance_check_psymtabs): Renamed from
5924 maintenance_check_symtabs. Only process already-expanded symbol
5925 tables.
5926 (_initialize_psymtab): Update.
5927 * symmisc.c (maintenance_check_symtabs): New function.
5928 (maintenance_expand_name_matcher): New function
5929 (maintenance_expand_file_matcher): New function
5930 (maintenance_expand_symtabs): New function.
5931 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5932 commands.
5933
5934 2013-05-17 Tom Tromey <tromey@redhat.com>
5935
5936 * python/py-inferior.c (infpy_read_memory): Don't call
5937 PyErr_SetString if PyObject_New fails.
5938 * python/py-frame.c (frame_info_to_frame_object): Don't call
5939 PyErr_SetString if PyObject_New fails.
5940
5941 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5942
5943 * acinclude.m4: Add check for dlopen in libdl.
5944 * configure.ac: Ditto.
5945 * configure: Regenerate.
5946
5947 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5948
5949 * frame.c (frame_stash): Convert to htab.
5950 (frame_addr_hash): New function.
5951 (frame_addr_hash_eq): New function.
5952 (frame_stash_create): Convert function to create
5953 a hash table.
5954 (frame_stash_add): Convert function to add an entry to a hash
5955 table.
5956 (frame_stash_find): Convert function to search the hash table.
5957 (frame_stash_invalidate): Convert function to empty the hash
5958 table.
5959 (get_frame_id): Only add to stash if a frame_id is created.
5960 (_initialize_frame): Call frame_stash_create.
5961
5962 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5963
5964 * configure.ac: Ensure MIG is available when building for GNU Hurd
5965 hosts.
5966 * configure: Regenerate.
5967
5968 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5969
5970 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5971
5972 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5973
5974 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5975 all cleanups are done before returning from this function.
5976
5977 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5978
5979 * utils.h: #include "exceptions.h".
5980 (enum errors): Remove partial declaration.
5981
5982 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5983
5984 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5985 * gdbarch.h, gdbarch.c: Regenerate.
5986 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5987 handling.
5988
5989 * rs6000-aix-tdep.h: New file.
5990 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5991 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5992 "xml-utils.h".
5993 (struct field_info, struct ld_info_desc): New types.
5994 (ld_info32_desc, ld_info64_desc): New static constants.
5995 (struct ld_info): New type.
5996 (rs6000_aix_extract_ld_info): New function.
5997 (rs6000_aix_shared_library_to_xml): Likewise.
5998 (rs6000_aix_ld_info_to_xml): Likewise.
5999 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6000 (rs6000_aix_init_osabi): Add call to
6001 set_gdbarch_core_xfer_shared_libraries_aix.
6002 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6003 Remove "xml-utils.h" include.
6004 (LdInfo): Delete typedef.
6005 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6006 Delete macros.
6007 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6008 Adjust code accordingly.
6009 (rs6000_core_ldinfo): Delete, folded into
6010 rs6000_aix_core_xfer_shared_libraries_aix.
6011 (rs6000_xfer_shared_library): Delete.
6012 (rs6000_xfer_shared_libraries): Reimplement.
6013
6014 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6015
6016 * record.c (record_goto_cmdlist): New.
6017 (cmd_record_goto): Split into this ...
6018 (cmd_record_goto_begin): ... this
6019 (cmd_record_goto_end): ... and this.
6020 (_initialize_record): Change "record goto" to prefix command.
6021 Add commands for "record goto begin" and "record goto end".
6022 Add an alias for "record goto start" to "record goto begin".
6023
6024 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6025
6026 * linespec.c (convert_linespec_to_sals): New comment for
6027 SOURCE_FILENAME assignment.
6028
6029 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6030
6031 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6032 internal_warning.
6033
6034 2013-05-14 Tom Tromey <tromey@redhat.com>
6035
6036 * eval.c (parse_and_eval_long): Make 'exp' const.
6037 * value.h (parse_and_eval_long): Update.
6038
6039 2013-05-14 Tom Tromey <tromey@redhat.com>
6040
6041 * ui-file.c (gdb_fopen): Make arguments const.
6042 * ui-file.h (gdb_fopen): Make arguments const.
6043
6044 2013-05-14 Tom Tromey <tromey@redhat.com>
6045
6046 * remote.c (remote_set_trace_notes): Make arguments const.
6047 * target.c (update_current_target): Update cast.
6048 * target.h (to_set_trace_notes): Make arguments const.
6049
6050 2013-05-14 Tom Tromey <tromey@redhat.com>
6051
6052 * go32-nat.c (go32_terminal_info): Make 'args' const.
6053 * inferior.h (child_terminal_info): Update.
6054 * inflow.c (child_terminal_info): Make 'args' const.
6055 * target.c (default_terminal_info): Make 'args' const.
6056 (debug_to_terminal_save_ours): Likewise.
6057 * target.h (struct target_ops) <to_terminal_info>: Make argument
6058 const.
6059
6060 2013-05-13 Tom Tromey <tromey@redhat.com>
6061
6062 * gcore.c (create_gcore_bfd): Make 'filename' const.
6063 * gcore.h (create_gcore_bfd): Make 'filename' const.
6064 * record-full.c (record_full_save): Make 'recfilename' const.
6065 * target.c (target_save_record): Make 'filename' const.
6066 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6067 const.
6068 (target_save_record): Likewise.
6069
6070 2013-05-13 Tom Tromey <tromey@redhat.com>
6071
6072 PR gdb/15338:
6073 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6074 ranges section has been read.
6075
6076 2013-05-13 Tom Tromey <tromey@redhat.com>
6077
6078 PR exp/15364:
6079 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6080 STRUCTOP_PTR>: Return a not_lval value for
6081 EVAL_AVOID_SIDE_EFFECTS.
6082 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6083 for EVAL_AVOID_SIDE_EFFECTS.
6084
6085 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6086
6087 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6088 floating point registers to register type before storing
6089 value.
6090 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6091 Likewise.
6092
6093 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6094 Tom Tromey <tromey@redhat.com>
6095
6096 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6097 New functions.
6098 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6099 Declare.
6100 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6101 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6102 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6103 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6104
6105 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6106 Tom Tromey <tromey@redhat.com>
6107
6108 PR build/15414:
6109 * configure: Rebuild.
6110 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6111 with -Wno-format.
6112
6113 2013-05-10 Pedro Alves <palves@redhat.com>
6114
6115 * remote.c (_initialize_remote): Fix spelling of
6116 qXfer:traceframe-info:read packet in packet config command.
6117
6118 2013-05-10 David Taylor <dtaylor@emc.com>
6119
6120 PR remote/15455
6121
6122 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6123 "QTro" at start of packet.
6124
6125 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6126
6127 * solib-aix.c (solib_aix_relocate_section_addresses):
6128 For the .bss section action, apply the same offset as
6129 the .data section.
6130
6131 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6132
6133 * solib-aix.c (solib_aix_relocate_section_addresses):
6134 Remove FIXME comment.
6135
6136 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6137
6138 PR tdep/15420:
6139 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6140 New functions, directly copied from sparc-sol-thread.c.
6141 * sparc-sol-thread.c: Delete.
6142 * configure.ac: Remove code handling sparc-solaris-thread.c.
6143 * configure: Regenerate.
6144
6145 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6146
6147 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6148 filter logic.
6149 (backtrace_command): Add "no-filters" option parsing.
6150 (_initialize_stack): Alter help to reflect "no-filters" option.
6151 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6152 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6153 (py-frame.o): Add target
6154 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6155 filter files.
6156 * python/python.h: Add new frame filter constants, and flag enum.
6157 (apply_frame_filter): Add definition.
6158 * python/python.c (apply_frame_filter): New non-Python
6159 enabled function.
6160 * python/py-utils.c (py_xdecref): New function.
6161 (make_cleanup_py_xdecref): Ditto.
6162 * python/py-objfile.c: Declare frame_filters dictionary.
6163 (objfpy_dealloc): Add frame_filters dealloc.
6164 (objfpy_new): Initialize frame_filters attribute.
6165 (objfile_to_objfile_object): Ditto.
6166 (objfpy_get_frame_filters): New function.
6167 (objfpy_set_frame_filters): New function.
6168 * python/py-progspace.c: Declare frame_filters dictionary.
6169 (pspy_dealloc): Add frame_filters dealloc.
6170 (pspy_new): Initialize frame_filters attribute.
6171 (pspacee_to_pspace_object): Ditto.
6172 (pspy_get_frame_filters): New function.
6173 (pspy_set_frame_filters): New function.
6174 * python/py-framefilter.c: New file.
6175 * python/lib/gdb/command/frame_filters.py: New file.
6176 * python/lib/gdb/frames.py: New file.
6177 * python/lib/gdb/__init__.py: Initialize global frame_filters
6178 dictionary
6179 * python/lib/gdb/FrameDecorator.py: New file.
6180 * python/lib/gdb/FrameIterator.py: New file.
6181 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6182 * mi/mi-cmds.h: Declare.
6183 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6184 --no-frame-filter logic, and Python frame filter logic.
6185 (stack_enable_frame_filters): New function.
6186 (parse_no_frame_option): Ditto.
6187 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6188 filter logic.
6189 (mi_cmd_stack_list_locals): Ditto.
6190 (mi_cmd_stack_list_args): Ditto.
6191 (mi_cmd_stack_list_variables): Ditto.
6192 * NEWS: Add frame filter note.
6193
6194 2013-05-09 Doug Evans <dje@google.com>
6195
6196 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6197 All callers updated.
6198 (syms_from_objfile): Ditto. Make static.
6199 (symbol_file_add_with_addrs): Renamed from
6200 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6201 num_offsets. All callers updated.
6202 * symfile.h (syms_from_objfile): Delete.
6203
6204 * symfile.c (decrement_reading_symtab): Add assert.
6205 (increment_reading_symtab): Ditto.
6206
6207 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6208
6209 * source.c (forward_search_command): Replace call to getc
6210 by call to fgetc.
6211 (reverse_search_command): Likewise.
6212
6213 2013-05-08 Doug Evans <dje@google.com>
6214
6215 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6216 matching test.
6217
6218 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6219
6220 * sol-thread.c (info_cb): Factorize the code a little.
6221
6222 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6223
6224 * sol-thread.c (info_cb): Rework the output of the "maintenance
6225 info sol-threads" command a bit.
6226
6227 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6228
6229 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6230 Replace ti.ti_startfunc by ti.ti_pc.
6231
6232 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6233
6234 * solib-aix.c (solib_aix_free_library_list): New function
6235 for the case where HAVE_LIBEXPAT is not defined.
6236
6237 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6238
6239 PR breakpoints/15413:
6240 * breakpoint.c (condition_completer): Simplify the code to
6241 disconsider multiple locations of breakpoints when completing the
6242 "condition" command.
6243
6244 2013-05-07 Pierre Muller <muller@sourceware.org>
6245
6246 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6247 instead of <sys/wait.h>.
6248
6249 2013-05-07 Pierre Muller <muller@sourceware.org>
6250
6251 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6252 trailing new line from warning message.
6253
6254 2013-05-07 Pierre Muller <muller@sourceware.org>
6255
6256 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6257 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6258
6259 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6260
6261 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6262 error message (ARI fix).
6263
6264 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6265
6266 * features/library-list-aix.dtd: Replace library-list by
6267 library-list-aix.
6268 * rs6000-nat.c: Replace library-list by library-list-aix
6269 throughout.
6270 * solib-aix.c: Likewise.
6271
6272 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6273
6274 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6275 Renames TARGET_OBJECT_AIX_LIBRARIES.
6276 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6277 TARGET_OBJECT_LIBRARIES_AIX throughout.
6278 * solib-aix.c: Likwise.
6279
6280 2013-05-07 Yao Qi <yao@codesourcery.com>
6281
6282 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6283 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6284
6285 2013-05-07 Yao Qi <yao@codesourcery.com>
6286
6287 * solib-dsbt.c (enable_break): Declare.
6288 (dsbt_current_sos): Remove call to enable_break2.
6289 (enable_break2): Rename to enable_break. Set solib breakpoint
6290 on '_dl_debug_state'.
6291 (enable_break): Remove.
6292
6293 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6294
6295 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6296 debug state prior to replicating existing hardware watchpoints or
6297 breakpoints.
6298
6299 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6300
6301 * gcore.c (gcore_create_callback): Ignore sections with
6302 separate_debug_objfile_backlink != NULL.
6303
6304 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6305 Andrew Jenner <andrew@codesourcery.com>
6306 Chung-Lin Tang <cltang@codesourcery.com>
6307 Julian Brown <julian@codesourcery.com>
6308
6309 Based on the nios2-elf port from Altera Corporation.
6310
6311 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6312 nios2-linux-tdep.o.
6313 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6314 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6315 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6316 * nios2-tdep.h: New.
6317 * nios2-tdep.c: New.
6318 * nios2-linux-tdep.c: New.
6319 * features/Makefile (WHICH): Add nios2-linux.
6320 (nios2-linux-expedite): Set.
6321 * features/nios2-cpu.xml: New.
6322 * features/nios2.xml: New.
6323 * features/nios2-linux.xml: New.
6324 * features/nios2.c: New (autogenerated).
6325 * features/nios2-linux.c: New (autogenerated).
6326 * regformats/nios2-linux.dat: New (autogenerated).
6327 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6328 and commands.
6329
6330 2013-05-06 Doug Evans <dje@google.com>
6331
6332 * symfile.c: Whitespace cleanup.
6333
6334 * solist.h (struct target_so_ops): New member clear_so.
6335 * solib-svr4.c (svr4_clear_so): New function.
6336 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6337 * solib.c (clear_so): Renamed from free_so_symbols.
6338 All callers updated. Call target clear_so if it exists.
6339
6340 2013-05-06 Tom Tromey <tromey@redhat.com>
6341
6342 * ada-lang.c (ada_value_primitive_packed_val): Don't
6343 call value_incref.
6344 * value.c (set_value_parent): Incref the new parent and decref
6345 the old parent.
6346 (value_copy, value_primitive_field): Use set_value_parent.
6347
6348 2013-05-06 Tom Tromey <tromey@redhat.com>
6349
6350 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6351 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6352 if needed.
6353 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6354 * dwarf2read.c (write_constant_as_bytes)
6355 (dwarf2_fetch_constant_bytes): New functions.
6356
6357 2013-05-06 Tom Tromey <tromey@redhat.com>
6358
6359 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6360 parameters.
6361 (dwarf2_const_value_attr): Update.
6362
6363 2013-05-06 Tom Tromey <tromey@redhat.com>
6364
6365 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6366 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6367 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6368 Remove declaration.
6369
6370 2013-05-06 Tom Tromey <tromey@redhat.com>
6371
6372 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6373 objfile's obstack.
6374
6375 2013-05-06 Doug Evans <dje@google.com>
6376
6377 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6378 * stabsread.h (process_one_symbol): Update declaration.
6379 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6380 * elfread.c (elf_symfile_relocate_probe): Ditto.
6381 * psymtab.c (relocate_psymtabs): Ditto.
6382 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6383 (objfile_relocate): Ditto.
6384 * objfiles.h (objfile_relocate): Update declaration.
6385 * symfile.c (relative_addr_info_to_section_offsets): Constify
6386 addrs parameter.
6387 (default_symfile_offsets): Ditto.
6388 (syms_from_objfile_1): Constify offsets parameter.
6389 (syms_from_objfile): Ditto.
6390 (symbol_file_add_with_addrs_or_offsets): Ditto.
6391 (symfile_map_offsets_to_segments): Constify data parameter.
6392 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6393 delta parameters of member relocate.
6394 (struct sym_probe_fns): Constify new_offsets,
6395 delta parameters of member sym_relocate_probe.
6396 (struct sym_fns): Constify section_addr_info parameter of member
6397 sym_offsets.
6398 (relative_addr_info_to_section_offsets): Update declaration.
6399 (default_symfile_offsets): Ditto.
6400 (syms_from_objfile): Ditto.
6401 (symfile_map_offsets_to_segments): Ditto.
6402
6403 * symfile.c (syms_from_objfile_1): Use correct section count when
6404 objfile->sf == NULL.
6405
6406 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6407
6408 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6409
6410 2013-05-06 Doug Evans <dje@google.com>
6411
6412 * psympriv.h (struct partial_symtab): Augment comment for member
6413 section_offsets.
6414
6415 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6416
6417 Reimplement shared library support on ppc-aix...
6418 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6419 * features/library-list-aix.dtd: New file.
6420 * solib-aix.h, solib-aix.c: New file.
6421 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6422 (rs6000_find_toc_address_hook): Delete.
6423 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6424 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6425 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6426 "xml-utils.h".
6427 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6428 (vmap_symtab, fixup_breakpoints): Delete.
6429 (rs6000_xfer_shared_libraries): New function.
6430 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6431 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6432 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6433 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6434 (rs6000_xfer_shared_library): New function.
6435 (find_toc_address): Delete.
6436 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6437 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6438 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6439 before creating minimal symbol. Adjust function description
6440 accordingly.
6441 (scan_xcoff_symtab): Replace call to
6442 prim_record_minimal_symbol_and_info by call to
6443 record_minimal_symbol.
6444 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6445 around default_symfile_offsets.
6446 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6447 powerpc-aix targets.
6448 * config/rs6000/nm-rs6000.h: Delete.
6449 * config/powerpc/aix.mh (NAT_FILE): Delete.
6450 (NATDEPFILES): Remove xcoffsolib.o.
6451 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6452 (ALL_TARGET_OBS): Add solib-aix.o.
6453 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6454 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6455 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6456 * xcoffsolib.h, xcoffsolib.c: Delete.
6457
6458 * solib.c (reload_shared_libraries): Remove reference to
6459 SOLIB_CREATE_INFERIOR_HOOK.
6460 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6461 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6462 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6463 comment.
6464 * corelow.c (deprecated_core_resize_section_table): Delete.
6465 * exec.c: Remove include of xcoffsolib.h".
6466 (map_vmap, vmap): Delete.
6467 (exec_close_1): Remove references to vmap.
6468 (exec_file_attach): Remove vmap handling code, and reference
6469 to DEPRECATED_IBM6000_TARGET.
6470 (bfdsec_to_vmap): Delete.
6471 (exec_files_info): Remove block of code handling VMAP.
6472 * infcmd.c (post_create_inferior): Remove reference to
6473 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6474 * infrun.c (follow_exec): Remove reference to
6475 SOLIB_CREATE_INFERIOR_HOOK.
6476 * stack.c (print_frame): Remove reference to PC_SOLIB.
6477 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6478 (dsbt_relocate_main_executable): Likewise.
6479 * solib-frv.c (frv_current_sos): Likewise.
6480
6481 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6482
6483 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6484 to target_write_memory and target_read_memory.
6485
6486 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6487
6488 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6489 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6490
6491 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6492
6493 * darwin-nat.c: Replace all "%x" instances in format strings
6494 into "0x%x" throughout.
6495
6496 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6497
6498 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6499 gdb_assert by call to MACH_CHECK_ERROR.
6500 (darwin_attach_pid): Raise an error rather than a failed
6501 assertion when various system calls failed. Report a warning
6502 instead of raising a failed assertion when PREV_NOT is not NULL
6503 after call to mach_port_request_notification.
6504 (darwin_ptrace_me): Raise an error rather than a failed
6505 assertion when read returns nonzero.
6506
6507 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6508
6509 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6510
6511 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6512
6513 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6514
6515 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6516
6517 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6518 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6519 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6520 a stale cleanup. Fix double free of NAME.
6521
6522 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6523
6524 * windows-nat.c (windows_delete_thread): Accept an additional
6525 argument, the thread's exit code, and announce thread death when
6526 print_thread_events is non-zero and we are deleting a thread that
6527 is not the main thread.
6528 (get_windows_debug_event): Pass thread exit code to
6529 windows_delete_thread.
6530
6531 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6532
6533 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6534 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6535 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6536 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6537 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6538 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6539 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6540 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6541 (gdbarch_tdep): New struct.
6542 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6543 E_NUM_REGS.
6544 (v850e3v5_register_name): New function.
6545 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6546 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6547 code handling the struct return conventions for the RH850 ABI.
6548 Update all callers.
6549 (v850_eight_byte_align_p): New function.
6550 (v850_push_call_dummy): Push structs by value, not by reference
6551 for the RH850 ABI. Add support for eight byte alignment.
6552 (v850_dbtrap_breakpoint_from_pc): New function.
6553 (v850_gdbarch_init): Add ABI detection code. Register
6554 v850e3v5_register_name for the v850e3v5 architecture. Set the
6555 number of registers for v850e3v5. Register
6556 v850_dbtrap_breakpoint_from_pc as appropriate.
6557 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6558
6559 2013-05-03 Doug Evans <dje@google.com>
6560
6561 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6562 of bfd_count_sections.
6563 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6564 * symfile.c (default_symfile_offsets): Ditto.
6565 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6566 one entry, not bfd_count_sections entries.
6567
6568 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6569
6570 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6571 `save' and `restore' register groups. Don't include SPL
6572 or SPH in these groups.
6573 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6574 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6575 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6576 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6577 dwarf2_append_unwinders().
6578
6579 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6580
6581 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6582 ignore SIGINT and SIGTRAP in case these internal signals are
6583 caught explicitely.
6584
6585 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6586
6587 * darwin-nat.c (darwin_read_write_inferior): Change types
6588 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6589 of copy_count to "mach_msg_type_number_t".
6590 (darwin_read_dyld_info): Change type of parameter
6591 rdaddr to "gdb_byte *".
6592
6593 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6594
6595 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6596 of &info->load_map from "char *" to "gdb_byte *".
6597
6598 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6599
6600 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6601 from "char *" to "gdb_byte *".
6602 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6603
6604 2013-04-30 Doug Evans <dje@google.com>
6605
6606 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6607 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6608 DWO stub. If DWO isn't found, just use stub.
6609 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6610
6611 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6612 calling init_cutu_and_read_dies.
6613
6614 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6615
6616 * target-descriptions.c (maint_print_c_tdesc_cmd):
6617 Add case to parse structures as register types and
6618 bitfields.
6619
6620 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6621
6622 * MAINTAINERS (Write After Approval): Add myself to the list.
6623
6624 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6625
6626 * sol-thread.c (rw_common): Change type of parameter "buf"
6627 to "gdb_byte *".
6628 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6629 rw_common to "gdb_byte *" instead of "char *".
6630
6631 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6632
6633 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6634 of local variable msym to const struct bound_minimal_symbol.
6635 Adjust use accordingly.
6636 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6637
6638 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6639
6640 * i386gnu-nat.c (CREG_OFFSET): New macro.
6641 (creg_offset): New array.
6642 (CREG_ADDR): Use creg_offset instead of reg_offset.
6643
6644 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6645
6646 * mep-tdep.c (mep_write_pc): Delete.
6647 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6648 Add call to set_gdbarch_pc_regnum.
6649
6650 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6651
6652 * common/filestuff.c: Replace #include <dirent.h> by
6653 #include "gdb_dirent.h".
6654
6655 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6656
6657 * common/filestuff.c: Replace #include <sys/stat.h> by
6658 #include "gdb_stat.h".
6659
6660 2013-04-29 Pierre Muller <muller@sourceware.org>
6661
6662 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6663 editCase function rule.
6664 (get_DW_AT_signature_type): Likewise.
6665
6666 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6667
6668 * m32r-tdep.c (m32r_write_pc): Delete.
6669 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6670 Add call to set_gdbarch_pc_regnum.
6671
6672 2013-04-29 Pierre Muller <muller@sourceware.org>
6673
6674 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6675
6676 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6677
6678 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6679
6680 2013-04-28 Yao Qi <yao@codesourcery.com>
6681
6682 * solib-dsbt.c (fetch_loadmap): Re-indent.
6683 (displacement_from_map, enable_break2): Likewise.
6684 (dsbt_relocate_section_addresses): Likewise.
6685
6686 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6687
6688 GDB 7.6 released.
6689
6690 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6691
6692 PR corefiles/14983:
6693 * dwarf2read.c (process_full_comp_unit): Always create a static
6694 block.
6695
6696 2013-04-25 Hui Zhu <hui@codesourcery.com>
6697
6698 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6699 to loc->cmd_bytecode.
6700
6701 2013-04-24 Doug Evans <dje@google.com>
6702
6703 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6704
6705 2013-04-22 Keith Seitz <keiths@redhat.com>
6706
6707 * tracepoint.c (trace_save): Call the writer's start method.
6708
6709 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6710
6711 PR gdb/10462
6712 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6713 before argument.
6714
6715 2013-04-23 Tom Tromey <tromey@redhat.com>
6716
6717 * common/filestuff.c: Check USE_WIN32API before including
6718 sys/socket.h.
6719 (HAVE_F_GETFD): New define.
6720 (mark_cloexec): Check HAVE_F_GETFD.
6721 (gdb_open_cloexec): Change 'mode' to unsigned long.
6722 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6723 (gdb_pipe_cloexec): Check HAVE_PIPE.
6724 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6725 long.
6726
6727 2013-04-23 Hui Zhu <hui@codesourcery.com>
6728
6729 PR gdb/15293
6730 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6731
6732 2013-04-23 Hui Zhu <hui@codesourcery.com>
6733
6734 PR gdb/15165
6735 * breakpoint.c (dprintf_print_recreate): New.
6736 (save_breakpoints): Let it not save dprintf commands.
6737 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6738
6739 2013-04-22 Tom Tromey <tromey@redhat.com>
6740
6741 PR gdb/7912:
6742 * Makefile.in (SFILES): Add filestuff.c
6743 (COMMON_OBS): Add filestuff.o.
6744 (filestuff.o): New target.
6745 * auto-load.c (auto_load_objfile_script_1): Use
6746 gdb_fopen_cloexec.
6747 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6748 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6749 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6750 * common/agent.c (gdb_connect_sync_socket): Use
6751 gdb_socket_cloexec.
6752 * common/filestuff.c: New file.
6753 * common/filestuff.h: New file.
6754 * common/linux-osdata.c (linux_common_core_of_thread)
6755 (command_from_pid, commandline_from_pid, print_source_lines)
6756 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6757 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6758 gdb_fopen_cloexec.
6759 * common/linux-procfs.c (linux_proc_get_int)
6760 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6761 * config.in, configure: Rebuild.
6762 * configure.ac: Don't check for sys/socket.h. Check for
6763 fdwalk, pipe2.
6764 * corelow.c (core_open): Use gdb_open_cloexec.
6765 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6766 * fork-child.c (fork_inferior): Call close_most_fds.
6767 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6768 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6769 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6770 Use gdb_fopen_cloexec.
6771 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6772 gdb_open_cloexec.
6773 (linux_async_pipe): Use gdb_pipe_cloexec.
6774 * remote-fileio.c (remote_fileio_func_open): Use
6775 gdb_open_cloexec.
6776 * remote.c (remote_file_put, remote_file_get): Use
6777 gdb_fopen_cloexec.
6778 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6779 close_most_fds.
6780 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6781 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6782 * solib.c (solib_find): Use gdb_open_cloexec.
6783 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6784 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6785 (tfile_open): Use gdb_open_cloexec.
6786 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6787 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6788 * xml-support.c (xml_fetch_content_from_file): Use
6789 gdb_fopen_cloexec.
6790 * main.c (captured_main): Call notice_open_fds.
6791
6792 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6793
6794 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6795 'char *' to 'gdb_byte *'.
6796 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6797 'gdb_byte'.
6798
6799 2013-04-22 Yao Qi <yao@codesourcery.com>
6800
6801 * infrun.c: Fix typo in comment.
6802
6803 2013-04-22 Andrew Haley <aph@redhat.com>
6804
6805 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6806 instead of "long".
6807
6808 2013-04-20 Yao Qi <yao@codesourcery.com>
6809
6810 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6811 'char *' to 'gdb_byte *'. Cast the return value of
6812 'bt_ctf_get_char_array' to 'gdb_byte *'.
6813
6814 2013-04-19 Pedro Alves <palves@redhat.com>
6815
6816 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6817 -Wpointer-sign.
6818 * configure: Regenerate.
6819
6820 2013-04-19 Pedro Alves <palves@redhat.com>
6821
6822 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6823 'void *'.
6824
6825 2013-04-19 Pedro Alves <palves@redhat.com>
6826
6827 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6828 Change type of 'myaddr' parameter to gdb_byte pointer.
6829 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6830 to 'long long' pointer instead of to 'unsigned long long'.
6831 (monitor_write_memory_block, monitor_read_memory_single)
6832 (monitor_read_memory): Change type of 'myaddr' parameter to
6833 gdb_byte pointer.
6834
6835 2013-04-19 Pedro Alves <palves@redhat.com>
6836
6837 * record.c (validate_history_size): Make parameter 'setting'
6838 unsigned.
6839
6840 2013-04-19 Pedro Alves <palves@redhat.com>
6841
6842 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6843 to 'gdb_byte *'.
6844
6845 2013-04-19 Pedro Alves <palves@redhat.com>
6846
6847 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6848 local to int.
6849
6850 2013-04-19 Pedro Alves <palves@redhat.com>
6851
6852 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6853 * ada-tasks.c (read_fat_string_value): Likewise.
6854
6855 2013-04-19 Pedro Alves <palves@redhat.com>
6856
6857 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6858 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6859 'offset', and adjust.
6860
6861 2013-04-19 Pedro Alves <palves@redhat.com>
6862
6863 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6864 (read_index_from_section): Add cast to 'char *'.
6865
6866 2013-04-19 Pedro Alves <palves@redhat.com>
6867
6868 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6869
6870 2013-04-19 Pedro Alves <palves@redhat.com>
6871
6872 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6873
6874 2013-04-19 Pedro Alves <palves@redhat.com>
6875
6876 * record-full.c (record_full_get_bookmark): Change local 'ret'
6877 type to char * and add cast to gdb_byte *.
6878 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6879 string.
6880 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6881
6882 2013-04-19 Pedro Alves <palves@redhat.com>
6883
6884 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6885 * python/py-prettyprint.c (print_string_repr): Change type of
6886 'output' local to char *. Add cast to gdb_byte * in
6887 LA_PRINT_STRING call.
6888 (print_children): Change type of 'output' local to char *.
6889 * python/py-value.c (valpy_string): Add cast to const char * in
6890 PyUnicode_Decode call.
6891
6892 2013-04-19 Pedro Alves <palves@redhat.com>
6893
6894 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6895 and change its type to 'const char *'. Adjust.
6896 (mips_send_packet): Add cast to 'char *', and remove cast to
6897 'unsigned char *'.
6898 (mips_receive_packet): Remove cast to 'unsigned char *'.
6899 (mips_load_srec): Use bfd_byte.
6900 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6901 (pmon_checkset): Make 'value' parameter unsigned.
6902
6903 2013-04-19 Pedro Alves <palves@redhat.com>
6904
6905 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6906
6907 2013-04-19 Pedro Alves <palves@redhat.com>
6908
6909 * remote.c (remote_write_bytes_aux, compare_sections_command)
6910 (remote_read_qxfer)
6911 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6912 (remote_hostio_readlink, remote_bfd_iovec_pread)
6913 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6914 binary buffer, and char when buffer is used as string.
6915 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6916 (trace_save, tfile_open, traceframe_walk_blocks)
6917 (tfile_fetch_registers): Likewise.
6918
6919 2013-04-19 Pedro Alves <palves@redhat.com>
6920
6921 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6922 buffer and size_t size. Adjust.
6923 * ser-base.h (ser_base_write): Adjust.
6924 * ser-go32.c (cnts): Change type to size_t.
6925 (dos_write): Change prototype -- take 'void *'
6926 buffer and size_t size. Adjust.
6927 (dos_info): Print elements of 'cnts' as unsigned long.
6928 * serial.c (serial_write): Likewise.
6929 * serial.h (serial_write): Adjust.
6930 (struct serial_ops) <write>: Change prototype -- take 'void *'
6931 buffer and size_t size. Adjust.
6932
6933 2013-04-19 Pedro Alves <palves@redhat.com>
6934
6935 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6936 gdb_byte *.
6937 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6938
6939 2013-04-19 Pedro Alves <palves@redhat.com>
6940
6941 * alpha-tdep.c (alpha_extract_return_value): Use
6942 regcache_cooked_read_unsigned to read 'v0'.
6943
6944 2013-04-19 Pedro Alves <palves@redhat.com>
6945
6946 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6947 parameters 'at', 'as' and 'offset' to uint32_t.
6948
6949 2013-04-19 Pedro Alves <palves@redhat.com>
6950
6951 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6952 'is64' to signed 'int'.
6953
6954 2013-04-19 Pedro Alves <palves@redhat.com>
6955
6956 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6957 parameter to int *.
6958
6959 2013-04-19 Pedro Alves <palves@redhat.com>
6960
6961 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6962 'insnbuf' buffer type to unsigned int[].
6963
6964 2013-04-19 Pedro Alves <palves@redhat.com>
6965
6966 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6967
6968 2013-04-19 Pedro Alves <palves@redhat.com>
6969
6970 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6971 unsigned long *.
6972
6973 2013-04-19 Pedro Alves <palves@redhat.com>
6974
6975 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6976 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6977 UINT_MAX.
6978 * mips-tdep.c (heuristic_fence_post): Change type to int.
6979 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6980
6981 2013-04-19 Pedro Alves <palves@redhat.com>
6982
6983 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6984 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6985 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6986
6987 2013-04-19 Pedro Alves <palves@redhat.com>
6988
6989 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6990 it to get a string view of the byte buffer.
6991 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6992 type to gdb_byte *. Adjust.
6993 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6994 Change local to char *.
6995 * solib-darwin.c (find_program_interpreter): Change return type to
6996 char *. Adjust.
6997 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6998 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6999 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7000 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7001 * solib-svr4.c (find_program_interpreter): Change return type to
7002 char *. Adjust.
7003 (enable_break): Change local 'interp_name' to char *.
7004 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7005 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7006 (spu_pseudo_register_write_spu): Use char for string buffer.
7007 Adjust.
7008 (info_spu_event_command, info_spu_signal_command): Add casts to
7009 'char *'.
7010
7011 2013-04-19 Pedro Alves <palves@redhat.com>
7012
7013 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7014 gdb_byte[].
7015 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7016 * ada-lang.c (ada_value_assign): Use gdb_byte.
7017 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7018 (alphanbsd_sigtramp_offset): Use gdb_byte.
7019 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7020 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7021 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7022 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7023 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7024 * arm-tdep.c (arm_stub_unwind_sniffer)
7025 (arm_displaced_init_closure): Use gdb_byte.
7026 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7027 (arm_default_thumb_le_breakpoint)
7028 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7029 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7030 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7031 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7032 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7033 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7034 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7035 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7036 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7037 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7038 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7039 (cris_store_return_value, cris_extract_return_value): Use
7040 gdb_byte.
7041 (constraint): Change type of parameter to char * from signed
7042 char*. Use gdb_byte.
7043 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7044 of local buffer to gdb_byte *.
7045 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7046 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7047 (add_address_entry): Change type of local buffer to gdb_byte[].
7048 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7049 (frv_push_dummy_call): Use gdb_byte.
7050 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7051 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7052 (hppa_hpux_supply_save_state): Use gdb_byte.
7053 * hppa-tdep.c (hppa32_push_dummy_call)
7054 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7055 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7056 (slotN_contents, replace_slotN_contents): Change type of parameter
7057 to gdb_byte *.
7058 (fetch_instruction, ia64_pseudo_register_write)
7059 (ia64_register_to_value, ia64_value_to_register)
7060 (ia64_extract_return_value, ia64_store_return_value)
7061 (ia64_push_dummy_call): Use gdb_byte.
7062 * m32c-tdep.c (m32c_return_value): Remove cast.
7063 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7064 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7065 gdb_byte.
7066 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7067 * mn10300-tdep.c (mn10300_store_return_value)
7068 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7069 gdb_byte.
7070 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7071 (moxie_process_record): Remove casts.
7072 * ppc-ravenscar-thread.c (supply_register_at_address)
7073 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7074 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7075 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7076 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7077 * remote.c (compare_sections_command): Use gdb_byte.
7078 * score-tdep.c (score7_free_memblock): Change type of parameter to
7079 gdb_byte *.
7080 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7081 gdb_byte *. Use gdb_byte.
7082 (sh_push_dummy_call_fpu): Use gdb_byte.
7083 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7084 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7085 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7086 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7087 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7088 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7089 (sh64_store_return_value, sh64_register_convert_to_virtual):
7090 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7091 (sh64_pseudo_register_write): Use gdb_byte.
7092 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7093 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7094 buffer.
7095 (irix_current_sos): Use gdb_byte.
7096 * solib-som.c (som_current_sos): Use gdb_byte.
7097 * sparc-ravenscar-thread.c (supply_register_at_address)
7098 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7099 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7100 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7101 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7102 'gdb_byte *'.
7103 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7104 'gdb_byte *'.
7105 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7106 * xstormy16-tdep.c (xstormy16_extract_return_value)
7107 (xstormy16_store_return_value): Change parameter type to
7108 'gdb_byte *'. Adjust.
7109 (xstormy16_push_dummy_call): Use gdb_byte.
7110 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7111 (call0_analyze_prologue, execute_code): Use gdb_byte.
7112
7113 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7114 Pedro Alves <palves@redhat.com>
7115
7116 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7117 value contents.
7118
7119 2013-04-17 Doug Evans <dje@google.com>
7120
7121 * dwarf2read.c (struct signatured_type): New member type.
7122 (struct attribute): Replace member signatured_type with signature.
7123 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7124 (read_call_site_scope): Call follow_die_ref instead of
7125 follow_die_ref_or_sig.
7126 (read_structure_type): Rewrite handling of signatured types.
7127 (read_enumeration_type): Ditto.
7128 (read_attribute_value): Update.
7129 (build_error_marker_type): New function.
7130 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7131 Don't call error for bad types, just build an error marker type.
7132 (dump_die_shallow): Update.
7133 (follow_die_sig_1): Renamed from follow_die_sig.
7134 Don't call error for bad types, instead return NULL.
7135 (follow_die_sig): New function.
7136 (get_signatured_type, get_DW_AT_signature_type): New functions.
7137
7138 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7139
7140 * aarch64-tdep.c (aarch64_write_pc): Removed.
7141 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7142 function.
7143
7144 2013-04-17 Yao Qi <yao@codesourcery.com>
7145
7146 * top.c (print_gdb_configuration): Print configure-time
7147 parameter on using libbabeltrace or not.
7148
7149 2013-04-16 Pedro Alves <palves@redhat.com>
7150
7151 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7152
7153 2013-04-16 Pedro Alves <palves@redhat.com>
7154
7155 * common/glibc_thread_db.h: Update from upstream glibc
7156 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7157
7158 2013-04-16 Pedro Alves <palves@redhat.com>
7159
7160 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7161 * common/glibc_thread_db.h: ... this new file ...
7162 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7163
7164 2013-04-16 Will Newton <will.newton@gmail.com>
7165 Pedro Alves <palves@redhat.com>
7166
7167 PR build/11881
7168
7169 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7170 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7171 HAVE_THREAD_DB_H.
7172
7173 2013-04-16 Pedro Alves <palves@redhat.com>
7174 Eli Zaretskii <eliz@gnu.org>
7175
7176 * NEWS: Mention "set foo unlimited".
7177
7178 2013-04-15 Doug Evans <dje@google.com>
7179
7180 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7181 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7182 (create_dwo_cu_reader): Renamed from
7183 create_dwo_debug_info_hash_table_reader.
7184 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7185 Remove support for multiple CUs in a DWO file.
7186 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7187
7188 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7189 instead of phex.
7190 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7191 (create_dwo_in_dwp): Ditto.
7192
7193 2013-04-15 Tom Tromey <tromey@redhat.com>
7194
7195 * NEWS: Move recent entries into "since 7.6" section.
7196
7197 2013-04-15 Tom Tromey <tromey@redhat.com>
7198
7199 PR c++/13588:
7200 * NEWS: Update.
7201 * break-catch-throw.c (struct exception_catchpoint)
7202 <exception_rx, pattern>: New fields.
7203 (fetch_probe_arguments, dtor_exception_catchpoint)
7204 (check_status_exception_catchpoint)
7205 (print_one_detail_exception_catchpoint): New functions.
7206 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7207 Compile regular expression if needed.
7208 (extract_exception_regexp): New function.
7209 (catch_exception_command_1): Use extract_exception_regexp.
7210 (compute_exception): Use fetch_probe_arguments.
7211 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7212 and check_status fields.
7213 * cp-abi.c (cplus_typename_from_type_info): New function.
7214 * cp-abi.h (cplus_typename_from_type_info): Declare.
7215 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7216 * gdb_regex.h (compile_rx_or_error): Declare.
7217 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7218 comment.
7219 (init_gnuv3_ops): Set get_type_from_type_info field.
7220 * probe.c (compile_rx_or_error): Move...
7221 * utils.c (compile_rx_or_error): ... here.
7222
7223 2013-04-15 Tom Tromey <tromey@redhat.com>
7224
7225 PR c++/15176:
7226 * NEWS: Update.
7227 * break-catch-throw.c (compute_exception): New function.
7228 (exception_funcs): New global.
7229 (_initialize_break_catch_throw): Create $_exception.
7230 * cp-abi.c (cplus_type_from_type_info): New function.
7231 * cp-abi.h (cplus_type_from_type_info): Declare.
7232 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7233 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7234 (gnuv3_get_type_from_type_info): New functions.
7235 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7236
7237 2013-04-15 Tom Tromey <tromey@redhat.com>
7238
7239 * break-catch-throw.c (struct exception_names): New.
7240 (exception_functions): Change type.
7241 (re_set_exception_catchpoint): Look for SDT probes.
7242
7243 2013-04-15 Tom Tromey <tromey@redhat.com>
7244
7245 PR c++/10119:
7246 * break-catch-throw.c (exception_functions): New global.
7247 (gnu_v3_exception_catchpoint_ops): Move earlier.
7248 (struct exception_catchpoint): New.
7249 (classify_exception_breakpoint): Rewrite.
7250 (re_set_exception_catchpoint): New function.
7251 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7252 Allocate a struct exception_catchpoint.
7253 (catch_exception_command_1): Update.
7254 (initialize_throw_catchpoint_ops): Set 're_set' method.
7255
7256 2013-04-15 Tom Tromey <tromey@redhat.com>
7257
7258 * Makefile.in (SFILES): Add break-catch-throw.c
7259 (COMMON_OBS): Add break-catch-throw.o.
7260 * break-catch-throw.c: New file.
7261 * breakpoint.c: Move exception-catching code to new file.
7262 (ep_parse_optional_if_clause): No longer static.
7263 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7264
7265 2013-04-15 Tom Tromey <tromey@redhat.com>
7266
7267 PR c++/9065:
7268 * NEWS: Update.
7269 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7270 * c-exp.y (TYPEID): New token.
7271 (exp): Add new TYPEID productions.
7272 (ident_tokens): Add "typeid".
7273 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7274 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7275 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7276 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7277 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7278 case.
7279 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7280 (build_std_type_info_type, gnuv3_get_typeid_type)
7281 (gnuv3_get_typeid): New functions.
7282 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7283 new fields on ABI object.
7284 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7285 * std-operator.def (OP_TYPEID): New.
7286
7287 2013-04-15 Tom Tromey <tromey@redhat.com>
7288
7289 * elfread.c (elf_symtab_read): Install versioned symbol under
7290 unversioned name as well.
7291
7292 2013-04-15 Tom Tromey <tromey@redhat.com>
7293
7294 PR c++/11990:
7295 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7296 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7297 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7298 (gdb_demangle): New function.
7299 * cp-support.h (gdb_demangle): Declare.
7300 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7301 (dwarf2_name): Use gdb_demangle.
7302 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7303 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7304 suffixes from name.
7305 (gnuv3_print_method_ptr): Use gdb_demangle.
7306 * jv-lang.c (java_demangle): Use gdb_demangle.
7307 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7308 * language.c (unk_lang_demangle): Use gdb_demangle.
7309 * symtab.c (symbol_find_demangled_name)
7310 (demangle_for_lookup): Use gdb_demangle.
7311
7312 2013-04-15 Tom Tromey <tromey@redhat.com>
7313
7314 PR c++/12824:
7315 * NEWS: Update.
7316 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7317 New constant.
7318 (classify_exception_breakpoint): New function.
7319 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7320 (print_mention_exception_catchpoint)
7321 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7322 (catch_exception_command_1): Handle "rethrow" catchpoint.
7323 (catch_rethrow_command): New function.
7324 (_initialize_breakpoint): Add "catch rethrow" command.
7325
7326 2013-04-15 Pierre Muller <muller@sourceware.org>
7327
7328 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7329 set_gdbarch_write_pc as deprecated anymore.
7330
7331 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7332
7333 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7334 declarations.
7335
7336 2013-04-13 Yao Qi <yao@codesourcery.com>
7337
7338 * ctf.c (_initialize_ctf): Include "completer.h".
7339 Call add_target_with_completer instead of add_target.
7340
7341 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7342
7343 Fix GDB regression related to PR binutils/14813.
7344 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7345 * minidebug.c (lzma_close): Add return value comment.
7346 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7347 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7348 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7349
7350 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7351
7352 * config.in: Regenerate.
7353
7354 2013-04-12 Tom Tromey <tromey@redhat.com>
7355
7356 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7357 const.
7358 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7359 (struct die_reader_specs) <buffer>: Likewise.
7360 (die_reader_func_ftype): Make 'info_ptr' const.
7361 (struct line_header) <include_dirs, statement_program_start,
7362 statement_program_end>: Now const.
7363 (struct file_entry) <name>: Likewise.
7364 (struct partial_die_info) <sibling>: Likewise.
7365 (struct dwarf_block) <data>: Likewise.
7366 (dwarf2_read_section): Remove cast.
7367 (dwarf2_get_section_info): Make 'bufp' const.
7368 (read_index_from_section): Constify.
7369 (dw2_get_file_names_reader): Make 'info_ptr' const.
7370 (dw2_get_primary_filename_reader): Likewise.
7371 (read_comp_unit_head): Make 'info_ptr' and return type const.
7372 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7373 Likewise.
7374 (read_abbrev_offset): Constify.
7375 (dwarf2_create_include_psymtab): Make 'name' const.
7376 (create_debug_types_hash_table): Update.
7377 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7378 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7379 Constify.
7380 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7381 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7382 (read_comp_units_from_section): Constify.
7383 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7384 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7385 const.
7386 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7387 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7388 (create_dwp_hash_table, dwarf2_ranges_read)
7389 (dwarf2_record_block_ranges): Constify.
7390 (read_die_and_children, read_die_and_siblings_1)
7391 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7392 const.
7393 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7394 (abbrev_table_read_table): Constify.
7395 (load_partial_dies): Make 'info_ptr' const.
7396 (read_partial_die, read_attribute_value, read_attribute): Make
7397 'info_ptr' and return type const.
7398 (read_address, read_initial_length)
7399 (read_checked_initial_length_and_offset, read_offset)
7400 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7401 const.
7402 (read_direct_string): Make 'buf' and return type const.
7403 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7404 (read_indirect_string): Make return type const.
7405 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7406 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7407 'info_ptr' const.
7408 (read_str_index): Make return type const.
7409 (add_include_dir): Make 'include_dir' const.
7410 (add_file_name): Make 'name' const.
7411 (dwarf_decode_line_header): Constify.
7412 (psymtab_include_file_name): Make return type const.
7413 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7414 (dwarf2_start_subfile): Make 'filename' const.
7415 (dwarf2_const_value_attr): Make 'bytes' const.
7416 (read_signatured_type_reader): Make 'info_ptr' const.
7417 (decode_locdesc): Constify.
7418 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7419 const.
7420 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7421 'mac_end', and return type const.
7422 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7423 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7424 type const.
7425 (per_cu_header_read_in): Constify.
7426 * symfile.h (dwarf2_get_section_info): Update.
7427
7428 2013-04-12 Tom Tromey <tromey@redhat.com>
7429
7430 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7431
7432 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7433
7434 * NEWS: Mention "show configuration", --configuration.
7435 * top.c (print_gdb_configuration): New function, displays the
7436 details about GDB configure-time parameters.
7437 (print_gdb_version): Mention "show configuration".
7438 * cli/cli-cmds.c (show_configuration): New function.
7439 (_initialize_cli_cmds): Add the "show configuration" command.
7440 * main.c (captured_main) <print_configuration>: New static var.
7441 <long_options>: Use it.
7442 If --configuration was given, call print_gdb_configuration.
7443
7444 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7445 Pedro Alves <palves@redhat.com>
7446
7447 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7448 (generated_files): Add gcore.
7449 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7450 HAVE_NATIVE_GCORE_HOST.
7451 (gcore): New.
7452 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7453 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7454 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7455 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7456 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7457 Add HAVE_NATIVE_GCORE_HOST.
7458 * configure: Regenerate.
7459 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7460 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7461 AC_CONFIG_FILES for gcore.
7462 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7463 gdb_have_gcore.
7464 * gdb_gcore.sh: Rename to ...
7465 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7466 and GCORE_TRANSFORM_NAME substitutions.
7467
7468 Fix parsing tabs in ${gdb_target_obs}.
7469 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7470
7471 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7472
7473 * remote.c (unpush_and_perror): Add output message final dot.
7474
7475 2013-04-11 Yao Qi <yao@codesourcery.com>
7476
7477 * tracepoint.c (tfile_interp_line): Fit parameters line and
7478 utpp in one line.
7479
7480 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7481
7482 * solib.c (solib_map_sections): Remove code overwriting
7483 SO->SO_NAME with the bfd's filename.
7484
7485 2013-04-10 Pedro Alves <palves@redhat.com>
7486
7487 * cli/cli-decode.c (integer_unlimited_completer): New function.
7488 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7489 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7490 completer.
7491 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7492 (is_unlimited_literal): New function.
7493 (do_set_command): Handle literal "unlimited" arguments.
7494 * frame.c (_initialize_frame) <set backtrace limit>: Document
7495 "unlimited".
7496 * printcmd.c (_initialize_printcmd) <set print
7497 max-symbolic-offset>: Add help text.
7498 * record-full.c (_initialize_record_full) <set record full
7499 insn-number-max>: Likewise.
7500 * record.c (_initialize_record) <set record
7501 instruction-history-size, set record function-call-history-size>:
7502 Add help text.
7503 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7504 help text.
7505 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7506 Likewise.
7507 * source.c (_initialize_source) <set listsize>: Add help text.
7508 * utils.c (initialize_utils) <set height, set width>: Likewise.
7509 <set pagination>: Mention "set height unlimited".
7510 * valprint.c (_initialize_valprint) <set print elements, set print
7511 repeats>: Document "unlimited".
7512
7513 2013-04-10 Pedro Alves <palves@redhat.com>
7514
7515 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7516 instead of disconnect_tracing.
7517 * infcmd.c (detach_command, disconnect_command): Call
7518 query_if_trace_running. Adjust.
7519 * top.c: Include "tracepoint.h".
7520 (quit_target): Delete. Contents moved ...
7521 (quit_force): ... here. Wrap each stage of teardown in
7522 TRY_CATCH. Call disconnect_tracing before detaching.
7523
7524 2013-04-10 Hui Zhu <hui@codesourcery.com>
7525 Yao Qi <yao@codesourcery.com>
7526
7527 * configure.ac: Check libbabeltrace is installed.
7528 * config.in: Regenerate.
7529 * configure: Regenerate.
7530 * Makefile.in (LIBBABELTRACE): New.
7531 (CLIBS): Add LIBBABELTRACE.
7532 * ctf.c: Include "exec.h".
7533 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7534 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7535 (ctf_save_metadata_header): Define new type aliases in
7536 metadata.
7537 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7538 in metadata. Start a new faked packet for trace status.
7539 (ctf_write_status): Write trace status to CTF.
7540 (ctf_write_uploaded_tsv): Write TSV to CTF.
7541 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7542 (ctf_write_definition_end): End the faked packet.
7543
7544 (ctx, ctf_iter, trace_dirname): New.
7545 (start_pos): New variable.
7546 (ctf_destroy, ctf_open_dir, ctf_open): New.
7547 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7548 macros.
7549 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7550 (ctf_fetch_registers, ctf_xfer_partial): New.
7551 (ctf_get_trace_state_variable_value): New.
7552 (ctf_get_tpnum_from_frame_event): New.
7553 (ctf_get_traceframe_address): New.
7554 (ctf_trace_find, ctf_has_stack): New.
7555 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7556 (ctf_get_trace_status, ctf_read_status): New.
7557 (_initialize_ctf): New.
7558 * tracepoint.c (get_tracepoint_number): New
7559 (get_uploaded_tsv): Remove 'static'.
7560 (struct traceframe_info, trace_regblock_size): Move it to ...
7561 * tracepoint.h: ... here.
7562 (get_tracepoint_number): Declare it.
7563 (get_uploaded_tsv): Declare it.
7564
7565 * NEWS: Mention new configure option.
7566
7567 2013-04-10 Pedro Alves <palves@redhat.com>
7568 Hui Zhu <hui@codesourcery.com>
7569
7570 * breakpoint.c (dprintf_re_set): New.
7571 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7572 to dprintf_re_set.
7573
7574 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7575
7576 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7577 Remove solib-svr4.o from the list.
7578
7579 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7580
7581 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7582 Use gdb_assert_not_reached instead of invalid boolean expression.
7583
7584 2013-04-09 Pedro Alves <palves@redhat.com>
7585
7586 * remote.c (unpush_and_perror): New function.
7587 (readchar, remote_serial_write): Use it.
7588
7589 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7590
7591 * NEWS: Mention new btrace RSP packets.
7592
7593 2013-04-08 Tom Tromey <tromey@redhat.com>
7594
7595 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7596 long.
7597
7598 2013-04-08 Tom Tromey <tromey@redhat.com>
7599
7600 * maint.c (print_bfd_section_info): Print the section index.
7601 * symmisc.c (dump_msymbols): Print the section index.
7602
7603 2013-04-08 Tom Tromey <tromey@redhat.com>
7604
7605 PR symtab/8424:
7606 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7607 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7608 * breakpoint.c (resolve_sal_pc): Update.
7609 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7610 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7611 (minsym_lookup_iterator_cb): Use it.
7612 (default_read_var_value): Update.
7613 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7614 Update.
7615 * infcmd.c (jump_command): Update.
7616 * linespec.c (minsym_found): Update.
7617 * maint.c (maintenance_translate_address): Update.
7618 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7619 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7620 * parse.c (write_exp_msymbol): Update.
7621 * printcmd.c (address_info): Update.
7622 * psymtab.c (find_pc_sect_psymbol): Update.
7623 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7624 SYMBOL_OBJ_SECTION.
7625 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7626 Don't initialize SYMBOL_OBJ_SECTION.
7627 * spu-tdep.c (spu_catch_start): Update.
7628 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7629 * symmisc.c (dump_msymbols, print_symbol): Update.
7630 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7631 how fallback section is computed.
7632 (fixup_symbol_section): Update.
7633 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7634 Update.
7635 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7636 Initialize SYMBOL_SECTION.
7637 * symtab.h (struct general_symbol_info) <section>: Update comment.
7638 <obj_section>: Remove.
7639 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7640 (SYMBOL_OBJFILE): New macro.
7641
7642 2013-04-08 Tom Tromey <tromey@redhat.com>
7643
7644 * coffread.c (record_minimal_symbol): Update.
7645 * dbxread.c (record_minimal_symbol): Update.
7646 * elfread.c (record_minimal_symbol): Update.
7647 * machoread.c (macho_symtab_add_minsym): Update.
7648 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7649 Update.
7650 * minsyms.c (prim_record_minimal_symbol): Update.
7651 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7652 argument.
7653 (prim_record_minimal_symbol_and_info): Likewise.
7654 * minsyms.h (prim_record_minimal_symbol_full)
7655 (prim_record_minimal_symbol_and_info): Update.
7656 * symtab.c (allocate_symbol, initialize_symbol)
7657 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7658 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7659 Update.
7660
7661 2013-04-08 Tom Tromey <tromey@redhat.com>
7662
7663 PR symtab/8423:
7664 * solib-som.c (som_solib_section_offsets): Use BFD section
7665 indices. Set offsets for all sections.
7666 * somread.c (som_symtab_read): Compute BFD section for
7667 symbol. Use prim_record_minimal_symbol_and_info.
7668 (som_symfile_read): Fix comment.
7669 (struct find_section_offset_arg): New.
7670 (find_section_offset, set_section_index): New functions.
7671 (som_symfile_offsets): Use set_section_index to compute
7672 section indices.
7673
7674 2013-04-08 Tom Tromey <tromey@redhat.com>
7675
7676 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7677 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7678 gdb_bfd_section_index.
7679 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7680 New functions.
7681 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7682 Declare.
7683 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7684 Update.
7685 * objfiles.c (add_to_objfile_sections_full): New function.
7686 (add_to_objfile_sections): Use it.
7687 (build_section_table): Rewrite.
7688 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7689 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7690 (struct objfile) <sections>: Update comment.
7691 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7692 is NULL.
7693 (ALL_OBJSECTIONS): Use it.
7694 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7695 * solib-frv.c (frv_relocate_main_executable): Update.
7696 * solib-target.c (solib_target_relocate_section_addresses):
7697 Use gdb_bfd_section_index.
7698 * symfile.c (build_section_addr_info_from_section_table):
7699 Use gdb_bfd_section_index.
7700 (build_section_addr_info_from_bfd, place_section): Likewise.
7701 * symtab.c (fixup_section): Update.
7702 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7703
7704 2013-04-08 Tom Tromey <tromey@redhat.com>
7705
7706 * minsyms.h (struct bound_minimal_symbol): New.
7707 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7708 Remove objfile argument.
7709 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7710 Return bound_minimal_symbol.
7711 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7712 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7713 Return bound_minimal_symbol.
7714 (in_gnu_ifunc_stub): Update.
7715 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7716 Remove 'objfile_p' argument.
7717 (lookup_solib_trampoline_symbol_by_pc): Update.
7718 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7719 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7720 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7721 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7722 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7723 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7724 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7725 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7726 stack.c, symtab.c, tui/tui-disasm.c: Update.
7727
7728 2013-04-08 Tom Tromey <tromey@redhat.com>
7729
7730 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7731 Use symbol's obstack, not an objfile.
7732 * coffread.c (process_coff_symbol): Update.
7733 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7734 * jv-lang.c (add_class_symbol): Update.
7735 * mdebugread.c (new_symbol): Update.
7736 * minsyms.c (prim_record_minimal_symbol_full)
7737 (terminate_minimal_symbol_table): Update.
7738 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7739 * stabsread.c (define_symbol, read_enum_type): Update.
7740 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7741 Handle Ada specially.
7742 (symbol_set_language): Add 'obstack' argument.
7743 (symbol_set_names): Update.
7744 (symbol_natural_name, symbol_demangled_name): Always use
7745 ada_decode_symbol.
7746 * symtab.h (struct general_symbol_info)
7747 <language_specific::obstack>: New field.
7748 <ada_mangled>: New field.
7749 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7750 (symbol_set_language): Update.
7751
7752 2013-04-08 Tom Tromey <tromey@redhat.com>
7753
7754 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7755 Take an obstack, not an objfile.
7756 (symbol_set_names): Update.
7757 * symtab.h (symbol_set_demangled_name): Update.
7758
7759 2013-04-08 Tom Tromey <tromey@redhat.com>
7760
7761 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7762 allocate_symbol.
7763 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7764 (read_func_scope): Call allocate_template_symbol.
7765 (new_symbol_full): Call allocate_symbol.
7766 * jit.c (finalize_symtab): Call allocate_symbol.
7767 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7768 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7769 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7770 (common_block_end): Call allocate_symbol.
7771 * symtab.c (allocate_symbol, initialize_symbol)
7772 (allocate_template_symbol): New functions.
7773 * symtab.c (allocate_symbol, initialize_symbol)
7774 (allocate_template_symbol): Declare.
7775 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7776
7777 2013-04-08 Pedro Alves <palves@redhat.com>
7778 Keith Seitz <keiths@redhat.com>
7779
7780 * breakpoint.c (create_breakpoint): Rename
7781 "parse_condition_and_thread" parameter to "parse_arg". Update
7782 describing comment. If !PARSE_ARG, then error out if ARG is not
7783 the empty string after extracting the location.
7784 * breakpoint.h (create_breakpoint): Rename
7785 "parse_condition_and_thread" parameter to "parse_arg".
7786
7787 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7788
7789 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7790
7791 2013-04-07 Yao Qi <yao@codesourcery.com>
7792
7793 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7794 and 'addr2' to CORE_ADDR.
7795 * target.c (update_current_target): Update.
7796 * target.h (struct target_ops) <to_trace_find>: Change parameter
7797 type to CORE_ADDR.
7798 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7799 'addr2' to CORE_ADDR.
7800 (tfile_trace_find): Likewise.
7801 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7802 Change local variable 'addr' to type CORE_ADDR.
7803 * tracepoint.h (tfind_1): Update declaration.
7804
7805 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7806
7807 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7808 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7809 Include main.h.
7810
7811 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7812 here...
7813 * main.h (windows_get_absolute_argv0): ...to here.
7814
7815 2013-04-05 Doug Evans <dje@google.com>
7816
7817 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7818 (read_cutu_die_from_dwo): Add comments.
7819 (read_structure_type): Update comment.
7820 (read_enumeration_type, read_namespace_type): Update comment.
7821 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7822
7823 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7824
7825 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7826 * Makefile.in (gdb.z): Remove.
7827 (install-only): Remove $(man1dir) and gdb.1 installation.
7828 * gdb.1: Remove.
7829
7830 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7831
7832 Fix compatibility with Linux kernel 3.8.3.
7833 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7834 to more inner block. Remove parsing of NUMBER from outer block.
7835 Parse NUMBER only if KEYWORD has been identified.
7836
7837 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7838
7839 Fix variable name shadowing.
7840 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7841 filename to mapsfilename and update its uses.
7842
7843 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7844
7845 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7846 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7847 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7848 details of the problem.
7849
7850 2013-04-04 Pedro Alves <palves@redhat.com>
7851 Hui Zhu <hui@codesourcery.com>
7852
7853 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7854 tracepoint, reset its STEP_COUNT and call validate_actionline.
7855
7856 2013-04-03 Doug Evans <dje@google.com>
7857
7858 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7859 read_die_and_siblings.
7860 (read_die_and_siblings): New function.
7861 (read_cutu_die_from_dwo): Dump die if requested.
7862 (read_die_and_children): Call read_full_die_1 and
7863 read_die_and_siblings_1.
7864 (read_full_die): Dump die if requested.
7865
7866 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7867
7868 * dwarf2read.c (struct dwo_file): New member comp_dir.
7869 Rename member name to dwo_name. All uses updated.
7870 (hash_dwo_file): Include comp_dir in computation.
7871 (eq_dwo_file): Ditto.
7872 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7873 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7874
7875 * psymtab.c (read_psymtabs_with_fullname): Don't call
7876 psymtab_to_fullname if the basenames are different.
7877
7878 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7879
7880 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7881 New entry about "fullname" presence.
7882
7883 2013-04-03 Pedro Alves <palves@redhat.com>
7884
7885 * NEWS: Mention x86_64/Cygwin as new native configuration.
7886
7887 2013-04-02 Doug Evans <dje@google.com>
7888
7889 * dwarf2read.c (read_structure_type): Fix typo in comment.
7890
7891 2013-04-02 Pedro Alves <palves@redhat.com>
7892
7893 * NEWS: Mention "set/show debug aarch64", "set/show debug
7894 coff-pe-read" and "set/show debug mach-o".
7895
7896 2013-04-02 Pedro Alves <palves@redhat.com>
7897
7898 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7899
7900 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7901
7902 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7903 gdb_string.h is now in common/.
7904
7905 2013-04-02 Pedro Alves <palves@redhat.com>
7906
7907 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7908 under "New options".
7909
7910 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7911
7912 Revert this patch:
7913 PR gdb/15275
7914 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7915
7916 2013-04-02 Pedro Alves <palves@redhat.com>
7917
7918 PR gdb/15275
7919
7920 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7921 (remote_serial_write): New function.
7922 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7923
7924 2013-04-01 Jiong Wang <jiwang@tilera.com>
7925
7926 * NEWS: Mention TILE-Gx in "New native configurations" and
7927 "New targets" sections.
7928
7929 2013-04-01 Doug Evans <dje@google.com>
7930
7931 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7932 (process_enumeration_scope): Simplify.
7933
7934 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7935 type_unit_group ...
7936 (struct signatured_type): ... to here.
7937 (sig_type_ptr): New typedef.
7938 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7939 out of union 't'. All uses updated.
7940 (dw2_get_file_names_reader): Assert not called for a type unit.
7941 (dw2_get_file_names): Assert not called for a type unit or type
7942 unit group.
7943 (build_type_psymtabs_reader): Assert called for a type unit.
7944 (build_type_psymtab_dependencies): Assert called for a type unit group.
7945
7946 * dwarf2read.c (free_dwo_file): Add comment.
7947 (dwarf2_per_objfile_free): Unref dwp bfd.
7948
7949 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7950
7951 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7952 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7953 (read_pe_exported_syms): Remove unused 'exportix'.
7954 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7955 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7956 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7957
7958 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7959
7960 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7961 (print_it_watchpoint): Remove unused 'bl'.
7962 (say_where): Remove unused 'uiout'.
7963 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7964 (bkpt_breakpoint_hit): Remove unused 'b'.
7965 (internal_bkpt_print_it): Remove unused 'uiout'.
7966 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7967
7968 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7969
7970 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7971 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7972
7973 2013-03-29 Doug Evans <dje@google.com>
7974
7975 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7976 Delete arg is_dwp. All callers updated.
7977 (open_dwp_file): New function.
7978 (open_and_init_dwp_file): Call it.
7979 (get_dwp_file): New function.
7980 (lookup_dwo_cutu): Call it.
7981
7982 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7983 unnecessary, cleanup.
7984
7985 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7986
7987 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7988 (lookup_dwo_unit): New function.
7989 (init_cutu_and_read_dies): Move DWO handling to new functions.
7990
7991 * dwarf2read.c (struct signatured_type): Tweak comment.
7992 (struct dwo_unit): Tweak comment.
7993 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7994 (create_dwo_debug_info_hash_table): Tweak comment.
7995 (dwarf2_per_cu_offset_and_type): Tweak comment.
7996
7997 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7998 missing .debug_types section.
7999
8000 2013-03-29 Yao Qi <yao@codesourcery.com>
8001
8002 * corelow.c: Include "completer.h".
8003 (_initialize_corelow): Call add_target_with_completer with
8004 argument 'filename_completer'.
8005 * tracepoint.c: Likewise.
8006 * exec.c (_initialize_exec): Likewise.
8007 * target.c (add_target): Rename to ...
8008 (add_target_with_completer): ... this. Call set_cmd_completer
8009 if parameter completer is not NULL.
8010 (add_target): New.
8011 * target.h: Include "command.h".
8012 (add_target_with_completer): Declare it.
8013
8014 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8015
8016 * coffread.c (is_import_fixup_symbol): New function.
8017 (record_minimal_symbol): Use is_import_fixup_symbol to
8018 detect import fixup symbols, and discard them.
8019
8020 2013-03-28 Doug Evans <dje@google.com>
8021
8022 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8023 types hash table until we know we need it.
8024
8025 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8026 index numbers.
8027
8028 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8029 All callers updated.
8030 (dw2_print_stats): Print #read CUs too.
8031 (dump_die_shallow): Print signatured types better.
8032
8033 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8034 info_or_types_section to section. All uses updated.
8035 (struct dwo_unit): Ditto.
8036
8037 2013-03-28 Pedro Alves <palves@redhat.com>
8038
8039 * NEWS (New options): New section.
8040 (New options): Mention set/show remote trace-status-packet.
8041 * remote.c (PACKET_qTStatus): New enumeration value.
8042 (remote_get_trace_status): Skip sending qTStatus if the packet is
8043 disabled. Use packet_ok.
8044 (_initialize_remote): Register a configuration command for
8045 qTStatus packet.
8046
8047 2013-03-28 Doug Evans <dje@google.com>
8048
8049 * symfile.c (find_separate_debug_file): Add comment.
8050 (terminate_after_last_dir_separator): Tweak comment.
8051
8052 * dwarf2read.c (create_partial_symtab): Add forward decl.
8053 (create_partial_symtab): Move to be closer to other psymtab functions.
8054 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8055
8056 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8057 (compute_symtab_includes): Remove unnecessary forward declaration.
8058 (die_needs_namespace): Add comment marking group of functions for
8059 dwarf2 name computation.
8060
8061 * typeprint.c (_initialize_typeprint): Improve type help text.
8062
8063 * python/python.c (finish_python_initialization): Provide suggestion
8064 for how to tell gdb to find its python files.
8065
8066 2013-03-28 Pedro Alves <palves@redhat.com>
8067
8068 PR gdb/15294
8069
8070 * source.c (_initialize_source): Change back "set listsize" to an
8071 integer command.
8072
8073 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8074
8075 PR gdb/15275
8076 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8077
8078 2013-03-27 Pedro Alves <palves@redhat.com>
8079
8080 * top.c (history_size): Rename to ...
8081 (history_size_setshow_var): ... this. Add comment.
8082 (show_commands): Use readline's 'history_length' instead of
8083 computing the history length by calling history_get in a loop.
8084 (set_history_size_command): Error out for sizes over INT_MAX.
8085 Restore previous history size on invalid size.
8086 (init_history): If HISTSIZE is negative, leave the history size as
8087 zero. Add comments.
8088 (init_main): Adjust.
8089
8090 2013-03-27 Pedro Alves <palves@redhat.com>
8091
8092 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8093 coff_pe_read" command to "set debug coff-pe-read".
8094
8095 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8096
8097 * record.c (command_size_to_target_size): Fix size comparison.
8098 Change parameter type from pointer to integer to integer.
8099 Update all users.
8100
8101 2013-03-27 Pierre Muller <muller@sourceware.org>
8102
8103 * windows-nat.c (handle_output_debug_string): Avoid typecast
8104 from integer of different size warning.
8105
8106 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8107
8108 * windows-nat.c (handle_output_debug_string): Add empty line
8109 after local block variable definition.
8110
8111 2013-03-26 Pedro Alves <palves@redhat.com>
8112
8113 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8114 (net_open): Make 'polls' local unsigned.
8115
8116 2013-03-26 Pedro Alves <palves@redhat.com>
8117
8118 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8119 a zuinteger command instead of uinteger.
8120
8121 2013-03-26 Pedro Alves <palves@redhat.com>
8122
8123 * record-full.c (record_full_insn_num): Make it unsigned.
8124 (record_full_check_insn_num, record_full_message)
8125 (record_full_registers_change, record_full_xfer_partial): Remove
8126 record_full_insn_max_num check (it's always != 0).
8127 (record_full_info, record_full_restore): Use %u as format string.
8128 (): Use %u as format string.
8129 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8130 check (it's always != 0).
8131
8132 2013-03-26 Pedro Alves <palves@redhat.com>
8133
8134 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8135 and "set dcache size" commands zuinteger instead of uinteger.
8136
8137 2013-03-26 Pedro Alves <palves@redhat.com>
8138
8139 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8140 command zuinteger instead of uinteger.
8141
8142 2013-03-26 Pedro Alves <palves@redhat.com>
8143
8144 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8145 zuinteger instead of uinteger.
8146
8147 2013-03-26 Pedro Alves <palves@redhat.com>
8148
8149 * record.c (record_insn_history_size_setshow_var)
8150 (record_call_history_size_setshow_var): New globals.
8151 (command_size_to_target_size): New function.
8152 (cmd_record_insn_history, cmd_record_call_history): Use
8153 command_size_to_target_size instead of cast.
8154 (validate_history_size, set_record_insn_history_size)
8155 (set_record_call_history_size): New functions.
8156 (_initialize_record): Install set_record_insn_history_size and
8157 set_record_call_history_size as "set" hooks of "set record
8158 instruction-history-size" and "set record
8159 function-call-history-size".
8160
8161 2013-03-26 Pedro Alves <palves@redhat.com>
8162
8163 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8164 use with history_max_entries use. Remove FIXME note.
8165
8166 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8167
8168 * record-btrace.c (record_btrace_close): Call
8169 record_btrace_auto_disable.
8170
8171 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8172
8173 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8174
8175 2013-03-25 Doug Evans <dje@google.com>
8176
8177 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8178
8179 2013-03-25 Tom Tromey <tromey@redhat.com>
8180
8181 PR symtab/11462:
8182 * c-exp.y (exp): Add new productions for destructors after '.' and
8183 '->'.
8184 (write_destructor_name): New function.
8185
8186 2013-03-25 Tom Tromey <tromey@redhat.com>
8187
8188 PR c++/9197:
8189 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8190 value_struct_elt, not lookup_struct_elt_type.
8191 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8192 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8193 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8194
8195 2013-03-25 Yao Qi <yao@codesourcery.com>
8196
8197 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8198 instead of '_mkdir'.
8199
8200 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8201
8202 * windows-nat.c (windows_get_absolute_argv0): New function.
8203 * windows-nat.h: Add its prototype.
8204
8205 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8206 Use IS_DIR_SEPARATOR instead of looking for a character inside
8207 SLASH_STRING. Include filenames.h.
8208 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8209 relocate_gdb_directory works when passed gdb_program_name.
8210 Include windows-nat.h.
8211
8212 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8213
8214 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8215 * remote.c (trace_error): Remove the special handling of '2'.
8216 (readchar) <SERIAL_EOF>
8217 (readchar) <SERIAL_ERROR>
8218 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8219 (remote_get_trace_status): Call throw_exception if EX is
8220 TARGET_CLOSE_ERROR.
8221 * utils.c (perror_with_name): Rename to ...
8222 (throw_perror_with_name): ... here. New parameter errcode, describe it
8223 in the function comment.
8224 (perror_with_name): New function wrapper.
8225 * utils.h (enum errors): New stub declaration.
8226 (throw_perror_with_name): New declaration.
8227
8228 2013-03-22 Pedro Alves <palves@redhat.com>
8229 Yao Qi <yao@codesourcery.com>
8230 Mark Kettenis <kettenis@gnu.org>
8231
8232 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8233 Don't let the user set the value to UINT_MAX directly.
8234 <var_integer>: Don't let the user set the value to INT_MAX
8235 directly.
8236
8237 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8238
8239 * remote.c (remote_unpush_target): New function.
8240 (remote_open_1): Remove two pop_target calls, update one comment, add
8241 comment to target_preopen call. Replace pop_target call by
8242 remote_unpush_target call.
8243 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8244 pop_target calls by remote_unpush_target calls.
8245
8246 2013-03-22 Pedro Alves <palves@redhat.com>
8247
8248 * linux-nat.c (linux_child_follow_fork): Don't call
8249 linux_enable_event_reporting.
8250 (linux_handle_extended_wait): Don't call
8251 linux_enable_event_reporting.
8252
8253 2013-03-22 Pedro Alves <palves@redhat.com>
8254
8255 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8256 use it to rewrite the trampoline buffers with type gdb_byte[], and
8257 undefine the macro. Remove char* cast.
8258
8259 2013-03-21 Doug Evans <dje@google.com>
8260
8261 New commands "mt set per-command {space,time,symtab} {on,off}".
8262 * NEWS: Add entry.
8263 * event-top.c: #include "maint.h".
8264 * main.c: #include "maint.h".
8265 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8266 timeval-utils.h, maint.h, cli/cli-setshow.h.
8267 (per_command_time, per_command_space): New static globals.
8268 (per_command_symtab): New static global.
8269 (per_command_setlist, per_command_showlist): New static globals.
8270 (struct cmd_stats): Move here from utils.c.
8271 (set_per_command_time): Renamed from set_display_time in utils.c
8272 and moved here. All callers updated.
8273 (set_per_command_space): Renamed from set_display_space in utils.c
8274 and moved here. All callers updated.
8275 (count_symtabs_and_blocks): New function.
8276 (report_command_stats): Moved here from utils.c. Add support for
8277 printing symtab stats. Only print data if enabled before command
8278 executed.
8279 (make_command_stats_cleanup): Ditto.
8280 (sert_per_command_cmd, show_per_command_cmd): New functions.
8281 (_initialize_maint_cmds): Add new commands
8282 mt set per-command {space,time,symtab} {on,off}.
8283 * maint.h: New file.
8284 * top.c: #include "maint.h".
8285 * utils.c (reset_prompt_for_continue_wait_time): New function.
8286 (get_prompt_for_continue_wait_time): New function.
8287 * utils.h (reset_prompt_for_continue_wait_time): Declare
8288 (get_prompt_for_continue_wait_time): Declare.
8289 (make_command_stats_cleanup): Moved to maint.h.
8290 (set_display_time, set_display_space): Moved to maint.h and renamed
8291 to set_per_command_time, set_per_command_space.
8292 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8293 parse_binary_operation and made non-static. Don't call error,
8294 just return an error marker. All callers updated.
8295 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8296
8297 2013-03-21 Tom Tromey <tromey@redhat.com>
8298
8299 * symfile.c (alloc_section_addr_info): Update header. Don't set
8300 'num_sections' field.
8301 (build_section_addr_info_from_section_table): Set 'num_sections'.
8302 (build_section_addr_info_from_bfd): Likewise.
8303 (build_section_addr_info_from_objfile): Remove dead loop
8304 condition.
8305 (free_section_addr_info): Unconditionally call xfree.
8306 (relative_addr_info_to_section_offsets, addrs_section_sort)
8307 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8308 condition.
8309 (syms_from_objfile_1): Remove dead 'if' condition. Check
8310 'num_sections'.
8311 (add_symbol_file_command): Set 'num_sections'.
8312 * symfile-mem.c (symbol_file_add_from_memory): Set
8313 'num_sections'.
8314 * somread.c (som_symfile_offsets): Remove dead loop condition.
8315 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8316 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8317
8318 2013-03-21 Tom Tromey <tromey@redhat.com>
8319
8320 * tracepoint.h (decode_agent_options): Add 'trace_string'
8321 argument.
8322 * tracepoint.c (decode_agent_options): Add 'trace_string'
8323 argument.
8324 (validate_actionline): Update.
8325 (collect_symbol): Add 'trace_string' argument.
8326 (struct add_local_symbols_data) <trace_string>: New field.
8327 (do_collect_symbol): Update.
8328 (add_local_symbols): Add 'trace_string' argument.
8329 (encode_actions_1): Update.
8330 (trace_dump_actions): Update.
8331 * dwarf2loc.c (access_memory): Update.
8332 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8333 * ax-general.c (new_agent_expr): Update.
8334 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8335 (gen_trace_for_return_address): Add argument.
8336 (trace_kludge, trace_string_kludge): Remove.
8337 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8338 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8339 (gen_trace_for_var): Add 'trace_string' argument.
8340 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8341 (gen_printf, agent_eval_command_one): Update.
8342
8343 2013-03-21 Tom Tromey <tromey@redhat.com>
8344
8345 PR exp/15109:
8346 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8347 Handle FILENAME token.
8348
8349 2013-03-21 Tom Tromey <tromey@redhat.com>
8350
8351 * c-exp.y (YYPRINT): Define.
8352 (c_print_token): New function.
8353
8354 2013-03-21 Tom Tromey <tromey@redhat.com>
8355
8356 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8357
8358 2013-03-21 Yao Qi <yao@codesourcery.com>
8359
8360 * ctf.c: Include "gdb_stat.h".
8361 [USE_WIN32API]: New macro 'mkdir'.
8362 (ctf_start): Use permission bits macros if they are defined.
8363
8364 2013-03-20 Keith Seitz <keiths@redhat.com>
8365
8366 * breakpoint.h (struct breakpoint): Add comment to
8367 extra_string indicating that this member is mallod'd.
8368 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8369
8370 2013-03-20 Pedro Alves <palves@redhat.com>
8371
8372 PR gdb/15289
8373
8374 * cli/cli-setshow.c (do_set_command)
8375 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8376 the result of parsing the command argument. Throw error if the
8377 value is greater than UINT_MAX. Print the invalid value with
8378 plongest.
8379 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8380 result of parsing the command argument. Throw error if the value
8381 is greater than INT_MAX, not greater or equal. Also throw error
8382 if the value is less than INT_MIN. Print the invalid value with
8383 plongest.
8384 <var_zuinteger_unlimited>: Throw error if the value is greater
8385 than INT_MAX, not greater or equal.
8386 (do_show_command) <var_integer, var_zinteger,
8387 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8388
8389 2013-03-20 Tom Tromey <tromey@redhat.com>
8390
8391 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8392 if possible.
8393 * dwarf2read.c (read_func_scope): Remove old FIXME.
8394 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8395 not LOC_COMPUTED.
8396 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8397 Unconditionally call via computed ops, if possible.
8398 * printcmd.c (address_info): Unconditionally call via computed ops,
8399 if possible.
8400 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8401 if possible.
8402 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8403 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8404 if possible.
8405
8406 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8407 Tom Tromey <tromey@redhat.com>
8408
8409 PR symtab/8421:
8410 * coffread.c (coff_register_index): New global.
8411 (process_coff_symbol, coff_read_enum_type): Set
8412 SYMBOL_ACLASS_INDEX.
8413 (_initialize_coffread): Initialize new global.
8414 * dwarf2loc.c (locexpr_find_frame_base_location)
8415 (dwarf2_block_frame_base_locexpr_funcs)
8416 (loclist_find_frame_base_location)
8417 (dwarf2_block_frame_base_loclist_funcs): New.
8418 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8419 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8420 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8421 (dwarf2_block_frame_base_loclist_funcs): New.
8422 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8423 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8424 globals.
8425 (read_func_scope): Update.
8426 (fixup_go_packaging, mark_common_block_symbol_computed)
8427 (var_decode_location, new_symbol_full, dwarf2_const_value):
8428 Set SYMBOL_ACLASS_INDEX.
8429 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8430 (_initialize_dwarf2_read): Initialize new globals.
8431 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8432 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8433 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8434 globals.
8435 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8436 (_initialize_mdebugread): Initialize new globals.
8437 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8438 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8439 (stab_register_index, stab_regparm_index): New globals.
8440 (define_symbol, read_enum_type, common_block_end): Set
8441 SYMBOL_ACLASS_INDEX.
8442 (_initialize_stabsread): Initialize new globals.
8443 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8444 globals.
8445 (MAX_SYMBOL_IMPLS): New define.
8446 (register_symbol_computed_impl, register_symbol_block_impl)
8447 (register_symbol_register_impl)
8448 (initialize_ordinary_address_classes): New functions.
8449 (_initialize_symtab): Call initialize_ordinary_address_classes.
8450 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8451 (struct symbol_impl): New.
8452 (SYMBOL_ACLASS_BITS): New define.
8453 (struct symbol) <aclass, ops>: Remove fields.
8454 <aclass_index>: New field.
8455 (symbol_impls): Declare.
8456 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8457 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8458 (register_symbol_computed_impl, register_symbol_block_impl)
8459 (register_symbol_register_impl): Declare.
8460 (struct symbol_computed_ops): Add location_has_loclist.
8461 (struct symbol_block_ops): New.
8462 (SYMBOL_BLOCK_OPS): New.
8463 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8464
8465 2013-03-20 Tom Tromey <tromey@redhat.com>
8466
8467 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8468 (print_partial_symbols, recursively_search_psymtabs): Use
8469 PSYMBOL_CLASS.
8470
8471 2013-03-20 Pierre Muller <muller@sourceware.org>
8472
8473 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8474 addtion, subtraction, multiplication and division binary operator.
8475
8476 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8477
8478 Code cleanup.
8479 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8480 * bsd-kvm.c (bsd_kvm_close): Likewise.
8481 * bsd-uthread.c (bsd_uthread_close): Likewise.
8482 * corelow.c (core_close): Likewise.
8483 (core_close_cleanup): Remove parameter quitting from a caller.
8484 * event-top.c (async_disconnect): Likewise.
8485 * exec.c (exec_close_1): Remove parameter quitting.
8486 * go32-nat.c (go32_close): Likewise.
8487 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8488 parameter quitting from a caller.
8489 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8490 variable.
8491 (mips_linux_close): Remove parameter quitting. Remove parameter
8492 quitting from a caller.
8493 * monitor.c (monitor_close): Remove parameter quitting.
8494 * monitor.h (monitor_close): Likewise.
8495 * record-btrace.c (record_btrace_close): Likewise.
8496 * record-full.c (record_full_close): Likewise.
8497 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8498 it also from fprintf_unfiltered.
8499 * remote-mips.c (mips_close): Remove parameter quitting.
8500 (mips_detach): Remove parameter quitting from a caller.
8501 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8502 (gdbsim_close): Remove duplicate function comment. Remove parameter
8503 quitting and remove it also from printf_filtered.
8504 * remote.c (remote_close): Remove parameter quitting.
8505 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8506 * target.c (update_current_target): Remove parameter int from to_close
8507 de_fault.
8508 (push_target, unpush_target, pop_target): Remove parameter quitting from
8509 a caller.
8510 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8511 Remove parameter quitting from a caller.
8512 (target_preopen): Remove parameter quitting from a caller.
8513 (target_close): Remove parameter quitting. Remove parameter quitting
8514 from a caller two times. Remove parameter quitting also from
8515 fprintf_unfiltered.
8516 * target.h (struct target_ops): Remove parameter quitting and as int
8517 from fields to_xclose and to_close.
8518 (extern struct target_ops current_target):
8519 (target_close, pop_all_targets): Remove parameter quitting. Update the
8520 comment.
8521 (pop_all_targets_above): Remove parameter quitting.
8522 * top.c (quit_target): Remove parameter quitting from a caller.
8523 * tracepoint.c (tfile_close): Remove parameter quitting.
8524 * windows-nat.c (windows_close): Remove parameter quitting.
8525
8526 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8527
8528 * windows-nat.c (handle_output_debug_string): Replace call
8529 to string_to_core_addr with call to strtoull.
8530
8531 2013-03-20 Yao Qi <yao@codesourcery.com>
8532
8533 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8534 and write it to CTF metadata.
8535
8536 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8537
8538 * windows-nat.c (handle_output_debug_string): Change type of n to
8539 SIZE_T to avoid crash on 64 bit systems.
8540
8541 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8542
8543 * python/python-internal.h (HAVE_SNPRINTF)
8544 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8545 about redefinition of snprintf by pyerrors.h.
8546
8547 2013-03-15 Steve Ellcey <sellcey@mips.com>
8548
8549 * remote-sim.c (sim_command_completer): Make char arguments const.
8550
8551 2013-03-15 Tom Tromey <tromey@redhat.com>
8552
8553 PR c++/15116:
8554 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8555
8556 2013-03-14 Tom Tromey <tromey@redhat.com>
8557
8558 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8559 New fields.
8560 (get_file_crc): Move from symfile.c.
8561 (gdb_bfd_crc): New function.
8562 * gdb_bfd.h (gdb_bfd_crc): Declare.
8563 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8564 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8565 (separate_debug_file_exists): Use gdb_bfd_crc.
8566
8567 2013-03-14 Tom Tromey <tromey@redhat.com>
8568
8569 * symfile.c (get_debug_link_info): Remove.
8570 (find_separate_debug_file_by_debuglink): Use
8571 bfd_get_debug_link_info.
8572
8573 2013-03-14 Tom Tromey <tromey@redhat.com>
8574
8575 * symtab.c (error_in_psymtab_expansion): New function.
8576 (lookup_symbol_aux_quick)
8577 (basic_lookup_transparent_type_quick): Remove "last resort"
8578 code. Use error_in_psymtab_expansion.
8579
8580 2013-03-14 Doug Evans <dje@google.com>
8581 Jan Kratochvil <jan.kratochvil@redhat.com>
8582
8583 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8584 any successful compare_filenames_for_search or FILENAME_CMP.
8585 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8586 * symtab.c (iterate_over_some_symtabs): Likewise.
8587
8588 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8589
8590 * source.c (print_source_lines_base): Make a local copy of
8591 symtab_to_fullname.
8592
8593 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8594 Jan Kratochvil <jan.kratochvil@redhat.com>
8595
8596 * source.c (print_source_lines_base): Suppress "file" for TUI.
8597
8598 2013-03-14 Keith Seitz <keiths@redhat.com>
8599 Alan Matsuoka <alanm@redhat.com>
8600
8601 PR c++/15203
8602 PR c++/15210
8603 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8604 TYPE_CODE_METHOD.
8605 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8606 symbols.
8607
8608 2013-03-14 Yao Qi <yao@codesourcery.com>
8609
8610 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8611 status to tfile if trace is stopped by command 'tstop'.
8612
8613 2013-03-14 Yao Qi <yao@codesourcery.com>
8614
8615 * tracepoint.c (tfile_write_status): Write trace notes and user
8616 name into tfile if they are not NULL.
8617
8618 2013-03-14 Hui Zhu <hui@codesourcery.com>
8619 Yao Qi <yao@codesourcery.com>
8620
8621 * Makefile.in (REMOTE_OBS): Add ctf.o.
8622 (SFILES): Add ctf.c.
8623 (HFILES_NO_SRCDIR): Add ctf.h.
8624 * ctf.c, ctf.h: New files.
8625 * tracepoint.c: Include 'ctf.h'.
8626 (collect_pseudocommand): Remove static.
8627 (trace_save_command): Parse option "-ctf".
8628 Produce different trace file writers per option.
8629 Adjust output message.
8630 (trace_save_tfile, trace_save_ctf): New.
8631 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8632 * mi/mi-main.c: Include 'ctf.h'.
8633 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8634 trace_save_tfile or trace_save_ctf.
8635 * NEWS: Mention these changes.
8636
8637 2013-03-14 Yao Qi <yao@codesourcery.com>
8638
8639 * tracepoint.c (trace_file_writer_xfree): New.
8640 (struct tfile_writer_data): New.
8641 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8642 (tfile_write_header, tfile_write_regblock_type): New.
8643 (tfile_write_status, tfile_write_uploaded_tsv): New.
8644 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8645 (tfile_write_raw_data, (tfile_end): New.
8646 (tfile_write_ops): New global variable.
8647 (TRACE_WRITE_R_BLOCK): New macro.
8648 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8649 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8650 (TRACE_WRITE_V_BLOCK): New macro.
8651 (trace_save): Add extra one parameter WRITER. Make it static.
8652 Use WRITER to writer trace.
8653 (tfile_trace_file_writer_new): New.
8654 (trace_save_command): Caller update.
8655 (trace_save_tfile): Write trace data in TFILE format.
8656 * tracepoint.h (struct trace_frame_write_ops): New.
8657 (struct trace_file_write_ops): New.
8658 (struct trace_file_writer): New.
8659 (trace_save): Remove its declaration.
8660 (trace_save_tfile): Declare it.
8661 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8662 instead of trace_save.
8663
8664 2013-03-13 Pedro Alves <palves@redhat.com>
8665
8666 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8667
8668 2013-03-13 Pedro Alves <palves@redhat.com>
8669
8670 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8671 commented out code.
8672 * demangle.c (current_demangling_style_string): Make it const.
8673 (set_demangling_command): Assert the demangling style is known.
8674 Remove all handling of unknown styles. Set
8675 'current_demangling_style_string' to an element of the
8676 demangling_style_names array.
8677 (set_demangling_style): Delete.
8678 (_initialize_demangler): Set current_demangling_style_string to the
8679 element of the demangling_style_names array that corresponds to
8680 the default demangling style. Remove FIXME note. Don't call
8681 set_demangling_style.
8682 * gdb-demangle.h (set_demangling_style): Remove declaration.
8683
8684 2013-03-13 Pedro Alves <palves@redhat.com>
8685
8686 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8687 fields const.
8688 (ada_make_symbol_completion_list): Make "text0" parameter const.
8689 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8690 * breakpoint.c (condition_completer): Make "text" and "word"
8691 parameters const. Adjust.
8692 (check_tracepoint_command): Adjust to validate_actionline
8693 prototype change.
8694 (catch_syscall_completer): Make "text" and "word" parameters
8695 const.
8696 * cli/cli-cmds.c (show_user): Make "comname" local const.
8697 (valid_command_p): Make "command" parameter const.
8698 (alias_command): Make "alias_prefix" and "command_prefix" locals
8699 const.
8700 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8701 (add_alias_cmd): Make "name" and "oldname" parameters const.
8702 Adjust. No longer make copy of OLDNAME.
8703 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8704 (add_setshow_cmd_full, add_setshow_enum_cmd)
8705 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8706 (add_setshow_filename_cmd, add_setshow_string_cmd)
8707 (add_setshow_string_noescape_cmd)
8708 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8709 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8710 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8711 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8712 Make "name" parameter const.
8713 (help_cmd): Rename "command" parameter to "arg". New const local
8714 "command".
8715 (find_cmd): Make "command" parameter const.
8716 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8717 deprecated_cmd_warning prototype change.
8718 (undef_cmd_error): Make "cmdtype" parameter const.
8719 (lookup_cmd): Make "line" parameter const.
8720 (deprecated_cmd_warning): Change type of "text" parameter to
8721 pointer to const char, from pointer to pointer to char. Adjust.
8722 (lookup_cmd_composition): Make "text" parameter const.
8723 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8724 parameters const.
8725 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8726 const.
8727 * cli/cli-script.c (validate_comname): Make "tem" local const.
8728 (define_command): New const local "tem_c". Use it in calls to
8729 lookup_cmd.
8730 (document_command): Make "tem" and "comfull" locals const.
8731 (show_user_1): Make "prefix" and "name" parameters const.
8732 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8733 const.
8734 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8735 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8736 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8737 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8738 (complete_on_enum, add_setshow_enum_cmd)
8739 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8740 (add_setshow_filename_cmd, add_setshow_string_cmd)
8741 (add_setshow_string_noescape_cmd)
8742 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8743 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8744 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8745 Change prototypes, constifying strings.
8746 * completer.c (noop_completer, filename_completer): Make "text"
8747 and "prefix" parameters const.
8748 (location_completer, expression_completer)
8749 (complete_line_internal): Make "text" and "prefix" parameters
8750 const and adjust.
8751 (command_completer, signal_completer): Make "text" and "prefix"
8752 parameters const.
8753 * completer.h (noop_completer, filename_completer)
8754 (expression_completer, location_completer, command_completer)
8755 (signal_completer): Change prototypes.
8756 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8757 parameters const.
8758 * cp-abi.c (cp_abi_completer): Likewise.
8759 * expression.h (parse_expression_for_completion): Change
8760 prototype.
8761 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8762 parameters const.
8763 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8764 * infrun.c (handle_completer): Make "text" and "word" parameters
8765 const.
8766 * interps.c (interpreter_completer): Make "text" and "word"
8767 parameters const.
8768 * language.h (struct language_defn)
8769 <la_make_symbol_completion_list>: Make "text" and "word"
8770 parameters const.
8771 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8772 (parse_exp_in_context): Rename to ...
8773 (parse_exp_in_context_1): ... this.
8774 (parse_exp_in_context): Reimplement, with const hack from
8775 parse_exp_1.
8776 (parse_expression_for_completion): Make "string" parameter const.
8777 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8778 to pointer to const char. Adjust.
8779 (print_command_1): Make "exp" parameter const.
8780 (output_command): Rename to ...
8781 (output_command_const): ... this. Make "exp" parameter const.
8782 (output_command): Reimplement.
8783 (x_command): Adjust.
8784 (display_command): Rename "exp" parameter to "arg". New "exp"
8785 local, const version of "arg".
8786 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8787 "cmd_name" local const.
8788 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8789 call.
8790 (cmdpy_completer): Make "text" and "word" parameters const.
8791 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8792 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8793 const.
8794 * remote.c (_initialize_remote): Make "cmd_name" local const.
8795 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8796 parameters const. Adjust.
8797 (completion_list_add_fields): Make "sym_text", "text" and "word"
8798 parameters const.
8799 (struct add_name_data) <sym_text, text, word>: Make fields const.
8800 (default_make_symbol_completion_list_break_on): Make "text" and
8801 "word" parameters const. Adjust locals.
8802 (default_make_symbol_completion_list)
8803 (make_symbol_completion_list, make_symbol_completion_type)
8804 (make_symbol_completion_list_fn): Make "text" and "word"
8805 parameters const.
8806 (make_file_symbol_completion_list): Make "text", "word" and
8807 "srcfile" parameters const. Adjust locals.
8808 (add_filename_to_list): Make "text" and "word" parameters const.
8809 (struct add_partial_filename_data) <text, word>: Make fields
8810 const.
8811 (make_source_files_completion_list): Make "text" and "word"
8812 parameters const.
8813 * symtab.h (default_make_symbol_completion_list_break_on)
8814 (default_make_symbol_completion_list, make_symbol_completion_list)
8815 (make_symbol_completion_type enum type_code)
8816 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8817 (make_source_files_completion_list): Change prototype.
8818 * top.c (execute_command): Adjust to pass pointer to pointer to
8819 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8820 change.
8821 (set_verbose): Make "cmdname" local const.
8822 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8823 and adjust.
8824 (validate_actionline): Make "line" parameter a pointer to const
8825 char, and adjust.
8826 (encode_actions_1): Make "action_exp" local const, and adjust.
8827 (encode_actions): Adjust.
8828 (replace_comma): Delete.
8829 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8830 const, and adjust. Don't frob the action string while splitting
8831 it at commas. Instead, make a copy of each split substring in
8832 turn.
8833 (trace_dump_command): Adjust to validate_actionline prototype
8834 change.
8835 * tracepoint.h (decode_agent_options, decode_agent_options)
8836 (encode_actions, validate_actionline): Change prototypes.
8837 * valprint.h (output_command): Delete declaration.
8838 (output_command_const): Declare.
8839 * value.c (function_destroyer): Cast const away in xfree call.
8840
8841 2013-03-13 Pedro Alves <palves@redhat.com>
8842
8843 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8844 rather than casting 'const char * const *' to 'const char **'.
8845 * ada-lex.l (processInt): Make "trailer" local const. Remove
8846 'const char **' cast.
8847 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8848 locals, and use those as strtol output pointer, instead than doing
8849 invalid casts to from 'const char **' to 'char **'.
8850 (_initialize_demangle): Remove cast.
8851 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8852 locals, and use those as strtol output pointer, instead than doing
8853 invalid casts to from 'const char **' to 'char **'.
8854 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8855 casts.
8856 * stap-probe.c (stap_parse_register_operand)
8857 (stap_parse_single_operand): Likewise.
8858
8859 2013-03-13 Yao Qi <yao@codesourcery.com>
8860
8861 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8862 the last matched 'V' blcok in trace frame.
8863
8864 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8865
8866 * NEWS: Create a new section for the next release branch.
8867 Rename the section of the current branch, now that it has
8868 been cut.
8869
8870 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8871
8872 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8873 * version.in: Bump version to 7.6.50.20130312-cvs.
8874
8875 2013-03-12 Keith Seitz <keiths@redhat.com>
8876
8877 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8878 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8879 Remove temporary copy of input string.
8880 (mi_execute_command_wrapper): Make "cmd" const.
8881 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8882 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8883 Use const strings.
8884 (mi_parse): Make "cmd" const.
8885 Use const strings.
8886 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8887
8888 2013-03-12 Keith Seitz <keiths@redhat.com>
8889
8890 * ada-lang.c (ada_read_renaming_var_value): Pass const
8891 pointer to expression string to parse_exp_1.
8892 (create_excep_cond_exprs): Likewise.
8893 * ax-gdb.c (agent_eval_command_one): Likewise.
8894 (maint_agent_printf_command): Likewise.
8895 Constify much of the string handling/parsing.
8896 * breakpoint.c (set_breakpoint_condition): Pass const
8897 pointer to expression string to parse_exp_1.
8898 (update_watchpoint): Likewise.
8899 (parse_cmd_to_aexpr): Constify string handling.
8900 Pass const pointer to parse_exp_1.
8901 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8902 (find_condition_and_thread): Likewise.
8903 Make TOK const.
8904 (watch_command_1): Make "arg" const.
8905 Constify string handling.
8906 Copy the expression string instead of changing the input
8907 string.
8908 (update_breakpoint_location): Pass const pointer to
8909 parse_exp_1.
8910 * eval.c (parse_and_eval_address): Make "exp" const.
8911 (parse_to_comma_and_eval): Make "expp" const.
8912 (parse_and_eval): Make "exp" const.
8913 * expression.h (parse_expression): Make argument const.
8914 (parse_exp_1): Make first argument const.
8915 * findcmd.c (parse_find_args): Treat "args" as const.
8916 * linespec.c (parse_linespec): Pass const pointer to
8917 linespec_expression_to_pc.
8918 (linespec_expression_to_pc): Make "exp_ptr" const.
8919 * parse.c (parse_exp_1): Make "stringptr" const.
8920 Make a copy of the expression to pass to parse_exp_in_context until
8921 this whole interface can be constified.
8922 (parse_expression): Make "string" const.
8923 * printcmd.c (ui_printf): Treat "arg" as const.
8924 Handle const strings.
8925 * tracepoint.c (validate_actionline): Pass const pointer to
8926 all calls to parse_exp_1.
8927 (encode_actions_1): Likewise.
8928 * value.h (parse_to_comma_and_eval): Make argument const.
8929 (parse_and_eval_address): Likewise.
8930 (parse_and_eval): Likewise.
8931 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8932 (varobj_set_value): Likewise.
8933 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8934 constify string handling.
8935 Pass const pointers to parse_and_eval_address and
8936 parse_to_comman_and_eval.
8937 * cli/cli-utils.c (skip_to_space): Rename to ...
8938 (skip_to_space_const): ... this. Handle const strings.
8939 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8940 skip_to_space_const.
8941 (skip_to_space_const): Declare.
8942 * common/format.c (parse_format_string): Make "arg" const.
8943 Handle const strings.
8944 * common/format.h (parse_format_string): Make "arg" const.
8945 * gdbserver/ax.c (ax_printf): Make "format" const.
8946 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8947 of the expression string.
8948
8949 2013-03-12 Hui Zhu <hui@codesourcery.com>
8950
8951 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8952
8953 2013-03-12 Yao Qi <yao@codesourcery.com>
8954 Hui Zhu <hui@codesourcery.com>
8955
8956 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8957 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8958 DW_OP_deref_size.
8959
8960 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8961
8962 * ada-lex.l (rules): Only recognize 'thread' as a
8963 delimiter when followed by numerals, as for c-exp.y.
8964 Use new rewind_to_char function to rewind the input for
8965 expression-delimiting tokens.
8966 (rewind_to_char): New function.
8967
8968 2013-03-11 Pedro Alves <palves@redhat.com>
8969 Jan Kratochvil <jan.kratochvil@redhat.com>
8970
8971 * configure: Regenerate.
8972 * configure.ac (check dynamic export flag): Link python test with
8973 $PYTHON_LIBS.
8974
8975 2013-03-11 Doug Evans <dje@google.com>
8976 Keith Seitz <keiths@redhat.com>
8977
8978 * linespec.c (find_linespec_symbols): Call find_function_symbols
8979 first, and then call lookup_prefix_sym/find_method.
8980
8981 2013-03-11 Pedro Alves <palves@redhat.com>
8982
8983 * charset.c (convert_between_encodings): Don't cast between
8984 different pointer to pointer types. Instead, make the 'inp' local
8985 be of the type iconv expects.
8986 (wchar_iterate): Don't cast between different pointer to pointer
8987 types. Instead, use new pointer local of the type iconv expects.
8988 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8989 Add new local of type char pointer, and use it to get a
8990 char/string view of the byte buffer, instead of casting between
8991 pointer to pointer types.
8992
8993 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8994
8995 * remote.c (remote_set_trace_buffer_size): Move != operator
8996 to the start of next line to fix an ARI warning.
8997
8998 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8999
9000 * NEWS: Add record changes.
9001
9002 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9003
9004 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9005 the instruction history disassembly.
9006 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9007 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9008
9009 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9010
9011 * Makefile.in (SFILES): Add record-btrace.c
9012 (COMMON_OBS): Add record-btrace.o
9013 * record-btrace.c: New.
9014 * objfiles.c: Include btrace.h.
9015 (free_objfile): call btrace_free_objfile.
9016
9017 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9018
9019 * target.c (target_call_history, target_call_history_from,
9020 target_call_history_range): New.
9021 * target.h (target_ops) <to_call_history, to_call_history_from,
9022 to_call_history_range>: New fields.
9023 (target_call_history, target_call_history_from,
9024 target_call_history_range): New declaration.
9025 * record.c (get_call_history_modifiers, cmd_record_call_history,
9026 record_call_history_size): New.
9027 (_initialize_record): Add the "record function-call-history" command.
9028 Add "set/show record function-call-history-size" commands.
9029 * record.h (record_print_flag): New.
9030
9031 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9032
9033 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9034 to_insn_history_range>: New fields.
9035 (target_insn_history): New.
9036 (target_insn_history_from): New.
9037 (target_insn_history_range): New.
9038 * target.c (target_insn_history): New.
9039 (target_insn_history_from): New.
9040 (target_insn_history_range): New.
9041 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9042 (record_insn_history_size): New.
9043 (get_insn_number): New.
9044 (get_context_size): New.
9045 (no_chunk): New.
9046 (get_insn_history_modifiers): New.
9047 (cmd_record_insn_history): New.
9048 (_initialize_record): Add "set/show record instruction-history-size"
9049 command. Add "record instruction-history" command.
9050
9051 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9052
9053 * record.h (record_disconnect): New.
9054 (record_detach): New.
9055 (record_mourn_inferior): New.
9056 (record_kill): New.
9057 * record-full.c (record_disconnect, record_detach,
9058 record_mourn_inferior, record_kill): Move to...
9059 * record.c: ...here.
9060 (DEBUG): New.
9061 (record_stop): New.
9062 (record_unpush): New.
9063 (cmd_record_stop): Call record_stop. Replace unpush_target
9064 call with record_unpush call.
9065 (record_disconnect, record_detach): Assert that the target
9066 is of record stratum. Call record_unpush, record_stop, and
9067 DEBUG.
9068 (record_mourn_inferior, record_kill): Assert that the target
9069 is of record stratum. Call record_unpush and DEBUG.
9070
9071 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9072
9073 * record-full.h, record-full.c (record_memory_query): Rename
9074 to ...
9075 (record_full_memory_query): ...this. Update all users.
9076 (record_arch_list_add_reg): Rename to ...
9077 (record_full_arch_list_add_reg): ...this. Update all users.
9078 (record_arch_list_add_mem): Rename to ...
9079 (record_full_arch_list_add_mem): ...this. Update all users.
9080 (record_arch_list_add_end): Rename to ...
9081 (record_full_arch_list_add_end): ...this. Update all users.
9082 (record_gdb_operation_disable_set): Rename to ...
9083 (record_full_gdb_operation_disable_set): ...this.
9084 Update all users.
9085
9086 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9087
9088 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9089 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9090 (RECORD_IS_REPLAY): Renamed to ...
9091 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9092 (RECORD_FILE_MAGIC): Renamed to ...
9093 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9094 (record_mem_entry): Renamed to ...
9095 (record_full_mem_entry): ... this. Updated all users.
9096 (record_reg_entry): Renamed to ...
9097 (record_full_reg_entry): ... this. Updated all users.
9098 (record_end_entry): Renamed to ...
9099 (record_full_end_entry): ... this. Updated all users.
9100 (record_type) <record_end, record_reg, record_mem>: Renamed
9101 to ...
9102 (record_full_type) <record_full_end, record_full_reg,
9103 record_full_mem>: ... this. Updated all users.
9104 (record_entry): Renamed to ...
9105 (record_full_entry): ... this. Updated all users.
9106 (record_core_buf_entry): Renamed to ...
9107 (record_full_core_buf_entry): ... this. Updated all users.
9108 (record_core_regbuf): Renamed to ...
9109 (record_full_core_regbuf): ... this. Updated all users.
9110 (record_core_start): Renamed to ...
9111 (record_full_core_start): ... this. Updated all users.
9112 (record_core_end): Renamed to ...
9113 (record_full_core_end): ... this. Updated all users.
9114 (record_core_buf_list): Renamed to ...
9115 (record_full_core_buf_list): ... this. Updated all users.
9116 (record_first): Renamed to ...
9117 (record_full_first): ... this. Updated all users.
9118 (record_list): Renamed to ...
9119 (record_full_list): ... this. Updated all users.
9120 (record_arch_list_head): Renamed to ...
9121 (record_full_arch_list_head): ... this. Updated all users.
9122 (record_arch_list_tail): Renamed to ...
9123 (record_full_arch_list_tail): ... this. Updated all users.
9124 (record_stop_at_limit): Renamed to ...
9125 (record_full_stop_at_limit): ... this. Updated all users.
9126 (record_insn_max_num): Renamed to ...
9127 (record_full_insn_max_num): ... this. Updated all users.
9128 (record_insn_num): Renamed to ...
9129 (record_full_insn_num): ... this. Updated all users.
9130 (record_insn_count): Renamed to ...
9131 (record_full_insn_count): ... this. Updated all users.
9132 (record_ops): Renamed to ...
9133 (record_full_ops): ... this. Updated all users.
9134 (record_core_ops): Renamed to ...
9135 (record_full_core_ops): ... this. Updated all users.
9136 (set_record_cmdlist): Renamed to ...
9137 (set_record_full_cmdlist): ... this. Updated all users.
9138 (show_record_cmdlist): Renamed to ...
9139 (show_record_full_cmdlist): ... this. Updated all users.
9140 (record_cmdlist): Renamed to ...
9141 (record_full_cmdlist): ... this. Updated all users.
9142 (record_beneath_to_resume_ops): Renamed to ...
9143 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9144 (record_beneath_to_resume): Renamed to ...
9145 (record_full_beneath_to_resume): ... this. Updated all users.
9146 (record_beneath_to_wait_ops): Renamed to ...
9147 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9148 (record_beneath_to_wait): Renamed to ...
9149 (record_full_beneath_to_wait): ... this. Updated all users.
9150 (record_beneath_to_store_registers_ops): Renamed to ...
9151 (record_full_beneath_to_store_registers_ops): ... this.
9152 Updated all users.
9153 (record_beneath_to_store_registers): Renamed to ...
9154 (record_full_beneath_to_store_registers): ... this.
9155 Updated all users.
9156 (record_beneath_to_xfer_partial_ops): Renamed to ...
9157 (record_full_beneath_to_xfer_partial_ops): ... this.
9158 Updated all users.
9159 (record_beneath_to_xfer_partial): Renamed to ...
9160 (record_full_beneath_to_xfer_partial): ... this.
9161 Updated all users.
9162 (record_beneath_to_insert_breakpoint): Renamed to ...
9163 (record_full_beneath_to_insert_breakpoint): ... this.
9164 Updated all users.
9165 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9166 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9167 Updated all users.
9168 (record_beneath_to_stopped_data_address): Renamed to ...
9169 (record_full_beneath_to_stopped_data_address): ... this.
9170 Updated all users.
9171 (record_beneath_to_async): Renamed to ...
9172 (record_full_beneath_to_async): ... this. Updated all users.
9173 (record_goto_insn): Renamed to ...
9174 (record_full_goto_insn): ... this. Updated all users.
9175 (record_save): Renamed to ...
9176 (record_full_save): ... this. Updated all users.
9177 (record_reg_alloc): Renamed to ...
9178 (record_full_reg_alloc): ... this. Updated all users.
9179 (record_reg_release): Renamed to ...
9180 (record_full_reg_release): ... this. Updated all users.
9181 (record_mem_alloc): Renamed to ...
9182 (record_full_mem_alloc): ... this. Updated all users.
9183 (record_mem_release): Renamed to ...
9184 (record_full_mem_release): ... this. Updated all users.
9185 (record_end_alloc): Renamed to ...
9186 (record_full_end_alloc): ... this. Updated all users.
9187 (record_end_release): Renamed to ...
9188 (record_full_end_release): ... this. Updated all users.
9189 (record_entry_release): Renamed to ...
9190 (record_full_entry_release): ... this. Updated all users.
9191 (record_list_release): Renamed to ...
9192 (record_full_list_release): ... this. Updated all users.
9193 (record_list_release_following): Renamed to ...
9194 (record_full_list_release_following): ... this.
9195 Updated all users.
9196 (record_list_release_first): Renamed to ...
9197 (record_full_list_release_first): ... this. Updated all users.
9198 (record_arch_list_add): Renamed to ...
9199 (record_full_arch_list_add): ... this. Updated all users.
9200 (record_get_loc): Renamed to ...
9201 (record_full_get_loc): ... this. Updated all users.
9202 (record_check_insn_num): Renamed to ...
9203 (record_full_check_insn_num): ... this. Updated all users.
9204 (record_arch_list_cleanups): Renamed to ...
9205 (record_full_arch_list_cleanups): ... this. Updated all users.
9206 (record_message): Renamed to ...
9207 (record_full_message): ... this. Updated all users.
9208 (record_message_wrapper): Renamed to ...
9209 (record_full_message_wrapper): ... this. Updated all users.
9210 (record_message_wrapper_safe): Renamed to ...
9211 (record_full_message_wrapper_safe): ... this. Updated all users.
9212 (record_gdb_operation_disable): Renamed to ...
9213 (record_full_gdb_operation_disable): ... this. Updated all users.
9214 (record_hw_watchpoint): Renamed to ...
9215 (record_full_hw_watchpoint): ... this. Updated all users.
9216 (record_exec_insn): Renamed to ...
9217 (record_full_exec_insn): ... this. Updated all users.
9218 (record_restore): Renamed to ...
9219 (record_full_restore): ... this. Updated all users.
9220 (record_async_inferior_event_token): Renamed to ...
9221 (record_full_async_inferior_event_token): ... this.
9222 Updated all users.
9223 (record_async_inferior_event_handler): Renamed to ...
9224 (record_full_async_inferior_event_handler): ... this.
9225 Updated all users.
9226 (record_core_open_1): Renamed to ...
9227 (record_full_core_open_1): ... this. Updated all users.
9228 (record_open_1): Renamed to ...
9229 (record_full_open_1): ... this. Updated all users.
9230 (record_open): Renamed to ...
9231 (record_full_open): ... this. Updated all users.
9232 (record_close): Renamed to ...
9233 (record_full_close): ... this. Updated all users.
9234 (record_resume_step): Renamed to ...
9235 (record_full_resume_step): ... this. Updated all users.
9236 (record_resumed): Renamed to ...
9237 (record_full_resumed): ... this. Updated all users.
9238 (record_execution_dir): Renamed to ...
9239 (record_full_execution_dir): ... this. Updated all users.
9240 (record_resume): Renamed to ...
9241 (record_full_resume): ... this. Updated all users.
9242 (record_get_sig): Renamed to ...
9243 (record_full_get_sig): ... this. Updated all users.
9244 (record_sig_handler): Renamed to ...
9245 (record_full_sig_handler): ... this. Updated all users.
9246 (record_wait_cleanups): Renamed to ...
9247 (record_full_wait_cleanups): ... this. Updated all users.
9248 (record_wait_1): Renamed to ...
9249 (record_full_wait_1): ... this. Updated all users.
9250 (record_wait): Renamed to ...
9251 (record_full_wait): ... this. Updated all users.
9252 (record_stopped_by_watchpoint): Renamed to ...
9253 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9254 (record_disconnect): Renamed to ...
9255 (record_full_disconnect): ... this. Updated all users.
9256 (record_detach): Renamed to ...
9257 (record_full_detach): ... this. Updated all users.
9258 (record_mourn_inferior): Renamed to ...
9259 (record_full_mourn_inferior): ... this. Updated all users.
9260 (record_kill): Renamed to ...
9261 (record_full_kill): ... this. Updated all users.
9262 (record_stopped_data_address): Renamed to ...
9263 (record_full_stopped_data_address): ... this. Updated all users.
9264 (record_registers_change): Renamed to ...
9265 (record_full_registers_change): ... this. Updated all users.
9266 (record_store_registers): Renamed to ...
9267 (record_full_store_registers): ... this. Updated all users.
9268 (record_xfer_partial): Renamed to ...
9269 (record_full_xfer_partial): ... this. Updated all users.
9270 (record_breakpoint): Renamed to ...
9271 (record_full_breakpoint): ... this. Updated all users.
9272 (record_breakpoint_p): Renamed to ...
9273 (record_full_breakpoint_p): ... this. Updated all users.
9274 (record_breakpoints): Renamed to ...
9275 (record_full_breakpoints): ... this. Updated all users.
9276 (record_sync_record_breakpoints): Renamed to ...
9277 (record_full_sync_record_breakpoints): ... this.
9278 Updated all users.
9279 (record_init_record_breakpoints): Renamed to ...
9280 (record_full_init_record_breakpoints): ... this.
9281 Updated all users.
9282 (record_insert_breakpoint): Renamed to ...
9283 (record_full_insert_breakpoint): ... this. Updated all users.
9284 (record_remove_breakpoint): Renamed to ...
9285 (record_full_remove_breakpoint): ... this. Updated all users.
9286 (record_can_execute_reverse): Renamed to ...
9287 (record_full_can_execute_reverse): ... this. Updated all users.
9288 (record_get_bookmark): Renamed to ...
9289 (record_full_get_bookmark): ... this. Updated all users.
9290 (record_goto_bookmark): Renamed to ...
9291 (record_full_goto_bookmark): ... this. Updated all users.
9292 (record_async): Renamed to ...
9293 (record_full_async): ... this. Updated all users.
9294 (record_can_async_p): Renamed to ...
9295 (record_full_can_async_p): ... this. Updated all users.
9296 (record_is_async_p): Renamed to ...
9297 (record_full_is_async_p): ... this. Updated all users.
9298 (record_execution_direction): Renamed to ...
9299 (record_full_execution_direction): ... this. Updated all users.
9300 (record_info): Renamed to ...
9301 (record_full_info): ... this. Updated all users.
9302 (record_delete): Renamed to ...
9303 (record_full_delete): ... this. Updated all users.
9304 (record_is_replaying): Renamed to ...
9305 (record_full_is_replaying): ... this. Updated all users.
9306 (record_goto_entry): Renamed to ...
9307 (record_full_goto_entry): ... this. Updated all users.
9308 (record_goto_begin): Renamed to ...
9309 (record_full_goto_begin): ... this. Updated all users.
9310 (record_goto_end): Renamed to ...
9311 (record_full_goto_end): ... this. Updated all users.
9312 (record_goto): Renamed to ...
9313 (record_full_goto): ... this. Updated all users.
9314 (init_record_ops): Renamed to ...
9315 (init_record_full_ops): ... this. Updated all users.
9316 (record_core_resume): Renamed to ...
9317 (record_full_core_resume): ... this. Updated all users.
9318 (record_core_kill): Renamed to ...
9319 (record_full_core_kill): ... this. Updated all users.
9320 (record_core_fetch_registers): Renamed to ...
9321 (record_full_core_fetch_registers): ... this. Updated all users.
9322 (record_core_prepare_to_store): Renamed to ...
9323 (record_full_core_prepare_to_store): ... this. Updated all users.
9324 (record_core_store_registers): Renamed to ...
9325 (record_full_core_store_registers): ... this. Updated all users.
9326 (record_core_xfer_partial): Renamed to ...
9327 (record_full_core_xfer_partial): ... this. Updated all users.
9328 (record_core_insert_breakpoint): Renamed to ...
9329 (record_full_core_insert_breakpoint): ... this. Updated all users.
9330 (record_core_remove_breakpoint): Renamed to ...
9331 (record_full_core_remove_breakpoint): ... this. Updated all users.
9332 (record_core_has_execution): Renamed to ...
9333 (record_full_core_has_execution): ... this. Updated all users.
9334 (init_record_core_ops): Renamed to ...
9335 (init_record_full_core_ops): ... this. Updated all users.
9336 (cmd_record_restore): Renamed to ...
9337 (cmd_record_full_restore): ... this. Updated all users.
9338 (record_save_cleanups): Renamed to ...
9339 (record_full_save_cleanups): ... this. Updated all users.
9340 (cmd_record_start): Renamed to ...
9341 (cmd_record_full_start): ... this. Updated all users.
9342 (set_record_insn_max_num): Renamed to ...
9343 (set_record_full_insn_max_num): ... this. Updated all users.
9344 (set_record_command): Renamed to ...
9345 (set_record_full_command): ... this. Updated all users.
9346 (show_record_command): Renamed to ...
9347 (show_record_full_command): ... this. Updated all users.
9348 (_initialize_record): Renamed to ...
9349 (_initialize_record_full): ... this. Updated all users.
9350
9351 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9352
9353 * record.h: Split into this and ...
9354 * record-full.h: ... this.
9355 * record.c: Split into this and ...
9356 * record-full.c: ... this.
9357 * target.h (target_ops): Add new fields to_info_record,
9358 to_save_record, to_delete_record, to_record_is_replaying,
9359 to_goto_record_begin, to_goto_record_end, to_goto_record.
9360 (target_info_record): New.
9361 (target_save_record): New.
9362 (target_supports_delete_record): New.
9363 (target_delete_record): New.
9364 (target_record_is_replaying): New.
9365 (target_goto_record_begin): New.
9366 (target_goto_record_end): New.
9367 (target_goto_record): New.
9368 * target.c (target_info_record): New.
9369 (target_save_record): New.
9370 (target_supports_delete_record): New.
9371 (target_delete_record): New.
9372 (target_record_is_replaying): New.
9373 (target_goto_record_begin): New.
9374 (target_goto_record_end): New.
9375 (target_goto_record): New.
9376 * record.h: Declare struct cmd_list_element.
9377 (record_cmdlist): New declaration.
9378 (set_record_cmdlist): New declaration.
9379 (show_record_cmdlist): New declaration.
9380 (info_record_cmdlist): New declaration.
9381 (cmd_record_goto): New declaration.
9382 * record.c: Remove unnecessary includes.
9383 Include inferior.h.
9384 (cmd_record_goto): Remove declaration.
9385 (record_cmdlist): Now extern. Initialize.
9386 (set_record_cmdlist): Now extern. Initialize.
9387 (show_record_cmdlist): Now extern. Initialize.
9388 (info_record_cmdlist): Now extern. Initialize.
9389 (find_record_target): New.
9390 (require_record_target): New.
9391 (cmd_record_start): Update.
9392 (cmd_record_delete): Remove target-specific code.
9393 Call target_delete_record.
9394 (cmd_record_stop): Unpush any record target.
9395 (set_record_insn_max_num): Move to record-full.c
9396 (set_record_command): Add comment.
9397 (show_record_command): Add comment.
9398 (info_record_command): Update comment.
9399 Remove target-specific code.
9400 Call the record target's to_info_record.
9401 (cmd_record_start): New.
9402 (cmd_record_goto): Now extern.
9403 Remove target-specific code.
9404 Call target_goto_begin, target_goto_end, or target_goto.
9405 (_initialize_record): Move record target ops initialization to
9406 record-full.c.
9407 Change "record" command help text.
9408 Move "record restore", "record set", and "record show" commands to
9409 record-full.c.
9410 * Makefile.in (SFILES): Add record-full.c.
9411 (HFILES_NO_SRCDIR): Add record-full.h.
9412 (COMMON_OBS): Add record-full.o.
9413 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9414 * arm-tdep.c: Include record-full.h.
9415 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9416 * i386-tdep.c: Include record-full.h.
9417 * infrun.c: Include record-full.h.
9418 * linux-record.c: Include record-full.h.
9419 * moxie-tdep.c: Include record-full.h.
9420 * record-full.c: Include record-full.h.
9421 Change module comment.
9422 (set_record_full_cmdlist): New.
9423 (show_record_full_cmdlist): New.
9424 (record_full_cmdlist): New.
9425 (record_goto_insn): New declaration.
9426 (record_save): New declaration.
9427 (record_check_insn_num): Change query string.
9428 (record_info): New.
9429 (record_delete): New.
9430 (record_is_replaying): New.
9431 (record_goto_entry): New.
9432 (record_goto_begin): New.
9433 (record_goto_end): New.
9434 (record_goto): New.
9435 (init_record_ops): Update.
9436 (init_record_core_ops): Update.
9437 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9438 (cmd_record_start): New.
9439 (set_record_insn_max_num): Moved from record.c
9440 (set_record_full_command): New.
9441 (show_record_full_command): New.
9442 (_initialize_record_full): New.
9443
9444 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9445
9446 * target.h (add_deprecated_target_alias): New.
9447 * target.c (add_deprecated_target_alias): New.
9448
9449 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9450
9451 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9452 and signal.h.
9453 (linux_supports_btrace): Add kernel and
9454 cpuid check.
9455 (kernel_supports_btrace): New function.
9456 (cpu_supports_btrace): New function.
9457 (intel_supports_btrace): New function.
9458
9459 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9460
9461 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9462 * remote.c: Include btrace.h.
9463 (struct btrace_target_info): New struct.
9464 (remote_supports_btrace): New function.
9465 (send_Qbtrace): New function.
9466 (remote_enable_btrace): New function.
9467 (remote_disable_btrace): New function.
9468 (remote_teardown_btrace): New function.
9469 (remote_read_btrace): New function.
9470 (init_remote_ops): Add btrace ops.
9471 (enum <unnamed>): Add btrace packets.
9472 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9473 (_initialize_remote): Add packet configuration for branch tracing.
9474
9475 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9476
9477 * features/btrace.dtd: New file.
9478 * Makefile.in (XMLFILES): Add btrace.dtd.
9479 * btrace.h (parse_xml_btrace): New declaration.
9480 * btrace.c: Include xml-support.h.
9481 (parse_xml_btrace): New function.
9482 (parse_xml_btrace_block): New function.
9483 (block_attributes): New struct.
9484 (btrace_attributes): New struct.
9485 (btrace_children): New struct.
9486 (btrace_elements): New struct.
9487
9488 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9489
9490 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9491 (amd64_linux_enable_btrace): New.
9492 (amd64_linux_disable_btrace): New.
9493 (amd64_linux_teardown_btrace): New.
9494 (_initialize_amd64_linux_nat): Initialize btrace ops.
9495 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9496 (i386_linux_enable_btrace): New.
9497 (i386_linux_disable_btrace): New.
9498 (i386_linux_teardown_btrace): New.
9499 (_initialize_i386_linux_nat): Initialize btrace ops.
9500 * config/i386/linux.mh: Add linux-btrace.o.
9501 * config/i386/linux64.mh: Add linux-btrace.o.
9502
9503 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9504
9505 * common/linux_btrace.h: New file.
9506 * common/linux_btrace.c: New file.
9507 * Makefile.in (SFILES): Add btrace.c.
9508 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9509 (COMMON_OBS): Add btrace.o.
9510 (linux-btrace.o): New rule.
9511
9512 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9513
9514 * target.h: Include btrace.h.
9515 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9516 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9517 * target.c (target_supports_btrace): New function.
9518 (target_enable_btrace): New function.
9519 (target_disable_btrace): New function.
9520 (target_teardown_btrace): New function.
9521 (target_read_btrace): New function.
9522 * btrace.h: New file.
9523 * btrace.c: New file.
9524 * Makefile.in: Add btrace.c.
9525 * gdbthread.h: Include btrace.h.
9526 (struct thread_info): Add btrace field.
9527 * thread.c: Include btrace.h.
9528 (clear_thread_inferior_resources): Call target_teardown_btrace.
9529 * common/btrace-common.h: New file.
9530
9531 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9532
9533 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9534 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9535 kill_status to outer block.
9536
9537 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9538
9539 Fix entry-values if the callee called a noreturn function.
9540 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9541 get_frame_address_in_block. Add new comment.
9542
9543 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9544
9545 Fix entry-values in C++ across CUs.
9546 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9547 lookup_minimal_symbol. Add a comment.
9548 * dwarf2read.c
9549 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9550 DW_AT_linkage_name.
9551
9552 2013-03-08 Yao Qi <yao@codesourcery.com>
9553
9554 * tracepoint.c (_initialize_tracepoint): Indent the code.
9555
9556 2013-03-08 Pedro Alves <palves@redhat.com>
9557
9558 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9559 (parse_find_args, find_command): Change type of pattern buffer
9560 locals to 'gdb_byte *'.
9561
9562 2013-03-08 Stan Shebs <stan@codesourcery.com>
9563 Hafiz Abid Qadeer <abidh@codesourcery.com>
9564
9565 * NEWS: Mention set and show trace-buffer-size commands.
9566 Mention new packet.
9567 * target.h (struct target_ops): New method
9568 to_set_trace_buffer_size.
9569 (target_set_trace_buffer_size): New macro.
9570 * target.c (update_current_target): Set up new method.
9571 * tracepoint.c (trace_buffer_size): New global.
9572 (start_tracing): Send it to the target.
9573 (set_trace_buffer_size): New function.
9574 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9575 * remote.c (remote_set_trace_buffer_size): New function.
9576 (_initialize_remote): Use it.
9577 (QTBuffer:size) New remote command.
9578 (PACKET_QTBuffer_size): New enum.
9579 (remote_protocol_features): Add an entry for
9580 PACKET_QTBuffer_size.
9581
9582 2013-03-08 Tom Tromey <tromey@redhat.com>
9583
9584 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9585 variable.
9586
9587 2013-03-07 Pedro Alves <palves@redhat.com>
9588
9589 * target.c (target_read_stralloc, target_fileio_read_alloc):
9590 *Cast pointer to 'gdb_byte *' in target call.
9591
9592 2013-03-07 Pedro Alves <palves@redhat.com>
9593
9594 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9595 call.
9596
9597 2013-03-07 Keith Seitz <keiths@redhat.com>
9598
9599 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9600 (trace_pass_command): Likewise.
9601 * cli/cli-cmds.c: Include cli/cli-utils.h.
9602 (source_command): Use skip-spaces.
9603 (disassemble_command): Likewise.
9604 * findcmd.c: Include cli/cli-utils.h.
9605 (parse_find_args): Use skip_spaces.
9606 * go32-nat.c: Include cli/cli-utils.h.
9607 (go32_sldt): Use skip_spaces.
9608 (go32_sgdt): Likewise.
9609 (go32_sidt): Likewise.
9610 (go32_pde): Likewise.
9611 (go32_pte): Likewise.
9612 (go32_pte_for_address): Likewise.
9613 * infcmd.c: Include cli/cli-utils.h.
9614 (registers_info): Use skip_spaces.
9615 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9616 (linux_info_proc): Likewise.
9617 * linux-thread-db.c: Include cli/cli-utils.h.
9618 (info_auto_load_libthread_db): Use skip_spaces_const.
9619 * m32r-rom.c: Include cli/cli-utils.h.
9620 (m32r_upload_command): Use skip_spaces.
9621 * maint.c: Include cli/cli-utils.h.
9622 (maintenance_translate_address): Use skip_spaces.
9623 * mi/mi-parse.c: Include cli/cli-utils.h.
9624 (mi_parse_argv): Use skip_spaces.
9625 (mi_parse): Likewise.
9626 * minsyms.c: Include cli/cli-utils.h.
9627 (msymbol_hash_iw): Use skip_spaces_const.
9628 * objc-lang.c: Include cli/cli-utils.h.
9629 (parse_selector): Use skip_spaces.
9630 (parse_method): Likewise.
9631 * python/python.c: Include cli/cli-utils.h.
9632 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9633 (python_command)[HAVE_PYTHON]: Likewise.
9634 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9635 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9636 (m32r_load): Use skip_spaces.
9637 * serial.c: Include cli/cli-utils.h.
9638 (serial_open): Use skip_spaces_const.
9639 * stack.c: Include cli/cli-utils.h.
9640 (parse_frame_specification_1): Use skip_spaces_const.
9641 * symfile.c: Include cli/cli-utils.h.
9642 (set_ext_lang_command): Use skip_spaces.
9643 * symtab.c: Include cli/cli-utils.h.
9644 (rbreak_command): Use skip_spaces.
9645 * thread.c (thread_name_command): Use skip_spaces.
9646 * tracepoint.c (validate_actionline): Use skip_spaces.
9647 (encode_actions_1): Likewise.
9648 (trace_find_range_command): Likewise.
9649 (trace_find_outside_command): Likewise.
9650 (trace_dump_actions): Likewise.
9651
9652 2013-03-07 Pedro Alves <palves@redhat.com>
9653
9654 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9655 * expprint.c (print_subexp_standard): Likewise.
9656 * utils.c (host_char_to_target): Likewise.
9657 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9658 * varobj.c (value_get_print_value): Change type of local to char*.
9659 Cast it gdb_byte * in call to language printer.
9660
9661 2013-03-07 Pedro Alves <palves@redhat.com>
9662
9663 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9664 gdb_byte *'.
9665 (make_wchar_iterator): Remove cast to char*.
9666 (wchar_iterate): Change type of local.
9667
9668 2013-03-07 Pedro Alves <palves@redhat.com>
9669
9670 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9671 for 'regcache->register_status'.
9672
9673 2013-03-07 Pedro Alves <palves@redhat.com>
9674
9675 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9676 int.
9677
9678 2013-03-07 Pedro Alves <palves@redhat.com>
9679
9680 * stap-probe.c (handle_stap_probe): Add cast to char*.
9681
9682 2013-03-07 Pedro Alves <palves@redhat.com>
9683
9684 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9685 RECORD_MSGRCV>: Pass a signed variable to
9686 regcache_raw_read_signed, instead of an unsigned one.
9687
9688 2013-03-07 Pedro Alves <palves@redhat.com>
9689
9690 * remote-notif.c (notif_debug): Change type to int.
9691 * remote-notif.h (notif_debug): Likewise.
9692
9693 2013-03-07 Pedro Alves <palves@redhat.com>
9694
9695 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9696
9697 2013-03-07 Pedro Alves <palves@redhat.com>
9698
9699 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9700 * remote.h (hex2bin, bin2hex): ... here.
9701 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9702
9703 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9704
9705 * utils.c (initialize_utils): Improve doc strings of "set/show
9706 width", "set/show height", and "set/show pagination".
9707
9708 2013-03-06 Keith Seitz <keiths@redhat.com>
9709
9710 * ax-gdb.c (gen_printf): Make FORMAT const.
9711 * ax-gdb.h (gen_printf): Likewise.
9712 * ax-general.c (ax_string): Make STR const.
9713 * ax.h (ax_string): Likewise.
9714
9715 2013-03-06 Doug Evans <dje@google.com>
9716
9717 * elfread.c (elf_symfile_read): Move debugging printf to more
9718 logical location.
9719
9720 2013-03-06 Pedro Alves <palves@redhat.com>
9721
9722 * python/py-utils.c (target_string_to_unicode): Delete function.
9723 * python/python-internal.h (target_string_to_unicode): Delete
9724 declaration.
9725
9726 2013-03-06 Pierre Muller <muller@sourceware.org>
9727
9728 * linespec.c (get_current_search_block): ARI fix, use (void)
9729 for empty parameter list.
9730
9731 2013-03-05 Doug Evans <dje@google.com>
9732
9733 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9734 of old ada_lookup_symbol_list. In !full_search case, don't
9735 search superblocks.
9736 (ada_lookup_symbol_list): Delete arg full_search, all callers
9737 updated. Call ada_lookup_symbol_list_worker.
9738 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9739 * ada-lang.h (ada_lookup_symbol_list): Update.
9740 * language.h (language_defn): Update comment for
9741 la_iterate_over_symbols.
9742 * linespec.c (iterate_over_file_blocks): New function.
9743 (iterate_over_all_matching_symtabs): Call it.
9744 (lookup_prefix_sym): Ditto.
9745 (get_current_search_block): New function.
9746 (get_search_block): Delete.
9747 (find_label_symbols): Call get_current_search_block.
9748 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9749 * symtab.c (iterate_over_symbols): Don't search superblocks.
9750
9751 2013-03-05 Yao Qi <yao@codesourcery.com>
9752
9753 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9754 parameter VAR's type from "unsigned int" to "int".
9755 * command.h (var_zuinteger_unlimited): Update its comments.
9756 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9757
9758 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9759
9760 * NEWS: Mention new target x86_64-*-cygwin*.
9761
9762 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9763
9764 * configure.host: Add x86_64-*-cygwin* as host.
9765 * configure.tgt: Add x86_64-*-cygwin* as target.
9766 * config/i386/cygwin64.mh: New file.
9767
9768 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9769
9770 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9771
9772 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9773
9774 * linespec.c (struct linespec_canonical_name): New.
9775 (struct linespec_state): Change canonical_names type to it.
9776 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9777 xrealloc element size. Initialize the different CANONICAL fields.
9778 (canonical_to_fullform): New.
9779 (filter_results): Use it. Add variables canonical, fullform and
9780 cleanup.
9781 (struct decode_line_2_item, decode_line_2_compare_items): New.
9782 (decode_line_2): Remove variables iter and item_names, add variables
9783 items and items_count. Modify the code for these new variables.
9784
9785 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9786
9787 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9788 calling do_cleanup.
9789
9790 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9791
9792 * tracepoint.c (build_traceframe_info): Add code for byte order.
9793
9794 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9795
9796 * v850-tdep.c: (v850e2_register_name): Revise system register
9797 names to match current V850E2M architecture specifications.
9798 Update register number enum comments too.
9799
9800 2013-03-01 Jiong Wang <jiwang@tilera.com>
9801 Pedro Alves <palves@redhat.com>
9802
9803 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9804 to END_ADDR.
9805 (tilegx_skip_prologue): Limit prologue analysis to section end.
9806
9807 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9808
9809 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9810 use it.
9811
9812 2013-03-01 Pedro Alves <palves@redhat.com>
9813
9814 Use gdb_byte for bytes from the program being debugged.
9815
9816 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9817 Change type of local 'buf' to gdb_byte.
9818 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9819 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9820 * cris-tdep.c (cris_sigcontext_addr)
9821 (cris_sigtramp_frame_unwind_cache): Likewise.
9822 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9823 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9824 Likewise.
9825 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9826 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9827 (hppa32_hpux_search_dummy_call_sequence)
9828 (hppa_hpux_supply_save_state): Likewise.
9829 * hppa-linux-tdep.c (insns_match_pattern)
9830 (hppa_linux_find_global_pointer): Likewise.
9831 * hppa-tdep.c (hppa_in_function_epilogue_p)
9832 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9833 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9834 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9835 (i386fbsd_collect_uthread): Likewise.
9836 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9837 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9838 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9839 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9840 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9841 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9842 (ia64_libunwind_frame_prev_register)
9843 (ia64_libunwind_sigtramp_frame_this_id)
9844 (ia64_find_global_pointer_from_dynamic_section)
9845 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9846 (ia64_unwind_pc): Likewise.
9847 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9848 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9849 (m68hc11_extract_return_value): Likewise.
9850 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9851 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9852 (mep_get_insn, mep_push_dummy_call): Likewise.
9853 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9854 (mips_linux_in_dynsym_stub): Likewise.
9855 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9856 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9857 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9858 to gdb_byte.
9859 * remote-mips.c (mips_set_register): Likewise.
9860 * remote-sim.c (gdbsim_fetch_register): Likewise.
9861 * score-tdep.c (score7_fetch_inst): Change type of parameter
9862 'memblock' and local 'buf' to gdb_byte.
9863 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9864 Change type of local 'buf' to gdb_byte. Adjust.
9865 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9866 to gdb_byte**.
9867 (score7_analyze_prologue): Change type of 'memblock' and
9868 'memblock_ptr' locals to gdb_byte*.
9869 * sh64-tdep.c (sh64_extract_return_value)
9870 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9871 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9872 * solib-pa64.c (pa64_solib_create_inferior_hook)
9873 (pa64_open_symbol_file_object): Remove local 'buf'.
9874 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9875 (som_open_symbol_file_object): Likewise.
9876 * solib-spu.c (spu_current_sos): Likewise.
9877 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9878 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9879 (spu_store_registers): Likewise.
9880 * target.c (debug_print_register): Likewise.
9881 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9882 * xstormy16-tdep.c (xstormy16_store_return_value)
9883 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9884 (xstormy16_find_jmp_table_entry): Likewise.
9885
9886 2013-03-01 Jiong Wang <jiwang@tilera.com>
9887
9888 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9889 (tilegx_gdbarch_init): Install it.
9890
9891 2013-02-28 Tom Tromey <tromey@redhat.com>
9892
9893 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9894 PyLong_Check.
9895
9896 2013-02-28 Doug Evans <dje@google.com>
9897
9898 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9899 * python/python.c (gdbpy_find_pc_line): Ditto.
9900
9901 2013-02-28 Tom Tromey <tromey@redhat.com>
9902
9903 * contrib/excheck.py: New file.
9904 * contrib/exsummary.py: New file.
9905 * contrib/gcc-with-excheck: New file.
9906
9907 2013-02-28 Tom Tromey <tromey@redhat.com>
9908
9909 * python/python.c (gdbpy_print_stack): Call begin_line and
9910 fprintf_filtered inside TRY_CATCH.
9911
9912 2013-02-28 Tom Tromey <tromey@redhat.com>
9913
9914 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9915 inside TRY_CATCH.
9916
9917 2013-02-28 Tom Tromey <tromey@redhat.com>
9918
9919 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9920 frame_object_to_frame_info inside TRY_CATCH.
9921
9922 2013-02-28 Tom Tromey <tromey@redhat.com>
9923
9924 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9925 TRY_CATCH.
9926
9927 2013-02-28 Tom Tromey <tromey@redhat.com>
9928
9929 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9930
9931 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9932
9933 * windows-nat.c: Throughout, fix format strings and casts of
9934 printf-like functions to avoid type related warnings on all
9935 platforms.
9936 (handle_output_debug_string): Fetch context information address
9937 from debug string using string_to_core_addr.
9938
9939 2013-02-27 Jiong Wang <jiwang@tilera.com>
9940
9941 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9942 * regformats/reg-tilegx32.dat: New.
9943
9944 2013-02-27 Jiong Wang <jiwang@tilera.com>
9945
9946 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9947
9948 2013-02-27 Jiong Wang <jiwang@tilera.com>
9949
9950 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9951
9952 2013-02-27 Yao Qi <yao@codesourcery.com>
9953 Pedro Alves <palves@redhat.com>
9954
9955 * tracepoint.c (tfile_trace_find): For tfind
9956 pc/tp/range/outside, look for the next trace frame instead of
9957 always starting from frame 0.
9958
9959 2013-02-26 Anthony Green <green@moxielogic.com>
9960
9961 * configure.tgt: Add support for moxie-*-rtems* target.
9962
9963 2013-02-25 Pedro Alves <palves@redhat.com>
9964
9965 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9966 warning text.
9967
9968 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9969
9970 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9971 if $fp is used as the virtual frame pointer.
9972
9973 2013-02-23 Alan Modra <amodra@gmail.com>
9974
9975 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9976 symbol size.
9977 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9978 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9979 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9980 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9981
9982 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9983
9984 Code cleanup.
9985 * elfread.c (build_id_bfd_get): Make the return type const.
9986 (build_id_verify): Make the check parameter const.
9987 (build_id_to_debug_filename): Make the build_id parameter and variable
9988 data const.
9989 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9990
9991 2013-02-21 Alan Modra <amodra@gmail.com>
9992
9993 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9994
9995 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9996
9997 Add a new method 'disassemble' to gdb.Architecture class.
9998 * python/py-arch.c (archpy_disassmble): Implementation of the
9999 new method gdb.Architecture.disassemble.
10000 (arch_object_methods): Add entry for the new method.
10001
10002 2013-02-20 Jiong Wang <jiwang@tilera.com>
10003
10004 * MAINTAINERS (Write After Approval): Add myself to the list.
10005
10006 2013-02-19 Pedro Alves <palves@redhat.com>
10007
10008 Garbage collect 'struct monitor_ops'::load_routine.
10009
10010 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10011 * monitor.c (monitor_load): No longer call
10012 current_monitor->load_routine.
10013 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10014 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10015 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10016
10017 2013-02-19 Pedro Alves <palves@redhat.com>
10018
10019 PR gdb/15161
10020
10021 Harmonize with generic_load.
10022
10023 * monitor.c: Include "readline/readline.h".
10024 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10025 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10026 long/strtol for the 'load_offset' local. Error out if no argument
10027 is given or if too many arguments are given. Tilde expand the
10028 passed in file name.
10029
10030 2013-02-19 Kai Tietz <ktietz@redhat.com>
10031
10032 PR gdb/15161
10033 * symfile.c (load_section_data): Change type of load_offset
10034 to CORE_ADDR.
10035 (generic_load): User strtoulst instead of strtoul for conversion
10036 of load_offset.
10037
10038 2013-02-19 Jiong Wang <jiwang@tilera.com>
10039
10040 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10041 for return address, "lr" register, saved on stack.
10042 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10043 after we invoke tilegx_analyze_prologue.
10044
10045 2013-02-19 Jiong Wang <jiwang@tilera.com>
10046
10047 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10048
10049 2013-02-19 Jiong Wang <jiwang@tilera.com>
10050
10051 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10052
10053 2013-02-19 Jiong Wang <jiwang@tilera.com>
10054
10055 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10056 (tilegx_write_pc): New function.
10057 (tilegx_cannot_reference_register): Return zero if REGNO
10058 is TILEGX_FAULTNUM_REGNUM.
10059 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10060 (tilegx_register_name): Add handling of "faultnum" register.
10061 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10062 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10063 handling of TILEGX_FAULTNUM_REGNUM.
10064 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10065
10066 2013-02-19 Jiong Wang <jiwang@tilera.com>
10067
10068 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10069 should be aligned to 64bit.
10070
10071 2013-02-19 Kai Tietz <ktietz@redhat.com>
10072
10073 * windows-nat.c (windows_xfer_memory): Fix debug-output
10074 for LLP64.
10075
10076 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10077
10078 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10079 Don't check DSP register number if HAVE_DSP is not set.
10080
10081 2013-02-19 Alan Modra <amodra@gmail.com>
10082
10083 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10084 throughout file instead.
10085 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10086 Don't xmalloc return value.
10087 (build_id_verify): Similarly. Don't xfree.
10088 (build_id_to_debug_filename): Update.
10089 (find_separate_debug_file_by_buildid): Update, don't xfree.
10090
10091 2013-02-18 Tom Tromey <tromey@redhat.com>
10092
10093 PR gdb/15102:
10094 * dwarf2read.c (read_subrange_type): Use result of
10095 'check_typedef'.
10096
10097 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10098
10099 * frame.c: Remove one extra white space after #include
10100 directive.
10101
10102 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10103
10104 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10105
10106 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10107
10108 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10109 and dir commands into an if block.
10110
10111 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10112
10113 * python/py-breakpoint (struct pybp_code): Use int instead of
10114 enum type_code.
10115
10116 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10117 Hafiz Abid Qadeer <abidh@codesourcery.com>
10118
10119 * NEWS: Mention new field "trace-file".
10120 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10121 (tfile_open): Record the trace file's filename in the trace
10122 status.
10123 (tfile_files_info): Mention the name of the trace file.
10124 Check the "filename" field explicitely.
10125 (trace_status_command): Explicitely check "filename" field.
10126 (trace_find_command): Ditto.
10127 (trace_find_pc_command): Ditto.
10128 (trace_find_tracepoint_command): Ditto.
10129 (trace_find_line_command): Ditto.
10130 (trace_find_range_command): Ditto.
10131 (trace_find_outside_command): Ditto.
10132 * tracepoint.h (struct trace_status) <from_file>: Rename it
10133 to "filename" and make it hold the trace file's filename
10134 instead of a boolean.
10135 * remote.c (remote_get_trace_status): Initialize "filename"
10136 field with NULL instead of 0.
10137
10138 2013-02-15 Yao Qi <yao@codesourcery.com>
10139
10140 * remote.c: Fix a typo.
10141
10142 2013-02-14 Pierre Muller <muller@sourceware.org>
10143
10144 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10145
10146 2013-02-14 Pedro Alves <palves@redhat.com>
10147
10148 * utils.c (savestring): Don't #undef it. Move function to
10149 common/common-utils.c.
10150 * common/common-utils.c: Include gdb_string.h.
10151 (savestring): Move here from utils.c.
10152 * common/common-utils.h (savestring): Declare.
10153
10154 2013-02-14 Pedro Alves <palves@redhat.com>
10155
10156 * utils.c (savestring): Rename parameter 'size' to 'len'.
10157
10158 2013-02-14 Pedro Alves <palves@redhat.com>
10159 Yufeng Zhang <yufeng.zhang@arm.com>
10160
10161 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10162 (aarch64_inferior_data, struct aarch64_inferior_data):
10163 Delete.
10164 (struct aarch64_process_info): New.
10165 (aarch64_process_list): New global.
10166 (aarch64_find_process_pid, aarch64_add_process)
10167 (aarch64_process_info_get): New functions.
10168 (aarch64_inferior_data_get): Delete.
10169 (aarch64_process_info_get): New function.
10170 (aarch64_forget_process): New function.
10171 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10172 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10173 aarch64_get_debug_reg_state.
10174 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10175 instead of linux_nat_iterate_watchpoint_lwps.
10176 (aarch64_linux_new_fork): New function.
10177 (aarch64_linux_child_post_startup_inferior): Use
10178 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10179 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10180 (aarch64_linux_remove_hw_breakpoint)
10181 (aarch64_handle_aligned_watchpoint)
10182 (aarch64_handle_unaligned_watchpoint)
10183 (aarch64_linux_insert_watchpoint)
10184 (aarch64_linux_remove_watchpoint)
10185 (aarch64_linux_stopped_data_address): Adjust to pass the current
10186 process id to aarch64_debug_reg_state.
10187 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10188 linux_nat_new_fork hook, and aarch64_forget_process as
10189 linux_nat_forget_process hook; remove the call to
10190 register_inferior_data_with_cleanup.
10191
10192 2013-02-14 Pedro Alves <palves@redhat.com>
10193
10194 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10195 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10196 lval_memory.
10197
10198 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10199 Hafiz Abid Qadeer <abidh@codesourcery.com>
10200
10201 * tracepoint.h (validate_trace_state_variable_name): Declare.
10202 * tracepoint.c (validate_trace_state_variable_name): New.
10203 (trace_variable_command): Parse the trace state variable's name
10204 without using parse_expression. Do several validations.
10205 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10206 trace state variable's name with parse_expression. Validate it.
10207
10208 2013-02-14 Yao Qi <yao@codesourcery.com>
10209
10210 * infcmd.c (breakpoint_proceeded): Remove it.
10211
10212 2013-02-14 Yao Qi <yao@codesourcery.com>
10213
10214 * tracepoint.c (end_actions_pseudocommand): Make it static.
10215 (while_stepping_pseudocommand): Likewise.
10216 * tracepoint.h (end_actions_pseudocommand): Remove the
10217 declaration.
10218 (while_stepping_pseudocommand): Likewise.
10219
10220 2013-02-14 Yao Qi <yao@codesourcery.com>
10221
10222 * cli/cli-decode.c (help_cmd): Remove the declaration of
10223 "cmdlist".
10224 (help_all): Likewise.
10225
10226 2013-02-13 Pedro Alves <palves@redhat.com>
10227
10228 * amd64-linux-nat.c (update_debug_registers_callback):
10229 Update comment.
10230 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10231 iterate_over_lwps.
10232 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10233 i386_debug_reg_state.
10234 (amd64_linux_new_fork): New function.
10235 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10236 linux_nat_new_fork hook, and i386_forget_process as
10237 linux_nat_forget_process hook.
10238 * i386-linux-nat.c (update_debug_registers_callback):
10239 Update comment.
10240 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10241 iterate_over_lwps.
10242 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10243 i386_debug_reg_state.
10244 (i386_linux_new_fork): New function.
10245 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10246 linux_nat_new_fork hook, and i386_forget_process as
10247 linux_nat_forget_process hook.
10248 * i386-nat.c (i386_init_dregs): Delete.
10249 (i386_inferior_data, struct i386_inferior_data):
10250 Delete.
10251 (struct i386_process_info): New.
10252 (i386_process_list): New global.
10253 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10254 New functions.
10255 (i386_inferior_data_get): Delete.
10256 (i386_process_info_get): New function.
10257 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10258 (i386_forget_process): New function.
10259 (i386_cleanup_dregs): Rewrite.
10260 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10261 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10262 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10263 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10264 to i386_debug_reg_state.
10265 (i386_use_watchpoints): Don't register inferior data.
10266 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10267 adjust comment.
10268 (i386_forget_process): Declare.
10269 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10270 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10271 New static globals.
10272 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10273 (add_initial_lwp): New, factored out from ...
10274 (add_lwp): ... this. Don't check the number of lwps before
10275 calling linux_nat_new_thread.
10276 (linux_nat_iterate_watchpoint_lwps): Delete.
10277 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10278 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10279 forks and vforks.
10280 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10281 initial lwp.
10282 (linux_nat_kill, linux_nat_mourn_inferior): Call
10283 linux_nat_forget_process.
10284 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10285 (linux_nat_forget_process): New functions.
10286 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10287 type.
10288 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10289 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10290 types.
10291 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10292 (linux_nat_forget_process): New declarations.
10293
10294 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10295 (amd64fbsd_mourn_inferior): New function.
10296 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10297 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10298
10299 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10300
10301 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10302 Adding _().
10303
10304 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10305
10306 * aarch64-linux-nat.c (debug_reg_change_callback)
10307 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10308 %s and phex().
10309
10310 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10311
10312 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10313 with LONGEST.
10314
10315 2013-02-13 Pedro Alves <palves@redhat.com>
10316 Hafiz Abid Qadeer <abidh@codesourcery.com>
10317
10318 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10319
10320 2013-02-12 Tom Tromey <tromey@redhat.com>
10321
10322 PR symtab/11464:
10323 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10324 NAME return.
10325 (classify_inner_name): Remove 'first_name' argument, add
10326 'context'. Remove unused variable.
10327 (yylex): Explicitly maintain the context type. Exit loop earlier
10328 if NAME result is seen.
10329
10330 2013-02-12 Pedro Alves <palves@redhat.com>
10331
10332 * amd64-darwin-tdep.c: Add (C) after Copyright.
10333 * cli/cli-cmds.h: Ditto.
10334 * cli/cli-decode.c: Ditto.
10335 * cli/cli-decode.h: Ditto.
10336 * cli/cli-dump.c: Ditto.
10337 * cli/cli-dump.h: Ditto.
10338 * cli/cli-interp.c: Ditto.
10339 * cli/cli-logging.c: Ditto.
10340 * cli/cli-script.c: Ditto.
10341 * cli/cli-script.h: Ditto.
10342 * cli/cli-setshow.c: Ditto.
10343 * cli/cli-setshow.h: Ditto.
10344 * cli/cli-utils.c: Ditto.
10345 * cli/cli-utils.h: Ditto.
10346 * config/alpha/nm-osf3.h: Ditto.
10347 * config/djgpp/djconfig.sh: Ditto.
10348 * config/i386/nm-fbsd.h: Ditto.
10349 * config/i386/nm-i386gnu.h: Ditto.
10350 * config/nm-linux.h: Ditto.
10351 * config/nm-nto.h: Ditto.
10352 * config/rs6000/nm-rs6000.h: Ditto.
10353 * config/sparc/nm-sol2.h: Ditto.
10354 * darwin-nat-info.c: Ditto.
10355 * dfp.c: Ditto.
10356 * dfp.h: Ditto.
10357 * gdb-demangle.h: Ditto.
10358 * i386-darwin-nat.c: Ditto.
10359 * i386-darwin-tdep.c: Ditto.
10360 * linux-fork.h: Ditto.
10361 * m32c-tdep.c: Ditto.
10362 * microblaze-linux-tdep.c: Ditto.
10363 * microblaze-rom.c: Ditto.
10364 * microblaze-tdep.c: Ditto.
10365 * microblaze-tdep.h: Ditto.
10366 * mips-linux-tdep.h: Ditto.
10367 * ppc-ravenscar-thread.c: Ditto.
10368 * ppc-ravenscar-thread.h: Ditto.
10369 * prologue-value.c: Ditto.
10370 * prologue-value.h: Ditto.
10371 * ravenscar-thread.c: Ditto.
10372 * ravenscar-thread.h: Ditto.
10373 * sparc-ravenscar-thread.c: Ditto.
10374 * sparc-ravenscar-thread.h: Ditto.
10375 * tilegx-linux-tdep.c: Ditto.
10376 * unwind_stop_reasons.def: Ditto.
10377 * windows-nat.h: Ditto.
10378 * xtensa-linux-tdep.c: Ditto.
10379 * xtensa-xtregs.c: Ditto.
10380 * regformats/regdat.sh: Ditto.
10381 * regformats/regdef.h: Ditto.
10382
10383 2013-02-12 Pedro Alves <palves@redhat.com>
10384
10385 * break-catch-sig.c: Update copyright years.
10386
10387 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10388
10389 Add support for a destructor for ui_out data and use it to
10390 provide a ui_out destructor.
10391 * ui-out.h: Declare the new ui_out destructor.
10392 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10393 * ui-out.c (default_data_destroy): Add a default data destructor
10394 which does nothing.
10395 (default_ui_out_impl): Set the new data_destroy field to
10396 default_data_destroy
10397 (uo_data_destroy): Local function which invokes the data
10398 destructor if present.
10399 (clear_table): Local function which clears the table data of a
10400 ui_out object.
10401 (ui_out_destroy): Public function which frees a ui_out object.
10402 (ui_out_table_end): Use the new clear_table function.
10403 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10404 NULL.
10405 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10406 to NULL.
10407
10408 2013-02-11 Doug Evans <dje@google.com>
10409
10410 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10411 (printf_decfloat): New function. Broken out from ui_printf.
10412 Remove unnecessary code to shift the entire format string down.
10413 (printf_pointer): New function.
10414 (ui_printf): Code to print C strings, wide C strings, decfloats,
10415 and pointers moved to separate functions.
10416
10417 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10418
10419 * valops.c (value_assign): Handling bitfield offset in
10420 `lval_internalvar_component' case.
10421
10422 2013-02-08 Doug Evans <dje@google.com>
10423
10424 * common/format.c (parse_format_string): Fix whitespace.
10425
10426 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10427
10428 * stack.c (return_command): Work around uninitialized variable
10429 warning.
10430
10431 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10432
10433 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10434 number of the registers from 36 to 34.
10435
10436 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10437
10438 * NEWS: Mention new AArch64 native and target support.
10439
10440 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10441
10442 * MAINTAINERS (Write After Approval): Add myself.
10443
10444 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10445 Marcus Shawcroft <marcus.shawcroft@arm.com>
10446 Nigel Stephens <nigel.stephens@arm.com>
10447 Yufeng Zhang <yufeng.zhang@arm.com>
10448
10449 * aarch64-linux-nat.c: New file.
10450 * config/aarch64/linux.mh: New file.
10451 * configure.host: Add AArch64.
10452 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10453
10454 2013-02-07 Doug Evans <dje@google.com>
10455
10456 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10457 disassemble command.
10458
10459 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10460
10461 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10462 set_gdbarch_fetch_tls_load_module_address.
10463
10464 2013-02-06 David S. Miller <davem@davemloft.net>
10465
10466 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10467 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10468 * value.c (struct_return_convention): New function.
10469 (using_struct_return): Implement in terms of struct_return_convention.
10470 * value.h (struct_return_convention): Declare.
10471 * stack.c (return_command): Allow successful overriding of the return
10472 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10473
10474 2013-02-06 Tom Tromey <tromey@redhat.com>
10475
10476 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10477 outside of TRY_CATCH.
10478
10479 2013-02-06 Yao Qi <yao@codesourcery.com>
10480
10481 * mi/mi-interp.c: Include "tracepoint.h".
10482 (mi_tsv_modified): Declare.
10483 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10484 (mi_interpreter_init): Call observer_attach_tsv_modified.
10485 (mi_tsv_modified): New.
10486 (mi_tsv_created, mi_tsv_deleted): Update.
10487 * tracepoint.c (trace_variable_command): Call
10488 observer_notify_tsv_modified if the initial value of tsv is
10489 changed.
10490 (delete_trace_state_variable): Call
10491 observer_notify_tsv_deleted earlier.
10492 (trace_variable_command): Caller update.
10493 (create_tsv_from_upload): Likewise.
10494 * observer.sh: Declare "struct trace_state_variable".
10495
10496 * NEWS: Mention the new MI notification "=tsv-modified".
10497
10498 2013-02-05 Doug Evans <dje@google.com>
10499
10500 * completer.c (location_completer): Fix typo in comment.
10501
10502 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10503
10504 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10505 ADDRESS sorted.
10506
10507 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10508
10509 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10510 Refactor if statement to avoid trailing || operator.
10511
10512 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10513
10514 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10515
10516 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10517
10518 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10519 * configure.host: Add powerpc*-*-freebsd* target.
10520 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10521 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10522 * config/powerpc/fbsd.mh: New file.
10523
10524 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10525 Denys Vlasenko <dvlasenk@redhat.com>
10526 Pedro Alves <palves@redhat.com>
10527
10528 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10529 (struct elf_internal_linux_prpsinfo): Forward declare.
10530 * gdbarch.h, gdbarch.c: Regenerate.
10531 * linux-tdep.c: Include `cli/cli-utils.h'.
10532 (linux_fill_prpsinfo): New function.
10533 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10534 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10535 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10536 depending on gdbarch pointer bitness.
10537 * ppc-linux-tdep.c: Include elf-bfd.h.
10538 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10539 on 32-bit.
10540
10541 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10542 Marcus Shawcroft <marcus.shawcroft@arm.com>
10543 Nigel Stephens <nigel.stephens@arm.com>
10544 Yufeng Zhang <yufeng.zhang@arm.com>
10545
10546 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10547
10548 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10549 Marcus Shawcroft <marcus.shawcroft@arm.com>
10550 Nigel Stephens <nigel.stephens@arm.com>
10551 Yufeng Zhang <yufeng.zhang@arm.com>
10552
10553 * aarch64-newlib-tdep.c: New file.
10554 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10555 aarch64*-*-elf.
10556 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10557 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10558 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10559 * osabi.c (gdb_osabi_names): Add "Newlib".
10560
10561 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10562 Marcus Shawcroft <marcus.shawcroft@arm.com>
10563 Nigel Stephens <nigel.stephens@arm.com>
10564 Yufeng Zhang <yufeng.zhang@arm.com>
10565
10566 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10567 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10568 * aarch64-linux-tdep.c: New file.
10569 * aarch64-linux-tdep.h: New file.
10570 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10571 * configure.tgt: Add aarch64-none-linux-gnu.
10572
10573 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10574 Marcus Shawcroft <marcus.shawcroft@arm.com>
10575 Nigel Stephens <nigel.stephens@arm.com>
10576 Yufeng Zhang <yufeng.zhang@arm.com>
10577
10578 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10579 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10580 (ALLDEPFILES): Add aarch64-tdep.c.
10581 * aarch64-tdep.c: New file.
10582 * aarch64-tdep.h: New file.
10583 * configure.tgt: Add AArch64.
10584 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10585 (aarch64-expedite): New definition.
10586 * features/aarch64-core.xml: New file.
10587 * features/aarch64-fpu.xml: New file.
10588 * features/aarch64-without-fpu.c: New file (generated).
10589 * features/aarch64-without-fpu.xml: New file.
10590 * features/aarch64.c: New file (generated).
10591 * features/aarch64.xml: New file.
10592 * regformats/aarch64-without-fpu.dat: New file (generated).
10593 * regformats/aarch64.dat: New file (generated).
10594
10595 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10596
10597 * contrib/expect-read1.c: New file.
10598 * contrib/expect-read1.sh: New file.
10599
10600 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10601
10602 * dwarf2read.c (file_file_name): New function with code from
10603 file_full_name.
10604 (file_full_name): Move most of the code to file_file_name.
10605 (macro_start_file): Rename variable full_name to file_name and use
10606 file_file_name for it. Add comp_dir parameter to new_macro_table.
10607 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10608 macro_source_file->filename access by macro_source_fullname call.
10609 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10610 caller.
10611 * macrotab.c (struct macro_table): New field comp_dir.
10612 (macro_include): New variables link_fullname and source_fullname.
10613 Replace any macro_source_file->filename access by macro_source_fullname
10614 call.
10615 (macro_lookup_inclusion): Remove the partial filenames checking code.
10616 (check_for_redefinition): New variables source_fullname and
10617 found_key_fullname. Replace any macro_source_file->filename access by
10618 macro_source_fullname call.
10619 (macro_undef): New variables source_fullname and key_fullname. Replace
10620 any macro_source_file->filename access by macro_source_fullname call.
10621 (macro_lookup_definition): New variables retval and source_fullname.
10622 Replace any macro_source_file->filename access by macro_source_fullname
10623 call.
10624 (foreach_macro): New variable key_fullname. Replace any
10625 macro_source_file->filename access by macro_source_fullname call.
10626 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10627 macro_source_file->filename access by macro_source_fullname call.
10628 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10629 (macro_source_fullname): New function.
10630 * macrotab.h (struct macro_source_file): Extent the filename field
10631 comment.
10632 (new_macro_table): New parameter comp_dir, add a comment for it.
10633 (macro_source_fullname): new declaration.
10634
10635 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10636
10637 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10638 this_real_name to outer block. Use it also for
10639 compare_filenames_for_search.
10640 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10641 with dw2_get_real_path for file_matcher, considering also
10642 BASENAMES_MAY_DIFFER.
10643 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10644
10645 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10646
10647 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10648 to the file_matcher parameter. Pass 0 to it.
10649 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10650 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10651 NULL psymtab_to_fullname result.
10652 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10653 an expected filename instead.
10654 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10655 file_matcher parameter. Call also psymtab_to_fullname, after newly
10656 considering BASENAMES_MAY_DIFFER.
10657 * source.c (rewrite_source_path): Remove static.
10658 * source.h (rewrite_source_path): New declaration.
10659 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10660 the expand_symtabs_matching field. Comment it.
10661 * symtab.c (file_matches): New function comment. Add parameter
10662 basenames, implement it.
10663 (search_symbols_file_matches): Add basenames parameter. Update the
10664 file_matches caller.
10665 (search_symbols): Match FILES also against symtab_to_fullname.
10666 Optimize it for BASENAMES_MAY_DIFFER.
10667
10668 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10669
10670 * source.c (print_source_lines_base): Print for TUI also "fullname".
10671 * tui/tui-data.c (init_content_element): Change tui_locator_element
10672 field to full_name.
10673 * tui/tui-data.h (struct tui_locator_element): Likewise.
10674 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10675 tui_update_locator_filename calls to tui_update_locator_fullname.
10676 Replace symtab->filename refererence by symtab_to_fullname call.
10677 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10678 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10679 field to full_name. Replace symtab->filename refererence by
10680 symtab_to_fullname call.
10681 (tui_show_symtab_source): Rename parameter to fullname. Change
10682 tui_locator_element field to full_name.
10683 * tui/tui-stack.c: Include source.h.
10684 (tui_set_locator_filename): Rename the declaration to ...
10685 (tui_set_locator_fullname): ... here. Rename its parameter to
10686 fullname, updates its comment.
10687 (tui_set_locator_info): Rename its parameter to fullname.
10688 (tui_set_locator_filename): Rename the definition to ...
10689 (tui_set_locator_fullname): ... here. Rename its parameter to
10690 fullname, updates its comment. Change tui_locator_element field to
10691 full_name.
10692 (tui_set_locator_info): Rename its parameter to fullname.
10693 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10694 (tui_update_locator_filename): Rename to ...
10695 (tui_update_locator_fullname): ... here. Rename callee to
10696 tui_set_locator_fullname.
10697 (tui_show_frame_info): Replace symtab->filename refererence by
10698 symtab_to_fullname call.
10699 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10700 (tui_update_locator_fullname): ... here.
10701 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10702 tui_update_locator_fullname. Replace symtab->filename refererence by
10703 symtab_to_fullname call.
10704 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10705 Rename the callee to tui_update_locator_fullname.
10706 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10707
10708 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10709
10710 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10711 by symtab_to_filename_for_display calls.
10712 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10713 (clear_command): New variable sal_fullname, initialize it. Replace
10714 compare_filenames_for_search by filename_cmp with sal_fullname.
10715 (say_where, update_static_tracepoint): Replace symtab->filename
10716 refererences by symtab_to_filename_for_display calls.
10717 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10718 Likewise.
10719 * dwarf2read.c: Include source.h.
10720 (fixup_go_packaging): Replace symtab->filename refererences by
10721 symtab_to_filename_for_display calls.
10722 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10723 Replace symtab->filename refererences by symtab_to_filename_for_display
10724 calls.
10725 (create_sals_line_offset, convert_linespec_to_sals): New variable
10726 fullname, initialize it, replace symtab->filename reference by the
10727 variable.
10728 * linux-fork.c: Include source.h.
10729 (info_checkpoints_command): Replace symtab->filename refererences by
10730 symtab_to_filename_for_display calls.
10731 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10732 by symtab_to_filename_for_display calls.
10733 * mdebugread.c: Include source.h.
10734 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10735 symtab_to_filename_for_display calls.
10736 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10737 (mi_cmd_file_list_exec_source_files): Likewise.
10738 * printcmd.c: Include source.h.
10739 (build_address_symbolic): Replace symtab->filename refererences by
10740 symtab_to_filename_for_display calls.
10741 * psymtab.c (partial_map_symtabs_matching_filename)
10742 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10743 with psymtab_to_fullname.
10744 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10745 by symtab_to_filename_for_display calls.
10746 (stpy_get_filename): New variable filename, initialize it, use instead
10747 of symtab->filename refererences.
10748 (salpy_str): Make variable filename const char *. Replace
10749 symtab->filename refererences by symtab_to_filename_for_display calls.
10750 * skip.c: Include source.h and filenames.h.
10751 (skip_file_command): Remove const from the symtab variable. Replace
10752 symtab->filename refererences by symtab_to_fullname call.
10753 (function_name_is_marked_for_skip): New variables searched_for_fullname
10754 and fullname. Use them to search also with symtab's fullname.
10755 * source.c (find_source_lines): Replace symtab->filename refererences
10756 by symtab_to_filename_for_display calls.
10757 (print_source_lines_base): New variable filename, use it instead of
10758 symtab->filename. Replace symtab->filename refererences by
10759 symtab_to_filename_for_display calls.
10760 (line_info, forward_search_command): Replace symtab->filename
10761 refererences by symtab_to_filename_for_display calls.
10762 (reverse_search_command): Replace symtab->filename refererences by
10763 symtab_to_filename_for_display calls. New variable filename for it.
10764 * stack.c (frame_info): Likewise.
10765 * symmisc.c: Include source.h.
10766 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10767 (maintenance_info_symtabs): Replace symtab->filename refererences by
10768 symtab_to_filename_for_display calls.
10769 * symtab.c (iterate_over_some_symtabs): Call
10770 compare_filenames_for_search also with symtab_to_fullname.
10771 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10772 symtab->filename refererences by symtab_to_filename_for_display calls.
10773 (find_line_symtab): Replace symtab->filename refererences by
10774 symtab_to_filename_for_display calls.
10775 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10776 (print_symbol_info): Make the last parameter const char *. New
10777 variable s_filename. Use it in the function.
10778 (symtab_symbol_info): Make the last_filename variable const char *.
10779 Replace symtab->filename refererences by symtab_to_filename_for_display
10780 calls.
10781 (rbreak_command): New variable fullname. Use it. Replace
10782 symtab->filename refererence by symtab_to_filename_for_display call.
10783 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10784 (print_one_static_tracepoint_marker): Replace symtab->filename
10785 refererences by symtab_to_filename_for_display calls.
10786 * tui/tui-source.c (tui_set_source_content): New variables filename and
10787 s_filename. Replace symtab->filename refererences by this variable.
10788 Replace other symtab->filename refererences by
10789 symtab_to_filename_for_display calls.
10790
10791 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10792 Jan Kratochvil <jan.kratochvil@redhat.com>
10793
10794 Add a new variable that controls a way in which filenames are
10795 displayed.
10796 * NEWS (set filename-display): New entry.
10797 * source.c (filename_display_basename, filename_display_relative)
10798 (filename_display_absolute, filename_display_kind_names)
10799 (filename_display_string, show_filename_display_string)
10800 (symtab_to_filename_for_display): New.
10801 (_initialize_source): Added initialization of 'filename-display'
10802 variable.
10803 * source.h (symtab_to_filename_for_display): Added declaration.
10804 * stack.c (print_frame): Added new variable and calling of a new
10805 function and condition with this variable. Changed third argument of
10806 calling of a function.
10807
10808 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10809
10810 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10811 Rename field reference filename to fullname.
10812 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10813 fullname. New comment for it.
10814 * tui/tui-source.c (tui_set_source_content): Rename field reference
10815 filename to fullname. Initialize field by symtab_to_fullname now.
10816 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10817 reference filename to fullname. Use symtab_to_fullname during
10818 comparison.
10819
10820 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10821
10822 Code cleanup.
10823 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10824 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10825 filename to fullname. Rename variable this_name to this_fullname.
10826 Lowercase FILENAME_CMP call.
10827 (dw2_find_symbol_file): New comment for the returned string.
10828 (dwarf2_gdb_index_functions): Rename the function to
10829 dw2_expand_symtabs_with_fullname.
10830 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10831 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10832 fullname.
10833 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10834 * symfile.h (struct quick_symbol_functions): Rename field
10835 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10836 parameter filename to fullname. Document returned string meaning for
10837 find_symbol_file.
10838 * symtab.c (find_line_symtab): Rename the called function to
10839 expand_symtabs_with_fullname.
10840
10841 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10842
10843 Code cleanup.
10844 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10845 call of filename_cmp with compare_filenames_for_search.
10846 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10847 is_abs, unify the call of FILENAME_CMP with
10848 compare_filenames_for_search. New gdb_asserts for real_path and name.
10849 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10850 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10851 * symfile.h (struct quick_symbol_functions): Extend the comment for
10852 map_symtabs_matching_filename.
10853 * symtab.c (compare_filenames_for_search): Remove the function comment
10854 relative path requirement. Handle absolute filenames, with a comment.
10855 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10856 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10857 real_path and name. Unify the call of compare_filenames_for_search
10858 with FILENAME_CMP.
10859 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10860
10861 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10862
10863 Code cleanup.
10864 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10865 source_file references by symtab field references. Remove variables
10866 sal and fullname.
10867 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10868 (clear_command, say_where): Replace bp_location field source_file
10869 references by symtab field references.
10870 (bp_location_dtor): Remove the source_file reference.
10871 (update_static_tracepoint): Replace bp_location field source_file
10872 references by symtab field references.
10873 (breakpoint_free_objfile): New function.
10874 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10875 Replace the field source_file by field symtab, extend its comment.
10876 (breakpoint_free_objfile): New declaration.
10877 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10878 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10879 field source_file references by symtab field references.
10880
10881 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10882
10883 Replace xfullpath calls by gdb_realpath calls.
10884 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10885 function comment.
10886 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10887 Remove it from the iterate_over_some_symtabs call.
10888 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10889 Remove it from the dw2_map_expand_apply calls, remove a block handling
10890 it.
10891 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10892 Remove it from the iterate_over_some_symtabs call.
10893 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10894 Remove it from the partial_map_expand_apply calls, remove a block
10895 handling it. Drop gdb_realpath call and cleanups from the real_path
10896 handling.
10897 * source.c (openp): Drop the comment part about xfullpath. Replace
10898 xfullpath calls by gdb_realpath calls.
10899 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10900 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10901 from method map_symtabs_matching_filename and its comment.
10902 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10903 gdb_realpath call.
10904 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10905 remove it also from the function comment, remove a block handling it.
10906 Drop gdb_realpath call and cleanups from the real_path handling.
10907 (iterate_over_symtabs): Drop variable full_path and its use.
10908 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10909 * utils.c (xfullpath): Remove.
10910 * utils.h (xfullpath): Remove.
10911
10912 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10913
10914 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10915 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10916 (ALLDEPFILES): Add ppc64-tdep.c.
10917 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10918 ppc64-tdep.o to gdb_target_obs.
10919 * ppc64-tdep.h: New file.
10920 * ppc64-tdep.c: New file.
10921 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10922 ppc-linux-tdep.c to here.
10923 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10924 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10925 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10926 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10927 from ppc-linux-tdep.c to here.
10928 (ppc64_convert_from_func_ptr_addr): Rename from
10929 ppc64_linux_convert_from_func_ptr_addr to
10930 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10931 here.
10932 * rs6000-tdep.c:
10933 (read_insn): Move from ppc-linux-tdep.c to here.
10934 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10935 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10936 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10937 Removed above functions.
10938 (ppc_linux_init_abi): Adjust.
10939
10940 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10941
10942 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10943
10944 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10945
10946 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10947
10948 2013-02-01 Pedro Alves <palves@redhat.com>
10949
10950 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10951 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10952
10953 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10954
10955 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10956 files with no separate debug info.
10957 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10958 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10959 only for files with no separate debug info.
10960
10961 2013-01-31 Tom Tromey <tromey@redhat.com>
10962
10963 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10964 change type.
10965 (struct jit_program_space_data): Rename from jit_inferior_data.
10966 Update comments.
10967 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10968 Change return type. Attach data to program space.
10969 (jit_program_space_data_cleanup): Rename from
10970 jit_inferior_data_cleanup; change argument type.
10971 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10972 change type.
10973 (jit_register_code): Update.
10974 (jit_update_inferior_cache): Remove.
10975 (jit_breakpoint_deleted): Get jit data from the location's program
10976 space.
10977 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10978 'ps_data', change type.
10979 (jit_inferior_init, jit_breakpoint_re_set_internal)
10980 (jit_event_handler): Update.
10981 (free_objfile_data): Get data from objfile's program space.
10982 (_initialize_jit): Update.
10983
10984 2013-01-31 Tom Tromey <tromey@redhat.com>
10985
10986 PR gdb/13987:
10987 * jit.c (struct jit_inferior_data) <cached_code_address,
10988 jit_breakpoint>: New fields.
10989 (jit_breakpoint_re_set_internal): Fix logging. Only create
10990 breakpoint if cached address has changed.
10991 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10992 functions.
10993 (_initialize_jit): Register breakpoint deleted observer.
10994
10995 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10996
10997 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10998 (save_infcall_suspend_state): Ifdef out unused inf.
10999 (restore_infcall_suspend_state): Ifdef out unused inf.
11000 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11001 (jit_frame_sniffer): Remove unused inf_data.
11002
11003 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11004
11005 * c-exp.y (classify_inner_name): Remove unused type.
11006 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11007 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11008 need_escape.
11009 (c_get_string): Remove unused kind.
11010 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11011
11012 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11013
11014 * charset.c (intermediate_encoding): Remove unused i.
11015 * completer.c (signal_completer): Remove unused i.
11016 * continuations.c (discard_my_continuations_1): Remove unused
11017 continuation_ptr.
11018 * corelow.c (core_close): Remove unuseD name.
11019 (get_core_siginfo): Remove unused pid.
11020 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11021 i, cps.
11022 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11023 (loclist_describe_location): Remove unused first.
11024 * event-top.c (command_line_handler): Remove unused got_eof.
11025 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11026 (resize_section_table): Remove unused old_value.
11027 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11028 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11029 * i386-tdep.c (i386_process_record): Remove unused rex.
11030 * infcmd.c (get_return_value): Remove unused uiout.
11031 * jv-lang.c (type_from_class): Remove unused is_array.
11032 * jv-valprint.c (java_val_print): Remove unused i.
11033 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11034 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11035 * m2-typeprint.c (m2_print_type): Remove unused code.
11036 * macroexp.c (get_character_constant): Remove unused body_start.
11037 (macro_stringify): Remove unused result.
11038 * objc-lang.c (find_methods): Remove unused gdbarch.
11039 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11040 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11041 * stack.c (print_frame_args): Remove unused summary.
11042 * thread.c (thread_apply_command): Remove unused p.
11043 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11044 * valops.c (search_struct_method): Remove unused skip.
11045 * valprint.c (generic_val_print): Remove unused byte_order.
11046 * varobj.c (varobj_update): Remove unused changed.
11047 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11048 (alias_command): Remove unused c.
11049 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11050 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11051 format.
11052 (mi_cmd_data_write_memory): Remove unused word_format.
11053 (mi_cmd_data_write_memory_bytes): Remove unused r.
11054 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11055 p_start, p_end.
11056 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11057 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11058 line_width.
11059
11060 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11061
11062 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11063 * symtab.c (iterate_over_symtabs): Remove unused s.
11064 (find_pc_sect_symtab): Remove unused pspAce.
11065 (find_pc_sect_line): Remove unused alt_symtab.
11066 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11067 (completion_list_add_name): Remove unused newsize.
11068
11069 2013-01-31 Tom Tromey <tromey@redhat.com>
11070
11071 PR c++/14998:
11072 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11073 TYPE_CODE_FUNC.
11074
11075 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11076
11077 * target.c (target_read_string): Remove unused origlen.
11078
11079 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11080
11081 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11082 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11083 * ax-general.c (ax_print): Remove unused is_float.
11084 * blockframe.c (block_innermost_frame): Remove unused start, end.
11085 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11086
11087 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11088
11089 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11090 (svr4_read_so_list): Remove unused lmo.
11091 * solib-target.c (solib_target_relocate_section_addresses): Remove
11092 unused flags.
11093
11094 2013-01-30 Tom Tromey <tromey@redhat.com>
11095
11096 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11097
11098 2013-01-30 Tom Tromey <tromey@redhat.com>
11099
11100 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11101 * utils.c (gnu_debuglink_crc32): Remove.
11102 * utils.h (gnu_debuglink_crc32): Don't declare.
11103
11104 2013-01-30 Tom Tromey <tromey@redhat.com>
11105
11106 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11107 (read_structure_type, read_enumeration_type): Remove cast.
11108
11109 2013-01-30 Tom Tromey <tromey@redhat.com>
11110
11111 * dwarf2read.c (read_namespace_type): Remove cast.
11112 (read_typedef): Likewise.
11113
11114 2013-01-29 Tom Tromey <tromey@redhat.com>
11115
11116 * dwarf2read.c (free_dwo_file): Remove assert.
11117
11118 2013-01-29 Tom Tromey <tromey@redhat.com>
11119
11120 * value.c (deprecated_set_value_modifiable): Remove.
11121 * value.h (deprecated_set_value_modifiable): Remove.
11122
11123 2013-01-28 Doug Evans <dje@google.com>
11124
11125 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11126 to addresses from dwo files.
11127
11128 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11129
11130 * valops.c (find_overload_match): Remove unused argument 'lax'.
11131 * value.h: Remove unused argument 'lax' from the declaration of
11132 find_overload_match.
11133 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11134 to find_overload_match.
11135 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11136 argument to find_overload_match.
11137
11138 2013-01-25 Tom Tromey <tromey@redhat.com>
11139
11140 * dwarf2read.c (processing_has_namespace_info): Remove.
11141 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11142 (process_die, read_func_scope, dwarf2_start_symtab)
11143 (new_symbol_full): Update.
11144
11145 2013-01-25 Tom Tromey <tromey@redhat.com>
11146
11147 * cp-namespace.c (cp_set_block_scope): Remove.
11148 * cp-support.h (cp_set_block_scope): Remove.
11149 * dbxread.c: Include block.h.
11150 (cp_set_block_scope): New function.
11151 (process_one_symbol): Update.
11152 * dwarf2read.c (read_func_scope): Use block_set_scope.
11153
11154 2013-01-25 Pedro Alves <palves@redhat.com>
11155
11156 * remote.c (add_current_inferior_and_thread): Tweak comment.
11157
11158 2013-01-25 Tom Tromey <tromey@redhat.com>
11159
11160 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11161 (cp_add_using_directive): Add 'copy_names' argument.
11162 * cp-support.h (cp_add_using_directive): Update.
11163 (struct using_direct) <import_src, import_dest, alias,
11164 declaration>: Now const.
11165 * dwarf2read.c (read_import_statement): Use obconcat.
11166 Don't copy names passed to cp_add_using_directive.
11167
11168 2013-01-25 Tom Tromey <tromey@redhat.com>
11169
11170 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11171
11172 2013-01-25 Pedro Alves <palves@redhat.com>
11173
11174 * remote.c (stop_reply_extract_thread): New.
11175 (add_current_inferior_and_thread): New parameter 'wait_status'.
11176 Handle it.
11177 (remote_start_remote): Pass wait status to
11178 add_current_inferior_and_thread.
11179 (extended_remote_run): Update comment.
11180 (extended_remote_create_inferior_1): Pass wait status to
11181 add_current_inferior_and_thread.
11182
11183 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11184 Ulrich Weigand <uweigand@de.ibm.com>
11185
11186 * valarith.c (value_vector_widen): New function for replicating a
11187 scalar into a vector.
11188 (value_binop): Use value_vector_widen to widen scalar to vector
11189 rather than casting, this better matches gcc C behaviour.
11190 * valops.c (value_casst): Update logic for casting between vector
11191 types, and for casting from scalar to vector, try to match gcc C
11192 behaviour.
11193 * value.h (value_vector_widen): Declare.
11194 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11195 function, handle special case for casting scalar to vector.
11196 (opencl_relop): Use opencl_value_cast.
11197 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11198 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11199 in order to use opencl_value_cast.
11200
11201 2013-01-25 Yao Qi <yao@codesourcery.com>
11202
11203 * event-loop.c: Include "queue.h".
11204 (gdb_event_p): New typedef.
11205 (DECLARE_QUEUE_P): Use.
11206 (DEFINE_QUEUE_P): Use.
11207 (async_queue_event): Remove.
11208 (gdb_event_xfree): New.
11209 (initialize_event_loop): New.
11210 (process_event): Use QUEUE macros.
11211 (event_queue): Remove.
11212 (gdb_wait_for_event): Caller update.
11213 (check_async_event_handlers): Likewise.
11214 (poll_timers): Likewise.
11215 * event-loop.h (initialize_event_loop): Declare.
11216 * event-loop.c (gdb_event_xfree): New.
11217 * top.c (gdb_init): Call initialize_event_loop.
11218
11219 2013-01-25 Yao Qi <yao@codesourcery.com>
11220
11221 * event-loop.c (async_queue_event): Remove one parameter
11222 'position'. Remove code handling 'position' == TAIL.
11223 (gdb_wait_for_event): Caller update.
11224 (check_async_event_handlers): Caller update.
11225 (poll_timers): Caller update.
11226 * event-loop.h (enum queue_position): Remove.
11227
11228 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11229
11230 * MAINTAINERS: Update my email.
11231
11232 2013-01-25 Yao Qi <yao@codesourcery.com>
11233
11234 * main.c (print_gdb_help): Remove "--epoch" from the help
11235 message.
11236
11237 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11238
11239 * symtab.c (skip_prologue_using_sal): Consider a file
11240 change the same as an increased line number
11241
11242 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11243
11244 * MAINTAINERS (Write After Approval): Add myself to the list.
11245
11246 2013-01-24 Tom Tromey <tromey@redhat.com>
11247
11248 * ada-lang.h (ada_decode_symbol): Make return type const.
11249 * ada-lang.c (ada_decode_symbol): Likewise.
11250
11251 2013-01-23 Doug Evans <dje@google.com>
11252
11253 * linespec.c (find_linespec_symbols): Make static.
11254
11255 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11256
11257 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11258 type on float conversion for complex type.
11259
11260 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11261
11262 Add a new class gdb.Architecture which exposes GDB's
11263 internal representation of architecture via GDB Python API.
11264 * Makefile.in: Add entries corresponding to the new file
11265 python/py-arch.c.
11266 * NEWS (Python Scripting): Add entries for the new class
11267 gdb.Architecture and the new method gdb.Frame.architecture.
11268 * python/py-arch.c: Implement gdb.Architecture class.
11269 * python/py-frame.c (frapy_arch): Implement the method
11270 gdb.Frame.architecture().
11271 (frame_object_methods): Add 'architecture' to the method table.
11272 * python/python-internal.h: Add declarations of new utility
11273 functions.
11274 * python/python.c (_initialize_python): Initialize
11275 gdb.Architecture class.
11276
11277 2013-01-23 Doug Evans <dje@google.com>
11278
11279 Work around binutils/15021.
11280 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11281 type_unit_group out of union s. All uses updated.
11282 (read_index_from_section): Watch for index version 8.
11283 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11284 an imported symtab.
11285 (write_psymtabs_to_index): Increment version number to 8.
11286
11287 2013-01-22 Pedro Alves <palves@redhat.com>
11288
11289 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11290 user-visible.
11291
11292 2013-01-22 Pedro Alves <palves@redhat.com>
11293
11294 * annotate.c (annotate_breakpoints_changed): Rename to ...
11295 (annotate_breakpoints_invalid): ... this. Make static.
11296 (breakpoint_changed): Adjust.
11297 (_initialize_annotate): Always install the observers. Install a
11298 "breakpoint_created" observer.
11299 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11300 * breakpoint.c (set_breakpoint_condition)
11301 (breakpoint_set_commands, do_map_commands_command)
11302 (init_raw_breakpoint, clear_command, set_ignore_count)
11303 (enable_breakpoint_disp): No longer call
11304 annotate_breakpoints_changed.
11305
11306 2013-01-22 Pedro Alves <palves@redhat.com>
11307
11308 * annotate.c: Include "inferior.h".
11309 (frames_invalid_emitted)
11310 (breakpoints_invalid_emitted): New globals.
11311 (async_background_execution_p): New function.
11312 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11313 emitting the annotation if it has already been emitted.
11314 (annotate_display_prompt): New function.
11315 * annotate.h (annotate_display_prompt): New declaration.
11316 * event-top.c: Include annotate.h.
11317 (display_gdb_prompt): Call annotate_display_prompt.
11318
11319 2013-01-22 Pedro Alves <palves@redhat.com>
11320
11321 * annotate.c (ignore_count_changed): Delete.
11322 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11323 (annotate_ignore_count_change): Delete.
11324 (annotate_stopped): Don't emit a delayed breakpoints-changed
11325 annotation.
11326 * annotate.h (annotate_ignore_count_change): Delete.
11327 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11328 annotate_ignore_count_change.
11329
11330 2013-01-22 Tom Tromey <tromey@redhat.com>
11331
11332 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11333 require_rvalue for a register location.
11334
11335 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11336
11337 * breakpoint.c (print_one_breakpoint_location): Add MI
11338 field 'thread-groups' when printing a breakpoint.
11339 (output_thread_groups): New function.
11340
11341 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11342
11343 * python/lib/gdb/commands/explore.py
11344 (CompoundExplorer.explore_expr): Correct the name of a method
11345 being invoked.
11346 (ExploreTypeCommand.invoke): Add a missing 'return'.
11347
11348 2013-01-21 Tom Tromey <tromey@redhat.com>
11349
11350 * gdb_obstack.h (obconcat): Move declaration here, from...
11351 * symfile.h (obconcat): ... here.
11352 * gdb_obstack.c: New file.
11353 (obconcat): Move from...
11354 * symfile.c (obconcat): ... here.
11355 * Makefile.in (SFILES): Add gdb_obstack.c.
11356 (COMMON_OBS): Add gdb_obstack.o.
11357
11358 2013-01-21 Tom Tromey <tromey@redhat.com>
11359
11360 * symfile.h (obsavestring): Don't declare.
11361 * symfile.c (obsavestring): Remove.
11362 * ada-exp.y: Use obstack_copy0, not obsavestring.
11363 * ada-lang.c: Use obstack_copy0, not obsavestring.
11364 * coffread.c: Use obstack_copy0, not obsavestring.
11365 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11366 * dbxread.c: Use obstack_copy0, not obsavestring.
11367 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11368 * jit.c: Use obstack_copy0, not obsavestring.
11369 * mdebugread.c: Use obstack_copy0, not obsavestring.
11370 * psymtab.c: Use obstack_copy0, not obsavestring.
11371 * stabsread.c: Use obstack_copy0, not obsavestring.
11372 * xcoffread.c: Use obstack_copy0, not obsavestring.
11373
11374 2013-01-21 Tom Tromey <tromey@redhat.com>
11375
11376 * dwarf2read.c (fixup_go_packaging): Save package name
11377 on objfile obstack.
11378 * gdbtypes.c (init_type): Don't copy name.
11379
11380 2013-01-21 Tom Tromey <tromey@redhat.com>
11381
11382 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11383 const.
11384 (struct attribute) <u.str>: Now const.
11385 (struct fnfieldlist) <name>: Now const.
11386 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11387 (partial_die_parent_scope): Make return type const.
11388 (partial_die_full_name, add_partial_symbol): Update.
11389 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11390 'name' const.
11391 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11392 (read_file_scope, read_func_scope, dwarf2_add_field)
11393 (dwarf2_add_member_fn, read_structure_type)
11394 (process_enumeration_scope, read_array_type, read_module_type)
11395 (read_base_type, read_subrange_type): Update.
11396 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11397 (new_symbol_full, guess_full_die_structure_name): Update.
11398 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11399 (dwarf2_name): Return const type.
11400 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11401 const.
11402
11403 2013-01-21 Tom Tromey <tromey@redhat.com>
11404
11405 * gdbtypes.c (init_type): Make 'name' const.
11406 * gdbtypes.h (init_type): Update.
11407
11408 2013-01-21 Tom Tromey <tromey@redhat.com>
11409
11410 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11411 (start_symtab): Make 'name' and 'dirname' const. Use
11412 set_last_source_file.
11413 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11414 (last_source_file): Define. Now static.
11415 (set_last_source_file, get_last_source_file): New functions.
11416 * buildsym.h (last_source_file): Don't declare.
11417 (start_symtab): Update.
11418 (set_last_source_file, get_last_source_file): Declare.
11419 * coffread.c (complete_symtab): Use set_last_source_file.
11420 (coff_end_symtab): Likewise.
11421 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11422 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11423 set_last_source_file.
11424 (process_one_symbol): Use get_last_source_file.
11425 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11426 (psymtab_to_symtab_1): Use get_last_source_file.
11427 * xcoffread.c (process_linenos): Use get_last_source_file.
11428 (complete_symtab): Use set_last_source_file.
11429 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11430 (scan_xcoff_symtab): Use set_last_source_file.
11431
11432 2013-01-21 Tom Tromey <tromey@redhat.com>
11433
11434 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11435 (symbol_set_names): Remove casts. Handle field const-ness.
11436
11437 2013-01-21 Tom Tromey <tromey@redhat.com>
11438
11439 * dwarf2read.c (new_symbol_full): Remove cast.
11440 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11441 * symtab.h (symbol_set_demangled_name): Update.
11442
11443 2013-01-21 Tom Tromey <tromey@redhat.com>
11444
11445 * main.c (captured_main): Call bfd_init.
11446
11447 2013-01-21 Tom Tromey <tromey@redhat.com>
11448
11449 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11450 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11451 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11452 * NEWS: Update.
11453
11454 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11455
11456 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11457
11458 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11459
11460 Fix gdb.fortran/common-block.exp crash in PIE mode.
11461 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11462 LOC_COMMON_BLOCK.
11463 * f-valprint.c (info_common_command_for_block): Expect
11464 LOC_COMMON_BLOCK in gdb_assert.
11465 * symtab.h (struct general_symbol_info): Update comment for the
11466 common_block member.
11467 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11468 (enum address_class): New member LOC_COMMON_BLOCK.
11469
11470 2013-01-18 David Blaikie <dblaikie@gmail.com>
11471
11472 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11473
11474 2013-01-18 Tom Tromey <tromey@redhat.com>
11475
11476 PR c++/14999:
11477 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11478 Call require_rvalue.
11479
11480 2013-01-18 Yao Qi <yao@codesourcery.com>
11481
11482 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11483 (dbx_read_symtab): New declaration.
11484 (dbx_psymtab_to_symtab): Delete.
11485 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11486 Rename parameter PST to SELF. Exchanged two parameters.
11487 (start_psymtab): Caller update.
11488 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11489 (dwarf2_read_symtab): New declaration.
11490 (dwarf2_psymtab_to_symtab): Delete.
11491 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11492 Rename parameter PST to SELF. Exchanged two parameters.
11493 (create_partial_symtab): Caller update.
11494 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11495 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11496 Rename parameter PST to SELF. Exchanged two parameters.
11497 (parse_partial_symbols, new_psymtab): Caller update.
11498 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11499 two parameters.
11500 * psymtab.c (psymtab_to_symtab): Caller update.
11501 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11502 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11503 Rename parameter PST to SELF. Exchanged two parameters.
11504 (xcoff_start_psymtab): Caller update.
11505
11506 2013-01-18 Yao Qi <yao@codesourcery.com>
11507
11508 * infrun.c (proceed): Rename local variable 'oneproc' to
11509 'force_step'.
11510
11511 2013-01-17 Doug Evans <dje@google.com>
11512
11513 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11514 (dw2_build_type_unit_groups): Delete. All uses updated.
11515
11516 * symtab.h (struct symbol_search): Add comment.
11517
11518 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11519
11520 * symtab.c (compare_filenames_for_search): New comment for
11521 HAS_DRIVE_SPEC.
11522
11523 2013-01-17 Tom Tromey <tromey@redhat.com>
11524
11525 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11526
11527 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11528
11529 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11530 initialize it by existing make_cleanup. Call new do_cleanups.
11531
11532 2013-01-17 Tom Tromey <tromey@redhat.com>
11533
11534 * cp-abi.c (cp_abi_completer): New function.
11535 (_initialize_cp_abi): Set completer for "set cp-abi".
11536
11537 2013-01-17 Tom Tromey <tromey@redhat.com>
11538
11539 * mem-break.c: Remove obsolete comment.
11540 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11541
11542 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11543
11544 * jit.c (jit_reader_load_command): Interpret the jit reader name
11545 as an absolute path if it begins with a forward slash.
11546
11547 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11548
11549 PR gdb/14550
11550
11551 * jit.c (finalize_symtab): Ensure that only the global block has a
11552 NULL superblock.
11553
11554 2013-01-17 Pedro Alves <palves@redhat.com>
11555
11556 * acinclude.m4: Include ../config/plugins.m4,
11557 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11558 * Makefile.in (aclocal_m4_deps): Update.
11559 * aclocal.m4: Renegerate.
11560
11561 2013-01-16 Doug Evans <dje@google.com>
11562
11563 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11564
11565 2013-01-16 Pedro Alves <palves@redhat.com>
11566 Tom Tromey <tromey@redhat.com>
11567
11568 PR cli/7221:
11569 * NEWS: Add "catch signal".
11570 * breakpoint.c (base_breakpoint_ops): No longer static.
11571 (bpstat_explains_signal): New function.
11572 (init_catchpoint): No longer static.
11573 (base_breakpoint_explains_signal): New function.
11574 (base_breakpoint_ops): Initialize new field.
11575 * breakpoint.h (enum bpstat_signal_value): New.
11576 (struct breakpoint_ops) <explains_signal>: New field.
11577 (bpstat_explains_signal): Remove macro, declare as function.
11578 (base_breakpoint_ops, init_catchpoint): Declare.
11579 * break-catch-sig.c: New file.
11580 * inferior.h (signal_catch_update): Declare.
11581 * infrun.c (signal_catch): New global.
11582 (handle_syscall_event): Update for change to
11583 bpstat_explains_signal.
11584 (handle_inferior_event): Likewise. Always handle random signals
11585 via bpstats.
11586 (signal_cache_update): Check signal_catch.
11587 (signal_catch_update): New function.
11588 (_initialize_infrun): Initialize signal_catch.
11589 * Makefile.in (SFILES): Add break-catch-sig.c.
11590 (COMMON_OBS): Add break-catch-sig.o.
11591
11592 2013-01-16 Tom Tromey <tromey@redhat.com>
11593
11594 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11595 (print_one_catch_solib, print_one_catch_syscall)
11596 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11597 "catch-type".
11598
11599 2013-01-16 Yao Qi <yao@codesourcery.com>
11600
11601 * printcmd.c (current_display_number): Make it static.
11602
11603 2013-01-16 Yao Qi <yao@codesourcery.com>
11604
11605 * infcmd.c (step_once): Don't check '!single_inst' as it was
11606 checked before.
11607
11608 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11609
11610 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11611
11612 2013-01-14 Tom Tromey <tromey@redhat.com>
11613
11614 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11615 set command.
11616 * command.h (add_setshow_string_noescape_cmd): Update.
11617 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11618 (complete_set_gnutarget): New function.
11619 (_initialize_core): Set the "set gnutarget" completer.
11620
11621 2013-01-14 Tom Tromey <tromey@redhat.com>
11622
11623 PR symtab/14442:
11624 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11625 (c_type_print_modifier): Likewise.
11626 * dwarf2read.c (read_tag_restrict_type): New function.
11627 (read_type_die_1): Handle DW_TAG_restrict_type.
11628 * gdbtypes.c (make_restrict_type): New function.
11629 (recursive_dump_type): Handle TYPE_RESTRICT.
11630 * gdbtypes.h (enum type_flag_values): Renumber.
11631 (enum type_instance_flag_value): Add
11632 TYPE_INSTANCE_FLAG_RESTRICT.
11633 (TYPE_RESTRICT): New macro.
11634 (make_restrict_type): Declare.
11635
11636 2013-01-14 Tom Tromey <tromey@redhat.com>
11637
11638 PR symtab/14931:
11639 * psymtab.c (struct psymtab_state): New.
11640 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11641 functions.
11642 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11643 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11644
11645 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11646 Pedro Alves <palves@redhat.com>
11647
11648 PR remote/14786
11649
11650 * remote.c (remote_threads_info): Make a copy of the reply from
11651 qfThreadInfo and use that instead of rs->buf.
11652
11653 2013-01-14 Yao Qi <yao@codesourcery.com>
11654
11655 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11656 (dbx_psymtab_to_symtab): Likewise.
11657 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11658 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11659 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11660
11661 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11662
11663 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11664 make_cleanup_restore_current_language. Call set_language. Move
11665 OLD_CHAIN and INNER_CHAIN cleanups.
11666 * utils.c (do_restore_current_language)
11667 (make_cleanup_restore_current_language): New functions.
11668 * utils.h (make_cleanup_restore_current_language): New declaration.
11669
11670 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11671
11672 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11673 non-existing files.
11674
11675 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11676 non-existing files if FILENAME is already absolute.
11677
11678 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11679
11680 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11681 fputs_filtered. Append trailing newline.
11682
11683 2013-01-11 Yao Qi <yao@codesourcery.com>
11684 Stan Shebs <stan@codesourcery.com>
11685
11686 * psymtab.c (init_psymbol_list): Clarify the comment.
11687
11688 2013-01-11 Yao Qi <yao@codesourcery.com>
11689
11690 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11691 (update_dprintf_command_list): Assert that 'printf_line' is
11692 non-null. Remove condition check.
11693
11694 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11695
11696 Code cleanup.
11697 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11698 type const char *.
11699 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11700 const char *.
11701 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11702
11703 2013-01-09 Anthony Green <green@moxielogic.com>
11704
11705 * cp-abi.c (cplus_print_vtable): Don't return value from void
11706 function.
11707 * ada-lang.c (re_set_catch_assert): Ditto.
11708
11709 2013-01-09 Doug Evans <dje@google.com>
11710
11711 * symfile.h (quick_symbol_functions): Delete member
11712 pre_expand_symtabs_matching. All uses removed.
11713 * dwarf2read.c (dw2_lookup_symbol): Implement.
11714 (dw2_do_expand_symtabs_matching): Delete.
11715 (dw2_pre_expand_symtabs_matching): Delete.
11716 (struct dw2_symtab_iterator): New type.
11717 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11718 (dw2_expand_symtabs_for_function): Rewrite.
11719 (dwarf2_gdb_index_functions): Update.
11720 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11721 (psym_functions): Update.
11722
11723 2013-01-09 Tom Tromey <tromey@redhat.com>
11724
11725 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11726 * configure: Rebuild.
11727 * configure.ac: Add somread.o to the build if BFD has SOM
11728 support.
11729 * somread.c: Include som/aout.h, not syms.h.
11730 (som_symtab_read): Use som_external_symbol_dictionary_record.
11731 Unpack records manually.
11732 (_initialize_somread): Declare.
11733
11734 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11735
11736 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11737 Cast return_address to 64bits.
11738
11739 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11740
11741 * printcmd.c: Remove define of function output_command.
11742 * tracepoint.c: Remove extern of function output_command.
11743 * valprint.h: (output_command): New extern.
11744
11745 2013-01-07 Tom Tromey <tromey@redhat.com>
11746
11747 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11748 Remove.
11749 (objc_language_defn): Use c_printchar, c_printstr,
11750 c_emit_char.
11751
11752 2013-01-07 Tom Tromey <tromey@redhat.com>
11753
11754 PR cli/7719:
11755 * NEWS: Update.
11756 * ada-valprint.c (printstr, print_field_values): Remove
11757 "inspect_it" code.
11758 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11759 code.
11760 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11761 code.
11762 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11763 * main.c (captured_main): Remove "epoch" argument.
11764 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11765 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11766 * p-valprint.c (pascal_object_print_value_fields): Remove
11767 "inspect_it" code.
11768 * printcmd.c (print_command_1): Remove 'inspect' argument.
11769 (print_command, call_command): Update.
11770 (inspect_command): Remove.
11771 (_initialize_printcmd): Make "inspect" an alias for "print".
11772 * top.c (epoch_interface): Remove.
11773 * top.h (epoch_interface): Remove.
11774 * valprint.c (user_print_options): Update.
11775 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11776 * valprint.h (struct value_print_options) <inspect_it>: Remove
11777 field.
11778
11779 2013-01-04 Tom Tromey <tromey@redhat.com>
11780
11781 * valprint.h (read_string): Add 'extern'.
11782
11783 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11784
11785 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11786 used to decide whether to define darwin_read_dyld_info or not.
11787
11788 2013-01-03 Pierre Muller <muller@sourceware.org>
11789
11790 * main.c (relocate_gdb_directory): Avoid calling stat function
11791 if DIR is empty.
11792
11793 2013-01-03 Yao Qi <yao@codesourcery.com>
11794
11795 * psymtab.c (fixup_psymbol_section): Update declaration.
11796 (fixup_psymbol_section): Remove code returning value.
11797
11798 2013-01-03 Yao Qi <yao@codesourcery.com>
11799
11800 * symtab.h: Remove some out of date comments.
11801 (enum exception_event_kind): Move it ...
11802 * breakpoint.c: ... here.
11803
11804 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11805
11806 PR gdb/14405
11807 * darwin-nat.c (darwin_read_dyld_info): Only build if
11808 TASK_DYLD_INFO_COUNT is defined.
11809 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11810 TASK_DYLD_INFO_COUNT is defined.
11811
11812 2013-01-02 Tom Tromey <tromey@redhat.com>
11813
11814 * symfile.h (struct ecoff_debug_hack): Remove.
11815 * objfiles.c: Don't include mdebugread.h.
11816
11817 2013-01-02 Tom Tromey <tromey@redhat.com>
11818
11819 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11820 * configure.ac: Check for Mach-O support in BFD. Update
11821 CONFIG_OBS.
11822 * configure: Rebuild.
11823
11824 2013-01-02 Tom Tromey <tromey@redhat.com>
11825
11826 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11827 * configure.ac: Use GDB_AC_CHECK_BFD.
11828 * configure: Rebuild.
11829
11830 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11831
11832 * MAINTAINERS: Update my email.
11833
11834 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11835
11836 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11837
11838 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11839
11840 * rs6000-nat.c (bss_data_overlap): New function.
11841 (vmap_symtab): Use it to adjust the .bss section's offset.
11842
11843 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11844
11845 Update year range in copyright notice of all files.
11846
11847 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11848
11849 * top.c (print_gdb_version): Update copyright year.
11850
11851 For older changes see ChangeLog-2012.
11852 \f
11853 Local Variables:
11854 mode: change-log
11855 left-margin: 8
11856 fill-column: 74
11857 version-control: never
11858 coding: utf-8
11859 End:
This page took 0.268366 seconds and 5 git commands to generate.