off-by-one fix for py-linetable.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-14 Tom Tromey <tromey@redhat.com>
2
3 * python/py-linetable.c (ltpy_has_line)
4 (ltpy_get_all_source_lines): Fix loop termination condition.
5
6 2013-11-14 Joel Brobecker <brobecker@adacore.com>
7
8 * mi/mi-parse.h (struct mi_parse) <language>: New field.
9 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
10 PARSE->LANGUAGE during command execution, if set.
11 * mi/mi-parse.c: Add "language.h" #include.
12 (mi_parse): Add parsing of "--language" command option.
13
14 * NEWS: Add entry mentioning the new "--language" command option.
15
16 2013-11-14 Pedro Alves <palves@redhat.com>
17 Joel Brobecker <brobecker@adacore.com>
18
19 * cli/cli-utils.h (extract_arg_const): Add declaration.
20 * cli/cli-utils.c (extract_arg_const): New function.
21 (extract_arg): Reimplement using extract_arg_const.
22
23 2013-11-14 Joel Brobecker <brobecker@adacore.com>
24
25 * language.h: Add "symtab.h" #include.
26
27 2013-11-13 Doug Evans <xdje42@gmail.com>
28
29 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
30 specific breakpoints, don't evaluate breakpoint condition if
31 different thread.
32
33 2013-11-13 Keith Seitz <keiths@redhat.com>
34
35 PR c++/7935
36 PR c++/10541
37 * cp-support.c (insepct_type): Add support for substituting
38 namespace aliases, too.
39 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
40 for DW_TAG_imported_declaration.
41 (add_partial_symbol): Likewise.
42 (process_die): Handle namespace aliases with
43 read_namespace_alias.
44 (die_needs_namespace): Add DW_TAG_imported_declaration.
45 (read_namespace_alias): New function.
46 (load_partial_dies): Load DW_TAG_imported_declaration, too.
47 (new_symbol_full): Handle DW_TAG_imported_declaration.
48
49 2013-11-13 Keith Seitz <keiths@redhat.com>
50
51 * p-exp.y (uptok): Make first parameter const.
52 (yylex): Make `tokstart' and `tokptr' const.
53 Don't copy the lexer input to a temporary buffer.
54 Make `p' const.
55 Remove const workaround for parse_escape.
56 Create a temporary buffer for a convenience variable instead
57 of doing in-place modification of the input.
58 If a match is found with a different case from the input,
59 do not change the input at all.
60 Use `tmp' to construct the resultant stoken instead of
61 `tokstart'.
62
63 2013-11-13 Doug Evans <xdje42@gmail.com>
64
65 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
66
67 2013-11-13 Joel Brobecker <brobecker@adacore.com>
68
69 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
70 entry with "ada-exceptions".
71
72 2013-11-13 Joel Brobecker <brobecker@adacore.com>
73
74 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
75 after re-initialization of OBJFILE's obstack.
76
77 2013-11-12 Doug Evans <xdje42@gmail.com>
78
79 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
80 bs->stop != 0 on entry. Update function comment. Simplify early
81 exit for frame mismatch. Reindent rest of function.
82
83 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
84
85 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
86 NULL.
87
88 2013-11-12 Doug Evans <dje@google.com>
89
90 Work around gold/15646.
91 * dwarf2read.c (read_index_from_section): Update comment.
92 (struct dw2_symtab_iterator): New member global_seen.
93 (dw2_symtab_iter_init): Initialize it.
94 (dw2_symtab_iter_next): Skip duplicate global symbols.
95 (dw2_expand_symtabs_matching): Ditto.
96
97 2013-11-12 Joel Brobecker <brobecker@adacore.com>
98
99 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
100 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
101 command.
102 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
103 (mi_cmd_info_ada_exceptions): New function.
104 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
105
106 2013-11-12 Joel Brobecker <brobecker@adacore.com>
107
108 * ada-lang.h: #include "vec.h".
109 (struct ada_exc_info): New.
110 (ada_exc_info): New typedef.
111 (DEF_VEC_O(ada_exc_info)): New vector.
112 (ada_exceptions_list): Add declaration.
113 * ada-lang.c (ada_is_exception_sym)
114 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
115 (sort_remove_dups_ada_exceptions_list)
116 (ada_exc_search_name_matches, ada_add_standard_exceptions)
117 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
118 (ada_exceptions_list_1, ada_exceptions_list)
119 (info_exceptions_command): New function.
120 (_initialize_ada_language): Add "info exception" command.
121
122 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
123
124 PR python/15629
125 * NEWS: Add linetable feature.
126 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
127 * python/py-linetable.c: New file.
128 * python/py-symtab.c (stpy_get_linetable): New function.
129 * python/python-internal.h (symtab_to_linetable_object): Declare.
130 (gdbpy_initialize_linetable): Ditto.
131 * python/python.c (_initialize_python): Call
132 gdbpy_initialize_linetable.
133
134 2013-11-11 Joel Brobecker <brobecker@adacore.com>
135
136 * ada-lang.c (create_ada_exception_catchpoint): Enhance
137 the documentation of fields "except_string" and "condition".
138 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
139 CONDITION on the heap before passing it to
140 create_ada_exception_catchpoint.
141 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
142 CONDITION.
143
144 2013-11-11 Tom Tromey <tromey@redhat.com>
145
146 * config.in, configure: Rebuild.
147 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
148
149 2013-11-11 Joel Brobecker <brobecker@adacore.com>
150
151 * remote-sim.c (gdbsim_detach): Break declaration into
152 shorter lines. No code change.
153
154 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
155
156 * remote-sim.c (gdbsim_detach): Fix prototype.
157
158 2013-11-08 Doug Evans <dje@google.com>
159
160 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
161 (create_debug_types_hash_table): Only print debugging messages for
162 each TU if dwarf2-read >= 2.
163 (process_queue): Ditto.
164 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
165 Update doc string.
166
167 2013-11-08 Tom Tromey <tromey@redhat.com>
168
169 * configure: Rebuild.
170 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
171
172 2013-11-08 Tom Tromey <tromey@redhat.com>
173
174 * configure, config.in: Rebuild.
175 * configure.ac: Remove unused configury.
176
177 2013-11-08 Tom Tromey <tromey@redhat.com>
178
179 * m32c-tdep.c: Use gdb_string.h.
180
181 2013-11-08 Tom Tromey <tromey@redhat.com>
182
183 * configure, config.in: Rebuild.
184 * configure.ac: Remove all link.h-related checks.
185
186 2013-11-08 Tom Tromey <tromey@redhat.com>
187
188 * acinclude.m4: Include common.m4.
189 * common/common.m4: New file.
190 * configure, config.in: Rebuild.
191 * configure.ac: Use GDB_AC_COMMON.
192
193 2013-11-08 Doug Evans <dje@google.com>
194
195 * NEWS: Mention that "set debug symtab-create" now accepts a
196 verbosity level.
197 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
198 to set the symtab's primary flag.
199 * jit.c (finalize_symtab): Ditto.
200 * mdebugread.c (psymtab_to_symtab_1): Ditto.
201 * symfile.c (allocate_symtab): Only print debugging messages for
202 symtab_create_debug levels 2 and higher.
203 * symtab.c (symtab_create_debug): Change type to unsigned int.
204 (set_symtab_primary): New function.
205 (_initialize_symtab): Change "set debug symtab-create" to a
206 zuinteger option.
207 * symtab.h (set_symtab_primary): Declare.
208 (symtab_create_debug): Update decl.
209
210 2013-11-08 Tom Tromey <tromey@redhat.com>
211
212 * aix-thread.c (aix_thread_detach): Update.
213 * corelow.c (core_detach): Update.
214 * darwin-nat.c (darwin_detach): Update.
215 * dec-thread.c (dec_thread_detach): Update.
216 * gnu-nat.c (gnu_detach): Update.
217 * go32-nat.c (go32_detach): Update.
218 * inf-ptrace.c (inf_ptrace_detach): Update.
219 * inf-ttrace.c (inf_ttrace_detach): Update.
220 * linux-fork.c (linux_fork_detach): Update.
221 * linux-fork.h (linux_fork_detach): Update.
222 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
223 local for const-correctness.
224 * linux-thread-db.c (thread_db_detach): Update.
225 * monitor.c (monitor_detach): Update.
226 * nto-procfs.c (procfs_detach): Update.
227 * procfs.c (procfs_detach): Update.
228 * record.c (record_detach): Update.
229 * record.h (record_detach): Update.
230 * remote-m32r-sdi.c (m32r_detach): Update.
231 * remote-mips.c (mips_detach): Update.
232 * remote-sim.c (gdbsim_detach): Update.
233 * remote.c (remote_detach_1, remote_detach)
234 (extended_remote_detach): Update.
235 * sol-thread.c (sol_thread_detach): Update.
236 * target.c (target_detach): Make "args" const.
237 (init_dummy_target): Update.
238 * target.h (struct target_ops) <to_detach>: Make argument const.
239 (target_detach): Likewise.
240 * windows-nat.c (windows_detach): Update.
241
242 2013-11-07 Doug Evans <dje@google.com>
243
244 PR 11786
245 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
246 and align fields for PT_GNU_RELRO segments.
247
248 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
249
250 PR python/15747
251 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
252
253 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
254
255 * NEWS: Document Python temporary breakpoint support.
256 * python/py-breakpoint.c (bppy_get_temporary): New function.
257 (bppy_init): New keyword: temporary. Parse it and set breakpoint
258 to temporary if True.
259
260 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
261
262 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
263 removed to allow analyzing unconditional branch instructions
264 with PC-relative offsets of zero.
265
266 2013-11-07 Yao Qi <yao@codesourcery.com>
267
268 * mi/mi-cmd-var.c: Include "language.h".
269 (mi_cmd_var_info_expression): Get language name from
270 language_defn.
271 * varobj.c (varobj_language_string): Remove.
272 (variable_language): Remove declaration.
273 (languages): Remove.
274 (varobj_get_language): Change the type of return value.
275 (variable_language): Remove.
276 * varobj.h (enum varobj_languages): Remove.
277 (varobj_language_string): Remove declaration.
278 (varobj_get_language): Update declaration.
279
280 2013-11-07 Yao Qi <yao@codesourcery.com>
281
282 * language.h (struct language_defn) <la_natural_name>: New
283 field.
284 * ada-lang.c (ada_language_defn): Initialize field
285 'la_natural_name'.
286 * c-lang.c (c_language_defn): Likewise.
287 (cplus_language_defn, asm_language_defn): Likewise.
288 * d-lang.c (d_language_defn): Likewise.
289 * f-lang.c (f_language_defn): Likewise.
290 * go-lang.c (go_language_defn): Likewise.
291 * jv-lang.c (java_language_defn): Likewise.
292 * language.c (unknown_language_defn ): Likewise.
293 (auto_language_defn): Likewise.
294 * m2-lang.c (m2_language_defn): Likewise.
295 * objc-lang.c (objc_language_defn): Likewise.
296 * opencl-lang.c (opencl_language_defn): Likewise.
297 * p-lang.c (pascal_language_defn): Likewise.
298
299 2013-11-07 Yao Qi <yao@codesourcery.com>
300
301 * language.c (language_str): Return const char *.
302 (add_language): Add const to 'language_names'
303 * language.h (struct language_defn) <la_name>: Add const.
304 (language_str: Update declaration.
305
306 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
307
308 * s390-linux-nat.c (s390_read_description): Consider the TE field
309 in the HWCAP for determining 'have_regset_tdb'.
310
311 2013-11-06 Will Newton <will.newton@linaro.org>
312
313 PR gdb/12866
314 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
315 values. (read_partial_die): Likewise.
316
317 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
318
319 PR cli/16122
320 * top.c (command_line_input): Unify interactivity tests to use
321 input_from_terminal_p.
322 * event-top.c (command_line_handler): Likewise.
323
324 2013-11-06 Yao Qi <yao@codesourcery.com>
325
326 * Makefile.in (check-perf): New target.
327
328 2013-11-05 Will Newton <will.newton@linaro.org>
329
330 PR gdb/7670
331 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
332 (arm_print_float_info): Likewise.
333
334 2013-11-04 Anton Blanchard <anton@samba.org>
335
336 * target.c (memory_xfer_partial): Cap write to 4KB.
337
338 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
339
340 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
341 probe scan even when the arch provides no get_longjmp_target.
342
343 2013-10-31 Pedro Alves <palves@redhat.com>
344
345 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
346 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
347 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
348 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
349 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
350 <bpstat handling>: If the bpstat chain wants the signal to be
351 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
352 GDB_SIGNAL_TRAP.
353
354 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
355
356 * breakpoint.c (update_watchpoint): Update error message and add
357 an additional error message.
358
359 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
360
361 * s390-tdep.h: Rename to...
362 * s390-linux-tdep.h: ...here.
363 * s390-tdep.c: Rename to...
364 * s390-linux-tdep.c: ...here. Adjust #include.
365 * s390-nat.c: Rename to...
366 * s390-linux-nat.c: ...here. Adjust #include.
367 * config/s390/s390.mh: Rename to...
368 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
369 s390-linux-nat.o.
370 * configure.host: Reflect host rename "s390" -> "linux".
371 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
372 * Makefile.in (ALL_TARGET_OBS): Likewise.
373 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
374 s390-linux-tdep.h.
375 (ALLDEPFILES): Reflect rename of .c files.
376
377 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
378
379 * s390-nat.c: Whitespace cleanup.
380 * s390-tdep.c: Likewise.
381 * s390-tdep.h: Remove empty line at end of file.
382
383 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
384
385 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
386 siginfo_size.
387
388 2013-10-29 Tom Tromey <tromey@redhat.com>
389
390 * utils.c (reg): Move undefinition...
391 * gdb_curses.h: ... here. Update comment to mention AIX.
392
393 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
394
395 * exec.h (add_target_sections_of_objfile): New declaration.
396 * exec.c (add_target_sections_of_objfile): New function.
397 * symfile.c (add_symbol_file_command): Update current target sections.
398 (remove_symbol_file_command): New command.
399 (symfile_free_objfile): New function.
400 (_initialize_symfile): Register observer for free_objfile events.
401 * NEWS: Add description of the remove-symbol-file command.
402 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
403 * objfiles.c (free_objfile): Notify free_objfile.
404 (is_addr_in_objfile): New function.
405 * objfiles.h (is_addr_in_objfile): New declaration.
406 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
407 events instead of solib_unloaded events.
408 (_initialize_printcmd): Register observer for free_objfile instead
409 of solib_unloaded notifications.
410 * solib.c (remove_user_added_objfile): New function.
411 (_initialize_symfile): Add remove-symbol-file.
412
413 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
414
415 * infcmd.c (default_print_one_register_info): Use val_print to
416 print all values even optimized out or unavailable ones. Don't
417 try to print a raw form of optimized out or unavailable values.
418
419 2013-10-29 Yao Qi <yao@codesourcery.com>
420
421 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
422 parameter 'arg' instead of from program_space_data.
423 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
424 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
425 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
426 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
427 * inflow.c (inflow_inferior_data_cleanup): Get data from
428 parameter 'arg' instead of inferior_data.
429 * registry.h: Add comments.
430
431 2013-10-28 Pedro Alves <palves@redhat.com>
432
433 * breakpoint.c (watchpoints_triggered)
434 <!target_stopped_data_address>: Hardcode return 1.
435
436 2013-10-28 Pedro Alves <palves@redhat.com>
437
438 * infrun.c (process_event_stop_test): Remove unnecessary scoping
439 level and reindent.
440
441 2013-10-28 Pedro Alves <palves@redhat.com>
442
443 * infrun.c (process_event_stop_test): New function, factored out
444 from handle_inferior_event.
445 (handle_inferior_event): 'process_event_stop_test' is now a
446 function instead of a goto label -- adjust.
447
448 2013-10-28 Pedro Alves <palves@redhat.com>
449
450 * infrun.c (handle_inferior_event): Move process_event_stop_test
451 goto label to the else branch of the ecs->random_signal check,
452 along with FRAME and GDBARCH re-fetching.
453
454 2013-10-28 Pedro Alves <palves@redhat.com>
455
456 * infrun.c (switch_back_to_stepped_thread): New function, factored
457 out from handle_inferior_event.
458 (handle_inferior_event): Adjust to call
459 switch_back_to_stepped_thread. Call it also at the tail of the
460 random signal handling, and return, instead of also handling
461 random signals just before the stepping tests.
462
463 2013-10-28 Pedro Alves <palves@redhat.com>
464
465 * infrun.c (clear_stop_func): Delete.
466 (handle_inferior_event): Don't call clear_stop_func and don't
467 clear 'ecs->random_signal'.
468
469 2013-10-27 Yao Qi <yao@codesourcery.com>
470
471 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
472 (varobj_create, varobj_get_path_expr): Update.
473 (varobj_value_has_mutated, varobj_update): Likewise.
474 (create_child_with_value, new_root_variable): Likewise.
475 (number_of_children, name_of_variable): Likewise.
476 (value_of_child, my_value_of_variable): Likewise.
477 (varobj_value_is_changeable_p): Likewise.
478
479 2013-10-25 Yao Qi <yao@codesourcery.com>
480
481 * language.h (struct lang_varobj_ops): Declare.
482 (struct language_defn) <la_varobj_ops>: New field.
483 * ada-lang.c: Include "varobj.h"
484 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
485 ada_varobj_ops.
486 * c-lang.c: Include "varobj.h"
487 (c_language_defn): Initialize field 'la_varobj_ops' with
488 c_varobj_ops.
489 (cplus_language_defn): Initialize field 'la_varobj_ops' with
490 cplus_varobj_ops.
491 (asm_language_defn): Initialize field 'la_varobj_ops' with
492 default_varobj_ops.
493 (minimal_language_defn): Likewise.
494 * d-lang.c (d_language_defn): Likewise.
495 * f-lang.c (f_language_defn): Likewise.
496 * go-lang.c (go_language_defn): Likewise.
497 * m2-lang.c (m2_language_defn): Likewise.
498 * objc-lang.c (objc_language_defn): Likewise.
499 * opencl-lang.c (opencl_language_defn): Likewise.
500 * p-lang.c (pascal_language_defn): Likewise.
501 * language.c (unknown_language_defn): Likewise.
502 (auto_language_defn): Likewise.
503 (local_language_defn): Likewise.
504 * jv-lang.c (java_language_defn): Initialize field
505 'la_varobj_ops' with java_varobj_ops.
506 * varobj.c (varobj_create): Update.
507 * varobj.h (default_varobj_ops): Define macro.
508
509 2013-10-25 Pedro Alves <palves@redhat.com>
510
511 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
512 static field value.
513 (cp_print_static_field): If the value is entirely optimized out,
514 print <optimized out> here.
515 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
516 static field value.
517 * p-valprint.c (pascal_object_print_static_field): If the value is
518 entirely optimized out, print <optimized out> here.
519 * valops.c (do_search_struct_field)
520 (value_struct_elt_for_reference): No longer handle a NULL static
521 field value.
522 * value.c (value_static_field): Return an optimized out value
523 instead of NULL.
524
525 2013-10-25 Yao Qi <yao@codesourcery.com>
526
527 * remote.c (remote_traceframe_info): Return early if
528 traceframe is not selected.
529
530 2013-10-25 Yao Qi <yao@codesourcery.com>
531
532 * tracepoint.c (traceframe_fun): Remove.
533 (traceframe_sal): Remove.
534 (set_traceframe_context): Add local variables.
535
536 2013-10-25 Joel Brobecker <brobecker@adacore.com>
537
538 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
539 and parameter name.
540
541 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
542
543 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
544 failure from register information collection.
545
546 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
547
548 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
549 member.
550 (linux_corefile_thread_callback): Update accordingly.
551 (linux_make_corefile_notes): Likewise.
552
553 2013-10-24 Pedro Alves <palves@redhat.com>
554
555 * NEWS (New options): Mention set/show startup-with-shell.
556 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
557 instead of 3.
558 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
559 startup-with-shell'.
560 (show_startup_with_shell): New function.
561 (_initialize_fork_child): Register the set/show startup-with-shell
562 commands.
563 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
564 * inf-ttrace.c (inf_ttrace_him): Remove comment.
565 * procfs.c (procfs_init_inferior): Remove comment.
566 * infcmd.c (startup_with_shell): New global.
567 * inferior.h (startup_with_shell): Declare global.
568 (STARTUP_WITH_SHELL): Delete.
569 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
570
571 2013-10-23 Pedro Alves <palves@redhat.com>
572
573 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
574 * common/signals.c: Include "gdb_assert.h".
575 (signals): New field 'symbol'.
576 (SET): Use the 'symbol' parameter.
577 (gdb_signal_to_symbol_string): New function.
578 * infrun.c (handle_inferior_event) <random signal>: In debug
579 output, print the random signal enum as string in addition to its
580 number.
581 * target/waitstatus.c (target_waitstatus_to_string): Print the
582 signal's enum value as string instead of the (POSIX) signal name.
583
584 2013-10-23 Gary Benson <gbenson@redhat.com>
585
586 PR 16013
587 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
588 from 32 to 18. Adjusted fscanf format string accordingly.
589 (Avoids leaving cmd unterminated.)
590 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
591 trun, retn or extra. (Avoids leaving extra unterminated.) Check
592 that local_address and remote_address will not overflow.
593 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
594 leaving dependencies unterminated. Parse size as "%u" to match
595 definition.
596
597 2013-10-22 Pedro Alves <palves@redhat.com>
598
599 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
600 set ecs->random signal.
601
602 2013-10-22 Pedro Alves <palves@redhat.com>
603
604 * infrun.c (keep_going): Update comments.
605
606 2013-10-22 Pedro Alves <palves@redhat.com>
607
608 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
609 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
610
611 2013-10-22 Pedro Alves <palves@redhat.com>
612
613 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
614 GDB_EXC_BAD_ACCESS.
615 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
616 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
617 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
618 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
619 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
620 (GDB_SIGNAL_LAST): Change description string.
621 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
622 Adjust to signal renaming.
623 * darwin-nat.c (darwin_decode_message): Likewise.
624
625 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
626
627 * MAINTAINERS (Write After Approval): Add myself to the list.
628
629 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
630
631 * breakpoint.c (update_watchpoint): If hardware watchpoints are
632 forced off, downgrade them to software watchpoints if possible,
633 and error out if not possible.
634 (watch_command_1): Move watchpoint type selection closer to
635 watchpoint creation, and extend the comments.
636
637 2013-10-18 Pedro Alves <palves@redhat.com>
638
639 PR gdb/16062
640 * infrun.c (handle_inferior_event): Keep going if we got a random
641 signal we should not stop for, instead of falling through to the
642 step tests.
643
644 2013-10-18 Yao Qi <yao@codesourcery.com>
645
646 * c-varobj.c (cplus_number_of_children): Fix indentation.
647
648 2013-10-17 Tom Tromey <tromey@redhat.com>
649
650 PR gdb/15995:
651 * printcmd.c (printcmd): Call gdb_flush.
652
653 2013-10-17 Tom Tromey <tromey@redhat.com>
654
655 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
656 (elf_locate_sections): Update.
657
658 2013-10-17 Yao Qi <yao@codesourcery.com>
659
660 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
661 * ada-varobj.c: Remove the include of ada-varobj.h.
662 (ada_varobj_get_number_of_children): Declare.
663 (ada_varobj_get_name_of_child): Make it static.
664 (ada_varobj_get_path_expr_of_child): Likewise.
665 (ada_varobj_get_value_of_child): Likewise.
666 (ada_varobj_get_type_of_child): Likewise.
667 (ada_varobj_get_value_of_array_variable): Likewise.
668 * ada-varobj.h: Remove.
669
670 2013-10-17 Yao Qi <yao@codesourcery.com>
671
672 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
673 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
674 * ada-varobj.c: Include "varobj.h".
675 (ada_number_of_children): New. Moved from varobj.c.
676 (ada_name_of_variable, ada_name_of_child): Likewise.
677 (ada_path_expr_of_child, ada_value_of_child): Likewise.
678 (ada_type_of_child, ada_value_of_variable): Likewise.
679 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
680 (ada_varobj_ops): New.
681 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
682 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
683 * gdbtypes.h (get_target_type): Declare.
684 * varobj.c: Remove the inclusion of "ada-varobj.h" and
685 "ada-lang.h".
686 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
687 (ANONYMOUS_UNION_NAME): Likewise.
688 (get_type, get_value_type, get_target_type): Remove declarations.
689 (value_get_print_value, varobj_value_get_print_value): Likewise.
690 (c_number_of_children, c_name_of_variable): Likewise.
691 (c_name_of_child, c_path_expr_of_child): Likewise.
692 (c_value_of_child, c_type_of_child): Likewise.
693 (c_value_of_variable, cplus_number_of_children): Likewise.
694 (cplus_class_num_children, cplus_name_of_variable): Likewise.
695 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
696 (cplus_value_of_child, cplus_type_of_child): Likewise.
697 (cplus_value_of_variable, java_number_of_children): Likewise.
698 (java_name_of_variable, java_name_of_child): Likewise.
699 (java_path_expr_of_child, java_value_of_child): Likewise.
700 (java_type_of_child, java_value_of_variable): Likewise.
701 (ada_number_of_children, ada_name_of_variable): Likewise.
702 (ada_name_of_child, ada_path_expr_of_child): Likewise.
703 (ada_value_of_child, ada_type_of_child): Likewise.
704 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
705 (ada_value_has_mutated): Likewise.
706 (struct language_specific): Move it to varobj.h.
707 (CPLUS_FAKE_CHILD): Move it to varobj.h.
708 (restrict_range): Rename it varobj_restrict_range. Make it extern.
709 Callers update.
710 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
711 Make it extern.
712 (is_anonymous_child): Move it to c-varobj.c and rename to
713 varobj_is_anonymous_child. Caller update.
714 (get_type): Move it to c-varobj.c.
715 (get_value_type): Rename it varobj_get_value_type. Make it
716 extern.
717 (get_target_type): Move it gdbtypes.c.
718 (varobj_formatted_print_options): New function.
719 (value_get_print_value): Rename it to
720 varobj_value_get_print_value and make it extern.
721 (varobj_value_is_changeable_p): Make it extern.
722 (adjust_value_for_child_access): Move it to c-varobj.c.
723 (default_value_is_changeable_p): Rename it to
724 varobj_default_value_is_changeable_p. Make it extern.
725 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
726 (c_name_of_child, c_path_expr_of_child): Likewise.
727 (c_value_of_child, c_type_of_child): Likewise.
728 (c_value_of_variable, cplus_number_of_children): Likewise.
729 (cplus_class_num_children, cplus_name_of_variable): Likewise.
730 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
731 (cplus_value_of_child, cplus_type_of_child): Likewise.
732 (cplus_value_of_variable): Likewise.
733 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
734 (java_name_of_child, java_path_expr_of_child): Likewise.
735 (java_value_of_child, java_type_of_child): Likewise.
736 (java_value_of_variable): Likewise.
737 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
738 (ada_name_of_child, ada_path_expr_of_child): Likewise.
739 (ada_value_of_child, ada_type_of_child): Likewise.
740 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
741 (ada_value_has_mutated): Likewise.
742 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
743 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
744 (c_varobj_ops, cplus_varobj_ops): Declare.
745 (java_varobj_ops, ada_varobj_ops): Declare.
746 (varobj_default_value_is_changeable_p): Declare.
747 (varobj_value_is_changeable_p): Declare.
748 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
749 (varobj_get_path_expr_parent): Declare.
750 (varobj_value_get_print_value): Declare.
751 (varobj_formatted_print_options): Declare.
752 (varobj_restrict_range): Declare.
753
754 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
755
756 * target/waitstatus.h (target_waitkind): Remove spurious
757 character from the comments.
758
759 2013-10-17 Joel Brobecker <brobecker@adacore.com>
760
761 * gdbarch.sh (get_longjmp_target): Add method documentation.
762 * gdbarch.h: Regenerate.
763
764 2013-10-16 Tom Tromey <tromey@redhat.com>
765
766 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
767 label.
768
769 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
770
771 * gcore.in: Call GDB using the full path to the gcore script.
772 Error out if the GDB binary is not found.
773
774 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
775
776 PR gdb/16014
777 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
778 sizeof.
779
780 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
781
782 PR gdb/16042
783 * target.c (target_disable_btrace): Fix invalid return value for
784 void function.
785 (target_teardown_btrace): Likewise.
786
787 2013-10-14 Yao Qi <yao@codesourcery.com>
788
789 * varobj.c (struct varobj): Move most of the fields to
790 varobj.h.
791 (struct varobj_dynamic): New struct.
792 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
793 (varobj_has_more): Likewise.
794 (dynamic_varobj_has_child_method): Likewise.
795 (update_dynamic_varobj_children): Likewise.
796 (varobj_get_num_children): Likewise.
797 (varobj_list_children, varobj_pretty_printed_p): Likewise.
798 (install_new_value_visualizer): Likewise.
799 (install_new_value_visualizer, install_new_value): Likewise.
800 (varobj_update, new_variable, free_variable): Likewise.
801 (my_value_of_variable, value_get_print_value): Likewise.
802 (install_visualizer): Change the type of parameter 'var' to
803 'struct varobjd_dynamic *'. Callers update.
804 * varobj.h (struct varobj): Moved from varobj.c.
805 (struct varobj) <dynamic>: New field.
806
807 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
808
809 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
810 as the preferred name of r30.
811 * nios2-linux-tdep.c (reg_offsets): Likewise.
812 * features/nios2-cpu.xml: Likewise.
813 * features/nios2-linux.c: Regenerated.
814 * features/nios2.c: Regenerated.
815 * regformats/nios2-linux.dat: Regenerated.
816
817 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
818
819 Canonicalize directories for EXEC_FILENAME.
820 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
821 exec_filename.
822 * utils.c (gdb_realpath_keepfile): New function.
823 * utils.h (gdb_realpath_keepfile): New declaration.
824
825 2013-10-11 Doug Evans <dje@google.com>
826
827 * Makefile.in (GDBFLAGS): New variable.
828 (run): New rule.
829
830 2013-10-11 Joel Brobecker <brobecker@adacore.com>
831
832 * NEWS: Add entry documenting the new "-catch-assert" and
833 "-catch-exception" GDB/MI commands.
834
835 2013-10-11 Joel Brobecker <brobecker@adacore.com>
836
837 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
838 "enabled".
839 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
840 "enabled". Set B->ENABLE_STATE accordingly.
841 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
842 ada-lang.c.
843 (create_ada_exception_catchpoint): Add declaration.
844 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
845 (create_ada_exception_catchpoint): Make non-static. Add new
846 parameter "disabled". Use it in call to
847 init_ada_exception_breakpoint.
848 (catch_ada_exception_command): Add parameter "enabled" in call
849 to create_ada_exception_catchpoint.
850 (catch_assert_command): Likewise.
851
852 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
853 Add declarations.
854 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
855 "catch-exception" commands.
856 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
857 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
858
859 2013-10-11 Joel Brobecker <brobecker@adacore.com>
860
861 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
862 "enum exception_catchpoint_kind". Replace the "ex_" prefix
863 of all its enumerates with "ada_". Update the rest of this
864 file throughout.
865
866 2013-10-11 Joel Brobecker <brobecker@adacore.com>
867
868 * ada-lang.c (ada_decode_exception_location): Delete.
869 (create_ada_exception_catchpoint): Remove arguments "sal",
870 "addr_string" and "ops". Add argument "ex_kind" instead.
871 Adjust implementation accordingly, calling ada_exception_sal
872 to get the entities it no longer gets passed as arguments.
873 Document the function's arguments.
874 (catch_ada_exception_command): Use catch_ada_exception_command_split
875 instead of ada_decode_exception_location, and update call to
876 create_ada_exception_catchpoint.
877 (catch_ada_assert_command_split): Renames
878 ada_decode_assert_location. Remove parameters "addr_string" and
879 "ops", and now returns void. Adjust implementation accordingly.
880 Update the function documentation.
881 (catch_assert_command): Use catch_ada_assert_command_split
882 instead of ada_decode_assert_location. Update call to
883 create_ada_exception_catchpoint.
884
885 2013-10-11 Joel Brobecker <brobecker@adacore.com>
886
887 * utils.h (perror_warning_with_name): Add declaration.
888 * utils.c (perror_warning_with_name): New function.
889 * cli/cli-cmds.c (source_script_with_search): Add call to
890 perror_warning_with_name if from_tty is nul.
891
892 2013-10-11 Joel Brobecker <brobecker@adacore.com>
893
894 * utils.c (perror_string): New function, extracted out of
895 throw_perror_with_name.
896 (throw_perror_with_name): Rework to use perror_string.
897
898 2013-10-11 Yao Qi <yao@codesourcery.com>
899
900 * remote.c (discard_pending_stop_replies_in_queue): Update
901 declaration.
902 (struct stop_reply) <rs>: New field.
903 (remove_stop_reply_of_remote_state): New function.
904 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
905 Callers update. Pass remove_stop_reply_of_remote_state to
906 QUEUE_iterate.
907 (remote_parse_stop_reply): Initialize field 'rs'.
908
909 2013-10-10 Will Newton <will.newton@linaro.org>
910
911 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
912 linux_init_abi.
913
914 2013-10-10 Joel Brobecker <brobecker@adacore.com>
915
916 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
917 serial_baud_show_cmd.
918 (_initialize_cli_cmds): Delete the code creating the
919 "set/show remotebaud" commands.
920 * serial.c (baud_rate): Move here from top.c.
921 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
922 (_initialize_serial): Create "set/show serial baud" commands.
923 Add "set/show remotebaud" command aliases.
924 * top.c (baud_rate): Moved to serial.c.
925 * NEWS: Document the new "set/show serial baud" commands,
926 replacing "set/show remotebaud".
927
928 2013-10-09 Pedro Alves <palves@redhat.com>
929
930 * breakpoint.c (insert_bp_location): Use memory_error_message to
931 build the memory error string.
932 * c-lang.c: Include "gdbcore.h".
933 (c_get_string): Use memory_error to throw error.
934 (target_xfer_memory_error): Delete.
935 (memory_error_message): New, factored out from
936 target_xfer_memory_error.
937 (memory_error): Change parameter type to target_xfer_error.
938 Rewrite.
939 (read_memory): Use memory_error instead of
940 target_xfer_memory_error.
941 * gdbcore.h: Include "target.h".
942 (memory_error): Change parameter type to target_xfer_error.
943 (memory_error_message): Declare function.
944 * target.c (target_read_memory, target_read_stack)
945 (target_write_memory, target_write_raw_memory): Return
946 TARGET_XFER_E_IO on error. Adjust comments.
947 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
948 instead of EIO.
949 * target.h (target_read, target_insert_breakpoint)
950 (target_remove_breakpoint): Adjust comments.
951 * valprint.c (partial_memory_read): Rename parameter, and adjust
952 comment.
953 (val_print_string): Use memory_error_message to build the memory
954 error string.
955
956 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
957
958 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
959 result variable. Rename variable fopen_e_ever_failed to
960 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
961
962 2013-10-09 Pedro Alves <palves@redhat.com>
963
964 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
965 (monitor_write_memory_longlongs, monitor_write_memory_block):
966 Constify 'myaddr' parameter.
967 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
968 helper.
969 (monitor_xfer_partial): New function.
970 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
971 hook. Install a to_xfer_partial hook.
972
973 2013-10-09 Tom Tromey <tromey@redhat.com>
974
975 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
976 bfd_get_alt_debug_link_info.
977
978 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
979
980 New flag OBJF_NOT_FILENAME.
981 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
982 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
983 allocate_objfile.
984 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
985 symbol_file_add_from_bfd.
986 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
987 allocate_objfile.
988 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
989 NULL.
990 * objfiles.h (OBJF_NOT_FILENAME): New.
991
992 2013-10-08 Tom Tromey <tromey@redhat.com>
993
994 * Makefile.in (SFILES): Add build-id.c.
995 (HFILES_NO_SRCDIR): Add build-id.h.
996 * build-id.c: New file, largely from elfread.c. Modified
997 most functions.
998 * build-id.h: New file.
999 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1000 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1001 Search for dwz file using build-id.
1002 * elfread.c (build_id_bfd_get, build_id_verify)
1003 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1004
1005 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1006
1007 * ada-lang.c (compare_names_with_case): Renamed from
1008 compare_names, adding a new parameter "casing" and its handling.
1009 New function documentation.
1010 (compare_names): New function, implemented using
1011 compare_names_with_case.
1012
1013 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1014
1015 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1016
1017 2013-10-07 Tom Tromey <tromey@redhat.com>
1018
1019 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1020 demangled_names_hash.
1021 (free_objfile): Don't delete the demangled_names_hash.
1022 * objfiles.h (struct objfile_per_bfd_storage)
1023 <demangled_names_hash>: New field.
1024 (struct objfile) <demangled_names_hash>: Move to
1025 objfile_per_bfd_storage.
1026 * symfile.c (reread_symbols): Don't delete the
1027 demangled_names_hash.
1028 * symtab.c (create_demangled_names_hash): Update.
1029 (symbol_set_names): Update.
1030
1031 2013-10-07 Tom Tromey <tromey@redhat.com>
1032
1033 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1034 needs_relocations>: New fields.
1035 (gdb_bfd_requires_relocations): New function.
1036 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1037 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1038 the BFD needs relocations applied.
1039
1040 2013-10-07 Pedro Alves <palves@redhat.com>
1041
1042 PR breakpoints/11568
1043 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1044 the thread list" instead of "gone".
1045
1046 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1047
1048 * NEWS: Mention new convenience variable $_exitsignal.
1049 * corelow.c (core_open): Reset exit convenience variables. Set
1050 $_exitsignal to the uncaught signal which generated the corefile.
1051 * infrun.c (handle_inferior_event): Reset exit convenience
1052 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1053 (clear_exit_convenience_vars): New function.
1054 * inferior.h (clear_exit_convenience_vars): New prototype.
1055
1056 2013-10-06 Yao Qi <yao@codesourcery.com>
1057
1058 * varobj.h: Add comments to enum varobj_languages.
1059
1060 2013-10-04 Doug Evans <dje@google.com>
1061
1062 Add support for DWP file format version 2.
1063 * NEWS: Mention support for DWP file format version 2.
1064 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1065 union of asection, containing_section. New fields virtual_offset
1066 and is_virtual. Change type of readin filed from int to char.
1067 (dwo_sections, dwo_file): Tweak comments.
1068 (dwp_v2_section_ids): New enum.
1069 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1070 str_offsets, types.
1071 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1072 All uses updated.
1073 (virtual_v2_dwo_sections): New struct.
1074 (dwp_hash_table): New fields version, nr_columns. Change type of
1075 section_pool field to a union.
1076 (dwp_file): New field version.
1077 (dwarf2_has_info): Check for virtual sections.
1078 (get_containing_section): New function.
1079 (get_section_bfd_owner, get_section_bfd_section): Call it.
1080 (dwarf2_locate_sections): Update.
1081 (dwarf2_section_empty_p): Update.
1082 (dwarf2_read_section): Handle virtual sections.
1083 (locate_dwz_sections): Update.
1084 (create_dwp_hash_table): Document and handle V2 format.
1085 (locate_v1_virtual_dwo_sections): Renamed from
1086 locate_virtual_dwo_sections and update. All callers updated.
1087 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1088 Delete arg htab. Rename arg section_index to unit_index.
1089 All callers updated.
1090 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1091 All uses updated.
1092 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1093 (lookup_dwo_unit_in_dwp): Add V2 support.
1094 (dwarf2_locate_dwo_sections): Update.
1095 (dwarf2_locate_common_dwp_sections): Renamed from
1096 dwarf2_locate_dwp_sections and update. All callers updated.
1097 (dwarf2_locate_v2_dwp_sections): New function.
1098 (open_and_init_dwp_file): Add V2 support.
1099 (read_str_index): New locals str_section, str_offsets_section.
1100
1101 2013-10-04 Pedro Alves <palves@redhat.com>
1102
1103 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1104 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1105 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1106 describing comments with references to ptid.h.
1107 * common/ptid.h: Remove intro description of constructors,
1108 accessors and predicates.
1109 (struct ptid): Reformat.
1110 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1111 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1112 describing comments.
1113
1114 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1115
1116 * aix-thread.c (sync_threadlists): Add missing ')' in call
1117 to ptid_build.
1118
1119 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1120
1121 * procfs.c (procfs_init_inferior): Fix typo causing the build
1122 to fail.
1123
1124 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1125
1126 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1127
1128 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1129
1130 * mi/mi-main.c (run_one_inferior): Add function description.
1131 Make ARG a pointer to an integer whose value determines whether
1132 we should "run" or "start" the program.
1133 (mi_cmd_exec_run): Add handling of the "--start" option.
1134 Reject all other command-line options.
1135 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1136
1137 2013-10-04 Yao Qi <yao@codesourcery.com>
1138
1139 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1140 (struct notif_client) <pending_event>: Moved
1141 to struct remote_notif_state.
1142 <id>: New field.
1143 (struct remote_notif_state) <pending_event>: New field.
1144 (notif_event_xfree): Declare.
1145 * remote-notif.c (handle_notification): Adjust.
1146 (notif_event_xfree): New function.
1147 (do_notif_event_xfree): Call notif_event_xfree.
1148 (remote_notif_state_xfree): Call notif_event_xfree to free
1149 each element in field pending_event.
1150 * remote.c (discard_pending_stop_replies): Remove declaration.
1151 (discard_pending_stop_replies_in_queue): Declare.
1152 (remote_close): Call discard_pending_stop_replies_in_queue
1153 instead of discard_pending_stop_replies.
1154 (remote_start_remote): Adjust.
1155 (stop_reply_xfree): Call notif_event_xfree.
1156 (notif_client_stop): Adjust initialization.
1157 (remote_notif_remove_all): Rename it to ...
1158 (remove_stop_reply_for_inferior): ... this. Update comments.
1159 Don't check INF is NULL.
1160 (discard_pending_stop_replies): Return early if notif_state is
1161 NULL. Adjust. Don't check INF is NULL.
1162 (remote_notif_get_pending_events): Adjust.
1163 (discard_pending_stop_replies_in_queue): New function.
1164 (remote_wait_ns): Likewise.
1165
1166 2013-10-04 Yao Qi <yao@codesourcery.com>
1167
1168 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1169 (notif_queue): Remove.
1170 (remote_notif_process): Add one parameter 'notif_queue'.
1171 Update comments. Callers update.
1172 (remote_async_get_pending_events_token): Remove.
1173 (remote_notif_register_async_event_handler): Remove.
1174 (remote_notif_unregister_async_event_handler): Remove.
1175 (handle_notification): Add parameter 'notif_queue'. Update
1176 comments. Callers update.
1177 (notif_xfree): Remove.
1178 (remote_notif_state_allocate): New function.
1179 (remote_notif_state_xfree): New function.
1180 (_initialize_notif): Remove code to allocate queue.
1181 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1182 (struct remote_notif_state): New.
1183 (handle_notification): Update declaration.
1184 (remote_notif_process): Likewise.
1185 (remote_notif_register_async_event_handler): Remove.
1186 (remote_notif_unregister_async_event_handler): Remove.
1187 (remote_notif_state_allocate): Declare.
1188 (remote_notif_state_xfree): Declare.
1189 * remote.c (struct remote_state) <notif_state>: New field.
1190 (remote_close): Don't call
1191 remote_notif_unregister_async_event_handler. Call
1192 remote_notif_state_xfree.
1193 (remote_open_1): Don't call
1194 remote_notif_register_async_event_handler. Call
1195 remote_notif_state_allocate.
1196
1197 2013-10-04 Yao Qi <yao@codesourcery.com>
1198
1199 * varobj.c (create_child_with_value): Remove 'const' from the
1200 type of parameter 'name'.
1201 (varobj_add_child): Likewise.
1202 (install_dynamic_child): Remove 'const' from the type of
1203 parameter 'name'.
1204 (varobj_add_child): Likewise.
1205 (create_child_with_value): Likewise. Update comments. Don't
1206 duplicate 'name'.
1207 (update_dynamic_varobj_children): Duplicate 'name'
1208 and pass it to install_dynamic_child.
1209
1210 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1211
1212 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1213 conversion logic to occur after PyLong_Check. Comment on order
1214 change significance.
1215 * python/py-arch.c (archpy_disassemble): Comment on order of
1216 conversion for integers and longs.
1217
1218 2013-10-03 Pedro Alves <palves@redhat.com>
1219
1220 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1221 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1222 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1223 PTRACE_O_TRACEFORK is not supported.
1224 (linux_test_for_tracesysgood): New function.
1225 (linux_test_for_tracefork): New function, factored out from
1226 linux_check_ptrace_features, and also don't kill child_pid here.
1227
1228 2013-10-03 Tristan Gingold <gingold@adacore.com>
1229
1230 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1231 Remove verbose error reporting. Use detected state to
1232 thread_set_state call.
1233 (i386_darwin_dr_get): Fix return type. Remove verbose error
1234 report.
1235 Remove trailing spaces.
1236
1237 2013-10-02 Pedro Alves <palves@redhat.com>
1238
1239 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1240 val_print_optimized_out.
1241 * jv-valprint.c (java_print_value_fields): Likewise.
1242 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1243 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1244 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1245 new optimized out value.
1246 * findvar.c (address_from_register): Likewise.
1247 * frame.c (put_frame_register): Tweak error string to say the
1248 register was not saved, rather than optimized out.
1249 * infcmd.c (default_print_one_register_info): Adjust call to
1250 val_print_optimized_out. Use value_of_register instead of
1251 get_frame_register_value.
1252 * mi/mi-main.c (output_register): Use value_of_register instead of
1253 get_frame_register_value.
1254 * valprint.c (valprint_check_validity): Likewise.
1255 (val_print_optimized_out): New value parameter. If the value is
1256 lval_register, print <not saved> instead.
1257 (value_check_printable, val_print_scalar_formatted): Adjust calls
1258 to val_print_optimized_out.
1259 * valprint.h (val_print_optimized_out): New value parameter.
1260 * value.c (struct value) <optimized_out>: Extend comment.
1261 (error_value_optimized_out): New function.
1262 (require_not_optimized_out): Use it. Use a different string for
1263 lval_register values.
1264 * value.h (error_value_optimized_out): New declaration.
1265 * NEWS: Mention <not saved>.
1266
1267 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1268
1269 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1270 strcmp to compare two symtab filenames.
1271
1272 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1273
1274 * symtab.c (search_symbols_equal): Delete.
1275 (sort_search_symbols_remove_dups): Replace call to
1276 search_symbols_equal by call to compare_search_syms,
1277 adjusting as necessary.
1278
1279 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1280
1281 PR python/15579
1282 * python/python.c: Document gdb.execute command in Python help.
1283
1284 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1285
1286 * python/py-frame.c (frame_info_to_frame_object): Use
1287 gdbpy_convert_exception. Clean up Python object on failure.
1288
1289 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1290
1291 * python/lib/gdb/command/frame_filters.py
1292 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1293 (ShowFrameFilterPriority.invoke): Ditto.
1294
1295 2013-10-01 Keith Seitz <keiths@redhat.com>
1296
1297 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1298 (parse_linespec): Make 'argptr' const.
1299 Remove temporary cast of 'argptr' to const char **.
1300 (decode_line_full): Pass const pointer to parse_linespec.
1301 (decode_line_1): Likewise.
1302 (decode_objc): Make local variable 'new_argptr' const.
1303 (find_function_symbols): Remove temporary cast to char *
1304 to find_imps.
1305 * objc-lang.c (find_imps): Make argument 'method' const.
1306 Return const.
1307 * objc-lang.h (find_imps): Likewise.
1308
1309 2013-10-01 Keith Seitz <keiths@redhat.com>
1310
1311 * completer.c (skip_quoted_chars): Make all arguments const.
1312 Return const.
1313 (skip_quoted): Likewise.
1314 * completer.h (skip_quoted_chars): Likewise.
1315 (skip_quoted): Likewise.
1316 * defs.h (skip_quoted): Remove duplicate declaration.
1317 * jv-exp.y: Include completer.h.
1318 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1319 * p-exp.y: Include completer.h.
1320
1321 2013-10-01 Keith Seitz <keiths@redhat.com>
1322
1323 * c-exp.y (parse_number): Make first argument const.
1324 Make a copy of the input to manipulate.
1325 (c_parse_escape): Make first argument const.
1326 Make local variable 'tokptr' const.
1327 (parse_string_or_char): Make first two arguments const.
1328 (macro_original_text): Make const.
1329 (lex_one_token): Make local variable 'tokstart' const.
1330 Likewise for local variables named 'p'.
1331 Cast away const for struct stoken (temporary).
1332 * c-lang.h (c_parse_escpae): Make first argument const.
1333 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1334 const.
1335 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1336 var_string case.
1337 * f-exp.y (parse_number): Make first argument const.
1338 (match_string_literal): Make local variable 'tokstart'
1339 const.
1340 (yylex): Make local variable 'p' const.
1341 Cast away const for struct stoken (temporary).
1342 * go-exp.y (parse_number): Make first argument const.
1343 (parse_string_or_char): Likewise.
1344 Make local variable 'tokstart' const.
1345 (lex_one_token): Likewise for numerous locals called 'p'.
1346 Cast away const for struct stoken (temporary).
1347 * jv-exp.y (parse_number): Make first argument const.
1348 Make local variables 'tokstart' and 'tokptr' const.
1349 Cast away const for call to skip_quoted (temporary).
1350 (yylex): Make local variable 'p' const.
1351 Cast away const for struct stoken (temporary).
1352 * m2-exp.y (parse_number): Make local variable 'p' const.
1353 (yylex): Likewise for 'tokstart'.
1354 Cast away const for struct stoken (temporary).
1355 Make local variable 'p' const.
1356 * macroexp.c (get_character_constant): Pass a const string
1357 to c_parse_escape.
1358 (get_string_literal): Likewise.
1359 (macro_expand_next): Make first argument const.
1360 Cast away const for init_shared_buffer.
1361 * macroexp.h (macro_expand_next): Make first argument const.
1362 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1363 Pass a const string to c_parse_escape.
1364 Make local variables 'p' and 'namestart' const.
1365 * parse.c (lexptr): Make const.
1366 (prev_lexptr): Likewise.
1367 (find_template_name_end): Return const.
1368 Make argument const, too.
1369 (parse_exp_in_context): Make first argument const.
1370 Remove the entire const_hack.
1371 (parse_exp_in_context_1): Make first argument const.
1372 * parser-defs.h (find_template_name_end): Return const.
1373 Make argument const, too.
1374 (lexptr): Make const.
1375 (prev_lexptr): Likewise.
1376 * utils.c (parse_escape): Make second argument const.
1377 * utils.h (parse_escape): Likewise.
1378
1379 2013-10-01 Keith Seitz <keiths@redhat.com>
1380
1381 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1382 is now const.
1383 (block_lookup): Make 'raw_name' and 'name' const.
1384 * ada-lex.l (processString): Update for struct stoken.ptr.
1385 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1386 (operator_stoken): Likewise.
1387 (lex_one_token): Remove temporary cast to char * for
1388 'yylval.sval.ptr'.
1389 * f-exp.y (yylex): Likewise.
1390 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1391 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1392 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1393 'yylval.sval.ptr'.
1394 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1395 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1396 * linespec.c (struct ls_parser): Make 'stream' const.
1397 (find_parameter_list_end): Make argument 'input' and local
1398 variable 'p' const.
1399 (linespec_lexer_lex_string): Make local variables 'start' and
1400 'p' const.
1401 Use skip_spaces_const instead of skip_spaces.
1402 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1403 const.
1404 (parse_linespec): Temporarily cast 'argptr' to const for
1405 'parser->lexer.stream'.
1406 * m2-exp.y (yylex): Remove temporary cast to char * for
1407 'yylval.sval.ptr'.
1408 * objc-lang.c (add_msglist): Make local variable 'p' const.
1409 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1410 (exp : STRING): Make 'sp' const.
1411 (parse_number): Make argument 'p' const.
1412 * parser-defs.h (struct stoken): Make 'ptr' const.
1413
1414 2013-10-01 Doug Evans <dje@google.com>
1415
1416 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1417
1418 2013-10-01 Yao Qi <yao@codesourcery.com>
1419
1420 * varobj.c (c_value_of_root): Remove declaration.
1421 (cplus_value_of_root, java_value_of_root): Likewise.
1422 (ada_value_of_root): Likewise.
1423 (struct language_specific) <value_of_root>: Remove.
1424 (languages): Update initialization.
1425 (check_scope): Move earlier.
1426 (c_value_of_root): Move earlier and rename to ...
1427 (value_of_root_1): ... this.
1428 (value_of_root): Caller update.
1429 (cplus_value_of_root, java_value_of_root): Remove.
1430 (ada_value_of_root): Remove.
1431
1432 2013-10-01 Yao Qi <yao@codesourcery.com>
1433
1434 * varobj.c (varobj_format_string): Remove "unknown".
1435 (languages): Remove the first element.
1436 * varobj.h (enum varobj_languages): Remove vlang_c.
1437
1438 2013-10-01 Yao Qi <yao@codesourcery.com>
1439
1440 * varobj.c (struct language_specific) <language>: Remove.
1441 (languages): Update the initialization.
1442
1443 2013-10-01 Yao Qi <yao@codesourcery.com>
1444
1445 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1446 "solib-target.h". Include "windows-tdep.h".
1447 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1448 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1449 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1450 windows-tdep.o to gdb_target_obs.
1451
1452 2013-10-01 Yao Qi <yao@codesourcery.com>
1453
1454 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1455 "solib-target.h".
1456 (amd64_windows_init_abi): Don't call set_solib_ops and
1457 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1458 windows_init_abi instead.
1459 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1460 "solib-target.h".
1461 (i386_cygwin_init_abi): Don't call set_solib_ops,
1462 set_gdbarch_has_dos_based_file_system and
1463 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1464 windows_init_abi instead.
1465 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1466 (windows_init_abi): New function.
1467 (windows_iterate_over_objfiles_in_search_order): Make it
1468 static.
1469 * windows-tdep.h (windows_init_abi): Declare.
1470 (windows_iterate_over_objfiles_in_search_order): Remove
1471 declaration.
1472
1473 2013-10-01 Jerome Guitton <guitton@adacore.com>
1474
1475 Checked in by Joel Brobecker <brobecker@adacore.com>
1476 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1477 incomplete dictionnary instead of None in case of missing
1478 environment variables.
1479 (elinos_init): in case of an incomplete environment, best
1480 effort to load system libraries instead of abort.
1481
1482 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1483
1484 * ada-lang.c (ada_has_this_exception_support): Ignore
1485 mst_solib_trampoline minimal symbols.
1486
1487 2013-09-30 Tristan Gingold <gingold@adacore.com>
1488
1489 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1490 hardware watchpoint.
1491 (i386_darwin_dr_set): Support 32 and 64 bit states.
1492 (i386_darwin_dr_get): Likewise.
1493 (i386_darwin_dr_set_control): Make static.
1494 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1495 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1496
1497 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1498
1499 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1500 Replace TIDGET with ptid_get_lwp.
1501 Replace GET_LWP with ptid_get_lwp.
1502 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1503 Replace BUILD_THREAD with ptid_build.
1504 Replace BUILD_LWP with ptid_build.
1505 Replace PIDGET with ptid_get_pid.
1506 Replace TIDGET with ptid_get_lwp.
1507 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1508 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1509 Replace TIDGET with ptid_get_lwp.
1510 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1511 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1512 Replace TIDGET with ptid_get_lwp.
1513 Replace GET_LWP with ptid_get_lwp.
1514 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1515 * auxv.c: Likewise.
1516 * breakpoint.c: Likewise.
1517 * common/ptid.c (ptid_is_pid): Condense check for
1518 null_ptid and minus_one_ptid.
1519 (ptid_lwp_p): New function.
1520 (ptid_tid_p): New function.
1521 * common/ptid.h: Update comments for accessors.
1522 (ptid_lwp_p): New prototype.
1523 (ptid_tid_p): New prototype.
1524 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1525 * gcore.c: Replace PIDGET with ptid_get_pid.
1526 * gdbthread.h: Likewise.
1527 * gnu-nat.c: Likewise.
1528 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1529 Replace TIDGET with ptid_get_lwp.
1530 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1531 * hppanbsd-nat.c: Likewise.
1532 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1533 Replace TIDGET with ptid_get_lwp.
1534 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1535 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1536 * infcmd.c: Likewise.
1537 * inferior.h: Likewise.
1538 * inflow.c: Likewise.
1539 * infrun.c: Likewise.
1540 * linux-fork.c: Likewise.
1541 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1542 Replace GET_PID with ptid_get_pid.
1543 Replace is_lwp with ptid_lwp_p.
1544 Replace GET_LWP with ptid_get_lwp.
1545 Replace BUILD_LWP with ptid_build.
1546
1547 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1548
1549 * common/linux-btrace.c: Move sys/syscall.h out of the
1550 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1551 Also check for SYS_perf_event_open before attempting to buid.
1552
1553 2013-09-27 Doug Evans <dje@google.com>
1554
1555 * dwarf2read.c (dwarf2_section_info): Add comment.
1556 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1557 All uses updated.
1558 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1559 (dwarf2_read_section): Delete unused local "header". Add section
1560 name to error message.
1561 (create_dwo_in_dwp): Tweak comment.
1562 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1563
1564 * dwarf2read.c (die_reader_specs): Tweak comment.
1565 (get_section_bfd_owner, get_section_bfd_section): New functions.
1566 (get_section_name, get_section_file_name): New functions.
1567 (get_section_id, get_section_flags): New functions.
1568 (*): Use new functions to access section fields.
1569
1570 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1571 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1572 arg "htab". All callers updated.
1573 (create_debug_types_hash_table): Remove redundant copy of
1574 abbrev_section.
1575 (create_dwo_in_dwp): Tweak comments.
1576 (read_str_index): Tweak comment. Record dwarf form name in static
1577 local.
1578
1579 2013-09-27 Pedro Alves <palves@redhat.com>
1580
1581 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1582 (remote_filename_p): Add comment.
1583 * remote.c (remote_filename_p): Adjust to use
1584 REMOTE_SYSROOT_PREFIX.
1585 * solib.c (solib_find): When deciding whether we need to add a
1586 directory separator, check whether the sysroot is "remote:"
1587 instead of checking whether the patch has a drive spec. Add
1588 comments.
1589
1590 2013-09-27 Pedro Alves <palves@redhat.com>
1591
1592 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1593 Delete fields.
1594 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1595 directly.
1596
1597 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1598
1599 Fix set debug frame output.
1600 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1601 SENTINEL_FRAME entry lower to match enum frame_type order.
1602
1603 2013-09-26 Pierre Muller <muller@sourceware.org>
1604
1605 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1606 AMD64_R15_REGNUM when a register index is expected.
1607 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1608 Substitute in array.
1609 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1610 (amd64_push_arguments): Substitute in integer_regnum array.
1611
1612 2013-09-25 Doug Evans <dje@google.com>
1613
1614 * objfiles.c (allocate_objfile): Move comment to better place.
1615
1616 New option "set debug symfile on".
1617 * NEWS: Mention "set debug symfile".
1618 * Makefile.in (SFILES): Add symfile-debug.c.
1619 (COMMON_OBS): Add symfile-debug.o.
1620 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1621 objfile's symbol functions.
1622 * objfiles.h (objfile_set_sym_fns): Declare.
1623 * symfile-debug.c: New file.
1624 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1625 objfile's symbol functions.
1626 (reread_symbols): Ditto.
1627
1628 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1629 All uses updated.
1630 (add_symtab_fns): Update prototype.
1631 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1632 (registered_sym_fns): ... this.
1633 (symtab_fns): Update.
1634 (add_symtab_fns): New arg "flavour". All callers updated.
1635 (find_sym_fns): Rewrite to use new sym_fns registry.
1636
1637 * symfile.h (struct sym_fns): Add "objfile" argument to
1638 sym_read_linetable. All uses updated.
1639
1640 * symtab.c (domain_name, search_domain_name): New functions.
1641 * symtab.h (domain_name, search_domain_name): Declare.
1642
1643 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1644 map_matching_symbols so objfile is first. All uses updated.
1645 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1646 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1647
1648 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1649
1650 PR shlibs/8882
1651 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1652 link map entries.
1653
1654 2013-09-24 Doug Evans <dje@google.com>
1655
1656 * objfiles.c (free_objfile): Move comment.
1657
1658 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1659
1660 * ada-exp.y (string_to_operator): Delete.
1661 (dummy_string_to_ada_operator): Delete.
1662
1663 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1664
1665 Revert:
1666 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1667 amd64-tdep.c.
1668 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1669 call_dummy_integer_regs, and classify.
1670 * amd64-tdep.h (amd64_classify): Add declaration.
1671 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1672 (amd64_reg_class): Delete, moved to i386-tdep.h.
1673 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1674 Replace call to amd64_classify by call to tdep->classify.
1675 (amd64_push_arguments): Get the list of registers to use for
1676 passing integer parameters from the gdbarch tdep structure,
1677 rather than using a hardcoded one. Replace calls to amd64_classify
1678 by calls to tdep->classify.
1679 (amd64_push_dummy_call): Get the register number used for
1680 the "hidden" argument from tdep->call_dummy_integer_regs.
1681 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1682 and tdep->call_dummy_integer_regs. Set tdep->classify.
1683
1684 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1685
1686 Revert:
1687 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1688 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1689 where tdep->memory_args_by_pointer is non-zero.
1690
1691 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1692
1693 Revert:
1694 * i386-tdep.h (struct gdbarch_tdep): Add new field
1695 integer_param_regs_saved_in_caller_frame.
1696 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1697 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1698
1699 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1700
1701 * amd64-windows-tdep.c: #include "value.h"
1702 (amd64_windows_classify): Delete.
1703 (amd64_windows_passed_by_integer_register)
1704 (amd64_windows_passed_by_xmm_register)
1705 (amd64_windows_passed_by_pointer)
1706 (amd64_windows_adjust_args_passed_by_pointer)
1707 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1708 (amd64_windows_push_dummy_call): New functions.
1709 (amd64_windows_init_abi): Remove setting of
1710 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1711 tdep->classify, tdep->memory_args_by_pointer and
1712 tdep->integer_param_regs_saved_in_caller_frame.
1713 Add call to set_gdbarch_push_dummy_call.
1714
1715 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1716
1717 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1718 objfile->original_name.
1719
1720 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1721
1722 Pass down original filename for objfile.
1723 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1724 * elfread.c (elf_symfile_read): Likewise.
1725 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1726 longer set ORIGINAL_NAME.
1727 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1728 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1729 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1730 symbol_file_add_from_bfd call.
1731 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1732 (macho_check_dsym): Add parameter filenamep. Change function comment.
1733 Set *filenamep.
1734 (macho_symfile_read): New variable dsym_filename. Update
1735 macho_check_dsym call. Use it for symbol_file_add_separate.
1736 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1737 it. Use it for objfile->original_name.
1738 (objfile_name): Return OBFD's filename, if available.
1739 * objfiles.h (allocate_objfile): Add new parameter name.
1740 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1741 * symfile-mem.c (symbol_file_add_from_memory): Update
1742 symbol_file_add_from_bfd call.
1743 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1744 comment for it.
1745 (symbol_file_add_with_addrs): New parameter name, add function comment
1746 for it. Remove variable name. Update allocate_objfile call.
1747 (symbol_file_add_separate): New parameter name, add function comment
1748 for it. Update symbol_file_add_with_addrs call.
1749 (symbol_file_add_from_bfd): New parameter name. Update
1750 symbol_file_add_with_addrs call.
1751 (symbol_file_add): Update symbol_file_add_from_bfd call.
1752 (reread_symbols): New variable original_name. Save
1753 objfile->original_name by it.
1754 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1755 second parameter.
1756
1757 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1758
1759 Code cleanup: Add objfile_name accessor function.
1760 * ada-lang.c (is_known_support_routine): Use objfile_name.
1761 * auto-load.c (source_gdb_script_for_objfile)
1762 (auto_load_objfile_script): Likewise.
1763 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1764 * dbxread.c (dbx_symfile_read): Likewise.
1765 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1766 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1767 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1768 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1769 (lookup_dwp_signatured_type, lookup_dwo_unit)
1770 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1771 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1772 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1773 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1774 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1775 (read_subrange_type, load_partial_dies, read_partial_die)
1776 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1777 (die_containing_type, build_error_marker_type, lookup_die_type)
1778 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1779 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1780 (get_DW_AT_signature_type, write_psymtabs_to_index)
1781 (save_gdb_index_command): Likewise.
1782 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1783 Likewise.
1784 * expprint.c (dump_subexp_body_standard): Likewise.
1785 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1786 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1787 original_name.
1788 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1789 obj_name, use objfile_name for it, use the variable.
1790 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1791 Use objfile_name.
1792 * machoread.c (macho_symtab_read, macho_check_dsym)
1793 (macho_symfile_relocate): Likewise.
1794 * maint.c (maintenance_translate_address): Likewise.
1795 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1796 * minsyms.c (install_minimal_symbols): Likewise.
1797 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1798 original_name.
1799 (filter_overlapping_sections): Use objfile_name.
1800 (objfile_name): New function.
1801 * objfiles.h (struct objfile): Rename field name to original_name.
1802 (objfile_name): New prototype.
1803 * printcmd.c (sym_info, address_info): Use objfile_name.
1804 * probe.c (parse_probes, collect_probes, compare_probes)
1805 (info_probes_for_ops): Likewise.
1806 * progspace.c (clone_program_space): Likewise.
1807 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1808 (maintenance_info_psymtabs): Likewise.
1809 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1810 (source_section_scripts): Likewise.
1811 * python/py-objfile.c (objfpy_get_filename): Likewise.
1812 * python/py-progspace.c (pspy_get_filename): Likewise.
1813 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1814 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1815 * solib.c (solib_read_symbols): Likewise.
1816 * stabsread.c (scan_file_globals): Likewise.
1817 * stap-probe.c (handle_stap_probe): Likewise.
1818 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1819 (find_separate_debug_file_by_debuglink): Likewise.
1820 (reread_symbols): Likewise. Use the objfile field name renamed to
1821 original_name.
1822 (allocate_symtab): Use objfile_name.
1823 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1824 (dump_objfile, dump_msymbols, dump_symtab_1)
1825 (maintenance_print_msymbols, maintenance_print_objfiles)
1826 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1827 * target.c (target_translate_tls_address, target_info): Likewise.
1828 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1829 objfile_name.
1830
1831 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1832
1833 Code cleanup.
1834 * probe.c (parse_probes): Rename variable objfile_name to
1835 objfile_namestr.
1836
1837 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1838
1839 Remove solib-sunos.c.
1840 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1841 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1842 * objfiles.c (rt_common_objfile): Remove.
1843 (free_objfile): Remove rt_common_objfile comparison.
1844 * objfiles.h (rt_common_objfile): Remove.
1845 * solib-sunos.c: Remove.
1846 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1847
1848 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1849
1850 Remove a.out NetBSD and OpenBSD hosts.
1851 * NEWS (Removed native configurations): New.
1852 * config/arm/nbsdaout.mh: Remove.
1853 * config/i386/nbsdaout.mh: Remove.
1854 * config/i386/obsdaout.mh: Remove.
1855 * config/m68k/nbsdaout.mh: Remove.
1856 * config/sparc/nbsdaout.mh: Remove.
1857 * config/vax/nbsdaout.mh: Remove.
1858 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1859 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1860 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1861 error.
1862 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1863 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1864 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1865
1866 2013-09-23 Tom Tromey <tromey@redhat.com>
1867
1868 * linespec.c (struct minsym_and_objfile): Remove.
1869 (minsym_and_objfile_d): Remove.
1870 (struct linespec, struct collect_info, linespec_parse_basic)
1871 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1872 (compare_msymbols, find_method, find_function_symbols)
1873 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1874 (add_minsym, search_minsyms_for_name): Update.
1875
1876 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1877
1878 * regcache.c: Add include of valprint.h.
1879 (dump_endian_bytes): Delete.
1880 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1881
1882 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1883
1884 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1885
1886 2013-09-19 Pedro Alves <palves@redhat.com>
1887
1888 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1889 breakpoints.
1890
1891 2013-09-19 Pedro Alves <palves@redhat.com>
1892 Thomas Schwinge <thomas@codesourcery.com>
1893 Yue Lu <hacklu.newborn@gmail.com>
1894
1895 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1896 Take a gdb_byte pointer instead of a char pointer.
1897
1898 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1899 gnu_xfer_partial helper.
1900 (gnu_xfer_partial): New function.
1901 (gnu_target): Don't install a deprecated_xfer_memory hook.
1902 Install a to_xfer_partial hook.
1903
1904 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1905
1906 Constification.
1907 * main.c (captured_main): Replace catch_command_errors by
1908 catch_command_errors_const. Twice.
1909 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1910 (symbol_file_add): Make name parameter const.
1911 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1912 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1913 variable name. Change their usage accordingly.
1914 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1915 const.
1916 (symbol_file_add_main): Make args parameter const.
1917
1918 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1919 Ulrich Weigand <uweigand@de.ibm.com>
1920
1921 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1922 of c_value member.
1923 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1924
1925 2013-09-18 Pedro Alves <palves@redhat.com>
1926 Yue Lu <hacklu.newborn@gmail.com>
1927
1928 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1929 (gnu_create_inferior)
1930 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1931 (set_sig_thread_cmd): Use the lwpid field of ptids to
1932 store/extract thread ids instead of the tid field.
1933 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1934
1935 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1936
1937 * infcmd.c (default_print_one_register_info): Add detection of
1938 optimized out values.
1939 (default_print_registers_info): Switch to using
1940 get_frame_register_value.
1941
1942 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1943
1944 * infrun.c (handle_inferior_event): Check if we know the
1945 function start address before setting a resume breakpoint.
1946
1947 2013-09-18 Pedro Alves <palves@redhat.com>
1948
1949 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1950 minus_one_ptid instead of looking at the ptid's tid field and
1951 comparing that to -1.
1952
1953 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1954
1955 * main.h (get_gdb_program_name): Remove extra whitespace.
1956
1957 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1958
1959 * main.h (get_gdb_program_name): Add declaration.
1960 * main.c (get_gdb_program_name): Add definition.
1961
1962 2013-09-17 Doug Evans <dje@google.com>
1963
1964 * dwarf2read.c: Move definitions of complaint functions to after
1965 forward declarations of local functions.
1966
1967 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1968 Pedro Alves <palves@redhat.com>
1969
1970 PR gdb/11568
1971 * breakpoint.c (remove_threaded_breakpoints): New function.
1972 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1973 as thread_exit observer.
1974
1975 2013-09-17 Pedro Alves <palves@redhat.com>
1976
1977 PR gdb/15911
1978 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1979 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1980 * corelow.c (core_open):
1981 * frame.h (print_stack_frame, print_frame_info): New
1982 'set_current_sal' parameter.
1983 * infcmd.c (finish_command, kill_command): Adjust call to
1984 print_stack_frame.
1985 * inferior.c (inferior_command): Likewise.
1986 * infrun.c (normal_stop): Likewise.
1987 * linux-fork.c (linux_fork_context): Likewise.
1988 * record-full.c (record_full_goto_entry, record_full_restore):
1989 Likewise.
1990 * remote-mips.c (common_open): Likewise.
1991 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1992 Use it.
1993 (print_frame_info): New 'set_current_sal' parameter. Set the last
1994 displayed sal depending on the new paremeter instead of looking at
1995 print_what.
1996 (backtrace_command_1, select_and_print_frame, frame_command)
1997 (current_frame_command, up_command, down_command): Adjust call to
1998 print_stack_frame.
1999 * thread.c (print_thread_info, restore_selected_frame)
2000 (do_captured_thread_select): Adjust call to print_stack_frame.
2001 * tracepoint.c (tfind_1): Likewise.
2002 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2003 (mi_cmd_stack_info_frame): Likewise.
2004 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2005 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2006
2007 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2008
2009 * value.c (isvoid_internal_fn): Replace "parameter" with
2010 "argument".
2011
2012 2013-09-16 Stan Shebs <stan@codesourcery.com>
2013
2014 * README: Update references to writing code for GDB.
2015 * configure.ac (build_warnings): Remove obsolete comment.
2016 * configure: Regenerate.
2017 * gdbarch.sh: Remove references to gdbint.texinfo.
2018 * gdbarch.h: Regenerate.
2019 * gdbtypes.c (objfile_type): Remove comments referencing internals
2020 manual and D10V.
2021
2022 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2023
2024 * NEWS: Mention new convenience function $_isvoid.
2025 * value.c (isvoid_internal_fn): New function.
2026 (_initialize_values): Add new convenience function $_isvoid.
2027
2028 2013-09-16 Pierre Muller <muller@sourceware.org>
2029
2030 * arm-linux-tdep.c: Add "elf/common.h" header.
2031 Remove AT_HWCAP macro definintion as it is provided in
2032 added include file.
2033 * s390-tdep.c: Remove system header <elf.h>
2034 Add "elf/common.h" header for AT_HWCAP definition.
2035 (s390_core_read_description): Use correct CORE_ADDR
2036 for hwcap local variable used as third parameter
2037 of function target_auxv_search.
2038
2039 2013-09-14 Pierre Muller <muller@sourceware.org>
2040 Tom Tromey <tromey@redhat.com>
2041 Pedro Alves <palves@redhat.com>
2042
2043 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2044 mode if operating system doesn't know O_CLOEXEC.
2045
2046 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2047
2048 Code cleanup.
2049 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2050 inner block.
2051
2052 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2053
2054 * NEWS: Mention TDB support.
2055 * features/s390-tdb.xml: New file.
2056 * features/s390-te-linux64.xml: New file.
2057 * features/s390x-te-linux64.xml: New file.
2058 * features/Makefile (WHICH): Add new tdescs above.
2059 (s390-te-linux64-expedite): Set.
2060 (s390x-te-linux64-expedite): Set.
2061 * features/s390-te-linux64.c: New file (generated).
2062 * features/s390x-te-linux64.c: New file (generated).
2063 * regformats/s390-te-linux64.dat: New file (generated).
2064 * regformats/s390x-te-linux64.dat: New file (generated).
2065 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2066 (HWCAP_S390_TE): Likewise.
2067 (S390_TDB_DWORD0_REGNUM): Likewise.
2068 (S390_TDB_DWORD0_REGNUM): Likewise.
2069 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2070 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2071 (S390_TDB_ATIA_REGNUM): Likewise.
2072 (S390_TDB_R0_REGNUM): Likewise.
2073 (S390_TDB_R1_REGNUM): Likewise.
2074 (S390_TDB_R2_REGNUM): Likewise.
2075 (S390_TDB_R3_REGNUM): Likewise.
2076 (S390_TDB_R4_REGNUM): Likewise.
2077 (S390_TDB_R5_REGNUM): Likewise.
2078 (S390_TDB_R6_REGNUM): Likewise.
2079 (S390_TDB_R7_REGNUM): Likewise.
2080 (S390_TDB_R8_REGNUM): Likewise.
2081 (S390_TDB_R9_REGNUM): Likewise.
2082 (S390_TDB_R10_REGNUM): Likewise.
2083 (S390_TDB_R11_REGNUM): Likewise.
2084 (S390_TDB_R12_REGNUM): Likewise.
2085 (S390_TDB_R13_REGNUM): Likewise.
2086 (S390_TDB_R14_REGNUM): Likewise.
2087 (S390_TDB_R15_REGNUM): Likewise.
2088 (S390_NUM_REGS): Increase.
2089 (S390_IS_TDBREGSET_REGNUM): New macro.
2090 (s390_regmap_tdb): Declare.
2091 (s390_sizeof_tdbregset): Define.
2092 (tdesc_s390_te_linux64): Declare.
2093 (tdesc_s390x_te_linux64): Likewise.
2094 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2095 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2096 (s390_regmap_tdb): New regmap.
2097 (s390_supply_tdb_regset): New function.
2098 (s390_tdb_regset): New regset.
2099 (s390_linux64v2_regset_sections): Add TDB regset to list.
2100 (s390x_linux64v2_regset_sections): Likewise.
2101 (s390_regset_from_core_section): Recognize TDB core note section.
2102 (s390_core_read_description): If HWCAP indicates TE support,
2103 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2104 (s390_gdbarch_init): Handle TDB regset.
2105 (_initialize_s390_tdep): Initialize new tdescs.
2106 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2107 (have_regset_tdb): New variable.
2108 (s390_native_supply): Support register invalidation.
2109 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2110 (check_regset): Treat ENODATA as "regset exists".
2111 (s390_linux_fetch_inferior_registers): Add TDB.
2112 (s390_read_description): Check for TDB existence and select
2113 appropriate tdesc.
2114 * gdbserver/Makefile.in (clean): Add removal of new makefile
2115 targets.
2116 (s390-te-linux64.c): New makefile target.
2117 (s390x-te-linux64.c): Likewise.
2118 * gdbserver/configure.srv (srv_regobj): Append new objects
2119 s390-te-linux64.o and s390x-te-linux64.o.
2120 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2121 s390x-te-linux64.xml, and s390-tdb.xml.
2122 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2123 declaration.
2124 (tdesc_s390_te_linux64): Likewise.
2125 (init_registers_s390x_te_linux64): Likewise.
2126 (tdesc_s390x_te_linux64): Likewise.
2127 (s390_check_regset): Treat ENODATA as "regset exists".
2128 (s390_arch_setup): Add TDB regset support.
2129 (initialize_low_arch): Initialize registers for new tdescs.
2130
2131 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2132
2133 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2134 (S390_IS_FPREGSET_REGNUM): New macro.
2135 * s390-tdep.c (s390_dwarf_regmap): Make const.
2136 (regnum_is_gpr_full): New function for replacing repeated code.
2137 (s390_pseudo_register_name): Use it.
2138 (s390_pseudo_register_type): Likewise.
2139 (s390_pseudo_register_read): Likewise.
2140 (s390_pseudo_register_write): Likewise.
2141 (s390_unwind_pseudo_register): Likewise.
2142 (s390_regmap_gregset): New format for regmap.
2143 (s390x_regmap_gregset): Likewise.
2144 (s390_regmap_fpregset): Likewise.
2145 (s390_regmap_upper): Likewise.
2146 (s390_regmap_last_break): Likewise.
2147 (s390_regmap_system_call): Likewise.
2148 (s390_supply_regset): Adjust to new regmap format.
2149 (s390_collect_regset): Likewise.
2150 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2151 (s390_native_collect): Likewise.
2152 (supply_gregset): Likewise.
2153 (fill_gregset): Likewise.
2154 (supply_fpregset): Likewise.
2155 (fill_fpregset): Likewise.
2156 (fetch_regset): Likewise.
2157 (store_regset): Likewise.
2158 (s390_linux_fetch_inferior_registers): Likewise.
2159 (s390_linux_fetch_inferior_registers): Likewise.
2160
2161 2013-09-12 Andrew Pinski <apinski@cavium.com>
2162
2163 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2164
2165 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2166
2167 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2168
2169 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2170
2171 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2172
2173 2013-09-06 Pedro Alves <palves@redhat.com>
2174
2175 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2176 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2177 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2178 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2179 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2180 gdb_stdlog.
2181
2182 2013-09-06 Pedro Alves <palves@redhat.com>
2183
2184 * remote-sim.c (dump_mem): Constify buf parameter.
2185 gdbsim_xfer_inferior_memory): Rename to ...
2186 (gdbsim_xfer_memory): ... this. Adjust interface as
2187 target_xfer_partial helper.
2188 (gdbsim_xfer_partial): New function.
2189 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2190 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2191
2192 2013-09-06 Pedro Alves <palves@redhat.com>
2193
2194 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2195 host_address_to_string, and send debug output to gdb_stdlog.
2196
2197 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2198
2199 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2200 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2201 gdb_target_obs for cris target.
2202 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2203 (cris_gdbarch_init): Move calls to
2204 set_gdbarch_fetch_tls_load_module_address and
2205 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2206 Add call to gdbarch_init_osabi.
2207 * cris-linux-tdep.c: New file.
2208 * cris-tdep.h: New file.
2209
2210 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2211
2212 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2213 to deprecated_init_ui_hook.
2214
2215 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2216
2217 * cli/cli-interp.c (_initialize_cli_interp): Add a
2218 command_loop_proc to interp_procs.
2219 * event-top.c (cli_command_loop): Change signature to match
2220 interp_command_loop_ftype.
2221 * event-top.h (cli_command_loop): Same.
2222 * interps.c (interp_new): Require every interpreter to have a
2223 command_loop_proc.
2224 (current_interp_command_loop): Just call the command_loop_proc on
2225 the current interpreter.
2226 * tui/tui-interp.c (_initialize_tui_interp): Add a
2227 command_loop_proc to interp_procs.
2228
2229 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2230
2231 * cris-tdep.c (cris_gdbarch_init): Add call to
2232 get_gdbarch_fetch_tls_load_module_address.
2233
2234 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2235
2236 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2237 (cris_elf_gregset_t): Rename from elf_gregset_t.
2238 (crisv32_elf_gregset_t): Adjust.
2239 (cris_supply_gregset, fetch_core_registers): Adjust.
2240
2241 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2242
2243 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2244
2245 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
2246
2247 * defs.h (deprecated_command_loop_hook): Remove, including
2248 references in comments.
2249 * interps.c (current_interp_command_loop): No longer use
2250 deprecated_command_loop_hook.
2251 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2252 setup.
2253 * top.c (deprecated_command_loop_hook): Remove.
2254
2255 2013-09-05 Pedro Alves <palves@redhat.com>
2256
2257 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2258 local is now int instead of ULONGEST. Print it with %d
2259 instead of paddress.
2260
2261 2013-09-05 Tristan Gingold <gingold@adacore.com>
2262
2263 * MAINTAINERS: Remove avr maintainership.
2264
2265 2013-09-05 Pedro Alves <palves@redhat.com>
2266
2267 * findvar.c (value_of_register): Rework in terms of
2268 value_of_register_lazy.
2269
2270 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2271
2272 * symfile.c (add_symbol_file_command): Remove trailing
2273 whitespaces and blank line after comment.
2274
2275 2013-09-05 Pedro Alves <palves@redhat.com>
2276
2277 * tui/tui-regs.c (tui_register_format): Don't look at the
2278 register's name here. Return string representing register
2279 value instead of storing it in the data element.
2280 (tui_get_register): Compare register string representations
2281 instead of register value states and contents.
2282
2283 2013-09-05 Pedro Alves <palves@redhat.com>
2284
2285 PR tui/15933
2286 * tui/tui-regs.c (tui_show_registers): Show registers of the
2287 selected frame, not the current frame.
2288
2289 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2290
2291 * MAINTAINERS (Write After Approval): Add myself to the list.
2292
2293 2013-09-04 Doug Evans <dje@google.com>
2294
2295 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2296 (queue_and_load_dwo_tu): New function.
2297 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2298 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2299 Make dependent_cu optional.
2300 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2301 and an older .gdb_index is in use, queue and load all its TUs too.
2302
2303 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2304
2305 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2306 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2307 variable search_flags.
2308 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2309 (OPF_RETURN_REALPATH): ... here.
2310 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2311 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2312 call. Twice.
2313 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2314 openp call.
2315 * solib.c (solib_find): Likewise. Four times.
2316 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2317 in the function comment and for the realpath_fptr variable.
2318 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2319 (find_and_open_source): Likewise. Twice.
2320 * symfile.c (symfile_bfd_open): Likewise, also twice.
2321
2322 2013-09-04 Doug Evans <dje@google.com>
2323
2324 * progspace.c (save_current_space_and_thread): Remove unnecessary
2325 call to save_current_inferior.
2326
2327 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2328
2329 * sh64-tdep.c (sh64_do_register): Return after printing message
2330 about unavailable register contents.
2331
2332 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2333 Pedro Alves <palves@redhat.com>
2334
2335 * symfile.c (add_symbol_file_command): Error out on unknown
2336 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2337 options and collapse into single conditional branch.
2338
2339 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2340
2341 * inf-child.c (inf_child_follow_fork): New parameter
2342 detach_fork.
2343 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2344 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2345 * inferior.h (detach_fork): Remove.
2346 * infrun.c (detach_fork): Adjust comment and make it
2347 static.
2348 (follow_fork): Pass detach_fork parameter to
2349 target_follow_fork.
2350 * linux-nat.c (linux_child_follow_fork): New parameter
2351 detach_fork.
2352 * target.c (target_follow_fork): New parameter detach_fork.
2353 Pass detach_fork as parameter and print its value.
2354 * target.h (struct target_ops) <to_follow_fork>: New int
2355 parameter.
2356 (target_follow_fork): New parameter detach_fork.
2357
2358 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2359
2360 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2361 Replace sec->bfd by sec->the_bfd_section->owner.
2362
2363 2013-09-03 Yao Qi <yao@codesourcery.com>
2364
2365 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2366 from linux_has_shared_address_space.
2367 (linux_has_shared_address_space): Call linux_is_uclinux.
2368 * linux-tdep.h (linux_is_uclinux): Declare.
2369 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2370 linux_is_uclinux.
2371
2372 2013-09-03 Yao Qi <yao@codesourcery.com>
2373
2374 * config/djgpp/fnchange.lst: Remove entry of
2375 i386-interix-nat.c and i386-interix-tdep.c.
2376 * configure.ac: Remove '*-*-interix*'.
2377 * configure: Re-generated.
2378 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2379 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2380 obsolete comments.
2381 * osabi.c (gdb_osabi_names): Remove "Interix".
2382
2383 2013-09-03 Yao Qi <yao@codesourcery.com>
2384
2385 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2386
2387 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2388
2389 * record.h (record_print_flag) <record_print_src_line,
2390 record_print_insn_range>: Rename into ...
2391 (record_print_flag) <record_print_src_line,
2392 record_print_insn_range>: ... this. Update all users.
2393
2394 2013-09-02 Pierre Muller <muller@sourceware.org>
2395
2396 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2397 error code.
2398
2399 2013-09-02 Pierre Muller <muller@sourceware.org>
2400
2401 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2402 by use of plongest function.
2403
2404 2013-09-02 Tristan Gingold <gingold@adacore.com>
2405
2406 * NEWS: Add entry mentioning support for native Windows x64
2407 SEH data.
2408
2409 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2410 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2411 (struct amd64_windows_frame_cache): New struct.
2412 (amd64_windows_w2gdb_regnum): New global.
2413 (pc_in_range, amd64_windows_frame_decode_epilogue)
2414 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2415 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2416 (amd64_windows_frame_this_id): New functions.
2417 (amd64_windows_frame_unwind): New static global.
2418 (amd64_windows_skip_prologue): New function.
2419 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2420 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2421 with amd64_windows_skip_prologue.
2422
2423 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2424
2425 GDB 7.6.1 released.
2426
2427 2013-08-30 Pedro Alves <palves@redhat.com>
2428
2429 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2430 SRC_AND_LOC.
2431
2432 2013-08-30 Pedro Alves <palves@redhat.com>
2433
2434 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2435 warning text.
2436
2437 2013-08-30 Pedro Alves <palves@redhat.com>
2438
2439 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2440 Adjust arguments to print_stack_frame.
2441
2442 2013-08-30 Pedro Alves <palves@redhat.com>
2443
2444 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2445
2446 2013-08-30 Pedro Alves <palves@redhat.com>
2447
2448 * frame.h (show_and_print_stack_frame): Delete declaration.
2449
2450 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2451
2452 PR python/15461
2453 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2454 (archpy_name): Check for valid architecture.
2455 (archpy_disassemble): Ditto.
2456
2457 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2458
2459 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2460 instead of "long long" in call to ptrace64.
2461
2462 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2463
2464 * mi/mi-interp.c (mi_command_loop): Change signature to match
2465 interp_command_loop_ftype.
2466 (mi1_command_loop): Remove.
2467 (mi2_command_loop): Remove.
2468 (mi3_command_loop): Remove.
2469 (mi_interpreter_resume): Remove setting of
2470 deprecated_command_loop_hook.
2471 (_initialize_mi_interp): Set mi_command_loop as the command loop
2472 callback.
2473
2474 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2475
2476 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2477 value_type.
2478
2479 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2480
2481 * value.c (allocate_value_contents): Make static.
2482 * value.h (allocate_value_contents): Remove prototype.
2483
2484 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2485
2486 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2487 of assembling value via allocate_value_lazy and attribute setter.
2488 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2489 assembling value via allocate_value_lazy and attribute setter.
2490 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2491 assembling value via allocate_value_lazy and attribute setter.
2492
2493 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2494
2495 * value.c (value_from_contents_and_address): Replace allocate_value and
2496 memcpy with value_from_contents.
2497
2498 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2499
2500 * python/py-framefilter.c (py_print_frame): Remove usage of
2501 PyString_AsString. Use python_string_to_host_string instead.
2502 Refactor function to work with a string as a new allocation
2503 instead of a pointer.
2504 (py_print_frame): Ditto.
2505 * python/lib/gdb/frames.py (return_list): Cain iterators together
2506 instead of adding them as a list.
2507 (_sort_list): Call return_list, and remove duplicate code.
2508 (execute_frame_filters): Convert iterator to a list with list().
2509 * python/lib/gdb/command/frame_filters.py
2510 (SetFrameFilterPriority._set_filter_priority): Convert priority
2511 attribute to an integer.
2512 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2513 wrapper function __next__.
2514 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2515 define as "str".
2516
2517 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2518
2519 PR python/15752
2520 * python/py-framefilter.c (apply_frame_filter): Check
2521 gdb_python_initialized. Exit if the Python frame-filter code
2522 cannot be initialized.
2523
2524 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2525
2526 PR cli/15842
2527 * top.c (print_gdb_version): Remove erroneous newline after help
2528 text.
2529
2530 2013-08-29 Yao Qi <yao@codesourcery.com>
2531
2532 * varobj.c (install_dynamic_child): Remove trailing space.
2533 Add one blank line after variable declaration.
2534
2535 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2536
2537 PR gdb/15415
2538 * corefile.c (get_exec_file): Use exec_filename.
2539 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2540 * exec.c (exec_close): Free EXEC_FILENAME.
2541 (exec_file_attach): New variable canonical_pathname. Use
2542 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2543 EXEC_FILENAME.
2544 * exec.h (exec_filename): New.
2545 * inferior.c (print_inferior, inferior_command): Use
2546 PSPACE_EXEC_FILENAME.
2547 * mi/mi-main.c (print_one_inferior): Likewise.
2548 * progspace.c (clone_program_space, print_program_space): Likewise.
2549 * progspace.h (struct program_space): New field pspace_exec_filename.
2550 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2551 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2552
2553 2013-08-28 Will Newton <will.newton@linaro.org>
2554
2555 * common/linux-ptrace.c: Include stdint.h unconditionally.
2556
2557 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2558
2559 Code cleanup.
2560 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2561
2562 2013-08-28 Yao Qi <yao@codesourcery.com>
2563 Pedro Alves <palves@redhat.com>
2564
2565 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2566 instead of stdio_fileopen.
2567 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2568 .Call stderr_fileopen instead of stdio_fileopen.
2569 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2570 [__MINGW32__] (stderr_file_fputs): New function.
2571 (stderr_fileopen): New function.
2572 * ui-file.h (stderr_fileopen): Declare.
2573
2574 2013-08-27 Doug Evans <dje@google.com>
2575
2576 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2577 (struct dwarf2_per_cu_data): Ditto.
2578 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2579 (process_imported_unit_die): Ditto.
2580 (follow_die_sig_1): Simplify assert.
2581
2582 2013-08-27 Pedro Alves <palves@redhat.com>
2583
2584 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2585 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2586 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2587 windows_xfer_memory directly.
2588 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2589
2590 2013-08-27 Pedro Alves <palves@redhat.com>
2591
2592 * darwin-nat.c (darwin_xfer_memory): Delete.
2593 (_initialize_darwin_inferior): Don't install a
2594 deprecated_xfer_memory method.
2595
2596 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2597 Yao Qi <yao@codesourcery.com>
2598
2599 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2600 (parse_no_frames_option): Remove.
2601 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2602 (mi_cmd_stack_list_args): Adjust.
2603 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2604 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2605 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2606 Caller update.
2607 (list_args_or_locals): New parameter 'skip_unavailable'.
2608 Handle it.
2609 * valprint.c (scalar_type_p): Rename to ...
2610 (val_print_scalar_type_p): ... this. Make extern.
2611 (val_print, value_check_printable): Adjust.
2612 * valprint.h (val_print_scalar_type_p): Declare.
2613 * value.c (value_entirely_unavailable): New function.
2614 * value.h (value_entirely_unavailable): Declare.
2615
2616 * NEWS: Mention the new option "--skip-unavailable" to MI
2617 commands '-stack-list-locals', '-stack-list-arguments' and
2618 '-stack-list-variables'.
2619
2620 2013-08-27 Yao Qi <yao@codesourcery.com>
2621
2622 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2623 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2624 options.
2625 * mi/mi-getopt.c (mi_getopt): Remove.
2626 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2627 'error_on_unknown'.
2628 (mi_getopt): Call mi_getopt_1.
2629 (mi_getopt_silent): New.
2630 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2631
2632 2013-08-26 Doug Evans <dje@google.com>
2633
2634 PR symtab/15885
2635 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2636 .gdb_index is in use.
2637 * symfile.c (reread_symbols): Reset objfile->sf.
2638
2639 * NEWS: Document "mt print objfiles" now takes optional regexp.
2640 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2641 regexp of objfiles to print.
2642 (_initialize_symmisc): Update doc string for "mt print objfiles".
2643
2644 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2645 missing debug info checks.
2646
2647 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2648 Ulrich Weigand <uweigand@de.ibm.com>
2649
2650 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2651 line tables generated by XLC compiled binaries.
2652
2653 2013-08-23 Doug Evans <dje@google.com>
2654
2655 * symmisc.c (dump_symtab): Delete prototype.
2656 (dump_msymbols, dump_objfile): Ditto.
2657 (maintenance_info_symtabs): Mark as dont_repeat.
2658 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2659
2660 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2661 debugging printf to better location.
2662
2663 2013-08-23 Pedro Alves <palves@redhat.com>
2664
2665 * target.c (target_read_live_memory): Change type of 'ret' local
2666 to LONGEST.
2667
2668 2013-08-23 Pedro Alves <palves@redhat.com>
2669
2670 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2671 (remote_read_bytes): Change return type to LONGEST, and adjust to
2672 return a target_xfer_error on error.
2673 (remote_xfer_memory): Delete.
2674 (remote_flash_write): Change type of 'ret' local to LONGEST.
2675 (remote_xfer_partial, remote_xfer_partial): Adjust.
2676 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2677
2678 2013-08-23 Pierre Muller <muller@sourceware.org>
2679
2680 ARI fix: Push # directives to start of line.
2681 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2682
2683 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2684
2685 PR gdb/15501
2686 * breakpoint.c (enable_command, disable_command): Iterate over
2687 all specified breakpoint locations.
2688
2689 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2690
2691 * common/linux-ptrace.c (linux_fork_to_function): Push #
2692 directives to the start of the line.
2693 (linux_check_ptrace_features): Fix warning message to use
2694 the "_" markup.
2695
2696 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2697
2698 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2699 nat/linux-waitpid.h.
2700 (linux-waitpid.o): New object file rule.
2701 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2702 (current_ptrace_options): Moved from linux-nat.c.
2703 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2704 parameters.
2705 (linux_fork_to_function): New function.
2706 (linux_grandchild_function): Likewise.
2707 (linux_child_function): Likewise.
2708 (linux_check_ptrace_features): New function, heavily
2709 based on linux-nat.c:linux_test_for_tracefork.
2710 (linux_enable_event_reporting): New function.
2711 (ptrace_supports_feature): Likewise.
2712 (linux_supports_tracefork): Likewise.
2713 (linux_supports_traceclone): Likewise.
2714 (linux_supports_tracevforkdone): Likewise.
2715 (linux_supports_tracesysgood): Likewise.
2716 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2717 gdbserver/linux-low.c.
2718 (linux_enable_event_reporting): New declaration.
2719 (linux_supports_tracefork): Likewise.
2720 (linux_supports_traceclone): Likewise.
2721 (linux_supports_tracevforkdone): Likewise.
2722 (linux_supports_tracesysgood): Likewise.
2723 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2724 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2725 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2726 * config/arm/linux.mh (NATDEPFILES): Likewise.
2727 * config/i386/linux.mh (NATDEPFILES): Likewise.
2728 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2729 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2730 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2731 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2732 * config/mips/linux.mh (NATDEPFILES): Likewise.
2733 * config/pa/linux.mh (NATDEPFILES): Likewise..
2734 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2735 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2736 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2737 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2738 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2739 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2740 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2741 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2742 ptrace's 4th argument's types.
2743 Check the type of PTRACE_TYPE_ARG4.
2744 * configure: Regenerate.
2745 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2746 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2747 (linux_supports_tracefork_flag): Remove.
2748 (linux_supports_tracesysgood_flag): Likewise.
2749 (linux_supports_tracevforkdone_flag): Likewise.
2750 (current_ptrace_options): Moved to
2751 common/linux-ptrace.c.
2752 (linux_tracefork_child): Remove.
2753 (my_waitpid): Remove.
2754 (linux_test_for_tracefork): Renamed to
2755 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2756 (linux_test_for_tracesysgood): Remove.
2757 (linux_supports_tracesysgood): Remove.
2758 (linux_supports_tracefork): Remove.
2759 (linux_supports_tracevforkdone): Remove.
2760 (linux_enable_tracesysgood): Remove.
2761 (linux_enable_event_reporting): Remove.
2762 (linux_init_ptrace): New function.
2763 (linux_child_post_attach): Call linux_init_ptrace.
2764 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2765 (linux_child_follow_fork): Call linux_supports_tracefork
2766 and linux_supports_tracevforkdone.
2767 (linux_child_insert_fork_catchpoint): Call
2768 linux_supports_tracefork.
2769 (linux_child_insert_vfork_catchpoint): Likewise.
2770 (linux_child_set_syscall_catchpoint): Call
2771 linux_supports_tracesysgood.
2772 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2773 * nat/linux-nat.h: New file.
2774 * nat/linux-waitpid.c: New file.
2775 * nat/linux-waitpid.h: New file.
2776
2777 2013-08-22 Samuel Bronson <naesten@gmail.com>
2778
2779 ARM Linux support for `catch syscall'.
2780 * syscalls/arm-linux.py: New file.
2781 * syscalls/arm-linux.xml: Likewise.
2782 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2783 (arm_linux_init_abi): Register the new function and syscall xml file.
2784 * data-directory/Makefile.in: Install the new syscall xml file.
2785 * NEWS: Brag about this.
2786
2787 2013-08-22 Pedro Alves <palves@redhat.com>
2788
2789 PR gdb/15871
2790 * corefile.c (target_xfer_memory_error): New function.
2791 (memory_error): Defer EIO to target_memory_error.
2792 (read_memory): Use target_xfer_partial, and handle finer-grained
2793 target xfer errors.
2794 * target.c (target_xfer_error_to_string): New function.
2795 (memory_xfer_partial_1): If memory is known to be
2796 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2797 (target_xfer_partial): Make extern.
2798 * target.h (enum target_xfer_error): New enum.
2799 (target_xfer_error_to_string): Declare function.
2800 (target_xfer_partial): Declare function.
2801 (struct target_ops) <xfer_partial>: Adjust describing comment.
2802
2803 2013-08-22 Alan Modra <amodra@gmail.com>
2804
2805 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2806 * configure.tgt: Likewise as targets.
2807
2808 2013-08-20 Doug Evans <dje@google.com>
2809
2810 * buildsym.c (subfile_stack): Move here from buildsym.h.
2811 (pending_macros): Ditto.
2812 (get_macro_table): New function.
2813 (buildsym_init): Initialize subfile_stack.
2814 * coffread.c (type_vector,type_vector_length): Moved here from
2815 buildsym.h.
2816 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2817 (coff_symtab_read): Use it.
2818 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2819 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2820 with call to get_macro_table.
2821 * stabsread.c (type_vector,type_vector_length): Moved here from
2822 buildsym.h.
2823 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2824 * buildsym.h (get_macro_table): Declare.
2825
2826 2013-08-20 Tom Tromey <tromey@redhat.com>
2827
2828 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2829 Update.
2830 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2831
2832 2013-08-20 Doug Evans <dje@google.com>
2833
2834 * blockframe.c: Remove #include "psymtab.h".
2835 * cp-support.c: Ditto.
2836 * source.c: Ditto.
2837 * stack.c: Ditto.
2838
2839 2013-08-20 Tom Tromey <tromey@redhat.com>
2840
2841 PR python/15816:
2842 * exceptions.h (return_mask): Now an enum.
2843 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2844 enum constants.
2845
2846 2013-08-20 Tom Tromey <tromey@redhat.com>
2847
2848 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2849 get_objfile_arch.
2850 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2851 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2852 * jit.c (jit_object_close_impl): Update.
2853 * jv-lang.c (get_dynamics_objfile): Update.
2854 * linespec.c (add_minsym): Use get_dynamics_objfile.
2855 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2856 (allocate_objfile): Don't initialize 'gdbarch' field.
2857 (get_objfile_arch): Update.
2858 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2859 moved from...
2860 (struct objfile) <gdbarch>: ... here. Remove.
2861 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2862 get_objfile_arch.
2863 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2864
2865 2013-08-20 Alan Modra <amodra@gmail.com>
2866
2867 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2868 for IBM long double nan and inf.
2869 (floatformat_is_negative, floatformat_classify,
2870 floatformat_mantissa): Similarly.
2871 (floatformat_ieee_single, floatformat_ieee_double,
2872 floatformat_ieee_quad, floatformat_arm_ext,
2873 floatformat_ia64_spill): Delete unused vars.
2874 (_initialize_doublest): Delete unused function.
2875 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2876 little-endian variants of floatformat_ibm_long_double.
2877
2878 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2879
2880 * Makefile.in (SFILES): Remove common/target-common.c and
2881 add target/waitstatus.c.
2882 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2883 target/resume.h, target/wait.h and target/waitstatus.h.
2884 (COMMON_OBS): Remove target-common.o and add
2885 waitstatus.o.
2886 (target-common.o): Remove.
2887 (waitstatus.o): New target object file.
2888 * common/target-common.c: Move contents to
2889 target/waitstatus.c and remove.
2890 * common/target-common.h: Move contents to other files and
2891 remove.
2892 (enum resume_kind: Move to target/resume.h.
2893 (TARGET_WNOHANG): Move to target/wait.h.
2894 (enum target_waitkind): Move to target/waitstatus.h.
2895 (struct target_waitstatus): Likewise.
2896 * target.h: Do not include target-common.h and
2897 include target/resume.h, target/wait.h and
2898 target/waitstatus.h.
2899 * target/resume.h: New file.
2900 * target/wait.h: New file.
2901 * target/waitstatus.h: New file.
2902 * target/waitstatus.c: New file.
2903
2904 2013-08-19 Pedro Alves <palves@redhat.com>
2905
2906 * linux-nat.c (linux_test_for_tracefork)
2907 (linux_test_for_tracesysgood, linux_child_follow_fork)
2908 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2909 (linux_nat_wait_1): Extend comment.
2910 (linux_async_pipe): Add comment.
2911
2912 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2913
2914 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2915 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2916 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2917 Update to account for fact that PC is now a pseudo-register.
2918 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2919 cases for RL78_PC_REGNUM.
2920
2921 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2922
2923 PR cli/15841
2924 * top.c (quit_force): Skip writing history file
2925 if input is not from terminal.
2926
2927 2013-08-14 Tom Tromey <tromey@redhat.com>
2928
2929 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2930 resultthreadlist>: New fields.
2931 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2932 (remote_get_threadlist, remote_threadlist_iterator): Use
2933 new fields. Remove static variables.
2934
2935 2013-08-14 Tom Tromey <tromey@redhat.com>
2936
2937 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2938 remote_watch_data_address>: New fields.
2939 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2940 (process_stop_reply, remote_wait_as)
2941 (remote_check_watch_resources, remote_stopped_data_address): Update.
2942
2943 2013-08-14 Tom Tromey <tromey@redhat.com>
2944
2945 * remote.c (struct remote_state) <async_client_callback,
2946 async_client_context>: New fields.
2947 (async_client_callback, async_client_context): Remove.
2948 (remote_async_serial_handler, remote_async): Update.
2949
2950 2013-08-14 Tom Tromey <tromey@redhat.com>
2951
2952 * remote.c (sizeof_pkt): Remove.
2953 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2954
2955 2013-08-14 Tom Tromey <tromey@redhat.com>
2956
2957 * remote.c (struct remote_state) <use_threadinfo_query,
2958 use_threadextra_query>: New fields.
2959 (remote_threads_info, remote_threads_extra_info)
2960 (remote_open_1): Update.
2961
2962 2013-08-14 Tom Tromey <tromey@redhat.com>
2963
2964 * remote.c (struct remote_state) <finished_object,
2965 finished_annex, finished_offset>: New fields.
2966 (remote_read_qxfer): Use remote_state fields; remove static
2967 variables.
2968
2969 2013-08-14 Tom Tromey <tromey@redhat.com>
2970
2971 * remote.c (struct remote_state) <last_sent_step>:
2972 New field.
2973 (last_sent_step): Remove.
2974 (remote_resume, remote_wait_as): Update.
2975
2976 2013-08-14 Tom Tromey <tromey@redhat.com>
2977
2978 * remote.c (struct remote_state) <last_sent_signal>:
2979 New field.
2980 (last_sent_signal): Remove.
2981 (new_remote_state, remote_resume, remote_wait_as): Update.
2982
2983 2013-08-14 Tom Tromey <tromey@redhat.com>
2984
2985 * remote.c (struct remote_state) <last_program_signals_packet>:
2986 New field.
2987 (last_program_signals_packet): Remove.
2988 (remote_program_signals, remote_open_1): Update.
2989
2990 2013-08-14 Tom Tromey <tromey@redhat.com>
2991
2992 * remote.c (struct remote_state) <last_pass_packet>:
2993 New field.
2994 (last_pass_packet): Remove.
2995 (remote_pass_signals, remote_open_1): Update.
2996
2997 2013-08-14 Tom Tromey <tromey@redhat.com>
2998
2999 * remote.c (struct remote_state) <remote_traceframe_number>:
3000 New field.
3001 (remote_traceframe_number): Remove.
3002 (new_remote_state, remote_open_1, set_remote_traceframe)
3003 (remote_trace_find): Update.
3004
3005 2013-08-14 Tom Tromey <tromey@redhat.com>
3006
3007 * remote.c (struct remote_state) <general_thread, continue_thread>:
3008 New fields.
3009 (general_thread, continue_thread): Remove.
3010 (record_currthread, set_thread, set_general_process)
3011 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3012 (extended_remote_mourn_1): Update.
3013
3014 2013-08-14 Tom Tromey <tromey@redhat.com>
3015
3016 * remote.c (struct remote_state) <remote_desc>: New field.
3017 (remote_desc): Remove.
3018 (remote_threads_info, remote_threads_extra_info, remote_close)
3019 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3020 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3021 (remote_hostio_send_command, remote_file_put, remote_file_get)
3022 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3023 (remote_async, remote_new_objfile, set_range_stepping): Update.
3024
3025 2013-08-14 Tom Tromey <tromey@redhat.com>
3026
3027 * remote.c (remote_state): Now a pointer.
3028 (get_remote_state_raw): Update.
3029 (new_remote_state): New function.
3030 (_initialize_remote): Use new_remote_state.
3031
3032 2013-08-14 Tom Tromey <tromey@redhat.com>
3033
3034 * remote.c (remote_protocol_features): Now const.
3035
3036 2013-08-14 Tom Tromey <tromey@redhat.com>
3037
3038 * remote.c (crc32_table, crc32): Remove.
3039 (remote_verify_memory): Use xcrc32.
3040
3041 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3042
3043 * value.h (create_internalvar_type_lazy): Adjust prototype
3044 declaration.
3045
3046 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3047
3048 * common/format.c (parse_format_string): Don't allow '#' flag for
3049 pointer arguments in format string.
3050
3051 2013-08-13 Pierre Muller <muller@sourceware.org>
3052
3053 * utils.c (init_page_info): Only call tgetnum function
3054 if rl_get_screen_size did not return useful values.
3055
3056 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3057
3058 PR breakpoints/15117
3059 * linespec.c (linespec_parse_basic): Check for convenience
3060 variable or history value while parsing.
3061
3062 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3063
3064 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3065 AVR.
3066 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3067 different signals between the generic Linux kernel implementation
3068 and AVR's.
3069 (avr_linux_gdb_signal_from_target): Delete.
3070 (avr_linux_gdb_signal_to_target): Delete.
3071 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3072
3073 2013-08-09 Doug Evans <dje@google.com>
3074
3075 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3076 entries.
3077
3078 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3079
3080 * linux-tdep.c: Define enum with generic signal numbers.
3081 (linux_gdb_signal_from_target): New function.
3082 (linux_gdb_signal_to_target): Likewise.
3083 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3084 methods to the functions above.
3085 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3086 (linux_gdb_signal_to_target): Likewise.
3087 * alpha-linux-tdep.c: Define new enum with signals different
3088 from generic Linux kernel.
3089 (alpha_linux_gdb_signal_from_target): New function.
3090 (alpha_linux_gdb_signal_to_target): Likewise.
3091 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3092 with the functions mentioned above.
3093 * avr-tdep.c: Define enum with differences between Linux kernel
3094 and AVR signals.
3095 (avr_linux_gdb_signal_from_target): New function.
3096 (avr_linux_gdb_signal_to_target): Likewise.
3097 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3098 the functions mentioned above.
3099 * sparc-linux-tdep.c: Define enum with differences between SPARC
3100 and generic Linux kernel signal numbers.
3101 (sparc32_linux_gdb_signal_from_target): New function.
3102 (sparc32_linux_gdb_signal_to_target): Likewise.
3103 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3104 to the functions defined above.
3105 * xtensa-linux-tdep.c: Define enum with differences between
3106 Xtensa and Linux kernel generic signals.
3107 (xtensa_linux_gdb_signal_from_target): New function.
3108 (xtensa_linux_gdb_signal_to_target): Likewise.
3109 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3110 to the functions defined above.
3111 * mips-linux-tdep.c: Define enum with differences between
3112 signals in MIPS and Linux kernel generic ones.
3113 (mips_gdb_signal_to_target): New function.
3114 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3115 only different signals from the Linux kernel generic.
3116 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3117 the functions defined above.
3118 * mips-linux-tdep.h (enum mips_signals): Remove.
3119
3120 2013-08-09 Pedro Alves <palves@redhat.com>
3121
3122 * avr-tdep.c (XMALLOC): Delete macro.
3123 * cli/cli-dump.c (XMALLOC): Delete macro.
3124
3125 2013-08-09 Pedro Alves <palves@redhat.com>
3126
3127 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3128 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3129 (fopen_with_cleanup, add_dump_command): Make static.
3130 * cli/cli-dump.h: Delete file.
3131 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3132 cli/cli-dump.h.
3133
3134 2013-08-09 Pedro Alves <palves@redhat.com>
3135
3136 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3137 error message.
3138
3139 2013-08-09 Pedro Alves <palves@redhat.com>
3140
3141 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3142 error message.
3143
3144 2013-08-09 Pedro Alves <palves@redhat.com>
3145
3146 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3147 (gcore_command): Use tilde_expand here, and when showing the
3148 filename to the user, show the expanded version.
3149
3150 2013-08-09 Yao Qi <yao@codesourcery.com>
3151
3152 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3153 'entryval' is set.
3154
3155 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3156
3157 * gcore.c (create_gcore_bfd): Use tilde_expand.
3158
3159 2013-08-08 Yao Qi <yao@codesourcery.com>
3160
3161 * frame.h (read_frame_local): Declare.
3162 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3163 read_frame_local.
3164 * stack.c (read_frame_local): New.
3165
3166 2013-08-08 Yao Qi <yao@codesourcery.com>
3167
3168 * mi/mi-cmd-stack.c: Update comments to function
3169 list_args_or_locals.
3170
3171 2013-08-07 Tom Tromey <tromey@redhat.com>
3172
3173 PR symtab/15028:
3174 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3175 (process_psymtab_comp_unit_reader): Use it.
3176 (process_psymtab_comp_unit): Update. Add "pretend_language"
3177 argument.
3178 (dwarf2_build_psymtabs_hard): Update.
3179 (scan_partial_symbols): Pass CU's language to
3180 process_psymtab_comp_unit.
3181
3182 2013-08-07 Tom Tromey <tromey@redhat.com>
3183
3184 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3185 (dwarf2_gdb_index_functions): Update.
3186 * psymtab.c (find_symbol_file_from_partial): Remove.
3187 (psym_functions): Update.
3188 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3189 Remove.
3190
3191 2013-08-07 Tom Tromey <tromey@redhat.com>
3192
3193 * symfile.c (set_initial_language): Look up "main" symbol
3194 and use its language.
3195 * symtab.c (find_main_filename): Remove.
3196 * symtab.h (find_main_filename): Remove.
3197
3198 2013-08-07 Tom Tromey <tromey@redhat.com>
3199
3200 * dwarf2read.c (recursively_compute_inclusions): Add
3201 "immediate_parent" argument. Set symtab's "user" field
3202 if not set.
3203 (compute_symtab_includes): Update.
3204
3205 2013-08-07 Tom Tromey <tromey@redhat.com>
3206
3207 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3208 when adding label symbols.
3209
3210 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3211 Ulrich Weigand <uweigand@de.ibm.com>
3212
3213 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3214 * configure.host (powerpc64-*-aix*): Likewise.
3215
3216 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3217 Ulrich Weigand <uweigand@de.ibm.com>
3218
3219 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3220 is defined.
3221 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3222 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3223 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3224 * configure.ac: Check for ptrace64.
3225 * configure, config.in: Regenerate.
3226
3227 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3228 Ulrich Weigand <uweigand@de.ibm.com>
3229
3230 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3231 Call ptrace64 instead of ptrace if defined.
3232 Add macro addr_ptr to take care of ptrace address argument.
3233 (pdc_read_regs): Likewise.
3234 (pdc_write_regs): Likewise.
3235 (aix_thread_resume): Likewise.
3236 (fetch_regs_kernel_thread): Likewise.
3237 (store_regs_kernel_thread): Likewise.
3238
3239 2013-08-07 Anton Blanchard <anton@samba.org>
3240
3241 * MAINTAINERS: Add myself to Write After Approval.
3242
3243 2013-08-05 Tom Tromey <tromey@redhat.com>
3244
3245 * aix-thread.c (_initialize_aix_thread): Use
3246 complete_target_initialization.
3247 * bsd-uthread.c (_initialize_bsd_uthread): Use
3248 complete_target_initialization.
3249 * dec-thread.c (_initialize_dec_thread): Use
3250 complete_target_initialization.
3251 * ravenscar-thread.c (_initialize_ravenscar): Use
3252 complete_target_initialization.
3253 * sol-thread.c (_initialize_sol_thread): Use
3254 complete_target_initialization.
3255 * spu-multiarch.c (_initialize_spu_multiarch): Use
3256 complete_target_initialization.
3257
3258 2013-08-05 Tom Tromey <tromey@redhat.com>
3259
3260 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3261 * ada-lang.c (ada_lookup_simple_minsym): Return
3262 bound_minimal_symbol.
3263 * ada-lang.h (ada_lookup_simple_minsym): Update.
3264 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3265 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3266 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3267 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3268 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3269 * minsyms.c (msymbol_objfile): Remove.
3270 (lookup_minimal_symbol_internal): New function, from
3271 lookup_minimal_symbol.
3272 (lookup_minimal_symbol): Rewrite using
3273 lookup_minimal_symbol_internal.
3274 (lookup_bound_minimal_symbol): New function.
3275 * minsyms.h (msymbol_objfile): Remove.
3276 (lookup_bound_minimal_symbol): Declare.
3277 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3278 * parse.c (write_exp_msymbol): Change parameter to a
3279 bound_minimal_symbol.
3280 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3281 * parser-defs.h (write_exp_msymbol): Update.
3282 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3283 * symfile.c (simple_read_overlay_table): Use
3284 lookup_bound_minimal_symbol.
3285 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3286 (search_symbols): Likewise.
3287 (print_msymbol_info): Take a bound_minimal_symbol argument.
3288 (symtab_symbol_info, rbreak_command): Update.
3289 * symtab.h (struct symbol_search) <msymbol>: Change type
3290 to bound_minimal_symbol.
3291 * valops.c (find_function_in_inferior): Use
3292 lookup_bound_minimal_symbol.
3293 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3294
3295 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3296
3297 Code cleanup.
3298 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3299 to ...
3300 (async_cleanup_sigint_signal_handler): ... this.
3301 (initialize_sigint_signal_handler): Remove declaration.
3302 (handle_remote_sigint): Rename the declaration to ...
3303 (async_handle_remote_sigint): ... this.
3304 (handle_remote_sigint_twice): Rename the declaration to ...
3305 (async_handle_remote_sigint_twice): ... this.
3306 (async_remote_interrupt, async_remote_interrupt_twice)
3307 (remote_interrupt): Remove the declarations.
3308 (remote_interrupt_twice): Rename the declaration ...
3309 (sync_remote_interrupt_twice): ... this.
3310 (sigint_remote_twice_token): Rename the variable to ...
3311 (async_sigint_remote_twice_token): ... this.
3312 (sigint_remote_token): Rename the variable to ...
3313 (async_sigint_remote_token): ... this.
3314 (initialize_sigint_signal_handler): Rename the function to ...
3315 (async_initialize_sigint_signal_handler): ... this. Update the name
3316 inside.
3317 (handle_remote_sigint): Rename the function to ...
3318 (async_handle_remote_sigint): ... this. Update the names inside.
3319 (handle_remote_sigint_twice): Rename the function to ...
3320 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3321 (cleanup_sigint_signal_handler): Rename the function to ...
3322 (async_cleanup_sigint_signal_handler): ... this.
3323 (remote_interrupt): Rename the function to ...
3324 (sync_remote_interrupt): this. Update the names inside.
3325 (remote_interrupt_twice): Rename the function to ...
3326 (sync_remote_interrupt_twice): this. Update the names inside.
3327 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3328 (_initialize_remote): Update the names inside.
3329
3330 2013-08-02 Tom Tromey <tromey@redhat.com>
3331
3332 PR symtab/15719:
3333 * breakpoint.c (update_watchpoint, watchpoint_check)
3334 (watch_command_1): Update.
3335 * eval.c (fetch_subexp_value): Add "preserve_errors"
3336 parameter.
3337 * ppc-linux-nat.c (check_condition): Update.
3338 * value.h (fetch_subexp_value): Update.
3339
3340 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3341
3342 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3343 add_file_handler.
3344
3345 2013-08-01 Doug Evans <dje@google.com>
3346
3347 PR symtab/15691
3348 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3349 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3350 Add assert of sig_entry->dwo_unit == NULL.
3351 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3352 had already been read.
3353 (read_signatured_type): Set per_cu.tu_read.
3354
3355 PR symtab/15695
3356 * valops.c (value_struct_elt): Add missing call to check_typedef.
3357 (value_find_oload_method_list): Ditto.
3358
3359 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3360 effectively, struct symbol_search **.
3361 (make_cleanup_free_search_symbols): Change arg to struct
3362 symbol_search **. All callers updated.
3363 (compare_search_syms): Compare symtab file name and block as well.
3364 (search_symbols_equal): New function.
3365 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3366 New args new_head, new_tail. Result is now void. Remove dups after
3367 sorting the symbols.
3368 (search_symbols): Sort all found symbols once, after all have been
3369 found, and remove duplicates. Simplify cleanup tracking of result.
3370 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3371
3372 Further workarounds for binutils/15021.
3373 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3374 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3375 Watch for duplicate symtabs coming from type units.
3376 (compute_symtab_includes): Update call to
3377 recursively_compute_inclusions. Build vector of included symtabs
3378 instead of per_cus.
3379 * symtab.h (symtab_ptr): New typedef.
3380 (DEF_VEC_P (symtab_ptr)): New VEC type.
3381 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3382 instead.
3383
3384 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3385
3386 * cli/cli-script.c (script_from_file): Remove use of
3387 error_pre_print.
3388 * main.c (captured_main): Remove use of error_pre_print and
3389 quit_pre_print.
3390 * utils.c (error_pre_print, quit_pre_print): Remove.
3391 * utils.h (error_pre_print, quit_pre_print): Likewise.
3392
3393 2013-08-01 Yao Qi <yao@codesourcery.com>
3394
3395 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3396 with mi_getopt.
3397 (mi_cmd_stack_list_variables): Likewise.
3398
3399 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3400
3401 * exceptions.c (deprecated_throw_reason): Remove.
3402 * exceptions.h (deprecated_throw_reason): Remove.
3403
3404 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3405
3406 * remote-mips.c (mips_error): Replace use of
3407 deprecated_throw_reason with throw_verror. Use the error message
3408 passed to mips_error as the error message for throw_verror.
3409
3410 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3411
3412 * monitor.c (monitor_interrupt_query): Replace use of
3413 deprecated_throw_reason with quit.
3414 * nto-procfs.c (interrupt_query): Likewise.
3415 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3416 * remote-mips.c (mips_kill): Likewise.
3417 * remote.c (interrupt_query): Likewise.
3418
3419 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3420
3421 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3422 with call to fatal.
3423
3424 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3425 Yao Qi <yao@codesourcery.com>
3426
3427 * tracepoint.c (trace_dump_command): Select the current frame.
3428
3429 2013-07-30 Doug Evans <dje@google.com>
3430
3431 * dwarf2read.c (process_queue): Add type signature to debug output.
3432
3433 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3434
3435 * value.c (value_fetch_lazy): Mark optimized out values as such
3436 rather than raising an error.
3437
3438 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3439
3440 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3441 before checking which bits of the parent, not the child, value are
3442 valid.
3443
3444 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3445
3446 PR gdb/15715
3447 * top.c: Include "filenames.h".
3448 (set_history_filename): New function.
3449 (init_main): Install it as set hook of the "set history filename"
3450 command.
3451
3452 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3453
3454 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3455 attribute parameter.
3456 (dwarf2_const_value_data): Constify struct attribute parameter.
3457 (dwarf2_const_value): Constify struct attribute parameter.
3458 (dwarf2_const_value_attr): Constify struct attribute parameter.
3459 (lookup_die_type): Constify struct attribute parameter.
3460 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3461 (follow_die_ref_or_sig): Constify struct attribute parameter.
3462 (follow_die_ref): Constify struct attribute parameter.
3463 (follow_die_sig): Constify struct attribute parameter.
3464 (get_DW_AT_signature_type): Constify struct attribute parameter.
3465 (get_type_unit_group): Constify struct attribute parameter.
3466 (fill_in_loclist_baton): Constify struct attribute parameter.
3467 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3468 (type_unit_group): Constify struct attribute parameter.
3469
3470 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3471
3472 * dwarf2read.c (attr_form_is_block): Make argument const.
3473 (attr_form_is_section_offset): Make argument const.
3474 (attr_form_is_constant): Make argument const.
3475 (attr_form_is_ref): Make argument const.
3476
3477 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3478
3479 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3480 All uses updated.
3481 (attr_form_is_ref): Moved below attr_form_is_constant.
3482
3483 2013-07-29 Doug Evans <dje@google.com>
3484
3485 * main.c (captured_command_loop): Tweak comment.
3486
3487 * target.c (target_async_permitted_1): Fix comment.
3488
3489 * symtab.c (iterate_over_some_symtabs): Add comment.
3490
3491 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3492
3493 2013-07-27 Yao Qi <yao@codesourcery.com>
3494
3495 * NEWS: Mention that GDBserver now supports hardware
3496 watchpoints on the MIPS GNU/Linux target.
3497
3498 2013-07-27 Yao Qi <yao@codesourcery.com>
3499
3500 * Makefile.in (HFILES_NO_SRCDIR): Add
3501 common/mips-linux-watch.h.
3502 (mips-linux-watch.o): New rule.
3503 * common/mips-linux-watch.c: New.
3504 * common/mips-linux-watch.h: New.
3505 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3506 * mips-linux-nat.c: Include mips-linux-watch.h.
3507 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3508 to common/mips-linux-watch.h.
3509 (MAX_DEBUG_REGISTER): Likewise.
3510 (enum pt_watch_style): Likewise.
3511 (struct mips32_watch_regs): Likewise.
3512 (struct mips64_watch_regs): Likewise.
3513 (struct pt_watch_regs): Likewise.
3514 (struct mips_watchpoint): Likewise.
3515 (mips_linux_watch_get_irw_mask): Move to
3516 common/mips-linux-watch.c.
3517 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3518 (mips_linux_watch_get_watchlo): Likewise.
3519 (mips_linux_watch_set_watchlo): Likewise.
3520 (mips_linux_watch_get_watchhi): Likewise.
3521 (mips_linux_watch_set_watchhi): Likewise.
3522 (mips_linux_read_watch_registers): Likewise.
3523 (mips_linux_watch_type_to_irw): Likewise.
3524 (mips_linux_stopped_data_address, fill_mask): Likewise.
3525 (mips_linux_watch_try_one_watch): Likewise.
3526 (mips_linux_watch_populate_regs): Likewise.
3527
3528 2013-07-27 Yao Qi <yao@codesourcery.com>
3529
3530 * mips-linux-nat.c (get_irw_mask): Rename to ...
3531 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3532 'set' to 'n'. Update function comment. All callers changed.
3533 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3534 function comment. All callers changed.
3535 (get_num_valid): Rename to ...
3536 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3537 'set' to 'n'. Update function comment. All callers changed.
3538 (get_watchlo): Rename to ...
3539 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3540 'set' to 'n'. Update function comment. All callers changed.
3541 (set_watchlo): Rename to ...
3542 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3543 'set' to 'n'. Update function comment. All callers changed.
3544 (get_watchhi): Rename to ...
3545 (mips_linux_watch_get_watchhi): ... this. Update function
3546 comment. All callers changed.
3547 (set_watchhi): Rename to ...
3548 (mips_linux_watch_set_watchhi): ... this. Update function
3549 comment. All callers changed.
3550 (mips_linux_read_watch_registers): Update function comment.
3551 Add new parameters 'lwpid', 'watch_readback', and
3552 'watch_readback_valid'. Update.
3553 (type_to_irw): Rename to ...
3554 (mips_linux_watch_type_to_irw): ... this. Update function
3555 comment. All callers changed.
3556 (fill_mask): Update function comment.
3557 (try_one_watch): Rename to ...
3558 (mips_linux_watch_try_one_watch): ... this. Change the type
3559 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3560 (populate_regs_from_watches): Rename to ...
3561 (mips_linux_watch_populate_regs): ... this. Add parameter
3562 'current_watches'. All callers changed.
3563
3564 2013-07-27 Yao Qi <yao@codesourcery.com>
3565
3566 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3567 the code.
3568 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3569 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3570 (struct pt_watch_regs): Likewise.
3571 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3572 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3573 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3574 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3575 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3576
3577 2013-07-27 Yao Qi <yao@codesourcery.com>
3578
3579 * breakpoint.h: Include break-common.h.
3580 (enum target_hw_bp_type): Move to ...
3581 * common/break-common.h: ... here. New.
3582
3583 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3584
3585 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3586 process group regardless of having tty on stdin.
3587
3588 2013-07-25 Doug Evans <dje@google.com>
3589
3590 * linux-fork.h (detach_fork): Delete.
3591
3592 2013-07-25 Tom Tromey <tromey@redhat.com>
3593
3594 PR remote/15256, PR remote/15266:
3595 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3596 * monitor.c (monitor_detach): Use unpush_target.
3597 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3598 * remote-mips.c (mips_detach): Use unpush_target. Don't
3599 call mips_close.
3600 * remote-sim.c (gdbsim_detach): Use unpush_target.
3601 * target.c (pop_target): Remove.
3602 (pop_all_targets_above): Don't call target_close.
3603 (target_close): Assert that the target is unpushed.
3604 * target.h (pop_target): Don't declare.
3605 * tracepoint.c (tfile_open): Use unpush_target.
3606
3607 2013-07-25 Tom Tromey <tromey@redhat.com>
3608
3609 * linux-thread-db.c (init_thread_db_ops): Call
3610 complete_target_initialization.
3611 (_initialize_thread_db): Don't call add_target.
3612 * target.c (complete_target_initialization): New function.
3613 (add_target_with_completer): Call it.
3614 * target.h (complete_target_initialization): Declare.
3615
3616 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3617
3618 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3619 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3620 (HPPANBSD_SIZEOF_GREGS): New define.
3621 (hppaobsd_supply_gregset): Handle additional registers.
3622 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3623 we provide more registers now.
3624 (hppabsd_supply_gregset): Supply additional registers.
3625 (hppabsd_collect_gregset): Collect additional registers.
3626
3627 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3628
3629 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3630 (hppabsd_dwarf2_frame_init_reg): New function.
3631 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3632
3633 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3634
3635 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3636 'z' format code. Remove error for optimized out values, standard
3637 code will handle these fine.
3638
3639 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3640
3641 * NEWS: Mention new 'z' formatter.
3642 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3643 (_initialize_printcmd): Mention 'z' formatter in help text of the
3644 'x' command.
3645
3646 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3647
3648 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3649 formatting.
3650
3651 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3652
3653 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3654 interface can evaluate arguments. Fallback to the old mode if it
3655 cannot.
3656 (create_exception_master_breakpoint): Likewise.
3657 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3658 (struct sym_probe_fns elf_probe_fns): Export function above to the
3659 probe interface.
3660 * probe.c (can_evaluate_probe_arguments): New function.
3661 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3662 function pointer.
3663 (can_evaluate_probe_arguments): New function prototype.
3664 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3665 probe interface can evaluate arguments. Fallback to the old mode
3666 if it cannot.
3667 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3668 interface can evaluate arguments. Warning the user if it cannot.
3669 (stap_can_evaluate_probe_arguments): New function.
3670 (struct probe_ops stap_probe_ops): Export function above to the
3671 probe interface.
3672 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3673 New function pointer.
3674
3675 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3676
3677 * Makefile.in (SFILES): Add common/target-common.c.
3678 Add common/target-common.h to headers.
3679 (COMMON_OBS): Add target-common.o.
3680 (target-common.o): New target.
3681 * linux-nat.h (resume_kind): Move to common/target-common.h.
3682 * target.c (target_waitstatus_to_string): Move to
3683 common/target-common.c.
3684 * target.h: Include target-common.h.
3685 (target_waitkind): Move to common/target-common.h.
3686 (target_waitstatus): Likewise.
3687 (TARGET_WNOHANG): Likewise.
3688 * common/target-common.c: New file.
3689 * common/target-common.h: New file.
3690
3691 2013-07-24 Doug Evans <dje@google.com>
3692
3693 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3694 a warning.
3695
3696 2013-07-23 Yao Qi <yao@codesourcery.com>
3697
3698 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3699 parameter 'gdbarch'.
3700 (i386_stack_tramp_frame_sniffer): Caller update.
3701 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3702 parameter 'gdbarch' and 'target'.
3703 (i386_linux_core_read_description): Caller update.
3704 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3705 Likewise.
3706 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3707 declaration.
3708
3709 2013-07-23 Tom Tromey <tromey@redhat.com>
3710
3711 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3712 2013-07-22.
3713
3714 2013-07-22 Doug Evans <dje@google.com>
3715
3716 * exec.h (remove_target_sections): Delete arg abfd.
3717 * exec.c (exec_close): Update call to remove_target_sections.
3718 (remove_target_sections): Delete arg abfd.
3719 * solib.c (update_solib_list): Ditto.
3720 (reload_shared_libraries_1): Ditto.
3721 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3722 * target.h (struct target_section): Rename key to owner.
3723 All uses updated.
3724
3725 2013-07-22 Tom Tromey <tromey@redhat.com>
3726
3727 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3728
3729 2013-07-22 Tom Tromey <tromey@redhat.com>
3730
3731 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3732 Simplify cleanup handling.
3733
3734 2013-07-22 Tom Tromey <tromey@redhat.com>
3735
3736 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3737 on all return paths.
3738
3739 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3740
3741 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3742 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3743 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3744
3745 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3746
3747 * top.c (print_gdb_version): Add help, apropos description and
3748 url to online documentation.
3749
3750 2013-07-19 Hui Zhu <hui@codesourcery.com>
3751
3752 PR gdb/15692
3753 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3754
3755 2013-07-19 Yao Qi <yao@codesourcery.com>
3756
3757 * target.c (update_current_target): Change the default action
3758 of 'to_traceframe_info' from tcomplain to return_zero.
3759 * target.h (struct target_ops) <to_traceframe_info>: Add more
3760 comments.
3761 * valops.c (read_value_memory): Call
3762 traceframe_available_memory unconditionally.
3763
3764 2013-07-18 Yao Qi <yao@codesourcery.com>
3765
3766 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3767 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3768 symbol without prefix. If found, set its type to
3769 'mst_solib_trampoline'.
3770
3771 2013-07-17 Doug Evans <dje@google.com>
3772
3773 * NEWS: Mention "set print raw frame-arguments".
3774 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3775 * stack.c (print_raw_frame_arguments): New static global.
3776 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3777 (_initialize_stack): New command "set/show print raw frame-arguments".
3778 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3779 (set_print_raw, show_print_raw): New functions.
3780 (_initialize_valprint): New prefix command "set/show print raw".
3781 * valprint.h (value_print_options): Improve comments.
3782
3783 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3784 of all *list variables.
3785
3786 * gdbcmd.h (togglelist): Delete.
3787 * cli/cli-cmds.c (togglelist): Delete.
3788 (init_cmd_lists): Update.
3789 * cli/cli-cmds.h (togglelist): Delete.
3790
3791 2013-07-17 Tom Tromey <tromey@redhat.com>
3792
3793 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3794 dwarf2_per_objfile.
3795
3796 2013-07-16 Doug Evans <dje@google.com>
3797
3798 * nto-tdep.c (nto_relocate_section_addresses): Update,
3799 target_section.bfd deleted.
3800 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3801 * s390-tdep.c (s390_load): Ditto.
3802 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3803
3804 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3805
3806 * common/format.c (parse_format_string): Add checks for NULL
3807 character before calling strchr.
3808
3809 2013-07-16 Doug Evans <dje@google.com>
3810
3811 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3812 temp_pathname argument.
3813 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3814 when opening the file fails.
3815
3816 * target.h (struct target_section): Delete member bfd.
3817 All users updated to use the_bfd_section->owner instead.
3818 * exec.c (add_to_section_table): Assert bfd is expected value.
3819 Remove initialization of target_section.bfd.
3820 (remove_target_sections): Update.
3821 (section_table_available_memory): Update.
3822 (section_table_xfer_memory_partial): Update.
3823 (print_section_info): Update.
3824 (exec_set_section_address): Update.
3825 * record-full.c (record_full_core_xfer_partial): Update.
3826 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3827 * solib-target.c (solib_target_relocate_section_addresses): Update.
3828 * symfile.c (build_section_addr_info_from_section_table): Update.
3829 * target.c (memory_xfer_live_readonly_partial): Update.
3830 (memory_xfer_partial_1): Update.
3831
3832 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3833
3834 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3835 now available for embedded (BookE) and server (BookS) processors,
3836 correct mentions of 'booke' and adjust comments accordingly in order to
3837 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3838 (have_ptrace_booke_interface): Rename function and variable
3839 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3840 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3841 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3842 'hwdebug_point_cmp'. Update all uses.
3843 (booke_find_thread_points_by_tid): Rename function
3844 'booke_find_thread_points_by_tid' to
3845 'hwdebug_find_thread_points_by_tid'. Update all uses.
3846 (booke_insert_point): Rename function 'booke_insert_point' to
3847 'hwdebug_insert_point'. Update all uses.
3848 (booke_remove_point): Rename function 'booke_remove_point' to
3849 'hwdebug_remove_point'. Update all uses.
3850
3851 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3852
3853 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3854 numbers with enum values.
3855
3856 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3857
3858 PR threads/13217
3859 * thread.c (thread_apply_all_command): Check for valid threads
3860 and thread count.
3861 (thread_array_cleanup): New struct.
3862 (set_thread_refcount): New function.
3863
3864 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3865
3866 * infcmd.c (default_print_one_register_info): Reuse function
3867 print_hex_chars.
3868
3869 2013-07-10 Tom Tromey <tromey@redhat.com>
3870
3871 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3872 (ada-exp.o): New target.
3873
3874 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3875
3876 * mt-tdep.c (mt_registers_info): Call
3877 get_no_prettyformat_print_options instead of
3878 get_raw_print_options (regression by last patch from Doug
3879 Evans).
3880
3881 2013-07-09 Pedro Alves <palves@redhat.com>
3882
3883 Checked in by Joel Brobecker <brobecker@adacore.com>.
3884 * ada-lang.c (coerce_unspec_val_to_type): Use
3885 value_optimized_out_const.
3886 * value.c (value_optimized_out_const): New function.
3887 * value.h (value_optimized_out_const): New declaration.
3888
3889 2013-07-09 Doug Evans <dje@google.com>
3890
3891 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3892 Enum values rename as well. All uses updated.
3893 * valprint.h (value_print_options): Rename member pretty to
3894 pretty format. Rename member prettyprint_arrays to
3895 prettyformat_arrays. Rename member prettyprint_structs to
3896 prettyformat_structs. All uses updated.
3897 (get_no_prettyformat_print_options): Renamed from
3898 get_raw_print_options.
3899 * valprint.c (get_no_prettyformat_print_options): Renamed from
3900 get_raw_print_options. All callers updated.
3901 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3902 All callers updated.
3903 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3904 All callers updated.
3905 (_initialize_valprint): Improve help text for "set print pretty" and
3906 "set print arrays".
3907
3908 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3909
3910 * value.c (value_bits_valid): Revert previous change, and change
3911 by Pedro on 2013-07-04, due to regressions in
3912 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3913
3914 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3915 Pedro Alves <palves@redhat.com>
3916
3917 * value.c (value_bits_valid): If the value is not lval_computed
3918 or has no check validity handler then the answer is the
3919 optimized_out flag, otherwise defer to the handler.
3920
3921 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3922
3923 * top.c (print_gdb_configuration): Explain in output of
3924 --configuration what does "relocatable" mean.
3925
3926 * main.c (print_gdb_help): Regroup options in the --help text.
3927 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3928 the relevant discussions.
3929
3930 2013-07-06 Yao Qi <yao@codesourcery.com>
3931
3932 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3933 Remove parameter 'lsal'.
3934 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3935 to inner block. Caller update.
3936 (base_breakpoint_create_breakpoints_sal): Update.
3937 (bkpt_create_breakpoints_sal): Likewise.
3938 (tracepoint_create_breakpoints_sal): Likewise.
3939 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3940 element 0 of vector 'canonical->sals'.
3941
3942 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3943
3944 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3945 register number instead of the pseudo register one.
3946 (rs6000_dwarf2_reg_to_regnum): Likewise.
3947
3948 2013-07-04 Pedro Alves <palves@redhat.com>
3949
3950 * findvar.c (value_of_register): Use allocate_optimized_out_value
3951 if the register has been optimized out, instead of
3952 set_value_optimized_out.
3953 * frame-unwind.c (frame_unwind_got_optimized): Use
3954 allocate_optimized_out_value.
3955
3956 2013-07-04 Pedro Alves <palves@redhat.com>
3957
3958 * value.c (value_bits_valid): If the value is not lval_computed,
3959 or doesn't have a check_validity hook, assume the value is entirely
3960 valid.
3961
3962 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3963
3964 * stack.c (read_frame_arg): No longer fetch lazy values.
3965 * value.c (value_optimized_out): If the value is not already
3966 marked optimized out, and is lazy then fetch it.
3967 (value_primitive_field): Move optimized out check to later in the
3968 function, after we have loaded any lazy values.
3969 (value_fetch_lazy): Use optimized out flag directly rather than
3970 calling optimized_out method.
3971
3972 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3973
3974 * valops.c: Don't include "user-regs.h".
3975 (value_fetch_lazy): Moved to value.c.
3976 * value.c: Include "user-regs.h".
3977 (value_fetch_lazy): Moved from valops.c.
3978
3979 2013-07-04 Yao Qi <yao@codesourcery.com>
3980
3981 Revert:
3982 2013-06-27 Yao Qi <yao@codesourcery.com>
3983
3984 * common/create-version.sh: Update comments. Handle the case
3985 that TARGET_ALIAS is empty.
3986
3987 2013-07-03 Pedro Alves <palves@redhat.com>
3988
3989 * Makefile.in (config.status): Depend on development.sh.
3990 (aclocal_m4_deps): Add libmcheck.m4.
3991 * acinclude.m4: Include libmcheck.m4.
3992 * configure.ac: Source development.sh instead of setting
3993 'development' here. --enable-libmcheck/--disable-libmcheck code
3994 factored out to GDB_AC_LIBMCHECK. Run it.
3995 * development.sh: New file.
3996 * libmcheck.m4: New file.
3997 * configure: Regenerate.
3998
3999 2013-07-02 Tom Tromey <tromey@redhat.com>
4000
4001 * contrib/ari/update-web-ari.sh: Update for version.in change.
4002
4003 2013-07-02 Tom Tromey <tromey@redhat.com>
4004
4005 * common/ptid.h: Comment fixes.
4006
4007 2013-07-01 Tom Tromey <tromey@redhat.com>
4008
4009 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4010 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4011 (dwarf2_read_index, create_all_comp_units): Update.
4012
4013 2013-07-01 Tom Tromey <tromey@redhat.com>
4014
4015 * configure.ac (build_warnings): Add -Wold-style-definition.
4016 * configure: Rebuild.
4017 * machoread.c (_initialize_machoread): Use "(void)".
4018 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4019 use "(void)".
4020
4021 2013-07-01 Tom Tromey <tromey@redhat.com>
4022
4023 * configure.ac (build_warnings): Add -Wold-style-declaration.
4024 * configure: Rebuild.
4025 * dsrec.c (make_srec): Use "static const", not "const static".
4026 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4027 not "const static".
4028 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4029 Use "static const", not "const static".
4030 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4031 not "const static".
4032 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4033 not "const static".
4034 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4035 not "const static".
4036 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4037 not "const static".
4038 (v850_dbtrap_breakpoint_from_pc): Likewise.
4039 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4040 not "const static".
4041
4042 2013-07-01 Tom Tromey <tromey@redhat.com>
4043
4044 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4045 * configure: Rebuild.
4046
4047 2013-07-01 Pedro Alves <palves@redhat.com>
4048
4049 * defs.h: Include "pathmax.h".
4050 * utils.c: Don't include sys/param.h.
4051 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4052 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4053 instead of MAXPATHLEN.
4054 * solib-sunos.c: Don't include sys/param.h.
4055 * xcoffread.c: Don't include sys/param.h.
4056 * bsd-kvm.c: Don't include sys/param.h.
4057 * darwin-nat.c: Don't include sys/param.h.
4058 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4059 * darwin-nat-info.c: Don't include sys/param.h.
4060 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4061 MAXPATHLEN.
4062 * i386obsd-nat.c: Don't include sys/param.h.
4063 * inf-child.c: Don't include sys/param.h.
4064 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4065 * linux-fork.c: Don't include sys/param.h.
4066 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4067 * linux-nat.c: Don't include sys/param.h.
4068 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4069 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4070 * m68klinux-nat.c: Don't include sys/param.h.
4071 * nbsd-nat.c: Don't include sys/param.h.
4072 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4073 * ppc-linux-nat.c: Don't include sys/param.h.
4074 * rs6000-nat.c: Don't include sys/param.h.
4075 * spu-linux-nat.c. Don't include sys/param.h.
4076 * windows-nat.c: Don't include sys/param.h.
4077 * xtensa-linux-nat.c: Don't include sys/param.h.
4078 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4079
4080 2013-07-01 Pedro Alves <palves@redhat.com>
4081
4082 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4083 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4084 * gnulib/aclocal.m4: Regenerate.
4085 * gnulib/config.in: Regenerate.
4086 * gnulib/configure: Regenerate.
4087 * gnulib/import/pathmax.h: New file.
4088 * gnulib/import/Makefile.am: Regenerate.
4089 * gnulib/import/Makefile.in: Regenerate.
4090 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4091 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4092 * gnulib/import/m4/pathmax.m4: New file.
4093
4094 2013-07-01 Pedro Alves <palves@redhat.com>
4095
4096 * configure.ac (GDBINIT): Define, depending on host.
4097 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4098 * top.c (PATH_MAX): Delete fallback definition.
4099 (GDBINIT_FILENAME): Delete.
4100 (gdbinit): Reimplement as const char array set to the GDBINIT
4101 string constant.
4102 * top.h (gdbinit): Make const.
4103 * configure, config.in: Regenerate.
4104
4105 2013-07-01 Pedro Alves <palves@redhat.com>
4106
4107 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4108 * cli/cli-cmds.h (source_script): Likewise.
4109 * exceptions.c (catch_command_errors_const): New function.
4110 * exceptions.h (catch_command_errors_const): Declare.
4111 * main.c (get_init_files): Make parameters const, and adjust.
4112 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4113 'local_gdbinit' locals const. Adjust to use
4114 catch_command_errors_const.
4115 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4116 'local_gdbinit' locals const.
4117
4118 2013-07-01 Pedro Alves <palves@redhat.com>
4119
4120 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4121 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4122 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4123 <unistd.h>.
4124
4125 2013-07-01 Pedro Alves <palves@redhat.com>
4126
4127 Import the "unistd" gnulib module.
4128 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4129 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4130 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4131 import/m4/unistd_h.m4.
4132 * gnulib/aclocal.m4: Renenerate.
4133 * gnulib/config.in: Renenerate.
4134 * gnulib/configure: Renenerate.
4135 * gnulib/import/Makefile.am: Renenerate.
4136 * gnulib/import/Makefile.in: Renenerate.
4137 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4138 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4139 * gnulib/import/m4/off_t.m4: New file.
4140 * gnulib/import/m4/ssize_t.m4: New file.
4141 * gnulib/import/m4/sys_types_h.m4: New file.
4142 * gnulib/import/m4/unistd_h.m4: New file.
4143 * gnulib/import/sys_types.in.h: New file.
4144 * gnulib/import/unistd.c: New file.
4145 * gnulib/import/unistd.in.h: New file.
4146
4147 2013-07-01 Pedro Alves <palves@redhat.com>
4148
4149 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4150 defined instead of checking HAVE_UNISTD_H.
4151
4152 2013-07-01 Pedro Alves <palves@redhat.com>
4153
4154 Reimport gnulib from scratch.
4155 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4156 import/m4/onceonly.m4.
4157 * gnulib/aclocal.m4: Renegerate.
4158 * gnulib/config.in: Renegerate.
4159 * gnulib/configure: Renegerate.
4160 * gnulib/import/Makefile.in: Renegerate.
4161 * gnulib/import/extra/update-copyright: Renegerate.
4162 * gnulib/import/m4/onceonly.m4: Delete.
4163
4164 2013-07-01 Pedro Alves <palves@redhat.com>
4165
4166 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4167
4168 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4169
4170 Code cleanup.
4171 * remote.c (async_remote_interrupt_twice): Make it static.
4172 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4173
4174 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4175
4176 * ia64-linux-tdep.c: Include <ctype.h>.
4177 (ia64_linux_stap_is_single_operand): New function.
4178 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4179
4180 2013-06-28 Tom Tromey <tromey@redhat.com>
4181
4182 * Makefile.in (version.c): Use version.in, not
4183 common/version.in.
4184 * common/create-version.sh: Likewise.
4185 * common/version.in: Move...
4186 * version.in: ...here.
4187
4188 2013-06-28 Pedro Alves <palves@redhat.com>
4189
4190 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4191 here.
4192 * utils.h (pagination_enabled): Declare.
4193
4194 2013-06-28 Pedro Alves <palves@redhat.com>
4195
4196 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4197 Move higher up in file.
4198
4199 2013-06-28 Tom Tromey <tromey@redhat.com>
4200
4201 * tracepoint.c (deprecated_readline_begin_hook)
4202 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4203 declare.
4204
4205 2013-06-28 Pedro Alves <palves@redhat.com>
4206
4207 PR tui/14880
4208 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4209 checking if they're available.
4210 * value.c (value_available_contents_eq): Change comment.
4211 * value.h (value_available_contents_eq): Expand comment.
4212
4213 2013-06-27 Tom Tromey <tromey@redhat.com>
4214
4215 * target.c (find_run_target): Remove.
4216 * target.h (find_run_target): Remove.
4217
4218 2013-06-27 Tom Tromey <tromey@redhat.com>
4219
4220 * corelow.c (core_gdbarch): Now static.
4221
4222 2013-06-27 Tom Tromey <tromey@redhat.com>
4223
4224 * target.c (target_struct_index): Remove.
4225
4226 2013-06-27 Pedro Alves <palves@redhat.com>
4227
4228 * infrun.c: Remove comment describing the 'stepping over runtime
4229 loader dynamic symbol resolution code' mechanism; moved to
4230 gdbint.texinfo.
4231
4232 2013-06-27 Pedro Alves <palves@redhat.com>
4233
4234 * exceptions.c (catch_command_errors): Remove spurious space.
4235 * exceptions.h (catch_command_errors): Second parameter is "arg",
4236 not "command".
4237
4238 2013-06-27 Yao Qi <yao@codesourcery.com>
4239
4240 * common/create-version.sh: Update comments. Handle the case
4241 that TARGET_ALIAS is empty.
4242
4243 2013-06-26 Pedro Alves <palves@redhat.com>
4244
4245 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4246 comment.
4247
4248 2013-06-26 Pedro Alves <palves@redhat.com>
4249
4250 * infrun.c: Update comments on stepping over runtime loader
4251 dynamic symbol resolution code.
4252
4253 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4254
4255 * ax-gdb.h (union exp_element): Forward declare.
4256 * parser-defs.h: Include expression.h.
4257
4258 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4259
4260 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4261
4262 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4263
4264 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4265
4266 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4267
4268 Fix trace-status to output proper start-time and stop-time.
4269 * tracepoint.c (trace_status_command): Fix type of printf arg to
4270 prevent improper type conversion.
4271 (trace_status_mi): Likewise.
4272
4273 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4274
4275 * mips-tdep.c (mips_next_pc): Fix a typo.
4276
4277 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4278
4279 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4280
4281 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4282 Yao Qi <yao@codesourcery.com>
4283
4284 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4285 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4286 * mi/mi-main.c (print_variable_or_computed): New function.
4287 (mi_cmd_trace_frame_collected): New function.
4288 * tracepoint.c (find_trace_state_variable_by_number): New.
4289 (struct traceframe_info): Move to tracepoint.h
4290 (struct collection_list): Likewise.
4291 (do_collect_symbol): Include locals and arguments in the
4292 collected variables list.
4293 (clear_collection_list): Clear wholly collected variables list
4294 and computed variables list.
4295 (append_exp): New function.
4296 (encode_actions_1): Include variables in the wholly
4297 collected variables list. Include memory ranges and
4298 full-fledged expressions in the computed expressions list.
4299 (encode_actions): Move some code to ...
4300 Return the cleanup chain.
4301 (encode_actions_rsp): ... here. New function.
4302 (get_traceframe_location, get_traceframe_info): Remove static.
4303 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4304 (struct collection_list): Moved from tracepoint.c. Add two
4305 new fields 'wholly_collected' and 'computed'.
4306 (find_trace_state_variable_by_number): Declare.
4307 (encode_actions): Adjust declaration.
4308 (encode_actions_rsp): Declare.
4309 (get_traceframe_info, get_traceframe_location): Declare.
4310
4311 * NEWS: Mention new MI command -trace-frame-collected.
4312
4313 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4314 Yao Qi <yao@codesourcery.com>
4315
4316 * ctf.c (ctf_traceframe_info): Push trace state variables
4317 present in the trace data into the traceframe info object.
4318 * breakpoint.c (DEF_VEC_I): Remove.
4319 * common/filestuff.c (DEF_VEC_I): Likewise.
4320 * dwarf2loc.c (DEF_VEC_I): Likewise.
4321 * mi/mi-main.c (DEF_VEC_I): Likewise.
4322 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4323 * features/traceframe-info.dtd: Add tvar element and its
4324 attributes.
4325 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4326 (build_traceframe_info): Push trace state variables present in
4327 the trace data into the traceframe info object.
4328 (traceframe_info_start_tvar): New function.
4329 (tvar_attributes): New.
4330 (traceframe_info_children): Add "tvar" element.
4331 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4332
4333 * NEWS: Mention the change in GDB and GDBserver.
4334
4335 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4336 Yao Qi <yao@codesourcery.com>
4337
4338 * tracepoint.c (trace_dump_command): Move code to ...
4339 (get_traceframe_location): ... here. New.
4340
4341 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4342 Yao Qi <yao@codesourcery.com>
4343
4344 * tracepoint.c (trace_dump_command): GDB emits an error
4345 instead of a warning when a traceframe is not selected.
4346
4347 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4348 Yao Qi <yao@codesourcery.com>
4349
4350 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4351 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4352 in collection_list.
4353 (do_clear_collection_list, init_collection_list): New.
4354 (encode_actions): Add local variables 'tracepoint_list' and
4355 'stepping_list'. Call init_collection_list and make cleanup
4356 which calls do_clear_collection_list. Don't call
4357 clear_collection_list.
4358 (_initialize_tracepoint): Delete references to
4359 'tracepoint_list' and 'stepping_list'.
4360
4361 2013-06-25 Tom Tromey <tromey@redhat.com>
4362
4363 * common/create-version.sh (date): Use "$", not "$$" in sed
4364 expression.
4365
4366 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4367
4368 * NEWS (New targets): Add entry for TI MSP430.
4369
4370 2013-06-25 Yao Qi <yao@codesourcery.com>
4371
4372 * remote.c (remote_start_remote): Move code to upload tsv
4373 earlier.
4374
4375 2013-06-25 Yao Qi <yao@codesourcery.com>
4376 Hui Zhu <hui@codesourcery.com>
4377 Pedro Alves <palves@redhat.com>
4378
4379 PR breakpoints/15075
4380 PR breakpoints/15434
4381 * breakpoint.c (bpstat_stop_status): Call
4382 b->ops->after_condition_true.
4383 (update_dprintf_command_list): Don't append "continue" command
4384 to the command list of dprintf breakpoint.
4385 (base_breakpoint_after_condition_true): New function.
4386 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4387 (dprintf_after_condition_true): New function.
4388 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4389 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4390
4391 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4392
4393 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4394 (ALLDEPFILES): Add msp430-tdep.c.
4395 * configure.tgt (msp430*-*-elf): New target.
4396 * msp430-tdep.c: New file.
4397
4398 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4399
4400 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4401 microMIPS synthetic symbols.
4402
4403 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4404
4405 * objfiles.h (pc_in_section): New prototype.
4406 (in_plt_section): Remove name argument, replace prototype with
4407 static inline function.
4408 * mips-tdep.h: Include "objfiles.h".
4409 (in_mips_stubs_section): New function.
4410 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4411 in_solib_call_trampoline member.
4412 (hppa_in_solib_call_trampoline): Remove name argument.
4413 * objfiles.c (pc_in_section): New function.
4414 (in_plt_section): Remove function.
4415 * mips-linux-tdep.c: Include "objfiles.h".
4416 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4417 name argument. Return 1 rather than the low 16-bit halfword of
4418 any instruction examined.
4419 (mips_linux_in_dynsym_resolve_code): Update
4420 mips_linux_in_dynsym_stub call accordingly.
4421 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4422 rather than an equivalent hand-coded sequence.
4423 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4424 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4425 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4426 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4427 in_opd_section.
4428 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4429 on call to tdep->in_solib_call_trampoline.
4430 (hppa_in_solib_call_trampoline): Remove name argument, update
4431 according to in_plt_section change.
4432 (hppa_skip_trampoline_code): Update according to in_plt_section
4433 change.
4434 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4435 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4436 Likewise.
4437 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4438 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4439 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4440 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4441 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4442 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4443 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4444 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4445 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4446 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4447 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4448 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4449 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4450
4451 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4452
4453 * common/create-version.sh: Fix expansion of $host_alias
4454 and $target_alias in generation of HOST_NAME and TARGET_NAME
4455 (resp.).
4456
4457 2013-06-24 Tom Tromey <tromey@redhat.com>
4458
4459 * common/create-version.sh: New file.
4460 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4461 create-version.sh.
4462 (HFILES_NO_SRCDIR): Use common/version.h.
4463 * version.in: Move to ...
4464 * common/version.in: ... here. Replace date with "DATE".
4465 * version.h: Move to ...
4466 * common/version.h: ... here.
4467
4468 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4469
4470 * gdb/gnulib/Makefile.in: Update date in copyright header.
4471 * gdb/gnulib/configure.ac: Ditto.
4472 * gdb/gnulib/update-gnulib.sh: Ditto.
4473
4474 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4475
4476 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4477 "gdb/gnulib/import".
4478
4479 2013-06-21 Will Newton <will.newton@linaro.org>
4480
4481 * doublest.c (ldfrexp): Remove function.
4482 (convert_doublest_to_floatformat): Call frexpl instead of
4483 ldfrexp.
4484
4485 2013-06-21 Will Newton <will.newton@linaro.org>
4486
4487 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4488 * gnulib/aclocal.m4: Regenerate.
4489 * gnulib/config.in: Regenerate.
4490 * gnulib/configure: Regenerate.
4491 * gnulib/import/Makefile.am: Update.
4492 * gnulib/import/Makefile.in: Update.
4493 * gnulib/import/m4/gnulib-cache.m4: Update.
4494 * gnulib/import/m4/gnulib-comp.m4: Update.
4495 * gnulib/import/float+.h: Import.
4496 * gnulib/import/float.c: Import.
4497 * gnulib/import/float.in.h: Import.
4498 * gnulib/import/fpucw.h: Import.
4499 * gnulib/import/frexp.c: Import.
4500 * gnulib/import/frexpl.c: Import.
4501 * gnulib/import/isnan.c: Import.
4502 * gnulib/import/isnand-nolibm.h: Import.
4503 * gnulib/import/isnand.c: Import.
4504 * gnulib/import/isnanl-nolibm.h: Import.
4505 * gnulib/import/isnanl.c: Import.
4506 * gnulib/import/itold.c: Import.
4507 * gnulib/import/m4/exponentd.m4: Import.
4508 * gnulib/import/m4/exponentl.m4: Import.
4509 * gnulib/import/m4/float_h.m4: Import.
4510 * gnulib/import/m4/fpieee.m4: Import.
4511 * gnulib/import/m4/frexp.m4: Import.
4512 * gnulib/import/m4/frexpl.m4: Import.
4513 * gnulib/import/m4/isnand.m4: Import.
4514 * gnulib/import/m4/isnanl.m4: Import.
4515 * gnulib/import/m4/math_h.m4: Import.
4516 * gnulib/import/math.c: Import.
4517 * gnulib/import/math.in.h: Import.
4518
4519 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4520
4521 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4522 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4523 signature_INTEL_edx comparisons.
4524
4525 2013-06-20 Doug Evans <dje@google.com>
4526
4527 symtab/15652
4528 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4529 All callers updated.
4530 (open_dwp_file): If we can't find the dwp file, search the basename
4531 in debug-file-directory.
4532
4533 * dwarf2read.c (struct dwp_file): Fix comment.
4534 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4535
4536 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4537 better.
4538
4539 2013-06-20 Yao Qi <yao@codesourcery.com>
4540
4541 * breakpoint.c (create_breakpoint): Fix code indentation.
4542
4543 2013-06-20 Yao Qi <yao@codesourcery.com>
4544
4545 * breakpoint.c (create_breakpoints_sal_default): Remove
4546 parameter 'lsal'. Update declaration.
4547 (bkpt_create_breakpoints_sal): Caller update.
4548 (tracepoint_create_breakpoints_sal): Likewise.
4549
4550 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4551 Yao Qi <yao@codesourcery.com>
4552
4553 * NEWS: Mention the new option '--skip-unavailable' of command
4554 -data-list-register-values.
4555 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4556 --skip-unavailable option. Adjust to use output_register.
4557 (output_register): Add new 'skip_unavailable' parameter.
4558 Handle it.
4559
4560 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4561
4562 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4563 common/i386-gcc-cpuid.h.
4564 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4565 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4566 Copy the latest version from upstream gcc.
4567 * common/linux-btrace.c: Include i386-cpuid.h.
4568 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4569 call to i386_cpuid.
4570 (cpu_supports_btrace): Likewise.
4571 * go32-nat.c: Include i386-cpuid.h.
4572 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4573
4574 2013-06-19 Doug Evans <dje@google.com>
4575
4576 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4577 (get_section_index): Ditto.
4578
4579 2013-06-19 Tom Tromey <tromey@redhat.com>
4580
4581 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4582 "dprintf" help.
4583
4584 2013-06-18 Doug Evans <dje@google.com>
4585
4586 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4587 before using it.
4588 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4589 Move test of cu_index closer to use. Print complaint if cu_index
4590 is bad.
4591
4592 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4593
4594 * machoread.c (oso_vector): Delete this global.
4595 (macho_register_oso): Add new parameter "oso_vector_ptr".
4596 Use it instead of the "oso_vector" global.
4597 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4598 (macho_symfile_read): Use a local oso_vector, to be free'ed
4599 at the end of this function, in place of the old "oso_vector"
4600 global. Update various function calls accordingly. Use one
4601 single cleanup chain for the entire function.
4602
4603 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4604
4605 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4606 DWARF2_PER_OBJFILE by uses of DATA instead.
4607
4608 2013-06-18 Tom Tromey <tromey@redhat.com>
4609
4610 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4611 argument.
4612 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4613 Special case signals other than GDB_SIGNAL_TRAP.
4614 (explains_signal_watchpoint): New function.
4615 (base_breakpoint_explains_signal): Add 'sig' argument.
4616 (initialize_breakpoint_ops): Set 'explains_signal' method for
4617 watchpoints.
4618 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4619 signal argument.
4620 (bpstat_explains_signal): Likewise.
4621 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4622
4623 2013-06-18 Tom Tromey <tromey@redhat.com>
4624
4625 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4626
4627 2013-06-18 Tom Tromey <tromey@redhat.com>
4628
4629 * python/python.c (finish_python_initialization): Decref
4630 'pythondir' on failure path as well.
4631
4632 2013-06-18 Tom Tromey <tromey@redhat.com>
4633
4634 PR symtab/15391:
4635 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4636 after taking bits_to_skip into account. Sign extend byte_offset.
4637 * utils.h (gdb_sign_extend): Declare.
4638 * utils.c (gdb_sign_extend): New function.
4639
4640 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4641
4642 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4643
4644 2013-06-17 Pierre Muller <muller@sourceware.org>
4645
4646 * corelow.c (core_open): Print GDB signal name instead of target
4647 signal number.
4648
4649 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4650
4651 * .gitignore: Add /gcore.
4652
4653 2013-06-13 Doug Evans <dje@google.com>
4654
4655 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4656 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4657
4658 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4659
4660 * stack.c (backtrace_command_1): Fix indentation.
4661
4662 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4663
4664 * window-nat.c (thread_rec): Add missing empty line after
4665 local variable declaration.
4666
4667 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4668
4669 * windows-nat.c (thread_rec): Revert format used to print
4670 error code returned by SuspendThread from %d back to %u.
4671
4672 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4673
4674 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4675 ID in debug trace.
4676 (get_windows_debug_event): Likewise, for all debug traces.
4677
4678 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4679
4680 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4681 warning message.
4682
4683 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4684 Yao Qi <yao@codesourcery.com>
4685
4686 * mi/mi-main.c (get_register): Remove declaration.
4687 (output_register): Declare.
4688 (mi_cmd_data_list_register_values): Remove local variable
4689 'tuple_cleanup'. Move some code into output_register.
4690 (get_register): Renamed to ...
4691 (output_register): ... this. Output the register's
4692 "number" ui_out tuple here.
4693
4694 2013-06-07 Pedro Alves <palves@redhat.com>
4695
4696 * darwin-nat.c: Fix formating in copyright header.
4697 * darwin-nat.h: Likewise.
4698 * gnu-nat.c: Likewise.
4699 * machoread.c: Likewise.
4700
4701 2013-06-07 Pedro Alves <palves@redhat.com>
4702
4703 PR server/14823
4704 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4705 static. Output a global target description pointer.
4706 (init_registers_${name}): Adjust to initialize a
4707 target description structure.
4708
4709 2013-06-07 Will Newton <will.newton@linaro.org>
4710
4711 * printcmd.c (build_address_symbolic): Call
4712 gdbarch_addr_bits_remove for text minimal symbols.
4713
4714 2013-06-07 Will Newton <will.newton@linaro.org>
4715
4716 * MAINTAINERS: Add myself to Write After Approval.
4717
4718 2013-06-07 Yao Qi <yao@codesourcery.com>
4719
4720 * tracepoint.c (start_tracing): Move code to ...
4721 (trace_reset_local_state): ... here. New.
4722 (disconnect_tracing): Don't call set_current_traceframe,
4723 set_tracepoint_num, and set_traceframe_context. Call
4724 trace_reset_local_state instead.
4725 (tfile_close): Call trace_reset_local_state.
4726 * ctf.c (ctf_close): Likewise.
4727 * remote.c (remote_close): Likewise.
4728 * tracepoint.h (trace_reset_local_state): Declare.
4729
4730 2013-06-06 Doug Evans <dje@google.com>
4731
4732 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4733 and fix header docs.
4734
4735 2013-06-05 Doug Evans <dje@google.com>
4736 Keith Seitz <keiths@redhat.com>
4737
4738 PR 15519
4739 * cp-namespace.c (find_symbol_in_baseclass): Call
4740 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4741 Check result of call to lookup_symbol_static.
4742 Call lookup_static_symbol_aux unconditionally.
4743 Call check_typedef on base types before accessing them.
4744 (cp_lookup_nested_symbol): Fix comment.
4745
4746 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4747
4748 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4749 minimal symbols pointing to function descriptors.
4750
4751 2013-06-05 Tom Tromey <tromey@redhat.com>
4752
4753 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4754
4755 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4756 Pedro Alves <palves@redhat.com>
4757
4758 * remote.c (remote_wait_as): Restore signal handler before returning
4759 when GDB gets a notification.
4760
4761 2013-06-04 Gary Benson <gbenson@redhat.com>
4762
4763 PR 2328
4764 * breakpoint.h (handle_solib_event): Moved function declaration
4765 to solib.h.
4766 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4767 (bpstat_stop_status): Pass new argument to handle_solib_event.
4768 * solib.h (update_solib_breakpoints): New function declaration.
4769 (handle_solib_event): Moved function declaration from
4770 breakpoint.h.
4771 * solib.c (update_solib_breakpoints): New function.
4772 (handle_solib_event): Moved function from breakpoint.c.
4773 Updated to call solib_ops->handle_event if not NULL.
4774 * solist.h (target_so_ops): New fields "update_breakpoints" and
4775 "handle_event".
4776 * infrun.c (set_stop_on_solib_events): New function.
4777 (_initialize_infrun): Use the above for "set
4778 stop-on-solib-events".
4779 (handle_inferior_event): Pass new argument to handle_solib_event.
4780 * solib-svr4.c (probe.h): New include.
4781 (svr4_free_library_list): New forward declaration.
4782 (probe_action): New enum.
4783 (probe_info): New struct.
4784 (probe_info): New static variable.
4785 (NUM_PROBES): New definition.
4786 (svr4_info): New fields "using_xfer", "probes_table" and
4787 "solib_list".
4788 (free_probes_table): New function.
4789 (free_solib_list): New function.
4790 (svr4_pspace_data_cleanup): Free probes table and solib list.
4791 (svr4_copy_library_list): New function.
4792 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4793 (svr4_read_so_list): New parameter "prev_lm".
4794 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4795 (svr4_current_sos): New function.
4796 (probe_and_action): New struct.
4797 (hash_probe_and_action): New function.
4798 (equal_probe_and_action): Likewise.
4799 (register_solib_event_probe): Likewise.
4800 (solib_event_probe_at): Likewise.
4801 (solib_event_probe_action): Likewise.
4802 (solist_update_full): Likewise.
4803 (solist_update_incremental): Likewise.
4804 (disable_probes_interface_cleanup): Likewise.
4805 (svr4_handle_solib_event): Likewise.
4806 (svr4_update_solib_event_breakpoint): Likewise.
4807 (svr4_update_solib_event_breakpoints): Likewise.
4808 (svr4_create_solib_event_breakpoints): Likewise.
4809 (enable_break): Free probes table before creating breakpoints.
4810 Use svr4_create_solib_event_breakpoints to create breakpoints.
4811 (svr4_solib_create_inferior_hook): Free the solib list.
4812 (_initialize_svr4_solib): Initialise
4813 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4814
4815 2013-06-04 Gary Benson <gbenson@redhat.com>
4816
4817 * target.h (target_ops): New field
4818 "to_augmented_libraries_svr4_read".
4819 (target_augmented_libraries_svr4_read): New macro.
4820 * target.c (update_current_target): Handle
4821 to_augmented_libraries_svr4_read.
4822 * remote.c (remote_state): New field
4823 "augmented_libraries_svr4_read".
4824 (remote_augmented_libraries_svr4_read_feature): New function.
4825 (remote_protocol_features): Add entry for
4826 "augmented-libraries-svr4-read".
4827 (remote_augmented_libraries_svr4_read): New function.
4828 (init_remote_ops): Initialize
4829 remote_ops.to_augmented_libraries_svr4_read.
4830
4831 2013-06-04 Gary Benson <gbenson@redhat.com>
4832
4833 * NEWS: Update.
4834
4835 2013-06-04 Gary Benson <gbenson@redhat.com>
4836
4837 * objfiles.h (inhibit_section_map_updates): New function
4838 declaration.
4839 (resume_section_map_updates): Likewise.
4840 (resume_section_map_updates_cleanup): Likewise.
4841 * objfiles.c (objfile_pspace_info): Removed field
4842 "objfiles_changed_p". New fields "new_objfiles_available",
4843 "section_map_dirty" and "inhibit_updates".
4844 (allocate_objfile): Set new_objfiles_available.
4845 (free_objfile): Set section_map_dirty.
4846 (objfile_relocate1): Likewise.
4847 (in_plt_section): Likewise.
4848 (find_pc_section): Update the conditions under which the
4849 section map will be updated.
4850 (inhibit_section_map_updates): New function.
4851 (resume_section_map_updates): Likewise.
4852 (resume_section_map_updates_cleanup): Likewise.
4853
4854 2013-06-04 Gary Benson <gbenson@redhat.com>
4855
4856 * probe.h (get_probe_argument_count): New declaration.
4857 (evaluate_probe_argument): Likewise.
4858 * probe.c (get_probe_argument_count): New function.
4859 (evaluate_probe_argument): Likewise.
4860 (probe_safe_evaluate_at_pc): Use the above new functions.
4861
4862 2013-06-04 Alan Modra <amodra@gmail.com>
4863
4864 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4865 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4866 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4867 target mem reads on optional insns.
4868 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4869 ppc_insns_match_pattern calls.
4870 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4871 Add match for power7 thread safety insns, and new order of
4872 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4873 invocation in comment, and update rest of comment.
4874 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4875 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4876 (ppc64_standard_linkage2_target): Update insn offsets.
4877 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4878 stubs first. Update calls.
4879
4880 2013-06-04 Yao Qi <yao@codesourcery.com>
4881
4882 * solib.c (solib_find): Don't need dir separator if path has
4883 drive spec.
4884
4885 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4886
4887 Revert (indirectly causes a SIGSEGV):
4888 * machoread.c (macho_symfile_read): Assign first cleanup to
4889 'back_to'.
4890
4891 2013-06-03 Yao Qi <yao@codesourcery.com>
4892
4893 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4894 mi-parse.c. Make them static.
4895 (mi_all_values): Likewise.
4896 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4897 mi_parse_print_values. Make it external.
4898 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4899 Remove the declarations.
4900 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4901 * mi/mi-parse.h (mi_parse_print_values): Declare.
4902 * mi/mi-cmd-stack.c: Include mi-parse.h.
4903 (parse_print_values): Remove
4904 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4905 of parse_print_values.
4906 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4907
4908 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4909 Yao Qi <yao@codesourcery.com>
4910
4911 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4912 (encode_actions): Move code to ...
4913 (all_tracepoint_actions_and_cleanup): ... here. New.
4914 (trace_dump_command): Likewise.
4915
4916 2013-05-30 Tom Tromey <tromey@redhat.com>
4917
4918 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4919
4920 2013-05-30 Tom Tromey <tromey@redhat.com>
4921
4922 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4923 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4924 'old_chain' argument. Add 'parser_result' argument.
4925 (gdb_xml_create_parser_and_cleanup): Remove old version.
4926 (gdb_xml_parse_quick): Update.
4927 (xml_process_xincludes): Update.
4928 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4929 declare.
4930
4931 2013-05-30 Tom Tromey <tromey@redhat.com>
4932
4933 * probe.c (collect_probes): Check arguments for NULL before
4934 calling compile_rx_or_error.
4935 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4936 Remove NULL return.
4937
4938 2013-05-30 Tom Tromey <tromey@redhat.com>
4939
4940 * infrun.c (adjust_pc_after_break): Introduce an outer null
4941 cleanup.
4942
4943 2013-05-30 Tom Tromey <tromey@redhat.com>
4944
4945 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4946
4947 2013-05-30 Tom Tromey <tromey@redhat.com>
4948
4949 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4950 for 'old_chain'. Do not check 'head' before processing
4951 cleanups.
4952
4953 2013-05-30 Tom Tromey <tromey@redhat.com>
4954
4955 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4956 "cleanup_tuple".
4957
4958 2013-05-30 Tom Tromey <tromey@redhat.com>
4959
4960 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4961 inner scope. Unconditionally call do_cleanups.
4962
4963 2013-05-30 Tom Tromey <tromey@redhat.com>
4964
4965 * source.c (find_and_open_source): Call do_cleanups.
4966
4967 2013-05-30 Tom Tromey <tromey@redhat.com>
4968
4969 * linux-thread-db.c (thread_db_load_search): Unconditionally
4970 call do_cleanups.
4971
4972 2013-05-30 Tom Tromey <tromey@redhat.com>
4973
4974 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4975 for 'cleanup'; instead use a later one.
4976
4977 2013-05-30 Tom Tromey <tromey@redhat.com>
4978
4979 * python/py-breakpoint.c (bppy_get_commands): Use
4980 explicit, unconditional return.
4981 * python/py-frame.c (frapy_read_var): Likewise.
4982 * python/python.c (gdbpy_decode_line): Likewise.
4983
4984 2013-05-30 Tom Tromey <tromey@redhat.com>
4985
4986 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4987 do_cleanups on all return paths.
4988
4989 2013-05-30 Tom Tromey <tromey@redhat.com>
4990
4991 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4992
4993 2013-05-30 Tom Tromey <tromey@redhat.com>
4994
4995 * stabsread.c (read_struct_type): Call do_cleanups along
4996 all return paths.
4997
4998 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4999
5000 * mips-linux-tdep.c: Adjust formatting throughout.
5001
5002 2013-05-30 Tom Tromey <tromey@redhat.com>
5003
5004 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5005 along all return paths.
5006
5007 2013-05-30 Tom Tromey <tromey@redhat.com>
5008
5009 * symfile.c (find_separate_debug_file): Call do_cleanups
5010 along all return paths.
5011
5012 2013-05-30 Tom Tromey <tromey@redhat.com>
5013
5014 * symtab.c (search_symbols): Introduce a null cleanup for
5015 'retval_chain'.
5016
5017 2013-05-30 Tom Tromey <tromey@redhat.com>
5018
5019 * python/py-value.c (valpy_binop): Call do_cleanups before
5020 exiting loop.
5021
5022 2013-05-30 Tom Tromey <tromey@redhat.com>
5023
5024 * python/py-prettyprint.c (print_children): Remove extra
5025 do_cleanups call.
5026
5027 2013-05-30 Tom Tromey <tromey@redhat.com>
5028
5029 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5030 all return paths.
5031
5032 2013-05-30 Tom Tromey <tromey@redhat.com>
5033
5034 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5035 along all return paths.
5036
5037 2013-05-30 Tom Tromey <tromey@redhat.com>
5038
5039 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5040 call do_cleanups.
5041
5042 2013-05-30 Tom Tromey <tromey@redhat.com>
5043
5044 * varobj.c (c_value_of_root): Call do_cleanups along all
5045 return paths.
5046
5047 2013-05-30 Tom Tromey <tromey@redhat.com>
5048
5049 * tracepoint.c (trace_dump_command): Unconditionally call
5050 do_cleanups.
5051
5052 2013-05-30 Tom Tromey <tromey@redhat.com>
5053
5054 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5055 do_cleanups earlier.
5056
5057 2013-05-30 Tom Tromey <tromey@redhat.com>
5058
5059 * machoread.c (macho_symfile_read): Assign first cleanup to
5060 'back_to'.
5061
5062 2013-05-30 Tom Tromey <tromey@redhat.com>
5063
5064 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5065
5066 2013-05-30 Tom Tromey <tromey@redhat.com>
5067
5068 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5069
5070 2013-05-30 Tom Tromey <tromey@redhat.com>
5071
5072 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5073 call discard_cleanups.
5074 (inf_ptrace_attach): Likewise.
5075
5076 2013-05-30 Tom Tromey <tromey@redhat.com>
5077
5078 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5079 return paths.
5080 (mips_initialize): Likewise.
5081 (common_open): Call do_cleanups.
5082
5083 2013-05-30 Tom Tromey <tromey@redhat.com>
5084
5085 * utils.c (internal_vproblem): Call do_cleanups.
5086
5087 2013-05-30 Tom Tromey <tromey@redhat.com>
5088
5089 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5090
5091 2013-05-30 Tom Tromey <tromey@redhat.com>
5092
5093 * cli/cli-script.c (setup_user_args): Don't return after error.
5094
5095 2013-05-30 Tom Tromey <tromey@redhat.com>
5096
5097 * somread.c (som_symtab_read): Call do_cleanups.
5098
5099 2013-05-30 Tom Tromey <tromey@redhat.com>
5100
5101 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5102
5103 2013-05-30 Tom Tromey <tromey@redhat.com>
5104
5105 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5106 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5107 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5108 * source.c (show_substitute_path_command): Call do_cleanups.
5109 (unset_substitute_path_command, set_substitute_path_command):
5110 Likewise.
5111 * symfile.c (load_command): Call do_cleanups.
5112
5113 2013-05-30 Tom Tromey <tromey@redhat.com>
5114
5115 * contrib/cleanup_check.py: New file.
5116 * contrib/gcc-with-excheck: Add option parsing.
5117
5118 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5119
5120 * windows-nat.c (windows_delete_thread): Add missing space
5121 in cast expression.
5122
5123 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5124
5125 * inferior.c (top level): Include tilde.h.
5126 (add_inferior_command): Call tilde_expand on the value of 'exec'
5127 argument.
5128
5129 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5130 Yao Qi <yao@codesourcery.com>
5131
5132 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5133 Caller update.
5134 (encode_actions): Likewise.
5135 * remote.c (remote_download_tracepoint): Caller update.
5136 * tracepoint.h (encode_actions): Update declaration.
5137
5138 2013-05-30 Pedro Alves <palves@redhat.com>
5139
5140 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5141 pointer.
5142
5143 2013-05-30 Yao Qi <yao@codesourcery.com>
5144
5145 * remote.c (remote_check_symbols): Remove unused parameter
5146 'objfile'.
5147 Declaration update.
5148 (remote_start_remote, remote_new_objfile): Caller update.
5149
5150 2013-05-30 Yao Qi <yao@codesourcery.com>
5151
5152 * mi/mi-cmds.c (mi_cmds): Define MI command
5153 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5154 DEF_MI_CMD_CLI.
5155
5156 2013-05-29 Pedro Alves <palves@redhat.com>
5157
5158 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5159 (remote_insert_watchpoint, remote_remove_watchpoint)
5160 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5161 (remote_verify_memory, compare_sections_command)
5162 (remote_search_memory): Set the general process/thread on the
5163 remote side.
5164
5165 2013-05-29 Pedro Alves <palves@redhat.com>
5166
5167 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5168 (_initialize_aarch64_tdep): Don't call
5169 initialize_tdesc_aarch64_without_fpu.
5170 * features/Makefile (WHICH): Remove reference to
5171 aarch64-without-fpu.
5172 * features/aarch64-without-fpu.c: Delete file.
5173 * regformats/aarch64-without-fpu.dat: Delete file.
5174
5175 2013-05-28 Yao Qi <yao@codesourcery.com>
5176
5177 * tracepoint.c (stringify_collection_list): Remove parameter
5178 'string'.
5179 (encode_actions): Caller update. Remove local variables.
5180
5181 2013-05-24 Yao Qi <yao@codesourcery.com>
5182
5183 * tracepoint.c (TFILE_PID): Remove.
5184 (tfile_open): Don't add thread and inferior.
5185 (tfile_close): Don't set 'inferior_ptid'. Don't call
5186 exit_inferior_silent.
5187 (tfile_thread_alive): Remove.
5188 (init_tfile_ops): Don't set field 'to_thread_alive' of
5189 tfile_ops.
5190
5191 2013-05-23 Doug Evans <dje@google.com>
5192
5193 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5194
5195 2013-05-23 Pedro Alves <palves@redhat.com>
5196
5197 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5198 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5199 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5200 Only define if HAVE_SOCKETS is defined.
5201 * configure.ac: Check for sys/socket.h.
5202 * config.in, configure: Regenerate.
5203
5204 2013-05-23 Pedro Alves <palves@redhat.com>
5205
5206 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5207 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5208 printing uint32_t variables.
5209
5210 2013-05-23 Pedro Alves <palves@redhat.com>
5211
5212 * NEWS: Mention GDBserver range stepping support.
5213
5214 2013-05-23 Yao Qi <yao@codesourcery.com>
5215 Pedro Alves <palves@redhat.com>
5216
5217 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5218 field.
5219 * infcmd.c (step_once, until_next_command): Enable range stepping.
5220 * infrun.c (displaced_step_prepare): Disable range stepping.
5221 (resume): Disable range stepping if stepping over a breakpoint or
5222 we have software watchpoints. If range stepping is enabled,
5223 assert the thread is in the stepping range.
5224 (clear_proceed_status_thread): Clear may_range_step.
5225 (handle_inferior_event): Disable range stepping as soon as we know
5226 the thread that hit the event. Re-enable it whenever we're going
5227 to step with a step range.
5228 * remote.c (struct vCont_action_support) <r>: New field.
5229 (use_range_stepping): New global.
5230 (remote_vcont_probe): Handle 'r' action.
5231 (append_resumption): Append an 'r' action if the thread may range
5232 step.
5233 (show_range_stepping): New function.
5234 (set_range_stepping): New function.
5235 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5236 'set range-stepping' and 'show range-stepping' commands.
5237 * NEWS: Mention range stepping, the new vCont;r action, and the
5238 new "set/show range-stepping" commands.
5239
5240 2013-05-23 Yao Qi <yao@codesourcery.com>
5241 Pedro Alves <palves@redhat.com>
5242
5243 * remote.c (struct vCont_action_support): New struct.
5244 (struct remote_state) <support_vCont_t>: Remove field.
5245 <vCont_actions_support>: New field.
5246 (remote_vcont_probe, remote_stop_ns): Update.
5247
5248 2013-05-23 Yao Qi <yao@codesourcery.com>
5249 Pedro Alves <palves@redhat.com>
5250
5251 * gdbthread.h (pc_in_thread_step_range): New declaration.
5252 * thread.c (pc_in_thread_step_range): New function.
5253 * infrun.c (handle_inferior_event): Use it.
5254
5255 2013-05-23 Joel Brobecker <brobecker@adacore.com>
5256
5257 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5258 of sprintf.
5259
5260 2013-05-22 Keith Seitz <keiths@redhat.com>
5261
5262 * ada-lang.c (is_known_support_routine): Add explicit free of
5263 'func_name' from find_frame_funname.
5264 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5265 for func_name from find_frame_funname.
5266 * python/py-frame.c (frapy_name): Add explicit free of
5267 'name' from find_frame_funname.
5268 * stack.c (find_frame_funname): Add comment explaining that
5269 funcp must be freed by the caller.
5270 Return copy of symbol names instead of pointers.
5271 (print_frame): Add a cleanup for 'funname' from
5272 find_frame_funname.
5273 * stack.h (find_frame_funname): Remove "const" from
5274 'funname' parameter.
5275
5276 2013-05-22 Tom Tromey <tromey@redhat.com>
5277
5278 PR c++/15401:
5279 * c-valprint.c (c_value_print): Use value_addr for
5280 references. Convert back to reference type with value_ref.
5281
5282 2013-05-22 Eli Zaretskii <eliz@gnu.org>
5283
5284 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5285 unloaded DLL, it will be done by handle_solib_event. See
5286 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5287 details.
5288
5289 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5290
5291 * ui-out.c: Create typedef ui_out_level_p and define vector
5292 operations for that type.
5293 (struct ui_out): Use a vector instead of an array.
5294 (current_level): Return level from a vector.
5295 (push_level): Create a level in a vector.
5296 (pop_level): Delete a level in a vector.
5297 (ui_out_new): Create initial level zero level, and store in a
5298 vector.
5299 (ui_out_destroy): Add vector cleanup.
5300
5301 2013-05-22 Pedro Alves <palves@redhat.com>
5302
5303 * python/python-internal.h (gdb_Py_DECREF): Tag with
5304 "ARI: editCase function".
5305
5306 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5307
5308 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5309
5310 2013-05-21 Pedro Alves <palves@redhat.com>
5311
5312 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5313 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5314 * python/py-utils.c (py_decref): Don't check for NULL before
5315 calling Py_DECREF.
5316
5317 2013-05-21 Pedro Alves <palves@redhat.com>
5318
5319 * python/py-utils.c (py_decref): Remove extra braces.
5320 (gdb_pymodule_addobject): Remove extra braces.
5321 * python-internal.h (gdb_Py_DECREF): New static inline function.
5322 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5323
5324 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5325
5326 * breakpoints.c (detach_breakpoints): Do not
5327 detach breakpoints locations with loc_type bp_loc_other.
5328
5329 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5330
5331 Workaround Python 2.6.
5332 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5333 a block.
5334
5335 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5336
5337 Code cleanup: constification.
5338 * solib.c (solib_ops): Make return type and ops variable type const.
5339 (set_solib_ops): Make the new_ops parameter and ops variable const.
5340 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5341 (solib_add, solib_keep_data_in_core, clear_solib)
5342 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5343 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5344 const.
5345 * solib.h (set_solib_ops): Make the new_ops parameter const.
5346
5347 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5348
5349 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5350 variable.
5351 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5352 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5353 (SYSTEM_GDBINIT_FILES): New variables.
5354 (all): Add stamp-system-gdbinit.
5355 (stamp-system-gdbinit): New rule.
5356 (clean-system-gdbinit, install-system-gdbinit)
5357 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5358 (install-only): Add dependency on install-system-gdbinit.
5359 (uninstall): Add dependency on uninstall-system-gdbinit.
5360 (clean): Add dependency on clean-system-gdbinit.
5361 * system-gdbinit/elinos.py: New file.
5362 * system-gdbinit/wrs-linux.py: New file.
5363
5364 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5365
5366 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5367
5368 2013-05-21 Hui Zhu <hui@codesourcery.com>
5369
5370 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5371 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5372 * mi/mi-cmd-break.c (ctype.h): New include.
5373 (gdb_obstack.h): New include.
5374 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5375 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5376 (mi_cmd_dprintf_insert): New.
5377 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5378 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5379
5380 2013-05-20 Tom Tromey <tromey@redhat.com>
5381
5382 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5383
5384 2013-05-20 Tom Tromey <tromey@redhat.com>
5385
5386 * python/py-value.c (valpy_get_dynamic_type): Simplify
5387 dynamic_type assignment. Use Py_XINCREF.
5388
5389 2013-05-20 Tom Tromey <tromey@redhat.com>
5390
5391 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5392
5393 2013-05-20 Tom Tromey <tromey@redhat.com>
5394
5395 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5396 (gdbpy_selected_frame): Move object-construction code
5397 out of TRY_CATCH.
5398
5399 2013-05-20 Tom Tromey <tromey@redhat.com>
5400
5401 * python/py-arch.c (gdbpy_initialize_arch): Use
5402 gdb_pymodule_addobject.
5403 * python/py-block.c (gdbpy_initialize_blocks): Use
5404 gdb_pymodule_addobject.
5405 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5406 gdb_pymodule_addobject.
5407 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5408 gdb_pymodule_addobject.
5409 * python/py-event.c (gdbpy_initialize_event_generic): Use
5410 gdb_pymodule_addobject.
5411 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5412 gdb_pymodule_addobject.
5413 * python/py-evts.c (add_new_registry): Use
5414 gdb_pymodule_addobject.
5415 (gdbpy_initialize_py_events): Likewise.
5416 * python/py-finishbreakpoint.c
5417 (gdbpy_initialize_finishbreakpoints): Use
5418 gdb_pymodule_addobject.
5419 * python/py-frame.c (gdbpy_initialize_frames): Use
5420 gdb_pymodule_addobject.
5421 * python/py-function.c (gdbpy_initialize_functions): Use
5422 gdb_pymodule_addobject.
5423 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5424 gdb_pymodule_addobject.
5425 * python/py-infthread.c (gdbpy_initialize_thread): Use
5426 gdb_pymodule_addobject.
5427 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5428 gdb_pymodule_addobject.
5429 * python/py-param.c (gdbpy_initialize_parameters): Use
5430 gdb_pymodule_addobject.
5431 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5432 gdb_pymodule_addobject.
5433 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5434 gdb_pymodule_addobject.
5435 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5436 gdb_pymodule_addobject.
5437 * python/py-type.c (gdbpy_initialize_types): Use
5438 gdb_pymodule_addobject.
5439 * python/py-utils.c (gdb_pymodule_addobject): New function.
5440 * python/py-value.c (gdbpy_initialize_values): Use
5441 gdb_pymodule_addobject.
5442 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5443 * python/python.c (_initialize_python): Use
5444 gdb_pymodule_addobject.
5445
5446 2013-05-20 Tom Tromey <tromey@redhat.com>
5447
5448 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5449 * python/py-param.c (get_set_value, get_show_value): Use
5450 explicit decrefs.
5451 * python/python.c (start_type_printers, apply_type_printers):
5452 Use explicit decrefs.
5453
5454 2013-05-20 Tom Tromey <tromey@redhat.com>
5455
5456 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5457 incref the module.
5458
5459 2013-05-20 Tom Tromey <tromey@redhat.com>
5460
5461 * python/python.c (gdbpy_run_events): Decref the result
5462 of PyObject_CallObject.
5463
5464 2013-05-20 Tom Tromey <tromey@redhat.com>
5465
5466 * python/py-symtab.c (set_sal): Use
5467 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5468 (symtab_and_line_to_sal_object): Update.
5469
5470 2013-05-20 Tom Tromey <tromey@redhat.com>
5471
5472 * python/py-param.c (compute_enum_values): Decref 'item'.
5473
5474 2013-05-20 Tom Tromey <tromey@redhat.com>
5475
5476 * mi/mi-main.c: Include python-internal.h.
5477 (mi_cmd_list_features): Check gdb_python_initialized.
5478 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5479 (python_inferior_exit, python_new_objfile, add_thread_object)
5480 (delete_thread_object, py_free_inferior): Check
5481 gdb_python_initialized.
5482 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5483 gdb_python_initialized.
5484 * python/py-type.c (save_objfile_types): Check
5485 gdb_python_initialized.
5486 * python/python-internal.h (gdb_python_initialized): Declare.
5487 * python/python.c (ensure_python_env): Throw exception if
5488 Python not initialized.
5489 (before_prompt_hook, source_python_script_for_objfile)
5490 (start_type_printers, apply_type_printers,
5491 free_type_printers): Check gdb_python_initialized.
5492 * varobj.c (varobj_get_display_hint)
5493 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5494 (install_new_value_visualizer, varobj_set_visualizer)
5495 (value_get_print_value): Check gdb_python_initialized.
5496
5497 2013-05-20 Tom Tromey <tromey@redhat.com>
5498
5499 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5500 Check errors.
5501 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5502 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5503 Check errors.
5504 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5505 Check errors.
5506 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5507 Check errors.
5508 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5509 Check errors.
5510 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5511 init function to return 'int'.
5512 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5513 Return 'int'. Check errors.
5514 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5515 Check errors.
5516 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5517 Return 'int'. Check errors.
5518 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5519 Check errors.
5520 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5521 Check errors.
5522 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5523 Check errors.
5524 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5525 Check errors.
5526 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5527 Check errors.
5528 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5529 Check errors.
5530 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5531 Check errors.
5532 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5533 Check errors.
5534 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5535 Check errors.
5536 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5537 Check errors.
5538 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5539 Check errors.
5540 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5541 Check errors.
5542 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5543 Check errors.
5544 * python/python-internal.h (gdbpy_initialize_auto_load,
5545 gdbpy_initialize_values, gdbpy_initialize_frames,
5546 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5547 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5548 gdbpy_initialize_blocks, gdbpy_initialize_types,
5549 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5550 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5551 gdbpy_initialize_finishbreakpoints,
5552 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5553 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5554 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5555 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5556 gdbpy_initialize_signal_event,
5557 gdbpy_initialize_breakpoint_event,
5558 gdbpy_initialize_continue_event,
5559 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5560 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5561 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5562 * python/python.c (gdb_python_initialized): New global.
5563 (gdbpy_initialize_events): Return 'int'. Check errors.
5564 (_initialize_python): Check errors. Set
5565 gdb_python_initialized.
5566
5567 2013-05-20 Tom Tromey <tromey@redhat.com>
5568
5569 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5570 Decref the reslut of PyObject_CallMethod.
5571
5572 2013-05-20 Tom Tromey <tromey@redhat.com>
5573
5574 * python/py-event.c (gdbpy_initialize_event_generic): Return
5575 early if PyType_Ready fails.
5576
5577 2013-05-20 Tom Tromey <tromey@redhat.com>
5578
5579 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5580 as 'default' in the switch.
5581
5582 2013-05-20 Tom Tromey <tromey@redhat.com>
5583
5584 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5585 get_addr_from_python calls out of TRY_CATCH.
5586 (infpy_write_memory, infpy_search_memory): Likewise.
5587 * python/py-utils.c (get_addr_from_python): Return negative
5588 value on error. Use TRY_CATCH.
5589 * python/python-internal.h (get_addr_from_python): Use
5590 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5591
5592 2013-05-20 Tom Tromey <tromey@redhat.com>
5593
5594 * python/py-event.c (evpy_emit_event): Decref the
5595 result of PyObject_CallFunctionObjArgs.
5596
5597 2013-05-20 Tom Tromey <tromey@redhat.com>
5598
5599 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5600 Correctly decref.
5601
5602 2013-05-20 Tom Tromey <tromey@redhat.com>
5603
5604 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5605
5606 2013-05-20 Tom Tromey <tromey@redhat.com>
5607
5608 * python/py-event.h (gdbpy_initialize_event_generic): Use
5609 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5610 * python/py-evts.c (add_new_registry): Use
5611 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5612 * python/python-internal.h
5613 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5614
5615 2013-05-20 Tom Tromey <tromey@redhat.com>
5616
5617 * python/py-arch.c (archpy_disassemble): Update.
5618 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5619 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5620 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5621 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5622 macro.
5623 (GDB_PY_HANDLE_EXCEPTION): Update.
5624 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5625
5626 2013-05-20 Tom Tromey <tromey@redhat.com>
5627
5628 * python/python-internal.h (events_object_type): Remove.
5629
5630 2013-05-20 Tom Tromey <tromey@redhat.com>
5631
5632 * python/py-event.h (evpy_emit_event): Use
5633 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5634 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5635 New macro.
5636
5637 2013-05-20 Tom Tromey <tromey@redhat.com>
5638
5639 * py-evtregistry.c (create_event_object): Decref
5640 eventregistry_object if PyList_New fails.
5641
5642 2013-05-20 Tom Tromey <tromey@redhat.com>
5643
5644 * py-cmd.c (gdbpy_string_to_argv): Check result of
5645 PyList_New.
5646
5647 2013-05-20 Tom Tromey <tromey@redhat.com>
5648
5649 * python/python.c (before_prompt_hook): Add cleanup to
5650 decref 'hook'.
5651
5652 2013-05-20 Tom Tromey <tromey@redhat.com>
5653
5654 * python/py-function.c (fnpy_init): Decref result of
5655 PyObject_GetAttrString.
5656
5657 2013-05-20 Tom Tromey <tromey@redhat.com>
5658
5659 * python/py-threadevent.c (get_event_thread): Use
5660 CPYCHECKER_RETURNS_BORROWED_REF.
5661 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5662 New define.
5663 (pspace_to_pspace_object, objfile_to_objfile_object)
5664 (find_thread_object): Use it.
5665
5666 2013-05-20 Tom Tromey <tromey@redhat.com>
5667
5668 * python/py-arch.c (arch_object_type): Use
5669 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5670 * python/py-block.c (block_syms_iterator_object_type):
5671 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5672 * python/py-bpevent.c (breakpoint_event_object_type):
5673 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5674 * python/py-cmd.c (cmdpy_object_type): Use
5675 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5676 * python/py-continueevent.c (continue_event_object_type):
5677 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5678 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5679 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5680 * python/py-events.h (thread_event_object_type):
5681 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5682 * python/py-evtregistry.c (eventregistry_object_type): Use
5683 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5684 * python/py-exitedevent.c (exited_event_object_type):
5685 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5686 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5687 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5688 * python/py-function.c (fnpy_object_type): Use
5689 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5690 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5691 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5692 * python/py-infthread.c (thread_object_type): Use
5693 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5694 * python/py-lazy-string.c (lazy_string_object_type):
5695 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5696 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5697 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5698 * python/py-objfile.c (objfile_object_type): Use
5699 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5700 * python/py-param.c (parmpy_object_type):
5701 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5702 * python/py-progspace.c (pspace_object_type):
5703 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5704 * python/py-signalevent.c (signal_event_object_type):
5705 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5706 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5707 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5708 * python/py-type.c (type_object_type, field_object_type)
5709 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5710 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5711 define.
5712 (value_object_type, block_object_type, symbol_object_type)
5713 (event_object_type, stop_event_object_type, breakpoint_object_type)
5714 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5715
5716 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5717
5718 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5719 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5720
5721 2013-05-20 Doug Evans <dje@google.com>
5722
5723 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5724 For Fission.
5725 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5726 reading_dwo_directly.
5727 (struct signatured_type): New member dwo_unit.
5728 (struct die_reader_specs): New member comp_dir.
5729 (create_signatured_type_table_from_index): Use malloc for
5730 all_type_units instead of objfile's obstack.
5731 (create_all_type_units): Ditto.
5732 (fill_in_sig_entry_from_dwo_entry): New function.
5733 (add_type_unit): New function.
5734 (lookup_dwo_signatured_type): New function.
5735 (lookup_dwp_signatured_type): New function.
5736 (lookup_signatured_type): New arg cu. All callers updated.
5737 (init_cu_die_reader): Initialize comp_dir.
5738 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5739 Change assert of matching type signatures to call error on mismatch.
5740 (lookup_dwo_unit): Add assert.
5741 (init_tu_and_read_dwo_dies): New function.
5742 (init_cutu_and_read_dies): Call it.
5743 (build_type_unit_groups): Handle case of no type unit groups created.
5744 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5745 (lookup_dwo_cutu): Tweak complaint.
5746 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5747 (dwarf2_per_objfile_free): Free all_type_units.
5748
5749 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5750
5751 * windows-nat.c (handle_unload_dll): Add missing empty line.
5752
5753 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5754
5755 * dwarf2read.c (prototyped_function_p): New function.
5756 (read_subroutine_type): Use it.
5757
5758 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5759
5760 * rs6000-aix-tdep.c: De-indent some example code provided
5761 as a comment.
5762
5763 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5764
5765 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5766 region is ok for a hardware watchpoint using the new ptrace interface
5767 on Power servers.
5768
5769 2013-05-17 Doug Evans <dje@google.com>
5770
5771 * NEWS: Mention new maintenance commands check-symtabs, and
5772 expand-symtabs, and renamed check-psymtabs.
5773 * psymtab.c (maintenance_check_psymtabs): Renamed from
5774 maintenance_check_symtabs. Only process already-expanded symbol
5775 tables.
5776 (_initialize_psymtab): Update.
5777 * symmisc.c (maintenance_check_symtabs): New function.
5778 (maintenance_expand_name_matcher): New function
5779 (maintenance_expand_file_matcher): New function
5780 (maintenance_expand_symtabs): New function.
5781 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5782 commands.
5783
5784 2013-05-17 Tom Tromey <tromey@redhat.com>
5785
5786 * python/py-inferior.c (infpy_read_memory): Don't call
5787 PyErr_SetString if PyObject_New fails.
5788 * python/py-frame.c (frame_info_to_frame_object): Don't call
5789 PyErr_SetString if PyObject_New fails.
5790
5791 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5792
5793 * acinclude.m4: Add check for dlopen in libdl.
5794 * configure.ac: Ditto.
5795 * configure: Regenerate.
5796
5797 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5798
5799 * frame.c (frame_stash): Convert to htab.
5800 (frame_addr_hash): New function.
5801 (frame_addr_hash_eq): New function.
5802 (frame_stash_create): Convert function to create
5803 a hash table.
5804 (frame_stash_add): Convert function to add an entry to a hash
5805 table.
5806 (frame_stash_find): Convert function to search the hash table.
5807 (frame_stash_invalidate): Convert function to empty the hash
5808 table.
5809 (get_frame_id): Only add to stash if a frame_id is created.
5810 (_initialize_frame): Call frame_stash_create.
5811
5812 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5813
5814 * configure.ac: Ensure MIG is available when building for GNU Hurd
5815 hosts.
5816 * configure: Regenerate.
5817
5818 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5819
5820 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5821
5822 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5823
5824 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5825 all cleanups are done before returning from this function.
5826
5827 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5828
5829 * utils.h: #include "exceptions.h".
5830 (enum errors): Remove partial declaration.
5831
5832 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5833
5834 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5835 * gdbarch.h, gdbarch.c: Regenerate.
5836 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5837 handling.
5838
5839 * rs6000-aix-tdep.h: New file.
5840 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5841 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5842 "xml-utils.h".
5843 (struct field_info, struct ld_info_desc): New types.
5844 (ld_info32_desc, ld_info64_desc): New static constants.
5845 (struct ld_info): New type.
5846 (rs6000_aix_extract_ld_info): New function.
5847 (rs6000_aix_shared_library_to_xml): Likewise.
5848 (rs6000_aix_ld_info_to_xml): Likewise.
5849 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5850 (rs6000_aix_init_osabi): Add call to
5851 set_gdbarch_core_xfer_shared_libraries_aix.
5852 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5853 Remove "xml-utils.h" include.
5854 (LdInfo): Delete typedef.
5855 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5856 Delete macros.
5857 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5858 Adjust code accordingly.
5859 (rs6000_core_ldinfo): Delete, folded into
5860 rs6000_aix_core_xfer_shared_libraries_aix.
5861 (rs6000_xfer_shared_library): Delete.
5862 (rs6000_xfer_shared_libraries): Reimplement.
5863
5864 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5865
5866 * record.c (record_goto_cmdlist): New.
5867 (cmd_record_goto): Split into this ...
5868 (cmd_record_goto_begin): ... this
5869 (cmd_record_goto_end): ... and this.
5870 (_initialize_record): Change "record goto" to prefix command.
5871 Add commands for "record goto begin" and "record goto end".
5872 Add an alias for "record goto start" to "record goto begin".
5873
5874 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5875
5876 * linespec.c (convert_linespec_to_sals): New comment for
5877 SOURCE_FILENAME assignment.
5878
5879 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5880
5881 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5882 internal_warning.
5883
5884 2013-05-14 Tom Tromey <tromey@redhat.com>
5885
5886 * eval.c (parse_and_eval_long): Make 'exp' const.
5887 * value.h (parse_and_eval_long): Update.
5888
5889 2013-05-14 Tom Tromey <tromey@redhat.com>
5890
5891 * ui-file.c (gdb_fopen): Make arguments const.
5892 * ui-file.h (gdb_fopen): Make arguments const.
5893
5894 2013-05-14 Tom Tromey <tromey@redhat.com>
5895
5896 * remote.c (remote_set_trace_notes): Make arguments const.
5897 * target.c (update_current_target): Update cast.
5898 * target.h (to_set_trace_notes): Make arguments const.
5899
5900 2013-05-14 Tom Tromey <tromey@redhat.com>
5901
5902 * go32-nat.c (go32_terminal_info): Make 'args' const.
5903 * inferior.h (child_terminal_info): Update.
5904 * inflow.c (child_terminal_info): Make 'args' const.
5905 * target.c (default_terminal_info): Make 'args' const.
5906 (debug_to_terminal_save_ours): Likewise.
5907 * target.h (struct target_ops) <to_terminal_info>: Make argument
5908 const.
5909
5910 2013-05-13 Tom Tromey <tromey@redhat.com>
5911
5912 * gcore.c (create_gcore_bfd): Make 'filename' const.
5913 * gcore.h (create_gcore_bfd): Make 'filename' const.
5914 * record-full.c (record_full_save): Make 'recfilename' const.
5915 * target.c (target_save_record): Make 'filename' const.
5916 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5917 const.
5918 (target_save_record): Likewise.
5919
5920 2013-05-13 Tom Tromey <tromey@redhat.com>
5921
5922 PR gdb/15338:
5923 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5924 ranges section has been read.
5925
5926 2013-05-13 Tom Tromey <tromey@redhat.com>
5927
5928 PR exp/15364:
5929 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5930 STRUCTOP_PTR>: Return a not_lval value for
5931 EVAL_AVOID_SIDE_EFFECTS.
5932 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5933 for EVAL_AVOID_SIDE_EFFECTS.
5934
5935 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5936
5937 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5938 floating point registers to register type before storing
5939 value.
5940 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5941 Likewise.
5942
5943 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5944 Tom Tromey <tromey@redhat.com>
5945
5946 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5947 New functions.
5948 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5949 Declare.
5950 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5951 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5952 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5953 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5954
5955 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5956 Tom Tromey <tromey@redhat.com>
5957
5958 PR build/15414:
5959 * configure: Rebuild.
5960 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5961 with -Wno-format.
5962
5963 2013-05-10 Pedro Alves <palves@redhat.com>
5964
5965 * remote.c (_initialize_remote): Fix spelling of
5966 qXfer:traceframe-info:read packet in packet config command.
5967
5968 2013-05-10 David Taylor <dtaylor@emc.com>
5969
5970 PR remote/15455
5971
5972 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5973 "QTro" at start of packet.
5974
5975 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5976
5977 * solib-aix.c (solib_aix_relocate_section_addresses):
5978 For the .bss section action, apply the same offset as
5979 the .data section.
5980
5981 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5982
5983 * solib-aix.c (solib_aix_relocate_section_addresses):
5984 Remove FIXME comment.
5985
5986 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5987
5988 PR tdep/15420:
5989 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5990 New functions, directly copied from sparc-sol-thread.c.
5991 * sparc-sol-thread.c: Delete.
5992 * configure.ac: Remove code handling sparc-solaris-thread.c.
5993 * configure: Regenerate.
5994
5995 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5996
5997 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5998 filter logic.
5999 (backtrace_command): Add "no-filters" option parsing.
6000 (_initialize_stack): Alter help to reflect "no-filters" option.
6001 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6002 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6003 (py-frame.o): Add target
6004 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6005 filter files.
6006 * python/python.h: Add new frame filter constants, and flag enum.
6007 (apply_frame_filter): Add definition.
6008 * python/python.c (apply_frame_filter): New non-Python
6009 enabled function.
6010 * python/py-utils.c (py_xdecref): New function.
6011 (make_cleanup_py_xdecref): Ditto.
6012 * python/py-objfile.c: Declare frame_filters dictionary.
6013 (objfpy_dealloc): Add frame_filters dealloc.
6014 (objfpy_new): Initialize frame_filters attribute.
6015 (objfile_to_objfile_object): Ditto.
6016 (objfpy_get_frame_filters): New function.
6017 (objfpy_set_frame_filters): New function.
6018 * python/py-progspace.c: Declare frame_filters dictionary.
6019 (pspy_dealloc): Add frame_filters dealloc.
6020 (pspy_new): Initialize frame_filters attribute.
6021 (pspacee_to_pspace_object): Ditto.
6022 (pspy_get_frame_filters): New function.
6023 (pspy_set_frame_filters): New function.
6024 * python/py-framefilter.c: New file.
6025 * python/lib/gdb/command/frame_filters.py: New file.
6026 * python/lib/gdb/frames.py: New file.
6027 * python/lib/gdb/__init__.py: Initialize global frame_filters
6028 dictionary
6029 * python/lib/gdb/FrameDecorator.py: New file.
6030 * python/lib/gdb/FrameIterator.py: New file.
6031 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6032 * mi/mi-cmds.h: Declare.
6033 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6034 --no-frame-filter logic, and Python frame filter logic.
6035 (stack_enable_frame_filters): New function.
6036 (parse_no_frame_option): Ditto.
6037 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6038 filter logic.
6039 (mi_cmd_stack_list_locals): Ditto.
6040 (mi_cmd_stack_list_args): Ditto.
6041 (mi_cmd_stack_list_variables): Ditto.
6042 * NEWS: Add frame filter note.
6043
6044 2013-05-09 Doug Evans <dje@google.com>
6045
6046 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6047 All callers updated.
6048 (syms_from_objfile): Ditto. Make static.
6049 (symbol_file_add_with_addrs): Renamed from
6050 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6051 num_offsets. All callers updated.
6052 * symfile.h (syms_from_objfile): Delete.
6053
6054 * symfile.c (decrement_reading_symtab): Add assert.
6055 (increment_reading_symtab): Ditto.
6056
6057 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6058
6059 * source.c (forward_search_command): Replace call to getc
6060 by call to fgetc.
6061 (reverse_search_command): Likewise.
6062
6063 2013-05-08 Doug Evans <dje@google.com>
6064
6065 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6066 matching test.
6067
6068 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6069
6070 * sol-thread.c (info_cb): Factorize the code a little.
6071
6072 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6073
6074 * sol-thread.c (info_cb): Rework the output of the "maintenance
6075 info sol-threads" command a bit.
6076
6077 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6078
6079 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6080 Replace ti.ti_startfunc by ti.ti_pc.
6081
6082 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6083
6084 * solib-aix.c (solib_aix_free_library_list): New function
6085 for the case where HAVE_LIBEXPAT is not defined.
6086
6087 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6088
6089 PR breakpoints/15413:
6090 * breakpoint.c (condition_completer): Simplify the code to
6091 disconsider multiple locations of breakpoints when completing the
6092 "condition" command.
6093
6094 2013-05-07 Pierre Muller <muller@sourceware.org>
6095
6096 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6097 instead of <sys/wait.h>.
6098
6099 2013-05-07 Pierre Muller <muller@sourceware.org>
6100
6101 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6102 trailing new line from warning message.
6103
6104 2013-05-07 Pierre Muller <muller@sourceware.org>
6105
6106 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6107 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6108
6109 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6110
6111 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6112 error message (ARI fix).
6113
6114 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6115
6116 * features/library-list-aix.dtd: Replace library-list by
6117 library-list-aix.
6118 * rs6000-nat.c: Replace library-list by library-list-aix
6119 throughout.
6120 * solib-aix.c: Likewise.
6121
6122 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6123
6124 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6125 Renames TARGET_OBJECT_AIX_LIBRARIES.
6126 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6127 TARGET_OBJECT_LIBRARIES_AIX throughout.
6128 * solib-aix.c: Likwise.
6129
6130 2013-05-07 Yao Qi <yao@codesourcery.com>
6131
6132 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6133 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6134
6135 2013-05-07 Yao Qi <yao@codesourcery.com>
6136
6137 * solib-dsbt.c (enable_break): Declare.
6138 (dsbt_current_sos): Remove call to enable_break2.
6139 (enable_break2): Rename to enable_break. Set solib breakpoint
6140 on '_dl_debug_state'.
6141 (enable_break): Remove.
6142
6143 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6144
6145 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6146 debug state prior to replicating existing hardware watchpoints or
6147 breakpoints.
6148
6149 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6150
6151 * gcore.c (gcore_create_callback): Ignore sections with
6152 separate_debug_objfile_backlink != NULL.
6153
6154 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6155 Andrew Jenner <andrew@codesourcery.com>
6156 Chung-Lin Tang <cltang@codesourcery.com>
6157 Julian Brown <julian@codesourcery.com>
6158
6159 Based on the nios2-elf port from Altera Corporation.
6160
6161 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6162 nios2-linux-tdep.o.
6163 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6164 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6165 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6166 * nios2-tdep.h: New.
6167 * nios2-tdep.c: New.
6168 * nios2-linux-tdep.c: New.
6169 * features/Makefile (WHICH): Add nios2-linux.
6170 (nios2-linux-expedite): Set.
6171 * features/nios2-cpu.xml: New.
6172 * features/nios2.xml: New.
6173 * features/nios2-linux.xml: New.
6174 * features/nios2.c: New (autogenerated).
6175 * features/nios2-linux.c: New (autogenerated).
6176 * regformats/nios2-linux.dat: New (autogenerated).
6177 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6178 and commands.
6179
6180 2013-05-06 Doug Evans <dje@google.com>
6181
6182 * symfile.c: Whitespace cleanup.
6183
6184 * solist.h (struct target_so_ops): New member clear_so.
6185 * solib-svr4.c (svr4_clear_so): New function.
6186 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6187 * solib.c (clear_so): Renamed from free_so_symbols.
6188 All callers updated. Call target clear_so if it exists.
6189
6190 2013-05-06 Tom Tromey <tromey@redhat.com>
6191
6192 * ada-lang.c (ada_value_primitive_packed_val): Don't
6193 call value_incref.
6194 * value.c (set_value_parent): Incref the new parent and decref
6195 the old parent.
6196 (value_copy, value_primitive_field): Use set_value_parent.
6197
6198 2013-05-06 Tom Tromey <tromey@redhat.com>
6199
6200 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6201 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6202 if needed.
6203 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6204 * dwarf2read.c (write_constant_as_bytes)
6205 (dwarf2_fetch_constant_bytes): New functions.
6206
6207 2013-05-06 Tom Tromey <tromey@redhat.com>
6208
6209 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6210 parameters.
6211 (dwarf2_const_value_attr): Update.
6212
6213 2013-05-06 Tom Tromey <tromey@redhat.com>
6214
6215 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6216 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6217 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6218 Remove declaration.
6219
6220 2013-05-06 Tom Tromey <tromey@redhat.com>
6221
6222 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6223 objfile's obstack.
6224
6225 2013-05-06 Doug Evans <dje@google.com>
6226
6227 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6228 * stabsread.h (process_one_symbol): Update declaration.
6229 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6230 * elfread.c (elf_symfile_relocate_probe): Ditto.
6231 * psymtab.c (relocate_psymtabs): Ditto.
6232 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6233 (objfile_relocate): Ditto.
6234 * objfiles.h (objfile_relocate): Update declaration.
6235 * symfile.c (relative_addr_info_to_section_offsets): Constify
6236 addrs parameter.
6237 (default_symfile_offsets): Ditto.
6238 (syms_from_objfile_1): Constify offsets parameter.
6239 (syms_from_objfile): Ditto.
6240 (symbol_file_add_with_addrs_or_offsets): Ditto.
6241 (symfile_map_offsets_to_segments): Constify data parameter.
6242 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6243 delta parameters of member relocate.
6244 (struct sym_probe_fns): Constify new_offsets,
6245 delta parameters of member sym_relocate_probe.
6246 (struct sym_fns): Constify section_addr_info parameter of member
6247 sym_offsets.
6248 (relative_addr_info_to_section_offsets): Update declaration.
6249 (default_symfile_offsets): Ditto.
6250 (syms_from_objfile): Ditto.
6251 (symfile_map_offsets_to_segments): Ditto.
6252
6253 * symfile.c (syms_from_objfile_1): Use correct section count when
6254 objfile->sf == NULL.
6255
6256 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6257
6258 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6259
6260 2013-05-06 Doug Evans <dje@google.com>
6261
6262 * psympriv.h (struct partial_symtab): Augment comment for member
6263 section_offsets.
6264
6265 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6266
6267 Reimplement shared library support on ppc-aix...
6268 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6269 * features/library-list-aix.dtd: New file.
6270 * solib-aix.h, solib-aix.c: New file.
6271 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6272 (rs6000_find_toc_address_hook): Delete.
6273 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6274 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6275 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6276 "xml-utils.h".
6277 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6278 (vmap_symtab, fixup_breakpoints): Delete.
6279 (rs6000_xfer_shared_libraries): New function.
6280 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6281 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6282 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6283 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6284 (rs6000_xfer_shared_library): New function.
6285 (find_toc_address): Delete.
6286 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6287 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6288 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6289 before creating minimal symbol. Adjust function description
6290 accordingly.
6291 (scan_xcoff_symtab): Replace call to
6292 prim_record_minimal_symbol_and_info by call to
6293 record_minimal_symbol.
6294 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6295 around default_symfile_offsets.
6296 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6297 powerpc-aix targets.
6298 * config/rs6000/nm-rs6000.h: Delete.
6299 * config/powerpc/aix.mh (NAT_FILE): Delete.
6300 (NATDEPFILES): Remove xcoffsolib.o.
6301 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6302 (ALL_TARGET_OBS): Add solib-aix.o.
6303 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6304 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6305 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6306 * xcoffsolib.h, xcoffsolib.c: Delete.
6307
6308 * solib.c (reload_shared_libraries): Remove reference to
6309 SOLIB_CREATE_INFERIOR_HOOK.
6310 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6311 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6312 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6313 comment.
6314 * corelow.c (deprecated_core_resize_section_table): Delete.
6315 * exec.c: Remove include of xcoffsolib.h".
6316 (map_vmap, vmap): Delete.
6317 (exec_close_1): Remove references to vmap.
6318 (exec_file_attach): Remove vmap handling code, and reference
6319 to DEPRECATED_IBM6000_TARGET.
6320 (bfdsec_to_vmap): Delete.
6321 (exec_files_info): Remove block of code handling VMAP.
6322 * infcmd.c (post_create_inferior): Remove reference to
6323 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6324 * infrun.c (follow_exec): Remove reference to
6325 SOLIB_CREATE_INFERIOR_HOOK.
6326 * stack.c (print_frame): Remove reference to PC_SOLIB.
6327 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6328 (dsbt_relocate_main_executable): Likewise.
6329 * solib-frv.c (frv_current_sos): Likewise.
6330
6331 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6332
6333 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6334 to target_write_memory and target_read_memory.
6335
6336 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6337
6338 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6339 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6340
6341 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6342
6343 * darwin-nat.c: Replace all "%x" instances in format strings
6344 into "0x%x" throughout.
6345
6346 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6347
6348 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6349 gdb_assert by call to MACH_CHECK_ERROR.
6350 (darwin_attach_pid): Raise an error rather than a failed
6351 assertion when various system calls failed. Report a warning
6352 instead of raising a failed assertion when PREV_NOT is not NULL
6353 after call to mach_port_request_notification.
6354 (darwin_ptrace_me): Raise an error rather than a failed
6355 assertion when read returns nonzero.
6356
6357 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6358
6359 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6360
6361 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6362
6363 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6364
6365 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6366
6367 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6368 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6369 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6370 a stale cleanup. Fix double free of NAME.
6371
6372 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6373
6374 * windows-nat.c (windows_delete_thread): Accept an additional
6375 argument, the thread's exit code, and announce thread death when
6376 print_thread_events is non-zero and we are deleting a thread that
6377 is not the main thread.
6378 (get_windows_debug_event): Pass thread exit code to
6379 windows_delete_thread.
6380
6381 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6382
6383 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6384 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6385 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6386 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6387 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6388 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6389 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6390 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6391 (gdbarch_tdep): New struct.
6392 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6393 E_NUM_REGS.
6394 (v850e3v5_register_name): New function.
6395 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6396 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6397 code handling the struct return conventions for the RH850 ABI.
6398 Update all callers.
6399 (v850_eight_byte_align_p): New function.
6400 (v850_push_call_dummy): Push structs by value, not by reference
6401 for the RH850 ABI. Add support for eight byte alignment.
6402 (v850_dbtrap_breakpoint_from_pc): New function.
6403 (v850_gdbarch_init): Add ABI detection code. Register
6404 v850e3v5_register_name for the v850e3v5 architecture. Set the
6405 number of registers for v850e3v5. Register
6406 v850_dbtrap_breakpoint_from_pc as appropriate.
6407 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6408
6409 2013-05-03 Doug Evans <dje@google.com>
6410
6411 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6412 of bfd_count_sections.
6413 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6414 * symfile.c (default_symfile_offsets): Ditto.
6415 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6416 one entry, not bfd_count_sections entries.
6417
6418 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6419
6420 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6421 `save' and `restore' register groups. Don't include SPL
6422 or SPH in these groups.
6423 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6424 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6425 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6426 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6427 dwarf2_append_unwinders().
6428
6429 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6430
6431 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6432 ignore SIGINT and SIGTRAP in case these internal signals are
6433 caught explicitely.
6434
6435 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6436
6437 * darwin-nat.c (darwin_read_write_inferior): Change types
6438 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6439 of copy_count to "mach_msg_type_number_t".
6440 (darwin_read_dyld_info): Change type of parameter
6441 rdaddr to "gdb_byte *".
6442
6443 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6444
6445 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6446 of &info->load_map from "char *" to "gdb_byte *".
6447
6448 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6449
6450 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6451 from "char *" to "gdb_byte *".
6452 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6453
6454 2013-04-30 Doug Evans <dje@google.com>
6455
6456 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6457 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6458 DWO stub. If DWO isn't found, just use stub.
6459 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6460
6461 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6462 calling init_cutu_and_read_dies.
6463
6464 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6465
6466 * target-descriptions.c (maint_print_c_tdesc_cmd):
6467 Add case to parse structures as register types and
6468 bitfields.
6469
6470 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6471
6472 * MAINTAINERS (Write After Approval): Add myself to the list.
6473
6474 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6475
6476 * sol-thread.c (rw_common): Change type of parameter "buf"
6477 to "gdb_byte *".
6478 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6479 rw_common to "gdb_byte *" instead of "char *".
6480
6481 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6482
6483 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6484 of local variable msym to const struct bound_minimal_symbol.
6485 Adjust use accordingly.
6486 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6487
6488 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6489
6490 * i386gnu-nat.c (CREG_OFFSET): New macro.
6491 (creg_offset): New array.
6492 (CREG_ADDR): Use creg_offset instead of reg_offset.
6493
6494 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6495
6496 * mep-tdep.c (mep_write_pc): Delete.
6497 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6498 Add call to set_gdbarch_pc_regnum.
6499
6500 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6501
6502 * common/filestuff.c: Replace #include <dirent.h> by
6503 #include "gdb_dirent.h".
6504
6505 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6506
6507 * common/filestuff.c: Replace #include <sys/stat.h> by
6508 #include "gdb_stat.h".
6509
6510 2013-04-29 Pierre Muller <muller@sourceware.org>
6511
6512 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6513 editCase function rule.
6514 (get_DW_AT_signature_type): Likewise.
6515
6516 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6517
6518 * m32r-tdep.c (m32r_write_pc): Delete.
6519 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6520 Add call to set_gdbarch_pc_regnum.
6521
6522 2013-04-29 Pierre Muller <muller@sourceware.org>
6523
6524 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6525
6526 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6527
6528 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6529
6530 2013-04-28 Yao Qi <yao@codesourcery.com>
6531
6532 * solib-dsbt.c (fetch_loadmap): Re-indent.
6533 (displacement_from_map, enable_break2): Likewise.
6534 (dsbt_relocate_section_addresses): Likewise.
6535
6536 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6537
6538 GDB 7.6 released.
6539
6540 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6541
6542 PR corefiles/14983:
6543 * dwarf2read.c (process_full_comp_unit): Always create a static
6544 block.
6545
6546 2013-04-25 Hui Zhu <hui@codesourcery.com>
6547
6548 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6549 to loc->cmd_bytecode.
6550
6551 2013-04-24 Doug Evans <dje@google.com>
6552
6553 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6554
6555 2013-04-22 Keith Seitz <keiths@redhat.com>
6556
6557 * tracepoint.c (trace_save): Call the writer's start method.
6558
6559 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6560
6561 PR gdb/10462
6562 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6563 before argument.
6564
6565 2013-04-23 Tom Tromey <tromey@redhat.com>
6566
6567 * common/filestuff.c: Check USE_WIN32API before including
6568 sys/socket.h.
6569 (HAVE_F_GETFD): New define.
6570 (mark_cloexec): Check HAVE_F_GETFD.
6571 (gdb_open_cloexec): Change 'mode' to unsigned long.
6572 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6573 (gdb_pipe_cloexec): Check HAVE_PIPE.
6574 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6575 long.
6576
6577 2013-04-23 Hui Zhu <hui@codesourcery.com>
6578
6579 PR gdb/15293
6580 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6581
6582 2013-04-23 Hui Zhu <hui@codesourcery.com>
6583
6584 PR gdb/15165
6585 * breakpoint.c (dprintf_print_recreate): New.
6586 (save_breakpoints): Let it not save dprintf commands.
6587 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6588
6589 2013-04-22 Tom Tromey <tromey@redhat.com>
6590
6591 PR gdb/7912:
6592 * Makefile.in (SFILES): Add filestuff.c
6593 (COMMON_OBS): Add filestuff.o.
6594 (filestuff.o): New target.
6595 * auto-load.c (auto_load_objfile_script_1): Use
6596 gdb_fopen_cloexec.
6597 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6598 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6599 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6600 * common/agent.c (gdb_connect_sync_socket): Use
6601 gdb_socket_cloexec.
6602 * common/filestuff.c: New file.
6603 * common/filestuff.h: New file.
6604 * common/linux-osdata.c (linux_common_core_of_thread)
6605 (command_from_pid, commandline_from_pid, print_source_lines)
6606 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6607 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6608 gdb_fopen_cloexec.
6609 * common/linux-procfs.c (linux_proc_get_int)
6610 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6611 * config.in, configure: Rebuild.
6612 * configure.ac: Don't check for sys/socket.h. Check for
6613 fdwalk, pipe2.
6614 * corelow.c (core_open): Use gdb_open_cloexec.
6615 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6616 * fork-child.c (fork_inferior): Call close_most_fds.
6617 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6618 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6619 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6620 Use gdb_fopen_cloexec.
6621 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6622 gdb_open_cloexec.
6623 (linux_async_pipe): Use gdb_pipe_cloexec.
6624 * remote-fileio.c (remote_fileio_func_open): Use
6625 gdb_open_cloexec.
6626 * remote.c (remote_file_put, remote_file_get): Use
6627 gdb_fopen_cloexec.
6628 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6629 close_most_fds.
6630 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6631 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6632 * solib.c (solib_find): Use gdb_open_cloexec.
6633 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6634 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6635 (tfile_open): Use gdb_open_cloexec.
6636 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6637 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6638 * xml-support.c (xml_fetch_content_from_file): Use
6639 gdb_fopen_cloexec.
6640 * main.c (captured_main): Call notice_open_fds.
6641
6642 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6643
6644 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6645 'char *' to 'gdb_byte *'.
6646 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6647 'gdb_byte'.
6648
6649 2013-04-22 Yao Qi <yao@codesourcery.com>
6650
6651 * infrun.c: Fix typo in comment.
6652
6653 2013-04-22 Andrew Haley <aph@redhat.com>
6654
6655 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6656 instead of "long".
6657
6658 2013-04-20 Yao Qi <yao@codesourcery.com>
6659
6660 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6661 'char *' to 'gdb_byte *'. Cast the return value of
6662 'bt_ctf_get_char_array' to 'gdb_byte *'.
6663
6664 2013-04-19 Pedro Alves <palves@redhat.com>
6665
6666 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6667 -Wpointer-sign.
6668 * configure: Regenerate.
6669
6670 2013-04-19 Pedro Alves <palves@redhat.com>
6671
6672 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6673 'void *'.
6674
6675 2013-04-19 Pedro Alves <palves@redhat.com>
6676
6677 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6678 Change type of 'myaddr' parameter to gdb_byte pointer.
6679 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6680 to 'long long' pointer instead of to 'unsigned long long'.
6681 (monitor_write_memory_block, monitor_read_memory_single)
6682 (monitor_read_memory): Change type of 'myaddr' parameter to
6683 gdb_byte pointer.
6684
6685 2013-04-19 Pedro Alves <palves@redhat.com>
6686
6687 * record.c (validate_history_size): Make parameter 'setting'
6688 unsigned.
6689
6690 2013-04-19 Pedro Alves <palves@redhat.com>
6691
6692 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6693 to 'gdb_byte *'.
6694
6695 2013-04-19 Pedro Alves <palves@redhat.com>
6696
6697 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6698 local to int.
6699
6700 2013-04-19 Pedro Alves <palves@redhat.com>
6701
6702 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6703 * ada-tasks.c (read_fat_string_value): Likewise.
6704
6705 2013-04-19 Pedro Alves <palves@redhat.com>
6706
6707 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6708 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6709 'offset', and adjust.
6710
6711 2013-04-19 Pedro Alves <palves@redhat.com>
6712
6713 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6714 (read_index_from_section): Add cast to 'char *'.
6715
6716 2013-04-19 Pedro Alves <palves@redhat.com>
6717
6718 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6719
6720 2013-04-19 Pedro Alves <palves@redhat.com>
6721
6722 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6723
6724 2013-04-19 Pedro Alves <palves@redhat.com>
6725
6726 * record-full.c (record_full_get_bookmark): Change local 'ret'
6727 type to char * and add cast to gdb_byte *.
6728 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6729 string.
6730 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6731
6732 2013-04-19 Pedro Alves <palves@redhat.com>
6733
6734 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6735 * python/py-prettyprint.c (print_string_repr): Change type of
6736 'output' local to char *. Add cast to gdb_byte * in
6737 LA_PRINT_STRING call.
6738 (print_children): Change type of 'output' local to char *.
6739 * python/py-value.c (valpy_string): Add cast to const char * in
6740 PyUnicode_Decode call.
6741
6742 2013-04-19 Pedro Alves <palves@redhat.com>
6743
6744 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6745 and change its type to 'const char *'. Adjust.
6746 (mips_send_packet): Add cast to 'char *', and remove cast to
6747 'unsigned char *'.
6748 (mips_receive_packet): Remove cast to 'unsigned char *'.
6749 (mips_load_srec): Use bfd_byte.
6750 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6751 (pmon_checkset): Make 'value' parameter unsigned.
6752
6753 2013-04-19 Pedro Alves <palves@redhat.com>
6754
6755 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6756
6757 2013-04-19 Pedro Alves <palves@redhat.com>
6758
6759 * remote.c (remote_write_bytes_aux, compare_sections_command)
6760 (remote_read_qxfer)
6761 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6762 (remote_hostio_readlink, remote_bfd_iovec_pread)
6763 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6764 binary buffer, and char when buffer is used as string.
6765 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6766 (trace_save, tfile_open, traceframe_walk_blocks)
6767 (tfile_fetch_registers): Likewise.
6768
6769 2013-04-19 Pedro Alves <palves@redhat.com>
6770
6771 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6772 buffer and size_t size. Adjust.
6773 * ser-base.h (ser_base_write): Adjust.
6774 * ser-go32.c (cnts): Change type to size_t.
6775 (dos_write): Change prototype -- take 'void *'
6776 buffer and size_t size. Adjust.
6777 (dos_info): Print elements of 'cnts' as unsigned long.
6778 * serial.c (serial_write): Likewise.
6779 * serial.h (serial_write): Adjust.
6780 (struct serial_ops) <write>: Change prototype -- take 'void *'
6781 buffer and size_t size. Adjust.
6782
6783 2013-04-19 Pedro Alves <palves@redhat.com>
6784
6785 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6786 gdb_byte *.
6787 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6788
6789 2013-04-19 Pedro Alves <palves@redhat.com>
6790
6791 * alpha-tdep.c (alpha_extract_return_value): Use
6792 regcache_cooked_read_unsigned to read 'v0'.
6793
6794 2013-04-19 Pedro Alves <palves@redhat.com>
6795
6796 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6797 parameters 'at', 'as' and 'offset' to uint32_t.
6798
6799 2013-04-19 Pedro Alves <palves@redhat.com>
6800
6801 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6802 'is64' to signed 'int'.
6803
6804 2013-04-19 Pedro Alves <palves@redhat.com>
6805
6806 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6807 parameter to int *.
6808
6809 2013-04-19 Pedro Alves <palves@redhat.com>
6810
6811 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6812 'insnbuf' buffer type to unsigned int[].
6813
6814 2013-04-19 Pedro Alves <palves@redhat.com>
6815
6816 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6817
6818 2013-04-19 Pedro Alves <palves@redhat.com>
6819
6820 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6821 unsigned long *.
6822
6823 2013-04-19 Pedro Alves <palves@redhat.com>
6824
6825 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6826 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6827 UINT_MAX.
6828 * mips-tdep.c (heuristic_fence_post): Change type to int.
6829 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6830
6831 2013-04-19 Pedro Alves <palves@redhat.com>
6832
6833 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6834 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6835 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6836
6837 2013-04-19 Pedro Alves <palves@redhat.com>
6838
6839 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6840 it to get a string view of the byte buffer.
6841 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6842 type to gdb_byte *. Adjust.
6843 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6844 Change local to char *.
6845 * solib-darwin.c (find_program_interpreter): Change return type to
6846 char *. Adjust.
6847 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6848 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6849 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6850 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6851 * solib-svr4.c (find_program_interpreter): Change return type to
6852 char *. Adjust.
6853 (enable_break): Change local 'interp_name' to char *.
6854 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6855 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6856 (spu_pseudo_register_write_spu): Use char for string buffer.
6857 Adjust.
6858 (info_spu_event_command, info_spu_signal_command): Add casts to
6859 'char *'.
6860
6861 2013-04-19 Pedro Alves <palves@redhat.com>
6862
6863 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6864 gdb_byte[].
6865 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6866 * ada-lang.c (ada_value_assign): Use gdb_byte.
6867 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6868 (alphanbsd_sigtramp_offset): Use gdb_byte.
6869 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6870 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6871 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6872 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6873 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6874 * arm-tdep.c (arm_stub_unwind_sniffer)
6875 (arm_displaced_init_closure): Use gdb_byte.
6876 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6877 (arm_default_thumb_le_breakpoint)
6878 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6879 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6880 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6881 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6882 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6883 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6884 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6885 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6886 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6887 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6888 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6889 (cris_store_return_value, cris_extract_return_value): Use
6890 gdb_byte.
6891 (constraint): Change type of parameter to char * from signed
6892 char*. Use gdb_byte.
6893 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6894 of local buffer to gdb_byte *.
6895 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6896 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6897 (add_address_entry): Change type of local buffer to gdb_byte[].
6898 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6899 (frv_push_dummy_call): Use gdb_byte.
6900 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6901 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6902 (hppa_hpux_supply_save_state): Use gdb_byte.
6903 * hppa-tdep.c (hppa32_push_dummy_call)
6904 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6905 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6906 (slotN_contents, replace_slotN_contents): Change type of parameter
6907 to gdb_byte *.
6908 (fetch_instruction, ia64_pseudo_register_write)
6909 (ia64_register_to_value, ia64_value_to_register)
6910 (ia64_extract_return_value, ia64_store_return_value)
6911 (ia64_push_dummy_call): Use gdb_byte.
6912 * m32c-tdep.c (m32c_return_value): Remove cast.
6913 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6914 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6915 gdb_byte.
6916 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6917 * mn10300-tdep.c (mn10300_store_return_value)
6918 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6919 gdb_byte.
6920 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6921 (moxie_process_record): Remove casts.
6922 * ppc-ravenscar-thread.c (supply_register_at_address)
6923 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6924 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6925 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6926 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6927 * remote.c (compare_sections_command): Use gdb_byte.
6928 * score-tdep.c (score7_free_memblock): Change type of parameter to
6929 gdb_byte *.
6930 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6931 gdb_byte *. Use gdb_byte.
6932 (sh_push_dummy_call_fpu): Use gdb_byte.
6933 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6934 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6935 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6936 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6937 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6938 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6939 (sh64_store_return_value, sh64_register_convert_to_virtual):
6940 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6941 (sh64_pseudo_register_write): Use gdb_byte.
6942 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6943 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6944 buffer.
6945 (irix_current_sos): Use gdb_byte.
6946 * solib-som.c (som_current_sos): Use gdb_byte.
6947 * sparc-ravenscar-thread.c (supply_register_at_address)
6948 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6949 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6950 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6951 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6952 'gdb_byte *'.
6953 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6954 'gdb_byte *'.
6955 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6956 * xstormy16-tdep.c (xstormy16_extract_return_value)
6957 (xstormy16_store_return_value): Change parameter type to
6958 'gdb_byte *'. Adjust.
6959 (xstormy16_push_dummy_call): Use gdb_byte.
6960 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6961 (call0_analyze_prologue, execute_code): Use gdb_byte.
6962
6963 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6964 Pedro Alves <palves@redhat.com>
6965
6966 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6967 value contents.
6968
6969 2013-04-17 Doug Evans <dje@google.com>
6970
6971 * dwarf2read.c (struct signatured_type): New member type.
6972 (struct attribute): Replace member signatured_type with signature.
6973 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6974 (read_call_site_scope): Call follow_die_ref instead of
6975 follow_die_ref_or_sig.
6976 (read_structure_type): Rewrite handling of signatured types.
6977 (read_enumeration_type): Ditto.
6978 (read_attribute_value): Update.
6979 (build_error_marker_type): New function.
6980 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6981 Don't call error for bad types, just build an error marker type.
6982 (dump_die_shallow): Update.
6983 (follow_die_sig_1): Renamed from follow_die_sig.
6984 Don't call error for bad types, instead return NULL.
6985 (follow_die_sig): New function.
6986 (get_signatured_type, get_DW_AT_signature_type): New functions.
6987
6988 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6989
6990 * aarch64-tdep.c (aarch64_write_pc): Removed.
6991 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6992 function.
6993
6994 2013-04-17 Yao Qi <yao@codesourcery.com>
6995
6996 * top.c (print_gdb_configuration): Print configure-time
6997 parameter on using libbabeltrace or not.
6998
6999 2013-04-16 Pedro Alves <palves@redhat.com>
7000
7001 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7002
7003 2013-04-16 Pedro Alves <palves@redhat.com>
7004
7005 * common/glibc_thread_db.h: Update from upstream glibc
7006 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7007
7008 2013-04-16 Pedro Alves <palves@redhat.com>
7009
7010 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7011 * common/glibc_thread_db.h: ... this new file ...
7012 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7013
7014 2013-04-16 Will Newton <will.newton@gmail.com>
7015 Pedro Alves <palves@redhat.com>
7016
7017 PR build/11881
7018
7019 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7020 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7021 HAVE_THREAD_DB_H.
7022
7023 2013-04-16 Pedro Alves <palves@redhat.com>
7024 Eli Zaretskii <eliz@gnu.org>
7025
7026 * NEWS: Mention "set foo unlimited".
7027
7028 2013-04-15 Doug Evans <dje@google.com>
7029
7030 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7031 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7032 (create_dwo_cu_reader): Renamed from
7033 create_dwo_debug_info_hash_table_reader.
7034 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7035 Remove support for multiple CUs in a DWO file.
7036 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7037
7038 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7039 instead of phex.
7040 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7041 (create_dwo_in_dwp): Ditto.
7042
7043 2013-04-15 Tom Tromey <tromey@redhat.com>
7044
7045 * NEWS: Move recent entries into "since 7.6" section.
7046
7047 2013-04-15 Tom Tromey <tromey@redhat.com>
7048
7049 PR c++/13588:
7050 * NEWS: Update.
7051 * break-catch-throw.c (struct exception_catchpoint)
7052 <exception_rx, pattern>: New fields.
7053 (fetch_probe_arguments, dtor_exception_catchpoint)
7054 (check_status_exception_catchpoint)
7055 (print_one_detail_exception_catchpoint): New functions.
7056 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7057 Compile regular expression if needed.
7058 (extract_exception_regexp): New function.
7059 (catch_exception_command_1): Use extract_exception_regexp.
7060 (compute_exception): Use fetch_probe_arguments.
7061 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7062 and check_status fields.
7063 * cp-abi.c (cplus_typename_from_type_info): New function.
7064 * cp-abi.h (cplus_typename_from_type_info): Declare.
7065 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7066 * gdb_regex.h (compile_rx_or_error): Declare.
7067 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7068 comment.
7069 (init_gnuv3_ops): Set get_type_from_type_info field.
7070 * probe.c (compile_rx_or_error): Move...
7071 * utils.c (compile_rx_or_error): ... here.
7072
7073 2013-04-15 Tom Tromey <tromey@redhat.com>
7074
7075 PR c++/15176:
7076 * NEWS: Update.
7077 * break-catch-throw.c (compute_exception): New function.
7078 (exception_funcs): New global.
7079 (_initialize_break_catch_throw): Create $_exception.
7080 * cp-abi.c (cplus_type_from_type_info): New function.
7081 * cp-abi.h (cplus_type_from_type_info): Declare.
7082 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7083 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7084 (gnuv3_get_type_from_type_info): New functions.
7085 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7086
7087 2013-04-15 Tom Tromey <tromey@redhat.com>
7088
7089 * break-catch-throw.c (struct exception_names): New.
7090 (exception_functions): Change type.
7091 (re_set_exception_catchpoint): Look for SDT probes.
7092
7093 2013-04-15 Tom Tromey <tromey@redhat.com>
7094
7095 PR c++/10119:
7096 * break-catch-throw.c (exception_functions): New global.
7097 (gnu_v3_exception_catchpoint_ops): Move earlier.
7098 (struct exception_catchpoint): New.
7099 (classify_exception_breakpoint): Rewrite.
7100 (re_set_exception_catchpoint): New function.
7101 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7102 Allocate a struct exception_catchpoint.
7103 (catch_exception_command_1): Update.
7104 (initialize_throw_catchpoint_ops): Set 're_set' method.
7105
7106 2013-04-15 Tom Tromey <tromey@redhat.com>
7107
7108 * Makefile.in (SFILES): Add break-catch-throw.c
7109 (COMMON_OBS): Add break-catch-throw.o.
7110 * break-catch-throw.c: New file.
7111 * breakpoint.c: Move exception-catching code to new file.
7112 (ep_parse_optional_if_clause): No longer static.
7113 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7114
7115 2013-04-15 Tom Tromey <tromey@redhat.com>
7116
7117 PR c++/9065:
7118 * NEWS: Update.
7119 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7120 * c-exp.y (TYPEID): New token.
7121 (exp): Add new TYPEID productions.
7122 (ident_tokens): Add "typeid".
7123 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7124 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7125 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7126 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7127 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7128 case.
7129 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7130 (build_std_type_info_type, gnuv3_get_typeid_type)
7131 (gnuv3_get_typeid): New functions.
7132 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7133 new fields on ABI object.
7134 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7135 * std-operator.def (OP_TYPEID): New.
7136
7137 2013-04-15 Tom Tromey <tromey@redhat.com>
7138
7139 * elfread.c (elf_symtab_read): Install versioned symbol under
7140 unversioned name as well.
7141
7142 2013-04-15 Tom Tromey <tromey@redhat.com>
7143
7144 PR c++/11990:
7145 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7146 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7147 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7148 (gdb_demangle): New function.
7149 * cp-support.h (gdb_demangle): Declare.
7150 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7151 (dwarf2_name): Use gdb_demangle.
7152 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7153 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7154 suffixes from name.
7155 (gnuv3_print_method_ptr): Use gdb_demangle.
7156 * jv-lang.c (java_demangle): Use gdb_demangle.
7157 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7158 * language.c (unk_lang_demangle): Use gdb_demangle.
7159 * symtab.c (symbol_find_demangled_name)
7160 (demangle_for_lookup): Use gdb_demangle.
7161
7162 2013-04-15 Tom Tromey <tromey@redhat.com>
7163
7164 PR c++/12824:
7165 * NEWS: Update.
7166 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7167 New constant.
7168 (classify_exception_breakpoint): New function.
7169 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7170 (print_mention_exception_catchpoint)
7171 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7172 (catch_exception_command_1): Handle "rethrow" catchpoint.
7173 (catch_rethrow_command): New function.
7174 (_initialize_breakpoint): Add "catch rethrow" command.
7175
7176 2013-04-15 Pierre Muller <muller@sourceware.org>
7177
7178 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7179 set_gdbarch_write_pc as deprecated anymore.
7180
7181 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7182
7183 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7184 declarations.
7185
7186 2013-04-13 Yao Qi <yao@codesourcery.com>
7187
7188 * ctf.c (_initialize_ctf): Include "completer.h".
7189 Call add_target_with_completer instead of add_target.
7190
7191 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7192
7193 Fix GDB regression related to PR binutils/14813.
7194 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7195 * minidebug.c (lzma_close): Add return value comment.
7196 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7197 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7198 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7199
7200 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7201
7202 * config.in: Regenerate.
7203
7204 2013-04-12 Tom Tromey <tromey@redhat.com>
7205
7206 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7207 const.
7208 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7209 (struct die_reader_specs) <buffer>: Likewise.
7210 (die_reader_func_ftype): Make 'info_ptr' const.
7211 (struct line_header) <include_dirs, statement_program_start,
7212 statement_program_end>: Now const.
7213 (struct file_entry) <name>: Likewise.
7214 (struct partial_die_info) <sibling>: Likewise.
7215 (struct dwarf_block) <data>: Likewise.
7216 (dwarf2_read_section): Remove cast.
7217 (dwarf2_get_section_info): Make 'bufp' const.
7218 (read_index_from_section): Constify.
7219 (dw2_get_file_names_reader): Make 'info_ptr' const.
7220 (dw2_get_primary_filename_reader): Likewise.
7221 (read_comp_unit_head): Make 'info_ptr' and return type const.
7222 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7223 Likewise.
7224 (read_abbrev_offset): Constify.
7225 (dwarf2_create_include_psymtab): Make 'name' const.
7226 (create_debug_types_hash_table): Update.
7227 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7228 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7229 Constify.
7230 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7231 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7232 (read_comp_units_from_section): Constify.
7233 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7234 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7235 const.
7236 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7237 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7238 (create_dwp_hash_table, dwarf2_ranges_read)
7239 (dwarf2_record_block_ranges): Constify.
7240 (read_die_and_children, read_die_and_siblings_1)
7241 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7242 const.
7243 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7244 (abbrev_table_read_table): Constify.
7245 (load_partial_dies): Make 'info_ptr' const.
7246 (read_partial_die, read_attribute_value, read_attribute): Make
7247 'info_ptr' and return type const.
7248 (read_address, read_initial_length)
7249 (read_checked_initial_length_and_offset, read_offset)
7250 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7251 const.
7252 (read_direct_string): Make 'buf' and return type const.
7253 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7254 (read_indirect_string): Make return type const.
7255 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7256 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7257 'info_ptr' const.
7258 (read_str_index): Make return type const.
7259 (add_include_dir): Make 'include_dir' const.
7260 (add_file_name): Make 'name' const.
7261 (dwarf_decode_line_header): Constify.
7262 (psymtab_include_file_name): Make return type const.
7263 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7264 (dwarf2_start_subfile): Make 'filename' const.
7265 (dwarf2_const_value_attr): Make 'bytes' const.
7266 (read_signatured_type_reader): Make 'info_ptr' const.
7267 (decode_locdesc): Constify.
7268 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7269 const.
7270 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7271 'mac_end', and return type const.
7272 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7273 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7274 type const.
7275 (per_cu_header_read_in): Constify.
7276 * symfile.h (dwarf2_get_section_info): Update.
7277
7278 2013-04-12 Tom Tromey <tromey@redhat.com>
7279
7280 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7281
7282 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7283
7284 * NEWS: Mention "show configuration", --configuration.
7285 * top.c (print_gdb_configuration): New function, displays the
7286 details about GDB configure-time parameters.
7287 (print_gdb_version): Mention "show configuration".
7288 * cli/cli-cmds.c (show_configuration): New function.
7289 (_initialize_cli_cmds): Add the "show configuration" command.
7290 * main.c (captured_main) <print_configuration>: New static var.
7291 <long_options>: Use it.
7292 If --configuration was given, call print_gdb_configuration.
7293
7294 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7295 Pedro Alves <palves@redhat.com>
7296
7297 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7298 (generated_files): Add gcore.
7299 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7300 HAVE_NATIVE_GCORE_HOST.
7301 (gcore): New.
7302 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7303 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7304 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7305 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7306 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7307 Add HAVE_NATIVE_GCORE_HOST.
7308 * configure: Regenerate.
7309 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7310 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7311 AC_CONFIG_FILES for gcore.
7312 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7313 gdb_have_gcore.
7314 * gdb_gcore.sh: Rename to ...
7315 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7316 and GCORE_TRANSFORM_NAME substitutions.
7317
7318 Fix parsing tabs in ${gdb_target_obs}.
7319 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7320
7321 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7322
7323 * remote.c (unpush_and_perror): Add output message final dot.
7324
7325 2013-04-11 Yao Qi <yao@codesourcery.com>
7326
7327 * tracepoint.c (tfile_interp_line): Fit parameters line and
7328 utpp in one line.
7329
7330 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7331
7332 * solib.c (solib_map_sections): Remove code overwriting
7333 SO->SO_NAME with the bfd's filename.
7334
7335 2013-04-10 Pedro Alves <palves@redhat.com>
7336
7337 * cli/cli-decode.c (integer_unlimited_completer): New function.
7338 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7339 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7340 completer.
7341 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7342 (is_unlimited_literal): New function.
7343 (do_set_command): Handle literal "unlimited" arguments.
7344 * frame.c (_initialize_frame) <set backtrace limit>: Document
7345 "unlimited".
7346 * printcmd.c (_initialize_printcmd) <set print
7347 max-symbolic-offset>: Add help text.
7348 * record-full.c (_initialize_record_full) <set record full
7349 insn-number-max>: Likewise.
7350 * record.c (_initialize_record) <set record
7351 instruction-history-size, set record function-call-history-size>:
7352 Add help text.
7353 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7354 help text.
7355 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7356 Likewise.
7357 * source.c (_initialize_source) <set listsize>: Add help text.
7358 * utils.c (initialize_utils) <set height, set width>: Likewise.
7359 <set pagination>: Mention "set height unlimited".
7360 * valprint.c (_initialize_valprint) <set print elements, set print
7361 repeats>: Document "unlimited".
7362
7363 2013-04-10 Pedro Alves <palves@redhat.com>
7364
7365 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7366 instead of disconnect_tracing.
7367 * infcmd.c (detach_command, disconnect_command): Call
7368 query_if_trace_running. Adjust.
7369 * top.c: Include "tracepoint.h".
7370 (quit_target): Delete. Contents moved ...
7371 (quit_force): ... here. Wrap each stage of teardown in
7372 TRY_CATCH. Call disconnect_tracing before detaching.
7373
7374 2013-04-10 Hui Zhu <hui@codesourcery.com>
7375 Yao Qi <yao@codesourcery.com>
7376
7377 * configure.ac: Check libbabeltrace is installed.
7378 * config.in: Regenerate.
7379 * configure: Regenerate.
7380 * Makefile.in (LIBBABELTRACE): New.
7381 (CLIBS): Add LIBBABELTRACE.
7382 * ctf.c: Include "exec.h".
7383 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7384 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7385 (ctf_save_metadata_header): Define new type aliases in
7386 metadata.
7387 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7388 in metadata. Start a new faked packet for trace status.
7389 (ctf_write_status): Write trace status to CTF.
7390 (ctf_write_uploaded_tsv): Write TSV to CTF.
7391 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7392 (ctf_write_definition_end): End the faked packet.
7393
7394 (ctx, ctf_iter, trace_dirname): New.
7395 (start_pos): New variable.
7396 (ctf_destroy, ctf_open_dir, ctf_open): New.
7397 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7398 macros.
7399 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7400 (ctf_fetch_registers, ctf_xfer_partial): New.
7401 (ctf_get_trace_state_variable_value): New.
7402 (ctf_get_tpnum_from_frame_event): New.
7403 (ctf_get_traceframe_address): New.
7404 (ctf_trace_find, ctf_has_stack): New.
7405 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7406 (ctf_get_trace_status, ctf_read_status): New.
7407 (_initialize_ctf): New.
7408 * tracepoint.c (get_tracepoint_number): New
7409 (get_uploaded_tsv): Remove 'static'.
7410 (struct traceframe_info, trace_regblock_size): Move it to ...
7411 * tracepoint.h: ... here.
7412 (get_tracepoint_number): Declare it.
7413 (get_uploaded_tsv): Declare it.
7414
7415 * NEWS: Mention new configure option.
7416
7417 2013-04-10 Pedro Alves <palves@redhat.com>
7418 Hui Zhu <hui@codesourcery.com>
7419
7420 * breakpoint.c (dprintf_re_set): New.
7421 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7422 to dprintf_re_set.
7423
7424 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7425
7426 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7427 Remove solib-svr4.o from the list.
7428
7429 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7430
7431 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7432 Use gdb_assert_not_reached instead of invalid boolean expression.
7433
7434 2013-04-09 Pedro Alves <palves@redhat.com>
7435
7436 * remote.c (unpush_and_perror): New function.
7437 (readchar, remote_serial_write): Use it.
7438
7439 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7440
7441 * NEWS: Mention new btrace RSP packets.
7442
7443 2013-04-08 Tom Tromey <tromey@redhat.com>
7444
7445 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7446 long.
7447
7448 2013-04-08 Tom Tromey <tromey@redhat.com>
7449
7450 * maint.c (print_bfd_section_info): Print the section index.
7451 * symmisc.c (dump_msymbols): Print the section index.
7452
7453 2013-04-08 Tom Tromey <tromey@redhat.com>
7454
7455 PR symtab/8424:
7456 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7457 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7458 * breakpoint.c (resolve_sal_pc): Update.
7459 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7460 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7461 (minsym_lookup_iterator_cb): Use it.
7462 (default_read_var_value): Update.
7463 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7464 Update.
7465 * infcmd.c (jump_command): Update.
7466 * linespec.c (minsym_found): Update.
7467 * maint.c (maintenance_translate_address): Update.
7468 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7469 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7470 * parse.c (write_exp_msymbol): Update.
7471 * printcmd.c (address_info): Update.
7472 * psymtab.c (find_pc_sect_psymbol): Update.
7473 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7474 SYMBOL_OBJ_SECTION.
7475 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7476 Don't initialize SYMBOL_OBJ_SECTION.
7477 * spu-tdep.c (spu_catch_start): Update.
7478 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7479 * symmisc.c (dump_msymbols, print_symbol): Update.
7480 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7481 how fallback section is computed.
7482 (fixup_symbol_section): Update.
7483 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7484 Update.
7485 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7486 Initialize SYMBOL_SECTION.
7487 * symtab.h (struct general_symbol_info) <section>: Update comment.
7488 <obj_section>: Remove.
7489 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7490 (SYMBOL_OBJFILE): New macro.
7491
7492 2013-04-08 Tom Tromey <tromey@redhat.com>
7493
7494 * coffread.c (record_minimal_symbol): Update.
7495 * dbxread.c (record_minimal_symbol): Update.
7496 * elfread.c (record_minimal_symbol): Update.
7497 * machoread.c (macho_symtab_add_minsym): Update.
7498 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7499 Update.
7500 * minsyms.c (prim_record_minimal_symbol): Update.
7501 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7502 argument.
7503 (prim_record_minimal_symbol_and_info): Likewise.
7504 * minsyms.h (prim_record_minimal_symbol_full)
7505 (prim_record_minimal_symbol_and_info): Update.
7506 * symtab.c (allocate_symbol, initialize_symbol)
7507 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7508 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7509 Update.
7510
7511 2013-04-08 Tom Tromey <tromey@redhat.com>
7512
7513 PR symtab/8423:
7514 * solib-som.c (som_solib_section_offsets): Use BFD section
7515 indices. Set offsets for all sections.
7516 * somread.c (som_symtab_read): Compute BFD section for
7517 symbol. Use prim_record_minimal_symbol_and_info.
7518 (som_symfile_read): Fix comment.
7519 (struct find_section_offset_arg): New.
7520 (find_section_offset, set_section_index): New functions.
7521 (som_symfile_offsets): Use set_section_index to compute
7522 section indices.
7523
7524 2013-04-08 Tom Tromey <tromey@redhat.com>
7525
7526 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7527 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7528 gdb_bfd_section_index.
7529 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7530 New functions.
7531 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7532 Declare.
7533 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7534 Update.
7535 * objfiles.c (add_to_objfile_sections_full): New function.
7536 (add_to_objfile_sections): Use it.
7537 (build_section_table): Rewrite.
7538 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7539 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7540 (struct objfile) <sections>: Update comment.
7541 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7542 is NULL.
7543 (ALL_OBJSECTIONS): Use it.
7544 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7545 * solib-frv.c (frv_relocate_main_executable): Update.
7546 * solib-target.c (solib_target_relocate_section_addresses):
7547 Use gdb_bfd_section_index.
7548 * symfile.c (build_section_addr_info_from_section_table):
7549 Use gdb_bfd_section_index.
7550 (build_section_addr_info_from_bfd, place_section): Likewise.
7551 * symtab.c (fixup_section): Update.
7552 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7553
7554 2013-04-08 Tom Tromey <tromey@redhat.com>
7555
7556 * minsyms.h (struct bound_minimal_symbol): New.
7557 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7558 Remove objfile argument.
7559 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7560 Return bound_minimal_symbol.
7561 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7562 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7563 Return bound_minimal_symbol.
7564 (in_gnu_ifunc_stub): Update.
7565 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7566 Remove 'objfile_p' argument.
7567 (lookup_solib_trampoline_symbol_by_pc): Update.
7568 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7569 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7570 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7571 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7572 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7573 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7574 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7575 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7576 stack.c, symtab.c, tui/tui-disasm.c: Update.
7577
7578 2013-04-08 Tom Tromey <tromey@redhat.com>
7579
7580 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7581 Use symbol's obstack, not an objfile.
7582 * coffread.c (process_coff_symbol): Update.
7583 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7584 * jv-lang.c (add_class_symbol): Update.
7585 * mdebugread.c (new_symbol): Update.
7586 * minsyms.c (prim_record_minimal_symbol_full)
7587 (terminate_minimal_symbol_table): Update.
7588 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7589 * stabsread.c (define_symbol, read_enum_type): Update.
7590 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7591 Handle Ada specially.
7592 (symbol_set_language): Add 'obstack' argument.
7593 (symbol_set_names): Update.
7594 (symbol_natural_name, symbol_demangled_name): Always use
7595 ada_decode_symbol.
7596 * symtab.h (struct general_symbol_info)
7597 <language_specific::obstack>: New field.
7598 <ada_mangled>: New field.
7599 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7600 (symbol_set_language): Update.
7601
7602 2013-04-08 Tom Tromey <tromey@redhat.com>
7603
7604 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7605 Take an obstack, not an objfile.
7606 (symbol_set_names): Update.
7607 * symtab.h (symbol_set_demangled_name): Update.
7608
7609 2013-04-08 Tom Tromey <tromey@redhat.com>
7610
7611 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7612 allocate_symbol.
7613 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7614 (read_func_scope): Call allocate_template_symbol.
7615 (new_symbol_full): Call allocate_symbol.
7616 * jit.c (finalize_symtab): Call allocate_symbol.
7617 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7618 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7619 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7620 (common_block_end): Call allocate_symbol.
7621 * symtab.c (allocate_symbol, initialize_symbol)
7622 (allocate_template_symbol): New functions.
7623 * symtab.c (allocate_symbol, initialize_symbol)
7624 (allocate_template_symbol): Declare.
7625 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7626
7627 2013-04-08 Pedro Alves <palves@redhat.com>
7628 Keith Seitz <keiths@redhat.com>
7629
7630 * breakpoint.c (create_breakpoint): Rename
7631 "parse_condition_and_thread" parameter to "parse_arg". Update
7632 describing comment. If !PARSE_ARG, then error out if ARG is not
7633 the empty string after extracting the location.
7634 * breakpoint.h (create_breakpoint): Rename
7635 "parse_condition_and_thread" parameter to "parse_arg".
7636
7637 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7638
7639 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7640
7641 2013-04-07 Yao Qi <yao@codesourcery.com>
7642
7643 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7644 and 'addr2' to CORE_ADDR.
7645 * target.c (update_current_target): Update.
7646 * target.h (struct target_ops) <to_trace_find>: Change parameter
7647 type to CORE_ADDR.
7648 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7649 'addr2' to CORE_ADDR.
7650 (tfile_trace_find): Likewise.
7651 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7652 Change local variable 'addr' to type CORE_ADDR.
7653 * tracepoint.h (tfind_1): Update declaration.
7654
7655 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7656
7657 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7658 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7659 Include main.h.
7660
7661 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7662 here...
7663 * main.h (windows_get_absolute_argv0): ...to here.
7664
7665 2013-04-05 Doug Evans <dje@google.com>
7666
7667 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7668 (read_cutu_die_from_dwo): Add comments.
7669 (read_structure_type): Update comment.
7670 (read_enumeration_type, read_namespace_type): Update comment.
7671 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7672
7673 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7674
7675 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7676 * Makefile.in (gdb.z): Remove.
7677 (install-only): Remove $(man1dir) and gdb.1 installation.
7678 * gdb.1: Remove.
7679
7680 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7681
7682 Fix compatibility with Linux kernel 3.8.3.
7683 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7684 to more inner block. Remove parsing of NUMBER from outer block.
7685 Parse NUMBER only if KEYWORD has been identified.
7686
7687 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7688
7689 Fix variable name shadowing.
7690 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7691 filename to mapsfilename and update its uses.
7692
7693 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7694
7695 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7696 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7697 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7698 details of the problem.
7699
7700 2013-04-04 Pedro Alves <palves@redhat.com>
7701 Hui Zhu <hui@codesourcery.com>
7702
7703 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7704 tracepoint, reset its STEP_COUNT and call validate_actionline.
7705
7706 2013-04-03 Doug Evans <dje@google.com>
7707
7708 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7709 read_die_and_siblings.
7710 (read_die_and_siblings): New function.
7711 (read_cutu_die_from_dwo): Dump die if requested.
7712 (read_die_and_children): Call read_full_die_1 and
7713 read_die_and_siblings_1.
7714 (read_full_die): Dump die if requested.
7715
7716 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7717
7718 * dwarf2read.c (struct dwo_file): New member comp_dir.
7719 Rename member name to dwo_name. All uses updated.
7720 (hash_dwo_file): Include comp_dir in computation.
7721 (eq_dwo_file): Ditto.
7722 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7723 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7724
7725 * psymtab.c (read_psymtabs_with_fullname): Don't call
7726 psymtab_to_fullname if the basenames are different.
7727
7728 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7729
7730 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7731 New entry about "fullname" presence.
7732
7733 2013-04-03 Pedro Alves <palves@redhat.com>
7734
7735 * NEWS: Mention x86_64/Cygwin as new native configuration.
7736
7737 2013-04-02 Doug Evans <dje@google.com>
7738
7739 * dwarf2read.c (read_structure_type): Fix typo in comment.
7740
7741 2013-04-02 Pedro Alves <palves@redhat.com>
7742
7743 * NEWS: Mention "set/show debug aarch64", "set/show debug
7744 coff-pe-read" and "set/show debug mach-o".
7745
7746 2013-04-02 Pedro Alves <palves@redhat.com>
7747
7748 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7749
7750 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7751
7752 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7753 gdb_string.h is now in common/.
7754
7755 2013-04-02 Pedro Alves <palves@redhat.com>
7756
7757 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7758 under "New options".
7759
7760 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7761
7762 Revert this patch:
7763 PR gdb/15275
7764 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7765
7766 2013-04-02 Pedro Alves <palves@redhat.com>
7767
7768 PR gdb/15275
7769
7770 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7771 (remote_serial_write): New function.
7772 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7773
7774 2013-04-01 Jiong Wang <jiwang@tilera.com>
7775
7776 * NEWS: Mention TILE-Gx in "New native configurations" and
7777 "New targets" sections.
7778
7779 2013-04-01 Doug Evans <dje@google.com>
7780
7781 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7782 (process_enumeration_scope): Simplify.
7783
7784 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7785 type_unit_group ...
7786 (struct signatured_type): ... to here.
7787 (sig_type_ptr): New typedef.
7788 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7789 out of union 't'. All uses updated.
7790 (dw2_get_file_names_reader): Assert not called for a type unit.
7791 (dw2_get_file_names): Assert not called for a type unit or type
7792 unit group.
7793 (build_type_psymtabs_reader): Assert called for a type unit.
7794 (build_type_psymtab_dependencies): Assert called for a type unit group.
7795
7796 * dwarf2read.c (free_dwo_file): Add comment.
7797 (dwarf2_per_objfile_free): Unref dwp bfd.
7798
7799 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7800
7801 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7802 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7803 (read_pe_exported_syms): Remove unused 'exportix'.
7804 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7805 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7806 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7807
7808 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7809
7810 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7811 (print_it_watchpoint): Remove unused 'bl'.
7812 (say_where): Remove unused 'uiout'.
7813 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7814 (bkpt_breakpoint_hit): Remove unused 'b'.
7815 (internal_bkpt_print_it): Remove unused 'uiout'.
7816 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7817
7818 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7819
7820 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7821 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7822
7823 2013-03-29 Doug Evans <dje@google.com>
7824
7825 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7826 Delete arg is_dwp. All callers updated.
7827 (open_dwp_file): New function.
7828 (open_and_init_dwp_file): Call it.
7829 (get_dwp_file): New function.
7830 (lookup_dwo_cutu): Call it.
7831
7832 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7833 unnecessary, cleanup.
7834
7835 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7836
7837 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7838 (lookup_dwo_unit): New function.
7839 (init_cutu_and_read_dies): Move DWO handling to new functions.
7840
7841 * dwarf2read.c (struct signatured_type): Tweak comment.
7842 (struct dwo_unit): Tweak comment.
7843 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7844 (create_dwo_debug_info_hash_table): Tweak comment.
7845 (dwarf2_per_cu_offset_and_type): Tweak comment.
7846
7847 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7848 missing .debug_types section.
7849
7850 2013-03-29 Yao Qi <yao@codesourcery.com>
7851
7852 * corelow.c: Include "completer.h".
7853 (_initialize_corelow): Call add_target_with_completer with
7854 argument 'filename_completer'.
7855 * tracepoint.c: Likewise.
7856 * exec.c (_initialize_exec): Likewise.
7857 * target.c (add_target): Rename to ...
7858 (add_target_with_completer): ... this. Call set_cmd_completer
7859 if parameter completer is not NULL.
7860 (add_target): New.
7861 * target.h: Include "command.h".
7862 (add_target_with_completer): Declare it.
7863
7864 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7865
7866 * coffread.c (is_import_fixup_symbol): New function.
7867 (record_minimal_symbol): Use is_import_fixup_symbol to
7868 detect import fixup symbols, and discard them.
7869
7870 2013-03-28 Doug Evans <dje@google.com>
7871
7872 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7873 types hash table until we know we need it.
7874
7875 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7876 index numbers.
7877
7878 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7879 All callers updated.
7880 (dw2_print_stats): Print #read CUs too.
7881 (dump_die_shallow): Print signatured types better.
7882
7883 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7884 info_or_types_section to section. All uses updated.
7885 (struct dwo_unit): Ditto.
7886
7887 2013-03-28 Pedro Alves <palves@redhat.com>
7888
7889 * NEWS (New options): New section.
7890 (New options): Mention set/show remote trace-status-packet.
7891 * remote.c (PACKET_qTStatus): New enumeration value.
7892 (remote_get_trace_status): Skip sending qTStatus if the packet is
7893 disabled. Use packet_ok.
7894 (_initialize_remote): Register a configuration command for
7895 qTStatus packet.
7896
7897 2013-03-28 Doug Evans <dje@google.com>
7898
7899 * symfile.c (find_separate_debug_file): Add comment.
7900 (terminate_after_last_dir_separator): Tweak comment.
7901
7902 * dwarf2read.c (create_partial_symtab): Add forward decl.
7903 (create_partial_symtab): Move to be closer to other psymtab functions.
7904 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7905
7906 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7907 (compute_symtab_includes): Remove unnecessary forward declaration.
7908 (die_needs_namespace): Add comment marking group of functions for
7909 dwarf2 name computation.
7910
7911 * typeprint.c (_initialize_typeprint): Improve type help text.
7912
7913 * python/python.c (finish_python_initialization): Provide suggestion
7914 for how to tell gdb to find its python files.
7915
7916 2013-03-28 Pedro Alves <palves@redhat.com>
7917
7918 PR gdb/15294
7919
7920 * source.c (_initialize_source): Change back "set listsize" to an
7921 integer command.
7922
7923 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7924
7925 PR gdb/15275
7926 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7927
7928 2013-03-27 Pedro Alves <palves@redhat.com>
7929
7930 * top.c (history_size): Rename to ...
7931 (history_size_setshow_var): ... this. Add comment.
7932 (show_commands): Use readline's 'history_length' instead of
7933 computing the history length by calling history_get in a loop.
7934 (set_history_size_command): Error out for sizes over INT_MAX.
7935 Restore previous history size on invalid size.
7936 (init_history): If HISTSIZE is negative, leave the history size as
7937 zero. Add comments.
7938 (init_main): Adjust.
7939
7940 2013-03-27 Pedro Alves <palves@redhat.com>
7941
7942 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7943 coff_pe_read" command to "set debug coff-pe-read".
7944
7945 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7946
7947 * record.c (command_size_to_target_size): Fix size comparison.
7948 Change parameter type from pointer to integer to integer.
7949 Update all users.
7950
7951 2013-03-27 Pierre Muller <muller@sourceware.org>
7952
7953 * windows-nat.c (handle_output_debug_string): Avoid typecast
7954 from integer of different size warning.
7955
7956 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7957
7958 * windows-nat.c (handle_output_debug_string): Add empty line
7959 after local block variable definition.
7960
7961 2013-03-26 Pedro Alves <palves@redhat.com>
7962
7963 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7964 (net_open): Make 'polls' local unsigned.
7965
7966 2013-03-26 Pedro Alves <palves@redhat.com>
7967
7968 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7969 a zuinteger command instead of uinteger.
7970
7971 2013-03-26 Pedro Alves <palves@redhat.com>
7972
7973 * record-full.c (record_full_insn_num): Make it unsigned.
7974 (record_full_check_insn_num, record_full_message)
7975 (record_full_registers_change, record_full_xfer_partial): Remove
7976 record_full_insn_max_num check (it's always != 0).
7977 (record_full_info, record_full_restore): Use %u as format string.
7978 (): Use %u as format string.
7979 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7980 check (it's always != 0).
7981
7982 2013-03-26 Pedro Alves <palves@redhat.com>
7983
7984 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7985 and "set dcache size" commands zuinteger instead of uinteger.
7986
7987 2013-03-26 Pedro Alves <palves@redhat.com>
7988
7989 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7990 command zuinteger instead of uinteger.
7991
7992 2013-03-26 Pedro Alves <palves@redhat.com>
7993
7994 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7995 zuinteger instead of uinteger.
7996
7997 2013-03-26 Pedro Alves <palves@redhat.com>
7998
7999 * record.c (record_insn_history_size_setshow_var)
8000 (record_call_history_size_setshow_var): New globals.
8001 (command_size_to_target_size): New function.
8002 (cmd_record_insn_history, cmd_record_call_history): Use
8003 command_size_to_target_size instead of cast.
8004 (validate_history_size, set_record_insn_history_size)
8005 (set_record_call_history_size): New functions.
8006 (_initialize_record): Install set_record_insn_history_size and
8007 set_record_call_history_size as "set" hooks of "set record
8008 instruction-history-size" and "set record
8009 function-call-history-size".
8010
8011 2013-03-26 Pedro Alves <palves@redhat.com>
8012
8013 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8014 use with history_max_entries use. Remove FIXME note.
8015
8016 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8017
8018 * record-btrace.c (record_btrace_close): Call
8019 record_btrace_auto_disable.
8020
8021 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8022
8023 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8024
8025 2013-03-25 Doug Evans <dje@google.com>
8026
8027 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8028
8029 2013-03-25 Tom Tromey <tromey@redhat.com>
8030
8031 PR symtab/11462:
8032 * c-exp.y (exp): Add new productions for destructors after '.' and
8033 '->'.
8034 (write_destructor_name): New function.
8035
8036 2013-03-25 Tom Tromey <tromey@redhat.com>
8037
8038 PR c++/9197:
8039 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8040 value_struct_elt, not lookup_struct_elt_type.
8041 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8042 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8043 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8044
8045 2013-03-25 Yao Qi <yao@codesourcery.com>
8046
8047 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8048 instead of '_mkdir'.
8049
8050 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8051
8052 * windows-nat.c (windows_get_absolute_argv0): New function.
8053 * windows-nat.h: Add its prototype.
8054
8055 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8056 Use IS_DIR_SEPARATOR instead of looking for a character inside
8057 SLASH_STRING. Include filenames.h.
8058 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8059 relocate_gdb_directory works when passed gdb_program_name.
8060 Include windows-nat.h.
8061
8062 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8063
8064 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8065 * remote.c (trace_error): Remove the special handling of '2'.
8066 (readchar) <SERIAL_EOF>
8067 (readchar) <SERIAL_ERROR>
8068 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8069 (remote_get_trace_status): Call throw_exception if EX is
8070 TARGET_CLOSE_ERROR.
8071 * utils.c (perror_with_name): Rename to ...
8072 (throw_perror_with_name): ... here. New parameter errcode, describe it
8073 in the function comment.
8074 (perror_with_name): New function wrapper.
8075 * utils.h (enum errors): New stub declaration.
8076 (throw_perror_with_name): New declaration.
8077
8078 2013-03-22 Pedro Alves <palves@redhat.com>
8079 Yao Qi <yao@codesourcery.com>
8080 Mark Kettenis <kettenis@gnu.org>
8081
8082 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8083 Don't let the user set the value to UINT_MAX directly.
8084 <var_integer>: Don't let the user set the value to INT_MAX
8085 directly.
8086
8087 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8088
8089 * remote.c (remote_unpush_target): New function.
8090 (remote_open_1): Remove two pop_target calls, update one comment, add
8091 comment to target_preopen call. Replace pop_target call by
8092 remote_unpush_target call.
8093 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8094 pop_target calls by remote_unpush_target calls.
8095
8096 2013-03-22 Pedro Alves <palves@redhat.com>
8097
8098 * linux-nat.c (linux_child_follow_fork): Don't call
8099 linux_enable_event_reporting.
8100 (linux_handle_extended_wait): Don't call
8101 linux_enable_event_reporting.
8102
8103 2013-03-22 Pedro Alves <palves@redhat.com>
8104
8105 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8106 use it to rewrite the trampoline buffers with type gdb_byte[], and
8107 undefine the macro. Remove char* cast.
8108
8109 2013-03-21 Doug Evans <dje@google.com>
8110
8111 New commands "mt set per-command {space,time,symtab} {on,off}".
8112 * NEWS: Add entry.
8113 * event-top.c: #include "maint.h".
8114 * main.c: #include "maint.h".
8115 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8116 timeval-utils.h, maint.h, cli/cli-setshow.h.
8117 (per_command_time, per_command_space): New static globals.
8118 (per_command_symtab): New static global.
8119 (per_command_setlist, per_command_showlist): New static globals.
8120 (struct cmd_stats): Move here from utils.c.
8121 (set_per_command_time): Renamed from set_display_time in utils.c
8122 and moved here. All callers updated.
8123 (set_per_command_space): Renamed from set_display_space in utils.c
8124 and moved here. All callers updated.
8125 (count_symtabs_and_blocks): New function.
8126 (report_command_stats): Moved here from utils.c. Add support for
8127 printing symtab stats. Only print data if enabled before command
8128 executed.
8129 (make_command_stats_cleanup): Ditto.
8130 (sert_per_command_cmd, show_per_command_cmd): New functions.
8131 (_initialize_maint_cmds): Add new commands
8132 mt set per-command {space,time,symtab} {on,off}.
8133 * maint.h: New file.
8134 * top.c: #include "maint.h".
8135 * utils.c (reset_prompt_for_continue_wait_time): New function.
8136 (get_prompt_for_continue_wait_time): New function.
8137 * utils.h (reset_prompt_for_continue_wait_time): Declare
8138 (get_prompt_for_continue_wait_time): Declare.
8139 (make_command_stats_cleanup): Moved to maint.h.
8140 (set_display_time, set_display_space): Moved to maint.h and renamed
8141 to set_per_command_time, set_per_command_space.
8142 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8143 parse_binary_operation and made non-static. Don't call error,
8144 just return an error marker. All callers updated.
8145 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8146
8147 2013-03-21 Tom Tromey <tromey@redhat.com>
8148
8149 * symfile.c (alloc_section_addr_info): Update header. Don't set
8150 'num_sections' field.
8151 (build_section_addr_info_from_section_table): Set 'num_sections'.
8152 (build_section_addr_info_from_bfd): Likewise.
8153 (build_section_addr_info_from_objfile): Remove dead loop
8154 condition.
8155 (free_section_addr_info): Unconditionally call xfree.
8156 (relative_addr_info_to_section_offsets, addrs_section_sort)
8157 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8158 condition.
8159 (syms_from_objfile_1): Remove dead 'if' condition. Check
8160 'num_sections'.
8161 (add_symbol_file_command): Set 'num_sections'.
8162 * symfile-mem.c (symbol_file_add_from_memory): Set
8163 'num_sections'.
8164 * somread.c (som_symfile_offsets): Remove dead loop condition.
8165 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8166 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8167
8168 2013-03-21 Tom Tromey <tromey@redhat.com>
8169
8170 * tracepoint.h (decode_agent_options): Add 'trace_string'
8171 argument.
8172 * tracepoint.c (decode_agent_options): Add 'trace_string'
8173 argument.
8174 (validate_actionline): Update.
8175 (collect_symbol): Add 'trace_string' argument.
8176 (struct add_local_symbols_data) <trace_string>: New field.
8177 (do_collect_symbol): Update.
8178 (add_local_symbols): Add 'trace_string' argument.
8179 (encode_actions_1): Update.
8180 (trace_dump_actions): Update.
8181 * dwarf2loc.c (access_memory): Update.
8182 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8183 * ax-general.c (new_agent_expr): Update.
8184 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8185 (gen_trace_for_return_address): Add argument.
8186 (trace_kludge, trace_string_kludge): Remove.
8187 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8188 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8189 (gen_trace_for_var): Add 'trace_string' argument.
8190 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8191 (gen_printf, agent_eval_command_one): Update.
8192
8193 2013-03-21 Tom Tromey <tromey@redhat.com>
8194
8195 PR exp/15109:
8196 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8197 Handle FILENAME token.
8198
8199 2013-03-21 Tom Tromey <tromey@redhat.com>
8200
8201 * c-exp.y (YYPRINT): Define.
8202 (c_print_token): New function.
8203
8204 2013-03-21 Tom Tromey <tromey@redhat.com>
8205
8206 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8207
8208 2013-03-21 Yao Qi <yao@codesourcery.com>
8209
8210 * ctf.c: Include "gdb_stat.h".
8211 [USE_WIN32API]: New macro 'mkdir'.
8212 (ctf_start): Use permission bits macros if they are defined.
8213
8214 2013-03-20 Keith Seitz <keiths@redhat.com>
8215
8216 * breakpoint.h (struct breakpoint): Add comment to
8217 extra_string indicating that this member is mallod'd.
8218 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8219
8220 2013-03-20 Pedro Alves <palves@redhat.com>
8221
8222 PR gdb/15289
8223
8224 * cli/cli-setshow.c (do_set_command)
8225 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8226 the result of parsing the command argument. Throw error if the
8227 value is greater than UINT_MAX. Print the invalid value with
8228 plongest.
8229 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8230 result of parsing the command argument. Throw error if the value
8231 is greater than INT_MAX, not greater or equal. Also throw error
8232 if the value is less than INT_MIN. Print the invalid value with
8233 plongest.
8234 <var_zuinteger_unlimited>: Throw error if the value is greater
8235 than INT_MAX, not greater or equal.
8236 (do_show_command) <var_integer, var_zinteger,
8237 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8238
8239 2013-03-20 Tom Tromey <tromey@redhat.com>
8240
8241 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8242 if possible.
8243 * dwarf2read.c (read_func_scope): Remove old FIXME.
8244 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8245 not LOC_COMPUTED.
8246 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8247 Unconditionally call via computed ops, if possible.
8248 * printcmd.c (address_info): Unconditionally call via computed ops,
8249 if possible.
8250 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8251 if possible.
8252 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8253 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8254 if possible.
8255
8256 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8257 Tom Tromey <tromey@redhat.com>
8258
8259 PR symtab/8421:
8260 * coffread.c (coff_register_index): New global.
8261 (process_coff_symbol, coff_read_enum_type): Set
8262 SYMBOL_ACLASS_INDEX.
8263 (_initialize_coffread): Initialize new global.
8264 * dwarf2loc.c (locexpr_find_frame_base_location)
8265 (dwarf2_block_frame_base_locexpr_funcs)
8266 (loclist_find_frame_base_location)
8267 (dwarf2_block_frame_base_loclist_funcs): New.
8268 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8269 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8270 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8271 (dwarf2_block_frame_base_loclist_funcs): New.
8272 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8273 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8274 globals.
8275 (read_func_scope): Update.
8276 (fixup_go_packaging, mark_common_block_symbol_computed)
8277 (var_decode_location, new_symbol_full, dwarf2_const_value):
8278 Set SYMBOL_ACLASS_INDEX.
8279 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8280 (_initialize_dwarf2_read): Initialize new globals.
8281 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8282 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8283 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8284 globals.
8285 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8286 (_initialize_mdebugread): Initialize new globals.
8287 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8288 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8289 (stab_register_index, stab_regparm_index): New globals.
8290 (define_symbol, read_enum_type, common_block_end): Set
8291 SYMBOL_ACLASS_INDEX.
8292 (_initialize_stabsread): Initialize new globals.
8293 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8294 globals.
8295 (MAX_SYMBOL_IMPLS): New define.
8296 (register_symbol_computed_impl, register_symbol_block_impl)
8297 (register_symbol_register_impl)
8298 (initialize_ordinary_address_classes): New functions.
8299 (_initialize_symtab): Call initialize_ordinary_address_classes.
8300 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8301 (struct symbol_impl): New.
8302 (SYMBOL_ACLASS_BITS): New define.
8303 (struct symbol) <aclass, ops>: Remove fields.
8304 <aclass_index>: New field.
8305 (symbol_impls): Declare.
8306 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8307 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8308 (register_symbol_computed_impl, register_symbol_block_impl)
8309 (register_symbol_register_impl): Declare.
8310 (struct symbol_computed_ops): Add location_has_loclist.
8311 (struct symbol_block_ops): New.
8312 (SYMBOL_BLOCK_OPS): New.
8313 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8314
8315 2013-03-20 Tom Tromey <tromey@redhat.com>
8316
8317 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8318 (print_partial_symbols, recursively_search_psymtabs): Use
8319 PSYMBOL_CLASS.
8320
8321 2013-03-20 Pierre Muller <muller@sourceware.org>
8322
8323 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8324 addtion, subtraction, multiplication and division binary operator.
8325
8326 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8327
8328 Code cleanup.
8329 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8330 * bsd-kvm.c (bsd_kvm_close): Likewise.
8331 * bsd-uthread.c (bsd_uthread_close): Likewise.
8332 * corelow.c (core_close): Likewise.
8333 (core_close_cleanup): Remove parameter quitting from a caller.
8334 * event-top.c (async_disconnect): Likewise.
8335 * exec.c (exec_close_1): Remove parameter quitting.
8336 * go32-nat.c (go32_close): Likewise.
8337 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8338 parameter quitting from a caller.
8339 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8340 variable.
8341 (mips_linux_close): Remove parameter quitting. Remove parameter
8342 quitting from a caller.
8343 * monitor.c (monitor_close): Remove parameter quitting.
8344 * monitor.h (monitor_close): Likewise.
8345 * record-btrace.c (record_btrace_close): Likewise.
8346 * record-full.c (record_full_close): Likewise.
8347 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8348 it also from fprintf_unfiltered.
8349 * remote-mips.c (mips_close): Remove parameter quitting.
8350 (mips_detach): Remove parameter quitting from a caller.
8351 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8352 (gdbsim_close): Remove duplicate function comment. Remove parameter
8353 quitting and remove it also from printf_filtered.
8354 * remote.c (remote_close): Remove parameter quitting.
8355 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8356 * target.c (update_current_target): Remove parameter int from to_close
8357 de_fault.
8358 (push_target, unpush_target, pop_target): Remove parameter quitting from
8359 a caller.
8360 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8361 Remove parameter quitting from a caller.
8362 (target_preopen): Remove parameter quitting from a caller.
8363 (target_close): Remove parameter quitting. Remove parameter quitting
8364 from a caller two times. Remove parameter quitting also from
8365 fprintf_unfiltered.
8366 * target.h (struct target_ops): Remove parameter quitting and as int
8367 from fields to_xclose and to_close.
8368 (extern struct target_ops current_target):
8369 (target_close, pop_all_targets): Remove parameter quitting. Update the
8370 comment.
8371 (pop_all_targets_above): Remove parameter quitting.
8372 * top.c (quit_target): Remove parameter quitting from a caller.
8373 * tracepoint.c (tfile_close): Remove parameter quitting.
8374 * windows-nat.c (windows_close): Remove parameter quitting.
8375
8376 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8377
8378 * windows-nat.c (handle_output_debug_string): Replace call
8379 to string_to_core_addr with call to strtoull.
8380
8381 2013-03-20 Yao Qi <yao@codesourcery.com>
8382
8383 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8384 and write it to CTF metadata.
8385
8386 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8387
8388 * windows-nat.c (handle_output_debug_string): Change type of n to
8389 SIZE_T to avoid crash on 64 bit systems.
8390
8391 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8392
8393 * python/python-internal.h (HAVE_SNPRINTF)
8394 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8395 about redefinition of snprintf by pyerrors.h.
8396
8397 2013-03-15 Steve Ellcey <sellcey@mips.com>
8398
8399 * remote-sim.c (sim_command_completer): Make char arguments const.
8400
8401 2013-03-15 Tom Tromey <tromey@redhat.com>
8402
8403 PR c++/15116:
8404 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8405
8406 2013-03-14 Tom Tromey <tromey@redhat.com>
8407
8408 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8409 New fields.
8410 (get_file_crc): Move from symfile.c.
8411 (gdb_bfd_crc): New function.
8412 * gdb_bfd.h (gdb_bfd_crc): Declare.
8413 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8414 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8415 (separate_debug_file_exists): Use gdb_bfd_crc.
8416
8417 2013-03-14 Tom Tromey <tromey@redhat.com>
8418
8419 * symfile.c (get_debug_link_info): Remove.
8420 (find_separate_debug_file_by_debuglink): Use
8421 bfd_get_debug_link_info.
8422
8423 2013-03-14 Tom Tromey <tromey@redhat.com>
8424
8425 * symtab.c (error_in_psymtab_expansion): New function.
8426 (lookup_symbol_aux_quick)
8427 (basic_lookup_transparent_type_quick): Remove "last resort"
8428 code. Use error_in_psymtab_expansion.
8429
8430 2013-03-14 Doug Evans <dje@google.com>
8431 Jan Kratochvil <jan.kratochvil@redhat.com>
8432
8433 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8434 any successful compare_filenames_for_search or FILENAME_CMP.
8435 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8436 * symtab.c (iterate_over_some_symtabs): Likewise.
8437
8438 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8439
8440 * source.c (print_source_lines_base): Make a local copy of
8441 symtab_to_fullname.
8442
8443 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8444 Jan Kratochvil <jan.kratochvil@redhat.com>
8445
8446 * source.c (print_source_lines_base): Suppress "file" for TUI.
8447
8448 2013-03-14 Keith Seitz <keiths@redhat.com>
8449 Alan Matsuoka <alanm@redhat.com>
8450
8451 PR c++/15203
8452 PR c++/15210
8453 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8454 TYPE_CODE_METHOD.
8455 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8456 symbols.
8457
8458 2013-03-14 Yao Qi <yao@codesourcery.com>
8459
8460 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8461 status to tfile if trace is stopped by command 'tstop'.
8462
8463 2013-03-14 Yao Qi <yao@codesourcery.com>
8464
8465 * tracepoint.c (tfile_write_status): Write trace notes and user
8466 name into tfile if they are not NULL.
8467
8468 2013-03-14 Hui Zhu <hui@codesourcery.com>
8469 Yao Qi <yao@codesourcery.com>
8470
8471 * Makefile.in (REMOTE_OBS): Add ctf.o.
8472 (SFILES): Add ctf.c.
8473 (HFILES_NO_SRCDIR): Add ctf.h.
8474 * ctf.c, ctf.h: New files.
8475 * tracepoint.c: Include 'ctf.h'.
8476 (collect_pseudocommand): Remove static.
8477 (trace_save_command): Parse option "-ctf".
8478 Produce different trace file writers per option.
8479 Adjust output message.
8480 (trace_save_tfile, trace_save_ctf): New.
8481 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8482 * mi/mi-main.c: Include 'ctf.h'.
8483 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8484 trace_save_tfile or trace_save_ctf.
8485 * NEWS: Mention these changes.
8486
8487 2013-03-14 Yao Qi <yao@codesourcery.com>
8488
8489 * tracepoint.c (trace_file_writer_xfree): New.
8490 (struct tfile_writer_data): New.
8491 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8492 (tfile_write_header, tfile_write_regblock_type): New.
8493 (tfile_write_status, tfile_write_uploaded_tsv): New.
8494 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8495 (tfile_write_raw_data, (tfile_end): New.
8496 (tfile_write_ops): New global variable.
8497 (TRACE_WRITE_R_BLOCK): New macro.
8498 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8499 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8500 (TRACE_WRITE_V_BLOCK): New macro.
8501 (trace_save): Add extra one parameter WRITER. Make it static.
8502 Use WRITER to writer trace.
8503 (tfile_trace_file_writer_new): New.
8504 (trace_save_command): Caller update.
8505 (trace_save_tfile): Write trace data in TFILE format.
8506 * tracepoint.h (struct trace_frame_write_ops): New.
8507 (struct trace_file_write_ops): New.
8508 (struct trace_file_writer): New.
8509 (trace_save): Remove its declaration.
8510 (trace_save_tfile): Declare it.
8511 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8512 instead of trace_save.
8513
8514 2013-03-13 Pedro Alves <palves@redhat.com>
8515
8516 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8517
8518 2013-03-13 Pedro Alves <palves@redhat.com>
8519
8520 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8521 commented out code.
8522 * demangle.c (current_demangling_style_string): Make it const.
8523 (set_demangling_command): Assert the demangling style is known.
8524 Remove all handling of unknown styles. Set
8525 'current_demangling_style_string' to an element of the
8526 demangling_style_names array.
8527 (set_demangling_style): Delete.
8528 (_initialize_demangler): Set current_demangling_style_string to the
8529 element of the demangling_style_names array that corresponds to
8530 the default demangling style. Remove FIXME note. Don't call
8531 set_demangling_style.
8532 * gdb-demangle.h (set_demangling_style): Remove declaration.
8533
8534 2013-03-13 Pedro Alves <palves@redhat.com>
8535
8536 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8537 fields const.
8538 (ada_make_symbol_completion_list): Make "text0" parameter const.
8539 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8540 * breakpoint.c (condition_completer): Make "text" and "word"
8541 parameters const. Adjust.
8542 (check_tracepoint_command): Adjust to validate_actionline
8543 prototype change.
8544 (catch_syscall_completer): Make "text" and "word" parameters
8545 const.
8546 * cli/cli-cmds.c (show_user): Make "comname" local const.
8547 (valid_command_p): Make "command" parameter const.
8548 (alias_command): Make "alias_prefix" and "command_prefix" locals
8549 const.
8550 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8551 (add_alias_cmd): Make "name" and "oldname" parameters const.
8552 Adjust. No longer make copy of OLDNAME.
8553 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8554 (add_setshow_cmd_full, add_setshow_enum_cmd)
8555 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8556 (add_setshow_filename_cmd, add_setshow_string_cmd)
8557 (add_setshow_string_noescape_cmd)
8558 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8559 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8560 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8561 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8562 Make "name" parameter const.
8563 (help_cmd): Rename "command" parameter to "arg". New const local
8564 "command".
8565 (find_cmd): Make "command" parameter const.
8566 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8567 deprecated_cmd_warning prototype change.
8568 (undef_cmd_error): Make "cmdtype" parameter const.
8569 (lookup_cmd): Make "line" parameter const.
8570 (deprecated_cmd_warning): Change type of "text" parameter to
8571 pointer to const char, from pointer to pointer to char. Adjust.
8572 (lookup_cmd_composition): Make "text" parameter const.
8573 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8574 parameters const.
8575 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8576 const.
8577 * cli/cli-script.c (validate_comname): Make "tem" local const.
8578 (define_command): New const local "tem_c". Use it in calls to
8579 lookup_cmd.
8580 (document_command): Make "tem" and "comfull" locals const.
8581 (show_user_1): Make "prefix" and "name" parameters const.
8582 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8583 const.
8584 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8585 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8586 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8587 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8588 (complete_on_enum, add_setshow_enum_cmd)
8589 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8590 (add_setshow_filename_cmd, add_setshow_string_cmd)
8591 (add_setshow_string_noescape_cmd)
8592 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8593 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8594 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8595 Change prototypes, constifying strings.
8596 * completer.c (noop_completer, filename_completer): Make "text"
8597 and "prefix" parameters const.
8598 (location_completer, expression_completer)
8599 (complete_line_internal): Make "text" and "prefix" parameters
8600 const and adjust.
8601 (command_completer, signal_completer): Make "text" and "prefix"
8602 parameters const.
8603 * completer.h (noop_completer, filename_completer)
8604 (expression_completer, location_completer, command_completer)
8605 (signal_completer): Change prototypes.
8606 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8607 parameters const.
8608 * cp-abi.c (cp_abi_completer): Likewise.
8609 * expression.h (parse_expression_for_completion): Change
8610 prototype.
8611 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8612 parameters const.
8613 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8614 * infrun.c (handle_completer): Make "text" and "word" parameters
8615 const.
8616 * interps.c (interpreter_completer): Make "text" and "word"
8617 parameters const.
8618 * language.h (struct language_defn)
8619 <la_make_symbol_completion_list>: Make "text" and "word"
8620 parameters const.
8621 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8622 (parse_exp_in_context): Rename to ...
8623 (parse_exp_in_context_1): ... this.
8624 (parse_exp_in_context): Reimplement, with const hack from
8625 parse_exp_1.
8626 (parse_expression_for_completion): Make "string" parameter const.
8627 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8628 to pointer to const char. Adjust.
8629 (print_command_1): Make "exp" parameter const.
8630 (output_command): Rename to ...
8631 (output_command_const): ... this. Make "exp" parameter const.
8632 (output_command): Reimplement.
8633 (x_command): Adjust.
8634 (display_command): Rename "exp" parameter to "arg". New "exp"
8635 local, const version of "arg".
8636 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8637 "cmd_name" local const.
8638 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8639 call.
8640 (cmdpy_completer): Make "text" and "word" parameters const.
8641 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8642 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8643 const.
8644 * remote.c (_initialize_remote): Make "cmd_name" local const.
8645 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8646 parameters const. Adjust.
8647 (completion_list_add_fields): Make "sym_text", "text" and "word"
8648 parameters const.
8649 (struct add_name_data) <sym_text, text, word>: Make fields const.
8650 (default_make_symbol_completion_list_break_on): Make "text" and
8651 "word" parameters const. Adjust locals.
8652 (default_make_symbol_completion_list)
8653 (make_symbol_completion_list, make_symbol_completion_type)
8654 (make_symbol_completion_list_fn): Make "text" and "word"
8655 parameters const.
8656 (make_file_symbol_completion_list): Make "text", "word" and
8657 "srcfile" parameters const. Adjust locals.
8658 (add_filename_to_list): Make "text" and "word" parameters const.
8659 (struct add_partial_filename_data) <text, word>: Make fields
8660 const.
8661 (make_source_files_completion_list): Make "text" and "word"
8662 parameters const.
8663 * symtab.h (default_make_symbol_completion_list_break_on)
8664 (default_make_symbol_completion_list, make_symbol_completion_list)
8665 (make_symbol_completion_type enum type_code)
8666 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8667 (make_source_files_completion_list): Change prototype.
8668 * top.c (execute_command): Adjust to pass pointer to pointer to
8669 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8670 change.
8671 (set_verbose): Make "cmdname" local const.
8672 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8673 and adjust.
8674 (validate_actionline): Make "line" parameter a pointer to const
8675 char, and adjust.
8676 (encode_actions_1): Make "action_exp" local const, and adjust.
8677 (encode_actions): Adjust.
8678 (replace_comma): Delete.
8679 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8680 const, and adjust. Don't frob the action string while splitting
8681 it at commas. Instead, make a copy of each split substring in
8682 turn.
8683 (trace_dump_command): Adjust to validate_actionline prototype
8684 change.
8685 * tracepoint.h (decode_agent_options, decode_agent_options)
8686 (encode_actions, validate_actionline): Change prototypes.
8687 * valprint.h (output_command): Delete declaration.
8688 (output_command_const): Declare.
8689 * value.c (function_destroyer): Cast const away in xfree call.
8690
8691 2013-03-13 Pedro Alves <palves@redhat.com>
8692
8693 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8694 rather than casting 'const char * const *' to 'const char **'.
8695 * ada-lex.l (processInt): Make "trailer" local const. Remove
8696 'const char **' cast.
8697 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8698 locals, and use those as strtol output pointer, instead than doing
8699 invalid casts to from 'const char **' to 'char **'.
8700 (_initialize_demangle): Remove cast.
8701 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8702 locals, and use those as strtol output pointer, instead than doing
8703 invalid casts to from 'const char **' to 'char **'.
8704 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8705 casts.
8706 * stap-probe.c (stap_parse_register_operand)
8707 (stap_parse_single_operand): Likewise.
8708
8709 2013-03-13 Yao Qi <yao@codesourcery.com>
8710
8711 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8712 the last matched 'V' blcok in trace frame.
8713
8714 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8715
8716 * NEWS: Create a new section for the next release branch.
8717 Rename the section of the current branch, now that it has
8718 been cut.
8719
8720 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8721
8722 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8723 * version.in: Bump version to 7.6.50.20130312-cvs.
8724
8725 2013-03-12 Keith Seitz <keiths@redhat.com>
8726
8727 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8728 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8729 Remove temporary copy of input string.
8730 (mi_execute_command_wrapper): Make "cmd" const.
8731 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8732 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8733 Use const strings.
8734 (mi_parse): Make "cmd" const.
8735 Use const strings.
8736 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8737
8738 2013-03-12 Keith Seitz <keiths@redhat.com>
8739
8740 * ada-lang.c (ada_read_renaming_var_value): Pass const
8741 pointer to expression string to parse_exp_1.
8742 (create_excep_cond_exprs): Likewise.
8743 * ax-gdb.c (agent_eval_command_one): Likewise.
8744 (maint_agent_printf_command): Likewise.
8745 Constify much of the string handling/parsing.
8746 * breakpoint.c (set_breakpoint_condition): Pass const
8747 pointer to expression string to parse_exp_1.
8748 (update_watchpoint): Likewise.
8749 (parse_cmd_to_aexpr): Constify string handling.
8750 Pass const pointer to parse_exp_1.
8751 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8752 (find_condition_and_thread): Likewise.
8753 Make TOK const.
8754 (watch_command_1): Make "arg" const.
8755 Constify string handling.
8756 Copy the expression string instead of changing the input
8757 string.
8758 (update_breakpoint_location): Pass const pointer to
8759 parse_exp_1.
8760 * eval.c (parse_and_eval_address): Make "exp" const.
8761 (parse_to_comma_and_eval): Make "expp" const.
8762 (parse_and_eval): Make "exp" const.
8763 * expression.h (parse_expression): Make argument const.
8764 (parse_exp_1): Make first argument const.
8765 * findcmd.c (parse_find_args): Treat "args" as const.
8766 * linespec.c (parse_linespec): Pass const pointer to
8767 linespec_expression_to_pc.
8768 (linespec_expression_to_pc): Make "exp_ptr" const.
8769 * parse.c (parse_exp_1): Make "stringptr" const.
8770 Make a copy of the expression to pass to parse_exp_in_context until
8771 this whole interface can be constified.
8772 (parse_expression): Make "string" const.
8773 * printcmd.c (ui_printf): Treat "arg" as const.
8774 Handle const strings.
8775 * tracepoint.c (validate_actionline): Pass const pointer to
8776 all calls to parse_exp_1.
8777 (encode_actions_1): Likewise.
8778 * value.h (parse_to_comma_and_eval): Make argument const.
8779 (parse_and_eval_address): Likewise.
8780 (parse_and_eval): Likewise.
8781 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8782 (varobj_set_value): Likewise.
8783 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8784 constify string handling.
8785 Pass const pointers to parse_and_eval_address and
8786 parse_to_comman_and_eval.
8787 * cli/cli-utils.c (skip_to_space): Rename to ...
8788 (skip_to_space_const): ... this. Handle const strings.
8789 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8790 skip_to_space_const.
8791 (skip_to_space_const): Declare.
8792 * common/format.c (parse_format_string): Make "arg" const.
8793 Handle const strings.
8794 * common/format.h (parse_format_string): Make "arg" const.
8795 * gdbserver/ax.c (ax_printf): Make "format" const.
8796 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8797 of the expression string.
8798
8799 2013-03-12 Hui Zhu <hui@codesourcery.com>
8800
8801 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8802
8803 2013-03-12 Yao Qi <yao@codesourcery.com>
8804 Hui Zhu <hui@codesourcery.com>
8805
8806 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8807 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8808 DW_OP_deref_size.
8809
8810 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8811
8812 * ada-lex.l (rules): Only recognize 'thread' as a
8813 delimiter when followed by numerals, as for c-exp.y.
8814 Use new rewind_to_char function to rewind the input for
8815 expression-delimiting tokens.
8816 (rewind_to_char): New function.
8817
8818 2013-03-11 Pedro Alves <palves@redhat.com>
8819 Jan Kratochvil <jan.kratochvil@redhat.com>
8820
8821 * configure: Regenerate.
8822 * configure.ac (check dynamic export flag): Link python test with
8823 $PYTHON_LIBS.
8824
8825 2013-03-11 Doug Evans <dje@google.com>
8826 Keith Seitz <keiths@redhat.com>
8827
8828 * linespec.c (find_linespec_symbols): Call find_function_symbols
8829 first, and then call lookup_prefix_sym/find_method.
8830
8831 2013-03-11 Pedro Alves <palves@redhat.com>
8832
8833 * charset.c (convert_between_encodings): Don't cast between
8834 different pointer to pointer types. Instead, make the 'inp' local
8835 be of the type iconv expects.
8836 (wchar_iterate): Don't cast between different pointer to pointer
8837 types. Instead, use new pointer local of the type iconv expects.
8838 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8839 Add new local of type char pointer, and use it to get a
8840 char/string view of the byte buffer, instead of casting between
8841 pointer to pointer types.
8842
8843 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8844
8845 * remote.c (remote_set_trace_buffer_size): Move != operator
8846 to the start of next line to fix an ARI warning.
8847
8848 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8849
8850 * NEWS: Add record changes.
8851
8852 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8853
8854 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8855 the instruction history disassembly.
8856 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8857 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8858
8859 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8860
8861 * Makefile.in (SFILES): Add record-btrace.c
8862 (COMMON_OBS): Add record-btrace.o
8863 * record-btrace.c: New.
8864 * objfiles.c: Include btrace.h.
8865 (free_objfile): call btrace_free_objfile.
8866
8867 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8868
8869 * target.c (target_call_history, target_call_history_from,
8870 target_call_history_range): New.
8871 * target.h (target_ops) <to_call_history, to_call_history_from,
8872 to_call_history_range>: New fields.
8873 (target_call_history, target_call_history_from,
8874 target_call_history_range): New declaration.
8875 * record.c (get_call_history_modifiers, cmd_record_call_history,
8876 record_call_history_size): New.
8877 (_initialize_record): Add the "record function-call-history" command.
8878 Add "set/show record function-call-history-size" commands.
8879 * record.h (record_print_flag): New.
8880
8881 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8882
8883 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8884 to_insn_history_range>: New fields.
8885 (target_insn_history): New.
8886 (target_insn_history_from): New.
8887 (target_insn_history_range): New.
8888 * target.c (target_insn_history): New.
8889 (target_insn_history_from): New.
8890 (target_insn_history_range): New.
8891 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8892 (record_insn_history_size): New.
8893 (get_insn_number): New.
8894 (get_context_size): New.
8895 (no_chunk): New.
8896 (get_insn_history_modifiers): New.
8897 (cmd_record_insn_history): New.
8898 (_initialize_record): Add "set/show record instruction-history-size"
8899 command. Add "record instruction-history" command.
8900
8901 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8902
8903 * record.h (record_disconnect): New.
8904 (record_detach): New.
8905 (record_mourn_inferior): New.
8906 (record_kill): New.
8907 * record-full.c (record_disconnect, record_detach,
8908 record_mourn_inferior, record_kill): Move to...
8909 * record.c: ...here.
8910 (DEBUG): New.
8911 (record_stop): New.
8912 (record_unpush): New.
8913 (cmd_record_stop): Call record_stop. Replace unpush_target
8914 call with record_unpush call.
8915 (record_disconnect, record_detach): Assert that the target
8916 is of record stratum. Call record_unpush, record_stop, and
8917 DEBUG.
8918 (record_mourn_inferior, record_kill): Assert that the target
8919 is of record stratum. Call record_unpush and DEBUG.
8920
8921 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8922
8923 * record-full.h, record-full.c (record_memory_query): Rename
8924 to ...
8925 (record_full_memory_query): ...this. Update all users.
8926 (record_arch_list_add_reg): Rename to ...
8927 (record_full_arch_list_add_reg): ...this. Update all users.
8928 (record_arch_list_add_mem): Rename to ...
8929 (record_full_arch_list_add_mem): ...this. Update all users.
8930 (record_arch_list_add_end): Rename to ...
8931 (record_full_arch_list_add_end): ...this. Update all users.
8932 (record_gdb_operation_disable_set): Rename to ...
8933 (record_full_gdb_operation_disable_set): ...this.
8934 Update all users.
8935
8936 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8937
8938 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8939 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8940 (RECORD_IS_REPLAY): Renamed to ...
8941 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8942 (RECORD_FILE_MAGIC): Renamed to ...
8943 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8944 (record_mem_entry): Renamed to ...
8945 (record_full_mem_entry): ... this. Updated all users.
8946 (record_reg_entry): Renamed to ...
8947 (record_full_reg_entry): ... this. Updated all users.
8948 (record_end_entry): Renamed to ...
8949 (record_full_end_entry): ... this. Updated all users.
8950 (record_type) <record_end, record_reg, record_mem>: Renamed
8951 to ...
8952 (record_full_type) <record_full_end, record_full_reg,
8953 record_full_mem>: ... this. Updated all users.
8954 (record_entry): Renamed to ...
8955 (record_full_entry): ... this. Updated all users.
8956 (record_core_buf_entry): Renamed to ...
8957 (record_full_core_buf_entry): ... this. Updated all users.
8958 (record_core_regbuf): Renamed to ...
8959 (record_full_core_regbuf): ... this. Updated all users.
8960 (record_core_start): Renamed to ...
8961 (record_full_core_start): ... this. Updated all users.
8962 (record_core_end): Renamed to ...
8963 (record_full_core_end): ... this. Updated all users.
8964 (record_core_buf_list): Renamed to ...
8965 (record_full_core_buf_list): ... this. Updated all users.
8966 (record_first): Renamed to ...
8967 (record_full_first): ... this. Updated all users.
8968 (record_list): Renamed to ...
8969 (record_full_list): ... this. Updated all users.
8970 (record_arch_list_head): Renamed to ...
8971 (record_full_arch_list_head): ... this. Updated all users.
8972 (record_arch_list_tail): Renamed to ...
8973 (record_full_arch_list_tail): ... this. Updated all users.
8974 (record_stop_at_limit): Renamed to ...
8975 (record_full_stop_at_limit): ... this. Updated all users.
8976 (record_insn_max_num): Renamed to ...
8977 (record_full_insn_max_num): ... this. Updated all users.
8978 (record_insn_num): Renamed to ...
8979 (record_full_insn_num): ... this. Updated all users.
8980 (record_insn_count): Renamed to ...
8981 (record_full_insn_count): ... this. Updated all users.
8982 (record_ops): Renamed to ...
8983 (record_full_ops): ... this. Updated all users.
8984 (record_core_ops): Renamed to ...
8985 (record_full_core_ops): ... this. Updated all users.
8986 (set_record_cmdlist): Renamed to ...
8987 (set_record_full_cmdlist): ... this. Updated all users.
8988 (show_record_cmdlist): Renamed to ...
8989 (show_record_full_cmdlist): ... this. Updated all users.
8990 (record_cmdlist): Renamed to ...
8991 (record_full_cmdlist): ... this. Updated all users.
8992 (record_beneath_to_resume_ops): Renamed to ...
8993 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8994 (record_beneath_to_resume): Renamed to ...
8995 (record_full_beneath_to_resume): ... this. Updated all users.
8996 (record_beneath_to_wait_ops): Renamed to ...
8997 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8998 (record_beneath_to_wait): Renamed to ...
8999 (record_full_beneath_to_wait): ... this. Updated all users.
9000 (record_beneath_to_store_registers_ops): Renamed to ...
9001 (record_full_beneath_to_store_registers_ops): ... this.
9002 Updated all users.
9003 (record_beneath_to_store_registers): Renamed to ...
9004 (record_full_beneath_to_store_registers): ... this.
9005 Updated all users.
9006 (record_beneath_to_xfer_partial_ops): Renamed to ...
9007 (record_full_beneath_to_xfer_partial_ops): ... this.
9008 Updated all users.
9009 (record_beneath_to_xfer_partial): Renamed to ...
9010 (record_full_beneath_to_xfer_partial): ... this.
9011 Updated all users.
9012 (record_beneath_to_insert_breakpoint): Renamed to ...
9013 (record_full_beneath_to_insert_breakpoint): ... this.
9014 Updated all users.
9015 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9016 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9017 Updated all users.
9018 (record_beneath_to_stopped_data_address): Renamed to ...
9019 (record_full_beneath_to_stopped_data_address): ... this.
9020 Updated all users.
9021 (record_beneath_to_async): Renamed to ...
9022 (record_full_beneath_to_async): ... this. Updated all users.
9023 (record_goto_insn): Renamed to ...
9024 (record_full_goto_insn): ... this. Updated all users.
9025 (record_save): Renamed to ...
9026 (record_full_save): ... this. Updated all users.
9027 (record_reg_alloc): Renamed to ...
9028 (record_full_reg_alloc): ... this. Updated all users.
9029 (record_reg_release): Renamed to ...
9030 (record_full_reg_release): ... this. Updated all users.
9031 (record_mem_alloc): Renamed to ...
9032 (record_full_mem_alloc): ... this. Updated all users.
9033 (record_mem_release): Renamed to ...
9034 (record_full_mem_release): ... this. Updated all users.
9035 (record_end_alloc): Renamed to ...
9036 (record_full_end_alloc): ... this. Updated all users.
9037 (record_end_release): Renamed to ...
9038 (record_full_end_release): ... this. Updated all users.
9039 (record_entry_release): Renamed to ...
9040 (record_full_entry_release): ... this. Updated all users.
9041 (record_list_release): Renamed to ...
9042 (record_full_list_release): ... this. Updated all users.
9043 (record_list_release_following): Renamed to ...
9044 (record_full_list_release_following): ... this.
9045 Updated all users.
9046 (record_list_release_first): Renamed to ...
9047 (record_full_list_release_first): ... this. Updated all users.
9048 (record_arch_list_add): Renamed to ...
9049 (record_full_arch_list_add): ... this. Updated all users.
9050 (record_get_loc): Renamed to ...
9051 (record_full_get_loc): ... this. Updated all users.
9052 (record_check_insn_num): Renamed to ...
9053 (record_full_check_insn_num): ... this. Updated all users.
9054 (record_arch_list_cleanups): Renamed to ...
9055 (record_full_arch_list_cleanups): ... this. Updated all users.
9056 (record_message): Renamed to ...
9057 (record_full_message): ... this. Updated all users.
9058 (record_message_wrapper): Renamed to ...
9059 (record_full_message_wrapper): ... this. Updated all users.
9060 (record_message_wrapper_safe): Renamed to ...
9061 (record_full_message_wrapper_safe): ... this. Updated all users.
9062 (record_gdb_operation_disable): Renamed to ...
9063 (record_full_gdb_operation_disable): ... this. Updated all users.
9064 (record_hw_watchpoint): Renamed to ...
9065 (record_full_hw_watchpoint): ... this. Updated all users.
9066 (record_exec_insn): Renamed to ...
9067 (record_full_exec_insn): ... this. Updated all users.
9068 (record_restore): Renamed to ...
9069 (record_full_restore): ... this. Updated all users.
9070 (record_async_inferior_event_token): Renamed to ...
9071 (record_full_async_inferior_event_token): ... this.
9072 Updated all users.
9073 (record_async_inferior_event_handler): Renamed to ...
9074 (record_full_async_inferior_event_handler): ... this.
9075 Updated all users.
9076 (record_core_open_1): Renamed to ...
9077 (record_full_core_open_1): ... this. Updated all users.
9078 (record_open_1): Renamed to ...
9079 (record_full_open_1): ... this. Updated all users.
9080 (record_open): Renamed to ...
9081 (record_full_open): ... this. Updated all users.
9082 (record_close): Renamed to ...
9083 (record_full_close): ... this. Updated all users.
9084 (record_resume_step): Renamed to ...
9085 (record_full_resume_step): ... this. Updated all users.
9086 (record_resumed): Renamed to ...
9087 (record_full_resumed): ... this. Updated all users.
9088 (record_execution_dir): Renamed to ...
9089 (record_full_execution_dir): ... this. Updated all users.
9090 (record_resume): Renamed to ...
9091 (record_full_resume): ... this. Updated all users.
9092 (record_get_sig): Renamed to ...
9093 (record_full_get_sig): ... this. Updated all users.
9094 (record_sig_handler): Renamed to ...
9095 (record_full_sig_handler): ... this. Updated all users.
9096 (record_wait_cleanups): Renamed to ...
9097 (record_full_wait_cleanups): ... this. Updated all users.
9098 (record_wait_1): Renamed to ...
9099 (record_full_wait_1): ... this. Updated all users.
9100 (record_wait): Renamed to ...
9101 (record_full_wait): ... this. Updated all users.
9102 (record_stopped_by_watchpoint): Renamed to ...
9103 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9104 (record_disconnect): Renamed to ...
9105 (record_full_disconnect): ... this. Updated all users.
9106 (record_detach): Renamed to ...
9107 (record_full_detach): ... this. Updated all users.
9108 (record_mourn_inferior): Renamed to ...
9109 (record_full_mourn_inferior): ... this. Updated all users.
9110 (record_kill): Renamed to ...
9111 (record_full_kill): ... this. Updated all users.
9112 (record_stopped_data_address): Renamed to ...
9113 (record_full_stopped_data_address): ... this. Updated all users.
9114 (record_registers_change): Renamed to ...
9115 (record_full_registers_change): ... this. Updated all users.
9116 (record_store_registers): Renamed to ...
9117 (record_full_store_registers): ... this. Updated all users.
9118 (record_xfer_partial): Renamed to ...
9119 (record_full_xfer_partial): ... this. Updated all users.
9120 (record_breakpoint): Renamed to ...
9121 (record_full_breakpoint): ... this. Updated all users.
9122 (record_breakpoint_p): Renamed to ...
9123 (record_full_breakpoint_p): ... this. Updated all users.
9124 (record_breakpoints): Renamed to ...
9125 (record_full_breakpoints): ... this. Updated all users.
9126 (record_sync_record_breakpoints): Renamed to ...
9127 (record_full_sync_record_breakpoints): ... this.
9128 Updated all users.
9129 (record_init_record_breakpoints): Renamed to ...
9130 (record_full_init_record_breakpoints): ... this.
9131 Updated all users.
9132 (record_insert_breakpoint): Renamed to ...
9133 (record_full_insert_breakpoint): ... this. Updated all users.
9134 (record_remove_breakpoint): Renamed to ...
9135 (record_full_remove_breakpoint): ... this. Updated all users.
9136 (record_can_execute_reverse): Renamed to ...
9137 (record_full_can_execute_reverse): ... this. Updated all users.
9138 (record_get_bookmark): Renamed to ...
9139 (record_full_get_bookmark): ... this. Updated all users.
9140 (record_goto_bookmark): Renamed to ...
9141 (record_full_goto_bookmark): ... this. Updated all users.
9142 (record_async): Renamed to ...
9143 (record_full_async): ... this. Updated all users.
9144 (record_can_async_p): Renamed to ...
9145 (record_full_can_async_p): ... this. Updated all users.
9146 (record_is_async_p): Renamed to ...
9147 (record_full_is_async_p): ... this. Updated all users.
9148 (record_execution_direction): Renamed to ...
9149 (record_full_execution_direction): ... this. Updated all users.
9150 (record_info): Renamed to ...
9151 (record_full_info): ... this. Updated all users.
9152 (record_delete): Renamed to ...
9153 (record_full_delete): ... this. Updated all users.
9154 (record_is_replaying): Renamed to ...
9155 (record_full_is_replaying): ... this. Updated all users.
9156 (record_goto_entry): Renamed to ...
9157 (record_full_goto_entry): ... this. Updated all users.
9158 (record_goto_begin): Renamed to ...
9159 (record_full_goto_begin): ... this. Updated all users.
9160 (record_goto_end): Renamed to ...
9161 (record_full_goto_end): ... this. Updated all users.
9162 (record_goto): Renamed to ...
9163 (record_full_goto): ... this. Updated all users.
9164 (init_record_ops): Renamed to ...
9165 (init_record_full_ops): ... this. Updated all users.
9166 (record_core_resume): Renamed to ...
9167 (record_full_core_resume): ... this. Updated all users.
9168 (record_core_kill): Renamed to ...
9169 (record_full_core_kill): ... this. Updated all users.
9170 (record_core_fetch_registers): Renamed to ...
9171 (record_full_core_fetch_registers): ... this. Updated all users.
9172 (record_core_prepare_to_store): Renamed to ...
9173 (record_full_core_prepare_to_store): ... this. Updated all users.
9174 (record_core_store_registers): Renamed to ...
9175 (record_full_core_store_registers): ... this. Updated all users.
9176 (record_core_xfer_partial): Renamed to ...
9177 (record_full_core_xfer_partial): ... this. Updated all users.
9178 (record_core_insert_breakpoint): Renamed to ...
9179 (record_full_core_insert_breakpoint): ... this. Updated all users.
9180 (record_core_remove_breakpoint): Renamed to ...
9181 (record_full_core_remove_breakpoint): ... this. Updated all users.
9182 (record_core_has_execution): Renamed to ...
9183 (record_full_core_has_execution): ... this. Updated all users.
9184 (init_record_core_ops): Renamed to ...
9185 (init_record_full_core_ops): ... this. Updated all users.
9186 (cmd_record_restore): Renamed to ...
9187 (cmd_record_full_restore): ... this. Updated all users.
9188 (record_save_cleanups): Renamed to ...
9189 (record_full_save_cleanups): ... this. Updated all users.
9190 (cmd_record_start): Renamed to ...
9191 (cmd_record_full_start): ... this. Updated all users.
9192 (set_record_insn_max_num): Renamed to ...
9193 (set_record_full_insn_max_num): ... this. Updated all users.
9194 (set_record_command): Renamed to ...
9195 (set_record_full_command): ... this. Updated all users.
9196 (show_record_command): Renamed to ...
9197 (show_record_full_command): ... this. Updated all users.
9198 (_initialize_record): Renamed to ...
9199 (_initialize_record_full): ... this. Updated all users.
9200
9201 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9202
9203 * record.h: Split into this and ...
9204 * record-full.h: ... this.
9205 * record.c: Split into this and ...
9206 * record-full.c: ... this.
9207 * target.h (target_ops): Add new fields to_info_record,
9208 to_save_record, to_delete_record, to_record_is_replaying,
9209 to_goto_record_begin, to_goto_record_end, to_goto_record.
9210 (target_info_record): New.
9211 (target_save_record): New.
9212 (target_supports_delete_record): New.
9213 (target_delete_record): New.
9214 (target_record_is_replaying): New.
9215 (target_goto_record_begin): New.
9216 (target_goto_record_end): New.
9217 (target_goto_record): New.
9218 * target.c (target_info_record): New.
9219 (target_save_record): New.
9220 (target_supports_delete_record): New.
9221 (target_delete_record): New.
9222 (target_record_is_replaying): New.
9223 (target_goto_record_begin): New.
9224 (target_goto_record_end): New.
9225 (target_goto_record): New.
9226 * record.h: Declare struct cmd_list_element.
9227 (record_cmdlist): New declaration.
9228 (set_record_cmdlist): New declaration.
9229 (show_record_cmdlist): New declaration.
9230 (info_record_cmdlist): New declaration.
9231 (cmd_record_goto): New declaration.
9232 * record.c: Remove unnecessary includes.
9233 Include inferior.h.
9234 (cmd_record_goto): Remove declaration.
9235 (record_cmdlist): Now extern. Initialize.
9236 (set_record_cmdlist): Now extern. Initialize.
9237 (show_record_cmdlist): Now extern. Initialize.
9238 (info_record_cmdlist): Now extern. Initialize.
9239 (find_record_target): New.
9240 (require_record_target): New.
9241 (cmd_record_start): Update.
9242 (cmd_record_delete): Remove target-specific code.
9243 Call target_delete_record.
9244 (cmd_record_stop): Unpush any record target.
9245 (set_record_insn_max_num): Move to record-full.c
9246 (set_record_command): Add comment.
9247 (show_record_command): Add comment.
9248 (info_record_command): Update comment.
9249 Remove target-specific code.
9250 Call the record target's to_info_record.
9251 (cmd_record_start): New.
9252 (cmd_record_goto): Now extern.
9253 Remove target-specific code.
9254 Call target_goto_begin, target_goto_end, or target_goto.
9255 (_initialize_record): Move record target ops initialization to
9256 record-full.c.
9257 Change "record" command help text.
9258 Move "record restore", "record set", and "record show" commands to
9259 record-full.c.
9260 * Makefile.in (SFILES): Add record-full.c.
9261 (HFILES_NO_SRCDIR): Add record-full.h.
9262 (COMMON_OBS): Add record-full.o.
9263 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9264 * arm-tdep.c: Include record-full.h.
9265 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9266 * i386-tdep.c: Include record-full.h.
9267 * infrun.c: Include record-full.h.
9268 * linux-record.c: Include record-full.h.
9269 * moxie-tdep.c: Include record-full.h.
9270 * record-full.c: Include record-full.h.
9271 Change module comment.
9272 (set_record_full_cmdlist): New.
9273 (show_record_full_cmdlist): New.
9274 (record_full_cmdlist): New.
9275 (record_goto_insn): New declaration.
9276 (record_save): New declaration.
9277 (record_check_insn_num): Change query string.
9278 (record_info): New.
9279 (record_delete): New.
9280 (record_is_replaying): New.
9281 (record_goto_entry): New.
9282 (record_goto_begin): New.
9283 (record_goto_end): New.
9284 (record_goto): New.
9285 (init_record_ops): Update.
9286 (init_record_core_ops): Update.
9287 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9288 (cmd_record_start): New.
9289 (set_record_insn_max_num): Moved from record.c
9290 (set_record_full_command): New.
9291 (show_record_full_command): New.
9292 (_initialize_record_full): New.
9293
9294 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9295
9296 * target.h (add_deprecated_target_alias): New.
9297 * target.c (add_deprecated_target_alias): New.
9298
9299 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9300
9301 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9302 and signal.h.
9303 (linux_supports_btrace): Add kernel and
9304 cpuid check.
9305 (kernel_supports_btrace): New function.
9306 (cpu_supports_btrace): New function.
9307 (intel_supports_btrace): New function.
9308
9309 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9310
9311 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9312 * remote.c: Include btrace.h.
9313 (struct btrace_target_info): New struct.
9314 (remote_supports_btrace): New function.
9315 (send_Qbtrace): New function.
9316 (remote_enable_btrace): New function.
9317 (remote_disable_btrace): New function.
9318 (remote_teardown_btrace): New function.
9319 (remote_read_btrace): New function.
9320 (init_remote_ops): Add btrace ops.
9321 (enum <unnamed>): Add btrace packets.
9322 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9323 (_initialize_remote): Add packet configuration for branch tracing.
9324
9325 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9326
9327 * features/btrace.dtd: New file.
9328 * Makefile.in (XMLFILES): Add btrace.dtd.
9329 * btrace.h (parse_xml_btrace): New declaration.
9330 * btrace.c: Include xml-support.h.
9331 (parse_xml_btrace): New function.
9332 (parse_xml_btrace_block): New function.
9333 (block_attributes): New struct.
9334 (btrace_attributes): New struct.
9335 (btrace_children): New struct.
9336 (btrace_elements): New struct.
9337
9338 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9339
9340 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9341 (amd64_linux_enable_btrace): New.
9342 (amd64_linux_disable_btrace): New.
9343 (amd64_linux_teardown_btrace): New.
9344 (_initialize_amd64_linux_nat): Initialize btrace ops.
9345 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9346 (i386_linux_enable_btrace): New.
9347 (i386_linux_disable_btrace): New.
9348 (i386_linux_teardown_btrace): New.
9349 (_initialize_i386_linux_nat): Initialize btrace ops.
9350 * config/i386/linux.mh: Add linux-btrace.o.
9351 * config/i386/linux64.mh: Add linux-btrace.o.
9352
9353 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9354
9355 * common/linux_btrace.h: New file.
9356 * common/linux_btrace.c: New file.
9357 * Makefile.in (SFILES): Add btrace.c.
9358 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9359 (COMMON_OBS): Add btrace.o.
9360 (linux-btrace.o): New rule.
9361
9362 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9363
9364 * target.h: Include btrace.h.
9365 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9366 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9367 * target.c (target_supports_btrace): New function.
9368 (target_enable_btrace): New function.
9369 (target_disable_btrace): New function.
9370 (target_teardown_btrace): New function.
9371 (target_read_btrace): New function.
9372 * btrace.h: New file.
9373 * btrace.c: New file.
9374 * Makefile.in: Add btrace.c.
9375 * gdbthread.h: Include btrace.h.
9376 (struct thread_info): Add btrace field.
9377 * thread.c: Include btrace.h.
9378 (clear_thread_inferior_resources): Call target_teardown_btrace.
9379 * common/btrace-common.h: New file.
9380
9381 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9382
9383 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9384 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9385 kill_status to outer block.
9386
9387 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9388
9389 Fix entry-values if the callee called a noreturn function.
9390 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9391 get_frame_address_in_block. Add new comment.
9392
9393 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9394
9395 Fix entry-values in C++ across CUs.
9396 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9397 lookup_minimal_symbol. Add a comment.
9398 * dwarf2read.c
9399 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9400 DW_AT_linkage_name.
9401
9402 2013-03-08 Yao Qi <yao@codesourcery.com>
9403
9404 * tracepoint.c (_initialize_tracepoint): Indent the code.
9405
9406 2013-03-08 Pedro Alves <palves@redhat.com>
9407
9408 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9409 (parse_find_args, find_command): Change type of pattern buffer
9410 locals to 'gdb_byte *'.
9411
9412 2013-03-08 Stan Shebs <stan@codesourcery.com>
9413 Hafiz Abid Qadeer <abidh@codesourcery.com>
9414
9415 * NEWS: Mention set and show trace-buffer-size commands.
9416 Mention new packet.
9417 * target.h (struct target_ops): New method
9418 to_set_trace_buffer_size.
9419 (target_set_trace_buffer_size): New macro.
9420 * target.c (update_current_target): Set up new method.
9421 * tracepoint.c (trace_buffer_size): New global.
9422 (start_tracing): Send it to the target.
9423 (set_trace_buffer_size): New function.
9424 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9425 * remote.c (remote_set_trace_buffer_size): New function.
9426 (_initialize_remote): Use it.
9427 (QTBuffer:size) New remote command.
9428 (PACKET_QTBuffer_size): New enum.
9429 (remote_protocol_features): Add an entry for
9430 PACKET_QTBuffer_size.
9431
9432 2013-03-08 Tom Tromey <tromey@redhat.com>
9433
9434 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9435 variable.
9436
9437 2013-03-07 Pedro Alves <palves@redhat.com>
9438
9439 * target.c (target_read_stralloc, target_fileio_read_alloc):
9440 *Cast pointer to 'gdb_byte *' in target call.
9441
9442 2013-03-07 Pedro Alves <palves@redhat.com>
9443
9444 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9445 call.
9446
9447 2013-03-07 Keith Seitz <keiths@redhat.com>
9448
9449 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9450 (trace_pass_command): Likewise.
9451 * cli/cli-cmds.c: Include cli/cli-utils.h.
9452 (source_command): Use skip-spaces.
9453 (disassemble_command): Likewise.
9454 * findcmd.c: Include cli/cli-utils.h.
9455 (parse_find_args): Use skip_spaces.
9456 * go32-nat.c: Include cli/cli-utils.h.
9457 (go32_sldt): Use skip_spaces.
9458 (go32_sgdt): Likewise.
9459 (go32_sidt): Likewise.
9460 (go32_pde): Likewise.
9461 (go32_pte): Likewise.
9462 (go32_pte_for_address): Likewise.
9463 * infcmd.c: Include cli/cli-utils.h.
9464 (registers_info): Use skip_spaces.
9465 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9466 (linux_info_proc): Likewise.
9467 * linux-thread-db.c: Include cli/cli-utils.h.
9468 (info_auto_load_libthread_db): Use skip_spaces_const.
9469 * m32r-rom.c: Include cli/cli-utils.h.
9470 (m32r_upload_command): Use skip_spaces.
9471 * maint.c: Include cli/cli-utils.h.
9472 (maintenance_translate_address): Use skip_spaces.
9473 * mi/mi-parse.c: Include cli/cli-utils.h.
9474 (mi_parse_argv): Use skip_spaces.
9475 (mi_parse): Likewise.
9476 * minsyms.c: Include cli/cli-utils.h.
9477 (msymbol_hash_iw): Use skip_spaces_const.
9478 * objc-lang.c: Include cli/cli-utils.h.
9479 (parse_selector): Use skip_spaces.
9480 (parse_method): Likewise.
9481 * python/python.c: Include cli/cli-utils.h.
9482 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9483 (python_command)[HAVE_PYTHON]: Likewise.
9484 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9485 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9486 (m32r_load): Use skip_spaces.
9487 * serial.c: Include cli/cli-utils.h.
9488 (serial_open): Use skip_spaces_const.
9489 * stack.c: Include cli/cli-utils.h.
9490 (parse_frame_specification_1): Use skip_spaces_const.
9491 * symfile.c: Include cli/cli-utils.h.
9492 (set_ext_lang_command): Use skip_spaces.
9493 * symtab.c: Include cli/cli-utils.h.
9494 (rbreak_command): Use skip_spaces.
9495 * thread.c (thread_name_command): Use skip_spaces.
9496 * tracepoint.c (validate_actionline): Use skip_spaces.
9497 (encode_actions_1): Likewise.
9498 (trace_find_range_command): Likewise.
9499 (trace_find_outside_command): Likewise.
9500 (trace_dump_actions): Likewise.
9501
9502 2013-03-07 Pedro Alves <palves@redhat.com>
9503
9504 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9505 * expprint.c (print_subexp_standard): Likewise.
9506 * utils.c (host_char_to_target): Likewise.
9507 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9508 * varobj.c (value_get_print_value): Change type of local to char*.
9509 Cast it gdb_byte * in call to language printer.
9510
9511 2013-03-07 Pedro Alves <palves@redhat.com>
9512
9513 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9514 gdb_byte *'.
9515 (make_wchar_iterator): Remove cast to char*.
9516 (wchar_iterate): Change type of local.
9517
9518 2013-03-07 Pedro Alves <palves@redhat.com>
9519
9520 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9521 for 'regcache->register_status'.
9522
9523 2013-03-07 Pedro Alves <palves@redhat.com>
9524
9525 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9526 int.
9527
9528 2013-03-07 Pedro Alves <palves@redhat.com>
9529
9530 * stap-probe.c (handle_stap_probe): Add cast to char*.
9531
9532 2013-03-07 Pedro Alves <palves@redhat.com>
9533
9534 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9535 RECORD_MSGRCV>: Pass a signed variable to
9536 regcache_raw_read_signed, instead of an unsigned one.
9537
9538 2013-03-07 Pedro Alves <palves@redhat.com>
9539
9540 * remote-notif.c (notif_debug): Change type to int.
9541 * remote-notif.h (notif_debug): Likewise.
9542
9543 2013-03-07 Pedro Alves <palves@redhat.com>
9544
9545 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9546
9547 2013-03-07 Pedro Alves <palves@redhat.com>
9548
9549 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9550 * remote.h (hex2bin, bin2hex): ... here.
9551 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9552
9553 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9554
9555 * utils.c (initialize_utils): Improve doc strings of "set/show
9556 width", "set/show height", and "set/show pagination".
9557
9558 2013-03-06 Keith Seitz <keiths@redhat.com>
9559
9560 * ax-gdb.c (gen_printf): Make FORMAT const.
9561 * ax-gdb.h (gen_printf): Likewise.
9562 * ax-general.c (ax_string): Make STR const.
9563 * ax.h (ax_string): Likewise.
9564
9565 2013-03-06 Doug Evans <dje@google.com>
9566
9567 * elfread.c (elf_symfile_read): Move debugging printf to more
9568 logical location.
9569
9570 2013-03-06 Pedro Alves <palves@redhat.com>
9571
9572 * python/py-utils.c (target_string_to_unicode): Delete function.
9573 * python/python-internal.h (target_string_to_unicode): Delete
9574 declaration.
9575
9576 2013-03-06 Pierre Muller <muller@sourceware.org>
9577
9578 * linespec.c (get_current_search_block): ARI fix, use (void)
9579 for empty parameter list.
9580
9581 2013-03-05 Doug Evans <dje@google.com>
9582
9583 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9584 of old ada_lookup_symbol_list. In !full_search case, don't
9585 search superblocks.
9586 (ada_lookup_symbol_list): Delete arg full_search, all callers
9587 updated. Call ada_lookup_symbol_list_worker.
9588 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9589 * ada-lang.h (ada_lookup_symbol_list): Update.
9590 * language.h (language_defn): Update comment for
9591 la_iterate_over_symbols.
9592 * linespec.c (iterate_over_file_blocks): New function.
9593 (iterate_over_all_matching_symtabs): Call it.
9594 (lookup_prefix_sym): Ditto.
9595 (get_current_search_block): New function.
9596 (get_search_block): Delete.
9597 (find_label_symbols): Call get_current_search_block.
9598 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9599 * symtab.c (iterate_over_symbols): Don't search superblocks.
9600
9601 2013-03-05 Yao Qi <yao@codesourcery.com>
9602
9603 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9604 parameter VAR's type from "unsigned int" to "int".
9605 * command.h (var_zuinteger_unlimited): Update its comments.
9606 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9607
9608 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9609
9610 * NEWS: Mention new target x86_64-*-cygwin*.
9611
9612 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9613
9614 * configure.host: Add x86_64-*-cygwin* as host.
9615 * configure.tgt: Add x86_64-*-cygwin* as target.
9616 * config/i386/cygwin64.mh: New file.
9617
9618 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9619
9620 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9621
9622 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9623
9624 * linespec.c (struct linespec_canonical_name): New.
9625 (struct linespec_state): Change canonical_names type to it.
9626 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9627 xrealloc element size. Initialize the different CANONICAL fields.
9628 (canonical_to_fullform): New.
9629 (filter_results): Use it. Add variables canonical, fullform and
9630 cleanup.
9631 (struct decode_line_2_item, decode_line_2_compare_items): New.
9632 (decode_line_2): Remove variables iter and item_names, add variables
9633 items and items_count. Modify the code for these new variables.
9634
9635 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9636
9637 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9638 calling do_cleanup.
9639
9640 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9641
9642 * tracepoint.c (build_traceframe_info): Add code for byte order.
9643
9644 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9645
9646 * v850-tdep.c: (v850e2_register_name): Revise system register
9647 names to match current V850E2M architecture specifications.
9648 Update register number enum comments too.
9649
9650 2013-03-01 Jiong Wang <jiwang@tilera.com>
9651 Pedro Alves <palves@redhat.com>
9652
9653 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9654 to END_ADDR.
9655 (tilegx_skip_prologue): Limit prologue analysis to section end.
9656
9657 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9658
9659 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9660 use it.
9661
9662 2013-03-01 Pedro Alves <palves@redhat.com>
9663
9664 Use gdb_byte for bytes from the program being debugged.
9665
9666 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9667 Change type of local 'buf' to gdb_byte.
9668 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9669 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9670 * cris-tdep.c (cris_sigcontext_addr)
9671 (cris_sigtramp_frame_unwind_cache): Likewise.
9672 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9673 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9674 Likewise.
9675 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9676 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9677 (hppa32_hpux_search_dummy_call_sequence)
9678 (hppa_hpux_supply_save_state): Likewise.
9679 * hppa-linux-tdep.c (insns_match_pattern)
9680 (hppa_linux_find_global_pointer): Likewise.
9681 * hppa-tdep.c (hppa_in_function_epilogue_p)
9682 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9683 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9684 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9685 (i386fbsd_collect_uthread): Likewise.
9686 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9687 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9688 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9689 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9690 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9691 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9692 (ia64_libunwind_frame_prev_register)
9693 (ia64_libunwind_sigtramp_frame_this_id)
9694 (ia64_find_global_pointer_from_dynamic_section)
9695 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9696 (ia64_unwind_pc): Likewise.
9697 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9698 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9699 (m68hc11_extract_return_value): Likewise.
9700 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9701 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9702 (mep_get_insn, mep_push_dummy_call): Likewise.
9703 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9704 (mips_linux_in_dynsym_stub): Likewise.
9705 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9706 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9707 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9708 to gdb_byte.
9709 * remote-mips.c (mips_set_register): Likewise.
9710 * remote-sim.c (gdbsim_fetch_register): Likewise.
9711 * score-tdep.c (score7_fetch_inst): Change type of parameter
9712 'memblock' and local 'buf' to gdb_byte.
9713 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9714 Change type of local 'buf' to gdb_byte. Adjust.
9715 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9716 to gdb_byte**.
9717 (score7_analyze_prologue): Change type of 'memblock' and
9718 'memblock_ptr' locals to gdb_byte*.
9719 * sh64-tdep.c (sh64_extract_return_value)
9720 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9721 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9722 * solib-pa64.c (pa64_solib_create_inferior_hook)
9723 (pa64_open_symbol_file_object): Remove local 'buf'.
9724 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9725 (som_open_symbol_file_object): Likewise.
9726 * solib-spu.c (spu_current_sos): Likewise.
9727 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9728 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9729 (spu_store_registers): Likewise.
9730 * target.c (debug_print_register): Likewise.
9731 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9732 * xstormy16-tdep.c (xstormy16_store_return_value)
9733 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9734 (xstormy16_find_jmp_table_entry): Likewise.
9735
9736 2013-03-01 Jiong Wang <jiwang@tilera.com>
9737
9738 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9739 (tilegx_gdbarch_init): Install it.
9740
9741 2013-02-28 Tom Tromey <tromey@redhat.com>
9742
9743 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9744 PyLong_Check.
9745
9746 2013-02-28 Doug Evans <dje@google.com>
9747
9748 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9749 * python/python.c (gdbpy_find_pc_line): Ditto.
9750
9751 2013-02-28 Tom Tromey <tromey@redhat.com>
9752
9753 * contrib/excheck.py: New file.
9754 * contrib/exsummary.py: New file.
9755 * contrib/gcc-with-excheck: New file.
9756
9757 2013-02-28 Tom Tromey <tromey@redhat.com>
9758
9759 * python/python.c (gdbpy_print_stack): Call begin_line and
9760 fprintf_filtered inside TRY_CATCH.
9761
9762 2013-02-28 Tom Tromey <tromey@redhat.com>
9763
9764 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9765 inside TRY_CATCH.
9766
9767 2013-02-28 Tom Tromey <tromey@redhat.com>
9768
9769 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9770 frame_object_to_frame_info inside TRY_CATCH.
9771
9772 2013-02-28 Tom Tromey <tromey@redhat.com>
9773
9774 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9775 TRY_CATCH.
9776
9777 2013-02-28 Tom Tromey <tromey@redhat.com>
9778
9779 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9780
9781 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9782
9783 * windows-nat.c: Throughout, fix format strings and casts of
9784 printf-like functions to avoid type related warnings on all
9785 platforms.
9786 (handle_output_debug_string): Fetch context information address
9787 from debug string using string_to_core_addr.
9788
9789 2013-02-27 Jiong Wang <jiwang@tilera.com>
9790
9791 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9792 * regformats/reg-tilegx32.dat: New.
9793
9794 2013-02-27 Jiong Wang <jiwang@tilera.com>
9795
9796 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9797
9798 2013-02-27 Jiong Wang <jiwang@tilera.com>
9799
9800 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9801
9802 2013-02-27 Yao Qi <yao@codesourcery.com>
9803 Pedro Alves <palves@redhat.com>
9804
9805 * tracepoint.c (tfile_trace_find): For tfind
9806 pc/tp/range/outside, look for the next trace frame instead of
9807 always starting from frame 0.
9808
9809 2013-02-26 Anthony Green <green@moxielogic.com>
9810
9811 * configure.tgt: Add support for moxie-*-rtems* target.
9812
9813 2013-02-25 Pedro Alves <palves@redhat.com>
9814
9815 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9816 warning text.
9817
9818 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9819
9820 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9821 if $fp is used as the virtual frame pointer.
9822
9823 2013-02-23 Alan Modra <amodra@gmail.com>
9824
9825 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9826 symbol size.
9827 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9828 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9829 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9830 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9831
9832 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9833
9834 Code cleanup.
9835 * elfread.c (build_id_bfd_get): Make the return type const.
9836 (build_id_verify): Make the check parameter const.
9837 (build_id_to_debug_filename): Make the build_id parameter and variable
9838 data const.
9839 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9840
9841 2013-02-21 Alan Modra <amodra@gmail.com>
9842
9843 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9844
9845 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9846
9847 Add a new method 'disassemble' to gdb.Architecture class.
9848 * python/py-arch.c (archpy_disassmble): Implementation of the
9849 new method gdb.Architecture.disassemble.
9850 (arch_object_methods): Add entry for the new method.
9851
9852 2013-02-20 Jiong Wang <jiwang@tilera.com>
9853
9854 * MAINTAINERS (Write After Approval): Add myself to the list.
9855
9856 2013-02-19 Pedro Alves <palves@redhat.com>
9857
9858 Garbage collect 'struct monitor_ops'::load_routine.
9859
9860 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9861 * monitor.c (monitor_load): No longer call
9862 current_monitor->load_routine.
9863 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9864 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9865 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9866
9867 2013-02-19 Pedro Alves <palves@redhat.com>
9868
9869 PR gdb/15161
9870
9871 Harmonize with generic_load.
9872
9873 * monitor.c: Include "readline/readline.h".
9874 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9875 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9876 long/strtol for the 'load_offset' local. Error out if no argument
9877 is given or if too many arguments are given. Tilde expand the
9878 passed in file name.
9879
9880 2013-02-19 Kai Tietz <ktietz@redhat.com>
9881
9882 PR gdb/15161
9883 * symfile.c (load_section_data): Change type of load_offset
9884 to CORE_ADDR.
9885 (generic_load): User strtoulst instead of strtoul for conversion
9886 of load_offset.
9887
9888 2013-02-19 Jiong Wang <jiwang@tilera.com>
9889
9890 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9891 for return address, "lr" register, saved on stack.
9892 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9893 after we invoke tilegx_analyze_prologue.
9894
9895 2013-02-19 Jiong Wang <jiwang@tilera.com>
9896
9897 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9898
9899 2013-02-19 Jiong Wang <jiwang@tilera.com>
9900
9901 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9902
9903 2013-02-19 Jiong Wang <jiwang@tilera.com>
9904
9905 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9906 (tilegx_write_pc): New function.
9907 (tilegx_cannot_reference_register): Return zero if REGNO
9908 is TILEGX_FAULTNUM_REGNUM.
9909 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9910 (tilegx_register_name): Add handling of "faultnum" register.
9911 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9912 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9913 handling of TILEGX_FAULTNUM_REGNUM.
9914 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9915
9916 2013-02-19 Jiong Wang <jiwang@tilera.com>
9917
9918 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9919 should be aligned to 64bit.
9920
9921 2013-02-19 Kai Tietz <ktietz@redhat.com>
9922
9923 * windows-nat.c (windows_xfer_memory): Fix debug-output
9924 for LLP64.
9925
9926 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9927
9928 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9929 Don't check DSP register number if HAVE_DSP is not set.
9930
9931 2013-02-19 Alan Modra <amodra@gmail.com>
9932
9933 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9934 throughout file instead.
9935 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9936 Don't xmalloc return value.
9937 (build_id_verify): Similarly. Don't xfree.
9938 (build_id_to_debug_filename): Update.
9939 (find_separate_debug_file_by_buildid): Update, don't xfree.
9940
9941 2013-02-18 Tom Tromey <tromey@redhat.com>
9942
9943 PR gdb/15102:
9944 * dwarf2read.c (read_subrange_type): Use result of
9945 'check_typedef'.
9946
9947 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9948
9949 * frame.c: Remove one extra white space after #include
9950 directive.
9951
9952 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9953
9954 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9955
9956 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9957
9958 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9959 and dir commands into an if block.
9960
9961 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9962
9963 * python/py-breakpoint (struct pybp_code): Use int instead of
9964 enum type_code.
9965
9966 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9967 Hafiz Abid Qadeer <abidh@codesourcery.com>
9968
9969 * NEWS: Mention new field "trace-file".
9970 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9971 (tfile_open): Record the trace file's filename in the trace
9972 status.
9973 (tfile_files_info): Mention the name of the trace file.
9974 Check the "filename" field explicitely.
9975 (trace_status_command): Explicitely check "filename" field.
9976 (trace_find_command): Ditto.
9977 (trace_find_pc_command): Ditto.
9978 (trace_find_tracepoint_command): Ditto.
9979 (trace_find_line_command): Ditto.
9980 (trace_find_range_command): Ditto.
9981 (trace_find_outside_command): Ditto.
9982 * tracepoint.h (struct trace_status) <from_file>: Rename it
9983 to "filename" and make it hold the trace file's filename
9984 instead of a boolean.
9985 * remote.c (remote_get_trace_status): Initialize "filename"
9986 field with NULL instead of 0.
9987
9988 2013-02-15 Yao Qi <yao@codesourcery.com>
9989
9990 * remote.c: Fix a typo.
9991
9992 2013-02-14 Pierre Muller <muller@sourceware.org>
9993
9994 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9995
9996 2013-02-14 Pedro Alves <palves@redhat.com>
9997
9998 * utils.c (savestring): Don't #undef it. Move function to
9999 common/common-utils.c.
10000 * common/common-utils.c: Include gdb_string.h.
10001 (savestring): Move here from utils.c.
10002 * common/common-utils.h (savestring): Declare.
10003
10004 2013-02-14 Pedro Alves <palves@redhat.com>
10005
10006 * utils.c (savestring): Rename parameter 'size' to 'len'.
10007
10008 2013-02-14 Pedro Alves <palves@redhat.com>
10009 Yufeng Zhang <yufeng.zhang@arm.com>
10010
10011 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10012 (aarch64_inferior_data, struct aarch64_inferior_data):
10013 Delete.
10014 (struct aarch64_process_info): New.
10015 (aarch64_process_list): New global.
10016 (aarch64_find_process_pid, aarch64_add_process)
10017 (aarch64_process_info_get): New functions.
10018 (aarch64_inferior_data_get): Delete.
10019 (aarch64_process_info_get): New function.
10020 (aarch64_forget_process): New function.
10021 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10022 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10023 aarch64_get_debug_reg_state.
10024 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10025 instead of linux_nat_iterate_watchpoint_lwps.
10026 (aarch64_linux_new_fork): New function.
10027 (aarch64_linux_child_post_startup_inferior): Use
10028 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10029 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10030 (aarch64_linux_remove_hw_breakpoint)
10031 (aarch64_handle_aligned_watchpoint)
10032 (aarch64_handle_unaligned_watchpoint)
10033 (aarch64_linux_insert_watchpoint)
10034 (aarch64_linux_remove_watchpoint)
10035 (aarch64_linux_stopped_data_address): Adjust to pass the current
10036 process id to aarch64_debug_reg_state.
10037 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10038 linux_nat_new_fork hook, and aarch64_forget_process as
10039 linux_nat_forget_process hook; remove the call to
10040 register_inferior_data_with_cleanup.
10041
10042 2013-02-14 Pedro Alves <palves@redhat.com>
10043
10044 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10045 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10046 lval_memory.
10047
10048 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10049 Hafiz Abid Qadeer <abidh@codesourcery.com>
10050
10051 * tracepoint.h (validate_trace_state_variable_name): Declare.
10052 * tracepoint.c (validate_trace_state_variable_name): New.
10053 (trace_variable_command): Parse the trace state variable's name
10054 without using parse_expression. Do several validations.
10055 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10056 trace state variable's name with parse_expression. Validate it.
10057
10058 2013-02-14 Yao Qi <yao@codesourcery.com>
10059
10060 * infcmd.c (breakpoint_proceeded): Remove it.
10061
10062 2013-02-14 Yao Qi <yao@codesourcery.com>
10063
10064 * tracepoint.c (end_actions_pseudocommand): Make it static.
10065 (while_stepping_pseudocommand): Likewise.
10066 * tracepoint.h (end_actions_pseudocommand): Remove the
10067 declaration.
10068 (while_stepping_pseudocommand): Likewise.
10069
10070 2013-02-14 Yao Qi <yao@codesourcery.com>
10071
10072 * cli/cli-decode.c (help_cmd): Remove the declaration of
10073 "cmdlist".
10074 (help_all): Likewise.
10075
10076 2013-02-13 Pedro Alves <palves@redhat.com>
10077
10078 * amd64-linux-nat.c (update_debug_registers_callback):
10079 Update comment.
10080 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10081 iterate_over_lwps.
10082 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10083 i386_debug_reg_state.
10084 (amd64_linux_new_fork): New function.
10085 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10086 linux_nat_new_fork hook, and i386_forget_process as
10087 linux_nat_forget_process hook.
10088 * i386-linux-nat.c (update_debug_registers_callback):
10089 Update comment.
10090 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10091 iterate_over_lwps.
10092 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10093 i386_debug_reg_state.
10094 (i386_linux_new_fork): New function.
10095 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10096 linux_nat_new_fork hook, and i386_forget_process as
10097 linux_nat_forget_process hook.
10098 * i386-nat.c (i386_init_dregs): Delete.
10099 (i386_inferior_data, struct i386_inferior_data):
10100 Delete.
10101 (struct i386_process_info): New.
10102 (i386_process_list): New global.
10103 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10104 New functions.
10105 (i386_inferior_data_get): Delete.
10106 (i386_process_info_get): New function.
10107 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10108 (i386_forget_process): New function.
10109 (i386_cleanup_dregs): Rewrite.
10110 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10111 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10112 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10113 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10114 to i386_debug_reg_state.
10115 (i386_use_watchpoints): Don't register inferior data.
10116 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10117 adjust comment.
10118 (i386_forget_process): Declare.
10119 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10120 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10121 New static globals.
10122 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10123 (add_initial_lwp): New, factored out from ...
10124 (add_lwp): ... this. Don't check the number of lwps before
10125 calling linux_nat_new_thread.
10126 (linux_nat_iterate_watchpoint_lwps): Delete.
10127 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10128 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10129 forks and vforks.
10130 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10131 initial lwp.
10132 (linux_nat_kill, linux_nat_mourn_inferior): Call
10133 linux_nat_forget_process.
10134 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10135 (linux_nat_forget_process): New functions.
10136 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10137 type.
10138 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10139 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10140 types.
10141 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10142 (linux_nat_forget_process): New declarations.
10143
10144 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10145 (amd64fbsd_mourn_inferior): New function.
10146 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10147 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10148
10149 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10150
10151 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10152 Adding _().
10153
10154 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10155
10156 * aarch64-linux-nat.c (debug_reg_change_callback)
10157 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10158 %s and phex().
10159
10160 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10161
10162 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10163 with LONGEST.
10164
10165 2013-02-13 Pedro Alves <palves@redhat.com>
10166 Hafiz Abid Qadeer <abidh@codesourcery.com>
10167
10168 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10169
10170 2013-02-12 Tom Tromey <tromey@redhat.com>
10171
10172 PR symtab/11464:
10173 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10174 NAME return.
10175 (classify_inner_name): Remove 'first_name' argument, add
10176 'context'. Remove unused variable.
10177 (yylex): Explicitly maintain the context type. Exit loop earlier
10178 if NAME result is seen.
10179
10180 2013-02-12 Pedro Alves <palves@redhat.com>
10181
10182 * amd64-darwin-tdep.c: Add (C) after Copyright.
10183 * cli/cli-cmds.h: Ditto.
10184 * cli/cli-decode.c: Ditto.
10185 * cli/cli-decode.h: Ditto.
10186 * cli/cli-dump.c: Ditto.
10187 * cli/cli-dump.h: Ditto.
10188 * cli/cli-interp.c: Ditto.
10189 * cli/cli-logging.c: Ditto.
10190 * cli/cli-script.c: Ditto.
10191 * cli/cli-script.h: Ditto.
10192 * cli/cli-setshow.c: Ditto.
10193 * cli/cli-setshow.h: Ditto.
10194 * cli/cli-utils.c: Ditto.
10195 * cli/cli-utils.h: Ditto.
10196 * config/alpha/nm-osf3.h: Ditto.
10197 * config/djgpp/djconfig.sh: Ditto.
10198 * config/i386/nm-fbsd.h: Ditto.
10199 * config/i386/nm-i386gnu.h: Ditto.
10200 * config/nm-linux.h: Ditto.
10201 * config/nm-nto.h: Ditto.
10202 * config/rs6000/nm-rs6000.h: Ditto.
10203 * config/sparc/nm-sol2.h: Ditto.
10204 * darwin-nat-info.c: Ditto.
10205 * dfp.c: Ditto.
10206 * dfp.h: Ditto.
10207 * gdb-demangle.h: Ditto.
10208 * i386-darwin-nat.c: Ditto.
10209 * i386-darwin-tdep.c: Ditto.
10210 * linux-fork.h: Ditto.
10211 * m32c-tdep.c: Ditto.
10212 * microblaze-linux-tdep.c: Ditto.
10213 * microblaze-rom.c: Ditto.
10214 * microblaze-tdep.c: Ditto.
10215 * microblaze-tdep.h: Ditto.
10216 * mips-linux-tdep.h: Ditto.
10217 * ppc-ravenscar-thread.c: Ditto.
10218 * ppc-ravenscar-thread.h: Ditto.
10219 * prologue-value.c: Ditto.
10220 * prologue-value.h: Ditto.
10221 * ravenscar-thread.c: Ditto.
10222 * ravenscar-thread.h: Ditto.
10223 * sparc-ravenscar-thread.c: Ditto.
10224 * sparc-ravenscar-thread.h: Ditto.
10225 * tilegx-linux-tdep.c: Ditto.
10226 * unwind_stop_reasons.def: Ditto.
10227 * windows-nat.h: Ditto.
10228 * xtensa-linux-tdep.c: Ditto.
10229 * xtensa-xtregs.c: Ditto.
10230 * regformats/regdat.sh: Ditto.
10231 * regformats/regdef.h: Ditto.
10232
10233 2013-02-12 Pedro Alves <palves@redhat.com>
10234
10235 * break-catch-sig.c: Update copyright years.
10236
10237 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10238
10239 Add support for a destructor for ui_out data and use it to
10240 provide a ui_out destructor.
10241 * ui-out.h: Declare the new ui_out destructor.
10242 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10243 * ui-out.c (default_data_destroy): Add a default data destructor
10244 which does nothing.
10245 (default_ui_out_impl): Set the new data_destroy field to
10246 default_data_destroy
10247 (uo_data_destroy): Local function which invokes the data
10248 destructor if present.
10249 (clear_table): Local function which clears the table data of a
10250 ui_out object.
10251 (ui_out_destroy): Public function which frees a ui_out object.
10252 (ui_out_table_end): Use the new clear_table function.
10253 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10254 NULL.
10255 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10256 to NULL.
10257
10258 2013-02-11 Doug Evans <dje@google.com>
10259
10260 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10261 (printf_decfloat): New function. Broken out from ui_printf.
10262 Remove unnecessary code to shift the entire format string down.
10263 (printf_pointer): New function.
10264 (ui_printf): Code to print C strings, wide C strings, decfloats,
10265 and pointers moved to separate functions.
10266
10267 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10268
10269 * valops.c (value_assign): Handling bitfield offset in
10270 `lval_internalvar_component' case.
10271
10272 2013-02-08 Doug Evans <dje@google.com>
10273
10274 * common/format.c (parse_format_string): Fix whitespace.
10275
10276 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10277
10278 * stack.c (return_command): Work around uninitialized variable
10279 warning.
10280
10281 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10282
10283 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10284 number of the registers from 36 to 34.
10285
10286 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10287
10288 * NEWS: Mention new AArch64 native and target support.
10289
10290 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10291
10292 * MAINTAINERS (Write After Approval): Add myself.
10293
10294 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10295 Marcus Shawcroft <marcus.shawcroft@arm.com>
10296 Nigel Stephens <nigel.stephens@arm.com>
10297 Yufeng Zhang <yufeng.zhang@arm.com>
10298
10299 * aarch64-linux-nat.c: New file.
10300 * config/aarch64/linux.mh: New file.
10301 * configure.host: Add AArch64.
10302 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10303
10304 2013-02-07 Doug Evans <dje@google.com>
10305
10306 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10307 disassemble command.
10308
10309 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10310
10311 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10312 set_gdbarch_fetch_tls_load_module_address.
10313
10314 2013-02-06 David S. Miller <davem@davemloft.net>
10315
10316 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10317 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10318 * value.c (struct_return_convention): New function.
10319 (using_struct_return): Implement in terms of struct_return_convention.
10320 * value.h (struct_return_convention): Declare.
10321 * stack.c (return_command): Allow successful overriding of the return
10322 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10323
10324 2013-02-06 Tom Tromey <tromey@redhat.com>
10325
10326 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10327 outside of TRY_CATCH.
10328
10329 2013-02-06 Yao Qi <yao@codesourcery.com>
10330
10331 * mi/mi-interp.c: Include "tracepoint.h".
10332 (mi_tsv_modified): Declare.
10333 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10334 (mi_interpreter_init): Call observer_attach_tsv_modified.
10335 (mi_tsv_modified): New.
10336 (mi_tsv_created, mi_tsv_deleted): Update.
10337 * tracepoint.c (trace_variable_command): Call
10338 observer_notify_tsv_modified if the initial value of tsv is
10339 changed.
10340 (delete_trace_state_variable): Call
10341 observer_notify_tsv_deleted earlier.
10342 (trace_variable_command): Caller update.
10343 (create_tsv_from_upload): Likewise.
10344 * observer.sh: Declare "struct trace_state_variable".
10345
10346 * NEWS: Mention the new MI notification "=tsv-modified".
10347
10348 2013-02-05 Doug Evans <dje@google.com>
10349
10350 * completer.c (location_completer): Fix typo in comment.
10351
10352 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10353
10354 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10355 ADDRESS sorted.
10356
10357 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10358
10359 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10360 Refactor if statement to avoid trailing || operator.
10361
10362 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10363
10364 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10365
10366 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10367
10368 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10369 * configure.host: Add powerpc*-*-freebsd* target.
10370 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10371 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10372 * config/powerpc/fbsd.mh: New file.
10373
10374 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10375 Denys Vlasenko <dvlasenk@redhat.com>
10376 Pedro Alves <palves@redhat.com>
10377
10378 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10379 (struct elf_internal_linux_prpsinfo): Forward declare.
10380 * gdbarch.h, gdbarch.c: Regenerate.
10381 * linux-tdep.c: Include `cli/cli-utils.h'.
10382 (linux_fill_prpsinfo): New function.
10383 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10384 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10385 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10386 depending on gdbarch pointer bitness.
10387 * ppc-linux-tdep.c: Include elf-bfd.h.
10388 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10389 on 32-bit.
10390
10391 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10392 Marcus Shawcroft <marcus.shawcroft@arm.com>
10393 Nigel Stephens <nigel.stephens@arm.com>
10394 Yufeng Zhang <yufeng.zhang@arm.com>
10395
10396 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10397
10398 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10399 Marcus Shawcroft <marcus.shawcroft@arm.com>
10400 Nigel Stephens <nigel.stephens@arm.com>
10401 Yufeng Zhang <yufeng.zhang@arm.com>
10402
10403 * aarch64-newlib-tdep.c: New file.
10404 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10405 aarch64*-*-elf.
10406 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10407 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10408 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10409 * osabi.c (gdb_osabi_names): Add "Newlib".
10410
10411 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10412 Marcus Shawcroft <marcus.shawcroft@arm.com>
10413 Nigel Stephens <nigel.stephens@arm.com>
10414 Yufeng Zhang <yufeng.zhang@arm.com>
10415
10416 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10417 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10418 * aarch64-linux-tdep.c: New file.
10419 * aarch64-linux-tdep.h: New file.
10420 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10421 * configure.tgt: Add aarch64-none-linux-gnu.
10422
10423 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10424 Marcus Shawcroft <marcus.shawcroft@arm.com>
10425 Nigel Stephens <nigel.stephens@arm.com>
10426 Yufeng Zhang <yufeng.zhang@arm.com>
10427
10428 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10429 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10430 (ALLDEPFILES): Add aarch64-tdep.c.
10431 * aarch64-tdep.c: New file.
10432 * aarch64-tdep.h: New file.
10433 * configure.tgt: Add AArch64.
10434 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10435 (aarch64-expedite): New definition.
10436 * features/aarch64-core.xml: New file.
10437 * features/aarch64-fpu.xml: New file.
10438 * features/aarch64-without-fpu.c: New file (generated).
10439 * features/aarch64-without-fpu.xml: New file.
10440 * features/aarch64.c: New file (generated).
10441 * features/aarch64.xml: New file.
10442 * regformats/aarch64-without-fpu.dat: New file (generated).
10443 * regformats/aarch64.dat: New file (generated).
10444
10445 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10446
10447 * contrib/expect-read1.c: New file.
10448 * contrib/expect-read1.sh: New file.
10449
10450 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10451
10452 * dwarf2read.c (file_file_name): New function with code from
10453 file_full_name.
10454 (file_full_name): Move most of the code to file_file_name.
10455 (macro_start_file): Rename variable full_name to file_name and use
10456 file_file_name for it. Add comp_dir parameter to new_macro_table.
10457 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10458 macro_source_file->filename access by macro_source_fullname call.
10459 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10460 caller.
10461 * macrotab.c (struct macro_table): New field comp_dir.
10462 (macro_include): New variables link_fullname and source_fullname.
10463 Replace any macro_source_file->filename access by macro_source_fullname
10464 call.
10465 (macro_lookup_inclusion): Remove the partial filenames checking code.
10466 (check_for_redefinition): New variables source_fullname and
10467 found_key_fullname. Replace any macro_source_file->filename access by
10468 macro_source_fullname call.
10469 (macro_undef): New variables source_fullname and key_fullname. Replace
10470 any macro_source_file->filename access by macro_source_fullname call.
10471 (macro_lookup_definition): New variables retval and source_fullname.
10472 Replace any macro_source_file->filename access by macro_source_fullname
10473 call.
10474 (foreach_macro): New variable key_fullname. Replace any
10475 macro_source_file->filename access by macro_source_fullname call.
10476 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10477 macro_source_file->filename access by macro_source_fullname call.
10478 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10479 (macro_source_fullname): New function.
10480 * macrotab.h (struct macro_source_file): Extent the filename field
10481 comment.
10482 (new_macro_table): New parameter comp_dir, add a comment for it.
10483 (macro_source_fullname): new declaration.
10484
10485 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10486
10487 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10488 this_real_name to outer block. Use it also for
10489 compare_filenames_for_search.
10490 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10491 with dw2_get_real_path for file_matcher, considering also
10492 BASENAMES_MAY_DIFFER.
10493 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10494
10495 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10496
10497 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10498 to the file_matcher parameter. Pass 0 to it.
10499 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10500 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10501 NULL psymtab_to_fullname result.
10502 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10503 an expected filename instead.
10504 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10505 file_matcher parameter. Call also psymtab_to_fullname, after newly
10506 considering BASENAMES_MAY_DIFFER.
10507 * source.c (rewrite_source_path): Remove static.
10508 * source.h (rewrite_source_path): New declaration.
10509 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10510 the expand_symtabs_matching field. Comment it.
10511 * symtab.c (file_matches): New function comment. Add parameter
10512 basenames, implement it.
10513 (search_symbols_file_matches): Add basenames parameter. Update the
10514 file_matches caller.
10515 (search_symbols): Match FILES also against symtab_to_fullname.
10516 Optimize it for BASENAMES_MAY_DIFFER.
10517
10518 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10519
10520 * source.c (print_source_lines_base): Print for TUI also "fullname".
10521 * tui/tui-data.c (init_content_element): Change tui_locator_element
10522 field to full_name.
10523 * tui/tui-data.h (struct tui_locator_element): Likewise.
10524 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10525 tui_update_locator_filename calls to tui_update_locator_fullname.
10526 Replace symtab->filename refererence by symtab_to_fullname call.
10527 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10528 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10529 field to full_name. Replace symtab->filename refererence by
10530 symtab_to_fullname call.
10531 (tui_show_symtab_source): Rename parameter to fullname. Change
10532 tui_locator_element field to full_name.
10533 * tui/tui-stack.c: Include source.h.
10534 (tui_set_locator_filename): Rename the declaration to ...
10535 (tui_set_locator_fullname): ... here. Rename its parameter to
10536 fullname, updates its comment.
10537 (tui_set_locator_info): Rename its parameter to fullname.
10538 (tui_set_locator_filename): Rename the definition to ...
10539 (tui_set_locator_fullname): ... here. Rename its parameter to
10540 fullname, updates its comment. Change tui_locator_element field to
10541 full_name.
10542 (tui_set_locator_info): Rename its parameter to fullname.
10543 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10544 (tui_update_locator_filename): Rename to ...
10545 (tui_update_locator_fullname): ... here. Rename callee to
10546 tui_set_locator_fullname.
10547 (tui_show_frame_info): Replace symtab->filename refererence by
10548 symtab_to_fullname call.
10549 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10550 (tui_update_locator_fullname): ... here.
10551 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10552 tui_update_locator_fullname. Replace symtab->filename refererence by
10553 symtab_to_fullname call.
10554 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10555 Rename the callee to tui_update_locator_fullname.
10556 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10557
10558 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10559
10560 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10561 by symtab_to_filename_for_display calls.
10562 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10563 (clear_command): New variable sal_fullname, initialize it. Replace
10564 compare_filenames_for_search by filename_cmp with sal_fullname.
10565 (say_where, update_static_tracepoint): Replace symtab->filename
10566 refererences by symtab_to_filename_for_display calls.
10567 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10568 Likewise.
10569 * dwarf2read.c: Include source.h.
10570 (fixup_go_packaging): Replace symtab->filename refererences by
10571 symtab_to_filename_for_display calls.
10572 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10573 Replace symtab->filename refererences by symtab_to_filename_for_display
10574 calls.
10575 (create_sals_line_offset, convert_linespec_to_sals): New variable
10576 fullname, initialize it, replace symtab->filename reference by the
10577 variable.
10578 * linux-fork.c: Include source.h.
10579 (info_checkpoints_command): Replace symtab->filename refererences by
10580 symtab_to_filename_for_display calls.
10581 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10582 by symtab_to_filename_for_display calls.
10583 * mdebugread.c: Include source.h.
10584 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10585 symtab_to_filename_for_display calls.
10586 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10587 (mi_cmd_file_list_exec_source_files): Likewise.
10588 * printcmd.c: Include source.h.
10589 (build_address_symbolic): Replace symtab->filename refererences by
10590 symtab_to_filename_for_display calls.
10591 * psymtab.c (partial_map_symtabs_matching_filename)
10592 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10593 with psymtab_to_fullname.
10594 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10595 by symtab_to_filename_for_display calls.
10596 (stpy_get_filename): New variable filename, initialize it, use instead
10597 of symtab->filename refererences.
10598 (salpy_str): Make variable filename const char *. Replace
10599 symtab->filename refererences by symtab_to_filename_for_display calls.
10600 * skip.c: Include source.h and filenames.h.
10601 (skip_file_command): Remove const from the symtab variable. Replace
10602 symtab->filename refererences by symtab_to_fullname call.
10603 (function_name_is_marked_for_skip): New variables searched_for_fullname
10604 and fullname. Use them to search also with symtab's fullname.
10605 * source.c (find_source_lines): Replace symtab->filename refererences
10606 by symtab_to_filename_for_display calls.
10607 (print_source_lines_base): New variable filename, use it instead of
10608 symtab->filename. Replace symtab->filename refererences by
10609 symtab_to_filename_for_display calls.
10610 (line_info, forward_search_command): Replace symtab->filename
10611 refererences by symtab_to_filename_for_display calls.
10612 (reverse_search_command): Replace symtab->filename refererences by
10613 symtab_to_filename_for_display calls. New variable filename for it.
10614 * stack.c (frame_info): Likewise.
10615 * symmisc.c: Include source.h.
10616 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10617 (maintenance_info_symtabs): Replace symtab->filename refererences by
10618 symtab_to_filename_for_display calls.
10619 * symtab.c (iterate_over_some_symtabs): Call
10620 compare_filenames_for_search also with symtab_to_fullname.
10621 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10622 symtab->filename refererences by symtab_to_filename_for_display calls.
10623 (find_line_symtab): Replace symtab->filename refererences by
10624 symtab_to_filename_for_display calls.
10625 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10626 (print_symbol_info): Make the last parameter const char *. New
10627 variable s_filename. Use it in the function.
10628 (symtab_symbol_info): Make the last_filename variable const char *.
10629 Replace symtab->filename refererences by symtab_to_filename_for_display
10630 calls.
10631 (rbreak_command): New variable fullname. Use it. Replace
10632 symtab->filename refererence by symtab_to_filename_for_display call.
10633 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10634 (print_one_static_tracepoint_marker): Replace symtab->filename
10635 refererences by symtab_to_filename_for_display calls.
10636 * tui/tui-source.c (tui_set_source_content): New variables filename and
10637 s_filename. Replace symtab->filename refererences by this variable.
10638 Replace other symtab->filename refererences by
10639 symtab_to_filename_for_display calls.
10640
10641 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10642 Jan Kratochvil <jan.kratochvil@redhat.com>
10643
10644 Add a new variable that controls a way in which filenames are
10645 displayed.
10646 * NEWS (set filename-display): New entry.
10647 * source.c (filename_display_basename, filename_display_relative)
10648 (filename_display_absolute, filename_display_kind_names)
10649 (filename_display_string, show_filename_display_string)
10650 (symtab_to_filename_for_display): New.
10651 (_initialize_source): Added initialization of 'filename-display'
10652 variable.
10653 * source.h (symtab_to_filename_for_display): Added declaration.
10654 * stack.c (print_frame): Added new variable and calling of a new
10655 function and condition with this variable. Changed third argument of
10656 calling of a function.
10657
10658 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10659
10660 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10661 Rename field reference filename to fullname.
10662 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10663 fullname. New comment for it.
10664 * tui/tui-source.c (tui_set_source_content): Rename field reference
10665 filename to fullname. Initialize field by symtab_to_fullname now.
10666 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10667 reference filename to fullname. Use symtab_to_fullname during
10668 comparison.
10669
10670 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10671
10672 Code cleanup.
10673 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10674 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10675 filename to fullname. Rename variable this_name to this_fullname.
10676 Lowercase FILENAME_CMP call.
10677 (dw2_find_symbol_file): New comment for the returned string.
10678 (dwarf2_gdb_index_functions): Rename the function to
10679 dw2_expand_symtabs_with_fullname.
10680 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10681 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10682 fullname.
10683 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10684 * symfile.h (struct quick_symbol_functions): Rename field
10685 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10686 parameter filename to fullname. Document returned string meaning for
10687 find_symbol_file.
10688 * symtab.c (find_line_symtab): Rename the called function to
10689 expand_symtabs_with_fullname.
10690
10691 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10692
10693 Code cleanup.
10694 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10695 call of filename_cmp with compare_filenames_for_search.
10696 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10697 is_abs, unify the call of FILENAME_CMP with
10698 compare_filenames_for_search. New gdb_asserts for real_path and name.
10699 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10700 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10701 * symfile.h (struct quick_symbol_functions): Extend the comment for
10702 map_symtabs_matching_filename.
10703 * symtab.c (compare_filenames_for_search): Remove the function comment
10704 relative path requirement. Handle absolute filenames, with a comment.
10705 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10706 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10707 real_path and name. Unify the call of compare_filenames_for_search
10708 with FILENAME_CMP.
10709 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10710
10711 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10712
10713 Code cleanup.
10714 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10715 source_file references by symtab field references. Remove variables
10716 sal and fullname.
10717 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10718 (clear_command, say_where): Replace bp_location field source_file
10719 references by symtab field references.
10720 (bp_location_dtor): Remove the source_file reference.
10721 (update_static_tracepoint): Replace bp_location field source_file
10722 references by symtab field references.
10723 (breakpoint_free_objfile): New function.
10724 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10725 Replace the field source_file by field symtab, extend its comment.
10726 (breakpoint_free_objfile): New declaration.
10727 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10728 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10729 field source_file references by symtab field references.
10730
10731 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10732
10733 Replace xfullpath calls by gdb_realpath calls.
10734 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10735 function comment.
10736 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10737 Remove it from the iterate_over_some_symtabs call.
10738 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10739 Remove it from the dw2_map_expand_apply calls, remove a block handling
10740 it.
10741 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10742 Remove it from the iterate_over_some_symtabs call.
10743 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10744 Remove it from the partial_map_expand_apply calls, remove a block
10745 handling it. Drop gdb_realpath call and cleanups from the real_path
10746 handling.
10747 * source.c (openp): Drop the comment part about xfullpath. Replace
10748 xfullpath calls by gdb_realpath calls.
10749 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10750 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10751 from method map_symtabs_matching_filename and its comment.
10752 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10753 gdb_realpath call.
10754 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10755 remove it also from the function comment, remove a block handling it.
10756 Drop gdb_realpath call and cleanups from the real_path handling.
10757 (iterate_over_symtabs): Drop variable full_path and its use.
10758 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10759 * utils.c (xfullpath): Remove.
10760 * utils.h (xfullpath): Remove.
10761
10762 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10763
10764 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10765 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10766 (ALLDEPFILES): Add ppc64-tdep.c.
10767 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10768 ppc64-tdep.o to gdb_target_obs.
10769 * ppc64-tdep.h: New file.
10770 * ppc64-tdep.c: New file.
10771 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10772 ppc-linux-tdep.c to here.
10773 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10774 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10775 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10776 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10777 from ppc-linux-tdep.c to here.
10778 (ppc64_convert_from_func_ptr_addr): Rename from
10779 ppc64_linux_convert_from_func_ptr_addr to
10780 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10781 here.
10782 * rs6000-tdep.c:
10783 (read_insn): Move from ppc-linux-tdep.c to here.
10784 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10785 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10786 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10787 Removed above functions.
10788 (ppc_linux_init_abi): Adjust.
10789
10790 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10791
10792 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10793
10794 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10795
10796 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10797
10798 2013-02-01 Pedro Alves <palves@redhat.com>
10799
10800 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10801 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10802
10803 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10804
10805 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10806 files with no separate debug info.
10807 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10808 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10809 only for files with no separate debug info.
10810
10811 2013-01-31 Tom Tromey <tromey@redhat.com>
10812
10813 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10814 change type.
10815 (struct jit_program_space_data): Rename from jit_inferior_data.
10816 Update comments.
10817 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10818 Change return type. Attach data to program space.
10819 (jit_program_space_data_cleanup): Rename from
10820 jit_inferior_data_cleanup; change argument type.
10821 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10822 change type.
10823 (jit_register_code): Update.
10824 (jit_update_inferior_cache): Remove.
10825 (jit_breakpoint_deleted): Get jit data from the location's program
10826 space.
10827 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10828 'ps_data', change type.
10829 (jit_inferior_init, jit_breakpoint_re_set_internal)
10830 (jit_event_handler): Update.
10831 (free_objfile_data): Get data from objfile's program space.
10832 (_initialize_jit): Update.
10833
10834 2013-01-31 Tom Tromey <tromey@redhat.com>
10835
10836 PR gdb/13987:
10837 * jit.c (struct jit_inferior_data) <cached_code_address,
10838 jit_breakpoint>: New fields.
10839 (jit_breakpoint_re_set_internal): Fix logging. Only create
10840 breakpoint if cached address has changed.
10841 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10842 functions.
10843 (_initialize_jit): Register breakpoint deleted observer.
10844
10845 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10846
10847 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10848 (save_infcall_suspend_state): Ifdef out unused inf.
10849 (restore_infcall_suspend_state): Ifdef out unused inf.
10850 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10851 (jit_frame_sniffer): Remove unused inf_data.
10852
10853 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10854
10855 * c-exp.y (classify_inner_name): Remove unused type.
10856 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10857 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10858 need_escape.
10859 (c_get_string): Remove unused kind.
10860 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10861
10862 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10863
10864 * charset.c (intermediate_encoding): Remove unused i.
10865 * completer.c (signal_completer): Remove unused i.
10866 * continuations.c (discard_my_continuations_1): Remove unused
10867 continuation_ptr.
10868 * corelow.c (core_close): Remove unuseD name.
10869 (get_core_siginfo): Remove unused pid.
10870 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10871 i, cps.
10872 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10873 (loclist_describe_location): Remove unused first.
10874 * event-top.c (command_line_handler): Remove unused got_eof.
10875 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10876 (resize_section_table): Remove unused old_value.
10877 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10878 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10879 * i386-tdep.c (i386_process_record): Remove unused rex.
10880 * infcmd.c (get_return_value): Remove unused uiout.
10881 * jv-lang.c (type_from_class): Remove unused is_array.
10882 * jv-valprint.c (java_val_print): Remove unused i.
10883 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10884 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10885 * m2-typeprint.c (m2_print_type): Remove unused code.
10886 * macroexp.c (get_character_constant): Remove unused body_start.
10887 (macro_stringify): Remove unused result.
10888 * objc-lang.c (find_methods): Remove unused gdbarch.
10889 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10890 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10891 * stack.c (print_frame_args): Remove unused summary.
10892 * thread.c (thread_apply_command): Remove unused p.
10893 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10894 * valops.c (search_struct_method): Remove unused skip.
10895 * valprint.c (generic_val_print): Remove unused byte_order.
10896 * varobj.c (varobj_update): Remove unused changed.
10897 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10898 (alias_command): Remove unused c.
10899 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10900 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10901 format.
10902 (mi_cmd_data_write_memory): Remove unused word_format.
10903 (mi_cmd_data_write_memory_bytes): Remove unused r.
10904 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10905 p_start, p_end.
10906 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10907 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10908 line_width.
10909
10910 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10911
10912 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10913 * symtab.c (iterate_over_symtabs): Remove unused s.
10914 (find_pc_sect_symtab): Remove unused pspAce.
10915 (find_pc_sect_line): Remove unused alt_symtab.
10916 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10917 (completion_list_add_name): Remove unused newsize.
10918
10919 2013-01-31 Tom Tromey <tromey@redhat.com>
10920
10921 PR c++/14998:
10922 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10923 TYPE_CODE_FUNC.
10924
10925 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10926
10927 * target.c (target_read_string): Remove unused origlen.
10928
10929 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10930
10931 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10932 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10933 * ax-general.c (ax_print): Remove unused is_float.
10934 * blockframe.c (block_innermost_frame): Remove unused start, end.
10935 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10936
10937 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10938
10939 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10940 (svr4_read_so_list): Remove unused lmo.
10941 * solib-target.c (solib_target_relocate_section_addresses): Remove
10942 unused flags.
10943
10944 2013-01-30 Tom Tromey <tromey@redhat.com>
10945
10946 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10947
10948 2013-01-30 Tom Tromey <tromey@redhat.com>
10949
10950 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10951 * utils.c (gnu_debuglink_crc32): Remove.
10952 * utils.h (gnu_debuglink_crc32): Don't declare.
10953
10954 2013-01-30 Tom Tromey <tromey@redhat.com>
10955
10956 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10957 (read_structure_type, read_enumeration_type): Remove cast.
10958
10959 2013-01-30 Tom Tromey <tromey@redhat.com>
10960
10961 * dwarf2read.c (read_namespace_type): Remove cast.
10962 (read_typedef): Likewise.
10963
10964 2013-01-29 Tom Tromey <tromey@redhat.com>
10965
10966 * dwarf2read.c (free_dwo_file): Remove assert.
10967
10968 2013-01-29 Tom Tromey <tromey@redhat.com>
10969
10970 * value.c (deprecated_set_value_modifiable): Remove.
10971 * value.h (deprecated_set_value_modifiable): Remove.
10972
10973 2013-01-28 Doug Evans <dje@google.com>
10974
10975 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10976 to addresses from dwo files.
10977
10978 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10979
10980 * valops.c (find_overload_match): Remove unused argument 'lax'.
10981 * value.h: Remove unused argument 'lax' from the declaration of
10982 find_overload_match.
10983 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10984 to find_overload_match.
10985 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10986 argument to find_overload_match.
10987
10988 2013-01-25 Tom Tromey <tromey@redhat.com>
10989
10990 * dwarf2read.c (processing_has_namespace_info): Remove.
10991 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10992 (process_die, read_func_scope, dwarf2_start_symtab)
10993 (new_symbol_full): Update.
10994
10995 2013-01-25 Tom Tromey <tromey@redhat.com>
10996
10997 * cp-namespace.c (cp_set_block_scope): Remove.
10998 * cp-support.h (cp_set_block_scope): Remove.
10999 * dbxread.c: Include block.h.
11000 (cp_set_block_scope): New function.
11001 (process_one_symbol): Update.
11002 * dwarf2read.c (read_func_scope): Use block_set_scope.
11003
11004 2013-01-25 Pedro Alves <palves@redhat.com>
11005
11006 * remote.c (add_current_inferior_and_thread): Tweak comment.
11007
11008 2013-01-25 Tom Tromey <tromey@redhat.com>
11009
11010 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11011 (cp_add_using_directive): Add 'copy_names' argument.
11012 * cp-support.h (cp_add_using_directive): Update.
11013 (struct using_direct) <import_src, import_dest, alias,
11014 declaration>: Now const.
11015 * dwarf2read.c (read_import_statement): Use obconcat.
11016 Don't copy names passed to cp_add_using_directive.
11017
11018 2013-01-25 Tom Tromey <tromey@redhat.com>
11019
11020 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11021
11022 2013-01-25 Pedro Alves <palves@redhat.com>
11023
11024 * remote.c (stop_reply_extract_thread): New.
11025 (add_current_inferior_and_thread): New parameter 'wait_status'.
11026 Handle it.
11027 (remote_start_remote): Pass wait status to
11028 add_current_inferior_and_thread.
11029 (extended_remote_run): Update comment.
11030 (extended_remote_create_inferior_1): Pass wait status to
11031 add_current_inferior_and_thread.
11032
11033 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11034 Ulrich Weigand <uweigand@de.ibm.com>
11035
11036 * valarith.c (value_vector_widen): New function for replicating a
11037 scalar into a vector.
11038 (value_binop): Use value_vector_widen to widen scalar to vector
11039 rather than casting, this better matches gcc C behaviour.
11040 * valops.c (value_casst): Update logic for casting between vector
11041 types, and for casting from scalar to vector, try to match gcc C
11042 behaviour.
11043 * value.h (value_vector_widen): Declare.
11044 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11045 function, handle special case for casting scalar to vector.
11046 (opencl_relop): Use opencl_value_cast.
11047 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11048 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11049 in order to use opencl_value_cast.
11050
11051 2013-01-25 Yao Qi <yao@codesourcery.com>
11052
11053 * event-loop.c: Include "queue.h".
11054 (gdb_event_p): New typedef.
11055 (DECLARE_QUEUE_P): Use.
11056 (DEFINE_QUEUE_P): Use.
11057 (async_queue_event): Remove.
11058 (gdb_event_xfree): New.
11059 (initialize_event_loop): New.
11060 (process_event): Use QUEUE macros.
11061 (event_queue): Remove.
11062 (gdb_wait_for_event): Caller update.
11063 (check_async_event_handlers): Likewise.
11064 (poll_timers): Likewise.
11065 * event-loop.h (initialize_event_loop): Declare.
11066 * event-loop.c (gdb_event_xfree): New.
11067 * top.c (gdb_init): Call initialize_event_loop.
11068
11069 2013-01-25 Yao Qi <yao@codesourcery.com>
11070
11071 * event-loop.c (async_queue_event): Remove one parameter
11072 'position'. Remove code handling 'position' == TAIL.
11073 (gdb_wait_for_event): Caller update.
11074 (check_async_event_handlers): Caller update.
11075 (poll_timers): Caller update.
11076 * event-loop.h (enum queue_position): Remove.
11077
11078 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11079
11080 * MAINTAINERS: Update my email.
11081
11082 2013-01-25 Yao Qi <yao@codesourcery.com>
11083
11084 * main.c (print_gdb_help): Remove "--epoch" from the help
11085 message.
11086
11087 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11088
11089 * symtab.c (skip_prologue_using_sal): Consider a file
11090 change the same as an increased line number
11091
11092 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11093
11094 * MAINTAINERS (Write After Approval): Add myself to the list.
11095
11096 2013-01-24 Tom Tromey <tromey@redhat.com>
11097
11098 * ada-lang.h (ada_decode_symbol): Make return type const.
11099 * ada-lang.c (ada_decode_symbol): Likewise.
11100
11101 2013-01-23 Doug Evans <dje@google.com>
11102
11103 * linespec.c (find_linespec_symbols): Make static.
11104
11105 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11106
11107 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11108 type on float conversion for complex type.
11109
11110 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11111
11112 Add a new class gdb.Architecture which exposes GDB's
11113 internal representation of architecture via GDB Python API.
11114 * Makefile.in: Add entries corresponding to the new file
11115 python/py-arch.c.
11116 * NEWS (Python Scripting): Add entries for the new class
11117 gdb.Architecture and the new method gdb.Frame.architecture.
11118 * python/py-arch.c: Implement gdb.Architecture class.
11119 * python/py-frame.c (frapy_arch): Implement the method
11120 gdb.Frame.architecture().
11121 (frame_object_methods): Add 'architecture' to the method table.
11122 * python/python-internal.h: Add declarations of new utility
11123 functions.
11124 * python/python.c (_initialize_python): Initialize
11125 gdb.Architecture class.
11126
11127 2013-01-23 Doug Evans <dje@google.com>
11128
11129 Work around binutils/15021.
11130 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11131 type_unit_group out of union s. All uses updated.
11132 (read_index_from_section): Watch for index version 8.
11133 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11134 an imported symtab.
11135 (write_psymtabs_to_index): Increment version number to 8.
11136
11137 2013-01-22 Pedro Alves <palves@redhat.com>
11138
11139 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11140 user-visible.
11141
11142 2013-01-22 Pedro Alves <palves@redhat.com>
11143
11144 * annotate.c (annotate_breakpoints_changed): Rename to ...
11145 (annotate_breakpoints_invalid): ... this. Make static.
11146 (breakpoint_changed): Adjust.
11147 (_initialize_annotate): Always install the observers. Install a
11148 "breakpoint_created" observer.
11149 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11150 * breakpoint.c (set_breakpoint_condition)
11151 (breakpoint_set_commands, do_map_commands_command)
11152 (init_raw_breakpoint, clear_command, set_ignore_count)
11153 (enable_breakpoint_disp): No longer call
11154 annotate_breakpoints_changed.
11155
11156 2013-01-22 Pedro Alves <palves@redhat.com>
11157
11158 * annotate.c: Include "inferior.h".
11159 (frames_invalid_emitted)
11160 (breakpoints_invalid_emitted): New globals.
11161 (async_background_execution_p): New function.
11162 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11163 emitting the annotation if it has already been emitted.
11164 (annotate_display_prompt): New function.
11165 * annotate.h (annotate_display_prompt): New declaration.
11166 * event-top.c: Include annotate.h.
11167 (display_gdb_prompt): Call annotate_display_prompt.
11168
11169 2013-01-22 Pedro Alves <palves@redhat.com>
11170
11171 * annotate.c (ignore_count_changed): Delete.
11172 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11173 (annotate_ignore_count_change): Delete.
11174 (annotate_stopped): Don't emit a delayed breakpoints-changed
11175 annotation.
11176 * annotate.h (annotate_ignore_count_change): Delete.
11177 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11178 annotate_ignore_count_change.
11179
11180 2013-01-22 Tom Tromey <tromey@redhat.com>
11181
11182 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11183 require_rvalue for a register location.
11184
11185 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11186
11187 * breakpoint.c (print_one_breakpoint_location): Add MI
11188 field 'thread-groups' when printing a breakpoint.
11189 (output_thread_groups): New function.
11190
11191 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11192
11193 * python/lib/gdb/commands/explore.py
11194 (CompoundExplorer.explore_expr): Correct the name of a method
11195 being invoked.
11196 (ExploreTypeCommand.invoke): Add a missing 'return'.
11197
11198 2013-01-21 Tom Tromey <tromey@redhat.com>
11199
11200 * gdb_obstack.h (obconcat): Move declaration here, from...
11201 * symfile.h (obconcat): ... here.
11202 * gdb_obstack.c: New file.
11203 (obconcat): Move from...
11204 * symfile.c (obconcat): ... here.
11205 * Makefile.in (SFILES): Add gdb_obstack.c.
11206 (COMMON_OBS): Add gdb_obstack.o.
11207
11208 2013-01-21 Tom Tromey <tromey@redhat.com>
11209
11210 * symfile.h (obsavestring): Don't declare.
11211 * symfile.c (obsavestring): Remove.
11212 * ada-exp.y: Use obstack_copy0, not obsavestring.
11213 * ada-lang.c: Use obstack_copy0, not obsavestring.
11214 * coffread.c: Use obstack_copy0, not obsavestring.
11215 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11216 * dbxread.c: Use obstack_copy0, not obsavestring.
11217 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11218 * jit.c: Use obstack_copy0, not obsavestring.
11219 * mdebugread.c: Use obstack_copy0, not obsavestring.
11220 * psymtab.c: Use obstack_copy0, not obsavestring.
11221 * stabsread.c: Use obstack_copy0, not obsavestring.
11222 * xcoffread.c: Use obstack_copy0, not obsavestring.
11223
11224 2013-01-21 Tom Tromey <tromey@redhat.com>
11225
11226 * dwarf2read.c (fixup_go_packaging): Save package name
11227 on objfile obstack.
11228 * gdbtypes.c (init_type): Don't copy name.
11229
11230 2013-01-21 Tom Tromey <tromey@redhat.com>
11231
11232 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11233 const.
11234 (struct attribute) <u.str>: Now const.
11235 (struct fnfieldlist) <name>: Now const.
11236 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11237 (partial_die_parent_scope): Make return type const.
11238 (partial_die_full_name, add_partial_symbol): Update.
11239 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11240 'name' const.
11241 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11242 (read_file_scope, read_func_scope, dwarf2_add_field)
11243 (dwarf2_add_member_fn, read_structure_type)
11244 (process_enumeration_scope, read_array_type, read_module_type)
11245 (read_base_type, read_subrange_type): Update.
11246 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11247 (new_symbol_full, guess_full_die_structure_name): Update.
11248 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11249 (dwarf2_name): Return const type.
11250 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11251 const.
11252
11253 2013-01-21 Tom Tromey <tromey@redhat.com>
11254
11255 * gdbtypes.c (init_type): Make 'name' const.
11256 * gdbtypes.h (init_type): Update.
11257
11258 2013-01-21 Tom Tromey <tromey@redhat.com>
11259
11260 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11261 (start_symtab): Make 'name' and 'dirname' const. Use
11262 set_last_source_file.
11263 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11264 (last_source_file): Define. Now static.
11265 (set_last_source_file, get_last_source_file): New functions.
11266 * buildsym.h (last_source_file): Don't declare.
11267 (start_symtab): Update.
11268 (set_last_source_file, get_last_source_file): Declare.
11269 * coffread.c (complete_symtab): Use set_last_source_file.
11270 (coff_end_symtab): Likewise.
11271 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11272 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11273 set_last_source_file.
11274 (process_one_symbol): Use get_last_source_file.
11275 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11276 (psymtab_to_symtab_1): Use get_last_source_file.
11277 * xcoffread.c (process_linenos): Use get_last_source_file.
11278 (complete_symtab): Use set_last_source_file.
11279 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11280 (scan_xcoff_symtab): Use set_last_source_file.
11281
11282 2013-01-21 Tom Tromey <tromey@redhat.com>
11283
11284 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11285 (symbol_set_names): Remove casts. Handle field const-ness.
11286
11287 2013-01-21 Tom Tromey <tromey@redhat.com>
11288
11289 * dwarf2read.c (new_symbol_full): Remove cast.
11290 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11291 * symtab.h (symbol_set_demangled_name): Update.
11292
11293 2013-01-21 Tom Tromey <tromey@redhat.com>
11294
11295 * main.c (captured_main): Call bfd_init.
11296
11297 2013-01-21 Tom Tromey <tromey@redhat.com>
11298
11299 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11300 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11301 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11302 * NEWS: Update.
11303
11304 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11305
11306 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11307
11308 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11309
11310 Fix gdb.fortran/common-block.exp crash in PIE mode.
11311 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11312 LOC_COMMON_BLOCK.
11313 * f-valprint.c (info_common_command_for_block): Expect
11314 LOC_COMMON_BLOCK in gdb_assert.
11315 * symtab.h (struct general_symbol_info): Update comment for the
11316 common_block member.
11317 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11318 (enum address_class): New member LOC_COMMON_BLOCK.
11319
11320 2013-01-18 David Blaikie <dblaikie@gmail.com>
11321
11322 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11323
11324 2013-01-18 Tom Tromey <tromey@redhat.com>
11325
11326 PR c++/14999:
11327 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11328 Call require_rvalue.
11329
11330 2013-01-18 Yao Qi <yao@codesourcery.com>
11331
11332 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11333 (dbx_read_symtab): New declaration.
11334 (dbx_psymtab_to_symtab): Delete.
11335 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11336 Rename parameter PST to SELF. Exchanged two parameters.
11337 (start_psymtab): Caller update.
11338 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11339 (dwarf2_read_symtab): New declaration.
11340 (dwarf2_psymtab_to_symtab): Delete.
11341 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11342 Rename parameter PST to SELF. Exchanged two parameters.
11343 (create_partial_symtab): Caller update.
11344 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11345 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11346 Rename parameter PST to SELF. Exchanged two parameters.
11347 (parse_partial_symbols, new_psymtab): Caller update.
11348 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11349 two parameters.
11350 * psymtab.c (psymtab_to_symtab): Caller update.
11351 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11352 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11353 Rename parameter PST to SELF. Exchanged two parameters.
11354 (xcoff_start_psymtab): Caller update.
11355
11356 2013-01-18 Yao Qi <yao@codesourcery.com>
11357
11358 * infrun.c (proceed): Rename local variable 'oneproc' to
11359 'force_step'.
11360
11361 2013-01-17 Doug Evans <dje@google.com>
11362
11363 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11364 (dw2_build_type_unit_groups): Delete. All uses updated.
11365
11366 * symtab.h (struct symbol_search): Add comment.
11367
11368 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11369
11370 * symtab.c (compare_filenames_for_search): New comment for
11371 HAS_DRIVE_SPEC.
11372
11373 2013-01-17 Tom Tromey <tromey@redhat.com>
11374
11375 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11376
11377 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11378
11379 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11380 initialize it by existing make_cleanup. Call new do_cleanups.
11381
11382 2013-01-17 Tom Tromey <tromey@redhat.com>
11383
11384 * cp-abi.c (cp_abi_completer): New function.
11385 (_initialize_cp_abi): Set completer for "set cp-abi".
11386
11387 2013-01-17 Tom Tromey <tromey@redhat.com>
11388
11389 * mem-break.c: Remove obsolete comment.
11390 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11391
11392 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11393
11394 * jit.c (jit_reader_load_command): Interpret the jit reader name
11395 as an absolute path if it begins with a forward slash.
11396
11397 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11398
11399 PR gdb/14550
11400
11401 * jit.c (finalize_symtab): Ensure that only the global block has a
11402 NULL superblock.
11403
11404 2013-01-17 Pedro Alves <palves@redhat.com>
11405
11406 * acinclude.m4: Include ../config/plugins.m4,
11407 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11408 * Makefile.in (aclocal_m4_deps): Update.
11409 * aclocal.m4: Renegerate.
11410
11411 2013-01-16 Doug Evans <dje@google.com>
11412
11413 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11414
11415 2013-01-16 Pedro Alves <palves@redhat.com>
11416 Tom Tromey <tromey@redhat.com>
11417
11418 PR cli/7221:
11419 * NEWS: Add "catch signal".
11420 * breakpoint.c (base_breakpoint_ops): No longer static.
11421 (bpstat_explains_signal): New function.
11422 (init_catchpoint): No longer static.
11423 (base_breakpoint_explains_signal): New function.
11424 (base_breakpoint_ops): Initialize new field.
11425 * breakpoint.h (enum bpstat_signal_value): New.
11426 (struct breakpoint_ops) <explains_signal>: New field.
11427 (bpstat_explains_signal): Remove macro, declare as function.
11428 (base_breakpoint_ops, init_catchpoint): Declare.
11429 * break-catch-sig.c: New file.
11430 * inferior.h (signal_catch_update): Declare.
11431 * infrun.c (signal_catch): New global.
11432 (handle_syscall_event): Update for change to
11433 bpstat_explains_signal.
11434 (handle_inferior_event): Likewise. Always handle random signals
11435 via bpstats.
11436 (signal_cache_update): Check signal_catch.
11437 (signal_catch_update): New function.
11438 (_initialize_infrun): Initialize signal_catch.
11439 * Makefile.in (SFILES): Add break-catch-sig.c.
11440 (COMMON_OBS): Add break-catch-sig.o.
11441
11442 2013-01-16 Tom Tromey <tromey@redhat.com>
11443
11444 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11445 (print_one_catch_solib, print_one_catch_syscall)
11446 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11447 "catch-type".
11448
11449 2013-01-16 Yao Qi <yao@codesourcery.com>
11450
11451 * printcmd.c (current_display_number): Make it static.
11452
11453 2013-01-16 Yao Qi <yao@codesourcery.com>
11454
11455 * infcmd.c (step_once): Don't check '!single_inst' as it was
11456 checked before.
11457
11458 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11459
11460 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11461
11462 2013-01-14 Tom Tromey <tromey@redhat.com>
11463
11464 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11465 set command.
11466 * command.h (add_setshow_string_noescape_cmd): Update.
11467 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11468 (complete_set_gnutarget): New function.
11469 (_initialize_core): Set the "set gnutarget" completer.
11470
11471 2013-01-14 Tom Tromey <tromey@redhat.com>
11472
11473 PR symtab/14442:
11474 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11475 (c_type_print_modifier): Likewise.
11476 * dwarf2read.c (read_tag_restrict_type): New function.
11477 (read_type_die_1): Handle DW_TAG_restrict_type.
11478 * gdbtypes.c (make_restrict_type): New function.
11479 (recursive_dump_type): Handle TYPE_RESTRICT.
11480 * gdbtypes.h (enum type_flag_values): Renumber.
11481 (enum type_instance_flag_value): Add
11482 TYPE_INSTANCE_FLAG_RESTRICT.
11483 (TYPE_RESTRICT): New macro.
11484 (make_restrict_type): Declare.
11485
11486 2013-01-14 Tom Tromey <tromey@redhat.com>
11487
11488 PR symtab/14931:
11489 * psymtab.c (struct psymtab_state): New.
11490 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11491 functions.
11492 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11493 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11494
11495 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11496 Pedro Alves <palves@redhat.com>
11497
11498 PR remote/14786
11499
11500 * remote.c (remote_threads_info): Make a copy of the reply from
11501 qfThreadInfo and use that instead of rs->buf.
11502
11503 2013-01-14 Yao Qi <yao@codesourcery.com>
11504
11505 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11506 (dbx_psymtab_to_symtab): Likewise.
11507 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11508 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11509 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11510
11511 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11512
11513 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11514 make_cleanup_restore_current_language. Call set_language. Move
11515 OLD_CHAIN and INNER_CHAIN cleanups.
11516 * utils.c (do_restore_current_language)
11517 (make_cleanup_restore_current_language): New functions.
11518 * utils.h (make_cleanup_restore_current_language): New declaration.
11519
11520 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11521
11522 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11523 non-existing files.
11524
11525 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11526 non-existing files if FILENAME is already absolute.
11527
11528 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11529
11530 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11531 fputs_filtered. Append trailing newline.
11532
11533 2013-01-11 Yao Qi <yao@codesourcery.com>
11534 Stan Shebs <stan@codesourcery.com>
11535
11536 * psymtab.c (init_psymbol_list): Clarify the comment.
11537
11538 2013-01-11 Yao Qi <yao@codesourcery.com>
11539
11540 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11541 (update_dprintf_command_list): Assert that 'printf_line' is
11542 non-null. Remove condition check.
11543
11544 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11545
11546 Code cleanup.
11547 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11548 type const char *.
11549 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11550 const char *.
11551 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11552
11553 2013-01-09 Anthony Green <green@moxielogic.com>
11554
11555 * cp-abi.c (cplus_print_vtable): Don't return value from void
11556 function.
11557 * ada-lang.c (re_set_catch_assert): Ditto.
11558
11559 2013-01-09 Doug Evans <dje@google.com>
11560
11561 * symfile.h (quick_symbol_functions): Delete member
11562 pre_expand_symtabs_matching. All uses removed.
11563 * dwarf2read.c (dw2_lookup_symbol): Implement.
11564 (dw2_do_expand_symtabs_matching): Delete.
11565 (dw2_pre_expand_symtabs_matching): Delete.
11566 (struct dw2_symtab_iterator): New type.
11567 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11568 (dw2_expand_symtabs_for_function): Rewrite.
11569 (dwarf2_gdb_index_functions): Update.
11570 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11571 (psym_functions): Update.
11572
11573 2013-01-09 Tom Tromey <tromey@redhat.com>
11574
11575 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11576 * configure: Rebuild.
11577 * configure.ac: Add somread.o to the build if BFD has SOM
11578 support.
11579 * somread.c: Include som/aout.h, not syms.h.
11580 (som_symtab_read): Use som_external_symbol_dictionary_record.
11581 Unpack records manually.
11582 (_initialize_somread): Declare.
11583
11584 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11585
11586 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11587 Cast return_address to 64bits.
11588
11589 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11590
11591 * printcmd.c: Remove define of function output_command.
11592 * tracepoint.c: Remove extern of function output_command.
11593 * valprint.h: (output_command): New extern.
11594
11595 2013-01-07 Tom Tromey <tromey@redhat.com>
11596
11597 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11598 Remove.
11599 (objc_language_defn): Use c_printchar, c_printstr,
11600 c_emit_char.
11601
11602 2013-01-07 Tom Tromey <tromey@redhat.com>
11603
11604 PR cli/7719:
11605 * NEWS: Update.
11606 * ada-valprint.c (printstr, print_field_values): Remove
11607 "inspect_it" code.
11608 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11609 code.
11610 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11611 code.
11612 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11613 * main.c (captured_main): Remove "epoch" argument.
11614 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11615 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11616 * p-valprint.c (pascal_object_print_value_fields): Remove
11617 "inspect_it" code.
11618 * printcmd.c (print_command_1): Remove 'inspect' argument.
11619 (print_command, call_command): Update.
11620 (inspect_command): Remove.
11621 (_initialize_printcmd): Make "inspect" an alias for "print".
11622 * top.c (epoch_interface): Remove.
11623 * top.h (epoch_interface): Remove.
11624 * valprint.c (user_print_options): Update.
11625 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11626 * valprint.h (struct value_print_options) <inspect_it>: Remove
11627 field.
11628
11629 2013-01-04 Tom Tromey <tromey@redhat.com>
11630
11631 * valprint.h (read_string): Add 'extern'.
11632
11633 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11634
11635 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11636 used to decide whether to define darwin_read_dyld_info or not.
11637
11638 2013-01-03 Pierre Muller <muller@sourceware.org>
11639
11640 * main.c (relocate_gdb_directory): Avoid calling stat function
11641 if DIR is empty.
11642
11643 2013-01-03 Yao Qi <yao@codesourcery.com>
11644
11645 * psymtab.c (fixup_psymbol_section): Update declaration.
11646 (fixup_psymbol_section): Remove code returning value.
11647
11648 2013-01-03 Yao Qi <yao@codesourcery.com>
11649
11650 * symtab.h: Remove some out of date comments.
11651 (enum exception_event_kind): Move it ...
11652 * breakpoint.c: ... here.
11653
11654 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11655
11656 PR gdb/14405
11657 * darwin-nat.c (darwin_read_dyld_info): Only build if
11658 TASK_DYLD_INFO_COUNT is defined.
11659 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11660 TASK_DYLD_INFO_COUNT is defined.
11661
11662 2013-01-02 Tom Tromey <tromey@redhat.com>
11663
11664 * symfile.h (struct ecoff_debug_hack): Remove.
11665 * objfiles.c: Don't include mdebugread.h.
11666
11667 2013-01-02 Tom Tromey <tromey@redhat.com>
11668
11669 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11670 * configure.ac: Check for Mach-O support in BFD. Update
11671 CONFIG_OBS.
11672 * configure: Rebuild.
11673
11674 2013-01-02 Tom Tromey <tromey@redhat.com>
11675
11676 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11677 * configure.ac: Use GDB_AC_CHECK_BFD.
11678 * configure: Rebuild.
11679
11680 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11681
11682 * MAINTAINERS: Update my email.
11683
11684 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11685
11686 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11687
11688 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11689
11690 * rs6000-nat.c (bss_data_overlap): New function.
11691 (vmap_symtab): Use it to adjust the .bss section's offset.
11692
11693 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11694
11695 Update year range in copyright notice of all files.
11696
11697 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11698
11699 * top.c (print_gdb_version): Update copyright year.
11700
11701 For older changes see ChangeLog-2012.
11702 \f
11703 Local Variables:
11704 mode: change-log
11705 left-margin: 8
11706 fill-column: 74
11707 version-control: never
11708 coding: utf-8
11709 End:
This page took 0.602954 seconds and 4 git commands to generate.