New function cli-utils.c:extract_arg_const
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b5be8ce0
JB
12013-11-14 Pedro Alves <palves@redhat.com>
2 Joel Brobecker <brobecker@adacore.com>
3
4 * cli/cli-utils.h (extract_arg_const): Add declaration.
5 * cli/cli-utils.c (extract_arg_const): New function.
6 (extract_arg): Reimplement using extract_arg_const.
7
671afef6
JB
82013-11-14 Joel Brobecker <brobecker@adacore.com>
9
10 * language.h: Add "symtab.h" #include.
11
6c1b0f7b
DE
122013-11-13 Doug Evans <xdje42@gmail.com>
13
14 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
15 specific breakpoints, don't evaluate breakpoint condition if
16 different thread.
17
74921315
KS
182013-11-13 Keith Seitz <keiths@redhat.com>
19
248ace2e 20 PR c++/7935
74921315
KS
21 PR c++/10541
22 * cp-support.c (insepct_type): Add support for substituting
23 namespace aliases, too.
24 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
25 for DW_TAG_imported_declaration.
26 (add_partial_symbol): Likewise.
27 (process_die): Handle namespace aliases with
28 read_namespace_alias.
29 (die_needs_namespace): Add DW_TAG_imported_declaration.
30 (read_namespace_alias): New function.
31 (load_partial_dies): Load DW_TAG_imported_declaration, too.
32 (new_symbol_full): Handle DW_TAG_imported_declaration.
33
793156e6
KS
342013-11-13 Keith Seitz <keiths@redhat.com>
35
36 * p-exp.y (uptok): Make first parameter const.
37 (yylex): Make `tokstart' and `tokptr' const.
38 Don't copy the lexer input to a temporary buffer.
39 Make `p' const.
40 Remove const workaround for parse_escape.
41 Create a temporary buffer for a convenience variable instead
42 of doing in-place modification of the input.
43 If a match is found with a different case from the input,
44 do not change the input at all.
45 Use `tmp' to construct the resultant stoken instead of
46 `tokstart'.
47
c42bd95a
DE
482013-11-13 Doug Evans <xdje42@gmail.com>
49
50 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
51
93973826
JB
522013-11-13 Joel Brobecker <brobecker@adacore.com>
53
54 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
55 entry with "ada-exceptions".
56
846060df
JB
572013-11-13 Joel Brobecker <brobecker@adacore.com>
58
59 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
60 after re-initialization of OBJFILE's obstack.
61
5efd1b2b 622013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
63
64 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
65 bs->stop != 0 on entry. Update function comment. Simplify early
66 exit for frame mismatch. Reindent rest of function.
67
ee7615e1
AA
682013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
69
70 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
71 NULL.
72
8943b874
DE
732013-11-12 Doug Evans <dje@google.com>
74
75 Work around gold/15646.
76 * dwarf2read.c (read_index_from_section): Update comment.
77 (struct dw2_symtab_iterator): New member global_seen.
78 (dw2_symtab_iter_init): Initialize it.
79 (dw2_symtab_iter_next): Skip duplicate global symbols.
80 (dw2_expand_symtabs_matching): Ditto.
81
a8a9844d
JB
822013-11-12 Joel Brobecker <brobecker@adacore.com>
83
84 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
85 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
86 command.
87 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
88 (mi_cmd_info_ada_exceptions): New function.
89 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
90
778865d3
JB
912013-11-12 Joel Brobecker <brobecker@adacore.com>
92
93 * ada-lang.h: #include "vec.h".
94 (struct ada_exc_info): New.
95 (ada_exc_info): New typedef.
96 (DEF_VEC_O(ada_exc_info)): New vector.
97 (ada_exceptions_list): Add declaration.
98 * ada-lang.c (ada_is_exception_sym)
99 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
100 (sort_remove_dups_ada_exceptions_list)
101 (ada_exc_search_name_matches, ada_add_standard_exceptions)
102 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
103 (ada_exceptions_list_1, ada_exceptions_list)
104 (info_exceptions_command): New function.
105 (_initialize_ada_language): Add "info exception" command.
106
bc79de95
PM
1072013-11-11 Phil Muldoon <pmuldoon@redhat.com>
108
109 PR python/15629
110 * NEWS: Add linetable feature.
111 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
112 * python/py-linetable.c: New file.
113 * python/py-symtab.c (stpy_get_linetable): New function.
114 * python/python-internal.h (symtab_to_linetable_object): Declare.
115 (gdbpy_initialize_linetable): Ditto.
116 * python/python.c (_initialize_python): Call
117 gdbpy_initialize_linetable.
118
2df4d1d5
JB
1192013-11-11 Joel Brobecker <brobecker@adacore.com>
120
121 * ada-lang.c (create_ada_exception_catchpoint): Enhance
122 the documentation of fields "except_string" and "condition".
123 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
124 CONDITION on the heap before passing it to
125 create_ada_exception_catchpoint.
126 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
127 CONDITION.
128
99c1d451
TT
1292013-11-11 Tom Tromey <tromey@redhat.com>
130
131 * config.in, configure: Rebuild.
132 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
133
8ca5801b
JB
1342013-11-11 Joel Brobecker <brobecker@adacore.com>
135
136 * remote-sim.c (gdbsim_detach): Break declaration into
137 shorter lines. No code change.
138
7a06d430
EBM
1392013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
140
141 * remote-sim.c (gdbsim_detach): Fix prototype.
142
73be47f5
DE
1432013-11-08 Doug Evans <dje@google.com>
144
145 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
146 (create_debug_types_hash_table): Only print debugging messages for
147 each TU if dwarf2-read >= 2.
148 (process_queue): Ditto.
149 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
150 Update doc string.
151
a18d8f10
TT
1522013-11-08 Tom Tromey <tromey@redhat.com>
153
154 * configure: Rebuild.
155 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
156
9467110b
TT
1572013-11-08 Tom Tromey <tromey@redhat.com>
158
159 * configure, config.in: Rebuild.
160 * configure.ac: Remove unused configury.
161
69706679
TT
1622013-11-08 Tom Tromey <tromey@redhat.com>
163
164 * m32c-tdep.c: Use gdb_string.h.
165
9b4bea72
TT
1662013-11-08 Tom Tromey <tromey@redhat.com>
167
168 * configure, config.in: Rebuild.
169 * configure.ac: Remove all link.h-related checks.
170
3266f10b
TT
1712013-11-08 Tom Tromey <tromey@redhat.com>
172
173 * acinclude.m4: Include common.m4.
174 * common/common.m4: New file.
175 * configure, config.in: Rebuild.
176 * configure.ac: Use GDB_AC_COMMON.
177
db0fec5c
DE
1782013-11-08 Doug Evans <dje@google.com>
179
180 * NEWS: Mention that "set debug symtab-create" now accepts a
181 verbosity level.
182 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
183 to set the symtab's primary flag.
184 * jit.c (finalize_symtab): Ditto.
185 * mdebugread.c (psymtab_to_symtab_1): Ditto.
186 * symfile.c (allocate_symtab): Only print debugging messages for
187 symtab_create_debug levels 2 and higher.
188 * symtab.c (symtab_create_debug): Change type to unsigned int.
189 (set_symtab_primary): New function.
190 (_initialize_symtab): Change "set debug symtab-create" to a
191 zuinteger option.
192 * symtab.h (set_symtab_primary): Declare.
193 (symtab_create_debug): Update decl.
194
52554a0e
TT
1952013-11-08 Tom Tromey <tromey@redhat.com>
196
197 * aix-thread.c (aix_thread_detach): Update.
198 * corelow.c (core_detach): Update.
199 * darwin-nat.c (darwin_detach): Update.
200 * dec-thread.c (dec_thread_detach): Update.
201 * gnu-nat.c (gnu_detach): Update.
202 * go32-nat.c (go32_detach): Update.
203 * inf-ptrace.c (inf_ptrace_detach): Update.
204 * inf-ttrace.c (inf_ttrace_detach): Update.
205 * linux-fork.c (linux_fork_detach): Update.
206 * linux-fork.h (linux_fork_detach): Update.
207 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
208 local for const-correctness.
209 * linux-thread-db.c (thread_db_detach): Update.
210 * monitor.c (monitor_detach): Update.
211 * nto-procfs.c (procfs_detach): Update.
212 * procfs.c (procfs_detach): Update.
213 * record.c (record_detach): Update.
214 * record.h (record_detach): Update.
215 * remote-m32r-sdi.c (m32r_detach): Update.
216 * remote-mips.c (mips_detach): Update.
217 * remote-sim.c (gdbsim_detach): Update.
218 * remote.c (remote_detach_1, remote_detach)
219 (extended_remote_detach): Update.
220 * sol-thread.c (sol_thread_detach): Update.
221 * target.c (target_detach): Make "args" const.
222 (init_dummy_target): Update.
223 * target.h (struct target_ops) <to_detach>: Make argument const.
224 (target_detach): Likewise.
225 * windows-nat.c (windows_detach): Update.
226
204b5331
DE
2272013-11-07 Doug Evans <dje@google.com>
228
229 PR 11786
230 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
231 and align fields for PT_GNU_RELRO segments.
232
92e32e33
PM
2332013-11-07 Phil Muldoon <pmuldoon@redhat.com>
234
235 PR python/15747
236 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
237
f76c27b5
PM
2382013-11-07 Phil Muldoon <pmuldoon@redhat.com>
239
240 * NEWS: Document Python temporary breakpoint support.
241 * python/py-breakpoint.c (bppy_get_temporary): New function.
242 (bppy_init): New keyword: temporary. Parse it and set breakpoint
243 to temporary if True.
244
d52cd232
JM
2452013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
246
247 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
248 removed to allow analyzing unconditional branch instructions
249 with PC-relative offsets of zero.
250
fa4d0c40
YQ
2512013-11-07 Yao Qi <yao@codesourcery.com>
252
253 * mi/mi-cmd-var.c: Include "language.h".
254 (mi_cmd_var_info_expression): Get language name from
255 language_defn.
256 * varobj.c (varobj_language_string): Remove.
257 (variable_language): Remove declaration.
258 (languages): Remove.
259 (varobj_get_language): Change the type of return value.
260 (variable_language): Remove.
261 * varobj.h (enum varobj_languages): Remove.
262 (varobj_language_string): Remove declaration.
263 (varobj_get_language): Update declaration.
264
6abde28f
YQ
2652013-11-07 Yao Qi <yao@codesourcery.com>
266
267 * language.h (struct language_defn) <la_natural_name>: New
268 field.
269 * ada-lang.c (ada_language_defn): Initialize field
270 'la_natural_name'.
271 * c-lang.c (c_language_defn): Likewise.
272 (cplus_language_defn, asm_language_defn): Likewise.
273 * d-lang.c (d_language_defn): Likewise.
274 * f-lang.c (f_language_defn): Likewise.
275 * go-lang.c (go_language_defn): Likewise.
276 * jv-lang.c (java_language_defn): Likewise.
277 * language.c (unknown_language_defn ): Likewise.
278 (auto_language_defn): Likewise.
279 * m2-lang.c (m2_language_defn): Likewise.
280 * objc-lang.c (objc_language_defn): Likewise.
281 * opencl-lang.c (opencl_language_defn): Likewise.
282 * p-lang.c (pascal_language_defn): Likewise.
283
27cd387b
YQ
2842013-11-07 Yao Qi <yao@codesourcery.com>
285
286 * language.c (language_str): Return const char *.
287 (add_language): Add const to 'language_names'
288 * language.h (struct language_defn) <la_name>: Add const.
289 (language_str: Update declaration.
290
6682d959
AA
2912013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
292
293 * s390-linux-nat.c (s390_read_description): Consider the TE field
294 in the HWCAP for determining 'have_regset_tdb'.
295
b9502d3f
WN
2962013-11-06 Will Newton <will.newton@linaro.org>
297
298 PR gdb/12866
299 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
300 values. (read_partial_die): Likewise.
301
840da61a
MB
3022013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
303
304 PR cli/16122
305 * top.c (command_line_input): Unify interactivity tests to use
306 input_from_terminal_p.
307 * event-top.c (command_line_handler): Likewise.
308
7636ccf9
YQ
3092013-11-06 Yao Qi <yao@codesourcery.com>
310
311 * Makefile.in (check-perf): New target.
312
12b27276
WN
3132013-11-05 Will Newton <will.newton@linaro.org>
314
315 PR gdb/7670
316 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
317 (arm_print_float_info): Likewise.
318
67c059c2
AB
3192013-11-04 Anton Blanchard <anton@samba.org>
320
321 * target.c (memory_xfer_partial): Cap write to 4KB.
322
0569175e
TSD
3232013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
324
325 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
326 probe scan even when the arch provides no get_longjmp_target.
327
b18e90f5
PA
3282013-10-31 Pedro Alves <palves@redhat.com>
329
330 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
331 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
332 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
333 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
334 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
335 <bpstat handling>: If the bpstat chain wants the signal to be
336 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
337 GDB_SIGNAL_TRAP.
338
638aa5a1
AB
3392013-10-31 Andrew Burgess <aburgess@broadcom.com>
340
341 * breakpoint.c (update_watchpoint): Update error message and add
342 an additional error message.
343
0e5fae36
UW
3442013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
345
346 * s390-tdep.h: Rename to...
347 * s390-linux-tdep.h: ...here.
348 * s390-tdep.c: Rename to...
349 * s390-linux-tdep.c: ...here. Adjust #include.
350 * s390-nat.c: Rename to...
351 * s390-linux-nat.c: ...here. Adjust #include.
352 * config/s390/s390.mh: Rename to...
353 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
354 s390-linux-nat.o.
355 * configure.host: Reflect host rename "s390" -> "linux".
356 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
357 * Makefile.in (ALL_TARGET_OBS): Likewise.
358 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
359 s390-linux-tdep.h.
360 (ALLDEPFILES): Reflect rename of .c files.
361
34201ae3
UW
3622013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
363
364 * s390-nat.c: Whitespace cleanup.
365 * s390-tdep.c: Likewise.
366 * s390-tdep.h: Remove empty line at end of file.
367
e17aaa33
MR
3682013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
369
370 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
371 siginfo_size.
372
aee17e42
TT
3732013-10-29 Tom Tromey <tromey@redhat.com>
374
375 * utils.c (reg): Move undefinition...
376 * gdb_curses.h: ... here. Update comment to mention AIX.
377
9ac69859
NB
3782013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
379
380 * exec.h (add_target_sections_of_objfile): New declaration.
381 * exec.c (add_target_sections_of_objfile): New function.
382 * symfile.c (add_symbol_file_command): Update current target sections.
383 (remove_symbol_file_command): New command.
384 (symfile_free_objfile): New function.
385 (_initialize_symfile): Register observer for free_objfile events.
386 * NEWS: Add description of the remove-symbol-file command.
387 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
388 * objfiles.c (free_objfile): Notify free_objfile.
389 (is_addr_in_objfile): New function.
390 * objfiles.h (is_addr_in_objfile): New declaration.
391 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
392 events instead of solib_unloaded events.
393 (_initialize_printcmd): Register observer for free_objfile instead
394 of solib_unloaded notifications.
395 * solib.c (remove_user_added_objfile): New function.
396 (_initialize_symfile): Add remove-symbol-file.
397
f69d9aef
AB
3982013-10-29 Andrew Burgess <aburgess@broadcom.com>
399
400 * infcmd.c (default_print_one_register_info): Use val_print to
401 print all values even optimized out or unavailable ones. Don't
402 try to print a raw form of optimized out or unavailable values.
403
487ad57c
YQ
4042013-10-29 Yao Qi <yao@codesourcery.com>
405
406 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
407 parameter 'arg' instead of from program_space_data.
408 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
409 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
410 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
411 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
412 * inflow.c (inflow_inferior_data_cleanup): Get data from
413 parameter 'arg' instead of inferior_data.
414 * registry.h: Add comments.
415
3c4797ba
PA
4162013-10-28 Pedro Alves <palves@redhat.com>
417
418 * breakpoint.c (watchpoints_triggered)
419 <!target_stopped_data_address>: Hardcode return 1.
420
cdaa5b73
PA
4212013-10-28 Pedro Alves <palves@redhat.com>
422
423 * infrun.c (process_event_stop_test): Remove unnecessary scoping
424 level and reindent.
425
94c57d6a
PA
4262013-10-28 Pedro Alves <palves@redhat.com>
427
428 * infrun.c (process_event_stop_test): New function, factored out
429 from handle_inferior_event.
430 (handle_inferior_event): 'process_event_stop_test' is now a
431 function instead of a goto label -- adjust.
432
fcf3daef
PA
4332013-10-28 Pedro Alves <palves@redhat.com>
434
435 * infrun.c (handle_inferior_event): Move process_event_stop_test
436 goto label to the else branch of the ecs->random_signal check,
437 along with FRAME and GDBARCH re-fetching.
438
c447ac0b
PA
4392013-10-28 Pedro Alves <palves@redhat.com>
440
441 * infrun.c (switch_back_to_stepped_thread): New function, factored
442 out from handle_inferior_event.
443 (handle_inferior_event): Adjust to call
444 switch_back_to_stepped_thread. Call it also at the tail of the
445 random signal handling, and return, instead of also handling
446 random signals just before the stepping tests.
447
f05e4c11
PA
4482013-10-28 Pedro Alves <palves@redhat.com>
449
450 * infrun.c (clear_stop_func): Delete.
451 (handle_inferior_event): Don't call clear_stop_func and don't
452 clear 'ecs->random_signal'.
453
ca20d462
YQ
4542013-10-27 Yao Qi <yao@codesourcery.com>
455
456 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
457 (varobj_create, varobj_get_path_expr): Update.
458 (varobj_value_has_mutated, varobj_update): Likewise.
459 (create_child_with_value, new_root_variable): Likewise.
460 (number_of_children, name_of_variable): Likewise.
461 (value_of_child, my_value_of_variable): Likewise.
462 (varobj_value_is_changeable_p): Likewise.
463
a53b64ea
YQ
4642013-10-25 Yao Qi <yao@codesourcery.com>
465
466 * language.h (struct lang_varobj_ops): Declare.
467 (struct language_defn) <la_varobj_ops>: New field.
468 * ada-lang.c: Include "varobj.h"
469 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
470 ada_varobj_ops.
471 * c-lang.c: Include "varobj.h"
472 (c_language_defn): Initialize field 'la_varobj_ops' with
473 c_varobj_ops.
474 (cplus_language_defn): Initialize field 'la_varobj_ops' with
475 cplus_varobj_ops.
476 (asm_language_defn): Initialize field 'la_varobj_ops' with
477 default_varobj_ops.
478 (minimal_language_defn): Likewise.
479 * d-lang.c (d_language_defn): Likewise.
480 * f-lang.c (f_language_defn): Likewise.
481 * go-lang.c (go_language_defn): Likewise.
482 * m2-lang.c (m2_language_defn): Likewise.
483 * objc-lang.c (objc_language_defn): Likewise.
484 * opencl-lang.c (opencl_language_defn): Likewise.
485 * p-lang.c (pascal_language_defn): Likewise.
486 * language.c (unknown_language_defn): Likewise.
487 (auto_language_defn): Likewise.
488 (local_language_defn): Likewise.
489 * jv-lang.c (java_language_defn): Initialize field
490 'la_varobj_ops' with java_varobj_ops.
491 * varobj.c (varobj_create): Update.
492 * varobj.h (default_varobj_ops): Define macro.
493
686d4def
PA
4942013-10-25 Pedro Alves <palves@redhat.com>
495
496 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
497 static field value.
498 (cp_print_static_field): If the value is entirely optimized out,
499 print <optimized out> here.
500 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
501 static field value.
502 * p-valprint.c (pascal_object_print_static_field): If the value is
503 entirely optimized out, print <optimized out> here.
504 * valops.c (do_search_struct_field)
505 (value_struct_elt_for_reference): No longer handle a NULL static
506 field value.
507 * value.c (value_static_field): Return an optimized out value
508 instead of NULL.
509
6c177e28
YQ
5102013-10-25 Yao Qi <yao@codesourcery.com>
511
512 * remote.c (remote_traceframe_info): Return early if
513 traceframe is not selected.
514
98322bfa
YQ
5152013-10-25 Yao Qi <yao@codesourcery.com>
516
517 * tracepoint.c (traceframe_fun): Remove.
518 (traceframe_sal): Remove.
519 (set_traceframe_context): Add local variables.
520
6ba1f115
JB
5212013-10-25 Joel Brobecker <brobecker@adacore.com>
522
523 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
524 and parameter name.
525
bbe769cc
MR
5262013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
527
528 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
529 failure from register information collection.
530
72ee4495 5312013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
532
533 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
534 member.
535 (linux_corefile_thread_callback): Update accordingly.
536 (linux_make_corefile_notes): Likewise.
537
98882a26
PA
5382013-10-24 Pedro Alves <palves@redhat.com>
539
540 * NEWS (New options): Mention set/show startup-with-shell.
541 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
542 instead of 3.
543 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
544 startup-with-shell'.
545 (show_startup_with_shell): New function.
546 (_initialize_fork_child): Register the set/show startup-with-shell
547 commands.
548 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
549 * inf-ttrace.c (inf_ttrace_him): Remove comment.
550 * procfs.c (procfs_init_inferior): Remove comment.
551 * infcmd.c (startup_with_shell): New global.
552 * inferior.h (startup_with_shell): Declare global.
553 (STARTUP_WITH_SHELL): Delete.
554 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
555
c9737c08
PA
5562013-10-23 Pedro Alves <palves@redhat.com>
557
558 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
559 * common/signals.c: Include "gdb_assert.h".
560 (signals): New field 'symbol'.
561 (SET): Use the 'symbol' parameter.
562 (gdb_signal_to_symbol_string): New function.
563 * infrun.c (handle_inferior_event) <random signal>: In debug
564 output, print the random signal enum as string in addition to its
565 number.
566 * target/waitstatus.c (target_waitstatus_to_string): Print the
567 signal's enum value as string instead of the (POSIX) signal name.
568
f60db4f0
GB
5692013-10-23 Gary Benson <gbenson@redhat.com>
570
571 PR 16013
572 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
573 from 32 to 18. Adjusted fscanf format string accordingly.
574 (Avoids leaving cmd unterminated.)
575 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
576 trun, retn or extra. (Avoids leaving extra unterminated.) Check
577 that local_address and remote_address will not overflow.
578 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
579 leaving dependencies unterminated. Parse size as "%u" to match
580 definition.
581
6d3e7a94
PA
5822013-10-22 Pedro Alves <palves@redhat.com>
583
584 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
585 set ecs->random signal.
586
42ec045f
PA
5872013-10-22 Pedro Alves <palves@redhat.com>
588
589 * infrun.c (keep_going): Update comments.
590
5912013-10-22 Pedro Alves <palves@redhat.com>
592
593 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
594 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
595
5962013-10-22 Pedro Alves <palves@redhat.com>
597
598 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
599 GDB_EXC_BAD_ACCESS.
600 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
601 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
602 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
603 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
604 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
605 (GDB_SIGNAL_LAST): Change description string.
606 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
607 Adjust to signal renaming.
608 * darwin-nat.c (darwin_decode_message): Likewise.
609
c8fde1b1
JM
6102013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
611
612 * MAINTAINERS (Write After Approval): Add myself to the list.
613
e8369a73
AB
6142013-10-18 Andrew Burgess <aburgess@broadcom.com>
615
616 * breakpoint.c (update_watchpoint): If hardware watchpoints are
617 forced off, downgrade them to software watchpoints if possible,
618 and error out if not possible.
619 (watch_command_1): Move watchpoint type selection closer to
620 watchpoint creation, and extend the comments.
621
776f04fa
PA
6222013-10-18 Pedro Alves <palves@redhat.com>
623
624 PR gdb/16062
625 * infrun.c (handle_inferior_event): Keep going if we got a random
626 signal we should not stop for, instead of falling through to the
627 step tests.
628
0c6faab5
YQ
6292013-10-18 Yao Qi <yao@codesourcery.com>
630
631 * c-varobj.c (cplus_number_of_children): Fix indentation.
632
50b34a18
TT
6332013-10-17 Tom Tromey <tromey@redhat.com>
634
635 PR gdb/15995:
636 * printcmd.c (printcmd): Call gdb_flush.
637
5c4c8a59
TT
6382013-10-17 Tom Tromey <tromey@redhat.com>
639
640 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
641 (elf_locate_sections): Update.
642
c4124bf1
YQ
6432013-10-17 Yao Qi <yao@codesourcery.com>
644
645 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
646 * ada-varobj.c: Remove the include of ada-varobj.h.
647 (ada_varobj_get_number_of_children): Declare.
648 (ada_varobj_get_name_of_child): Make it static.
649 (ada_varobj_get_path_expr_of_child): Likewise.
650 (ada_varobj_get_value_of_child): Likewise.
651 (ada_varobj_get_type_of_child): Likewise.
652 (ada_varobj_get_value_of_array_variable): Likewise.
653 * ada-varobj.h: Remove.
654
99ad9427
YQ
6552013-10-17 Yao Qi <yao@codesourcery.com>
656
657 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
658 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
659 * ada-varobj.c: Include "varobj.h".
660 (ada_number_of_children): New. Moved from varobj.c.
661 (ada_name_of_variable, ada_name_of_child): Likewise.
662 (ada_path_expr_of_child, ada_value_of_child): Likewise.
663 (ada_type_of_child, ada_value_of_variable): Likewise.
664 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
665 (ada_varobj_ops): New.
666 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
667 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
668 * gdbtypes.h (get_target_type): Declare.
669 * varobj.c: Remove the inclusion of "ada-varobj.h" and
670 "ada-lang.h".
671 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
672 (ANONYMOUS_UNION_NAME): Likewise.
673 (get_type, get_value_type, get_target_type): Remove declarations.
674 (value_get_print_value, varobj_value_get_print_value): Likewise.
675 (c_number_of_children, c_name_of_variable): Likewise.
676 (c_name_of_child, c_path_expr_of_child): Likewise.
677 (c_value_of_child, c_type_of_child): Likewise.
678 (c_value_of_variable, cplus_number_of_children): Likewise.
679 (cplus_class_num_children, cplus_name_of_variable): Likewise.
680 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
681 (cplus_value_of_child, cplus_type_of_child): Likewise.
682 (cplus_value_of_variable, java_number_of_children): Likewise.
683 (java_name_of_variable, java_name_of_child): Likewise.
684 (java_path_expr_of_child, java_value_of_child): Likewise.
685 (java_type_of_child, java_value_of_variable): Likewise.
686 (ada_number_of_children, ada_name_of_variable): Likewise.
687 (ada_name_of_child, ada_path_expr_of_child): Likewise.
688 (ada_value_of_child, ada_type_of_child): Likewise.
689 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
690 (ada_value_has_mutated): Likewise.
691 (struct language_specific): Move it to varobj.h.
692 (CPLUS_FAKE_CHILD): Move it to varobj.h.
693 (restrict_range): Rename it varobj_restrict_range. Make it extern.
694 Callers update.
695 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
696 Make it extern.
697 (is_anonymous_child): Move it to c-varobj.c and rename to
698 varobj_is_anonymous_child. Caller update.
699 (get_type): Move it to c-varobj.c.
700 (get_value_type): Rename it varobj_get_value_type. Make it
701 extern.
702 (get_target_type): Move it gdbtypes.c.
703 (varobj_formatted_print_options): New function.
704 (value_get_print_value): Rename it to
705 varobj_value_get_print_value and make it extern.
706 (varobj_value_is_changeable_p): Make it extern.
707 (adjust_value_for_child_access): Move it to c-varobj.c.
708 (default_value_is_changeable_p): Rename it to
709 varobj_default_value_is_changeable_p. Make it extern.
710 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
711 (c_name_of_child, c_path_expr_of_child): Likewise.
712 (c_value_of_child, c_type_of_child): Likewise.
713 (c_value_of_variable, cplus_number_of_children): Likewise.
714 (cplus_class_num_children, cplus_name_of_variable): Likewise.
715 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
716 (cplus_value_of_child, cplus_type_of_child): Likewise.
717 (cplus_value_of_variable): Likewise.
718 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
719 (java_name_of_child, java_path_expr_of_child): Likewise.
720 (java_value_of_child, java_type_of_child): Likewise.
721 (java_value_of_variable): Likewise.
722 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
723 (ada_name_of_child, ada_path_expr_of_child): Likewise.
724 (ada_value_of_child, ada_type_of_child): Likewise.
725 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
726 (ada_value_has_mutated): Likewise.
727 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
728 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
729 (c_varobj_ops, cplus_varobj_ops): Declare.
730 (java_varobj_ops, ada_varobj_ops): Declare.
731 (varobj_default_value_is_changeable_p): Declare.
732 (varobj_value_is_changeable_p): Declare.
733 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
734 (varobj_get_path_expr_parent): Declare.
735 (varobj_value_get_print_value): Declare.
736 (varobj_formatted_print_options): Declare.
737 (varobj_restrict_range): Declare.
738
c8a62302
LM
7392013-10-17 Luis Machado <lgustavo@codesourcery.com>
740
741 * target/waitstatus.h (target_waitkind): Remove spurious
742 character from the comments.
743
eade6471
JB
7442013-10-17 Joel Brobecker <brobecker@adacore.com>
745
746 * gdbarch.sh (get_longjmp_target): Add method documentation.
747 * gdbarch.h: Regenerate.
748
5411b26c
TT
7492013-10-16 Tom Tromey <tromey@redhat.com>
750
751 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
752 label.
753
87326c87
LM
7542013-10-16 Luis Machado <lgustavo@codesourcery.com>
755
756 * gcore.in: Call GDB using the full path to the gcore script.
757 Error out if the GDB binary is not found.
758
fd0a4d76
SDJ
7592013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
760
761 PR gdb/16014
762 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
763 sizeof.
764
d92f7ee3
SDJ
7652013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
766
767 PR gdb/16042
768 * target.c (target_disable_btrace): Fix invalid return value for
769 void function.
770 (target_teardown_btrace): Likewise.
771
bb5ce47a
YQ
7722013-10-14 Yao Qi <yao@codesourcery.com>
773
774 * varobj.c (struct varobj): Move most of the fields to
775 varobj.h.
776 (struct varobj_dynamic): New struct.
777 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
778 (varobj_has_more): Likewise.
779 (dynamic_varobj_has_child_method): Likewise.
780 (update_dynamic_varobj_children): Likewise.
781 (varobj_get_num_children): Likewise.
782 (varobj_list_children, varobj_pretty_printed_p): Likewise.
783 (install_new_value_visualizer): Likewise.
784 (install_new_value_visualizer, install_new_value): Likewise.
785 (varobj_update, new_variable, free_variable): Likewise.
786 (my_value_of_variable, value_get_print_value): Likewise.
787 (install_visualizer): Change the type of parameter 'var' to
788 'struct varobjd_dynamic *'. Callers update.
789 * varobj.h (struct varobj): Moved from varobj.c.
790 (struct varobj) <dynamic>: New field.
791
0b76b0ce
SL
7922013-10-13 Sandra Loosemore <sandra@codesourcery.com>
793
794 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
795 as the preferred name of r30.
796 * nios2-linux-tdep.c (reg_offsets): Likewise.
797 * features/nios2-cpu.xml: Likewise.
798 * features/nios2-linux.c: Regenerated.
799 * features/nios2.c: Regenerated.
800 * regformats/nios2-linux.dat: Regenerated.
801
4856b6bc
JK
8022013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
803
804 Canonicalize directories for EXEC_FILENAME.
805 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
806 exec_filename.
807 * utils.c (gdb_realpath_keepfile): New function.
808 * utils.h (gdb_realpath_keepfile): New declaration.
809
9b557b58
DE
8102013-10-11 Doug Evans <dje@google.com>
811
812 * Makefile.in (GDBFLAGS): New variable.
813 (run): New rule.
814
ce13fade
JB
8152013-10-11 Joel Brobecker <brobecker@adacore.com>
816
817 * NEWS: Add entry documenting the new "-catch-assert" and
818 "-catch-exception" GDB/MI commands.
819
349774ef
JB
8202013-10-11 Joel Brobecker <brobecker@adacore.com>
821
822 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
823 "enabled".
824 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
825 "enabled". Set B->ENABLE_STATE accordingly.
826 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
827 ada-lang.c.
828 (create_ada_exception_catchpoint): Add declaration.
829 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
830 (create_ada_exception_catchpoint): Make non-static. Add new
831 parameter "disabled". Use it in call to
832 init_ada_exception_breakpoint.
833 (catch_ada_exception_command): Add parameter "enabled" in call
834 to create_ada_exception_catchpoint.
835 (catch_assert_command): Likewise.
836
837 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
838 Add declarations.
839 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
840 "catch-exception" commands.
841 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
842 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
843
761269c8
JB
8442013-10-11 Joel Brobecker <brobecker@adacore.com>
845
846 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
847 "enum exception_catchpoint_kind". Replace the "ex_" prefix
848 of all its enumerates with "ada_". Update the rest of this
849 file throughout.
850
b4a5b78b
JB
8512013-10-11 Joel Brobecker <brobecker@adacore.com>
852
853 * ada-lang.c (ada_decode_exception_location): Delete.
854 (create_ada_exception_catchpoint): Remove arguments "sal",
855 "addr_string" and "ops". Add argument "ex_kind" instead.
856 Adjust implementation accordingly, calling ada_exception_sal
857 to get the entities it no longer gets passed as arguments.
858 Document the function's arguments.
859 (catch_ada_exception_command): Use catch_ada_exception_command_split
860 instead of ada_decode_exception_location, and update call to
861 create_ada_exception_catchpoint.
862 (catch_ada_assert_command_split): Renames
863 ada_decode_assert_location. Remove parameters "addr_string" and
864 "ops", and now returns void. Adjust implementation accordingly.
865 Update the function documentation.
866 (catch_assert_command): Use catch_ada_assert_command_split
867 instead of ada_decode_assert_location. Update call to
868 create_ada_exception_catchpoint.
869
7ad1d32c 8702013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
871
872 * utils.h (perror_warning_with_name): Add declaration.
873 * utils.c (perror_warning_with_name): New function.
874 * cli/cli-cmds.c (source_script_with_search): Add call to
875 perror_warning_with_name if from_tty is nul.
876
7ad1d32c 8772013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
878
879 * utils.c (perror_string): New function, extracted out of
880 throw_perror_with_name.
881 (throw_perror_with_name): Rework to use perror_string.
882
bcc75809
YQ
8832013-10-11 Yao Qi <yao@codesourcery.com>
884
885 * remote.c (discard_pending_stop_replies_in_queue): Update
886 declaration.
887 (struct stop_reply) <rs>: New field.
888 (remove_stop_reply_of_remote_state): New function.
889 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
890 Callers update. Pass remove_stop_reply_of_remote_state to
891 QUEUE_iterate.
892 (remote_parse_stop_reply): Initialize field 'rs'.
893
05feb193
WN
8942013-10-10 Will Newton <will.newton@linaro.org>
895
896 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
897 linux_init_abi.
898
0d12017b
JB
8992013-10-10 Joel Brobecker <brobecker@adacore.com>
900
901 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
902 serial_baud_show_cmd.
903 (_initialize_cli_cmds): Delete the code creating the
904 "set/show remotebaud" commands.
905 * serial.c (baud_rate): Move here from top.c.
906 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
907 (_initialize_serial): Create "set/show serial baud" commands.
908 Add "set/show remotebaud" command aliases.
909 * top.c (baud_rate): Moved to serial.c.
910 * NEWS: Document the new "set/show serial baud" commands,
911 replacing "set/show remotebaud".
912
578d3588
PA
9132013-10-09 Pedro Alves <palves@redhat.com>
914
915 * breakpoint.c (insert_bp_location): Use memory_error_message to
916 build the memory error string.
917 * c-lang.c: Include "gdbcore.h".
918 (c_get_string): Use memory_error to throw error.
919 (target_xfer_memory_error): Delete.
920 (memory_error_message): New, factored out from
921 target_xfer_memory_error.
922 (memory_error): Change parameter type to target_xfer_error.
923 Rewrite.
924 (read_memory): Use memory_error instead of
925 target_xfer_memory_error.
926 * gdbcore.h: Include "target.h".
927 (memory_error): Change parameter type to target_xfer_error.
928 (memory_error_message): Declare function.
929 * target.c (target_read_memory, target_read_stack)
930 (target_write_memory, target_write_raw_memory): Return
931 TARGET_XFER_E_IO on error. Adjust comments.
932 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
933 instead of EIO.
934 * target.h (target_read, target_insert_breakpoint)
935 (target_remove_breakpoint): Adjust comments.
936 * valprint.c (partial_memory_read): Rename parameter, and adjust
937 comment.
938 (val_print_string): Use memory_error_message to build the memory
939 error string.
940
c74e1ccf
JK
9412013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
942
943 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
944 result variable. Rename variable fopen_e_ever_failed to
945 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
946
915215be
PA
9472013-10-09 Pedro Alves <palves@redhat.com>
948
949 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
950 (monitor_write_memory_longlongs, monitor_write_memory_block):
951 Constify 'myaddr' parameter.
952 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
953 helper.
954 (monitor_xfer_partial): New function.
955 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
956 hook. Install a to_xfer_partial hook.
957
acd13123
TT
9582013-10-09 Tom Tromey <tromey@redhat.com>
959
960 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
961 bfd_get_alt_debug_link_info.
962
40135bb1
JK
9632013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
964
965 New flag OBJF_NOT_FILENAME.
966 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
967 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
968 allocate_objfile.
969 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
970 symbol_file_add_from_bfd.
971 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
972 allocate_objfile.
973 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
974 NULL.
975 * objfiles.h (OBJF_NOT_FILENAME): New.
976
dc294be5
TT
9772013-10-08 Tom Tromey <tromey@redhat.com>
978
979 * Makefile.in (SFILES): Add build-id.c.
980 (HFILES_NO_SRCDIR): Add build-id.h.
981 * build-id.c: New file, largely from elfread.c. Modified
982 most functions.
983 * build-id.h: New file.
984 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
985 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
986 Search for dwz file using build-id.
987 * elfread.c (build_id_bfd_get, build_id_verify)
988 (build_id_to_debug_filename, find_separate_debug_file): Remove.
989
db230ce3
JB
9902013-10-08 Joel Brobecker <brobecker@adacore.com>
991
992 * ada-lang.c (compare_names_with_case): Renamed from
993 compare_names, adding a new parameter "casing" and its handling.
994 New function documentation.
995 (compare_names): New function, implemented using
996 compare_names_with_case.
997
6501c98a
JB
9982013-10-08 Joel Brobecker <brobecker@adacore.com>
999
1000 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1001
84a1243b
TT
10022013-10-07 Tom Tromey <tromey@redhat.com>
1003
1004 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1005 demangled_names_hash.
1006 (free_objfile): Don't delete the demangled_names_hash.
1007 * objfiles.h (struct objfile_per_bfd_storage)
1008 <demangled_names_hash>: New field.
1009 (struct objfile) <demangled_names_hash>: Move to
1010 objfile_per_bfd_storage.
1011 * symfile.c (reread_symbols): Don't delete the
1012 demangled_names_hash.
1013 * symtab.c (create_demangled_names_hash): Update.
1014 (symbol_set_names): Update.
1015
1da77581
TT
10162013-10-07 Tom Tromey <tromey@redhat.com>
1017
1018 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1019 needs_relocations>: New fields.
1020 (gdb_bfd_requires_relocations): New function.
1021 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1022 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1023 the BFD needs relocations applied.
1024
46ecd527
PA
10252013-10-07 Pedro Alves <palves@redhat.com>
1026
1027 PR breakpoints/11568
1028 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1029 the thread list" instead of "gone".
1030
0c557179
SDJ
10312013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1032
1033 * NEWS: Mention new convenience variable $_exitsignal.
1034 * corelow.c (core_open): Reset exit convenience variables. Set
1035 $_exitsignal to the uncaught signal which generated the corefile.
1036 * infrun.c (handle_inferior_event): Reset exit convenience
1037 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1038 (clear_exit_convenience_vars): New function.
1039 * inferior.h (clear_exit_convenience_vars): New prototype.
1040
1cc47d81
YQ
10412013-10-06 Yao Qi <yao@codesourcery.com>
1042
1043 * varobj.h: Add comments to enum varobj_languages.
1044
73869dc2
DE
10452013-10-04 Doug Evans <dje@google.com>
1046
1047 Add support for DWP file format version 2.
1048 * NEWS: Mention support for DWP file format version 2.
1049 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1050 union of asection, containing_section. New fields virtual_offset
1051 and is_virtual. Change type of readin filed from int to char.
1052 (dwo_sections, dwo_file): Tweak comments.
1053 (dwp_v2_section_ids): New enum.
1054 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1055 str_offsets, types.
1056 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1057 All uses updated.
1058 (virtual_v2_dwo_sections): New struct.
1059 (dwp_hash_table): New fields version, nr_columns. Change type of
1060 section_pool field to a union.
1061 (dwp_file): New field version.
1062 (dwarf2_has_info): Check for virtual sections.
1063 (get_containing_section): New function.
1064 (get_section_bfd_owner, get_section_bfd_section): Call it.
1065 (dwarf2_locate_sections): Update.
1066 (dwarf2_section_empty_p): Update.
1067 (dwarf2_read_section): Handle virtual sections.
1068 (locate_dwz_sections): Update.
1069 (create_dwp_hash_table): Document and handle V2 format.
1070 (locate_v1_virtual_dwo_sections): Renamed from
1071 locate_virtual_dwo_sections and update. All callers updated.
1072 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1073 Delete arg htab. Rename arg section_index to unit_index.
1074 All callers updated.
1075 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1076 All uses updated.
1077 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1078 (lookup_dwo_unit_in_dwp): Add V2 support.
1079 (dwarf2_locate_dwo_sections): Update.
1080 (dwarf2_locate_common_dwp_sections): Renamed from
1081 dwarf2_locate_dwp_sections and update. All callers updated.
1082 (dwarf2_locate_v2_dwp_sections): New function.
1083 (open_and_init_dwp_file): Add V2 support.
1084 (read_str_index): New locals str_section, str_offsets_section.
1085
9a2c3737
PA
10862013-10-04 Pedro Alves <palves@redhat.com>
1087
1088 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1089 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1090 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1091 describing comments with references to ptid.h.
1092 * common/ptid.h: Remove intro description of constructors,
1093 accessors and predicates.
1094 (struct ptid): Reformat.
1095 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1096 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1097 describing comments.
1098
f5371440
JB
10992013-10-04 Joel Brobecker <brobecker@adacore.com>
1100
1101 * aix-thread.c (sync_threadlists): Add missing ')' in call
1102 to ptid_build.
1103
793e1c06
JB
11042013-10-04 Joel Brobecker <brobecker@adacore.com>
1105
1106 * procfs.c (procfs_init_inferior): Fix typo causing the build
1107 to fail.
1108
26f0edc1
JB
11092013-10-04 Joel Brobecker <brobecker@adacore.com>
1110
1111 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1112
5713b9b5
JB
11132013-10-04 Joel Brobecker <brobecker@adacore.com>
1114
1115 * mi/mi-main.c (run_one_inferior): Add function description.
1116 Make ARG a pointer to an integer whose value determines whether
1117 we should "run" or "start" the program.
1118 (mi_cmd_exec_run): Add handling of the "--start" option.
1119 Reject all other command-line options.
1120 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1121
f48ff2a7
YQ
11222013-10-04 Yao Qi <yao@codesourcery.com>
1123
1124 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1125 (struct notif_client) <pending_event>: Moved
1126 to struct remote_notif_state.
1127 <id>: New field.
1128 (struct remote_notif_state) <pending_event>: New field.
1129 (notif_event_xfree): Declare.
1130 * remote-notif.c (handle_notification): Adjust.
1131 (notif_event_xfree): New function.
1132 (do_notif_event_xfree): Call notif_event_xfree.
1133 (remote_notif_state_xfree): Call notif_event_xfree to free
1134 each element in field pending_event.
1135 * remote.c (discard_pending_stop_replies): Remove declaration.
1136 (discard_pending_stop_replies_in_queue): Declare.
1137 (remote_close): Call discard_pending_stop_replies_in_queue
1138 instead of discard_pending_stop_replies.
1139 (remote_start_remote): Adjust.
1140 (stop_reply_xfree): Call notif_event_xfree.
1141 (notif_client_stop): Adjust initialization.
1142 (remote_notif_remove_all): Rename it to ...
1143 (remove_stop_reply_for_inferior): ... this. Update comments.
1144 Don't check INF is NULL.
1145 (discard_pending_stop_replies): Return early if notif_state is
1146 NULL. Adjust. Don't check INF is NULL.
1147 (remote_notif_get_pending_events): Adjust.
1148 (discard_pending_stop_replies_in_queue): New function.
1149 (remote_wait_ns): Likewise.
1150
5965e028
YQ
11512013-10-04 Yao Qi <yao@codesourcery.com>
1152
1153 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1154 (notif_queue): Remove.
1155 (remote_notif_process): Add one parameter 'notif_queue'.
1156 Update comments. Callers update.
1157 (remote_async_get_pending_events_token): Remove.
1158 (remote_notif_register_async_event_handler): Remove.
1159 (remote_notif_unregister_async_event_handler): Remove.
1160 (handle_notification): Add parameter 'notif_queue'. Update
1161 comments. Callers update.
1162 (notif_xfree): Remove.
1163 (remote_notif_state_allocate): New function.
1164 (remote_notif_state_xfree): New function.
1165 (_initialize_notif): Remove code to allocate queue.
1166 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1167 (struct remote_notif_state): New.
1168 (handle_notification): Update declaration.
1169 (remote_notif_process): Likewise.
1170 (remote_notif_register_async_event_handler): Remove.
1171 (remote_notif_unregister_async_event_handler): Remove.
1172 (remote_notif_state_allocate): Declare.
1173 (remote_notif_state_xfree): Declare.
1174 * remote.c (struct remote_state) <notif_state>: New field.
1175 (remote_close): Don't call
1176 remote_notif_unregister_async_event_handler. Call
1177 remote_notif_state_xfree.
1178 (remote_open_1): Don't call
1179 remote_notif_register_async_event_handler. Call
1180 remote_notif_state_allocate.
1181
5e5ac9a5
YQ
11822013-10-04 Yao Qi <yao@codesourcery.com>
1183
1184 * varobj.c (create_child_with_value): Remove 'const' from the
1185 type of parameter 'name'.
1186 (varobj_add_child): Likewise.
1187 (install_dynamic_child): Remove 'const' from the type of
1188 parameter 'name'.
1189 (varobj_add_child): Likewise.
1190 (create_child_with_value): Likewise. Update comments. Don't
1191 duplicate 'name'.
1192 (update_dynamic_varobj_children): Duplicate 'name'
1193 and pass it to install_dynamic_child.
1194
06ab7b19
PM
11952013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1196
1197 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1198 conversion logic to occur after PyLong_Check. Comment on order
1199 change significance.
1200 * python/py-arch.c (archpy_disassemble): Comment on order of
1201 conversion for integers and longs.
1202
8ae377e8
PA
12032013-10-03 Pedro Alves <palves@redhat.com>
1204
1205 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1206 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1207 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1208 PTRACE_O_TRACEFORK is not supported.
1209 (linux_test_for_tracesysgood): New function.
1210 (linux_test_for_tracefork): New function, factored out from
1211 linux_check_ptrace_features, and also don't kill child_pid here.
1212
b1328b1b
TG
12132013-10-03 Tristan Gingold <gingold@adacore.com>
1214
1215 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1216 Remove verbose error reporting. Use detected state to
1217 thread_set_state call.
1218 (i386_darwin_dr_get): Fix return type. Remove verbose error
1219 report.
1220 Remove trailing spaces.
1221
901461f8
PA
12222013-10-02 Pedro Alves <palves@redhat.com>
1223
1224 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1225 val_print_optimized_out.
1226 * jv-valprint.c (java_print_value_fields): Likewise.
1227 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1228 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1229 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1230 new optimized out value.
1231 * findvar.c (address_from_register): Likewise.
1232 * frame.c (put_frame_register): Tweak error string to say the
1233 register was not saved, rather than optimized out.
1234 * infcmd.c (default_print_one_register_info): Adjust call to
1235 val_print_optimized_out. Use value_of_register instead of
1236 get_frame_register_value.
1237 * mi/mi-main.c (output_register): Use value_of_register instead of
1238 get_frame_register_value.
1239 * valprint.c (valprint_check_validity): Likewise.
1240 (val_print_optimized_out): New value parameter. If the value is
1241 lval_register, print <not saved> instead.
1242 (value_check_printable, val_print_scalar_formatted): Adjust calls
1243 to val_print_optimized_out.
1244 * valprint.h (val_print_optimized_out): New value parameter.
1245 * value.c (struct value) <optimized_out>: Extend comment.
1246 (error_value_optimized_out): New function.
1247 (require_not_optimized_out): Use it. Use a different string for
1248 lval_register values.
1249 * value.h (error_value_optimized_out): New declaration.
1250 * NEWS: Mention <not saved>.
1251
042a84d9
JB
12522013-10-02 Joel Brobecker <brobecker@adacore.com>
1253
1254 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1255 strcmp to compare two symtab filenames.
1256
6b9780fb
JB
12572013-10-02 Joel Brobecker <brobecker@adacore.com>
1258
1259 * symtab.c (search_symbols_equal): Delete.
1260 (sort_search_symbols_remove_dups): Replace call to
1261 search_symbols_equal by call to compare_search_syms,
1262 adjusting as necessary.
1263
751e7549
PM
12642013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1265
1266 PR python/15579
751e7549
PM
1267 * python/python.c: Document gdb.execute command in Python help.
1268
1efd7661
PM
12692013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1270
1271 * python/py-frame.c (frame_info_to_frame_object): Use
1272 gdbpy_convert_exception. Clean up Python object on failure.
1273
562fc849
PM
12742013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1275
1276 * python/lib/gdb/command/frame_filters.py
1277 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1278 (ShowFrameFilterPriority.invoke): Ditto.
1279
d7561cbb
KS
12802013-10-01 Keith Seitz <keiths@redhat.com>
1281
1282 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1283 (parse_linespec): Make 'argptr' const.
1284 Remove temporary cast of 'argptr' to const char **.
1285 (decode_line_full): Pass const pointer to parse_linespec.
1286 (decode_line_1): Likewise.
1287 (decode_objc): Make local variable 'new_argptr' const.
1288 (find_function_symbols): Remove temporary cast to char *
1289 to find_imps.
1290 * objc-lang.c (find_imps): Make argument 'method' const.
1291 Return const.
1292 * objc-lang.h (find_imps): Likewise.
1293
12942013-10-01 Keith Seitz <keiths@redhat.com>
1295
1296 * completer.c (skip_quoted_chars): Make all arguments const.
1297 Return const.
1298 (skip_quoted): Likewise.
1299 * completer.h (skip_quoted_chars): Likewise.
1300 (skip_quoted): Likewise.
1301 * defs.h (skip_quoted): Remove duplicate declaration.
1302 * jv-exp.y: Include completer.h.
1303 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1304 * p-exp.y: Include completer.h.
1305
13062013-10-01 Keith Seitz <keiths@redhat.com>
1307
1308 * c-exp.y (parse_number): Make first argument const.
1309 Make a copy of the input to manipulate.
1310 (c_parse_escape): Make first argument const.
1311 Make local variable 'tokptr' const.
1312 (parse_string_or_char): Make first two arguments const.
1313 (macro_original_text): Make const.
1314 (lex_one_token): Make local variable 'tokstart' const.
1315 Likewise for local variables named 'p'.
1316 Cast away const for struct stoken (temporary).
1317 * c-lang.h (c_parse_escpae): Make first argument const.
1318 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1319 const.
1320 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1321 var_string case.
1322 * f-exp.y (parse_number): Make first argument const.
1323 (match_string_literal): Make local variable 'tokstart'
1324 const.
1325 (yylex): Make local variable 'p' const.
1326 Cast away const for struct stoken (temporary).
1327 * go-exp.y (parse_number): Make first argument const.
1328 (parse_string_or_char): Likewise.
1329 Make local variable 'tokstart' const.
1330 (lex_one_token): Likewise for numerous locals called 'p'.
1331 Cast away const for struct stoken (temporary).
1332 * jv-exp.y (parse_number): Make first argument const.
1333 Make local variables 'tokstart' and 'tokptr' const.
1334 Cast away const for call to skip_quoted (temporary).
1335 (yylex): Make local variable 'p' const.
1336 Cast away const for struct stoken (temporary).
1337 * m2-exp.y (parse_number): Make local variable 'p' const.
1338 (yylex): Likewise for 'tokstart'.
1339 Cast away const for struct stoken (temporary).
1340 Make local variable 'p' const.
1341 * macroexp.c (get_character_constant): Pass a const string
1342 to c_parse_escape.
1343 (get_string_literal): Likewise.
1344 (macro_expand_next): Make first argument const.
1345 Cast away const for init_shared_buffer.
1346 * macroexp.h (macro_expand_next): Make first argument const.
1347 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1348 Pass a const string to c_parse_escape.
1349 Make local variables 'p' and 'namestart' const.
1350 * parse.c (lexptr): Make const.
1351 (prev_lexptr): Likewise.
1352 (find_template_name_end): Return const.
1353 Make argument const, too.
1354 (parse_exp_in_context): Make first argument const.
1355 Remove the entire const_hack.
1356 (parse_exp_in_context_1): Make first argument const.
1357 * parser-defs.h (find_template_name_end): Return const.
1358 Make argument const, too.
1359 (lexptr): Make const.
1360 (prev_lexptr): Likewise.
1361 * utils.c (parse_escape): Make second argument const.
1362 * utils.h (parse_escape): Likewise.
1363
13642013-10-01 Keith Seitz <keiths@redhat.com>
1365
1366 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1367 is now const.
1368 (block_lookup): Make 'raw_name' and 'name' const.
1369 * ada-lex.l (processString): Update for struct stoken.ptr.
1370 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1371 (operator_stoken): Likewise.
1372 (lex_one_token): Remove temporary cast to char * for
1373 'yylval.sval.ptr'.
1374 * f-exp.y (yylex): Likewise.
1375 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1376 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1377 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1378 'yylval.sval.ptr'.
1379 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1380 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1381 * linespec.c (struct ls_parser): Make 'stream' const.
1382 (find_parameter_list_end): Make argument 'input' and local
1383 variable 'p' const.
1384 (linespec_lexer_lex_string): Make local variables 'start' and
1385 'p' const.
1386 Use skip_spaces_const instead of skip_spaces.
1387 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1388 const.
1389 (parse_linespec): Temporarily cast 'argptr' to const for
1390 'parser->lexer.stream'.
1391 * m2-exp.y (yylex): Remove temporary cast to char * for
1392 'yylval.sval.ptr'.
1393 * objc-lang.c (add_msglist): Make local variable 'p' const.
1394 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1395 (exp : STRING): Make 'sp' const.
1396 (parse_number): Make argument 'p' const.
1397 * parser-defs.h (struct stoken): Make 'ptr' const.
1398
193a8eac
DE
13992013-10-01 Doug Evans <dje@google.com>
1400
1401 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1402
2213e2be
YQ
14032013-10-01 Yao Qi <yao@codesourcery.com>
1404
1405 * varobj.c (c_value_of_root): Remove declaration.
1406 (cplus_value_of_root, java_value_of_root): Likewise.
1407 (ada_value_of_root): Likewise.
1408 (struct language_specific) <value_of_root>: Remove.
1409 (languages): Update initialization.
1410 (check_scope): Move earlier.
1411 (c_value_of_root): Move earlier and rename to ...
1412 (value_of_root_1): ... this.
1413 (value_of_root): Caller update.
1414 (cplus_value_of_root, java_value_of_root): Remove.
1415 (ada_value_of_root): Remove.
1416
c573f273
YQ
14172013-10-01 Yao Qi <yao@codesourcery.com>
1418
1419 * varobj.c (varobj_format_string): Remove "unknown".
1420 (languages): Remove the first element.
1421 * varobj.h (enum varobj_languages): Remove vlang_c.
1422
56250258
YQ
14232013-10-01 Yao Qi <yao@codesourcery.com>
1424
1425 * varobj.c (struct language_specific) <language>: Remove.
1426 (languages): Update the initialization.
1427
29f9ebfa
YQ
14282013-10-01 Yao Qi <yao@codesourcery.com>
1429
1430 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1431 "solib-target.h". Include "windows-tdep.h".
1432 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1433 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1434 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1435 windows-tdep.o to gdb_target_obs.
1436
64870a42
YQ
14372013-10-01 Yao Qi <yao@codesourcery.com>
1438
1439 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1440 "solib-target.h".
1441 (amd64_windows_init_abi): Don't call set_solib_ops and
1442 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1443 windows_init_abi instead.
1444 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1445 "solib-target.h".
1446 (i386_cygwin_init_abi): Don't call set_solib_ops,
1447 set_gdbarch_has_dos_based_file_system and
1448 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1449 windows_init_abi instead.
1450 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1451 (windows_init_abi): New function.
1452 (windows_iterate_over_objfiles_in_search_order): Make it
1453 static.
1454 * windows-tdep.h (windows_init_abi): Declare.
1455 (windows_iterate_over_objfiles_in_search_order): Remove
1456 declaration.
1457
0aebdefa
JB
14582013-10-01 Jerome Guitton <guitton@adacore.com>
1459
1460 Checked in by Joel Brobecker <brobecker@adacore.com>
1461 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1462 incomplete dictionnary instead of None in case of missing
1463 environment variables.
1464 (elinos_init): in case of an incomplete environment, best
1465 effort to load system libraries instead of abort.
1466
1c8e84b0
JB
14672013-10-01 Joel Brobecker <brobecker@adacore.com>
1468
1469 * ada-lang.c (ada_has_this_exception_support): Ignore
1470 mst_solib_trampoline minimal symbols.
1471
61d82a0d
TG
14722013-09-30 Tristan Gingold <gingold@adacore.com>
1473
1474 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1475 hardware watchpoint.
1476 (i386_darwin_dr_set): Support 32 and 64 bit states.
1477 (i386_darwin_dr_get): Likewise.
1478 (i386_darwin_dr_set_control): Make static.
1479 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1480 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1481
dfd4cc63
LM
14822013-09-30 Luis Machado <lgustavo@codesourcery.com>
1483
1484 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1485 Replace TIDGET with ptid_get_lwp.
1486 Replace GET_LWP with ptid_get_lwp.
1487 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1488 Replace BUILD_THREAD with ptid_build.
1489 Replace BUILD_LWP with ptid_build.
1490 Replace PIDGET with ptid_get_pid.
1491 Replace TIDGET with ptid_get_lwp.
1492 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1493 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1494 Replace TIDGET with ptid_get_lwp.
1495 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1496 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1497 Replace TIDGET with ptid_get_lwp.
1498 Replace GET_LWP with ptid_get_lwp.
1499 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1500 * auxv.c: Likewise.
1501 * breakpoint.c: Likewise.
1502 * common/ptid.c (ptid_is_pid): Condense check for
1503 null_ptid and minus_one_ptid.
1504 (ptid_lwp_p): New function.
1505 (ptid_tid_p): New function.
1506 * common/ptid.h: Update comments for accessors.
1507 (ptid_lwp_p): New prototype.
1508 (ptid_tid_p): New prototype.
1509 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1510 * gcore.c: Replace PIDGET with ptid_get_pid.
1511 * gdbthread.h: Likewise.
1512 * gnu-nat.c: Likewise.
1513 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1514 Replace TIDGET with ptid_get_lwp.
1515 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1516 * hppanbsd-nat.c: Likewise.
1517 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1518 Replace TIDGET with ptid_get_lwp.
1519 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1520 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1521 * infcmd.c: Likewise.
1522 * inferior.h: Likewise.
1523 * inflow.c: Likewise.
1524 * infrun.c: Likewise.
1525 * linux-fork.c: Likewise.
1526 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1527 Replace GET_PID with ptid_get_pid.
1528 Replace is_lwp with ptid_lwp_p.
1529 Replace GET_LWP with ptid_get_lwp.
1530 Replace BUILD_LWP with ptid_build.
1531
5b4e221c
MF
15322013-09-28 Mike Frysinger <vapier@gentoo.org>
1533
1534 * common/linux-btrace.c: Move sys/syscall.h out of the
1535 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1536 Also check for SYS_perf_event_open before attempting to buid.
1537
57d63ce2
DE
15382013-09-27 Doug Evans <dje@google.com>
1539
19ac8c2e
DE
1540 * dwarf2read.c (dwarf2_section_info): Add comment.
1541 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1542 All uses updated.
1543 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1544 (dwarf2_read_section): Delete unused local "header". Add section
1545 name to error message.
1546 (create_dwo_in_dwp): Tweak comment.
1547 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1548
a32a8923
DE
1549 * dwarf2read.c (die_reader_specs): Tweak comment.
1550 (get_section_bfd_owner, get_section_bfd_section): New functions.
1551 (get_section_name, get_section_file_name): New functions.
1552 (get_section_id, get_section_flags): New functions.
1553 (*): Use new functions to access section fields.
1554
57d63ce2
DE
1555 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1556 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1557 arg "htab". All callers updated.
1558 (create_debug_types_hash_table): Remove redundant copy of
1559 abbrev_section.
1560 (create_dwo_in_dwp): Tweak comments.
1561 (read_str_index): Tweak comment. Record dwarf form name in static
1562 local.
1563
3736004f
PA
15642013-09-27 Pedro Alves <palves@redhat.com>
1565
1566 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1567 (remote_filename_p): Add comment.
1568 * remote.c (remote_filename_p): Adjust to use
1569 REMOTE_SYSROOT_PREFIX.
1570 * solib.c (solib_find): When deciding whether we need to add a
1571 directory separator, check whether the sysroot is "remote:"
1572 instead of checking whether the patch has a drive spec. Add
1573 comments.
1574
5b5596ff
PA
15752013-09-27 Pedro Alves <palves@redhat.com>
1576
1577 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1578 Delete fields.
1579 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1580 directly.
1581
b5eef7aa
JK
15822013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1583
1584 Fix set debug frame output.
1585 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1586 SENTINEL_FRAME entry lower to match enum frame_type order.
1587
5b856f36
PM
15882013-09-26 Pierre Muller <muller@sourceware.org>
1589
1590 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1591 AMD64_R15_REGNUM when a register index is expected.
1592 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1593 Substitute in array.
1594 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1595 (amd64_push_arguments): Substitute in integer_regnum array.
1596
ade7ed9e
DE
15972013-09-25 Doug Evans <dje@google.com>
1598
d3e81981
DE
1599 * objfiles.c (allocate_objfile): Move comment to better place.
1600
8fb8eb5c
DE
1601 New option "set debug symfile on".
1602 * NEWS: Mention "set debug symfile".
1603 * Makefile.in (SFILES): Add symfile-debug.c.
1604 (COMMON_OBS): Add symfile-debug.o.
1605 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1606 objfile's symbol functions.
1607 * objfiles.h (objfile_set_sym_fns): Declare.
1608 * symfile-debug.c: New file.
1609 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1610 objfile's symbol functions.
1611 (reread_symbols): Ditto.
1612
c256e171
DE
1613 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1614 All uses updated.
1615 (add_symtab_fns): Update prototype.
1616 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1617 (registered_sym_fns): ... this.
1618 (symtab_fns): Update.
1619 (add_symtab_fns): New arg "flavour". All callers updated.
1620 (find_sym_fns): Rewrite to use new sym_fns registry.
1621
f56ce883
DE
1622 * symfile.h (struct sym_fns): Add "objfile" argument to
1623 sym_read_linetable. All uses updated.
1624
20c681d1
DE
1625 * symtab.c (domain_name, search_domain_name): New functions.
1626 * symtab.h (domain_name, search_domain_name): Declare.
1627
ade7ed9e
DE
1628 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1629 map_matching_symbols so objfile is first. All uses updated.
1630 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1631 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1632
7d760051
UW
16332013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1634
1635 PR shlibs/8882
1636 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1637 link map entries.
1638
020f7036
DE
16392013-09-24 Doug Evans <dje@google.com>
1640
1641 * objfiles.c (free_objfile): Move comment.
1642
598402f0
JB
16432013-09-24 Joel Brobecker <brobecker@adacore.com>
1644
1645 * ada-exp.y (string_to_operator): Delete.
1646 (dummy_string_to_ada_operator): Delete.
1647
bf4d6c1c
JB
16482013-09-24 Joel Brobecker <brobecker@adacore.com>
1649
1650 Revert:
1651 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1652 amd64-tdep.c.
1653 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1654 call_dummy_integer_regs, and classify.
1655 * amd64-tdep.h (amd64_classify): Add declaration.
1656 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1657 (amd64_reg_class): Delete, moved to i386-tdep.h.
1658 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1659 Replace call to amd64_classify by call to tdep->classify.
1660 (amd64_push_arguments): Get the list of registers to use for
1661 passing integer parameters from the gdbarch tdep structure,
1662 rather than using a hardcoded one. Replace calls to amd64_classify
1663 by calls to tdep->classify.
1664 (amd64_push_dummy_call): Get the register number used for
1665 the "hidden" argument from tdep->call_dummy_integer_regs.
1666 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1667 and tdep->call_dummy_integer_regs. Set tdep->classify.
1668
849e9755
JB
16692013-09-24 Joel Brobecker <brobecker@adacore.com>
1670
1671 Revert:
1672 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1673 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1674 where tdep->memory_args_by_pointer is non-zero.
1675
c1459fd6
JB
16762013-09-24 Joel Brobecker <brobecker@adacore.com>
1677
1678 Revert:
1679 * i386-tdep.h (struct gdbarch_tdep): Add new field
1680 integer_param_regs_saved_in_caller_frame.
1681 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1682 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1683
20c2e3e0
JB
16842013-09-24 Joel Brobecker <brobecker@adacore.com>
1685
874440b8 1686 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1687 (amd64_windows_classify): Delete.
1688 (amd64_windows_passed_by_integer_register)
1689 (amd64_windows_passed_by_xmm_register)
1690 (amd64_windows_passed_by_pointer)
1691 (amd64_windows_adjust_args_passed_by_pointer)
1692 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1693 (amd64_windows_push_dummy_call): New functions.
1694 (amd64_windows_init_abi): Remove setting of
1695 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1696 tdep->classify, tdep->memory_args_by_pointer and
1697 tdep->integer_param_regs_saved_in_caller_frame.
1698 Add call to set_gdbarch_push_dummy_call.
1699
82bf32bc
JK
17002013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1701
1702 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1703 objfile->original_name.
1704
24ba069a
JK
17052013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1706
1707 Pass down original filename for objfile.
1708 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1709 * elfread.c (elf_symfile_read): Likewise.
1710 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1711 longer set ORIGINAL_NAME.
1712 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1713 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1714 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1715 symbol_file_add_from_bfd call.
1716 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1717 (macho_check_dsym): Add parameter filenamep. Change function comment.
1718 Set *filenamep.
1719 (macho_symfile_read): New variable dsym_filename. Update
1720 macho_check_dsym call. Use it for symbol_file_add_separate.
1721 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1722 it. Use it for objfile->original_name.
1723 (objfile_name): Return OBFD's filename, if available.
1724 * objfiles.h (allocate_objfile): Add new parameter name.
1725 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1726 * symfile-mem.c (symbol_file_add_from_memory): Update
1727 symbol_file_add_from_bfd call.
1728 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1729 comment for it.
1730 (symbol_file_add_with_addrs): New parameter name, add function comment
1731 for it. Remove variable name. Update allocate_objfile call.
1732 (symbol_file_add_separate): New parameter name, add function comment
1733 for it. Update symbol_file_add_with_addrs call.
1734 (symbol_file_add_from_bfd): New parameter name. Update
1735 symbol_file_add_with_addrs call.
1736 (symbol_file_add): Update symbol_file_add_from_bfd call.
1737 (reread_symbols): New variable original_name. Save
1738 objfile->original_name by it.
1739 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1740 second parameter.
1741
4262abfb
JK
17422013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1743
1744 Code cleanup: Add objfile_name accessor function.
1745 * ada-lang.c (is_known_support_routine): Use objfile_name.
1746 * auto-load.c (source_gdb_script_for_objfile)
1747 (auto_load_objfile_script): Likewise.
1748 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1749 * dbxread.c (dbx_symfile_read): Likewise.
1750 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1751 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1752 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1753 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1754 (lookup_dwp_signatured_type, lookup_dwo_unit)
1755 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1756 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1757 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1758 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1759 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1760 (read_subrange_type, load_partial_dies, read_partial_die)
1761 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1762 (die_containing_type, build_error_marker_type, lookup_die_type)
1763 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1764 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1765 (get_DW_AT_signature_type, write_psymtabs_to_index)
1766 (save_gdb_index_command): Likewise.
1767 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1768 Likewise.
1769 * expprint.c (dump_subexp_body_standard): Likewise.
1770 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1771 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1772 original_name.
1773 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1774 obj_name, use objfile_name for it, use the variable.
1775 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1776 Use objfile_name.
1777 * machoread.c (macho_symtab_read, macho_check_dsym)
1778 (macho_symfile_relocate): Likewise.
1779 * maint.c (maintenance_translate_address): Likewise.
1780 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1781 * minsyms.c (install_minimal_symbols): Likewise.
1782 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1783 original_name.
1784 (filter_overlapping_sections): Use objfile_name.
1785 (objfile_name): New function.
1786 * objfiles.h (struct objfile): Rename field name to original_name.
1787 (objfile_name): New prototype.
1788 * printcmd.c (sym_info, address_info): Use objfile_name.
1789 * probe.c (parse_probes, collect_probes, compare_probes)
1790 (info_probes_for_ops): Likewise.
1791 * progspace.c (clone_program_space): Likewise.
1792 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1793 (maintenance_info_psymtabs): Likewise.
1794 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1795 (source_section_scripts): Likewise.
1796 * python/py-objfile.c (objfpy_get_filename): Likewise.
1797 * python/py-progspace.c (pspy_get_filename): Likewise.
1798 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1799 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1800 * solib.c (solib_read_symbols): Likewise.
1801 * stabsread.c (scan_file_globals): Likewise.
1802 * stap-probe.c (handle_stap_probe): Likewise.
1803 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1804 (find_separate_debug_file_by_debuglink): Likewise.
1805 (reread_symbols): Likewise. Use the objfile field name renamed to
1806 original_name.
1807 (allocate_symtab): Use objfile_name.
1808 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1809 (dump_objfile, dump_msymbols, dump_symtab_1)
1810 (maintenance_print_msymbols, maintenance_print_objfiles)
1811 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1812 * target.c (target_translate_tls_address, target_info): Likewise.
1813 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1814 objfile_name.
1815
4721dc18
JK
18162013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1817
1818 Code cleanup.
1819 * probe.c (parse_probes): Rename variable objfile_name to
1820 objfile_namestr.
1821
a61d6db8
JK
18222013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1823
1824 Remove solib-sunos.c.
1825 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1826 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1827 * objfiles.c (rt_common_objfile): Remove.
1828 (free_objfile): Remove rt_common_objfile comparison.
1829 * objfiles.h (rt_common_objfile): Remove.
1830 * solib-sunos.c: Remove.
1831 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1832
2659903b
JK
18332013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1834
1835 Remove a.out NetBSD and OpenBSD hosts.
1836 * NEWS (Removed native configurations): New.
1837 * config/arm/nbsdaout.mh: Remove.
1838 * config/i386/nbsdaout.mh: Remove.
1839 * config/i386/obsdaout.mh: Remove.
1840 * config/m68k/nbsdaout.mh: Remove.
1841 * config/sparc/nbsdaout.mh: Remove.
1842 * config/vax/nbsdaout.mh: Remove.
1843 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1844 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1845 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1846 error.
1847 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1848 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1849 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1850
f60e2d5c
TT
18512013-09-23 Tom Tromey <tromey@redhat.com>
1852
1853 * linespec.c (struct minsym_and_objfile): Remove.
1854 (minsym_and_objfile_d): Remove.
1855 (struct linespec, struct collect_info, linespec_parse_basic)
1856 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1857 (compare_msymbols, find_method, find_function_symbols)
1858 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1859 (add_minsym, search_minsyms_for_name): Update.
1860
d3eaaf66
AB
18612013-09-23 Andrew Burgess <aburgess@broadcom.com>
1862
1863 * regcache.c: Add include of valprint.h.
1864 (dump_endian_bytes): Delete.
1865 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1866
2cc762b5
AB
18672013-09-23 Andrew Burgess <aburgess@broadcom.com>
1868
1869 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1870
96181529
PA
18712013-09-19 Pedro Alves <palves@redhat.com>
1872
1873 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1874 breakpoints.
1875
9b3f3ee6
TS
18762013-09-19 Pedro Alves <palves@redhat.com>
1877 Thomas Schwinge <thomas@codesourcery.com>
1878 Yue Lu <hacklu.newborn@gmail.com>
1879
1880 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1881 Take a gdb_byte pointer instead of a char pointer.
1882
1883 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1884 gnu_xfer_partial helper.
1885 (gnu_xfer_partial): New function.
1886 (gnu_target): Don't install a deprecated_xfer_memory hook.
1887 Install a to_xfer_partial hook.
1888
69150c3d
JK
18892013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1890
1891 Constification.
1892 * main.c (captured_main): Replace catch_command_errors by
1893 catch_command_errors_const. Twice.
1894 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1895 (symbol_file_add): Make name parameter const.
1896 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1897 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1898 variable name. Change their usage accordingly.
1899 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1900 const.
1901 (symbol_file_add_main): Make args parameter const.
1902
086850b2
UW
19032013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1904 Ulrich Weigand <uweigand@de.ibm.com>
1905
1906 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1907 of c_value member.
1908 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1909
ca08a94c 19102013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1911 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1912
1913 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1914 (gnu_create_inferior)
1915 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1916 (set_sig_thread_cmd): Use the lwpid field of ptids to
1917 store/extract thread ids instead of the tid field.
1918 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1919
e4c6a2c4
AB
19202013-09-18 Andrew Burgess <aburgess@broadcom.com>
1921
1922 * infcmd.c (default_print_one_register_info): Add detection of
1923 optimized out values.
1924 (default_print_registers_info): Switch to using
1925 get_frame_register_value.
1926
58c48e72
MM
19272013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1928
1929 * infrun.c (handle_inferior_event): Check if we know the
1930 function start address before setting a resume breakpoint.
1931
c8d37639
PA
19322013-09-18 Pedro Alves <palves@redhat.com>
1933
1934 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1935 minus_one_ptid instead of looking at the ptid's tid field and
1936 comparing that to -1.
1937
71926e28
AB
19382013-09-18 Andrew Burgess <aburgess@broadcom.com>
1939
1940 * main.h (get_gdb_program_name): Remove extra whitespace.
1941
c88a1531
AB
19422013-09-18 Andrew Burgess <aburgess@broadcom.com>
1943
1944 * main.h (get_gdb_program_name): Add declaration.
1945 * main.c (get_gdb_program_name): Add definition.
1946
4390d890
DE
19472013-09-17 Doug Evans <dje@google.com>
1948
1949 * dwarf2read.c: Move definitions of complaint functions to after
1950 forward declarations of local functions.
1951
49fa26b0
PA
19522013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1953 Pedro Alves <palves@redhat.com>
1954
1955 PR gdb/11568
1956 * breakpoint.c (remove_threaded_breakpoints): New function.
1957 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1958 as thread_exit observer.
1959
08d72866
PA
19602013-09-17 Pedro Alves <palves@redhat.com>
1961
1962 PR gdb/15911
1963 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1964 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1965 * corelow.c (core_open):
1966 * frame.h (print_stack_frame, print_frame_info): New
1967 'set_current_sal' parameter.
1968 * infcmd.c (finish_command, kill_command): Adjust call to
1969 print_stack_frame.
1970 * inferior.c (inferior_command): Likewise.
1971 * infrun.c (normal_stop): Likewise.
1972 * linux-fork.c (linux_fork_context): Likewise.
1973 * record-full.c (record_full_goto_entry, record_full_restore):
1974 Likewise.
1975 * remote-mips.c (common_open): Likewise.
1976 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1977 Use it.
1978 (print_frame_info): New 'set_current_sal' parameter. Set the last
1979 displayed sal depending on the new paremeter instead of looking at
1980 print_what.
1981 (backtrace_command_1, select_and_print_frame, frame_command)
1982 (current_frame_command, up_command, down_command): Adjust call to
1983 print_stack_frame.
1984 * thread.c (print_thread_info, restore_selected_frame)
1985 (do_captured_thread_select): Adjust call to print_stack_frame.
1986 * tracepoint.c (tfind_1): Likewise.
1987 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1988 (mi_cmd_stack_info_frame): Likewise.
1989 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1990 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1991
6bc305f5
SDJ
19922013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1993
1994 * value.c (isvoid_internal_fn): Replace "parameter" with
1995 "argument".
1996
0a7cfe2c
SS
19972013-09-16 Stan Shebs <stan@codesourcery.com>
1998
1999 * README: Update references to writing code for GDB.
2000 * configure.ac (build_warnings): Remove obsolete comment.
2001 * configure: Regenerate.
2002 * gdbarch.sh: Remove references to gdbint.texinfo.
2003 * gdbarch.h: Regenerate.
2004 * gdbtypes.c (objfile_type): Remove comments referencing internals
2005 manual and D10V.
2006
a280dbd1
SDJ
20072013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2008
2009 * NEWS: Mention new convenience function $_isvoid.
2010 * value.c (isvoid_internal_fn): New function.
2011 (_initialize_values): Add new convenience function $_isvoid.
2012
04a83fee
PM
20132013-09-16 Pierre Muller <muller@sourceware.org>
2014
2015 * arm-linux-tdep.c: Add "elf/common.h" header.
2016 Remove AT_HWCAP macro definintion as it is provided in
2017 added include file.
2018 * s390-tdep.c: Remove system header <elf.h>
2019 Add "elf/common.h" header for AT_HWCAP definition.
2020 (s390_core_read_description): Use correct CORE_ADDR
2021 for hwcap local variable used as third parameter
2022 of function target_auxv_search.
2023
88505fac
PM
20242013-09-14 Pierre Muller <muller@sourceware.org>
2025 Tom Tromey <tromey@redhat.com>
2026 Pedro Alves <palves@redhat.com>
2027
2028 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2029 mode if operating system doesn't know O_CLOEXEC.
2030
d3846e71
JK
20312013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2032
2033 Code cleanup.
2034 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2035 inner block.
2036
4ac33720
UW
20372013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2038
2039 * NEWS: Mention TDB support.
2040 * features/s390-tdb.xml: New file.
2041 * features/s390-te-linux64.xml: New file.
2042 * features/s390x-te-linux64.xml: New file.
2043 * features/Makefile (WHICH): Add new tdescs above.
2044 (s390-te-linux64-expedite): Set.
2045 (s390x-te-linux64-expedite): Set.
2046 * features/s390-te-linux64.c: New file (generated).
2047 * features/s390x-te-linux64.c: New file (generated).
2048 * regformats/s390-te-linux64.dat: New file (generated).
2049 * regformats/s390x-te-linux64.dat: New file (generated).
2050 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2051 (HWCAP_S390_TE): Likewise.
2052 (S390_TDB_DWORD0_REGNUM): Likewise.
2053 (S390_TDB_DWORD0_REGNUM): Likewise.
2054 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2055 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2056 (S390_TDB_ATIA_REGNUM): Likewise.
2057 (S390_TDB_R0_REGNUM): Likewise.
2058 (S390_TDB_R1_REGNUM): Likewise.
2059 (S390_TDB_R2_REGNUM): Likewise.
2060 (S390_TDB_R3_REGNUM): Likewise.
2061 (S390_TDB_R4_REGNUM): Likewise.
2062 (S390_TDB_R5_REGNUM): Likewise.
2063 (S390_TDB_R6_REGNUM): Likewise.
2064 (S390_TDB_R7_REGNUM): Likewise.
2065 (S390_TDB_R8_REGNUM): Likewise.
2066 (S390_TDB_R9_REGNUM): Likewise.
2067 (S390_TDB_R10_REGNUM): Likewise.
2068 (S390_TDB_R11_REGNUM): Likewise.
2069 (S390_TDB_R12_REGNUM): Likewise.
2070 (S390_TDB_R13_REGNUM): Likewise.
2071 (S390_TDB_R14_REGNUM): Likewise.
2072 (S390_TDB_R15_REGNUM): Likewise.
2073 (S390_NUM_REGS): Increase.
2074 (S390_IS_TDBREGSET_REGNUM): New macro.
2075 (s390_regmap_tdb): Declare.
2076 (s390_sizeof_tdbregset): Define.
2077 (tdesc_s390_te_linux64): Declare.
2078 (tdesc_s390x_te_linux64): Likewise.
2079 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2080 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2081 (s390_regmap_tdb): New regmap.
2082 (s390_supply_tdb_regset): New function.
2083 (s390_tdb_regset): New regset.
2084 (s390_linux64v2_regset_sections): Add TDB regset to list.
2085 (s390x_linux64v2_regset_sections): Likewise.
2086 (s390_regset_from_core_section): Recognize TDB core note section.
2087 (s390_core_read_description): If HWCAP indicates TE support,
2088 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2089 (s390_gdbarch_init): Handle TDB regset.
2090 (_initialize_s390_tdep): Initialize new tdescs.
2091 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2092 (have_regset_tdb): New variable.
2093 (s390_native_supply): Support register invalidation.
2094 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2095 (check_regset): Treat ENODATA as "regset exists".
2096 (s390_linux_fetch_inferior_registers): Add TDB.
2097 (s390_read_description): Check for TDB existence and select
2098 appropriate tdesc.
2099 * gdbserver/Makefile.in (clean): Add removal of new makefile
2100 targets.
2101 (s390-te-linux64.c): New makefile target.
2102 (s390x-te-linux64.c): Likewise.
2103 * gdbserver/configure.srv (srv_regobj): Append new objects
2104 s390-te-linux64.o and s390x-te-linux64.o.
2105 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2106 s390x-te-linux64.xml, and s390-tdb.xml.
2107 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2108 declaration.
2109 (tdesc_s390_te_linux64): Likewise.
2110 (init_registers_s390x_te_linux64): Likewise.
2111 (tdesc_s390x_te_linux64): Likewise.
2112 (s390_check_regset): Treat ENODATA as "regset exists".
2113 (s390_arch_setup): Add TDB regset support.
2114 (initialize_low_arch): Initialize registers for new tdescs.
2115
2ccd1468
UW
21162013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2117
2118 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2119 (S390_IS_FPREGSET_REGNUM): New macro.
2120 * s390-tdep.c (s390_dwarf_regmap): Make const.
2121 (regnum_is_gpr_full): New function for replacing repeated code.
2122 (s390_pseudo_register_name): Use it.
2123 (s390_pseudo_register_type): Likewise.
2124 (s390_pseudo_register_read): Likewise.
2125 (s390_pseudo_register_write): Likewise.
2126 (s390_unwind_pseudo_register): Likewise.
2127 (s390_regmap_gregset): New format for regmap.
2128 (s390x_regmap_gregset): Likewise.
2129 (s390_regmap_fpregset): Likewise.
2130 (s390_regmap_upper): Likewise.
2131 (s390_regmap_last_break): Likewise.
2132 (s390_regmap_system_call): Likewise.
2133 (s390_supply_regset): Adjust to new regmap format.
2134 (s390_collect_regset): Likewise.
2135 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2136 (s390_native_collect): Likewise.
2137 (supply_gregset): Likewise.
2138 (fill_gregset): Likewise.
2139 (supply_fpregset): Likewise.
2140 (fill_fpregset): Likewise.
2141 (fetch_regset): Likewise.
2142 (store_regset): Likewise.
2143 (s390_linux_fetch_inferior_registers): Likewise.
2144 (s390_linux_fetch_inferior_registers): Likewise.
2145
1aa4cd77
AP
21462013-09-12 Andrew Pinski <apinski@cavium.com>
2147
2148 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2149
d91fab15
UW
21502013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2151
2152 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2153
5a5d8ead
AB
21542013-09-09 Andrew Burgess <aburgess@broadcom.com>
2155
2156 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2157
1385f66c
PA
21582013-09-06 Pedro Alves <palves@redhat.com>
2159
2160 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2161 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2162 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2163 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2164 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2165 gdb_stdlog.
2166
146ec4db
PA
21672013-09-06 Pedro Alves <palves@redhat.com>
2168
2169 * remote-sim.c (dump_mem): Constify buf parameter.
2170 gdbsim_xfer_inferior_memory): Rename to ...
2171 (gdbsim_xfer_memory): ... this. Adjust interface as
2172 target_xfer_partial helper.
2173 (gdbsim_xfer_partial): New function.
2174 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2175 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2176
fcde0081
PA
21772013-09-06 Pedro Alves <palves@redhat.com>
2178
2179 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2180 host_address_to_string, and send debug output to gdb_stdlog.
2181
749c8b38
RW
21822013-09-06 Ricard Wanderlof <ricardw@axis.com>
2183
2184 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2185 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2186 gdb_target_obs for cris target.
2187 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2188 (cris_gdbarch_init): Move calls to
2189 set_gdbarch_fetch_tls_load_module_address and
2190 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2191 Add call to gdbarch_init_osabi.
2192 * cris-linux-tdep.c: New file.
2193 * cris-tdep.h: New file.
2194
43df09d9
AB
21952013-09-06 Andrew Burgess <aburgess@broadcom.com>
2196
2197 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2198 to deprecated_init_ui_hook.
2199
4d09c5b4
AB
22002013-09-06 Andrew Burgess <aburgess@broadcom.com>
2201
2202 * cli/cli-interp.c (_initialize_cli_interp): Add a
2203 command_loop_proc to interp_procs.
2204 * event-top.c (cli_command_loop): Change signature to match
2205 interp_command_loop_ftype.
2206 * event-top.h (cli_command_loop): Same.
2207 * interps.c (interp_new): Require every interpreter to have a
2208 command_loop_proc.
2209 (current_interp_command_loop): Just call the command_loop_proc on
2210 the current interpreter.
2211 * tui/tui-interp.c (_initialize_tui_interp): Add a
2212 command_loop_proc to interp_procs.
2213
8eb3d7b6
RW
22142013-09-06 Ricard Wanderlof <ricardw@axis.com>
2215
2216 * cris-tdep.c (cris_gdbarch_init): Add call to
2217 get_gdbarch_fetch_tls_load_module_address.
2218
18b3c2f5
RW
22192013-09-06 Ricard Wanderlof <ricardw@axis.com>
2220
2221 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2222 (cris_elf_gregset_t): Rename from elf_gregset_t.
2223 (crisv32_elf_gregset_t): Adjust.
2224 (cris_supply_gregset, fetch_core_registers): Adjust.
2225
dc8636ef
RW
22262013-09-06 Ricard Wanderlof <ricardw@axis.com>
2227
2228 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2229
257e6d53
AB
22302013-09-05 Andrew Burgess <aburgess@broadcom.com>
2231
1581d8a7 2232 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 2233 references in comments.
1581d8a7 2234 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
2235 deprecated_command_loop_hook.
2236 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2237 setup.
1581d8a7 2238 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 2239
7c33b57c
PA
22402013-09-05 Pedro Alves <palves@redhat.com>
2241
2242 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2243 local is now int instead of ULONGEST. Print it with %d
2244 instead of paddress.
2245
9f8edbd5
TG
22462013-09-05 Tristan Gingold <gingold@adacore.com>
2247
2248 * MAINTAINERS: Remove avr maintainership.
2249
d5b495b4
PA
22502013-09-05 Pedro Alves <palves@redhat.com>
2251
2252 * findvar.c (value_of_register): Rework in terms of
2253 value_of_register_lazy.
2254
40b91786
MB
22552013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2256
2257 * symfile.c (add_symbol_file_command): Remove trailing
2258 whitespaces and blank line after comment.
2259
6eed1678
PA
22602013-09-05 Pedro Alves <palves@redhat.com>
2261
2262 * tui/tui-regs.c (tui_register_format): Don't look at the
2263 register's name here. Return string representing register
2264 value instead of storing it in the data element.
2265 (tui_get_register): Compare register string representations
2266 instead of register value states and contents.
2267
8eb6bda2
PA
22682013-09-05 Pedro Alves <palves@redhat.com>
2269
2270 PR tui/15933
2271 * tui/tui-regs.c (tui_show_registers): Show registers of the
2272 selected frame, not the current frame.
2273
48b1f08c
RW
22742013-09-05 Ricard Wanderlof <ricardw@axis.com>
2275
2276 * MAINTAINERS (Write After Approval): Add myself to the list.
2277
89e63ee4
DE
22782013-09-04 Doug Evans <dje@google.com>
2279
2280 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2281 (queue_and_load_dwo_tu): New function.
2282 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2283 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2284 Make dependent_cu optional.
2285 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2286 and an older .gdb_index is in use, queue and load all its TUs too.
2287
492c0ab7
JK
22882013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2289
2290 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2291 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2292 variable search_flags.
2293 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2294 (OPF_RETURN_REALPATH): ... here.
2295 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2296 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2297 call. Twice.
2298 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2299 openp call.
2300 * solib.c (solib_find): Likewise. Four times.
2301 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2302 in the function comment and for the realpath_fptr variable.
2303 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2304 (find_and_open_source): Likewise. Twice.
2305 * symfile.c (symfile_bfd_open): Likewise, also twice.
2306
23a44de8
DE
23072013-09-04 Doug Evans <dje@google.com>
2308
2309 * progspace.c (save_current_space_and_thread): Remove unnecessary
2310 call to save_current_inferior.
2311
47061676
AB
23122013-09-04 Andrew Burgess <aburgess@broadcom.com>
2313
2314 * sh64-tdep.c (sh64_do_register): Return after printing message
2315 about unavailable register contents.
2316
41dc8db8
MB
23172013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2318 Pedro Alves <palves@redhat.com>
2319
2320 * symfile.c (add_symbol_file_command): Error out on unknown
2321 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2322 options and collapse into single conditional branch.
2323
07107ca6
LM
23242013-09-03 Luis Machado <lgustavo@codesourcery.com>
2325
a7ea61cf 2326 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2327 detach_fork.
2328 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2329 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2330 * inferior.h (detach_fork): Remove.
2331 * infrun.c (detach_fork): Adjust comment and make it
2332 static.
2333 (follow_fork): Pass detach_fork parameter to
2334 target_follow_fork.
2335 * linux-nat.c (linux_child_follow_fork): New parameter
2336 detach_fork.
2337 * target.c (target_follow_fork): New parameter detach_fork.
2338 Pass detach_fork as parameter and print its value.
2339 * target.h (struct target_ops) <to_follow_fork>: New int
2340 parameter.
2341 (target_follow_fork): New parameter detach_fork.
2342
3bec2768
JB
23432013-09-03 Joel Brobecker <brobecker@adacore.com>
2344
2345 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2346 Replace sec->bfd by sec->the_bfd_section->owner.
2347
c01cbb3d
YQ
23482013-09-03 Yao Qi <yao@codesourcery.com>
2349
2350 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2351 from linux_has_shared_address_space.
2352 (linux_has_shared_address_space): Call linux_is_uclinux.
2353 * linux-tdep.h (linux_is_uclinux): Declare.
2354 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2355 linux_is_uclinux.
2356
7b00db47
YQ
23572013-09-03 Yao Qi <yao@codesourcery.com>
2358
2359 * config/djgpp/fnchange.lst: Remove entry of
2360 i386-interix-nat.c and i386-interix-tdep.c.
2361 * configure.ac: Remove '*-*-interix*'.
2362 * configure: Re-generated.
2363 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2364 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2365 obsolete comments.
2366 * osabi.c (gdb_osabi_names): Remove "Interix".
2367
0f9741f2
YQ
23682013-09-03 Yao Qi <yao@codesourcery.com>
2369
2370 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2371
1e038f67
MM
23722013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2373
2374 * record.h (record_print_flag) <record_print_src_line,
2375 record_print_insn_range>: Rename into ...
2376 (record_print_flag) <record_print_src_line,
2377 record_print_insn_range>: ... this. Update all users.
2378
9e52adf9
PM
23792013-09-02 Pierre Muller <muller@sourceware.org>
2380
2381 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2382 error code.
2383
a2388568
PM
23842013-09-02 Pierre Muller <muller@sourceware.org>
2385
2386 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2387 by use of plongest function.
2388
9058cc3a
TG
23892013-09-02 Tristan Gingold <gingold@adacore.com>
2390
2391 * NEWS: Add entry mentioning support for native Windows x64
2392 SEH data.
2393
2394 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2395 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2396 (struct amd64_windows_frame_cache): New struct.
2397 (amd64_windows_w2gdb_regnum): New global.
2398 (pc_in_range, amd64_windows_frame_decode_epilogue)
2399 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2400 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2401 (amd64_windows_frame_this_id): New functions.
2402 (amd64_windows_frame_unwind): New static global.
2403 (amd64_windows_skip_prologue): New function.
2404 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2405 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2406 with amd64_windows_skip_prologue.
2407
3161820b 24082013-08-30 Joel Brobecker <brobecker@adacore.com>
2409
2410 GDB 7.6.1 released.
2411
02457c76
PA
24122013-08-30 Pedro Alves <palves@redhat.com>
2413
2414 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2415 SRC_AND_LOC.
2416
e0162910
PA
24172013-08-30 Pedro Alves <palves@redhat.com>
2418
2419 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2420 warning text.
2421
6391ce51
PA
24222013-08-30 Pedro Alves <palves@redhat.com>
2423
2424 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2425 Adjust arguments to print_stack_frame.
2426
d1da0587
PA
24272013-08-30 Pedro Alves <palves@redhat.com>
2428
2429 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2430
adfd8245
PA
24312013-08-30 Pedro Alves <palves@redhat.com>
2432
2433 * frame.h (show_and_print_stack_frame): Delete declaration.
2434
96d9056e
PM
24352013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2436
2437 PR python/15461
96d9056e
PM
2438 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2439 (archpy_name): Check for valid architecture.
2440 (archpy_disassemble): Ditto.
2441
11cb8762
JB
24422013-08-29 Joel Brobecker <brobecker@adacore.com>
2443
2444 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2445 instead of "long long" in call to ptrace64.
2446
1af12a7d
AB
24472013-08-29 Andrew Burgess <aburgess@broadcom.com>
2448
2449 * mi/mi-interp.c (mi_command_loop): Change signature to match
2450 interp_command_loop_ftype.
2451 (mi1_command_loop): Remove.
2452 (mi2_command_loop): Remove.
2453 (mi3_command_loop): Remove.
2454 (mi_interpreter_resume): Remove setting of
2455 deprecated_command_loop_hook.
2456 (_initialize_mi_interp): Set mi_command_loop as the command loop
2457 callback.
2458
acc900c2
SA
24592013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2460
2461 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2462 value_type.
2463
548b762d
SA
24642013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2465
2466 * value.c (allocate_value_contents): Make static.
2467 * value.h (allocate_value_contents): Remove prototype.
2468
08039c9e
SA
24692013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2470
2471 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2472 of assembling value via allocate_value_lazy and attribute setter.
2473 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2474 assembling value via allocate_value_lazy and attribute setter.
2475 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2476 assembling value via allocate_value_lazy and attribute setter.
2477
314c7de9
SA
24782013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2479
2480 * value.c (value_from_contents_and_address): Replace allocate_value and
2481 memcpy with value_from_contents.
2482
8f28f522
PM
24832013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2484
2485 * python/py-framefilter.c (py_print_frame): Remove usage of
2486 PyString_AsString. Use python_string_to_host_string instead.
2487 Refactor function to work with a string as a new allocation
2488 instead of a pointer.
2489 (py_print_frame): Ditto.
2490 * python/lib/gdb/frames.py (return_list): Cain iterators together
2491 instead of adding them as a list.
2492 (_sort_list): Call return_list, and remove duplicate code.
2493 (execute_frame_filters): Convert iterator to a list with list().
2494 * python/lib/gdb/command/frame_filters.py
2495 (SetFrameFilterPriority._set_filter_priority): Convert priority
2496 attribute to an integer.
2497 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2498 wrapper function __next__.
2499 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2500 define as "str".
2501
8ee002df
PM
25022013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2503
2504 PR python/15752
8ee002df
PM
2505 * python/py-framefilter.c (apply_frame_filter): Check
2506 gdb_python_initialized. Exit if the Python frame-filter code
2507 cannot be initialized.
2508
af4c453a
PM
25092013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2510
2511 PR cli/15842
af4c453a
PM
2512 * top.c (print_gdb_version): Remove erroneous newline after help
2513 text.
2514
bf8793bb
YQ
25152013-08-29 Yao Qi <yao@codesourcery.com>
2516
2517 * varobj.c (install_dynamic_child): Remove trailing space.
2518 Add one blank line after variable declaration.
2519
1f0c4988
JK
25202013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2521
2522 PR gdb/15415
2523 * corefile.c (get_exec_file): Use exec_filename.
2524 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2525 * exec.c (exec_close): Free EXEC_FILENAME.
2526 (exec_file_attach): New variable canonical_pathname. Use
2527 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2528 EXEC_FILENAME.
2529 * exec.h (exec_filename): New.
2530 * inferior.c (print_inferior, inferior_command): Use
2531 PSPACE_EXEC_FILENAME.
2532 * mi/mi-main.c (print_one_inferior): Likewise.
2533 * progspace.c (clone_program_space, print_program_space): Likewise.
2534 * progspace.h (struct program_space): New field pspace_exec_filename.
2535 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2536 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2537
59ee9f94
WN
25382013-08-28 Will Newton <will.newton@linaro.org>
2539
2540 * common/linux-ptrace.c: Include stdint.h unconditionally.
2541
c8a2a419
JK
25422013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2543
2544 Code cleanup.
2545 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2546
ffa4ac95
YQ
25472013-08-28 Yao Qi <yao@codesourcery.com>
2548 Pedro Alves <palves@redhat.com>
2549
2550 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2551 instead of stdio_fileopen.
2552 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2553 .Call stderr_fileopen instead of stdio_fileopen.
2554 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2555 [__MINGW32__] (stderr_file_fputs): New function.
2556 (stderr_fileopen): New function.
2557 * ui-file.h (stderr_fileopen): Declare.
2558
69d751e3
DE
25592013-08-27 Doug Evans <dje@google.com>
2560
2561 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2562 (struct dwarf2_per_cu_data): Ditto.
2563 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2564 (process_imported_unit_die): Ditto.
2565 (follow_die_sig_1): Simplify assert.
2566
44f38867
PA
25672013-08-27 Pedro Alves <palves@redhat.com>
2568
2569 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2570 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2571 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2572 windows_xfer_memory directly.
2573 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2574
d28d46b5
PA
25752013-08-27 Pedro Alves <palves@redhat.com>
2576
2577 * darwin-nat.c (darwin_xfer_memory): Delete.
2578 (_initialize_darwin_inferior): Don't install a
2579 deprecated_xfer_memory method.
2580
6211c335
YQ
25812013-08-27 Pedro Alves <pedro@codesourcery.com>
2582 Yao Qi <yao@codesourcery.com>
2583
2584 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2585 (parse_no_frames_option): Remove.
2586 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2587 (mi_cmd_stack_list_args): Adjust.
2588 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2589 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2590 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2591 Caller update.
2592 (list_args_or_locals): New parameter 'skip_unavailable'.
2593 Handle it.
2594 * valprint.c (scalar_type_p): Rename to ...
2595 (val_print_scalar_type_p): ... this. Make extern.
2596 (val_print, value_check_printable): Adjust.
2597 * valprint.h (val_print_scalar_type_p): Declare.
2598 * value.c (value_entirely_unavailable): New function.
2599 * value.h (value_entirely_unavailable): Declare.
2600
2601 * NEWS: Mention the new option "--skip-unavailable" to MI
2602 commands '-stack-list-locals', '-stack-list-arguments' and
2603 '-stack-list-variables'.
2604
242f1fd7
YQ
26052013-08-27 Yao Qi <yao@codesourcery.com>
2606
2607 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2608 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2609 options.
2610 * mi/mi-getopt.c (mi_getopt): Remove.
2611 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2612 'error_on_unknown'.
2613 (mi_getopt): Call mi_getopt_1.
2614 (mi_getopt_silent): New.
2615 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2616
260b681b
DE
26172013-08-26 Doug Evans <dje@google.com>
2618
779bd270
DE
2619 PR symtab/15885
2620 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2621 .gdb_index is in use.
2622 * symfile.c (reread_symbols): Reset objfile->sf.
2623
52e260a3
DE
2624 * NEWS: Document "mt print objfiles" now takes optional regexp.
2625 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2626 regexp of objfiles to print.
2627 (_initialize_symmisc): Update doc string for "mt print objfiles".
2628
260b681b
DE
2629 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2630 missing debug info checks.
2631
a85c52f2
UW
26322013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2633 Ulrich Weigand <uweigand@de.ibm.com>
2634
2635 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2636 line tables generated by XLC compiled binaries.
2637
4f00dda3
DE
26382013-08-23 Doug Evans <dje@google.com>
2639
db68bbae
DE
2640 * symmisc.c (dump_symtab): Delete prototype.
2641 (dump_msymbols, dump_objfile): Ditto.
2642 (maintenance_info_symtabs): Mark as dont_repeat.
2643 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2644
4f00dda3
DE
2645 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2646 debugging printf to better location.
2647
23d577b0
PA
26482013-08-23 Pedro Alves <palves@redhat.com>
2649
2650 * target.c (target_read_live_memory): Change type of 'ret' local
2651 to LONGEST.
2652
00d84524
PA
26532013-08-23 Pedro Alves <palves@redhat.com>
2654
2655 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2656 (remote_read_bytes): Change return type to LONGEST, and adjust to
2657 return a target_xfer_error on error.
2658 (remote_xfer_memory): Delete.
2659 (remote_flash_write): Change type of 'ret' local to LONGEST.
2660 (remote_xfer_partial, remote_xfer_partial): Adjust.
2661 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2662
1ed3ee94
PM
26632013-08-23 Pierre Muller <muller@sourceware.org>
2664
2665 ARI fix: Push # directives to start of line.
2666 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2667
9eaabc75
MW
26682013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2669
2670 PR gdb/15501
2671 * breakpoint.c (enable_command, disable_command): Iterate over
2672 all specified breakpoint locations.
2673
101158d9
LM
26742013-08-22 Luis Machado <lgustavo@codesourcery.com>
2675
2676 * common/linux-ptrace.c (linux_fork_to_function): Push #
2677 directives to the start of the line.
2678 (linux_check_ptrace_features): Fix warning message to use
2679 the "_" markup.
2680
96d7229d
LM
26812013-08-22 Luis Machado <lgustavo@codesourcery.com>
2682
2683 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2684 nat/linux-waitpid.h.
2685 (linux-waitpid.o): New object file rule.
2686 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2687 (current_ptrace_options): Moved from linux-nat.c.
2688 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2689 parameters.
2690 (linux_fork_to_function): New function.
2691 (linux_grandchild_function): Likewise.
2692 (linux_child_function): Likewise.
2693 (linux_check_ptrace_features): New function, heavily
2694 based on linux-nat.c:linux_test_for_tracefork.
2695 (linux_enable_event_reporting): New function.
2696 (ptrace_supports_feature): Likewise.
2697 (linux_supports_tracefork): Likewise.
2698 (linux_supports_traceclone): Likewise.
2699 (linux_supports_tracevforkdone): Likewise.
2700 (linux_supports_tracesysgood): Likewise.
2701 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2702 gdbserver/linux-low.c.
2703 (linux_enable_event_reporting): New declaration.
2704 (linux_supports_tracefork): Likewise.
2705 (linux_supports_traceclone): Likewise.
2706 (linux_supports_tracevforkdone): Likewise.
2707 (linux_supports_tracesysgood): Likewise.
2708 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2709 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2710 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2711 * config/arm/linux.mh (NATDEPFILES): Likewise.
2712 * config/i386/linux.mh (NATDEPFILES): Likewise.
2713 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2714 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2715 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2716 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2717 * config/mips/linux.mh (NATDEPFILES): Likewise.
2718 * config/pa/linux.mh (NATDEPFILES): Likewise..
2719 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2720 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2721 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2722 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2723 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2724 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2725 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2726 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2727 ptrace's 4th argument's types.
2728 Check the type of PTRACE_TYPE_ARG4.
2729 * configure: Regenerate.
2730 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2731 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2732 (linux_supports_tracefork_flag): Remove.
2733 (linux_supports_tracesysgood_flag): Likewise.
2734 (linux_supports_tracevforkdone_flag): Likewise.
2735 (current_ptrace_options): Moved to
2736 common/linux-ptrace.c.
2737 (linux_tracefork_child): Remove.
2738 (my_waitpid): Remove.
2739 (linux_test_for_tracefork): Renamed to
2740 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2741 (linux_test_for_tracesysgood): Remove.
2742 (linux_supports_tracesysgood): Remove.
2743 (linux_supports_tracefork): Remove.
2744 (linux_supports_tracevforkdone): Remove.
2745 (linux_enable_tracesysgood): Remove.
2746 (linux_enable_event_reporting): Remove.
2747 (linux_init_ptrace): New function.
2748 (linux_child_post_attach): Call linux_init_ptrace.
2749 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2750 (linux_child_follow_fork): Call linux_supports_tracefork
2751 and linux_supports_tracevforkdone.
2752 (linux_child_insert_fork_catchpoint): Call
2753 linux_supports_tracefork.
2754 (linux_child_insert_vfork_catchpoint): Likewise.
2755 (linux_child_set_syscall_catchpoint): Call
2756 linux_supports_tracesysgood.
2757 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2758 * nat/linux-nat.h: New file.
2759 * nat/linux-waitpid.c: New file.
2760 * nat/linux-waitpid.h: New file.
2761
9f948660
SDJ
27622013-08-22 Samuel Bronson <naesten@gmail.com>
2763
2764 ARM Linux support for `catch syscall'.
2765 * syscalls/arm-linux.py: New file.
2766 * syscalls/arm-linux.xml: Likewise.
2767 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2768 (arm_linux_init_abi): Register the new function and syscall xml file.
2769 * data-directory/Makefile.in: Install the new syscall xml file.
2770 * NEWS: Brag about this.
2771
6be7b56e
PA
27722013-08-22 Pedro Alves <palves@redhat.com>
2773
2774 PR gdb/15871
2775 * corefile.c (target_xfer_memory_error): New function.
2776 (memory_error): Defer EIO to target_memory_error.
2777 (read_memory): Use target_xfer_partial, and handle finer-grained
2778 target xfer errors.
2779 * target.c (target_xfer_error_to_string): New function.
2780 (memory_xfer_partial_1): If memory is known to be
2781 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2782 (target_xfer_partial): Make extern.
2783 * target.h (enum target_xfer_error): New enum.
2784 (target_xfer_error_to_string): Declare function.
2785 (target_xfer_partial): Declare function.
2786 (struct target_ops) <xfer_partial>: Adjust describing comment.
2787
bcbec14e
AM
27882013-08-22 Alan Modra <amodra@gmail.com>
2789
2790 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2791 * configure.tgt: Likewise as targets.
2792
fc474241
DE
27932013-08-20 Doug Evans <dje@google.com>
2794
2795 * buildsym.c (subfile_stack): Move here from buildsym.h.
2796 (pending_macros): Ditto.
2797 (get_macro_table): New function.
2798 (buildsym_init): Initialize subfile_stack.
2799 * coffread.c (type_vector,type_vector_length): Moved here from
2800 buildsym.h.
2801 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2802 (coff_symtab_read): Use it.
2803 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2804 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2805 with call to get_macro_table.
2806 * stabsread.c (type_vector,type_vector_length): Moved here from
2807 buildsym.h.
2808 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2809 * buildsym.h (get_macro_table): Declare.
2810
bec71544
TT
28112013-08-20 Tom Tromey <tromey@redhat.com>
2812
2813 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2814 Update.
2815 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2816
0002ad5f
DE
28172013-08-20 Doug Evans <dje@google.com>
2818
2819 * blockframe.c: Remove #include "psymtab.h".
2820 * cp-support.c: Ditto.
2821 * source.c: Ditto.
2822 * stack.c: Ditto.
2823
df302446
TT
28242013-08-20 Tom Tromey <tromey@redhat.com>
2825
2826 PR python/15816:
2827 * exceptions.h (return_mask): Now an enum.
2828 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2829 enum constants.
2830
df6d5441
TT
28312013-08-20 Tom Tromey <tromey@redhat.com>
2832
2833 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2834 get_objfile_arch.
2835 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2836 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2837 * jit.c (jit_object_close_impl): Update.
2838 * jv-lang.c (get_dynamics_objfile): Update.
2839 * linespec.c (add_minsym): Use get_dynamics_objfile.
2840 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2841 (allocate_objfile): Don't initialize 'gdbarch' field.
2842 (get_objfile_arch): Update.
2843 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2844 moved from...
2845 (struct objfile) <gdbarch>: ... here. Remove.
2846 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2847 get_objfile_arch.
2848 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2849
f5aee5ee
AM
28502013-08-20 Alan Modra <amodra@gmail.com>
2851
2852 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2853 for IBM long double nan and inf.
2854 (floatformat_is_negative, floatformat_classify,
2855 floatformat_mantissa): Similarly.
2856 (floatformat_ieee_single, floatformat_ieee_double,
2857 floatformat_ieee_quad, floatformat_arm_ext,
2858 floatformat_ia64_spill): Delete unused vars.
2859 (_initialize_doublest): Delete unused function.
2860 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2861 little-endian variants of floatformat_ibm_long_double.
2862
33b60d58 28632013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2864
33b60d58
LM
2865 * Makefile.in (SFILES): Remove common/target-common.c and
2866 add target/waitstatus.c.
2867 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2868 target/resume.h, target/wait.h and target/waitstatus.h.
2869 (COMMON_OBS): Remove target-common.o and add
2870 waitstatus.o.
2871 (target-common.o): Remove.
2872 (waitstatus.o): New target object file.
2873 * common/target-common.c: Move contents to
2874 target/waitstatus.c and remove.
2875 * common/target-common.h: Move contents to other files and
2876 remove.
2877 (enum resume_kind: Move to target/resume.h.
2878 (TARGET_WNOHANG): Move to target/wait.h.
2879 (enum target_waitkind): Move to target/waitstatus.h.
2880 (struct target_waitstatus): Likewise.
2881 * target.h: Do not include target-common.h and
2882 include target/resume.h, target/wait.h and
2883 target/waitstatus.h.
2884 * target/resume.h: New file.
2885 * target/wait.h: New file.
2886 * target/waitstatus.h: New file.
2887 * target/waitstatus.c: New file.
2888
12696c10
PA
28892013-08-19 Pedro Alves <palves@redhat.com>
2890
2891 * linux-nat.c (linux_test_for_tracefork)
2892 (linux_test_for_tracesysgood, linux_child_follow_fork)
2893 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2894 (linux_nat_wait_1): Extend comment.
2895 (linux_async_pipe): Add comment.
2896
ba89f962
KB
28972013-08-15 Kevin Buettner <kevinb@redhat.com>
2898
2899 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2900 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2901 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2902 Update to account for fact that PC is now a pseudo-register.
2903 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2904 cases for RL78_PC_REGNUM.
2905
35ab155d
MB
29062013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2907
2908 PR cli/15841
2909 * top.c (quit_force): Skip writing history file
2910 if input is not from terminal.
2911
0d031856
TT
29122013-08-14 Tom Tromey <tromey@redhat.com>
2913
2914 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2915 resultthreadlist>: New fields.
2916 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2917 (remote_get_threadlist, remote_threadlist_iterator): Use
2918 new fields. Remove static variables.
2919
ee154bee
TT
29202013-08-14 Tom Tromey <tromey@redhat.com>
2921
2922 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2923 remote_watch_data_address>: New fields.
2924 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2925 (process_stop_reply, remote_wait_as)
2926 (remote_check_watch_resources, remote_stopped_data_address): Update.
2927
88b496c3
TT
29282013-08-14 Tom Tromey <tromey@redhat.com>
2929
2930 * remote.c (struct remote_state) <async_client_callback,
2931 async_client_context>: New fields.
2932 (async_client_callback, async_client_context): Remove.
2933 (remote_async_serial_handler, remote_async): Update.
2934
2f65bcb7
TT
29352013-08-14 Tom Tromey <tromey@redhat.com>
2936
2937 * remote.c (sizeof_pkt): Remove.
2938 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2939
b80fafe3
TT
29402013-08-14 Tom Tromey <tromey@redhat.com>
2941
2942 * remote.c (struct remote_state) <use_threadinfo_query,
2943 use_threadextra_query>: New fields.
2944 (remote_threads_info, remote_threads_extra_info)
2945 (remote_open_1): Update.
2946
8e88304f
TT
29472013-08-14 Tom Tromey <tromey@redhat.com>
2948
2949 * remote.c (struct remote_state) <finished_object,
2950 finished_annex, finished_offset>: New fields.
2951 (remote_read_qxfer): Use remote_state fields; remove static
2952 variables.
2953
280ceea3
TT
29542013-08-14 Tom Tromey <tromey@redhat.com>
2955
2956 * remote.c (struct remote_state) <last_sent_step>:
2957 New field.
2958 (last_sent_step): Remove.
2959 (remote_resume, remote_wait_as): Update.
2960
b73be471
TT
29612013-08-14 Tom Tromey <tromey@redhat.com>
2962
2963 * remote.c (struct remote_state) <last_sent_signal>:
2964 New field.
2965 (last_sent_signal): Remove.
2966 (new_remote_state, remote_resume, remote_wait_as): Update.
2967
5e4a05c4
TT
29682013-08-14 Tom Tromey <tromey@redhat.com>
2969
2970 * remote.c (struct remote_state) <last_program_signals_packet>:
2971 New field.
2972 (last_program_signals_packet): Remove.
2973 (remote_program_signals, remote_open_1): Update.
2974
747dc59d
TT
29752013-08-14 Tom Tromey <tromey@redhat.com>
2976
2977 * remote.c (struct remote_state) <last_pass_packet>:
2978 New field.
2979 (last_pass_packet): Remove.
2980 (remote_pass_signals, remote_open_1): Update.
2981
262e1174
TT
29822013-08-14 Tom Tromey <tromey@redhat.com>
2983
2984 * remote.c (struct remote_state) <remote_traceframe_number>:
2985 New field.
2986 (remote_traceframe_number): Remove.
2987 (new_remote_state, remote_open_1, set_remote_traceframe)
2988 (remote_trace_find): Update.
2989
47f8a51d
TT
29902013-08-14 Tom Tromey <tromey@redhat.com>
2991
2992 * remote.c (struct remote_state) <general_thread, continue_thread>:
2993 New fields.
2994 (general_thread, continue_thread): Remove.
2995 (record_currthread, set_thread, set_general_process)
2996 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2997 (extended_remote_mourn_1): Update.
2998
5d93a237
TT
29992013-08-14 Tom Tromey <tromey@redhat.com>
3000
3001 * remote.c (struct remote_state) <remote_desc>: New field.
3002 (remote_desc): Remove.
3003 (remote_threads_info, remote_threads_extra_info, remote_close)
3004 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3005 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3006 (remote_hostio_send_command, remote_file_put, remote_file_get)
3007 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3008 (remote_async, remote_new_objfile, set_range_stepping): Update.
3009
cf792862
TT
30102013-08-14 Tom Tromey <tromey@redhat.com>
3011
3012 * remote.c (remote_state): Now a pointer.
3013 (get_remote_state_raw): Update.
3014 (new_remote_state): New function.
3015 (_initialize_remote): Use new_remote_state.
3016
dc473cfb
TT
30172013-08-14 Tom Tromey <tromey@redhat.com>
3018
3019 * remote.c (remote_protocol_features): Now const.
3020
85ec6ce7
TT
30212013-08-14 Tom Tromey <tromey@redhat.com>
3022
3023 * remote.c (crc32_table, crc32): Remove.
3024 (remote_verify_memory): Use xcrc32.
3025
73033f12
SDJ
30262013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3027
3028 * value.h (create_internalvar_type_lazy): Adjust prototype
3029 declaration.
3030
5c30d39a
AB
30312013-08-13 Andrew Burgess <aburgess@broadcom.com>
3032
3033 * common/format.c (parse_format_string): Don't allow '#' flag for
3034 pointer arguments in format string.
3035
1a66331e
PM
30362013-08-13 Pierre Muller <muller@sourceware.org>
3037
fde605f3 3038 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3039 if rl_get_screen_size did not return useful values.
3040
b4013987
AA
30412013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3042
3043 PR breakpoints/15117
3044 * linespec.c (linespec_parse_basic): Check for convenience
3045 variable or history value while parsing.
3046
959b6a66
SDJ
30472013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3048
3049 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3050 AVR.
3051 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3052 different signals between the generic Linux kernel implementation
3053 and AVR's.
3054 (avr_linux_gdb_signal_from_target): Delete.
3055 (avr_linux_gdb_signal_to_target): Delete.
3056 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3057
24a55014
DE
30582013-08-09 Doug Evans <dje@google.com>
3059
3060 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3061 entries.
3062
eb14d406
SDJ
30632013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3064
3065 * linux-tdep.c: Define enum with generic signal numbers.
3066 (linux_gdb_signal_from_target): New function.
3067 (linux_gdb_signal_to_target): Likewise.
3068 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3069 methods to the functions above.
3070 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3071 (linux_gdb_signal_to_target): Likewise.
3072 * alpha-linux-tdep.c: Define new enum with signals different
3073 from generic Linux kernel.
3074 (alpha_linux_gdb_signal_from_target): New function.
3075 (alpha_linux_gdb_signal_to_target): Likewise.
3076 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3077 with the functions mentioned above.
3078 * avr-tdep.c: Define enum with differences between Linux kernel
3079 and AVR signals.
3080 (avr_linux_gdb_signal_from_target): New function.
3081 (avr_linux_gdb_signal_to_target): Likewise.
3082 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3083 the functions mentioned above.
3084 * sparc-linux-tdep.c: Define enum with differences between SPARC
3085 and generic Linux kernel signal numbers.
3086 (sparc32_linux_gdb_signal_from_target): New function.
3087 (sparc32_linux_gdb_signal_to_target): Likewise.
3088 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3089 to the functions defined above.
3090 * xtensa-linux-tdep.c: Define enum with differences between
3091 Xtensa and Linux kernel generic signals.
3092 (xtensa_linux_gdb_signal_from_target): New function.
3093 (xtensa_linux_gdb_signal_to_target): Likewise.
3094 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3095 to the functions defined above.
3096 * mips-linux-tdep.c: Define enum with differences between
3097 signals in MIPS and Linux kernel generic ones.
3098 (mips_gdb_signal_to_target): New function.
3099 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3100 only different signals from the Linux kernel generic.
3101 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3102 the functions defined above.
3103 * mips-linux-tdep.h (enum mips_signals): Remove.
3104
156d08c8
PA
31052013-08-09 Pedro Alves <palves@redhat.com>
3106
3107 * avr-tdep.c (XMALLOC): Delete macro.
3108 * cli/cli-dump.c (XMALLOC): Delete macro.
3109
db229724
PA
31102013-08-09 Pedro Alves <palves@redhat.com>
3111
3112 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3113 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3114 (fopen_with_cleanup, add_dump_command): Make static.
3115 * cli/cli-dump.h: Delete file.
3116 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3117 cli/cli-dump.h.
3118
3f12a589
PA
31192013-08-09 Pedro Alves <palves@redhat.com>
3120
3121 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3122 error message.
3123
c718be47
PA
31242013-08-09 Pedro Alves <palves@redhat.com>
3125
156d08c8 3126 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
3127 error message.
3128
1e351ed1
PA
31292013-08-09 Pedro Alves <palves@redhat.com>
3130
3131 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3132 (gcore_command): Use tilde_expand here, and when showing the
3133 filename to the user, show the expanded version.
3134
1ed8d800
YQ
31352013-08-09 Yao Qi <yao@codesourcery.com>
3136
3137 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3138 'entryval' is set.
3139
47ecca85
PA
31402013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3141
3142 * gcore.c (create_gcore_bfd): Use tilde_expand.
3143
82a0a75f
YQ
31442013-08-08 Yao Qi <yao@codesourcery.com>
3145
3146 * frame.h (read_frame_local): Declare.
3147 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3148 read_frame_local.
3149 * stack.c (read_frame_local): New.
3150
5c4aa40b
YQ
31512013-08-08 Yao Qi <yao@codesourcery.com>
3152
3153 * mi/mi-cmd-stack.c: Update comments to function
3154 list_args_or_locals.
3155
b93601f3
TT
31562013-08-07 Tom Tromey <tromey@redhat.com>
3157
3158 PR symtab/15028:
3159 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3160 (process_psymtab_comp_unit_reader): Use it.
3161 (process_psymtab_comp_unit): Update. Add "pretend_language"
3162 argument.
3163 (dwarf2_build_psymtabs_hard): Update.
3164 (scan_partial_symbols): Pass CU's language to
3165 process_psymtab_comp_unit.
3166
fa760f46
TT
31672013-08-07 Tom Tromey <tromey@redhat.com>
3168
3169 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3170 (dwarf2_gdb_index_functions): Update.
3171 * psymtab.c (find_symbol_file_from_partial): Remove.
3172 (psym_functions): Update.
3173 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3174 Remove.
3175
bf6d8a91
TT
31762013-08-07 Tom Tromey <tromey@redhat.com>
3177
3178 * symfile.c (set_initial_language): Look up "main" symbol
3179 and use its language.
3180 * symtab.c (find_main_filename): Remove.
3181 * symtab.h (find_main_filename): Remove.
3182
f9125b6c
TT
31832013-08-07 Tom Tromey <tromey@redhat.com>
3184
3185 * dwarf2read.c (recursively_compute_inclusions): Add
3186 "immediate_parent" argument. Set symtab's "user" field
3187 if not set.
3188 (compute_symtab_includes): Update.
3189
fdbb204b
TT
31902013-08-07 Tom Tromey <tromey@redhat.com>
3191
3192 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3193 when adding label symbols.
3194
49de1690
UW
31952013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3196 Ulrich Weigand <uweigand@de.ibm.com>
3197
3198 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3199 * configure.host (powerpc64-*-aix*): Likewise.
3200
b08ee99f
UW
32012013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3202 Ulrich Weigand <uweigand@de.ibm.com>
3203
3204 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3205 is defined.
3206 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3207 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3208 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3209 * configure.ac: Check for ptrace64.
3210 * configure, config.in: Regenerate.
3211
fecf803e
UW
32122013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3213 Ulrich Weigand <uweigand@de.ibm.com>
3214
3215 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3216 Call ptrace64 instead of ptrace if defined.
3217 Add macro addr_ptr to take care of ptrace address argument.
3218 (pdc_read_regs): Likewise.
3219 (pdc_write_regs): Likewise.
3220 (aix_thread_resume): Likewise.
3221 (fetch_regs_kernel_thread): Likewise.
3222 (store_regs_kernel_thread): Likewise.
3223
3bb5e4a8
AB
32242013-08-07 Anton Blanchard <anton@samba.org>
3225
3226 * MAINTAINERS: Add myself to Write After Approval.
3227
12070676
TT
32282013-08-05 Tom Tromey <tromey@redhat.com>
3229
3230 * aix-thread.c (_initialize_aix_thread): Use
3231 complete_target_initialization.
3232 * bsd-uthread.c (_initialize_bsd_uthread): Use
3233 complete_target_initialization.
3234 * dec-thread.c (_initialize_dec_thread): Use
3235 complete_target_initialization.
3236 * ravenscar-thread.c (_initialize_ravenscar): Use
3237 complete_target_initialization.
3238 * sol-thread.c (_initialize_sol_thread): Use
3239 complete_target_initialization.
3240 * spu-multiarch.c (_initialize_spu_multiarch): Use
3241 complete_target_initialization.
3242
7c7b6655
TT
32432013-08-05 Tom Tromey <tromey@redhat.com>
3244
3245 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3246 * ada-lang.c (ada_lookup_simple_minsym): Return
3247 bound_minimal_symbol.
3248 * ada-lang.h (ada_lookup_simple_minsym): Update.
3249 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3250 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3251 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3252 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3253 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3254 * minsyms.c (msymbol_objfile): Remove.
3255 (lookup_minimal_symbol_internal): New function, from
3256 lookup_minimal_symbol.
3257 (lookup_minimal_symbol): Rewrite using
3258 lookup_minimal_symbol_internal.
3259 (lookup_bound_minimal_symbol): New function.
3260 * minsyms.h (msymbol_objfile): Remove.
3261 (lookup_bound_minimal_symbol): Declare.
3262 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3263 * parse.c (write_exp_msymbol): Change parameter to a
3264 bound_minimal_symbol.
3265 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3266 * parser-defs.h (write_exp_msymbol): Update.
3267 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3268 * symfile.c (simple_read_overlay_table): Use
3269 lookup_bound_minimal_symbol.
3270 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3271 (search_symbols): Likewise.
3272 (print_msymbol_info): Take a bound_minimal_symbol argument.
3273 (symtab_symbol_info, rbreak_command): Update.
3274 * symtab.h (struct symbol_search) <msymbol>: Change type
3275 to bound_minimal_symbol.
3276 * valops.c (find_function_in_inferior): Use
3277 lookup_bound_minimal_symbol.
3278 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3279
934b9bac
JK
32802013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3281
3282 Code cleanup.
3283 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3284 to ...
3285 (async_cleanup_sigint_signal_handler): ... this.
3286 (initialize_sigint_signal_handler): Remove declaration.
3287 (handle_remote_sigint): Rename the declaration to ...
3288 (async_handle_remote_sigint): ... this.
3289 (handle_remote_sigint_twice): Rename the declaration to ...
3290 (async_handle_remote_sigint_twice): ... this.
3291 (async_remote_interrupt, async_remote_interrupt_twice)
3292 (remote_interrupt): Remove the declarations.
3293 (remote_interrupt_twice): Rename the declaration ...
3294 (sync_remote_interrupt_twice): ... this.
3295 (sigint_remote_twice_token): Rename the variable to ...
3296 (async_sigint_remote_twice_token): ... this.
3297 (sigint_remote_token): Rename the variable to ...
3298 (async_sigint_remote_token): ... this.
3299 (initialize_sigint_signal_handler): Rename the function to ...
3300 (async_initialize_sigint_signal_handler): ... this. Update the name
3301 inside.
3302 (handle_remote_sigint): Rename the function to ...
3303 (async_handle_remote_sigint): ... this. Update the names inside.
3304 (handle_remote_sigint_twice): Rename the function to ...
3305 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3306 (cleanup_sigint_signal_handler): Rename the function to ...
3307 (async_cleanup_sigint_signal_handler): ... this.
3308 (remote_interrupt): Rename the function to ...
3309 (sync_remote_interrupt): this. Update the names inside.
3310 (remote_interrupt_twice): Rename the function to ...
3311 (sync_remote_interrupt_twice): this. Update the names inside.
3312 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3313 (_initialize_remote): Update the names inside.
3314
3a1115a0
TT
33152013-08-02 Tom Tromey <tromey@redhat.com>
3316
3317 PR symtab/15719:
3318 * breakpoint.c (update_watchpoint, watchpoint_check)
3319 (watch_command_1): Update.
3320 * eval.c (fetch_subexp_value): Add "preserve_errors"
3321 parameter.
3322 * ppc-linux-nat.c (check_condition): Update.
3323 * value.h (fetch_subexp_value): Update.
3324
58b19776
AB
33252013-08-02 Andrew Burgess <aburgess@broadcom.com>
3326
3327 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3328 add_file_handler.
3329
ec94af83
DE
33302013-08-01 Doug Evans <dje@google.com>
3331
7ee85ab1
DE
3332 PR symtab/15691
3333 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3334 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3335 Add assert of sig_entry->dwo_unit == NULL.
3336 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3337 had already been read.
3338 (read_signatured_type): Set per_cu.tu_read.
3339
b846d303
DE
3340 PR symtab/15695
3341 * valops.c (value_struct_elt): Add missing call to check_typedef.
3342 (value_find_oload_method_list): Ditto.
3343
b52109bc
DE
3344 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3345 effectively, struct symbol_search **.
3346 (make_cleanup_free_search_symbols): Change arg to struct
3347 symbol_search **. All callers updated.
3348 (compare_search_syms): Compare symtab file name and block as well.
3349 (search_symbols_equal): New function.
3350 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3351 New args new_head, new_tail. Result is now void. Remove dups after
3352 sorting the symbols.
3353 (search_symbols): Sort all found symbols once, after all have been
3354 found, and remove duplicates. Simplify cleanup tracking of result.
3355 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3356
ec94af83
DE
3357 Further workarounds for binutils/15021.
3358 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3359 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3360 Watch for duplicate symtabs coming from type units.
3361 (compute_symtab_includes): Update call to
3362 recursively_compute_inclusions. Build vector of included symtabs
3363 instead of per_cus.
3364 * symtab.h (symtab_ptr): New typedef.
3365 (DEF_VEC_P (symtab_ptr)): New VEC type.
3366 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3367 instead.
3368
b2ae85cf
AB
33692013-08-01 Andrew Burgess <aburgess@broadcom.com>
3370
3371 * cli/cli-script.c (script_from_file): Remove use of
3372 error_pre_print.
3373 * main.c (captured_main): Remove use of error_pre_print and
3374 quit_pre_print.
3375 * utils.c (error_pre_print, quit_pre_print): Remove.
3376 * utils.h (error_pre_print, quit_pre_print): Likewise.
3377
645eab03
YQ
33782013-08-01 Yao Qi <yao@codesourcery.com>
3379
3380 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3381 with mi_getopt.
3382 (mi_cmd_stack_list_variables): Likewise.
3383
16f92dd4
AB
33842013-07-31 Andrew Burgess <aburgess@broadcom.com>
3385
3386 * exceptions.c (deprecated_throw_reason): Remove.
3387 * exceptions.h (deprecated_throw_reason): Remove.
3388
13f78033
AB
33892013-07-31 Andrew Burgess <aburgess@broadcom.com>
3390
3391 * remote-mips.c (mips_error): Replace use of
3392 deprecated_throw_reason with throw_verror. Use the error message
3393 passed to mips_error as the error message for throw_verror.
3394
039e3c22
AB
33952013-07-31 Andrew Burgess <aburgess@broadcom.com>
3396
3397 * monitor.c (monitor_interrupt_query): Replace use of
3398 deprecated_throw_reason with quit.
3399 * nto-procfs.c (interrupt_query): Likewise.
3400 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3401 * remote-mips.c (mips_kill): Likewise.
3402 * remote.c (interrupt_query): Likewise.
3403
8150913b
AB
34042013-07-31 Andrew Burgess <aburgess@broadcom.com>
3405
3406 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3407 with call to fatal.
3408
de74e63a
YQ
34092013-07-31 Pedro Alves <pedro@codesourcery.com>
3410 Yao Qi <yao@codesourcery.com>
3411
3412 * tracepoint.c (trace_dump_command): Select the current frame.
3413
247f5c4f
DE
34142013-07-30 Doug Evans <dje@google.com>
3415
3416 * dwarf2read.c (process_queue): Add type signature to debug output.
3417
11b4b7cc
AB
34182013-07-30 Andrew Burgess <aburgess@broadcom.com>
3419
3420 * value.c (value_fetch_lazy): Mark optimized out values as such
3421 rather than raising an error.
3422
b0c54aa5
AB
34232013-07-30 Andrew Burgess <aburgess@broadcom.com>
3424
3425 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3426 before checking which bits of the parent, not the child, value are
3427 valid.
3428
97c85fc6
MB
34292013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3430
3431 PR gdb/15715
3432 * top.c: Include "filenames.h".
3433 (set_history_filename): New function.
3434 (init_main): Install it as set hook of the "set history filename"
3435 command.
3436
ff39bb5e
SA
34372013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3438
3439 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3440 attribute parameter.
3441 (dwarf2_const_value_data): Constify struct attribute parameter.
3442 (dwarf2_const_value): Constify struct attribute parameter.
3443 (dwarf2_const_value_attr): Constify struct attribute parameter.
3444 (lookup_die_type): Constify struct attribute parameter.
3445 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3446 (follow_die_ref_or_sig): Constify struct attribute parameter.
3447 (follow_die_ref): Constify struct attribute parameter.
3448 (follow_die_sig): Constify struct attribute parameter.
3449 (get_DW_AT_signature_type): Constify struct attribute parameter.
3450 (get_type_unit_group): Constify struct attribute parameter.
3451 (fill_in_loclist_baton): Constify struct attribute parameter.
3452 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3453 (type_unit_group): Constify struct attribute parameter.
3454
6e5a29e1
SA
34552013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3456
3457 * dwarf2read.c (attr_form_is_block): Make argument const.
3458 (attr_form_is_section_offset): Make argument const.
3459 (attr_form_is_constant): Make argument const.
3460 (attr_form_is_ref): Make argument const.
3461
7771576e
SA
34622013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3463
3464 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3465 All uses updated.
3466 (attr_form_is_ref): Moved below attr_form_is_constant.
3467
a94e8645
DE
34682013-07-29 Doug Evans <dje@google.com>
3469
bb5291d0
DE
3470 * main.c (captured_command_loop): Tweak comment.
3471
b5419e49
DE
3472 * target.c (target_async_permitted_1): Fix comment.
3473
b2d23133
DE
3474 * symtab.c (iterate_over_some_symtabs): Add comment.
3475
a94e8645
DE
3476 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3477
7a60ad40
YQ
34782013-07-27 Yao Qi <yao@codesourcery.com>
3479
3480 * NEWS: Mention that GDBserver now supports hardware
3481 watchpoints on the MIPS GNU/Linux target.
3482
aaee2056
YQ
34832013-07-27 Yao Qi <yao@codesourcery.com>
3484
3485 * Makefile.in (HFILES_NO_SRCDIR): Add
3486 common/mips-linux-watch.h.
3487 (mips-linux-watch.o): New rule.
3488 * common/mips-linux-watch.c: New.
3489 * common/mips-linux-watch.h: New.
3490 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3491 * mips-linux-nat.c: Include mips-linux-watch.h.
3492 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3493 to common/mips-linux-watch.h.
3494 (MAX_DEBUG_REGISTER): Likewise.
3495 (enum pt_watch_style): Likewise.
3496 (struct mips32_watch_regs): Likewise.
3497 (struct mips64_watch_regs): Likewise.
3498 (struct pt_watch_regs): Likewise.
3499 (struct mips_watchpoint): Likewise.
3500 (mips_linux_watch_get_irw_mask): Move to
3501 common/mips-linux-watch.c.
3502 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3503 (mips_linux_watch_get_watchlo): Likewise.
3504 (mips_linux_watch_set_watchlo): Likewise.
3505 (mips_linux_watch_get_watchhi): Likewise.
3506 (mips_linux_watch_set_watchhi): Likewise.
3507 (mips_linux_read_watch_registers): Likewise.
3508 (mips_linux_watch_type_to_irw): Likewise.
3509 (mips_linux_stopped_data_address, fill_mask): Likewise.
3510 (mips_linux_watch_try_one_watch): Likewise.
3511 (mips_linux_watch_populate_regs): Likewise.
3512
b3436450
YQ
35132013-07-27 Yao Qi <yao@codesourcery.com>
3514
3515 * mips-linux-nat.c (get_irw_mask): Rename to ...
3516 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3517 'set' to 'n'. Update function comment. All callers changed.
3518 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3519 function comment. All callers changed.
3520 (get_num_valid): Rename to ...
3521 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3522 'set' to 'n'. Update function comment. All callers changed.
3523 (get_watchlo): Rename to ...
3524 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3525 'set' to 'n'. Update function comment. All callers changed.
3526 (set_watchlo): Rename to ...
3527 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3528 'set' to 'n'. Update function comment. All callers changed.
3529 (get_watchhi): Rename to ...
3530 (mips_linux_watch_get_watchhi): ... this. Update function
3531 comment. All callers changed.
3532 (set_watchhi): Rename to ...
3533 (mips_linux_watch_set_watchhi): ... this. Update function
3534 comment. All callers changed.
3535 (mips_linux_read_watch_registers): Update function comment.
3536 Add new parameters 'lwpid', 'watch_readback', and
3537 'watch_readback_valid'. Update.
3538 (type_to_irw): Rename to ...
3539 (mips_linux_watch_type_to_irw): ... this. Update function
3540 comment. All callers changed.
3541 (fill_mask): Update function comment.
3542 (try_one_watch): Rename to ...
3543 (mips_linux_watch_try_one_watch): ... this. Change the type
3544 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3545 (populate_regs_from_watches): Rename to ...
3546 (mips_linux_watch_populate_regs): ... this. Add parameter
3547 'current_watches'. All callers changed.
3548
9be14b81
YQ
35492013-07-27 Yao Qi <yao@codesourcery.com>
3550
3551 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3552 the code.
3553 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3554 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3555 (struct pt_watch_regs): Likewise.
3556 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3557 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3558 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3559 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3560 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3561
de6f69ad
YQ
35622013-07-27 Yao Qi <yao@codesourcery.com>
3563
3564 * breakpoint.h: Include break-common.h.
3565 (enum target_hw_bp_type): Move to ...
3566 * common/break-common.h: ... here. New.
3567
6f64ef53
PA
35682013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3569
3570 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3571 process group regardless of having tty on stdin.
3572
6107e809
DE
35732013-07-25 Doug Evans <dje@google.com>
3574
3575 * linux-fork.h (detach_fork): Delete.
3576
7fdc1521
TT
35772013-07-25 Tom Tromey <tromey@redhat.com>
3578
3579 PR remote/15256, PR remote/15266:
3580 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3581 * monitor.c (monitor_detach): Use unpush_target.
3582 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3583 * remote-mips.c (mips_detach): Use unpush_target. Don't
3584 call mips_close.
3585 * remote-sim.c (gdbsim_detach): Use unpush_target.
3586 * target.c (pop_target): Remove.
3587 (pop_all_targets_above): Don't call target_close.
3588 (target_close): Assert that the target is unpushed.
3589 * target.h (pop_target): Don't declare.
3590 * tracepoint.c (tfile_open): Use unpush_target.
3591
c22a2b88
TT
35922013-07-25 Tom Tromey <tromey@redhat.com>
3593
3594 * linux-thread-db.c (init_thread_db_ops): Call
3595 complete_target_initialization.
3596 (_initialize_thread_db): Don't call add_target.
3597 * target.c (complete_target_initialization): New function.
3598 (add_target_with_completer): Call it.
3599 * target.h (complete_target_initialization): Declare.
3600
cbb6aada
MK
36012013-07-25 Mark Kettenis <kettenis@gnu.org>
3602
3603 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3604 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3605 (HPPANBSD_SIZEOF_GREGS): New define.
3606 (hppaobsd_supply_gregset): Handle additional registers.
3607 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3608 we provide more registers now.
3609 (hppabsd_supply_gregset): Supply additional registers.
3610 (hppabsd_collect_gregset): Collect additional registers.
3611
17767988
MK
36122013-07-25 Mark Kettenis <kettenis@gnu.org>
3613
3614 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3615 (hppabsd_dwarf2_frame_init_reg): New function.
3616 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3617
fdc8aae8
AB
36182013-07-25 Andrew Burgess <aburgess@broadcom.com>
3619
3620 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3621 'z' format code. Remove error for optimized out values, standard
3622 code will handle these fine.
3623
6fbe845e
AB
36242013-07-25 Andrew Burgess <aburgess@broadcom.com>
3625
3626 * NEWS: Mention new 'z' formatter.
3627 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3628 (_initialize_printcmd): Mention 'z' formatter in help text of the
3629 'x' command.
3630
3373342d
MR
36312013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3632
3633 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3634 formatting.
3635
25f9533e
SDJ
36362013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3637
3638 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3639 interface can evaluate arguments. Fallback to the old mode if it
3640 cannot.
3641 (create_exception_master_breakpoint): Likewise.
3642 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3643 (struct sym_probe_fns elf_probe_fns): Export function above to the
3644 probe interface.
3645 * probe.c (can_evaluate_probe_arguments): New function.
3646 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3647 function pointer.
3648 (can_evaluate_probe_arguments): New function prototype.
3649 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3650 probe interface can evaluate arguments. Fallback to the old mode
3651 if it cannot.
3652 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3653 interface can evaluate arguments. Warning the user if it cannot.
3654 (stap_can_evaluate_probe_arguments): New function.
3655 (struct probe_ops stap_probe_ops): Export function above to the
3656 probe interface.
3657 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3658 New function pointer.
3659
3360c0bf
LM
36602013-07-24 Luis Machado <lgustavo@codesourcery.com>
3661
3662 * Makefile.in (SFILES): Add common/target-common.c.
3663 Add common/target-common.h to headers.
3664 (COMMON_OBS): Add target-common.o.
3665 (target-common.o): New target.
3666 * linux-nat.h (resume_kind): Move to common/target-common.h.
3667 * target.c (target_waitstatus_to_string): Move to
3668 common/target-common.c.
3669 * target.h: Include target-common.h.
3670 (target_waitkind): Move to common/target-common.h.
3671 (target_waitstatus): Likewise.
3672 (TARGET_WNOHANG): Likewise.
3673 * common/target-common.c: New file.
3674 * common/target-common.h: New file.
3675
6656a72d
DE
36762013-07-24 Doug Evans <dje@google.com>
3677
3678 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3679 a warning.
3680
6df81a63
YQ
36812013-07-23 Yao Qi <yao@codesourcery.com>
3682
3683 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3684 parameter 'gdbarch'.
3685 (i386_stack_tramp_frame_sniffer): Caller update.
3686 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3687 parameter 'gdbarch' and 'target'.
3688 (i386_linux_core_read_description): Caller update.
3689 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3690 Likewise.
3691 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3692 declaration.
3693
365156ad
TT
36942013-07-23 Tom Tromey <tromey@redhat.com>
3695
3696 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3697 2013-07-22.
3698
046ac79f
JK
36992013-07-22 Doug Evans <dje@google.com>
3700
3701 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3702 * exec.c (exec_close): Update call to remove_target_sections.
3703 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3704 * solib.c (update_solib_list): Ditto.
3705 (reload_shared_libraries_1): Ditto.
3706 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3707 * target.h (struct target_section): Rename key to owner.
3708 All uses updated.
046ac79f 3709
29b2cc46
TT
37102013-07-22 Tom Tromey <tromey@redhat.com>
3711
3712 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3713
d1160018
TT
37142013-07-22 Tom Tromey <tromey@redhat.com>
3715
3716 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3717 Simplify cleanup handling.
3718
2f324bf6
TT
37192013-07-22 Tom Tromey <tromey@redhat.com>
3720
3721 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3722 on all return paths.
3723
e23b9d6e
UW
37242013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3725
3726 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3727 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3728 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3729
1cf55f60
PM
37302013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3731
3732 * top.c (print_gdb_version): Add help, apropos description and
3733 url to online documentation.
3734
fa876972
HZ
37352013-07-19 Hui Zhu <hui@codesourcery.com>
3736
3737 PR gdb/15692
3738 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3739
1527aea8
YQ
37402013-07-19 Yao Qi <yao@codesourcery.com>
3741
3742 * target.c (update_current_target): Change the default action
3743 of 'to_traceframe_info' from tcomplain to return_zero.
3744 * target.h (struct target_ops) <to_traceframe_info>: Add more
3745 comments.
3746 * valops.c (read_value_memory): Call
3747 traceframe_available_memory unconditionally.
3748
886f230e
YQ
37492013-07-18 Yao Qi <yao@codesourcery.com>
3750
3751 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3752 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3753 symbol without prefix. If found, set its type to
3754 'mst_solib_trampoline'.
3755
16419bae
DE
37562013-07-17 Doug Evans <dje@google.com>
3757
e7045703
DE
3758 * NEWS: Mention "set print raw frame-arguments".
3759 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3760 * stack.c (print_raw_frame_arguments): New static global.
3761 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3762 (_initialize_stack): New command "set/show print raw frame-arguments".
3763 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3764 (set_print_raw, show_print_raw): New functions.
3765 (_initialize_valprint): New prefix command "set/show print raw".
3766 * valprint.h (value_print_options): Improve comments.
3767
453e48a5
DE
3768 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3769 of all *list variables.
3770
16419bae
DE
3771 * gdbcmd.h (togglelist): Delete.
3772 * cli/cli-cmds.c (togglelist): Delete.
3773 (init_cmd_lists): Update.
3774 * cli/cli-cmds.h (togglelist): Delete.
3775
626f2d1c
TT
37762013-07-17 Tom Tromey <tromey@redhat.com>
3777
3778 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3779 dwarf2_per_objfile.
3780
57e6060e
DE
37812013-07-16 Doug Evans <dje@google.com>
3782
3783 * nto-tdep.c (nto_relocate_section_addresses): Update,
3784 target_section.bfd deleted.
3785 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3786 * s390-tdep.c (s390_load): Ditto.
3787 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3788
5ea5559b
AB
37892013-07-16 Andrew Burgess <aburgess@broadcom.com>
3790
3791 * common/format.c (parse_format_string): Add checks for NULL
3792 character before calling strchr.
3793
2b2848e2
DE
37942013-07-16 Doug Evans <dje@google.com>
3795
2c571006
DE
3796 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3797 temp_pathname argument.
3798 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3799 when opening the file fails.
3800
2b2848e2
DE
3801 * target.h (struct target_section): Delete member bfd.
3802 All users updated to use the_bfd_section->owner instead.
3803 * exec.c (add_to_section_table): Assert bfd is expected value.
3804 Remove initialization of target_section.bfd.
3805 (remove_target_sections): Update.
3806 (section_table_available_memory): Update.
3807 (section_table_xfer_memory_partial): Update.
3808 (print_section_info): Update.
3809 (exec_set_section_address): Update.
3810 * record-full.c (record_full_core_xfer_partial): Update.
3811 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3812 * solib-target.c (solib_target_relocate_section_addresses): Update.
3813 * symfile.c (build_section_addr_info_from_section_table): Update.
3814 * target.c (memory_xfer_live_readonly_partial): Update.
3815 (memory_xfer_partial_1): Update.
3816
926bf92d
UW
38172013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3818
3819 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3820 now available for embedded (BookE) and server (BookS) processors,
3821 correct mentions of 'booke' and adjust comments accordingly in order to
3822 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3823 (have_ptrace_booke_interface): Rename function and variable
3824 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3825 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3826 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3827 'hwdebug_point_cmp'. Update all uses.
3828 (booke_find_thread_points_by_tid): Rename function
3829 'booke_find_thread_points_by_tid' to
3830 'hwdebug_find_thread_points_by_tid'. Update all uses.
3831 (booke_insert_point): Rename function 'booke_insert_point' to
3832 'hwdebug_insert_point'. Update all uses.
3833 (booke_remove_point): Rename function 'booke_remove_point' to
3834 'hwdebug_remove_point'. Update all uses.
3835
d929bc19
MR
38362013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3837
3838 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3839 numbers with enum values.
3840
054e8d9e
AA
38412013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3842
3843 PR threads/13217
3844 * thread.c (thread_apply_all_command): Check for valid threads
3845 and thread count.
3846 (thread_array_cleanup): New struct.
3847 (set_thread_refcount): New function.
3848
cf006359
AB
38492013-07-11 Andrew Burgess <aburgess@broadcom.com>
3850
3851 * infcmd.c (default_print_one_register_info): Reuse function
3852 print_hex_chars.
3853
94e36acc
TT
38542013-07-10 Tom Tromey <tromey@redhat.com>
3855
3856 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3857 (ada-exp.o): New target.
3858
915dd369
SDJ
38592013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3860
3861 * mt-tdep.c (mt_registers_info): Call
3862 get_no_prettyformat_print_options instead of
3863 get_raw_print_options (regression by last patch from Doug
3864 Evans).
3865
eca07816
JB
38662013-07-09 Pedro Alves <palves@redhat.com>
3867
3868 Checked in by Joel Brobecker <brobecker@adacore.com>.
3869 * ada-lang.c (coerce_unspec_val_to_type): Use
3870 value_optimized_out_const.
3871 * value.c (value_optimized_out_const): New function.
3872 * value.h (value_optimized_out_const): New declaration.
3873
2a998fc0
DE
38742013-07-09 Doug Evans <dje@google.com>
3875
3876 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3877 Enum values rename as well. All uses updated.
3878 * valprint.h (value_print_options): Rename member pretty to
3879 pretty format. Rename member prettyprint_arrays to
3880 prettyformat_arrays. Rename member prettyprint_structs to
3881 prettyformat_structs. All uses updated.
3882 (get_no_prettyformat_print_options): Renamed from
3883 get_raw_print_options.
3884 * valprint.c (get_no_prettyformat_print_options): Renamed from
3885 get_raw_print_options. All callers updated.
3886 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3887 All callers updated.
3888 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3889 All callers updated.
3890 (_initialize_valprint): Improve help text for "set print pretty" and
3891 "set print arrays".
3892
466c1fca
AB
38932013-07-09 Andrew Burgess <aburgess@broadcom.com>
3894
3895 * value.c (value_bits_valid): Revert previous change, and change
3896 by Pedro on 2013-07-04, due to regressions in
3897 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3898
ad0f0303
AB
38992013-07-08 Andrew Burgess <aburgess@broadcom.com>
3900 Pedro Alves <palves@redhat.com>
3901
3902 * value.c (value_bits_valid): If the value is not lval_computed
3903 or has no check validity handler then the answer is the
3904 optimized_out flag, otherwise defer to the handler.
3905
b187bec1
EZ
39062013-07-06 Eli Zaretskii <eliz@gnu.org>
3907
48d1d6f5
EZ
3908 * top.c (print_gdb_configuration): Explain in output of
3909 --configuration what does "relocatable" mean.
3910
b187bec1
EZ
3911 * main.c (print_gdb_help): Regroup options in the --help text.
3912 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3913 the relevant discussions.
3914
52d361e1
YQ
39152013-07-06 Yao Qi <yao@codesourcery.com>
3916
3917 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3918 Remove parameter 'lsal'.
3919 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3920 to inner block. Caller update.
3921 (base_breakpoint_create_breakpoints_sal): Update.
3922 (bkpt_create_breakpoints_sal): Likewise.
3923 (tracepoint_create_breakpoints_sal): Likewise.
3924 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3925 element 0 of vector 'canonical->sals'.
3926
e1ec1b42
LM
39272013-07-05 Luis Machado <lgustavo@codesourcery.com>
3928
3929 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3930 register number instead of the pseudo register one.
3931 (rs6000_dwarf2_reg_to_regnum): Likewise.
3932
7195e6f0
PA
39332013-07-04 Pedro Alves <palves@redhat.com>
3934
3935 * findvar.c (value_of_register): Use allocate_optimized_out_value
3936 if the register has been optimized out, instead of
3937 set_value_optimized_out.
3938 * frame-unwind.c (frame_unwind_got_optimized): Use
3939 allocate_optimized_out_value.
3940
58722cac
PA
39412013-07-04 Pedro Alves <palves@redhat.com>
3942
3943 * value.c (value_bits_valid): If the value is not lval_computed,
3944 or doesn't have a check_validity hook, assume the value is entirely
3945 valid.
3946
691a26f5
AB
39472013-07-04 Andrew Burgess <aburgess@broadcom.com>
3948
3949 * stack.c (read_frame_arg): No longer fetch lazy values.
3950 * value.c (value_optimized_out): If the value is not already
3951 marked optimized out, and is lazy then fetch it.
3952 (value_primitive_field): Move optimized out check to later in the
3953 function, after we have loaded any lazy values.
3954 (value_fetch_lazy): Use optimized out flag directly rather than
3955 calling optimized_out method.
3956
a58e2656
AB
39572013-07-04 Andrew Burgess <aburgess@broadcom.com>
3958
3959 * valops.c: Don't include "user-regs.h".
3960 (value_fetch_lazy): Moved to value.c.
3961 * value.c: Include "user-regs.h".
3962 (value_fetch_lazy): Moved from valops.c.
3963
bd885420
YQ
39642013-07-04 Yao Qi <yao@codesourcery.com>
3965
3966 Revert:
3967 2013-06-27 Yao Qi <yao@codesourcery.com>
3968
3969 * common/create-version.sh: Update comments. Handle the case
3970 that TARGET_ALIAS is empty.
3971
17ef446e
PA
39722013-07-03 Pedro Alves <palves@redhat.com>
3973
3974 * Makefile.in (config.status): Depend on development.sh.
3975 (aclocal_m4_deps): Add libmcheck.m4.
3976 * acinclude.m4: Include libmcheck.m4.
3977 * configure.ac: Source development.sh instead of setting
3978 'development' here. --enable-libmcheck/--disable-libmcheck code
3979 factored out to GDB_AC_LIBMCHECK. Run it.
3980 * development.sh: New file.
3981 * libmcheck.m4: New file.
3982 * configure: Regenerate.
3983
ac6dd50f
TT
39842013-07-02 Tom Tromey <tromey@redhat.com>
3985
3986 * contrib/ari/update-web-ari.sh: Update for version.in change.
3987
bd1df410
TT
39882013-07-02 Tom Tromey <tromey@redhat.com>
3989
3990 * common/ptid.h: Comment fixes.
3991
4db1a1dc
TT
39922013-07-01 Tom Tromey <tromey@redhat.com>
3993
3994 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3995 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3996 (dwarf2_read_index, create_all_comp_units): Update.
3997
dd9aa048
TT
39982013-07-01 Tom Tromey <tromey@redhat.com>
3999
4000 * configure.ac (build_warnings): Add -Wold-style-definition.
4001 * configure: Rebuild.
4002 * machoread.c (_initialize_machoread): Use "(void)".
4003 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4004 use "(void)".
4005
44d100c3
TT
40062013-07-01 Tom Tromey <tromey@redhat.com>
4007
4008 * configure.ac (build_warnings): Add -Wold-style-declaration.
4009 * configure: Rebuild.
4010 * dsrec.c (make_srec): Use "static const", not "const static".
4011 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4012 not "const static".
4013 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4014 Use "static const", not "const static".
4015 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4016 not "const static".
4017 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4018 not "const static".
4019 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4020 not "const static".
4021 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4022 not "const static".
4023 (v850_dbtrap_breakpoint_from_pc): Likewise.
4024 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4025 not "const static".
4026
2945b807
TT
40272013-07-01 Tom Tromey <tromey@redhat.com>
4028
4029 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4030 * configure: Rebuild.
4031
d8d2a3ee
PA
40322013-07-01 Pedro Alves <palves@redhat.com>
4033
4034 * defs.h: Include "pathmax.h".
4035 * utils.c: Don't include sys/param.h.
4036 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4037 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4038 instead of MAXPATHLEN.
4039 * solib-sunos.c: Don't include sys/param.h.
4040 * xcoffread.c: Don't include sys/param.h.
4041 * bsd-kvm.c: Don't include sys/param.h.
4042 * darwin-nat.c: Don't include sys/param.h.
4043 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4044 * darwin-nat-info.c: Don't include sys/param.h.
4045 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4046 MAXPATHLEN.
4047 * i386obsd-nat.c: Don't include sys/param.h.
4048 * inf-child.c: Don't include sys/param.h.
4049 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4050 * linux-fork.c: Don't include sys/param.h.
4051 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4052 * linux-nat.c: Don't include sys/param.h.
4053 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4054 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4055 * m68klinux-nat.c: Don't include sys/param.h.
4056 * nbsd-nat.c: Don't include sys/param.h.
4057 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4058 * ppc-linux-nat.c: Don't include sys/param.h.
4059 * rs6000-nat.c: Don't include sys/param.h.
4060 * spu-linux-nat.c. Don't include sys/param.h.
4061 * windows-nat.c: Don't include sys/param.h.
4062 * xtensa-linux-nat.c: Don't include sys/param.h.
4063 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4064
38ec2207
PA
40652013-07-01 Pedro Alves <palves@redhat.com>
4066
4067 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4068 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4069 * gnulib/aclocal.m4: Regenerate.
4070 * gnulib/config.in: Regenerate.
4071 * gnulib/configure: Regenerate.
4072 * gnulib/import/pathmax.h: New file.
4073 * gnulib/import/Makefile.am: Regenerate.
4074 * gnulib/import/Makefile.in: Regenerate.
4075 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4076 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4077 * gnulib/import/m4/pathmax.m4: New file.
4078
e655c1a2
PA
40792013-07-01 Pedro Alves <palves@redhat.com>
4080
4081 * configure.ac (GDBINIT): Define, depending on host.
4082 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4083 * top.c (PATH_MAX): Delete fallback definition.
4084 (GDBINIT_FILENAME): Delete.
4085 (gdbinit): Reimplement as const char array set to the GDBINIT
4086 string constant.
4087 * top.h (gdbinit): Make const.
4088 * configure, config.in: Regenerate.
4089
50dd9793
PA
40902013-07-01 Pedro Alves <palves@redhat.com>
4091
4092 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4093 * cli/cli-cmds.h (source_script): Likewise.
4094 * exceptions.c (catch_command_errors_const): New function.
4095 * exceptions.h (catch_command_errors_const): Declare.
4096 * main.c (get_init_files): Make parameters const, and adjust.
4097 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4098 'local_gdbinit' locals const. Adjust to use
4099 catch_command_errors_const.
4100 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4101 'local_gdbinit' locals const.
4102
bc7dea8d
PA
41032013-07-01 Pedro Alves <palves@redhat.com>
4104
4105 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4106 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4107 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4108 <unistd.h>.
4109
8839a007
PA
41102013-07-01 Pedro Alves <palves@redhat.com>
4111
4112 Import the "unistd" gnulib module.
4113 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4114 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4115 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4116 import/m4/unistd_h.m4.
4117 * gnulib/aclocal.m4: Renenerate.
4118 * gnulib/config.in: Renenerate.
4119 * gnulib/configure: Renenerate.
4120 * gnulib/import/Makefile.am: Renenerate.
4121 * gnulib/import/Makefile.in: Renenerate.
4122 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4123 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4124 * gnulib/import/m4/off_t.m4: New file.
4125 * gnulib/import/m4/ssize_t.m4: New file.
4126 * gnulib/import/m4/sys_types_h.m4: New file.
4127 * gnulib/import/m4/unistd_h.m4: New file.
4128 * gnulib/import/sys_types.in.h: New file.
4129 * gnulib/import/unistd.c: New file.
4130 * gnulib/import/unistd.in.h: New file.
4131
8c0da261
PA
41322013-07-01 Pedro Alves <palves@redhat.com>
4133
4134 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4135 defined instead of checking HAVE_UNISTD_H.
4136
3574124b
PA
41372013-07-01 Pedro Alves <palves@redhat.com>
4138
4139 Reimport gnulib from scratch.
4140 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4141 import/m4/onceonly.m4.
4142 * gnulib/aclocal.m4: Renegerate.
4143 * gnulib/config.in: Renegerate.
4144 * gnulib/configure: Renegerate.
4145 * gnulib/import/Makefile.in: Renegerate.
4146 * gnulib/import/extra/update-copyright: Renegerate.
4147 * gnulib/import/m4/onceonly.m4: Delete.
4148
702dc4fd
PA
41492013-07-01 Pedro Alves <palves@redhat.com>
4150
4151 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4152
47e1ce27
JK
41532013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4154
4155 Code cleanup.
4156 * remote.c (async_remote_interrupt_twice): Make it static.
4157 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4158
e82839d4
SDJ
41592013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4160
4161 * ia64-linux-tdep.c: Include <ctype.h>.
4162 (ia64_linux_stap_is_single_operand): New function.
4163 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4164
d6c2da54
TT
41652013-06-28 Tom Tromey <tromey@redhat.com>
4166
4167 * Makefile.in (version.c): Use version.in, not
4168 common/version.in.
4169 * common/create-version.sh: Likewise.
4170 * common/version.in: Move...
4171 * version.in: ...here.
4172
74da6f00
PA
41732013-06-28 Pedro Alves <palves@redhat.com>
4174
4175 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4176 here.
4177 * utils.h (pagination_enabled): Declare.
4178
d32dc48e
PA
41792013-06-28 Pedro Alves <palves@redhat.com>
4180
4181 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4182 Move higher up in file.
4183
0edd9e3b
TT
41842013-06-28 Tom Tromey <tromey@redhat.com>
4185
4186 * tracepoint.c (deprecated_readline_begin_hook)
4187 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4188 declare.
4189
4eb59108
PA
41902013-06-28 Pedro Alves <palves@redhat.com>
4191
4192 PR tui/14880
4193 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4194 checking if they're available.
4195 * value.c (value_available_contents_eq): Change comment.
4196 * value.h (value_available_contents_eq): Expand comment.
4197
97b17156
TT
41982013-06-27 Tom Tromey <tromey@redhat.com>
4199
4200 * target.c (find_run_target): Remove.
4201 * target.h (find_run_target): Remove.
4202
6a3bfc5c
TT
42032013-06-27 Tom Tromey <tromey@redhat.com>
4204
4205 * corelow.c (core_gdbarch): Now static.
4206
c9ef825d
TT
42072013-06-27 Tom Tromey <tromey@redhat.com>
4208
4209 * target.c (target_struct_index): Remove.
4210
e5823f1c
PA
42112013-06-27 Pedro Alves <palves@redhat.com>
4212
4213 * infrun.c: Remove comment describing the 'stepping over runtime
4214 loader dynamic symbol resolution code' mechanism; moved to
4215 gdbint.texinfo.
4216
97f8dd09
PA
42172013-06-27 Pedro Alves <palves@redhat.com>
4218
4219 * exceptions.c (catch_command_errors): Remove spurious space.
4220 * exceptions.h (catch_command_errors): Second parameter is "arg",
4221 not "command".
4222
02b1871e
YQ
42232013-06-27 Yao Qi <yao@codesourcery.com>
4224
4225 * common/create-version.sh: Update comments. Handle the case
4226 that TARGET_ALIAS is empty.
4227
bb1b1cf1
PA
42282013-06-26 Pedro Alves <palves@redhat.com>
4229
4230 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4231 comment.
4232
7b624e71
PA
42332013-06-26 Pedro Alves <palves@redhat.com>
4234
4235 * infrun.c: Update comments on stepping over runtime loader
4236 dynamic symbol resolution code.
4237
74e5a346
SDJ
42382013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4239
4240 * ax-gdb.h (union exp_element): Forward declare.
4241 * parser-defs.h: Include expression.h.
4242
a2fb2cee
MR
42432013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4244
4245 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4246
cdba14e0
DK
42472013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4248
4249 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4250
f30aa5af
DK
42512013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4252
4253 Fix trace-status to output proper start-time and stop-time.
4254 * tracepoint.c (trace_status_command): Fix type of printf arg to
4255 prevent improper type conversion.
4256 (trace_status_mi): Likewise.
4257
1aee363c
MR
42582013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4259
4260 * mips-tdep.c (mips_next_pc): Fix a typo.
4261
3356937a
MR
42622013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4263
4264 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4265
dc673c81
YQ
42662013-06-26 Pedro Alves <pedro@codesourcery.com>
4267 Yao Qi <yao@codesourcery.com>
4268
4269 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4270 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4271 * mi/mi-main.c (print_variable_or_computed): New function.
4272 (mi_cmd_trace_frame_collected): New function.
4273 * tracepoint.c (find_trace_state_variable_by_number): New.
4274 (struct traceframe_info): Move to tracepoint.h
4275 (struct collection_list): Likewise.
4276 (do_collect_symbol): Include locals and arguments in the
4277 collected variables list.
4278 (clear_collection_list): Clear wholly collected variables list
4279 and computed variables list.
4280 (append_exp): New function.
4281 (encode_actions_1): Include variables in the wholly
4282 collected variables list. Include memory ranges and
4283 full-fledged expressions in the computed expressions list.
4284 (encode_actions): Move some code to ...
4285 Return the cleanup chain.
4286 (encode_actions_rsp): ... here. New function.
4287 (get_traceframe_location, get_traceframe_info): Remove static.
4288 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4289 (struct collection_list): Moved from tracepoint.c. Add two
4290 new fields 'wholly_collected' and 'computed'.
4291 (find_trace_state_variable_by_number): Declare.
4292 (encode_actions): Adjust declaration.
4293 (encode_actions_rsp): Declare.
4294 (get_traceframe_info, get_traceframe_location): Declare.
4295
4296 * NEWS: Mention new MI command -trace-frame-collected.
4297
28a93511
YQ
42982013-06-26 Pedro Alves <pedro@codesourcery.com>
4299 Yao Qi <yao@codesourcery.com>
4300
4301 * ctf.c (ctf_traceframe_info): Push trace state variables
4302 present in the trace data into the traceframe info object.
4303 * breakpoint.c (DEF_VEC_I): Remove.
4304 * common/filestuff.c (DEF_VEC_I): Likewise.
4305 * dwarf2loc.c (DEF_VEC_I): Likewise.
4306 * mi/mi-main.c (DEF_VEC_I): Likewise.
4307 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4308 * features/traceframe-info.dtd: Add tvar element and its
4309 attributes.
4310 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4311 (build_traceframe_info): Push trace state variables present in
4312 the trace data into the traceframe info object.
4313 (traceframe_info_start_tvar): New function.
4314 (tvar_attributes): New.
4315 (traceframe_info_children): Add "tvar" element.
4316 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4317
4318 * NEWS: Mention the change in GDB and GDBserver.
4319
ddacd3c8
YQ
43202013-06-26 Pedro Alves <pedro@codesourcery.com>
4321 Yao Qi <yao@codesourcery.com>
4322
4323 * tracepoint.c (trace_dump_command): Move code to ...
4324 (get_traceframe_location): ... here. New.
4325
05796b35
YQ
43262013-06-26 Pedro Alves <pedro@codesourcery.com>
4327 Yao Qi <yao@codesourcery.com>
4328
4329 * tracepoint.c (trace_dump_command): GDB emits an error
4330 instead of a warning when a traceframe is not selected.
4331
cbfa3b61
YQ
43322013-06-26 Pedro Alves <pedro@codesourcery.com>
4333 Yao Qi <yao@codesourcery.com>
4334
4335 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4336 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4337 in collection_list.
4338 (do_clear_collection_list, init_collection_list): New.
4339 (encode_actions): Add local variables 'tracepoint_list' and
4340 'stepping_list'. Call init_collection_list and make cleanup
4341 which calls do_clear_collection_list. Don't call
4342 clear_collection_list.
4343 (_initialize_tracepoint): Delete references to
4344 'tracepoint_list' and 'stepping_list'.
4345
6e2048d3
TT
43462013-06-25 Tom Tromey <tromey@redhat.com>
4347
4348 * common/create-version.sh (date): Use "$", not "$$" in sed
4349 expression.
4350
42059f0e
KB
43512013-06-25 Kevin Buettner <kevinb@redhat.com>
4352
4353 * NEWS (New targets): Add entry for TI MSP430.
4354
a0743c90
YQ
43552013-06-25 Yao Qi <yao@codesourcery.com>
4356
4357 * remote.c (remote_start_remote): Move code to upload tsv
4358 earlier.
4359
9d6e6e84
HZ
43602013-06-25 Yao Qi <yao@codesourcery.com>
4361 Hui Zhu <hui@codesourcery.com>
4362 Pedro Alves <palves@redhat.com>
4363
4364 PR breakpoints/15075
4365 PR breakpoints/15434
4366 * breakpoint.c (bpstat_stop_status): Call
4367 b->ops->after_condition_true.
4368 (update_dprintf_command_list): Don't append "continue" command
4369 to the command list of dprintf breakpoint.
4370 (base_breakpoint_after_condition_true): New function.
4371 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4372 (dprintf_after_condition_true): New function.
4373 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4374 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4375
586cf749
KB
43762013-06-24 Kevin Buettner <kevinb@redhat.com>
4377
4378 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4379 (ALLDEPFILES): Add msp430-tdep.c.
4380 * configure.tgt (msp430*-*-elf): New target.
4381 * msp430-tdep.c: New file.
4382
1bbce132
MR
43832013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4384
4385 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4386 microMIPS synthetic symbols.
4387
3e5d3a5a
MR
43882013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4389
4390 * objfiles.h (pc_in_section): New prototype.
4391 (in_plt_section): Remove name argument, replace prototype with
4392 static inline function.
4393 * mips-tdep.h: Include "objfiles.h".
4394 (in_mips_stubs_section): New function.
4395 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4396 in_solib_call_trampoline member.
4397 (hppa_in_solib_call_trampoline): Remove name argument.
4398 * objfiles.c (pc_in_section): New function.
4399 (in_plt_section): Remove function.
4400 * mips-linux-tdep.c: Include "objfiles.h".
4401 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4402 name argument. Return 1 rather than the low 16-bit halfword of
4403 any instruction examined.
4404 (mips_linux_in_dynsym_resolve_code): Update
4405 mips_linux_in_dynsym_stub call accordingly.
4406 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4407 rather than an equivalent hand-coded sequence.
4408 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4409 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4410 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4411 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4412 in_opd_section.
4413 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4414 on call to tdep->in_solib_call_trampoline.
4415 (hppa_in_solib_call_trampoline): Remove name argument, update
4416 according to in_plt_section change.
4417 (hppa_skip_trampoline_code): Update according to in_plt_section
4418 change.
4419 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4420 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4421 Likewise.
4422 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4423 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4424 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4425 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4426 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4427 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4428 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4429 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4430 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4431 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4432 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4433 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4434 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4435
b9b26a16
JB
44362013-06-24 Joel Brobecker <brobecker@adacore.com>
4437
4438 * common/create-version.sh: Fix expansion of $host_alias
4439 and $target_alias in generation of HOST_NAME and TARGET_NAME
4440 (resp.).
4441
01208463
TT
44422013-06-24 Tom Tromey <tromey@redhat.com>
4443
4444 * common/create-version.sh: New file.
4445 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4446 create-version.sh.
4447 (HFILES_NO_SRCDIR): Use common/version.h.
4448 * version.in: Move to ...
4449 * common/version.in: ... here. Replace date with "DATE".
4450 * version.h: Move to ...
4451 * common/version.h: ... here.
4452
bb6b9a5e
JB
44532013-06-21 Joel Brobecker <brobecker@adacore.com>
4454
4455 * gdb/gnulib/Makefile.in: Update date in copyright header.
4456 * gdb/gnulib/configure.ac: Ditto.
4457 * gdb/gnulib/update-gnulib.sh: Ditto.
4458
c3b18ee7
JB
44592013-06-21 Joel Brobecker <brobecker@adacore.com>
4460
4461 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4462 "gdb/gnulib/import".
4463
85d3b769
WN
44642013-06-21 Will Newton <will.newton@linaro.org>
4465
4466 * doublest.c (ldfrexp): Remove function.
4467 (convert_doublest_to_floatformat): Call frexpl instead of
4468 ldfrexp.
4469
88b48903
WN
44702013-06-21 Will Newton <will.newton@linaro.org>
4471
4472 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4473 * gnulib/aclocal.m4: Regenerate.
4474 * gnulib/config.in: Regenerate.
4475 * gnulib/configure: Regenerate.
4476 * gnulib/import/Makefile.am: Update.
4477 * gnulib/import/Makefile.in: Update.
4478 * gnulib/import/m4/gnulib-cache.m4: Update.
4479 * gnulib/import/m4/gnulib-comp.m4: Update.
4480 * gnulib/import/float+.h: Import.
4481 * gnulib/import/float.c: Import.
4482 * gnulib/import/float.in.h: Import.
4483 * gnulib/import/fpucw.h: Import.
4484 * gnulib/import/frexp.c: Import.
4485 * gnulib/import/frexpl.c: Import.
4486 * gnulib/import/isnan.c: Import.
4487 * gnulib/import/isnand-nolibm.h: Import.
4488 * gnulib/import/isnand.c: Import.
4489 * gnulib/import/isnanl-nolibm.h: Import.
4490 * gnulib/import/isnanl.c: Import.
4491 * gnulib/import/itold.c: Import.
4492 * gnulib/import/m4/exponentd.m4: Import.
4493 * gnulib/import/m4/exponentl.m4: Import.
4494 * gnulib/import/m4/float_h.m4: Import.
4495 * gnulib/import/m4/fpieee.m4: Import.
4496 * gnulib/import/m4/frexp.m4: Import.
4497 * gnulib/import/m4/frexpl.m4: Import.
4498 * gnulib/import/m4/isnand.m4: Import.
4499 * gnulib/import/m4/isnanl.m4: Import.
4500 * gnulib/import/m4/math_h.m4: Import.
4501 * gnulib/import/math.c: Import.
4502 * gnulib/import/math.in.h: Import.
4503
4353c9e6
JK
45042013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4505
4506 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4507 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4508 signature_INTEL_edx comparisons.
4509
e3e06db3
DE
45102013-06-20 Doug Evans <dje@google.com>
4511
6ac97d4c
DE
4512 symtab/15652
4513 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4514 All callers updated.
4515 (open_dwp_file): If we can't find the dwp file, search the basename
4516 in debug-file-directory.
4517
93417882
DE
4518 * dwarf2read.c (struct dwp_file): Fix comment.
4519 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4520
e3e06db3
DE
4521 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4522 better.
4523
0878d0fa
YQ
45242013-06-20 Yao Qi <yao@codesourcery.com>
4525
4526 * breakpoint.c (create_breakpoint): Fix code indentation.
4527
023fa29b
YQ
45282013-06-20 Yao Qi <yao@codesourcery.com>
4529
4530 * breakpoint.c (create_breakpoints_sal_default): Remove
4531 parameter 'lsal'. Update declaration.
4532 (bkpt_create_breakpoints_sal): Caller update.
4533 (tracepoint_create_breakpoints_sal): Likewise.
4534
c898adb7
YQ
45352013-06-20 Pedro Alves <pedro@codesourcery.com>
4536 Yao Qi <yao@codesourcery.com>
4537
4538 * NEWS: Mention the new option '--skip-unavailable' of command
4539 -data-list-register-values.
4540 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4541 --skip-unavailable option. Adjust to use output_register.
4542 (output_register): Add new 'skip_unavailable' parameter.
4543 Handle it.
4544
4d157a3d
MF
45452013-06-19 Mike Frysinger <vapier@gentoo.org>
4546
4547 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4548 common/i386-gcc-cpuid.h.
4549 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4550 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4551 Copy the latest version from upstream gcc.
4552 * common/linux-btrace.c: Include i386-cpuid.h.
4553 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4554 call to i386_cpuid.
4555 (cpu_supports_btrace): Likewise.
4556 * go32-nat.c: Include i386-cpuid.h.
4557 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4558
1ce4db08
DE
45592013-06-19 Doug Evans <dje@google.com>
4560
4561 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4562 (get_section_index): Ditto.
4563
0e4777df
TT
45642013-06-19 Tom Tromey <tromey@redhat.com>
4565
4566 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4567 "dprintf" help.
4568
3190f0c6
DE
45692013-06-18 Doug Evans <dje@google.com>
4570
4571 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4572 before using it.
4573 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4574 Move test of cu_index closer to use. Print complaint if cu_index
4575 is bad.
4576
8b89a20a
JB
45772013-06-18 Joel Brobecker <brobecker@adacore.com>
4578
4579 * machoread.c (oso_vector): Delete this global.
4580 (macho_register_oso): Add new parameter "oso_vector_ptr".
4581 Use it instead of the "oso_vector" global.
4582 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4583 (macho_symfile_read): Use a local oso_vector, to be free'ed
4584 at the end of this function, in place of the old "oso_vector"
4585 global. Update various function calls accordingly. Use one
4586 single cleanup chain for the entire function.
4587
59b0c7c1
JB
45882013-06-18 Joel Brobecker <brobecker@adacore.com>
4589
937c708c 4590 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4591 DWARF2_PER_OBJFILE by uses of DATA instead.
4592
427cd150
TT
45932013-06-18 Tom Tromey <tromey@redhat.com>
4594
4595 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4596 argument.
4597 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4598 Special case signals other than GDB_SIGNAL_TRAP.
4599 (explains_signal_watchpoint): New function.
4600 (base_breakpoint_explains_signal): Add 'sig' argument.
4601 (initialize_breakpoint_ops): Set 'explains_signal' method for
4602 watchpoints.
4603 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4604 signal argument.
4605 (bpstat_explains_signal): Likewise.
4606 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4607
2d57700b
TT
46082013-06-18 Tom Tromey <tromey@redhat.com>
4609
4610 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4611
ac475191
TT
46122013-06-18 Tom Tromey <tromey@redhat.com>
4613
4614 * python/python.c (finish_python_initialization): Decref
4615 'pythondir' on failure path as well.
4616
5bd1ef56
TT
46172013-06-18 Tom Tromey <tromey@redhat.com>
4618
4619 PR symtab/15391:
4620 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4621 after taking bits_to_skip into account. Sign extend byte_offset.
4622 * utils.h (gdb_sign_extend): Declare.
4623 * utils.c (gdb_sign_extend): New function.
4624
92fac807
JK
46252013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4626
4627 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4628
2d503272
PM
46292013-06-17 Pierre Muller <muller@sourceware.org>
4630
4631 * corelow.c (core_open): Print GDB signal name instead of target
4632 signal number.
4633
6916fd98
MF
46342013-06-17 Mike Frysinger <vapier@gentoo.org>
4635
4636 * .gitignore: Add /gcore.
4637
9c02c129
DE
46382013-06-13 Doug Evans <dje@google.com>
4639
4640 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4641 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4642
d0548fa2
PM
46432013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4644
4645 * stack.c (backtrace_command_1): Fix indentation.
4646
22128028
JB
46472013-06-11 Joel Brobecker <brobecker@adacore.com>
4648
4649 * window-nat.c (thread_rec): Add missing empty line after
4650 local variable declaration.
4651
2ed3e009
JB
46522013-06-11 Joel Brobecker <brobecker@adacore.com>
4653
4654 * windows-nat.c (thread_rec): Revert format used to print
4655 error code returned by SuspendThread from %d back to %u.
4656
0c3d84be
JB
46572013-06-11 Joel Brobecker <brobecker@adacore.com>
4658
4659 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4660 ID in debug trace.
4661 (get_windows_debug_event): Likewise, for all debug traces.
4662
80e88e1a
JB
46632013-06-11 Joel Brobecker <brobecker@adacore.com>
4664
4665 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4666 warning message.
4667
1edebdbf
YQ
46682013-06-08 Pedro Alves <pedro@codesourcery.com>
4669 Yao Qi <yao@codesourcery.com>
4670
4671 * mi/mi-main.c (get_register): Remove declaration.
4672 (output_register): Declare.
4673 (mi_cmd_data_list_register_values): Remove local variable
4674 'tuple_cleanup'. Move some code into output_register.
4675 (get_register): Renamed to ...
4676 (output_register): ... this. Output the register's
4677 "number" ui_out tuple here.
4678
47d48711
PA
46792013-06-07 Pedro Alves <palves@redhat.com>
4680
4681 * darwin-nat.c: Fix formating in copyright header.
4682 * darwin-nat.h: Likewise.
4683 * gnu-nat.c: Likewise.
4684 * machoread.c: Likewise.
4685
3aee8918
PA
46862013-06-07 Pedro Alves <palves@redhat.com>
4687
5f2b57b5 4688 PR server/14823
3aee8918
PA
4689 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4690 static. Output a global target description pointer.
4691 (init_registers_${name}): Adjust to initialize a
4692 target description structure.
4693
fe8400b4
WN
46942013-06-07 Will Newton <will.newton@linaro.org>
4695
4696 * printcmd.c (build_address_symbolic): Call
4697 gdbarch_addr_bits_remove for text minimal symbols.
4698
20df6206
WN
46992013-06-07 Will Newton <will.newton@linaro.org>
4700
4701 * MAINTAINERS: Add myself to Write After Approval.
4702
aef525cb
YQ
47032013-06-07 Yao Qi <yao@codesourcery.com>
4704
4705 * tracepoint.c (start_tracing): Move code to ...
4706 (trace_reset_local_state): ... here. New.
4707 (disconnect_tracing): Don't call set_current_traceframe,
4708 set_tracepoint_num, and set_traceframe_context. Call
4709 trace_reset_local_state instead.
4710 (tfile_close): Call trace_reset_local_state.
4711 * ctf.c (ctf_close): Likewise.
4712 * remote.c (remote_close): Likewise.
4713 * tracepoint.h (trace_reset_local_state): Declare.
4714
d2415c6c
DE
47152013-06-06 Doug Evans <dje@google.com>
4716
4717 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4718 and fix header docs.
4719
69fc87c2
DE
47202013-06-05 Doug Evans <dje@google.com>
4721 Keith Seitz <keiths@redhat.com>
4722
4723 PR 15519
4724 * cp-namespace.c (find_symbol_in_baseclass): Call
4725 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4726 Check result of call to lookup_symbol_static.
4727 Call lookup_static_symbol_aux unconditionally.
4728 Call check_typedef on base types before accessing them.
4729 (cp_lookup_nested_symbol): Fix comment.
4730
a513d1e8
LM
47312013-06-05 Luis Machado <lgustavo@codesourcery.com>
4732
4733 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4734 minimal symbols pointing to function descriptors.
4735
351a6f02
TT
47362013-06-05 Tom Tromey <tromey@redhat.com>
4737
4738 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4739
5e1b953b 47402013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4741 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4742
4743 * remote.c (remote_wait_as): Restore signal handler before returning
4744 when GDB gets a notification.
4745
f9e14852
GB
47462013-06-04 Gary Benson <gbenson@redhat.com>
4747
8445cbf1 4748 PR 2328
f9e14852
GB
4749 * breakpoint.h (handle_solib_event): Moved function declaration
4750 to solib.h.
4751 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4752 (bpstat_stop_status): Pass new argument to handle_solib_event.
4753 * solib.h (update_solib_breakpoints): New function declaration.
4754 (handle_solib_event): Moved function declaration from
4755 breakpoint.h.
4756 * solib.c (update_solib_breakpoints): New function.
4757 (handle_solib_event): Moved function from breakpoint.c.
4758 Updated to call solib_ops->handle_event if not NULL.
4759 * solist.h (target_so_ops): New fields "update_breakpoints" and
4760 "handle_event".
4761 * infrun.c (set_stop_on_solib_events): New function.
4762 (_initialize_infrun): Use the above for "set
4763 stop-on-solib-events".
4764 (handle_inferior_event): Pass new argument to handle_solib_event.
4765 * solib-svr4.c (probe.h): New include.
4766 (svr4_free_library_list): New forward declaration.
4767 (probe_action): New enum.
4768 (probe_info): New struct.
4769 (probe_info): New static variable.
4770 (NUM_PROBES): New definition.
4771 (svr4_info): New fields "using_xfer", "probes_table" and
4772 "solib_list".
4773 (free_probes_table): New function.
4774 (free_solib_list): New function.
4775 (svr4_pspace_data_cleanup): Free probes table and solib list.
4776 (svr4_copy_library_list): New function.
4777 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4778 (svr4_read_so_list): New parameter "prev_lm".
4779 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4780 (svr4_current_sos): New function.
4781 (probe_and_action): New struct.
4782 (hash_probe_and_action): New function.
4783 (equal_probe_and_action): Likewise.
4784 (register_solib_event_probe): Likewise.
4785 (solib_event_probe_at): Likewise.
4786 (solib_event_probe_action): Likewise.
4787 (solist_update_full): Likewise.
4788 (solist_update_incremental): Likewise.
4789 (disable_probes_interface_cleanup): Likewise.
4790 (svr4_handle_solib_event): Likewise.
4791 (svr4_update_solib_event_breakpoint): Likewise.
4792 (svr4_update_solib_event_breakpoints): Likewise.
4793 (svr4_create_solib_event_breakpoints): Likewise.
4794 (enable_break): Free probes table before creating breakpoints.
4795 Use svr4_create_solib_event_breakpoints to create breakpoints.
4796 (svr4_solib_create_inferior_hook): Free the solib list.
4797 (_initialize_svr4_solib): Initialise
4798 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4799
ced63ec0
GB
48002013-06-04 Gary Benson <gbenson@redhat.com>
4801
4802 * target.h (target_ops): New field
4803 "to_augmented_libraries_svr4_read".
4804 (target_augmented_libraries_svr4_read): New macro.
4805 * target.c (update_current_target): Handle
4806 to_augmented_libraries_svr4_read.
4807 * remote.c (remote_state): New field
4808 "augmented_libraries_svr4_read".
4809 (remote_augmented_libraries_svr4_read_feature): New function.
4810 (remote_protocol_features): Add entry for
4811 "augmented-libraries-svr4-read".
4812 (remote_augmented_libraries_svr4_read): New function.
4813 (init_remote_ops): Initialize
4814 remote_ops.to_augmented_libraries_svr4_read.
4815
7f91dbec
GB
48162013-06-04 Gary Benson <gbenson@redhat.com>
4817
4818 * NEWS: Update.
4819
607ece04
GB
48202013-06-04 Gary Benson <gbenson@redhat.com>
4821
4822 * objfiles.h (inhibit_section_map_updates): New function
4823 declaration.
4824 (resume_section_map_updates): Likewise.
4825 (resume_section_map_updates_cleanup): Likewise.
4826 * objfiles.c (objfile_pspace_info): Removed field
4827 "objfiles_changed_p". New fields "new_objfiles_available",
4828 "section_map_dirty" and "inhibit_updates".
4829 (allocate_objfile): Set new_objfiles_available.
4830 (free_objfile): Set section_map_dirty.
4831 (objfile_relocate1): Likewise.
4832 (in_plt_section): Likewise.
4833 (find_pc_section): Update the conditions under which the
4834 section map will be updated.
4835 (inhibit_section_map_updates): New function.
4836 (resume_section_map_updates): Likewise.
4837 (resume_section_map_updates_cleanup): Likewise.
4838
9ee6a5ac
GB
48392013-06-04 Gary Benson <gbenson@redhat.com>
4840
4841 * probe.h (get_probe_argument_count): New declaration.
4842 (evaluate_probe_argument): Likewise.
4843 * probe.c (get_probe_argument_count): New function.
4844 (evaluate_probe_argument): Likewise.
4845 (probe_safe_evaluate_at_pc): Use the above new functions.
4846
845d4708
AM
48472013-06-04 Alan Modra <amodra@gmail.com>
4848
4849 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4850 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4851 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4852 target mem reads on optional insns.
4853 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4854 ppc_insns_match_pattern calls.
4855 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4856 Add match for power7 thread safety insns, and new order of
4857 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4858 invocation in comment, and update rest of comment.
4859 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4860 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4861 (ppc64_standard_linkage2_target): Update insn offsets.
4862 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4863 stubs first. Update calls.
4864
404e278f
YQ
48652013-06-04 Yao Qi <yao@codesourcery.com>
4866
4867 * solib.c (solib_find): Don't need dir separator if path has
4868 drive spec.
4869
f6aea118
JB
48702013-06-03 Joel Brobecker <brobecker@adacore.com>
4871
4872 Revert (indirectly causes a SIGSEGV):
4873 * machoread.c (macho_symfile_read): Assign first cleanup to
4874 'back_to'.
4875
87967e27
YQ
48762013-06-03 Yao Qi <yao@codesourcery.com>
4877
4878 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4879 mi-parse.c. Make them static.
4880 (mi_all_values): Likewise.
4881 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4882 mi_parse_print_values. Make it external.
4883 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4884 Remove the declarations.
4885 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4886 * mi/mi-parse.h (mi_parse_print_values): Declare.
4887 * mi/mi-cmd-stack.c: Include mi-parse.h.
4888 (parse_print_values): Remove
4889 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4890 of parse_print_values.
4891 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4892
3ca73e0c
YQ
48932013-05-31 Pedro Alves <pedro@codesourcery.com>
4894 Yao Qi <yao@codesourcery.com>
4895
4896 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4897 (encode_actions): Move code to ...
4898 (all_tracepoint_actions_and_cleanup): ... here. New.
4899 (trace_dump_command): Likewise.
4900
4e993a19
TT
49012013-05-30 Tom Tromey <tromey@redhat.com>
4902
4903 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4904
e3b76b4f
TT
49052013-05-30 Tom Tromey <tromey@redhat.com>
4906
4907 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4908 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4909 'old_chain' argument. Add 'parser_result' argument.
4910 (gdb_xml_create_parser_and_cleanup): Remove old version.
4911 (gdb_xml_parse_quick): Update.
4912 (xml_process_xincludes): Update.
4913 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4914 declare.
4915
db26349c
TT
49162013-05-30 Tom Tromey <tromey@redhat.com>
4917
4918 * probe.c (collect_probes): Check arguments for NULL before
4919 calling compile_rx_or_error.
4920 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4921 Remove NULL return.
4922
77f9e713
TT
49232013-05-30 Tom Tromey <tromey@redhat.com>
4924
4925 * infrun.c (adjust_pc_after_break): Introduce an outer null
4926 cleanup.
4927
45475de7
TT
49282013-05-30 Tom Tromey <tromey@redhat.com>
4929
4930 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4931
ac5007fd
TT
49322013-05-30 Tom Tromey <tromey@redhat.com>
4933
4934 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4935 for 'old_chain'. Do not check 'head' before processing
4936 cleanups.
4937
cd82eddc
TT
49382013-05-30 Tom Tromey <tromey@redhat.com>
4939
4940 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4941 "cleanup_tuple".
4942
57cee33a
TT
49432013-05-30 Tom Tromey <tromey@redhat.com>
4944
4945 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4946 inner scope. Unconditionally call do_cleanups.
4947
795d915c
TT
49482013-05-30 Tom Tromey <tromey@redhat.com>
4949
4950 * source.c (find_and_open_source): Call do_cleanups.
4951
1fc3cf4a
TT
49522013-05-30 Tom Tromey <tromey@redhat.com>
4953
4954 * linux-thread-db.c (thread_db_load_search): Unconditionally
4955 call do_cleanups.
4956
e35ac9bf
TT
49572013-05-30 Tom Tromey <tromey@redhat.com>
4958
4959 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4960 for 'cleanup'; instead use a later one.
4961
f3300387
TT
49622013-05-30 Tom Tromey <tromey@redhat.com>
4963
4964 * python/py-breakpoint.c (bppy_get_commands): Use
4965 explicit, unconditional return.
4966 * python/py-frame.c (frapy_read_var): Likewise.
4967 * python/python.c (gdbpy_decode_line): Likewise.
4968
c27e16e3
TT
49692013-05-30 Tom Tromey <tromey@redhat.com>
4970
4971 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4972 do_cleanups on all return paths.
4973
5ae85e44
TT
49742013-05-30 Tom Tromey <tromey@redhat.com>
4975
4976 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4977
73b8d9da
TT
49782013-05-30 Tom Tromey <tromey@redhat.com>
4979
4980 * stabsread.c (read_struct_type): Call do_cleanups along
4981 all return paths.
4982
7d266584
MR
49832013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4984
4985 * mips-linux-tdep.c: Adjust formatting throughout.
4986
0f900f54
TT
49872013-05-30 Tom Tromey <tromey@redhat.com>
4988
4989 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4990 along all return paths.
4991
a991ac28
TT
49922013-05-30 Tom Tromey <tromey@redhat.com>
4993
4994 * symfile.c (find_separate_debug_file): Call do_cleanups
4995 along all return paths.
4996
1abaf042
TT
49972013-05-30 Tom Tromey <tromey@redhat.com>
4998
4999 * symtab.c (search_symbols): Introduce a null cleanup for
5000 'retval_chain'.
5001
edefe1da
TT
50022013-05-30 Tom Tromey <tromey@redhat.com>
5003
5004 * python/py-value.c (valpy_binop): Call do_cleanups before
5005 exiting loop.
5006
54f72dcc
TT
50072013-05-30 Tom Tromey <tromey@redhat.com>
5008
5009 * python/py-prettyprint.c (print_children): Remove extra
5010 do_cleanups call.
5011
af1c6971
TT
50122013-05-30 Tom Tromey <tromey@redhat.com>
5013
5014 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5015 all return paths.
5016
b862ce75
TT
50172013-05-30 Tom Tromey <tromey@redhat.com>
5018
5019 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5020 along all return paths.
5021
e12fefc8
TT
50222013-05-30 Tom Tromey <tromey@redhat.com>
5023
5024 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5025 call do_cleanups.
5026
4867f990
TT
50272013-05-30 Tom Tromey <tromey@redhat.com>
5028
5029 * varobj.c (c_value_of_root): Call do_cleanups along all
5030 return paths.
5031
4fd2d6af
TT
50322013-05-30 Tom Tromey <tromey@redhat.com>
5033
5034 * tracepoint.c (trace_dump_command): Unconditionally call
5035 do_cleanups.
5036
752eb8b4
TT
50372013-05-30 Tom Tromey <tromey@redhat.com>
5038
5039 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5040 do_cleanups earlier.
5041
e42d0aa5
TT
50422013-05-30 Tom Tromey <tromey@redhat.com>
5043
5044 * machoread.c (macho_symfile_read): Assign first cleanup to
5045 'back_to'.
5046
4bbc010a
TT
50472013-05-30 Tom Tromey <tromey@redhat.com>
5048
5049 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5050
b9635925
TT
50512013-05-30 Tom Tromey <tromey@redhat.com>
5052
5053 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5054
25f43500
TT
50552013-05-30 Tom Tromey <tromey@redhat.com>
5056
5057 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5058 call discard_cleanups.
5059 (inf_ptrace_attach): Likewise.
5060
d6a2e54a
TT
50612013-05-30 Tom Tromey <tromey@redhat.com>
5062
5063 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5064 return paths.
5065 (mips_initialize): Likewise.
5066 (common_open): Call do_cleanups.
5067
48be7c1b
TT
50682013-05-30 Tom Tromey <tromey@redhat.com>
5069
5070 * utils.c (internal_vproblem): Call do_cleanups.
5071
e61727ab
TT
50722013-05-30 Tom Tromey <tromey@redhat.com>
5073
5074 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5075
b81b921f
TT
50762013-05-30 Tom Tromey <tromey@redhat.com>
5077
5078 * cli/cli-script.c (setup_user_args): Don't return after error.
5079
fe48dfb1
TT
50802013-05-30 Tom Tromey <tromey@redhat.com>
5081
5082 * somread.c (som_symtab_read): Call do_cleanups.
5083
27833de7
TT
50842013-05-30 Tom Tromey <tromey@redhat.com>
5085
5086 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5087
5b3fca71
TT
50882013-05-30 Tom Tromey <tromey@redhat.com>
5089
5090 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5091 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5092 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5093 * source.c (show_substitute_path_command): Call do_cleanups.
5094 (unset_substitute_path_command, set_substitute_path_command):
5095 Likewise.
5096 * symfile.c (load_command): Call do_cleanups.
5097
af83e3f8
TT
50982013-05-30 Tom Tromey <tromey@redhat.com>
5099
5100 * contrib/cleanup_check.py: New file.
5101 * contrib/gcc-with-excheck: Add option parsing.
5102
564eac42
JB
51032013-05-30 Joel Brobecker <brobecker@adacore.com>
5104
5105 * windows-nat.c (windows_delete_thread): Add missing space
5106 in cast expression.
5107
47902076
HAQ
51082013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5109
5110 * inferior.c (top level): Include tilde.h.
5111 (add_inferior_command): Call tilde_expand on the value of 'exec'
5112 argument.
5113
23da373a
YQ
51142013-05-30 Pedro Alves <pedro@codesourcery.com>
5115 Yao Qi <yao@codesourcery.com>
5116
5117 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5118 Caller update.
5119 (encode_actions): Likewise.
5120 * remote.c (remote_download_tracepoint): Caller update.
5121 * tracepoint.h (encode_actions): Update declaration.
5122
a6e6f791
PA
51232013-05-30 Pedro Alves <palves@redhat.com>
5124
5125 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5126 pointer.
5127
36d25514
YQ
51282013-05-30 Yao Qi <yao@codesourcery.com>
5129
5130 * remote.c (remote_check_symbols): Remove unused parameter
5131 'objfile'.
5132 Declaration update.
5133 (remote_start_remote, remote_new_objfile): Caller update.
5134
62a813cc
YQ
51352013-05-30 Yao Qi <yao@codesourcery.com>
5136
5137 * mi/mi-cmds.c (mi_cmds): Define MI command
5138 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5139 DEF_MI_CMD_CLI.
5140
28439a30
PA
51412013-05-29 Pedro Alves <palves@redhat.com>
5142
5143 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5144 (remote_insert_watchpoint, remote_remove_watchpoint)
5145 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5146 (remote_verify_memory, compare_sections_command)
5147 (remote_search_memory): Set the general process/thread on the
5148 remote side.
5149
6ac1c082
PA
51502013-05-29 Pedro Alves <palves@redhat.com>
5151
5152 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5153 (_initialize_aarch64_tdep): Don't call
5154 initialize_tdesc_aarch64_without_fpu.
5155 * features/Makefile (WHICH): Remove reference to
5156 aarch64-without-fpu.
5157 * features/aarch64-without-fpu.c: Delete file.
5158 * regformats/aarch64-without-fpu.dat: Delete file.
5159
a73e3634
YQ
51602013-05-28 Yao Qi <yao@codesourcery.com>
5161
5162 * tracepoint.c (stringify_collection_list): Remove parameter
5163 'string'.
5164 (encode_actions): Caller update. Remove local variables.
5165
c0ea94eb
YQ
51662013-05-24 Yao Qi <yao@codesourcery.com>
5167
5168 * tracepoint.c (TFILE_PID): Remove.
5169 (tfile_open): Don't add thread and inferior.
5170 (tfile_close): Don't set 'inferior_ptid'. Don't call
5171 exit_inferior_silent.
5172 (tfile_thread_alive): Remove.
5173 (init_tfile_ops): Don't set field 'to_thread_alive' of
5174 tfile_ops.
5175
20d7f211
DE
51762013-05-23 Doug Evans <dje@google.com>
5177
5178 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5179
8658d16d
PA
51802013-05-23 Pedro Alves <palves@redhat.com>
5181
5182 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5183 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5184 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5185 Only define if HAVE_SOCKETS is defined.
5186 * configure.ac: Check for sys/socket.h.
5187 * config.in, configure: Regenerate.
5188
21aa081e
PA
51892013-05-23 Pedro Alves <palves@redhat.com>
5190
5191 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5192 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5193 printing uint32_t variables.
5194
c2d6af84
PA
51952013-05-23 Pedro Alves <palves@redhat.com>
5196
5197 * NEWS: Mention GDBserver range stepping support.
5198
c1e36e3e
PA
51992013-05-23 Yao Qi <yao@codesourcery.com>
5200 Pedro Alves <palves@redhat.com>
5201
5202 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5203 field.
5204 * infcmd.c (step_once, until_next_command): Enable range stepping.
5205 * infrun.c (displaced_step_prepare): Disable range stepping.
5206 (resume): Disable range stepping if stepping over a breakpoint or
5207 we have software watchpoints. If range stepping is enabled,
5208 assert the thread is in the stepping range.
5209 (clear_proceed_status_thread): Clear may_range_step.
5210 (handle_inferior_event): Disable range stepping as soon as we know
5211 the thread that hit the event. Re-enable it whenever we're going
5212 to step with a step range.
5213 * remote.c (struct vCont_action_support) <r>: New field.
5214 (use_range_stepping): New global.
5215 (remote_vcont_probe): Handle 'r' action.
5216 (append_resumption): Append an 'r' action if the thread may range
5217 step.
5218 (show_range_stepping): New function.
5219 (set_range_stepping): New function.
5220 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5221 'set range-stepping' and 'show range-stepping' commands.
5222 * NEWS: Mention range stepping, the new vCont;r action, and the
5223 new "set/show range-stepping" commands.
5224
d458bd84
PA
52252013-05-23 Yao Qi <yao@codesourcery.com>
5226 Pedro Alves <palves@redhat.com>
5227
5228 * remote.c (struct vCont_action_support): New struct.
5229 (struct remote_state) <support_vCont_t>: Remove field.
5230 <vCont_actions_support>: New field.
5231 (remote_vcont_probe, remote_stop_ns): Update.
5232
ce4c476a
PA
52332013-05-23 Yao Qi <yao@codesourcery.com>
5234 Pedro Alves <palves@redhat.com>
5235
5236 * gdbthread.h (pc_in_thread_step_range): New declaration.
5237 * thread.c (pc_in_thread_step_range): New function.
5238 * infrun.c (handle_inferior_event): Use it.
5239
ce70887a
JB
52402013-05-23 Joel Brobecker <brobecker@adacore.com>
5241
5242 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5243 of sprintf.
5244
55b87a52
KS
52452013-05-22 Keith Seitz <keiths@redhat.com>
5246
5247 * ada-lang.c (is_known_support_routine): Add explicit free of
5248 'func_name' from find_frame_funname.
5249 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5250 for func_name from find_frame_funname.
5251 * python/py-frame.c (frapy_name): Add explicit free of
5252 'name' from find_frame_funname.
5253 * stack.c (find_frame_funname): Add comment explaining that
5254 funcp must be freed by the caller.
5255 Return copy of symbol names instead of pointers.
5256 (print_frame): Add a cleanup for 'funname' from
5257 find_frame_funname.
5258 * stack.h (find_frame_funname): Remove "const" from
5259 'funname' parameter.
5260
5f2e6b00
TT
52612013-05-22 Tom Tromey <tromey@redhat.com>
5262
5263 PR c++/15401:
5264 * c-valprint.c (c_value_print): Use value_addr for
5265 references. Convert back to reference type with value_ref.
5266
d85c4847
EZ
52672013-05-22 Eli Zaretskii <eliz@gnu.org>
5268
5269 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5270 unloaded DLL, it will be done by handle_solib_event. See
5271 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5272 details.
5273
54eb231c
PM
52742013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5275
5276 * ui-out.c: Create typedef ui_out_level_p and define vector
5277 operations for that type.
5278 (struct ui_out): Use a vector instead of an array.
5279 (current_level): Return level from a vector.
5280 (push_level): Create a level in a vector.
5281 (pop_level): Delete a level in a vector.
5282 (ui_out_new): Create initial level zero level, and store in a
5283 vector.
5284 (ui_out_destroy): Add vector cleanup.
5285
ac90359c
PA
52862013-05-22 Pedro Alves <palves@redhat.com>
5287
5288 * python/python-internal.h (gdb_Py_DECREF): Tag with
5289 "ARI: editCase function".
5290
6dcc1893
PP
52912013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5292
5293 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5294
c8c735b9
PA
52952013-05-21 Pedro Alves <palves@redhat.com>
5296
5297 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5298 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5299 * python/py-utils.c (py_decref): Don't check for NULL before
5300 calling Py_DECREF.
5301
1915daeb
PA
53022013-05-21 Pedro Alves <palves@redhat.com>
5303
5304 * python/py-utils.c (py_decref): Remove extra braces.
5305 (gdb_pymodule_addobject): Remove extra braces.
5306 * python-internal.h (gdb_Py_DECREF): New static inline function.
5307 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5308
bd9673a4
PW
53092013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5310
5311 * breakpoints.c (detach_breakpoints): Do not
5312 detach breakpoints locations with loc_type bp_loc_other.
5313
ff6009d0
JK
53142013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5315
5316 Workaround Python 2.6.
5317 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5318 a block.
5319
3641da11
JK
53202013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5321
5322 Code cleanup: constification.
5323 * solib.c (solib_ops): Make return type and ops variable type const.
5324 (set_solib_ops): Make the new_ops parameter and ops variable const.
5325 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5326 (solib_add, solib_keep_data_in_core, clear_solib)
5327 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5328 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5329 const.
5330 * solib.h (set_solib_ops): Make the new_ops parameter const.
5331
776af39e
JB
53322013-05-21 Joel Brobecker <brobecker@adacore.com>
5333
5334 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5335 variable.
5336 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5337 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5338 (SYSTEM_GDBINIT_FILES): New variables.
5339 (all): Add stamp-system-gdbinit.
5340 (stamp-system-gdbinit): New rule.
5341 (clean-system-gdbinit, install-system-gdbinit)
5342 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5343 (install-only): Add dependency on install-system-gdbinit.
5344 (uninstall): Add dependency on uninstall-system-gdbinit.
5345 (clean): Add dependency on clean-system-gdbinit.
5346 * system-gdbinit/elinos.py: New file.
5347 * system-gdbinit/wrs-linux.py: New file.
5348
1509e573
JB
53492013-05-21 Joel Brobecker <brobecker@adacore.com>
5350
5351 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5352
c5867ab6
HZ
53532013-05-21 Hui Zhu <hui@codesourcery.com>
5354
5355 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5356 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5357 * mi/mi-cmd-break.c (ctype.h): New include.
5358 (gdb_obstack.h): New include.
5359 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5360 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5361 (mi_cmd_dprintf_insert): New.
5362 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5363 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5364
7d38e38f
TT
53652013-05-20 Tom Tromey <tromey@redhat.com>
5366
5367 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5368
97b77b39
TT
53692013-05-20 Tom Tromey <tromey@redhat.com>
5370
5371 * python/py-value.c (valpy_get_dynamic_type): Simplify
5372 dynamic_type assignment. Use Py_XINCREF.
5373
53e66479
TT
53742013-05-20 Tom Tromey <tromey@redhat.com>
5375
5376 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5377
dcf87832
TT
53782013-05-20 Tom Tromey <tromey@redhat.com>
5379
5380 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5381 (gdbpy_selected_frame): Move object-construction code
5382 out of TRY_CATCH.
5383
aa36459a
TT
53842013-05-20 Tom Tromey <tromey@redhat.com>
5385
5386 * python/py-arch.c (gdbpy_initialize_arch): Use
5387 gdb_pymodule_addobject.
5388 * python/py-block.c (gdbpy_initialize_blocks): Use
5389 gdb_pymodule_addobject.
5390 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5391 gdb_pymodule_addobject.
5392 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5393 gdb_pymodule_addobject.
5394 * python/py-event.c (gdbpy_initialize_event_generic): Use
5395 gdb_pymodule_addobject.
5396 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5397 gdb_pymodule_addobject.
5398 * python/py-evts.c (add_new_registry): Use
5399 gdb_pymodule_addobject.
5400 (gdbpy_initialize_py_events): Likewise.
5401 * python/py-finishbreakpoint.c
5402 (gdbpy_initialize_finishbreakpoints): Use
5403 gdb_pymodule_addobject.
5404 * python/py-frame.c (gdbpy_initialize_frames): Use
5405 gdb_pymodule_addobject.
5406 * python/py-function.c (gdbpy_initialize_functions): Use
5407 gdb_pymodule_addobject.
5408 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5409 gdb_pymodule_addobject.
5410 * python/py-infthread.c (gdbpy_initialize_thread): Use
5411 gdb_pymodule_addobject.
5412 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5413 gdb_pymodule_addobject.
5414 * python/py-param.c (gdbpy_initialize_parameters): Use
5415 gdb_pymodule_addobject.
5416 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5417 gdb_pymodule_addobject.
5418 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5419 gdb_pymodule_addobject.
5420 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5421 gdb_pymodule_addobject.
5422 * python/py-type.c (gdbpy_initialize_types): Use
5423 gdb_pymodule_addobject.
5424 * python/py-utils.c (gdb_pymodule_addobject): New function.
5425 * python/py-value.c (gdbpy_initialize_values): Use
5426 gdb_pymodule_addobject.
5427 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5428 * python/python.c (_initialize_python): Use
5429 gdb_pymodule_addobject.
5430
3d4a3c3e
TT
54312013-05-20 Tom Tromey <tromey@redhat.com>
5432
5433 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5434 * python/py-param.c (get_set_value, get_show_value): Use
5435 explicit decrefs.
5436 * python/python.c (start_type_printers, apply_type_printers):
5437 Use explicit decrefs.
5438
72ff8829
TT
54392013-05-20 Tom Tromey <tromey@redhat.com>
5440
5441 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5442 incref the module.
5443
02146ba5
TT
54442013-05-20 Tom Tromey <tromey@redhat.com>
5445
5446 * python/python.c (gdbpy_run_events): Decref the result
5447 of PyObject_CallObject.
5448
33ee792f
TT
54492013-05-20 Tom Tromey <tromey@redhat.com>
5450
5451 * python/py-symtab.c (set_sal): Use
5452 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5453 (symtab_and_line_to_sal_object): Update.
5454
fcb49fc8
TT
54552013-05-20 Tom Tromey <tromey@redhat.com>
5456
5457 * python/py-param.c (compute_enum_values): Decref 'item'.
5458
0646da15
TT
54592013-05-20 Tom Tromey <tromey@redhat.com>
5460
5461 * mi/mi-main.c: Include python-internal.h.
5462 (mi_cmd_list_features): Check gdb_python_initialized.
5463 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5464 (python_inferior_exit, python_new_objfile, add_thread_object)
5465 (delete_thread_object, py_free_inferior): Check
5466 gdb_python_initialized.
5467 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5468 gdb_python_initialized.
5469 * python/py-type.c (save_objfile_types): Check
5470 gdb_python_initialized.
5471 * python/python-internal.h (gdb_python_initialized): Declare.
5472 * python/python.c (ensure_python_env): Throw exception if
5473 Python not initialized.
5474 (before_prompt_hook, source_python_script_for_objfile)
5475 (start_type_printers, apply_type_printers,
5476 free_type_printers): Check gdb_python_initialized.
5477 * varobj.c (varobj_get_display_hint)
5478 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5479 (install_new_value_visualizer, varobj_set_visualizer)
5480 (value_get_print_value): Check gdb_python_initialized.
5481
999633ed
TT
54822013-05-20 Tom Tromey <tromey@redhat.com>
5483
5484 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5485 Check errors.
5486 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5487 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5488 Check errors.
5489 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5490 Check errors.
5491 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5492 Check errors.
5493 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5494 Check errors.
5495 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5496 init function to return 'int'.
5497 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5498 Return 'int'. Check errors.
5499 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5500 Check errors.
5501 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5502 Return 'int'. Check errors.
5503 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5504 Check errors.
5505 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5506 Check errors.
5507 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5508 Check errors.
5509 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5510 Check errors.
5511 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5512 Check errors.
5513 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5514 Check errors.
5515 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5516 Check errors.
5517 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5518 Check errors.
5519 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5520 Check errors.
5521 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5522 Check errors.
5523 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5524 Check errors.
5525 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5526 Check errors.
5527 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5528 Check errors.
5529 * python/python-internal.h (gdbpy_initialize_auto_load,
5530 gdbpy_initialize_values, gdbpy_initialize_frames,
5531 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5532 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5533 gdbpy_initialize_blocks, gdbpy_initialize_types,
5534 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5535 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5536 gdbpy_initialize_finishbreakpoints,
5537 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5538 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5539 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5540 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5541 gdbpy_initialize_signal_event,
5542 gdbpy_initialize_breakpoint_event,
5543 gdbpy_initialize_continue_event,
5544 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5545 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5546 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5547 * python/python.c (gdb_python_initialized): New global.
5548 (gdbpy_initialize_events): Return 'int'. Check errors.
5549 (_initialize_python): Check errors. Set
5550 gdb_python_initialized.
5551
18868860
TT
55522013-05-20 Tom Tromey <tromey@redhat.com>
5553
5554 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5555 Decref the reslut of PyObject_CallMethod.
5556
9f4ff0c2
TT
55572013-05-20 Tom Tromey <tromey@redhat.com>
5558
5559 * python/py-event.c (gdbpy_initialize_event_generic): Return
5560 early if PyType_Ready fails.
5561
0d3a2e8a
TT
55622013-05-20 Tom Tromey <tromey@redhat.com>
5563
5564 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5565 as 'default' in the switch.
5566
b86af38a
TT
55672013-05-20 Tom Tromey <tromey@redhat.com>
5568
5569 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5570 get_addr_from_python calls out of TRY_CATCH.
5571 (infpy_write_memory, infpy_search_memory): Likewise.
5572 * python/py-utils.c (get_addr_from_python): Return negative
5573 value on error. Use TRY_CATCH.
5574 * python/python-internal.h (get_addr_from_python): Use
5575 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5576
c127ec58
TT
55772013-05-20 Tom Tromey <tromey@redhat.com>
5578
5579 * python/py-event.c (evpy_emit_event): Decref the
5580 result of PyObject_CallFunctionObjArgs.
5581
ba327838
TT
55822013-05-20 Tom Tromey <tromey@redhat.com>
5583
5584 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5585 Correctly decref.
5586
d8191432
TT
55872013-05-20 Tom Tromey <tromey@redhat.com>
5588
5589 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5590
5d153bd1
TT
55912013-05-20 Tom Tromey <tromey@redhat.com>
5592
5593 * python/py-event.h (gdbpy_initialize_event_generic): Use
5594 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5595 * python/py-evts.c (add_new_registry): Use
5596 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5597 * python/python-internal.h
5598 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5599
56cc411c
TT
56002013-05-20 Tom Tromey <tromey@redhat.com>
5601
5602 * python/py-arch.c (archpy_disassemble): Update.
5603 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5604 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5605 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5606 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5607 macro.
5608 (GDB_PY_HANDLE_EXCEPTION): Update.
5609 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5610
8919e174
TT
56112013-05-20 Tom Tromey <tromey@redhat.com>
5612
5613 * python/python-internal.h (events_object_type): Remove.
5614
9b08f225
TT
56152013-05-20 Tom Tromey <tromey@redhat.com>
5616
f5aee5ee
AM
5617 * python/py-event.h (evpy_emit_event): Use
5618 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5619 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5620 New macro.
9b08f225 5621
f04010ff
TT
56222013-05-20 Tom Tromey <tromey@redhat.com>
5623
5624 * py-evtregistry.c (create_event_object): Decref
5625 eventregistry_object if PyList_New fails.
5626
3919fd96
TT
56272013-05-20 Tom Tromey <tromey@redhat.com>
5628
5629 * py-cmd.c (gdbpy_string_to_argv): Check result of
5630 PyList_New.
5631
0430e8cb
TT
56322013-05-20 Tom Tromey <tromey@redhat.com>
5633
5634 * python/python.c (before_prompt_hook): Add cleanup to
5635 decref 'hook'.
5636
764123e4
TT
56372013-05-20 Tom Tromey <tromey@redhat.com>
5638
5639 * python/py-function.c (fnpy_init): Decref result of
5640 PyObject_GetAttrString.
5641
634c58be
TT
56422013-05-20 Tom Tromey <tromey@redhat.com>
5643
5644 * python/py-threadevent.c (get_event_thread): Use
5645 CPYCHECKER_RETURNS_BORROWED_REF.
5646 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5647 New define.
5648 (pspace_to_pspace_object, objfile_to_objfile_object)
5649 (find_thread_object): Use it.
5650
62eec1a5
TT
56512013-05-20 Tom Tromey <tromey@redhat.com>
5652
5653 * python/py-arch.c (arch_object_type): Use
5654 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5655 * python/py-block.c (block_syms_iterator_object_type):
5656 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5657 * python/py-bpevent.c (breakpoint_event_object_type):
5658 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5659 * python/py-cmd.c (cmdpy_object_type): Use
5660 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5661 * python/py-continueevent.c (continue_event_object_type):
5662 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5663 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5664 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5665 * python/py-events.h (thread_event_object_type):
5666 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5667 * python/py-evtregistry.c (eventregistry_object_type): Use
5668 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5669 * python/py-exitedevent.c (exited_event_object_type):
5670 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5671 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5672 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5673 * python/py-function.c (fnpy_object_type): Use
5674 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5675 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5676 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5677 * python/py-infthread.c (thread_object_type): Use
5678 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5679 * python/py-lazy-string.c (lazy_string_object_type):
5680 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5681 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5682 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5683 * python/py-objfile.c (objfile_object_type): Use
5684 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5685 * python/py-param.c (parmpy_object_type):
5686 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5687 * python/py-progspace.c (pspace_object_type):
5688 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5689 * python/py-signalevent.c (signal_event_object_type):
5690 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5691 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5692 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5693 * python/py-type.c (type_object_type, field_object_type)
5694 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5695 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5696 define.
5697 (value_object_type, block_object_type, symbol_object_type)
5698 (event_object_type, stop_event_object_type, breakpoint_object_type)
5699 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5700
81ea8796
AT
57012013-05-20 Andreas Tobler <andreas@fgznet.ch>
5702
5703 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5704 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5705
a2ce51a0
DE
57062013-05-20 Doug Evans <dje@google.com>
5707
5708 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5709 For Fission.
5710 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5711 reading_dwo_directly.
5712 (struct signatured_type): New member dwo_unit.
5713 (struct die_reader_specs): New member comp_dir.
5714 (create_signatured_type_table_from_index): Use malloc for
5715 all_type_units instead of objfile's obstack.
5716 (create_all_type_units): Ditto.
5717 (fill_in_sig_entry_from_dwo_entry): New function.
5718 (add_type_unit): New function.
5719 (lookup_dwo_signatured_type): New function.
5720 (lookup_dwp_signatured_type): New function.
5721 (lookup_signatured_type): New arg cu. All callers updated.
5722 (init_cu_die_reader): Initialize comp_dir.
5723 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5724 Change assert of matching type signatures to call error on mismatch.
5725 (lookup_dwo_unit): Add assert.
5726 (init_tu_and_read_dwo_dies): New function.
5727 (init_cutu_and_read_dies): Call it.
5728 (build_type_unit_groups): Handle case of no type unit groups created.
5729 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5730 (lookup_dwo_cutu): Tweak complaint.
5731 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5732 (dwarf2_per_objfile_free): Free all_type_units.
5733
a25cd31f
JB
57342013-05-20 Joel Brobecker <brobecker@adacore.com>
5735
5736 * windows-nat.c (handle_unload_dll): Add missing empty line.
5737
4d804846
JB
57382013-05-20 Joel Brobecker <brobecker@adacore.com>
5739
5740 * dwarf2read.c (prototyped_function_p): New function.
5741 (read_subroutine_type): Use it.
5742
1c432e72
JB
57432013-05-20 Joel Brobecker <brobecker@adacore.com>
5744
5745 * rs6000-aix-tdep.c: De-indent some example code provided
5746 as a comment.
5747
4feebbdd
EBM
57482013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5749
5750 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5751 region is ok for a hardware watchpoint using the new ptrace interface
5752 on Power servers.
5753
7d0c9981
DE
57542013-05-17 Doug Evans <dje@google.com>
5755
5756 * NEWS: Mention new maintenance commands check-symtabs, and
5757 expand-symtabs, and renamed check-psymtabs.
5758 * psymtab.c (maintenance_check_psymtabs): Renamed from
5759 maintenance_check_symtabs. Only process already-expanded symbol
5760 tables.
5761 (_initialize_psymtab): Update.
5762 * symmisc.c (maintenance_check_symtabs): New function.
5763 (maintenance_expand_name_matcher): New function
5764 (maintenance_expand_file_matcher): New function
5765 (maintenance_expand_symtabs): New function.
5766 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5767 commands.
5768
6cbc7c3d
TT
57692013-05-17 Tom Tromey <tromey@redhat.com>
5770
5771 * python/py-inferior.c (infpy_read_memory): Don't call
5772 PyErr_SetString if PyObject_New fails.
5773 * python/py-frame.c (frame_info_to_frame_object): Don't call
5774 PyErr_SetString if PyObject_New fails.
5775
a48b32c0
L
57762013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5777
5778 * acinclude.m4: Add check for dlopen in libdl.
5779 * configure.ac: Ditto.
5780 * configure: Regenerate.
5781
3de661e6
PM
57822013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5783
5784 * frame.c (frame_stash): Convert to htab.
5785 (frame_addr_hash): New function.
5786 (frame_addr_hash_eq): New function.
5787 (frame_stash_create): Convert function to create
5788 a hash table.
5789 (frame_stash_add): Convert function to add an entry to a hash
5790 table.
5791 (frame_stash_find): Convert function to search the hash table.
5792 (frame_stash_invalidate): Convert function to empty the hash
5793 table.
5794 (get_frame_id): Only add to stash if a frame_id is created.
5795 (_initialize_frame): Call frame_stash_create.
5796
bb4168a9 57972013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5798
5799 * configure.ac: Ensure MIG is available when building for GNU Hurd
5800 hosts.
5801 * configure: Regenerate.
5802
d1be3247
JB
58032013-05-16 Joel Brobecker <brobecker@adacore.com>
5804
5805 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5806
b8fea896
JB
58072013-05-16 Joel Brobecker <brobecker@adacore.com>
5808
5809 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5810 all cleanups are done before returning from this function.
5811
af880d85
JB
58122013-05-15 Joel Brobecker <brobecker@adacore.com>
5813
5814 * utils.h: #include "exceptions.h".
5815 (enum errors): Remove partial declaration.
5816
356a5233
JB
58172013-05-15 Joel Brobecker <brobecker@adacore.com>
5818
5819 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5820 * gdbarch.h, gdbarch.c: Regenerate.
5821 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5822 handling.
5823
5824 * rs6000-aix-tdep.h: New file.
5825 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5826 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5827 "xml-utils.h".
5828 (struct field_info, struct ld_info_desc): New types.
5829 (ld_info32_desc, ld_info64_desc): New static constants.
5830 (struct ld_info): New type.
5831 (rs6000_aix_extract_ld_info): New function.
5832 (rs6000_aix_shared_library_to_xml): Likewise.
5833 (rs6000_aix_ld_info_to_xml): Likewise.
5834 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5835 (rs6000_aix_init_osabi): Add call to
5836 set_gdbarch_core_xfer_shared_libraries_aix.
5837 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5838 Remove "xml-utils.h" include.
5839 (LdInfo): Delete typedef.
5840 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5841 Delete macros.
5842 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5843 Adjust code accordingly.
5844 (rs6000_core_ldinfo): Delete, folded into
5845 rs6000_aix_core_xfer_shared_libraries_aix.
5846 (rs6000_xfer_shared_library): Delete.
5847 (rs6000_xfer_shared_libraries): Reimplement.
5848
742ce053
MM
58492013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5850
5851 * record.c (record_goto_cmdlist): New.
5852 (cmd_record_goto): Split into this ...
5853 (cmd_record_goto_begin): ... this
5854 (cmd_record_goto_end): ... and this.
5855 (_initialize_record): Change "record goto" to prefix command.
5856 Add commands for "record goto begin" and "record goto end".
5857 Add an alias for "record goto start" to "record goto begin".
5858
e93ba630
JK
58592013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5860
5861 * linespec.c (convert_linespec_to_sals): New comment for
5862 SOURCE_FILENAME assignment.
5863
5821aace
JK
58642013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5865
5866 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5867 internal_warning.
5868
a1b8c4cc
TT
58692013-05-14 Tom Tromey <tromey@redhat.com>
5870
5871 * eval.c (parse_and_eval_long): Make 'exp' const.
5872 * value.h (parse_and_eval_long): Update.
5873
23b3a2c3
TT
58742013-05-14 Tom Tromey <tromey@redhat.com>
5875
5876 * ui-file.c (gdb_fopen): Make arguments const.
5877 * ui-file.h (gdb_fopen): Make arguments const.
5878
ca623f82
TT
58792013-05-14 Tom Tromey <tromey@redhat.com>
5880
5881 * remote.c (remote_set_trace_notes): Make arguments const.
5882 * target.c (update_current_target): Update cast.
5883 * target.h (to_set_trace_notes): Make arguments const.
5884
503ebb2c
TT
58852013-05-14 Tom Tromey <tromey@redhat.com>
5886
5887 * go32-nat.c (go32_terminal_info): Make 'args' const.
5888 * inferior.h (child_terminal_info): Update.
5889 * inflow.c (child_terminal_info): Make 'args' const.
5890 * target.c (default_terminal_info): Make 'args' const.
5891 (debug_to_terminal_save_ours): Likewise.
5892 * target.h (struct target_ops) <to_terminal_info>: Make argument
5893 const.
5894
85e1311a
TT
58952013-05-13 Tom Tromey <tromey@redhat.com>
5896
5897 * gcore.c (create_gcore_bfd): Make 'filename' const.
5898 * gcore.h (create_gcore_bfd): Make 'filename' const.
5899 * record-full.c (record_full_save): Make 'recfilename' const.
5900 * target.c (target_save_record): Make 'filename' const.
5901 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5902 const.
5903 (target_save_record): Likewise.
5904
d62bfeaf
TT
59052013-05-13 Tom Tromey <tromey@redhat.com>
5906
f5aee5ee 5907 PR gdb/15338:
d62bfeaf
TT
5908 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5909 ranges section has been read.
5910
ac1ca910
TT
59112013-05-13 Tom Tromey <tromey@redhat.com>
5912
5913 PR exp/15364:
5914 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5915 STRUCTOP_PTR>: Return a not_lval value for
5916 EVAL_AVOID_SIDE_EFFECTS.
5917 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5918 for EVAL_AVOID_SIDE_EFFECTS.
5919
36d1c68c
JB
59202013-05-13 Joel Brobecker <brobecker@adacore.com>
5921
5922 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5923 floating point registers to register type before storing
5924 value.
5925 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5926 Likewise.
5927
21ff4686
TT
59282013-05-10 Joel Brobecker <brobecker@adacore.com>
5929 Tom Tromey <tromey@redhat.com>
5930
5931 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5932 New functions.
5933 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5934 Declare.
5935 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5936 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5937 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5938 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5939
d3685d60
TT
59402013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5941 Tom Tromey <tromey@redhat.com>
5942
5943 PR build/15414:
5944 * configure: Rebuild.
5945 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5946 with -Wno-format.
5947
eb9fe518
PA
59482013-05-10 Pedro Alves <palves@redhat.com>
5949
5950 * remote.c (_initialize_remote): Fix spelling of
5951 qXfer:traceframe-info:read packet in packet config command.
5952
9779ab84
PA
59532013-05-10 David Taylor <dtaylor@emc.com>
5954
5955 PR remote/15455
5956
5957 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5958 "QTro" at start of packet.
5959
060cfbef
JB
59602013-05-10 Joel Brobecker <brobecker@adacore.com>
5961
5962 * solib-aix.c (solib_aix_relocate_section_addresses):
5963 For the .bss section action, apply the same offset as
5964 the .data section.
5965
ab1c4e88
JB
59662013-05-10 Joel Brobecker <brobecker@adacore.com>
5967
5968 * solib-aix.c (solib_aix_relocate_section_addresses):
5969 Remove FIXME comment.
5970
c1357578
JB
59712013-05-10 Joel Brobecker <brobecker@adacore.com>
5972
5973 PR tdep/15420:
5974 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5975 New functions, directly copied from sparc-sol-thread.c.
5976 * sparc-sol-thread.c: Delete.
5977 * configure.ac: Remove code handling sparc-solaris-thread.c.
5978 * configure: Regenerate.
5979
1e611234
PM
59802013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5981
5982 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5983 filter logic.
5984 (backtrace_command): Add "no-filters" option parsing.
5985 (_initialize_stack): Alter help to reflect "no-filters" option.
5986 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5987 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5988 (py-frame.o): Add target
5989 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5990 filter files.
5991 * python/python.h: Add new frame filter constants, and flag enum.
5992 (apply_frame_filter): Add definition.
5993 * python/python.c (apply_frame_filter): New non-Python
5994 enabled function.
5995 * python/py-utils.c (py_xdecref): New function.
5996 (make_cleanup_py_xdecref): Ditto.
5997 * python/py-objfile.c: Declare frame_filters dictionary.
5998 (objfpy_dealloc): Add frame_filters dealloc.
5999 (objfpy_new): Initialize frame_filters attribute.
6000 (objfile_to_objfile_object): Ditto.
6001 (objfpy_get_frame_filters): New function.
6002 (objfpy_set_frame_filters): New function.
6003 * python/py-progspace.c: Declare frame_filters dictionary.
6004 (pspy_dealloc): Add frame_filters dealloc.
6005 (pspy_new): Initialize frame_filters attribute.
6006 (pspacee_to_pspace_object): Ditto.
6007 (pspy_get_frame_filters): New function.
6008 (pspy_set_frame_filters): New function.
6009 * python/py-framefilter.c: New file.
6010 * python/lib/gdb/command/frame_filters.py: New file.
6011 * python/lib/gdb/frames.py: New file.
6012 * python/lib/gdb/__init__.py: Initialize global frame_filters
6013 dictionary
6014 * python/lib/gdb/FrameDecorator.py: New file.
6015 * python/lib/gdb/FrameIterator.py: New file.
6016 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6017 * mi/mi-cmds.h: Declare.
6018 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6019 --no-frame-filter logic, and Python frame filter logic.
6020 (stack_enable_frame_filters): New function.
6021 (parse_no_frame_option): Ditto.
6022 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6023 filter logic.
6024 (mi_cmd_stack_list_locals): Ditto.
6025 (mi_cmd_stack_list_args): Ditto.
6026 (mi_cmd_stack_list_variables): Ditto.
6027 * NEWS: Add frame filter note.
6028
2cb9c859
DE
60292013-05-09 Doug Evans <dje@google.com>
6030
6bf667bb
DE
6031 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6032 All callers updated.
6033 (syms_from_objfile): Ditto. Make static.
6034 (symbol_file_add_with_addrs): Renamed from
6035 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6036 num_offsets. All callers updated.
6037 * symfile.h (syms_from_objfile): Delete.
6038
2cb9c859
DE
6039 * symfile.c (decrement_reading_symtab): Add assert.
6040 (increment_reading_symtab): Ditto.
6041
40aea477
JB
60422013-05-09 Joel Brobecker <brobecker@adacore.com>
6043
6044 * source.c (forward_search_command): Replace call to getc
6045 by call to fgetc.
6046 (reverse_search_command): Likewise.
6047
680d1742
DE
60482013-05-08 Doug Evans <dje@google.com>
6049
6050 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6051 matching test.
6052
17e760ae
JB
60532013-05-08 Joel Brobecker <brobecker@adacore.com>
6054
6055 * sol-thread.c (info_cb): Factorize the code a little.
6056
c0f5f490
JB
60572013-05-08 Joel Brobecker <brobecker@adacore.com>
6058
6059 * sol-thread.c (info_cb): Rework the output of the "maintenance
6060 info sol-threads" command a bit.
6061
5d74e061
JB
60622013-05-08 Joel Brobecker <brobecker@adacore.com>
6063
6064 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6065 Replace ti.ti_startfunc by ti.ti_pc.
6066
814a3ff7
JB
60672013-05-08 Joel Brobecker <brobecker@adacore.com>
6068
6069 * solib-aix.c (solib_aix_free_library_list): New function
6070 for the case where HAVE_LIBEXPAT is not defined.
6071
58ce7251
SDJ
60722013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6073
6074 PR breakpoints/15413:
6075 * breakpoint.c (condition_completer): Simplify the code to
6076 disconsider multiple locations of breakpoints when completing the
6077 "condition" command.
6078
be8b1ea6
PM
60792013-05-07 Pierre Muller <muller@sourceware.org>
6080
6081 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6082 instead of <sys/wait.h>.
6083
1e52bda6
PM
60842013-05-07 Pierre Muller <muller@sourceware.org>
6085
6086 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6087 trailing new line from warning message.
6088
27fd0c6b
PM
60892013-05-07 Pierre Muller <muller@sourceware.org>
6090
6091 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6092 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6093
e228ac87
JB
60942013-05-07 Joel Brobecker <brobecker@adacore.com>
6095
6096 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6097 error message (ARI fix).
6098
60992013-05-07 Joel Brobecker <brobecker@adacore.com>
6100
6101 * features/library-list-aix.dtd: Replace library-list by
6102 library-list-aix.
6103 * rs6000-nat.c: Replace library-list by library-list-aix
6104 throughout.
6105 * solib-aix.c: Likewise.
6106
61072013-05-07 Joel Brobecker <brobecker@adacore.com>
6108
6109 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6110 Renames TARGET_OBJECT_AIX_LIBRARIES.
6111 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6112 TARGET_OBJECT_LIBRARIES_AIX throughout.
6113 * solib-aix.c: Likwise.
6114
26a4dda9
YQ
61152013-05-07 Yao Qi <yao@codesourcery.com>
6116
6117 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6118 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6119
3582629f
YQ
61202013-05-07 Yao Qi <yao@codesourcery.com>
6121
6122 * solib-dsbt.c (enable_break): Declare.
6123 (dsbt_current_sos): Remove call to enable_break2.
6124 (enable_break2): Rename to enable_break. Set solib breakpoint
6125 on '_dl_debug_state'.
6126 (enable_break): Remove.
6127
aacbb8a5
LM
61282013-05-07 Luis Machado <lgustavo@codesourcery.com>
6129
6130 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6131 debug state prior to replicating existing hardware watchpoints or
6132 breakpoints.
6133
0c013353
JK
61342013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6135
6136 * gcore.c (gcore_create_callback): Ignore sections with
6137 separate_debug_objfile_backlink != NULL.
6138
a1217d97
SL
61392013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6140 Andrew Jenner <andrew@codesourcery.com>
6141 Chung-Lin Tang <cltang@codesourcery.com>
6142 Julian Brown <julian@codesourcery.com>
6143
6144 Based on the nios2-elf port from Altera Corporation.
6145
6146 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6147 nios2-linux-tdep.o.
6148 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6149 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6150 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6151 * nios2-tdep.h: New.
6152 * nios2-tdep.c: New.
6153 * nios2-linux-tdep.c: New.
6154 * features/Makefile (WHICH): Add nios2-linux.
6155 (nios2-linux-expedite): Set.
6156 * features/nios2-cpu.xml: New.
6157 * features/nios2.xml: New.
6158 * features/nios2-linux.xml: New.
6159 * features/nios2.c: New (autogenerated).
6160 * features/nios2-linux.c: New (autogenerated).
6161 * regformats/nios2-linux.dat: New (autogenerated).
6162 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6163 and commands.
6164
0892cb63
DE
61652013-05-06 Doug Evans <dje@google.com>
6166
3b7bacac
DE
6167 * symfile.c: Whitespace cleanup.
6168
0892cb63
DE
6169 * solist.h (struct target_so_ops): New member clear_so.
6170 * solib-svr4.c (svr4_clear_so): New function.
6171 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6172 * solib.c (clear_so): Renamed from free_so_symbols.
6173 All callers updated. Call target clear_so if it exists.
6174
40501e00
TT
61752013-05-06 Tom Tromey <tromey@redhat.com>
6176
6177 * ada-lang.c (ada_value_primitive_packed_val): Don't
6178 call value_incref.
6179 * value.c (set_value_parent): Incref the new parent and decref
6180 the old parent.
6181 (value_copy, value_primitive_field): Use set_value_parent.
6182
b6807d98
TT
61832013-05-06 Tom Tromey <tromey@redhat.com>
6184
6185 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6186 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6187 if needed.
6188 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6189 * dwarf2read.c (write_constant_as_bytes)
6190 (dwarf2_fetch_constant_bytes): New functions.
6191
3aef2284
TT
61922013-05-06 Tom Tromey <tromey@redhat.com>
6193
6194 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6195 parameters.
6196 (dwarf2_const_value_attr): Update.
6197
66f65e2b
TT
61982013-05-06 Tom Tromey <tromey@redhat.com>
6199
6200 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6201 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6202 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6203 Remove declaration.
6204
7919a973
TT
62052013-05-06 Tom Tromey <tromey@redhat.com>
6206
6207 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6208 objfile's obstack.
6209
a7bfba49
DE
62102013-05-06 Doug Evans <dje@google.com>
6211
3189cb12
DE
6212 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6213 * stabsread.h (process_one_symbol): Update declaration.
6214 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6215 * elfread.c (elf_symfile_relocate_probe): Ditto.
6216 * psymtab.c (relocate_psymtabs): Ditto.
6217 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6218 (objfile_relocate): Ditto.
6219 * objfiles.h (objfile_relocate): Update declaration.
6220 * symfile.c (relative_addr_info_to_section_offsets): Constify
6221 addrs parameter.
6222 (default_symfile_offsets): Ditto.
6223 (syms_from_objfile_1): Constify offsets parameter.
6224 (syms_from_objfile): Ditto.
6225 (symbol_file_add_with_addrs_or_offsets): Ditto.
6226 (symfile_map_offsets_to_segments): Constify data parameter.
6227 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6228 delta parameters of member relocate.
6229 (struct sym_probe_fns): Constify new_offsets,
6230 delta parameters of member sym_relocate_probe.
6231 (struct sym_fns): Constify section_addr_info parameter of member
6232 sym_offsets.
6233 (relative_addr_info_to_section_offsets): Update declaration.
6234 (default_symfile_offsets): Ditto.
6235 (syms_from_objfile): Ditto.
6236 (symfile_map_offsets_to_segments): Ditto.
6237
a7bfba49
DE
6238 * symfile.c (syms_from_objfile_1): Use correct section count when
6239 objfile->sf == NULL.
6240
5f8e0b8f
MF
62412013-05-06 Mike Frysinger <vapier@gentoo.org>
6242
6243 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6244
ea52d893
DE
62452013-05-06 Doug Evans <dje@google.com>
6246
6247 * psympriv.h (struct partial_symtab): Augment comment for member
6248 section_offsets.
6249
4d1eb6b4
JB
62502013-05-06 Joel Brobecker <brobecker@adacore.com>
6251
6252 Reimplement shared library support on ppc-aix...
6253 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6254 * features/library-list-aix.dtd: New file.
6255 * solib-aix.h, solib-aix.c: New file.
6256 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6257 (rs6000_find_toc_address_hook): Delete.
6258 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6259 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6260 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6261 "xml-utils.h".
6262 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6263 (vmap_symtab, fixup_breakpoints): Delete.
6264 (rs6000_xfer_shared_libraries): New function.
6265 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6266 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6267 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6268 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6269 (rs6000_xfer_shared_library): New function.
6270 (find_toc_address): Delete.
6271 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6272 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6273 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6274 before creating minimal symbol. Adjust function description
6275 accordingly.
6276 (scan_xcoff_symtab): Replace call to
6277 prim_record_minimal_symbol_and_info by call to
6278 record_minimal_symbol.
6279 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6280 around default_symfile_offsets.
6281 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6282 powerpc-aix targets.
6283 * config/rs6000/nm-rs6000.h: Delete.
6284 * config/powerpc/aix.mh (NAT_FILE): Delete.
6285 (NATDEPFILES): Remove xcoffsolib.o.
6286 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6287 (ALL_TARGET_OBS): Add solib-aix.o.
6288 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6289 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6290 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6291 * xcoffsolib.h, xcoffsolib.c: Delete.
6292
6293 * solib.c (reload_shared_libraries): Remove reference to
6294 SOLIB_CREATE_INFERIOR_HOOK.
6295 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6296 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6297 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6298 comment.
6299 * corelow.c (deprecated_core_resize_section_table): Delete.
6300 * exec.c: Remove include of xcoffsolib.h".
6301 (map_vmap, vmap): Delete.
6302 (exec_close_1): Remove references to vmap.
6303 (exec_file_attach): Remove vmap handling code, and reference
6304 to DEPRECATED_IBM6000_TARGET.
6305 (bfdsec_to_vmap): Delete.
6306 (exec_files_info): Remove block of code handling VMAP.
6307 * infcmd.c (post_create_inferior): Remove reference to
6308 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6309 * infrun.c (follow_exec): Remove reference to
6310 SOLIB_CREATE_INFERIOR_HOOK.
6311 * stack.c (print_frame): Remove reference to PC_SOLIB.
6312 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6313 (dsbt_relocate_main_executable): Likewise.
6314 * solib-frv.c (frv_current_sos): Likewise.
6315
0c4f667c
JB
63162013-05-06 Joel Brobecker <brobecker@adacore.com>
6317
6318 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6319 to target_write_memory and target_read_memory.
6320
726ce67c
JB
63212013-05-06 Joel Brobecker <brobecker@adacore.com>
6322
6323 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6324 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6325
c8c9911f
JB
63262013-05-06 Joel Brobecker <brobecker@adacore.com>
6327
6328 * darwin-nat.c: Replace all "%x" instances in format strings
6329 into "0x%x" throughout.
6330
fda184b6
JB
63312013-05-06 Joel Brobecker <brobecker@adacore.com>
6332
6333 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6334 gdb_assert by call to MACH_CHECK_ERROR.
6335 (darwin_attach_pid): Raise an error rather than a failed
6336 assertion when various system calls failed. Report a warning
6337 instead of raising a failed assertion when PREV_NOT is not NULL
6338 after call to mach_port_request_notification.
6339 (darwin_ptrace_me): Raise an error rather than a failed
6340 assertion when read returns nonzero.
6341
d1d69afb
JB
63422013-05-06 Joel Brobecker <brobecker@adacore.com>
6343
6344 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6345
dc90b24d
JK
63462013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6347
6348 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6349
faab9922
JK
63502013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6351
6352 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6353 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6354 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6355 a stale cleanup. Fix double free of NAME.
6356
e0ea48a0
EZ
63572013-05-04 Eli Zaretskii <eliz@gnu.org>
6358
6359 * windows-nat.c (windows_delete_thread): Accept an additional
6360 argument, the thread's exit code, and announce thread death when
6361 print_thread_events is non-zero and we are deleting a thread that
6362 is not the main thread.
6363 (get_windows_debug_event): Pass thread exit code to
6364 windows_delete_thread.
6365
83b2706a
KB
63662013-05-03 Kevin Buettner <kevinb@redhat.com>
6367
6368 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6369 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6370 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6371 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6372 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6373 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6374 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6375 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6376 (gdbarch_tdep): New struct.
6377 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6378 E_NUM_REGS.
6379 (v850e3v5_register_name): New function.
6380 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6381 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6382 code handling the struct return conventions for the RH850 ABI.
6383 Update all callers.
6384 (v850_eight_byte_align_p): New function.
6385 (v850_push_call_dummy): Push structs by value, not by reference
6386 for the RH850 ABI. Add support for eight byte alignment.
6387 (v850_dbtrap_breakpoint_from_pc): New function.
6388 (v850_gdbarch_init): Add ABI detection code. Register
6389 v850e3v5_register_name for the v850e3v5 architecture. Set the
6390 number of registers for v850e3v5. Register
6391 v850_dbtrap_breakpoint_from_pc as appropriate.
6392 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6393
d445b2f6
DE
63942013-05-03 Doug Evans <dje@google.com>
6395
6396 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6397 of bfd_count_sections.
6398 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6399 * symfile.c (default_symfile_offsets): Ditto.
6400 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6401 one entry, not bfd_count_sections entries.
6402
b3ce41ea
KB
64032013-05-03 Kevin Buettner <kevinb@redhat.com>
6404
6405 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6406 `save' and `restore' register groups. Don't include SPL
6407 or SPH in these groups.
6408 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6409 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6410 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6411 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6412 dwarf2_append_unwinders().
6413
96f7d3f1
PW
64142013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6415
6416 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6417 ignore SIGINT and SIGTRAP in case these internal signals are
6418 caught explicitely.
6419
b9dd1947
JB
64202013-05-01 Joel Brobecker <brobecker@adacore.com>
6421
6422 * darwin-nat.c (darwin_read_write_inferior): Change types
6423 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6424 of copy_count to "mach_msg_type_number_t".
6425 (darwin_read_dyld_info): Change type of parameter
6426 rdaddr to "gdb_byte *".
6427
4ca18a63
JB
64282013-05-01 Joel Brobecker <brobecker@adacore.com>
6429
6430 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6431 of &info->load_map from "char *" to "gdb_byte *".
6432
2b692d32
JB
64332013-05-01 Joel Brobecker <brobecker@adacore.com>
6434
6435 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6436 from "char *" to "gdb_byte *".
6437 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6438
a98c29a0
DE
64392013-04-30 Doug Evans <dje@google.com>
6440
6a506a2d
DE
6441 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6442 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6443 DWO stub. If DWO isn't found, just use stub.
6444 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6445
a98c29a0
DE
6446 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6447 calling init_cutu_and_read_dies.
6448
f92b06da
WT
64492013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6450
6451 * target-descriptions.c (maint_print_c_tdesc_cmd):
6452 Add case to parse structures as register types and
6453 bitfields.
6454
95eebdcc
WT
64552013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6456
6457 * MAINTAINERS (Write After Approval): Add myself to the list.
6458
019c1128
JB
64592013-04-30 Joel Brobecker <brobecker@adacore.com>
6460
6461 * sol-thread.c (rw_common): Change type of parameter "buf"
6462 to "gdb_byte *".
6463 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6464 rw_common to "gdb_byte *" instead of "char *".
6465
5812197c
JB
64662013-04-30 Joel Brobecker <brobecker@adacore.com>
6467
6468 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6469 of local variable msym to const struct bound_minimal_symbol.
6470 Adjust use accordingly.
6471 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6472
ecccb813
TS
64732013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6474
6475 * i386gnu-nat.c (CREG_OFFSET): New macro.
6476 (creg_offset): New array.
6477 (CREG_ADDR): Use creg_offset instead of reg_offset.
6478
f1d02dd4 64792013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6480
6481 * mep-tdep.c (mep_write_pc): Delete.
6482 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6483 Add call to set_gdbarch_pc_regnum.
6484
f1d02dd4 64852013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6486
6487 * common/filestuff.c: Replace #include <dirent.h> by
6488 #include "gdb_dirent.h".
6489
f1d02dd4 64902013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6491
6492 * common/filestuff.c: Replace #include <sys/stat.h> by
6493 #include "gdb_stat.h".
6494
b385a60d
PM
64952013-04-29 Pierre Muller <muller@sourceware.org>
6496
6497 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6498 editCase function rule.
6499 (get_DW_AT_signature_type): Likewise.
6500
d27b54ad
JB
65012013-04-29 Joel Brobecker <brobecker@adacore.com>
6502
6503 * m32r-tdep.c (m32r_write_pc): Delete.
6504 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6505 Add call to set_gdbarch_pc_regnum.
6506
47d21dc5
PM
65072013-04-29 Pierre Muller <muller@sourceware.org>
6508
6509 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6510
9056882e
JB
65112013-04-29 Joel Brobecker <brobecker@adacore.com>
6512
6513 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6514
7ee4732a
YQ
65152013-04-28 Yao Qi <yao@codesourcery.com>
6516
6517 * solib-dsbt.c (fetch_loadmap): Re-indent.
6518 (displacement_from_map, enable_break2): Likewise.
6519 (dsbt_relocate_section_addresses): Likewise.
6520
2260af53 65212013-04-26 Joel Brobecker <brobecker@adacore.com>
6522
6523 GDB 7.6 released.
6524
ff546935
TT
65252013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6526
6527 PR corefiles/14983:
6528 * dwarf2read.c (process_full_comp_unit): Always create a static
6529 block.
6530
40fb6c5e
HZ
65312013-04-25 Hui Zhu <hui@codesourcery.com>
6532
6533 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6534 to loc->cmd_bytecode.
6535
74e04d1c
DE
65362013-04-24 Doug Evans <dje@google.com>
6537
6538 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6539
3cf62c1d
KS
65402013-04-22 Keith Seitz <keiths@redhat.com>
6541
6542 * tracepoint.c (trace_save): Call the writer's start method.
6543
bf9e4d0c
MB
65442013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6545
6546 PR gdb/10462
6547 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6548 before argument.
6549
5d71132c
TT
65502013-04-23 Tom Tromey <tromey@redhat.com>
6551
6552 * common/filestuff.c: Check USE_WIN32API before including
6553 sys/socket.h.
6554 (HAVE_F_GETFD): New define.
6555 (mark_cloexec): Check HAVE_F_GETFD.
6556 (gdb_open_cloexec): Change 'mode' to unsigned long.
6557 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6558 (gdb_pipe_cloexec): Check HAVE_PIPE.
6559 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6560 long.
6561
a11cfd87
HZ
65622013-04-23 Hui Zhu <hui@codesourcery.com>
6563
6564 PR gdb/15293
a11cfd87
HZ
6565 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6566
2d9442cc
HZ
65672013-04-23 Hui Zhu <hui@codesourcery.com>
6568
6569 PR gdb/15165
2d9442cc
HZ
6570 * breakpoint.c (dprintf_print_recreate): New.
6571 (save_breakpoints): Let it not save dprintf commands.
6572 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6573
614c279d
TT
65742013-04-22 Tom Tromey <tromey@redhat.com>
6575
6576 PR gdb/7912:
6577 * Makefile.in (SFILES): Add filestuff.c
6578 (COMMON_OBS): Add filestuff.o.
6579 (filestuff.o): New target.
6580 * auto-load.c (auto_load_objfile_script_1): Use
6581 gdb_fopen_cloexec.
6582 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6583 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6584 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6585 * common/agent.c (gdb_connect_sync_socket): Use
6586 gdb_socket_cloexec.
6587 * common/filestuff.c: New file.
6588 * common/filestuff.h: New file.
6589 * common/linux-osdata.c (linux_common_core_of_thread)
6590 (command_from_pid, commandline_from_pid, print_source_lines)
6591 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6592 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6593 gdb_fopen_cloexec.
6594 * common/linux-procfs.c (linux_proc_get_int)
6595 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6596 * config.in, configure: Rebuild.
6597 * configure.ac: Don't check for sys/socket.h. Check for
6598 fdwalk, pipe2.
6599 * corelow.c (core_open): Use gdb_open_cloexec.
6600 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6601 * fork-child.c (fork_inferior): Call close_most_fds.
6602 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6603 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6604 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6605 Use gdb_fopen_cloexec.
6606 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6607 gdb_open_cloexec.
6608 (linux_async_pipe): Use gdb_pipe_cloexec.
6609 * remote-fileio.c (remote_fileio_func_open): Use
6610 gdb_open_cloexec.
6611 * remote.c (remote_file_put, remote_file_get): Use
6612 gdb_fopen_cloexec.
6613 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6614 close_most_fds.
6615 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6616 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6617 * solib.c (solib_find): Use gdb_open_cloexec.
6618 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6619 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6620 (tfile_open): Use gdb_open_cloexec.
6621 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6622 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6623 * xml-support.c (xml_fetch_content_from_file): Use
6624 gdb_fopen_cloexec.
6625 * main.c (captured_main): Call notice_open_fds.
6626
5fda2332
EBM
66272013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6628
6629 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6630 'char *' to 'gdb_byte *'.
6631 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6632 'gdb_byte'.
6633
eb6c553b
YQ
66342013-04-22 Yao Qi <yao@codesourcery.com>
6635
6636 * infrun.c: Fix typo in comment.
6637
9991b207
SDJ
66382013-04-22 Andrew Haley <aph@redhat.com>
6639
6640 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6641 instead of "long".
6642
8b4833e3
YQ
66432013-04-20 Yao Qi <yao@codesourcery.com>
6644
6645 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6646 'char *' to 'gdb_byte *'. Cast the return value of
6647 'bt_ctf_get_char_array' to 'gdb_byte *'.
6648
bd3f3b55
PA
66492013-04-19 Pedro Alves <palves@redhat.com>
6650
6651 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6652 -Wpointer-sign.
6653 * configure: Regenerate.
6654
c49e7f76
PA
66552013-04-19 Pedro Alves <palves@redhat.com>
6656
6657 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6658 'void *'.
6659
12ff8552
PA
66602013-04-19 Pedro Alves <palves@redhat.com>
6661
6662 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6663 Change type of 'myaddr' parameter to gdb_byte pointer.
6664 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6665 to 'long long' pointer instead of to 'unsigned long long'.
6666 (monitor_write_memory_block, monitor_read_memory_single)
6667 (monitor_read_memory): Change type of 'myaddr' parameter to
6668 gdb_byte pointer.
6669
9c37696b
PA
66702013-04-19 Pedro Alves <palves@redhat.com>
6671
6672 * record.c (validate_history_size): Make parameter 'setting'
6673 unsigned.
6674
a398505b
PA
66752013-04-19 Pedro Alves <palves@redhat.com>
6676
6677 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6678 to 'gdb_byte *'.
6679
9f8afa72
PA
66802013-04-19 Pedro Alves <palves@redhat.com>
6681
6682 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6683 local to int.
6684
c714b426
PA
66852013-04-19 Pedro Alves <palves@redhat.com>
6686
6687 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6688 * ada-tasks.c (read_fat_string_value): Likewise.
6689
507a579c
PA
66902013-04-19 Pedro Alves <palves@redhat.com>
6691
6692 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6693 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6694 'offset', and adjust.
6695
f9d83a0b
PA
66962013-04-19 Pedro Alves <palves@redhat.com>
6697
6698 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6699 (read_index_from_section): Add cast to 'char *'.
6700
745eb4fd
PA
67012013-04-19 Pedro Alves <palves@redhat.com>
6702
6703 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6704
db5be46f
PA
67052013-04-19 Pedro Alves <palves@redhat.com>
6706
6707 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6708
0f928d68
PA
67092013-04-19 Pedro Alves <palves@redhat.com>
6710
6711 * record-full.c (record_full_get_bookmark): Change local 'ret'
6712 type to char * and add cast to gdb_byte *.
6713 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6714 string.
6715 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6716
89f6d837
PA
67172013-04-19 Pedro Alves <palves@redhat.com>
6718
6719 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6720 * python/py-prettyprint.c (print_string_repr): Change type of
6721 'output' local to char *. Add cast to gdb_byte * in
6722 LA_PRINT_STRING call.
6723 (print_children): Change type of 'output' local to char *.
6724 * python/py-value.c (valpy_string): Add cast to const char * in
6725 PyUnicode_Decode call.
6726
ce6ec7d8
PA
67272013-04-19 Pedro Alves <palves@redhat.com>
6728
6729 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6730 and change its type to 'const char *'. Adjust.
6731 (mips_send_packet): Add cast to 'char *', and remove cast to
6732 'unsigned char *'.
6733 (mips_receive_packet): Remove cast to 'unsigned char *'.
6734 (mips_load_srec): Use bfd_byte.
6735 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6736 (pmon_checkset): Make 'value' parameter unsigned.
6737
fda0389f
PA
67382013-04-19 Pedro Alves <palves@redhat.com>
6739
6740 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6741
bc20a4af
PA
67422013-04-19 Pedro Alves <palves@redhat.com>
6743
6744 * remote.c (remote_write_bytes_aux, compare_sections_command)
6745 (remote_read_qxfer)
6746 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6747 (remote_hostio_readlink, remote_bfd_iovec_pread)
6748 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6749 binary buffer, and char when buffer is used as string.
6750 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6751 (trace_save, tfile_open, traceframe_walk_blocks)
6752 (tfile_fetch_registers): Likewise.
6753
c628b528
PA
67542013-04-19 Pedro Alves <palves@redhat.com>
6755
6756 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6757 buffer and size_t size. Adjust.
6758 * ser-base.h (ser_base_write): Adjust.
6759 * ser-go32.c (cnts): Change type to size_t.
6760 (dos_write): Change prototype -- take 'void *'
6761 buffer and size_t size. Adjust.
6762 (dos_info): Print elements of 'cnts' as unsigned long.
6763 * serial.c (serial_write): Likewise.
6764 * serial.h (serial_write): Adjust.
6765 (struct serial_ops) <write>: Change prototype -- take 'void *'
6766 buffer and size_t size. Adjust.
6767
51a5cd90
PA
67682013-04-19 Pedro Alves <palves@redhat.com>
6769
6770 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6771 gdb_byte *.
6772 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6773
a9933661
PA
67742013-04-19 Pedro Alves <palves@redhat.com>
6775
6776 * alpha-tdep.c (alpha_extract_return_value): Use
6777 regcache_cooked_read_unsigned to read 'v0'.
6778
19afdd07
PA
67792013-04-19 Pedro Alves <palves@redhat.com>
6780
6781 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6782 parameters 'at', 'as' and 'offset' to uint32_t.
6783
96b32e50
PA
67842013-04-19 Pedro Alves <palves@redhat.com>
6785
6786 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6787 'is64' to signed 'int'.
6788
eb1bd1fb
PA
67892013-04-19 Pedro Alves <palves@redhat.com>
6790
6791 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6792 parameter to int *.
6793
463920bf
PA
67942013-04-19 Pedro Alves <palves@redhat.com>
6795
6796 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6797 'insnbuf' buffer type to unsigned int[].
6798
70242eb1
PA
67992013-04-19 Pedro Alves <palves@redhat.com>
6800
6801 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6802
9d1dd0e2
PA
68032013-04-19 Pedro Alves <palves@redhat.com>
6804
6805 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6806 unsigned long *.
6807
44096aee
PA
68082013-04-19 Pedro Alves <palves@redhat.com>
6809
6810 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6811 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6812 UINT_MAX.
6813 * mips-tdep.c (heuristic_fence_post): Change type to int.
6814 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6815
e4286e57
PA
68162013-04-19 Pedro Alves <palves@redhat.com>
6817
6818 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6819 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6820 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6821
001f13d8
PA
68222013-04-19 Pedro Alves <palves@redhat.com>
6823
6824 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6825 it to get a string view of the byte buffer.
6826 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6827 type to gdb_byte *. Adjust.
6828 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6829 Change local to char *.
6830 * solib-darwin.c (find_program_interpreter): Change return type to
6831 char *. Adjust.
6832 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6833 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6834 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6835 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6836 * solib-svr4.c (find_program_interpreter): Change return type to
6837 char *. Adjust.
6838 (enable_break): Change local 'interp_name' to char *.
6839 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6840 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6841 (spu_pseudo_register_write_spu): Use char for string buffer.
6842 Adjust.
6843 (info_spu_event_command, info_spu_signal_command): Add casts to
6844 'char *'.
6845
948f8e3d
PA
68462013-04-19 Pedro Alves <palves@redhat.com>
6847
6848 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6849 gdb_byte[].
6850 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6851 * ada-lang.c (ada_value_assign): Use gdb_byte.
6852 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6853 (alphanbsd_sigtramp_offset): Use gdb_byte.
6854 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6855 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6856 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6857 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6858 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6859 * arm-tdep.c (arm_stub_unwind_sniffer)
6860 (arm_displaced_init_closure): Use gdb_byte.
6861 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6862 (arm_default_thumb_le_breakpoint)
6863 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6864 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6865 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6866 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6867 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6868 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6869 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6870 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6871 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6872 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6873 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6874 (cris_store_return_value, cris_extract_return_value): Use
6875 gdb_byte.
6876 (constraint): Change type of parameter to char * from signed
6877 char*. Use gdb_byte.
6878 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6879 of local buffer to gdb_byte *.
6880 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6881 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6882 (add_address_entry): Change type of local buffer to gdb_byte[].
6883 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6884 (frv_push_dummy_call): Use gdb_byte.
6885 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6886 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6887 (hppa_hpux_supply_save_state): Use gdb_byte.
6888 * hppa-tdep.c (hppa32_push_dummy_call)
6889 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6890 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6891 (slotN_contents, replace_slotN_contents): Change type of parameter
6892 to gdb_byte *.
6893 (fetch_instruction, ia64_pseudo_register_write)
6894 (ia64_register_to_value, ia64_value_to_register)
6895 (ia64_extract_return_value, ia64_store_return_value)
6896 (ia64_push_dummy_call): Use gdb_byte.
6897 * m32c-tdep.c (m32c_return_value): Remove cast.
6898 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6899 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6900 gdb_byte.
6901 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6902 * mn10300-tdep.c (mn10300_store_return_value)
6903 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6904 gdb_byte.
6905 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6906 (moxie_process_record): Remove casts.
6907 * ppc-ravenscar-thread.c (supply_register_at_address)
6908 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6909 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6910 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6911 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6912 * remote.c (compare_sections_command): Use gdb_byte.
6913 * score-tdep.c (score7_free_memblock): Change type of parameter to
6914 gdb_byte *.
6915 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6916 gdb_byte *. Use gdb_byte.
6917 (sh_push_dummy_call_fpu): Use gdb_byte.
6918 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6919 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6920 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6921 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6922 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6923 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6924 (sh64_store_return_value, sh64_register_convert_to_virtual):
6925 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6926 (sh64_pseudo_register_write): Use gdb_byte.
6927 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6928 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6929 buffer.
6930 (irix_current_sos): Use gdb_byte.
6931 * solib-som.c (som_current_sos): Use gdb_byte.
6932 * sparc-ravenscar-thread.c (supply_register_at_address)
6933 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6934 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6935 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6936 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6937 'gdb_byte *'.
6938 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6939 'gdb_byte *'.
6940 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6941 * xstormy16-tdep.c (xstormy16_extract_return_value)
6942 (xstormy16_store_return_value): Change parameter type to
6943 'gdb_byte *'. Adjust.
6944 (xstormy16_push_dummy_call): Use gdb_byte.
6945 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6946 (call0_analyze_prologue, execute_code): Use gdb_byte.
6947
433730c9
PA
69482013-04-19 Vladimir Kargov <kargov@gmail.com>
6949 Pedro Alves <palves@redhat.com>
6950
6951 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6952 value contents.
6953
ac9ec31b
DE
69542013-04-17 Doug Evans <dje@google.com>
6955
6956 * dwarf2read.c (struct signatured_type): New member type.
6957 (struct attribute): Replace member signatured_type with signature.
6958 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6959 (read_call_site_scope): Call follow_die_ref instead of
6960 follow_die_ref_or_sig.
6961 (read_structure_type): Rewrite handling of signatured types.
6962 (read_enumeration_type): Ditto.
6963 (read_attribute_value): Update.
6964 (build_error_marker_type): New function.
6965 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6966 Don't call error for bad types, just build an error marker type.
6967 (dump_die_shallow): Update.
6968 (follow_die_sig_1): Renamed from follow_die_sig.
6969 Don't call error for bad types, instead return NULL.
6970 (follow_die_sig): New function.
6971 (get_signatured_type, get_DW_AT_signature_type): New functions.
6972
e546e8bb
YZ
69732013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6974
6975 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6976 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6977 function.
e546e8bb 6978
ab116149
YQ
69792013-04-17 Yao Qi <yao@codesourcery.com>
6980
6981 * top.c (print_gdb_configuration): Print configure-time
6982 parameter on using libbabeltrace or not.
6983
488a42b8
PA
69842013-04-16 Pedro Alves <palves@redhat.com>
6985
6986 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6987
f5fb825b
PA
69882013-04-16 Pedro Alves <palves@redhat.com>
6989
85d494ea 6990 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6991 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6992
e1154999
PA
69932013-04-16 Pedro Alves <palves@redhat.com>
6994
6995 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6996 * common/glibc_thread_db.h: ... this new file ...
6997 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6998
e3b50a7f
PA
69992013-04-16 Will Newton <will.newton@gmail.com>
7000 Pedro Alves <palves@redhat.com>
7001
7002 PR build/11881
7003
7004 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7005 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7006 HAVE_THREAD_DB_H.
7007
1c2e4450
PA
70082013-04-16 Pedro Alves <palves@redhat.com>
7009 Eli Zaretskii <eliz@gnu.org>
7010
7011 * NEWS: Mention "set foo unlimited".
7012
4031ecc5
DE
70132013-04-15 Doug Evans <dje@google.com>
7014
19c3d4c9
DE
7015 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7016 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7017 (create_dwo_cu_reader): Renamed from
7018 create_dwo_debug_info_hash_table_reader.
7019 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7020 Remove support for multiple CUs in a DWO file.
7021 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7022
4031ecc5
DE
7023 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7024 instead of phex.
7025 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7026 (create_dwo_in_dwp): Ditto.
7027
b340913d
TT
70282013-04-15 Tom Tromey <tromey@redhat.com>
7029
7030 * NEWS: Move recent entries into "since 7.6" section.
7031
cc16e6c9
TT
70322013-04-15 Tom Tromey <tromey@redhat.com>
7033
7034 PR c++/13588:
7035 * NEWS: Update.
7036 * break-catch-throw.c (struct exception_catchpoint)
7037 <exception_rx, pattern>: New fields.
7038 (fetch_probe_arguments, dtor_exception_catchpoint)
7039 (check_status_exception_catchpoint)
7040 (print_one_detail_exception_catchpoint): New functions.
7041 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7042 Compile regular expression if needed.
7043 (extract_exception_regexp): New function.
7044 (catch_exception_command_1): Use extract_exception_regexp.
7045 (compute_exception): Use fetch_probe_arguments.
7046 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7047 and check_status fields.
7048 * cp-abi.c (cplus_typename_from_type_info): New function.
7049 * cp-abi.h (cplus_typename_from_type_info): Declare.
7050 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7051 * gdb_regex.h (compile_rx_or_error): Declare.
7052 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7053 comment.
7054 (init_gnuv3_ops): Set get_type_from_type_info field.
7055 * probe.c (compile_rx_or_error): Move...
7056 * utils.c (compile_rx_or_error): ... here.
7057
72f1fe8a
TT
70582013-04-15 Tom Tromey <tromey@redhat.com>
7059
7060 PR c++/15176:
7061 * NEWS: Update.
7062 * break-catch-throw.c (compute_exception): New function.
7063 (exception_funcs): New global.
7064 (_initialize_break_catch_throw): Create $_exception.
7065 * cp-abi.c (cplus_type_from_type_info): New function.
7066 * cp-abi.h (cplus_type_from_type_info): Declare.
7067 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7068 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7069 (gnuv3_get_type_from_type_info): New functions.
7070 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7071
fc4746a2
TT
70722013-04-15 Tom Tromey <tromey@redhat.com>
7073
7074 * break-catch-throw.c (struct exception_names): New.
7075 (exception_functions): Change type.
7076 (re_set_exception_catchpoint): Look for SDT probes.
7077
15a73f56
TT
70782013-04-15 Tom Tromey <tromey@redhat.com>
7079
7080 PR c++/10119:
7081 * break-catch-throw.c (exception_functions): New global.
7082 (gnu_v3_exception_catchpoint_ops): Move earlier.
7083 (struct exception_catchpoint): New.
7084 (classify_exception_breakpoint): Rewrite.
7085 (re_set_exception_catchpoint): New function.
7086 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7087 Allocate a struct exception_catchpoint.
7088 (catch_exception_command_1): Update.
7089 (initialize_throw_catchpoint_ops): Set 're_set' method.
7090
916703c0
TT
70912013-04-15 Tom Tromey <tromey@redhat.com>
7092
7093 * Makefile.in (SFILES): Add break-catch-throw.c
7094 (COMMON_OBS): Add break-catch-throw.o.
7095 * break-catch-throw.c: New file.
7096 * breakpoint.c: Move exception-catching code to new file.
7097 (ep_parse_optional_if_clause): No longer static.
7098 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7099
6e72ca20
TT
71002013-04-15 Tom Tromey <tromey@redhat.com>
7101
7102 PR c++/9065:
7103 * NEWS: Update.
7104 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7105 * c-exp.y (TYPEID): New token.
7106 (exp): Add new TYPEID productions.
7107 (ident_tokens): Add "typeid".
7108 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7109 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7110 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7111 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7112 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7113 case.
7114 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7115 (build_std_type_info_type, gnuv3_get_typeid_type)
7116 (gnuv3_get_typeid): New functions.
7117 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7118 new fields on ABI object.
7119 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7120 * std-operator.def (OP_TYPEID): New.
7121
715c6909
TT
71222013-04-15 Tom Tromey <tromey@redhat.com>
7123
7124 * elfread.c (elf_symtab_read): Install versioned symbol under
7125 unversioned name as well.
7126
8de20a37
TT
71272013-04-15 Tom Tromey <tromey@redhat.com>
7128
7129 PR c++/11990:
7130 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7131 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7132 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7133 (gdb_demangle): New function.
7134 * cp-support.h (gdb_demangle): Declare.
7135 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7136 (dwarf2_name): Use gdb_demangle.
7137 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7138 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7139 suffixes from name.
7140 (gnuv3_print_method_ptr): Use gdb_demangle.
7141 * jv-lang.c (java_demangle): Use gdb_demangle.
7142 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7143 * language.c (unk_lang_demangle): Use gdb_demangle.
7144 * symtab.c (symbol_find_demangled_name)
7145 (demangle_for_lookup): Use gdb_demangle.
7146
591f19e8
TT
71472013-04-15 Tom Tromey <tromey@redhat.com>
7148
7149 PR c++/12824:
7150 * NEWS: Update.
7151 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7152 New constant.
7153 (classify_exception_breakpoint): New function.
7154 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7155 (print_mention_exception_catchpoint)
7156 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7157 (catch_exception_command_1): Handle "rethrow" catchpoint.
7158 (catch_rethrow_command): New function.
7159 (_initialize_breakpoint): Add "catch rethrow" command.
7160
4d40cad2
PM
71612013-04-15 Pierre Muller <muller@sourceware.org>
7162
7163 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7164 set_gdbarch_write_pc as deprecated anymore.
7165
30bcb456
JB
71662013-04-15 Joel Brobecker <brobecker@adacore.com>
7167
7168 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7169 declarations.
7170
da9160e4
YQ
71712013-04-13 Yao Qi <yao@codesourcery.com>
7172
7173 * ctf.c (_initialize_ctf): Include "completer.h".
7174 Call add_target_with_completer instead of add_target.
7175
39ed5604
JK
71762013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7177
7178 Fix GDB regression related to PR binutils/14813.
7179 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7180 * minidebug.c (lzma_close): Add return value comment.
7181 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7182 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7183 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7184
71852013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
7186
7187 * config.in: Regenerate.
7188
d521ce57
TT
71892013-04-12 Tom Tromey <tromey@redhat.com>
7190
7191 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7192 const.
7193 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7194 (struct die_reader_specs) <buffer>: Likewise.
7195 (die_reader_func_ftype): Make 'info_ptr' const.
7196 (struct line_header) <include_dirs, statement_program_start,
7197 statement_program_end>: Now const.
7198 (struct file_entry) <name>: Likewise.
7199 (struct partial_die_info) <sibling>: Likewise.
7200 (struct dwarf_block) <data>: Likewise.
7201 (dwarf2_read_section): Remove cast.
7202 (dwarf2_get_section_info): Make 'bufp' const.
7203 (read_index_from_section): Constify.
7204 (dw2_get_file_names_reader): Make 'info_ptr' const.
7205 (dw2_get_primary_filename_reader): Likewise.
7206 (read_comp_unit_head): Make 'info_ptr' and return type const.
7207 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7208 Likewise.
7209 (read_abbrev_offset): Constify.
7210 (dwarf2_create_include_psymtab): Make 'name' const.
7211 (create_debug_types_hash_table): Update.
7212 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7213 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7214 Constify.
7215 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7216 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7217 (read_comp_units_from_section): Constify.
7218 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7219 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7220 const.
7221 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7222 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7223 (create_dwp_hash_table, dwarf2_ranges_read)
7224 (dwarf2_record_block_ranges): Constify.
7225 (read_die_and_children, read_die_and_siblings_1)
7226 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7227 const.
7228 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7229 (abbrev_table_read_table): Constify.
7230 (load_partial_dies): Make 'info_ptr' const.
7231 (read_partial_die, read_attribute_value, read_attribute): Make
7232 'info_ptr' and return type const.
7233 (read_address, read_initial_length)
7234 (read_checked_initial_length_and_offset, read_offset)
7235 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7236 const.
7237 (read_direct_string): Make 'buf' and return type const.
7238 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7239 (read_indirect_string): Make return type const.
7240 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7241 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7242 'info_ptr' const.
7243 (read_str_index): Make return type const.
7244 (add_include_dir): Make 'include_dir' const.
7245 (add_file_name): Make 'name' const.
7246 (dwarf_decode_line_header): Constify.
7247 (psymtab_include_file_name): Make return type const.
7248 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7249 (dwarf2_start_subfile): Make 'filename' const.
7250 (dwarf2_const_value_attr): Make 'bytes' const.
7251 (read_signatured_type_reader): Make 'info_ptr' const.
7252 (decode_locdesc): Constify.
7253 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7254 const.
7255 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7256 'mac_end', and return type const.
7257 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7258 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7259 type const.
7260 (per_cu_header_read_in): Constify.
7261 * symfile.h (dwarf2_get_section_info): Update.
7262
d47a1bc1
TT
72632013-04-12 Tom Tromey <tromey@redhat.com>
7264
7265 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7266
6eaaf48b
EZ
72672013-04-12 Eli Zaretskii <eliz@gnu.org>
7268
fc4c25bf 7269 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
7270 * top.c (print_gdb_configuration): New function, displays the
7271 details about GDB configure-time parameters.
7272 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
7273 * cli/cli-cmds.c (show_configuration): New function.
7274 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
7275 * main.c (captured_main) <print_configuration>: New static var.
7276 <long_options>: Use it.
7277 If --configuration was given, call print_gdb_configuration.
7278
b292c783
JK
72792013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7280 Pedro Alves <palves@redhat.com>
7281
7282 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7283 (generated_files): Add gcore.
7284 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7285 HAVE_NATIVE_GCORE_HOST.
7286 (gcore): New.
7287 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7288 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7289 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7290 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7291 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7292 Add HAVE_NATIVE_GCORE_HOST.
7293 * configure: Regenerate.
7294 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7295 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7296 AC_CONFIG_FILES for gcore.
7297 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7298 gdb_have_gcore.
7299 * gdb_gcore.sh: Rename to ...
7300 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7301 and GCORE_TRANSFORM_NAME substitutions.
7302
c96b3c4f
JK
7303 Fix parsing tabs in ${gdb_target_obs}.
7304 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7305
d6cb50a2
JK
73062013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7307
7308 * remote.c (unpush_and_perror): Add output message final dot.
7309
cf2cb5ec
YQ
73102013-04-11 Yao Qi <yao@codesourcery.com>
7311
7312 * tracepoint.c (tfile_interp_line): Fit parameters line and
7313 utpp in one line.
7314
07293be4
JB
73152013-04-10 Joel Brobecker <brobecker@adacore.com>
7316
7317 * solib.c (solib_map_sections): Remove code overwriting
7318 SO->SO_NAME with the bfd's filename.
7319
f81d1120
PA
73202013-04-10 Pedro Alves <palves@redhat.com>
7321
7322 * cli/cli-decode.c (integer_unlimited_completer): New function.
7323 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7324 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7325 completer.
7326 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7327 (is_unlimited_literal): New function.
7328 (do_set_command): Handle literal "unlimited" arguments.
7329 * frame.c (_initialize_frame) <set backtrace limit>: Document
7330 "unlimited".
7331 * printcmd.c (_initialize_printcmd) <set print
7332 max-symbolic-offset>: Add help text.
7333 * record-full.c (_initialize_record_full) <set record full
7334 insn-number-max>: Likewise.
7335 * record.c (_initialize_record) <set record
7336 instruction-history-size, set record function-call-history-size>:
7337 Add help text.
7338 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7339 help text.
7340 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7341 Likewise.
7342 * source.c (_initialize_source) <set listsize>: Add help text.
7343 * utils.c (initialize_utils) <set height, set width>: Likewise.
7344 <set pagination>: Mention "set height unlimited".
7345 * valprint.c (_initialize_valprint) <set print elements, set print
7346 repeats>: Document "unlimited".
7347
2f9d54cf
PA
73482013-04-10 Pedro Alves <palves@redhat.com>
7349
7350 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7351 instead of disconnect_tracing.
7352 * infcmd.c (detach_command, disconnect_command): Call
7353 query_if_trace_running. Adjust.
7354 * top.c: Include "tracepoint.h".
7355 (quit_target): Delete. Contents moved ...
7356 (quit_force): ... here. Wrap each stage of teardown in
7357 TRY_CATCH. Call disconnect_tracing before detaching.
7358
393fd4c3
YQ
73592013-04-10 Hui Zhu <hui@codesourcery.com>
7360 Yao Qi <yao@codesourcery.com>
7361
7362 * configure.ac: Check libbabeltrace is installed.
7363 * config.in: Regenerate.
7364 * configure: Regenerate.
7365 * Makefile.in (LIBBABELTRACE): New.
7366 (CLIBS): Add LIBBABELTRACE.
7367 * ctf.c: Include "exec.h".
7368 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7369 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7370 (ctf_save_metadata_header): Define new type aliases in
7371 metadata.
7372 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7373 in metadata. Start a new faked packet for trace status.
7374 (ctf_write_status): Write trace status to CTF.
7375 (ctf_write_uploaded_tsv): Write TSV to CTF.
7376 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7377 (ctf_write_definition_end): End the faked packet.
7378
7379 (ctx, ctf_iter, trace_dirname): New.
7380 (start_pos): New variable.
7381 (ctf_destroy, ctf_open_dir, ctf_open): New.
7382 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7383 macros.
7384 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7385 (ctf_fetch_registers, ctf_xfer_partial): New.
7386 (ctf_get_trace_state_variable_value): New.
7387 (ctf_get_tpnum_from_frame_event): New.
7388 (ctf_get_traceframe_address): New.
7389 (ctf_trace_find, ctf_has_stack): New.
7390 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7391 (ctf_get_trace_status, ctf_read_status): New.
7392 (_initialize_ctf): New.
7393 * tracepoint.c (get_tracepoint_number): New
7394 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7395 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7396 * tracepoint.h: ... here.
7397 (get_tracepoint_number): Declare it.
7398 (get_uploaded_tsv): Declare it.
7399
7400 * NEWS: Mention new configure option.
7401
5c2b4418
HZ
74022013-04-10 Pedro Alves <palves@redhat.com>
7403 Hui Zhu <hui@codesourcery.com>
7404
7405 * breakpoint.c (dprintf_re_set): New.
7406 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7407 to dprintf_re_set.
7408
a5c66735
JB
74092013-04-09 Joel Brobecker <brobecker@adacore.com>
7410
7411 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7412 Remove solib-svr4.o from the list.
7413
9e77999c
JB
74142013-04-09 Joel Brobecker <brobecker@adacore.com>
7415
7416 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7417 Use gdb_assert_not_reached instead of invalid boolean expression.
7418
1927e618
PA
74192013-04-09 Pedro Alves <palves@redhat.com>
7420
7421 * remote.c (unpush_and_perror): New function.
7422 (readchar, remote_serial_write): Use it.
7423
10782d74
MM
74242013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7425
7426 * NEWS: Mention new btrace RSP packets.
7427
4c8429ef
TT
74282013-04-08 Tom Tromey <tromey@redhat.com>
7429
7430 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7431 long.
7432
8625fc1b
TT
74332013-04-08 Tom Tromey <tromey@redhat.com>
7434
7435 * maint.c (print_bfd_section_info): Print the section index.
7436 * symmisc.c (dump_msymbols): Print the section index.
7437
e27d198c
TT
74382013-04-08 Tom Tromey <tromey@redhat.com>
7439
7440 PR symtab/8424:
7441 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7442 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7443 * breakpoint.c (resolve_sal_pc): Update.
7444 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7445 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7446 (minsym_lookup_iterator_cb): Use it.
7447 (default_read_var_value): Update.
7448 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7449 Update.
7450 * infcmd.c (jump_command): Update.
7451 * linespec.c (minsym_found): Update.
7452 * maint.c (maintenance_translate_address): Update.
7453 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7454 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7455 * parse.c (write_exp_msymbol): Update.
7456 * printcmd.c (address_info): Update.
7457 * psymtab.c (find_pc_sect_psymbol): Update.
7458 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7459 SYMBOL_OBJ_SECTION.
7460 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7461 Don't initialize SYMBOL_OBJ_SECTION.
7462 * spu-tdep.c (spu_catch_start): Update.
7463 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7464 * symmisc.c (dump_msymbols, print_symbol): Update.
7465 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7466 how fallback section is computed.
7467 (fixup_symbol_section): Update.
7468 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7469 Update.
7470 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7471 Initialize SYMBOL_SECTION.
7472 * symtab.h (struct general_symbol_info) <section>: Update comment.
7473 <obj_section>: Remove.
7474 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7475 (SYMBOL_OBJFILE): New macro.
7476
e6dc44a8
TT
74772013-04-08 Tom Tromey <tromey@redhat.com>
7478
7479 * coffread.c (record_minimal_symbol): Update.
7480 * dbxread.c (record_minimal_symbol): Update.
7481 * elfread.c (record_minimal_symbol): Update.
7482 * machoread.c (macho_symtab_add_minsym): Update.
7483 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7484 Update.
7485 * minsyms.c (prim_record_minimal_symbol): Update.
7486 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7487 argument.
7488 (prim_record_minimal_symbol_and_info): Likewise.
7489 * minsyms.h (prim_record_minimal_symbol_full)
7490 (prim_record_minimal_symbol_and_info): Update.
7491 * symtab.c (allocate_symbol, initialize_symbol)
7492 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7493 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7494 Update.
7495
36192a8d
TT
74962013-04-08 Tom Tromey <tromey@redhat.com>
7497
7498 PR symtab/8423:
7499 * solib-som.c (som_solib_section_offsets): Use BFD section
7500 indices. Set offsets for all sections.
7501 * somread.c (som_symtab_read): Compute BFD section for
7502 symbol. Use prim_record_minimal_symbol_and_info.
7503 (som_symfile_read): Fix comment.
7504 (struct find_section_offset_arg): New.
7505 (find_section_offset, set_section_index): New functions.
7506 (som_symfile_offsets): Use set_section_index to compute
7507 section indices.
7508
65cf3563
TT
75092013-04-08 Tom Tromey <tromey@redhat.com>
7510
7511 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7512 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7513 gdb_bfd_section_index.
7514 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7515 New functions.
7516 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7517 Declare.
7518 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7519 Update.
7520 * objfiles.c (add_to_objfile_sections_full): New function.
7521 (add_to_objfile_sections): Use it.
7522 (build_section_table): Rewrite.
7523 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7524 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7525 (struct objfile) <sections>: Update comment.
7526 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7527 is NULL.
7528 (ALL_OBJSECTIONS): Use it.
7529 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7530 * solib-frv.c (frv_relocate_main_executable): Update.
7531 * solib-target.c (solib_target_relocate_section_addresses):
7532 Use gdb_bfd_section_index.
7533 * symfile.c (build_section_addr_info_from_section_table):
7534 Use gdb_bfd_section_index.
7535 (build_section_addr_info_from_bfd, place_section): Likewise.
7536 * symtab.c (fixup_section): Update.
7537 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7538
7cbd4a93
TT
75392013-04-08 Tom Tromey <tromey@redhat.com>
7540
7541 * minsyms.h (struct bound_minimal_symbol): New.
7542 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7543 Remove objfile argument.
7544 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7545 Return bound_minimal_symbol.
7546 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7547 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7548 Return bound_minimal_symbol.
7549 (in_gnu_ifunc_stub): Update.
7550 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7551 Remove 'objfile_p' argument.
7552 (lookup_solib_trampoline_symbol_by_pc): Update.
7553 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7554 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7555 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7556 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7557 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7558 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7559 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7560 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7561 stack.c, symtab.c, tui/tui-disasm.c: Update.
7562
f85f34ed
TT
75632013-04-08 Tom Tromey <tromey@redhat.com>
7564
7565 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7566 Use symbol's obstack, not an objfile.
7567 * coffread.c (process_coff_symbol): Update.
7568 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7569 * jv-lang.c (add_class_symbol): Update.
7570 * mdebugread.c (new_symbol): Update.
7571 * minsyms.c (prim_record_minimal_symbol_full)
7572 (terminate_minimal_symbol_table): Update.
7573 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7574 * stabsread.c (define_symbol, read_enum_type): Update.
7575 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7576 Handle Ada specially.
7577 (symbol_set_language): Add 'obstack' argument.
7578 (symbol_set_names): Update.
7579 (symbol_natural_name, symbol_demangled_name): Always use
7580 ada_decode_symbol.
7581 * symtab.h (struct general_symbol_info)
7582 <language_specific::obstack>: New field.
7583 <ada_mangled>: New field.
7584 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7585 (symbol_set_language): Update.
7586
ccde22c0
TT
75872013-04-08 Tom Tromey <tromey@redhat.com>
7588
7589 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7590 Take an obstack, not an objfile.
7591 (symbol_set_names): Update.
7592 * symtab.h (symbol_set_demangled_name): Update.
7593
e623cf5d
TT
75942013-04-08 Tom Tromey <tromey@redhat.com>
7595
7596 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7597 allocate_symbol.
7598 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7599 (read_func_scope): Call allocate_template_symbol.
7600 (new_symbol_full): Call allocate_symbol.
7601 * jit.c (finalize_symtab): Call allocate_symbol.
7602 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7603 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7604 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7605 (common_block_end): Call allocate_symbol.
7606 * symtab.c (allocate_symbol, initialize_symbol)
7607 (allocate_template_symbol): New functions.
7608 * symtab.c (allocate_symbol, initialize_symbol)
7609 (allocate_template_symbol): Declare.
7610 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7611
f6de8ec2
PA
76122013-04-08 Pedro Alves <palves@redhat.com>
7613 Keith Seitz <keiths@redhat.com>
7614
7615 * breakpoint.c (create_breakpoint): Rename
7616 "parse_condition_and_thread" parameter to "parse_arg". Update
7617 describing comment. If !PARSE_ARG, then error out if ARG is not
7618 the empty string after extracting the location.
7619 * breakpoint.h (create_breakpoint): Rename
7620 "parse_condition_and_thread" parameter to "parse_arg".
7621
f65ce5fb
AR
76222013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7623
7624 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7625
cc5925ad
YQ
76262013-04-07 Yao Qi <yao@codesourcery.com>
7627
7628 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7629 and 'addr2' to CORE_ADDR.
7630 * target.c (update_current_target): Update.
7631 * target.h (struct target_ops) <to_trace_find>: Change parameter
7632 type to CORE_ADDR.
7633 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7634 'addr2' to CORE_ADDR.
7635 (tfile_trace_find): Likewise.
7636 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7637 Change local variable 'addr' to type CORE_ADDR.
7638 * tracepoint.h (tfind_1): Update declaration.
7639
d9ac0664
EZ
76402013-04-06 Eli Zaretskii <eliz@gnu.org>
7641
7642 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7643 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7644 Include main.h.
7645
7646 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7647 here...
7648 * main.h (windows_get_absolute_argv0): ...to here.
7649
02142a6c
DE
76502013-04-05 Doug Evans <dje@google.com>
7651
7652 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7653 (read_cutu_die_from_dwo): Add comments.
7654 (read_structure_type): Update comment.
7655 (read_enumeration_type, read_namespace_type): Update comment.
7656 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7657
43662968
JK
76582013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7659
7660 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7661 * Makefile.in (gdb.z): Remove.
7662 (install-only): Remove $(man1dir) and gdb.1 installation.
7663 * gdb.1: Remove.
7664
9ead1b84
JK
76652013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7666
7667 Fix compatibility with Linux kernel 3.8.3.
7668 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7669 to more inner block. Remove parsing of NUMBER from outer block.
7670 Parse NUMBER only if KEYWORD has been identified.
7671
d1794952
JK
76722013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7673
7674 Fix variable name shadowing.
7675 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7676 filename to mapsfilename and update its uses.
7677
9025569e
EZ
76782013-04-05 Eli Zaretskii <eliz@gnu.org>
7679
7680 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7681 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7682 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7683 details of the problem.
7684
c9a6ce02
PA
76852013-04-04 Pedro Alves <palves@redhat.com>
7686 Hui Zhu <hui@codesourcery.com>
7687
7688 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7689 tracepoint, reset its STEP_COUNT and call validate_actionline.
7690
5ff888ce
DE
76912013-04-03 Doug Evans <dje@google.com>
7692
bf6af496
DE
7693 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7694 read_die_and_siblings.
7695 (read_die_and_siblings): New function.
7696 (read_cutu_die_from_dwo): Dump die if requested.
7697 (read_die_and_children): Call read_full_die_1 and
7698 read_die_and_siblings_1.
7699 (read_full_die): Dump die if requested.
7700
7701 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7702
0ac5b59e
DE
7703 * dwarf2read.c (struct dwo_file): New member comp_dir.
7704 Rename member name to dwo_name. All uses updated.
7705 (hash_dwo_file): Include comp_dir in computation.
7706 (eq_dwo_file): Ditto.
7707 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7708 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7709
5ff888ce
DE
7710 * psymtab.c (read_psymtabs_with_fullname): Don't call
7711 psymtab_to_fullname if the basenames are different.
7712
ec83d211
JK
77132013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7714
7715 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7716 New entry about "fullname" presence.
7717
4f4352f7
PA
77182013-04-03 Pedro Alves <palves@redhat.com>
7719
7720 * NEWS: Mention x86_64/Cygwin as new native configuration.
7721
3d1d5ea3
DE
77222013-04-02 Doug Evans <dje@google.com>
7723
7724 * dwarf2read.c (read_structure_type): Fix typo in comment.
7725
be9a8770
PA
77262013-04-02 Pedro Alves <palves@redhat.com>
7727
7728 * NEWS: Mention "set/show debug aarch64", "set/show debug
7729 coff-pe-read" and "set/show debug mach-o".
7730
a46c1e42
PA
77312013-04-02 Pedro Alves <palves@redhat.com>
7732
7733 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7734
3ad18b19
EZ
77352013-04-02 Eli Zaretskii <eliz@gnu.org>
7736
7737 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7738 gdb_string.h is now in common/.
7739
e9f1758d
PA
77402013-04-02 Pedro Alves <palves@redhat.com>
7741
7742 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7743 under "New options".
7744
049dc89b
JK
77452013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7746
7747 Revert this patch:
7748 PR gdb/15275
7749 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7750
c33e31fd
PA
77512013-04-02 Pedro Alves <palves@redhat.com>
7752
7753 PR gdb/15275
7754
7755 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7756 (remote_serial_write): New function.
7757 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7758
ea5f3910
JW
77592013-04-01 Jiong Wang <jiwang@tilera.com>
7760
7761 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7762 "New targets" sections.
ea5f3910 7763
5c6fa7ab
DE
77642013-04-01 Doug Evans <dje@google.com>
7765
c0f78cd4
DE
7766 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7767 (process_enumeration_scope): Simplify.
7768
0186c6a7
DE
7769 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7770 type_unit_group ...
7771 (struct signatured_type): ... to here.
7772 (sig_type_ptr): New typedef.
7773 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7774 out of union 't'. All uses updated.
7775 (dw2_get_file_names_reader): Assert not called for a type unit.
7776 (dw2_get_file_names): Assert not called for a type unit or type
7777 unit group.
7778 (build_type_psymtabs_reader): Assert called for a type unit.
7779 (build_type_psymtab_dependencies): Assert called for a type unit group.
7780
5c6fa7ab
DE
7781 * dwarf2read.c (free_dwo_file): Add comment.
7782 (dwarf2_per_objfile_free): Unref dwp bfd.
7783
b3c0ad67 77842013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7785
7786 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7787 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7788 (read_pe_exported_syms): Remove unused 'exportix'.
7789 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7790 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7791 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7792
e2df1547
AR
77932013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7794
7795 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7796 (print_it_watchpoint): Remove unused 'bl'.
7797 (say_where): Remove unused 'uiout'.
7798 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7799 (bkpt_breakpoint_hit): Remove unused 'b'.
7800 (internal_bkpt_print_it): Remove unused 'uiout'.
7801 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7802
d81e75c0
TD
78032013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7804
7805 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7806 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7807
5a8b3f62
DE
78082013-03-29 Doug Evans <dje@google.com>
7809
ab5088bf
DE
7810 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7811 Delete arg is_dwp. All callers updated.
7812 (open_dwp_file): New function.
7813 (open_and_init_dwp_file): Call it.
7814 (get_dwp_file): New function.
7815 (lookup_dwo_cutu): Call it.
7816
a8ad1e57
DE
7817 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7818 unnecessary, cleanup.
7819
6296d8c1
DE
7820 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7821
b0c7bfa9
DE
7822 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7823 (lookup_dwo_unit): New function.
7824 (init_cutu_and_read_dies): Move DWO handling to new functions.
7825
c88ee1f0
DE
7826 * dwarf2read.c (struct signatured_type): Tweak comment.
7827 (struct dwo_unit): Tweak comment.
7828 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7829 (create_dwo_debug_info_hash_table): Tweak comment.
7830 (dwarf2_per_cu_offset_and_type): Tweak comment.
7831
5a8b3f62
DE
7832 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7833 missing .debug_types section.
7834
9852c492
YQ
78352013-03-29 Yao Qi <yao@codesourcery.com>
7836
7837 * corelow.c: Include "completer.h".
7838 (_initialize_corelow): Call add_target_with_completer with
7839 argument 'filename_completer'.
7840 * tracepoint.c: Likewise.
7841 * exec.c (_initialize_exec): Likewise.
7842 * target.c (add_target): Rename to ...
7843 (add_target_with_completer): ... this. Call set_cmd_completer
7844 if parameter completer is not NULL.
7845 (add_target): New.
7846 * target.h: Include "command.h".
7847 (add_target_with_completer): Declare it.
7848
af312be7
JB
78492013-03-28 Joel Brobecker <brobecker@adacore.com>
7850
7851 * coffread.c (is_import_fixup_symbol): New function.
7852 (record_minimal_symbol): Use is_import_fixup_symbol to
7853 detect import fixup symbols, and discard them.
7854
8a0459fd
DE
78552013-03-28 Doug Evans <dje@google.com>
7856
0349ea22
DE
7857 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7858 types hash table until we know we need it.
7859
f652bce2
DE
7860 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7861 index numbers.
7862
e4a48d9d
DE
7863 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7864 All callers updated.
7865 (dw2_print_stats): Print #read CUs too.
7866 (dump_die_shallow): Print signatured types better.
7867
8a0459fd
DE
7868 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7869 info_or_types_section to section. All uses updated.
7870 (struct dwo_unit): Ditto.
7871
bd3eecc3
PA
78722013-03-28 Pedro Alves <palves@redhat.com>
7873
7874 * NEWS (New options): New section.
7875 (New options): Mention set/show remote trace-status-packet.
7876 * remote.c (PACKET_qTStatus): New enumeration value.
7877 (remote_get_trace_status): Skip sending qTStatus if the packet is
7878 disabled. Use packet_ok.
7879 (_initialize_remote): Register a configuration command for
7880 qTStatus packet.
7881
41245087
DE
78822013-03-28 Doug Evans <dje@google.com>
7883
7edbb660
DE
7884 * symfile.c (find_separate_debug_file): Add comment.
7885 (terminate_after_last_dir_separator): Tweak comment.
7886
0018ea6f
DE
7887 * dwarf2read.c (create_partial_symtab): Add forward decl.
7888 (create_partial_symtab): Move to be closer to other psymtab functions.
7889 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7890
ca69b9e6
DE
7891 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7892 (compute_symtab_includes): Remove unnecessary forward declaration.
7893 (die_needs_namespace): Add comment marking group of functions for
7894 dwarf2 name computation.
7895
a9375afe
DE
7896 * typeprint.c (_initialize_typeprint): Improve type help text.
7897
41245087
DE
7898 * python/python.c (finish_python_initialization): Provide suggestion
7899 for how to tell gdb to find its python files.
7900
7f7cc265
PA
79012013-03-28 Pedro Alves <palves@redhat.com>
7902
7903 PR gdb/15294
7904
7905 * source.c (_initialize_source): Change back "set listsize" to an
7906 integer command.
7907
ec21308c
JK
79082013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7909
7910 PR gdb/15275
7911 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7912
840a9a1f
PA
79132013-03-27 Pedro Alves <palves@redhat.com>
7914
7915 * top.c (history_size): Rename to ...
7916 (history_size_setshow_var): ... this. Add comment.
7917 (show_commands): Use readline's 'history_length' instead of
7918 computing the history length by calling history_get in a loop.
7919 (set_history_size_command): Error out for sizes over INT_MAX.
7920 Restore previous history size on invalid size.
7921 (init_history): If HISTSIZE is negative, leave the history size as
7922 zero. Add comments.
7923 (init_main): Adjust.
7924
826ecc4d
PA
79252013-03-27 Pedro Alves <palves@redhat.com>
7926
7927 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7928 coff_pe_read" command to "set debug coff-pe-read".
7929
0ccfeeae
MM
79302013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7931
7932 * record.c (command_size_to_target_size): Fix size comparison.
7933 Change parameter type from pointer to integer to integer.
7934 Update all users.
7935
40653b35
PM
79362013-03-27 Pierre Muller <muller@sourceware.org>
7937
7938 * windows-nat.c (handle_output_debug_string): Avoid typecast
7939 from integer of different size warning.
7940
c62fa0e2
JB
79412013-03-26 Joel Brobecker <brobecker@adacore.com>
7942
7943 * windows-nat.c (handle_output_debug_string): Add empty line
7944 after local block variable definition.
7945
2c619be2
PA
79462013-03-26 Pedro Alves <palves@redhat.com>
7947
7948 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7949 (net_open): Make 'polls' local unsigned.
7950
1b493192
PA
79512013-03-26 Pedro Alves <palves@redhat.com>
7952
7953 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7954 a zuinteger command instead of uinteger.
7955
7ee70bf5
PA
79562013-03-26 Pedro Alves <palves@redhat.com>
7957
7958 * record-full.c (record_full_insn_num): Make it unsigned.
7959 (record_full_check_insn_num, record_full_message)
7960 (record_full_registers_change, record_full_xfer_partial): Remove
7961 record_full_insn_max_num check (it's always != 0).
7962 (record_full_info, record_full_restore): Use %u as format string.
7963 (): Use %u as format string.
7964 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7965 check (it's always != 0).
7966
dfd1f9bb
PA
79672013-03-26 Pedro Alves <palves@redhat.com>
7968
7969 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7970 and "set dcache size" commands zuinteger instead of uinteger.
7971
addb4faf
PA
79722013-03-26 Pedro Alves <palves@redhat.com>
7973
7974 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7975 command zuinteger instead of uinteger.
7976
b75bf488
PA
79772013-03-26 Pedro Alves <palves@redhat.com>
7978
7979 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7980 zuinteger instead of uinteger.
7981
42c634cb
PA
79822013-03-26 Pedro Alves <palves@redhat.com>
7983
7984 * record.c (record_insn_history_size_setshow_var)
7985 (record_call_history_size_setshow_var): New globals.
7986 (command_size_to_target_size): New function.
7987 (cmd_record_insn_history, cmd_record_call_history): Use
7988 command_size_to_target_size instead of cast.
7989 (validate_history_size, set_record_insn_history_size)
7990 (set_record_call_history_size): New functions.
7991 (_initialize_record): Install set_record_insn_history_size and
7992 set_record_call_history_size as "set" hooks of "set record
7993 instruction-history-size" and "set record
7994 function-call-history-size".
7995
1fb2e2b5
PA
79962013-03-26 Pedro Alves <palves@redhat.com>
7997
7998 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7999 use with history_max_entries use. Remove FIXME note.
8000
99c819ee
MM
80012013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8002
8003 * record-btrace.c (record_btrace_close): Call
8004 record_btrace_auto_disable.
8005
9f9e404c
JB
80062013-03-25 Joel Brobecker <brobecker@adacore.com>
8007
8008 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8009
ebcdfe33
DE
80102013-03-25 Doug Evans <dje@google.com>
8011
8012 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8013
24955f63
TT
80142013-03-25 Tom Tromey <tromey@redhat.com>
8015
8016 PR symtab/11462:
8017 * c-exp.y (exp): Add new productions for destructors after '.' and
8018 '->'.
8019 (write_destructor_name): New function.
8020
fce632b6
TT
80212013-03-25 Tom Tromey <tromey@redhat.com>
8022
8023 PR c++/9197:
8024 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8025 value_struct_elt, not lookup_struct_elt_type.
8026 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8027 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8028 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8029
a4341769
YQ
80302013-03-25 Yao Qi <yao@codesourcery.com>
8031
8032 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8033 instead of '_mkdir'.
8034
b5981e5a
EZ
80352013-03-23 Eli Zaretskii <eliz@gnu.org>
8036
8037 * windows-nat.c (windows_get_absolute_argv0): New function.
8038 * windows-nat.h: Add its prototype.
8039
8040 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8041 Use IS_DIR_SEPARATOR instead of looking for a character inside
8042 SLASH_STRING. Include filenames.h.
8043 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8044 relocate_gdb_directory works when passed gdb_program_name.
8045 Include windows-nat.h.
8046
598d3636
JK
80472013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8048
8049 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8050 * remote.c (trace_error): Remove the special handling of '2'.
8051 (readchar) <SERIAL_EOF>
8052 (readchar) <SERIAL_ERROR>
8053 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8054 (remote_get_trace_status): Call throw_exception if EX is
8055 TARGET_CLOSE_ERROR.
8056 * utils.c (perror_with_name): Rename to ...
8057 (throw_perror_with_name): ... here. New parameter errcode, describe it
8058 in the function comment.
8059 (perror_with_name): New function wrapper.
8060 * utils.h (enum errors): New stub declaration.
8061 (throw_perror_with_name): New declaration.
8062
82b821e9
PA
80632013-03-22 Pedro Alves <palves@redhat.com>
8064 Yao Qi <yao@codesourcery.com>
8065 Mark Kettenis <kettenis@gnu.org>
8066
8067 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8068 Don't let the user set the value to UINT_MAX directly.
8069 <var_integer>: Don't let the user set the value to INT_MAX
8070 directly.
8071
78a095c3
JK
80722013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8073
8074 * remote.c (remote_unpush_target): New function.
8075 (remote_open_1): Remove two pop_target calls, update one comment, add
8076 comment to target_preopen call. Replace pop_target call by
8077 remote_unpush_target call.
8078 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8079 pop_target calls by remote_unpush_target calls.
8080
3e74e146
PA
80812013-03-22 Pedro Alves <palves@redhat.com>
8082
8083 * linux-nat.c (linux_child_follow_fork): Don't call
8084 linux_enable_event_reporting.
8085 (linux_handle_extended_wait): Don't call
8086 linux_enable_event_reporting.
8087
a2213dca
PA
80882013-03-22 Pedro Alves <palves@redhat.com>
8089
8090 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8091 use it to rewrite the trampoline buffers with type gdb_byte[], and
8092 undefine the macro. Remove char* cast.
8093
bd712aed
DE
80942013-03-21 Doug Evans <dje@google.com>
8095
8096 New commands "mt set per-command {space,time,symtab} {on,off}".
8097 * NEWS: Add entry.
8098 * event-top.c: #include "maint.h".
8099 * main.c: #include "maint.h".
8100 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8101 timeval-utils.h, maint.h, cli/cli-setshow.h.
8102 (per_command_time, per_command_space): New static globals.
8103 (per_command_symtab): New static global.
8104 (per_command_setlist, per_command_showlist): New static globals.
8105 (struct cmd_stats): Move here from utils.c.
8106 (set_per_command_time): Renamed from set_display_time in utils.c
8107 and moved here. All callers updated.
8108 (set_per_command_space): Renamed from set_display_space in utils.c
8109 and moved here. All callers updated.
8110 (count_symtabs_and_blocks): New function.
8111 (report_command_stats): Moved here from utils.c. Add support for
8112 printing symtab stats. Only print data if enabled before command
8113 executed.
8114 (make_command_stats_cleanup): Ditto.
8115 (sert_per_command_cmd, show_per_command_cmd): New functions.
8116 (_initialize_maint_cmds): Add new commands
8117 mt set per-command {space,time,symtab} {on,off}.
8118 * maint.h: New file.
8119 * top.c: #include "maint.h".
8120 * utils.c (reset_prompt_for_continue_wait_time): New function.
8121 (get_prompt_for_continue_wait_time): New function.
8122 * utils.h (reset_prompt_for_continue_wait_time): Declare
8123 (get_prompt_for_continue_wait_time): Declare.
8124 (make_command_stats_cleanup): Moved to maint.h.
8125 (set_display_time, set_display_space): Moved to maint.h and renamed
8126 to set_per_command_time, set_per_command_space.
8127 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8128 parse_binary_operation and made non-static. Don't call error,
8129 just return an error marker. All callers updated.
8130 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8131
d76488d8
TT
81322013-03-21 Tom Tromey <tromey@redhat.com>
8133
8134 * symfile.c (alloc_section_addr_info): Update header. Don't set
8135 'num_sections' field.
8136 (build_section_addr_info_from_section_table): Set 'num_sections'.
8137 (build_section_addr_info_from_bfd): Likewise.
8138 (build_section_addr_info_from_objfile): Remove dead loop
8139 condition.
8140 (free_section_addr_info): Unconditionally call xfree.
8141 (relative_addr_info_to_section_offsets, addrs_section_sort)
8142 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8143 condition.
8144 (syms_from_objfile_1): Remove dead 'if' condition. Check
8145 'num_sections'.
8146 (add_symbol_file_command): Set 'num_sections'.
8147 * symfile-mem.c (symbol_file_add_from_memory): Set
8148 'num_sections'.
8149 * somread.c (som_symfile_offsets): Remove dead loop condition.
8150 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8151 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8152
a72e5169 81532013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
8154
8155 * tracepoint.h (decode_agent_options): Add 'trace_string'
8156 argument.
8157 * tracepoint.c (decode_agent_options): Add 'trace_string'
8158 argument.
8159 (validate_actionline): Update.
8160 (collect_symbol): Add 'trace_string' argument.
8161 (struct add_local_symbols_data) <trace_string>: New field.
8162 (do_collect_symbol): Update.
8163 (add_local_symbols): Add 'trace_string' argument.
8164 (encode_actions_1): Update.
8165 (trace_dump_actions): Update.
8166 * dwarf2loc.c (access_memory): Update.
8167 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8168 * ax-general.c (new_agent_expr): Update.
8169 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8170 (gen_trace_for_return_address): Add argument.
8171 (trace_kludge, trace_string_kludge): Remove.
8172 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8173 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8174 (gen_trace_for_var): Add 'trace_string' argument.
8175 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8176 (gen_printf, agent_eval_command_one): Update.
8177
b2f83c08
TT
81782013-03-21 Tom Tromey <tromey@redhat.com>
8179
8180 PR exp/15109:
8181 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8182 Handle FILENAME token.
8183
9507860e
TT
81842013-03-21 Tom Tromey <tromey@redhat.com>
8185
8186 * c-exp.y (YYPRINT): Define.
8187 (c_print_token): New function.
8188
e403aa4b
TT
81892013-03-21 Tom Tromey <tromey@redhat.com>
8190
8191 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8192
af307d6a
YQ
81932013-03-21 Yao Qi <yao@codesourcery.com>
8194
8195 * ctf.c: Include "gdb_stat.h".
8196 [USE_WIN32API]: New macro 'mkdir'.
8197 (ctf_start): Use permission bits macros if they are defined.
8198
fb81d016
KS
81992013-03-20 Keith Seitz <keiths@redhat.com>
8200
8201 * breakpoint.h (struct breakpoint): Add comment to
8202 extra_string indicating that this member is mallod'd.
8203 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8204
ef0026f0
PA
82052013-03-20 Pedro Alves <palves@redhat.com>
8206
8207 PR gdb/15289
8208
8209 * cli/cli-setshow.c (do_set_command)
8210 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8211 the result of parsing the command argument. Throw error if the
8212 value is greater than UINT_MAX. Print the invalid value with
8213 plongest.
8214 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8215 result of parsing the command argument. Throw error if the value
8216 is greater than INT_MAX, not greater or equal. Also throw error
8217 if the value is less than INT_MIN. Print the invalid value with
8218 plongest.
8219 <var_zuinteger_unlimited>: Throw error if the value is greater
8220 than INT_MAX, not greater or equal.
8221 (do_show_command) <var_integer, var_zinteger,
8222 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8223
24d6c2a0
TT
82242013-03-20 Tom Tromey <tromey@redhat.com>
8225
8226 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8227 if possible.
8228 * dwarf2read.c (read_func_scope): Remove old FIXME.
8229 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8230 not LOC_COMPUTED.
8231 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8232 Unconditionally call via computed ops, if possible.
8233 * printcmd.c (address_info): Unconditionally call via computed ops,
8234 if possible.
8235 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8236 if possible.
8237 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8238 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8239 if possible.
8240
f1e6e072
TT
82412013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8242 Tom Tromey <tromey@redhat.com>
8243
8244 PR symtab/8421:
8245 * coffread.c (coff_register_index): New global.
8246 (process_coff_symbol, coff_read_enum_type): Set
8247 SYMBOL_ACLASS_INDEX.
8248 (_initialize_coffread): Initialize new global.
8249 * dwarf2loc.c (locexpr_find_frame_base_location)
8250 (dwarf2_block_frame_base_locexpr_funcs)
8251 (loclist_find_frame_base_location)
8252 (dwarf2_block_frame_base_loclist_funcs): New.
8253 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8254 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8255 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8256 (dwarf2_block_frame_base_loclist_funcs): New.
8257 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8258 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8259 globals.
8260 (read_func_scope): Update.
8261 (fixup_go_packaging, mark_common_block_symbol_computed)
8262 (var_decode_location, new_symbol_full, dwarf2_const_value):
8263 Set SYMBOL_ACLASS_INDEX.
8264 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8265 (_initialize_dwarf2_read): Initialize new globals.
8266 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8267 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8268 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8269 globals.
8270 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8271 (_initialize_mdebugread): Initialize new globals.
8272 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8273 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8274 (stab_register_index, stab_regparm_index): New globals.
8275 (define_symbol, read_enum_type, common_block_end): Set
8276 SYMBOL_ACLASS_INDEX.
8277 (_initialize_stabsread): Initialize new globals.
8278 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8279 globals.
8280 (MAX_SYMBOL_IMPLS): New define.
8281 (register_symbol_computed_impl, register_symbol_block_impl)
8282 (register_symbol_register_impl)
8283 (initialize_ordinary_address_classes): New functions.
8284 (_initialize_symtab): Call initialize_ordinary_address_classes.
8285 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8286 (struct symbol_impl): New.
8287 (SYMBOL_ACLASS_BITS): New define.
8288 (struct symbol) <aclass, ops>: Remove fields.
8289 <aclass_index>: New field.
8290 (symbol_impls): Declare.
8291 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8292 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8293 (register_symbol_computed_impl, register_symbol_block_impl)
8294 (register_symbol_register_impl): Declare.
8295 (struct symbol_computed_ops): Add location_has_loclist.
8296 (struct symbol_block_ops): New.
8297 (SYMBOL_BLOCK_OPS): New.
8298 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8299
dbccfd4c
TT
83002013-03-20 Tom Tromey <tromey@redhat.com>
8301
8302 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8303 (print_partial_symbols, recursively_search_psymtabs): Use
8304 PSYMBOL_CLASS.
8305
e3f1ad4f
PM
83062013-03-20 Pierre Muller <muller@sourceware.org>
8307
8308 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8309 addtion, subtraction, multiplication and division binary operator.
8310
460014f5
JK
83112013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8312
8313 Code cleanup.
8314 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8315 * bsd-kvm.c (bsd_kvm_close): Likewise.
8316 * bsd-uthread.c (bsd_uthread_close): Likewise.
8317 * corelow.c (core_close): Likewise.
8318 (core_close_cleanup): Remove parameter quitting from a caller.
8319 * event-top.c (async_disconnect): Likewise.
8320 * exec.c (exec_close_1): Remove parameter quitting.
8321 * go32-nat.c (go32_close): Likewise.
8322 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8323 parameter quitting from a caller.
8324 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8325 variable.
8326 (mips_linux_close): Remove parameter quitting. Remove parameter
8327 quitting from a caller.
8328 * monitor.c (monitor_close): Remove parameter quitting.
8329 * monitor.h (monitor_close): Likewise.
8330 * record-btrace.c (record_btrace_close): Likewise.
8331 * record-full.c (record_full_close): Likewise.
8332 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8333 it also from fprintf_unfiltered.
8334 * remote-mips.c (mips_close): Remove parameter quitting.
8335 (mips_detach): Remove parameter quitting from a caller.
8336 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8337 (gdbsim_close): Remove duplicate function comment. Remove parameter
8338 quitting and remove it also from printf_filtered.
8339 * remote.c (remote_close): Remove parameter quitting.
8340 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8341 * target.c (update_current_target): Remove parameter int from to_close
8342 de_fault.
8343 (push_target, unpush_target, pop_target): Remove parameter quitting from
8344 a caller.
8345 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8346 Remove parameter quitting from a caller.
8347 (target_preopen): Remove parameter quitting from a caller.
8348 (target_close): Remove parameter quitting. Remove parameter quitting
8349 from a caller two times. Remove parameter quitting also from
8350 fprintf_unfiltered.
8351 * target.h (struct target_ops): Remove parameter quitting and as int
8352 from fields to_xclose and to_close.
8353 (extern struct target_ops current_target):
8354 (target_close, pop_all_targets): Remove parameter quitting. Update the
8355 comment.
8356 (pop_all_targets_above): Remove parameter quitting.
8357 * top.c (quit_target): Remove parameter quitting from a caller.
8358 * tracepoint.c (tfile_close): Remove parameter quitting.
8359 * windows-nat.c (windows_close): Remove parameter quitting.
8360
35a7120b
CV
83612013-03-20 Corinna Vinschen <vinschen@redhat.com>
8362
8363 * windows-nat.c (handle_output_debug_string): Replace call
8364 to string_to_core_addr with call to strtoull.
8365
8249a5a9
YQ
83662013-03-20 Yao Qi <yao@codesourcery.com>
8367
8368 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8369 and write it to CTF metadata.
8370
2c15ef43
CV
83712013-03-19 Corinna Vinschen <vinschen@redhat.com>
8372
8373 * windows-nat.c (handle_output_debug_string): Change type of n to
8374 SIZE_T to avoid crash on 64 bit systems.
8375
1cdd3232
EZ
83762013-03-17 Eli Zaretskii <eliz@gnu.org>
8377
8378 * python/python-internal.h (HAVE_SNPRINTF)
8379 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8380 about redefinition of snprintf by pyerrors.h.
8381
3cb2ab1a
SE
83822013-03-15 Steve Ellcey <sellcey@mips.com>
8383
8384 * remote-sim.c (sim_command_completer): Make char arguments const.
8385
9ce98649
TT
83862013-03-15 Tom Tromey <tromey@redhat.com>
8387
8388 PR c++/15116:
8389 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8390
dccee2de
TT
83912013-03-14 Tom Tromey <tromey@redhat.com>
8392
8393 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8394 New fields.
8395 (get_file_crc): Move from symfile.c.
8396 (gdb_bfd_crc): New function.
8397 * gdb_bfd.h (gdb_bfd_crc): Declare.
8398 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8399 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8400 (separate_debug_file_exists): Use gdb_bfd_crc.
8401
cc0ea93c
TT
84022013-03-14 Tom Tromey <tromey@redhat.com>
8403
8404 * symfile.c (get_debug_link_info): Remove.
8405 (find_separate_debug_file_by_debuglink): Use
8406 bfd_get_debug_link_info.
8407
08c23b0d
TT
84082013-03-14 Tom Tromey <tromey@redhat.com>
8409
8410 * symtab.c (error_in_psymtab_expansion): New function.
8411 (lookup_symbol_aux_quick)
8412 (basic_lookup_transparent_type_quick): Remove "last resort"
8413 code. Use error_in_psymtab_expansion.
8414
288e77a7
JK
84152013-03-14 Doug Evans <dje@google.com>
8416 Jan Kratochvil <jan.kratochvil@redhat.com>
8417
8418 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8419 any successful compare_filenames_for_search or FILENAME_CMP.
8420 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8421 * symtab.c (iterate_over_some_symtabs): Likewise.
8422
8f1b8b82
JK
84232013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8424
8425 * source.c (print_source_lines_base): Make a local copy of
8426 symtab_to_fullname.
8427
23eb71e4
JK
84282013-03-14 Hui Zhu <hui_zhu@mentor.com>
8429 Jan Kratochvil <jan.kratochvil@redhat.com>
8430
8431 * source.c (print_source_lines_base): Suppress "file" for TUI.
8432
bb869963
SDJ
84332013-03-14 Keith Seitz <keiths@redhat.com>
8434 Alan Matsuoka <alanm@redhat.com>
8435
8436 PR c++/15203
8437 PR c++/15210
8438 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8439 TYPE_CODE_METHOD.
8440 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8441 symbols.
8442
d6682f9e
YQ
84432013-03-14 Yao Qi <yao@codesourcery.com>
8444
8445 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8446 status to tfile if trace is stopped by command 'tstop'.
8447
a22fa6e4
YQ
84482013-03-14 Yao Qi <yao@codesourcery.com>
8449
8450 * tracepoint.c (tfile_write_status): Write trace notes and user
8451 name into tfile if they are not NULL.
8452
d0353e76
YQ
84532013-03-14 Hui Zhu <hui@codesourcery.com>
8454 Yao Qi <yao@codesourcery.com>
8455
8456 * Makefile.in (REMOTE_OBS): Add ctf.o.
8457 (SFILES): Add ctf.c.
8458 (HFILES_NO_SRCDIR): Add ctf.h.
8459 * ctf.c, ctf.h: New files.
8460 * tracepoint.c: Include 'ctf.h'.
8461 (collect_pseudocommand): Remove static.
8462 (trace_save_command): Parse option "-ctf".
8463 Produce different trace file writers per option.
8464 Adjust output message.
8465 (trace_save_tfile, trace_save_ctf): New.
8466 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8467 * mi/mi-main.c: Include 'ctf.h'.
8468 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8469 trace_save_tfile or trace_save_ctf.
8470 * NEWS: Mention these changes.
8471
3f43bc09
YQ
84722013-03-14 Yao Qi <yao@codesourcery.com>
8473
8474 * tracepoint.c (trace_file_writer_xfree): New.
8475 (struct tfile_writer_data): New.
8476 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8477 (tfile_write_header, tfile_write_regblock_type): New.
8478 (tfile_write_status, tfile_write_uploaded_tsv): New.
8479 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8480 (tfile_write_raw_data, (tfile_end): New.
8481 (tfile_write_ops): New global variable.
8482 (TRACE_WRITE_R_BLOCK): New macro.
8483 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8484 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8485 (TRACE_WRITE_V_BLOCK): New macro.
8486 (trace_save): Add extra one parameter WRITER. Make it static.
8487 Use WRITER to writer trace.
8488 (tfile_trace_file_writer_new): New.
8489 (trace_save_command): Caller update.
8490 (trace_save_tfile): Write trace data in TFILE format.
8491 * tracepoint.h (struct trace_frame_write_ops): New.
8492 (struct trace_file_write_ops): New.
8493 (struct trace_file_writer): New.
8494 (trace_save): Remove its declaration.
8495 (trace_save_tfile): Declare it.
8496 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8497 instead of trace_save.
8498
58665b40
PA
84992013-03-13 Pedro Alves <palves@redhat.com>
8500
8501 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8502
10217050
PA
85032013-03-13 Pedro Alves <palves@redhat.com>
8504
8505 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8506 commented out code.
8507 * demangle.c (current_demangling_style_string): Make it const.
8508 (set_demangling_command): Assert the demangling style is known.
8509 Remove all handling of unknown styles. Set
8510 'current_demangling_style_string' to an element of the
8511 demangling_style_names array.
8512 (set_demangling_style): Delete.
8513 (_initialize_demangler): Set current_demangling_style_string to the
8514 element of the demangling_style_names array that corresponds to
8515 the default demangling style. Remove FIXME note. Don't call
8516 set_demangling_style.
8517 * gdb-demangle.h (set_demangling_style): Remove declaration.
8518
6f937416
PA
85192013-03-13 Pedro Alves <palves@redhat.com>
8520
8521 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8522 fields const.
8523 (ada_make_symbol_completion_list): Make "text0" parameter const.
8524 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8525 * breakpoint.c (condition_completer): Make "text" and "word"
8526 parameters const. Adjust.
8527 (check_tracepoint_command): Adjust to validate_actionline
8528 prototype change.
8529 (catch_syscall_completer): Make "text" and "word" parameters
8530 const.
8531 * cli/cli-cmds.c (show_user): Make "comname" local const.
8532 (valid_command_p): Make "command" parameter const.
8533 (alias_command): Make "alias_prefix" and "command_prefix" locals
8534 const.
8535 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8536 (add_alias_cmd): Make "name" and "oldname" parameters const.
8537 Adjust. No longer make copy of OLDNAME.
8538 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8539 (add_setshow_cmd_full, add_setshow_enum_cmd)
8540 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8541 (add_setshow_filename_cmd, add_setshow_string_cmd)
8542 (add_setshow_string_noescape_cmd)
8543 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8544 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8545 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8546 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8547 Make "name" parameter const.
8548 (help_cmd): Rename "command" parameter to "arg". New const local
8549 "command".
8550 (find_cmd): Make "command" parameter const.
8551 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8552 deprecated_cmd_warning prototype change.
8553 (undef_cmd_error): Make "cmdtype" parameter const.
8554 (lookup_cmd): Make "line" parameter const.
8555 (deprecated_cmd_warning): Change type of "text" parameter to
8556 pointer to const char, from pointer to pointer to char. Adjust.
8557 (lookup_cmd_composition): Make "text" parameter const.
8558 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8559 parameters const.
8560 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8561 const.
8562 * cli/cli-script.c (validate_comname): Make "tem" local const.
8563 (define_command): New const local "tem_c". Use it in calls to
8564 lookup_cmd.
8565 (document_command): Make "tem" and "comfull" locals const.
8566 (show_user_1): Make "prefix" and "name" parameters const.
8567 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8568 const.
8569 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8570 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8571 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8572 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8573 (complete_on_enum, add_setshow_enum_cmd)
8574 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8575 (add_setshow_filename_cmd, add_setshow_string_cmd)
8576 (add_setshow_string_noescape_cmd)
8577 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8578 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8579 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8580 Change prototypes, constifying strings.
8581 * completer.c (noop_completer, filename_completer): Make "text"
8582 and "prefix" parameters const.
8583 (location_completer, expression_completer)
8584 (complete_line_internal): Make "text" and "prefix" parameters
8585 const and adjust.
8586 (command_completer, signal_completer): Make "text" and "prefix"
8587 parameters const.
8588 * completer.h (noop_completer, filename_completer)
8589 (expression_completer, location_completer, command_completer)
8590 (signal_completer): Change prototypes.
8591 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8592 parameters const.
8593 * cp-abi.c (cp_abi_completer): Likewise.
8594 * expression.h (parse_expression_for_completion): Change
8595 prototype.
8596 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8597 parameters const.
8598 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8599 * infrun.c (handle_completer): Make "text" and "word" parameters
8600 const.
8601 * interps.c (interpreter_completer): Make "text" and "word"
8602 parameters const.
8603 * language.h (struct language_defn)
8604 <la_make_symbol_completion_list>: Make "text" and "word"
8605 parameters const.
8606 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8607 (parse_exp_in_context): Rename to ...
8608 (parse_exp_in_context_1): ... this.
8609 (parse_exp_in_context): Reimplement, with const hack from
8610 parse_exp_1.
8611 (parse_expression_for_completion): Make "string" parameter const.
8612 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8613 to pointer to const char. Adjust.
8614 (print_command_1): Make "exp" parameter const.
8615 (output_command): Rename to ...
8616 (output_command_const): ... this. Make "exp" parameter const.
8617 (output_command): Reimplement.
8618 (x_command): Adjust.
8619 (display_command): Rename "exp" parameter to "arg". New "exp"
8620 local, const version of "arg".
8621 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8622 "cmd_name" local const.
8623 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8624 call.
8625 (cmdpy_completer): Make "text" and "word" parameters const.
8626 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8627 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8628 const.
8629 * remote.c (_initialize_remote): Make "cmd_name" local const.
8630 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8631 parameters const. Adjust.
8632 (completion_list_add_fields): Make "sym_text", "text" and "word"
8633 parameters const.
8634 (struct add_name_data) <sym_text, text, word>: Make fields const.
8635 (default_make_symbol_completion_list_break_on): Make "text" and
8636 "word" parameters const. Adjust locals.
8637 (default_make_symbol_completion_list)
8638 (make_symbol_completion_list, make_symbol_completion_type)
8639 (make_symbol_completion_list_fn): Make "text" and "word"
8640 parameters const.
8641 (make_file_symbol_completion_list): Make "text", "word" and
8642 "srcfile" parameters const. Adjust locals.
8643 (add_filename_to_list): Make "text" and "word" parameters const.
8644 (struct add_partial_filename_data) <text, word>: Make fields
8645 const.
8646 (make_source_files_completion_list): Make "text" and "word"
8647 parameters const.
8648 * symtab.h (default_make_symbol_completion_list_break_on)
8649 (default_make_symbol_completion_list, make_symbol_completion_list)
8650 (make_symbol_completion_type enum type_code)
8651 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8652 (make_source_files_completion_list): Change prototype.
8653 * top.c (execute_command): Adjust to pass pointer to pointer to
8654 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8655 change.
8656 (set_verbose): Make "cmdname" local const.
8657 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8658 and adjust.
8659 (validate_actionline): Make "line" parameter a pointer to const
8660 char, and adjust.
8661 (encode_actions_1): Make "action_exp" local const, and adjust.
8662 (encode_actions): Adjust.
8663 (replace_comma): Delete.
8664 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8665 const, and adjust. Don't frob the action string while splitting
8666 it at commas. Instead, make a copy of each split substring in
8667 turn.
8668 (trace_dump_command): Adjust to validate_actionline prototype
8669 change.
8670 * tracepoint.h (decode_agent_options, decode_agent_options)
8671 (encode_actions, validate_actionline): Change prototypes.
8672 * valprint.h (output_command): Delete declaration.
8673 (output_command_const): Declare.
8674 * value.c (function_destroyer): Cast const away in xfree call.
8675
a0bcdaa7
PA
86762013-03-13 Pedro Alves <palves@redhat.com>
8677
8678 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8679 rather than casting 'const char * const *' to 'const char **'.
8680 * ada-lex.l (processInt): Make "trailer" local const. Remove
8681 'const char **' cast.
8682 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8683 locals, and use those as strtol output pointer, instead than doing
8684 invalid casts to from 'const char **' to 'char **'.
8685 (_initialize_demangle): Remove cast.
8686 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8687 locals, and use those as strtol output pointer, instead than doing
8688 invalid casts to from 'const char **' to 'char **'.
8689 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8690 casts.
8691 * stap-probe.c (stap_parse_register_operand)
8692 (stap_parse_single_operand): Likewise.
8693
8ddb1965
YQ
86942013-03-13 Yao Qi <yao@codesourcery.com>
8695
8696 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8697 the last matched 'V' blcok in trace frame.
8698
2d450646
JB
86992013-03-12 Joel Brobecker <brobecker@adacore.com>
8700
8701 * NEWS: Create a new section for the next release branch.
8702 Rename the section of the current branch, now that it has
8703 been cut.
8704
b4b79973 87052013-03-12 Joel Brobecker <brobecker@adacore.com>
8706
8707 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8708 * version.in: Bump version to 7.6.50.20130312-cvs.
8709
ee047554
KS
87102013-03-12 Keith Seitz <keiths@redhat.com>
8711
8712 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8713 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8714 Remove temporary copy of input string.
8715 (mi_execute_command_wrapper): Make "cmd" const.
8716 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8717 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8718 Use const strings.
8719 (mi_parse): Make "cmd" const.
8720 Use const strings.
8721 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8722
bbc13ae3
KS
87232013-03-12 Keith Seitz <keiths@redhat.com>
8724
8725 * ada-lang.c (ada_read_renaming_var_value): Pass const
8726 pointer to expression string to parse_exp_1.
8727 (create_excep_cond_exprs): Likewise.
8728 * ax-gdb.c (agent_eval_command_one): Likewise.
8729 (maint_agent_printf_command): Likewise.
8730 Constify much of the string handling/parsing.
8731 * breakpoint.c (set_breakpoint_condition): Pass const
8732 pointer to expression string to parse_exp_1.
8733 (update_watchpoint): Likewise.
8734 (parse_cmd_to_aexpr): Constify string handling.
8735 Pass const pointer to parse_exp_1.
8736 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8737 (find_condition_and_thread): Likewise.
8738 Make TOK const.
8739 (watch_command_1): Make "arg" const.
8740 Constify string handling.
8741 Copy the expression string instead of changing the input
8742 string.
8743 (update_breakpoint_location): Pass const pointer to
8744 parse_exp_1.
8745 * eval.c (parse_and_eval_address): Make "exp" const.
8746 (parse_to_comma_and_eval): Make "expp" const.
8747 (parse_and_eval): Make "exp" const.
8748 * expression.h (parse_expression): Make argument const.
8749 (parse_exp_1): Make first argument const.
8750 * findcmd.c (parse_find_args): Treat "args" as const.
8751 * linespec.c (parse_linespec): Pass const pointer to
8752 linespec_expression_to_pc.
8753 (linespec_expression_to_pc): Make "exp_ptr" const.
8754 * parse.c (parse_exp_1): Make "stringptr" const.
8755 Make a copy of the expression to pass to parse_exp_in_context until
8756 this whole interface can be constified.
8757 (parse_expression): Make "string" const.
8758 * printcmd.c (ui_printf): Treat "arg" as const.
8759 Handle const strings.
8760 * tracepoint.c (validate_actionline): Pass const pointer to
8761 all calls to parse_exp_1.
8762 (encode_actions_1): Likewise.
8763 * value.h (parse_to_comma_and_eval): Make argument const.
8764 (parse_and_eval_address): Likewise.
8765 (parse_and_eval): Likewise.
8766 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8767 (varobj_set_value): Likewise.
8768 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8769 constify string handling.
8770 Pass const pointers to parse_and_eval_address and
8771 parse_to_comman_and_eval.
8772 * cli/cli-utils.c (skip_to_space): Rename to ...
8773 (skip_to_space_const): ... this. Handle const strings.
8774 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8775 skip_to_space_const.
8776 (skip_to_space_const): Declare.
8777 * common/format.c (parse_format_string): Make "arg" const.
8778 Handle const strings.
8779 * common/format.h (parse_format_string): Make "arg" const.
8780 * gdbserver/ax.c (ax_printf): Make "format" const.
8781 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8782 of the expression string.
8783
f3cec7e6
HZ
87842013-03-12 Hui Zhu <hui@codesourcery.com>
8785
8786 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8787
9df7235c
HZ
87882013-03-12 Yao Qi <yao@codesourcery.com>
8789 Hui Zhu <hui@codesourcery.com>
8790
8791 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8792 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8793 DW_OP_deref_size.
8794
82d049ab
PH
87952013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8796
5f8e0b8f
MF
8797 * ada-lex.l (rules): Only recognize 'thread' as a
8798 delimiter when followed by numerals, as for c-exp.y.
8799 Use new rewind_to_char function to rewind the input for
8800 expression-delimiting tokens.
8801 (rewind_to_char): New function.
82d049ab 8802
8c1fb155
JK
88032013-03-11 Pedro Alves <palves@redhat.com>
8804 Jan Kratochvil <jan.kratochvil@redhat.com>
8805
8806 * configure: Regenerate.
8807 * configure.ac (check dynamic export flag): Link python test with
8808 $PYTHON_LIBS.
8809
cc81e1c6
DE
88102013-03-11 Doug Evans <dje@google.com>
8811 Keith Seitz <keiths@redhat.com>
8812
8813 * linespec.c (find_linespec_symbols): Call find_function_symbols
8814 first, and then call lookup_prefix_sym/find_method.
8815
39086a0e
PA
88162013-03-11 Pedro Alves <palves@redhat.com>
8817
8818 * charset.c (convert_between_encodings): Don't cast between
8819 different pointer to pointer types. Instead, make the 'inp' local
8820 be of the type iconv expects.
8821 (wchar_iterate): Don't cast between different pointer to pointer
8822 types. Instead, use new pointer local of the type iconv expects.
8823 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8824 Add new local of type char pointer, and use it to get a
8825 char/string view of the byte buffer, instead of casting between
8826 pointer to pointer types.
8827
90585175
HAQ
88282013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8829
8830 * remote.c (remote_set_trace_buffer_size): Move != operator
8831 to the start of next line to fix an ARI warning.
8832
59ea5688
MM
88332013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8834
8835 * NEWS: Add record changes.
8836
946287b7
MM
88372013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8838
8839 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8840 the instruction history disassembly.
8841 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8842 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8843
afedecd3
MM
88442013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8845
8846 * Makefile.in (SFILES): Add record-btrace.c
8847 (COMMON_OBS): Add record-btrace.o
8848 * record-btrace.c: New.
8849 * objfiles.c: Include btrace.h.
8850 (free_objfile): call btrace_free_objfile.
8851
15984c13
MM
88522013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8853
8854 * target.c (target_call_history, target_call_history_from,
8855 target_call_history_range): New.
8856 * target.h (target_ops) <to_call_history, to_call_history_from,
8857 to_call_history_range>: New fields.
8858 (target_call_history, target_call_history_from,
8859 target_call_history_range): New declaration.
8860 * record.c (get_call_history_modifiers, cmd_record_call_history,
8861 record_call_history_size): New.
8862 (_initialize_record): Add the "record function-call-history" command.
8863 Add "set/show record function-call-history-size" commands.
8864 * record.h (record_print_flag): New.
8865
67c86d06
MM
88662013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8867
8868 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8869 to_insn_history_range>: New fields.
8870 (target_insn_history): New.
8871 (target_insn_history_from): New.
8872 (target_insn_history_range): New.
8873 * target.c (target_insn_history): New.
8874 (target_insn_history_from): New.
8875 (target_insn_history_range): New.
8876 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8877 (record_insn_history_size): New.
8878 (get_insn_number): New.
8879 (get_context_size): New.
8880 (no_chunk): New.
8881 (get_insn_history_modifiers): New.
8882 (cmd_record_insn_history): New.
8883 (_initialize_record): Add "set/show record instruction-history-size"
8884 command. Add "record instruction-history" command.
8885
7c1687a9
MM
88862013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8887
8888 * record.h (record_disconnect): New.
8889 (record_detach): New.
8890 (record_mourn_inferior): New.
8891 (record_kill): New.
8892 * record-full.c (record_disconnect, record_detach,
8893 record_mourn_inferior, record_kill): Move to...
8894 * record.c: ...here.
8895 (DEBUG): New.
8896 (record_stop): New.
8897 (record_unpush): New.
8898 (cmd_record_stop): Call record_stop. Replace unpush_target
8899 call with record_unpush call.
8900 (record_disconnect, record_detach): Assert that the target
8901 is of record stratum. Call record_unpush, record_stop, and
8902 DEBUG.
8903 (record_mourn_inferior, record_kill): Assert that the target
8904 is of record stratum. Call record_unpush and DEBUG.
8905
25ea693b
MM
89062013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8907
8908 * record-full.h, record-full.c (record_memory_query): Rename
8909 to ...
8910 (record_full_memory_query): ...this. Update all users.
8911 (record_arch_list_add_reg): Rename to ...
8912 (record_full_arch_list_add_reg): ...this. Update all users.
8913 (record_arch_list_add_mem): Rename to ...
8914 (record_full_arch_list_add_mem): ...this. Update all users.
8915 (record_arch_list_add_end): Rename to ...
8916 (record_full_arch_list_add_end): ...this. Update all users.
8917 (record_gdb_operation_disable_set): Rename to ...
8918 (record_full_gdb_operation_disable_set): ...this.
8919 Update all users.
8920
88d1aa9d
MM
89212013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8922
8923 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8924 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8925 (RECORD_IS_REPLAY): Renamed to ...
8926 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8927 (RECORD_FILE_MAGIC): Renamed to ...
8928 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8929 (record_mem_entry): Renamed to ...
8930 (record_full_mem_entry): ... this. Updated all users.
8931 (record_reg_entry): Renamed to ...
8932 (record_full_reg_entry): ... this. Updated all users.
8933 (record_end_entry): Renamed to ...
8934 (record_full_end_entry): ... this. Updated all users.
8935 (record_type) <record_end, record_reg, record_mem>: Renamed
8936 to ...
8937 (record_full_type) <record_full_end, record_full_reg,
8938 record_full_mem>: ... this. Updated all users.
8939 (record_entry): Renamed to ...
8940 (record_full_entry): ... this. Updated all users.
8941 (record_core_buf_entry): Renamed to ...
8942 (record_full_core_buf_entry): ... this. Updated all users.
8943 (record_core_regbuf): Renamed to ...
8944 (record_full_core_regbuf): ... this. Updated all users.
8945 (record_core_start): Renamed to ...
8946 (record_full_core_start): ... this. Updated all users.
8947 (record_core_end): Renamed to ...
8948 (record_full_core_end): ... this. Updated all users.
8949 (record_core_buf_list): Renamed to ...
8950 (record_full_core_buf_list): ... this. Updated all users.
8951 (record_first): Renamed to ...
8952 (record_full_first): ... this. Updated all users.
8953 (record_list): Renamed to ...
8954 (record_full_list): ... this. Updated all users.
8955 (record_arch_list_head): Renamed to ...
8956 (record_full_arch_list_head): ... this. Updated all users.
8957 (record_arch_list_tail): Renamed to ...
8958 (record_full_arch_list_tail): ... this. Updated all users.
8959 (record_stop_at_limit): Renamed to ...
8960 (record_full_stop_at_limit): ... this. Updated all users.
8961 (record_insn_max_num): Renamed to ...
8962 (record_full_insn_max_num): ... this. Updated all users.
8963 (record_insn_num): Renamed to ...
8964 (record_full_insn_num): ... this. Updated all users.
8965 (record_insn_count): Renamed to ...
8966 (record_full_insn_count): ... this. Updated all users.
8967 (record_ops): Renamed to ...
8968 (record_full_ops): ... this. Updated all users.
8969 (record_core_ops): Renamed to ...
8970 (record_full_core_ops): ... this. Updated all users.
8971 (set_record_cmdlist): Renamed to ...
8972 (set_record_full_cmdlist): ... this. Updated all users.
8973 (show_record_cmdlist): Renamed to ...
8974 (show_record_full_cmdlist): ... this. Updated all users.
8975 (record_cmdlist): Renamed to ...
8976 (record_full_cmdlist): ... this. Updated all users.
8977 (record_beneath_to_resume_ops): Renamed to ...
8978 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8979 (record_beneath_to_resume): Renamed to ...
8980 (record_full_beneath_to_resume): ... this. Updated all users.
8981 (record_beneath_to_wait_ops): Renamed to ...
8982 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8983 (record_beneath_to_wait): Renamed to ...
8984 (record_full_beneath_to_wait): ... this. Updated all users.
8985 (record_beneath_to_store_registers_ops): Renamed to ...
8986 (record_full_beneath_to_store_registers_ops): ... this.
8987 Updated all users.
8988 (record_beneath_to_store_registers): Renamed to ...
8989 (record_full_beneath_to_store_registers): ... this.
8990 Updated all users.
8991 (record_beneath_to_xfer_partial_ops): Renamed to ...
8992 (record_full_beneath_to_xfer_partial_ops): ... this.
8993 Updated all users.
8994 (record_beneath_to_xfer_partial): Renamed to ...
8995 (record_full_beneath_to_xfer_partial): ... this.
8996 Updated all users.
8997 (record_beneath_to_insert_breakpoint): Renamed to ...
8998 (record_full_beneath_to_insert_breakpoint): ... this.
8999 Updated all users.
9000 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9001 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9002 Updated all users.
9003 (record_beneath_to_stopped_data_address): Renamed to ...
9004 (record_full_beneath_to_stopped_data_address): ... this.
9005 Updated all users.
9006 (record_beneath_to_async): Renamed to ...
9007 (record_full_beneath_to_async): ... this. Updated all users.
9008 (record_goto_insn): Renamed to ...
9009 (record_full_goto_insn): ... this. Updated all users.
9010 (record_save): Renamed to ...
9011 (record_full_save): ... this. Updated all users.
9012 (record_reg_alloc): Renamed to ...
9013 (record_full_reg_alloc): ... this. Updated all users.
9014 (record_reg_release): Renamed to ...
9015 (record_full_reg_release): ... this. Updated all users.
9016 (record_mem_alloc): Renamed to ...
9017 (record_full_mem_alloc): ... this. Updated all users.
9018 (record_mem_release): Renamed to ...
9019 (record_full_mem_release): ... this. Updated all users.
9020 (record_end_alloc): Renamed to ...
9021 (record_full_end_alloc): ... this. Updated all users.
9022 (record_end_release): Renamed to ...
9023 (record_full_end_release): ... this. Updated all users.
9024 (record_entry_release): Renamed to ...
9025 (record_full_entry_release): ... this. Updated all users.
9026 (record_list_release): Renamed to ...
9027 (record_full_list_release): ... this. Updated all users.
9028 (record_list_release_following): Renamed to ...
9029 (record_full_list_release_following): ... this.
9030 Updated all users.
9031 (record_list_release_first): Renamed to ...
9032 (record_full_list_release_first): ... this. Updated all users.
9033 (record_arch_list_add): Renamed to ...
9034 (record_full_arch_list_add): ... this. Updated all users.
9035 (record_get_loc): Renamed to ...
9036 (record_full_get_loc): ... this. Updated all users.
9037 (record_check_insn_num): Renamed to ...
9038 (record_full_check_insn_num): ... this. Updated all users.
9039 (record_arch_list_cleanups): Renamed to ...
9040 (record_full_arch_list_cleanups): ... this. Updated all users.
9041 (record_message): Renamed to ...
9042 (record_full_message): ... this. Updated all users.
9043 (record_message_wrapper): Renamed to ...
9044 (record_full_message_wrapper): ... this. Updated all users.
9045 (record_message_wrapper_safe): Renamed to ...
9046 (record_full_message_wrapper_safe): ... this. Updated all users.
9047 (record_gdb_operation_disable): Renamed to ...
9048 (record_full_gdb_operation_disable): ... this. Updated all users.
9049 (record_hw_watchpoint): Renamed to ...
9050 (record_full_hw_watchpoint): ... this. Updated all users.
9051 (record_exec_insn): Renamed to ...
9052 (record_full_exec_insn): ... this. Updated all users.
9053 (record_restore): Renamed to ...
9054 (record_full_restore): ... this. Updated all users.
9055 (record_async_inferior_event_token): Renamed to ...
9056 (record_full_async_inferior_event_token): ... this.
9057 Updated all users.
9058 (record_async_inferior_event_handler): Renamed to ...
9059 (record_full_async_inferior_event_handler): ... this.
9060 Updated all users.
9061 (record_core_open_1): Renamed to ...
9062 (record_full_core_open_1): ... this. Updated all users.
9063 (record_open_1): Renamed to ...
9064 (record_full_open_1): ... this. Updated all users.
9065 (record_open): Renamed to ...
9066 (record_full_open): ... this. Updated all users.
9067 (record_close): Renamed to ...
9068 (record_full_close): ... this. Updated all users.
9069 (record_resume_step): Renamed to ...
9070 (record_full_resume_step): ... this. Updated all users.
9071 (record_resumed): Renamed to ...
9072 (record_full_resumed): ... this. Updated all users.
9073 (record_execution_dir): Renamed to ...
9074 (record_full_execution_dir): ... this. Updated all users.
9075 (record_resume): Renamed to ...
9076 (record_full_resume): ... this. Updated all users.
9077 (record_get_sig): Renamed to ...
9078 (record_full_get_sig): ... this. Updated all users.
9079 (record_sig_handler): Renamed to ...
9080 (record_full_sig_handler): ... this. Updated all users.
9081 (record_wait_cleanups): Renamed to ...
9082 (record_full_wait_cleanups): ... this. Updated all users.
9083 (record_wait_1): Renamed to ...
9084 (record_full_wait_1): ... this. Updated all users.
9085 (record_wait): Renamed to ...
9086 (record_full_wait): ... this. Updated all users.
9087 (record_stopped_by_watchpoint): Renamed to ...
9088 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9089 (record_disconnect): Renamed to ...
9090 (record_full_disconnect): ... this. Updated all users.
9091 (record_detach): Renamed to ...
9092 (record_full_detach): ... this. Updated all users.
9093 (record_mourn_inferior): Renamed to ...
9094 (record_full_mourn_inferior): ... this. Updated all users.
9095 (record_kill): Renamed to ...
9096 (record_full_kill): ... this. Updated all users.
9097 (record_stopped_data_address): Renamed to ...
9098 (record_full_stopped_data_address): ... this. Updated all users.
9099 (record_registers_change): Renamed to ...
9100 (record_full_registers_change): ... this. Updated all users.
9101 (record_store_registers): Renamed to ...
9102 (record_full_store_registers): ... this. Updated all users.
9103 (record_xfer_partial): Renamed to ...
9104 (record_full_xfer_partial): ... this. Updated all users.
9105 (record_breakpoint): Renamed to ...
9106 (record_full_breakpoint): ... this. Updated all users.
9107 (record_breakpoint_p): Renamed to ...
9108 (record_full_breakpoint_p): ... this. Updated all users.
9109 (record_breakpoints): Renamed to ...
9110 (record_full_breakpoints): ... this. Updated all users.
9111 (record_sync_record_breakpoints): Renamed to ...
9112 (record_full_sync_record_breakpoints): ... this.
9113 Updated all users.
9114 (record_init_record_breakpoints): Renamed to ...
9115 (record_full_init_record_breakpoints): ... this.
9116 Updated all users.
9117 (record_insert_breakpoint): Renamed to ...
9118 (record_full_insert_breakpoint): ... this. Updated all users.
9119 (record_remove_breakpoint): Renamed to ...
9120 (record_full_remove_breakpoint): ... this. Updated all users.
9121 (record_can_execute_reverse): Renamed to ...
9122 (record_full_can_execute_reverse): ... this. Updated all users.
9123 (record_get_bookmark): Renamed to ...
9124 (record_full_get_bookmark): ... this. Updated all users.
9125 (record_goto_bookmark): Renamed to ...
9126 (record_full_goto_bookmark): ... this. Updated all users.
9127 (record_async): Renamed to ...
9128 (record_full_async): ... this. Updated all users.
9129 (record_can_async_p): Renamed to ...
9130 (record_full_can_async_p): ... this. Updated all users.
9131 (record_is_async_p): Renamed to ...
9132 (record_full_is_async_p): ... this. Updated all users.
9133 (record_execution_direction): Renamed to ...
9134 (record_full_execution_direction): ... this. Updated all users.
9135 (record_info): Renamed to ...
9136 (record_full_info): ... this. Updated all users.
9137 (record_delete): Renamed to ...
9138 (record_full_delete): ... this. Updated all users.
9139 (record_is_replaying): Renamed to ...
9140 (record_full_is_replaying): ... this. Updated all users.
9141 (record_goto_entry): Renamed to ...
9142 (record_full_goto_entry): ... this. Updated all users.
9143 (record_goto_begin): Renamed to ...
9144 (record_full_goto_begin): ... this. Updated all users.
9145 (record_goto_end): Renamed to ...
9146 (record_full_goto_end): ... this. Updated all users.
9147 (record_goto): Renamed to ...
9148 (record_full_goto): ... this. Updated all users.
9149 (init_record_ops): Renamed to ...
9150 (init_record_full_ops): ... this. Updated all users.
9151 (record_core_resume): Renamed to ...
9152 (record_full_core_resume): ... this. Updated all users.
9153 (record_core_kill): Renamed to ...
9154 (record_full_core_kill): ... this. Updated all users.
9155 (record_core_fetch_registers): Renamed to ...
9156 (record_full_core_fetch_registers): ... this. Updated all users.
9157 (record_core_prepare_to_store): Renamed to ...
9158 (record_full_core_prepare_to_store): ... this. Updated all users.
9159 (record_core_store_registers): Renamed to ...
9160 (record_full_core_store_registers): ... this. Updated all users.
9161 (record_core_xfer_partial): Renamed to ...
9162 (record_full_core_xfer_partial): ... this. Updated all users.
9163 (record_core_insert_breakpoint): Renamed to ...
9164 (record_full_core_insert_breakpoint): ... this. Updated all users.
9165 (record_core_remove_breakpoint): Renamed to ...
9166 (record_full_core_remove_breakpoint): ... this. Updated all users.
9167 (record_core_has_execution): Renamed to ...
9168 (record_full_core_has_execution): ... this. Updated all users.
9169 (init_record_core_ops): Renamed to ...
9170 (init_record_full_core_ops): ... this. Updated all users.
9171 (cmd_record_restore): Renamed to ...
9172 (cmd_record_full_restore): ... this. Updated all users.
9173 (record_save_cleanups): Renamed to ...
9174 (record_full_save_cleanups): ... this. Updated all users.
9175 (cmd_record_start): Renamed to ...
9176 (cmd_record_full_start): ... this. Updated all users.
9177 (set_record_insn_max_num): Renamed to ...
9178 (set_record_full_insn_max_num): ... this. Updated all users.
9179 (set_record_command): Renamed to ...
9180 (set_record_full_command): ... this. Updated all users.
9181 (show_record_command): Renamed to ...
9182 (show_record_full_command): ... this. Updated all users.
9183 (_initialize_record): Renamed to ...
9184 (_initialize_record_full): ... this. Updated all users.
9185
d02ed0bb
MM
91862013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9187
9188 * record.h: Split into this and ...
9189 * record-full.h: ... this.
9190 * record.c: Split into this and ...
9191 * record-full.c: ... this.
9192 * target.h (target_ops): Add new fields to_info_record,
9193 to_save_record, to_delete_record, to_record_is_replaying,
9194 to_goto_record_begin, to_goto_record_end, to_goto_record.
9195 (target_info_record): New.
9196 (target_save_record): New.
9197 (target_supports_delete_record): New.
9198 (target_delete_record): New.
9199 (target_record_is_replaying): New.
9200 (target_goto_record_begin): New.
9201 (target_goto_record_end): New.
9202 (target_goto_record): New.
9203 * target.c (target_info_record): New.
9204 (target_save_record): New.
9205 (target_supports_delete_record): New.
9206 (target_delete_record): New.
9207 (target_record_is_replaying): New.
9208 (target_goto_record_begin): New.
9209 (target_goto_record_end): New.
9210 (target_goto_record): New.
9211 * record.h: Declare struct cmd_list_element.
9212 (record_cmdlist): New declaration.
9213 (set_record_cmdlist): New declaration.
9214 (show_record_cmdlist): New declaration.
9215 (info_record_cmdlist): New declaration.
9216 (cmd_record_goto): New declaration.
9217 * record.c: Remove unnecessary includes.
9218 Include inferior.h.
9219 (cmd_record_goto): Remove declaration.
9220 (record_cmdlist): Now extern. Initialize.
9221 (set_record_cmdlist): Now extern. Initialize.
9222 (show_record_cmdlist): Now extern. Initialize.
9223 (info_record_cmdlist): Now extern. Initialize.
9224 (find_record_target): New.
9225 (require_record_target): New.
9226 (cmd_record_start): Update.
9227 (cmd_record_delete): Remove target-specific code.
9228 Call target_delete_record.
9229 (cmd_record_stop): Unpush any record target.
9230 (set_record_insn_max_num): Move to record-full.c
9231 (set_record_command): Add comment.
9232 (show_record_command): Add comment.
9233 (info_record_command): Update comment.
9234 Remove target-specific code.
9235 Call the record target's to_info_record.
9236 (cmd_record_start): New.
9237 (cmd_record_goto): Now extern.
9238 Remove target-specific code.
9239 Call target_goto_begin, target_goto_end, or target_goto.
9240 (_initialize_record): Move record target ops initialization to
9241 record-full.c.
9242 Change "record" command help text.
9243 Move "record restore", "record set", and "record show" commands to
9244 record-full.c.
9245 * Makefile.in (SFILES): Add record-full.c.
9246 (HFILES_NO_SRCDIR): Add record-full.h.
9247 (COMMON_OBS): Add record-full.o.
9248 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9249 * arm-tdep.c: Include record-full.h.
9250 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9251 * i386-tdep.c: Include record-full.h.
9252 * infrun.c: Include record-full.h.
9253 * linux-record.c: Include record-full.h.
9254 * moxie-tdep.c: Include record-full.h.
9255 * record-full.c: Include record-full.h.
9256 Change module comment.
9257 (set_record_full_cmdlist): New.
9258 (show_record_full_cmdlist): New.
9259 (record_full_cmdlist): New.
9260 (record_goto_insn): New declaration.
9261 (record_save): New declaration.
9262 (record_check_insn_num): Change query string.
9263 (record_info): New.
9264 (record_delete): New.
9265 (record_is_replaying): New.
9266 (record_goto_entry): New.
9267 (record_goto_begin): New.
9268 (record_goto_end): New.
9269 (record_goto): New.
9270 (init_record_ops): Update.
9271 (init_record_core_ops): Update.
9272 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9273 (cmd_record_start): New.
9274 (set_record_insn_max_num): Moved from record.c
9275 (set_record_full_command): New.
9276 (show_record_full_command): New.
9277 (_initialize_record_full): New.
9278
b48d48eb
MM
92792013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9280
9281 * target.h (add_deprecated_target_alias): New.
9282 * target.c (add_deprecated_target_alias): New.
9283
a950d57c
MM
92842013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9285
9286 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9287 and signal.h.
9288 (linux_supports_btrace): Add kernel and
9289 cpuid check.
9290 (kernel_supports_btrace): New function.
9291 (cpu_supports_btrace): New function.
9292 (intel_supports_btrace): New function.
9293
9accd112
MM
92942013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9295
9296 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9297 * remote.c: Include btrace.h.
9298 (struct btrace_target_info): New struct.
9299 (remote_supports_btrace): New function.
9300 (send_Qbtrace): New function.
9301 (remote_enable_btrace): New function.
9302 (remote_disable_btrace): New function.
9303 (remote_teardown_btrace): New function.
9304 (remote_read_btrace): New function.
9305 (init_remote_ops): Add btrace ops.
9306 (enum <unnamed>): Add btrace packets.
9307 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9308 (_initialize_remote): Add packet configuration for branch tracing.
9309
c12a2917
MM
93102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9311
9312 * features/btrace.dtd: New file.
9313 * Makefile.in (XMLFILES): Add btrace.dtd.
9314 * btrace.h (parse_xml_btrace): New declaration.
9315 * btrace.c: Include xml-support.h.
9316 (parse_xml_btrace): New function.
9317 (parse_xml_btrace_block): New function.
9318 (block_attributes): New struct.
9319 (btrace_attributes): New struct.
9320 (btrace_children): New struct.
9321 (btrace_elements): New struct.
9322
3e3aea48
MM
93232013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9324
9325 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9326 (amd64_linux_enable_btrace): New.
9327 (amd64_linux_disable_btrace): New.
9328 (amd64_linux_teardown_btrace): New.
9329 (_initialize_amd64_linux_nat): Initialize btrace ops.
9330 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9331 (i386_linux_enable_btrace): New.
9332 (i386_linux_disable_btrace): New.
9333 (i386_linux_teardown_btrace): New.
9334 (_initialize_i386_linux_nat): Initialize btrace ops.
9335 * config/i386/linux.mh: Add linux-btrace.o.
9336 * config/i386/linux64.mh: Add linux-btrace.o.
9337
7c97f91e
MM
93382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9339
9340 * common/linux_btrace.h: New file.
9341 * common/linux_btrace.c: New file.
9342 * Makefile.in (SFILES): Add btrace.c.
9343 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9344 (COMMON_OBS): Add btrace.o.
9345 (linux-btrace.o): New rule.
9346
1999790b 93472013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9348
9349 * target.h: Include btrace.h.
9350 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9351 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9352 * target.c (target_supports_btrace): New function.
9353 (target_enable_btrace): New function.
9354 (target_disable_btrace): New function.
9355 (target_teardown_btrace): New function.
9356 (target_read_btrace): New function.
9357 * btrace.h: New file.
9358 * btrace.c: New file.
9359 * Makefile.in: Add btrace.c.
9360 * gdbthread.h: Include btrace.h.
9361 (struct thread_info): Add btrace field.
9362 * thread.c: Include btrace.h.
9363 (clear_thread_inferior_resources): Call target_teardown_btrace.
9364 * common/btrace-common.h: New file.
9365
61a31a67
JK
93662013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9367
9368 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9369 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9370 kill_status to outer block.
9371
05c56a9d
JK
93722013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9373
9374 Fix entry-values if the callee called a noreturn function.
9375 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9376 get_frame_address_in_block. Add new comment.
9377
9112db09
JK
93782013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9379
9380 Fix entry-values in C++ across CUs.
9381 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9382 lookup_minimal_symbol. Add a comment.
9383 * dwarf2read.c
9384 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9385 DW_AT_linkage_name.
9386
9b67fcec
YQ
93872013-03-08 Yao Qi <yao@codesourcery.com>
9388
9389 * tracepoint.c (_initialize_tracepoint): Indent the code.
9390
6221be90
PA
93912013-03-08 Pedro Alves <palves@redhat.com>
9392
9393 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9394 (parse_find_args, find_command): Change type of pattern buffer
9395 locals to 'gdb_byte *'.
9396
be9a119c 93972013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9398 Hafiz Abid Qadeer <abidh@codesourcery.com>
9399
9400 * NEWS: Mention set and show trace-buffer-size commands.
9401 Mention new packet.
9402 * target.h (struct target_ops): New method
9403 to_set_trace_buffer_size.
9404 (target_set_trace_buffer_size): New macro.
9405 * target.c (update_current_target): Set up new method.
9406 * tracepoint.c (trace_buffer_size): New global.
9407 (start_tracing): Send it to the target.
9408 (set_trace_buffer_size): New function.
9409 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9410 * remote.c (remote_set_trace_buffer_size): New function.
9411 (_initialize_remote): Use it.
9412 (QTBuffer:size) New remote command.
9413 (PACKET_QTBuffer_size): New enum.
9414 (remote_protocol_features): Add an entry for
9415 PACKET_QTBuffer_size.
9416
7da3ab79
TT
94172013-03-08 Tom Tromey <tromey@redhat.com>
9418
9419 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9420 variable.
9421
0c1f71e7
PA
94222013-03-07 Pedro Alves <palves@redhat.com>
9423
9424 * target.c (target_read_stralloc, target_fileio_read_alloc):
9425 *Cast pointer to 'gdb_byte *' in target call.
9426
c8af03a2
PA
94272013-03-07 Pedro Alves <palves@redhat.com>
9428
9429 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9430 call.
9431
529480d0
KS
94322013-03-07 Keith Seitz <keiths@redhat.com>
9433
9434 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9435 (trace_pass_command): Likewise.
9436 * cli/cli-cmds.c: Include cli/cli-utils.h.
9437 (source_command): Use skip-spaces.
9438 (disassemble_command): Likewise.
9439 * findcmd.c: Include cli/cli-utils.h.
9440 (parse_find_args): Use skip_spaces.
9441 * go32-nat.c: Include cli/cli-utils.h.
9442 (go32_sldt): Use skip_spaces.
9443 (go32_sgdt): Likewise.
9444 (go32_sidt): Likewise.
9445 (go32_pde): Likewise.
9446 (go32_pte): Likewise.
9447 (go32_pte_for_address): Likewise.
9448 * infcmd.c: Include cli/cli-utils.h.
9449 (registers_info): Use skip_spaces.
9450 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9451 (linux_info_proc): Likewise.
9452 * linux-thread-db.c: Include cli/cli-utils.h.
9453 (info_auto_load_libthread_db): Use skip_spaces_const.
9454 * m32r-rom.c: Include cli/cli-utils.h.
9455 (m32r_upload_command): Use skip_spaces.
9456 * maint.c: Include cli/cli-utils.h.
9457 (maintenance_translate_address): Use skip_spaces.
9458 * mi/mi-parse.c: Include cli/cli-utils.h.
9459 (mi_parse_argv): Use skip_spaces.
9460 (mi_parse): Likewise.
9461 * minsyms.c: Include cli/cli-utils.h.
9462 (msymbol_hash_iw): Use skip_spaces_const.
9463 * objc-lang.c: Include cli/cli-utils.h.
9464 (parse_selector): Use skip_spaces.
9465 (parse_method): Likewise.
9466 * python/python.c: Include cli/cli-utils.h.
9467 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9468 (python_command)[HAVE_PYTHON]: Likewise.
9469 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9470 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9471 (m32r_load): Use skip_spaces.
9472 * serial.c: Include cli/cli-utils.h.
9473 (serial_open): Use skip_spaces_const.
9474 * stack.c: Include cli/cli-utils.h.
9475 (parse_frame_specification_1): Use skip_spaces_const.
9476 * symfile.c: Include cli/cli-utils.h.
9477 (set_ext_lang_command): Use skip_spaces.
9478 * symtab.c: Include cli/cli-utils.h.
9479 (rbreak_command): Use skip_spaces.
9480 * thread.c (thread_name_command): Use skip_spaces.
9481 * tracepoint.c (validate_actionline): Use skip_spaces.
9482 (encode_actions_1): Likewise.
9483 (trace_find_range_command): Likewise.
9484 (trace_find_outside_command): Likewise.
9485 (trace_dump_actions): Likewise.
9486
ac91cd70
PA
94872013-03-07 Pedro Alves <palves@redhat.com>
9488
9489 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9490 * expprint.c (print_subexp_standard): Likewise.
9491 * utils.c (host_char_to_target): Likewise.
9492 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9493 * varobj.c (value_get_print_value): Change type of local to char*.
9494 Cast it gdb_byte * in call to language printer.
9495
2898e560
PA
94962013-03-07 Pedro Alves <palves@redhat.com>
9497
9498 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9499 gdb_byte *'.
9500 (make_wchar_iterator): Remove cast to char*.
9501 (wchar_iterate): Change type of local.
9502
a09b4448
PA
95032013-03-07 Pedro Alves <palves@redhat.com>
9504
9505 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9506 for 'regcache->register_status'.
9507
20ced3e4
PA
95082013-03-07 Pedro Alves <palves@redhat.com>
9509
c2d6a675 9510 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9511 int.
9512
fe106009
PA
95132013-03-07 Pedro Alves <palves@redhat.com>
9514
9515 * stap-probe.c (handle_stap_probe): Add cast to char*.
9516
8ac2c12b
PA
95172013-03-07 Pedro Alves <palves@redhat.com>
9518
9519 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9520 RECORD_MSGRCV>: Pass a signed variable to
9521 regcache_raw_read_signed, instead of an unsigned one.
9522
99f0a309
PA
95232013-03-07 Pedro Alves <palves@redhat.com>
9524
9525 * remote-notif.c (notif_debug): Change type to int.
9526 * remote-notif.h (notif_debug): Likewise.
9527
964b8317
PA
95282013-03-07 Pedro Alves <palves@redhat.com>
9529
9530 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9531
f0cc8ad4
PA
95322013-03-07 Pedro Alves <palves@redhat.com>
9533
9534 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9535 * remote.h (hex2bin, bin2hex): ... here.
9536 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9537
77dec115
EZ
95382013-03-07 Eli Zaretskii <eliz@gnu.org>
9539
9540 * utils.c (initialize_utils): Improve doc strings of "set/show
9541 width", "set/show height", and "set/show pagination".
9542
741d92cf
KS
95432013-03-06 Keith Seitz <keiths@redhat.com>
9544
9545 * ax-gdb.c (gen_printf): Make FORMAT const.
9546 * ax-gdb.h (gen_printf): Likewise.
9547 * ax-general.c (ax_string): Make STR const.
9548 * ax.h (ax_string): Likewise.
9549
7b6c814e
DE
95502013-03-06 Doug Evans <dje@google.com>
9551
9552 * elfread.c (elf_symfile_read): Move debugging printf to more
9553 logical location.
9554
634334ab
PA
95552013-03-06 Pedro Alves <palves@redhat.com>
9556
9557 * python/py-utils.c (target_string_to_unicode): Delete function.
9558 * python/python-internal.h (target_string_to_unicode): Delete
9559 declaration.
9560
e482a1a7
PM
95612013-03-06 Pierre Muller <muller@sourceware.org>
9562
9563 * linespec.c (get_current_search_block): ARI fix, use (void)
9564 for empty parameter list.
9565
4eeaa230
DE
95662013-03-05 Doug Evans <dje@google.com>
9567
9568 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9569 of old ada_lookup_symbol_list. In !full_search case, don't
9570 search superblocks.
9571 (ada_lookup_symbol_list): Delete arg full_search, all callers
9572 updated. Call ada_lookup_symbol_list_worker.
9573 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9574 * ada-lang.h (ada_lookup_symbol_list): Update.
9575 * language.h (language_defn): Update comment for
9576 la_iterate_over_symbols.
9577 * linespec.c (iterate_over_file_blocks): New function.
9578 (iterate_over_all_matching_symtabs): Call it.
9579 (lookup_prefix_sym): Ditto.
9580 (get_current_search_block): New function.
9581 (get_search_block): Delete.
9582 (find_label_symbols): Call get_current_search_block.
9583 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9584 * symtab.c (iterate_over_symbols): Don't search superblocks.
9585
b69b1fb1
YQ
95862013-03-05 Yao Qi <yao@codesourcery.com>
9587
9588 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9589 parameter VAR's type from "unsigned int" to "int".
9590 * command.h (var_zuinteger_unlimited): Update its comments.
9591 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9592
3c095f49
CV
95932013-03-05 Corinna Vinschen <vinschen@redhat.de>
9594
9595 * NEWS: Mention new target x86_64-*-cygwin*.
9596
b5b0b0af
CV
95972013-03-05 Corinna Vinschen <vinschen@redhat.de>
9598
9599 * configure.host: Add x86_64-*-cygwin* as host.
9600 * configure.tgt: Add x86_64-*-cygwin* as target.
9601 * config/i386/cygwin64.mh: New file.
9602
f6f99966
JK
96032013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9604
9605 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9606
33f448b1
JK
96072013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9608
9609 * linespec.c (struct linespec_canonical_name): New.
9610 (struct linespec_state): Change canonical_names type to it.
9611 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9612 xrealloc element size. Initialize the different CANONICAL fields.
9613 (canonical_to_fullform): New.
9614 (filter_results): Use it. Add variables canonical, fullform and
9615 cleanup.
9616 (struct decode_line_2_item, decode_line_2_compare_items): New.
9617 (decode_line_2): Remove variables iter and item_names, add variables
9618 items and items_count. Modify the code for these new variables.
9619
feb14725
CV
96202013-03-04 Corinna Vinschen <vinschen@redhat.com>
9621
9622 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9623 calling do_cleanup.
9624
e83b17ba
HZ
96252013-03-04 Luis Machado <lgustavo@codesourcery.com>
9626
9627 * tracepoint.c (build_traceframe_info): Add code for byte order.
9628
a2d13a0d
KB
96292013-03-02 Kevin Buettner <kevinb@redhat.com>
9630
8dddcae8
KB
9631 * v850-tdep.c: (v850e2_register_name): Revise system register
9632 names to match current V850E2M architecture specifications.
9633 Update register number enum comments too.
f5aee5ee 9634
d79e58d8
JW
96352013-03-01 Jiong Wang <jiwang@tilera.com>
9636 Pedro Alves <palves@redhat.com>
9637
9638 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9639 to END_ADDR.
9640 (tilegx_skip_prologue): Limit prologue analysis to section end.
9641
c4be5165
JK
96422013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9643
9644 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9645 use it.
9646
e362b510
PA
96472013-03-01 Pedro Alves <palves@redhat.com>
9648
9649 Use gdb_byte for bytes from the program being debugged.
9650
9651 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9652 Change type of local 'buf' to gdb_byte.
9653 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9654 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9655 * cris-tdep.c (cris_sigcontext_addr)
9656 (cris_sigtramp_frame_unwind_cache): Likewise.
9657 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9658 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9659 Likewise.
9660 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9661 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9662 (hppa32_hpux_search_dummy_call_sequence)
9663 (hppa_hpux_supply_save_state): Likewise.
9664 * hppa-linux-tdep.c (insns_match_pattern)
9665 (hppa_linux_find_global_pointer): Likewise.
9666 * hppa-tdep.c (hppa_in_function_epilogue_p)
9667 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9668 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9669 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9670 (i386fbsd_collect_uthread): Likewise.
9671 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9672 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9673 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9674 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9675 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9676 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9677 (ia64_libunwind_frame_prev_register)
9678 (ia64_libunwind_sigtramp_frame_this_id)
9679 (ia64_find_global_pointer_from_dynamic_section)
9680 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9681 (ia64_unwind_pc): Likewise.
9682 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9683 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9684 (m68hc11_extract_return_value): Likewise.
9685 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9686 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9687 (mep_get_insn, mep_push_dummy_call): Likewise.
9688 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9689 (mips_linux_in_dynsym_stub): Likewise.
9690 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9691 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9692 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9693 to gdb_byte.
9694 * remote-mips.c (mips_set_register): Likewise.
9695 * remote-sim.c (gdbsim_fetch_register): Likewise.
9696 * score-tdep.c (score7_fetch_inst): Change type of parameter
9697 'memblock' and local 'buf' to gdb_byte.
9698 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9699 Change type of local 'buf' to gdb_byte. Adjust.
9700 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9701 to gdb_byte**.
9702 (score7_analyze_prologue): Change type of 'memblock' and
9703 'memblock_ptr' locals to gdb_byte*.
9704 * sh64-tdep.c (sh64_extract_return_value)
9705 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9706 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9707 * solib-pa64.c (pa64_solib_create_inferior_hook)
9708 (pa64_open_symbol_file_object): Remove local 'buf'.
9709 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9710 (som_open_symbol_file_object): Likewise.
9711 * solib-spu.c (spu_current_sos): Likewise.
9712 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9713 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9714 (spu_store_registers): Likewise.
9715 * target.c (debug_print_register): Likewise.
9716 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9717 * xstormy16-tdep.c (xstormy16_store_return_value)
9718 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9719 (xstormy16_find_jmp_table_entry): Likewise.
9720
75cc61ca 97212013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9722
9723 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9724 (tilegx_gdbarch_init): Install it.
9725
ddb08e9c
TT
97262013-02-28 Tom Tromey <tromey@redhat.com>
9727
9728 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9729 PyLong_Check.
9730
62d7fb51
DE
97312013-02-28 Doug Evans <dje@google.com>
9732
9733 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9734 * python/python.c (gdbpy_find_pc_line): Ditto.
9735
c4a9e8b4
TT
97362013-02-28 Tom Tromey <tromey@redhat.com>
9737
9738 * contrib/excheck.py: New file.
9739 * contrib/exsummary.py: New file.
9740 * contrib/gcc-with-excheck: New file.
9741
7f6a5dde
TT
97422013-02-28 Tom Tromey <tromey@redhat.com>
9743
9744 * python/python.c (gdbpy_print_stack): Call begin_line and
9745 fprintf_filtered inside TRY_CATCH.
9746
9e974e55
TT
97472013-02-28 Tom Tromey <tromey@redhat.com>
9748
9749 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9750 inside TRY_CATCH.
9751
dd5fa3e7
TT
97522013-02-28 Tom Tromey <tromey@redhat.com>
9753
9754 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9755 frame_object_to_frame_info inside TRY_CATCH.
9756
86a3263f
TT
97572013-02-28 Tom Tromey <tromey@redhat.com>
9758
9759 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9760 TRY_CATCH.
9761
81b52a3a
TT
97622013-02-28 Tom Tromey <tromey@redhat.com>
9763
9764 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9765
d50a0ce2
CV
97662013-02-27 Corinna Vinschen <vinschen@redhat.com>
9767
9768 * windows-nat.c: Throughout, fix format strings and casts of
9769 printf-like functions to avoid type related warnings on all
9770 platforms.
9771 (handle_output_debug_string): Fetch context information address
9772 from debug string using string_to_core_addr.
9773
e1f58301
JW
97742013-02-27 Jiong Wang <jiwang@tilera.com>
9775
9776 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9777 * regformats/reg-tilegx32.dat: New.
9778
4fcd89fc
JW
97792013-02-27 Jiong Wang <jiwang@tilera.com>
9780
9781 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9782
748d24e6
JW
97832013-02-27 Jiong Wang <jiwang@tilera.com>
9784
9785 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9786
6c8e944d
YQ
97872013-02-27 Yao Qi <yao@codesourcery.com>
9788 Pedro Alves <palves@redhat.com>
9789
9790 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9791 pc/tp/range/outside, look for the next trace frame instead of
9792 always starting from frame 0.
6c8e944d 9793
acd7db30
AG
97942013-02-26 Anthony Green <green@moxielogic.com>
9795
9796 * configure.tgt: Add support for moxie-*-rtems* target.
9797
025e6dce
PA
97982013-02-25 Pedro Alves <palves@redhat.com>
9799
9800 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9801 warning text.
9802
ca9c94ef
MR
98032013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9804
9805 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9806 if $fp is used as the virtual frame pointer.
9807
24c274a1
AM
98082013-02-23 Alan Modra <amodra@gmail.com>
9809
9810 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9811 symbol size.
9812 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9813 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9814 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9815 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9816
bfada189
JK
98172013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9818
9819 Code cleanup.
9820 * elfread.c (build_id_bfd_get): Make the return type const.
9821 (build_id_verify): Make the check parameter const.
9822 (build_id_to_debug_filename): Make the build_id parameter and variable
9823 data const.
9824 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9825
c0355132
AM
98262013-02-21 Alan Modra <amodra@gmail.com>
9827
9828 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9829
9f44fbc0
SCR
98302013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9831
9832 Add a new method 'disassemble' to gdb.Architecture class.
9833 * python/py-arch.c (archpy_disassmble): Implementation of the
9834 new method gdb.Architecture.disassemble.
9835 (arch_object_methods): Add entry for the new method.
9836
b74ea3eb
JW
98372013-02-20 Jiong Wang <jiwang@tilera.com>
9838
9839 * MAINTAINERS (Write After Approval): Add myself to the list.
9840
61a672f1
PA
98412013-02-19 Pedro Alves <palves@redhat.com>
9842
9843 Garbage collect 'struct monitor_ops'::load_routine.
9844
9845 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9846 * monitor.c (monitor_load): No longer call
9847 current_monitor->load_routine.
9848 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9849 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9850 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9851
40e397df
PA
98522013-02-19 Pedro Alves <palves@redhat.com>
9853
9854 PR gdb/15161
9855
9856 Harmonize with generic_load.
9857
9858 * monitor.c: Include "readline/readline.h".
9859 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9860 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9861 long/strtol for the 'load_offset' local. Error out if no argument
9862 is given or if too many arguments are given. Tilde expand the
9863 passed in file name.
9864
f698ca8e
KT
98652013-02-19 Kai Tietz <ktietz@redhat.com>
9866
9867 PR gdb/15161
9868 * symfile.c (load_section_data): Change type of load_offset
9869 to CORE_ADDR.
9870 (generic_load): User strtoulst instead of strtoul for conversion
9871 of load_offset.
9872
3361b059
WL
98732013-02-19 Jiong Wang <jiwang@tilera.com>
9874
9875 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9876 for return address, "lr" register, saved on stack.
9877 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9878 after we invoke tilegx_analyze_prologue.
9879
3e9d5130
WL
98802013-02-19 Jiong Wang <jiwang@tilera.com>
9881
bb1bcd86
WL
9882 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9883
3361b059 98842013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9885
b74ea3eb 9886 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9887
4aaf2503
WL
98882013-02-19 Jiong Wang <jiwang@tilera.com>
9889
b74ea3eb 9890 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9891 (tilegx_write_pc): New function.
9892 (tilegx_cannot_reference_register): Return zero if REGNO
9893 is TILEGX_FAULTNUM_REGNUM.
9894 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9895 (tilegx_register_name): Add handling of "faultnum" register.
9896 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9897 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9898 handling of TILEGX_FAULTNUM_REGNUM.
9899 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9900
bc23a956
WL
99012013-02-19 Jiong Wang <jiwang@tilera.com>
9902
9903 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9904 should be aligned to 64bit.
bc23a956 9905
42f45f1a
KT
99062013-02-19 Kai Tietz <ktietz@redhat.com>
9907
9908 * windows-nat.c (windows_xfer_memory): Fix debug-output
9909 for LLP64.
9910
6ce4c112
LL
99112013-02-19 Lei Liu <lei.liu2@windriver.com>
9912
9913 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9914 Don't check DSP register number if HAVE_DSP is not set.
9915
30e8ee25
AM
99162013-02-19 Alan Modra <amodra@gmail.com>
9917
9918 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9919 throughout file instead.
9920 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9921 Don't xmalloc return value.
9922 (build_id_verify): Similarly. Don't xfree.
9923 (build_id_to_debug_filename): Update.
9924 (find_separate_debug_file_by_buildid): Update, don't xfree.
9925
4c9ad8c2
TT
99262013-02-18 Tom Tromey <tromey@redhat.com>
9927
9928 PR gdb/15102:
9929 * dwarf2read.c (read_subrange_type): Use result of
9930 'check_typedef'.
9931
983dc440
YQ
99322013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9933
9934 * frame.c: Remove one extra white space after #include
9935 directive.
9936
7fb2b84a
JK
99372013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9938
9939 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9940
edceb2a9
JK
99412013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9942
9943 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9944 and dir commands into an if block.
9945
e81b7af8
TT
99462013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9947
9948 * python/py-breakpoint (struct pybp_code): Use int instead of
9949 enum type_code.
9950
f5911ea1
HAQ
99512013-02-15 Pedro Alves <pedro@codesourcery.com>
9952 Hafiz Abid Qadeer <abidh@codesourcery.com>
9953
9954 * NEWS: Mention new field "trace-file".
9955 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9956 (tfile_open): Record the trace file's filename in the trace
9957 status.
9958 (tfile_files_info): Mention the name of the trace file.
9959 Check the "filename" field explicitely.
9960 (trace_status_command): Explicitely check "filename" field.
9961 (trace_find_command): Ditto.
9962 (trace_find_pc_command): Ditto.
9963 (trace_find_tracepoint_command): Ditto.
9964 (trace_find_line_command): Ditto.
9965 (trace_find_range_command): Ditto.
9966 (trace_find_outside_command): Ditto.
9967 * tracepoint.h (struct trace_status) <from_file>: Rename it
9968 to "filename" and make it hold the trace file's filename
9969 instead of a boolean.
9970 * remote.c (remote_get_trace_status): Initialize "filename"
9971 field with NULL instead of 0.
9972
796cb314
YQ
99732013-02-15 Yao Qi <yao@codesourcery.com>
9974
9975 * remote.c: Fix a typo.
9976
42e79b1d
PM
99772013-02-14 Pierre Muller <muller@sourceware.org>
9978
9979 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9980
baea0dae
PA
99812013-02-14 Pedro Alves <palves@redhat.com>
9982
9983 * utils.c (savestring): Don't #undef it. Move function to
9984 common/common-utils.c.
9985 * common/common-utils.c: Include gdb_string.h.
9986 (savestring): Move here from utils.c.
9987 * common/common-utils.h (savestring): Declare.
9988
57c3b6ed
PA
99892013-02-14 Pedro Alves <palves@redhat.com>
9990
9991 * utils.c (savestring): Rename parameter 'size' to 'len'.
9992
d6c44983
YZ
99932013-02-14 Pedro Alves <palves@redhat.com>
9994 Yufeng Zhang <yufeng.zhang@arm.com>
9995
9996 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9997 (aarch64_inferior_data, struct aarch64_inferior_data):
9998 Delete.
9999 (struct aarch64_process_info): New.
10000 (aarch64_process_list): New global.
10001 (aarch64_find_process_pid, aarch64_add_process)
10002 (aarch64_process_info_get): New functions.
10003 (aarch64_inferior_data_get): Delete.
10004 (aarch64_process_info_get): New function.
10005 (aarch64_forget_process): New function.
10006 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10007 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10008 aarch64_get_debug_reg_state.
10009 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10010 instead of linux_nat_iterate_watchpoint_lwps.
10011 (aarch64_linux_new_fork): New function.
10012 (aarch64_linux_child_post_startup_inferior): Use
10013 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10014 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10015 (aarch64_linux_remove_hw_breakpoint)
10016 (aarch64_handle_aligned_watchpoint)
10017 (aarch64_handle_unaligned_watchpoint)
10018 (aarch64_linux_insert_watchpoint)
10019 (aarch64_linux_remove_watchpoint)
10020 (aarch64_linux_stopped_data_address): Adjust to pass the current
10021 process id to aarch64_debug_reg_state.
10022 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10023 linux_nat_new_fork hook, and aarch64_forget_process as
10024 linux_nat_forget_process hook; remove the call to
10025 register_inferior_data_with_cleanup.
10026
4819b3f8
PA
100272013-02-14 Pedro Alves <palves@redhat.com>
10028
10029 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10030 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10031 lval_memory.
10032
1773c82c
HAQ
100332013-02-14 Pedro Alves <pedro@codesourcery.com>
10034 Hafiz Abid Qadeer <abidh@codesourcery.com>
10035
10036 * tracepoint.h (validate_trace_state_variable_name): Declare.
10037 * tracepoint.c (validate_trace_state_variable_name): New.
10038 (trace_variable_command): Parse the trace state variable's name
10039 without using parse_expression. Do several validations.
10040 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10041 trace state variable's name with parse_expression. Validate it.
10042
53778a97
YQ
100432013-02-14 Yao Qi <yao@codesourcery.com>
10044
10045 * infcmd.c (breakpoint_proceeded): Remove it.
10046
7b3ae3a6
YQ
100472013-02-14 Yao Qi <yao@codesourcery.com>
10048
10049 * tracepoint.c (end_actions_pseudocommand): Make it static.
10050 (while_stepping_pseudocommand): Likewise.
10051 * tracepoint.h (end_actions_pseudocommand): Remove the
10052 declaration.
10053 (while_stepping_pseudocommand): Likewise.
10054
64580925
YQ
100552013-02-14 Yao Qi <yao@codesourcery.com>
10056
10057 * cli/cli-decode.c (help_cmd): Remove the declaration of
10058 "cmdlist".
10059 (help_all): Likewise.
10060
26cb8b7c
PA
100612013-02-13 Pedro Alves <palves@redhat.com>
10062
10063 * amd64-linux-nat.c (update_debug_registers_callback):
10064 Update comment.
10065 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10066 iterate_over_lwps.
10067 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10068 i386_debug_reg_state.
10069 (amd64_linux_new_fork): New function.
10070 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10071 linux_nat_new_fork hook, and i386_forget_process as
10072 linux_nat_forget_process hook.
10073 * i386-linux-nat.c (update_debug_registers_callback):
10074 Update comment.
a8256ea1 10075 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10076 iterate_over_lwps.
10077 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10078 i386_debug_reg_state.
10079 (i386_linux_new_fork): New function.
10080 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10081 linux_nat_new_fork hook, and i386_forget_process as
10082 linux_nat_forget_process hook.
10083 * i386-nat.c (i386_init_dregs): Delete.
10084 (i386_inferior_data, struct i386_inferior_data):
10085 Delete.
10086 (struct i386_process_info): New.
10087 (i386_process_list): New global.
10088 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10089 New functions.
10090 (i386_inferior_data_get): Delete.
10091 (i386_process_info_get): New function.
10092 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10093 (i386_forget_process): New function.
10094 (i386_cleanup_dregs): Rewrite.
10095 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10096 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10097 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10098 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10099 to i386_debug_reg_state.
10100 (i386_use_watchpoints): Don't register inferior data.
10101 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10102 adjust comment.
10103 (i386_forget_process): Declare.
10104 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10105 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10106 New static globals.
10107 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10108 (add_initial_lwp): New, factored out from ...
10109 (add_lwp): ... this. Don't check the number of lwps before
10110 calling linux_nat_new_thread.
10111 (linux_nat_iterate_watchpoint_lwps): Delete.
10112 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10113 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10114 forks and vforks.
10115 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10116 initial lwp.
10117 (linux_nat_kill, linux_nat_mourn_inferior): Call
10118 linux_nat_forget_process.
10119 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10120 (linux_nat_forget_process): New functions.
10121 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10122 type.
10123 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10124 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10125 types.
10126 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10127 (linux_nat_forget_process): New declarations.
10128
10129 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10130 (amd64fbsd_mourn_inferior): New function.
10131 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10132 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10133
5befea72
MS
101342013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10135
55015247
YQ
10136 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10137 Adding _().
5befea72 10138
1d3ffd6b
MS
101392013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10140
10141 * aarch64-linux-nat.c (debug_reg_change_callback)
10142 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10143 %s and phex().
10144
6eb04473
MS
101452013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10146
10147 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10148 with LONGEST.
10149
a016fc87
HAQ
101502013-02-13 Pedro Alves <palves@redhat.com>
10151 Hafiz Abid Qadeer <abidh@codesourcery.com>
10152
10153 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10154
e234dfaf
TT
101552013-02-12 Tom Tromey <tromey@redhat.com>
10156
10157 PR symtab/11464:
10158 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10159 NAME return.
10160 (classify_inner_name): Remove 'first_name' argument, add
10161 'context'. Remove unused variable.
10162 (yylex): Explicitly maintain the context type. Exit loop earlier
10163 if NAME result is seen.
10164
0b1afbb3
PA
101652013-02-12 Pedro Alves <palves@redhat.com>
10166
10167 * amd64-darwin-tdep.c: Add (C) after Copyright.
10168 * cli/cli-cmds.h: Ditto.
10169 * cli/cli-decode.c: Ditto.
10170 * cli/cli-decode.h: Ditto.
10171 * cli/cli-dump.c: Ditto.
10172 * cli/cli-dump.h: Ditto.
10173 * cli/cli-interp.c: Ditto.
10174 * cli/cli-logging.c: Ditto.
10175 * cli/cli-script.c: Ditto.
10176 * cli/cli-script.h: Ditto.
10177 * cli/cli-setshow.c: Ditto.
10178 * cli/cli-setshow.h: Ditto.
10179 * cli/cli-utils.c: Ditto.
10180 * cli/cli-utils.h: Ditto.
10181 * config/alpha/nm-osf3.h: Ditto.
10182 * config/djgpp/djconfig.sh: Ditto.
10183 * config/i386/nm-fbsd.h: Ditto.
10184 * config/i386/nm-i386gnu.h: Ditto.
10185 * config/nm-linux.h: Ditto.
10186 * config/nm-nto.h: Ditto.
10187 * config/rs6000/nm-rs6000.h: Ditto.
10188 * config/sparc/nm-sol2.h: Ditto.
10189 * darwin-nat-info.c: Ditto.
10190 * dfp.c: Ditto.
10191 * dfp.h: Ditto.
10192 * gdb-demangle.h: Ditto.
10193 * i386-darwin-nat.c: Ditto.
10194 * i386-darwin-tdep.c: Ditto.
10195 * linux-fork.h: Ditto.
10196 * m32c-tdep.c: Ditto.
10197 * microblaze-linux-tdep.c: Ditto.
10198 * microblaze-rom.c: Ditto.
10199 * microblaze-tdep.c: Ditto.
10200 * microblaze-tdep.h: Ditto.
10201 * mips-linux-tdep.h: Ditto.
10202 * ppc-ravenscar-thread.c: Ditto.
10203 * ppc-ravenscar-thread.h: Ditto.
10204 * prologue-value.c: Ditto.
10205 * prologue-value.h: Ditto.
10206 * ravenscar-thread.c: Ditto.
10207 * ravenscar-thread.h: Ditto.
10208 * sparc-ravenscar-thread.c: Ditto.
10209 * sparc-ravenscar-thread.h: Ditto.
10210 * tilegx-linux-tdep.c: Ditto.
10211 * unwind_stop_reasons.def: Ditto.
10212 * windows-nat.h: Ditto.
10213 * xtensa-linux-tdep.c: Ditto.
10214 * xtensa-xtregs.c: Ditto.
10215 * regformats/regdat.sh: Ditto.
10216 * regformats/regdef.h: Ditto.
10217
6c01dd94
PA
102182013-02-12 Pedro Alves <palves@redhat.com>
10219
10220 * break-catch-sig.c: Update copyright years.
10221
b65a2bd9
SCR
102222013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10223
10224 Add support for a destructor for ui_out data and use it to
10225 provide a ui_out destructor.
10226 * ui-out.h: Declare the new ui_out destructor.
10227 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10228 * ui-out.c (default_data_destroy): Add a default data destructor
10229 which does nothing.
10230 (default_ui_out_impl): Set the new data_destroy field to
10231 default_data_destroy
10232 (uo_data_destroy): Local function which invokes the data
10233 destructor if present.
10234 (clear_table): Local function which clears the table data of a
10235 ui_out object.
10236 (ui_out_destroy): Public function which frees a ui_out object.
10237 (ui_out_table_end): Use the new clear_table function.
10238 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10239 NULL.
10240 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10241 to NULL.
10242
c2792f5a
DE
102432013-02-11 Doug Evans <dje@google.com>
10244
10245 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10246 (printf_decfloat): New function. Broken out from ui_printf.
10247 Remove unnecessary code to shift the entire format string down.
10248 (printf_pointer): New function.
10249 (ui_printf): Code to print C strings, wide C strings, decfloats,
10250 and pointers moved to separate functions.
10251
d9e98382
SDJ
102522013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10253
10254 * valops.c (value_assign): Handling bitfield offset in
10255 `lval_internalvar_component' case.
10256
4ff3ce77
DE
102572013-02-08 Doug Evans <dje@google.com>
10258
10259 * common/format.c (parse_format_string): Fix whitespace.
10260
901900c4
MGD
102612013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10262
10263 * stack.c (return_command): Work around uninitialized variable
10264 warning.
10265
b5dbc8d4
YZ
102662013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10267
10268 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10269 number of the registers from 36 to 34.
10270
51d66578
MS
102712013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10272
10273 * NEWS: Mention new AArch64 native and target support.
10274
176b1c95
MS
102752013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10276
10277 * MAINTAINERS (Write After Approval): Add myself.
10278
9d19df75
MS
102792013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10280 Marcus Shawcroft <marcus.shawcroft@arm.com>
10281 Nigel Stephens <nigel.stephens@arm.com>
10282 Yufeng Zhang <yufeng.zhang@arm.com>
10283
10284 * aarch64-linux-nat.c: New file.
10285 * config/aarch64/linux.mh: New file.
10286 * configure.host: Add AArch64.
10287 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10288
7e1e0340
DE
102892013-02-07 Doug Evans <dje@google.com>
10290
10291 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10292 disassemble command.
10293
45e25a36
MS
102942013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10295
10296 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10297 set_gdbarch_fetch_tls_load_module_address.
10298
bbfdfe1c
DM
102992013-02-06 David S. Miller <davem@davemloft.net>
10300
10301 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10302 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10303 * value.c (struct_return_convention): New function.
10304 (using_struct_return): Implement in terms of struct_return_convention.
10305 * value.h (struct_return_convention): Declare.
10306 * stack.c (return_command): Allow successful overriding of the return
10307 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10308
bc9abe4a
TT
103092013-02-06 Tom Tromey <tromey@redhat.com>
10310
10311 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10312 outside of TRY_CATCH.
10313
134a2066
YQ
103142013-02-06 Yao Qi <yao@codesourcery.com>
10315
10316 * mi/mi-interp.c: Include "tracepoint.h".
10317 (mi_tsv_modified): Declare.
10318 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10319 (mi_interpreter_init): Call observer_attach_tsv_modified.
10320 (mi_tsv_modified): New.
10321 (mi_tsv_created, mi_tsv_deleted): Update.
10322 * tracepoint.c (trace_variable_command): Call
10323 observer_notify_tsv_modified if the initial value of tsv is
10324 changed.
10325 (delete_trace_state_variable): Call
10326 observer_notify_tsv_deleted earlier.
10327 (trace_variable_command): Caller update.
10328 (create_tsv_from_upload): Likewise.
10329 * observer.sh: Declare "struct trace_state_variable".
10330
10331 * NEWS: Mention the new MI notification "=tsv-modified".
10332
59be2b6a
DE
103332013-02-05 Doug Evans <dje@google.com>
10334
10335 * completer.c (location_completer): Fix typo in comment.
10336
d30113d4
JK
103372013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10338
10339 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10340 ADDRESS sorted.
10341
14ac654f
MS
103422013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10343
10344 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10345 Refactor if statement to avoid trailing || operator.
10346
543bf33d
AT
103472013-02-05 Andreas Tobler <andreast@fgznet.ch>
10348
10349 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10350
dc18f110
AT
103512013-02-04 Andreas Tobler <andreast@fgznet.ch>
10352
10353 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10354 * configure.host: Add powerpc*-*-freebsd* target.
10355 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10356 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10357 * config/powerpc/fbsd.mh: New file.
10358
b3ac9c77
SDJ
103592013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10360 Denys Vlasenko <dvlasenk@redhat.com>
10361 Pedro Alves <palves@redhat.com>
10362
10363 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10364 (struct elf_internal_linux_prpsinfo): Forward declare.
10365 * gdbarch.h, gdbarch.c: Regenerate.
10366 * linux-tdep.c: Include `cli/cli-utils.h'.
10367 (linux_fill_prpsinfo): New function.
10368 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10369 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10370 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10371 depending on gdbarch pointer bitness.
10372 * ppc-linux-tdep.c: Include elf-bfd.h.
10373 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10374 on 32-bit.
10375
176eb98c
MS
103762013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10377 Marcus Shawcroft <marcus.shawcroft@arm.com>
10378 Nigel Stephens <nigel.stephens@arm.com>
10379 Yufeng Zhang <yufeng.zhang@arm.com>
10380
10381 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10382
cf0dbd6f
MS
103832013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10384 Marcus Shawcroft <marcus.shawcroft@arm.com>
10385 Nigel Stephens <nigel.stephens@arm.com>
10386 Yufeng Zhang <yufeng.zhang@arm.com>
10387
10388 * aarch64-newlib-tdep.c: New file.
10389 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10390 aarch64*-*-elf.
10391 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10392 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10393 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10394 * osabi.c (gdb_osabi_names): Add "Newlib".
10395
1ae3db19
MS
103962013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10397 Marcus Shawcroft <marcus.shawcroft@arm.com>
10398 Nigel Stephens <nigel.stephens@arm.com>
10399 Yufeng Zhang <yufeng.zhang@arm.com>
10400
10401 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10402 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10403 * aarch64-linux-tdep.c: New file.
10404 * aarch64-linux-tdep.h: New file.
10405 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10406 * configure.tgt: Add aarch64-none-linux-gnu.
10407
07b287a0
MS
104082013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10409 Marcus Shawcroft <marcus.shawcroft@arm.com>
10410 Nigel Stephens <nigel.stephens@arm.com>
10411 Yufeng Zhang <yufeng.zhang@arm.com>
10412
10413 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10414 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10415 (ALLDEPFILES): Add aarch64-tdep.c.
10416 * aarch64-tdep.c: New file.
10417 * aarch64-tdep.h: New file.
10418 * configure.tgt: Add AArch64.
10419 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10420 (aarch64-expedite): New definition.
10421 * features/aarch64-core.xml: New file.
10422 * features/aarch64-fpu.xml: New file.
10423 * features/aarch64-without-fpu.c: New file (generated).
10424 * features/aarch64-without-fpu.xml: New file.
10425 * features/aarch64.c: New file (generated).
10426 * features/aarch64.xml: New file.
10427 * regformats/aarch64-without-fpu.dat: New file (generated).
10428 * regformats/aarch64.dat: New file (generated).
10429
0f1b18ab
JK
104302013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10431
10432 * contrib/expect-read1.c: New file.
10433 * contrib/expect-read1.sh: New file.
10434
233d95b5
JK
104352013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10436
10437 * dwarf2read.c (file_file_name): New function with code from
10438 file_full_name.
10439 (file_full_name): Move most of the code to file_file_name.
10440 (macro_start_file): Rename variable full_name to file_name and use
10441 file_file_name for it. Add comp_dir parameter to new_macro_table.
10442 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10443 macro_source_file->filename access by macro_source_fullname call.
10444 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10445 caller.
10446 * macrotab.c (struct macro_table): New field comp_dir.
10447 (macro_include): New variables link_fullname and source_fullname.
10448 Replace any macro_source_file->filename access by macro_source_fullname
10449 call.
10450 (macro_lookup_inclusion): Remove the partial filenames checking code.
10451 (check_for_redefinition): New variables source_fullname and
10452 found_key_fullname. Replace any macro_source_file->filename access by
10453 macro_source_fullname call.
10454 (macro_undef): New variables source_fullname and key_fullname. Replace
10455 any macro_source_file->filename access by macro_source_fullname call.
10456 (macro_lookup_definition): New variables retval and source_fullname.
10457 Replace any macro_source_file->filename access by macro_source_fullname
10458 call.
10459 (foreach_macro): New variable key_fullname. Replace any
10460 macro_source_file->filename access by macro_source_fullname call.
10461 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10462 macro_source_file->filename access by macro_source_fullname call.
10463 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10464 (macro_source_fullname): New function.
10465 * macrotab.h (struct macro_source_file): Extent the filename field
10466 comment.
10467 (new_macro_table): New parameter comp_dir, add a comment for it.
10468 (macro_source_fullname): new declaration.
10469
da235a7c
JK
104702013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10471
10472 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10473 this_real_name to outer block. Use it also for
10474 compare_filenames_for_search.
10475 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10476 with dw2_get_real_path for file_matcher, considering also
10477 BASENAMES_MAY_DIFFER.
10478 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10479
fbd9ab74
JK
104802013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10481
10482 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10483 to the file_matcher parameter. Pass 0 to it.
10484 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10485 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10486 NULL psymtab_to_fullname result.
10487 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10488 an expected filename instead.
10489 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10490 file_matcher parameter. Call also psymtab_to_fullname, after newly
10491 considering BASENAMES_MAY_DIFFER.
10492 * source.c (rewrite_source_path): Remove static.
10493 * source.h (rewrite_source_path): New declaration.
10494 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10495 the expand_symtabs_matching field. Comment it.
10496 * symtab.c (file_matches): New function comment. Add parameter
10497 basenames, implement it.
10498 (search_symbols_file_matches): Add basenames parameter. Update the
10499 file_matches caller.
10500 (search_symbols): Match FILES also against symtab_to_fullname.
10501 Optimize it for BASENAMES_MAY_DIFFER.
10502
56d397a3
JK
105032013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10504
10505 * source.c (print_source_lines_base): Print for TUI also "fullname".
10506 * tui/tui-data.c (init_content_element): Change tui_locator_element
10507 field to full_name.
10508 * tui/tui-data.h (struct tui_locator_element): Likewise.
10509 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10510 tui_update_locator_filename calls to tui_update_locator_fullname.
10511 Replace symtab->filename refererence by symtab_to_fullname call.
10512 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10513 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10514 field to full_name. Replace symtab->filename refererence by
10515 symtab_to_fullname call.
10516 (tui_show_symtab_source): Rename parameter to fullname. Change
10517 tui_locator_element field to full_name.
10518 * tui/tui-stack.c: Include source.h.
10519 (tui_set_locator_filename): Rename the declaration to ...
10520 (tui_set_locator_fullname): ... here. Rename its parameter to
10521 fullname, updates its comment.
10522 (tui_set_locator_info): Rename its parameter to fullname.
10523 (tui_set_locator_filename): Rename the definition to ...
10524 (tui_set_locator_fullname): ... here. Rename its parameter to
10525 fullname, updates its comment. Change tui_locator_element field to
10526 full_name.
10527 (tui_set_locator_info): Rename its parameter to fullname.
10528 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10529 (tui_update_locator_filename): Rename to ...
10530 (tui_update_locator_fullname): ... here. Rename callee to
10531 tui_set_locator_fullname.
10532 (tui_show_frame_info): Replace symtab->filename refererence by
10533 symtab_to_fullname call.
10534 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10535 (tui_update_locator_fullname): ... here.
10536 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10537 tui_update_locator_fullname. Replace symtab->filename refererence by
10538 symtab_to_fullname call.
10539 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10540 Rename the callee to tui_update_locator_fullname.
10541 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10542
05cba821
JK
105432013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10544
10545 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10546 by symtab_to_filename_for_display calls.
10547 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10548 (clear_command): New variable sal_fullname, initialize it. Replace
10549 compare_filenames_for_search by filename_cmp with sal_fullname.
10550 (say_where, update_static_tracepoint): Replace symtab->filename
10551 refererences by symtab_to_filename_for_display calls.
10552 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10553 Likewise.
10554 * dwarf2read.c: Include source.h.
10555 (fixup_go_packaging): Replace symtab->filename refererences by
10556 symtab_to_filename_for_display calls.
10557 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10558 Replace symtab->filename refererences by symtab_to_filename_for_display
10559 calls.
10560 (create_sals_line_offset, convert_linespec_to_sals): New variable
10561 fullname, initialize it, replace symtab->filename reference by the
10562 variable.
10563 * linux-fork.c: Include source.h.
10564 (info_checkpoints_command): Replace symtab->filename refererences by
10565 symtab_to_filename_for_display calls.
10566 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10567 by symtab_to_filename_for_display calls.
10568 * mdebugread.c: Include source.h.
10569 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10570 symtab_to_filename_for_display calls.
10571 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10572 (mi_cmd_file_list_exec_source_files): Likewise.
10573 * printcmd.c: Include source.h.
10574 (build_address_symbolic): Replace symtab->filename refererences by
10575 symtab_to_filename_for_display calls.
10576 * psymtab.c (partial_map_symtabs_matching_filename)
10577 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10578 with psymtab_to_fullname.
10579 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10580 by symtab_to_filename_for_display calls.
10581 (stpy_get_filename): New variable filename, initialize it, use instead
10582 of symtab->filename refererences.
10583 (salpy_str): Make variable filename const char *. Replace
10584 symtab->filename refererences by symtab_to_filename_for_display calls.
10585 * skip.c: Include source.h and filenames.h.
10586 (skip_file_command): Remove const from the symtab variable. Replace
10587 symtab->filename refererences by symtab_to_fullname call.
10588 (function_name_is_marked_for_skip): New variables searched_for_fullname
10589 and fullname. Use them to search also with symtab's fullname.
10590 * source.c (find_source_lines): Replace symtab->filename refererences
10591 by symtab_to_filename_for_display calls.
10592 (print_source_lines_base): New variable filename, use it instead of
10593 symtab->filename. Replace symtab->filename refererences by
10594 symtab_to_filename_for_display calls.
10595 (line_info, forward_search_command): Replace symtab->filename
10596 refererences by symtab_to_filename_for_display calls.
10597 (reverse_search_command): Replace symtab->filename refererences by
10598 symtab_to_filename_for_display calls. New variable filename for it.
10599 * stack.c (frame_info): Likewise.
10600 * symmisc.c: Include source.h.
10601 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10602 (maintenance_info_symtabs): Replace symtab->filename refererences by
10603 symtab_to_filename_for_display calls.
10604 * symtab.c (iterate_over_some_symtabs): Call
10605 compare_filenames_for_search also with symtab_to_fullname.
10606 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10607 symtab->filename refererences by symtab_to_filename_for_display calls.
10608 (find_line_symtab): Replace symtab->filename refererences by
10609 symtab_to_filename_for_display calls.
10610 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10611 (print_symbol_info): Make the last parameter const char *. New
10612 variable s_filename. Use it in the function.
10613 (symtab_symbol_info): Make the last_filename variable const char *.
10614 Replace symtab->filename refererences by symtab_to_filename_for_display
10615 calls.
10616 (rbreak_command): New variable fullname. Use it. Replace
10617 symtab->filename refererence by symtab_to_filename_for_display call.
10618 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10619 (print_one_static_tracepoint_marker): Replace symtab->filename
10620 refererences by symtab_to_filename_for_display calls.
10621 * tui/tui-source.c (tui_set_source_content): New variables filename and
10622 s_filename. Replace symtab->filename refererences by this variable.
10623 Replace other symtab->filename refererences by
10624 symtab_to_filename_for_display calls.
10625
1b56eb55
JK
106262013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10627 Jan Kratochvil <jan.kratochvil@redhat.com>
10628
10629 Add a new variable that controls a way in which filenames are
10630 displayed.
10631 * NEWS (set filename-display): New entry.
10632 * source.c (filename_display_basename, filename_display_relative)
10633 (filename_display_absolute, filename_display_kind_names)
10634 (filename_display_string, show_filename_display_string)
10635 (symtab_to_filename_for_display): New.
10636 (_initialize_source): Added initialization of 'filename-display'
10637 variable.
10638 * source.h (symtab_to_filename_for_display): Added declaration.
10639 * stack.c (print_frame): Added new variable and calling of a new
10640 function and condition with this variable. Changed third argument of
10641 calling of a function.
10642
aa079c93
JK
106432013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10644
10645 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10646 Rename field reference filename to fullname.
10647 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10648 fullname. New comment for it.
10649 * tui/tui-source.c (tui_set_source_content): Rename field reference
10650 filename to fullname. Initialize field by symtab_to_fullname now.
10651 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10652 reference filename to fullname. Use symtab_to_fullname during
10653 comparison.
10654
652a8996
JK
106552013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10656
10657 Code cleanup.
10658 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10659 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10660 filename to fullname. Rename variable this_name to this_fullname.
10661 Lowercase FILENAME_CMP call.
10662 (dw2_find_symbol_file): New comment for the returned string.
10663 (dwarf2_gdb_index_functions): Rename the function to
10664 dw2_expand_symtabs_with_fullname.
10665 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10666 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10667 fullname.
10668 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10669 * symfile.h (struct quick_symbol_functions): Rename field
10670 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10671 parameter filename to fullname. Document returned string meaning for
10672 find_symbol_file.
10673 * symtab.c (find_line_symtab): Rename the called function to
10674 expand_symtabs_with_fullname.
10675
af529f8f
JK
106762013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10677
10678 Code cleanup.
10679 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10680 call of filename_cmp with compare_filenames_for_search.
10681 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10682 is_abs, unify the call of FILENAME_CMP with
10683 compare_filenames_for_search. New gdb_asserts for real_path and name.
10684 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10685 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10686 * symfile.h (struct quick_symbol_functions): Extend the comment for
10687 map_symtabs_matching_filename.
10688 * symtab.c (compare_filenames_for_search): Remove the function comment
10689 relative path requirement. Handle absolute filenames, with a comment.
10690 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10691 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10692 real_path and name. Unify the call of compare_filenames_for_search
10693 with FILENAME_CMP.
10694 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10695
2f202fde
JK
106962013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10697
10698 Code cleanup.
10699 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10700 source_file references by symtab field references. Remove variables
10701 sal and fullname.
10702 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10703 (clear_command, say_where): Replace bp_location field source_file
10704 references by symtab field references.
10705 (bp_location_dtor): Remove the source_file reference.
10706 (update_static_tracepoint): Replace bp_location field source_file
10707 references by symtab field references.
10708 (breakpoint_free_objfile): New function.
10709 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10710 Replace the field source_file by field symtab, extend its comment.
10711 (breakpoint_free_objfile): New declaration.
10712 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10713 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10714 field source_file references by symtab field references.
10715
f5b95b50
JK
107162013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10717
10718 Replace xfullpath calls by gdb_realpath calls.
10719 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10720 function comment.
10721 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10722 Remove it from the iterate_over_some_symtabs call.
10723 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10724 Remove it from the dw2_map_expand_apply calls, remove a block handling
10725 it.
10726 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10727 Remove it from the iterate_over_some_symtabs call.
10728 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10729 Remove it from the partial_map_expand_apply calls, remove a block
10730 handling it. Drop gdb_realpath call and cleanups from the real_path
10731 handling.
10732 * source.c (openp): Drop the comment part about xfullpath. Replace
10733 xfullpath calls by gdb_realpath calls.
10734 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10735 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10736 from method map_symtabs_matching_filename and its comment.
10737 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10738 gdb_realpath call.
10739 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10740 remove it also from the function comment, remove a block handling it.
10741 Drop gdb_realpath call and cleanups from the real_path handling.
10742 (iterate_over_symtabs): Drop variable full_path and its use.
10743 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10744 * utils.c (xfullpath): Remove.
10745 * utils.h (xfullpath): Remove.
10746
d78489bf
AT
107472013-02-01 Andreas Tobler <andreast@fgznet.ch>
10748
10749 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10750 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10751 (ALLDEPFILES): Add ppc64-tdep.c.
10752 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10753 ppc64-tdep.o to gdb_target_obs.
10754 * ppc64-tdep.h: New file.
10755 * ppc64-tdep.c: New file.
10756 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10757 ppc-linux-tdep.c to here.
10758 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10759 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10760 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10761 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10762 from ppc-linux-tdep.c to here.
10763 (ppc64_convert_from_func_ptr_addr): Rename from
10764 ppc64_linux_convert_from_func_ptr_addr to
10765 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10766 here.
10767 * rs6000-tdep.c:
10768 (read_insn): Move from ppc-linux-tdep.c to here.
10769 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10770 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10771 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10772 Removed above functions.
10773 (ppc_linux_init_abi): Adjust.
10774
8db60374
AR
107752013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10776
10777 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10778
f2e5f4ce
AR
107792013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10780
10781 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10782
c1f7d745
PA
107832013-02-01 Pedro Alves <palves@redhat.com>
10784
10785 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10786 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10787
8a92335b
JK
107882013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10789
10790 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10791 files with no separate debug info.
10792 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10793 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10794 only for files with no separate debug info.
10795
8eacb197
TT
107962013-01-31 Tom Tromey <tromey@redhat.com>
10797
10798 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10799 change type.
10800 (struct jit_program_space_data): Rename from jit_inferior_data.
10801 Update comments.
10802 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10803 Change return type. Attach data to program space.
10804 (jit_program_space_data_cleanup): Rename from
10805 jit_inferior_data_cleanup; change argument type.
10806 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10807 change type.
10808 (jit_register_code): Update.
10809 (jit_update_inferior_cache): Remove.
10810 (jit_breakpoint_deleted): Get jit data from the location's program
10811 space.
10812 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10813 'ps_data', change type.
10814 (jit_inferior_init, jit_breakpoint_re_set_internal)
10815 (jit_event_handler): Update.
10816 (free_objfile_data): Get data from objfile's program space.
10817 (_initialize_jit): Update.
10818
f25c0135
TT
108192013-01-31 Tom Tromey <tromey@redhat.com>
10820
10821 PR gdb/13987:
10822 * jit.c (struct jit_inferior_data) <cached_code_address,
10823 jit_breakpoint>: New fields.
10824 (jit_breakpoint_re_set_internal): Fix logging. Only create
10825 breakpoint if cached address has changed.
10826 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10827 functions.
10828 (_initialize_jit): Register breakpoint deleted observer.
10829
974a734b
AR
108302013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10831
10832 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10833 (save_infcall_suspend_state): Ifdef out unused inf.
10834 (restore_infcall_suspend_state): Ifdef out unused inf.
10835 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10836 (jit_frame_sniffer): Remove unused inf_data.
10837
df54f8eb
AR
108382013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10839
10840 * c-exp.y (classify_inner_name): Remove unused type.
10841 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10842 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10843 need_escape.
10844 (c_get_string): Remove unused kind.
10845 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10846
5799c0b9
AR
108472013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10848
10849 * charset.c (intermediate_encoding): Remove unused i.
10850 * completer.c (signal_completer): Remove unused i.
10851 * continuations.c (discard_my_continuations_1): Remove unused
10852 continuation_ptr.
10853 * corelow.c (core_close): Remove unuseD name.
10854 (get_core_siginfo): Remove unused pid.
10855 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10856 i, cps.
10857 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10858 (loclist_describe_location): Remove unused first.
10859 * event-top.c (command_line_handler): Remove unused got_eof.
10860 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10861 (resize_section_table): Remove unused old_value.
10862 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10863 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10864 * i386-tdep.c (i386_process_record): Remove unused rex.
10865 * infcmd.c (get_return_value): Remove unused uiout.
10866 * jv-lang.c (type_from_class): Remove unused is_array.
10867 * jv-valprint.c (java_val_print): Remove unused i.
10868 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10869 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10870 * m2-typeprint.c (m2_print_type): Remove unused code.
10871 * macroexp.c (get_character_constant): Remove unused body_start.
10872 (macro_stringify): Remove unused result.
10873 * objc-lang.c (find_methods): Remove unused gdbarch.
10874 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10875 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10876 * stack.c (print_frame_args): Remove unused summary.
10877 * thread.c (thread_apply_command): Remove unused p.
10878 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10879 * valops.c (search_struct_method): Remove unused skip.
10880 * valprint.c (generic_val_print): Remove unused byte_order.
10881 * varobj.c (varobj_update): Remove unused changed.
10882 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10883 (alias_command): Remove unused c.
10884 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10885 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10886 format.
10887 (mi_cmd_data_write_memory): Remove unused word_format.
10888 (mi_cmd_data_write_memory_bytes): Remove unused r.
10889 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10890 p_start, p_end.
10891 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10892 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10893 line_width.
10894
c656bca5
AR
108952013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10896
10897 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10898 * symtab.c (iterate_over_symtabs): Remove unused s.
10899 (find_pc_sect_symtab): Remove unused pspAce.
10900 (find_pc_sect_line): Remove unused alt_symtab.
10901 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10902 (completion_list_add_name): Remove unused newsize.
10903
7078baeb
TT
109042013-01-31 Tom Tromey <tromey@redhat.com>
10905
10906 PR c++/14998:
10907 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10908 TYPE_CODE_FUNC.
10909
c2e8b827
AR
109102013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10911
10912 * target.c (target_read_string): Remove unused origlen.
10913
0e43993a
AR
109142013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10915
10916 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10917 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10918 * ax-general.c (ax_print): Remove unused is_float.
10919 * blockframe.c (block_innermost_frame): Remove unused start, end.
10920 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10921
765a97ab
AR
109222013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10923
10924 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10925 (svr4_read_so_list): Remove unused lmo.
10926 * solib-target.c (solib_target_relocate_section_addresses): Remove
10927 unused flags.
10928
a99dad3d
TT
109292013-01-30 Tom Tromey <tromey@redhat.com>
10930
10931 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10932
3bff1ecd
TT
109332013-01-30 Tom Tromey <tromey@redhat.com>
10934
10935 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10936 * utils.c (gnu_debuglink_crc32): Remove.
10937 * utils.h (gnu_debuglink_crc32): Don't declare.
10938
7d455152
TT
109392013-01-30 Tom Tromey <tromey@redhat.com>
10940
10941 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10942 (read_structure_type, read_enumeration_type): Remove cast.
10943
abee88f2
TT
109442013-01-30 Tom Tromey <tromey@redhat.com>
10945
10946 * dwarf2read.c (read_namespace_type): Remove cast.
10947 (read_typedef): Likewise.
10948
8d9878a4
TT
109492013-01-29 Tom Tromey <tromey@redhat.com>
10950
10951 * dwarf2read.c (free_dwo_file): Remove assert.
10952
a543d2a9
TT
109532013-01-29 Tom Tromey <tromey@redhat.com>
10954
10955 * value.c (deprecated_set_value_modifiable): Remove.
10956 * value.h (deprecated_set_value_modifiable): Remove.
10957
bed911e5
DE
109582013-01-28 Doug Evans <dje@google.com>
10959
10960 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10961 to addresses from dwo files.
10962
28c64fc2
SCR
109632013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10964
10965 * valops.c (find_overload_match): Remove unused argument 'lax'.
10966 * value.h: Remove unused argument 'lax' from the declaration of
10967 find_overload_match.
10968 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10969 to find_overload_match.
10970 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10971 argument to find_overload_match.
10972
4d4ec4e5
TT
109732013-01-25 Tom Tromey <tromey@redhat.com>
10974
10975 * dwarf2read.c (processing_has_namespace_info): Remove.
10976 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10977 (process_die, read_func_scope, dwarf2_start_symtab)
10978 (new_symbol_full): Update.
10979
195a3f6c
TT
109802013-01-25 Tom Tromey <tromey@redhat.com>
10981
10982 * cp-namespace.c (cp_set_block_scope): Remove.
10983 * cp-support.h (cp_set_block_scope): Remove.
10984 * dbxread.c: Include block.h.
10985 (cp_set_block_scope): New function.
10986 (process_one_symbol): Update.
10987 * dwarf2read.c (read_func_scope): Use block_set_scope.
10988
8ba0730a
PA
109892013-01-25 Pedro Alves <palves@redhat.com>
10990
10991 * remote.c (add_current_inferior_and_thread): Tweak comment.
10992
12aaed36
TT
109932013-01-25 Tom Tromey <tromey@redhat.com>
10994
10995 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10996 (cp_add_using_directive): Add 'copy_names' argument.
10997 * cp-support.h (cp_add_using_directive): Update.
10998 (struct using_direct) <import_src, import_dest, alias,
10999 declaration>: Now const.
11000 * dwarf2read.c (read_import_statement): Use obconcat.
11001 Don't copy names passed to cp_add_using_directive.
11002
7fc75ca7
TT
110032013-01-25 Tom Tromey <tromey@redhat.com>
11004
11005 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11006
3405876a
PA
110072013-01-25 Pedro Alves <palves@redhat.com>
11008
11009 * remote.c (stop_reply_extract_thread): New.
11010 (add_current_inferior_and_thread): New parameter 'wait_status'.
11011 Handle it.
11012 (remote_start_remote): Pass wait status to
11013 add_current_inferior_and_thread.
11014 (extended_remote_run): Update comment.
11015 (extended_remote_create_inferior_1): Pass wait status to
11016 add_current_inferior_and_thread.
11017
8954db33
AB
110182013-01-25 Andrew Burgess <aburgess@broadcom.com>
11019 Ulrich Weigand <uweigand@de.ibm.com>
11020
11021 * valarith.c (value_vector_widen): New function for replicating a
11022 scalar into a vector.
11023 (value_binop): Use value_vector_widen to widen scalar to vector
11024 rather than casting, this better matches gcc C behaviour.
11025 * valops.c (value_casst): Update logic for casting between vector
11026 types, and for casting from scalar to vector, try to match gcc C
11027 behaviour.
11028 * value.h (value_vector_widen): Declare.
11029 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11030 function, handle special case for casting scalar to vector.
11031 (opencl_relop): Use opencl_value_cast.
11032 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11033 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11034 in order to use opencl_value_cast.
11035
843b20dc
YQ
110362013-01-25 Yao Qi <yao@codesourcery.com>
11037
11038 * event-loop.c: Include "queue.h".
11039 (gdb_event_p): New typedef.
11040 (DECLARE_QUEUE_P): Use.
11041 (DEFINE_QUEUE_P): Use.
11042 (async_queue_event): Remove.
11043 (gdb_event_xfree): New.
11044 (initialize_event_loop): New.
11045 (process_event): Use QUEUE macros.
11046 (event_queue): Remove.
11047 (gdb_wait_for_event): Caller update.
11048 (check_async_event_handlers): Likewise.
11049 (poll_timers): Likewise.
11050 * event-loop.h (initialize_event_loop): Declare.
11051 * event-loop.c (gdb_event_xfree): New.
11052 * top.c (gdb_init): Call initialize_event_loop.
11053
20ad8856
YQ
110542013-01-25 Yao Qi <yao@codesourcery.com>
11055
11056 * event-loop.c (async_queue_event): Remove one parameter
11057 'position'. Remove code handling 'position' == TAIL.
11058 (gdb_wait_for_event): Caller update.
11059 (check_async_event_handlers): Caller update.
11060 (poll_timers): Caller update.
11061 * event-loop.h (enum queue_position): Remove.
11062
3bbbe775
MK
110632013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11064
11065 * MAINTAINERS: Update my email.
11066
a87d9ac4
YQ
110672013-01-25 Yao Qi <yao@codesourcery.com>
11068
11069 * main.c (print_gdb_help): Remove "--epoch" from the help
11070 message.
11071
2077afdd
TD
110722013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11073
11074 * symtab.c (skip_prologue_using_sal): Consider a file
11075 change the same as an increased line number
11076
63da4037
TD
110772013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11078
30e8ee25 11079 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11080
45e6c716
TT
110812013-01-24 Tom Tromey <tromey@redhat.com>
11082
11083 * ada-lang.h (ada_decode_symbol): Make return type const.
11084 * ada-lang.c (ada_decode_symbol): Likewise.
11085
b1ae631a
DE
110862013-01-23 Doug Evans <dje@google.com>
11087
11088 * linespec.c (find_linespec_symbols): Make static.
11089
55a78401
SDJ
110902013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11091
11092 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11093 type on float conversion for complex type.
11094
bea883fd
SCR
110952013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11096
11097 Add a new class gdb.Architecture which exposes GDB's
11098 internal representation of architecture via GDB Python API.
11099 * Makefile.in: Add entries corresponding to the new file
11100 python/py-arch.c.
11101 * NEWS (Python Scripting): Add entries for the new class
11102 gdb.Architecture and the new method gdb.Frame.architecture.
11103 * python/py-arch.c: Implement gdb.Architecture class.
11104 * python/py-frame.c (frapy_arch): Implement the method
11105 gdb.Frame.architecture().
11106 (frame_object_methods): Add 'architecture' to the method table.
11107 * python/python-internal.h: Add declarations of new utility
11108 functions.
11109 * python/python.c (_initialize_python): Initialize
11110 gdb.Architecture class.
11111
796a7ff8
DE
111122013-01-23 Doug Evans <dje@google.com>
11113
11114 Work around binutils/15021.
11115 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11116 type_unit_group out of union s. All uses updated.
11117 (read_index_from_section): Watch for index version 8.
11118 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11119 an imported symtab.
11120 (write_psymtabs_to_index): Increment version number to 8.
11121
0928e93d
PA
111222013-01-22 Pedro Alves <palves@redhat.com>
11123
11124 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11125 user-visible.
11126
9c97429f
PA
111272013-01-22 Pedro Alves <palves@redhat.com>
11128
11129 * annotate.c (annotate_breakpoints_changed): Rename to ...
11130 (annotate_breakpoints_invalid): ... this. Make static.
11131 (breakpoint_changed): Adjust.
11132 (_initialize_annotate): Always install the observers. Install a
11133 "breakpoint_created" observer.
11134 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11135 * breakpoint.c (set_breakpoint_condition)
11136 (breakpoint_set_commands, do_map_commands_command)
11137 (init_raw_breakpoint, clear_command, set_ignore_count)
11138 (enable_breakpoint_disp): No longer call
11139 annotate_breakpoints_changed.
11140
bd00c694
PA
111412013-01-22 Pedro Alves <palves@redhat.com>
11142
11143 * annotate.c: Include "inferior.h".
11144 (frames_invalid_emitted)
11145 (breakpoints_invalid_emitted): New globals.
11146 (async_background_execution_p): New function.
11147 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11148 emitting the annotation if it has already been emitted.
11149 (annotate_display_prompt): New function.
11150 * annotate.h (annotate_display_prompt): New declaration.
11151 * event-top.c: Include annotate.h.
11152 (display_gdb_prompt): Call annotate_display_prompt.
11153
187d10dd
PA
111542013-01-22 Pedro Alves <palves@redhat.com>
11155
11156 * annotate.c (ignore_count_changed): Delete.
11157 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11158 (annotate_ignore_count_change): Delete.
11159 (annotate_stopped): Don't emit a delayed breakpoints-changed
11160 annotation.
11161 * annotate.h (annotate_ignore_count_change): Delete.
11162 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11163 annotate_ignore_count_change.
11164
d84cf7eb
TT
111652013-01-22 Tom Tromey <tromey@redhat.com>
11166
11167 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11168 require_rvalue for a register location.
11169
8f1d5693
MK
111702013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11171
11172 * breakpoint.c (print_one_breakpoint_location): Add MI
11173 field 'thread-groups' when printing a breakpoint.
11174 (output_thread_groups): New function.
11175
aa6199c6
SCR
111762013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11177
11178 * python/lib/gdb/commands/explore.py
11179 (CompoundExplorer.explore_expr): Correct the name of a method
11180 being invoked.
11181 (ExploreTypeCommand.invoke): Add a missing 'return'.
11182
d2afef13
TT
111832013-01-21 Tom Tromey <tromey@redhat.com>
11184
11185 * gdb_obstack.h (obconcat): Move declaration here, from...
11186 * symfile.h (obconcat): ... here.
11187 * gdb_obstack.c: New file.
11188 (obconcat): Move from...
11189 * symfile.c (obconcat): ... here.
11190 * Makefile.in (SFILES): Add gdb_obstack.c.
11191 (COMMON_OBS): Add gdb_obstack.o.
11192
10f0c4bb
TT
111932013-01-21 Tom Tromey <tromey@redhat.com>
11194
11195 * symfile.h (obsavestring): Don't declare.
11196 * symfile.c (obsavestring): Remove.
11197 * ada-exp.y: Use obstack_copy0, not obsavestring.
11198 * ada-lang.c: Use obstack_copy0, not obsavestring.
11199 * coffread.c: Use obstack_copy0, not obsavestring.
11200 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11201 * dbxread.c: Use obstack_copy0, not obsavestring.
11202 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11203 * jit.c: Use obstack_copy0, not obsavestring.
11204 * mdebugread.c: Use obstack_copy0, not obsavestring.
11205 * psymtab.c: Use obstack_copy0, not obsavestring.
11206 * stabsread.c: Use obstack_copy0, not obsavestring.
11207 * xcoffread.c: Use obstack_copy0, not obsavestring.
11208
86f62fd7
TT
112092013-01-21 Tom Tromey <tromey@redhat.com>
11210
11211 * dwarf2read.c (fixup_go_packaging): Save package name
11212 on objfile obstack.
11213 * gdbtypes.c (init_type): Don't copy name.
11214
15d034d0
TT
112152013-01-21 Tom Tromey <tromey@redhat.com>
11216
11217 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11218 const.
11219 (struct attribute) <u.str>: Now const.
11220 (struct fnfieldlist) <name>: Now const.
11221 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11222 (partial_die_parent_scope): Make return type const.
11223 (partial_die_full_name, add_partial_symbol): Update.
11224 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11225 'name' const.
11226 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11227 (read_file_scope, read_func_scope, dwarf2_add_field)
11228 (dwarf2_add_member_fn, read_structure_type)
11229 (process_enumeration_scope, read_array_type, read_module_type)
11230 (read_base_type, read_subrange_type): Update.
11231 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11232 (new_symbol_full, guess_full_die_structure_name): Update.
11233 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11234 (dwarf2_name): Return const type.
11235 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11236 const.
11237
748e18ae
TT
112382013-01-21 Tom Tromey <tromey@redhat.com>
11239
11240 * gdbtypes.c (init_type): Make 'name' const.
11241 * gdbtypes.h (init_type): Update.
11242
46212e0b
TT
112432013-01-21 Tom Tromey <tromey@redhat.com>
11244
11245 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11246 (start_symtab): Make 'name' and 'dirname' const. Use
11247 set_last_source_file.
11248 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11249 (last_source_file): Define. Now static.
11250 (set_last_source_file, get_last_source_file): New functions.
11251 * buildsym.h (last_source_file): Don't declare.
11252 (start_symtab): Update.
11253 (set_last_source_file, get_last_source_file): Declare.
11254 * coffread.c (complete_symtab): Use set_last_source_file.
11255 (coff_end_symtab): Likewise.
11256 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11257 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11258 set_last_source_file.
11259 (process_one_symbol): Use get_last_source_file.
11260 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11261 (psymtab_to_symtab_1): Use get_last_source_file.
11262 * xcoffread.c (process_linenos): Use get_last_source_file.
11263 (complete_symtab): Use set_last_source_file.
11264 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11265 (scan_xcoff_symtab): Use set_last_source_file.
11266
9d2ceabe
TT
112672013-01-21 Tom Tromey <tromey@redhat.com>
11268
11269 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11270 (symbol_set_names): Remove casts. Handle field const-ness.
11271
cfc594ee
TT
112722013-01-21 Tom Tromey <tromey@redhat.com>
11273
11274 * dwarf2read.c (new_symbol_full): Remove cast.
11275 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11276 * symtab.h (symbol_set_demangled_name): Update.
11277
5484b13a
TT
112782013-01-21 Tom Tromey <tromey@redhat.com>
11279
11280 * main.c (captured_main): Call bfd_init.
11281
1605ef26
TT
112822013-01-21 Tom Tromey <tromey@redhat.com>
11283
11284 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11285 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11286 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11287 * NEWS: Update.
11288
3b74cdc3
JK
112892013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11290
11291 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11292
5a352474
JK
112932013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11294
11295 Fix gdb.fortran/common-block.exp crash in PIE mode.
11296 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11297 LOC_COMMON_BLOCK.
11298 * f-valprint.c (info_common_command_for_block): Expect
11299 LOC_COMMON_BLOCK in gdb_assert.
11300 * symtab.h (struct general_symbol_info): Update comment for the
11301 common_block member.
11302 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11303 (enum address_class): New member LOC_COMMON_BLOCK.
11304
c60797fd
DB
113052013-01-18 David Blaikie <dblaikie@gmail.com>
11306
11307 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11308
46f35228
TT
113092013-01-18 Tom Tromey <tromey@redhat.com>
11310
11311 PR c++/14999:
11312 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11313 Call require_rvalue.
11314
257e7a09
YQ
113152013-01-18 Yao Qi <yao@codesourcery.com>
11316
11317 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11318 (dbx_read_symtab): New declaration.
11319 (dbx_psymtab_to_symtab): Delete.
11320 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11321 Rename parameter PST to SELF. Exchanged two parameters.
11322 (start_psymtab): Caller update.
11323 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11324 (dwarf2_read_symtab): New declaration.
11325 (dwarf2_psymtab_to_symtab): Delete.
11326 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11327 Rename parameter PST to SELF. Exchanged two parameters.
11328 (create_partial_symtab): Caller update.
11329 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11330 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11331 Rename parameter PST to SELF. Exchanged two parameters.
11332 (parse_partial_symbols, new_psymtab): Caller update.
11333 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11334 two parameters.
11335 * psymtab.c (psymtab_to_symtab): Caller update.
11336 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11337 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11338 Rename parameter PST to SELF. Exchanged two parameters.
11339 (xcoff_start_psymtab): Caller update.
11340
0de5618e
YQ
113412013-01-18 Yao Qi <yao@codesourcery.com>
11342
11343 * infrun.c (proceed): Rename local variable 'oneproc' to
11344 'force_step'.
11345
5c04624b
DE
113462013-01-17 Doug Evans <dje@google.com>
11347
848e3e78
DE
11348 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11349 (dw2_build_type_unit_groups): Delete. All uses updated.
11350
5c04624b
DE
11351 * symtab.h (struct symbol_search): Add comment.
11352
d84fca2c
JK
113532013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11354
11355 * symtab.c (compare_filenames_for_search): New comment for
11356 HAS_DRIVE_SPEC.
11357
6108433d
TT
113582013-01-17 Tom Tromey <tromey@redhat.com>
11359
11360 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11361
c89ffd86
JK
113622013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11363
11364 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11365 initialize it by existing make_cleanup. Call new do_cleanups.
11366
db2b2972
TT
113672013-01-17 Tom Tromey <tromey@redhat.com>
11368
11369 * cp-abi.c (cp_abi_completer): New function.
11370 (_initialize_cp_abi): Set completer for "set cp-abi".
11371
be7d37a2
TT
113722013-01-17 Tom Tromey <tromey@redhat.com>
11373
11374 * mem-break.c: Remove obsolete comment.
11375 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11376
c9fb1240
SD
113772012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11378
11379 * jit.c (jit_reader_load_command): Interpret the jit reader name
11380 as an absolute path if it begins with a forward slash.
11381
db334a01
SD
113822012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11383
11384 PR gdb/14550
11385
11386 * jit.c (finalize_symtab): Ensure that only the global block has a
11387 NULL superblock.
11388
7d928dac
PA
113892013-01-17 Pedro Alves <palves@redhat.com>
11390
11391 * acinclude.m4: Include ../config/plugins.m4,
11392 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11393 * Makefile.in (aclocal_m4_deps): Update.
11394 * aclocal.m4: Renegerate.
11395
fb8cf7c5
DE
113962013-01-16 Doug Evans <dje@google.com>
11397
11398 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11399
ab04a2af
TT
114002013-01-16 Pedro Alves <palves@redhat.com>
11401 Tom Tromey <tromey@redhat.com>
11402
11403 PR cli/7221:
11404 * NEWS: Add "catch signal".
11405 * breakpoint.c (base_breakpoint_ops): No longer static.
11406 (bpstat_explains_signal): New function.
11407 (init_catchpoint): No longer static.
11408 (base_breakpoint_explains_signal): New function.
11409 (base_breakpoint_ops): Initialize new field.
11410 * breakpoint.h (enum bpstat_signal_value): New.
11411 (struct breakpoint_ops) <explains_signal>: New field.
11412 (bpstat_explains_signal): Remove macro, declare as function.
11413 (base_breakpoint_ops, init_catchpoint): Declare.
11414 * break-catch-sig.c: New file.
11415 * inferior.h (signal_catch_update): Declare.
11416 * infrun.c (signal_catch): New global.
11417 (handle_syscall_event): Update for change to
11418 bpstat_explains_signal.
11419 (handle_inferior_event): Likewise. Always handle random signals
11420 via bpstats.
11421 (signal_cache_update): Check signal_catch.
11422 (signal_catch_update): New function.
11423 (_initialize_infrun): Initialize signal_catch.
11424 * Makefile.in (SFILES): Add break-catch-sig.c.
11425 (COMMON_OBS): Add break-catch-sig.o.
11426
8ac3646f
TT
114272013-01-16 Tom Tromey <tromey@redhat.com>
11428
11429 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11430 (print_one_catch_solib, print_one_catch_syscall)
11431 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11432 "catch-type".
11433
5a18e302
YQ
114342013-01-16 Yao Qi <yao@codesourcery.com>
11435
11436 * printcmd.c (current_display_number): Make it static.
11437
3f01d0d0
YQ
114382013-01-16 Yao Qi <yao@codesourcery.com>
11439
11440 * infcmd.c (step_once): Don't check '!single_inst' as it was
11441 checked before.
11442
1ed59174
JK
114432013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11444
11445 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11446
44478ab3
TT
114472013-01-14 Tom Tromey <tromey@redhat.com>
11448
11449 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11450 set command.
11451 * command.h (add_setshow_string_noescape_cmd): Update.
11452 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11453 (complete_set_gnutarget): New function.
11454 (_initialize_core): Set the "set gnutarget" completer.
11455
06d66ee9
TT
114562013-01-14 Tom Tromey <tromey@redhat.com>
11457
11458 PR symtab/14442:
11459 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11460 (c_type_print_modifier): Likewise.
11461 * dwarf2read.c (read_tag_restrict_type): New function.
11462 (read_type_die_1): Handle DW_TAG_restrict_type.
11463 * gdbtypes.c (make_restrict_type): New function.
11464 (recursive_dump_type): Handle TYPE_RESTRICT.
11465 * gdbtypes.h (enum type_flag_values): Renumber.
11466 (enum type_instance_flag_value): Add
11467 TYPE_INSTANCE_FLAG_RESTRICT.
11468 (TYPE_RESTRICT): New macro.
11469 (make_restrict_type): Declare.
11470
c9bf0622
TT
114712013-01-14 Tom Tromey <tromey@redhat.com>
11472
11473 PR symtab/14931:
11474 * psymtab.c (struct psymtab_state): New.
11475 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11476 functions.
11477 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11478 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11479
44d594fd
PA
114802013-01-14 Richard Sharman <richard_sharman@mitel.com>
11481 Pedro Alves <palves@redhat.com>
11482
11483 PR remote/14786
11484
11485 * remote.c (remote_threads_info): Make a copy of the reply from
11486 qfThreadInfo and use that instead of rs->buf.
11487
442e4d9c
YQ
114882013-01-14 Yao Qi <yao@codesourcery.com>
11489
11490 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11491 (dbx_psymtab_to_symtab): Likewise.
11492 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11493 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11494 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11495
5b12a61c
JK
114962013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11497
11498 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11499 make_cleanup_restore_current_language. Call set_language. Move
11500 OLD_CHAIN and INNER_CHAIN cleanups.
11501 * utils.c (do_restore_current_language)
11502 (make_cleanup_restore_current_language): New functions.
11503 * utils.h (make_cleanup_restore_current_language): New declaration.
11504
f0a4b570
JK
115052013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11506
11507 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11508 non-existing files.
11509
57b3c00c
JK
11510 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11511 non-existing files if FILENAME is already absolute.
11512
daefa854
JK
115132013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11514
11515 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11516 fputs_filtered. Append trailing newline.
11517
ca9c6ee2
YQ
115182013-01-11 Yao Qi <yao@codesourcery.com>
11519 Stan Shebs <stan@codesourcery.com>
11520
11521 * psymtab.c (init_psymbol_list): Clarify the comment.
11522
f28045c2
YQ
115232013-01-11 Yao Qi <yao@codesourcery.com>
11524
11525 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11526 (update_dprintf_command_list): Assert that 'printf_line' is
11527 non-null. Remove condition check.
11528
da5132d3
JK
115292013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11530
11531 Code cleanup.
11532 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11533 type const char *.
11534 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11535 const char *.
11536 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11537
843e694d
AG
115382013-01-09 Anthony Green <green@moxielogic.com>
11539
11540 * cp-abi.c (cplus_print_vtable): Don't return value from void
11541 function.
11542 * ada-lang.c (re_set_catch_assert): Ditto.
11543
da51c347
DE
115442013-01-09 Doug Evans <dje@google.com>
11545
11546 * symfile.h (quick_symbol_functions): Delete member
11547 pre_expand_symtabs_matching. All uses removed.
11548 * dwarf2read.c (dw2_lookup_symbol): Implement.
11549 (dw2_do_expand_symtabs_matching): Delete.
11550 (dw2_pre_expand_symtabs_matching): Delete.
11551 (struct dw2_symtab_iterator): New type.
11552 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11553 (dw2_expand_symtabs_for_function): Rewrite.
11554 (dwarf2_gdb_index_functions): Update.
11555 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11556 (psym_functions): Update.
11557
b2259038
TT
115582013-01-09 Tom Tromey <tromey@redhat.com>
11559
11560 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11561 * configure: Rebuild.
11562 * configure.ac: Add somread.o to the build if BFD has SOM
11563 support.
11564 * somread.c: Include som/aout.h, not syms.h.
11565 (som_symtab_read): Use som_external_symbol_dictionary_record.
11566 Unpack records manually.
11567 (_initialize_somread): Declare.
11568
bdad4180
MF
115692012-01-08 Mike Frysinger <vapier@gentoo.org>
11570
11571 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11572 Cast return_address to 64bits.
11573
03cdf680
HZ
115742013-01-08 Hui Zhu <hui_zhu@mentor.com>
11575
11576 * printcmd.c: Remove define of function output_command.
11577 * tracepoint.c: Remove extern of function output_command.
11578 * valprint.h: (output_command): New extern.
11579
8a808554
TT
115802013-01-07 Tom Tromey <tromey@redhat.com>
11581
11582 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11583 Remove.
11584 (objc_language_defn): Use c_printchar, c_printstr,
11585 c_emit_char.
11586
e93a8774
TT
115872013-01-07 Tom Tromey <tromey@redhat.com>
11588
11589 PR cli/7719:
11590 * NEWS: Update.
11591 * ada-valprint.c (printstr, print_field_values): Remove
11592 "inspect_it" code.
11593 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11594 code.
11595 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11596 code.
11597 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11598 * main.c (captured_main): Remove "epoch" argument.
11599 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11600 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11601 * p-valprint.c (pascal_object_print_value_fields): Remove
11602 "inspect_it" code.
11603 * printcmd.c (print_command_1): Remove 'inspect' argument.
11604 (print_command, call_command): Update.
11605 (inspect_command): Remove.
11606 (_initialize_printcmd): Make "inspect" an alias for "print".
11607 * top.c (epoch_interface): Remove.
11608 * top.h (epoch_interface): Remove.
11609 * valprint.c (user_print_options): Update.
11610 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11611 * valprint.h (struct value_print_options) <inspect_it>: Remove
11612 field.
11613
116142013-01-04 Tom Tromey <tromey@redhat.com>
11615
11616 * valprint.h (read_string): Add 'extern'.
11617
b967eb24
JB
116182013-01-07 Joel Brobecker <brobecker@adacore.com>
11619
11620 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11621 used to decide whether to define darwin_read_dyld_info or not.
11622
78a8b30e
PM
116232013-01-03 Pierre Muller <muller@sourceware.org>
11624
11625 * main.c (relocate_gdb_directory): Avoid calling stat function
11626 if DIR is empty.
11627
50da2f25
YQ
116282013-01-03 Yao Qi <yao@codesourcery.com>
11629
11630 * psymtab.c (fixup_psymbol_section): Update declaration.
11631 (fixup_psymbol_section): Remove code returning value.
11632
e7e8980f
YQ
116332013-01-03 Yao Qi <yao@codesourcery.com>
11634
11635 * symtab.h: Remove some out of date comments.
11636 (enum exception_event_kind): Move it ...
11637 * breakpoint.c: ... here.
11638
569283d4
MF
116392013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11640
9f9d9a96 11641 PR gdb/14405
569283d4
MF
11642 * darwin-nat.c (darwin_read_dyld_info): Only build if
11643 TASK_DYLD_INFO_COUNT is defined.
11644 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11645 TASK_DYLD_INFO_COUNT is defined.
11646
2e36fbea
TT
116472013-01-02 Tom Tromey <tromey@redhat.com>
11648
11649 * symfile.h (struct ecoff_debug_hack): Remove.
11650 * objfiles.c: Don't include mdebugread.h.
11651
4f05add4
TT
116522013-01-02 Tom Tromey <tromey@redhat.com>
11653
11654 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11655 * configure.ac: Check for Mach-O support in BFD. Update
11656 CONFIG_OBS.
11657 * configure: Rebuild.
11658
def63ff0
TT
116592013-01-02 Tom Tromey <tromey@redhat.com>
11660
11661 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11662 * configure.ac: Use GDB_AC_CHECK_BFD.
11663 * configure: Rebuild.
11664
60c5dd93
MK
116652013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11666
11667 * MAINTAINERS: Update my email.
11668
6e58437e
JB
116692013-01-01 Joel Brobecker <brobecker@adacore.com>
11670
11671 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11672
627fe805
JB
116732013-01-01 Joel Brobecker <brobecker@adacore.com>
11674
11675 * rs6000-nat.c (bss_data_overlap): New function.
11676 (vmap_symtab): Use it to adjust the .bss section's offset.
11677
28e7fd62
JB
116782013-01-01 Joel Brobecker <brobecker@adacore.com>
11679
11680 Update year range in copyright notice of all files.
11681
e93a8774 116822013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11683
11684 * top.c (print_gdb_version): Update copyright year.
11685
72b20e9c 11686For older changes see ChangeLog-2012.
c906108c
SS
11687\f
11688Local Variables:
11689mode: change-log
11690left-margin: 8
11691fill-column: 74
11692version-control: never
57da7796 11693coding: utf-8
c906108c 11694End:
This page took 2.371103 seconds and 4 git commands to generate.