Eliminate enum bpstat_signal_value, simplify random signal checks further.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-14 Pedro Alves <palves@redhat.com>
2
3 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
4 return a boolean.
5 * breakpoint.c (bpstat_explains_signal): Adjust to return a
6 boolean.
7 (explains_signal_watchpoint, base_breakpoint_explains_signal):
8 Adjust to return a boolean.
9 * breakpoint.h (enum bpstat_signal_value): Delete.
10 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
11 (bpstat_explains_signal): Likewise.
12 * infrun.c (handle_inferior_event) <random signal checks>:
13 bpstat_explains_signal now returns a boolean - adjust. No longer
14 consider hiding signals.
15
16 2013-11-14 Pedro Alves <palves@redhat.com>
17
18 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
19 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
20 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
21 BPSTAT_SIGNAL_HIDE.
22 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
23 instead of BPSTAT_SIGNAL_HIDE.
24 * infrun.c (handle_inferior_event): Rework random signal checks.
25
26 2013-11-14 Pedro Alves <palves@redhat.com>
27
28 * infrun.c (struct execution_control_state): Remove
29 'random_signal' field.
30 (handle_syscall_event): Use bpstat_causes_stop instead of
31 bpstat_explains_signal. Don't set ecs->random_signal.
32 (handle_inferior_event): New 'random_signal' local.
33 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
34 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
35 bpstat_explains_signal. Don't set ecs->random_signal.
36 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
37 ecs->random_signal.
38
39 2013-11-14 Pedro Alves <palves@redhat.com>
40
41 * infrun.c (handle_inferior_event): Move comment from the
42 function's body to the function's description, adjusted.
43
44 2013-11-14 Pedro Alves <palves@redhat.com>
45
46 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
47 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
48 Assert we never fall through out of the TARGET_WAITKIND_LOADED
49 case.
50
51 2013-11-14 Tom Tromey <tromey@redhat.com>
52
53 * python/py-linetable.c (ltpy_has_line)
54 (ltpy_get_all_source_lines): Fix loop termination condition.
55
56 2013-11-14 Joel Brobecker <brobecker@adacore.com>
57
58 * mi/mi-parse.h (struct mi_parse) <language>: New field.
59 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
60 PARSE->LANGUAGE during command execution, if set.
61 * mi/mi-parse.c: Add "language.h" #include.
62 (mi_parse): Add parsing of "--language" command option.
63
64 * NEWS: Add entry mentioning the new "--language" command option.
65
66 2013-11-14 Pedro Alves <palves@redhat.com>
67 Joel Brobecker <brobecker@adacore.com>
68
69 * cli/cli-utils.h (extract_arg_const): Add declaration.
70 * cli/cli-utils.c (extract_arg_const): New function.
71 (extract_arg): Reimplement using extract_arg_const.
72
73 2013-11-14 Joel Brobecker <brobecker@adacore.com>
74
75 * language.h: Add "symtab.h" #include.
76
77 2013-11-13 Doug Evans <xdje42@gmail.com>
78
79 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
80 specific breakpoints, don't evaluate breakpoint condition if
81 different thread.
82
83 2013-11-13 Keith Seitz <keiths@redhat.com>
84
85 PR c++/7935
86 PR c++/10541
87 * cp-support.c (insepct_type): Add support for substituting
88 namespace aliases, too.
89 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
90 for DW_TAG_imported_declaration.
91 (add_partial_symbol): Likewise.
92 (process_die): Handle namespace aliases with
93 read_namespace_alias.
94 (die_needs_namespace): Add DW_TAG_imported_declaration.
95 (read_namespace_alias): New function.
96 (load_partial_dies): Load DW_TAG_imported_declaration, too.
97 (new_symbol_full): Handle DW_TAG_imported_declaration.
98
99 2013-11-13 Keith Seitz <keiths@redhat.com>
100
101 * p-exp.y (uptok): Make first parameter const.
102 (yylex): Make `tokstart' and `tokptr' const.
103 Don't copy the lexer input to a temporary buffer.
104 Make `p' const.
105 Remove const workaround for parse_escape.
106 Create a temporary buffer for a convenience variable instead
107 of doing in-place modification of the input.
108 If a match is found with a different case from the input,
109 do not change the input at all.
110 Use `tmp' to construct the resultant stoken instead of
111 `tokstart'.
112
113 2013-11-13 Doug Evans <xdje42@gmail.com>
114
115 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
116
117 2013-11-13 Joel Brobecker <brobecker@adacore.com>
118
119 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
120 entry with "ada-exceptions".
121
122 2013-11-13 Joel Brobecker <brobecker@adacore.com>
123
124 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
125 after re-initialization of OBJFILE's obstack.
126
127 2013-11-12 Doug Evans <xdje42@gmail.com>
128
129 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
130 bs->stop != 0 on entry. Update function comment. Simplify early
131 exit for frame mismatch. Reindent rest of function.
132
133 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
134
135 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
136 NULL.
137
138 2013-11-12 Doug Evans <dje@google.com>
139
140 Work around gold/15646.
141 * dwarf2read.c (read_index_from_section): Update comment.
142 (struct dw2_symtab_iterator): New member global_seen.
143 (dw2_symtab_iter_init): Initialize it.
144 (dw2_symtab_iter_next): Skip duplicate global symbols.
145 (dw2_expand_symtabs_matching): Ditto.
146
147 2013-11-12 Joel Brobecker <brobecker@adacore.com>
148
149 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
150 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
151 command.
152 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
153 (mi_cmd_info_ada_exceptions): New function.
154 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
155
156 2013-11-12 Joel Brobecker <brobecker@adacore.com>
157
158 * ada-lang.h: #include "vec.h".
159 (struct ada_exc_info): New.
160 (ada_exc_info): New typedef.
161 (DEF_VEC_O(ada_exc_info)): New vector.
162 (ada_exceptions_list): Add declaration.
163 * ada-lang.c (ada_is_exception_sym)
164 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
165 (sort_remove_dups_ada_exceptions_list)
166 (ada_exc_search_name_matches, ada_add_standard_exceptions)
167 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
168 (ada_exceptions_list_1, ada_exceptions_list)
169 (info_exceptions_command): New function.
170 (_initialize_ada_language): Add "info exception" command.
171
172 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
173
174 PR python/15629
175 * NEWS: Add linetable feature.
176 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
177 * python/py-linetable.c: New file.
178 * python/py-symtab.c (stpy_get_linetable): New function.
179 * python/python-internal.h (symtab_to_linetable_object): Declare.
180 (gdbpy_initialize_linetable): Ditto.
181 * python/python.c (_initialize_python): Call
182 gdbpy_initialize_linetable.
183
184 2013-11-11 Joel Brobecker <brobecker@adacore.com>
185
186 * ada-lang.c (create_ada_exception_catchpoint): Enhance
187 the documentation of fields "except_string" and "condition".
188 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
189 CONDITION on the heap before passing it to
190 create_ada_exception_catchpoint.
191 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
192 CONDITION.
193
194 2013-11-11 Tom Tromey <tromey@redhat.com>
195
196 * config.in, configure: Rebuild.
197 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
198
199 2013-11-11 Joel Brobecker <brobecker@adacore.com>
200
201 * remote-sim.c (gdbsim_detach): Break declaration into
202 shorter lines. No code change.
203
204 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
205
206 * remote-sim.c (gdbsim_detach): Fix prototype.
207
208 2013-11-08 Doug Evans <dje@google.com>
209
210 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
211 (create_debug_types_hash_table): Only print debugging messages for
212 each TU if dwarf2-read >= 2.
213 (process_queue): Ditto.
214 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
215 Update doc string.
216
217 2013-11-08 Tom Tromey <tromey@redhat.com>
218
219 * configure: Rebuild.
220 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
221
222 2013-11-08 Tom Tromey <tromey@redhat.com>
223
224 * configure, config.in: Rebuild.
225 * configure.ac: Remove unused configury.
226
227 2013-11-08 Tom Tromey <tromey@redhat.com>
228
229 * m32c-tdep.c: Use gdb_string.h.
230
231 2013-11-08 Tom Tromey <tromey@redhat.com>
232
233 * configure, config.in: Rebuild.
234 * configure.ac: Remove all link.h-related checks.
235
236 2013-11-08 Tom Tromey <tromey@redhat.com>
237
238 * acinclude.m4: Include common.m4.
239 * common/common.m4: New file.
240 * configure, config.in: Rebuild.
241 * configure.ac: Use GDB_AC_COMMON.
242
243 2013-11-08 Doug Evans <dje@google.com>
244
245 * NEWS: Mention that "set debug symtab-create" now accepts a
246 verbosity level.
247 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
248 to set the symtab's primary flag.
249 * jit.c (finalize_symtab): Ditto.
250 * mdebugread.c (psymtab_to_symtab_1): Ditto.
251 * symfile.c (allocate_symtab): Only print debugging messages for
252 symtab_create_debug levels 2 and higher.
253 * symtab.c (symtab_create_debug): Change type to unsigned int.
254 (set_symtab_primary): New function.
255 (_initialize_symtab): Change "set debug symtab-create" to a
256 zuinteger option.
257 * symtab.h (set_symtab_primary): Declare.
258 (symtab_create_debug): Update decl.
259
260 2013-11-08 Tom Tromey <tromey@redhat.com>
261
262 * aix-thread.c (aix_thread_detach): Update.
263 * corelow.c (core_detach): Update.
264 * darwin-nat.c (darwin_detach): Update.
265 * dec-thread.c (dec_thread_detach): Update.
266 * gnu-nat.c (gnu_detach): Update.
267 * go32-nat.c (go32_detach): Update.
268 * inf-ptrace.c (inf_ptrace_detach): Update.
269 * inf-ttrace.c (inf_ttrace_detach): Update.
270 * linux-fork.c (linux_fork_detach): Update.
271 * linux-fork.h (linux_fork_detach): Update.
272 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
273 local for const-correctness.
274 * linux-thread-db.c (thread_db_detach): Update.
275 * monitor.c (monitor_detach): Update.
276 * nto-procfs.c (procfs_detach): Update.
277 * procfs.c (procfs_detach): Update.
278 * record.c (record_detach): Update.
279 * record.h (record_detach): Update.
280 * remote-m32r-sdi.c (m32r_detach): Update.
281 * remote-mips.c (mips_detach): Update.
282 * remote-sim.c (gdbsim_detach): Update.
283 * remote.c (remote_detach_1, remote_detach)
284 (extended_remote_detach): Update.
285 * sol-thread.c (sol_thread_detach): Update.
286 * target.c (target_detach): Make "args" const.
287 (init_dummy_target): Update.
288 * target.h (struct target_ops) <to_detach>: Make argument const.
289 (target_detach): Likewise.
290 * windows-nat.c (windows_detach): Update.
291
292 2013-11-07 Doug Evans <dje@google.com>
293
294 PR 11786
295 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
296 and align fields for PT_GNU_RELRO segments.
297
298 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
299
300 PR python/15747
301 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
302
303 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
304
305 * NEWS: Document Python temporary breakpoint support.
306 * python/py-breakpoint.c (bppy_get_temporary): New function.
307 (bppy_init): New keyword: temporary. Parse it and set breakpoint
308 to temporary if True.
309
310 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
311
312 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
313 removed to allow analyzing unconditional branch instructions
314 with PC-relative offsets of zero.
315
316 2013-11-07 Yao Qi <yao@codesourcery.com>
317
318 * mi/mi-cmd-var.c: Include "language.h".
319 (mi_cmd_var_info_expression): Get language name from
320 language_defn.
321 * varobj.c (varobj_language_string): Remove.
322 (variable_language): Remove declaration.
323 (languages): Remove.
324 (varobj_get_language): Change the type of return value.
325 (variable_language): Remove.
326 * varobj.h (enum varobj_languages): Remove.
327 (varobj_language_string): Remove declaration.
328 (varobj_get_language): Update declaration.
329
330 2013-11-07 Yao Qi <yao@codesourcery.com>
331
332 * language.h (struct language_defn) <la_natural_name>: New
333 field.
334 * ada-lang.c (ada_language_defn): Initialize field
335 'la_natural_name'.
336 * c-lang.c (c_language_defn): Likewise.
337 (cplus_language_defn, asm_language_defn): Likewise.
338 * d-lang.c (d_language_defn): Likewise.
339 * f-lang.c (f_language_defn): Likewise.
340 * go-lang.c (go_language_defn): Likewise.
341 * jv-lang.c (java_language_defn): Likewise.
342 * language.c (unknown_language_defn ): Likewise.
343 (auto_language_defn): Likewise.
344 * m2-lang.c (m2_language_defn): Likewise.
345 * objc-lang.c (objc_language_defn): Likewise.
346 * opencl-lang.c (opencl_language_defn): Likewise.
347 * p-lang.c (pascal_language_defn): Likewise.
348
349 2013-11-07 Yao Qi <yao@codesourcery.com>
350
351 * language.c (language_str): Return const char *.
352 (add_language): Add const to 'language_names'
353 * language.h (struct language_defn) <la_name>: Add const.
354 (language_str: Update declaration.
355
356 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
357
358 * s390-linux-nat.c (s390_read_description): Consider the TE field
359 in the HWCAP for determining 'have_regset_tdb'.
360
361 2013-11-06 Will Newton <will.newton@linaro.org>
362
363 PR gdb/12866
364 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
365 values. (read_partial_die): Likewise.
366
367 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
368
369 PR cli/16122
370 * top.c (command_line_input): Unify interactivity tests to use
371 input_from_terminal_p.
372 * event-top.c (command_line_handler): Likewise.
373
374 2013-11-06 Yao Qi <yao@codesourcery.com>
375
376 * Makefile.in (check-perf): New target.
377
378 2013-11-05 Will Newton <will.newton@linaro.org>
379
380 PR gdb/7670
381 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
382 (arm_print_float_info): Likewise.
383
384 2013-11-04 Anton Blanchard <anton@samba.org>
385
386 * target.c (memory_xfer_partial): Cap write to 4KB.
387
388 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
389
390 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
391 probe scan even when the arch provides no get_longjmp_target.
392
393 2013-10-31 Pedro Alves <palves@redhat.com>
394
395 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
396 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
397 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
398 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
399 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
400 <bpstat handling>: If the bpstat chain wants the signal to be
401 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
402 GDB_SIGNAL_TRAP.
403
404 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
405
406 * breakpoint.c (update_watchpoint): Update error message and add
407 an additional error message.
408
409 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
410
411 * s390-tdep.h: Rename to...
412 * s390-linux-tdep.h: ...here.
413 * s390-tdep.c: Rename to...
414 * s390-linux-tdep.c: ...here. Adjust #include.
415 * s390-nat.c: Rename to...
416 * s390-linux-nat.c: ...here. Adjust #include.
417 * config/s390/s390.mh: Rename to...
418 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
419 s390-linux-nat.o.
420 * configure.host: Reflect host rename "s390" -> "linux".
421 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
422 * Makefile.in (ALL_TARGET_OBS): Likewise.
423 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
424 s390-linux-tdep.h.
425 (ALLDEPFILES): Reflect rename of .c files.
426
427 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
428
429 * s390-nat.c: Whitespace cleanup.
430 * s390-tdep.c: Likewise.
431 * s390-tdep.h: Remove empty line at end of file.
432
433 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
434
435 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
436 siginfo_size.
437
438 2013-10-29 Tom Tromey <tromey@redhat.com>
439
440 * utils.c (reg): Move undefinition...
441 * gdb_curses.h: ... here. Update comment to mention AIX.
442
443 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
444
445 * exec.h (add_target_sections_of_objfile): New declaration.
446 * exec.c (add_target_sections_of_objfile): New function.
447 * symfile.c (add_symbol_file_command): Update current target sections.
448 (remove_symbol_file_command): New command.
449 (symfile_free_objfile): New function.
450 (_initialize_symfile): Register observer for free_objfile events.
451 * NEWS: Add description of the remove-symbol-file command.
452 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
453 * objfiles.c (free_objfile): Notify free_objfile.
454 (is_addr_in_objfile): New function.
455 * objfiles.h (is_addr_in_objfile): New declaration.
456 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
457 events instead of solib_unloaded events.
458 (_initialize_printcmd): Register observer for free_objfile instead
459 of solib_unloaded notifications.
460 * solib.c (remove_user_added_objfile): New function.
461 (_initialize_symfile): Add remove-symbol-file.
462
463 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
464
465 * infcmd.c (default_print_one_register_info): Use val_print to
466 print all values even optimized out or unavailable ones. Don't
467 try to print a raw form of optimized out or unavailable values.
468
469 2013-10-29 Yao Qi <yao@codesourcery.com>
470
471 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
472 parameter 'arg' instead of from program_space_data.
473 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
474 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
475 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
476 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
477 * inflow.c (inflow_inferior_data_cleanup): Get data from
478 parameter 'arg' instead of inferior_data.
479 * registry.h: Add comments.
480
481 2013-10-28 Pedro Alves <palves@redhat.com>
482
483 * breakpoint.c (watchpoints_triggered)
484 <!target_stopped_data_address>: Hardcode return 1.
485
486 2013-10-28 Pedro Alves <palves@redhat.com>
487
488 * infrun.c (process_event_stop_test): Remove unnecessary scoping
489 level and reindent.
490
491 2013-10-28 Pedro Alves <palves@redhat.com>
492
493 * infrun.c (process_event_stop_test): New function, factored out
494 from handle_inferior_event.
495 (handle_inferior_event): 'process_event_stop_test' is now a
496 function instead of a goto label -- adjust.
497
498 2013-10-28 Pedro Alves <palves@redhat.com>
499
500 * infrun.c (handle_inferior_event): Move process_event_stop_test
501 goto label to the else branch of the ecs->random_signal check,
502 along with FRAME and GDBARCH re-fetching.
503
504 2013-10-28 Pedro Alves <palves@redhat.com>
505
506 * infrun.c (switch_back_to_stepped_thread): New function, factored
507 out from handle_inferior_event.
508 (handle_inferior_event): Adjust to call
509 switch_back_to_stepped_thread. Call it also at the tail of the
510 random signal handling, and return, instead of also handling
511 random signals just before the stepping tests.
512
513 2013-10-28 Pedro Alves <palves@redhat.com>
514
515 * infrun.c (clear_stop_func): Delete.
516 (handle_inferior_event): Don't call clear_stop_func and don't
517 clear 'ecs->random_signal'.
518
519 2013-10-27 Yao Qi <yao@codesourcery.com>
520
521 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
522 (varobj_create, varobj_get_path_expr): Update.
523 (varobj_value_has_mutated, varobj_update): Likewise.
524 (create_child_with_value, new_root_variable): Likewise.
525 (number_of_children, name_of_variable): Likewise.
526 (value_of_child, my_value_of_variable): Likewise.
527 (varobj_value_is_changeable_p): Likewise.
528
529 2013-10-25 Yao Qi <yao@codesourcery.com>
530
531 * language.h (struct lang_varobj_ops): Declare.
532 (struct language_defn) <la_varobj_ops>: New field.
533 * ada-lang.c: Include "varobj.h"
534 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
535 ada_varobj_ops.
536 * c-lang.c: Include "varobj.h"
537 (c_language_defn): Initialize field 'la_varobj_ops' with
538 c_varobj_ops.
539 (cplus_language_defn): Initialize field 'la_varobj_ops' with
540 cplus_varobj_ops.
541 (asm_language_defn): Initialize field 'la_varobj_ops' with
542 default_varobj_ops.
543 (minimal_language_defn): Likewise.
544 * d-lang.c (d_language_defn): Likewise.
545 * f-lang.c (f_language_defn): Likewise.
546 * go-lang.c (go_language_defn): Likewise.
547 * m2-lang.c (m2_language_defn): Likewise.
548 * objc-lang.c (objc_language_defn): Likewise.
549 * opencl-lang.c (opencl_language_defn): Likewise.
550 * p-lang.c (pascal_language_defn): Likewise.
551 * language.c (unknown_language_defn): Likewise.
552 (auto_language_defn): Likewise.
553 (local_language_defn): Likewise.
554 * jv-lang.c (java_language_defn): Initialize field
555 'la_varobj_ops' with java_varobj_ops.
556 * varobj.c (varobj_create): Update.
557 * varobj.h (default_varobj_ops): Define macro.
558
559 2013-10-25 Pedro Alves <palves@redhat.com>
560
561 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
562 static field value.
563 (cp_print_static_field): If the value is entirely optimized out,
564 print <optimized out> here.
565 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
566 static field value.
567 * p-valprint.c (pascal_object_print_static_field): If the value is
568 entirely optimized out, print <optimized out> here.
569 * valops.c (do_search_struct_field)
570 (value_struct_elt_for_reference): No longer handle a NULL static
571 field value.
572 * value.c (value_static_field): Return an optimized out value
573 instead of NULL.
574
575 2013-10-25 Yao Qi <yao@codesourcery.com>
576
577 * remote.c (remote_traceframe_info): Return early if
578 traceframe is not selected.
579
580 2013-10-25 Yao Qi <yao@codesourcery.com>
581
582 * tracepoint.c (traceframe_fun): Remove.
583 (traceframe_sal): Remove.
584 (set_traceframe_context): Add local variables.
585
586 2013-10-25 Joel Brobecker <brobecker@adacore.com>
587
588 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
589 and parameter name.
590
591 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
592
593 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
594 failure from register information collection.
595
596 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
597
598 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
599 member.
600 (linux_corefile_thread_callback): Update accordingly.
601 (linux_make_corefile_notes): Likewise.
602
603 2013-10-24 Pedro Alves <palves@redhat.com>
604
605 * NEWS (New options): Mention set/show startup-with-shell.
606 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
607 instead of 3.
608 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
609 startup-with-shell'.
610 (show_startup_with_shell): New function.
611 (_initialize_fork_child): Register the set/show startup-with-shell
612 commands.
613 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
614 * inf-ttrace.c (inf_ttrace_him): Remove comment.
615 * procfs.c (procfs_init_inferior): Remove comment.
616 * infcmd.c (startup_with_shell): New global.
617 * inferior.h (startup_with_shell): Declare global.
618 (STARTUP_WITH_SHELL): Delete.
619 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
620
621 2013-10-23 Pedro Alves <palves@redhat.com>
622
623 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
624 * common/signals.c: Include "gdb_assert.h".
625 (signals): New field 'symbol'.
626 (SET): Use the 'symbol' parameter.
627 (gdb_signal_to_symbol_string): New function.
628 * infrun.c (handle_inferior_event) <random signal>: In debug
629 output, print the random signal enum as string in addition to its
630 number.
631 * target/waitstatus.c (target_waitstatus_to_string): Print the
632 signal's enum value as string instead of the (POSIX) signal name.
633
634 2013-10-23 Gary Benson <gbenson@redhat.com>
635
636 PR 16013
637 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
638 from 32 to 18. Adjusted fscanf format string accordingly.
639 (Avoids leaving cmd unterminated.)
640 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
641 trun, retn or extra. (Avoids leaving extra unterminated.) Check
642 that local_address and remote_address will not overflow.
643 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
644 leaving dependencies unterminated. Parse size as "%u" to match
645 definition.
646
647 2013-10-22 Pedro Alves <palves@redhat.com>
648
649 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
650 set ecs->random signal.
651
652 2013-10-22 Pedro Alves <palves@redhat.com>
653
654 * infrun.c (keep_going): Update comments.
655
656 2013-10-22 Pedro Alves <palves@redhat.com>
657
658 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
659 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
660
661 2013-10-22 Pedro Alves <palves@redhat.com>
662
663 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
664 GDB_EXC_BAD_ACCESS.
665 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
666 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
667 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
668 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
669 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
670 (GDB_SIGNAL_LAST): Change description string.
671 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
672 Adjust to signal renaming.
673 * darwin-nat.c (darwin_decode_message): Likewise.
674
675 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
676
677 * MAINTAINERS (Write After Approval): Add myself to the list.
678
679 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
680
681 * breakpoint.c (update_watchpoint): If hardware watchpoints are
682 forced off, downgrade them to software watchpoints if possible,
683 and error out if not possible.
684 (watch_command_1): Move watchpoint type selection closer to
685 watchpoint creation, and extend the comments.
686
687 2013-10-18 Pedro Alves <palves@redhat.com>
688
689 PR gdb/16062
690 * infrun.c (handle_inferior_event): Keep going if we got a random
691 signal we should not stop for, instead of falling through to the
692 step tests.
693
694 2013-10-18 Yao Qi <yao@codesourcery.com>
695
696 * c-varobj.c (cplus_number_of_children): Fix indentation.
697
698 2013-10-17 Tom Tromey <tromey@redhat.com>
699
700 PR gdb/15995:
701 * printcmd.c (printcmd): Call gdb_flush.
702
703 2013-10-17 Tom Tromey <tromey@redhat.com>
704
705 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
706 (elf_locate_sections): Update.
707
708 2013-10-17 Yao Qi <yao@codesourcery.com>
709
710 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
711 * ada-varobj.c: Remove the include of ada-varobj.h.
712 (ada_varobj_get_number_of_children): Declare.
713 (ada_varobj_get_name_of_child): Make it static.
714 (ada_varobj_get_path_expr_of_child): Likewise.
715 (ada_varobj_get_value_of_child): Likewise.
716 (ada_varobj_get_type_of_child): Likewise.
717 (ada_varobj_get_value_of_array_variable): Likewise.
718 * ada-varobj.h: Remove.
719
720 2013-10-17 Yao Qi <yao@codesourcery.com>
721
722 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
723 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
724 * ada-varobj.c: Include "varobj.h".
725 (ada_number_of_children): New. Moved from varobj.c.
726 (ada_name_of_variable, ada_name_of_child): Likewise.
727 (ada_path_expr_of_child, ada_value_of_child): Likewise.
728 (ada_type_of_child, ada_value_of_variable): Likewise.
729 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
730 (ada_varobj_ops): New.
731 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
732 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
733 * gdbtypes.h (get_target_type): Declare.
734 * varobj.c: Remove the inclusion of "ada-varobj.h" and
735 "ada-lang.h".
736 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
737 (ANONYMOUS_UNION_NAME): Likewise.
738 (get_type, get_value_type, get_target_type): Remove declarations.
739 (value_get_print_value, varobj_value_get_print_value): Likewise.
740 (c_number_of_children, c_name_of_variable): Likewise.
741 (c_name_of_child, c_path_expr_of_child): Likewise.
742 (c_value_of_child, c_type_of_child): Likewise.
743 (c_value_of_variable, cplus_number_of_children): Likewise.
744 (cplus_class_num_children, cplus_name_of_variable): Likewise.
745 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
746 (cplus_value_of_child, cplus_type_of_child): Likewise.
747 (cplus_value_of_variable, java_number_of_children): Likewise.
748 (java_name_of_variable, java_name_of_child): Likewise.
749 (java_path_expr_of_child, java_value_of_child): Likewise.
750 (java_type_of_child, java_value_of_variable): Likewise.
751 (ada_number_of_children, ada_name_of_variable): Likewise.
752 (ada_name_of_child, ada_path_expr_of_child): Likewise.
753 (ada_value_of_child, ada_type_of_child): Likewise.
754 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
755 (ada_value_has_mutated): Likewise.
756 (struct language_specific): Move it to varobj.h.
757 (CPLUS_FAKE_CHILD): Move it to varobj.h.
758 (restrict_range): Rename it varobj_restrict_range. Make it extern.
759 Callers update.
760 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
761 Make it extern.
762 (is_anonymous_child): Move it to c-varobj.c and rename to
763 varobj_is_anonymous_child. Caller update.
764 (get_type): Move it to c-varobj.c.
765 (get_value_type): Rename it varobj_get_value_type. Make it
766 extern.
767 (get_target_type): Move it gdbtypes.c.
768 (varobj_formatted_print_options): New function.
769 (value_get_print_value): Rename it to
770 varobj_value_get_print_value and make it extern.
771 (varobj_value_is_changeable_p): Make it extern.
772 (adjust_value_for_child_access): Move it to c-varobj.c.
773 (default_value_is_changeable_p): Rename it to
774 varobj_default_value_is_changeable_p. Make it extern.
775 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
776 (c_name_of_child, c_path_expr_of_child): Likewise.
777 (c_value_of_child, c_type_of_child): Likewise.
778 (c_value_of_variable, cplus_number_of_children): Likewise.
779 (cplus_class_num_children, cplus_name_of_variable): Likewise.
780 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
781 (cplus_value_of_child, cplus_type_of_child): Likewise.
782 (cplus_value_of_variable): Likewise.
783 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
784 (java_name_of_child, java_path_expr_of_child): Likewise.
785 (java_value_of_child, java_type_of_child): Likewise.
786 (java_value_of_variable): Likewise.
787 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
788 (ada_name_of_child, ada_path_expr_of_child): Likewise.
789 (ada_value_of_child, ada_type_of_child): Likewise.
790 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
791 (ada_value_has_mutated): Likewise.
792 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
793 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
794 (c_varobj_ops, cplus_varobj_ops): Declare.
795 (java_varobj_ops, ada_varobj_ops): Declare.
796 (varobj_default_value_is_changeable_p): Declare.
797 (varobj_value_is_changeable_p): Declare.
798 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
799 (varobj_get_path_expr_parent): Declare.
800 (varobj_value_get_print_value): Declare.
801 (varobj_formatted_print_options): Declare.
802 (varobj_restrict_range): Declare.
803
804 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
805
806 * target/waitstatus.h (target_waitkind): Remove spurious
807 character from the comments.
808
809 2013-10-17 Joel Brobecker <brobecker@adacore.com>
810
811 * gdbarch.sh (get_longjmp_target): Add method documentation.
812 * gdbarch.h: Regenerate.
813
814 2013-10-16 Tom Tromey <tromey@redhat.com>
815
816 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
817 label.
818
819 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
820
821 * gcore.in: Call GDB using the full path to the gcore script.
822 Error out if the GDB binary is not found.
823
824 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
825
826 PR gdb/16014
827 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
828 sizeof.
829
830 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
831
832 PR gdb/16042
833 * target.c (target_disable_btrace): Fix invalid return value for
834 void function.
835 (target_teardown_btrace): Likewise.
836
837 2013-10-14 Yao Qi <yao@codesourcery.com>
838
839 * varobj.c (struct varobj): Move most of the fields to
840 varobj.h.
841 (struct varobj_dynamic): New struct.
842 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
843 (varobj_has_more): Likewise.
844 (dynamic_varobj_has_child_method): Likewise.
845 (update_dynamic_varobj_children): Likewise.
846 (varobj_get_num_children): Likewise.
847 (varobj_list_children, varobj_pretty_printed_p): Likewise.
848 (install_new_value_visualizer): Likewise.
849 (install_new_value_visualizer, install_new_value): Likewise.
850 (varobj_update, new_variable, free_variable): Likewise.
851 (my_value_of_variable, value_get_print_value): Likewise.
852 (install_visualizer): Change the type of parameter 'var' to
853 'struct varobjd_dynamic *'. Callers update.
854 * varobj.h (struct varobj): Moved from varobj.c.
855 (struct varobj) <dynamic>: New field.
856
857 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
858
859 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
860 as the preferred name of r30.
861 * nios2-linux-tdep.c (reg_offsets): Likewise.
862 * features/nios2-cpu.xml: Likewise.
863 * features/nios2-linux.c: Regenerated.
864 * features/nios2.c: Regenerated.
865 * regformats/nios2-linux.dat: Regenerated.
866
867 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
868
869 Canonicalize directories for EXEC_FILENAME.
870 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
871 exec_filename.
872 * utils.c (gdb_realpath_keepfile): New function.
873 * utils.h (gdb_realpath_keepfile): New declaration.
874
875 2013-10-11 Doug Evans <dje@google.com>
876
877 * Makefile.in (GDBFLAGS): New variable.
878 (run): New rule.
879
880 2013-10-11 Joel Brobecker <brobecker@adacore.com>
881
882 * NEWS: Add entry documenting the new "-catch-assert" and
883 "-catch-exception" GDB/MI commands.
884
885 2013-10-11 Joel Brobecker <brobecker@adacore.com>
886
887 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
888 "enabled".
889 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
890 "enabled". Set B->ENABLE_STATE accordingly.
891 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
892 ada-lang.c.
893 (create_ada_exception_catchpoint): Add declaration.
894 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
895 (create_ada_exception_catchpoint): Make non-static. Add new
896 parameter "disabled". Use it in call to
897 init_ada_exception_breakpoint.
898 (catch_ada_exception_command): Add parameter "enabled" in call
899 to create_ada_exception_catchpoint.
900 (catch_assert_command): Likewise.
901
902 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
903 Add declarations.
904 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
905 "catch-exception" commands.
906 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
907 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
908
909 2013-10-11 Joel Brobecker <brobecker@adacore.com>
910
911 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
912 "enum exception_catchpoint_kind". Replace the "ex_" prefix
913 of all its enumerates with "ada_". Update the rest of this
914 file throughout.
915
916 2013-10-11 Joel Brobecker <brobecker@adacore.com>
917
918 * ada-lang.c (ada_decode_exception_location): Delete.
919 (create_ada_exception_catchpoint): Remove arguments "sal",
920 "addr_string" and "ops". Add argument "ex_kind" instead.
921 Adjust implementation accordingly, calling ada_exception_sal
922 to get the entities it no longer gets passed as arguments.
923 Document the function's arguments.
924 (catch_ada_exception_command): Use catch_ada_exception_command_split
925 instead of ada_decode_exception_location, and update call to
926 create_ada_exception_catchpoint.
927 (catch_ada_assert_command_split): Renames
928 ada_decode_assert_location. Remove parameters "addr_string" and
929 "ops", and now returns void. Adjust implementation accordingly.
930 Update the function documentation.
931 (catch_assert_command): Use catch_ada_assert_command_split
932 instead of ada_decode_assert_location. Update call to
933 create_ada_exception_catchpoint.
934
935 2013-10-11 Joel Brobecker <brobecker@adacore.com>
936
937 * utils.h (perror_warning_with_name): Add declaration.
938 * utils.c (perror_warning_with_name): New function.
939 * cli/cli-cmds.c (source_script_with_search): Add call to
940 perror_warning_with_name if from_tty is nul.
941
942 2013-10-11 Joel Brobecker <brobecker@adacore.com>
943
944 * utils.c (perror_string): New function, extracted out of
945 throw_perror_with_name.
946 (throw_perror_with_name): Rework to use perror_string.
947
948 2013-10-11 Yao Qi <yao@codesourcery.com>
949
950 * remote.c (discard_pending_stop_replies_in_queue): Update
951 declaration.
952 (struct stop_reply) <rs>: New field.
953 (remove_stop_reply_of_remote_state): New function.
954 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
955 Callers update. Pass remove_stop_reply_of_remote_state to
956 QUEUE_iterate.
957 (remote_parse_stop_reply): Initialize field 'rs'.
958
959 2013-10-10 Will Newton <will.newton@linaro.org>
960
961 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
962 linux_init_abi.
963
964 2013-10-10 Joel Brobecker <brobecker@adacore.com>
965
966 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
967 serial_baud_show_cmd.
968 (_initialize_cli_cmds): Delete the code creating the
969 "set/show remotebaud" commands.
970 * serial.c (baud_rate): Move here from top.c.
971 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
972 (_initialize_serial): Create "set/show serial baud" commands.
973 Add "set/show remotebaud" command aliases.
974 * top.c (baud_rate): Moved to serial.c.
975 * NEWS: Document the new "set/show serial baud" commands,
976 replacing "set/show remotebaud".
977
978 2013-10-09 Pedro Alves <palves@redhat.com>
979
980 * breakpoint.c (insert_bp_location): Use memory_error_message to
981 build the memory error string.
982 * c-lang.c: Include "gdbcore.h".
983 (c_get_string): Use memory_error to throw error.
984 (target_xfer_memory_error): Delete.
985 (memory_error_message): New, factored out from
986 target_xfer_memory_error.
987 (memory_error): Change parameter type to target_xfer_error.
988 Rewrite.
989 (read_memory): Use memory_error instead of
990 target_xfer_memory_error.
991 * gdbcore.h: Include "target.h".
992 (memory_error): Change parameter type to target_xfer_error.
993 (memory_error_message): Declare function.
994 * target.c (target_read_memory, target_read_stack)
995 (target_write_memory, target_write_raw_memory): Return
996 TARGET_XFER_E_IO on error. Adjust comments.
997 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
998 instead of EIO.
999 * target.h (target_read, target_insert_breakpoint)
1000 (target_remove_breakpoint): Adjust comments.
1001 * valprint.c (partial_memory_read): Rename parameter, and adjust
1002 comment.
1003 (val_print_string): Use memory_error_message to build the memory
1004 error string.
1005
1006 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1007
1008 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1009 result variable. Rename variable fopen_e_ever_failed to
1010 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1011
1012 2013-10-09 Pedro Alves <palves@redhat.com>
1013
1014 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1015 (monitor_write_memory_longlongs, monitor_write_memory_block):
1016 Constify 'myaddr' parameter.
1017 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1018 helper.
1019 (monitor_xfer_partial): New function.
1020 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1021 hook. Install a to_xfer_partial hook.
1022
1023 2013-10-09 Tom Tromey <tromey@redhat.com>
1024
1025 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1026 bfd_get_alt_debug_link_info.
1027
1028 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1029
1030 New flag OBJF_NOT_FILENAME.
1031 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1032 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1033 allocate_objfile.
1034 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1035 symbol_file_add_from_bfd.
1036 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1037 allocate_objfile.
1038 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1039 NULL.
1040 * objfiles.h (OBJF_NOT_FILENAME): New.
1041
1042 2013-10-08 Tom Tromey <tromey@redhat.com>
1043
1044 * Makefile.in (SFILES): Add build-id.c.
1045 (HFILES_NO_SRCDIR): Add build-id.h.
1046 * build-id.c: New file, largely from elfread.c. Modified
1047 most functions.
1048 * build-id.h: New file.
1049 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1050 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1051 Search for dwz file using build-id.
1052 * elfread.c (build_id_bfd_get, build_id_verify)
1053 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1054
1055 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1056
1057 * ada-lang.c (compare_names_with_case): Renamed from
1058 compare_names, adding a new parameter "casing" and its handling.
1059 New function documentation.
1060 (compare_names): New function, implemented using
1061 compare_names_with_case.
1062
1063 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1064
1065 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1066
1067 2013-10-07 Tom Tromey <tromey@redhat.com>
1068
1069 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1070 demangled_names_hash.
1071 (free_objfile): Don't delete the demangled_names_hash.
1072 * objfiles.h (struct objfile_per_bfd_storage)
1073 <demangled_names_hash>: New field.
1074 (struct objfile) <demangled_names_hash>: Move to
1075 objfile_per_bfd_storage.
1076 * symfile.c (reread_symbols): Don't delete the
1077 demangled_names_hash.
1078 * symtab.c (create_demangled_names_hash): Update.
1079 (symbol_set_names): Update.
1080
1081 2013-10-07 Tom Tromey <tromey@redhat.com>
1082
1083 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1084 needs_relocations>: New fields.
1085 (gdb_bfd_requires_relocations): New function.
1086 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1087 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1088 the BFD needs relocations applied.
1089
1090 2013-10-07 Pedro Alves <palves@redhat.com>
1091
1092 PR breakpoints/11568
1093 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1094 the thread list" instead of "gone".
1095
1096 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1097
1098 * NEWS: Mention new convenience variable $_exitsignal.
1099 * corelow.c (core_open): Reset exit convenience variables. Set
1100 $_exitsignal to the uncaught signal which generated the corefile.
1101 * infrun.c (handle_inferior_event): Reset exit convenience
1102 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1103 (clear_exit_convenience_vars): New function.
1104 * inferior.h (clear_exit_convenience_vars): New prototype.
1105
1106 2013-10-06 Yao Qi <yao@codesourcery.com>
1107
1108 * varobj.h: Add comments to enum varobj_languages.
1109
1110 2013-10-04 Doug Evans <dje@google.com>
1111
1112 Add support for DWP file format version 2.
1113 * NEWS: Mention support for DWP file format version 2.
1114 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1115 union of asection, containing_section. New fields virtual_offset
1116 and is_virtual. Change type of readin filed from int to char.
1117 (dwo_sections, dwo_file): Tweak comments.
1118 (dwp_v2_section_ids): New enum.
1119 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1120 str_offsets, types.
1121 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1122 All uses updated.
1123 (virtual_v2_dwo_sections): New struct.
1124 (dwp_hash_table): New fields version, nr_columns. Change type of
1125 section_pool field to a union.
1126 (dwp_file): New field version.
1127 (dwarf2_has_info): Check for virtual sections.
1128 (get_containing_section): New function.
1129 (get_section_bfd_owner, get_section_bfd_section): Call it.
1130 (dwarf2_locate_sections): Update.
1131 (dwarf2_section_empty_p): Update.
1132 (dwarf2_read_section): Handle virtual sections.
1133 (locate_dwz_sections): Update.
1134 (create_dwp_hash_table): Document and handle V2 format.
1135 (locate_v1_virtual_dwo_sections): Renamed from
1136 locate_virtual_dwo_sections and update. All callers updated.
1137 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1138 Delete arg htab. Rename arg section_index to unit_index.
1139 All callers updated.
1140 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1141 All uses updated.
1142 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1143 (lookup_dwo_unit_in_dwp): Add V2 support.
1144 (dwarf2_locate_dwo_sections): Update.
1145 (dwarf2_locate_common_dwp_sections): Renamed from
1146 dwarf2_locate_dwp_sections and update. All callers updated.
1147 (dwarf2_locate_v2_dwp_sections): New function.
1148 (open_and_init_dwp_file): Add V2 support.
1149 (read_str_index): New locals str_section, str_offsets_section.
1150
1151 2013-10-04 Pedro Alves <palves@redhat.com>
1152
1153 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1154 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1155 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1156 describing comments with references to ptid.h.
1157 * common/ptid.h: Remove intro description of constructors,
1158 accessors and predicates.
1159 (struct ptid): Reformat.
1160 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1161 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1162 describing comments.
1163
1164 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1165
1166 * aix-thread.c (sync_threadlists): Add missing ')' in call
1167 to ptid_build.
1168
1169 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1170
1171 * procfs.c (procfs_init_inferior): Fix typo causing the build
1172 to fail.
1173
1174 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1175
1176 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1177
1178 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1179
1180 * mi/mi-main.c (run_one_inferior): Add function description.
1181 Make ARG a pointer to an integer whose value determines whether
1182 we should "run" or "start" the program.
1183 (mi_cmd_exec_run): Add handling of the "--start" option.
1184 Reject all other command-line options.
1185 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1186
1187 2013-10-04 Yao Qi <yao@codesourcery.com>
1188
1189 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1190 (struct notif_client) <pending_event>: Moved
1191 to struct remote_notif_state.
1192 <id>: New field.
1193 (struct remote_notif_state) <pending_event>: New field.
1194 (notif_event_xfree): Declare.
1195 * remote-notif.c (handle_notification): Adjust.
1196 (notif_event_xfree): New function.
1197 (do_notif_event_xfree): Call notif_event_xfree.
1198 (remote_notif_state_xfree): Call notif_event_xfree to free
1199 each element in field pending_event.
1200 * remote.c (discard_pending_stop_replies): Remove declaration.
1201 (discard_pending_stop_replies_in_queue): Declare.
1202 (remote_close): Call discard_pending_stop_replies_in_queue
1203 instead of discard_pending_stop_replies.
1204 (remote_start_remote): Adjust.
1205 (stop_reply_xfree): Call notif_event_xfree.
1206 (notif_client_stop): Adjust initialization.
1207 (remote_notif_remove_all): Rename it to ...
1208 (remove_stop_reply_for_inferior): ... this. Update comments.
1209 Don't check INF is NULL.
1210 (discard_pending_stop_replies): Return early if notif_state is
1211 NULL. Adjust. Don't check INF is NULL.
1212 (remote_notif_get_pending_events): Adjust.
1213 (discard_pending_stop_replies_in_queue): New function.
1214 (remote_wait_ns): Likewise.
1215
1216 2013-10-04 Yao Qi <yao@codesourcery.com>
1217
1218 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1219 (notif_queue): Remove.
1220 (remote_notif_process): Add one parameter 'notif_queue'.
1221 Update comments. Callers update.
1222 (remote_async_get_pending_events_token): Remove.
1223 (remote_notif_register_async_event_handler): Remove.
1224 (remote_notif_unregister_async_event_handler): Remove.
1225 (handle_notification): Add parameter 'notif_queue'. Update
1226 comments. Callers update.
1227 (notif_xfree): Remove.
1228 (remote_notif_state_allocate): New function.
1229 (remote_notif_state_xfree): New function.
1230 (_initialize_notif): Remove code to allocate queue.
1231 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1232 (struct remote_notif_state): New.
1233 (handle_notification): Update declaration.
1234 (remote_notif_process): Likewise.
1235 (remote_notif_register_async_event_handler): Remove.
1236 (remote_notif_unregister_async_event_handler): Remove.
1237 (remote_notif_state_allocate): Declare.
1238 (remote_notif_state_xfree): Declare.
1239 * remote.c (struct remote_state) <notif_state>: New field.
1240 (remote_close): Don't call
1241 remote_notif_unregister_async_event_handler. Call
1242 remote_notif_state_xfree.
1243 (remote_open_1): Don't call
1244 remote_notif_register_async_event_handler. Call
1245 remote_notif_state_allocate.
1246
1247 2013-10-04 Yao Qi <yao@codesourcery.com>
1248
1249 * varobj.c (create_child_with_value): Remove 'const' from the
1250 type of parameter 'name'.
1251 (varobj_add_child): Likewise.
1252 (install_dynamic_child): Remove 'const' from the type of
1253 parameter 'name'.
1254 (varobj_add_child): Likewise.
1255 (create_child_with_value): Likewise. Update comments. Don't
1256 duplicate 'name'.
1257 (update_dynamic_varobj_children): Duplicate 'name'
1258 and pass it to install_dynamic_child.
1259
1260 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1261
1262 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1263 conversion logic to occur after PyLong_Check. Comment on order
1264 change significance.
1265 * python/py-arch.c (archpy_disassemble): Comment on order of
1266 conversion for integers and longs.
1267
1268 2013-10-03 Pedro Alves <palves@redhat.com>
1269
1270 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1271 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1272 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1273 PTRACE_O_TRACEFORK is not supported.
1274 (linux_test_for_tracesysgood): New function.
1275 (linux_test_for_tracefork): New function, factored out from
1276 linux_check_ptrace_features, and also don't kill child_pid here.
1277
1278 2013-10-03 Tristan Gingold <gingold@adacore.com>
1279
1280 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1281 Remove verbose error reporting. Use detected state to
1282 thread_set_state call.
1283 (i386_darwin_dr_get): Fix return type. Remove verbose error
1284 report.
1285 Remove trailing spaces.
1286
1287 2013-10-02 Pedro Alves <palves@redhat.com>
1288
1289 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1290 val_print_optimized_out.
1291 * jv-valprint.c (java_print_value_fields): Likewise.
1292 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1293 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1294 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1295 new optimized out value.
1296 * findvar.c (address_from_register): Likewise.
1297 * frame.c (put_frame_register): Tweak error string to say the
1298 register was not saved, rather than optimized out.
1299 * infcmd.c (default_print_one_register_info): Adjust call to
1300 val_print_optimized_out. Use value_of_register instead of
1301 get_frame_register_value.
1302 * mi/mi-main.c (output_register): Use value_of_register instead of
1303 get_frame_register_value.
1304 * valprint.c (valprint_check_validity): Likewise.
1305 (val_print_optimized_out): New value parameter. If the value is
1306 lval_register, print <not saved> instead.
1307 (value_check_printable, val_print_scalar_formatted): Adjust calls
1308 to val_print_optimized_out.
1309 * valprint.h (val_print_optimized_out): New value parameter.
1310 * value.c (struct value) <optimized_out>: Extend comment.
1311 (error_value_optimized_out): New function.
1312 (require_not_optimized_out): Use it. Use a different string for
1313 lval_register values.
1314 * value.h (error_value_optimized_out): New declaration.
1315 * NEWS: Mention <not saved>.
1316
1317 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1318
1319 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1320 strcmp to compare two symtab filenames.
1321
1322 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1323
1324 * symtab.c (search_symbols_equal): Delete.
1325 (sort_search_symbols_remove_dups): Replace call to
1326 search_symbols_equal by call to compare_search_syms,
1327 adjusting as necessary.
1328
1329 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1330
1331 PR python/15579
1332 * python/python.c: Document gdb.execute command in Python help.
1333
1334 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1335
1336 * python/py-frame.c (frame_info_to_frame_object): Use
1337 gdbpy_convert_exception. Clean up Python object on failure.
1338
1339 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1340
1341 * python/lib/gdb/command/frame_filters.py
1342 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1343 (ShowFrameFilterPriority.invoke): Ditto.
1344
1345 2013-10-01 Keith Seitz <keiths@redhat.com>
1346
1347 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1348 (parse_linespec): Make 'argptr' const.
1349 Remove temporary cast of 'argptr' to const char **.
1350 (decode_line_full): Pass const pointer to parse_linespec.
1351 (decode_line_1): Likewise.
1352 (decode_objc): Make local variable 'new_argptr' const.
1353 (find_function_symbols): Remove temporary cast to char *
1354 to find_imps.
1355 * objc-lang.c (find_imps): Make argument 'method' const.
1356 Return const.
1357 * objc-lang.h (find_imps): Likewise.
1358
1359 2013-10-01 Keith Seitz <keiths@redhat.com>
1360
1361 * completer.c (skip_quoted_chars): Make all arguments const.
1362 Return const.
1363 (skip_quoted): Likewise.
1364 * completer.h (skip_quoted_chars): Likewise.
1365 (skip_quoted): Likewise.
1366 * defs.h (skip_quoted): Remove duplicate declaration.
1367 * jv-exp.y: Include completer.h.
1368 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1369 * p-exp.y: Include completer.h.
1370
1371 2013-10-01 Keith Seitz <keiths@redhat.com>
1372
1373 * c-exp.y (parse_number): Make first argument const.
1374 Make a copy of the input to manipulate.
1375 (c_parse_escape): Make first argument const.
1376 Make local variable 'tokptr' const.
1377 (parse_string_or_char): Make first two arguments const.
1378 (macro_original_text): Make const.
1379 (lex_one_token): Make local variable 'tokstart' const.
1380 Likewise for local variables named 'p'.
1381 Cast away const for struct stoken (temporary).
1382 * c-lang.h (c_parse_escpae): Make first argument const.
1383 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1384 const.
1385 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1386 var_string case.
1387 * f-exp.y (parse_number): Make first argument const.
1388 (match_string_literal): Make local variable 'tokstart'
1389 const.
1390 (yylex): Make local variable 'p' const.
1391 Cast away const for struct stoken (temporary).
1392 * go-exp.y (parse_number): Make first argument const.
1393 (parse_string_or_char): Likewise.
1394 Make local variable 'tokstart' const.
1395 (lex_one_token): Likewise for numerous locals called 'p'.
1396 Cast away const for struct stoken (temporary).
1397 * jv-exp.y (parse_number): Make first argument const.
1398 Make local variables 'tokstart' and 'tokptr' const.
1399 Cast away const for call to skip_quoted (temporary).
1400 (yylex): Make local variable 'p' const.
1401 Cast away const for struct stoken (temporary).
1402 * m2-exp.y (parse_number): Make local variable 'p' const.
1403 (yylex): Likewise for 'tokstart'.
1404 Cast away const for struct stoken (temporary).
1405 Make local variable 'p' const.
1406 * macroexp.c (get_character_constant): Pass a const string
1407 to c_parse_escape.
1408 (get_string_literal): Likewise.
1409 (macro_expand_next): Make first argument const.
1410 Cast away const for init_shared_buffer.
1411 * macroexp.h (macro_expand_next): Make first argument const.
1412 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1413 Pass a const string to c_parse_escape.
1414 Make local variables 'p' and 'namestart' const.
1415 * parse.c (lexptr): Make const.
1416 (prev_lexptr): Likewise.
1417 (find_template_name_end): Return const.
1418 Make argument const, too.
1419 (parse_exp_in_context): Make first argument const.
1420 Remove the entire const_hack.
1421 (parse_exp_in_context_1): Make first argument const.
1422 * parser-defs.h (find_template_name_end): Return const.
1423 Make argument const, too.
1424 (lexptr): Make const.
1425 (prev_lexptr): Likewise.
1426 * utils.c (parse_escape): Make second argument const.
1427 * utils.h (parse_escape): Likewise.
1428
1429 2013-10-01 Keith Seitz <keiths@redhat.com>
1430
1431 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1432 is now const.
1433 (block_lookup): Make 'raw_name' and 'name' const.
1434 * ada-lex.l (processString): Update for struct stoken.ptr.
1435 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1436 (operator_stoken): Likewise.
1437 (lex_one_token): Remove temporary cast to char * for
1438 'yylval.sval.ptr'.
1439 * f-exp.y (yylex): Likewise.
1440 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1441 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1442 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1443 'yylval.sval.ptr'.
1444 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1445 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1446 * linespec.c (struct ls_parser): Make 'stream' const.
1447 (find_parameter_list_end): Make argument 'input' and local
1448 variable 'p' const.
1449 (linespec_lexer_lex_string): Make local variables 'start' and
1450 'p' const.
1451 Use skip_spaces_const instead of skip_spaces.
1452 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1453 const.
1454 (parse_linespec): Temporarily cast 'argptr' to const for
1455 'parser->lexer.stream'.
1456 * m2-exp.y (yylex): Remove temporary cast to char * for
1457 'yylval.sval.ptr'.
1458 * objc-lang.c (add_msglist): Make local variable 'p' const.
1459 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1460 (exp : STRING): Make 'sp' const.
1461 (parse_number): Make argument 'p' const.
1462 * parser-defs.h (struct stoken): Make 'ptr' const.
1463
1464 2013-10-01 Doug Evans <dje@google.com>
1465
1466 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1467
1468 2013-10-01 Yao Qi <yao@codesourcery.com>
1469
1470 * varobj.c (c_value_of_root): Remove declaration.
1471 (cplus_value_of_root, java_value_of_root): Likewise.
1472 (ada_value_of_root): Likewise.
1473 (struct language_specific) <value_of_root>: Remove.
1474 (languages): Update initialization.
1475 (check_scope): Move earlier.
1476 (c_value_of_root): Move earlier and rename to ...
1477 (value_of_root_1): ... this.
1478 (value_of_root): Caller update.
1479 (cplus_value_of_root, java_value_of_root): Remove.
1480 (ada_value_of_root): Remove.
1481
1482 2013-10-01 Yao Qi <yao@codesourcery.com>
1483
1484 * varobj.c (varobj_format_string): Remove "unknown".
1485 (languages): Remove the first element.
1486 * varobj.h (enum varobj_languages): Remove vlang_c.
1487
1488 2013-10-01 Yao Qi <yao@codesourcery.com>
1489
1490 * varobj.c (struct language_specific) <language>: Remove.
1491 (languages): Update the initialization.
1492
1493 2013-10-01 Yao Qi <yao@codesourcery.com>
1494
1495 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1496 "solib-target.h". Include "windows-tdep.h".
1497 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1498 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1499 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1500 windows-tdep.o to gdb_target_obs.
1501
1502 2013-10-01 Yao Qi <yao@codesourcery.com>
1503
1504 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1505 "solib-target.h".
1506 (amd64_windows_init_abi): Don't call set_solib_ops and
1507 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1508 windows_init_abi instead.
1509 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1510 "solib-target.h".
1511 (i386_cygwin_init_abi): Don't call set_solib_ops,
1512 set_gdbarch_has_dos_based_file_system and
1513 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1514 windows_init_abi instead.
1515 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1516 (windows_init_abi): New function.
1517 (windows_iterate_over_objfiles_in_search_order): Make it
1518 static.
1519 * windows-tdep.h (windows_init_abi): Declare.
1520 (windows_iterate_over_objfiles_in_search_order): Remove
1521 declaration.
1522
1523 2013-10-01 Jerome Guitton <guitton@adacore.com>
1524
1525 Checked in by Joel Brobecker <brobecker@adacore.com>
1526 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1527 incomplete dictionnary instead of None in case of missing
1528 environment variables.
1529 (elinos_init): in case of an incomplete environment, best
1530 effort to load system libraries instead of abort.
1531
1532 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1533
1534 * ada-lang.c (ada_has_this_exception_support): Ignore
1535 mst_solib_trampoline minimal symbols.
1536
1537 2013-09-30 Tristan Gingold <gingold@adacore.com>
1538
1539 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1540 hardware watchpoint.
1541 (i386_darwin_dr_set): Support 32 and 64 bit states.
1542 (i386_darwin_dr_get): Likewise.
1543 (i386_darwin_dr_set_control): Make static.
1544 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1545 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1546
1547 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1548
1549 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1550 Replace TIDGET with ptid_get_lwp.
1551 Replace GET_LWP with ptid_get_lwp.
1552 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1553 Replace BUILD_THREAD with ptid_build.
1554 Replace BUILD_LWP with ptid_build.
1555 Replace PIDGET with ptid_get_pid.
1556 Replace TIDGET with ptid_get_lwp.
1557 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1558 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1559 Replace TIDGET with ptid_get_lwp.
1560 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1561 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1562 Replace TIDGET with ptid_get_lwp.
1563 Replace GET_LWP with ptid_get_lwp.
1564 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1565 * auxv.c: Likewise.
1566 * breakpoint.c: Likewise.
1567 * common/ptid.c (ptid_is_pid): Condense check for
1568 null_ptid and minus_one_ptid.
1569 (ptid_lwp_p): New function.
1570 (ptid_tid_p): New function.
1571 * common/ptid.h: Update comments for accessors.
1572 (ptid_lwp_p): New prototype.
1573 (ptid_tid_p): New prototype.
1574 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1575 * gcore.c: Replace PIDGET with ptid_get_pid.
1576 * gdbthread.h: Likewise.
1577 * gnu-nat.c: Likewise.
1578 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1579 Replace TIDGET with ptid_get_lwp.
1580 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1581 * hppanbsd-nat.c: Likewise.
1582 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1583 Replace TIDGET with ptid_get_lwp.
1584 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1585 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1586 * infcmd.c: Likewise.
1587 * inferior.h: Likewise.
1588 * inflow.c: Likewise.
1589 * infrun.c: Likewise.
1590 * linux-fork.c: Likewise.
1591 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1592 Replace GET_PID with ptid_get_pid.
1593 Replace is_lwp with ptid_lwp_p.
1594 Replace GET_LWP with ptid_get_lwp.
1595 Replace BUILD_LWP with ptid_build.
1596
1597 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1598
1599 * common/linux-btrace.c: Move sys/syscall.h out of the
1600 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1601 Also check for SYS_perf_event_open before attempting to buid.
1602
1603 2013-09-27 Doug Evans <dje@google.com>
1604
1605 * dwarf2read.c (dwarf2_section_info): Add comment.
1606 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1607 All uses updated.
1608 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1609 (dwarf2_read_section): Delete unused local "header". Add section
1610 name to error message.
1611 (create_dwo_in_dwp): Tweak comment.
1612 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1613
1614 * dwarf2read.c (die_reader_specs): Tweak comment.
1615 (get_section_bfd_owner, get_section_bfd_section): New functions.
1616 (get_section_name, get_section_file_name): New functions.
1617 (get_section_id, get_section_flags): New functions.
1618 (*): Use new functions to access section fields.
1619
1620 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1621 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1622 arg "htab". All callers updated.
1623 (create_debug_types_hash_table): Remove redundant copy of
1624 abbrev_section.
1625 (create_dwo_in_dwp): Tweak comments.
1626 (read_str_index): Tweak comment. Record dwarf form name in static
1627 local.
1628
1629 2013-09-27 Pedro Alves <palves@redhat.com>
1630
1631 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1632 (remote_filename_p): Add comment.
1633 * remote.c (remote_filename_p): Adjust to use
1634 REMOTE_SYSROOT_PREFIX.
1635 * solib.c (solib_find): When deciding whether we need to add a
1636 directory separator, check whether the sysroot is "remote:"
1637 instead of checking whether the patch has a drive spec. Add
1638 comments.
1639
1640 2013-09-27 Pedro Alves <palves@redhat.com>
1641
1642 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1643 Delete fields.
1644 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1645 directly.
1646
1647 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1648
1649 Fix set debug frame output.
1650 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1651 SENTINEL_FRAME entry lower to match enum frame_type order.
1652
1653 2013-09-26 Pierre Muller <muller@sourceware.org>
1654
1655 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1656 AMD64_R15_REGNUM when a register index is expected.
1657 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1658 Substitute in array.
1659 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1660 (amd64_push_arguments): Substitute in integer_regnum array.
1661
1662 2013-09-25 Doug Evans <dje@google.com>
1663
1664 * objfiles.c (allocate_objfile): Move comment to better place.
1665
1666 New option "set debug symfile on".
1667 * NEWS: Mention "set debug symfile".
1668 * Makefile.in (SFILES): Add symfile-debug.c.
1669 (COMMON_OBS): Add symfile-debug.o.
1670 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1671 objfile's symbol functions.
1672 * objfiles.h (objfile_set_sym_fns): Declare.
1673 * symfile-debug.c: New file.
1674 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1675 objfile's symbol functions.
1676 (reread_symbols): Ditto.
1677
1678 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1679 All uses updated.
1680 (add_symtab_fns): Update prototype.
1681 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1682 (registered_sym_fns): ... this.
1683 (symtab_fns): Update.
1684 (add_symtab_fns): New arg "flavour". All callers updated.
1685 (find_sym_fns): Rewrite to use new sym_fns registry.
1686
1687 * symfile.h (struct sym_fns): Add "objfile" argument to
1688 sym_read_linetable. All uses updated.
1689
1690 * symtab.c (domain_name, search_domain_name): New functions.
1691 * symtab.h (domain_name, search_domain_name): Declare.
1692
1693 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1694 map_matching_symbols so objfile is first. All uses updated.
1695 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1696 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1697
1698 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1699
1700 PR shlibs/8882
1701 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1702 link map entries.
1703
1704 2013-09-24 Doug Evans <dje@google.com>
1705
1706 * objfiles.c (free_objfile): Move comment.
1707
1708 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1709
1710 * ada-exp.y (string_to_operator): Delete.
1711 (dummy_string_to_ada_operator): Delete.
1712
1713 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1714
1715 Revert:
1716 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1717 amd64-tdep.c.
1718 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1719 call_dummy_integer_regs, and classify.
1720 * amd64-tdep.h (amd64_classify): Add declaration.
1721 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1722 (amd64_reg_class): Delete, moved to i386-tdep.h.
1723 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1724 Replace call to amd64_classify by call to tdep->classify.
1725 (amd64_push_arguments): Get the list of registers to use for
1726 passing integer parameters from the gdbarch tdep structure,
1727 rather than using a hardcoded one. Replace calls to amd64_classify
1728 by calls to tdep->classify.
1729 (amd64_push_dummy_call): Get the register number used for
1730 the "hidden" argument from tdep->call_dummy_integer_regs.
1731 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1732 and tdep->call_dummy_integer_regs. Set tdep->classify.
1733
1734 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1735
1736 Revert:
1737 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1738 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1739 where tdep->memory_args_by_pointer is non-zero.
1740
1741 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1742
1743 Revert:
1744 * i386-tdep.h (struct gdbarch_tdep): Add new field
1745 integer_param_regs_saved_in_caller_frame.
1746 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1747 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1748
1749 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1750
1751 * amd64-windows-tdep.c: #include "value.h"
1752 (amd64_windows_classify): Delete.
1753 (amd64_windows_passed_by_integer_register)
1754 (amd64_windows_passed_by_xmm_register)
1755 (amd64_windows_passed_by_pointer)
1756 (amd64_windows_adjust_args_passed_by_pointer)
1757 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1758 (amd64_windows_push_dummy_call): New functions.
1759 (amd64_windows_init_abi): Remove setting of
1760 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1761 tdep->classify, tdep->memory_args_by_pointer and
1762 tdep->integer_param_regs_saved_in_caller_frame.
1763 Add call to set_gdbarch_push_dummy_call.
1764
1765 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1766
1767 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1768 objfile->original_name.
1769
1770 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1771
1772 Pass down original filename for objfile.
1773 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1774 * elfread.c (elf_symfile_read): Likewise.
1775 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1776 longer set ORIGINAL_NAME.
1777 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1778 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1779 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1780 symbol_file_add_from_bfd call.
1781 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1782 (macho_check_dsym): Add parameter filenamep. Change function comment.
1783 Set *filenamep.
1784 (macho_symfile_read): New variable dsym_filename. Update
1785 macho_check_dsym call. Use it for symbol_file_add_separate.
1786 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1787 it. Use it for objfile->original_name.
1788 (objfile_name): Return OBFD's filename, if available.
1789 * objfiles.h (allocate_objfile): Add new parameter name.
1790 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1791 * symfile-mem.c (symbol_file_add_from_memory): Update
1792 symbol_file_add_from_bfd call.
1793 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1794 comment for it.
1795 (symbol_file_add_with_addrs): New parameter name, add function comment
1796 for it. Remove variable name. Update allocate_objfile call.
1797 (symbol_file_add_separate): New parameter name, add function comment
1798 for it. Update symbol_file_add_with_addrs call.
1799 (symbol_file_add_from_bfd): New parameter name. Update
1800 symbol_file_add_with_addrs call.
1801 (symbol_file_add): Update symbol_file_add_from_bfd call.
1802 (reread_symbols): New variable original_name. Save
1803 objfile->original_name by it.
1804 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1805 second parameter.
1806
1807 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1808
1809 Code cleanup: Add objfile_name accessor function.
1810 * ada-lang.c (is_known_support_routine): Use objfile_name.
1811 * auto-load.c (source_gdb_script_for_objfile)
1812 (auto_load_objfile_script): Likewise.
1813 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1814 * dbxread.c (dbx_symfile_read): Likewise.
1815 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1816 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1817 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1818 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1819 (lookup_dwp_signatured_type, lookup_dwo_unit)
1820 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1821 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1822 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1823 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1824 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1825 (read_subrange_type, load_partial_dies, read_partial_die)
1826 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1827 (die_containing_type, build_error_marker_type, lookup_die_type)
1828 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1829 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1830 (get_DW_AT_signature_type, write_psymtabs_to_index)
1831 (save_gdb_index_command): Likewise.
1832 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1833 Likewise.
1834 * expprint.c (dump_subexp_body_standard): Likewise.
1835 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1836 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1837 original_name.
1838 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1839 obj_name, use objfile_name for it, use the variable.
1840 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1841 Use objfile_name.
1842 * machoread.c (macho_symtab_read, macho_check_dsym)
1843 (macho_symfile_relocate): Likewise.
1844 * maint.c (maintenance_translate_address): Likewise.
1845 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1846 * minsyms.c (install_minimal_symbols): Likewise.
1847 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1848 original_name.
1849 (filter_overlapping_sections): Use objfile_name.
1850 (objfile_name): New function.
1851 * objfiles.h (struct objfile): Rename field name to original_name.
1852 (objfile_name): New prototype.
1853 * printcmd.c (sym_info, address_info): Use objfile_name.
1854 * probe.c (parse_probes, collect_probes, compare_probes)
1855 (info_probes_for_ops): Likewise.
1856 * progspace.c (clone_program_space): Likewise.
1857 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1858 (maintenance_info_psymtabs): Likewise.
1859 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1860 (source_section_scripts): Likewise.
1861 * python/py-objfile.c (objfpy_get_filename): Likewise.
1862 * python/py-progspace.c (pspy_get_filename): Likewise.
1863 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1864 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1865 * solib.c (solib_read_symbols): Likewise.
1866 * stabsread.c (scan_file_globals): Likewise.
1867 * stap-probe.c (handle_stap_probe): Likewise.
1868 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1869 (find_separate_debug_file_by_debuglink): Likewise.
1870 (reread_symbols): Likewise. Use the objfile field name renamed to
1871 original_name.
1872 (allocate_symtab): Use objfile_name.
1873 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1874 (dump_objfile, dump_msymbols, dump_symtab_1)
1875 (maintenance_print_msymbols, maintenance_print_objfiles)
1876 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1877 * target.c (target_translate_tls_address, target_info): Likewise.
1878 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1879 objfile_name.
1880
1881 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1882
1883 Code cleanup.
1884 * probe.c (parse_probes): Rename variable objfile_name to
1885 objfile_namestr.
1886
1887 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1888
1889 Remove solib-sunos.c.
1890 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1891 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1892 * objfiles.c (rt_common_objfile): Remove.
1893 (free_objfile): Remove rt_common_objfile comparison.
1894 * objfiles.h (rt_common_objfile): Remove.
1895 * solib-sunos.c: Remove.
1896 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1897
1898 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1899
1900 Remove a.out NetBSD and OpenBSD hosts.
1901 * NEWS (Removed native configurations): New.
1902 * config/arm/nbsdaout.mh: Remove.
1903 * config/i386/nbsdaout.mh: Remove.
1904 * config/i386/obsdaout.mh: Remove.
1905 * config/m68k/nbsdaout.mh: Remove.
1906 * config/sparc/nbsdaout.mh: Remove.
1907 * config/vax/nbsdaout.mh: Remove.
1908 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1909 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1910 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1911 error.
1912 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1913 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1914 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1915
1916 2013-09-23 Tom Tromey <tromey@redhat.com>
1917
1918 * linespec.c (struct minsym_and_objfile): Remove.
1919 (minsym_and_objfile_d): Remove.
1920 (struct linespec, struct collect_info, linespec_parse_basic)
1921 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1922 (compare_msymbols, find_method, find_function_symbols)
1923 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1924 (add_minsym, search_minsyms_for_name): Update.
1925
1926 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1927
1928 * regcache.c: Add include of valprint.h.
1929 (dump_endian_bytes): Delete.
1930 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1931
1932 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1933
1934 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1935
1936 2013-09-19 Pedro Alves <palves@redhat.com>
1937
1938 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1939 breakpoints.
1940
1941 2013-09-19 Pedro Alves <palves@redhat.com>
1942 Thomas Schwinge <thomas@codesourcery.com>
1943 Yue Lu <hacklu.newborn@gmail.com>
1944
1945 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1946 Take a gdb_byte pointer instead of a char pointer.
1947
1948 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1949 gnu_xfer_partial helper.
1950 (gnu_xfer_partial): New function.
1951 (gnu_target): Don't install a deprecated_xfer_memory hook.
1952 Install a to_xfer_partial hook.
1953
1954 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1955
1956 Constification.
1957 * main.c (captured_main): Replace catch_command_errors by
1958 catch_command_errors_const. Twice.
1959 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1960 (symbol_file_add): Make name parameter const.
1961 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1962 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1963 variable name. Change their usage accordingly.
1964 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1965 const.
1966 (symbol_file_add_main): Make args parameter const.
1967
1968 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1969 Ulrich Weigand <uweigand@de.ibm.com>
1970
1971 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1972 of c_value member.
1973 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1974
1975 2013-09-18 Pedro Alves <palves@redhat.com>
1976 Yue Lu <hacklu.newborn@gmail.com>
1977
1978 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1979 (gnu_create_inferior)
1980 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1981 (set_sig_thread_cmd): Use the lwpid field of ptids to
1982 store/extract thread ids instead of the tid field.
1983 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1984
1985 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1986
1987 * infcmd.c (default_print_one_register_info): Add detection of
1988 optimized out values.
1989 (default_print_registers_info): Switch to using
1990 get_frame_register_value.
1991
1992 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1993
1994 * infrun.c (handle_inferior_event): Check if we know the
1995 function start address before setting a resume breakpoint.
1996
1997 2013-09-18 Pedro Alves <palves@redhat.com>
1998
1999 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2000 minus_one_ptid instead of looking at the ptid's tid field and
2001 comparing that to -1.
2002
2003 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2004
2005 * main.h (get_gdb_program_name): Remove extra whitespace.
2006
2007 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2008
2009 * main.h (get_gdb_program_name): Add declaration.
2010 * main.c (get_gdb_program_name): Add definition.
2011
2012 2013-09-17 Doug Evans <dje@google.com>
2013
2014 * dwarf2read.c: Move definitions of complaint functions to after
2015 forward declarations of local functions.
2016
2017 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2018 Pedro Alves <palves@redhat.com>
2019
2020 PR gdb/11568
2021 * breakpoint.c (remove_threaded_breakpoints): New function.
2022 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2023 as thread_exit observer.
2024
2025 2013-09-17 Pedro Alves <palves@redhat.com>
2026
2027 PR gdb/15911
2028 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2029 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2030 * corelow.c (core_open):
2031 * frame.h (print_stack_frame, print_frame_info): New
2032 'set_current_sal' parameter.
2033 * infcmd.c (finish_command, kill_command): Adjust call to
2034 print_stack_frame.
2035 * inferior.c (inferior_command): Likewise.
2036 * infrun.c (normal_stop): Likewise.
2037 * linux-fork.c (linux_fork_context): Likewise.
2038 * record-full.c (record_full_goto_entry, record_full_restore):
2039 Likewise.
2040 * remote-mips.c (common_open): Likewise.
2041 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2042 Use it.
2043 (print_frame_info): New 'set_current_sal' parameter. Set the last
2044 displayed sal depending on the new paremeter instead of looking at
2045 print_what.
2046 (backtrace_command_1, select_and_print_frame, frame_command)
2047 (current_frame_command, up_command, down_command): Adjust call to
2048 print_stack_frame.
2049 * thread.c (print_thread_info, restore_selected_frame)
2050 (do_captured_thread_select): Adjust call to print_stack_frame.
2051 * tracepoint.c (tfind_1): Likewise.
2052 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2053 (mi_cmd_stack_info_frame): Likewise.
2054 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2055 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2056
2057 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2058
2059 * value.c (isvoid_internal_fn): Replace "parameter" with
2060 "argument".
2061
2062 2013-09-16 Stan Shebs <stan@codesourcery.com>
2063
2064 * README: Update references to writing code for GDB.
2065 * configure.ac (build_warnings): Remove obsolete comment.
2066 * configure: Regenerate.
2067 * gdbarch.sh: Remove references to gdbint.texinfo.
2068 * gdbarch.h: Regenerate.
2069 * gdbtypes.c (objfile_type): Remove comments referencing internals
2070 manual and D10V.
2071
2072 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2073
2074 * NEWS: Mention new convenience function $_isvoid.
2075 * value.c (isvoid_internal_fn): New function.
2076 (_initialize_values): Add new convenience function $_isvoid.
2077
2078 2013-09-16 Pierre Muller <muller@sourceware.org>
2079
2080 * arm-linux-tdep.c: Add "elf/common.h" header.
2081 Remove AT_HWCAP macro definintion as it is provided in
2082 added include file.
2083 * s390-tdep.c: Remove system header <elf.h>
2084 Add "elf/common.h" header for AT_HWCAP definition.
2085 (s390_core_read_description): Use correct CORE_ADDR
2086 for hwcap local variable used as third parameter
2087 of function target_auxv_search.
2088
2089 2013-09-14 Pierre Muller <muller@sourceware.org>
2090 Tom Tromey <tromey@redhat.com>
2091 Pedro Alves <palves@redhat.com>
2092
2093 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2094 mode if operating system doesn't know O_CLOEXEC.
2095
2096 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2097
2098 Code cleanup.
2099 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2100 inner block.
2101
2102 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2103
2104 * NEWS: Mention TDB support.
2105 * features/s390-tdb.xml: New file.
2106 * features/s390-te-linux64.xml: New file.
2107 * features/s390x-te-linux64.xml: New file.
2108 * features/Makefile (WHICH): Add new tdescs above.
2109 (s390-te-linux64-expedite): Set.
2110 (s390x-te-linux64-expedite): Set.
2111 * features/s390-te-linux64.c: New file (generated).
2112 * features/s390x-te-linux64.c: New file (generated).
2113 * regformats/s390-te-linux64.dat: New file (generated).
2114 * regformats/s390x-te-linux64.dat: New file (generated).
2115 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2116 (HWCAP_S390_TE): Likewise.
2117 (S390_TDB_DWORD0_REGNUM): Likewise.
2118 (S390_TDB_DWORD0_REGNUM): Likewise.
2119 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2120 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2121 (S390_TDB_ATIA_REGNUM): Likewise.
2122 (S390_TDB_R0_REGNUM): Likewise.
2123 (S390_TDB_R1_REGNUM): Likewise.
2124 (S390_TDB_R2_REGNUM): Likewise.
2125 (S390_TDB_R3_REGNUM): Likewise.
2126 (S390_TDB_R4_REGNUM): Likewise.
2127 (S390_TDB_R5_REGNUM): Likewise.
2128 (S390_TDB_R6_REGNUM): Likewise.
2129 (S390_TDB_R7_REGNUM): Likewise.
2130 (S390_TDB_R8_REGNUM): Likewise.
2131 (S390_TDB_R9_REGNUM): Likewise.
2132 (S390_TDB_R10_REGNUM): Likewise.
2133 (S390_TDB_R11_REGNUM): Likewise.
2134 (S390_TDB_R12_REGNUM): Likewise.
2135 (S390_TDB_R13_REGNUM): Likewise.
2136 (S390_TDB_R14_REGNUM): Likewise.
2137 (S390_TDB_R15_REGNUM): Likewise.
2138 (S390_NUM_REGS): Increase.
2139 (S390_IS_TDBREGSET_REGNUM): New macro.
2140 (s390_regmap_tdb): Declare.
2141 (s390_sizeof_tdbregset): Define.
2142 (tdesc_s390_te_linux64): Declare.
2143 (tdesc_s390x_te_linux64): Likewise.
2144 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2145 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2146 (s390_regmap_tdb): New regmap.
2147 (s390_supply_tdb_regset): New function.
2148 (s390_tdb_regset): New regset.
2149 (s390_linux64v2_regset_sections): Add TDB regset to list.
2150 (s390x_linux64v2_regset_sections): Likewise.
2151 (s390_regset_from_core_section): Recognize TDB core note section.
2152 (s390_core_read_description): If HWCAP indicates TE support,
2153 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2154 (s390_gdbarch_init): Handle TDB regset.
2155 (_initialize_s390_tdep): Initialize new tdescs.
2156 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2157 (have_regset_tdb): New variable.
2158 (s390_native_supply): Support register invalidation.
2159 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2160 (check_regset): Treat ENODATA as "regset exists".
2161 (s390_linux_fetch_inferior_registers): Add TDB.
2162 (s390_read_description): Check for TDB existence and select
2163 appropriate tdesc.
2164 * gdbserver/Makefile.in (clean): Add removal of new makefile
2165 targets.
2166 (s390-te-linux64.c): New makefile target.
2167 (s390x-te-linux64.c): Likewise.
2168 * gdbserver/configure.srv (srv_regobj): Append new objects
2169 s390-te-linux64.o and s390x-te-linux64.o.
2170 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2171 s390x-te-linux64.xml, and s390-tdb.xml.
2172 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2173 declaration.
2174 (tdesc_s390_te_linux64): Likewise.
2175 (init_registers_s390x_te_linux64): Likewise.
2176 (tdesc_s390x_te_linux64): Likewise.
2177 (s390_check_regset): Treat ENODATA as "regset exists".
2178 (s390_arch_setup): Add TDB regset support.
2179 (initialize_low_arch): Initialize registers for new tdescs.
2180
2181 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2182
2183 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2184 (S390_IS_FPREGSET_REGNUM): New macro.
2185 * s390-tdep.c (s390_dwarf_regmap): Make const.
2186 (regnum_is_gpr_full): New function for replacing repeated code.
2187 (s390_pseudo_register_name): Use it.
2188 (s390_pseudo_register_type): Likewise.
2189 (s390_pseudo_register_read): Likewise.
2190 (s390_pseudo_register_write): Likewise.
2191 (s390_unwind_pseudo_register): Likewise.
2192 (s390_regmap_gregset): New format for regmap.
2193 (s390x_regmap_gregset): Likewise.
2194 (s390_regmap_fpregset): Likewise.
2195 (s390_regmap_upper): Likewise.
2196 (s390_regmap_last_break): Likewise.
2197 (s390_regmap_system_call): Likewise.
2198 (s390_supply_regset): Adjust to new regmap format.
2199 (s390_collect_regset): Likewise.
2200 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2201 (s390_native_collect): Likewise.
2202 (supply_gregset): Likewise.
2203 (fill_gregset): Likewise.
2204 (supply_fpregset): Likewise.
2205 (fill_fpregset): Likewise.
2206 (fetch_regset): Likewise.
2207 (store_regset): Likewise.
2208 (s390_linux_fetch_inferior_registers): Likewise.
2209 (s390_linux_fetch_inferior_registers): Likewise.
2210
2211 2013-09-12 Andrew Pinski <apinski@cavium.com>
2212
2213 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2214
2215 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2216
2217 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2218
2219 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2220
2221 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2222
2223 2013-09-06 Pedro Alves <palves@redhat.com>
2224
2225 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2226 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2227 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2228 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2229 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2230 gdb_stdlog.
2231
2232 2013-09-06 Pedro Alves <palves@redhat.com>
2233
2234 * remote-sim.c (dump_mem): Constify buf parameter.
2235 gdbsim_xfer_inferior_memory): Rename to ...
2236 (gdbsim_xfer_memory): ... this. Adjust interface as
2237 target_xfer_partial helper.
2238 (gdbsim_xfer_partial): New function.
2239 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2240 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2241
2242 2013-09-06 Pedro Alves <palves@redhat.com>
2243
2244 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2245 host_address_to_string, and send debug output to gdb_stdlog.
2246
2247 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2248
2249 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2250 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2251 gdb_target_obs for cris target.
2252 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2253 (cris_gdbarch_init): Move calls to
2254 set_gdbarch_fetch_tls_load_module_address and
2255 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2256 Add call to gdbarch_init_osabi.
2257 * cris-linux-tdep.c: New file.
2258 * cris-tdep.h: New file.
2259
2260 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2261
2262 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2263 to deprecated_init_ui_hook.
2264
2265 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2266
2267 * cli/cli-interp.c (_initialize_cli_interp): Add a
2268 command_loop_proc to interp_procs.
2269 * event-top.c (cli_command_loop): Change signature to match
2270 interp_command_loop_ftype.
2271 * event-top.h (cli_command_loop): Same.
2272 * interps.c (interp_new): Require every interpreter to have a
2273 command_loop_proc.
2274 (current_interp_command_loop): Just call the command_loop_proc on
2275 the current interpreter.
2276 * tui/tui-interp.c (_initialize_tui_interp): Add a
2277 command_loop_proc to interp_procs.
2278
2279 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2280
2281 * cris-tdep.c (cris_gdbarch_init): Add call to
2282 get_gdbarch_fetch_tls_load_module_address.
2283
2284 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2285
2286 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2287 (cris_elf_gregset_t): Rename from elf_gregset_t.
2288 (crisv32_elf_gregset_t): Adjust.
2289 (cris_supply_gregset, fetch_core_registers): Adjust.
2290
2291 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2292
2293 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2294
2295 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
2296
2297 * defs.h (deprecated_command_loop_hook): Remove, including
2298 references in comments.
2299 * interps.c (current_interp_command_loop): No longer use
2300 deprecated_command_loop_hook.
2301 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2302 setup.
2303 * top.c (deprecated_command_loop_hook): Remove.
2304
2305 2013-09-05 Pedro Alves <palves@redhat.com>
2306
2307 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2308 local is now int instead of ULONGEST. Print it with %d
2309 instead of paddress.
2310
2311 2013-09-05 Tristan Gingold <gingold@adacore.com>
2312
2313 * MAINTAINERS: Remove avr maintainership.
2314
2315 2013-09-05 Pedro Alves <palves@redhat.com>
2316
2317 * findvar.c (value_of_register): Rework in terms of
2318 value_of_register_lazy.
2319
2320 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2321
2322 * symfile.c (add_symbol_file_command): Remove trailing
2323 whitespaces and blank line after comment.
2324
2325 2013-09-05 Pedro Alves <palves@redhat.com>
2326
2327 * tui/tui-regs.c (tui_register_format): Don't look at the
2328 register's name here. Return string representing register
2329 value instead of storing it in the data element.
2330 (tui_get_register): Compare register string representations
2331 instead of register value states and contents.
2332
2333 2013-09-05 Pedro Alves <palves@redhat.com>
2334
2335 PR tui/15933
2336 * tui/tui-regs.c (tui_show_registers): Show registers of the
2337 selected frame, not the current frame.
2338
2339 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2340
2341 * MAINTAINERS (Write After Approval): Add myself to the list.
2342
2343 2013-09-04 Doug Evans <dje@google.com>
2344
2345 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2346 (queue_and_load_dwo_tu): New function.
2347 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2348 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2349 Make dependent_cu optional.
2350 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2351 and an older .gdb_index is in use, queue and load all its TUs too.
2352
2353 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2354
2355 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2356 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2357 variable search_flags.
2358 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2359 (OPF_RETURN_REALPATH): ... here.
2360 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2361 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2362 call. Twice.
2363 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2364 openp call.
2365 * solib.c (solib_find): Likewise. Four times.
2366 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2367 in the function comment and for the realpath_fptr variable.
2368 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2369 (find_and_open_source): Likewise. Twice.
2370 * symfile.c (symfile_bfd_open): Likewise, also twice.
2371
2372 2013-09-04 Doug Evans <dje@google.com>
2373
2374 * progspace.c (save_current_space_and_thread): Remove unnecessary
2375 call to save_current_inferior.
2376
2377 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2378
2379 * sh64-tdep.c (sh64_do_register): Return after printing message
2380 about unavailable register contents.
2381
2382 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2383 Pedro Alves <palves@redhat.com>
2384
2385 * symfile.c (add_symbol_file_command): Error out on unknown
2386 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2387 options and collapse into single conditional branch.
2388
2389 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2390
2391 * inf-child.c (inf_child_follow_fork): New parameter
2392 detach_fork.
2393 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2394 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2395 * inferior.h (detach_fork): Remove.
2396 * infrun.c (detach_fork): Adjust comment and make it
2397 static.
2398 (follow_fork): Pass detach_fork parameter to
2399 target_follow_fork.
2400 * linux-nat.c (linux_child_follow_fork): New parameter
2401 detach_fork.
2402 * target.c (target_follow_fork): New parameter detach_fork.
2403 Pass detach_fork as parameter and print its value.
2404 * target.h (struct target_ops) <to_follow_fork>: New int
2405 parameter.
2406 (target_follow_fork): New parameter detach_fork.
2407
2408 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2409
2410 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2411 Replace sec->bfd by sec->the_bfd_section->owner.
2412
2413 2013-09-03 Yao Qi <yao@codesourcery.com>
2414
2415 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2416 from linux_has_shared_address_space.
2417 (linux_has_shared_address_space): Call linux_is_uclinux.
2418 * linux-tdep.h (linux_is_uclinux): Declare.
2419 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2420 linux_is_uclinux.
2421
2422 2013-09-03 Yao Qi <yao@codesourcery.com>
2423
2424 * config/djgpp/fnchange.lst: Remove entry of
2425 i386-interix-nat.c and i386-interix-tdep.c.
2426 * configure.ac: Remove '*-*-interix*'.
2427 * configure: Re-generated.
2428 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2429 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2430 obsolete comments.
2431 * osabi.c (gdb_osabi_names): Remove "Interix".
2432
2433 2013-09-03 Yao Qi <yao@codesourcery.com>
2434
2435 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2436
2437 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2438
2439 * record.h (record_print_flag) <record_print_src_line,
2440 record_print_insn_range>: Rename into ...
2441 (record_print_flag) <record_print_src_line,
2442 record_print_insn_range>: ... this. Update all users.
2443
2444 2013-09-02 Pierre Muller <muller@sourceware.org>
2445
2446 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2447 error code.
2448
2449 2013-09-02 Pierre Muller <muller@sourceware.org>
2450
2451 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2452 by use of plongest function.
2453
2454 2013-09-02 Tristan Gingold <gingold@adacore.com>
2455
2456 * NEWS: Add entry mentioning support for native Windows x64
2457 SEH data.
2458
2459 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2460 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2461 (struct amd64_windows_frame_cache): New struct.
2462 (amd64_windows_w2gdb_regnum): New global.
2463 (pc_in_range, amd64_windows_frame_decode_epilogue)
2464 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2465 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2466 (amd64_windows_frame_this_id): New functions.
2467 (amd64_windows_frame_unwind): New static global.
2468 (amd64_windows_skip_prologue): New function.
2469 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2470 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2471 with amd64_windows_skip_prologue.
2472
2473 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2474
2475 GDB 7.6.1 released.
2476
2477 2013-08-30 Pedro Alves <palves@redhat.com>
2478
2479 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2480 SRC_AND_LOC.
2481
2482 2013-08-30 Pedro Alves <palves@redhat.com>
2483
2484 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2485 warning text.
2486
2487 2013-08-30 Pedro Alves <palves@redhat.com>
2488
2489 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2490 Adjust arguments to print_stack_frame.
2491
2492 2013-08-30 Pedro Alves <palves@redhat.com>
2493
2494 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2495
2496 2013-08-30 Pedro Alves <palves@redhat.com>
2497
2498 * frame.h (show_and_print_stack_frame): Delete declaration.
2499
2500 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2501
2502 PR python/15461
2503 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2504 (archpy_name): Check for valid architecture.
2505 (archpy_disassemble): Ditto.
2506
2507 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2508
2509 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2510 instead of "long long" in call to ptrace64.
2511
2512 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2513
2514 * mi/mi-interp.c (mi_command_loop): Change signature to match
2515 interp_command_loop_ftype.
2516 (mi1_command_loop): Remove.
2517 (mi2_command_loop): Remove.
2518 (mi3_command_loop): Remove.
2519 (mi_interpreter_resume): Remove setting of
2520 deprecated_command_loop_hook.
2521 (_initialize_mi_interp): Set mi_command_loop as the command loop
2522 callback.
2523
2524 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2525
2526 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2527 value_type.
2528
2529 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2530
2531 * value.c (allocate_value_contents): Make static.
2532 * value.h (allocate_value_contents): Remove prototype.
2533
2534 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2535
2536 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2537 of assembling value via allocate_value_lazy and attribute setter.
2538 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2539 assembling value via allocate_value_lazy and attribute setter.
2540 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2541 assembling value via allocate_value_lazy and attribute setter.
2542
2543 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2544
2545 * value.c (value_from_contents_and_address): Replace allocate_value and
2546 memcpy with value_from_contents.
2547
2548 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2549
2550 * python/py-framefilter.c (py_print_frame): Remove usage of
2551 PyString_AsString. Use python_string_to_host_string instead.
2552 Refactor function to work with a string as a new allocation
2553 instead of a pointer.
2554 (py_print_frame): Ditto.
2555 * python/lib/gdb/frames.py (return_list): Cain iterators together
2556 instead of adding them as a list.
2557 (_sort_list): Call return_list, and remove duplicate code.
2558 (execute_frame_filters): Convert iterator to a list with list().
2559 * python/lib/gdb/command/frame_filters.py
2560 (SetFrameFilterPriority._set_filter_priority): Convert priority
2561 attribute to an integer.
2562 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2563 wrapper function __next__.
2564 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2565 define as "str".
2566
2567 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2568
2569 PR python/15752
2570 * python/py-framefilter.c (apply_frame_filter): Check
2571 gdb_python_initialized. Exit if the Python frame-filter code
2572 cannot be initialized.
2573
2574 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2575
2576 PR cli/15842
2577 * top.c (print_gdb_version): Remove erroneous newline after help
2578 text.
2579
2580 2013-08-29 Yao Qi <yao@codesourcery.com>
2581
2582 * varobj.c (install_dynamic_child): Remove trailing space.
2583 Add one blank line after variable declaration.
2584
2585 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2586
2587 PR gdb/15415
2588 * corefile.c (get_exec_file): Use exec_filename.
2589 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2590 * exec.c (exec_close): Free EXEC_FILENAME.
2591 (exec_file_attach): New variable canonical_pathname. Use
2592 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2593 EXEC_FILENAME.
2594 * exec.h (exec_filename): New.
2595 * inferior.c (print_inferior, inferior_command): Use
2596 PSPACE_EXEC_FILENAME.
2597 * mi/mi-main.c (print_one_inferior): Likewise.
2598 * progspace.c (clone_program_space, print_program_space): Likewise.
2599 * progspace.h (struct program_space): New field pspace_exec_filename.
2600 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2601 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2602
2603 2013-08-28 Will Newton <will.newton@linaro.org>
2604
2605 * common/linux-ptrace.c: Include stdint.h unconditionally.
2606
2607 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2608
2609 Code cleanup.
2610 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2611
2612 2013-08-28 Yao Qi <yao@codesourcery.com>
2613 Pedro Alves <palves@redhat.com>
2614
2615 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2616 instead of stdio_fileopen.
2617 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2618 .Call stderr_fileopen instead of stdio_fileopen.
2619 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2620 [__MINGW32__] (stderr_file_fputs): New function.
2621 (stderr_fileopen): New function.
2622 * ui-file.h (stderr_fileopen): Declare.
2623
2624 2013-08-27 Doug Evans <dje@google.com>
2625
2626 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2627 (struct dwarf2_per_cu_data): Ditto.
2628 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2629 (process_imported_unit_die): Ditto.
2630 (follow_die_sig_1): Simplify assert.
2631
2632 2013-08-27 Pedro Alves <palves@redhat.com>
2633
2634 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2635 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2636 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2637 windows_xfer_memory directly.
2638 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2639
2640 2013-08-27 Pedro Alves <palves@redhat.com>
2641
2642 * darwin-nat.c (darwin_xfer_memory): Delete.
2643 (_initialize_darwin_inferior): Don't install a
2644 deprecated_xfer_memory method.
2645
2646 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2647 Yao Qi <yao@codesourcery.com>
2648
2649 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2650 (parse_no_frames_option): Remove.
2651 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2652 (mi_cmd_stack_list_args): Adjust.
2653 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2654 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2655 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2656 Caller update.
2657 (list_args_or_locals): New parameter 'skip_unavailable'.
2658 Handle it.
2659 * valprint.c (scalar_type_p): Rename to ...
2660 (val_print_scalar_type_p): ... this. Make extern.
2661 (val_print, value_check_printable): Adjust.
2662 * valprint.h (val_print_scalar_type_p): Declare.
2663 * value.c (value_entirely_unavailable): New function.
2664 * value.h (value_entirely_unavailable): Declare.
2665
2666 * NEWS: Mention the new option "--skip-unavailable" to MI
2667 commands '-stack-list-locals', '-stack-list-arguments' and
2668 '-stack-list-variables'.
2669
2670 2013-08-27 Yao Qi <yao@codesourcery.com>
2671
2672 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2673 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2674 options.
2675 * mi/mi-getopt.c (mi_getopt): Remove.
2676 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2677 'error_on_unknown'.
2678 (mi_getopt): Call mi_getopt_1.
2679 (mi_getopt_silent): New.
2680 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2681
2682 2013-08-26 Doug Evans <dje@google.com>
2683
2684 PR symtab/15885
2685 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2686 .gdb_index is in use.
2687 * symfile.c (reread_symbols): Reset objfile->sf.
2688
2689 * NEWS: Document "mt print objfiles" now takes optional regexp.
2690 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2691 regexp of objfiles to print.
2692 (_initialize_symmisc): Update doc string for "mt print objfiles".
2693
2694 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2695 missing debug info checks.
2696
2697 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2698 Ulrich Weigand <uweigand@de.ibm.com>
2699
2700 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2701 line tables generated by XLC compiled binaries.
2702
2703 2013-08-23 Doug Evans <dje@google.com>
2704
2705 * symmisc.c (dump_symtab): Delete prototype.
2706 (dump_msymbols, dump_objfile): Ditto.
2707 (maintenance_info_symtabs): Mark as dont_repeat.
2708 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2709
2710 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2711 debugging printf to better location.
2712
2713 2013-08-23 Pedro Alves <palves@redhat.com>
2714
2715 * target.c (target_read_live_memory): Change type of 'ret' local
2716 to LONGEST.
2717
2718 2013-08-23 Pedro Alves <palves@redhat.com>
2719
2720 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2721 (remote_read_bytes): Change return type to LONGEST, and adjust to
2722 return a target_xfer_error on error.
2723 (remote_xfer_memory): Delete.
2724 (remote_flash_write): Change type of 'ret' local to LONGEST.
2725 (remote_xfer_partial, remote_xfer_partial): Adjust.
2726 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2727
2728 2013-08-23 Pierre Muller <muller@sourceware.org>
2729
2730 ARI fix: Push # directives to start of line.
2731 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2732
2733 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2734
2735 PR gdb/15501
2736 * breakpoint.c (enable_command, disable_command): Iterate over
2737 all specified breakpoint locations.
2738
2739 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2740
2741 * common/linux-ptrace.c (linux_fork_to_function): Push #
2742 directives to the start of the line.
2743 (linux_check_ptrace_features): Fix warning message to use
2744 the "_" markup.
2745
2746 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2747
2748 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2749 nat/linux-waitpid.h.
2750 (linux-waitpid.o): New object file rule.
2751 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2752 (current_ptrace_options): Moved from linux-nat.c.
2753 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2754 parameters.
2755 (linux_fork_to_function): New function.
2756 (linux_grandchild_function): Likewise.
2757 (linux_child_function): Likewise.
2758 (linux_check_ptrace_features): New function, heavily
2759 based on linux-nat.c:linux_test_for_tracefork.
2760 (linux_enable_event_reporting): New function.
2761 (ptrace_supports_feature): Likewise.
2762 (linux_supports_tracefork): Likewise.
2763 (linux_supports_traceclone): Likewise.
2764 (linux_supports_tracevforkdone): Likewise.
2765 (linux_supports_tracesysgood): Likewise.
2766 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2767 gdbserver/linux-low.c.
2768 (linux_enable_event_reporting): New declaration.
2769 (linux_supports_tracefork): Likewise.
2770 (linux_supports_traceclone): Likewise.
2771 (linux_supports_tracevforkdone): Likewise.
2772 (linux_supports_tracesysgood): Likewise.
2773 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2774 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2775 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2776 * config/arm/linux.mh (NATDEPFILES): Likewise.
2777 * config/i386/linux.mh (NATDEPFILES): Likewise.
2778 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2779 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2780 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2781 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2782 * config/mips/linux.mh (NATDEPFILES): Likewise.
2783 * config/pa/linux.mh (NATDEPFILES): Likewise..
2784 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2785 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2786 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2787 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2788 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2789 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2790 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2791 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2792 ptrace's 4th argument's types.
2793 Check the type of PTRACE_TYPE_ARG4.
2794 * configure: Regenerate.
2795 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2796 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2797 (linux_supports_tracefork_flag): Remove.
2798 (linux_supports_tracesysgood_flag): Likewise.
2799 (linux_supports_tracevforkdone_flag): Likewise.
2800 (current_ptrace_options): Moved to
2801 common/linux-ptrace.c.
2802 (linux_tracefork_child): Remove.
2803 (my_waitpid): Remove.
2804 (linux_test_for_tracefork): Renamed to
2805 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2806 (linux_test_for_tracesysgood): Remove.
2807 (linux_supports_tracesysgood): Remove.
2808 (linux_supports_tracefork): Remove.
2809 (linux_supports_tracevforkdone): Remove.
2810 (linux_enable_tracesysgood): Remove.
2811 (linux_enable_event_reporting): Remove.
2812 (linux_init_ptrace): New function.
2813 (linux_child_post_attach): Call linux_init_ptrace.
2814 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2815 (linux_child_follow_fork): Call linux_supports_tracefork
2816 and linux_supports_tracevforkdone.
2817 (linux_child_insert_fork_catchpoint): Call
2818 linux_supports_tracefork.
2819 (linux_child_insert_vfork_catchpoint): Likewise.
2820 (linux_child_set_syscall_catchpoint): Call
2821 linux_supports_tracesysgood.
2822 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2823 * nat/linux-nat.h: New file.
2824 * nat/linux-waitpid.c: New file.
2825 * nat/linux-waitpid.h: New file.
2826
2827 2013-08-22 Samuel Bronson <naesten@gmail.com>
2828
2829 ARM Linux support for `catch syscall'.
2830 * syscalls/arm-linux.py: New file.
2831 * syscalls/arm-linux.xml: Likewise.
2832 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2833 (arm_linux_init_abi): Register the new function and syscall xml file.
2834 * data-directory/Makefile.in: Install the new syscall xml file.
2835 * NEWS: Brag about this.
2836
2837 2013-08-22 Pedro Alves <palves@redhat.com>
2838
2839 PR gdb/15871
2840 * corefile.c (target_xfer_memory_error): New function.
2841 (memory_error): Defer EIO to target_memory_error.
2842 (read_memory): Use target_xfer_partial, and handle finer-grained
2843 target xfer errors.
2844 * target.c (target_xfer_error_to_string): New function.
2845 (memory_xfer_partial_1): If memory is known to be
2846 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2847 (target_xfer_partial): Make extern.
2848 * target.h (enum target_xfer_error): New enum.
2849 (target_xfer_error_to_string): Declare function.
2850 (target_xfer_partial): Declare function.
2851 (struct target_ops) <xfer_partial>: Adjust describing comment.
2852
2853 2013-08-22 Alan Modra <amodra@gmail.com>
2854
2855 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2856 * configure.tgt: Likewise as targets.
2857
2858 2013-08-20 Doug Evans <dje@google.com>
2859
2860 * buildsym.c (subfile_stack): Move here from buildsym.h.
2861 (pending_macros): Ditto.
2862 (get_macro_table): New function.
2863 (buildsym_init): Initialize subfile_stack.
2864 * coffread.c (type_vector,type_vector_length): Moved here from
2865 buildsym.h.
2866 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2867 (coff_symtab_read): Use it.
2868 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2869 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2870 with call to get_macro_table.
2871 * stabsread.c (type_vector,type_vector_length): Moved here from
2872 buildsym.h.
2873 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2874 * buildsym.h (get_macro_table): Declare.
2875
2876 2013-08-20 Tom Tromey <tromey@redhat.com>
2877
2878 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2879 Update.
2880 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2881
2882 2013-08-20 Doug Evans <dje@google.com>
2883
2884 * blockframe.c: Remove #include "psymtab.h".
2885 * cp-support.c: Ditto.
2886 * source.c: Ditto.
2887 * stack.c: Ditto.
2888
2889 2013-08-20 Tom Tromey <tromey@redhat.com>
2890
2891 PR python/15816:
2892 * exceptions.h (return_mask): Now an enum.
2893 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2894 enum constants.
2895
2896 2013-08-20 Tom Tromey <tromey@redhat.com>
2897
2898 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2899 get_objfile_arch.
2900 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2901 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2902 * jit.c (jit_object_close_impl): Update.
2903 * jv-lang.c (get_dynamics_objfile): Update.
2904 * linespec.c (add_minsym): Use get_dynamics_objfile.
2905 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2906 (allocate_objfile): Don't initialize 'gdbarch' field.
2907 (get_objfile_arch): Update.
2908 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2909 moved from...
2910 (struct objfile) <gdbarch>: ... here. Remove.
2911 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2912 get_objfile_arch.
2913 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2914
2915 2013-08-20 Alan Modra <amodra@gmail.com>
2916
2917 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2918 for IBM long double nan and inf.
2919 (floatformat_is_negative, floatformat_classify,
2920 floatformat_mantissa): Similarly.
2921 (floatformat_ieee_single, floatformat_ieee_double,
2922 floatformat_ieee_quad, floatformat_arm_ext,
2923 floatformat_ia64_spill): Delete unused vars.
2924 (_initialize_doublest): Delete unused function.
2925 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2926 little-endian variants of floatformat_ibm_long_double.
2927
2928 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2929
2930 * Makefile.in (SFILES): Remove common/target-common.c and
2931 add target/waitstatus.c.
2932 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2933 target/resume.h, target/wait.h and target/waitstatus.h.
2934 (COMMON_OBS): Remove target-common.o and add
2935 waitstatus.o.
2936 (target-common.o): Remove.
2937 (waitstatus.o): New target object file.
2938 * common/target-common.c: Move contents to
2939 target/waitstatus.c and remove.
2940 * common/target-common.h: Move contents to other files and
2941 remove.
2942 (enum resume_kind: Move to target/resume.h.
2943 (TARGET_WNOHANG): Move to target/wait.h.
2944 (enum target_waitkind): Move to target/waitstatus.h.
2945 (struct target_waitstatus): Likewise.
2946 * target.h: Do not include target-common.h and
2947 include target/resume.h, target/wait.h and
2948 target/waitstatus.h.
2949 * target/resume.h: New file.
2950 * target/wait.h: New file.
2951 * target/waitstatus.h: New file.
2952 * target/waitstatus.c: New file.
2953
2954 2013-08-19 Pedro Alves <palves@redhat.com>
2955
2956 * linux-nat.c (linux_test_for_tracefork)
2957 (linux_test_for_tracesysgood, linux_child_follow_fork)
2958 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2959 (linux_nat_wait_1): Extend comment.
2960 (linux_async_pipe): Add comment.
2961
2962 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2963
2964 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2965 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2966 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2967 Update to account for fact that PC is now a pseudo-register.
2968 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2969 cases for RL78_PC_REGNUM.
2970
2971 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2972
2973 PR cli/15841
2974 * top.c (quit_force): Skip writing history file
2975 if input is not from terminal.
2976
2977 2013-08-14 Tom Tromey <tromey@redhat.com>
2978
2979 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2980 resultthreadlist>: New fields.
2981 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2982 (remote_get_threadlist, remote_threadlist_iterator): Use
2983 new fields. Remove static variables.
2984
2985 2013-08-14 Tom Tromey <tromey@redhat.com>
2986
2987 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2988 remote_watch_data_address>: New fields.
2989 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2990 (process_stop_reply, remote_wait_as)
2991 (remote_check_watch_resources, remote_stopped_data_address): Update.
2992
2993 2013-08-14 Tom Tromey <tromey@redhat.com>
2994
2995 * remote.c (struct remote_state) <async_client_callback,
2996 async_client_context>: New fields.
2997 (async_client_callback, async_client_context): Remove.
2998 (remote_async_serial_handler, remote_async): Update.
2999
3000 2013-08-14 Tom Tromey <tromey@redhat.com>
3001
3002 * remote.c (sizeof_pkt): Remove.
3003 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3004
3005 2013-08-14 Tom Tromey <tromey@redhat.com>
3006
3007 * remote.c (struct remote_state) <use_threadinfo_query,
3008 use_threadextra_query>: New fields.
3009 (remote_threads_info, remote_threads_extra_info)
3010 (remote_open_1): Update.
3011
3012 2013-08-14 Tom Tromey <tromey@redhat.com>
3013
3014 * remote.c (struct remote_state) <finished_object,
3015 finished_annex, finished_offset>: New fields.
3016 (remote_read_qxfer): Use remote_state fields; remove static
3017 variables.
3018
3019 2013-08-14 Tom Tromey <tromey@redhat.com>
3020
3021 * remote.c (struct remote_state) <last_sent_step>:
3022 New field.
3023 (last_sent_step): Remove.
3024 (remote_resume, remote_wait_as): Update.
3025
3026 2013-08-14 Tom Tromey <tromey@redhat.com>
3027
3028 * remote.c (struct remote_state) <last_sent_signal>:
3029 New field.
3030 (last_sent_signal): Remove.
3031 (new_remote_state, remote_resume, remote_wait_as): Update.
3032
3033 2013-08-14 Tom Tromey <tromey@redhat.com>
3034
3035 * remote.c (struct remote_state) <last_program_signals_packet>:
3036 New field.
3037 (last_program_signals_packet): Remove.
3038 (remote_program_signals, remote_open_1): Update.
3039
3040 2013-08-14 Tom Tromey <tromey@redhat.com>
3041
3042 * remote.c (struct remote_state) <last_pass_packet>:
3043 New field.
3044 (last_pass_packet): Remove.
3045 (remote_pass_signals, remote_open_1): Update.
3046
3047 2013-08-14 Tom Tromey <tromey@redhat.com>
3048
3049 * remote.c (struct remote_state) <remote_traceframe_number>:
3050 New field.
3051 (remote_traceframe_number): Remove.
3052 (new_remote_state, remote_open_1, set_remote_traceframe)
3053 (remote_trace_find): Update.
3054
3055 2013-08-14 Tom Tromey <tromey@redhat.com>
3056
3057 * remote.c (struct remote_state) <general_thread, continue_thread>:
3058 New fields.
3059 (general_thread, continue_thread): Remove.
3060 (record_currthread, set_thread, set_general_process)
3061 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3062 (extended_remote_mourn_1): Update.
3063
3064 2013-08-14 Tom Tromey <tromey@redhat.com>
3065
3066 * remote.c (struct remote_state) <remote_desc>: New field.
3067 (remote_desc): Remove.
3068 (remote_threads_info, remote_threads_extra_info, remote_close)
3069 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3070 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3071 (remote_hostio_send_command, remote_file_put, remote_file_get)
3072 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3073 (remote_async, remote_new_objfile, set_range_stepping): Update.
3074
3075 2013-08-14 Tom Tromey <tromey@redhat.com>
3076
3077 * remote.c (remote_state): Now a pointer.
3078 (get_remote_state_raw): Update.
3079 (new_remote_state): New function.
3080 (_initialize_remote): Use new_remote_state.
3081
3082 2013-08-14 Tom Tromey <tromey@redhat.com>
3083
3084 * remote.c (remote_protocol_features): Now const.
3085
3086 2013-08-14 Tom Tromey <tromey@redhat.com>
3087
3088 * remote.c (crc32_table, crc32): Remove.
3089 (remote_verify_memory): Use xcrc32.
3090
3091 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3092
3093 * value.h (create_internalvar_type_lazy): Adjust prototype
3094 declaration.
3095
3096 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3097
3098 * common/format.c (parse_format_string): Don't allow '#' flag for
3099 pointer arguments in format string.
3100
3101 2013-08-13 Pierre Muller <muller@sourceware.org>
3102
3103 * utils.c (init_page_info): Only call tgetnum function
3104 if rl_get_screen_size did not return useful values.
3105
3106 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3107
3108 PR breakpoints/15117
3109 * linespec.c (linespec_parse_basic): Check for convenience
3110 variable or history value while parsing.
3111
3112 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3113
3114 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3115 AVR.
3116 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3117 different signals between the generic Linux kernel implementation
3118 and AVR's.
3119 (avr_linux_gdb_signal_from_target): Delete.
3120 (avr_linux_gdb_signal_to_target): Delete.
3121 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3122
3123 2013-08-09 Doug Evans <dje@google.com>
3124
3125 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3126 entries.
3127
3128 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3129
3130 * linux-tdep.c: Define enum with generic signal numbers.
3131 (linux_gdb_signal_from_target): New function.
3132 (linux_gdb_signal_to_target): Likewise.
3133 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3134 methods to the functions above.
3135 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3136 (linux_gdb_signal_to_target): Likewise.
3137 * alpha-linux-tdep.c: Define new enum with signals different
3138 from generic Linux kernel.
3139 (alpha_linux_gdb_signal_from_target): New function.
3140 (alpha_linux_gdb_signal_to_target): Likewise.
3141 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3142 with the functions mentioned above.
3143 * avr-tdep.c: Define enum with differences between Linux kernel
3144 and AVR signals.
3145 (avr_linux_gdb_signal_from_target): New function.
3146 (avr_linux_gdb_signal_to_target): Likewise.
3147 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3148 the functions mentioned above.
3149 * sparc-linux-tdep.c: Define enum with differences between SPARC
3150 and generic Linux kernel signal numbers.
3151 (sparc32_linux_gdb_signal_from_target): New function.
3152 (sparc32_linux_gdb_signal_to_target): Likewise.
3153 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3154 to the functions defined above.
3155 * xtensa-linux-tdep.c: Define enum with differences between
3156 Xtensa and Linux kernel generic signals.
3157 (xtensa_linux_gdb_signal_from_target): New function.
3158 (xtensa_linux_gdb_signal_to_target): Likewise.
3159 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3160 to the functions defined above.
3161 * mips-linux-tdep.c: Define enum with differences between
3162 signals in MIPS and Linux kernel generic ones.
3163 (mips_gdb_signal_to_target): New function.
3164 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3165 only different signals from the Linux kernel generic.
3166 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3167 the functions defined above.
3168 * mips-linux-tdep.h (enum mips_signals): Remove.
3169
3170 2013-08-09 Pedro Alves <palves@redhat.com>
3171
3172 * avr-tdep.c (XMALLOC): Delete macro.
3173 * cli/cli-dump.c (XMALLOC): Delete macro.
3174
3175 2013-08-09 Pedro Alves <palves@redhat.com>
3176
3177 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3178 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3179 (fopen_with_cleanup, add_dump_command): Make static.
3180 * cli/cli-dump.h: Delete file.
3181 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3182 cli/cli-dump.h.
3183
3184 2013-08-09 Pedro Alves <palves@redhat.com>
3185
3186 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3187 error message.
3188
3189 2013-08-09 Pedro Alves <palves@redhat.com>
3190
3191 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3192 error message.
3193
3194 2013-08-09 Pedro Alves <palves@redhat.com>
3195
3196 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3197 (gcore_command): Use tilde_expand here, and when showing the
3198 filename to the user, show the expanded version.
3199
3200 2013-08-09 Yao Qi <yao@codesourcery.com>
3201
3202 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3203 'entryval' is set.
3204
3205 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3206
3207 * gcore.c (create_gcore_bfd): Use tilde_expand.
3208
3209 2013-08-08 Yao Qi <yao@codesourcery.com>
3210
3211 * frame.h (read_frame_local): Declare.
3212 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3213 read_frame_local.
3214 * stack.c (read_frame_local): New.
3215
3216 2013-08-08 Yao Qi <yao@codesourcery.com>
3217
3218 * mi/mi-cmd-stack.c: Update comments to function
3219 list_args_or_locals.
3220
3221 2013-08-07 Tom Tromey <tromey@redhat.com>
3222
3223 PR symtab/15028:
3224 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3225 (process_psymtab_comp_unit_reader): Use it.
3226 (process_psymtab_comp_unit): Update. Add "pretend_language"
3227 argument.
3228 (dwarf2_build_psymtabs_hard): Update.
3229 (scan_partial_symbols): Pass CU's language to
3230 process_psymtab_comp_unit.
3231
3232 2013-08-07 Tom Tromey <tromey@redhat.com>
3233
3234 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3235 (dwarf2_gdb_index_functions): Update.
3236 * psymtab.c (find_symbol_file_from_partial): Remove.
3237 (psym_functions): Update.
3238 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3239 Remove.
3240
3241 2013-08-07 Tom Tromey <tromey@redhat.com>
3242
3243 * symfile.c (set_initial_language): Look up "main" symbol
3244 and use its language.
3245 * symtab.c (find_main_filename): Remove.
3246 * symtab.h (find_main_filename): Remove.
3247
3248 2013-08-07 Tom Tromey <tromey@redhat.com>
3249
3250 * dwarf2read.c (recursively_compute_inclusions): Add
3251 "immediate_parent" argument. Set symtab's "user" field
3252 if not set.
3253 (compute_symtab_includes): Update.
3254
3255 2013-08-07 Tom Tromey <tromey@redhat.com>
3256
3257 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3258 when adding label symbols.
3259
3260 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3261 Ulrich Weigand <uweigand@de.ibm.com>
3262
3263 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3264 * configure.host (powerpc64-*-aix*): Likewise.
3265
3266 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3267 Ulrich Weigand <uweigand@de.ibm.com>
3268
3269 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3270 is defined.
3271 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3272 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3273 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3274 * configure.ac: Check for ptrace64.
3275 * configure, config.in: Regenerate.
3276
3277 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3278 Ulrich Weigand <uweigand@de.ibm.com>
3279
3280 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3281 Call ptrace64 instead of ptrace if defined.
3282 Add macro addr_ptr to take care of ptrace address argument.
3283 (pdc_read_regs): Likewise.
3284 (pdc_write_regs): Likewise.
3285 (aix_thread_resume): Likewise.
3286 (fetch_regs_kernel_thread): Likewise.
3287 (store_regs_kernel_thread): Likewise.
3288
3289 2013-08-07 Anton Blanchard <anton@samba.org>
3290
3291 * MAINTAINERS: Add myself to Write After Approval.
3292
3293 2013-08-05 Tom Tromey <tromey@redhat.com>
3294
3295 * aix-thread.c (_initialize_aix_thread): Use
3296 complete_target_initialization.
3297 * bsd-uthread.c (_initialize_bsd_uthread): Use
3298 complete_target_initialization.
3299 * dec-thread.c (_initialize_dec_thread): Use
3300 complete_target_initialization.
3301 * ravenscar-thread.c (_initialize_ravenscar): Use
3302 complete_target_initialization.
3303 * sol-thread.c (_initialize_sol_thread): Use
3304 complete_target_initialization.
3305 * spu-multiarch.c (_initialize_spu_multiarch): Use
3306 complete_target_initialization.
3307
3308 2013-08-05 Tom Tromey <tromey@redhat.com>
3309
3310 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3311 * ada-lang.c (ada_lookup_simple_minsym): Return
3312 bound_minimal_symbol.
3313 * ada-lang.h (ada_lookup_simple_minsym): Update.
3314 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3315 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3316 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3317 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3318 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3319 * minsyms.c (msymbol_objfile): Remove.
3320 (lookup_minimal_symbol_internal): New function, from
3321 lookup_minimal_symbol.
3322 (lookup_minimal_symbol): Rewrite using
3323 lookup_minimal_symbol_internal.
3324 (lookup_bound_minimal_symbol): New function.
3325 * minsyms.h (msymbol_objfile): Remove.
3326 (lookup_bound_minimal_symbol): Declare.
3327 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3328 * parse.c (write_exp_msymbol): Change parameter to a
3329 bound_minimal_symbol.
3330 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3331 * parser-defs.h (write_exp_msymbol): Update.
3332 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3333 * symfile.c (simple_read_overlay_table): Use
3334 lookup_bound_minimal_symbol.
3335 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3336 (search_symbols): Likewise.
3337 (print_msymbol_info): Take a bound_minimal_symbol argument.
3338 (symtab_symbol_info, rbreak_command): Update.
3339 * symtab.h (struct symbol_search) <msymbol>: Change type
3340 to bound_minimal_symbol.
3341 * valops.c (find_function_in_inferior): Use
3342 lookup_bound_minimal_symbol.
3343 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3344
3345 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3346
3347 Code cleanup.
3348 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3349 to ...
3350 (async_cleanup_sigint_signal_handler): ... this.
3351 (initialize_sigint_signal_handler): Remove declaration.
3352 (handle_remote_sigint): Rename the declaration to ...
3353 (async_handle_remote_sigint): ... this.
3354 (handle_remote_sigint_twice): Rename the declaration to ...
3355 (async_handle_remote_sigint_twice): ... this.
3356 (async_remote_interrupt, async_remote_interrupt_twice)
3357 (remote_interrupt): Remove the declarations.
3358 (remote_interrupt_twice): Rename the declaration ...
3359 (sync_remote_interrupt_twice): ... this.
3360 (sigint_remote_twice_token): Rename the variable to ...
3361 (async_sigint_remote_twice_token): ... this.
3362 (sigint_remote_token): Rename the variable to ...
3363 (async_sigint_remote_token): ... this.
3364 (initialize_sigint_signal_handler): Rename the function to ...
3365 (async_initialize_sigint_signal_handler): ... this. Update the name
3366 inside.
3367 (handle_remote_sigint): Rename the function to ...
3368 (async_handle_remote_sigint): ... this. Update the names inside.
3369 (handle_remote_sigint_twice): Rename the function to ...
3370 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3371 (cleanup_sigint_signal_handler): Rename the function to ...
3372 (async_cleanup_sigint_signal_handler): ... this.
3373 (remote_interrupt): Rename the function to ...
3374 (sync_remote_interrupt): this. Update the names inside.
3375 (remote_interrupt_twice): Rename the function to ...
3376 (sync_remote_interrupt_twice): this. Update the names inside.
3377 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3378 (_initialize_remote): Update the names inside.
3379
3380 2013-08-02 Tom Tromey <tromey@redhat.com>
3381
3382 PR symtab/15719:
3383 * breakpoint.c (update_watchpoint, watchpoint_check)
3384 (watch_command_1): Update.
3385 * eval.c (fetch_subexp_value): Add "preserve_errors"
3386 parameter.
3387 * ppc-linux-nat.c (check_condition): Update.
3388 * value.h (fetch_subexp_value): Update.
3389
3390 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3391
3392 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3393 add_file_handler.
3394
3395 2013-08-01 Doug Evans <dje@google.com>
3396
3397 PR symtab/15691
3398 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3399 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3400 Add assert of sig_entry->dwo_unit == NULL.
3401 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3402 had already been read.
3403 (read_signatured_type): Set per_cu.tu_read.
3404
3405 PR symtab/15695
3406 * valops.c (value_struct_elt): Add missing call to check_typedef.
3407 (value_find_oload_method_list): Ditto.
3408
3409 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3410 effectively, struct symbol_search **.
3411 (make_cleanup_free_search_symbols): Change arg to struct
3412 symbol_search **. All callers updated.
3413 (compare_search_syms): Compare symtab file name and block as well.
3414 (search_symbols_equal): New function.
3415 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3416 New args new_head, new_tail. Result is now void. Remove dups after
3417 sorting the symbols.
3418 (search_symbols): Sort all found symbols once, after all have been
3419 found, and remove duplicates. Simplify cleanup tracking of result.
3420 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3421
3422 Further workarounds for binutils/15021.
3423 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3424 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3425 Watch for duplicate symtabs coming from type units.
3426 (compute_symtab_includes): Update call to
3427 recursively_compute_inclusions. Build vector of included symtabs
3428 instead of per_cus.
3429 * symtab.h (symtab_ptr): New typedef.
3430 (DEF_VEC_P (symtab_ptr)): New VEC type.
3431 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3432 instead.
3433
3434 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3435
3436 * cli/cli-script.c (script_from_file): Remove use of
3437 error_pre_print.
3438 * main.c (captured_main): Remove use of error_pre_print and
3439 quit_pre_print.
3440 * utils.c (error_pre_print, quit_pre_print): Remove.
3441 * utils.h (error_pre_print, quit_pre_print): Likewise.
3442
3443 2013-08-01 Yao Qi <yao@codesourcery.com>
3444
3445 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3446 with mi_getopt.
3447 (mi_cmd_stack_list_variables): Likewise.
3448
3449 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3450
3451 * exceptions.c (deprecated_throw_reason): Remove.
3452 * exceptions.h (deprecated_throw_reason): Remove.
3453
3454 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3455
3456 * remote-mips.c (mips_error): Replace use of
3457 deprecated_throw_reason with throw_verror. Use the error message
3458 passed to mips_error as the error message for throw_verror.
3459
3460 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3461
3462 * monitor.c (monitor_interrupt_query): Replace use of
3463 deprecated_throw_reason with quit.
3464 * nto-procfs.c (interrupt_query): Likewise.
3465 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3466 * remote-mips.c (mips_kill): Likewise.
3467 * remote.c (interrupt_query): Likewise.
3468
3469 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3470
3471 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3472 with call to fatal.
3473
3474 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3475 Yao Qi <yao@codesourcery.com>
3476
3477 * tracepoint.c (trace_dump_command): Select the current frame.
3478
3479 2013-07-30 Doug Evans <dje@google.com>
3480
3481 * dwarf2read.c (process_queue): Add type signature to debug output.
3482
3483 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3484
3485 * value.c (value_fetch_lazy): Mark optimized out values as such
3486 rather than raising an error.
3487
3488 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3489
3490 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3491 before checking which bits of the parent, not the child, value are
3492 valid.
3493
3494 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3495
3496 PR gdb/15715
3497 * top.c: Include "filenames.h".
3498 (set_history_filename): New function.
3499 (init_main): Install it as set hook of the "set history filename"
3500 command.
3501
3502 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3503
3504 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3505 attribute parameter.
3506 (dwarf2_const_value_data): Constify struct attribute parameter.
3507 (dwarf2_const_value): Constify struct attribute parameter.
3508 (dwarf2_const_value_attr): Constify struct attribute parameter.
3509 (lookup_die_type): Constify struct attribute parameter.
3510 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3511 (follow_die_ref_or_sig): Constify struct attribute parameter.
3512 (follow_die_ref): Constify struct attribute parameter.
3513 (follow_die_sig): Constify struct attribute parameter.
3514 (get_DW_AT_signature_type): Constify struct attribute parameter.
3515 (get_type_unit_group): Constify struct attribute parameter.
3516 (fill_in_loclist_baton): Constify struct attribute parameter.
3517 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3518 (type_unit_group): Constify struct attribute parameter.
3519
3520 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3521
3522 * dwarf2read.c (attr_form_is_block): Make argument const.
3523 (attr_form_is_section_offset): Make argument const.
3524 (attr_form_is_constant): Make argument const.
3525 (attr_form_is_ref): Make argument const.
3526
3527 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3528
3529 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3530 All uses updated.
3531 (attr_form_is_ref): Moved below attr_form_is_constant.
3532
3533 2013-07-29 Doug Evans <dje@google.com>
3534
3535 * main.c (captured_command_loop): Tweak comment.
3536
3537 * target.c (target_async_permitted_1): Fix comment.
3538
3539 * symtab.c (iterate_over_some_symtabs): Add comment.
3540
3541 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3542
3543 2013-07-27 Yao Qi <yao@codesourcery.com>
3544
3545 * NEWS: Mention that GDBserver now supports hardware
3546 watchpoints on the MIPS GNU/Linux target.
3547
3548 2013-07-27 Yao Qi <yao@codesourcery.com>
3549
3550 * Makefile.in (HFILES_NO_SRCDIR): Add
3551 common/mips-linux-watch.h.
3552 (mips-linux-watch.o): New rule.
3553 * common/mips-linux-watch.c: New.
3554 * common/mips-linux-watch.h: New.
3555 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3556 * mips-linux-nat.c: Include mips-linux-watch.h.
3557 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3558 to common/mips-linux-watch.h.
3559 (MAX_DEBUG_REGISTER): Likewise.
3560 (enum pt_watch_style): Likewise.
3561 (struct mips32_watch_regs): Likewise.
3562 (struct mips64_watch_regs): Likewise.
3563 (struct pt_watch_regs): Likewise.
3564 (struct mips_watchpoint): Likewise.
3565 (mips_linux_watch_get_irw_mask): Move to
3566 common/mips-linux-watch.c.
3567 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3568 (mips_linux_watch_get_watchlo): Likewise.
3569 (mips_linux_watch_set_watchlo): Likewise.
3570 (mips_linux_watch_get_watchhi): Likewise.
3571 (mips_linux_watch_set_watchhi): Likewise.
3572 (mips_linux_read_watch_registers): Likewise.
3573 (mips_linux_watch_type_to_irw): Likewise.
3574 (mips_linux_stopped_data_address, fill_mask): Likewise.
3575 (mips_linux_watch_try_one_watch): Likewise.
3576 (mips_linux_watch_populate_regs): Likewise.
3577
3578 2013-07-27 Yao Qi <yao@codesourcery.com>
3579
3580 * mips-linux-nat.c (get_irw_mask): Rename to ...
3581 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3582 'set' to 'n'. Update function comment. All callers changed.
3583 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3584 function comment. All callers changed.
3585 (get_num_valid): Rename to ...
3586 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3587 'set' to 'n'. Update function comment. All callers changed.
3588 (get_watchlo): Rename to ...
3589 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3590 'set' to 'n'. Update function comment. All callers changed.
3591 (set_watchlo): Rename to ...
3592 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3593 'set' to 'n'. Update function comment. All callers changed.
3594 (get_watchhi): Rename to ...
3595 (mips_linux_watch_get_watchhi): ... this. Update function
3596 comment. All callers changed.
3597 (set_watchhi): Rename to ...
3598 (mips_linux_watch_set_watchhi): ... this. Update function
3599 comment. All callers changed.
3600 (mips_linux_read_watch_registers): Update function comment.
3601 Add new parameters 'lwpid', 'watch_readback', and
3602 'watch_readback_valid'. Update.
3603 (type_to_irw): Rename to ...
3604 (mips_linux_watch_type_to_irw): ... this. Update function
3605 comment. All callers changed.
3606 (fill_mask): Update function comment.
3607 (try_one_watch): Rename to ...
3608 (mips_linux_watch_try_one_watch): ... this. Change the type
3609 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3610 (populate_regs_from_watches): Rename to ...
3611 (mips_linux_watch_populate_regs): ... this. Add parameter
3612 'current_watches'. All callers changed.
3613
3614 2013-07-27 Yao Qi <yao@codesourcery.com>
3615
3616 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3617 the code.
3618 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3619 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3620 (struct pt_watch_regs): Likewise.
3621 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3622 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3623 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3624 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3625 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3626
3627 2013-07-27 Yao Qi <yao@codesourcery.com>
3628
3629 * breakpoint.h: Include break-common.h.
3630 (enum target_hw_bp_type): Move to ...
3631 * common/break-common.h: ... here. New.
3632
3633 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3634
3635 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3636 process group regardless of having tty on stdin.
3637
3638 2013-07-25 Doug Evans <dje@google.com>
3639
3640 * linux-fork.h (detach_fork): Delete.
3641
3642 2013-07-25 Tom Tromey <tromey@redhat.com>
3643
3644 PR remote/15256, PR remote/15266:
3645 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3646 * monitor.c (monitor_detach): Use unpush_target.
3647 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3648 * remote-mips.c (mips_detach): Use unpush_target. Don't
3649 call mips_close.
3650 * remote-sim.c (gdbsim_detach): Use unpush_target.
3651 * target.c (pop_target): Remove.
3652 (pop_all_targets_above): Don't call target_close.
3653 (target_close): Assert that the target is unpushed.
3654 * target.h (pop_target): Don't declare.
3655 * tracepoint.c (tfile_open): Use unpush_target.
3656
3657 2013-07-25 Tom Tromey <tromey@redhat.com>
3658
3659 * linux-thread-db.c (init_thread_db_ops): Call
3660 complete_target_initialization.
3661 (_initialize_thread_db): Don't call add_target.
3662 * target.c (complete_target_initialization): New function.
3663 (add_target_with_completer): Call it.
3664 * target.h (complete_target_initialization): Declare.
3665
3666 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3667
3668 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3669 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3670 (HPPANBSD_SIZEOF_GREGS): New define.
3671 (hppaobsd_supply_gregset): Handle additional registers.
3672 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3673 we provide more registers now.
3674 (hppabsd_supply_gregset): Supply additional registers.
3675 (hppabsd_collect_gregset): Collect additional registers.
3676
3677 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3678
3679 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3680 (hppabsd_dwarf2_frame_init_reg): New function.
3681 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3682
3683 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3684
3685 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3686 'z' format code. Remove error for optimized out values, standard
3687 code will handle these fine.
3688
3689 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3690
3691 * NEWS: Mention new 'z' formatter.
3692 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3693 (_initialize_printcmd): Mention 'z' formatter in help text of the
3694 'x' command.
3695
3696 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3697
3698 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3699 formatting.
3700
3701 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3702
3703 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3704 interface can evaluate arguments. Fallback to the old mode if it
3705 cannot.
3706 (create_exception_master_breakpoint): Likewise.
3707 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3708 (struct sym_probe_fns elf_probe_fns): Export function above to the
3709 probe interface.
3710 * probe.c (can_evaluate_probe_arguments): New function.
3711 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3712 function pointer.
3713 (can_evaluate_probe_arguments): New function prototype.
3714 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3715 probe interface can evaluate arguments. Fallback to the old mode
3716 if it cannot.
3717 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3718 interface can evaluate arguments. Warning the user if it cannot.
3719 (stap_can_evaluate_probe_arguments): New function.
3720 (struct probe_ops stap_probe_ops): Export function above to the
3721 probe interface.
3722 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3723 New function pointer.
3724
3725 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3726
3727 * Makefile.in (SFILES): Add common/target-common.c.
3728 Add common/target-common.h to headers.
3729 (COMMON_OBS): Add target-common.o.
3730 (target-common.o): New target.
3731 * linux-nat.h (resume_kind): Move to common/target-common.h.
3732 * target.c (target_waitstatus_to_string): Move to
3733 common/target-common.c.
3734 * target.h: Include target-common.h.
3735 (target_waitkind): Move to common/target-common.h.
3736 (target_waitstatus): Likewise.
3737 (TARGET_WNOHANG): Likewise.
3738 * common/target-common.c: New file.
3739 * common/target-common.h: New file.
3740
3741 2013-07-24 Doug Evans <dje@google.com>
3742
3743 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3744 a warning.
3745
3746 2013-07-23 Yao Qi <yao@codesourcery.com>
3747
3748 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3749 parameter 'gdbarch'.
3750 (i386_stack_tramp_frame_sniffer): Caller update.
3751 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3752 parameter 'gdbarch' and 'target'.
3753 (i386_linux_core_read_description): Caller update.
3754 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3755 Likewise.
3756 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3757 declaration.
3758
3759 2013-07-23 Tom Tromey <tromey@redhat.com>
3760
3761 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3762 2013-07-22.
3763
3764 2013-07-22 Doug Evans <dje@google.com>
3765
3766 * exec.h (remove_target_sections): Delete arg abfd.
3767 * exec.c (exec_close): Update call to remove_target_sections.
3768 (remove_target_sections): Delete arg abfd.
3769 * solib.c (update_solib_list): Ditto.
3770 (reload_shared_libraries_1): Ditto.
3771 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3772 * target.h (struct target_section): Rename key to owner.
3773 All uses updated.
3774
3775 2013-07-22 Tom Tromey <tromey@redhat.com>
3776
3777 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3778
3779 2013-07-22 Tom Tromey <tromey@redhat.com>
3780
3781 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3782 Simplify cleanup handling.
3783
3784 2013-07-22 Tom Tromey <tromey@redhat.com>
3785
3786 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3787 on all return paths.
3788
3789 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3790
3791 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3792 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3793 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3794
3795 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3796
3797 * top.c (print_gdb_version): Add help, apropos description and
3798 url to online documentation.
3799
3800 2013-07-19 Hui Zhu <hui@codesourcery.com>
3801
3802 PR gdb/15692
3803 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3804
3805 2013-07-19 Yao Qi <yao@codesourcery.com>
3806
3807 * target.c (update_current_target): Change the default action
3808 of 'to_traceframe_info' from tcomplain to return_zero.
3809 * target.h (struct target_ops) <to_traceframe_info>: Add more
3810 comments.
3811 * valops.c (read_value_memory): Call
3812 traceframe_available_memory unconditionally.
3813
3814 2013-07-18 Yao Qi <yao@codesourcery.com>
3815
3816 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3817 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3818 symbol without prefix. If found, set its type to
3819 'mst_solib_trampoline'.
3820
3821 2013-07-17 Doug Evans <dje@google.com>
3822
3823 * NEWS: Mention "set print raw frame-arguments".
3824 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3825 * stack.c (print_raw_frame_arguments): New static global.
3826 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3827 (_initialize_stack): New command "set/show print raw frame-arguments".
3828 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3829 (set_print_raw, show_print_raw): New functions.
3830 (_initialize_valprint): New prefix command "set/show print raw".
3831 * valprint.h (value_print_options): Improve comments.
3832
3833 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3834 of all *list variables.
3835
3836 * gdbcmd.h (togglelist): Delete.
3837 * cli/cli-cmds.c (togglelist): Delete.
3838 (init_cmd_lists): Update.
3839 * cli/cli-cmds.h (togglelist): Delete.
3840
3841 2013-07-17 Tom Tromey <tromey@redhat.com>
3842
3843 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3844 dwarf2_per_objfile.
3845
3846 2013-07-16 Doug Evans <dje@google.com>
3847
3848 * nto-tdep.c (nto_relocate_section_addresses): Update,
3849 target_section.bfd deleted.
3850 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3851 * s390-tdep.c (s390_load): Ditto.
3852 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3853
3854 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3855
3856 * common/format.c (parse_format_string): Add checks for NULL
3857 character before calling strchr.
3858
3859 2013-07-16 Doug Evans <dje@google.com>
3860
3861 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3862 temp_pathname argument.
3863 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3864 when opening the file fails.
3865
3866 * target.h (struct target_section): Delete member bfd.
3867 All users updated to use the_bfd_section->owner instead.
3868 * exec.c (add_to_section_table): Assert bfd is expected value.
3869 Remove initialization of target_section.bfd.
3870 (remove_target_sections): Update.
3871 (section_table_available_memory): Update.
3872 (section_table_xfer_memory_partial): Update.
3873 (print_section_info): Update.
3874 (exec_set_section_address): Update.
3875 * record-full.c (record_full_core_xfer_partial): Update.
3876 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3877 * solib-target.c (solib_target_relocate_section_addresses): Update.
3878 * symfile.c (build_section_addr_info_from_section_table): Update.
3879 * target.c (memory_xfer_live_readonly_partial): Update.
3880 (memory_xfer_partial_1): Update.
3881
3882 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3883
3884 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3885 now available for embedded (BookE) and server (BookS) processors,
3886 correct mentions of 'booke' and adjust comments accordingly in order to
3887 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3888 (have_ptrace_booke_interface): Rename function and variable
3889 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3890 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3891 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3892 'hwdebug_point_cmp'. Update all uses.
3893 (booke_find_thread_points_by_tid): Rename function
3894 'booke_find_thread_points_by_tid' to
3895 'hwdebug_find_thread_points_by_tid'. Update all uses.
3896 (booke_insert_point): Rename function 'booke_insert_point' to
3897 'hwdebug_insert_point'. Update all uses.
3898 (booke_remove_point): Rename function 'booke_remove_point' to
3899 'hwdebug_remove_point'. Update all uses.
3900
3901 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3902
3903 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3904 numbers with enum values.
3905
3906 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3907
3908 PR threads/13217
3909 * thread.c (thread_apply_all_command): Check for valid threads
3910 and thread count.
3911 (thread_array_cleanup): New struct.
3912 (set_thread_refcount): New function.
3913
3914 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3915
3916 * infcmd.c (default_print_one_register_info): Reuse function
3917 print_hex_chars.
3918
3919 2013-07-10 Tom Tromey <tromey@redhat.com>
3920
3921 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3922 (ada-exp.o): New target.
3923
3924 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3925
3926 * mt-tdep.c (mt_registers_info): Call
3927 get_no_prettyformat_print_options instead of
3928 get_raw_print_options (regression by last patch from Doug
3929 Evans).
3930
3931 2013-07-09 Pedro Alves <palves@redhat.com>
3932
3933 Checked in by Joel Brobecker <brobecker@adacore.com>.
3934 * ada-lang.c (coerce_unspec_val_to_type): Use
3935 value_optimized_out_const.
3936 * value.c (value_optimized_out_const): New function.
3937 * value.h (value_optimized_out_const): New declaration.
3938
3939 2013-07-09 Doug Evans <dje@google.com>
3940
3941 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3942 Enum values rename as well. All uses updated.
3943 * valprint.h (value_print_options): Rename member pretty to
3944 pretty format. Rename member prettyprint_arrays to
3945 prettyformat_arrays. Rename member prettyprint_structs to
3946 prettyformat_structs. All uses updated.
3947 (get_no_prettyformat_print_options): Renamed from
3948 get_raw_print_options.
3949 * valprint.c (get_no_prettyformat_print_options): Renamed from
3950 get_raw_print_options. All callers updated.
3951 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3952 All callers updated.
3953 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3954 All callers updated.
3955 (_initialize_valprint): Improve help text for "set print pretty" and
3956 "set print arrays".
3957
3958 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3959
3960 * value.c (value_bits_valid): Revert previous change, and change
3961 by Pedro on 2013-07-04, due to regressions in
3962 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3963
3964 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3965 Pedro Alves <palves@redhat.com>
3966
3967 * value.c (value_bits_valid): If the value is not lval_computed
3968 or has no check validity handler then the answer is the
3969 optimized_out flag, otherwise defer to the handler.
3970
3971 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3972
3973 * top.c (print_gdb_configuration): Explain in output of
3974 --configuration what does "relocatable" mean.
3975
3976 * main.c (print_gdb_help): Regroup options in the --help text.
3977 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3978 the relevant discussions.
3979
3980 2013-07-06 Yao Qi <yao@codesourcery.com>
3981
3982 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3983 Remove parameter 'lsal'.
3984 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3985 to inner block. Caller update.
3986 (base_breakpoint_create_breakpoints_sal): Update.
3987 (bkpt_create_breakpoints_sal): Likewise.
3988 (tracepoint_create_breakpoints_sal): Likewise.
3989 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3990 element 0 of vector 'canonical->sals'.
3991
3992 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3993
3994 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3995 register number instead of the pseudo register one.
3996 (rs6000_dwarf2_reg_to_regnum): Likewise.
3997
3998 2013-07-04 Pedro Alves <palves@redhat.com>
3999
4000 * findvar.c (value_of_register): Use allocate_optimized_out_value
4001 if the register has been optimized out, instead of
4002 set_value_optimized_out.
4003 * frame-unwind.c (frame_unwind_got_optimized): Use
4004 allocate_optimized_out_value.
4005
4006 2013-07-04 Pedro Alves <palves@redhat.com>
4007
4008 * value.c (value_bits_valid): If the value is not lval_computed,
4009 or doesn't have a check_validity hook, assume the value is entirely
4010 valid.
4011
4012 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4013
4014 * stack.c (read_frame_arg): No longer fetch lazy values.
4015 * value.c (value_optimized_out): If the value is not already
4016 marked optimized out, and is lazy then fetch it.
4017 (value_primitive_field): Move optimized out check to later in the
4018 function, after we have loaded any lazy values.
4019 (value_fetch_lazy): Use optimized out flag directly rather than
4020 calling optimized_out method.
4021
4022 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4023
4024 * valops.c: Don't include "user-regs.h".
4025 (value_fetch_lazy): Moved to value.c.
4026 * value.c: Include "user-regs.h".
4027 (value_fetch_lazy): Moved from valops.c.
4028
4029 2013-07-04 Yao Qi <yao@codesourcery.com>
4030
4031 Revert:
4032 2013-06-27 Yao Qi <yao@codesourcery.com>
4033
4034 * common/create-version.sh: Update comments. Handle the case
4035 that TARGET_ALIAS is empty.
4036
4037 2013-07-03 Pedro Alves <palves@redhat.com>
4038
4039 * Makefile.in (config.status): Depend on development.sh.
4040 (aclocal_m4_deps): Add libmcheck.m4.
4041 * acinclude.m4: Include libmcheck.m4.
4042 * configure.ac: Source development.sh instead of setting
4043 'development' here. --enable-libmcheck/--disable-libmcheck code
4044 factored out to GDB_AC_LIBMCHECK. Run it.
4045 * development.sh: New file.
4046 * libmcheck.m4: New file.
4047 * configure: Regenerate.
4048
4049 2013-07-02 Tom Tromey <tromey@redhat.com>
4050
4051 * contrib/ari/update-web-ari.sh: Update for version.in change.
4052
4053 2013-07-02 Tom Tromey <tromey@redhat.com>
4054
4055 * common/ptid.h: Comment fixes.
4056
4057 2013-07-01 Tom Tromey <tromey@redhat.com>
4058
4059 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4060 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4061 (dwarf2_read_index, create_all_comp_units): Update.
4062
4063 2013-07-01 Tom Tromey <tromey@redhat.com>
4064
4065 * configure.ac (build_warnings): Add -Wold-style-definition.
4066 * configure: Rebuild.
4067 * machoread.c (_initialize_machoread): Use "(void)".
4068 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4069 use "(void)".
4070
4071 2013-07-01 Tom Tromey <tromey@redhat.com>
4072
4073 * configure.ac (build_warnings): Add -Wold-style-declaration.
4074 * configure: Rebuild.
4075 * dsrec.c (make_srec): Use "static const", not "const static".
4076 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4077 not "const static".
4078 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4079 Use "static const", not "const static".
4080 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4081 not "const static".
4082 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4083 not "const static".
4084 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4085 not "const static".
4086 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4087 not "const static".
4088 (v850_dbtrap_breakpoint_from_pc): Likewise.
4089 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4090 not "const static".
4091
4092 2013-07-01 Tom Tromey <tromey@redhat.com>
4093
4094 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4095 * configure: Rebuild.
4096
4097 2013-07-01 Pedro Alves <palves@redhat.com>
4098
4099 * defs.h: Include "pathmax.h".
4100 * utils.c: Don't include sys/param.h.
4101 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4102 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4103 instead of MAXPATHLEN.
4104 * solib-sunos.c: Don't include sys/param.h.
4105 * xcoffread.c: Don't include sys/param.h.
4106 * bsd-kvm.c: Don't include sys/param.h.
4107 * darwin-nat.c: Don't include sys/param.h.
4108 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4109 * darwin-nat-info.c: Don't include sys/param.h.
4110 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4111 MAXPATHLEN.
4112 * i386obsd-nat.c: Don't include sys/param.h.
4113 * inf-child.c: Don't include sys/param.h.
4114 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4115 * linux-fork.c: Don't include sys/param.h.
4116 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4117 * linux-nat.c: Don't include sys/param.h.
4118 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4119 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4120 * m68klinux-nat.c: Don't include sys/param.h.
4121 * nbsd-nat.c: Don't include sys/param.h.
4122 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4123 * ppc-linux-nat.c: Don't include sys/param.h.
4124 * rs6000-nat.c: Don't include sys/param.h.
4125 * spu-linux-nat.c. Don't include sys/param.h.
4126 * windows-nat.c: Don't include sys/param.h.
4127 * xtensa-linux-nat.c: Don't include sys/param.h.
4128 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4129
4130 2013-07-01 Pedro Alves <palves@redhat.com>
4131
4132 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4133 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4134 * gnulib/aclocal.m4: Regenerate.
4135 * gnulib/config.in: Regenerate.
4136 * gnulib/configure: Regenerate.
4137 * gnulib/import/pathmax.h: New file.
4138 * gnulib/import/Makefile.am: Regenerate.
4139 * gnulib/import/Makefile.in: Regenerate.
4140 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4141 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4142 * gnulib/import/m4/pathmax.m4: New file.
4143
4144 2013-07-01 Pedro Alves <palves@redhat.com>
4145
4146 * configure.ac (GDBINIT): Define, depending on host.
4147 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4148 * top.c (PATH_MAX): Delete fallback definition.
4149 (GDBINIT_FILENAME): Delete.
4150 (gdbinit): Reimplement as const char array set to the GDBINIT
4151 string constant.
4152 * top.h (gdbinit): Make const.
4153 * configure, config.in: Regenerate.
4154
4155 2013-07-01 Pedro Alves <palves@redhat.com>
4156
4157 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4158 * cli/cli-cmds.h (source_script): Likewise.
4159 * exceptions.c (catch_command_errors_const): New function.
4160 * exceptions.h (catch_command_errors_const): Declare.
4161 * main.c (get_init_files): Make parameters const, and adjust.
4162 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4163 'local_gdbinit' locals const. Adjust to use
4164 catch_command_errors_const.
4165 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4166 'local_gdbinit' locals const.
4167
4168 2013-07-01 Pedro Alves <palves@redhat.com>
4169
4170 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4171 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4172 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4173 <unistd.h>.
4174
4175 2013-07-01 Pedro Alves <palves@redhat.com>
4176
4177 Import the "unistd" gnulib module.
4178 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4179 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4180 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4181 import/m4/unistd_h.m4.
4182 * gnulib/aclocal.m4: Renenerate.
4183 * gnulib/config.in: Renenerate.
4184 * gnulib/configure: Renenerate.
4185 * gnulib/import/Makefile.am: Renenerate.
4186 * gnulib/import/Makefile.in: Renenerate.
4187 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4188 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4189 * gnulib/import/m4/off_t.m4: New file.
4190 * gnulib/import/m4/ssize_t.m4: New file.
4191 * gnulib/import/m4/sys_types_h.m4: New file.
4192 * gnulib/import/m4/unistd_h.m4: New file.
4193 * gnulib/import/sys_types.in.h: New file.
4194 * gnulib/import/unistd.c: New file.
4195 * gnulib/import/unistd.in.h: New file.
4196
4197 2013-07-01 Pedro Alves <palves@redhat.com>
4198
4199 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4200 defined instead of checking HAVE_UNISTD_H.
4201
4202 2013-07-01 Pedro Alves <palves@redhat.com>
4203
4204 Reimport gnulib from scratch.
4205 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4206 import/m4/onceonly.m4.
4207 * gnulib/aclocal.m4: Renegerate.
4208 * gnulib/config.in: Renegerate.
4209 * gnulib/configure: Renegerate.
4210 * gnulib/import/Makefile.in: Renegerate.
4211 * gnulib/import/extra/update-copyright: Renegerate.
4212 * gnulib/import/m4/onceonly.m4: Delete.
4213
4214 2013-07-01 Pedro Alves <palves@redhat.com>
4215
4216 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4217
4218 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4219
4220 Code cleanup.
4221 * remote.c (async_remote_interrupt_twice): Make it static.
4222 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4223
4224 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4225
4226 * ia64-linux-tdep.c: Include <ctype.h>.
4227 (ia64_linux_stap_is_single_operand): New function.
4228 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4229
4230 2013-06-28 Tom Tromey <tromey@redhat.com>
4231
4232 * Makefile.in (version.c): Use version.in, not
4233 common/version.in.
4234 * common/create-version.sh: Likewise.
4235 * common/version.in: Move...
4236 * version.in: ...here.
4237
4238 2013-06-28 Pedro Alves <palves@redhat.com>
4239
4240 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4241 here.
4242 * utils.h (pagination_enabled): Declare.
4243
4244 2013-06-28 Pedro Alves <palves@redhat.com>
4245
4246 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4247 Move higher up in file.
4248
4249 2013-06-28 Tom Tromey <tromey@redhat.com>
4250
4251 * tracepoint.c (deprecated_readline_begin_hook)
4252 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4253 declare.
4254
4255 2013-06-28 Pedro Alves <palves@redhat.com>
4256
4257 PR tui/14880
4258 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4259 checking if they're available.
4260 * value.c (value_available_contents_eq): Change comment.
4261 * value.h (value_available_contents_eq): Expand comment.
4262
4263 2013-06-27 Tom Tromey <tromey@redhat.com>
4264
4265 * target.c (find_run_target): Remove.
4266 * target.h (find_run_target): Remove.
4267
4268 2013-06-27 Tom Tromey <tromey@redhat.com>
4269
4270 * corelow.c (core_gdbarch): Now static.
4271
4272 2013-06-27 Tom Tromey <tromey@redhat.com>
4273
4274 * target.c (target_struct_index): Remove.
4275
4276 2013-06-27 Pedro Alves <palves@redhat.com>
4277
4278 * infrun.c: Remove comment describing the 'stepping over runtime
4279 loader dynamic symbol resolution code' mechanism; moved to
4280 gdbint.texinfo.
4281
4282 2013-06-27 Pedro Alves <palves@redhat.com>
4283
4284 * exceptions.c (catch_command_errors): Remove spurious space.
4285 * exceptions.h (catch_command_errors): Second parameter is "arg",
4286 not "command".
4287
4288 2013-06-27 Yao Qi <yao@codesourcery.com>
4289
4290 * common/create-version.sh: Update comments. Handle the case
4291 that TARGET_ALIAS is empty.
4292
4293 2013-06-26 Pedro Alves <palves@redhat.com>
4294
4295 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4296 comment.
4297
4298 2013-06-26 Pedro Alves <palves@redhat.com>
4299
4300 * infrun.c: Update comments on stepping over runtime loader
4301 dynamic symbol resolution code.
4302
4303 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4304
4305 * ax-gdb.h (union exp_element): Forward declare.
4306 * parser-defs.h: Include expression.h.
4307
4308 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4309
4310 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4311
4312 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4313
4314 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4315
4316 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4317
4318 Fix trace-status to output proper start-time and stop-time.
4319 * tracepoint.c (trace_status_command): Fix type of printf arg to
4320 prevent improper type conversion.
4321 (trace_status_mi): Likewise.
4322
4323 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4324
4325 * mips-tdep.c (mips_next_pc): Fix a typo.
4326
4327 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4328
4329 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4330
4331 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4332 Yao Qi <yao@codesourcery.com>
4333
4334 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4335 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4336 * mi/mi-main.c (print_variable_or_computed): New function.
4337 (mi_cmd_trace_frame_collected): New function.
4338 * tracepoint.c (find_trace_state_variable_by_number): New.
4339 (struct traceframe_info): Move to tracepoint.h
4340 (struct collection_list): Likewise.
4341 (do_collect_symbol): Include locals and arguments in the
4342 collected variables list.
4343 (clear_collection_list): Clear wholly collected variables list
4344 and computed variables list.
4345 (append_exp): New function.
4346 (encode_actions_1): Include variables in the wholly
4347 collected variables list. Include memory ranges and
4348 full-fledged expressions in the computed expressions list.
4349 (encode_actions): Move some code to ...
4350 Return the cleanup chain.
4351 (encode_actions_rsp): ... here. New function.
4352 (get_traceframe_location, get_traceframe_info): Remove static.
4353 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4354 (struct collection_list): Moved from tracepoint.c. Add two
4355 new fields 'wholly_collected' and 'computed'.
4356 (find_trace_state_variable_by_number): Declare.
4357 (encode_actions): Adjust declaration.
4358 (encode_actions_rsp): Declare.
4359 (get_traceframe_info, get_traceframe_location): Declare.
4360
4361 * NEWS: Mention new MI command -trace-frame-collected.
4362
4363 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4364 Yao Qi <yao@codesourcery.com>
4365
4366 * ctf.c (ctf_traceframe_info): Push trace state variables
4367 present in the trace data into the traceframe info object.
4368 * breakpoint.c (DEF_VEC_I): Remove.
4369 * common/filestuff.c (DEF_VEC_I): Likewise.
4370 * dwarf2loc.c (DEF_VEC_I): Likewise.
4371 * mi/mi-main.c (DEF_VEC_I): Likewise.
4372 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4373 * features/traceframe-info.dtd: Add tvar element and its
4374 attributes.
4375 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4376 (build_traceframe_info): Push trace state variables present in
4377 the trace data into the traceframe info object.
4378 (traceframe_info_start_tvar): New function.
4379 (tvar_attributes): New.
4380 (traceframe_info_children): Add "tvar" element.
4381 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4382
4383 * NEWS: Mention the change in GDB and GDBserver.
4384
4385 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4386 Yao Qi <yao@codesourcery.com>
4387
4388 * tracepoint.c (trace_dump_command): Move code to ...
4389 (get_traceframe_location): ... here. New.
4390
4391 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4392 Yao Qi <yao@codesourcery.com>
4393
4394 * tracepoint.c (trace_dump_command): GDB emits an error
4395 instead of a warning when a traceframe is not selected.
4396
4397 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4398 Yao Qi <yao@codesourcery.com>
4399
4400 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4401 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4402 in collection_list.
4403 (do_clear_collection_list, init_collection_list): New.
4404 (encode_actions): Add local variables 'tracepoint_list' and
4405 'stepping_list'. Call init_collection_list and make cleanup
4406 which calls do_clear_collection_list. Don't call
4407 clear_collection_list.
4408 (_initialize_tracepoint): Delete references to
4409 'tracepoint_list' and 'stepping_list'.
4410
4411 2013-06-25 Tom Tromey <tromey@redhat.com>
4412
4413 * common/create-version.sh (date): Use "$", not "$$" in sed
4414 expression.
4415
4416 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4417
4418 * NEWS (New targets): Add entry for TI MSP430.
4419
4420 2013-06-25 Yao Qi <yao@codesourcery.com>
4421
4422 * remote.c (remote_start_remote): Move code to upload tsv
4423 earlier.
4424
4425 2013-06-25 Yao Qi <yao@codesourcery.com>
4426 Hui Zhu <hui@codesourcery.com>
4427 Pedro Alves <palves@redhat.com>
4428
4429 PR breakpoints/15075
4430 PR breakpoints/15434
4431 * breakpoint.c (bpstat_stop_status): Call
4432 b->ops->after_condition_true.
4433 (update_dprintf_command_list): Don't append "continue" command
4434 to the command list of dprintf breakpoint.
4435 (base_breakpoint_after_condition_true): New function.
4436 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4437 (dprintf_after_condition_true): New function.
4438 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4439 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4440
4441 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4442
4443 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4444 (ALLDEPFILES): Add msp430-tdep.c.
4445 * configure.tgt (msp430*-*-elf): New target.
4446 * msp430-tdep.c: New file.
4447
4448 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4449
4450 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4451 microMIPS synthetic symbols.
4452
4453 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4454
4455 * objfiles.h (pc_in_section): New prototype.
4456 (in_plt_section): Remove name argument, replace prototype with
4457 static inline function.
4458 * mips-tdep.h: Include "objfiles.h".
4459 (in_mips_stubs_section): New function.
4460 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4461 in_solib_call_trampoline member.
4462 (hppa_in_solib_call_trampoline): Remove name argument.
4463 * objfiles.c (pc_in_section): New function.
4464 (in_plt_section): Remove function.
4465 * mips-linux-tdep.c: Include "objfiles.h".
4466 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4467 name argument. Return 1 rather than the low 16-bit halfword of
4468 any instruction examined.
4469 (mips_linux_in_dynsym_resolve_code): Update
4470 mips_linux_in_dynsym_stub call accordingly.
4471 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4472 rather than an equivalent hand-coded sequence.
4473 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4474 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4475 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4476 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4477 in_opd_section.
4478 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4479 on call to tdep->in_solib_call_trampoline.
4480 (hppa_in_solib_call_trampoline): Remove name argument, update
4481 according to in_plt_section change.
4482 (hppa_skip_trampoline_code): Update according to in_plt_section
4483 change.
4484 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4485 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4486 Likewise.
4487 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4488 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4489 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4490 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4491 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4492 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4493 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4494 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4495 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4496 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4497 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4498 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4499 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4500
4501 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4502
4503 * common/create-version.sh: Fix expansion of $host_alias
4504 and $target_alias in generation of HOST_NAME and TARGET_NAME
4505 (resp.).
4506
4507 2013-06-24 Tom Tromey <tromey@redhat.com>
4508
4509 * common/create-version.sh: New file.
4510 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4511 create-version.sh.
4512 (HFILES_NO_SRCDIR): Use common/version.h.
4513 * version.in: Move to ...
4514 * common/version.in: ... here. Replace date with "DATE".
4515 * version.h: Move to ...
4516 * common/version.h: ... here.
4517
4518 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4519
4520 * gdb/gnulib/Makefile.in: Update date in copyright header.
4521 * gdb/gnulib/configure.ac: Ditto.
4522 * gdb/gnulib/update-gnulib.sh: Ditto.
4523
4524 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4525
4526 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4527 "gdb/gnulib/import".
4528
4529 2013-06-21 Will Newton <will.newton@linaro.org>
4530
4531 * doublest.c (ldfrexp): Remove function.
4532 (convert_doublest_to_floatformat): Call frexpl instead of
4533 ldfrexp.
4534
4535 2013-06-21 Will Newton <will.newton@linaro.org>
4536
4537 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4538 * gnulib/aclocal.m4: Regenerate.
4539 * gnulib/config.in: Regenerate.
4540 * gnulib/configure: Regenerate.
4541 * gnulib/import/Makefile.am: Update.
4542 * gnulib/import/Makefile.in: Update.
4543 * gnulib/import/m4/gnulib-cache.m4: Update.
4544 * gnulib/import/m4/gnulib-comp.m4: Update.
4545 * gnulib/import/float+.h: Import.
4546 * gnulib/import/float.c: Import.
4547 * gnulib/import/float.in.h: Import.
4548 * gnulib/import/fpucw.h: Import.
4549 * gnulib/import/frexp.c: Import.
4550 * gnulib/import/frexpl.c: Import.
4551 * gnulib/import/isnan.c: Import.
4552 * gnulib/import/isnand-nolibm.h: Import.
4553 * gnulib/import/isnand.c: Import.
4554 * gnulib/import/isnanl-nolibm.h: Import.
4555 * gnulib/import/isnanl.c: Import.
4556 * gnulib/import/itold.c: Import.
4557 * gnulib/import/m4/exponentd.m4: Import.
4558 * gnulib/import/m4/exponentl.m4: Import.
4559 * gnulib/import/m4/float_h.m4: Import.
4560 * gnulib/import/m4/fpieee.m4: Import.
4561 * gnulib/import/m4/frexp.m4: Import.
4562 * gnulib/import/m4/frexpl.m4: Import.
4563 * gnulib/import/m4/isnand.m4: Import.
4564 * gnulib/import/m4/isnanl.m4: Import.
4565 * gnulib/import/m4/math_h.m4: Import.
4566 * gnulib/import/math.c: Import.
4567 * gnulib/import/math.in.h: Import.
4568
4569 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4570
4571 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4572 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4573 signature_INTEL_edx comparisons.
4574
4575 2013-06-20 Doug Evans <dje@google.com>
4576
4577 symtab/15652
4578 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4579 All callers updated.
4580 (open_dwp_file): If we can't find the dwp file, search the basename
4581 in debug-file-directory.
4582
4583 * dwarf2read.c (struct dwp_file): Fix comment.
4584 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4585
4586 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4587 better.
4588
4589 2013-06-20 Yao Qi <yao@codesourcery.com>
4590
4591 * breakpoint.c (create_breakpoint): Fix code indentation.
4592
4593 2013-06-20 Yao Qi <yao@codesourcery.com>
4594
4595 * breakpoint.c (create_breakpoints_sal_default): Remove
4596 parameter 'lsal'. Update declaration.
4597 (bkpt_create_breakpoints_sal): Caller update.
4598 (tracepoint_create_breakpoints_sal): Likewise.
4599
4600 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4601 Yao Qi <yao@codesourcery.com>
4602
4603 * NEWS: Mention the new option '--skip-unavailable' of command
4604 -data-list-register-values.
4605 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4606 --skip-unavailable option. Adjust to use output_register.
4607 (output_register): Add new 'skip_unavailable' parameter.
4608 Handle it.
4609
4610 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4611
4612 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4613 common/i386-gcc-cpuid.h.
4614 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4615 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4616 Copy the latest version from upstream gcc.
4617 * common/linux-btrace.c: Include i386-cpuid.h.
4618 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4619 call to i386_cpuid.
4620 (cpu_supports_btrace): Likewise.
4621 * go32-nat.c: Include i386-cpuid.h.
4622 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4623
4624 2013-06-19 Doug Evans <dje@google.com>
4625
4626 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4627 (get_section_index): Ditto.
4628
4629 2013-06-19 Tom Tromey <tromey@redhat.com>
4630
4631 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4632 "dprintf" help.
4633
4634 2013-06-18 Doug Evans <dje@google.com>
4635
4636 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4637 before using it.
4638 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4639 Move test of cu_index closer to use. Print complaint if cu_index
4640 is bad.
4641
4642 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4643
4644 * machoread.c (oso_vector): Delete this global.
4645 (macho_register_oso): Add new parameter "oso_vector_ptr".
4646 Use it instead of the "oso_vector" global.
4647 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4648 (macho_symfile_read): Use a local oso_vector, to be free'ed
4649 at the end of this function, in place of the old "oso_vector"
4650 global. Update various function calls accordingly. Use one
4651 single cleanup chain for the entire function.
4652
4653 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4654
4655 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4656 DWARF2_PER_OBJFILE by uses of DATA instead.
4657
4658 2013-06-18 Tom Tromey <tromey@redhat.com>
4659
4660 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4661 argument.
4662 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4663 Special case signals other than GDB_SIGNAL_TRAP.
4664 (explains_signal_watchpoint): New function.
4665 (base_breakpoint_explains_signal): Add 'sig' argument.
4666 (initialize_breakpoint_ops): Set 'explains_signal' method for
4667 watchpoints.
4668 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4669 signal argument.
4670 (bpstat_explains_signal): Likewise.
4671 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4672
4673 2013-06-18 Tom Tromey <tromey@redhat.com>
4674
4675 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4676
4677 2013-06-18 Tom Tromey <tromey@redhat.com>
4678
4679 * python/python.c (finish_python_initialization): Decref
4680 'pythondir' on failure path as well.
4681
4682 2013-06-18 Tom Tromey <tromey@redhat.com>
4683
4684 PR symtab/15391:
4685 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4686 after taking bits_to_skip into account. Sign extend byte_offset.
4687 * utils.h (gdb_sign_extend): Declare.
4688 * utils.c (gdb_sign_extend): New function.
4689
4690 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4691
4692 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4693
4694 2013-06-17 Pierre Muller <muller@sourceware.org>
4695
4696 * corelow.c (core_open): Print GDB signal name instead of target
4697 signal number.
4698
4699 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4700
4701 * .gitignore: Add /gcore.
4702
4703 2013-06-13 Doug Evans <dje@google.com>
4704
4705 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4706 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4707
4708 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4709
4710 * stack.c (backtrace_command_1): Fix indentation.
4711
4712 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4713
4714 * window-nat.c (thread_rec): Add missing empty line after
4715 local variable declaration.
4716
4717 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4718
4719 * windows-nat.c (thread_rec): Revert format used to print
4720 error code returned by SuspendThread from %d back to %u.
4721
4722 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4723
4724 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4725 ID in debug trace.
4726 (get_windows_debug_event): Likewise, for all debug traces.
4727
4728 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4729
4730 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4731 warning message.
4732
4733 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4734 Yao Qi <yao@codesourcery.com>
4735
4736 * mi/mi-main.c (get_register): Remove declaration.
4737 (output_register): Declare.
4738 (mi_cmd_data_list_register_values): Remove local variable
4739 'tuple_cleanup'. Move some code into output_register.
4740 (get_register): Renamed to ...
4741 (output_register): ... this. Output the register's
4742 "number" ui_out tuple here.
4743
4744 2013-06-07 Pedro Alves <palves@redhat.com>
4745
4746 * darwin-nat.c: Fix formating in copyright header.
4747 * darwin-nat.h: Likewise.
4748 * gnu-nat.c: Likewise.
4749 * machoread.c: Likewise.
4750
4751 2013-06-07 Pedro Alves <palves@redhat.com>
4752
4753 PR server/14823
4754 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4755 static. Output a global target description pointer.
4756 (init_registers_${name}): Adjust to initialize a
4757 target description structure.
4758
4759 2013-06-07 Will Newton <will.newton@linaro.org>
4760
4761 * printcmd.c (build_address_symbolic): Call
4762 gdbarch_addr_bits_remove for text minimal symbols.
4763
4764 2013-06-07 Will Newton <will.newton@linaro.org>
4765
4766 * MAINTAINERS: Add myself to Write After Approval.
4767
4768 2013-06-07 Yao Qi <yao@codesourcery.com>
4769
4770 * tracepoint.c (start_tracing): Move code to ...
4771 (trace_reset_local_state): ... here. New.
4772 (disconnect_tracing): Don't call set_current_traceframe,
4773 set_tracepoint_num, and set_traceframe_context. Call
4774 trace_reset_local_state instead.
4775 (tfile_close): Call trace_reset_local_state.
4776 * ctf.c (ctf_close): Likewise.
4777 * remote.c (remote_close): Likewise.
4778 * tracepoint.h (trace_reset_local_state): Declare.
4779
4780 2013-06-06 Doug Evans <dje@google.com>
4781
4782 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4783 and fix header docs.
4784
4785 2013-06-05 Doug Evans <dje@google.com>
4786 Keith Seitz <keiths@redhat.com>
4787
4788 PR 15519
4789 * cp-namespace.c (find_symbol_in_baseclass): Call
4790 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4791 Check result of call to lookup_symbol_static.
4792 Call lookup_static_symbol_aux unconditionally.
4793 Call check_typedef on base types before accessing them.
4794 (cp_lookup_nested_symbol): Fix comment.
4795
4796 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4797
4798 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4799 minimal symbols pointing to function descriptors.
4800
4801 2013-06-05 Tom Tromey <tromey@redhat.com>
4802
4803 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4804
4805 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4806 Pedro Alves <palves@redhat.com>
4807
4808 * remote.c (remote_wait_as): Restore signal handler before returning
4809 when GDB gets a notification.
4810
4811 2013-06-04 Gary Benson <gbenson@redhat.com>
4812
4813 PR 2328
4814 * breakpoint.h (handle_solib_event): Moved function declaration
4815 to solib.h.
4816 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4817 (bpstat_stop_status): Pass new argument to handle_solib_event.
4818 * solib.h (update_solib_breakpoints): New function declaration.
4819 (handle_solib_event): Moved function declaration from
4820 breakpoint.h.
4821 * solib.c (update_solib_breakpoints): New function.
4822 (handle_solib_event): Moved function from breakpoint.c.
4823 Updated to call solib_ops->handle_event if not NULL.
4824 * solist.h (target_so_ops): New fields "update_breakpoints" and
4825 "handle_event".
4826 * infrun.c (set_stop_on_solib_events): New function.
4827 (_initialize_infrun): Use the above for "set
4828 stop-on-solib-events".
4829 (handle_inferior_event): Pass new argument to handle_solib_event.
4830 * solib-svr4.c (probe.h): New include.
4831 (svr4_free_library_list): New forward declaration.
4832 (probe_action): New enum.
4833 (probe_info): New struct.
4834 (probe_info): New static variable.
4835 (NUM_PROBES): New definition.
4836 (svr4_info): New fields "using_xfer", "probes_table" and
4837 "solib_list".
4838 (free_probes_table): New function.
4839 (free_solib_list): New function.
4840 (svr4_pspace_data_cleanup): Free probes table and solib list.
4841 (svr4_copy_library_list): New function.
4842 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4843 (svr4_read_so_list): New parameter "prev_lm".
4844 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4845 (svr4_current_sos): New function.
4846 (probe_and_action): New struct.
4847 (hash_probe_and_action): New function.
4848 (equal_probe_and_action): Likewise.
4849 (register_solib_event_probe): Likewise.
4850 (solib_event_probe_at): Likewise.
4851 (solib_event_probe_action): Likewise.
4852 (solist_update_full): Likewise.
4853 (solist_update_incremental): Likewise.
4854 (disable_probes_interface_cleanup): Likewise.
4855 (svr4_handle_solib_event): Likewise.
4856 (svr4_update_solib_event_breakpoint): Likewise.
4857 (svr4_update_solib_event_breakpoints): Likewise.
4858 (svr4_create_solib_event_breakpoints): Likewise.
4859 (enable_break): Free probes table before creating breakpoints.
4860 Use svr4_create_solib_event_breakpoints to create breakpoints.
4861 (svr4_solib_create_inferior_hook): Free the solib list.
4862 (_initialize_svr4_solib): Initialise
4863 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4864
4865 2013-06-04 Gary Benson <gbenson@redhat.com>
4866
4867 * target.h (target_ops): New field
4868 "to_augmented_libraries_svr4_read".
4869 (target_augmented_libraries_svr4_read): New macro.
4870 * target.c (update_current_target): Handle
4871 to_augmented_libraries_svr4_read.
4872 * remote.c (remote_state): New field
4873 "augmented_libraries_svr4_read".
4874 (remote_augmented_libraries_svr4_read_feature): New function.
4875 (remote_protocol_features): Add entry for
4876 "augmented-libraries-svr4-read".
4877 (remote_augmented_libraries_svr4_read): New function.
4878 (init_remote_ops): Initialize
4879 remote_ops.to_augmented_libraries_svr4_read.
4880
4881 2013-06-04 Gary Benson <gbenson@redhat.com>
4882
4883 * NEWS: Update.
4884
4885 2013-06-04 Gary Benson <gbenson@redhat.com>
4886
4887 * objfiles.h (inhibit_section_map_updates): New function
4888 declaration.
4889 (resume_section_map_updates): Likewise.
4890 (resume_section_map_updates_cleanup): Likewise.
4891 * objfiles.c (objfile_pspace_info): Removed field
4892 "objfiles_changed_p". New fields "new_objfiles_available",
4893 "section_map_dirty" and "inhibit_updates".
4894 (allocate_objfile): Set new_objfiles_available.
4895 (free_objfile): Set section_map_dirty.
4896 (objfile_relocate1): Likewise.
4897 (in_plt_section): Likewise.
4898 (find_pc_section): Update the conditions under which the
4899 section map will be updated.
4900 (inhibit_section_map_updates): New function.
4901 (resume_section_map_updates): Likewise.
4902 (resume_section_map_updates_cleanup): Likewise.
4903
4904 2013-06-04 Gary Benson <gbenson@redhat.com>
4905
4906 * probe.h (get_probe_argument_count): New declaration.
4907 (evaluate_probe_argument): Likewise.
4908 * probe.c (get_probe_argument_count): New function.
4909 (evaluate_probe_argument): Likewise.
4910 (probe_safe_evaluate_at_pc): Use the above new functions.
4911
4912 2013-06-04 Alan Modra <amodra@gmail.com>
4913
4914 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4915 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4916 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4917 target mem reads on optional insns.
4918 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4919 ppc_insns_match_pattern calls.
4920 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4921 Add match for power7 thread safety insns, and new order of
4922 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4923 invocation in comment, and update rest of comment.
4924 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4925 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4926 (ppc64_standard_linkage2_target): Update insn offsets.
4927 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4928 stubs first. Update calls.
4929
4930 2013-06-04 Yao Qi <yao@codesourcery.com>
4931
4932 * solib.c (solib_find): Don't need dir separator if path has
4933 drive spec.
4934
4935 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4936
4937 Revert (indirectly causes a SIGSEGV):
4938 * machoread.c (macho_symfile_read): Assign first cleanup to
4939 'back_to'.
4940
4941 2013-06-03 Yao Qi <yao@codesourcery.com>
4942
4943 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4944 mi-parse.c. Make them static.
4945 (mi_all_values): Likewise.
4946 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4947 mi_parse_print_values. Make it external.
4948 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4949 Remove the declarations.
4950 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4951 * mi/mi-parse.h (mi_parse_print_values): Declare.
4952 * mi/mi-cmd-stack.c: Include mi-parse.h.
4953 (parse_print_values): Remove
4954 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4955 of parse_print_values.
4956 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4957
4958 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4959 Yao Qi <yao@codesourcery.com>
4960
4961 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4962 (encode_actions): Move code to ...
4963 (all_tracepoint_actions_and_cleanup): ... here. New.
4964 (trace_dump_command): Likewise.
4965
4966 2013-05-30 Tom Tromey <tromey@redhat.com>
4967
4968 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4969
4970 2013-05-30 Tom Tromey <tromey@redhat.com>
4971
4972 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4973 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4974 'old_chain' argument. Add 'parser_result' argument.
4975 (gdb_xml_create_parser_and_cleanup): Remove old version.
4976 (gdb_xml_parse_quick): Update.
4977 (xml_process_xincludes): Update.
4978 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4979 declare.
4980
4981 2013-05-30 Tom Tromey <tromey@redhat.com>
4982
4983 * probe.c (collect_probes): Check arguments for NULL before
4984 calling compile_rx_or_error.
4985 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4986 Remove NULL return.
4987
4988 2013-05-30 Tom Tromey <tromey@redhat.com>
4989
4990 * infrun.c (adjust_pc_after_break): Introduce an outer null
4991 cleanup.
4992
4993 2013-05-30 Tom Tromey <tromey@redhat.com>
4994
4995 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4996
4997 2013-05-30 Tom Tromey <tromey@redhat.com>
4998
4999 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5000 for 'old_chain'. Do not check 'head' before processing
5001 cleanups.
5002
5003 2013-05-30 Tom Tromey <tromey@redhat.com>
5004
5005 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5006 "cleanup_tuple".
5007
5008 2013-05-30 Tom Tromey <tromey@redhat.com>
5009
5010 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5011 inner scope. Unconditionally call do_cleanups.
5012
5013 2013-05-30 Tom Tromey <tromey@redhat.com>
5014
5015 * source.c (find_and_open_source): Call do_cleanups.
5016
5017 2013-05-30 Tom Tromey <tromey@redhat.com>
5018
5019 * linux-thread-db.c (thread_db_load_search): Unconditionally
5020 call do_cleanups.
5021
5022 2013-05-30 Tom Tromey <tromey@redhat.com>
5023
5024 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5025 for 'cleanup'; instead use a later one.
5026
5027 2013-05-30 Tom Tromey <tromey@redhat.com>
5028
5029 * python/py-breakpoint.c (bppy_get_commands): Use
5030 explicit, unconditional return.
5031 * python/py-frame.c (frapy_read_var): Likewise.
5032 * python/python.c (gdbpy_decode_line): Likewise.
5033
5034 2013-05-30 Tom Tromey <tromey@redhat.com>
5035
5036 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5037 do_cleanups on all return paths.
5038
5039 2013-05-30 Tom Tromey <tromey@redhat.com>
5040
5041 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5042
5043 2013-05-30 Tom Tromey <tromey@redhat.com>
5044
5045 * stabsread.c (read_struct_type): Call do_cleanups along
5046 all return paths.
5047
5048 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5049
5050 * mips-linux-tdep.c: Adjust formatting throughout.
5051
5052 2013-05-30 Tom Tromey <tromey@redhat.com>
5053
5054 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5055 along all return paths.
5056
5057 2013-05-30 Tom Tromey <tromey@redhat.com>
5058
5059 * symfile.c (find_separate_debug_file): Call do_cleanups
5060 along all return paths.
5061
5062 2013-05-30 Tom Tromey <tromey@redhat.com>
5063
5064 * symtab.c (search_symbols): Introduce a null cleanup for
5065 'retval_chain'.
5066
5067 2013-05-30 Tom Tromey <tromey@redhat.com>
5068
5069 * python/py-value.c (valpy_binop): Call do_cleanups before
5070 exiting loop.
5071
5072 2013-05-30 Tom Tromey <tromey@redhat.com>
5073
5074 * python/py-prettyprint.c (print_children): Remove extra
5075 do_cleanups call.
5076
5077 2013-05-30 Tom Tromey <tromey@redhat.com>
5078
5079 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5080 all return paths.
5081
5082 2013-05-30 Tom Tromey <tromey@redhat.com>
5083
5084 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5085 along all return paths.
5086
5087 2013-05-30 Tom Tromey <tromey@redhat.com>
5088
5089 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5090 call do_cleanups.
5091
5092 2013-05-30 Tom Tromey <tromey@redhat.com>
5093
5094 * varobj.c (c_value_of_root): Call do_cleanups along all
5095 return paths.
5096
5097 2013-05-30 Tom Tromey <tromey@redhat.com>
5098
5099 * tracepoint.c (trace_dump_command): Unconditionally call
5100 do_cleanups.
5101
5102 2013-05-30 Tom Tromey <tromey@redhat.com>
5103
5104 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5105 do_cleanups earlier.
5106
5107 2013-05-30 Tom Tromey <tromey@redhat.com>
5108
5109 * machoread.c (macho_symfile_read): Assign first cleanup to
5110 'back_to'.
5111
5112 2013-05-30 Tom Tromey <tromey@redhat.com>
5113
5114 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5115
5116 2013-05-30 Tom Tromey <tromey@redhat.com>
5117
5118 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5119
5120 2013-05-30 Tom Tromey <tromey@redhat.com>
5121
5122 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5123 call discard_cleanups.
5124 (inf_ptrace_attach): Likewise.
5125
5126 2013-05-30 Tom Tromey <tromey@redhat.com>
5127
5128 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5129 return paths.
5130 (mips_initialize): Likewise.
5131 (common_open): Call do_cleanups.
5132
5133 2013-05-30 Tom Tromey <tromey@redhat.com>
5134
5135 * utils.c (internal_vproblem): Call do_cleanups.
5136
5137 2013-05-30 Tom Tromey <tromey@redhat.com>
5138
5139 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5140
5141 2013-05-30 Tom Tromey <tromey@redhat.com>
5142
5143 * cli/cli-script.c (setup_user_args): Don't return after error.
5144
5145 2013-05-30 Tom Tromey <tromey@redhat.com>
5146
5147 * somread.c (som_symtab_read): Call do_cleanups.
5148
5149 2013-05-30 Tom Tromey <tromey@redhat.com>
5150
5151 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5152
5153 2013-05-30 Tom Tromey <tromey@redhat.com>
5154
5155 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5156 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5157 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5158 * source.c (show_substitute_path_command): Call do_cleanups.
5159 (unset_substitute_path_command, set_substitute_path_command):
5160 Likewise.
5161 * symfile.c (load_command): Call do_cleanups.
5162
5163 2013-05-30 Tom Tromey <tromey@redhat.com>
5164
5165 * contrib/cleanup_check.py: New file.
5166 * contrib/gcc-with-excheck: Add option parsing.
5167
5168 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5169
5170 * windows-nat.c (windows_delete_thread): Add missing space
5171 in cast expression.
5172
5173 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5174
5175 * inferior.c (top level): Include tilde.h.
5176 (add_inferior_command): Call tilde_expand on the value of 'exec'
5177 argument.
5178
5179 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5180 Yao Qi <yao@codesourcery.com>
5181
5182 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5183 Caller update.
5184 (encode_actions): Likewise.
5185 * remote.c (remote_download_tracepoint): Caller update.
5186 * tracepoint.h (encode_actions): Update declaration.
5187
5188 2013-05-30 Pedro Alves <palves@redhat.com>
5189
5190 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5191 pointer.
5192
5193 2013-05-30 Yao Qi <yao@codesourcery.com>
5194
5195 * remote.c (remote_check_symbols): Remove unused parameter
5196 'objfile'.
5197 Declaration update.
5198 (remote_start_remote, remote_new_objfile): Caller update.
5199
5200 2013-05-30 Yao Qi <yao@codesourcery.com>
5201
5202 * mi/mi-cmds.c (mi_cmds): Define MI command
5203 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5204 DEF_MI_CMD_CLI.
5205
5206 2013-05-29 Pedro Alves <palves@redhat.com>
5207
5208 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5209 (remote_insert_watchpoint, remote_remove_watchpoint)
5210 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5211 (remote_verify_memory, compare_sections_command)
5212 (remote_search_memory): Set the general process/thread on the
5213 remote side.
5214
5215 2013-05-29 Pedro Alves <palves@redhat.com>
5216
5217 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5218 (_initialize_aarch64_tdep): Don't call
5219 initialize_tdesc_aarch64_without_fpu.
5220 * features/Makefile (WHICH): Remove reference to
5221 aarch64-without-fpu.
5222 * features/aarch64-without-fpu.c: Delete file.
5223 * regformats/aarch64-without-fpu.dat: Delete file.
5224
5225 2013-05-28 Yao Qi <yao@codesourcery.com>
5226
5227 * tracepoint.c (stringify_collection_list): Remove parameter
5228 'string'.
5229 (encode_actions): Caller update. Remove local variables.
5230
5231 2013-05-24 Yao Qi <yao@codesourcery.com>
5232
5233 * tracepoint.c (TFILE_PID): Remove.
5234 (tfile_open): Don't add thread and inferior.
5235 (tfile_close): Don't set 'inferior_ptid'. Don't call
5236 exit_inferior_silent.
5237 (tfile_thread_alive): Remove.
5238 (init_tfile_ops): Don't set field 'to_thread_alive' of
5239 tfile_ops.
5240
5241 2013-05-23 Doug Evans <dje@google.com>
5242
5243 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5244
5245 2013-05-23 Pedro Alves <palves@redhat.com>
5246
5247 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5248 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5249 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5250 Only define if HAVE_SOCKETS is defined.
5251 * configure.ac: Check for sys/socket.h.
5252 * config.in, configure: Regenerate.
5253
5254 2013-05-23 Pedro Alves <palves@redhat.com>
5255
5256 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5257 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5258 printing uint32_t variables.
5259
5260 2013-05-23 Pedro Alves <palves@redhat.com>
5261
5262 * NEWS: Mention GDBserver range stepping support.
5263
5264 2013-05-23 Yao Qi <yao@codesourcery.com>
5265 Pedro Alves <palves@redhat.com>
5266
5267 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5268 field.
5269 * infcmd.c (step_once, until_next_command): Enable range stepping.
5270 * infrun.c (displaced_step_prepare): Disable range stepping.
5271 (resume): Disable range stepping if stepping over a breakpoint or
5272 we have software watchpoints. If range stepping is enabled,
5273 assert the thread is in the stepping range.
5274 (clear_proceed_status_thread): Clear may_range_step.
5275 (handle_inferior_event): Disable range stepping as soon as we know
5276 the thread that hit the event. Re-enable it whenever we're going
5277 to step with a step range.
5278 * remote.c (struct vCont_action_support) <r>: New field.
5279 (use_range_stepping): New global.
5280 (remote_vcont_probe): Handle 'r' action.
5281 (append_resumption): Append an 'r' action if the thread may range
5282 step.
5283 (show_range_stepping): New function.
5284 (set_range_stepping): New function.
5285 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5286 'set range-stepping' and 'show range-stepping' commands.
5287 * NEWS: Mention range stepping, the new vCont;r action, and the
5288 new "set/show range-stepping" commands.
5289
5290 2013-05-23 Yao Qi <yao@codesourcery.com>
5291 Pedro Alves <palves@redhat.com>
5292
5293 * remote.c (struct vCont_action_support): New struct.
5294 (struct remote_state) <support_vCont_t>: Remove field.
5295 <vCont_actions_support>: New field.
5296 (remote_vcont_probe, remote_stop_ns): Update.
5297
5298 2013-05-23 Yao Qi <yao@codesourcery.com>
5299 Pedro Alves <palves@redhat.com>
5300
5301 * gdbthread.h (pc_in_thread_step_range): New declaration.
5302 * thread.c (pc_in_thread_step_range): New function.
5303 * infrun.c (handle_inferior_event): Use it.
5304
5305 2013-05-23 Joel Brobecker <brobecker@adacore.com>
5306
5307 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5308 of sprintf.
5309
5310 2013-05-22 Keith Seitz <keiths@redhat.com>
5311
5312 * ada-lang.c (is_known_support_routine): Add explicit free of
5313 'func_name' from find_frame_funname.
5314 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5315 for func_name from find_frame_funname.
5316 * python/py-frame.c (frapy_name): Add explicit free of
5317 'name' from find_frame_funname.
5318 * stack.c (find_frame_funname): Add comment explaining that
5319 funcp must be freed by the caller.
5320 Return copy of symbol names instead of pointers.
5321 (print_frame): Add a cleanup for 'funname' from
5322 find_frame_funname.
5323 * stack.h (find_frame_funname): Remove "const" from
5324 'funname' parameter.
5325
5326 2013-05-22 Tom Tromey <tromey@redhat.com>
5327
5328 PR c++/15401:
5329 * c-valprint.c (c_value_print): Use value_addr for
5330 references. Convert back to reference type with value_ref.
5331
5332 2013-05-22 Eli Zaretskii <eliz@gnu.org>
5333
5334 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5335 unloaded DLL, it will be done by handle_solib_event. See
5336 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5337 details.
5338
5339 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5340
5341 * ui-out.c: Create typedef ui_out_level_p and define vector
5342 operations for that type.
5343 (struct ui_out): Use a vector instead of an array.
5344 (current_level): Return level from a vector.
5345 (push_level): Create a level in a vector.
5346 (pop_level): Delete a level in a vector.
5347 (ui_out_new): Create initial level zero level, and store in a
5348 vector.
5349 (ui_out_destroy): Add vector cleanup.
5350
5351 2013-05-22 Pedro Alves <palves@redhat.com>
5352
5353 * python/python-internal.h (gdb_Py_DECREF): Tag with
5354 "ARI: editCase function".
5355
5356 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5357
5358 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5359
5360 2013-05-21 Pedro Alves <palves@redhat.com>
5361
5362 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5363 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5364 * python/py-utils.c (py_decref): Don't check for NULL before
5365 calling Py_DECREF.
5366
5367 2013-05-21 Pedro Alves <palves@redhat.com>
5368
5369 * python/py-utils.c (py_decref): Remove extra braces.
5370 (gdb_pymodule_addobject): Remove extra braces.
5371 * python-internal.h (gdb_Py_DECREF): New static inline function.
5372 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5373
5374 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5375
5376 * breakpoints.c (detach_breakpoints): Do not
5377 detach breakpoints locations with loc_type bp_loc_other.
5378
5379 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5380
5381 Workaround Python 2.6.
5382 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5383 a block.
5384
5385 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5386
5387 Code cleanup: constification.
5388 * solib.c (solib_ops): Make return type and ops variable type const.
5389 (set_solib_ops): Make the new_ops parameter and ops variable const.
5390 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5391 (solib_add, solib_keep_data_in_core, clear_solib)
5392 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5393 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5394 const.
5395 * solib.h (set_solib_ops): Make the new_ops parameter const.
5396
5397 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5398
5399 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5400 variable.
5401 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5402 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5403 (SYSTEM_GDBINIT_FILES): New variables.
5404 (all): Add stamp-system-gdbinit.
5405 (stamp-system-gdbinit): New rule.
5406 (clean-system-gdbinit, install-system-gdbinit)
5407 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5408 (install-only): Add dependency on install-system-gdbinit.
5409 (uninstall): Add dependency on uninstall-system-gdbinit.
5410 (clean): Add dependency on clean-system-gdbinit.
5411 * system-gdbinit/elinos.py: New file.
5412 * system-gdbinit/wrs-linux.py: New file.
5413
5414 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5415
5416 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5417
5418 2013-05-21 Hui Zhu <hui@codesourcery.com>
5419
5420 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5421 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5422 * mi/mi-cmd-break.c (ctype.h): New include.
5423 (gdb_obstack.h): New include.
5424 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5425 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5426 (mi_cmd_dprintf_insert): New.
5427 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5428 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5429
5430 2013-05-20 Tom Tromey <tromey@redhat.com>
5431
5432 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5433
5434 2013-05-20 Tom Tromey <tromey@redhat.com>
5435
5436 * python/py-value.c (valpy_get_dynamic_type): Simplify
5437 dynamic_type assignment. Use Py_XINCREF.
5438
5439 2013-05-20 Tom Tromey <tromey@redhat.com>
5440
5441 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5442
5443 2013-05-20 Tom Tromey <tromey@redhat.com>
5444
5445 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5446 (gdbpy_selected_frame): Move object-construction code
5447 out of TRY_CATCH.
5448
5449 2013-05-20 Tom Tromey <tromey@redhat.com>
5450
5451 * python/py-arch.c (gdbpy_initialize_arch): Use
5452 gdb_pymodule_addobject.
5453 * python/py-block.c (gdbpy_initialize_blocks): Use
5454 gdb_pymodule_addobject.
5455 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5456 gdb_pymodule_addobject.
5457 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5458 gdb_pymodule_addobject.
5459 * python/py-event.c (gdbpy_initialize_event_generic): Use
5460 gdb_pymodule_addobject.
5461 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5462 gdb_pymodule_addobject.
5463 * python/py-evts.c (add_new_registry): Use
5464 gdb_pymodule_addobject.
5465 (gdbpy_initialize_py_events): Likewise.
5466 * python/py-finishbreakpoint.c
5467 (gdbpy_initialize_finishbreakpoints): Use
5468 gdb_pymodule_addobject.
5469 * python/py-frame.c (gdbpy_initialize_frames): Use
5470 gdb_pymodule_addobject.
5471 * python/py-function.c (gdbpy_initialize_functions): Use
5472 gdb_pymodule_addobject.
5473 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5474 gdb_pymodule_addobject.
5475 * python/py-infthread.c (gdbpy_initialize_thread): Use
5476 gdb_pymodule_addobject.
5477 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5478 gdb_pymodule_addobject.
5479 * python/py-param.c (gdbpy_initialize_parameters): Use
5480 gdb_pymodule_addobject.
5481 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5482 gdb_pymodule_addobject.
5483 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5484 gdb_pymodule_addobject.
5485 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5486 gdb_pymodule_addobject.
5487 * python/py-type.c (gdbpy_initialize_types): Use
5488 gdb_pymodule_addobject.
5489 * python/py-utils.c (gdb_pymodule_addobject): New function.
5490 * python/py-value.c (gdbpy_initialize_values): Use
5491 gdb_pymodule_addobject.
5492 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5493 * python/python.c (_initialize_python): Use
5494 gdb_pymodule_addobject.
5495
5496 2013-05-20 Tom Tromey <tromey@redhat.com>
5497
5498 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5499 * python/py-param.c (get_set_value, get_show_value): Use
5500 explicit decrefs.
5501 * python/python.c (start_type_printers, apply_type_printers):
5502 Use explicit decrefs.
5503
5504 2013-05-20 Tom Tromey <tromey@redhat.com>
5505
5506 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5507 incref the module.
5508
5509 2013-05-20 Tom Tromey <tromey@redhat.com>
5510
5511 * python/python.c (gdbpy_run_events): Decref the result
5512 of PyObject_CallObject.
5513
5514 2013-05-20 Tom Tromey <tromey@redhat.com>
5515
5516 * python/py-symtab.c (set_sal): Use
5517 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5518 (symtab_and_line_to_sal_object): Update.
5519
5520 2013-05-20 Tom Tromey <tromey@redhat.com>
5521
5522 * python/py-param.c (compute_enum_values): Decref 'item'.
5523
5524 2013-05-20 Tom Tromey <tromey@redhat.com>
5525
5526 * mi/mi-main.c: Include python-internal.h.
5527 (mi_cmd_list_features): Check gdb_python_initialized.
5528 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5529 (python_inferior_exit, python_new_objfile, add_thread_object)
5530 (delete_thread_object, py_free_inferior): Check
5531 gdb_python_initialized.
5532 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5533 gdb_python_initialized.
5534 * python/py-type.c (save_objfile_types): Check
5535 gdb_python_initialized.
5536 * python/python-internal.h (gdb_python_initialized): Declare.
5537 * python/python.c (ensure_python_env): Throw exception if
5538 Python not initialized.
5539 (before_prompt_hook, source_python_script_for_objfile)
5540 (start_type_printers, apply_type_printers,
5541 free_type_printers): Check gdb_python_initialized.
5542 * varobj.c (varobj_get_display_hint)
5543 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5544 (install_new_value_visualizer, varobj_set_visualizer)
5545 (value_get_print_value): Check gdb_python_initialized.
5546
5547 2013-05-20 Tom Tromey <tromey@redhat.com>
5548
5549 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5550 Check errors.
5551 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5552 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5553 Check errors.
5554 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5555 Check errors.
5556 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5557 Check errors.
5558 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5559 Check errors.
5560 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5561 init function to return 'int'.
5562 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5563 Return 'int'. Check errors.
5564 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5565 Check errors.
5566 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5567 Return 'int'. Check errors.
5568 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5569 Check errors.
5570 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5571 Check errors.
5572 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5573 Check errors.
5574 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5575 Check errors.
5576 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5577 Check errors.
5578 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5579 Check errors.
5580 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5581 Check errors.
5582 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5583 Check errors.
5584 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5585 Check errors.
5586 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5587 Check errors.
5588 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5589 Check errors.
5590 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5591 Check errors.
5592 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5593 Check errors.
5594 * python/python-internal.h (gdbpy_initialize_auto_load,
5595 gdbpy_initialize_values, gdbpy_initialize_frames,
5596 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5597 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5598 gdbpy_initialize_blocks, gdbpy_initialize_types,
5599 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5600 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5601 gdbpy_initialize_finishbreakpoints,
5602 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5603 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5604 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5605 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5606 gdbpy_initialize_signal_event,
5607 gdbpy_initialize_breakpoint_event,
5608 gdbpy_initialize_continue_event,
5609 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5610 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5611 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5612 * python/python.c (gdb_python_initialized): New global.
5613 (gdbpy_initialize_events): Return 'int'. Check errors.
5614 (_initialize_python): Check errors. Set
5615 gdb_python_initialized.
5616
5617 2013-05-20 Tom Tromey <tromey@redhat.com>
5618
5619 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5620 Decref the reslut of PyObject_CallMethod.
5621
5622 2013-05-20 Tom Tromey <tromey@redhat.com>
5623
5624 * python/py-event.c (gdbpy_initialize_event_generic): Return
5625 early if PyType_Ready fails.
5626
5627 2013-05-20 Tom Tromey <tromey@redhat.com>
5628
5629 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5630 as 'default' in the switch.
5631
5632 2013-05-20 Tom Tromey <tromey@redhat.com>
5633
5634 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5635 get_addr_from_python calls out of TRY_CATCH.
5636 (infpy_write_memory, infpy_search_memory): Likewise.
5637 * python/py-utils.c (get_addr_from_python): Return negative
5638 value on error. Use TRY_CATCH.
5639 * python/python-internal.h (get_addr_from_python): Use
5640 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5641
5642 2013-05-20 Tom Tromey <tromey@redhat.com>
5643
5644 * python/py-event.c (evpy_emit_event): Decref the
5645 result of PyObject_CallFunctionObjArgs.
5646
5647 2013-05-20 Tom Tromey <tromey@redhat.com>
5648
5649 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5650 Correctly decref.
5651
5652 2013-05-20 Tom Tromey <tromey@redhat.com>
5653
5654 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5655
5656 2013-05-20 Tom Tromey <tromey@redhat.com>
5657
5658 * python/py-event.h (gdbpy_initialize_event_generic): Use
5659 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5660 * python/py-evts.c (add_new_registry): Use
5661 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5662 * python/python-internal.h
5663 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5664
5665 2013-05-20 Tom Tromey <tromey@redhat.com>
5666
5667 * python/py-arch.c (archpy_disassemble): Update.
5668 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5669 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5670 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5671 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5672 macro.
5673 (GDB_PY_HANDLE_EXCEPTION): Update.
5674 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5675
5676 2013-05-20 Tom Tromey <tromey@redhat.com>
5677
5678 * python/python-internal.h (events_object_type): Remove.
5679
5680 2013-05-20 Tom Tromey <tromey@redhat.com>
5681
5682 * python/py-event.h (evpy_emit_event): Use
5683 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5684 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5685 New macro.
5686
5687 2013-05-20 Tom Tromey <tromey@redhat.com>
5688
5689 * py-evtregistry.c (create_event_object): Decref
5690 eventregistry_object if PyList_New fails.
5691
5692 2013-05-20 Tom Tromey <tromey@redhat.com>
5693
5694 * py-cmd.c (gdbpy_string_to_argv): Check result of
5695 PyList_New.
5696
5697 2013-05-20 Tom Tromey <tromey@redhat.com>
5698
5699 * python/python.c (before_prompt_hook): Add cleanup to
5700 decref 'hook'.
5701
5702 2013-05-20 Tom Tromey <tromey@redhat.com>
5703
5704 * python/py-function.c (fnpy_init): Decref result of
5705 PyObject_GetAttrString.
5706
5707 2013-05-20 Tom Tromey <tromey@redhat.com>
5708
5709 * python/py-threadevent.c (get_event_thread): Use
5710 CPYCHECKER_RETURNS_BORROWED_REF.
5711 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5712 New define.
5713 (pspace_to_pspace_object, objfile_to_objfile_object)
5714 (find_thread_object): Use it.
5715
5716 2013-05-20 Tom Tromey <tromey@redhat.com>
5717
5718 * python/py-arch.c (arch_object_type): Use
5719 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5720 * python/py-block.c (block_syms_iterator_object_type):
5721 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5722 * python/py-bpevent.c (breakpoint_event_object_type):
5723 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5724 * python/py-cmd.c (cmdpy_object_type): Use
5725 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5726 * python/py-continueevent.c (continue_event_object_type):
5727 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5728 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5729 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5730 * python/py-events.h (thread_event_object_type):
5731 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5732 * python/py-evtregistry.c (eventregistry_object_type): Use
5733 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5734 * python/py-exitedevent.c (exited_event_object_type):
5735 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5736 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5737 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5738 * python/py-function.c (fnpy_object_type): Use
5739 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5740 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5741 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5742 * python/py-infthread.c (thread_object_type): Use
5743 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5744 * python/py-lazy-string.c (lazy_string_object_type):
5745 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5746 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5747 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5748 * python/py-objfile.c (objfile_object_type): Use
5749 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5750 * python/py-param.c (parmpy_object_type):
5751 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5752 * python/py-progspace.c (pspace_object_type):
5753 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5754 * python/py-signalevent.c (signal_event_object_type):
5755 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5756 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5757 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5758 * python/py-type.c (type_object_type, field_object_type)
5759 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5760 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5761 define.
5762 (value_object_type, block_object_type, symbol_object_type)
5763 (event_object_type, stop_event_object_type, breakpoint_object_type)
5764 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5765
5766 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5767
5768 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5769 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5770
5771 2013-05-20 Doug Evans <dje@google.com>
5772
5773 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5774 For Fission.
5775 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5776 reading_dwo_directly.
5777 (struct signatured_type): New member dwo_unit.
5778 (struct die_reader_specs): New member comp_dir.
5779 (create_signatured_type_table_from_index): Use malloc for
5780 all_type_units instead of objfile's obstack.
5781 (create_all_type_units): Ditto.
5782 (fill_in_sig_entry_from_dwo_entry): New function.
5783 (add_type_unit): New function.
5784 (lookup_dwo_signatured_type): New function.
5785 (lookup_dwp_signatured_type): New function.
5786 (lookup_signatured_type): New arg cu. All callers updated.
5787 (init_cu_die_reader): Initialize comp_dir.
5788 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5789 Change assert of matching type signatures to call error on mismatch.
5790 (lookup_dwo_unit): Add assert.
5791 (init_tu_and_read_dwo_dies): New function.
5792 (init_cutu_and_read_dies): Call it.
5793 (build_type_unit_groups): Handle case of no type unit groups created.
5794 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5795 (lookup_dwo_cutu): Tweak complaint.
5796 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5797 (dwarf2_per_objfile_free): Free all_type_units.
5798
5799 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5800
5801 * windows-nat.c (handle_unload_dll): Add missing empty line.
5802
5803 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5804
5805 * dwarf2read.c (prototyped_function_p): New function.
5806 (read_subroutine_type): Use it.
5807
5808 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5809
5810 * rs6000-aix-tdep.c: De-indent some example code provided
5811 as a comment.
5812
5813 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5814
5815 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5816 region is ok for a hardware watchpoint using the new ptrace interface
5817 on Power servers.
5818
5819 2013-05-17 Doug Evans <dje@google.com>
5820
5821 * NEWS: Mention new maintenance commands check-symtabs, and
5822 expand-symtabs, and renamed check-psymtabs.
5823 * psymtab.c (maintenance_check_psymtabs): Renamed from
5824 maintenance_check_symtabs. Only process already-expanded symbol
5825 tables.
5826 (_initialize_psymtab): Update.
5827 * symmisc.c (maintenance_check_symtabs): New function.
5828 (maintenance_expand_name_matcher): New function
5829 (maintenance_expand_file_matcher): New function
5830 (maintenance_expand_symtabs): New function.
5831 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5832 commands.
5833
5834 2013-05-17 Tom Tromey <tromey@redhat.com>
5835
5836 * python/py-inferior.c (infpy_read_memory): Don't call
5837 PyErr_SetString if PyObject_New fails.
5838 * python/py-frame.c (frame_info_to_frame_object): Don't call
5839 PyErr_SetString if PyObject_New fails.
5840
5841 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5842
5843 * acinclude.m4: Add check for dlopen in libdl.
5844 * configure.ac: Ditto.
5845 * configure: Regenerate.
5846
5847 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5848
5849 * frame.c (frame_stash): Convert to htab.
5850 (frame_addr_hash): New function.
5851 (frame_addr_hash_eq): New function.
5852 (frame_stash_create): Convert function to create
5853 a hash table.
5854 (frame_stash_add): Convert function to add an entry to a hash
5855 table.
5856 (frame_stash_find): Convert function to search the hash table.
5857 (frame_stash_invalidate): Convert function to empty the hash
5858 table.
5859 (get_frame_id): Only add to stash if a frame_id is created.
5860 (_initialize_frame): Call frame_stash_create.
5861
5862 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5863
5864 * configure.ac: Ensure MIG is available when building for GNU Hurd
5865 hosts.
5866 * configure: Regenerate.
5867
5868 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5869
5870 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5871
5872 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5873
5874 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5875 all cleanups are done before returning from this function.
5876
5877 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5878
5879 * utils.h: #include "exceptions.h".
5880 (enum errors): Remove partial declaration.
5881
5882 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5883
5884 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5885 * gdbarch.h, gdbarch.c: Regenerate.
5886 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5887 handling.
5888
5889 * rs6000-aix-tdep.h: New file.
5890 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5891 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5892 "xml-utils.h".
5893 (struct field_info, struct ld_info_desc): New types.
5894 (ld_info32_desc, ld_info64_desc): New static constants.
5895 (struct ld_info): New type.
5896 (rs6000_aix_extract_ld_info): New function.
5897 (rs6000_aix_shared_library_to_xml): Likewise.
5898 (rs6000_aix_ld_info_to_xml): Likewise.
5899 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5900 (rs6000_aix_init_osabi): Add call to
5901 set_gdbarch_core_xfer_shared_libraries_aix.
5902 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5903 Remove "xml-utils.h" include.
5904 (LdInfo): Delete typedef.
5905 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5906 Delete macros.
5907 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5908 Adjust code accordingly.
5909 (rs6000_core_ldinfo): Delete, folded into
5910 rs6000_aix_core_xfer_shared_libraries_aix.
5911 (rs6000_xfer_shared_library): Delete.
5912 (rs6000_xfer_shared_libraries): Reimplement.
5913
5914 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5915
5916 * record.c (record_goto_cmdlist): New.
5917 (cmd_record_goto): Split into this ...
5918 (cmd_record_goto_begin): ... this
5919 (cmd_record_goto_end): ... and this.
5920 (_initialize_record): Change "record goto" to prefix command.
5921 Add commands for "record goto begin" and "record goto end".
5922 Add an alias for "record goto start" to "record goto begin".
5923
5924 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5925
5926 * linespec.c (convert_linespec_to_sals): New comment for
5927 SOURCE_FILENAME assignment.
5928
5929 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5930
5931 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5932 internal_warning.
5933
5934 2013-05-14 Tom Tromey <tromey@redhat.com>
5935
5936 * eval.c (parse_and_eval_long): Make 'exp' const.
5937 * value.h (parse_and_eval_long): Update.
5938
5939 2013-05-14 Tom Tromey <tromey@redhat.com>
5940
5941 * ui-file.c (gdb_fopen): Make arguments const.
5942 * ui-file.h (gdb_fopen): Make arguments const.
5943
5944 2013-05-14 Tom Tromey <tromey@redhat.com>
5945
5946 * remote.c (remote_set_trace_notes): Make arguments const.
5947 * target.c (update_current_target): Update cast.
5948 * target.h (to_set_trace_notes): Make arguments const.
5949
5950 2013-05-14 Tom Tromey <tromey@redhat.com>
5951
5952 * go32-nat.c (go32_terminal_info): Make 'args' const.
5953 * inferior.h (child_terminal_info): Update.
5954 * inflow.c (child_terminal_info): Make 'args' const.
5955 * target.c (default_terminal_info): Make 'args' const.
5956 (debug_to_terminal_save_ours): Likewise.
5957 * target.h (struct target_ops) <to_terminal_info>: Make argument
5958 const.
5959
5960 2013-05-13 Tom Tromey <tromey@redhat.com>
5961
5962 * gcore.c (create_gcore_bfd): Make 'filename' const.
5963 * gcore.h (create_gcore_bfd): Make 'filename' const.
5964 * record-full.c (record_full_save): Make 'recfilename' const.
5965 * target.c (target_save_record): Make 'filename' const.
5966 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5967 const.
5968 (target_save_record): Likewise.
5969
5970 2013-05-13 Tom Tromey <tromey@redhat.com>
5971
5972 PR gdb/15338:
5973 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5974 ranges section has been read.
5975
5976 2013-05-13 Tom Tromey <tromey@redhat.com>
5977
5978 PR exp/15364:
5979 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5980 STRUCTOP_PTR>: Return a not_lval value for
5981 EVAL_AVOID_SIDE_EFFECTS.
5982 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5983 for EVAL_AVOID_SIDE_EFFECTS.
5984
5985 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5986
5987 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5988 floating point registers to register type before storing
5989 value.
5990 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5991 Likewise.
5992
5993 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5994 Tom Tromey <tromey@redhat.com>
5995
5996 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5997 New functions.
5998 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5999 Declare.
6000 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6001 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6002 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6003 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6004
6005 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6006 Tom Tromey <tromey@redhat.com>
6007
6008 PR build/15414:
6009 * configure: Rebuild.
6010 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6011 with -Wno-format.
6012
6013 2013-05-10 Pedro Alves <palves@redhat.com>
6014
6015 * remote.c (_initialize_remote): Fix spelling of
6016 qXfer:traceframe-info:read packet in packet config command.
6017
6018 2013-05-10 David Taylor <dtaylor@emc.com>
6019
6020 PR remote/15455
6021
6022 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6023 "QTro" at start of packet.
6024
6025 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6026
6027 * solib-aix.c (solib_aix_relocate_section_addresses):
6028 For the .bss section action, apply the same offset as
6029 the .data section.
6030
6031 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6032
6033 * solib-aix.c (solib_aix_relocate_section_addresses):
6034 Remove FIXME comment.
6035
6036 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6037
6038 PR tdep/15420:
6039 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6040 New functions, directly copied from sparc-sol-thread.c.
6041 * sparc-sol-thread.c: Delete.
6042 * configure.ac: Remove code handling sparc-solaris-thread.c.
6043 * configure: Regenerate.
6044
6045 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6046
6047 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6048 filter logic.
6049 (backtrace_command): Add "no-filters" option parsing.
6050 (_initialize_stack): Alter help to reflect "no-filters" option.
6051 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6052 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6053 (py-frame.o): Add target
6054 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6055 filter files.
6056 * python/python.h: Add new frame filter constants, and flag enum.
6057 (apply_frame_filter): Add definition.
6058 * python/python.c (apply_frame_filter): New non-Python
6059 enabled function.
6060 * python/py-utils.c (py_xdecref): New function.
6061 (make_cleanup_py_xdecref): Ditto.
6062 * python/py-objfile.c: Declare frame_filters dictionary.
6063 (objfpy_dealloc): Add frame_filters dealloc.
6064 (objfpy_new): Initialize frame_filters attribute.
6065 (objfile_to_objfile_object): Ditto.
6066 (objfpy_get_frame_filters): New function.
6067 (objfpy_set_frame_filters): New function.
6068 * python/py-progspace.c: Declare frame_filters dictionary.
6069 (pspy_dealloc): Add frame_filters dealloc.
6070 (pspy_new): Initialize frame_filters attribute.
6071 (pspacee_to_pspace_object): Ditto.
6072 (pspy_get_frame_filters): New function.
6073 (pspy_set_frame_filters): New function.
6074 * python/py-framefilter.c: New file.
6075 * python/lib/gdb/command/frame_filters.py: New file.
6076 * python/lib/gdb/frames.py: New file.
6077 * python/lib/gdb/__init__.py: Initialize global frame_filters
6078 dictionary
6079 * python/lib/gdb/FrameDecorator.py: New file.
6080 * python/lib/gdb/FrameIterator.py: New file.
6081 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6082 * mi/mi-cmds.h: Declare.
6083 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6084 --no-frame-filter logic, and Python frame filter logic.
6085 (stack_enable_frame_filters): New function.
6086 (parse_no_frame_option): Ditto.
6087 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6088 filter logic.
6089 (mi_cmd_stack_list_locals): Ditto.
6090 (mi_cmd_stack_list_args): Ditto.
6091 (mi_cmd_stack_list_variables): Ditto.
6092 * NEWS: Add frame filter note.
6093
6094 2013-05-09 Doug Evans <dje@google.com>
6095
6096 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6097 All callers updated.
6098 (syms_from_objfile): Ditto. Make static.
6099 (symbol_file_add_with_addrs): Renamed from
6100 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6101 num_offsets. All callers updated.
6102 * symfile.h (syms_from_objfile): Delete.
6103
6104 * symfile.c (decrement_reading_symtab): Add assert.
6105 (increment_reading_symtab): Ditto.
6106
6107 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6108
6109 * source.c (forward_search_command): Replace call to getc
6110 by call to fgetc.
6111 (reverse_search_command): Likewise.
6112
6113 2013-05-08 Doug Evans <dje@google.com>
6114
6115 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6116 matching test.
6117
6118 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6119
6120 * sol-thread.c (info_cb): Factorize the code a little.
6121
6122 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6123
6124 * sol-thread.c (info_cb): Rework the output of the "maintenance
6125 info sol-threads" command a bit.
6126
6127 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6128
6129 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6130 Replace ti.ti_startfunc by ti.ti_pc.
6131
6132 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6133
6134 * solib-aix.c (solib_aix_free_library_list): New function
6135 for the case where HAVE_LIBEXPAT is not defined.
6136
6137 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6138
6139 PR breakpoints/15413:
6140 * breakpoint.c (condition_completer): Simplify the code to
6141 disconsider multiple locations of breakpoints when completing the
6142 "condition" command.
6143
6144 2013-05-07 Pierre Muller <muller@sourceware.org>
6145
6146 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6147 instead of <sys/wait.h>.
6148
6149 2013-05-07 Pierre Muller <muller@sourceware.org>
6150
6151 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6152 trailing new line from warning message.
6153
6154 2013-05-07 Pierre Muller <muller@sourceware.org>
6155
6156 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6157 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6158
6159 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6160
6161 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6162 error message (ARI fix).
6163
6164 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6165
6166 * features/library-list-aix.dtd: Replace library-list by
6167 library-list-aix.
6168 * rs6000-nat.c: Replace library-list by library-list-aix
6169 throughout.
6170 * solib-aix.c: Likewise.
6171
6172 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6173
6174 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6175 Renames TARGET_OBJECT_AIX_LIBRARIES.
6176 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6177 TARGET_OBJECT_LIBRARIES_AIX throughout.
6178 * solib-aix.c: Likwise.
6179
6180 2013-05-07 Yao Qi <yao@codesourcery.com>
6181
6182 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6183 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6184
6185 2013-05-07 Yao Qi <yao@codesourcery.com>
6186
6187 * solib-dsbt.c (enable_break): Declare.
6188 (dsbt_current_sos): Remove call to enable_break2.
6189 (enable_break2): Rename to enable_break. Set solib breakpoint
6190 on '_dl_debug_state'.
6191 (enable_break): Remove.
6192
6193 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6194
6195 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6196 debug state prior to replicating existing hardware watchpoints or
6197 breakpoints.
6198
6199 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6200
6201 * gcore.c (gcore_create_callback): Ignore sections with
6202 separate_debug_objfile_backlink != NULL.
6203
6204 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6205 Andrew Jenner <andrew@codesourcery.com>
6206 Chung-Lin Tang <cltang@codesourcery.com>
6207 Julian Brown <julian@codesourcery.com>
6208
6209 Based on the nios2-elf port from Altera Corporation.
6210
6211 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6212 nios2-linux-tdep.o.
6213 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6214 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6215 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6216 * nios2-tdep.h: New.
6217 * nios2-tdep.c: New.
6218 * nios2-linux-tdep.c: New.
6219 * features/Makefile (WHICH): Add nios2-linux.
6220 (nios2-linux-expedite): Set.
6221 * features/nios2-cpu.xml: New.
6222 * features/nios2.xml: New.
6223 * features/nios2-linux.xml: New.
6224 * features/nios2.c: New (autogenerated).
6225 * features/nios2-linux.c: New (autogenerated).
6226 * regformats/nios2-linux.dat: New (autogenerated).
6227 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6228 and commands.
6229
6230 2013-05-06 Doug Evans <dje@google.com>
6231
6232 * symfile.c: Whitespace cleanup.
6233
6234 * solist.h (struct target_so_ops): New member clear_so.
6235 * solib-svr4.c (svr4_clear_so): New function.
6236 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6237 * solib.c (clear_so): Renamed from free_so_symbols.
6238 All callers updated. Call target clear_so if it exists.
6239
6240 2013-05-06 Tom Tromey <tromey@redhat.com>
6241
6242 * ada-lang.c (ada_value_primitive_packed_val): Don't
6243 call value_incref.
6244 * value.c (set_value_parent): Incref the new parent and decref
6245 the old parent.
6246 (value_copy, value_primitive_field): Use set_value_parent.
6247
6248 2013-05-06 Tom Tromey <tromey@redhat.com>
6249
6250 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6251 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6252 if needed.
6253 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6254 * dwarf2read.c (write_constant_as_bytes)
6255 (dwarf2_fetch_constant_bytes): New functions.
6256
6257 2013-05-06 Tom Tromey <tromey@redhat.com>
6258
6259 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6260 parameters.
6261 (dwarf2_const_value_attr): Update.
6262
6263 2013-05-06 Tom Tromey <tromey@redhat.com>
6264
6265 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6266 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6267 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6268 Remove declaration.
6269
6270 2013-05-06 Tom Tromey <tromey@redhat.com>
6271
6272 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6273 objfile's obstack.
6274
6275 2013-05-06 Doug Evans <dje@google.com>
6276
6277 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6278 * stabsread.h (process_one_symbol): Update declaration.
6279 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6280 * elfread.c (elf_symfile_relocate_probe): Ditto.
6281 * psymtab.c (relocate_psymtabs): Ditto.
6282 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6283 (objfile_relocate): Ditto.
6284 * objfiles.h (objfile_relocate): Update declaration.
6285 * symfile.c (relative_addr_info_to_section_offsets): Constify
6286 addrs parameter.
6287 (default_symfile_offsets): Ditto.
6288 (syms_from_objfile_1): Constify offsets parameter.
6289 (syms_from_objfile): Ditto.
6290 (symbol_file_add_with_addrs_or_offsets): Ditto.
6291 (symfile_map_offsets_to_segments): Constify data parameter.
6292 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6293 delta parameters of member relocate.
6294 (struct sym_probe_fns): Constify new_offsets,
6295 delta parameters of member sym_relocate_probe.
6296 (struct sym_fns): Constify section_addr_info parameter of member
6297 sym_offsets.
6298 (relative_addr_info_to_section_offsets): Update declaration.
6299 (default_symfile_offsets): Ditto.
6300 (syms_from_objfile): Ditto.
6301 (symfile_map_offsets_to_segments): Ditto.
6302
6303 * symfile.c (syms_from_objfile_1): Use correct section count when
6304 objfile->sf == NULL.
6305
6306 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6307
6308 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6309
6310 2013-05-06 Doug Evans <dje@google.com>
6311
6312 * psympriv.h (struct partial_symtab): Augment comment for member
6313 section_offsets.
6314
6315 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6316
6317 Reimplement shared library support on ppc-aix...
6318 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6319 * features/library-list-aix.dtd: New file.
6320 * solib-aix.h, solib-aix.c: New file.
6321 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6322 (rs6000_find_toc_address_hook): Delete.
6323 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6324 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6325 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6326 "xml-utils.h".
6327 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6328 (vmap_symtab, fixup_breakpoints): Delete.
6329 (rs6000_xfer_shared_libraries): New function.
6330 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6331 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6332 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6333 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6334 (rs6000_xfer_shared_library): New function.
6335 (find_toc_address): Delete.
6336 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6337 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6338 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6339 before creating minimal symbol. Adjust function description
6340 accordingly.
6341 (scan_xcoff_symtab): Replace call to
6342 prim_record_minimal_symbol_and_info by call to
6343 record_minimal_symbol.
6344 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6345 around default_symfile_offsets.
6346 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6347 powerpc-aix targets.
6348 * config/rs6000/nm-rs6000.h: Delete.
6349 * config/powerpc/aix.mh (NAT_FILE): Delete.
6350 (NATDEPFILES): Remove xcoffsolib.o.
6351 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6352 (ALL_TARGET_OBS): Add solib-aix.o.
6353 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6354 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6355 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6356 * xcoffsolib.h, xcoffsolib.c: Delete.
6357
6358 * solib.c (reload_shared_libraries): Remove reference to
6359 SOLIB_CREATE_INFERIOR_HOOK.
6360 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6361 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6362 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6363 comment.
6364 * corelow.c (deprecated_core_resize_section_table): Delete.
6365 * exec.c: Remove include of xcoffsolib.h".
6366 (map_vmap, vmap): Delete.
6367 (exec_close_1): Remove references to vmap.
6368 (exec_file_attach): Remove vmap handling code, and reference
6369 to DEPRECATED_IBM6000_TARGET.
6370 (bfdsec_to_vmap): Delete.
6371 (exec_files_info): Remove block of code handling VMAP.
6372 * infcmd.c (post_create_inferior): Remove reference to
6373 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6374 * infrun.c (follow_exec): Remove reference to
6375 SOLIB_CREATE_INFERIOR_HOOK.
6376 * stack.c (print_frame): Remove reference to PC_SOLIB.
6377 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6378 (dsbt_relocate_main_executable): Likewise.
6379 * solib-frv.c (frv_current_sos): Likewise.
6380
6381 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6382
6383 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6384 to target_write_memory and target_read_memory.
6385
6386 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6387
6388 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6389 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6390
6391 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6392
6393 * darwin-nat.c: Replace all "%x" instances in format strings
6394 into "0x%x" throughout.
6395
6396 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6397
6398 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6399 gdb_assert by call to MACH_CHECK_ERROR.
6400 (darwin_attach_pid): Raise an error rather than a failed
6401 assertion when various system calls failed. Report a warning
6402 instead of raising a failed assertion when PREV_NOT is not NULL
6403 after call to mach_port_request_notification.
6404 (darwin_ptrace_me): Raise an error rather than a failed
6405 assertion when read returns nonzero.
6406
6407 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6408
6409 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6410
6411 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6412
6413 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6414
6415 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6416
6417 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6418 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6419 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6420 a stale cleanup. Fix double free of NAME.
6421
6422 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6423
6424 * windows-nat.c (windows_delete_thread): Accept an additional
6425 argument, the thread's exit code, and announce thread death when
6426 print_thread_events is non-zero and we are deleting a thread that
6427 is not the main thread.
6428 (get_windows_debug_event): Pass thread exit code to
6429 windows_delete_thread.
6430
6431 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6432
6433 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6434 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6435 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6436 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6437 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6438 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6439 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6440 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6441 (gdbarch_tdep): New struct.
6442 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6443 E_NUM_REGS.
6444 (v850e3v5_register_name): New function.
6445 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6446 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6447 code handling the struct return conventions for the RH850 ABI.
6448 Update all callers.
6449 (v850_eight_byte_align_p): New function.
6450 (v850_push_call_dummy): Push structs by value, not by reference
6451 for the RH850 ABI. Add support for eight byte alignment.
6452 (v850_dbtrap_breakpoint_from_pc): New function.
6453 (v850_gdbarch_init): Add ABI detection code. Register
6454 v850e3v5_register_name for the v850e3v5 architecture. Set the
6455 number of registers for v850e3v5. Register
6456 v850_dbtrap_breakpoint_from_pc as appropriate.
6457 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6458
6459 2013-05-03 Doug Evans <dje@google.com>
6460
6461 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6462 of bfd_count_sections.
6463 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6464 * symfile.c (default_symfile_offsets): Ditto.
6465 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6466 one entry, not bfd_count_sections entries.
6467
6468 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6469
6470 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6471 `save' and `restore' register groups. Don't include SPL
6472 or SPH in these groups.
6473 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6474 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6475 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6476 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6477 dwarf2_append_unwinders().
6478
6479 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6480
6481 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6482 ignore SIGINT and SIGTRAP in case these internal signals are
6483 caught explicitely.
6484
6485 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6486
6487 * darwin-nat.c (darwin_read_write_inferior): Change types
6488 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6489 of copy_count to "mach_msg_type_number_t".
6490 (darwin_read_dyld_info): Change type of parameter
6491 rdaddr to "gdb_byte *".
6492
6493 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6494
6495 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6496 of &info->load_map from "char *" to "gdb_byte *".
6497
6498 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6499
6500 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6501 from "char *" to "gdb_byte *".
6502 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6503
6504 2013-04-30 Doug Evans <dje@google.com>
6505
6506 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6507 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6508 DWO stub. If DWO isn't found, just use stub.
6509 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6510
6511 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6512 calling init_cutu_and_read_dies.
6513
6514 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6515
6516 * target-descriptions.c (maint_print_c_tdesc_cmd):
6517 Add case to parse structures as register types and
6518 bitfields.
6519
6520 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6521
6522 * MAINTAINERS (Write After Approval): Add myself to the list.
6523
6524 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6525
6526 * sol-thread.c (rw_common): Change type of parameter "buf"
6527 to "gdb_byte *".
6528 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6529 rw_common to "gdb_byte *" instead of "char *".
6530
6531 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6532
6533 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6534 of local variable msym to const struct bound_minimal_symbol.
6535 Adjust use accordingly.
6536 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6537
6538 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6539
6540 * i386gnu-nat.c (CREG_OFFSET): New macro.
6541 (creg_offset): New array.
6542 (CREG_ADDR): Use creg_offset instead of reg_offset.
6543
6544 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6545
6546 * mep-tdep.c (mep_write_pc): Delete.
6547 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6548 Add call to set_gdbarch_pc_regnum.
6549
6550 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6551
6552 * common/filestuff.c: Replace #include <dirent.h> by
6553 #include "gdb_dirent.h".
6554
6555 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6556
6557 * common/filestuff.c: Replace #include <sys/stat.h> by
6558 #include "gdb_stat.h".
6559
6560 2013-04-29 Pierre Muller <muller@sourceware.org>
6561
6562 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6563 editCase function rule.
6564 (get_DW_AT_signature_type): Likewise.
6565
6566 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6567
6568 * m32r-tdep.c (m32r_write_pc): Delete.
6569 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6570 Add call to set_gdbarch_pc_regnum.
6571
6572 2013-04-29 Pierre Muller <muller@sourceware.org>
6573
6574 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6575
6576 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6577
6578 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6579
6580 2013-04-28 Yao Qi <yao@codesourcery.com>
6581
6582 * solib-dsbt.c (fetch_loadmap): Re-indent.
6583 (displacement_from_map, enable_break2): Likewise.
6584 (dsbt_relocate_section_addresses): Likewise.
6585
6586 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6587
6588 GDB 7.6 released.
6589
6590 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6591
6592 PR corefiles/14983:
6593 * dwarf2read.c (process_full_comp_unit): Always create a static
6594 block.
6595
6596 2013-04-25 Hui Zhu <hui@codesourcery.com>
6597
6598 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6599 to loc->cmd_bytecode.
6600
6601 2013-04-24 Doug Evans <dje@google.com>
6602
6603 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6604
6605 2013-04-22 Keith Seitz <keiths@redhat.com>
6606
6607 * tracepoint.c (trace_save): Call the writer's start method.
6608
6609 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6610
6611 PR gdb/10462
6612 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6613 before argument.
6614
6615 2013-04-23 Tom Tromey <tromey@redhat.com>
6616
6617 * common/filestuff.c: Check USE_WIN32API before including
6618 sys/socket.h.
6619 (HAVE_F_GETFD): New define.
6620 (mark_cloexec): Check HAVE_F_GETFD.
6621 (gdb_open_cloexec): Change 'mode' to unsigned long.
6622 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6623 (gdb_pipe_cloexec): Check HAVE_PIPE.
6624 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6625 long.
6626
6627 2013-04-23 Hui Zhu <hui@codesourcery.com>
6628
6629 PR gdb/15293
6630 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6631
6632 2013-04-23 Hui Zhu <hui@codesourcery.com>
6633
6634 PR gdb/15165
6635 * breakpoint.c (dprintf_print_recreate): New.
6636 (save_breakpoints): Let it not save dprintf commands.
6637 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6638
6639 2013-04-22 Tom Tromey <tromey@redhat.com>
6640
6641 PR gdb/7912:
6642 * Makefile.in (SFILES): Add filestuff.c
6643 (COMMON_OBS): Add filestuff.o.
6644 (filestuff.o): New target.
6645 * auto-load.c (auto_load_objfile_script_1): Use
6646 gdb_fopen_cloexec.
6647 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6648 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6649 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6650 * common/agent.c (gdb_connect_sync_socket): Use
6651 gdb_socket_cloexec.
6652 * common/filestuff.c: New file.
6653 * common/filestuff.h: New file.
6654 * common/linux-osdata.c (linux_common_core_of_thread)
6655 (command_from_pid, commandline_from_pid, print_source_lines)
6656 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6657 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6658 gdb_fopen_cloexec.
6659 * common/linux-procfs.c (linux_proc_get_int)
6660 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6661 * config.in, configure: Rebuild.
6662 * configure.ac: Don't check for sys/socket.h. Check for
6663 fdwalk, pipe2.
6664 * corelow.c (core_open): Use gdb_open_cloexec.
6665 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6666 * fork-child.c (fork_inferior): Call close_most_fds.
6667 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6668 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6669 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6670 Use gdb_fopen_cloexec.
6671 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6672 gdb_open_cloexec.
6673 (linux_async_pipe): Use gdb_pipe_cloexec.
6674 * remote-fileio.c (remote_fileio_func_open): Use
6675 gdb_open_cloexec.
6676 * remote.c (remote_file_put, remote_file_get): Use
6677 gdb_fopen_cloexec.
6678 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6679 close_most_fds.
6680 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6681 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6682 * solib.c (solib_find): Use gdb_open_cloexec.
6683 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6684 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6685 (tfile_open): Use gdb_open_cloexec.
6686 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6687 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6688 * xml-support.c (xml_fetch_content_from_file): Use
6689 gdb_fopen_cloexec.
6690 * main.c (captured_main): Call notice_open_fds.
6691
6692 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6693
6694 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6695 'char *' to 'gdb_byte *'.
6696 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6697 'gdb_byte'.
6698
6699 2013-04-22 Yao Qi <yao@codesourcery.com>
6700
6701 * infrun.c: Fix typo in comment.
6702
6703 2013-04-22 Andrew Haley <aph@redhat.com>
6704
6705 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6706 instead of "long".
6707
6708 2013-04-20 Yao Qi <yao@codesourcery.com>
6709
6710 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6711 'char *' to 'gdb_byte *'. Cast the return value of
6712 'bt_ctf_get_char_array' to 'gdb_byte *'.
6713
6714 2013-04-19 Pedro Alves <palves@redhat.com>
6715
6716 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6717 -Wpointer-sign.
6718 * configure: Regenerate.
6719
6720 2013-04-19 Pedro Alves <palves@redhat.com>
6721
6722 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6723 'void *'.
6724
6725 2013-04-19 Pedro Alves <palves@redhat.com>
6726
6727 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6728 Change type of 'myaddr' parameter to gdb_byte pointer.
6729 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6730 to 'long long' pointer instead of to 'unsigned long long'.
6731 (monitor_write_memory_block, monitor_read_memory_single)
6732 (monitor_read_memory): Change type of 'myaddr' parameter to
6733 gdb_byte pointer.
6734
6735 2013-04-19 Pedro Alves <palves@redhat.com>
6736
6737 * record.c (validate_history_size): Make parameter 'setting'
6738 unsigned.
6739
6740 2013-04-19 Pedro Alves <palves@redhat.com>
6741
6742 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6743 to 'gdb_byte *'.
6744
6745 2013-04-19 Pedro Alves <palves@redhat.com>
6746
6747 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6748 local to int.
6749
6750 2013-04-19 Pedro Alves <palves@redhat.com>
6751
6752 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6753 * ada-tasks.c (read_fat_string_value): Likewise.
6754
6755 2013-04-19 Pedro Alves <palves@redhat.com>
6756
6757 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6758 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6759 'offset', and adjust.
6760
6761 2013-04-19 Pedro Alves <palves@redhat.com>
6762
6763 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6764 (read_index_from_section): Add cast to 'char *'.
6765
6766 2013-04-19 Pedro Alves <palves@redhat.com>
6767
6768 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6769
6770 2013-04-19 Pedro Alves <palves@redhat.com>
6771
6772 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6773
6774 2013-04-19 Pedro Alves <palves@redhat.com>
6775
6776 * record-full.c (record_full_get_bookmark): Change local 'ret'
6777 type to char * and add cast to gdb_byte *.
6778 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6779 string.
6780 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6781
6782 2013-04-19 Pedro Alves <palves@redhat.com>
6783
6784 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6785 * python/py-prettyprint.c (print_string_repr): Change type of
6786 'output' local to char *. Add cast to gdb_byte * in
6787 LA_PRINT_STRING call.
6788 (print_children): Change type of 'output' local to char *.
6789 * python/py-value.c (valpy_string): Add cast to const char * in
6790 PyUnicode_Decode call.
6791
6792 2013-04-19 Pedro Alves <palves@redhat.com>
6793
6794 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6795 and change its type to 'const char *'. Adjust.
6796 (mips_send_packet): Add cast to 'char *', and remove cast to
6797 'unsigned char *'.
6798 (mips_receive_packet): Remove cast to 'unsigned char *'.
6799 (mips_load_srec): Use bfd_byte.
6800 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6801 (pmon_checkset): Make 'value' parameter unsigned.
6802
6803 2013-04-19 Pedro Alves <palves@redhat.com>
6804
6805 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6806
6807 2013-04-19 Pedro Alves <palves@redhat.com>
6808
6809 * remote.c (remote_write_bytes_aux, compare_sections_command)
6810 (remote_read_qxfer)
6811 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6812 (remote_hostio_readlink, remote_bfd_iovec_pread)
6813 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6814 binary buffer, and char when buffer is used as string.
6815 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6816 (trace_save, tfile_open, traceframe_walk_blocks)
6817 (tfile_fetch_registers): Likewise.
6818
6819 2013-04-19 Pedro Alves <palves@redhat.com>
6820
6821 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6822 buffer and size_t size. Adjust.
6823 * ser-base.h (ser_base_write): Adjust.
6824 * ser-go32.c (cnts): Change type to size_t.
6825 (dos_write): Change prototype -- take 'void *'
6826 buffer and size_t size. Adjust.
6827 (dos_info): Print elements of 'cnts' as unsigned long.
6828 * serial.c (serial_write): Likewise.
6829 * serial.h (serial_write): Adjust.
6830 (struct serial_ops) <write>: Change prototype -- take 'void *'
6831 buffer and size_t size. Adjust.
6832
6833 2013-04-19 Pedro Alves <palves@redhat.com>
6834
6835 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6836 gdb_byte *.
6837 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6838
6839 2013-04-19 Pedro Alves <palves@redhat.com>
6840
6841 * alpha-tdep.c (alpha_extract_return_value): Use
6842 regcache_cooked_read_unsigned to read 'v0'.
6843
6844 2013-04-19 Pedro Alves <palves@redhat.com>
6845
6846 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6847 parameters 'at', 'as' and 'offset' to uint32_t.
6848
6849 2013-04-19 Pedro Alves <palves@redhat.com>
6850
6851 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6852 'is64' to signed 'int'.
6853
6854 2013-04-19 Pedro Alves <palves@redhat.com>
6855
6856 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6857 parameter to int *.
6858
6859 2013-04-19 Pedro Alves <palves@redhat.com>
6860
6861 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6862 'insnbuf' buffer type to unsigned int[].
6863
6864 2013-04-19 Pedro Alves <palves@redhat.com>
6865
6866 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6867
6868 2013-04-19 Pedro Alves <palves@redhat.com>
6869
6870 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6871 unsigned long *.
6872
6873 2013-04-19 Pedro Alves <palves@redhat.com>
6874
6875 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6876 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6877 UINT_MAX.
6878 * mips-tdep.c (heuristic_fence_post): Change type to int.
6879 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6880
6881 2013-04-19 Pedro Alves <palves@redhat.com>
6882
6883 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6884 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6885 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6886
6887 2013-04-19 Pedro Alves <palves@redhat.com>
6888
6889 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6890 it to get a string view of the byte buffer.
6891 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6892 type to gdb_byte *. Adjust.
6893 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6894 Change local to char *.
6895 * solib-darwin.c (find_program_interpreter): Change return type to
6896 char *. Adjust.
6897 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6898 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6899 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6900 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6901 * solib-svr4.c (find_program_interpreter): Change return type to
6902 char *. Adjust.
6903 (enable_break): Change local 'interp_name' to char *.
6904 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6905 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6906 (spu_pseudo_register_write_spu): Use char for string buffer.
6907 Adjust.
6908 (info_spu_event_command, info_spu_signal_command): Add casts to
6909 'char *'.
6910
6911 2013-04-19 Pedro Alves <palves@redhat.com>
6912
6913 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6914 gdb_byte[].
6915 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6916 * ada-lang.c (ada_value_assign): Use gdb_byte.
6917 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6918 (alphanbsd_sigtramp_offset): Use gdb_byte.
6919 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6920 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6921 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6922 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6923 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6924 * arm-tdep.c (arm_stub_unwind_sniffer)
6925 (arm_displaced_init_closure): Use gdb_byte.
6926 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6927 (arm_default_thumb_le_breakpoint)
6928 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6929 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6930 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6931 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6932 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6933 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6934 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6935 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6936 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6937 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6938 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6939 (cris_store_return_value, cris_extract_return_value): Use
6940 gdb_byte.
6941 (constraint): Change type of parameter to char * from signed
6942 char*. Use gdb_byte.
6943 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6944 of local buffer to gdb_byte *.
6945 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6946 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6947 (add_address_entry): Change type of local buffer to gdb_byte[].
6948 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6949 (frv_push_dummy_call): Use gdb_byte.
6950 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6951 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6952 (hppa_hpux_supply_save_state): Use gdb_byte.
6953 * hppa-tdep.c (hppa32_push_dummy_call)
6954 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6955 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6956 (slotN_contents, replace_slotN_contents): Change type of parameter
6957 to gdb_byte *.
6958 (fetch_instruction, ia64_pseudo_register_write)
6959 (ia64_register_to_value, ia64_value_to_register)
6960 (ia64_extract_return_value, ia64_store_return_value)
6961 (ia64_push_dummy_call): Use gdb_byte.
6962 * m32c-tdep.c (m32c_return_value): Remove cast.
6963 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6964 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6965 gdb_byte.
6966 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6967 * mn10300-tdep.c (mn10300_store_return_value)
6968 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6969 gdb_byte.
6970 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6971 (moxie_process_record): Remove casts.
6972 * ppc-ravenscar-thread.c (supply_register_at_address)
6973 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6974 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6975 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6976 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6977 * remote.c (compare_sections_command): Use gdb_byte.
6978 * score-tdep.c (score7_free_memblock): Change type of parameter to
6979 gdb_byte *.
6980 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6981 gdb_byte *. Use gdb_byte.
6982 (sh_push_dummy_call_fpu): Use gdb_byte.
6983 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6984 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6985 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6986 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6987 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6988 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6989 (sh64_store_return_value, sh64_register_convert_to_virtual):
6990 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6991 (sh64_pseudo_register_write): Use gdb_byte.
6992 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6993 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6994 buffer.
6995 (irix_current_sos): Use gdb_byte.
6996 * solib-som.c (som_current_sos): Use gdb_byte.
6997 * sparc-ravenscar-thread.c (supply_register_at_address)
6998 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6999 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7000 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7001 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7002 'gdb_byte *'.
7003 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7004 'gdb_byte *'.
7005 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7006 * xstormy16-tdep.c (xstormy16_extract_return_value)
7007 (xstormy16_store_return_value): Change parameter type to
7008 'gdb_byte *'. Adjust.
7009 (xstormy16_push_dummy_call): Use gdb_byte.
7010 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7011 (call0_analyze_prologue, execute_code): Use gdb_byte.
7012
7013 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7014 Pedro Alves <palves@redhat.com>
7015
7016 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7017 value contents.
7018
7019 2013-04-17 Doug Evans <dje@google.com>
7020
7021 * dwarf2read.c (struct signatured_type): New member type.
7022 (struct attribute): Replace member signatured_type with signature.
7023 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7024 (read_call_site_scope): Call follow_die_ref instead of
7025 follow_die_ref_or_sig.
7026 (read_structure_type): Rewrite handling of signatured types.
7027 (read_enumeration_type): Ditto.
7028 (read_attribute_value): Update.
7029 (build_error_marker_type): New function.
7030 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7031 Don't call error for bad types, just build an error marker type.
7032 (dump_die_shallow): Update.
7033 (follow_die_sig_1): Renamed from follow_die_sig.
7034 Don't call error for bad types, instead return NULL.
7035 (follow_die_sig): New function.
7036 (get_signatured_type, get_DW_AT_signature_type): New functions.
7037
7038 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7039
7040 * aarch64-tdep.c (aarch64_write_pc): Removed.
7041 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7042 function.
7043
7044 2013-04-17 Yao Qi <yao@codesourcery.com>
7045
7046 * top.c (print_gdb_configuration): Print configure-time
7047 parameter on using libbabeltrace or not.
7048
7049 2013-04-16 Pedro Alves <palves@redhat.com>
7050
7051 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7052
7053 2013-04-16 Pedro Alves <palves@redhat.com>
7054
7055 * common/glibc_thread_db.h: Update from upstream glibc
7056 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7057
7058 2013-04-16 Pedro Alves <palves@redhat.com>
7059
7060 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7061 * common/glibc_thread_db.h: ... this new file ...
7062 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7063
7064 2013-04-16 Will Newton <will.newton@gmail.com>
7065 Pedro Alves <palves@redhat.com>
7066
7067 PR build/11881
7068
7069 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7070 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7071 HAVE_THREAD_DB_H.
7072
7073 2013-04-16 Pedro Alves <palves@redhat.com>
7074 Eli Zaretskii <eliz@gnu.org>
7075
7076 * NEWS: Mention "set foo unlimited".
7077
7078 2013-04-15 Doug Evans <dje@google.com>
7079
7080 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7081 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7082 (create_dwo_cu_reader): Renamed from
7083 create_dwo_debug_info_hash_table_reader.
7084 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7085 Remove support for multiple CUs in a DWO file.
7086 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7087
7088 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7089 instead of phex.
7090 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7091 (create_dwo_in_dwp): Ditto.
7092
7093 2013-04-15 Tom Tromey <tromey@redhat.com>
7094
7095 * NEWS: Move recent entries into "since 7.6" section.
7096
7097 2013-04-15 Tom Tromey <tromey@redhat.com>
7098
7099 PR c++/13588:
7100 * NEWS: Update.
7101 * break-catch-throw.c (struct exception_catchpoint)
7102 <exception_rx, pattern>: New fields.
7103 (fetch_probe_arguments, dtor_exception_catchpoint)
7104 (check_status_exception_catchpoint)
7105 (print_one_detail_exception_catchpoint): New functions.
7106 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7107 Compile regular expression if needed.
7108 (extract_exception_regexp): New function.
7109 (catch_exception_command_1): Use extract_exception_regexp.
7110 (compute_exception): Use fetch_probe_arguments.
7111 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7112 and check_status fields.
7113 * cp-abi.c (cplus_typename_from_type_info): New function.
7114 * cp-abi.h (cplus_typename_from_type_info): Declare.
7115 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7116 * gdb_regex.h (compile_rx_or_error): Declare.
7117 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7118 comment.
7119 (init_gnuv3_ops): Set get_type_from_type_info field.
7120 * probe.c (compile_rx_or_error): Move...
7121 * utils.c (compile_rx_or_error): ... here.
7122
7123 2013-04-15 Tom Tromey <tromey@redhat.com>
7124
7125 PR c++/15176:
7126 * NEWS: Update.
7127 * break-catch-throw.c (compute_exception): New function.
7128 (exception_funcs): New global.
7129 (_initialize_break_catch_throw): Create $_exception.
7130 * cp-abi.c (cplus_type_from_type_info): New function.
7131 * cp-abi.h (cplus_type_from_type_info): Declare.
7132 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7133 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7134 (gnuv3_get_type_from_type_info): New functions.
7135 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7136
7137 2013-04-15 Tom Tromey <tromey@redhat.com>
7138
7139 * break-catch-throw.c (struct exception_names): New.
7140 (exception_functions): Change type.
7141 (re_set_exception_catchpoint): Look for SDT probes.
7142
7143 2013-04-15 Tom Tromey <tromey@redhat.com>
7144
7145 PR c++/10119:
7146 * break-catch-throw.c (exception_functions): New global.
7147 (gnu_v3_exception_catchpoint_ops): Move earlier.
7148 (struct exception_catchpoint): New.
7149 (classify_exception_breakpoint): Rewrite.
7150 (re_set_exception_catchpoint): New function.
7151 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7152 Allocate a struct exception_catchpoint.
7153 (catch_exception_command_1): Update.
7154 (initialize_throw_catchpoint_ops): Set 're_set' method.
7155
7156 2013-04-15 Tom Tromey <tromey@redhat.com>
7157
7158 * Makefile.in (SFILES): Add break-catch-throw.c
7159 (COMMON_OBS): Add break-catch-throw.o.
7160 * break-catch-throw.c: New file.
7161 * breakpoint.c: Move exception-catching code to new file.
7162 (ep_parse_optional_if_clause): No longer static.
7163 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7164
7165 2013-04-15 Tom Tromey <tromey@redhat.com>
7166
7167 PR c++/9065:
7168 * NEWS: Update.
7169 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7170 * c-exp.y (TYPEID): New token.
7171 (exp): Add new TYPEID productions.
7172 (ident_tokens): Add "typeid".
7173 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7174 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7175 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7176 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7177 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7178 case.
7179 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7180 (build_std_type_info_type, gnuv3_get_typeid_type)
7181 (gnuv3_get_typeid): New functions.
7182 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7183 new fields on ABI object.
7184 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7185 * std-operator.def (OP_TYPEID): New.
7186
7187 2013-04-15 Tom Tromey <tromey@redhat.com>
7188
7189 * elfread.c (elf_symtab_read): Install versioned symbol under
7190 unversioned name as well.
7191
7192 2013-04-15 Tom Tromey <tromey@redhat.com>
7193
7194 PR c++/11990:
7195 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7196 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7197 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7198 (gdb_demangle): New function.
7199 * cp-support.h (gdb_demangle): Declare.
7200 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7201 (dwarf2_name): Use gdb_demangle.
7202 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7203 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7204 suffixes from name.
7205 (gnuv3_print_method_ptr): Use gdb_demangle.
7206 * jv-lang.c (java_demangle): Use gdb_demangle.
7207 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7208 * language.c (unk_lang_demangle): Use gdb_demangle.
7209 * symtab.c (symbol_find_demangled_name)
7210 (demangle_for_lookup): Use gdb_demangle.
7211
7212 2013-04-15 Tom Tromey <tromey@redhat.com>
7213
7214 PR c++/12824:
7215 * NEWS: Update.
7216 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7217 New constant.
7218 (classify_exception_breakpoint): New function.
7219 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7220 (print_mention_exception_catchpoint)
7221 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7222 (catch_exception_command_1): Handle "rethrow" catchpoint.
7223 (catch_rethrow_command): New function.
7224 (_initialize_breakpoint): Add "catch rethrow" command.
7225
7226 2013-04-15 Pierre Muller <muller@sourceware.org>
7227
7228 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7229 set_gdbarch_write_pc as deprecated anymore.
7230
7231 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7232
7233 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7234 declarations.
7235
7236 2013-04-13 Yao Qi <yao@codesourcery.com>
7237
7238 * ctf.c (_initialize_ctf): Include "completer.h".
7239 Call add_target_with_completer instead of add_target.
7240
7241 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7242
7243 Fix GDB regression related to PR binutils/14813.
7244 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7245 * minidebug.c (lzma_close): Add return value comment.
7246 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7247 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7248 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7249
7250 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7251
7252 * config.in: Regenerate.
7253
7254 2013-04-12 Tom Tromey <tromey@redhat.com>
7255
7256 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7257 const.
7258 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7259 (struct die_reader_specs) <buffer>: Likewise.
7260 (die_reader_func_ftype): Make 'info_ptr' const.
7261 (struct line_header) <include_dirs, statement_program_start,
7262 statement_program_end>: Now const.
7263 (struct file_entry) <name>: Likewise.
7264 (struct partial_die_info) <sibling>: Likewise.
7265 (struct dwarf_block) <data>: Likewise.
7266 (dwarf2_read_section): Remove cast.
7267 (dwarf2_get_section_info): Make 'bufp' const.
7268 (read_index_from_section): Constify.
7269 (dw2_get_file_names_reader): Make 'info_ptr' const.
7270 (dw2_get_primary_filename_reader): Likewise.
7271 (read_comp_unit_head): Make 'info_ptr' and return type const.
7272 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7273 Likewise.
7274 (read_abbrev_offset): Constify.
7275 (dwarf2_create_include_psymtab): Make 'name' const.
7276 (create_debug_types_hash_table): Update.
7277 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7278 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7279 Constify.
7280 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7281 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7282 (read_comp_units_from_section): Constify.
7283 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7284 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7285 const.
7286 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7287 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7288 (create_dwp_hash_table, dwarf2_ranges_read)
7289 (dwarf2_record_block_ranges): Constify.
7290 (read_die_and_children, read_die_and_siblings_1)
7291 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7292 const.
7293 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7294 (abbrev_table_read_table): Constify.
7295 (load_partial_dies): Make 'info_ptr' const.
7296 (read_partial_die, read_attribute_value, read_attribute): Make
7297 'info_ptr' and return type const.
7298 (read_address, read_initial_length)
7299 (read_checked_initial_length_and_offset, read_offset)
7300 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7301 const.
7302 (read_direct_string): Make 'buf' and return type const.
7303 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7304 (read_indirect_string): Make return type const.
7305 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7306 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7307 'info_ptr' const.
7308 (read_str_index): Make return type const.
7309 (add_include_dir): Make 'include_dir' const.
7310 (add_file_name): Make 'name' const.
7311 (dwarf_decode_line_header): Constify.
7312 (psymtab_include_file_name): Make return type const.
7313 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7314 (dwarf2_start_subfile): Make 'filename' const.
7315 (dwarf2_const_value_attr): Make 'bytes' const.
7316 (read_signatured_type_reader): Make 'info_ptr' const.
7317 (decode_locdesc): Constify.
7318 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7319 const.
7320 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7321 'mac_end', and return type const.
7322 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7323 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7324 type const.
7325 (per_cu_header_read_in): Constify.
7326 * symfile.h (dwarf2_get_section_info): Update.
7327
7328 2013-04-12 Tom Tromey <tromey@redhat.com>
7329
7330 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7331
7332 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7333
7334 * NEWS: Mention "show configuration", --configuration.
7335 * top.c (print_gdb_configuration): New function, displays the
7336 details about GDB configure-time parameters.
7337 (print_gdb_version): Mention "show configuration".
7338 * cli/cli-cmds.c (show_configuration): New function.
7339 (_initialize_cli_cmds): Add the "show configuration" command.
7340 * main.c (captured_main) <print_configuration>: New static var.
7341 <long_options>: Use it.
7342 If --configuration was given, call print_gdb_configuration.
7343
7344 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7345 Pedro Alves <palves@redhat.com>
7346
7347 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7348 (generated_files): Add gcore.
7349 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7350 HAVE_NATIVE_GCORE_HOST.
7351 (gcore): New.
7352 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7353 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7354 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7355 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7356 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7357 Add HAVE_NATIVE_GCORE_HOST.
7358 * configure: Regenerate.
7359 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7360 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7361 AC_CONFIG_FILES for gcore.
7362 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7363 gdb_have_gcore.
7364 * gdb_gcore.sh: Rename to ...
7365 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7366 and GCORE_TRANSFORM_NAME substitutions.
7367
7368 Fix parsing tabs in ${gdb_target_obs}.
7369 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7370
7371 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7372
7373 * remote.c (unpush_and_perror): Add output message final dot.
7374
7375 2013-04-11 Yao Qi <yao@codesourcery.com>
7376
7377 * tracepoint.c (tfile_interp_line): Fit parameters line and
7378 utpp in one line.
7379
7380 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7381
7382 * solib.c (solib_map_sections): Remove code overwriting
7383 SO->SO_NAME with the bfd's filename.
7384
7385 2013-04-10 Pedro Alves <palves@redhat.com>
7386
7387 * cli/cli-decode.c (integer_unlimited_completer): New function.
7388 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7389 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7390 completer.
7391 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7392 (is_unlimited_literal): New function.
7393 (do_set_command): Handle literal "unlimited" arguments.
7394 * frame.c (_initialize_frame) <set backtrace limit>: Document
7395 "unlimited".
7396 * printcmd.c (_initialize_printcmd) <set print
7397 max-symbolic-offset>: Add help text.
7398 * record-full.c (_initialize_record_full) <set record full
7399 insn-number-max>: Likewise.
7400 * record.c (_initialize_record) <set record
7401 instruction-history-size, set record function-call-history-size>:
7402 Add help text.
7403 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7404 help text.
7405 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7406 Likewise.
7407 * source.c (_initialize_source) <set listsize>: Add help text.
7408 * utils.c (initialize_utils) <set height, set width>: Likewise.
7409 <set pagination>: Mention "set height unlimited".
7410 * valprint.c (_initialize_valprint) <set print elements, set print
7411 repeats>: Document "unlimited".
7412
7413 2013-04-10 Pedro Alves <palves@redhat.com>
7414
7415 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7416 instead of disconnect_tracing.
7417 * infcmd.c (detach_command, disconnect_command): Call
7418 query_if_trace_running. Adjust.
7419 * top.c: Include "tracepoint.h".
7420 (quit_target): Delete. Contents moved ...
7421 (quit_force): ... here. Wrap each stage of teardown in
7422 TRY_CATCH. Call disconnect_tracing before detaching.
7423
7424 2013-04-10 Hui Zhu <hui@codesourcery.com>
7425 Yao Qi <yao@codesourcery.com>
7426
7427 * configure.ac: Check libbabeltrace is installed.
7428 * config.in: Regenerate.
7429 * configure: Regenerate.
7430 * Makefile.in (LIBBABELTRACE): New.
7431 (CLIBS): Add LIBBABELTRACE.
7432 * ctf.c: Include "exec.h".
7433 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7434 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7435 (ctf_save_metadata_header): Define new type aliases in
7436 metadata.
7437 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7438 in metadata. Start a new faked packet for trace status.
7439 (ctf_write_status): Write trace status to CTF.
7440 (ctf_write_uploaded_tsv): Write TSV to CTF.
7441 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7442 (ctf_write_definition_end): End the faked packet.
7443
7444 (ctx, ctf_iter, trace_dirname): New.
7445 (start_pos): New variable.
7446 (ctf_destroy, ctf_open_dir, ctf_open): New.
7447 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7448 macros.
7449 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7450 (ctf_fetch_registers, ctf_xfer_partial): New.
7451 (ctf_get_trace_state_variable_value): New.
7452 (ctf_get_tpnum_from_frame_event): New.
7453 (ctf_get_traceframe_address): New.
7454 (ctf_trace_find, ctf_has_stack): New.
7455 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7456 (ctf_get_trace_status, ctf_read_status): New.
7457 (_initialize_ctf): New.
7458 * tracepoint.c (get_tracepoint_number): New
7459 (get_uploaded_tsv): Remove 'static'.
7460 (struct traceframe_info, trace_regblock_size): Move it to ...
7461 * tracepoint.h: ... here.
7462 (get_tracepoint_number): Declare it.
7463 (get_uploaded_tsv): Declare it.
7464
7465 * NEWS: Mention new configure option.
7466
7467 2013-04-10 Pedro Alves <palves@redhat.com>
7468 Hui Zhu <hui@codesourcery.com>
7469
7470 * breakpoint.c (dprintf_re_set): New.
7471 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7472 to dprintf_re_set.
7473
7474 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7475
7476 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7477 Remove solib-svr4.o from the list.
7478
7479 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7480
7481 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7482 Use gdb_assert_not_reached instead of invalid boolean expression.
7483
7484 2013-04-09 Pedro Alves <palves@redhat.com>
7485
7486 * remote.c (unpush_and_perror): New function.
7487 (readchar, remote_serial_write): Use it.
7488
7489 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7490
7491 * NEWS: Mention new btrace RSP packets.
7492
7493 2013-04-08 Tom Tromey <tromey@redhat.com>
7494
7495 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7496 long.
7497
7498 2013-04-08 Tom Tromey <tromey@redhat.com>
7499
7500 * maint.c (print_bfd_section_info): Print the section index.
7501 * symmisc.c (dump_msymbols): Print the section index.
7502
7503 2013-04-08 Tom Tromey <tromey@redhat.com>
7504
7505 PR symtab/8424:
7506 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7507 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7508 * breakpoint.c (resolve_sal_pc): Update.
7509 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7510 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7511 (minsym_lookup_iterator_cb): Use it.
7512 (default_read_var_value): Update.
7513 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7514 Update.
7515 * infcmd.c (jump_command): Update.
7516 * linespec.c (minsym_found): Update.
7517 * maint.c (maintenance_translate_address): Update.
7518 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7519 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7520 * parse.c (write_exp_msymbol): Update.
7521 * printcmd.c (address_info): Update.
7522 * psymtab.c (find_pc_sect_psymbol): Update.
7523 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7524 SYMBOL_OBJ_SECTION.
7525 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7526 Don't initialize SYMBOL_OBJ_SECTION.
7527 * spu-tdep.c (spu_catch_start): Update.
7528 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7529 * symmisc.c (dump_msymbols, print_symbol): Update.
7530 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7531 how fallback section is computed.
7532 (fixup_symbol_section): Update.
7533 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7534 Update.
7535 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7536 Initialize SYMBOL_SECTION.
7537 * symtab.h (struct general_symbol_info) <section>: Update comment.
7538 <obj_section>: Remove.
7539 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7540 (SYMBOL_OBJFILE): New macro.
7541
7542 2013-04-08 Tom Tromey <tromey@redhat.com>
7543
7544 * coffread.c (record_minimal_symbol): Update.
7545 * dbxread.c (record_minimal_symbol): Update.
7546 * elfread.c (record_minimal_symbol): Update.
7547 * machoread.c (macho_symtab_add_minsym): Update.
7548 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7549 Update.
7550 * minsyms.c (prim_record_minimal_symbol): Update.
7551 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7552 argument.
7553 (prim_record_minimal_symbol_and_info): Likewise.
7554 * minsyms.h (prim_record_minimal_symbol_full)
7555 (prim_record_minimal_symbol_and_info): Update.
7556 * symtab.c (allocate_symbol, initialize_symbol)
7557 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7558 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7559 Update.
7560
7561 2013-04-08 Tom Tromey <tromey@redhat.com>
7562
7563 PR symtab/8423:
7564 * solib-som.c (som_solib_section_offsets): Use BFD section
7565 indices. Set offsets for all sections.
7566 * somread.c (som_symtab_read): Compute BFD section for
7567 symbol. Use prim_record_minimal_symbol_and_info.
7568 (som_symfile_read): Fix comment.
7569 (struct find_section_offset_arg): New.
7570 (find_section_offset, set_section_index): New functions.
7571 (som_symfile_offsets): Use set_section_index to compute
7572 section indices.
7573
7574 2013-04-08 Tom Tromey <tromey@redhat.com>
7575
7576 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7577 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7578 gdb_bfd_section_index.
7579 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7580 New functions.
7581 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7582 Declare.
7583 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7584 Update.
7585 * objfiles.c (add_to_objfile_sections_full): New function.
7586 (add_to_objfile_sections): Use it.
7587 (build_section_table): Rewrite.
7588 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7589 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7590 (struct objfile) <sections>: Update comment.
7591 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7592 is NULL.
7593 (ALL_OBJSECTIONS): Use it.
7594 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7595 * solib-frv.c (frv_relocate_main_executable): Update.
7596 * solib-target.c (solib_target_relocate_section_addresses):
7597 Use gdb_bfd_section_index.
7598 * symfile.c (build_section_addr_info_from_section_table):
7599 Use gdb_bfd_section_index.
7600 (build_section_addr_info_from_bfd, place_section): Likewise.
7601 * symtab.c (fixup_section): Update.
7602 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7603
7604 2013-04-08 Tom Tromey <tromey@redhat.com>
7605
7606 * minsyms.h (struct bound_minimal_symbol): New.
7607 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7608 Remove objfile argument.
7609 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7610 Return bound_minimal_symbol.
7611 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7612 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7613 Return bound_minimal_symbol.
7614 (in_gnu_ifunc_stub): Update.
7615 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7616 Remove 'objfile_p' argument.
7617 (lookup_solib_trampoline_symbol_by_pc): Update.
7618 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7619 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7620 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7621 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7622 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7623 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7624 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7625 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7626 stack.c, symtab.c, tui/tui-disasm.c: Update.
7627
7628 2013-04-08 Tom Tromey <tromey@redhat.com>
7629
7630 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7631 Use symbol's obstack, not an objfile.
7632 * coffread.c (process_coff_symbol): Update.
7633 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7634 * jv-lang.c (add_class_symbol): Update.
7635 * mdebugread.c (new_symbol): Update.
7636 * minsyms.c (prim_record_minimal_symbol_full)
7637 (terminate_minimal_symbol_table): Update.
7638 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7639 * stabsread.c (define_symbol, read_enum_type): Update.
7640 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7641 Handle Ada specially.
7642 (symbol_set_language): Add 'obstack' argument.
7643 (symbol_set_names): Update.
7644 (symbol_natural_name, symbol_demangled_name): Always use
7645 ada_decode_symbol.
7646 * symtab.h (struct general_symbol_info)
7647 <language_specific::obstack>: New field.
7648 <ada_mangled>: New field.
7649 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7650 (symbol_set_language): Update.
7651
7652 2013-04-08 Tom Tromey <tromey@redhat.com>
7653
7654 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7655 Take an obstack, not an objfile.
7656 (symbol_set_names): Update.
7657 * symtab.h (symbol_set_demangled_name): Update.
7658
7659 2013-04-08 Tom Tromey <tromey@redhat.com>
7660
7661 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7662 allocate_symbol.
7663 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7664 (read_func_scope): Call allocate_template_symbol.
7665 (new_symbol_full): Call allocate_symbol.
7666 * jit.c (finalize_symtab): Call allocate_symbol.
7667 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7668 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7669 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7670 (common_block_end): Call allocate_symbol.
7671 * symtab.c (allocate_symbol, initialize_symbol)
7672 (allocate_template_symbol): New functions.
7673 * symtab.c (allocate_symbol, initialize_symbol)
7674 (allocate_template_symbol): Declare.
7675 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7676
7677 2013-04-08 Pedro Alves <palves@redhat.com>
7678 Keith Seitz <keiths@redhat.com>
7679
7680 * breakpoint.c (create_breakpoint): Rename
7681 "parse_condition_and_thread" parameter to "parse_arg". Update
7682 describing comment. If !PARSE_ARG, then error out if ARG is not
7683 the empty string after extracting the location.
7684 * breakpoint.h (create_breakpoint): Rename
7685 "parse_condition_and_thread" parameter to "parse_arg".
7686
7687 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7688
7689 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7690
7691 2013-04-07 Yao Qi <yao@codesourcery.com>
7692
7693 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7694 and 'addr2' to CORE_ADDR.
7695 * target.c (update_current_target): Update.
7696 * target.h (struct target_ops) <to_trace_find>: Change parameter
7697 type to CORE_ADDR.
7698 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7699 'addr2' to CORE_ADDR.
7700 (tfile_trace_find): Likewise.
7701 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7702 Change local variable 'addr' to type CORE_ADDR.
7703 * tracepoint.h (tfind_1): Update declaration.
7704
7705 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7706
7707 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7708 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7709 Include main.h.
7710
7711 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7712 here...
7713 * main.h (windows_get_absolute_argv0): ...to here.
7714
7715 2013-04-05 Doug Evans <dje@google.com>
7716
7717 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7718 (read_cutu_die_from_dwo): Add comments.
7719 (read_structure_type): Update comment.
7720 (read_enumeration_type, read_namespace_type): Update comment.
7721 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7722
7723 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7724
7725 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7726 * Makefile.in (gdb.z): Remove.
7727 (install-only): Remove $(man1dir) and gdb.1 installation.
7728 * gdb.1: Remove.
7729
7730 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7731
7732 Fix compatibility with Linux kernel 3.8.3.
7733 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7734 to more inner block. Remove parsing of NUMBER from outer block.
7735 Parse NUMBER only if KEYWORD has been identified.
7736
7737 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7738
7739 Fix variable name shadowing.
7740 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7741 filename to mapsfilename and update its uses.
7742
7743 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7744
7745 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7746 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7747 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7748 details of the problem.
7749
7750 2013-04-04 Pedro Alves <palves@redhat.com>
7751 Hui Zhu <hui@codesourcery.com>
7752
7753 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7754 tracepoint, reset its STEP_COUNT and call validate_actionline.
7755
7756 2013-04-03 Doug Evans <dje@google.com>
7757
7758 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7759 read_die_and_siblings.
7760 (read_die_and_siblings): New function.
7761 (read_cutu_die_from_dwo): Dump die if requested.
7762 (read_die_and_children): Call read_full_die_1 and
7763 read_die_and_siblings_1.
7764 (read_full_die): Dump die if requested.
7765
7766 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7767
7768 * dwarf2read.c (struct dwo_file): New member comp_dir.
7769 Rename member name to dwo_name. All uses updated.
7770 (hash_dwo_file): Include comp_dir in computation.
7771 (eq_dwo_file): Ditto.
7772 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7773 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7774
7775 * psymtab.c (read_psymtabs_with_fullname): Don't call
7776 psymtab_to_fullname if the basenames are different.
7777
7778 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7779
7780 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7781 New entry about "fullname" presence.
7782
7783 2013-04-03 Pedro Alves <palves@redhat.com>
7784
7785 * NEWS: Mention x86_64/Cygwin as new native configuration.
7786
7787 2013-04-02 Doug Evans <dje@google.com>
7788
7789 * dwarf2read.c (read_structure_type): Fix typo in comment.
7790
7791 2013-04-02 Pedro Alves <palves@redhat.com>
7792
7793 * NEWS: Mention "set/show debug aarch64", "set/show debug
7794 coff-pe-read" and "set/show debug mach-o".
7795
7796 2013-04-02 Pedro Alves <palves@redhat.com>
7797
7798 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7799
7800 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7801
7802 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7803 gdb_string.h is now in common/.
7804
7805 2013-04-02 Pedro Alves <palves@redhat.com>
7806
7807 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7808 under "New options".
7809
7810 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7811
7812 Revert this patch:
7813 PR gdb/15275
7814 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7815
7816 2013-04-02 Pedro Alves <palves@redhat.com>
7817
7818 PR gdb/15275
7819
7820 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7821 (remote_serial_write): New function.
7822 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7823
7824 2013-04-01 Jiong Wang <jiwang@tilera.com>
7825
7826 * NEWS: Mention TILE-Gx in "New native configurations" and
7827 "New targets" sections.
7828
7829 2013-04-01 Doug Evans <dje@google.com>
7830
7831 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7832 (process_enumeration_scope): Simplify.
7833
7834 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7835 type_unit_group ...
7836 (struct signatured_type): ... to here.
7837 (sig_type_ptr): New typedef.
7838 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7839 out of union 't'. All uses updated.
7840 (dw2_get_file_names_reader): Assert not called for a type unit.
7841 (dw2_get_file_names): Assert not called for a type unit or type
7842 unit group.
7843 (build_type_psymtabs_reader): Assert called for a type unit.
7844 (build_type_psymtab_dependencies): Assert called for a type unit group.
7845
7846 * dwarf2read.c (free_dwo_file): Add comment.
7847 (dwarf2_per_objfile_free): Unref dwp bfd.
7848
7849 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7850
7851 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7852 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7853 (read_pe_exported_syms): Remove unused 'exportix'.
7854 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7855 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7856 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7857
7858 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7859
7860 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7861 (print_it_watchpoint): Remove unused 'bl'.
7862 (say_where): Remove unused 'uiout'.
7863 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7864 (bkpt_breakpoint_hit): Remove unused 'b'.
7865 (internal_bkpt_print_it): Remove unused 'uiout'.
7866 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7867
7868 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7869
7870 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7871 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7872
7873 2013-03-29 Doug Evans <dje@google.com>
7874
7875 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7876 Delete arg is_dwp. All callers updated.
7877 (open_dwp_file): New function.
7878 (open_and_init_dwp_file): Call it.
7879 (get_dwp_file): New function.
7880 (lookup_dwo_cutu): Call it.
7881
7882 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7883 unnecessary, cleanup.
7884
7885 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7886
7887 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7888 (lookup_dwo_unit): New function.
7889 (init_cutu_and_read_dies): Move DWO handling to new functions.
7890
7891 * dwarf2read.c (struct signatured_type): Tweak comment.
7892 (struct dwo_unit): Tweak comment.
7893 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7894 (create_dwo_debug_info_hash_table): Tweak comment.
7895 (dwarf2_per_cu_offset_and_type): Tweak comment.
7896
7897 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7898 missing .debug_types section.
7899
7900 2013-03-29 Yao Qi <yao@codesourcery.com>
7901
7902 * corelow.c: Include "completer.h".
7903 (_initialize_corelow): Call add_target_with_completer with
7904 argument 'filename_completer'.
7905 * tracepoint.c: Likewise.
7906 * exec.c (_initialize_exec): Likewise.
7907 * target.c (add_target): Rename to ...
7908 (add_target_with_completer): ... this. Call set_cmd_completer
7909 if parameter completer is not NULL.
7910 (add_target): New.
7911 * target.h: Include "command.h".
7912 (add_target_with_completer): Declare it.
7913
7914 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7915
7916 * coffread.c (is_import_fixup_symbol): New function.
7917 (record_minimal_symbol): Use is_import_fixup_symbol to
7918 detect import fixup symbols, and discard them.
7919
7920 2013-03-28 Doug Evans <dje@google.com>
7921
7922 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7923 types hash table until we know we need it.
7924
7925 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7926 index numbers.
7927
7928 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7929 All callers updated.
7930 (dw2_print_stats): Print #read CUs too.
7931 (dump_die_shallow): Print signatured types better.
7932
7933 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7934 info_or_types_section to section. All uses updated.
7935 (struct dwo_unit): Ditto.
7936
7937 2013-03-28 Pedro Alves <palves@redhat.com>
7938
7939 * NEWS (New options): New section.
7940 (New options): Mention set/show remote trace-status-packet.
7941 * remote.c (PACKET_qTStatus): New enumeration value.
7942 (remote_get_trace_status): Skip sending qTStatus if the packet is
7943 disabled. Use packet_ok.
7944 (_initialize_remote): Register a configuration command for
7945 qTStatus packet.
7946
7947 2013-03-28 Doug Evans <dje@google.com>
7948
7949 * symfile.c (find_separate_debug_file): Add comment.
7950 (terminate_after_last_dir_separator): Tweak comment.
7951
7952 * dwarf2read.c (create_partial_symtab): Add forward decl.
7953 (create_partial_symtab): Move to be closer to other psymtab functions.
7954 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7955
7956 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7957 (compute_symtab_includes): Remove unnecessary forward declaration.
7958 (die_needs_namespace): Add comment marking group of functions for
7959 dwarf2 name computation.
7960
7961 * typeprint.c (_initialize_typeprint): Improve type help text.
7962
7963 * python/python.c (finish_python_initialization): Provide suggestion
7964 for how to tell gdb to find its python files.
7965
7966 2013-03-28 Pedro Alves <palves@redhat.com>
7967
7968 PR gdb/15294
7969
7970 * source.c (_initialize_source): Change back "set listsize" to an
7971 integer command.
7972
7973 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7974
7975 PR gdb/15275
7976 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7977
7978 2013-03-27 Pedro Alves <palves@redhat.com>
7979
7980 * top.c (history_size): Rename to ...
7981 (history_size_setshow_var): ... this. Add comment.
7982 (show_commands): Use readline's 'history_length' instead of
7983 computing the history length by calling history_get in a loop.
7984 (set_history_size_command): Error out for sizes over INT_MAX.
7985 Restore previous history size on invalid size.
7986 (init_history): If HISTSIZE is negative, leave the history size as
7987 zero. Add comments.
7988 (init_main): Adjust.
7989
7990 2013-03-27 Pedro Alves <palves@redhat.com>
7991
7992 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7993 coff_pe_read" command to "set debug coff-pe-read".
7994
7995 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7996
7997 * record.c (command_size_to_target_size): Fix size comparison.
7998 Change parameter type from pointer to integer to integer.
7999 Update all users.
8000
8001 2013-03-27 Pierre Muller <muller@sourceware.org>
8002
8003 * windows-nat.c (handle_output_debug_string): Avoid typecast
8004 from integer of different size warning.
8005
8006 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8007
8008 * windows-nat.c (handle_output_debug_string): Add empty line
8009 after local block variable definition.
8010
8011 2013-03-26 Pedro Alves <palves@redhat.com>
8012
8013 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8014 (net_open): Make 'polls' local unsigned.
8015
8016 2013-03-26 Pedro Alves <palves@redhat.com>
8017
8018 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8019 a zuinteger command instead of uinteger.
8020
8021 2013-03-26 Pedro Alves <palves@redhat.com>
8022
8023 * record-full.c (record_full_insn_num): Make it unsigned.
8024 (record_full_check_insn_num, record_full_message)
8025 (record_full_registers_change, record_full_xfer_partial): Remove
8026 record_full_insn_max_num check (it's always != 0).
8027 (record_full_info, record_full_restore): Use %u as format string.
8028 (): Use %u as format string.
8029 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8030 check (it's always != 0).
8031
8032 2013-03-26 Pedro Alves <palves@redhat.com>
8033
8034 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8035 and "set dcache size" commands zuinteger instead of uinteger.
8036
8037 2013-03-26 Pedro Alves <palves@redhat.com>
8038
8039 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8040 command zuinteger instead of uinteger.
8041
8042 2013-03-26 Pedro Alves <palves@redhat.com>
8043
8044 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8045 zuinteger instead of uinteger.
8046
8047 2013-03-26 Pedro Alves <palves@redhat.com>
8048
8049 * record.c (record_insn_history_size_setshow_var)
8050 (record_call_history_size_setshow_var): New globals.
8051 (command_size_to_target_size): New function.
8052 (cmd_record_insn_history, cmd_record_call_history): Use
8053 command_size_to_target_size instead of cast.
8054 (validate_history_size, set_record_insn_history_size)
8055 (set_record_call_history_size): New functions.
8056 (_initialize_record): Install set_record_insn_history_size and
8057 set_record_call_history_size as "set" hooks of "set record
8058 instruction-history-size" and "set record
8059 function-call-history-size".
8060
8061 2013-03-26 Pedro Alves <palves@redhat.com>
8062
8063 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8064 use with history_max_entries use. Remove FIXME note.
8065
8066 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8067
8068 * record-btrace.c (record_btrace_close): Call
8069 record_btrace_auto_disable.
8070
8071 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8072
8073 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8074
8075 2013-03-25 Doug Evans <dje@google.com>
8076
8077 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8078
8079 2013-03-25 Tom Tromey <tromey@redhat.com>
8080
8081 PR symtab/11462:
8082 * c-exp.y (exp): Add new productions for destructors after '.' and
8083 '->'.
8084 (write_destructor_name): New function.
8085
8086 2013-03-25 Tom Tromey <tromey@redhat.com>
8087
8088 PR c++/9197:
8089 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8090 value_struct_elt, not lookup_struct_elt_type.
8091 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8092 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8093 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8094
8095 2013-03-25 Yao Qi <yao@codesourcery.com>
8096
8097 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8098 instead of '_mkdir'.
8099
8100 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8101
8102 * windows-nat.c (windows_get_absolute_argv0): New function.
8103 * windows-nat.h: Add its prototype.
8104
8105 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8106 Use IS_DIR_SEPARATOR instead of looking for a character inside
8107 SLASH_STRING. Include filenames.h.
8108 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8109 relocate_gdb_directory works when passed gdb_program_name.
8110 Include windows-nat.h.
8111
8112 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8113
8114 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8115 * remote.c (trace_error): Remove the special handling of '2'.
8116 (readchar) <SERIAL_EOF>
8117 (readchar) <SERIAL_ERROR>
8118 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8119 (remote_get_trace_status): Call throw_exception if EX is
8120 TARGET_CLOSE_ERROR.
8121 * utils.c (perror_with_name): Rename to ...
8122 (throw_perror_with_name): ... here. New parameter errcode, describe it
8123 in the function comment.
8124 (perror_with_name): New function wrapper.
8125 * utils.h (enum errors): New stub declaration.
8126 (throw_perror_with_name): New declaration.
8127
8128 2013-03-22 Pedro Alves <palves@redhat.com>
8129 Yao Qi <yao@codesourcery.com>
8130 Mark Kettenis <kettenis@gnu.org>
8131
8132 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8133 Don't let the user set the value to UINT_MAX directly.
8134 <var_integer>: Don't let the user set the value to INT_MAX
8135 directly.
8136
8137 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8138
8139 * remote.c (remote_unpush_target): New function.
8140 (remote_open_1): Remove two pop_target calls, update one comment, add
8141 comment to target_preopen call. Replace pop_target call by
8142 remote_unpush_target call.
8143 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8144 pop_target calls by remote_unpush_target calls.
8145
8146 2013-03-22 Pedro Alves <palves@redhat.com>
8147
8148 * linux-nat.c (linux_child_follow_fork): Don't call
8149 linux_enable_event_reporting.
8150 (linux_handle_extended_wait): Don't call
8151 linux_enable_event_reporting.
8152
8153 2013-03-22 Pedro Alves <palves@redhat.com>
8154
8155 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8156 use it to rewrite the trampoline buffers with type gdb_byte[], and
8157 undefine the macro. Remove char* cast.
8158
8159 2013-03-21 Doug Evans <dje@google.com>
8160
8161 New commands "mt set per-command {space,time,symtab} {on,off}".
8162 * NEWS: Add entry.
8163 * event-top.c: #include "maint.h".
8164 * main.c: #include "maint.h".
8165 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8166 timeval-utils.h, maint.h, cli/cli-setshow.h.
8167 (per_command_time, per_command_space): New static globals.
8168 (per_command_symtab): New static global.
8169 (per_command_setlist, per_command_showlist): New static globals.
8170 (struct cmd_stats): Move here from utils.c.
8171 (set_per_command_time): Renamed from set_display_time in utils.c
8172 and moved here. All callers updated.
8173 (set_per_command_space): Renamed from set_display_space in utils.c
8174 and moved here. All callers updated.
8175 (count_symtabs_and_blocks): New function.
8176 (report_command_stats): Moved here from utils.c. Add support for
8177 printing symtab stats. Only print data if enabled before command
8178 executed.
8179 (make_command_stats_cleanup): Ditto.
8180 (sert_per_command_cmd, show_per_command_cmd): New functions.
8181 (_initialize_maint_cmds): Add new commands
8182 mt set per-command {space,time,symtab} {on,off}.
8183 * maint.h: New file.
8184 * top.c: #include "maint.h".
8185 * utils.c (reset_prompt_for_continue_wait_time): New function.
8186 (get_prompt_for_continue_wait_time): New function.
8187 * utils.h (reset_prompt_for_continue_wait_time): Declare
8188 (get_prompt_for_continue_wait_time): Declare.
8189 (make_command_stats_cleanup): Moved to maint.h.
8190 (set_display_time, set_display_space): Moved to maint.h and renamed
8191 to set_per_command_time, set_per_command_space.
8192 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8193 parse_binary_operation and made non-static. Don't call error,
8194 just return an error marker. All callers updated.
8195 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8196
8197 2013-03-21 Tom Tromey <tromey@redhat.com>
8198
8199 * symfile.c (alloc_section_addr_info): Update header. Don't set
8200 'num_sections' field.
8201 (build_section_addr_info_from_section_table): Set 'num_sections'.
8202 (build_section_addr_info_from_bfd): Likewise.
8203 (build_section_addr_info_from_objfile): Remove dead loop
8204 condition.
8205 (free_section_addr_info): Unconditionally call xfree.
8206 (relative_addr_info_to_section_offsets, addrs_section_sort)
8207 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8208 condition.
8209 (syms_from_objfile_1): Remove dead 'if' condition. Check
8210 'num_sections'.
8211 (add_symbol_file_command): Set 'num_sections'.
8212 * symfile-mem.c (symbol_file_add_from_memory): Set
8213 'num_sections'.
8214 * somread.c (som_symfile_offsets): Remove dead loop condition.
8215 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8216 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8217
8218 2013-03-21 Tom Tromey <tromey@redhat.com>
8219
8220 * tracepoint.h (decode_agent_options): Add 'trace_string'
8221 argument.
8222 * tracepoint.c (decode_agent_options): Add 'trace_string'
8223 argument.
8224 (validate_actionline): Update.
8225 (collect_symbol): Add 'trace_string' argument.
8226 (struct add_local_symbols_data) <trace_string>: New field.
8227 (do_collect_symbol): Update.
8228 (add_local_symbols): Add 'trace_string' argument.
8229 (encode_actions_1): Update.
8230 (trace_dump_actions): Update.
8231 * dwarf2loc.c (access_memory): Update.
8232 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8233 * ax-general.c (new_agent_expr): Update.
8234 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8235 (gen_trace_for_return_address): Add argument.
8236 (trace_kludge, trace_string_kludge): Remove.
8237 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8238 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8239 (gen_trace_for_var): Add 'trace_string' argument.
8240 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8241 (gen_printf, agent_eval_command_one): Update.
8242
8243 2013-03-21 Tom Tromey <tromey@redhat.com>
8244
8245 PR exp/15109:
8246 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8247 Handle FILENAME token.
8248
8249 2013-03-21 Tom Tromey <tromey@redhat.com>
8250
8251 * c-exp.y (YYPRINT): Define.
8252 (c_print_token): New function.
8253
8254 2013-03-21 Tom Tromey <tromey@redhat.com>
8255
8256 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8257
8258 2013-03-21 Yao Qi <yao@codesourcery.com>
8259
8260 * ctf.c: Include "gdb_stat.h".
8261 [USE_WIN32API]: New macro 'mkdir'.
8262 (ctf_start): Use permission bits macros if they are defined.
8263
8264 2013-03-20 Keith Seitz <keiths@redhat.com>
8265
8266 * breakpoint.h (struct breakpoint): Add comment to
8267 extra_string indicating that this member is mallod'd.
8268 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8269
8270 2013-03-20 Pedro Alves <palves@redhat.com>
8271
8272 PR gdb/15289
8273
8274 * cli/cli-setshow.c (do_set_command)
8275 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8276 the result of parsing the command argument. Throw error if the
8277 value is greater than UINT_MAX. Print the invalid value with
8278 plongest.
8279 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8280 result of parsing the command argument. Throw error if the value
8281 is greater than INT_MAX, not greater or equal. Also throw error
8282 if the value is less than INT_MIN. Print the invalid value with
8283 plongest.
8284 <var_zuinteger_unlimited>: Throw error if the value is greater
8285 than INT_MAX, not greater or equal.
8286 (do_show_command) <var_integer, var_zinteger,
8287 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8288
8289 2013-03-20 Tom Tromey <tromey@redhat.com>
8290
8291 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8292 if possible.
8293 * dwarf2read.c (read_func_scope): Remove old FIXME.
8294 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8295 not LOC_COMPUTED.
8296 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8297 Unconditionally call via computed ops, if possible.
8298 * printcmd.c (address_info): Unconditionally call via computed ops,
8299 if possible.
8300 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8301 if possible.
8302 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8303 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8304 if possible.
8305
8306 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8307 Tom Tromey <tromey@redhat.com>
8308
8309 PR symtab/8421:
8310 * coffread.c (coff_register_index): New global.
8311 (process_coff_symbol, coff_read_enum_type): Set
8312 SYMBOL_ACLASS_INDEX.
8313 (_initialize_coffread): Initialize new global.
8314 * dwarf2loc.c (locexpr_find_frame_base_location)
8315 (dwarf2_block_frame_base_locexpr_funcs)
8316 (loclist_find_frame_base_location)
8317 (dwarf2_block_frame_base_loclist_funcs): New.
8318 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8319 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8320 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8321 (dwarf2_block_frame_base_loclist_funcs): New.
8322 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8323 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8324 globals.
8325 (read_func_scope): Update.
8326 (fixup_go_packaging, mark_common_block_symbol_computed)
8327 (var_decode_location, new_symbol_full, dwarf2_const_value):
8328 Set SYMBOL_ACLASS_INDEX.
8329 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8330 (_initialize_dwarf2_read): Initialize new globals.
8331 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8332 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8333 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8334 globals.
8335 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8336 (_initialize_mdebugread): Initialize new globals.
8337 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8338 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8339 (stab_register_index, stab_regparm_index): New globals.
8340 (define_symbol, read_enum_type, common_block_end): Set
8341 SYMBOL_ACLASS_INDEX.
8342 (_initialize_stabsread): Initialize new globals.
8343 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8344 globals.
8345 (MAX_SYMBOL_IMPLS): New define.
8346 (register_symbol_computed_impl, register_symbol_block_impl)
8347 (register_symbol_register_impl)
8348 (initialize_ordinary_address_classes): New functions.
8349 (_initialize_symtab): Call initialize_ordinary_address_classes.
8350 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8351 (struct symbol_impl): New.
8352 (SYMBOL_ACLASS_BITS): New define.
8353 (struct symbol) <aclass, ops>: Remove fields.
8354 <aclass_index>: New field.
8355 (symbol_impls): Declare.
8356 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8357 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8358 (register_symbol_computed_impl, register_symbol_block_impl)
8359 (register_symbol_register_impl): Declare.
8360 (struct symbol_computed_ops): Add location_has_loclist.
8361 (struct symbol_block_ops): New.
8362 (SYMBOL_BLOCK_OPS): New.
8363 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8364
8365 2013-03-20 Tom Tromey <tromey@redhat.com>
8366
8367 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8368 (print_partial_symbols, recursively_search_psymtabs): Use
8369 PSYMBOL_CLASS.
8370
8371 2013-03-20 Pierre Muller <muller@sourceware.org>
8372
8373 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8374 addtion, subtraction, multiplication and division binary operator.
8375
8376 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8377
8378 Code cleanup.
8379 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8380 * bsd-kvm.c (bsd_kvm_close): Likewise.
8381 * bsd-uthread.c (bsd_uthread_close): Likewise.
8382 * corelow.c (core_close): Likewise.
8383 (core_close_cleanup): Remove parameter quitting from a caller.
8384 * event-top.c (async_disconnect): Likewise.
8385 * exec.c (exec_close_1): Remove parameter quitting.
8386 * go32-nat.c (go32_close): Likewise.
8387 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8388 parameter quitting from a caller.
8389 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8390 variable.
8391 (mips_linux_close): Remove parameter quitting. Remove parameter
8392 quitting from a caller.
8393 * monitor.c (monitor_close): Remove parameter quitting.
8394 * monitor.h (monitor_close): Likewise.
8395 * record-btrace.c (record_btrace_close): Likewise.
8396 * record-full.c (record_full_close): Likewise.
8397 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8398 it also from fprintf_unfiltered.
8399 * remote-mips.c (mips_close): Remove parameter quitting.
8400 (mips_detach): Remove parameter quitting from a caller.
8401 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8402 (gdbsim_close): Remove duplicate function comment. Remove parameter
8403 quitting and remove it also from printf_filtered.
8404 * remote.c (remote_close): Remove parameter quitting.
8405 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8406 * target.c (update_current_target): Remove parameter int from to_close
8407 de_fault.
8408 (push_target, unpush_target, pop_target): Remove parameter quitting from
8409 a caller.
8410 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8411 Remove parameter quitting from a caller.
8412 (target_preopen): Remove parameter quitting from a caller.
8413 (target_close): Remove parameter quitting. Remove parameter quitting
8414 from a caller two times. Remove parameter quitting also from
8415 fprintf_unfiltered.
8416 * target.h (struct target_ops): Remove parameter quitting and as int
8417 from fields to_xclose and to_close.
8418 (extern struct target_ops current_target):
8419 (target_close, pop_all_targets): Remove parameter quitting. Update the
8420 comment.
8421 (pop_all_targets_above): Remove parameter quitting.
8422 * top.c (quit_target): Remove parameter quitting from a caller.
8423 * tracepoint.c (tfile_close): Remove parameter quitting.
8424 * windows-nat.c (windows_close): Remove parameter quitting.
8425
8426 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8427
8428 * windows-nat.c (handle_output_debug_string): Replace call
8429 to string_to_core_addr with call to strtoull.
8430
8431 2013-03-20 Yao Qi <yao@codesourcery.com>
8432
8433 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8434 and write it to CTF metadata.
8435
8436 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8437
8438 * windows-nat.c (handle_output_debug_string): Change type of n to
8439 SIZE_T to avoid crash on 64 bit systems.
8440
8441 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8442
8443 * python/python-internal.h (HAVE_SNPRINTF)
8444 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8445 about redefinition of snprintf by pyerrors.h.
8446
8447 2013-03-15 Steve Ellcey <sellcey@mips.com>
8448
8449 * remote-sim.c (sim_command_completer): Make char arguments const.
8450
8451 2013-03-15 Tom Tromey <tromey@redhat.com>
8452
8453 PR c++/15116:
8454 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8455
8456 2013-03-14 Tom Tromey <tromey@redhat.com>
8457
8458 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8459 New fields.
8460 (get_file_crc): Move from symfile.c.
8461 (gdb_bfd_crc): New function.
8462 * gdb_bfd.h (gdb_bfd_crc): Declare.
8463 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8464 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8465 (separate_debug_file_exists): Use gdb_bfd_crc.
8466
8467 2013-03-14 Tom Tromey <tromey@redhat.com>
8468
8469 * symfile.c (get_debug_link_info): Remove.
8470 (find_separate_debug_file_by_debuglink): Use
8471 bfd_get_debug_link_info.
8472
8473 2013-03-14 Tom Tromey <tromey@redhat.com>
8474
8475 * symtab.c (error_in_psymtab_expansion): New function.
8476 (lookup_symbol_aux_quick)
8477 (basic_lookup_transparent_type_quick): Remove "last resort"
8478 code. Use error_in_psymtab_expansion.
8479
8480 2013-03-14 Doug Evans <dje@google.com>
8481 Jan Kratochvil <jan.kratochvil@redhat.com>
8482
8483 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8484 any successful compare_filenames_for_search or FILENAME_CMP.
8485 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8486 * symtab.c (iterate_over_some_symtabs): Likewise.
8487
8488 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8489
8490 * source.c (print_source_lines_base): Make a local copy of
8491 symtab_to_fullname.
8492
8493 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8494 Jan Kratochvil <jan.kratochvil@redhat.com>
8495
8496 * source.c (print_source_lines_base): Suppress "file" for TUI.
8497
8498 2013-03-14 Keith Seitz <keiths@redhat.com>
8499 Alan Matsuoka <alanm@redhat.com>
8500
8501 PR c++/15203
8502 PR c++/15210
8503 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8504 TYPE_CODE_METHOD.
8505 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8506 symbols.
8507
8508 2013-03-14 Yao Qi <yao@codesourcery.com>
8509
8510 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8511 status to tfile if trace is stopped by command 'tstop'.
8512
8513 2013-03-14 Yao Qi <yao@codesourcery.com>
8514
8515 * tracepoint.c (tfile_write_status): Write trace notes and user
8516 name into tfile if they are not NULL.
8517
8518 2013-03-14 Hui Zhu <hui@codesourcery.com>
8519 Yao Qi <yao@codesourcery.com>
8520
8521 * Makefile.in (REMOTE_OBS): Add ctf.o.
8522 (SFILES): Add ctf.c.
8523 (HFILES_NO_SRCDIR): Add ctf.h.
8524 * ctf.c, ctf.h: New files.
8525 * tracepoint.c: Include 'ctf.h'.
8526 (collect_pseudocommand): Remove static.
8527 (trace_save_command): Parse option "-ctf".
8528 Produce different trace file writers per option.
8529 Adjust output message.
8530 (trace_save_tfile, trace_save_ctf): New.
8531 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8532 * mi/mi-main.c: Include 'ctf.h'.
8533 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8534 trace_save_tfile or trace_save_ctf.
8535 * NEWS: Mention these changes.
8536
8537 2013-03-14 Yao Qi <yao@codesourcery.com>
8538
8539 * tracepoint.c (trace_file_writer_xfree): New.
8540 (struct tfile_writer_data): New.
8541 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8542 (tfile_write_header, tfile_write_regblock_type): New.
8543 (tfile_write_status, tfile_write_uploaded_tsv): New.
8544 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8545 (tfile_write_raw_data, (tfile_end): New.
8546 (tfile_write_ops): New global variable.
8547 (TRACE_WRITE_R_BLOCK): New macro.
8548 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8549 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8550 (TRACE_WRITE_V_BLOCK): New macro.
8551 (trace_save): Add extra one parameter WRITER. Make it static.
8552 Use WRITER to writer trace.
8553 (tfile_trace_file_writer_new): New.
8554 (trace_save_command): Caller update.
8555 (trace_save_tfile): Write trace data in TFILE format.
8556 * tracepoint.h (struct trace_frame_write_ops): New.
8557 (struct trace_file_write_ops): New.
8558 (struct trace_file_writer): New.
8559 (trace_save): Remove its declaration.
8560 (trace_save_tfile): Declare it.
8561 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8562 instead of trace_save.
8563
8564 2013-03-13 Pedro Alves <palves@redhat.com>
8565
8566 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8567
8568 2013-03-13 Pedro Alves <palves@redhat.com>
8569
8570 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8571 commented out code.
8572 * demangle.c (current_demangling_style_string): Make it const.
8573 (set_demangling_command): Assert the demangling style is known.
8574 Remove all handling of unknown styles. Set
8575 'current_demangling_style_string' to an element of the
8576 demangling_style_names array.
8577 (set_demangling_style): Delete.
8578 (_initialize_demangler): Set current_demangling_style_string to the
8579 element of the demangling_style_names array that corresponds to
8580 the default demangling style. Remove FIXME note. Don't call
8581 set_demangling_style.
8582 * gdb-demangle.h (set_demangling_style): Remove declaration.
8583
8584 2013-03-13 Pedro Alves <palves@redhat.com>
8585
8586 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8587 fields const.
8588 (ada_make_symbol_completion_list): Make "text0" parameter const.
8589 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8590 * breakpoint.c (condition_completer): Make "text" and "word"
8591 parameters const. Adjust.
8592 (check_tracepoint_command): Adjust to validate_actionline
8593 prototype change.
8594 (catch_syscall_completer): Make "text" and "word" parameters
8595 const.
8596 * cli/cli-cmds.c (show_user): Make "comname" local const.
8597 (valid_command_p): Make "command" parameter const.
8598 (alias_command): Make "alias_prefix" and "command_prefix" locals
8599 const.
8600 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8601 (add_alias_cmd): Make "name" and "oldname" parameters const.
8602 Adjust. No longer make copy of OLDNAME.
8603 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8604 (add_setshow_cmd_full, add_setshow_enum_cmd)
8605 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8606 (add_setshow_filename_cmd, add_setshow_string_cmd)
8607 (add_setshow_string_noescape_cmd)
8608 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8609 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8610 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8611 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8612 Make "name" parameter const.
8613 (help_cmd): Rename "command" parameter to "arg". New const local
8614 "command".
8615 (find_cmd): Make "command" parameter const.
8616 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8617 deprecated_cmd_warning prototype change.
8618 (undef_cmd_error): Make "cmdtype" parameter const.
8619 (lookup_cmd): Make "line" parameter const.
8620 (deprecated_cmd_warning): Change type of "text" parameter to
8621 pointer to const char, from pointer to pointer to char. Adjust.
8622 (lookup_cmd_composition): Make "text" parameter const.
8623 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8624 parameters const.
8625 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8626 const.
8627 * cli/cli-script.c (validate_comname): Make "tem" local const.
8628 (define_command): New const local "tem_c". Use it in calls to
8629 lookup_cmd.
8630 (document_command): Make "tem" and "comfull" locals const.
8631 (show_user_1): Make "prefix" and "name" parameters const.
8632 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8633 const.
8634 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8635 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8636 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8637 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8638 (complete_on_enum, add_setshow_enum_cmd)
8639 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8640 (add_setshow_filename_cmd, add_setshow_string_cmd)
8641 (add_setshow_string_noescape_cmd)
8642 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8643 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8644 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8645 Change prototypes, constifying strings.
8646 * completer.c (noop_completer, filename_completer): Make "text"
8647 and "prefix" parameters const.
8648 (location_completer, expression_completer)
8649 (complete_line_internal): Make "text" and "prefix" parameters
8650 const and adjust.
8651 (command_completer, signal_completer): Make "text" and "prefix"
8652 parameters const.
8653 * completer.h (noop_completer, filename_completer)
8654 (expression_completer, location_completer, command_completer)
8655 (signal_completer): Change prototypes.
8656 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8657 parameters const.
8658 * cp-abi.c (cp_abi_completer): Likewise.
8659 * expression.h (parse_expression_for_completion): Change
8660 prototype.
8661 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8662 parameters const.
8663 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8664 * infrun.c (handle_completer): Make "text" and "word" parameters
8665 const.
8666 * interps.c (interpreter_completer): Make "text" and "word"
8667 parameters const.
8668 * language.h (struct language_defn)
8669 <la_make_symbol_completion_list>: Make "text" and "word"
8670 parameters const.
8671 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8672 (parse_exp_in_context): Rename to ...
8673 (parse_exp_in_context_1): ... this.
8674 (parse_exp_in_context): Reimplement, with const hack from
8675 parse_exp_1.
8676 (parse_expression_for_completion): Make "string" parameter const.
8677 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8678 to pointer to const char. Adjust.
8679 (print_command_1): Make "exp" parameter const.
8680 (output_command): Rename to ...
8681 (output_command_const): ... this. Make "exp" parameter const.
8682 (output_command): Reimplement.
8683 (x_command): Adjust.
8684 (display_command): Rename "exp" parameter to "arg". New "exp"
8685 local, const version of "arg".
8686 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8687 "cmd_name" local const.
8688 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8689 call.
8690 (cmdpy_completer): Make "text" and "word" parameters const.
8691 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8692 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8693 const.
8694 * remote.c (_initialize_remote): Make "cmd_name" local const.
8695 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8696 parameters const. Adjust.
8697 (completion_list_add_fields): Make "sym_text", "text" and "word"
8698 parameters const.
8699 (struct add_name_data) <sym_text, text, word>: Make fields const.
8700 (default_make_symbol_completion_list_break_on): Make "text" and
8701 "word" parameters const. Adjust locals.
8702 (default_make_symbol_completion_list)
8703 (make_symbol_completion_list, make_symbol_completion_type)
8704 (make_symbol_completion_list_fn): Make "text" and "word"
8705 parameters const.
8706 (make_file_symbol_completion_list): Make "text", "word" and
8707 "srcfile" parameters const. Adjust locals.
8708 (add_filename_to_list): Make "text" and "word" parameters const.
8709 (struct add_partial_filename_data) <text, word>: Make fields
8710 const.
8711 (make_source_files_completion_list): Make "text" and "word"
8712 parameters const.
8713 * symtab.h (default_make_symbol_completion_list_break_on)
8714 (default_make_symbol_completion_list, make_symbol_completion_list)
8715 (make_symbol_completion_type enum type_code)
8716 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8717 (make_source_files_completion_list): Change prototype.
8718 * top.c (execute_command): Adjust to pass pointer to pointer to
8719 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8720 change.
8721 (set_verbose): Make "cmdname" local const.
8722 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8723 and adjust.
8724 (validate_actionline): Make "line" parameter a pointer to const
8725 char, and adjust.
8726 (encode_actions_1): Make "action_exp" local const, and adjust.
8727 (encode_actions): Adjust.
8728 (replace_comma): Delete.
8729 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8730 const, and adjust. Don't frob the action string while splitting
8731 it at commas. Instead, make a copy of each split substring in
8732 turn.
8733 (trace_dump_command): Adjust to validate_actionline prototype
8734 change.
8735 * tracepoint.h (decode_agent_options, decode_agent_options)
8736 (encode_actions, validate_actionline): Change prototypes.
8737 * valprint.h (output_command): Delete declaration.
8738 (output_command_const): Declare.
8739 * value.c (function_destroyer): Cast const away in xfree call.
8740
8741 2013-03-13 Pedro Alves <palves@redhat.com>
8742
8743 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8744 rather than casting 'const char * const *' to 'const char **'.
8745 * ada-lex.l (processInt): Make "trailer" local const. Remove
8746 'const char **' cast.
8747 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8748 locals, and use those as strtol output pointer, instead than doing
8749 invalid casts to from 'const char **' to 'char **'.
8750 (_initialize_demangle): Remove cast.
8751 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8752 locals, and use those as strtol output pointer, instead than doing
8753 invalid casts to from 'const char **' to 'char **'.
8754 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8755 casts.
8756 * stap-probe.c (stap_parse_register_operand)
8757 (stap_parse_single_operand): Likewise.
8758
8759 2013-03-13 Yao Qi <yao@codesourcery.com>
8760
8761 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8762 the last matched 'V' blcok in trace frame.
8763
8764 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8765
8766 * NEWS: Create a new section for the next release branch.
8767 Rename the section of the current branch, now that it has
8768 been cut.
8769
8770 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8771
8772 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8773 * version.in: Bump version to 7.6.50.20130312-cvs.
8774
8775 2013-03-12 Keith Seitz <keiths@redhat.com>
8776
8777 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8778 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8779 Remove temporary copy of input string.
8780 (mi_execute_command_wrapper): Make "cmd" const.
8781 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8782 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8783 Use const strings.
8784 (mi_parse): Make "cmd" const.
8785 Use const strings.
8786 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8787
8788 2013-03-12 Keith Seitz <keiths@redhat.com>
8789
8790 * ada-lang.c (ada_read_renaming_var_value): Pass const
8791 pointer to expression string to parse_exp_1.
8792 (create_excep_cond_exprs): Likewise.
8793 * ax-gdb.c (agent_eval_command_one): Likewise.
8794 (maint_agent_printf_command): Likewise.
8795 Constify much of the string handling/parsing.
8796 * breakpoint.c (set_breakpoint_condition): Pass const
8797 pointer to expression string to parse_exp_1.
8798 (update_watchpoint): Likewise.
8799 (parse_cmd_to_aexpr): Constify string handling.
8800 Pass const pointer to parse_exp_1.
8801 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8802 (find_condition_and_thread): Likewise.
8803 Make TOK const.
8804 (watch_command_1): Make "arg" const.
8805 Constify string handling.
8806 Copy the expression string instead of changing the input
8807 string.
8808 (update_breakpoint_location): Pass const pointer to
8809 parse_exp_1.
8810 * eval.c (parse_and_eval_address): Make "exp" const.
8811 (parse_to_comma_and_eval): Make "expp" const.
8812 (parse_and_eval): Make "exp" const.
8813 * expression.h (parse_expression): Make argument const.
8814 (parse_exp_1): Make first argument const.
8815 * findcmd.c (parse_find_args): Treat "args" as const.
8816 * linespec.c (parse_linespec): Pass const pointer to
8817 linespec_expression_to_pc.
8818 (linespec_expression_to_pc): Make "exp_ptr" const.
8819 * parse.c (parse_exp_1): Make "stringptr" const.
8820 Make a copy of the expression to pass to parse_exp_in_context until
8821 this whole interface can be constified.
8822 (parse_expression): Make "string" const.
8823 * printcmd.c (ui_printf): Treat "arg" as const.
8824 Handle const strings.
8825 * tracepoint.c (validate_actionline): Pass const pointer to
8826 all calls to parse_exp_1.
8827 (encode_actions_1): Likewise.
8828 * value.h (parse_to_comma_and_eval): Make argument const.
8829 (parse_and_eval_address): Likewise.
8830 (parse_and_eval): Likewise.
8831 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8832 (varobj_set_value): Likewise.
8833 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8834 constify string handling.
8835 Pass const pointers to parse_and_eval_address and
8836 parse_to_comman_and_eval.
8837 * cli/cli-utils.c (skip_to_space): Rename to ...
8838 (skip_to_space_const): ... this. Handle const strings.
8839 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8840 skip_to_space_const.
8841 (skip_to_space_const): Declare.
8842 * common/format.c (parse_format_string): Make "arg" const.
8843 Handle const strings.
8844 * common/format.h (parse_format_string): Make "arg" const.
8845 * gdbserver/ax.c (ax_printf): Make "format" const.
8846 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8847 of the expression string.
8848
8849 2013-03-12 Hui Zhu <hui@codesourcery.com>
8850
8851 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8852
8853 2013-03-12 Yao Qi <yao@codesourcery.com>
8854 Hui Zhu <hui@codesourcery.com>
8855
8856 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8857 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8858 DW_OP_deref_size.
8859
8860 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8861
8862 * ada-lex.l (rules): Only recognize 'thread' as a
8863 delimiter when followed by numerals, as for c-exp.y.
8864 Use new rewind_to_char function to rewind the input for
8865 expression-delimiting tokens.
8866 (rewind_to_char): New function.
8867
8868 2013-03-11 Pedro Alves <palves@redhat.com>
8869 Jan Kratochvil <jan.kratochvil@redhat.com>
8870
8871 * configure: Regenerate.
8872 * configure.ac (check dynamic export flag): Link python test with
8873 $PYTHON_LIBS.
8874
8875 2013-03-11 Doug Evans <dje@google.com>
8876 Keith Seitz <keiths@redhat.com>
8877
8878 * linespec.c (find_linespec_symbols): Call find_function_symbols
8879 first, and then call lookup_prefix_sym/find_method.
8880
8881 2013-03-11 Pedro Alves <palves@redhat.com>
8882
8883 * charset.c (convert_between_encodings): Don't cast between
8884 different pointer to pointer types. Instead, make the 'inp' local
8885 be of the type iconv expects.
8886 (wchar_iterate): Don't cast between different pointer to pointer
8887 types. Instead, use new pointer local of the type iconv expects.
8888 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8889 Add new local of type char pointer, and use it to get a
8890 char/string view of the byte buffer, instead of casting between
8891 pointer to pointer types.
8892
8893 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8894
8895 * remote.c (remote_set_trace_buffer_size): Move != operator
8896 to the start of next line to fix an ARI warning.
8897
8898 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8899
8900 * NEWS: Add record changes.
8901
8902 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8903
8904 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8905 the instruction history disassembly.
8906 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8907 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8908
8909 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8910
8911 * Makefile.in (SFILES): Add record-btrace.c
8912 (COMMON_OBS): Add record-btrace.o
8913 * record-btrace.c: New.
8914 * objfiles.c: Include btrace.h.
8915 (free_objfile): call btrace_free_objfile.
8916
8917 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8918
8919 * target.c (target_call_history, target_call_history_from,
8920 target_call_history_range): New.
8921 * target.h (target_ops) <to_call_history, to_call_history_from,
8922 to_call_history_range>: New fields.
8923 (target_call_history, target_call_history_from,
8924 target_call_history_range): New declaration.
8925 * record.c (get_call_history_modifiers, cmd_record_call_history,
8926 record_call_history_size): New.
8927 (_initialize_record): Add the "record function-call-history" command.
8928 Add "set/show record function-call-history-size" commands.
8929 * record.h (record_print_flag): New.
8930
8931 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8932
8933 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8934 to_insn_history_range>: New fields.
8935 (target_insn_history): New.
8936 (target_insn_history_from): New.
8937 (target_insn_history_range): New.
8938 * target.c (target_insn_history): New.
8939 (target_insn_history_from): New.
8940 (target_insn_history_range): New.
8941 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8942 (record_insn_history_size): New.
8943 (get_insn_number): New.
8944 (get_context_size): New.
8945 (no_chunk): New.
8946 (get_insn_history_modifiers): New.
8947 (cmd_record_insn_history): New.
8948 (_initialize_record): Add "set/show record instruction-history-size"
8949 command. Add "record instruction-history" command.
8950
8951 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8952
8953 * record.h (record_disconnect): New.
8954 (record_detach): New.
8955 (record_mourn_inferior): New.
8956 (record_kill): New.
8957 * record-full.c (record_disconnect, record_detach,
8958 record_mourn_inferior, record_kill): Move to...
8959 * record.c: ...here.
8960 (DEBUG): New.
8961 (record_stop): New.
8962 (record_unpush): New.
8963 (cmd_record_stop): Call record_stop. Replace unpush_target
8964 call with record_unpush call.
8965 (record_disconnect, record_detach): Assert that the target
8966 is of record stratum. Call record_unpush, record_stop, and
8967 DEBUG.
8968 (record_mourn_inferior, record_kill): Assert that the target
8969 is of record stratum. Call record_unpush and DEBUG.
8970
8971 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8972
8973 * record-full.h, record-full.c (record_memory_query): Rename
8974 to ...
8975 (record_full_memory_query): ...this. Update all users.
8976 (record_arch_list_add_reg): Rename to ...
8977 (record_full_arch_list_add_reg): ...this. Update all users.
8978 (record_arch_list_add_mem): Rename to ...
8979 (record_full_arch_list_add_mem): ...this. Update all users.
8980 (record_arch_list_add_end): Rename to ...
8981 (record_full_arch_list_add_end): ...this. Update all users.
8982 (record_gdb_operation_disable_set): Rename to ...
8983 (record_full_gdb_operation_disable_set): ...this.
8984 Update all users.
8985
8986 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8987
8988 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8989 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8990 (RECORD_IS_REPLAY): Renamed to ...
8991 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8992 (RECORD_FILE_MAGIC): Renamed to ...
8993 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8994 (record_mem_entry): Renamed to ...
8995 (record_full_mem_entry): ... this. Updated all users.
8996 (record_reg_entry): Renamed to ...
8997 (record_full_reg_entry): ... this. Updated all users.
8998 (record_end_entry): Renamed to ...
8999 (record_full_end_entry): ... this. Updated all users.
9000 (record_type) <record_end, record_reg, record_mem>: Renamed
9001 to ...
9002 (record_full_type) <record_full_end, record_full_reg,
9003 record_full_mem>: ... this. Updated all users.
9004 (record_entry): Renamed to ...
9005 (record_full_entry): ... this. Updated all users.
9006 (record_core_buf_entry): Renamed to ...
9007 (record_full_core_buf_entry): ... this. Updated all users.
9008 (record_core_regbuf): Renamed to ...
9009 (record_full_core_regbuf): ... this. Updated all users.
9010 (record_core_start): Renamed to ...
9011 (record_full_core_start): ... this. Updated all users.
9012 (record_core_end): Renamed to ...
9013 (record_full_core_end): ... this. Updated all users.
9014 (record_core_buf_list): Renamed to ...
9015 (record_full_core_buf_list): ... this. Updated all users.
9016 (record_first): Renamed to ...
9017 (record_full_first): ... this. Updated all users.
9018 (record_list): Renamed to ...
9019 (record_full_list): ... this. Updated all users.
9020 (record_arch_list_head): Renamed to ...
9021 (record_full_arch_list_head): ... this. Updated all users.
9022 (record_arch_list_tail): Renamed to ...
9023 (record_full_arch_list_tail): ... this. Updated all users.
9024 (record_stop_at_limit): Renamed to ...
9025 (record_full_stop_at_limit): ... this. Updated all users.
9026 (record_insn_max_num): Renamed to ...
9027 (record_full_insn_max_num): ... this. Updated all users.
9028 (record_insn_num): Renamed to ...
9029 (record_full_insn_num): ... this. Updated all users.
9030 (record_insn_count): Renamed to ...
9031 (record_full_insn_count): ... this. Updated all users.
9032 (record_ops): Renamed to ...
9033 (record_full_ops): ... this. Updated all users.
9034 (record_core_ops): Renamed to ...
9035 (record_full_core_ops): ... this. Updated all users.
9036 (set_record_cmdlist): Renamed to ...
9037 (set_record_full_cmdlist): ... this. Updated all users.
9038 (show_record_cmdlist): Renamed to ...
9039 (show_record_full_cmdlist): ... this. Updated all users.
9040 (record_cmdlist): Renamed to ...
9041 (record_full_cmdlist): ... this. Updated all users.
9042 (record_beneath_to_resume_ops): Renamed to ...
9043 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9044 (record_beneath_to_resume): Renamed to ...
9045 (record_full_beneath_to_resume): ... this. Updated all users.
9046 (record_beneath_to_wait_ops): Renamed to ...
9047 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9048 (record_beneath_to_wait): Renamed to ...
9049 (record_full_beneath_to_wait): ... this. Updated all users.
9050 (record_beneath_to_store_registers_ops): Renamed to ...
9051 (record_full_beneath_to_store_registers_ops): ... this.
9052 Updated all users.
9053 (record_beneath_to_store_registers): Renamed to ...
9054 (record_full_beneath_to_store_registers): ... this.
9055 Updated all users.
9056 (record_beneath_to_xfer_partial_ops): Renamed to ...
9057 (record_full_beneath_to_xfer_partial_ops): ... this.
9058 Updated all users.
9059 (record_beneath_to_xfer_partial): Renamed to ...
9060 (record_full_beneath_to_xfer_partial): ... this.
9061 Updated all users.
9062 (record_beneath_to_insert_breakpoint): Renamed to ...
9063 (record_full_beneath_to_insert_breakpoint): ... this.
9064 Updated all users.
9065 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9066 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9067 Updated all users.
9068 (record_beneath_to_stopped_data_address): Renamed to ...
9069 (record_full_beneath_to_stopped_data_address): ... this.
9070 Updated all users.
9071 (record_beneath_to_async): Renamed to ...
9072 (record_full_beneath_to_async): ... this. Updated all users.
9073 (record_goto_insn): Renamed to ...
9074 (record_full_goto_insn): ... this. Updated all users.
9075 (record_save): Renamed to ...
9076 (record_full_save): ... this. Updated all users.
9077 (record_reg_alloc): Renamed to ...
9078 (record_full_reg_alloc): ... this. Updated all users.
9079 (record_reg_release): Renamed to ...
9080 (record_full_reg_release): ... this. Updated all users.
9081 (record_mem_alloc): Renamed to ...
9082 (record_full_mem_alloc): ... this. Updated all users.
9083 (record_mem_release): Renamed to ...
9084 (record_full_mem_release): ... this. Updated all users.
9085 (record_end_alloc): Renamed to ...
9086 (record_full_end_alloc): ... this. Updated all users.
9087 (record_end_release): Renamed to ...
9088 (record_full_end_release): ... this. Updated all users.
9089 (record_entry_release): Renamed to ...
9090 (record_full_entry_release): ... this. Updated all users.
9091 (record_list_release): Renamed to ...
9092 (record_full_list_release): ... this. Updated all users.
9093 (record_list_release_following): Renamed to ...
9094 (record_full_list_release_following): ... this.
9095 Updated all users.
9096 (record_list_release_first): Renamed to ...
9097 (record_full_list_release_first): ... this. Updated all users.
9098 (record_arch_list_add): Renamed to ...
9099 (record_full_arch_list_add): ... this. Updated all users.
9100 (record_get_loc): Renamed to ...
9101 (record_full_get_loc): ... this. Updated all users.
9102 (record_check_insn_num): Renamed to ...
9103 (record_full_check_insn_num): ... this. Updated all users.
9104 (record_arch_list_cleanups): Renamed to ...
9105 (record_full_arch_list_cleanups): ... this. Updated all users.
9106 (record_message): Renamed to ...
9107 (record_full_message): ... this. Updated all users.
9108 (record_message_wrapper): Renamed to ...
9109 (record_full_message_wrapper): ... this. Updated all users.
9110 (record_message_wrapper_safe): Renamed to ...
9111 (record_full_message_wrapper_safe): ... this. Updated all users.
9112 (record_gdb_operation_disable): Renamed to ...
9113 (record_full_gdb_operation_disable): ... this. Updated all users.
9114 (record_hw_watchpoint): Renamed to ...
9115 (record_full_hw_watchpoint): ... this. Updated all users.
9116 (record_exec_insn): Renamed to ...
9117 (record_full_exec_insn): ... this. Updated all users.
9118 (record_restore): Renamed to ...
9119 (record_full_restore): ... this. Updated all users.
9120 (record_async_inferior_event_token): Renamed to ...
9121 (record_full_async_inferior_event_token): ... this.
9122 Updated all users.
9123 (record_async_inferior_event_handler): Renamed to ...
9124 (record_full_async_inferior_event_handler): ... this.
9125 Updated all users.
9126 (record_core_open_1): Renamed to ...
9127 (record_full_core_open_1): ... this. Updated all users.
9128 (record_open_1): Renamed to ...
9129 (record_full_open_1): ... this. Updated all users.
9130 (record_open): Renamed to ...
9131 (record_full_open): ... this. Updated all users.
9132 (record_close): Renamed to ...
9133 (record_full_close): ... this. Updated all users.
9134 (record_resume_step): Renamed to ...
9135 (record_full_resume_step): ... this. Updated all users.
9136 (record_resumed): Renamed to ...
9137 (record_full_resumed): ... this. Updated all users.
9138 (record_execution_dir): Renamed to ...
9139 (record_full_execution_dir): ... this. Updated all users.
9140 (record_resume): Renamed to ...
9141 (record_full_resume): ... this. Updated all users.
9142 (record_get_sig): Renamed to ...
9143 (record_full_get_sig): ... this. Updated all users.
9144 (record_sig_handler): Renamed to ...
9145 (record_full_sig_handler): ... this. Updated all users.
9146 (record_wait_cleanups): Renamed to ...
9147 (record_full_wait_cleanups): ... this. Updated all users.
9148 (record_wait_1): Renamed to ...
9149 (record_full_wait_1): ... this. Updated all users.
9150 (record_wait): Renamed to ...
9151 (record_full_wait): ... this. Updated all users.
9152 (record_stopped_by_watchpoint): Renamed to ...
9153 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9154 (record_disconnect): Renamed to ...
9155 (record_full_disconnect): ... this. Updated all users.
9156 (record_detach): Renamed to ...
9157 (record_full_detach): ... this. Updated all users.
9158 (record_mourn_inferior): Renamed to ...
9159 (record_full_mourn_inferior): ... this. Updated all users.
9160 (record_kill): Renamed to ...
9161 (record_full_kill): ... this. Updated all users.
9162 (record_stopped_data_address): Renamed to ...
9163 (record_full_stopped_data_address): ... this. Updated all users.
9164 (record_registers_change): Renamed to ...
9165 (record_full_registers_change): ... this. Updated all users.
9166 (record_store_registers): Renamed to ...
9167 (record_full_store_registers): ... this. Updated all users.
9168 (record_xfer_partial): Renamed to ...
9169 (record_full_xfer_partial): ... this. Updated all users.
9170 (record_breakpoint): Renamed to ...
9171 (record_full_breakpoint): ... this. Updated all users.
9172 (record_breakpoint_p): Renamed to ...
9173 (record_full_breakpoint_p): ... this. Updated all users.
9174 (record_breakpoints): Renamed to ...
9175 (record_full_breakpoints): ... this. Updated all users.
9176 (record_sync_record_breakpoints): Renamed to ...
9177 (record_full_sync_record_breakpoints): ... this.
9178 Updated all users.
9179 (record_init_record_breakpoints): Renamed to ...
9180 (record_full_init_record_breakpoints): ... this.
9181 Updated all users.
9182 (record_insert_breakpoint): Renamed to ...
9183 (record_full_insert_breakpoint): ... this. Updated all users.
9184 (record_remove_breakpoint): Renamed to ...
9185 (record_full_remove_breakpoint): ... this. Updated all users.
9186 (record_can_execute_reverse): Renamed to ...
9187 (record_full_can_execute_reverse): ... this. Updated all users.
9188 (record_get_bookmark): Renamed to ...
9189 (record_full_get_bookmark): ... this. Updated all users.
9190 (record_goto_bookmark): Renamed to ...
9191 (record_full_goto_bookmark): ... this. Updated all users.
9192 (record_async): Renamed to ...
9193 (record_full_async): ... this. Updated all users.
9194 (record_can_async_p): Renamed to ...
9195 (record_full_can_async_p): ... this. Updated all users.
9196 (record_is_async_p): Renamed to ...
9197 (record_full_is_async_p): ... this. Updated all users.
9198 (record_execution_direction): Renamed to ...
9199 (record_full_execution_direction): ... this. Updated all users.
9200 (record_info): Renamed to ...
9201 (record_full_info): ... this. Updated all users.
9202 (record_delete): Renamed to ...
9203 (record_full_delete): ... this. Updated all users.
9204 (record_is_replaying): Renamed to ...
9205 (record_full_is_replaying): ... this. Updated all users.
9206 (record_goto_entry): Renamed to ...
9207 (record_full_goto_entry): ... this. Updated all users.
9208 (record_goto_begin): Renamed to ...
9209 (record_full_goto_begin): ... this. Updated all users.
9210 (record_goto_end): Renamed to ...
9211 (record_full_goto_end): ... this. Updated all users.
9212 (record_goto): Renamed to ...
9213 (record_full_goto): ... this. Updated all users.
9214 (init_record_ops): Renamed to ...
9215 (init_record_full_ops): ... this. Updated all users.
9216 (record_core_resume): Renamed to ...
9217 (record_full_core_resume): ... this. Updated all users.
9218 (record_core_kill): Renamed to ...
9219 (record_full_core_kill): ... this. Updated all users.
9220 (record_core_fetch_registers): Renamed to ...
9221 (record_full_core_fetch_registers): ... this. Updated all users.
9222 (record_core_prepare_to_store): Renamed to ...
9223 (record_full_core_prepare_to_store): ... this. Updated all users.
9224 (record_core_store_registers): Renamed to ...
9225 (record_full_core_store_registers): ... this. Updated all users.
9226 (record_core_xfer_partial): Renamed to ...
9227 (record_full_core_xfer_partial): ... this. Updated all users.
9228 (record_core_insert_breakpoint): Renamed to ...
9229 (record_full_core_insert_breakpoint): ... this. Updated all users.
9230 (record_core_remove_breakpoint): Renamed to ...
9231 (record_full_core_remove_breakpoint): ... this. Updated all users.
9232 (record_core_has_execution): Renamed to ...
9233 (record_full_core_has_execution): ... this. Updated all users.
9234 (init_record_core_ops): Renamed to ...
9235 (init_record_full_core_ops): ... this. Updated all users.
9236 (cmd_record_restore): Renamed to ...
9237 (cmd_record_full_restore): ... this. Updated all users.
9238 (record_save_cleanups): Renamed to ...
9239 (record_full_save_cleanups): ... this. Updated all users.
9240 (cmd_record_start): Renamed to ...
9241 (cmd_record_full_start): ... this. Updated all users.
9242 (set_record_insn_max_num): Renamed to ...
9243 (set_record_full_insn_max_num): ... this. Updated all users.
9244 (set_record_command): Renamed to ...
9245 (set_record_full_command): ... this. Updated all users.
9246 (show_record_command): Renamed to ...
9247 (show_record_full_command): ... this. Updated all users.
9248 (_initialize_record): Renamed to ...
9249 (_initialize_record_full): ... this. Updated all users.
9250
9251 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9252
9253 * record.h: Split into this and ...
9254 * record-full.h: ... this.
9255 * record.c: Split into this and ...
9256 * record-full.c: ... this.
9257 * target.h (target_ops): Add new fields to_info_record,
9258 to_save_record, to_delete_record, to_record_is_replaying,
9259 to_goto_record_begin, to_goto_record_end, to_goto_record.
9260 (target_info_record): New.
9261 (target_save_record): New.
9262 (target_supports_delete_record): New.
9263 (target_delete_record): New.
9264 (target_record_is_replaying): New.
9265 (target_goto_record_begin): New.
9266 (target_goto_record_end): New.
9267 (target_goto_record): New.
9268 * target.c (target_info_record): New.
9269 (target_save_record): New.
9270 (target_supports_delete_record): New.
9271 (target_delete_record): New.
9272 (target_record_is_replaying): New.
9273 (target_goto_record_begin): New.
9274 (target_goto_record_end): New.
9275 (target_goto_record): New.
9276 * record.h: Declare struct cmd_list_element.
9277 (record_cmdlist): New declaration.
9278 (set_record_cmdlist): New declaration.
9279 (show_record_cmdlist): New declaration.
9280 (info_record_cmdlist): New declaration.
9281 (cmd_record_goto): New declaration.
9282 * record.c: Remove unnecessary includes.
9283 Include inferior.h.
9284 (cmd_record_goto): Remove declaration.
9285 (record_cmdlist): Now extern. Initialize.
9286 (set_record_cmdlist): Now extern. Initialize.
9287 (show_record_cmdlist): Now extern. Initialize.
9288 (info_record_cmdlist): Now extern. Initialize.
9289 (find_record_target): New.
9290 (require_record_target): New.
9291 (cmd_record_start): Update.
9292 (cmd_record_delete): Remove target-specific code.
9293 Call target_delete_record.
9294 (cmd_record_stop): Unpush any record target.
9295 (set_record_insn_max_num): Move to record-full.c
9296 (set_record_command): Add comment.
9297 (show_record_command): Add comment.
9298 (info_record_command): Update comment.
9299 Remove target-specific code.
9300 Call the record target's to_info_record.
9301 (cmd_record_start): New.
9302 (cmd_record_goto): Now extern.
9303 Remove target-specific code.
9304 Call target_goto_begin, target_goto_end, or target_goto.
9305 (_initialize_record): Move record target ops initialization to
9306 record-full.c.
9307 Change "record" command help text.
9308 Move "record restore", "record set", and "record show" commands to
9309 record-full.c.
9310 * Makefile.in (SFILES): Add record-full.c.
9311 (HFILES_NO_SRCDIR): Add record-full.h.
9312 (COMMON_OBS): Add record-full.o.
9313 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9314 * arm-tdep.c: Include record-full.h.
9315 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9316 * i386-tdep.c: Include record-full.h.
9317 * infrun.c: Include record-full.h.
9318 * linux-record.c: Include record-full.h.
9319 * moxie-tdep.c: Include record-full.h.
9320 * record-full.c: Include record-full.h.
9321 Change module comment.
9322 (set_record_full_cmdlist): New.
9323 (show_record_full_cmdlist): New.
9324 (record_full_cmdlist): New.
9325 (record_goto_insn): New declaration.
9326 (record_save): New declaration.
9327 (record_check_insn_num): Change query string.
9328 (record_info): New.
9329 (record_delete): New.
9330 (record_is_replaying): New.
9331 (record_goto_entry): New.
9332 (record_goto_begin): New.
9333 (record_goto_end): New.
9334 (record_goto): New.
9335 (init_record_ops): Update.
9336 (init_record_core_ops): Update.
9337 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9338 (cmd_record_start): New.
9339 (set_record_insn_max_num): Moved from record.c
9340 (set_record_full_command): New.
9341 (show_record_full_command): New.
9342 (_initialize_record_full): New.
9343
9344 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9345
9346 * target.h (add_deprecated_target_alias): New.
9347 * target.c (add_deprecated_target_alias): New.
9348
9349 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9350
9351 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9352 and signal.h.
9353 (linux_supports_btrace): Add kernel and
9354 cpuid check.
9355 (kernel_supports_btrace): New function.
9356 (cpu_supports_btrace): New function.
9357 (intel_supports_btrace): New function.
9358
9359 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9360
9361 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9362 * remote.c: Include btrace.h.
9363 (struct btrace_target_info): New struct.
9364 (remote_supports_btrace): New function.
9365 (send_Qbtrace): New function.
9366 (remote_enable_btrace): New function.
9367 (remote_disable_btrace): New function.
9368 (remote_teardown_btrace): New function.
9369 (remote_read_btrace): New function.
9370 (init_remote_ops): Add btrace ops.
9371 (enum <unnamed>): Add btrace packets.
9372 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9373 (_initialize_remote): Add packet configuration for branch tracing.
9374
9375 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9376
9377 * features/btrace.dtd: New file.
9378 * Makefile.in (XMLFILES): Add btrace.dtd.
9379 * btrace.h (parse_xml_btrace): New declaration.
9380 * btrace.c: Include xml-support.h.
9381 (parse_xml_btrace): New function.
9382 (parse_xml_btrace_block): New function.
9383 (block_attributes): New struct.
9384 (btrace_attributes): New struct.
9385 (btrace_children): New struct.
9386 (btrace_elements): New struct.
9387
9388 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9389
9390 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9391 (amd64_linux_enable_btrace): New.
9392 (amd64_linux_disable_btrace): New.
9393 (amd64_linux_teardown_btrace): New.
9394 (_initialize_amd64_linux_nat): Initialize btrace ops.
9395 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9396 (i386_linux_enable_btrace): New.
9397 (i386_linux_disable_btrace): New.
9398 (i386_linux_teardown_btrace): New.
9399 (_initialize_i386_linux_nat): Initialize btrace ops.
9400 * config/i386/linux.mh: Add linux-btrace.o.
9401 * config/i386/linux64.mh: Add linux-btrace.o.
9402
9403 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9404
9405 * common/linux_btrace.h: New file.
9406 * common/linux_btrace.c: New file.
9407 * Makefile.in (SFILES): Add btrace.c.
9408 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9409 (COMMON_OBS): Add btrace.o.
9410 (linux-btrace.o): New rule.
9411
9412 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9413
9414 * target.h: Include btrace.h.
9415 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9416 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9417 * target.c (target_supports_btrace): New function.
9418 (target_enable_btrace): New function.
9419 (target_disable_btrace): New function.
9420 (target_teardown_btrace): New function.
9421 (target_read_btrace): New function.
9422 * btrace.h: New file.
9423 * btrace.c: New file.
9424 * Makefile.in: Add btrace.c.
9425 * gdbthread.h: Include btrace.h.
9426 (struct thread_info): Add btrace field.
9427 * thread.c: Include btrace.h.
9428 (clear_thread_inferior_resources): Call target_teardown_btrace.
9429 * common/btrace-common.h: New file.
9430
9431 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9432
9433 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9434 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9435 kill_status to outer block.
9436
9437 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9438
9439 Fix entry-values if the callee called a noreturn function.
9440 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9441 get_frame_address_in_block. Add new comment.
9442
9443 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9444
9445 Fix entry-values in C++ across CUs.
9446 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9447 lookup_minimal_symbol. Add a comment.
9448 * dwarf2read.c
9449 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9450 DW_AT_linkage_name.
9451
9452 2013-03-08 Yao Qi <yao@codesourcery.com>
9453
9454 * tracepoint.c (_initialize_tracepoint): Indent the code.
9455
9456 2013-03-08 Pedro Alves <palves@redhat.com>
9457
9458 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9459 (parse_find_args, find_command): Change type of pattern buffer
9460 locals to 'gdb_byte *'.
9461
9462 2013-03-08 Stan Shebs <stan@codesourcery.com>
9463 Hafiz Abid Qadeer <abidh@codesourcery.com>
9464
9465 * NEWS: Mention set and show trace-buffer-size commands.
9466 Mention new packet.
9467 * target.h (struct target_ops): New method
9468 to_set_trace_buffer_size.
9469 (target_set_trace_buffer_size): New macro.
9470 * target.c (update_current_target): Set up new method.
9471 * tracepoint.c (trace_buffer_size): New global.
9472 (start_tracing): Send it to the target.
9473 (set_trace_buffer_size): New function.
9474 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9475 * remote.c (remote_set_trace_buffer_size): New function.
9476 (_initialize_remote): Use it.
9477 (QTBuffer:size) New remote command.
9478 (PACKET_QTBuffer_size): New enum.
9479 (remote_protocol_features): Add an entry for
9480 PACKET_QTBuffer_size.
9481
9482 2013-03-08 Tom Tromey <tromey@redhat.com>
9483
9484 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9485 variable.
9486
9487 2013-03-07 Pedro Alves <palves@redhat.com>
9488
9489 * target.c (target_read_stralloc, target_fileio_read_alloc):
9490 *Cast pointer to 'gdb_byte *' in target call.
9491
9492 2013-03-07 Pedro Alves <palves@redhat.com>
9493
9494 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9495 call.
9496
9497 2013-03-07 Keith Seitz <keiths@redhat.com>
9498
9499 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9500 (trace_pass_command): Likewise.
9501 * cli/cli-cmds.c: Include cli/cli-utils.h.
9502 (source_command): Use skip-spaces.
9503 (disassemble_command): Likewise.
9504 * findcmd.c: Include cli/cli-utils.h.
9505 (parse_find_args): Use skip_spaces.
9506 * go32-nat.c: Include cli/cli-utils.h.
9507 (go32_sldt): Use skip_spaces.
9508 (go32_sgdt): Likewise.
9509 (go32_sidt): Likewise.
9510 (go32_pde): Likewise.
9511 (go32_pte): Likewise.
9512 (go32_pte_for_address): Likewise.
9513 * infcmd.c: Include cli/cli-utils.h.
9514 (registers_info): Use skip_spaces.
9515 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9516 (linux_info_proc): Likewise.
9517 * linux-thread-db.c: Include cli/cli-utils.h.
9518 (info_auto_load_libthread_db): Use skip_spaces_const.
9519 * m32r-rom.c: Include cli/cli-utils.h.
9520 (m32r_upload_command): Use skip_spaces.
9521 * maint.c: Include cli/cli-utils.h.
9522 (maintenance_translate_address): Use skip_spaces.
9523 * mi/mi-parse.c: Include cli/cli-utils.h.
9524 (mi_parse_argv): Use skip_spaces.
9525 (mi_parse): Likewise.
9526 * minsyms.c: Include cli/cli-utils.h.
9527 (msymbol_hash_iw): Use skip_spaces_const.
9528 * objc-lang.c: Include cli/cli-utils.h.
9529 (parse_selector): Use skip_spaces.
9530 (parse_method): Likewise.
9531 * python/python.c: Include cli/cli-utils.h.
9532 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9533 (python_command)[HAVE_PYTHON]: Likewise.
9534 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9535 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9536 (m32r_load): Use skip_spaces.
9537 * serial.c: Include cli/cli-utils.h.
9538 (serial_open): Use skip_spaces_const.
9539 * stack.c: Include cli/cli-utils.h.
9540 (parse_frame_specification_1): Use skip_spaces_const.
9541 * symfile.c: Include cli/cli-utils.h.
9542 (set_ext_lang_command): Use skip_spaces.
9543 * symtab.c: Include cli/cli-utils.h.
9544 (rbreak_command): Use skip_spaces.
9545 * thread.c (thread_name_command): Use skip_spaces.
9546 * tracepoint.c (validate_actionline): Use skip_spaces.
9547 (encode_actions_1): Likewise.
9548 (trace_find_range_command): Likewise.
9549 (trace_find_outside_command): Likewise.
9550 (trace_dump_actions): Likewise.
9551
9552 2013-03-07 Pedro Alves <palves@redhat.com>
9553
9554 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9555 * expprint.c (print_subexp_standard): Likewise.
9556 * utils.c (host_char_to_target): Likewise.
9557 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9558 * varobj.c (value_get_print_value): Change type of local to char*.
9559 Cast it gdb_byte * in call to language printer.
9560
9561 2013-03-07 Pedro Alves <palves@redhat.com>
9562
9563 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9564 gdb_byte *'.
9565 (make_wchar_iterator): Remove cast to char*.
9566 (wchar_iterate): Change type of local.
9567
9568 2013-03-07 Pedro Alves <palves@redhat.com>
9569
9570 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9571 for 'regcache->register_status'.
9572
9573 2013-03-07 Pedro Alves <palves@redhat.com>
9574
9575 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9576 int.
9577
9578 2013-03-07 Pedro Alves <palves@redhat.com>
9579
9580 * stap-probe.c (handle_stap_probe): Add cast to char*.
9581
9582 2013-03-07 Pedro Alves <palves@redhat.com>
9583
9584 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9585 RECORD_MSGRCV>: Pass a signed variable to
9586 regcache_raw_read_signed, instead of an unsigned one.
9587
9588 2013-03-07 Pedro Alves <palves@redhat.com>
9589
9590 * remote-notif.c (notif_debug): Change type to int.
9591 * remote-notif.h (notif_debug): Likewise.
9592
9593 2013-03-07 Pedro Alves <palves@redhat.com>
9594
9595 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9596
9597 2013-03-07 Pedro Alves <palves@redhat.com>
9598
9599 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9600 * remote.h (hex2bin, bin2hex): ... here.
9601 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9602
9603 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9604
9605 * utils.c (initialize_utils): Improve doc strings of "set/show
9606 width", "set/show height", and "set/show pagination".
9607
9608 2013-03-06 Keith Seitz <keiths@redhat.com>
9609
9610 * ax-gdb.c (gen_printf): Make FORMAT const.
9611 * ax-gdb.h (gen_printf): Likewise.
9612 * ax-general.c (ax_string): Make STR const.
9613 * ax.h (ax_string): Likewise.
9614
9615 2013-03-06 Doug Evans <dje@google.com>
9616
9617 * elfread.c (elf_symfile_read): Move debugging printf to more
9618 logical location.
9619
9620 2013-03-06 Pedro Alves <palves@redhat.com>
9621
9622 * python/py-utils.c (target_string_to_unicode): Delete function.
9623 * python/python-internal.h (target_string_to_unicode): Delete
9624 declaration.
9625
9626 2013-03-06 Pierre Muller <muller@sourceware.org>
9627
9628 * linespec.c (get_current_search_block): ARI fix, use (void)
9629 for empty parameter list.
9630
9631 2013-03-05 Doug Evans <dje@google.com>
9632
9633 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9634 of old ada_lookup_symbol_list. In !full_search case, don't
9635 search superblocks.
9636 (ada_lookup_symbol_list): Delete arg full_search, all callers
9637 updated. Call ada_lookup_symbol_list_worker.
9638 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9639 * ada-lang.h (ada_lookup_symbol_list): Update.
9640 * language.h (language_defn): Update comment for
9641 la_iterate_over_symbols.
9642 * linespec.c (iterate_over_file_blocks): New function.
9643 (iterate_over_all_matching_symtabs): Call it.
9644 (lookup_prefix_sym): Ditto.
9645 (get_current_search_block): New function.
9646 (get_search_block): Delete.
9647 (find_label_symbols): Call get_current_search_block.
9648 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9649 * symtab.c (iterate_over_symbols): Don't search superblocks.
9650
9651 2013-03-05 Yao Qi <yao@codesourcery.com>
9652
9653 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9654 parameter VAR's type from "unsigned int" to "int".
9655 * command.h (var_zuinteger_unlimited): Update its comments.
9656 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9657
9658 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9659
9660 * NEWS: Mention new target x86_64-*-cygwin*.
9661
9662 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9663
9664 * configure.host: Add x86_64-*-cygwin* as host.
9665 * configure.tgt: Add x86_64-*-cygwin* as target.
9666 * config/i386/cygwin64.mh: New file.
9667
9668 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9669
9670 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9671
9672 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9673
9674 * linespec.c (struct linespec_canonical_name): New.
9675 (struct linespec_state): Change canonical_names type to it.
9676 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9677 xrealloc element size. Initialize the different CANONICAL fields.
9678 (canonical_to_fullform): New.
9679 (filter_results): Use it. Add variables canonical, fullform and
9680 cleanup.
9681 (struct decode_line_2_item, decode_line_2_compare_items): New.
9682 (decode_line_2): Remove variables iter and item_names, add variables
9683 items and items_count. Modify the code for these new variables.
9684
9685 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9686
9687 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9688 calling do_cleanup.
9689
9690 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9691
9692 * tracepoint.c (build_traceframe_info): Add code for byte order.
9693
9694 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9695
9696 * v850-tdep.c: (v850e2_register_name): Revise system register
9697 names to match current V850E2M architecture specifications.
9698 Update register number enum comments too.
9699
9700 2013-03-01 Jiong Wang <jiwang@tilera.com>
9701 Pedro Alves <palves@redhat.com>
9702
9703 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9704 to END_ADDR.
9705 (tilegx_skip_prologue): Limit prologue analysis to section end.
9706
9707 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9708
9709 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9710 use it.
9711
9712 2013-03-01 Pedro Alves <palves@redhat.com>
9713
9714 Use gdb_byte for bytes from the program being debugged.
9715
9716 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9717 Change type of local 'buf' to gdb_byte.
9718 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9719 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9720 * cris-tdep.c (cris_sigcontext_addr)
9721 (cris_sigtramp_frame_unwind_cache): Likewise.
9722 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9723 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9724 Likewise.
9725 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9726 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9727 (hppa32_hpux_search_dummy_call_sequence)
9728 (hppa_hpux_supply_save_state): Likewise.
9729 * hppa-linux-tdep.c (insns_match_pattern)
9730 (hppa_linux_find_global_pointer): Likewise.
9731 * hppa-tdep.c (hppa_in_function_epilogue_p)
9732 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9733 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9734 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9735 (i386fbsd_collect_uthread): Likewise.
9736 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9737 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9738 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9739 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9740 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9741 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9742 (ia64_libunwind_frame_prev_register)
9743 (ia64_libunwind_sigtramp_frame_this_id)
9744 (ia64_find_global_pointer_from_dynamic_section)
9745 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9746 (ia64_unwind_pc): Likewise.
9747 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9748 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9749 (m68hc11_extract_return_value): Likewise.
9750 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9751 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9752 (mep_get_insn, mep_push_dummy_call): Likewise.
9753 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9754 (mips_linux_in_dynsym_stub): Likewise.
9755 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9756 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9757 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9758 to gdb_byte.
9759 * remote-mips.c (mips_set_register): Likewise.
9760 * remote-sim.c (gdbsim_fetch_register): Likewise.
9761 * score-tdep.c (score7_fetch_inst): Change type of parameter
9762 'memblock' and local 'buf' to gdb_byte.
9763 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9764 Change type of local 'buf' to gdb_byte. Adjust.
9765 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9766 to gdb_byte**.
9767 (score7_analyze_prologue): Change type of 'memblock' and
9768 'memblock_ptr' locals to gdb_byte*.
9769 * sh64-tdep.c (sh64_extract_return_value)
9770 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9771 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9772 * solib-pa64.c (pa64_solib_create_inferior_hook)
9773 (pa64_open_symbol_file_object): Remove local 'buf'.
9774 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9775 (som_open_symbol_file_object): Likewise.
9776 * solib-spu.c (spu_current_sos): Likewise.
9777 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9778 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9779 (spu_store_registers): Likewise.
9780 * target.c (debug_print_register): Likewise.
9781 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9782 * xstormy16-tdep.c (xstormy16_store_return_value)
9783 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9784 (xstormy16_find_jmp_table_entry): Likewise.
9785
9786 2013-03-01 Jiong Wang <jiwang@tilera.com>
9787
9788 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9789 (tilegx_gdbarch_init): Install it.
9790
9791 2013-02-28 Tom Tromey <tromey@redhat.com>
9792
9793 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9794 PyLong_Check.
9795
9796 2013-02-28 Doug Evans <dje@google.com>
9797
9798 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9799 * python/python.c (gdbpy_find_pc_line): Ditto.
9800
9801 2013-02-28 Tom Tromey <tromey@redhat.com>
9802
9803 * contrib/excheck.py: New file.
9804 * contrib/exsummary.py: New file.
9805 * contrib/gcc-with-excheck: New file.
9806
9807 2013-02-28 Tom Tromey <tromey@redhat.com>
9808
9809 * python/python.c (gdbpy_print_stack): Call begin_line and
9810 fprintf_filtered inside TRY_CATCH.
9811
9812 2013-02-28 Tom Tromey <tromey@redhat.com>
9813
9814 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9815 inside TRY_CATCH.
9816
9817 2013-02-28 Tom Tromey <tromey@redhat.com>
9818
9819 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9820 frame_object_to_frame_info inside TRY_CATCH.
9821
9822 2013-02-28 Tom Tromey <tromey@redhat.com>
9823
9824 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9825 TRY_CATCH.
9826
9827 2013-02-28 Tom Tromey <tromey@redhat.com>
9828
9829 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9830
9831 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9832
9833 * windows-nat.c: Throughout, fix format strings and casts of
9834 printf-like functions to avoid type related warnings on all
9835 platforms.
9836 (handle_output_debug_string): Fetch context information address
9837 from debug string using string_to_core_addr.
9838
9839 2013-02-27 Jiong Wang <jiwang@tilera.com>
9840
9841 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9842 * regformats/reg-tilegx32.dat: New.
9843
9844 2013-02-27 Jiong Wang <jiwang@tilera.com>
9845
9846 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9847
9848 2013-02-27 Jiong Wang <jiwang@tilera.com>
9849
9850 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9851
9852 2013-02-27 Yao Qi <yao@codesourcery.com>
9853 Pedro Alves <palves@redhat.com>
9854
9855 * tracepoint.c (tfile_trace_find): For tfind
9856 pc/tp/range/outside, look for the next trace frame instead of
9857 always starting from frame 0.
9858
9859 2013-02-26 Anthony Green <green@moxielogic.com>
9860
9861 * configure.tgt: Add support for moxie-*-rtems* target.
9862
9863 2013-02-25 Pedro Alves <palves@redhat.com>
9864
9865 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9866 warning text.
9867
9868 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9869
9870 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9871 if $fp is used as the virtual frame pointer.
9872
9873 2013-02-23 Alan Modra <amodra@gmail.com>
9874
9875 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9876 symbol size.
9877 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9878 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9879 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9880 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9881
9882 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9883
9884 Code cleanup.
9885 * elfread.c (build_id_bfd_get): Make the return type const.
9886 (build_id_verify): Make the check parameter const.
9887 (build_id_to_debug_filename): Make the build_id parameter and variable
9888 data const.
9889 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9890
9891 2013-02-21 Alan Modra <amodra@gmail.com>
9892
9893 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9894
9895 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9896
9897 Add a new method 'disassemble' to gdb.Architecture class.
9898 * python/py-arch.c (archpy_disassmble): Implementation of the
9899 new method gdb.Architecture.disassemble.
9900 (arch_object_methods): Add entry for the new method.
9901
9902 2013-02-20 Jiong Wang <jiwang@tilera.com>
9903
9904 * MAINTAINERS (Write After Approval): Add myself to the list.
9905
9906 2013-02-19 Pedro Alves <palves@redhat.com>
9907
9908 Garbage collect 'struct monitor_ops'::load_routine.
9909
9910 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9911 * monitor.c (monitor_load): No longer call
9912 current_monitor->load_routine.
9913 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9914 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9915 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9916
9917 2013-02-19 Pedro Alves <palves@redhat.com>
9918
9919 PR gdb/15161
9920
9921 Harmonize with generic_load.
9922
9923 * monitor.c: Include "readline/readline.h".
9924 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9925 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9926 long/strtol for the 'load_offset' local. Error out if no argument
9927 is given or if too many arguments are given. Tilde expand the
9928 passed in file name.
9929
9930 2013-02-19 Kai Tietz <ktietz@redhat.com>
9931
9932 PR gdb/15161
9933 * symfile.c (load_section_data): Change type of load_offset
9934 to CORE_ADDR.
9935 (generic_load): User strtoulst instead of strtoul for conversion
9936 of load_offset.
9937
9938 2013-02-19 Jiong Wang <jiwang@tilera.com>
9939
9940 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9941 for return address, "lr" register, saved on stack.
9942 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9943 after we invoke tilegx_analyze_prologue.
9944
9945 2013-02-19 Jiong Wang <jiwang@tilera.com>
9946
9947 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9948
9949 2013-02-19 Jiong Wang <jiwang@tilera.com>
9950
9951 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9952
9953 2013-02-19 Jiong Wang <jiwang@tilera.com>
9954
9955 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9956 (tilegx_write_pc): New function.
9957 (tilegx_cannot_reference_register): Return zero if REGNO
9958 is TILEGX_FAULTNUM_REGNUM.
9959 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9960 (tilegx_register_name): Add handling of "faultnum" register.
9961 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9962 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9963 handling of TILEGX_FAULTNUM_REGNUM.
9964 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9965
9966 2013-02-19 Jiong Wang <jiwang@tilera.com>
9967
9968 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9969 should be aligned to 64bit.
9970
9971 2013-02-19 Kai Tietz <ktietz@redhat.com>
9972
9973 * windows-nat.c (windows_xfer_memory): Fix debug-output
9974 for LLP64.
9975
9976 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9977
9978 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9979 Don't check DSP register number if HAVE_DSP is not set.
9980
9981 2013-02-19 Alan Modra <amodra@gmail.com>
9982
9983 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9984 throughout file instead.
9985 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9986 Don't xmalloc return value.
9987 (build_id_verify): Similarly. Don't xfree.
9988 (build_id_to_debug_filename): Update.
9989 (find_separate_debug_file_by_buildid): Update, don't xfree.
9990
9991 2013-02-18 Tom Tromey <tromey@redhat.com>
9992
9993 PR gdb/15102:
9994 * dwarf2read.c (read_subrange_type): Use result of
9995 'check_typedef'.
9996
9997 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9998
9999 * frame.c: Remove one extra white space after #include
10000 directive.
10001
10002 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10003
10004 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10005
10006 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10007
10008 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10009 and dir commands into an if block.
10010
10011 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10012
10013 * python/py-breakpoint (struct pybp_code): Use int instead of
10014 enum type_code.
10015
10016 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10017 Hafiz Abid Qadeer <abidh@codesourcery.com>
10018
10019 * NEWS: Mention new field "trace-file".
10020 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10021 (tfile_open): Record the trace file's filename in the trace
10022 status.
10023 (tfile_files_info): Mention the name of the trace file.
10024 Check the "filename" field explicitely.
10025 (trace_status_command): Explicitely check "filename" field.
10026 (trace_find_command): Ditto.
10027 (trace_find_pc_command): Ditto.
10028 (trace_find_tracepoint_command): Ditto.
10029 (trace_find_line_command): Ditto.
10030 (trace_find_range_command): Ditto.
10031 (trace_find_outside_command): Ditto.
10032 * tracepoint.h (struct trace_status) <from_file>: Rename it
10033 to "filename" and make it hold the trace file's filename
10034 instead of a boolean.
10035 * remote.c (remote_get_trace_status): Initialize "filename"
10036 field with NULL instead of 0.
10037
10038 2013-02-15 Yao Qi <yao@codesourcery.com>
10039
10040 * remote.c: Fix a typo.
10041
10042 2013-02-14 Pierre Muller <muller@sourceware.org>
10043
10044 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10045
10046 2013-02-14 Pedro Alves <palves@redhat.com>
10047
10048 * utils.c (savestring): Don't #undef it. Move function to
10049 common/common-utils.c.
10050 * common/common-utils.c: Include gdb_string.h.
10051 (savestring): Move here from utils.c.
10052 * common/common-utils.h (savestring): Declare.
10053
10054 2013-02-14 Pedro Alves <palves@redhat.com>
10055
10056 * utils.c (savestring): Rename parameter 'size' to 'len'.
10057
10058 2013-02-14 Pedro Alves <palves@redhat.com>
10059 Yufeng Zhang <yufeng.zhang@arm.com>
10060
10061 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10062 (aarch64_inferior_data, struct aarch64_inferior_data):
10063 Delete.
10064 (struct aarch64_process_info): New.
10065 (aarch64_process_list): New global.
10066 (aarch64_find_process_pid, aarch64_add_process)
10067 (aarch64_process_info_get): New functions.
10068 (aarch64_inferior_data_get): Delete.
10069 (aarch64_process_info_get): New function.
10070 (aarch64_forget_process): New function.
10071 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10072 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10073 aarch64_get_debug_reg_state.
10074 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10075 instead of linux_nat_iterate_watchpoint_lwps.
10076 (aarch64_linux_new_fork): New function.
10077 (aarch64_linux_child_post_startup_inferior): Use
10078 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10079 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10080 (aarch64_linux_remove_hw_breakpoint)
10081 (aarch64_handle_aligned_watchpoint)
10082 (aarch64_handle_unaligned_watchpoint)
10083 (aarch64_linux_insert_watchpoint)
10084 (aarch64_linux_remove_watchpoint)
10085 (aarch64_linux_stopped_data_address): Adjust to pass the current
10086 process id to aarch64_debug_reg_state.
10087 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10088 linux_nat_new_fork hook, and aarch64_forget_process as
10089 linux_nat_forget_process hook; remove the call to
10090 register_inferior_data_with_cleanup.
10091
10092 2013-02-14 Pedro Alves <palves@redhat.com>
10093
10094 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10095 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10096 lval_memory.
10097
10098 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10099 Hafiz Abid Qadeer <abidh@codesourcery.com>
10100
10101 * tracepoint.h (validate_trace_state_variable_name): Declare.
10102 * tracepoint.c (validate_trace_state_variable_name): New.
10103 (trace_variable_command): Parse the trace state variable's name
10104 without using parse_expression. Do several validations.
10105 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10106 trace state variable's name with parse_expression. Validate it.
10107
10108 2013-02-14 Yao Qi <yao@codesourcery.com>
10109
10110 * infcmd.c (breakpoint_proceeded): Remove it.
10111
10112 2013-02-14 Yao Qi <yao@codesourcery.com>
10113
10114 * tracepoint.c (end_actions_pseudocommand): Make it static.
10115 (while_stepping_pseudocommand): Likewise.
10116 * tracepoint.h (end_actions_pseudocommand): Remove the
10117 declaration.
10118 (while_stepping_pseudocommand): Likewise.
10119
10120 2013-02-14 Yao Qi <yao@codesourcery.com>
10121
10122 * cli/cli-decode.c (help_cmd): Remove the declaration of
10123 "cmdlist".
10124 (help_all): Likewise.
10125
10126 2013-02-13 Pedro Alves <palves@redhat.com>
10127
10128 * amd64-linux-nat.c (update_debug_registers_callback):
10129 Update comment.
10130 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10131 iterate_over_lwps.
10132 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10133 i386_debug_reg_state.
10134 (amd64_linux_new_fork): New function.
10135 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10136 linux_nat_new_fork hook, and i386_forget_process as
10137 linux_nat_forget_process hook.
10138 * i386-linux-nat.c (update_debug_registers_callback):
10139 Update comment.
10140 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10141 iterate_over_lwps.
10142 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10143 i386_debug_reg_state.
10144 (i386_linux_new_fork): New function.
10145 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10146 linux_nat_new_fork hook, and i386_forget_process as
10147 linux_nat_forget_process hook.
10148 * i386-nat.c (i386_init_dregs): Delete.
10149 (i386_inferior_data, struct i386_inferior_data):
10150 Delete.
10151 (struct i386_process_info): New.
10152 (i386_process_list): New global.
10153 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10154 New functions.
10155 (i386_inferior_data_get): Delete.
10156 (i386_process_info_get): New function.
10157 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10158 (i386_forget_process): New function.
10159 (i386_cleanup_dregs): Rewrite.
10160 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10161 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10162 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10163 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10164 to i386_debug_reg_state.
10165 (i386_use_watchpoints): Don't register inferior data.
10166 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10167 adjust comment.
10168 (i386_forget_process): Declare.
10169 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10170 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10171 New static globals.
10172 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10173 (add_initial_lwp): New, factored out from ...
10174 (add_lwp): ... this. Don't check the number of lwps before
10175 calling linux_nat_new_thread.
10176 (linux_nat_iterate_watchpoint_lwps): Delete.
10177 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10178 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10179 forks and vforks.
10180 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10181 initial lwp.
10182 (linux_nat_kill, linux_nat_mourn_inferior): Call
10183 linux_nat_forget_process.
10184 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10185 (linux_nat_forget_process): New functions.
10186 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10187 type.
10188 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10189 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10190 types.
10191 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10192 (linux_nat_forget_process): New declarations.
10193
10194 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10195 (amd64fbsd_mourn_inferior): New function.
10196 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10197 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10198
10199 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10200
10201 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10202 Adding _().
10203
10204 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10205
10206 * aarch64-linux-nat.c (debug_reg_change_callback)
10207 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10208 %s and phex().
10209
10210 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10211
10212 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10213 with LONGEST.
10214
10215 2013-02-13 Pedro Alves <palves@redhat.com>
10216 Hafiz Abid Qadeer <abidh@codesourcery.com>
10217
10218 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10219
10220 2013-02-12 Tom Tromey <tromey@redhat.com>
10221
10222 PR symtab/11464:
10223 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10224 NAME return.
10225 (classify_inner_name): Remove 'first_name' argument, add
10226 'context'. Remove unused variable.
10227 (yylex): Explicitly maintain the context type. Exit loop earlier
10228 if NAME result is seen.
10229
10230 2013-02-12 Pedro Alves <palves@redhat.com>
10231
10232 * amd64-darwin-tdep.c: Add (C) after Copyright.
10233 * cli/cli-cmds.h: Ditto.
10234 * cli/cli-decode.c: Ditto.
10235 * cli/cli-decode.h: Ditto.
10236 * cli/cli-dump.c: Ditto.
10237 * cli/cli-dump.h: Ditto.
10238 * cli/cli-interp.c: Ditto.
10239 * cli/cli-logging.c: Ditto.
10240 * cli/cli-script.c: Ditto.
10241 * cli/cli-script.h: Ditto.
10242 * cli/cli-setshow.c: Ditto.
10243 * cli/cli-setshow.h: Ditto.
10244 * cli/cli-utils.c: Ditto.
10245 * cli/cli-utils.h: Ditto.
10246 * config/alpha/nm-osf3.h: Ditto.
10247 * config/djgpp/djconfig.sh: Ditto.
10248 * config/i386/nm-fbsd.h: Ditto.
10249 * config/i386/nm-i386gnu.h: Ditto.
10250 * config/nm-linux.h: Ditto.
10251 * config/nm-nto.h: Ditto.
10252 * config/rs6000/nm-rs6000.h: Ditto.
10253 * config/sparc/nm-sol2.h: Ditto.
10254 * darwin-nat-info.c: Ditto.
10255 * dfp.c: Ditto.
10256 * dfp.h: Ditto.
10257 * gdb-demangle.h: Ditto.
10258 * i386-darwin-nat.c: Ditto.
10259 * i386-darwin-tdep.c: Ditto.
10260 * linux-fork.h: Ditto.
10261 * m32c-tdep.c: Ditto.
10262 * microblaze-linux-tdep.c: Ditto.
10263 * microblaze-rom.c: Ditto.
10264 * microblaze-tdep.c: Ditto.
10265 * microblaze-tdep.h: Ditto.
10266 * mips-linux-tdep.h: Ditto.
10267 * ppc-ravenscar-thread.c: Ditto.
10268 * ppc-ravenscar-thread.h: Ditto.
10269 * prologue-value.c: Ditto.
10270 * prologue-value.h: Ditto.
10271 * ravenscar-thread.c: Ditto.
10272 * ravenscar-thread.h: Ditto.
10273 * sparc-ravenscar-thread.c: Ditto.
10274 * sparc-ravenscar-thread.h: Ditto.
10275 * tilegx-linux-tdep.c: Ditto.
10276 * unwind_stop_reasons.def: Ditto.
10277 * windows-nat.h: Ditto.
10278 * xtensa-linux-tdep.c: Ditto.
10279 * xtensa-xtregs.c: Ditto.
10280 * regformats/regdat.sh: Ditto.
10281 * regformats/regdef.h: Ditto.
10282
10283 2013-02-12 Pedro Alves <palves@redhat.com>
10284
10285 * break-catch-sig.c: Update copyright years.
10286
10287 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10288
10289 Add support for a destructor for ui_out data and use it to
10290 provide a ui_out destructor.
10291 * ui-out.h: Declare the new ui_out destructor.
10292 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10293 * ui-out.c (default_data_destroy): Add a default data destructor
10294 which does nothing.
10295 (default_ui_out_impl): Set the new data_destroy field to
10296 default_data_destroy
10297 (uo_data_destroy): Local function which invokes the data
10298 destructor if present.
10299 (clear_table): Local function which clears the table data of a
10300 ui_out object.
10301 (ui_out_destroy): Public function which frees a ui_out object.
10302 (ui_out_table_end): Use the new clear_table function.
10303 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10304 NULL.
10305 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10306 to NULL.
10307
10308 2013-02-11 Doug Evans <dje@google.com>
10309
10310 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10311 (printf_decfloat): New function. Broken out from ui_printf.
10312 Remove unnecessary code to shift the entire format string down.
10313 (printf_pointer): New function.
10314 (ui_printf): Code to print C strings, wide C strings, decfloats,
10315 and pointers moved to separate functions.
10316
10317 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10318
10319 * valops.c (value_assign): Handling bitfield offset in
10320 `lval_internalvar_component' case.
10321
10322 2013-02-08 Doug Evans <dje@google.com>
10323
10324 * common/format.c (parse_format_string): Fix whitespace.
10325
10326 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10327
10328 * stack.c (return_command): Work around uninitialized variable
10329 warning.
10330
10331 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10332
10333 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10334 number of the registers from 36 to 34.
10335
10336 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10337
10338 * NEWS: Mention new AArch64 native and target support.
10339
10340 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10341
10342 * MAINTAINERS (Write After Approval): Add myself.
10343
10344 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10345 Marcus Shawcroft <marcus.shawcroft@arm.com>
10346 Nigel Stephens <nigel.stephens@arm.com>
10347 Yufeng Zhang <yufeng.zhang@arm.com>
10348
10349 * aarch64-linux-nat.c: New file.
10350 * config/aarch64/linux.mh: New file.
10351 * configure.host: Add AArch64.
10352 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10353
10354 2013-02-07 Doug Evans <dje@google.com>
10355
10356 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10357 disassemble command.
10358
10359 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10360
10361 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10362 set_gdbarch_fetch_tls_load_module_address.
10363
10364 2013-02-06 David S. Miller <davem@davemloft.net>
10365
10366 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10367 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10368 * value.c (struct_return_convention): New function.
10369 (using_struct_return): Implement in terms of struct_return_convention.
10370 * value.h (struct_return_convention): Declare.
10371 * stack.c (return_command): Allow successful overriding of the return
10372 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10373
10374 2013-02-06 Tom Tromey <tromey@redhat.com>
10375
10376 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10377 outside of TRY_CATCH.
10378
10379 2013-02-06 Yao Qi <yao@codesourcery.com>
10380
10381 * mi/mi-interp.c: Include "tracepoint.h".
10382 (mi_tsv_modified): Declare.
10383 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10384 (mi_interpreter_init): Call observer_attach_tsv_modified.
10385 (mi_tsv_modified): New.
10386 (mi_tsv_created, mi_tsv_deleted): Update.
10387 * tracepoint.c (trace_variable_command): Call
10388 observer_notify_tsv_modified if the initial value of tsv is
10389 changed.
10390 (delete_trace_state_variable): Call
10391 observer_notify_tsv_deleted earlier.
10392 (trace_variable_command): Caller update.
10393 (create_tsv_from_upload): Likewise.
10394 * observer.sh: Declare "struct trace_state_variable".
10395
10396 * NEWS: Mention the new MI notification "=tsv-modified".
10397
10398 2013-02-05 Doug Evans <dje@google.com>
10399
10400 * completer.c (location_completer): Fix typo in comment.
10401
10402 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10403
10404 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10405 ADDRESS sorted.
10406
10407 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10408
10409 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10410 Refactor if statement to avoid trailing || operator.
10411
10412 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10413
10414 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10415
10416 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10417
10418 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10419 * configure.host: Add powerpc*-*-freebsd* target.
10420 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10421 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10422 * config/powerpc/fbsd.mh: New file.
10423
10424 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10425 Denys Vlasenko <dvlasenk@redhat.com>
10426 Pedro Alves <palves@redhat.com>
10427
10428 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10429 (struct elf_internal_linux_prpsinfo): Forward declare.
10430 * gdbarch.h, gdbarch.c: Regenerate.
10431 * linux-tdep.c: Include `cli/cli-utils.h'.
10432 (linux_fill_prpsinfo): New function.
10433 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10434 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10435 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10436 depending on gdbarch pointer bitness.
10437 * ppc-linux-tdep.c: Include elf-bfd.h.
10438 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10439 on 32-bit.
10440
10441 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10442 Marcus Shawcroft <marcus.shawcroft@arm.com>
10443 Nigel Stephens <nigel.stephens@arm.com>
10444 Yufeng Zhang <yufeng.zhang@arm.com>
10445
10446 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10447
10448 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10449 Marcus Shawcroft <marcus.shawcroft@arm.com>
10450 Nigel Stephens <nigel.stephens@arm.com>
10451 Yufeng Zhang <yufeng.zhang@arm.com>
10452
10453 * aarch64-newlib-tdep.c: New file.
10454 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10455 aarch64*-*-elf.
10456 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10457 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10458 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10459 * osabi.c (gdb_osabi_names): Add "Newlib".
10460
10461 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10462 Marcus Shawcroft <marcus.shawcroft@arm.com>
10463 Nigel Stephens <nigel.stephens@arm.com>
10464 Yufeng Zhang <yufeng.zhang@arm.com>
10465
10466 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10467 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10468 * aarch64-linux-tdep.c: New file.
10469 * aarch64-linux-tdep.h: New file.
10470 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10471 * configure.tgt: Add aarch64-none-linux-gnu.
10472
10473 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10474 Marcus Shawcroft <marcus.shawcroft@arm.com>
10475 Nigel Stephens <nigel.stephens@arm.com>
10476 Yufeng Zhang <yufeng.zhang@arm.com>
10477
10478 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10479 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10480 (ALLDEPFILES): Add aarch64-tdep.c.
10481 * aarch64-tdep.c: New file.
10482 * aarch64-tdep.h: New file.
10483 * configure.tgt: Add AArch64.
10484 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10485 (aarch64-expedite): New definition.
10486 * features/aarch64-core.xml: New file.
10487 * features/aarch64-fpu.xml: New file.
10488 * features/aarch64-without-fpu.c: New file (generated).
10489 * features/aarch64-without-fpu.xml: New file.
10490 * features/aarch64.c: New file (generated).
10491 * features/aarch64.xml: New file.
10492 * regformats/aarch64-without-fpu.dat: New file (generated).
10493 * regformats/aarch64.dat: New file (generated).
10494
10495 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10496
10497 * contrib/expect-read1.c: New file.
10498 * contrib/expect-read1.sh: New file.
10499
10500 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10501
10502 * dwarf2read.c (file_file_name): New function with code from
10503 file_full_name.
10504 (file_full_name): Move most of the code to file_file_name.
10505 (macro_start_file): Rename variable full_name to file_name and use
10506 file_file_name for it. Add comp_dir parameter to new_macro_table.
10507 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10508 macro_source_file->filename access by macro_source_fullname call.
10509 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10510 caller.
10511 * macrotab.c (struct macro_table): New field comp_dir.
10512 (macro_include): New variables link_fullname and source_fullname.
10513 Replace any macro_source_file->filename access by macro_source_fullname
10514 call.
10515 (macro_lookup_inclusion): Remove the partial filenames checking code.
10516 (check_for_redefinition): New variables source_fullname and
10517 found_key_fullname. Replace any macro_source_file->filename access by
10518 macro_source_fullname call.
10519 (macro_undef): New variables source_fullname and key_fullname. Replace
10520 any macro_source_file->filename access by macro_source_fullname call.
10521 (macro_lookup_definition): New variables retval and source_fullname.
10522 Replace any macro_source_file->filename access by macro_source_fullname
10523 call.
10524 (foreach_macro): New variable key_fullname. Replace any
10525 macro_source_file->filename access by macro_source_fullname call.
10526 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10527 macro_source_file->filename access by macro_source_fullname call.
10528 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10529 (macro_source_fullname): New function.
10530 * macrotab.h (struct macro_source_file): Extent the filename field
10531 comment.
10532 (new_macro_table): New parameter comp_dir, add a comment for it.
10533 (macro_source_fullname): new declaration.
10534
10535 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10536
10537 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10538 this_real_name to outer block. Use it also for
10539 compare_filenames_for_search.
10540 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10541 with dw2_get_real_path for file_matcher, considering also
10542 BASENAMES_MAY_DIFFER.
10543 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10544
10545 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10546
10547 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10548 to the file_matcher parameter. Pass 0 to it.
10549 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10550 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10551 NULL psymtab_to_fullname result.
10552 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10553 an expected filename instead.
10554 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10555 file_matcher parameter. Call also psymtab_to_fullname, after newly
10556 considering BASENAMES_MAY_DIFFER.
10557 * source.c (rewrite_source_path): Remove static.
10558 * source.h (rewrite_source_path): New declaration.
10559 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10560 the expand_symtabs_matching field. Comment it.
10561 * symtab.c (file_matches): New function comment. Add parameter
10562 basenames, implement it.
10563 (search_symbols_file_matches): Add basenames parameter. Update the
10564 file_matches caller.
10565 (search_symbols): Match FILES also against symtab_to_fullname.
10566 Optimize it for BASENAMES_MAY_DIFFER.
10567
10568 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10569
10570 * source.c (print_source_lines_base): Print for TUI also "fullname".
10571 * tui/tui-data.c (init_content_element): Change tui_locator_element
10572 field to full_name.
10573 * tui/tui-data.h (struct tui_locator_element): Likewise.
10574 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10575 tui_update_locator_filename calls to tui_update_locator_fullname.
10576 Replace symtab->filename refererence by symtab_to_fullname call.
10577 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10578 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10579 field to full_name. Replace symtab->filename refererence by
10580 symtab_to_fullname call.
10581 (tui_show_symtab_source): Rename parameter to fullname. Change
10582 tui_locator_element field to full_name.
10583 * tui/tui-stack.c: Include source.h.
10584 (tui_set_locator_filename): Rename the declaration to ...
10585 (tui_set_locator_fullname): ... here. Rename its parameter to
10586 fullname, updates its comment.
10587 (tui_set_locator_info): Rename its parameter to fullname.
10588 (tui_set_locator_filename): Rename the definition to ...
10589 (tui_set_locator_fullname): ... here. Rename its parameter to
10590 fullname, updates its comment. Change tui_locator_element field to
10591 full_name.
10592 (tui_set_locator_info): Rename its parameter to fullname.
10593 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10594 (tui_update_locator_filename): Rename to ...
10595 (tui_update_locator_fullname): ... here. Rename callee to
10596 tui_set_locator_fullname.
10597 (tui_show_frame_info): Replace symtab->filename refererence by
10598 symtab_to_fullname call.
10599 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10600 (tui_update_locator_fullname): ... here.
10601 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10602 tui_update_locator_fullname. Replace symtab->filename refererence by
10603 symtab_to_fullname call.
10604 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10605 Rename the callee to tui_update_locator_fullname.
10606 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10607
10608 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10609
10610 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10611 by symtab_to_filename_for_display calls.
10612 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10613 (clear_command): New variable sal_fullname, initialize it. Replace
10614 compare_filenames_for_search by filename_cmp with sal_fullname.
10615 (say_where, update_static_tracepoint): Replace symtab->filename
10616 refererences by symtab_to_filename_for_display calls.
10617 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10618 Likewise.
10619 * dwarf2read.c: Include source.h.
10620 (fixup_go_packaging): Replace symtab->filename refererences by
10621 symtab_to_filename_for_display calls.
10622 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10623 Replace symtab->filename refererences by symtab_to_filename_for_display
10624 calls.
10625 (create_sals_line_offset, convert_linespec_to_sals): New variable
10626 fullname, initialize it, replace symtab->filename reference by the
10627 variable.
10628 * linux-fork.c: Include source.h.
10629 (info_checkpoints_command): Replace symtab->filename refererences by
10630 symtab_to_filename_for_display calls.
10631 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10632 by symtab_to_filename_for_display calls.
10633 * mdebugread.c: Include source.h.
10634 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10635 symtab_to_filename_for_display calls.
10636 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10637 (mi_cmd_file_list_exec_source_files): Likewise.
10638 * printcmd.c: Include source.h.
10639 (build_address_symbolic): Replace symtab->filename refererences by
10640 symtab_to_filename_for_display calls.
10641 * psymtab.c (partial_map_symtabs_matching_filename)
10642 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10643 with psymtab_to_fullname.
10644 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10645 by symtab_to_filename_for_display calls.
10646 (stpy_get_filename): New variable filename, initialize it, use instead
10647 of symtab->filename refererences.
10648 (salpy_str): Make variable filename const char *. Replace
10649 symtab->filename refererences by symtab_to_filename_for_display calls.
10650 * skip.c: Include source.h and filenames.h.
10651 (skip_file_command): Remove const from the symtab variable. Replace
10652 symtab->filename refererences by symtab_to_fullname call.
10653 (function_name_is_marked_for_skip): New variables searched_for_fullname
10654 and fullname. Use them to search also with symtab's fullname.
10655 * source.c (find_source_lines): Replace symtab->filename refererences
10656 by symtab_to_filename_for_display calls.
10657 (print_source_lines_base): New variable filename, use it instead of
10658 symtab->filename. Replace symtab->filename refererences by
10659 symtab_to_filename_for_display calls.
10660 (line_info, forward_search_command): Replace symtab->filename
10661 refererences by symtab_to_filename_for_display calls.
10662 (reverse_search_command): Replace symtab->filename refererences by
10663 symtab_to_filename_for_display calls. New variable filename for it.
10664 * stack.c (frame_info): Likewise.
10665 * symmisc.c: Include source.h.
10666 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10667 (maintenance_info_symtabs): Replace symtab->filename refererences by
10668 symtab_to_filename_for_display calls.
10669 * symtab.c (iterate_over_some_symtabs): Call
10670 compare_filenames_for_search also with symtab_to_fullname.
10671 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10672 symtab->filename refererences by symtab_to_filename_for_display calls.
10673 (find_line_symtab): Replace symtab->filename refererences by
10674 symtab_to_filename_for_display calls.
10675 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10676 (print_symbol_info): Make the last parameter const char *. New
10677 variable s_filename. Use it in the function.
10678 (symtab_symbol_info): Make the last_filename variable const char *.
10679 Replace symtab->filename refererences by symtab_to_filename_for_display
10680 calls.
10681 (rbreak_command): New variable fullname. Use it. Replace
10682 symtab->filename refererence by symtab_to_filename_for_display call.
10683 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10684 (print_one_static_tracepoint_marker): Replace symtab->filename
10685 refererences by symtab_to_filename_for_display calls.
10686 * tui/tui-source.c (tui_set_source_content): New variables filename and
10687 s_filename. Replace symtab->filename refererences by this variable.
10688 Replace other symtab->filename refererences by
10689 symtab_to_filename_for_display calls.
10690
10691 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10692 Jan Kratochvil <jan.kratochvil@redhat.com>
10693
10694 Add a new variable that controls a way in which filenames are
10695 displayed.
10696 * NEWS (set filename-display): New entry.
10697 * source.c (filename_display_basename, filename_display_relative)
10698 (filename_display_absolute, filename_display_kind_names)
10699 (filename_display_string, show_filename_display_string)
10700 (symtab_to_filename_for_display): New.
10701 (_initialize_source): Added initialization of 'filename-display'
10702 variable.
10703 * source.h (symtab_to_filename_for_display): Added declaration.
10704 * stack.c (print_frame): Added new variable and calling of a new
10705 function and condition with this variable. Changed third argument of
10706 calling of a function.
10707
10708 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10709
10710 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10711 Rename field reference filename to fullname.
10712 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10713 fullname. New comment for it.
10714 * tui/tui-source.c (tui_set_source_content): Rename field reference
10715 filename to fullname. Initialize field by symtab_to_fullname now.
10716 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10717 reference filename to fullname. Use symtab_to_fullname during
10718 comparison.
10719
10720 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10721
10722 Code cleanup.
10723 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10724 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10725 filename to fullname. Rename variable this_name to this_fullname.
10726 Lowercase FILENAME_CMP call.
10727 (dw2_find_symbol_file): New comment for the returned string.
10728 (dwarf2_gdb_index_functions): Rename the function to
10729 dw2_expand_symtabs_with_fullname.
10730 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10731 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10732 fullname.
10733 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10734 * symfile.h (struct quick_symbol_functions): Rename field
10735 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10736 parameter filename to fullname. Document returned string meaning for
10737 find_symbol_file.
10738 * symtab.c (find_line_symtab): Rename the called function to
10739 expand_symtabs_with_fullname.
10740
10741 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10742
10743 Code cleanup.
10744 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10745 call of filename_cmp with compare_filenames_for_search.
10746 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10747 is_abs, unify the call of FILENAME_CMP with
10748 compare_filenames_for_search. New gdb_asserts for real_path and name.
10749 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10750 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10751 * symfile.h (struct quick_symbol_functions): Extend the comment for
10752 map_symtabs_matching_filename.
10753 * symtab.c (compare_filenames_for_search): Remove the function comment
10754 relative path requirement. Handle absolute filenames, with a comment.
10755 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10756 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10757 real_path and name. Unify the call of compare_filenames_for_search
10758 with FILENAME_CMP.
10759 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10760
10761 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10762
10763 Code cleanup.
10764 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10765 source_file references by symtab field references. Remove variables
10766 sal and fullname.
10767 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10768 (clear_command, say_where): Replace bp_location field source_file
10769 references by symtab field references.
10770 (bp_location_dtor): Remove the source_file reference.
10771 (update_static_tracepoint): Replace bp_location field source_file
10772 references by symtab field references.
10773 (breakpoint_free_objfile): New function.
10774 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10775 Replace the field source_file by field symtab, extend its comment.
10776 (breakpoint_free_objfile): New declaration.
10777 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10778 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10779 field source_file references by symtab field references.
10780
10781 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10782
10783 Replace xfullpath calls by gdb_realpath calls.
10784 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10785 function comment.
10786 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10787 Remove it from the iterate_over_some_symtabs call.
10788 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10789 Remove it from the dw2_map_expand_apply calls, remove a block handling
10790 it.
10791 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10792 Remove it from the iterate_over_some_symtabs call.
10793 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10794 Remove it from the partial_map_expand_apply calls, remove a block
10795 handling it. Drop gdb_realpath call and cleanups from the real_path
10796 handling.
10797 * source.c (openp): Drop the comment part about xfullpath. Replace
10798 xfullpath calls by gdb_realpath calls.
10799 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10800 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10801 from method map_symtabs_matching_filename and its comment.
10802 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10803 gdb_realpath call.
10804 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10805 remove it also from the function comment, remove a block handling it.
10806 Drop gdb_realpath call and cleanups from the real_path handling.
10807 (iterate_over_symtabs): Drop variable full_path and its use.
10808 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10809 * utils.c (xfullpath): Remove.
10810 * utils.h (xfullpath): Remove.
10811
10812 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10813
10814 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10815 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10816 (ALLDEPFILES): Add ppc64-tdep.c.
10817 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10818 ppc64-tdep.o to gdb_target_obs.
10819 * ppc64-tdep.h: New file.
10820 * ppc64-tdep.c: New file.
10821 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10822 ppc-linux-tdep.c to here.
10823 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10824 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10825 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10826 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10827 from ppc-linux-tdep.c to here.
10828 (ppc64_convert_from_func_ptr_addr): Rename from
10829 ppc64_linux_convert_from_func_ptr_addr to
10830 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10831 here.
10832 * rs6000-tdep.c:
10833 (read_insn): Move from ppc-linux-tdep.c to here.
10834 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10835 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10836 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10837 Removed above functions.
10838 (ppc_linux_init_abi): Adjust.
10839
10840 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10841
10842 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10843
10844 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10845
10846 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10847
10848 2013-02-01 Pedro Alves <palves@redhat.com>
10849
10850 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10851 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10852
10853 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10854
10855 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10856 files with no separate debug info.
10857 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10858 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10859 only for files with no separate debug info.
10860
10861 2013-01-31 Tom Tromey <tromey@redhat.com>
10862
10863 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10864 change type.
10865 (struct jit_program_space_data): Rename from jit_inferior_data.
10866 Update comments.
10867 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10868 Change return type. Attach data to program space.
10869 (jit_program_space_data_cleanup): Rename from
10870 jit_inferior_data_cleanup; change argument type.
10871 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10872 change type.
10873 (jit_register_code): Update.
10874 (jit_update_inferior_cache): Remove.
10875 (jit_breakpoint_deleted): Get jit data from the location's program
10876 space.
10877 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10878 'ps_data', change type.
10879 (jit_inferior_init, jit_breakpoint_re_set_internal)
10880 (jit_event_handler): Update.
10881 (free_objfile_data): Get data from objfile's program space.
10882 (_initialize_jit): Update.
10883
10884 2013-01-31 Tom Tromey <tromey@redhat.com>
10885
10886 PR gdb/13987:
10887 * jit.c (struct jit_inferior_data) <cached_code_address,
10888 jit_breakpoint>: New fields.
10889 (jit_breakpoint_re_set_internal): Fix logging. Only create
10890 breakpoint if cached address has changed.
10891 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10892 functions.
10893 (_initialize_jit): Register breakpoint deleted observer.
10894
10895 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10896
10897 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10898 (save_infcall_suspend_state): Ifdef out unused inf.
10899 (restore_infcall_suspend_state): Ifdef out unused inf.
10900 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10901 (jit_frame_sniffer): Remove unused inf_data.
10902
10903 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10904
10905 * c-exp.y (classify_inner_name): Remove unused type.
10906 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10907 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10908 need_escape.
10909 (c_get_string): Remove unused kind.
10910 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10911
10912 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10913
10914 * charset.c (intermediate_encoding): Remove unused i.
10915 * completer.c (signal_completer): Remove unused i.
10916 * continuations.c (discard_my_continuations_1): Remove unused
10917 continuation_ptr.
10918 * corelow.c (core_close): Remove unuseD name.
10919 (get_core_siginfo): Remove unused pid.
10920 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10921 i, cps.
10922 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10923 (loclist_describe_location): Remove unused first.
10924 * event-top.c (command_line_handler): Remove unused got_eof.
10925 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10926 (resize_section_table): Remove unused old_value.
10927 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10928 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10929 * i386-tdep.c (i386_process_record): Remove unused rex.
10930 * infcmd.c (get_return_value): Remove unused uiout.
10931 * jv-lang.c (type_from_class): Remove unused is_array.
10932 * jv-valprint.c (java_val_print): Remove unused i.
10933 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10934 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10935 * m2-typeprint.c (m2_print_type): Remove unused code.
10936 * macroexp.c (get_character_constant): Remove unused body_start.
10937 (macro_stringify): Remove unused result.
10938 * objc-lang.c (find_methods): Remove unused gdbarch.
10939 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10940 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10941 * stack.c (print_frame_args): Remove unused summary.
10942 * thread.c (thread_apply_command): Remove unused p.
10943 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10944 * valops.c (search_struct_method): Remove unused skip.
10945 * valprint.c (generic_val_print): Remove unused byte_order.
10946 * varobj.c (varobj_update): Remove unused changed.
10947 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10948 (alias_command): Remove unused c.
10949 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10950 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10951 format.
10952 (mi_cmd_data_write_memory): Remove unused word_format.
10953 (mi_cmd_data_write_memory_bytes): Remove unused r.
10954 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10955 p_start, p_end.
10956 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10957 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10958 line_width.
10959
10960 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10961
10962 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10963 * symtab.c (iterate_over_symtabs): Remove unused s.
10964 (find_pc_sect_symtab): Remove unused pspAce.
10965 (find_pc_sect_line): Remove unused alt_symtab.
10966 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10967 (completion_list_add_name): Remove unused newsize.
10968
10969 2013-01-31 Tom Tromey <tromey@redhat.com>
10970
10971 PR c++/14998:
10972 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10973 TYPE_CODE_FUNC.
10974
10975 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10976
10977 * target.c (target_read_string): Remove unused origlen.
10978
10979 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10980
10981 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10982 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10983 * ax-general.c (ax_print): Remove unused is_float.
10984 * blockframe.c (block_innermost_frame): Remove unused start, end.
10985 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10986
10987 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10988
10989 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10990 (svr4_read_so_list): Remove unused lmo.
10991 * solib-target.c (solib_target_relocate_section_addresses): Remove
10992 unused flags.
10993
10994 2013-01-30 Tom Tromey <tromey@redhat.com>
10995
10996 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10997
10998 2013-01-30 Tom Tromey <tromey@redhat.com>
10999
11000 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11001 * utils.c (gnu_debuglink_crc32): Remove.
11002 * utils.h (gnu_debuglink_crc32): Don't declare.
11003
11004 2013-01-30 Tom Tromey <tromey@redhat.com>
11005
11006 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11007 (read_structure_type, read_enumeration_type): Remove cast.
11008
11009 2013-01-30 Tom Tromey <tromey@redhat.com>
11010
11011 * dwarf2read.c (read_namespace_type): Remove cast.
11012 (read_typedef): Likewise.
11013
11014 2013-01-29 Tom Tromey <tromey@redhat.com>
11015
11016 * dwarf2read.c (free_dwo_file): Remove assert.
11017
11018 2013-01-29 Tom Tromey <tromey@redhat.com>
11019
11020 * value.c (deprecated_set_value_modifiable): Remove.
11021 * value.h (deprecated_set_value_modifiable): Remove.
11022
11023 2013-01-28 Doug Evans <dje@google.com>
11024
11025 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11026 to addresses from dwo files.
11027
11028 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11029
11030 * valops.c (find_overload_match): Remove unused argument 'lax'.
11031 * value.h: Remove unused argument 'lax' from the declaration of
11032 find_overload_match.
11033 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11034 to find_overload_match.
11035 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11036 argument to find_overload_match.
11037
11038 2013-01-25 Tom Tromey <tromey@redhat.com>
11039
11040 * dwarf2read.c (processing_has_namespace_info): Remove.
11041 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11042 (process_die, read_func_scope, dwarf2_start_symtab)
11043 (new_symbol_full): Update.
11044
11045 2013-01-25 Tom Tromey <tromey@redhat.com>
11046
11047 * cp-namespace.c (cp_set_block_scope): Remove.
11048 * cp-support.h (cp_set_block_scope): Remove.
11049 * dbxread.c: Include block.h.
11050 (cp_set_block_scope): New function.
11051 (process_one_symbol): Update.
11052 * dwarf2read.c (read_func_scope): Use block_set_scope.
11053
11054 2013-01-25 Pedro Alves <palves@redhat.com>
11055
11056 * remote.c (add_current_inferior_and_thread): Tweak comment.
11057
11058 2013-01-25 Tom Tromey <tromey@redhat.com>
11059
11060 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11061 (cp_add_using_directive): Add 'copy_names' argument.
11062 * cp-support.h (cp_add_using_directive): Update.
11063 (struct using_direct) <import_src, import_dest, alias,
11064 declaration>: Now const.
11065 * dwarf2read.c (read_import_statement): Use obconcat.
11066 Don't copy names passed to cp_add_using_directive.
11067
11068 2013-01-25 Tom Tromey <tromey@redhat.com>
11069
11070 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11071
11072 2013-01-25 Pedro Alves <palves@redhat.com>
11073
11074 * remote.c (stop_reply_extract_thread): New.
11075 (add_current_inferior_and_thread): New parameter 'wait_status'.
11076 Handle it.
11077 (remote_start_remote): Pass wait status to
11078 add_current_inferior_and_thread.
11079 (extended_remote_run): Update comment.
11080 (extended_remote_create_inferior_1): Pass wait status to
11081 add_current_inferior_and_thread.
11082
11083 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11084 Ulrich Weigand <uweigand@de.ibm.com>
11085
11086 * valarith.c (value_vector_widen): New function for replicating a
11087 scalar into a vector.
11088 (value_binop): Use value_vector_widen to widen scalar to vector
11089 rather than casting, this better matches gcc C behaviour.
11090 * valops.c (value_casst): Update logic for casting between vector
11091 types, and for casting from scalar to vector, try to match gcc C
11092 behaviour.
11093 * value.h (value_vector_widen): Declare.
11094 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11095 function, handle special case for casting scalar to vector.
11096 (opencl_relop): Use opencl_value_cast.
11097 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11098 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11099 in order to use opencl_value_cast.
11100
11101 2013-01-25 Yao Qi <yao@codesourcery.com>
11102
11103 * event-loop.c: Include "queue.h".
11104 (gdb_event_p): New typedef.
11105 (DECLARE_QUEUE_P): Use.
11106 (DEFINE_QUEUE_P): Use.
11107 (async_queue_event): Remove.
11108 (gdb_event_xfree): New.
11109 (initialize_event_loop): New.
11110 (process_event): Use QUEUE macros.
11111 (event_queue): Remove.
11112 (gdb_wait_for_event): Caller update.
11113 (check_async_event_handlers): Likewise.
11114 (poll_timers): Likewise.
11115 * event-loop.h (initialize_event_loop): Declare.
11116 * event-loop.c (gdb_event_xfree): New.
11117 * top.c (gdb_init): Call initialize_event_loop.
11118
11119 2013-01-25 Yao Qi <yao@codesourcery.com>
11120
11121 * event-loop.c (async_queue_event): Remove one parameter
11122 'position'. Remove code handling 'position' == TAIL.
11123 (gdb_wait_for_event): Caller update.
11124 (check_async_event_handlers): Caller update.
11125 (poll_timers): Caller update.
11126 * event-loop.h (enum queue_position): Remove.
11127
11128 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11129
11130 * MAINTAINERS: Update my email.
11131
11132 2013-01-25 Yao Qi <yao@codesourcery.com>
11133
11134 * main.c (print_gdb_help): Remove "--epoch" from the help
11135 message.
11136
11137 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11138
11139 * symtab.c (skip_prologue_using_sal): Consider a file
11140 change the same as an increased line number
11141
11142 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11143
11144 * MAINTAINERS (Write After Approval): Add myself to the list.
11145
11146 2013-01-24 Tom Tromey <tromey@redhat.com>
11147
11148 * ada-lang.h (ada_decode_symbol): Make return type const.
11149 * ada-lang.c (ada_decode_symbol): Likewise.
11150
11151 2013-01-23 Doug Evans <dje@google.com>
11152
11153 * linespec.c (find_linespec_symbols): Make static.
11154
11155 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11156
11157 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11158 type on float conversion for complex type.
11159
11160 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11161
11162 Add a new class gdb.Architecture which exposes GDB's
11163 internal representation of architecture via GDB Python API.
11164 * Makefile.in: Add entries corresponding to the new file
11165 python/py-arch.c.
11166 * NEWS (Python Scripting): Add entries for the new class
11167 gdb.Architecture and the new method gdb.Frame.architecture.
11168 * python/py-arch.c: Implement gdb.Architecture class.
11169 * python/py-frame.c (frapy_arch): Implement the method
11170 gdb.Frame.architecture().
11171 (frame_object_methods): Add 'architecture' to the method table.
11172 * python/python-internal.h: Add declarations of new utility
11173 functions.
11174 * python/python.c (_initialize_python): Initialize
11175 gdb.Architecture class.
11176
11177 2013-01-23 Doug Evans <dje@google.com>
11178
11179 Work around binutils/15021.
11180 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11181 type_unit_group out of union s. All uses updated.
11182 (read_index_from_section): Watch for index version 8.
11183 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11184 an imported symtab.
11185 (write_psymtabs_to_index): Increment version number to 8.
11186
11187 2013-01-22 Pedro Alves <palves@redhat.com>
11188
11189 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11190 user-visible.
11191
11192 2013-01-22 Pedro Alves <palves@redhat.com>
11193
11194 * annotate.c (annotate_breakpoints_changed): Rename to ...
11195 (annotate_breakpoints_invalid): ... this. Make static.
11196 (breakpoint_changed): Adjust.
11197 (_initialize_annotate): Always install the observers. Install a
11198 "breakpoint_created" observer.
11199 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11200 * breakpoint.c (set_breakpoint_condition)
11201 (breakpoint_set_commands, do_map_commands_command)
11202 (init_raw_breakpoint, clear_command, set_ignore_count)
11203 (enable_breakpoint_disp): No longer call
11204 annotate_breakpoints_changed.
11205
11206 2013-01-22 Pedro Alves <palves@redhat.com>
11207
11208 * annotate.c: Include "inferior.h".
11209 (frames_invalid_emitted)
11210 (breakpoints_invalid_emitted): New globals.
11211 (async_background_execution_p): New function.
11212 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11213 emitting the annotation if it has already been emitted.
11214 (annotate_display_prompt): New function.
11215 * annotate.h (annotate_display_prompt): New declaration.
11216 * event-top.c: Include annotate.h.
11217 (display_gdb_prompt): Call annotate_display_prompt.
11218
11219 2013-01-22 Pedro Alves <palves@redhat.com>
11220
11221 * annotate.c (ignore_count_changed): Delete.
11222 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11223 (annotate_ignore_count_change): Delete.
11224 (annotate_stopped): Don't emit a delayed breakpoints-changed
11225 annotation.
11226 * annotate.h (annotate_ignore_count_change): Delete.
11227 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11228 annotate_ignore_count_change.
11229
11230 2013-01-22 Tom Tromey <tromey@redhat.com>
11231
11232 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11233 require_rvalue for a register location.
11234
11235 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11236
11237 * breakpoint.c (print_one_breakpoint_location): Add MI
11238 field 'thread-groups' when printing a breakpoint.
11239 (output_thread_groups): New function.
11240
11241 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11242
11243 * python/lib/gdb/commands/explore.py
11244 (CompoundExplorer.explore_expr): Correct the name of a method
11245 being invoked.
11246 (ExploreTypeCommand.invoke): Add a missing 'return'.
11247
11248 2013-01-21 Tom Tromey <tromey@redhat.com>
11249
11250 * gdb_obstack.h (obconcat): Move declaration here, from...
11251 * symfile.h (obconcat): ... here.
11252 * gdb_obstack.c: New file.
11253 (obconcat): Move from...
11254 * symfile.c (obconcat): ... here.
11255 * Makefile.in (SFILES): Add gdb_obstack.c.
11256 (COMMON_OBS): Add gdb_obstack.o.
11257
11258 2013-01-21 Tom Tromey <tromey@redhat.com>
11259
11260 * symfile.h (obsavestring): Don't declare.
11261 * symfile.c (obsavestring): Remove.
11262 * ada-exp.y: Use obstack_copy0, not obsavestring.
11263 * ada-lang.c: Use obstack_copy0, not obsavestring.
11264 * coffread.c: Use obstack_copy0, not obsavestring.
11265 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11266 * dbxread.c: Use obstack_copy0, not obsavestring.
11267 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11268 * jit.c: Use obstack_copy0, not obsavestring.
11269 * mdebugread.c: Use obstack_copy0, not obsavestring.
11270 * psymtab.c: Use obstack_copy0, not obsavestring.
11271 * stabsread.c: Use obstack_copy0, not obsavestring.
11272 * xcoffread.c: Use obstack_copy0, not obsavestring.
11273
11274 2013-01-21 Tom Tromey <tromey@redhat.com>
11275
11276 * dwarf2read.c (fixup_go_packaging): Save package name
11277 on objfile obstack.
11278 * gdbtypes.c (init_type): Don't copy name.
11279
11280 2013-01-21 Tom Tromey <tromey@redhat.com>
11281
11282 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11283 const.
11284 (struct attribute) <u.str>: Now const.
11285 (struct fnfieldlist) <name>: Now const.
11286 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11287 (partial_die_parent_scope): Make return type const.
11288 (partial_die_full_name, add_partial_symbol): Update.
11289 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11290 'name' const.
11291 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11292 (read_file_scope, read_func_scope, dwarf2_add_field)
11293 (dwarf2_add_member_fn, read_structure_type)
11294 (process_enumeration_scope, read_array_type, read_module_type)
11295 (read_base_type, read_subrange_type): Update.
11296 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11297 (new_symbol_full, guess_full_die_structure_name): Update.
11298 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11299 (dwarf2_name): Return const type.
11300 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11301 const.
11302
11303 2013-01-21 Tom Tromey <tromey@redhat.com>
11304
11305 * gdbtypes.c (init_type): Make 'name' const.
11306 * gdbtypes.h (init_type): Update.
11307
11308 2013-01-21 Tom Tromey <tromey@redhat.com>
11309
11310 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11311 (start_symtab): Make 'name' and 'dirname' const. Use
11312 set_last_source_file.
11313 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11314 (last_source_file): Define. Now static.
11315 (set_last_source_file, get_last_source_file): New functions.
11316 * buildsym.h (last_source_file): Don't declare.
11317 (start_symtab): Update.
11318 (set_last_source_file, get_last_source_file): Declare.
11319 * coffread.c (complete_symtab): Use set_last_source_file.
11320 (coff_end_symtab): Likewise.
11321 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11322 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11323 set_last_source_file.
11324 (process_one_symbol): Use get_last_source_file.
11325 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11326 (psymtab_to_symtab_1): Use get_last_source_file.
11327 * xcoffread.c (process_linenos): Use get_last_source_file.
11328 (complete_symtab): Use set_last_source_file.
11329 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11330 (scan_xcoff_symtab): Use set_last_source_file.
11331
11332 2013-01-21 Tom Tromey <tromey@redhat.com>
11333
11334 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11335 (symbol_set_names): Remove casts. Handle field const-ness.
11336
11337 2013-01-21 Tom Tromey <tromey@redhat.com>
11338
11339 * dwarf2read.c (new_symbol_full): Remove cast.
11340 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11341 * symtab.h (symbol_set_demangled_name): Update.
11342
11343 2013-01-21 Tom Tromey <tromey@redhat.com>
11344
11345 * main.c (captured_main): Call bfd_init.
11346
11347 2013-01-21 Tom Tromey <tromey@redhat.com>
11348
11349 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11350 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11351 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11352 * NEWS: Update.
11353
11354 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11355
11356 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11357
11358 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11359
11360 Fix gdb.fortran/common-block.exp crash in PIE mode.
11361 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11362 LOC_COMMON_BLOCK.
11363 * f-valprint.c (info_common_command_for_block): Expect
11364 LOC_COMMON_BLOCK in gdb_assert.
11365 * symtab.h (struct general_symbol_info): Update comment for the
11366 common_block member.
11367 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11368 (enum address_class): New member LOC_COMMON_BLOCK.
11369
11370 2013-01-18 David Blaikie <dblaikie@gmail.com>
11371
11372 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11373
11374 2013-01-18 Tom Tromey <tromey@redhat.com>
11375
11376 PR c++/14999:
11377 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11378 Call require_rvalue.
11379
11380 2013-01-18 Yao Qi <yao@codesourcery.com>
11381
11382 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11383 (dbx_read_symtab): New declaration.
11384 (dbx_psymtab_to_symtab): Delete.
11385 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11386 Rename parameter PST to SELF. Exchanged two parameters.
11387 (start_psymtab): Caller update.
11388 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11389 (dwarf2_read_symtab): New declaration.
11390 (dwarf2_psymtab_to_symtab): Delete.
11391 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11392 Rename parameter PST to SELF. Exchanged two parameters.
11393 (create_partial_symtab): Caller update.
11394 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11395 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11396 Rename parameter PST to SELF. Exchanged two parameters.
11397 (parse_partial_symbols, new_psymtab): Caller update.
11398 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11399 two parameters.
11400 * psymtab.c (psymtab_to_symtab): Caller update.
11401 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11402 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11403 Rename parameter PST to SELF. Exchanged two parameters.
11404 (xcoff_start_psymtab): Caller update.
11405
11406 2013-01-18 Yao Qi <yao@codesourcery.com>
11407
11408 * infrun.c (proceed): Rename local variable 'oneproc' to
11409 'force_step'.
11410
11411 2013-01-17 Doug Evans <dje@google.com>
11412
11413 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11414 (dw2_build_type_unit_groups): Delete. All uses updated.
11415
11416 * symtab.h (struct symbol_search): Add comment.
11417
11418 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11419
11420 * symtab.c (compare_filenames_for_search): New comment for
11421 HAS_DRIVE_SPEC.
11422
11423 2013-01-17 Tom Tromey <tromey@redhat.com>
11424
11425 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11426
11427 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11428
11429 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11430 initialize it by existing make_cleanup. Call new do_cleanups.
11431
11432 2013-01-17 Tom Tromey <tromey@redhat.com>
11433
11434 * cp-abi.c (cp_abi_completer): New function.
11435 (_initialize_cp_abi): Set completer for "set cp-abi".
11436
11437 2013-01-17 Tom Tromey <tromey@redhat.com>
11438
11439 * mem-break.c: Remove obsolete comment.
11440 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11441
11442 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11443
11444 * jit.c (jit_reader_load_command): Interpret the jit reader name
11445 as an absolute path if it begins with a forward slash.
11446
11447 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11448
11449 PR gdb/14550
11450
11451 * jit.c (finalize_symtab): Ensure that only the global block has a
11452 NULL superblock.
11453
11454 2013-01-17 Pedro Alves <palves@redhat.com>
11455
11456 * acinclude.m4: Include ../config/plugins.m4,
11457 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11458 * Makefile.in (aclocal_m4_deps): Update.
11459 * aclocal.m4: Renegerate.
11460
11461 2013-01-16 Doug Evans <dje@google.com>
11462
11463 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11464
11465 2013-01-16 Pedro Alves <palves@redhat.com>
11466 Tom Tromey <tromey@redhat.com>
11467
11468 PR cli/7221:
11469 * NEWS: Add "catch signal".
11470 * breakpoint.c (base_breakpoint_ops): No longer static.
11471 (bpstat_explains_signal): New function.
11472 (init_catchpoint): No longer static.
11473 (base_breakpoint_explains_signal): New function.
11474 (base_breakpoint_ops): Initialize new field.
11475 * breakpoint.h (enum bpstat_signal_value): New.
11476 (struct breakpoint_ops) <explains_signal>: New field.
11477 (bpstat_explains_signal): Remove macro, declare as function.
11478 (base_breakpoint_ops, init_catchpoint): Declare.
11479 * break-catch-sig.c: New file.
11480 * inferior.h (signal_catch_update): Declare.
11481 * infrun.c (signal_catch): New global.
11482 (handle_syscall_event): Update for change to
11483 bpstat_explains_signal.
11484 (handle_inferior_event): Likewise. Always handle random signals
11485 via bpstats.
11486 (signal_cache_update): Check signal_catch.
11487 (signal_catch_update): New function.
11488 (_initialize_infrun): Initialize signal_catch.
11489 * Makefile.in (SFILES): Add break-catch-sig.c.
11490 (COMMON_OBS): Add break-catch-sig.o.
11491
11492 2013-01-16 Tom Tromey <tromey@redhat.com>
11493
11494 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11495 (print_one_catch_solib, print_one_catch_syscall)
11496 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11497 "catch-type".
11498
11499 2013-01-16 Yao Qi <yao@codesourcery.com>
11500
11501 * printcmd.c (current_display_number): Make it static.
11502
11503 2013-01-16 Yao Qi <yao@codesourcery.com>
11504
11505 * infcmd.c (step_once): Don't check '!single_inst' as it was
11506 checked before.
11507
11508 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11509
11510 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11511
11512 2013-01-14 Tom Tromey <tromey@redhat.com>
11513
11514 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11515 set command.
11516 * command.h (add_setshow_string_noescape_cmd): Update.
11517 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11518 (complete_set_gnutarget): New function.
11519 (_initialize_core): Set the "set gnutarget" completer.
11520
11521 2013-01-14 Tom Tromey <tromey@redhat.com>
11522
11523 PR symtab/14442:
11524 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11525 (c_type_print_modifier): Likewise.
11526 * dwarf2read.c (read_tag_restrict_type): New function.
11527 (read_type_die_1): Handle DW_TAG_restrict_type.
11528 * gdbtypes.c (make_restrict_type): New function.
11529 (recursive_dump_type): Handle TYPE_RESTRICT.
11530 * gdbtypes.h (enum type_flag_values): Renumber.
11531 (enum type_instance_flag_value): Add
11532 TYPE_INSTANCE_FLAG_RESTRICT.
11533 (TYPE_RESTRICT): New macro.
11534 (make_restrict_type): Declare.
11535
11536 2013-01-14 Tom Tromey <tromey@redhat.com>
11537
11538 PR symtab/14931:
11539 * psymtab.c (struct psymtab_state): New.
11540 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11541 functions.
11542 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11543 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11544
11545 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11546 Pedro Alves <palves@redhat.com>
11547
11548 PR remote/14786
11549
11550 * remote.c (remote_threads_info): Make a copy of the reply from
11551 qfThreadInfo and use that instead of rs->buf.
11552
11553 2013-01-14 Yao Qi <yao@codesourcery.com>
11554
11555 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11556 (dbx_psymtab_to_symtab): Likewise.
11557 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11558 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11559 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11560
11561 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11562
11563 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11564 make_cleanup_restore_current_language. Call set_language. Move
11565 OLD_CHAIN and INNER_CHAIN cleanups.
11566 * utils.c (do_restore_current_language)
11567 (make_cleanup_restore_current_language): New functions.
11568 * utils.h (make_cleanup_restore_current_language): New declaration.
11569
11570 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11571
11572 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11573 non-existing files.
11574
11575 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11576 non-existing files if FILENAME is already absolute.
11577
11578 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11579
11580 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11581 fputs_filtered. Append trailing newline.
11582
11583 2013-01-11 Yao Qi <yao@codesourcery.com>
11584 Stan Shebs <stan@codesourcery.com>
11585
11586 * psymtab.c (init_psymbol_list): Clarify the comment.
11587
11588 2013-01-11 Yao Qi <yao@codesourcery.com>
11589
11590 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11591 (update_dprintf_command_list): Assert that 'printf_line' is
11592 non-null. Remove condition check.
11593
11594 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11595
11596 Code cleanup.
11597 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11598 type const char *.
11599 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11600 const char *.
11601 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11602
11603 2013-01-09 Anthony Green <green@moxielogic.com>
11604
11605 * cp-abi.c (cplus_print_vtable): Don't return value from void
11606 function.
11607 * ada-lang.c (re_set_catch_assert): Ditto.
11608
11609 2013-01-09 Doug Evans <dje@google.com>
11610
11611 * symfile.h (quick_symbol_functions): Delete member
11612 pre_expand_symtabs_matching. All uses removed.
11613 * dwarf2read.c (dw2_lookup_symbol): Implement.
11614 (dw2_do_expand_symtabs_matching): Delete.
11615 (dw2_pre_expand_symtabs_matching): Delete.
11616 (struct dw2_symtab_iterator): New type.
11617 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11618 (dw2_expand_symtabs_for_function): Rewrite.
11619 (dwarf2_gdb_index_functions): Update.
11620 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11621 (psym_functions): Update.
11622
11623 2013-01-09 Tom Tromey <tromey@redhat.com>
11624
11625 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11626 * configure: Rebuild.
11627 * configure.ac: Add somread.o to the build if BFD has SOM
11628 support.
11629 * somread.c: Include som/aout.h, not syms.h.
11630 (som_symtab_read): Use som_external_symbol_dictionary_record.
11631 Unpack records manually.
11632 (_initialize_somread): Declare.
11633
11634 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11635
11636 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11637 Cast return_address to 64bits.
11638
11639 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11640
11641 * printcmd.c: Remove define of function output_command.
11642 * tracepoint.c: Remove extern of function output_command.
11643 * valprint.h: (output_command): New extern.
11644
11645 2013-01-07 Tom Tromey <tromey@redhat.com>
11646
11647 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11648 Remove.
11649 (objc_language_defn): Use c_printchar, c_printstr,
11650 c_emit_char.
11651
11652 2013-01-07 Tom Tromey <tromey@redhat.com>
11653
11654 PR cli/7719:
11655 * NEWS: Update.
11656 * ada-valprint.c (printstr, print_field_values): Remove
11657 "inspect_it" code.
11658 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11659 code.
11660 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11661 code.
11662 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11663 * main.c (captured_main): Remove "epoch" argument.
11664 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11665 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11666 * p-valprint.c (pascal_object_print_value_fields): Remove
11667 "inspect_it" code.
11668 * printcmd.c (print_command_1): Remove 'inspect' argument.
11669 (print_command, call_command): Update.
11670 (inspect_command): Remove.
11671 (_initialize_printcmd): Make "inspect" an alias for "print".
11672 * top.c (epoch_interface): Remove.
11673 * top.h (epoch_interface): Remove.
11674 * valprint.c (user_print_options): Update.
11675 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11676 * valprint.h (struct value_print_options) <inspect_it>: Remove
11677 field.
11678
11679 2013-01-04 Tom Tromey <tromey@redhat.com>
11680
11681 * valprint.h (read_string): Add 'extern'.
11682
11683 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11684
11685 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11686 used to decide whether to define darwin_read_dyld_info or not.
11687
11688 2013-01-03 Pierre Muller <muller@sourceware.org>
11689
11690 * main.c (relocate_gdb_directory): Avoid calling stat function
11691 if DIR is empty.
11692
11693 2013-01-03 Yao Qi <yao@codesourcery.com>
11694
11695 * psymtab.c (fixup_psymbol_section): Update declaration.
11696 (fixup_psymbol_section): Remove code returning value.
11697
11698 2013-01-03 Yao Qi <yao@codesourcery.com>
11699
11700 * symtab.h: Remove some out of date comments.
11701 (enum exception_event_kind): Move it ...
11702 * breakpoint.c: ... here.
11703
11704 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11705
11706 PR gdb/14405
11707 * darwin-nat.c (darwin_read_dyld_info): Only build if
11708 TASK_DYLD_INFO_COUNT is defined.
11709 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11710 TASK_DYLD_INFO_COUNT is defined.
11711
11712 2013-01-02 Tom Tromey <tromey@redhat.com>
11713
11714 * symfile.h (struct ecoff_debug_hack): Remove.
11715 * objfiles.c: Don't include mdebugread.h.
11716
11717 2013-01-02 Tom Tromey <tromey@redhat.com>
11718
11719 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11720 * configure.ac: Check for Mach-O support in BFD. Update
11721 CONFIG_OBS.
11722 * configure: Rebuild.
11723
11724 2013-01-02 Tom Tromey <tromey@redhat.com>
11725
11726 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11727 * configure.ac: Use GDB_AC_CHECK_BFD.
11728 * configure: Rebuild.
11729
11730 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11731
11732 * MAINTAINERS: Update my email.
11733
11734 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11735
11736 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11737
11738 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11739
11740 * rs6000-nat.c (bss_data_overlap): New function.
11741 (vmap_symtab): Use it to adjust the .bss section's offset.
11742
11743 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11744
11745 Update year range in copyright notice of all files.
11746
11747 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11748
11749 * top.c (print_gdb_version): Update copyright year.
11750
11751 For older changes see ChangeLog-2012.
11752 \f
11753 Local Variables:
11754 mode: change-log
11755 left-margin: 8
11756 fill-column: 74
11757 version-control: never
11758 coding: utf-8
11759 End:
This page took 0.30221 seconds and 4 git commands to generate.