fix email address in earlier commit
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
93973826
JB
12013-11-13 Joel Brobecker <brobecker@adacore.com>
2
3 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
4 entry with "ada-exceptions".
5
846060df
JB
62013-11-13 Joel Brobecker <brobecker@adacore.com>
7
8 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
9 after re-initialization of OBJFILE's obstack.
10
5efd1b2b 112013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
12
13 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
14 bs->stop != 0 on entry. Update function comment. Simplify early
15 exit for frame mismatch. Reindent rest of function.
16
ee7615e1
AA
172013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
18
19 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
20 NULL.
21
8943b874
DE
222013-11-12 Doug Evans <dje@google.com>
23
24 Work around gold/15646.
25 * dwarf2read.c (read_index_from_section): Update comment.
26 (struct dw2_symtab_iterator): New member global_seen.
27 (dw2_symtab_iter_init): Initialize it.
28 (dw2_symtab_iter_next): Skip duplicate global symbols.
29 (dw2_expand_symtabs_matching): Ditto.
30
a8a9844d
JB
312013-11-12 Joel Brobecker <brobecker@adacore.com>
32
33 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
34 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
35 command.
36 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
37 (mi_cmd_info_ada_exceptions): New function.
38 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
39
778865d3
JB
402013-11-12 Joel Brobecker <brobecker@adacore.com>
41
42 * ada-lang.h: #include "vec.h".
43 (struct ada_exc_info): New.
44 (ada_exc_info): New typedef.
45 (DEF_VEC_O(ada_exc_info)): New vector.
46 (ada_exceptions_list): Add declaration.
47 * ada-lang.c (ada_is_exception_sym)
48 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
49 (sort_remove_dups_ada_exceptions_list)
50 (ada_exc_search_name_matches, ada_add_standard_exceptions)
51 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
52 (ada_exceptions_list_1, ada_exceptions_list)
53 (info_exceptions_command): New function.
54 (_initialize_ada_language): Add "info exception" command.
55
bc79de95
PM
562013-11-11 Phil Muldoon <pmuldoon@redhat.com>
57
58 PR python/15629
59 * NEWS: Add linetable feature.
60 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
61 * python/py-linetable.c: New file.
62 * python/py-symtab.c (stpy_get_linetable): New function.
63 * python/python-internal.h (symtab_to_linetable_object): Declare.
64 (gdbpy_initialize_linetable): Ditto.
65 * python/python.c (_initialize_python): Call
66 gdbpy_initialize_linetable.
67
2df4d1d5
JB
682013-11-11 Joel Brobecker <brobecker@adacore.com>
69
70 * ada-lang.c (create_ada_exception_catchpoint): Enhance
71 the documentation of fields "except_string" and "condition".
72 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
73 CONDITION on the heap before passing it to
74 create_ada_exception_catchpoint.
75 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
76 CONDITION.
77
99c1d451
TT
782013-11-11 Tom Tromey <tromey@redhat.com>
79
80 * config.in, configure: Rebuild.
81 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
82
8ca5801b
JB
832013-11-11 Joel Brobecker <brobecker@adacore.com>
84
85 * remote-sim.c (gdbsim_detach): Break declaration into
86 shorter lines. No code change.
87
7a06d430
EBM
882013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
89
90 * remote-sim.c (gdbsim_detach): Fix prototype.
91
73be47f5
DE
922013-11-08 Doug Evans <dje@google.com>
93
94 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
95 (create_debug_types_hash_table): Only print debugging messages for
96 each TU if dwarf2-read >= 2.
97 (process_queue): Ditto.
98 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
99 Update doc string.
100
a18d8f10
TT
1012013-11-08 Tom Tromey <tromey@redhat.com>
102
103 * configure: Rebuild.
104 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
105
9467110b
TT
1062013-11-08 Tom Tromey <tromey@redhat.com>
107
108 * configure, config.in: Rebuild.
109 * configure.ac: Remove unused configury.
110
69706679
TT
1112013-11-08 Tom Tromey <tromey@redhat.com>
112
113 * m32c-tdep.c: Use gdb_string.h.
114
9b4bea72
TT
1152013-11-08 Tom Tromey <tromey@redhat.com>
116
117 * configure, config.in: Rebuild.
118 * configure.ac: Remove all link.h-related checks.
119
3266f10b
TT
1202013-11-08 Tom Tromey <tromey@redhat.com>
121
122 * acinclude.m4: Include common.m4.
123 * common/common.m4: New file.
124 * configure, config.in: Rebuild.
125 * configure.ac: Use GDB_AC_COMMON.
126
db0fec5c
DE
1272013-11-08 Doug Evans <dje@google.com>
128
129 * NEWS: Mention that "set debug symtab-create" now accepts a
130 verbosity level.
131 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
132 to set the symtab's primary flag.
133 * jit.c (finalize_symtab): Ditto.
134 * mdebugread.c (psymtab_to_symtab_1): Ditto.
135 * symfile.c (allocate_symtab): Only print debugging messages for
136 symtab_create_debug levels 2 and higher.
137 * symtab.c (symtab_create_debug): Change type to unsigned int.
138 (set_symtab_primary): New function.
139 (_initialize_symtab): Change "set debug symtab-create" to a
140 zuinteger option.
141 * symtab.h (set_symtab_primary): Declare.
142 (symtab_create_debug): Update decl.
143
52554a0e
TT
1442013-11-08 Tom Tromey <tromey@redhat.com>
145
146 * aix-thread.c (aix_thread_detach): Update.
147 * corelow.c (core_detach): Update.
148 * darwin-nat.c (darwin_detach): Update.
149 * dec-thread.c (dec_thread_detach): Update.
150 * gnu-nat.c (gnu_detach): Update.
151 * go32-nat.c (go32_detach): Update.
152 * inf-ptrace.c (inf_ptrace_detach): Update.
153 * inf-ttrace.c (inf_ttrace_detach): Update.
154 * linux-fork.c (linux_fork_detach): Update.
155 * linux-fork.h (linux_fork_detach): Update.
156 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
157 local for const-correctness.
158 * linux-thread-db.c (thread_db_detach): Update.
159 * monitor.c (monitor_detach): Update.
160 * nto-procfs.c (procfs_detach): Update.
161 * procfs.c (procfs_detach): Update.
162 * record.c (record_detach): Update.
163 * record.h (record_detach): Update.
164 * remote-m32r-sdi.c (m32r_detach): Update.
165 * remote-mips.c (mips_detach): Update.
166 * remote-sim.c (gdbsim_detach): Update.
167 * remote.c (remote_detach_1, remote_detach)
168 (extended_remote_detach): Update.
169 * sol-thread.c (sol_thread_detach): Update.
170 * target.c (target_detach): Make "args" const.
171 (init_dummy_target): Update.
172 * target.h (struct target_ops) <to_detach>: Make argument const.
173 (target_detach): Likewise.
174 * windows-nat.c (windows_detach): Update.
175
204b5331
DE
1762013-11-07 Doug Evans <dje@google.com>
177
178 PR 11786
179 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
180 and align fields for PT_GNU_RELRO segments.
181
92e32e33
PM
1822013-11-07 Phil Muldoon <pmuldoon@redhat.com>
183
184 PR python/15747
185 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
186
f76c27b5
PM
1872013-11-07 Phil Muldoon <pmuldoon@redhat.com>
188
189 * NEWS: Document Python temporary breakpoint support.
190 * python/py-breakpoint.c (bppy_get_temporary): New function.
191 (bppy_init): New keyword: temporary. Parse it and set breakpoint
192 to temporary if True.
193
d52cd232
JM
1942013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
195
196 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
197 removed to allow analyzing unconditional branch instructions
198 with PC-relative offsets of zero.
199
fa4d0c40
YQ
2002013-11-07 Yao Qi <yao@codesourcery.com>
201
202 * mi/mi-cmd-var.c: Include "language.h".
203 (mi_cmd_var_info_expression): Get language name from
204 language_defn.
205 * varobj.c (varobj_language_string): Remove.
206 (variable_language): Remove declaration.
207 (languages): Remove.
208 (varobj_get_language): Change the type of return value.
209 (variable_language): Remove.
210 * varobj.h (enum varobj_languages): Remove.
211 (varobj_language_string): Remove declaration.
212 (varobj_get_language): Update declaration.
213
6abde28f
YQ
2142013-11-07 Yao Qi <yao@codesourcery.com>
215
216 * language.h (struct language_defn) <la_natural_name>: New
217 field.
218 * ada-lang.c (ada_language_defn): Initialize field
219 'la_natural_name'.
220 * c-lang.c (c_language_defn): Likewise.
221 (cplus_language_defn, asm_language_defn): Likewise.
222 * d-lang.c (d_language_defn): Likewise.
223 * f-lang.c (f_language_defn): Likewise.
224 * go-lang.c (go_language_defn): Likewise.
225 * jv-lang.c (java_language_defn): Likewise.
226 * language.c (unknown_language_defn ): Likewise.
227 (auto_language_defn): Likewise.
228 * m2-lang.c (m2_language_defn): Likewise.
229 * objc-lang.c (objc_language_defn): Likewise.
230 * opencl-lang.c (opencl_language_defn): Likewise.
231 * p-lang.c (pascal_language_defn): Likewise.
232
27cd387b
YQ
2332013-11-07 Yao Qi <yao@codesourcery.com>
234
235 * language.c (language_str): Return const char *.
236 (add_language): Add const to 'language_names'
237 * language.h (struct language_defn) <la_name>: Add const.
238 (language_str: Update declaration.
239
6682d959
AA
2402013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
241
242 * s390-linux-nat.c (s390_read_description): Consider the TE field
243 in the HWCAP for determining 'have_regset_tdb'.
244
b9502d3f
WN
2452013-11-06 Will Newton <will.newton@linaro.org>
246
247 PR gdb/12866
248 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
249 values. (read_partial_die): Likewise.
250
840da61a
MB
2512013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
252
253 PR cli/16122
254 * top.c (command_line_input): Unify interactivity tests to use
255 input_from_terminal_p.
256 * event-top.c (command_line_handler): Likewise.
257
7636ccf9
YQ
2582013-11-06 Yao Qi <yao@codesourcery.com>
259
260 * Makefile.in (check-perf): New target.
261
12b27276
WN
2622013-11-05 Will Newton <will.newton@linaro.org>
263
264 PR gdb/7670
265 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
266 (arm_print_float_info): Likewise.
267
67c059c2
AB
2682013-11-04 Anton Blanchard <anton@samba.org>
269
270 * target.c (memory_xfer_partial): Cap write to 4KB.
271
0569175e
TSD
2722013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
273
274 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
275 probe scan even when the arch provides no get_longjmp_target.
276
b18e90f5
PA
2772013-10-31 Pedro Alves <palves@redhat.com>
278
279 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
280 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
281 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
282 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
283 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
284 <bpstat handling>: If the bpstat chain wants the signal to be
285 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
286 GDB_SIGNAL_TRAP.
287
638aa5a1
AB
2882013-10-31 Andrew Burgess <aburgess@broadcom.com>
289
290 * breakpoint.c (update_watchpoint): Update error message and add
291 an additional error message.
292
0e5fae36
UW
2932013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
294
295 * s390-tdep.h: Rename to...
296 * s390-linux-tdep.h: ...here.
297 * s390-tdep.c: Rename to...
298 * s390-linux-tdep.c: ...here. Adjust #include.
299 * s390-nat.c: Rename to...
300 * s390-linux-nat.c: ...here. Adjust #include.
301 * config/s390/s390.mh: Rename to...
302 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
303 s390-linux-nat.o.
304 * configure.host: Reflect host rename "s390" -> "linux".
305 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
306 * Makefile.in (ALL_TARGET_OBS): Likewise.
307 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
308 s390-linux-tdep.h.
309 (ALLDEPFILES): Reflect rename of .c files.
310
34201ae3
UW
3112013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
312
313 * s390-nat.c: Whitespace cleanup.
314 * s390-tdep.c: Likewise.
315 * s390-tdep.h: Remove empty line at end of file.
316
e17aaa33
MR
3172013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
318
319 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
320 siginfo_size.
321
aee17e42
TT
3222013-10-29 Tom Tromey <tromey@redhat.com>
323
324 * utils.c (reg): Move undefinition...
325 * gdb_curses.h: ... here. Update comment to mention AIX.
326
9ac69859
NB
3272013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
328
329 * exec.h (add_target_sections_of_objfile): New declaration.
330 * exec.c (add_target_sections_of_objfile): New function.
331 * symfile.c (add_symbol_file_command): Update current target sections.
332 (remove_symbol_file_command): New command.
333 (symfile_free_objfile): New function.
334 (_initialize_symfile): Register observer for free_objfile events.
335 * NEWS: Add description of the remove-symbol-file command.
336 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
337 * objfiles.c (free_objfile): Notify free_objfile.
338 (is_addr_in_objfile): New function.
339 * objfiles.h (is_addr_in_objfile): New declaration.
340 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
341 events instead of solib_unloaded events.
342 (_initialize_printcmd): Register observer for free_objfile instead
343 of solib_unloaded notifications.
344 * solib.c (remove_user_added_objfile): New function.
345 (_initialize_symfile): Add remove-symbol-file.
346
f69d9aef
AB
3472013-10-29 Andrew Burgess <aburgess@broadcom.com>
348
349 * infcmd.c (default_print_one_register_info): Use val_print to
350 print all values even optimized out or unavailable ones. Don't
351 try to print a raw form of optimized out or unavailable values.
352
487ad57c
YQ
3532013-10-29 Yao Qi <yao@codesourcery.com>
354
355 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
356 parameter 'arg' instead of from program_space_data.
357 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
358 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
359 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
360 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
361 * inflow.c (inflow_inferior_data_cleanup): Get data from
362 parameter 'arg' instead of inferior_data.
363 * registry.h: Add comments.
364
3c4797ba
PA
3652013-10-28 Pedro Alves <palves@redhat.com>
366
367 * breakpoint.c (watchpoints_triggered)
368 <!target_stopped_data_address>: Hardcode return 1.
369
cdaa5b73
PA
3702013-10-28 Pedro Alves <palves@redhat.com>
371
372 * infrun.c (process_event_stop_test): Remove unnecessary scoping
373 level and reindent.
374
94c57d6a
PA
3752013-10-28 Pedro Alves <palves@redhat.com>
376
377 * infrun.c (process_event_stop_test): New function, factored out
378 from handle_inferior_event.
379 (handle_inferior_event): 'process_event_stop_test' is now a
380 function instead of a goto label -- adjust.
381
fcf3daef
PA
3822013-10-28 Pedro Alves <palves@redhat.com>
383
384 * infrun.c (handle_inferior_event): Move process_event_stop_test
385 goto label to the else branch of the ecs->random_signal check,
386 along with FRAME and GDBARCH re-fetching.
387
c447ac0b
PA
3882013-10-28 Pedro Alves <palves@redhat.com>
389
390 * infrun.c (switch_back_to_stepped_thread): New function, factored
391 out from handle_inferior_event.
392 (handle_inferior_event): Adjust to call
393 switch_back_to_stepped_thread. Call it also at the tail of the
394 random signal handling, and return, instead of also handling
395 random signals just before the stepping tests.
396
f05e4c11
PA
3972013-10-28 Pedro Alves <palves@redhat.com>
398
399 * infrun.c (clear_stop_func): Delete.
400 (handle_inferior_event): Don't call clear_stop_func and don't
401 clear 'ecs->random_signal'.
402
ca20d462
YQ
4032013-10-27 Yao Qi <yao@codesourcery.com>
404
405 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
406 (varobj_create, varobj_get_path_expr): Update.
407 (varobj_value_has_mutated, varobj_update): Likewise.
408 (create_child_with_value, new_root_variable): Likewise.
409 (number_of_children, name_of_variable): Likewise.
410 (value_of_child, my_value_of_variable): Likewise.
411 (varobj_value_is_changeable_p): Likewise.
412
a53b64ea
YQ
4132013-10-25 Yao Qi <yao@codesourcery.com>
414
415 * language.h (struct lang_varobj_ops): Declare.
416 (struct language_defn) <la_varobj_ops>: New field.
417 * ada-lang.c: Include "varobj.h"
418 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
419 ada_varobj_ops.
420 * c-lang.c: Include "varobj.h"
421 (c_language_defn): Initialize field 'la_varobj_ops' with
422 c_varobj_ops.
423 (cplus_language_defn): Initialize field 'la_varobj_ops' with
424 cplus_varobj_ops.
425 (asm_language_defn): Initialize field 'la_varobj_ops' with
426 default_varobj_ops.
427 (minimal_language_defn): Likewise.
428 * d-lang.c (d_language_defn): Likewise.
429 * f-lang.c (f_language_defn): Likewise.
430 * go-lang.c (go_language_defn): Likewise.
431 * m2-lang.c (m2_language_defn): Likewise.
432 * objc-lang.c (objc_language_defn): Likewise.
433 * opencl-lang.c (opencl_language_defn): Likewise.
434 * p-lang.c (pascal_language_defn): Likewise.
435 * language.c (unknown_language_defn): Likewise.
436 (auto_language_defn): Likewise.
437 (local_language_defn): Likewise.
438 * jv-lang.c (java_language_defn): Initialize field
439 'la_varobj_ops' with java_varobj_ops.
440 * varobj.c (varobj_create): Update.
441 * varobj.h (default_varobj_ops): Define macro.
442
686d4def
PA
4432013-10-25 Pedro Alves <palves@redhat.com>
444
445 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
446 static field value.
447 (cp_print_static_field): If the value is entirely optimized out,
448 print <optimized out> here.
449 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
450 static field value.
451 * p-valprint.c (pascal_object_print_static_field): If the value is
452 entirely optimized out, print <optimized out> here.
453 * valops.c (do_search_struct_field)
454 (value_struct_elt_for_reference): No longer handle a NULL static
455 field value.
456 * value.c (value_static_field): Return an optimized out value
457 instead of NULL.
458
6c177e28
YQ
4592013-10-25 Yao Qi <yao@codesourcery.com>
460
461 * remote.c (remote_traceframe_info): Return early if
462 traceframe is not selected.
463
98322bfa
YQ
4642013-10-25 Yao Qi <yao@codesourcery.com>
465
466 * tracepoint.c (traceframe_fun): Remove.
467 (traceframe_sal): Remove.
468 (set_traceframe_context): Add local variables.
469
6ba1f115
JB
4702013-10-25 Joel Brobecker <brobecker@adacore.com>
471
472 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
473 and parameter name.
474
bbe769cc
MR
4752013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
476
477 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
478 failure from register information collection.
479
72ee4495 4802013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
481
482 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
483 member.
484 (linux_corefile_thread_callback): Update accordingly.
485 (linux_make_corefile_notes): Likewise.
486
98882a26
PA
4872013-10-24 Pedro Alves <palves@redhat.com>
488
489 * NEWS (New options): Mention set/show startup-with-shell.
490 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
491 instead of 3.
492 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
493 startup-with-shell'.
494 (show_startup_with_shell): New function.
495 (_initialize_fork_child): Register the set/show startup-with-shell
496 commands.
497 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
498 * inf-ttrace.c (inf_ttrace_him): Remove comment.
499 * procfs.c (procfs_init_inferior): Remove comment.
500 * infcmd.c (startup_with_shell): New global.
501 * inferior.h (startup_with_shell): Declare global.
502 (STARTUP_WITH_SHELL): Delete.
503 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
504
c9737c08
PA
5052013-10-23 Pedro Alves <palves@redhat.com>
506
507 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
508 * common/signals.c: Include "gdb_assert.h".
509 (signals): New field 'symbol'.
510 (SET): Use the 'symbol' parameter.
511 (gdb_signal_to_symbol_string): New function.
512 * infrun.c (handle_inferior_event) <random signal>: In debug
513 output, print the random signal enum as string in addition to its
514 number.
515 * target/waitstatus.c (target_waitstatus_to_string): Print the
516 signal's enum value as string instead of the (POSIX) signal name.
517
f60db4f0
GB
5182013-10-23 Gary Benson <gbenson@redhat.com>
519
520 PR 16013
521 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
522 from 32 to 18. Adjusted fscanf format string accordingly.
523 (Avoids leaving cmd unterminated.)
524 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
525 trun, retn or extra. (Avoids leaving extra unterminated.) Check
526 that local_address and remote_address will not overflow.
527 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
528 leaving dependencies unterminated. Parse size as "%u" to match
529 definition.
530
6d3e7a94
PA
5312013-10-22 Pedro Alves <palves@redhat.com>
532
533 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
534 set ecs->random signal.
535
42ec045f
PA
5362013-10-22 Pedro Alves <palves@redhat.com>
537
538 * infrun.c (keep_going): Update comments.
539
5402013-10-22 Pedro Alves <palves@redhat.com>
541
542 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
543 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
544
5452013-10-22 Pedro Alves <palves@redhat.com>
546
547 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
548 GDB_EXC_BAD_ACCESS.
549 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
550 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
551 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
552 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
553 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
554 (GDB_SIGNAL_LAST): Change description string.
555 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
556 Adjust to signal renaming.
557 * darwin-nat.c (darwin_decode_message): Likewise.
558
c8fde1b1
JM
5592013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
560
561 * MAINTAINERS (Write After Approval): Add myself to the list.
562
e8369a73
AB
5632013-10-18 Andrew Burgess <aburgess@broadcom.com>
564
565 * breakpoint.c (update_watchpoint): If hardware watchpoints are
566 forced off, downgrade them to software watchpoints if possible,
567 and error out if not possible.
568 (watch_command_1): Move watchpoint type selection closer to
569 watchpoint creation, and extend the comments.
570
776f04fa
PA
5712013-10-18 Pedro Alves <palves@redhat.com>
572
573 PR gdb/16062
574 * infrun.c (handle_inferior_event): Keep going if we got a random
575 signal we should not stop for, instead of falling through to the
576 step tests.
577
0c6faab5
YQ
5782013-10-18 Yao Qi <yao@codesourcery.com>
579
580 * c-varobj.c (cplus_number_of_children): Fix indentation.
581
50b34a18
TT
5822013-10-17 Tom Tromey <tromey@redhat.com>
583
584 PR gdb/15995:
585 * printcmd.c (printcmd): Call gdb_flush.
586
5c4c8a59
TT
5872013-10-17 Tom Tromey <tromey@redhat.com>
588
589 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
590 (elf_locate_sections): Update.
591
c4124bf1
YQ
5922013-10-17 Yao Qi <yao@codesourcery.com>
593
594 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
595 * ada-varobj.c: Remove the include of ada-varobj.h.
596 (ada_varobj_get_number_of_children): Declare.
597 (ada_varobj_get_name_of_child): Make it static.
598 (ada_varobj_get_path_expr_of_child): Likewise.
599 (ada_varobj_get_value_of_child): Likewise.
600 (ada_varobj_get_type_of_child): Likewise.
601 (ada_varobj_get_value_of_array_variable): Likewise.
602 * ada-varobj.h: Remove.
603
99ad9427
YQ
6042013-10-17 Yao Qi <yao@codesourcery.com>
605
606 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
607 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
608 * ada-varobj.c: Include "varobj.h".
609 (ada_number_of_children): New. Moved from varobj.c.
610 (ada_name_of_variable, ada_name_of_child): Likewise.
611 (ada_path_expr_of_child, ada_value_of_child): Likewise.
612 (ada_type_of_child, ada_value_of_variable): Likewise.
613 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
614 (ada_varobj_ops): New.
615 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
616 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
617 * gdbtypes.h (get_target_type): Declare.
618 * varobj.c: Remove the inclusion of "ada-varobj.h" and
619 "ada-lang.h".
620 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
621 (ANONYMOUS_UNION_NAME): Likewise.
622 (get_type, get_value_type, get_target_type): Remove declarations.
623 (value_get_print_value, varobj_value_get_print_value): Likewise.
624 (c_number_of_children, c_name_of_variable): Likewise.
625 (c_name_of_child, c_path_expr_of_child): Likewise.
626 (c_value_of_child, c_type_of_child): Likewise.
627 (c_value_of_variable, cplus_number_of_children): Likewise.
628 (cplus_class_num_children, cplus_name_of_variable): Likewise.
629 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
630 (cplus_value_of_child, cplus_type_of_child): Likewise.
631 (cplus_value_of_variable, java_number_of_children): Likewise.
632 (java_name_of_variable, java_name_of_child): Likewise.
633 (java_path_expr_of_child, java_value_of_child): Likewise.
634 (java_type_of_child, java_value_of_variable): Likewise.
635 (ada_number_of_children, ada_name_of_variable): Likewise.
636 (ada_name_of_child, ada_path_expr_of_child): Likewise.
637 (ada_value_of_child, ada_type_of_child): Likewise.
638 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
639 (ada_value_has_mutated): Likewise.
640 (struct language_specific): Move it to varobj.h.
641 (CPLUS_FAKE_CHILD): Move it to varobj.h.
642 (restrict_range): Rename it varobj_restrict_range. Make it extern.
643 Callers update.
644 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
645 Make it extern.
646 (is_anonymous_child): Move it to c-varobj.c and rename to
647 varobj_is_anonymous_child. Caller update.
648 (get_type): Move it to c-varobj.c.
649 (get_value_type): Rename it varobj_get_value_type. Make it
650 extern.
651 (get_target_type): Move it gdbtypes.c.
652 (varobj_formatted_print_options): New function.
653 (value_get_print_value): Rename it to
654 varobj_value_get_print_value and make it extern.
655 (varobj_value_is_changeable_p): Make it extern.
656 (adjust_value_for_child_access): Move it to c-varobj.c.
657 (default_value_is_changeable_p): Rename it to
658 varobj_default_value_is_changeable_p. Make it extern.
659 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
660 (c_name_of_child, c_path_expr_of_child): Likewise.
661 (c_value_of_child, c_type_of_child): Likewise.
662 (c_value_of_variable, cplus_number_of_children): Likewise.
663 (cplus_class_num_children, cplus_name_of_variable): Likewise.
664 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
665 (cplus_value_of_child, cplus_type_of_child): Likewise.
666 (cplus_value_of_variable): Likewise.
667 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
668 (java_name_of_child, java_path_expr_of_child): Likewise.
669 (java_value_of_child, java_type_of_child): Likewise.
670 (java_value_of_variable): Likewise.
671 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
672 (ada_name_of_child, ada_path_expr_of_child): Likewise.
673 (ada_value_of_child, ada_type_of_child): Likewise.
674 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
675 (ada_value_has_mutated): Likewise.
676 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
677 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
678 (c_varobj_ops, cplus_varobj_ops): Declare.
679 (java_varobj_ops, ada_varobj_ops): Declare.
680 (varobj_default_value_is_changeable_p): Declare.
681 (varobj_value_is_changeable_p): Declare.
682 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
683 (varobj_get_path_expr_parent): Declare.
684 (varobj_value_get_print_value): Declare.
685 (varobj_formatted_print_options): Declare.
686 (varobj_restrict_range): Declare.
687
c8a62302
LM
6882013-10-17 Luis Machado <lgustavo@codesourcery.com>
689
690 * target/waitstatus.h (target_waitkind): Remove spurious
691 character from the comments.
692
eade6471
JB
6932013-10-17 Joel Brobecker <brobecker@adacore.com>
694
695 * gdbarch.sh (get_longjmp_target): Add method documentation.
696 * gdbarch.h: Regenerate.
697
5411b26c
TT
6982013-10-16 Tom Tromey <tromey@redhat.com>
699
700 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
701 label.
702
87326c87
LM
7032013-10-16 Luis Machado <lgustavo@codesourcery.com>
704
705 * gcore.in: Call GDB using the full path to the gcore script.
706 Error out if the GDB binary is not found.
707
fd0a4d76
SDJ
7082013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
709
710 PR gdb/16014
711 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
712 sizeof.
713
d92f7ee3
SDJ
7142013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
715
716 PR gdb/16042
717 * target.c (target_disable_btrace): Fix invalid return value for
718 void function.
719 (target_teardown_btrace): Likewise.
720
bb5ce47a
YQ
7212013-10-14 Yao Qi <yao@codesourcery.com>
722
723 * varobj.c (struct varobj): Move most of the fields to
724 varobj.h.
725 (struct varobj_dynamic): New struct.
726 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
727 (varobj_has_more): Likewise.
728 (dynamic_varobj_has_child_method): Likewise.
729 (update_dynamic_varobj_children): Likewise.
730 (varobj_get_num_children): Likewise.
731 (varobj_list_children, varobj_pretty_printed_p): Likewise.
732 (install_new_value_visualizer): Likewise.
733 (install_new_value_visualizer, install_new_value): Likewise.
734 (varobj_update, new_variable, free_variable): Likewise.
735 (my_value_of_variable, value_get_print_value): Likewise.
736 (install_visualizer): Change the type of parameter 'var' to
737 'struct varobjd_dynamic *'. Callers update.
738 * varobj.h (struct varobj): Moved from varobj.c.
739 (struct varobj) <dynamic>: New field.
740
0b76b0ce
SL
7412013-10-13 Sandra Loosemore <sandra@codesourcery.com>
742
743 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
744 as the preferred name of r30.
745 * nios2-linux-tdep.c (reg_offsets): Likewise.
746 * features/nios2-cpu.xml: Likewise.
747 * features/nios2-linux.c: Regenerated.
748 * features/nios2.c: Regenerated.
749 * regformats/nios2-linux.dat: Regenerated.
750
4856b6bc
JK
7512013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
752
753 Canonicalize directories for EXEC_FILENAME.
754 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
755 exec_filename.
756 * utils.c (gdb_realpath_keepfile): New function.
757 * utils.h (gdb_realpath_keepfile): New declaration.
758
9b557b58
DE
7592013-10-11 Doug Evans <dje@google.com>
760
761 * Makefile.in (GDBFLAGS): New variable.
762 (run): New rule.
763
ce13fade
JB
7642013-10-11 Joel Brobecker <brobecker@adacore.com>
765
766 * NEWS: Add entry documenting the new "-catch-assert" and
767 "-catch-exception" GDB/MI commands.
768
349774ef
JB
7692013-10-11 Joel Brobecker <brobecker@adacore.com>
770
771 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
772 "enabled".
773 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
774 "enabled". Set B->ENABLE_STATE accordingly.
775 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
776 ada-lang.c.
777 (create_ada_exception_catchpoint): Add declaration.
778 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
779 (create_ada_exception_catchpoint): Make non-static. Add new
780 parameter "disabled". Use it in call to
781 init_ada_exception_breakpoint.
782 (catch_ada_exception_command): Add parameter "enabled" in call
783 to create_ada_exception_catchpoint.
784 (catch_assert_command): Likewise.
785
786 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
787 Add declarations.
788 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
789 "catch-exception" commands.
790 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
791 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
792
761269c8
JB
7932013-10-11 Joel Brobecker <brobecker@adacore.com>
794
795 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
796 "enum exception_catchpoint_kind". Replace the "ex_" prefix
797 of all its enumerates with "ada_". Update the rest of this
798 file throughout.
799
b4a5b78b
JB
8002013-10-11 Joel Brobecker <brobecker@adacore.com>
801
802 * ada-lang.c (ada_decode_exception_location): Delete.
803 (create_ada_exception_catchpoint): Remove arguments "sal",
804 "addr_string" and "ops". Add argument "ex_kind" instead.
805 Adjust implementation accordingly, calling ada_exception_sal
806 to get the entities it no longer gets passed as arguments.
807 Document the function's arguments.
808 (catch_ada_exception_command): Use catch_ada_exception_command_split
809 instead of ada_decode_exception_location, and update call to
810 create_ada_exception_catchpoint.
811 (catch_ada_assert_command_split): Renames
812 ada_decode_assert_location. Remove parameters "addr_string" and
813 "ops", and now returns void. Adjust implementation accordingly.
814 Update the function documentation.
815 (catch_assert_command): Use catch_ada_assert_command_split
816 instead of ada_decode_assert_location. Update call to
817 create_ada_exception_catchpoint.
818
7ad1d32c 8192013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
820
821 * utils.h (perror_warning_with_name): Add declaration.
822 * utils.c (perror_warning_with_name): New function.
823 * cli/cli-cmds.c (source_script_with_search): Add call to
824 perror_warning_with_name if from_tty is nul.
825
7ad1d32c 8262013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
827
828 * utils.c (perror_string): New function, extracted out of
829 throw_perror_with_name.
830 (throw_perror_with_name): Rework to use perror_string.
831
bcc75809
YQ
8322013-10-11 Yao Qi <yao@codesourcery.com>
833
834 * remote.c (discard_pending_stop_replies_in_queue): Update
835 declaration.
836 (struct stop_reply) <rs>: New field.
837 (remove_stop_reply_of_remote_state): New function.
838 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
839 Callers update. Pass remove_stop_reply_of_remote_state to
840 QUEUE_iterate.
841 (remote_parse_stop_reply): Initialize field 'rs'.
842
05feb193
WN
8432013-10-10 Will Newton <will.newton@linaro.org>
844
845 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
846 linux_init_abi.
847
0d12017b
JB
8482013-10-10 Joel Brobecker <brobecker@adacore.com>
849
850 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
851 serial_baud_show_cmd.
852 (_initialize_cli_cmds): Delete the code creating the
853 "set/show remotebaud" commands.
854 * serial.c (baud_rate): Move here from top.c.
855 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
856 (_initialize_serial): Create "set/show serial baud" commands.
857 Add "set/show remotebaud" command aliases.
858 * top.c (baud_rate): Moved to serial.c.
859 * NEWS: Document the new "set/show serial baud" commands,
860 replacing "set/show remotebaud".
861
578d3588
PA
8622013-10-09 Pedro Alves <palves@redhat.com>
863
864 * breakpoint.c (insert_bp_location): Use memory_error_message to
865 build the memory error string.
866 * c-lang.c: Include "gdbcore.h".
867 (c_get_string): Use memory_error to throw error.
868 (target_xfer_memory_error): Delete.
869 (memory_error_message): New, factored out from
870 target_xfer_memory_error.
871 (memory_error): Change parameter type to target_xfer_error.
872 Rewrite.
873 (read_memory): Use memory_error instead of
874 target_xfer_memory_error.
875 * gdbcore.h: Include "target.h".
876 (memory_error): Change parameter type to target_xfer_error.
877 (memory_error_message): Declare function.
878 * target.c (target_read_memory, target_read_stack)
879 (target_write_memory, target_write_raw_memory): Return
880 TARGET_XFER_E_IO on error. Adjust comments.
881 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
882 instead of EIO.
883 * target.h (target_read, target_insert_breakpoint)
884 (target_remove_breakpoint): Adjust comments.
885 * valprint.c (partial_memory_read): Rename parameter, and adjust
886 comment.
887 (val_print_string): Use memory_error_message to build the memory
888 error string.
889
c74e1ccf
JK
8902013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
891
892 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
893 result variable. Rename variable fopen_e_ever_failed to
894 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
895
915215be
PA
8962013-10-09 Pedro Alves <palves@redhat.com>
897
898 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
899 (monitor_write_memory_longlongs, monitor_write_memory_block):
900 Constify 'myaddr' parameter.
901 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
902 helper.
903 (monitor_xfer_partial): New function.
904 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
905 hook. Install a to_xfer_partial hook.
906
acd13123
TT
9072013-10-09 Tom Tromey <tromey@redhat.com>
908
909 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
910 bfd_get_alt_debug_link_info.
911
40135bb1
JK
9122013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
913
914 New flag OBJF_NOT_FILENAME.
915 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
916 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
917 allocate_objfile.
918 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
919 symbol_file_add_from_bfd.
920 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
921 allocate_objfile.
922 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
923 NULL.
924 * objfiles.h (OBJF_NOT_FILENAME): New.
925
dc294be5
TT
9262013-10-08 Tom Tromey <tromey@redhat.com>
927
928 * Makefile.in (SFILES): Add build-id.c.
929 (HFILES_NO_SRCDIR): Add build-id.h.
930 * build-id.c: New file, largely from elfread.c. Modified
931 most functions.
932 * build-id.h: New file.
933 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
934 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
935 Search for dwz file using build-id.
936 * elfread.c (build_id_bfd_get, build_id_verify)
937 (build_id_to_debug_filename, find_separate_debug_file): Remove.
938
db230ce3
JB
9392013-10-08 Joel Brobecker <brobecker@adacore.com>
940
941 * ada-lang.c (compare_names_with_case): Renamed from
942 compare_names, adding a new parameter "casing" and its handling.
943 New function documentation.
944 (compare_names): New function, implemented using
945 compare_names_with_case.
946
6501c98a
JB
9472013-10-08 Joel Brobecker <brobecker@adacore.com>
948
949 * ada-lang.c (ada_exception_sal): Remove advance declaration.
950
84a1243b
TT
9512013-10-07 Tom Tromey <tromey@redhat.com>
952
953 * objfiles.c (free_objfile_per_bfd_storage): Delete the
954 demangled_names_hash.
955 (free_objfile): Don't delete the demangled_names_hash.
956 * objfiles.h (struct objfile_per_bfd_storage)
957 <demangled_names_hash>: New field.
958 (struct objfile) <demangled_names_hash>: Move to
959 objfile_per_bfd_storage.
960 * symfile.c (reread_symbols): Don't delete the
961 demangled_names_hash.
962 * symtab.c (create_demangled_names_hash): Update.
963 (symbol_set_names): Update.
964
1da77581
TT
9652013-10-07 Tom Tromey <tromey@redhat.com>
966
967 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
968 needs_relocations>: New fields.
969 (gdb_bfd_requires_relocations): New function.
970 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
971 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
972 the BFD needs relocations applied.
973
46ecd527
PA
9742013-10-07 Pedro Alves <palves@redhat.com>
975
976 PR breakpoints/11568
977 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
978 the thread list" instead of "gone".
979
0c557179
SDJ
9802013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
981
982 * NEWS: Mention new convenience variable $_exitsignal.
983 * corelow.c (core_open): Reset exit convenience variables. Set
984 $_exitsignal to the uncaught signal which generated the corefile.
985 * infrun.c (handle_inferior_event): Reset exit convenience
986 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
987 (clear_exit_convenience_vars): New function.
988 * inferior.h (clear_exit_convenience_vars): New prototype.
989
1cc47d81
YQ
9902013-10-06 Yao Qi <yao@codesourcery.com>
991
992 * varobj.h: Add comments to enum varobj_languages.
993
73869dc2
DE
9942013-10-04 Doug Evans <dje@google.com>
995
996 Add support for DWP file format version 2.
997 * NEWS: Mention support for DWP file format version 2.
998 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
999 union of asection, containing_section. New fields virtual_offset
1000 and is_virtual. Change type of readin filed from int to char.
1001 (dwo_sections, dwo_file): Tweak comments.
1002 (dwp_v2_section_ids): New enum.
1003 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1004 str_offsets, types.
1005 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1006 All uses updated.
1007 (virtual_v2_dwo_sections): New struct.
1008 (dwp_hash_table): New fields version, nr_columns. Change type of
1009 section_pool field to a union.
1010 (dwp_file): New field version.
1011 (dwarf2_has_info): Check for virtual sections.
1012 (get_containing_section): New function.
1013 (get_section_bfd_owner, get_section_bfd_section): Call it.
1014 (dwarf2_locate_sections): Update.
1015 (dwarf2_section_empty_p): Update.
1016 (dwarf2_read_section): Handle virtual sections.
1017 (locate_dwz_sections): Update.
1018 (create_dwp_hash_table): Document and handle V2 format.
1019 (locate_v1_virtual_dwo_sections): Renamed from
1020 locate_virtual_dwo_sections and update. All callers updated.
1021 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1022 Delete arg htab. Rename arg section_index to unit_index.
1023 All callers updated.
1024 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1025 All uses updated.
1026 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1027 (lookup_dwo_unit_in_dwp): Add V2 support.
1028 (dwarf2_locate_dwo_sections): Update.
1029 (dwarf2_locate_common_dwp_sections): Renamed from
1030 dwarf2_locate_dwp_sections and update. All callers updated.
1031 (dwarf2_locate_v2_dwp_sections): New function.
1032 (open_and_init_dwp_file): Add V2 support.
1033 (read_str_index): New locals str_section, str_offsets_section.
1034
9a2c3737
PA
10352013-10-04 Pedro Alves <palves@redhat.com>
1036
1037 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1038 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1039 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1040 describing comments with references to ptid.h.
1041 * common/ptid.h: Remove intro description of constructors,
1042 accessors and predicates.
1043 (struct ptid): Reformat.
1044 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1045 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1046 describing comments.
1047
f5371440
JB
10482013-10-04 Joel Brobecker <brobecker@adacore.com>
1049
1050 * aix-thread.c (sync_threadlists): Add missing ')' in call
1051 to ptid_build.
1052
793e1c06
JB
10532013-10-04 Joel Brobecker <brobecker@adacore.com>
1054
1055 * procfs.c (procfs_init_inferior): Fix typo causing the build
1056 to fail.
1057
26f0edc1
JB
10582013-10-04 Joel Brobecker <brobecker@adacore.com>
1059
1060 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1061
5713b9b5
JB
10622013-10-04 Joel Brobecker <brobecker@adacore.com>
1063
1064 * mi/mi-main.c (run_one_inferior): Add function description.
1065 Make ARG a pointer to an integer whose value determines whether
1066 we should "run" or "start" the program.
1067 (mi_cmd_exec_run): Add handling of the "--start" option.
1068 Reject all other command-line options.
1069 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1070
f48ff2a7
YQ
10712013-10-04 Yao Qi <yao@codesourcery.com>
1072
1073 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1074 (struct notif_client) <pending_event>: Moved
1075 to struct remote_notif_state.
1076 <id>: New field.
1077 (struct remote_notif_state) <pending_event>: New field.
1078 (notif_event_xfree): Declare.
1079 * remote-notif.c (handle_notification): Adjust.
1080 (notif_event_xfree): New function.
1081 (do_notif_event_xfree): Call notif_event_xfree.
1082 (remote_notif_state_xfree): Call notif_event_xfree to free
1083 each element in field pending_event.
1084 * remote.c (discard_pending_stop_replies): Remove declaration.
1085 (discard_pending_stop_replies_in_queue): Declare.
1086 (remote_close): Call discard_pending_stop_replies_in_queue
1087 instead of discard_pending_stop_replies.
1088 (remote_start_remote): Adjust.
1089 (stop_reply_xfree): Call notif_event_xfree.
1090 (notif_client_stop): Adjust initialization.
1091 (remote_notif_remove_all): Rename it to ...
1092 (remove_stop_reply_for_inferior): ... this. Update comments.
1093 Don't check INF is NULL.
1094 (discard_pending_stop_replies): Return early if notif_state is
1095 NULL. Adjust. Don't check INF is NULL.
1096 (remote_notif_get_pending_events): Adjust.
1097 (discard_pending_stop_replies_in_queue): New function.
1098 (remote_wait_ns): Likewise.
1099
5965e028
YQ
11002013-10-04 Yao Qi <yao@codesourcery.com>
1101
1102 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1103 (notif_queue): Remove.
1104 (remote_notif_process): Add one parameter 'notif_queue'.
1105 Update comments. Callers update.
1106 (remote_async_get_pending_events_token): Remove.
1107 (remote_notif_register_async_event_handler): Remove.
1108 (remote_notif_unregister_async_event_handler): Remove.
1109 (handle_notification): Add parameter 'notif_queue'. Update
1110 comments. Callers update.
1111 (notif_xfree): Remove.
1112 (remote_notif_state_allocate): New function.
1113 (remote_notif_state_xfree): New function.
1114 (_initialize_notif): Remove code to allocate queue.
1115 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1116 (struct remote_notif_state): New.
1117 (handle_notification): Update declaration.
1118 (remote_notif_process): Likewise.
1119 (remote_notif_register_async_event_handler): Remove.
1120 (remote_notif_unregister_async_event_handler): Remove.
1121 (remote_notif_state_allocate): Declare.
1122 (remote_notif_state_xfree): Declare.
1123 * remote.c (struct remote_state) <notif_state>: New field.
1124 (remote_close): Don't call
1125 remote_notif_unregister_async_event_handler. Call
1126 remote_notif_state_xfree.
1127 (remote_open_1): Don't call
1128 remote_notif_register_async_event_handler. Call
1129 remote_notif_state_allocate.
1130
5e5ac9a5
YQ
11312013-10-04 Yao Qi <yao@codesourcery.com>
1132
1133 * varobj.c (create_child_with_value): Remove 'const' from the
1134 type of parameter 'name'.
1135 (varobj_add_child): Likewise.
1136 (install_dynamic_child): Remove 'const' from the type of
1137 parameter 'name'.
1138 (varobj_add_child): Likewise.
1139 (create_child_with_value): Likewise. Update comments. Don't
1140 duplicate 'name'.
1141 (update_dynamic_varobj_children): Duplicate 'name'
1142 and pass it to install_dynamic_child.
1143
06ab7b19
PM
11442013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1145
1146 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1147 conversion logic to occur after PyLong_Check. Comment on order
1148 change significance.
1149 * python/py-arch.c (archpy_disassemble): Comment on order of
1150 conversion for integers and longs.
1151
8ae377e8
PA
11522013-10-03 Pedro Alves <palves@redhat.com>
1153
1154 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1155 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1156 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1157 PTRACE_O_TRACEFORK is not supported.
1158 (linux_test_for_tracesysgood): New function.
1159 (linux_test_for_tracefork): New function, factored out from
1160 linux_check_ptrace_features, and also don't kill child_pid here.
1161
b1328b1b
TG
11622013-10-03 Tristan Gingold <gingold@adacore.com>
1163
1164 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1165 Remove verbose error reporting. Use detected state to
1166 thread_set_state call.
1167 (i386_darwin_dr_get): Fix return type. Remove verbose error
1168 report.
1169 Remove trailing spaces.
1170
901461f8
PA
11712013-10-02 Pedro Alves <palves@redhat.com>
1172
1173 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1174 val_print_optimized_out.
1175 * jv-valprint.c (java_print_value_fields): Likewise.
1176 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1177 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1178 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1179 new optimized out value.
1180 * findvar.c (address_from_register): Likewise.
1181 * frame.c (put_frame_register): Tweak error string to say the
1182 register was not saved, rather than optimized out.
1183 * infcmd.c (default_print_one_register_info): Adjust call to
1184 val_print_optimized_out. Use value_of_register instead of
1185 get_frame_register_value.
1186 * mi/mi-main.c (output_register): Use value_of_register instead of
1187 get_frame_register_value.
1188 * valprint.c (valprint_check_validity): Likewise.
1189 (val_print_optimized_out): New value parameter. If the value is
1190 lval_register, print <not saved> instead.
1191 (value_check_printable, val_print_scalar_formatted): Adjust calls
1192 to val_print_optimized_out.
1193 * valprint.h (val_print_optimized_out): New value parameter.
1194 * value.c (struct value) <optimized_out>: Extend comment.
1195 (error_value_optimized_out): New function.
1196 (require_not_optimized_out): Use it. Use a different string for
1197 lval_register values.
1198 * value.h (error_value_optimized_out): New declaration.
1199 * NEWS: Mention <not saved>.
1200
042a84d9
JB
12012013-10-02 Joel Brobecker <brobecker@adacore.com>
1202
1203 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1204 strcmp to compare two symtab filenames.
1205
6b9780fb
JB
12062013-10-02 Joel Brobecker <brobecker@adacore.com>
1207
1208 * symtab.c (search_symbols_equal): Delete.
1209 (sort_search_symbols_remove_dups): Replace call to
1210 search_symbols_equal by call to compare_search_syms,
1211 adjusting as necessary.
1212
751e7549
PM
12132013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1214
1215 PR python/15579
751e7549
PM
1216 * python/python.c: Document gdb.execute command in Python help.
1217
1efd7661
PM
12182013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1219
1220 * python/py-frame.c (frame_info_to_frame_object): Use
1221 gdbpy_convert_exception. Clean up Python object on failure.
1222
562fc849
PM
12232013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1224
1225 * python/lib/gdb/command/frame_filters.py
1226 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1227 (ShowFrameFilterPriority.invoke): Ditto.
1228
d7561cbb
KS
12292013-10-01 Keith Seitz <keiths@redhat.com>
1230
1231 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1232 (parse_linespec): Make 'argptr' const.
1233 Remove temporary cast of 'argptr' to const char **.
1234 (decode_line_full): Pass const pointer to parse_linespec.
1235 (decode_line_1): Likewise.
1236 (decode_objc): Make local variable 'new_argptr' const.
1237 (find_function_symbols): Remove temporary cast to char *
1238 to find_imps.
1239 * objc-lang.c (find_imps): Make argument 'method' const.
1240 Return const.
1241 * objc-lang.h (find_imps): Likewise.
1242
12432013-10-01 Keith Seitz <keiths@redhat.com>
1244
1245 * completer.c (skip_quoted_chars): Make all arguments const.
1246 Return const.
1247 (skip_quoted): Likewise.
1248 * completer.h (skip_quoted_chars): Likewise.
1249 (skip_quoted): Likewise.
1250 * defs.h (skip_quoted): Remove duplicate declaration.
1251 * jv-exp.y: Include completer.h.
1252 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1253 * p-exp.y: Include completer.h.
1254
12552013-10-01 Keith Seitz <keiths@redhat.com>
1256
1257 * c-exp.y (parse_number): Make first argument const.
1258 Make a copy of the input to manipulate.
1259 (c_parse_escape): Make first argument const.
1260 Make local variable 'tokptr' const.
1261 (parse_string_or_char): Make first two arguments const.
1262 (macro_original_text): Make const.
1263 (lex_one_token): Make local variable 'tokstart' const.
1264 Likewise for local variables named 'p'.
1265 Cast away const for struct stoken (temporary).
1266 * c-lang.h (c_parse_escpae): Make first argument const.
1267 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1268 const.
1269 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1270 var_string case.
1271 * f-exp.y (parse_number): Make first argument const.
1272 (match_string_literal): Make local variable 'tokstart'
1273 const.
1274 (yylex): Make local variable 'p' const.
1275 Cast away const for struct stoken (temporary).
1276 * go-exp.y (parse_number): Make first argument const.
1277 (parse_string_or_char): Likewise.
1278 Make local variable 'tokstart' const.
1279 (lex_one_token): Likewise for numerous locals called 'p'.
1280 Cast away const for struct stoken (temporary).
1281 * jv-exp.y (parse_number): Make first argument const.
1282 Make local variables 'tokstart' and 'tokptr' const.
1283 Cast away const for call to skip_quoted (temporary).
1284 (yylex): Make local variable 'p' const.
1285 Cast away const for struct stoken (temporary).
1286 * m2-exp.y (parse_number): Make local variable 'p' const.
1287 (yylex): Likewise for 'tokstart'.
1288 Cast away const for struct stoken (temporary).
1289 Make local variable 'p' const.
1290 * macroexp.c (get_character_constant): Pass a const string
1291 to c_parse_escape.
1292 (get_string_literal): Likewise.
1293 (macro_expand_next): Make first argument const.
1294 Cast away const for init_shared_buffer.
1295 * macroexp.h (macro_expand_next): Make first argument const.
1296 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1297 Pass a const string to c_parse_escape.
1298 Make local variables 'p' and 'namestart' const.
1299 * parse.c (lexptr): Make const.
1300 (prev_lexptr): Likewise.
1301 (find_template_name_end): Return const.
1302 Make argument const, too.
1303 (parse_exp_in_context): Make first argument const.
1304 Remove the entire const_hack.
1305 (parse_exp_in_context_1): Make first argument const.
1306 * parser-defs.h (find_template_name_end): Return const.
1307 Make argument const, too.
1308 (lexptr): Make const.
1309 (prev_lexptr): Likewise.
1310 * utils.c (parse_escape): Make second argument const.
1311 * utils.h (parse_escape): Likewise.
1312
13132013-10-01 Keith Seitz <keiths@redhat.com>
1314
1315 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1316 is now const.
1317 (block_lookup): Make 'raw_name' and 'name' const.
1318 * ada-lex.l (processString): Update for struct stoken.ptr.
1319 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1320 (operator_stoken): Likewise.
1321 (lex_one_token): Remove temporary cast to char * for
1322 'yylval.sval.ptr'.
1323 * f-exp.y (yylex): Likewise.
1324 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1325 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1326 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1327 'yylval.sval.ptr'.
1328 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1329 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1330 * linespec.c (struct ls_parser): Make 'stream' const.
1331 (find_parameter_list_end): Make argument 'input' and local
1332 variable 'p' const.
1333 (linespec_lexer_lex_string): Make local variables 'start' and
1334 'p' const.
1335 Use skip_spaces_const instead of skip_spaces.
1336 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1337 const.
1338 (parse_linespec): Temporarily cast 'argptr' to const for
1339 'parser->lexer.stream'.
1340 * m2-exp.y (yylex): Remove temporary cast to char * for
1341 'yylval.sval.ptr'.
1342 * objc-lang.c (add_msglist): Make local variable 'p' const.
1343 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1344 (exp : STRING): Make 'sp' const.
1345 (parse_number): Make argument 'p' const.
1346 * parser-defs.h (struct stoken): Make 'ptr' const.
1347
193a8eac
DE
13482013-10-01 Doug Evans <dje@google.com>
1349
1350 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1351
2213e2be
YQ
13522013-10-01 Yao Qi <yao@codesourcery.com>
1353
1354 * varobj.c (c_value_of_root): Remove declaration.
1355 (cplus_value_of_root, java_value_of_root): Likewise.
1356 (ada_value_of_root): Likewise.
1357 (struct language_specific) <value_of_root>: Remove.
1358 (languages): Update initialization.
1359 (check_scope): Move earlier.
1360 (c_value_of_root): Move earlier and rename to ...
1361 (value_of_root_1): ... this.
1362 (value_of_root): Caller update.
1363 (cplus_value_of_root, java_value_of_root): Remove.
1364 (ada_value_of_root): Remove.
1365
c573f273
YQ
13662013-10-01 Yao Qi <yao@codesourcery.com>
1367
1368 * varobj.c (varobj_format_string): Remove "unknown".
1369 (languages): Remove the first element.
1370 * varobj.h (enum varobj_languages): Remove vlang_c.
1371
56250258
YQ
13722013-10-01 Yao Qi <yao@codesourcery.com>
1373
1374 * varobj.c (struct language_specific) <language>: Remove.
1375 (languages): Update the initialization.
1376
29f9ebfa
YQ
13772013-10-01 Yao Qi <yao@codesourcery.com>
1378
1379 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1380 "solib-target.h". Include "windows-tdep.h".
1381 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1382 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1383 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1384 windows-tdep.o to gdb_target_obs.
1385
64870a42
YQ
13862013-10-01 Yao Qi <yao@codesourcery.com>
1387
1388 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1389 "solib-target.h".
1390 (amd64_windows_init_abi): Don't call set_solib_ops and
1391 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1392 windows_init_abi instead.
1393 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1394 "solib-target.h".
1395 (i386_cygwin_init_abi): Don't call set_solib_ops,
1396 set_gdbarch_has_dos_based_file_system and
1397 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1398 windows_init_abi instead.
1399 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1400 (windows_init_abi): New function.
1401 (windows_iterate_over_objfiles_in_search_order): Make it
1402 static.
1403 * windows-tdep.h (windows_init_abi): Declare.
1404 (windows_iterate_over_objfiles_in_search_order): Remove
1405 declaration.
1406
0aebdefa
JB
14072013-10-01 Jerome Guitton <guitton@adacore.com>
1408
1409 Checked in by Joel Brobecker <brobecker@adacore.com>
1410 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1411 incomplete dictionnary instead of None in case of missing
1412 environment variables.
1413 (elinos_init): in case of an incomplete environment, best
1414 effort to load system libraries instead of abort.
1415
1c8e84b0
JB
14162013-10-01 Joel Brobecker <brobecker@adacore.com>
1417
1418 * ada-lang.c (ada_has_this_exception_support): Ignore
1419 mst_solib_trampoline minimal symbols.
1420
61d82a0d
TG
14212013-09-30 Tristan Gingold <gingold@adacore.com>
1422
1423 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1424 hardware watchpoint.
1425 (i386_darwin_dr_set): Support 32 and 64 bit states.
1426 (i386_darwin_dr_get): Likewise.
1427 (i386_darwin_dr_set_control): Make static.
1428 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1429 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1430
dfd4cc63
LM
14312013-09-30 Luis Machado <lgustavo@codesourcery.com>
1432
1433 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1434 Replace TIDGET with ptid_get_lwp.
1435 Replace GET_LWP with ptid_get_lwp.
1436 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1437 Replace BUILD_THREAD with ptid_build.
1438 Replace BUILD_LWP with ptid_build.
1439 Replace PIDGET with ptid_get_pid.
1440 Replace TIDGET with ptid_get_lwp.
1441 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1442 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1443 Replace TIDGET with ptid_get_lwp.
1444 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1445 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1446 Replace TIDGET with ptid_get_lwp.
1447 Replace GET_LWP with ptid_get_lwp.
1448 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1449 * auxv.c: Likewise.
1450 * breakpoint.c: Likewise.
1451 * common/ptid.c (ptid_is_pid): Condense check for
1452 null_ptid and minus_one_ptid.
1453 (ptid_lwp_p): New function.
1454 (ptid_tid_p): New function.
1455 * common/ptid.h: Update comments for accessors.
1456 (ptid_lwp_p): New prototype.
1457 (ptid_tid_p): New prototype.
1458 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1459 * gcore.c: Replace PIDGET with ptid_get_pid.
1460 * gdbthread.h: Likewise.
1461 * gnu-nat.c: Likewise.
1462 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1463 Replace TIDGET with ptid_get_lwp.
1464 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1465 * hppanbsd-nat.c: Likewise.
1466 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1467 Replace TIDGET with ptid_get_lwp.
1468 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1469 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1470 * infcmd.c: Likewise.
1471 * inferior.h: Likewise.
1472 * inflow.c: Likewise.
1473 * infrun.c: Likewise.
1474 * linux-fork.c: Likewise.
1475 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1476 Replace GET_PID with ptid_get_pid.
1477 Replace is_lwp with ptid_lwp_p.
1478 Replace GET_LWP with ptid_get_lwp.
1479 Replace BUILD_LWP with ptid_build.
1480
5b4e221c
MF
14812013-09-28 Mike Frysinger <vapier@gentoo.org>
1482
1483 * common/linux-btrace.c: Move sys/syscall.h out of the
1484 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1485 Also check for SYS_perf_event_open before attempting to buid.
1486
57d63ce2
DE
14872013-09-27 Doug Evans <dje@google.com>
1488
19ac8c2e
DE
1489 * dwarf2read.c (dwarf2_section_info): Add comment.
1490 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1491 All uses updated.
1492 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1493 (dwarf2_read_section): Delete unused local "header". Add section
1494 name to error message.
1495 (create_dwo_in_dwp): Tweak comment.
1496 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1497
a32a8923
DE
1498 * dwarf2read.c (die_reader_specs): Tweak comment.
1499 (get_section_bfd_owner, get_section_bfd_section): New functions.
1500 (get_section_name, get_section_file_name): New functions.
1501 (get_section_id, get_section_flags): New functions.
1502 (*): Use new functions to access section fields.
1503
57d63ce2
DE
1504 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1505 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1506 arg "htab". All callers updated.
1507 (create_debug_types_hash_table): Remove redundant copy of
1508 abbrev_section.
1509 (create_dwo_in_dwp): Tweak comments.
1510 (read_str_index): Tweak comment. Record dwarf form name in static
1511 local.
1512
3736004f
PA
15132013-09-27 Pedro Alves <palves@redhat.com>
1514
1515 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1516 (remote_filename_p): Add comment.
1517 * remote.c (remote_filename_p): Adjust to use
1518 REMOTE_SYSROOT_PREFIX.
1519 * solib.c (solib_find): When deciding whether we need to add a
1520 directory separator, check whether the sysroot is "remote:"
1521 instead of checking whether the patch has a drive spec. Add
1522 comments.
1523
5b5596ff
PA
15242013-09-27 Pedro Alves <palves@redhat.com>
1525
1526 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1527 Delete fields.
1528 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1529 directly.
1530
b5eef7aa
JK
15312013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1532
1533 Fix set debug frame output.
1534 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1535 SENTINEL_FRAME entry lower to match enum frame_type order.
1536
5b856f36
PM
15372013-09-26 Pierre Muller <muller@sourceware.org>
1538
1539 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1540 AMD64_R15_REGNUM when a register index is expected.
1541 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1542 Substitute in array.
1543 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1544 (amd64_push_arguments): Substitute in integer_regnum array.
1545
ade7ed9e
DE
15462013-09-25 Doug Evans <dje@google.com>
1547
d3e81981
DE
1548 * objfiles.c (allocate_objfile): Move comment to better place.
1549
8fb8eb5c
DE
1550 New option "set debug symfile on".
1551 * NEWS: Mention "set debug symfile".
1552 * Makefile.in (SFILES): Add symfile-debug.c.
1553 (COMMON_OBS): Add symfile-debug.o.
1554 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1555 objfile's symbol functions.
1556 * objfiles.h (objfile_set_sym_fns): Declare.
1557 * symfile-debug.c: New file.
1558 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1559 objfile's symbol functions.
1560 (reread_symbols): Ditto.
1561
c256e171
DE
1562 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1563 All uses updated.
1564 (add_symtab_fns): Update prototype.
1565 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1566 (registered_sym_fns): ... this.
1567 (symtab_fns): Update.
1568 (add_symtab_fns): New arg "flavour". All callers updated.
1569 (find_sym_fns): Rewrite to use new sym_fns registry.
1570
f56ce883
DE
1571 * symfile.h (struct sym_fns): Add "objfile" argument to
1572 sym_read_linetable. All uses updated.
1573
20c681d1
DE
1574 * symtab.c (domain_name, search_domain_name): New functions.
1575 * symtab.h (domain_name, search_domain_name): Declare.
1576
ade7ed9e
DE
1577 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1578 map_matching_symbols so objfile is first. All uses updated.
1579 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1580 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1581
7d760051
UW
15822013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1583
1584 PR shlibs/8882
1585 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1586 link map entries.
1587
020f7036
DE
15882013-09-24 Doug Evans <dje@google.com>
1589
1590 * objfiles.c (free_objfile): Move comment.
1591
598402f0
JB
15922013-09-24 Joel Brobecker <brobecker@adacore.com>
1593
1594 * ada-exp.y (string_to_operator): Delete.
1595 (dummy_string_to_ada_operator): Delete.
1596
bf4d6c1c
JB
15972013-09-24 Joel Brobecker <brobecker@adacore.com>
1598
1599 Revert:
1600 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1601 amd64-tdep.c.
1602 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1603 call_dummy_integer_regs, and classify.
1604 * amd64-tdep.h (amd64_classify): Add declaration.
1605 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1606 (amd64_reg_class): Delete, moved to i386-tdep.h.
1607 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1608 Replace call to amd64_classify by call to tdep->classify.
1609 (amd64_push_arguments): Get the list of registers to use for
1610 passing integer parameters from the gdbarch tdep structure,
1611 rather than using a hardcoded one. Replace calls to amd64_classify
1612 by calls to tdep->classify.
1613 (amd64_push_dummy_call): Get the register number used for
1614 the "hidden" argument from tdep->call_dummy_integer_regs.
1615 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1616 and tdep->call_dummy_integer_regs. Set tdep->classify.
1617
849e9755
JB
16182013-09-24 Joel Brobecker <brobecker@adacore.com>
1619
1620 Revert:
1621 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1622 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1623 where tdep->memory_args_by_pointer is non-zero.
1624
c1459fd6
JB
16252013-09-24 Joel Brobecker <brobecker@adacore.com>
1626
1627 Revert:
1628 * i386-tdep.h (struct gdbarch_tdep): Add new field
1629 integer_param_regs_saved_in_caller_frame.
1630 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1631 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1632
20c2e3e0
JB
16332013-09-24 Joel Brobecker <brobecker@adacore.com>
1634
874440b8 1635 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1636 (amd64_windows_classify): Delete.
1637 (amd64_windows_passed_by_integer_register)
1638 (amd64_windows_passed_by_xmm_register)
1639 (amd64_windows_passed_by_pointer)
1640 (amd64_windows_adjust_args_passed_by_pointer)
1641 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1642 (amd64_windows_push_dummy_call): New functions.
1643 (amd64_windows_init_abi): Remove setting of
1644 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1645 tdep->classify, tdep->memory_args_by_pointer and
1646 tdep->integer_param_regs_saved_in_caller_frame.
1647 Add call to set_gdbarch_push_dummy_call.
1648
82bf32bc
JK
16492013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1650
1651 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1652 objfile->original_name.
1653
24ba069a
JK
16542013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1655
1656 Pass down original filename for objfile.
1657 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1658 * elfread.c (elf_symfile_read): Likewise.
1659 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1660 longer set ORIGINAL_NAME.
1661 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1662 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1663 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1664 symbol_file_add_from_bfd call.
1665 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1666 (macho_check_dsym): Add parameter filenamep. Change function comment.
1667 Set *filenamep.
1668 (macho_symfile_read): New variable dsym_filename. Update
1669 macho_check_dsym call. Use it for symbol_file_add_separate.
1670 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1671 it. Use it for objfile->original_name.
1672 (objfile_name): Return OBFD's filename, if available.
1673 * objfiles.h (allocate_objfile): Add new parameter name.
1674 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1675 * symfile-mem.c (symbol_file_add_from_memory): Update
1676 symbol_file_add_from_bfd call.
1677 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1678 comment for it.
1679 (symbol_file_add_with_addrs): New parameter name, add function comment
1680 for it. Remove variable name. Update allocate_objfile call.
1681 (symbol_file_add_separate): New parameter name, add function comment
1682 for it. Update symbol_file_add_with_addrs call.
1683 (symbol_file_add_from_bfd): New parameter name. Update
1684 symbol_file_add_with_addrs call.
1685 (symbol_file_add): Update symbol_file_add_from_bfd call.
1686 (reread_symbols): New variable original_name. Save
1687 objfile->original_name by it.
1688 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1689 second parameter.
1690
4262abfb
JK
16912013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1692
1693 Code cleanup: Add objfile_name accessor function.
1694 * ada-lang.c (is_known_support_routine): Use objfile_name.
1695 * auto-load.c (source_gdb_script_for_objfile)
1696 (auto_load_objfile_script): Likewise.
1697 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1698 * dbxread.c (dbx_symfile_read): Likewise.
1699 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1700 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1701 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1702 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1703 (lookup_dwp_signatured_type, lookup_dwo_unit)
1704 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1705 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1706 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1707 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1708 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1709 (read_subrange_type, load_partial_dies, read_partial_die)
1710 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1711 (die_containing_type, build_error_marker_type, lookup_die_type)
1712 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1713 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1714 (get_DW_AT_signature_type, write_psymtabs_to_index)
1715 (save_gdb_index_command): Likewise.
1716 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1717 Likewise.
1718 * expprint.c (dump_subexp_body_standard): Likewise.
1719 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1720 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1721 original_name.
1722 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1723 obj_name, use objfile_name for it, use the variable.
1724 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1725 Use objfile_name.
1726 * machoread.c (macho_symtab_read, macho_check_dsym)
1727 (macho_symfile_relocate): Likewise.
1728 * maint.c (maintenance_translate_address): Likewise.
1729 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1730 * minsyms.c (install_minimal_symbols): Likewise.
1731 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1732 original_name.
1733 (filter_overlapping_sections): Use objfile_name.
1734 (objfile_name): New function.
1735 * objfiles.h (struct objfile): Rename field name to original_name.
1736 (objfile_name): New prototype.
1737 * printcmd.c (sym_info, address_info): Use objfile_name.
1738 * probe.c (parse_probes, collect_probes, compare_probes)
1739 (info_probes_for_ops): Likewise.
1740 * progspace.c (clone_program_space): Likewise.
1741 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1742 (maintenance_info_psymtabs): Likewise.
1743 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1744 (source_section_scripts): Likewise.
1745 * python/py-objfile.c (objfpy_get_filename): Likewise.
1746 * python/py-progspace.c (pspy_get_filename): Likewise.
1747 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1748 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1749 * solib.c (solib_read_symbols): Likewise.
1750 * stabsread.c (scan_file_globals): Likewise.
1751 * stap-probe.c (handle_stap_probe): Likewise.
1752 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1753 (find_separate_debug_file_by_debuglink): Likewise.
1754 (reread_symbols): Likewise. Use the objfile field name renamed to
1755 original_name.
1756 (allocate_symtab): Use objfile_name.
1757 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1758 (dump_objfile, dump_msymbols, dump_symtab_1)
1759 (maintenance_print_msymbols, maintenance_print_objfiles)
1760 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1761 * target.c (target_translate_tls_address, target_info): Likewise.
1762 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1763 objfile_name.
1764
4721dc18
JK
17652013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1766
1767 Code cleanup.
1768 * probe.c (parse_probes): Rename variable objfile_name to
1769 objfile_namestr.
1770
a61d6db8
JK
17712013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1772
1773 Remove solib-sunos.c.
1774 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1775 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1776 * objfiles.c (rt_common_objfile): Remove.
1777 (free_objfile): Remove rt_common_objfile comparison.
1778 * objfiles.h (rt_common_objfile): Remove.
1779 * solib-sunos.c: Remove.
1780 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1781
2659903b
JK
17822013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1783
1784 Remove a.out NetBSD and OpenBSD hosts.
1785 * NEWS (Removed native configurations): New.
1786 * config/arm/nbsdaout.mh: Remove.
1787 * config/i386/nbsdaout.mh: Remove.
1788 * config/i386/obsdaout.mh: Remove.
1789 * config/m68k/nbsdaout.mh: Remove.
1790 * config/sparc/nbsdaout.mh: Remove.
1791 * config/vax/nbsdaout.mh: Remove.
1792 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1793 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1794 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1795 error.
1796 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1797 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1798 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1799
f60e2d5c
TT
18002013-09-23 Tom Tromey <tromey@redhat.com>
1801
1802 * linespec.c (struct minsym_and_objfile): Remove.
1803 (minsym_and_objfile_d): Remove.
1804 (struct linespec, struct collect_info, linespec_parse_basic)
1805 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1806 (compare_msymbols, find_method, find_function_symbols)
1807 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1808 (add_minsym, search_minsyms_for_name): Update.
1809
d3eaaf66
AB
18102013-09-23 Andrew Burgess <aburgess@broadcom.com>
1811
1812 * regcache.c: Add include of valprint.h.
1813 (dump_endian_bytes): Delete.
1814 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1815
2cc762b5
AB
18162013-09-23 Andrew Burgess <aburgess@broadcom.com>
1817
1818 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1819
96181529
PA
18202013-09-19 Pedro Alves <palves@redhat.com>
1821
1822 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1823 breakpoints.
1824
9b3f3ee6
TS
18252013-09-19 Pedro Alves <palves@redhat.com>
1826 Thomas Schwinge <thomas@codesourcery.com>
1827 Yue Lu <hacklu.newborn@gmail.com>
1828
1829 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1830 Take a gdb_byte pointer instead of a char pointer.
1831
1832 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1833 gnu_xfer_partial helper.
1834 (gnu_xfer_partial): New function.
1835 (gnu_target): Don't install a deprecated_xfer_memory hook.
1836 Install a to_xfer_partial hook.
1837
69150c3d
JK
18382013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1839
1840 Constification.
1841 * main.c (captured_main): Replace catch_command_errors by
1842 catch_command_errors_const. Twice.
1843 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1844 (symbol_file_add): Make name parameter const.
1845 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1846 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1847 variable name. Change their usage accordingly.
1848 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1849 const.
1850 (symbol_file_add_main): Make args parameter const.
1851
086850b2
UW
18522013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1853 Ulrich Weigand <uweigand@de.ibm.com>
1854
1855 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1856 of c_value member.
1857 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1858
ca08a94c 18592013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1860 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1861
1862 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1863 (gnu_create_inferior)
1864 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1865 (set_sig_thread_cmd): Use the lwpid field of ptids to
1866 store/extract thread ids instead of the tid field.
1867 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1868
e4c6a2c4
AB
18692013-09-18 Andrew Burgess <aburgess@broadcom.com>
1870
1871 * infcmd.c (default_print_one_register_info): Add detection of
1872 optimized out values.
1873 (default_print_registers_info): Switch to using
1874 get_frame_register_value.
1875
58c48e72
MM
18762013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1877
1878 * infrun.c (handle_inferior_event): Check if we know the
1879 function start address before setting a resume breakpoint.
1880
c8d37639
PA
18812013-09-18 Pedro Alves <palves@redhat.com>
1882
1883 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1884 minus_one_ptid instead of looking at the ptid's tid field and
1885 comparing that to -1.
1886
71926e28
AB
18872013-09-18 Andrew Burgess <aburgess@broadcom.com>
1888
1889 * main.h (get_gdb_program_name): Remove extra whitespace.
1890
c88a1531
AB
18912013-09-18 Andrew Burgess <aburgess@broadcom.com>
1892
1893 * main.h (get_gdb_program_name): Add declaration.
1894 * main.c (get_gdb_program_name): Add definition.
1895
4390d890
DE
18962013-09-17 Doug Evans <dje@google.com>
1897
1898 * dwarf2read.c: Move definitions of complaint functions to after
1899 forward declarations of local functions.
1900
49fa26b0
PA
19012013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1902 Pedro Alves <palves@redhat.com>
1903
1904 PR gdb/11568
1905 * breakpoint.c (remove_threaded_breakpoints): New function.
1906 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1907 as thread_exit observer.
1908
08d72866
PA
19092013-09-17 Pedro Alves <palves@redhat.com>
1910
1911 PR gdb/15911
1912 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1913 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1914 * corelow.c (core_open):
1915 * frame.h (print_stack_frame, print_frame_info): New
1916 'set_current_sal' parameter.
1917 * infcmd.c (finish_command, kill_command): Adjust call to
1918 print_stack_frame.
1919 * inferior.c (inferior_command): Likewise.
1920 * infrun.c (normal_stop): Likewise.
1921 * linux-fork.c (linux_fork_context): Likewise.
1922 * record-full.c (record_full_goto_entry, record_full_restore):
1923 Likewise.
1924 * remote-mips.c (common_open): Likewise.
1925 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1926 Use it.
1927 (print_frame_info): New 'set_current_sal' parameter. Set the last
1928 displayed sal depending on the new paremeter instead of looking at
1929 print_what.
1930 (backtrace_command_1, select_and_print_frame, frame_command)
1931 (current_frame_command, up_command, down_command): Adjust call to
1932 print_stack_frame.
1933 * thread.c (print_thread_info, restore_selected_frame)
1934 (do_captured_thread_select): Adjust call to print_stack_frame.
1935 * tracepoint.c (tfind_1): Likewise.
1936 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1937 (mi_cmd_stack_info_frame): Likewise.
1938 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1939 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1940
6bc305f5
SDJ
19412013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1942
1943 * value.c (isvoid_internal_fn): Replace "parameter" with
1944 "argument".
1945
0a7cfe2c
SS
19462013-09-16 Stan Shebs <stan@codesourcery.com>
1947
1948 * README: Update references to writing code for GDB.
1949 * configure.ac (build_warnings): Remove obsolete comment.
1950 * configure: Regenerate.
1951 * gdbarch.sh: Remove references to gdbint.texinfo.
1952 * gdbarch.h: Regenerate.
1953 * gdbtypes.c (objfile_type): Remove comments referencing internals
1954 manual and D10V.
1955
a280dbd1
SDJ
19562013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1957
1958 * NEWS: Mention new convenience function $_isvoid.
1959 * value.c (isvoid_internal_fn): New function.
1960 (_initialize_values): Add new convenience function $_isvoid.
1961
04a83fee
PM
19622013-09-16 Pierre Muller <muller@sourceware.org>
1963
1964 * arm-linux-tdep.c: Add "elf/common.h" header.
1965 Remove AT_HWCAP macro definintion as it is provided in
1966 added include file.
1967 * s390-tdep.c: Remove system header <elf.h>
1968 Add "elf/common.h" header for AT_HWCAP definition.
1969 (s390_core_read_description): Use correct CORE_ADDR
1970 for hwcap local variable used as third parameter
1971 of function target_auxv_search.
1972
88505fac
PM
19732013-09-14 Pierre Muller <muller@sourceware.org>
1974 Tom Tromey <tromey@redhat.com>
1975 Pedro Alves <palves@redhat.com>
1976
1977 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1978 mode if operating system doesn't know O_CLOEXEC.
1979
d3846e71
JK
19802013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1981
1982 Code cleanup.
1983 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1984 inner block.
1985
4ac33720
UW
19862013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1987
1988 * NEWS: Mention TDB support.
1989 * features/s390-tdb.xml: New file.
1990 * features/s390-te-linux64.xml: New file.
1991 * features/s390x-te-linux64.xml: New file.
1992 * features/Makefile (WHICH): Add new tdescs above.
1993 (s390-te-linux64-expedite): Set.
1994 (s390x-te-linux64-expedite): Set.
1995 * features/s390-te-linux64.c: New file (generated).
1996 * features/s390x-te-linux64.c: New file (generated).
1997 * regformats/s390-te-linux64.dat: New file (generated).
1998 * regformats/s390x-te-linux64.dat: New file (generated).
1999 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2000 (HWCAP_S390_TE): Likewise.
2001 (S390_TDB_DWORD0_REGNUM): Likewise.
2002 (S390_TDB_DWORD0_REGNUM): Likewise.
2003 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2004 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2005 (S390_TDB_ATIA_REGNUM): Likewise.
2006 (S390_TDB_R0_REGNUM): Likewise.
2007 (S390_TDB_R1_REGNUM): Likewise.
2008 (S390_TDB_R2_REGNUM): Likewise.
2009 (S390_TDB_R3_REGNUM): Likewise.
2010 (S390_TDB_R4_REGNUM): Likewise.
2011 (S390_TDB_R5_REGNUM): Likewise.
2012 (S390_TDB_R6_REGNUM): Likewise.
2013 (S390_TDB_R7_REGNUM): Likewise.
2014 (S390_TDB_R8_REGNUM): Likewise.
2015 (S390_TDB_R9_REGNUM): Likewise.
2016 (S390_TDB_R10_REGNUM): Likewise.
2017 (S390_TDB_R11_REGNUM): Likewise.
2018 (S390_TDB_R12_REGNUM): Likewise.
2019 (S390_TDB_R13_REGNUM): Likewise.
2020 (S390_TDB_R14_REGNUM): Likewise.
2021 (S390_TDB_R15_REGNUM): Likewise.
2022 (S390_NUM_REGS): Increase.
2023 (S390_IS_TDBREGSET_REGNUM): New macro.
2024 (s390_regmap_tdb): Declare.
2025 (s390_sizeof_tdbregset): Define.
2026 (tdesc_s390_te_linux64): Declare.
2027 (tdesc_s390x_te_linux64): Likewise.
2028 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2029 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2030 (s390_regmap_tdb): New regmap.
2031 (s390_supply_tdb_regset): New function.
2032 (s390_tdb_regset): New regset.
2033 (s390_linux64v2_regset_sections): Add TDB regset to list.
2034 (s390x_linux64v2_regset_sections): Likewise.
2035 (s390_regset_from_core_section): Recognize TDB core note section.
2036 (s390_core_read_description): If HWCAP indicates TE support,
2037 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2038 (s390_gdbarch_init): Handle TDB regset.
2039 (_initialize_s390_tdep): Initialize new tdescs.
2040 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2041 (have_regset_tdb): New variable.
2042 (s390_native_supply): Support register invalidation.
2043 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2044 (check_regset): Treat ENODATA as "regset exists".
2045 (s390_linux_fetch_inferior_registers): Add TDB.
2046 (s390_read_description): Check for TDB existence and select
2047 appropriate tdesc.
2048 * gdbserver/Makefile.in (clean): Add removal of new makefile
2049 targets.
2050 (s390-te-linux64.c): New makefile target.
2051 (s390x-te-linux64.c): Likewise.
2052 * gdbserver/configure.srv (srv_regobj): Append new objects
2053 s390-te-linux64.o and s390x-te-linux64.o.
2054 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2055 s390x-te-linux64.xml, and s390-tdb.xml.
2056 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2057 declaration.
2058 (tdesc_s390_te_linux64): Likewise.
2059 (init_registers_s390x_te_linux64): Likewise.
2060 (tdesc_s390x_te_linux64): Likewise.
2061 (s390_check_regset): Treat ENODATA as "regset exists".
2062 (s390_arch_setup): Add TDB regset support.
2063 (initialize_low_arch): Initialize registers for new tdescs.
2064
2ccd1468
UW
20652013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2066
2067 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2068 (S390_IS_FPREGSET_REGNUM): New macro.
2069 * s390-tdep.c (s390_dwarf_regmap): Make const.
2070 (regnum_is_gpr_full): New function for replacing repeated code.
2071 (s390_pseudo_register_name): Use it.
2072 (s390_pseudo_register_type): Likewise.
2073 (s390_pseudo_register_read): Likewise.
2074 (s390_pseudo_register_write): Likewise.
2075 (s390_unwind_pseudo_register): Likewise.
2076 (s390_regmap_gregset): New format for regmap.
2077 (s390x_regmap_gregset): Likewise.
2078 (s390_regmap_fpregset): Likewise.
2079 (s390_regmap_upper): Likewise.
2080 (s390_regmap_last_break): Likewise.
2081 (s390_regmap_system_call): Likewise.
2082 (s390_supply_regset): Adjust to new regmap format.
2083 (s390_collect_regset): Likewise.
2084 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2085 (s390_native_collect): Likewise.
2086 (supply_gregset): Likewise.
2087 (fill_gregset): Likewise.
2088 (supply_fpregset): Likewise.
2089 (fill_fpregset): Likewise.
2090 (fetch_regset): Likewise.
2091 (store_regset): Likewise.
2092 (s390_linux_fetch_inferior_registers): Likewise.
2093 (s390_linux_fetch_inferior_registers): Likewise.
2094
1aa4cd77
AP
20952013-09-12 Andrew Pinski <apinski@cavium.com>
2096
2097 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2098
d91fab15
UW
20992013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2100
2101 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2102
5a5d8ead
AB
21032013-09-09 Andrew Burgess <aburgess@broadcom.com>
2104
2105 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2106
1385f66c
PA
21072013-09-06 Pedro Alves <palves@redhat.com>
2108
2109 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2110 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2111 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2112 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2113 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2114 gdb_stdlog.
2115
146ec4db
PA
21162013-09-06 Pedro Alves <palves@redhat.com>
2117
2118 * remote-sim.c (dump_mem): Constify buf parameter.
2119 gdbsim_xfer_inferior_memory): Rename to ...
2120 (gdbsim_xfer_memory): ... this. Adjust interface as
2121 target_xfer_partial helper.
2122 (gdbsim_xfer_partial): New function.
2123 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2124 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2125
fcde0081
PA
21262013-09-06 Pedro Alves <palves@redhat.com>
2127
2128 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2129 host_address_to_string, and send debug output to gdb_stdlog.
2130
749c8b38
RW
21312013-09-06 Ricard Wanderlof <ricardw@axis.com>
2132
2133 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2134 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2135 gdb_target_obs for cris target.
2136 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2137 (cris_gdbarch_init): Move calls to
2138 set_gdbarch_fetch_tls_load_module_address and
2139 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2140 Add call to gdbarch_init_osabi.
2141 * cris-linux-tdep.c: New file.
2142 * cris-tdep.h: New file.
2143
43df09d9
AB
21442013-09-06 Andrew Burgess <aburgess@broadcom.com>
2145
2146 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2147 to deprecated_init_ui_hook.
2148
4d09c5b4
AB
21492013-09-06 Andrew Burgess <aburgess@broadcom.com>
2150
2151 * cli/cli-interp.c (_initialize_cli_interp): Add a
2152 command_loop_proc to interp_procs.
2153 * event-top.c (cli_command_loop): Change signature to match
2154 interp_command_loop_ftype.
2155 * event-top.h (cli_command_loop): Same.
2156 * interps.c (interp_new): Require every interpreter to have a
2157 command_loop_proc.
2158 (current_interp_command_loop): Just call the command_loop_proc on
2159 the current interpreter.
2160 * tui/tui-interp.c (_initialize_tui_interp): Add a
2161 command_loop_proc to interp_procs.
2162
8eb3d7b6
RW
21632013-09-06 Ricard Wanderlof <ricardw@axis.com>
2164
2165 * cris-tdep.c (cris_gdbarch_init): Add call to
2166 get_gdbarch_fetch_tls_load_module_address.
2167
18b3c2f5
RW
21682013-09-06 Ricard Wanderlof <ricardw@axis.com>
2169
2170 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2171 (cris_elf_gregset_t): Rename from elf_gregset_t.
2172 (crisv32_elf_gregset_t): Adjust.
2173 (cris_supply_gregset, fetch_core_registers): Adjust.
2174
dc8636ef
RW
21752013-09-06 Ricard Wanderlof <ricardw@axis.com>
2176
2177 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2178
257e6d53
AB
21792013-09-05 Andrew Burgess <aburgess@broadcom.com>
2180
1581d8a7 2181 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 2182 references in comments.
1581d8a7 2183 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
2184 deprecated_command_loop_hook.
2185 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2186 setup.
1581d8a7 2187 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 2188
7c33b57c
PA
21892013-09-05 Pedro Alves <palves@redhat.com>
2190
2191 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2192 local is now int instead of ULONGEST. Print it with %d
2193 instead of paddress.
2194
9f8edbd5
TG
21952013-09-05 Tristan Gingold <gingold@adacore.com>
2196
2197 * MAINTAINERS: Remove avr maintainership.
2198
d5b495b4
PA
21992013-09-05 Pedro Alves <palves@redhat.com>
2200
2201 * findvar.c (value_of_register): Rework in terms of
2202 value_of_register_lazy.
2203
40b91786
MB
22042013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2205
2206 * symfile.c (add_symbol_file_command): Remove trailing
2207 whitespaces and blank line after comment.
2208
6eed1678
PA
22092013-09-05 Pedro Alves <palves@redhat.com>
2210
2211 * tui/tui-regs.c (tui_register_format): Don't look at the
2212 register's name here. Return string representing register
2213 value instead of storing it in the data element.
2214 (tui_get_register): Compare register string representations
2215 instead of register value states and contents.
2216
8eb6bda2
PA
22172013-09-05 Pedro Alves <palves@redhat.com>
2218
2219 PR tui/15933
2220 * tui/tui-regs.c (tui_show_registers): Show registers of the
2221 selected frame, not the current frame.
2222
48b1f08c
RW
22232013-09-05 Ricard Wanderlof <ricardw@axis.com>
2224
2225 * MAINTAINERS (Write After Approval): Add myself to the list.
2226
89e63ee4
DE
22272013-09-04 Doug Evans <dje@google.com>
2228
2229 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2230 (queue_and_load_dwo_tu): New function.
2231 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2232 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2233 Make dependent_cu optional.
2234 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2235 and an older .gdb_index is in use, queue and load all its TUs too.
2236
492c0ab7
JK
22372013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2238
2239 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2240 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2241 variable search_flags.
2242 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2243 (OPF_RETURN_REALPATH): ... here.
2244 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2245 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2246 call. Twice.
2247 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2248 openp call.
2249 * solib.c (solib_find): Likewise. Four times.
2250 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2251 in the function comment and for the realpath_fptr variable.
2252 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2253 (find_and_open_source): Likewise. Twice.
2254 * symfile.c (symfile_bfd_open): Likewise, also twice.
2255
23a44de8
DE
22562013-09-04 Doug Evans <dje@google.com>
2257
2258 * progspace.c (save_current_space_and_thread): Remove unnecessary
2259 call to save_current_inferior.
2260
47061676
AB
22612013-09-04 Andrew Burgess <aburgess@broadcom.com>
2262
2263 * sh64-tdep.c (sh64_do_register): Return after printing message
2264 about unavailable register contents.
2265
41dc8db8
MB
22662013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2267 Pedro Alves <palves@redhat.com>
2268
2269 * symfile.c (add_symbol_file_command): Error out on unknown
2270 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2271 options and collapse into single conditional branch.
2272
07107ca6
LM
22732013-09-03 Luis Machado <lgustavo@codesourcery.com>
2274
a7ea61cf 2275 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2276 detach_fork.
2277 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2278 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2279 * inferior.h (detach_fork): Remove.
2280 * infrun.c (detach_fork): Adjust comment and make it
2281 static.
2282 (follow_fork): Pass detach_fork parameter to
2283 target_follow_fork.
2284 * linux-nat.c (linux_child_follow_fork): New parameter
2285 detach_fork.
2286 * target.c (target_follow_fork): New parameter detach_fork.
2287 Pass detach_fork as parameter and print its value.
2288 * target.h (struct target_ops) <to_follow_fork>: New int
2289 parameter.
2290 (target_follow_fork): New parameter detach_fork.
2291
3bec2768
JB
22922013-09-03 Joel Brobecker <brobecker@adacore.com>
2293
2294 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2295 Replace sec->bfd by sec->the_bfd_section->owner.
2296
c01cbb3d
YQ
22972013-09-03 Yao Qi <yao@codesourcery.com>
2298
2299 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2300 from linux_has_shared_address_space.
2301 (linux_has_shared_address_space): Call linux_is_uclinux.
2302 * linux-tdep.h (linux_is_uclinux): Declare.
2303 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2304 linux_is_uclinux.
2305
7b00db47
YQ
23062013-09-03 Yao Qi <yao@codesourcery.com>
2307
2308 * config/djgpp/fnchange.lst: Remove entry of
2309 i386-interix-nat.c and i386-interix-tdep.c.
2310 * configure.ac: Remove '*-*-interix*'.
2311 * configure: Re-generated.
2312 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2313 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2314 obsolete comments.
2315 * osabi.c (gdb_osabi_names): Remove "Interix".
2316
0f9741f2
YQ
23172013-09-03 Yao Qi <yao@codesourcery.com>
2318
2319 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2320
1e038f67
MM
23212013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2322
2323 * record.h (record_print_flag) <record_print_src_line,
2324 record_print_insn_range>: Rename into ...
2325 (record_print_flag) <record_print_src_line,
2326 record_print_insn_range>: ... this. Update all users.
2327
9e52adf9
PM
23282013-09-02 Pierre Muller <muller@sourceware.org>
2329
2330 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2331 error code.
2332
a2388568
PM
23332013-09-02 Pierre Muller <muller@sourceware.org>
2334
2335 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2336 by use of plongest function.
2337
9058cc3a
TG
23382013-09-02 Tristan Gingold <gingold@adacore.com>
2339
2340 * NEWS: Add entry mentioning support for native Windows x64
2341 SEH data.
2342
2343 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2344 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2345 (struct amd64_windows_frame_cache): New struct.
2346 (amd64_windows_w2gdb_regnum): New global.
2347 (pc_in_range, amd64_windows_frame_decode_epilogue)
2348 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2349 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2350 (amd64_windows_frame_this_id): New functions.
2351 (amd64_windows_frame_unwind): New static global.
2352 (amd64_windows_skip_prologue): New function.
2353 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2354 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2355 with amd64_windows_skip_prologue.
2356
3161820b 23572013-08-30 Joel Brobecker <brobecker@adacore.com>
2358
2359 GDB 7.6.1 released.
2360
02457c76
PA
23612013-08-30 Pedro Alves <palves@redhat.com>
2362
2363 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2364 SRC_AND_LOC.
2365
e0162910
PA
23662013-08-30 Pedro Alves <palves@redhat.com>
2367
2368 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2369 warning text.
2370
6391ce51
PA
23712013-08-30 Pedro Alves <palves@redhat.com>
2372
2373 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2374 Adjust arguments to print_stack_frame.
2375
d1da0587
PA
23762013-08-30 Pedro Alves <palves@redhat.com>
2377
2378 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2379
adfd8245
PA
23802013-08-30 Pedro Alves <palves@redhat.com>
2381
2382 * frame.h (show_and_print_stack_frame): Delete declaration.
2383
96d9056e
PM
23842013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2385
2386 PR python/15461
96d9056e
PM
2387 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2388 (archpy_name): Check for valid architecture.
2389 (archpy_disassemble): Ditto.
2390
11cb8762
JB
23912013-08-29 Joel Brobecker <brobecker@adacore.com>
2392
2393 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2394 instead of "long long" in call to ptrace64.
2395
1af12a7d
AB
23962013-08-29 Andrew Burgess <aburgess@broadcom.com>
2397
2398 * mi/mi-interp.c (mi_command_loop): Change signature to match
2399 interp_command_loop_ftype.
2400 (mi1_command_loop): Remove.
2401 (mi2_command_loop): Remove.
2402 (mi3_command_loop): Remove.
2403 (mi_interpreter_resume): Remove setting of
2404 deprecated_command_loop_hook.
2405 (_initialize_mi_interp): Set mi_command_loop as the command loop
2406 callback.
2407
acc900c2
SA
24082013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2409
2410 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2411 value_type.
2412
548b762d
SA
24132013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2414
2415 * value.c (allocate_value_contents): Make static.
2416 * value.h (allocate_value_contents): Remove prototype.
2417
08039c9e
SA
24182013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2419
2420 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2421 of assembling value via allocate_value_lazy and attribute setter.
2422 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2423 assembling value via allocate_value_lazy and attribute setter.
2424 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2425 assembling value via allocate_value_lazy and attribute setter.
2426
314c7de9
SA
24272013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2428
2429 * value.c (value_from_contents_and_address): Replace allocate_value and
2430 memcpy with value_from_contents.
2431
8f28f522
PM
24322013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2433
2434 * python/py-framefilter.c (py_print_frame): Remove usage of
2435 PyString_AsString. Use python_string_to_host_string instead.
2436 Refactor function to work with a string as a new allocation
2437 instead of a pointer.
2438 (py_print_frame): Ditto.
2439 * python/lib/gdb/frames.py (return_list): Cain iterators together
2440 instead of adding them as a list.
2441 (_sort_list): Call return_list, and remove duplicate code.
2442 (execute_frame_filters): Convert iterator to a list with list().
2443 * python/lib/gdb/command/frame_filters.py
2444 (SetFrameFilterPriority._set_filter_priority): Convert priority
2445 attribute to an integer.
2446 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2447 wrapper function __next__.
2448 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2449 define as "str".
2450
8ee002df
PM
24512013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2452
2453 PR python/15752
8ee002df
PM
2454 * python/py-framefilter.c (apply_frame_filter): Check
2455 gdb_python_initialized. Exit if the Python frame-filter code
2456 cannot be initialized.
2457
af4c453a
PM
24582013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2459
2460 PR cli/15842
af4c453a
PM
2461 * top.c (print_gdb_version): Remove erroneous newline after help
2462 text.
2463
bf8793bb
YQ
24642013-08-29 Yao Qi <yao@codesourcery.com>
2465
2466 * varobj.c (install_dynamic_child): Remove trailing space.
2467 Add one blank line after variable declaration.
2468
1f0c4988
JK
24692013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2470
2471 PR gdb/15415
2472 * corefile.c (get_exec_file): Use exec_filename.
2473 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2474 * exec.c (exec_close): Free EXEC_FILENAME.
2475 (exec_file_attach): New variable canonical_pathname. Use
2476 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2477 EXEC_FILENAME.
2478 * exec.h (exec_filename): New.
2479 * inferior.c (print_inferior, inferior_command): Use
2480 PSPACE_EXEC_FILENAME.
2481 * mi/mi-main.c (print_one_inferior): Likewise.
2482 * progspace.c (clone_program_space, print_program_space): Likewise.
2483 * progspace.h (struct program_space): New field pspace_exec_filename.
2484 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2485 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2486
59ee9f94
WN
24872013-08-28 Will Newton <will.newton@linaro.org>
2488
2489 * common/linux-ptrace.c: Include stdint.h unconditionally.
2490
c8a2a419
JK
24912013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2492
2493 Code cleanup.
2494 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2495
ffa4ac95
YQ
24962013-08-28 Yao Qi <yao@codesourcery.com>
2497 Pedro Alves <palves@redhat.com>
2498
2499 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2500 instead of stdio_fileopen.
2501 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2502 .Call stderr_fileopen instead of stdio_fileopen.
2503 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2504 [__MINGW32__] (stderr_file_fputs): New function.
2505 (stderr_fileopen): New function.
2506 * ui-file.h (stderr_fileopen): Declare.
2507
69d751e3
DE
25082013-08-27 Doug Evans <dje@google.com>
2509
2510 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2511 (struct dwarf2_per_cu_data): Ditto.
2512 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2513 (process_imported_unit_die): Ditto.
2514 (follow_die_sig_1): Simplify assert.
2515
44f38867
PA
25162013-08-27 Pedro Alves <palves@redhat.com>
2517
2518 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2519 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2520 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2521 windows_xfer_memory directly.
2522 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2523
d28d46b5
PA
25242013-08-27 Pedro Alves <palves@redhat.com>
2525
2526 * darwin-nat.c (darwin_xfer_memory): Delete.
2527 (_initialize_darwin_inferior): Don't install a
2528 deprecated_xfer_memory method.
2529
6211c335
YQ
25302013-08-27 Pedro Alves <pedro@codesourcery.com>
2531 Yao Qi <yao@codesourcery.com>
2532
2533 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2534 (parse_no_frames_option): Remove.
2535 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2536 (mi_cmd_stack_list_args): Adjust.
2537 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2538 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2539 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2540 Caller update.
2541 (list_args_or_locals): New parameter 'skip_unavailable'.
2542 Handle it.
2543 * valprint.c (scalar_type_p): Rename to ...
2544 (val_print_scalar_type_p): ... this. Make extern.
2545 (val_print, value_check_printable): Adjust.
2546 * valprint.h (val_print_scalar_type_p): Declare.
2547 * value.c (value_entirely_unavailable): New function.
2548 * value.h (value_entirely_unavailable): Declare.
2549
2550 * NEWS: Mention the new option "--skip-unavailable" to MI
2551 commands '-stack-list-locals', '-stack-list-arguments' and
2552 '-stack-list-variables'.
2553
242f1fd7
YQ
25542013-08-27 Yao Qi <yao@codesourcery.com>
2555
2556 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2557 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2558 options.
2559 * mi/mi-getopt.c (mi_getopt): Remove.
2560 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2561 'error_on_unknown'.
2562 (mi_getopt): Call mi_getopt_1.
2563 (mi_getopt_silent): New.
2564 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2565
260b681b
DE
25662013-08-26 Doug Evans <dje@google.com>
2567
779bd270
DE
2568 PR symtab/15885
2569 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2570 .gdb_index is in use.
2571 * symfile.c (reread_symbols): Reset objfile->sf.
2572
52e260a3
DE
2573 * NEWS: Document "mt print objfiles" now takes optional regexp.
2574 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2575 regexp of objfiles to print.
2576 (_initialize_symmisc): Update doc string for "mt print objfiles".
2577
260b681b
DE
2578 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2579 missing debug info checks.
2580
a85c52f2
UW
25812013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2582 Ulrich Weigand <uweigand@de.ibm.com>
2583
2584 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2585 line tables generated by XLC compiled binaries.
2586
4f00dda3
DE
25872013-08-23 Doug Evans <dje@google.com>
2588
db68bbae
DE
2589 * symmisc.c (dump_symtab): Delete prototype.
2590 (dump_msymbols, dump_objfile): Ditto.
2591 (maintenance_info_symtabs): Mark as dont_repeat.
2592 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2593
4f00dda3
DE
2594 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2595 debugging printf to better location.
2596
23d577b0
PA
25972013-08-23 Pedro Alves <palves@redhat.com>
2598
2599 * target.c (target_read_live_memory): Change type of 'ret' local
2600 to LONGEST.
2601
00d84524
PA
26022013-08-23 Pedro Alves <palves@redhat.com>
2603
2604 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2605 (remote_read_bytes): Change return type to LONGEST, and adjust to
2606 return a target_xfer_error on error.
2607 (remote_xfer_memory): Delete.
2608 (remote_flash_write): Change type of 'ret' local to LONGEST.
2609 (remote_xfer_partial, remote_xfer_partial): Adjust.
2610 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2611
1ed3ee94
PM
26122013-08-23 Pierre Muller <muller@sourceware.org>
2613
2614 ARI fix: Push # directives to start of line.
2615 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2616
9eaabc75
MW
26172013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2618
2619 PR gdb/15501
2620 * breakpoint.c (enable_command, disable_command): Iterate over
2621 all specified breakpoint locations.
2622
101158d9
LM
26232013-08-22 Luis Machado <lgustavo@codesourcery.com>
2624
2625 * common/linux-ptrace.c (linux_fork_to_function): Push #
2626 directives to the start of the line.
2627 (linux_check_ptrace_features): Fix warning message to use
2628 the "_" markup.
2629
96d7229d
LM
26302013-08-22 Luis Machado <lgustavo@codesourcery.com>
2631
2632 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2633 nat/linux-waitpid.h.
2634 (linux-waitpid.o): New object file rule.
2635 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2636 (current_ptrace_options): Moved from linux-nat.c.
2637 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2638 parameters.
2639 (linux_fork_to_function): New function.
2640 (linux_grandchild_function): Likewise.
2641 (linux_child_function): Likewise.
2642 (linux_check_ptrace_features): New function, heavily
2643 based on linux-nat.c:linux_test_for_tracefork.
2644 (linux_enable_event_reporting): New function.
2645 (ptrace_supports_feature): Likewise.
2646 (linux_supports_tracefork): Likewise.
2647 (linux_supports_traceclone): Likewise.
2648 (linux_supports_tracevforkdone): Likewise.
2649 (linux_supports_tracesysgood): Likewise.
2650 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2651 gdbserver/linux-low.c.
2652 (linux_enable_event_reporting): New declaration.
2653 (linux_supports_tracefork): Likewise.
2654 (linux_supports_traceclone): Likewise.
2655 (linux_supports_tracevforkdone): Likewise.
2656 (linux_supports_tracesysgood): Likewise.
2657 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2658 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2659 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2660 * config/arm/linux.mh (NATDEPFILES): Likewise.
2661 * config/i386/linux.mh (NATDEPFILES): Likewise.
2662 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2663 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2664 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2665 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2666 * config/mips/linux.mh (NATDEPFILES): Likewise.
2667 * config/pa/linux.mh (NATDEPFILES): Likewise..
2668 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2669 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2670 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2671 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2672 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2673 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2674 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2675 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2676 ptrace's 4th argument's types.
2677 Check the type of PTRACE_TYPE_ARG4.
2678 * configure: Regenerate.
2679 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2680 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2681 (linux_supports_tracefork_flag): Remove.
2682 (linux_supports_tracesysgood_flag): Likewise.
2683 (linux_supports_tracevforkdone_flag): Likewise.
2684 (current_ptrace_options): Moved to
2685 common/linux-ptrace.c.
2686 (linux_tracefork_child): Remove.
2687 (my_waitpid): Remove.
2688 (linux_test_for_tracefork): Renamed to
2689 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2690 (linux_test_for_tracesysgood): Remove.
2691 (linux_supports_tracesysgood): Remove.
2692 (linux_supports_tracefork): Remove.
2693 (linux_supports_tracevforkdone): Remove.
2694 (linux_enable_tracesysgood): Remove.
2695 (linux_enable_event_reporting): Remove.
2696 (linux_init_ptrace): New function.
2697 (linux_child_post_attach): Call linux_init_ptrace.
2698 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2699 (linux_child_follow_fork): Call linux_supports_tracefork
2700 and linux_supports_tracevforkdone.
2701 (linux_child_insert_fork_catchpoint): Call
2702 linux_supports_tracefork.
2703 (linux_child_insert_vfork_catchpoint): Likewise.
2704 (linux_child_set_syscall_catchpoint): Call
2705 linux_supports_tracesysgood.
2706 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2707 * nat/linux-nat.h: New file.
2708 * nat/linux-waitpid.c: New file.
2709 * nat/linux-waitpid.h: New file.
2710
9f948660
SDJ
27112013-08-22 Samuel Bronson <naesten@gmail.com>
2712
2713 ARM Linux support for `catch syscall'.
2714 * syscalls/arm-linux.py: New file.
2715 * syscalls/arm-linux.xml: Likewise.
2716 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2717 (arm_linux_init_abi): Register the new function and syscall xml file.
2718 * data-directory/Makefile.in: Install the new syscall xml file.
2719 * NEWS: Brag about this.
2720
6be7b56e
PA
27212013-08-22 Pedro Alves <palves@redhat.com>
2722
2723 PR gdb/15871
2724 * corefile.c (target_xfer_memory_error): New function.
2725 (memory_error): Defer EIO to target_memory_error.
2726 (read_memory): Use target_xfer_partial, and handle finer-grained
2727 target xfer errors.
2728 * target.c (target_xfer_error_to_string): New function.
2729 (memory_xfer_partial_1): If memory is known to be
2730 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2731 (target_xfer_partial): Make extern.
2732 * target.h (enum target_xfer_error): New enum.
2733 (target_xfer_error_to_string): Declare function.
2734 (target_xfer_partial): Declare function.
2735 (struct target_ops) <xfer_partial>: Adjust describing comment.
2736
bcbec14e
AM
27372013-08-22 Alan Modra <amodra@gmail.com>
2738
2739 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2740 * configure.tgt: Likewise as targets.
2741
fc474241
DE
27422013-08-20 Doug Evans <dje@google.com>
2743
2744 * buildsym.c (subfile_stack): Move here from buildsym.h.
2745 (pending_macros): Ditto.
2746 (get_macro_table): New function.
2747 (buildsym_init): Initialize subfile_stack.
2748 * coffread.c (type_vector,type_vector_length): Moved here from
2749 buildsym.h.
2750 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2751 (coff_symtab_read): Use it.
2752 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2753 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2754 with call to get_macro_table.
2755 * stabsread.c (type_vector,type_vector_length): Moved here from
2756 buildsym.h.
2757 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2758 * buildsym.h (get_macro_table): Declare.
2759
bec71544
TT
27602013-08-20 Tom Tromey <tromey@redhat.com>
2761
2762 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2763 Update.
2764 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2765
0002ad5f
DE
27662013-08-20 Doug Evans <dje@google.com>
2767
2768 * blockframe.c: Remove #include "psymtab.h".
2769 * cp-support.c: Ditto.
2770 * source.c: Ditto.
2771 * stack.c: Ditto.
2772
df302446
TT
27732013-08-20 Tom Tromey <tromey@redhat.com>
2774
2775 PR python/15816:
2776 * exceptions.h (return_mask): Now an enum.
2777 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2778 enum constants.
2779
df6d5441
TT
27802013-08-20 Tom Tromey <tromey@redhat.com>
2781
2782 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2783 get_objfile_arch.
2784 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2785 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2786 * jit.c (jit_object_close_impl): Update.
2787 * jv-lang.c (get_dynamics_objfile): Update.
2788 * linespec.c (add_minsym): Use get_dynamics_objfile.
2789 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2790 (allocate_objfile): Don't initialize 'gdbarch' field.
2791 (get_objfile_arch): Update.
2792 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2793 moved from...
2794 (struct objfile) <gdbarch>: ... here. Remove.
2795 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2796 get_objfile_arch.
2797 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2798
f5aee5ee
AM
27992013-08-20 Alan Modra <amodra@gmail.com>
2800
2801 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2802 for IBM long double nan and inf.
2803 (floatformat_is_negative, floatformat_classify,
2804 floatformat_mantissa): Similarly.
2805 (floatformat_ieee_single, floatformat_ieee_double,
2806 floatformat_ieee_quad, floatformat_arm_ext,
2807 floatformat_ia64_spill): Delete unused vars.
2808 (_initialize_doublest): Delete unused function.
2809 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2810 little-endian variants of floatformat_ibm_long_double.
2811
33b60d58 28122013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2813
33b60d58
LM
2814 * Makefile.in (SFILES): Remove common/target-common.c and
2815 add target/waitstatus.c.
2816 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2817 target/resume.h, target/wait.h and target/waitstatus.h.
2818 (COMMON_OBS): Remove target-common.o and add
2819 waitstatus.o.
2820 (target-common.o): Remove.
2821 (waitstatus.o): New target object file.
2822 * common/target-common.c: Move contents to
2823 target/waitstatus.c and remove.
2824 * common/target-common.h: Move contents to other files and
2825 remove.
2826 (enum resume_kind: Move to target/resume.h.
2827 (TARGET_WNOHANG): Move to target/wait.h.
2828 (enum target_waitkind): Move to target/waitstatus.h.
2829 (struct target_waitstatus): Likewise.
2830 * target.h: Do not include target-common.h and
2831 include target/resume.h, target/wait.h and
2832 target/waitstatus.h.
2833 * target/resume.h: New file.
2834 * target/wait.h: New file.
2835 * target/waitstatus.h: New file.
2836 * target/waitstatus.c: New file.
2837
12696c10
PA
28382013-08-19 Pedro Alves <palves@redhat.com>
2839
2840 * linux-nat.c (linux_test_for_tracefork)
2841 (linux_test_for_tracesysgood, linux_child_follow_fork)
2842 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2843 (linux_nat_wait_1): Extend comment.
2844 (linux_async_pipe): Add comment.
2845
ba89f962
KB
28462013-08-15 Kevin Buettner <kevinb@redhat.com>
2847
2848 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2849 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2850 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2851 Update to account for fact that PC is now a pseudo-register.
2852 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2853 cases for RL78_PC_REGNUM.
2854
35ab155d
MB
28552013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2856
2857 PR cli/15841
2858 * top.c (quit_force): Skip writing history file
2859 if input is not from terminal.
2860
0d031856
TT
28612013-08-14 Tom Tromey <tromey@redhat.com>
2862
2863 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2864 resultthreadlist>: New fields.
2865 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2866 (remote_get_threadlist, remote_threadlist_iterator): Use
2867 new fields. Remove static variables.
2868
ee154bee
TT
28692013-08-14 Tom Tromey <tromey@redhat.com>
2870
2871 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2872 remote_watch_data_address>: New fields.
2873 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2874 (process_stop_reply, remote_wait_as)
2875 (remote_check_watch_resources, remote_stopped_data_address): Update.
2876
88b496c3
TT
28772013-08-14 Tom Tromey <tromey@redhat.com>
2878
2879 * remote.c (struct remote_state) <async_client_callback,
2880 async_client_context>: New fields.
2881 (async_client_callback, async_client_context): Remove.
2882 (remote_async_serial_handler, remote_async): Update.
2883
2f65bcb7
TT
28842013-08-14 Tom Tromey <tromey@redhat.com>
2885
2886 * remote.c (sizeof_pkt): Remove.
2887 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2888
b80fafe3
TT
28892013-08-14 Tom Tromey <tromey@redhat.com>
2890
2891 * remote.c (struct remote_state) <use_threadinfo_query,
2892 use_threadextra_query>: New fields.
2893 (remote_threads_info, remote_threads_extra_info)
2894 (remote_open_1): Update.
2895
8e88304f
TT
28962013-08-14 Tom Tromey <tromey@redhat.com>
2897
2898 * remote.c (struct remote_state) <finished_object,
2899 finished_annex, finished_offset>: New fields.
2900 (remote_read_qxfer): Use remote_state fields; remove static
2901 variables.
2902
280ceea3
TT
29032013-08-14 Tom Tromey <tromey@redhat.com>
2904
2905 * remote.c (struct remote_state) <last_sent_step>:
2906 New field.
2907 (last_sent_step): Remove.
2908 (remote_resume, remote_wait_as): Update.
2909
b73be471
TT
29102013-08-14 Tom Tromey <tromey@redhat.com>
2911
2912 * remote.c (struct remote_state) <last_sent_signal>:
2913 New field.
2914 (last_sent_signal): Remove.
2915 (new_remote_state, remote_resume, remote_wait_as): Update.
2916
5e4a05c4
TT
29172013-08-14 Tom Tromey <tromey@redhat.com>
2918
2919 * remote.c (struct remote_state) <last_program_signals_packet>:
2920 New field.
2921 (last_program_signals_packet): Remove.
2922 (remote_program_signals, remote_open_1): Update.
2923
747dc59d
TT
29242013-08-14 Tom Tromey <tromey@redhat.com>
2925
2926 * remote.c (struct remote_state) <last_pass_packet>:
2927 New field.
2928 (last_pass_packet): Remove.
2929 (remote_pass_signals, remote_open_1): Update.
2930
262e1174
TT
29312013-08-14 Tom Tromey <tromey@redhat.com>
2932
2933 * remote.c (struct remote_state) <remote_traceframe_number>:
2934 New field.
2935 (remote_traceframe_number): Remove.
2936 (new_remote_state, remote_open_1, set_remote_traceframe)
2937 (remote_trace_find): Update.
2938
47f8a51d
TT
29392013-08-14 Tom Tromey <tromey@redhat.com>
2940
2941 * remote.c (struct remote_state) <general_thread, continue_thread>:
2942 New fields.
2943 (general_thread, continue_thread): Remove.
2944 (record_currthread, set_thread, set_general_process)
2945 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2946 (extended_remote_mourn_1): Update.
2947
5d93a237
TT
29482013-08-14 Tom Tromey <tromey@redhat.com>
2949
2950 * remote.c (struct remote_state) <remote_desc>: New field.
2951 (remote_desc): Remove.
2952 (remote_threads_info, remote_threads_extra_info, remote_close)
2953 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2954 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2955 (remote_hostio_send_command, remote_file_put, remote_file_get)
2956 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2957 (remote_async, remote_new_objfile, set_range_stepping): Update.
2958
cf792862
TT
29592013-08-14 Tom Tromey <tromey@redhat.com>
2960
2961 * remote.c (remote_state): Now a pointer.
2962 (get_remote_state_raw): Update.
2963 (new_remote_state): New function.
2964 (_initialize_remote): Use new_remote_state.
2965
dc473cfb
TT
29662013-08-14 Tom Tromey <tromey@redhat.com>
2967
2968 * remote.c (remote_protocol_features): Now const.
2969
85ec6ce7
TT
29702013-08-14 Tom Tromey <tromey@redhat.com>
2971
2972 * remote.c (crc32_table, crc32): Remove.
2973 (remote_verify_memory): Use xcrc32.
2974
73033f12
SDJ
29752013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2976
2977 * value.h (create_internalvar_type_lazy): Adjust prototype
2978 declaration.
2979
5c30d39a
AB
29802013-08-13 Andrew Burgess <aburgess@broadcom.com>
2981
2982 * common/format.c (parse_format_string): Don't allow '#' flag for
2983 pointer arguments in format string.
2984
1a66331e
PM
29852013-08-13 Pierre Muller <muller@sourceware.org>
2986
fde605f3 2987 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2988 if rl_get_screen_size did not return useful values.
2989
b4013987
AA
29902013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2991
2992 PR breakpoints/15117
2993 * linespec.c (linespec_parse_basic): Check for convenience
2994 variable or history value while parsing.
2995
959b6a66
SDJ
29962013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2997
2998 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2999 AVR.
3000 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3001 different signals between the generic Linux kernel implementation
3002 and AVR's.
3003 (avr_linux_gdb_signal_from_target): Delete.
3004 (avr_linux_gdb_signal_to_target): Delete.
3005 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3006
24a55014
DE
30072013-08-09 Doug Evans <dje@google.com>
3008
3009 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3010 entries.
3011
eb14d406
SDJ
30122013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3013
3014 * linux-tdep.c: Define enum with generic signal numbers.
3015 (linux_gdb_signal_from_target): New function.
3016 (linux_gdb_signal_to_target): Likewise.
3017 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3018 methods to the functions above.
3019 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3020 (linux_gdb_signal_to_target): Likewise.
3021 * alpha-linux-tdep.c: Define new enum with signals different
3022 from generic Linux kernel.
3023 (alpha_linux_gdb_signal_from_target): New function.
3024 (alpha_linux_gdb_signal_to_target): Likewise.
3025 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3026 with the functions mentioned above.
3027 * avr-tdep.c: Define enum with differences between Linux kernel
3028 and AVR signals.
3029 (avr_linux_gdb_signal_from_target): New function.
3030 (avr_linux_gdb_signal_to_target): Likewise.
3031 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3032 the functions mentioned above.
3033 * sparc-linux-tdep.c: Define enum with differences between SPARC
3034 and generic Linux kernel signal numbers.
3035 (sparc32_linux_gdb_signal_from_target): New function.
3036 (sparc32_linux_gdb_signal_to_target): Likewise.
3037 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3038 to the functions defined above.
3039 * xtensa-linux-tdep.c: Define enum with differences between
3040 Xtensa and Linux kernel generic signals.
3041 (xtensa_linux_gdb_signal_from_target): New function.
3042 (xtensa_linux_gdb_signal_to_target): Likewise.
3043 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3044 to the functions defined above.
3045 * mips-linux-tdep.c: Define enum with differences between
3046 signals in MIPS and Linux kernel generic ones.
3047 (mips_gdb_signal_to_target): New function.
3048 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3049 only different signals from the Linux kernel generic.
3050 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3051 the functions defined above.
3052 * mips-linux-tdep.h (enum mips_signals): Remove.
3053
156d08c8
PA
30542013-08-09 Pedro Alves <palves@redhat.com>
3055
3056 * avr-tdep.c (XMALLOC): Delete macro.
3057 * cli/cli-dump.c (XMALLOC): Delete macro.
3058
db229724
PA
30592013-08-09 Pedro Alves <palves@redhat.com>
3060
3061 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3062 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3063 (fopen_with_cleanup, add_dump_command): Make static.
3064 * cli/cli-dump.h: Delete file.
3065 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3066 cli/cli-dump.h.
3067
3f12a589
PA
30682013-08-09 Pedro Alves <palves@redhat.com>
3069
3070 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3071 error message.
3072
c718be47
PA
30732013-08-09 Pedro Alves <palves@redhat.com>
3074
156d08c8 3075 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
3076 error message.
3077
1e351ed1
PA
30782013-08-09 Pedro Alves <palves@redhat.com>
3079
3080 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3081 (gcore_command): Use tilde_expand here, and when showing the
3082 filename to the user, show the expanded version.
3083
1ed8d800
YQ
30842013-08-09 Yao Qi <yao@codesourcery.com>
3085
3086 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3087 'entryval' is set.
3088
47ecca85
PA
30892013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3090
3091 * gcore.c (create_gcore_bfd): Use tilde_expand.
3092
82a0a75f
YQ
30932013-08-08 Yao Qi <yao@codesourcery.com>
3094
3095 * frame.h (read_frame_local): Declare.
3096 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3097 read_frame_local.
3098 * stack.c (read_frame_local): New.
3099
5c4aa40b
YQ
31002013-08-08 Yao Qi <yao@codesourcery.com>
3101
3102 * mi/mi-cmd-stack.c: Update comments to function
3103 list_args_or_locals.
3104
b93601f3
TT
31052013-08-07 Tom Tromey <tromey@redhat.com>
3106
3107 PR symtab/15028:
3108 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3109 (process_psymtab_comp_unit_reader): Use it.
3110 (process_psymtab_comp_unit): Update. Add "pretend_language"
3111 argument.
3112 (dwarf2_build_psymtabs_hard): Update.
3113 (scan_partial_symbols): Pass CU's language to
3114 process_psymtab_comp_unit.
3115
fa760f46
TT
31162013-08-07 Tom Tromey <tromey@redhat.com>
3117
3118 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3119 (dwarf2_gdb_index_functions): Update.
3120 * psymtab.c (find_symbol_file_from_partial): Remove.
3121 (psym_functions): Update.
3122 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3123 Remove.
3124
bf6d8a91
TT
31252013-08-07 Tom Tromey <tromey@redhat.com>
3126
3127 * symfile.c (set_initial_language): Look up "main" symbol
3128 and use its language.
3129 * symtab.c (find_main_filename): Remove.
3130 * symtab.h (find_main_filename): Remove.
3131
f9125b6c
TT
31322013-08-07 Tom Tromey <tromey@redhat.com>
3133
3134 * dwarf2read.c (recursively_compute_inclusions): Add
3135 "immediate_parent" argument. Set symtab's "user" field
3136 if not set.
3137 (compute_symtab_includes): Update.
3138
fdbb204b
TT
31392013-08-07 Tom Tromey <tromey@redhat.com>
3140
3141 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3142 when adding label symbols.
3143
49de1690
UW
31442013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3145 Ulrich Weigand <uweigand@de.ibm.com>
3146
3147 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3148 * configure.host (powerpc64-*-aix*): Likewise.
3149
b08ee99f
UW
31502013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3151 Ulrich Weigand <uweigand@de.ibm.com>
3152
3153 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3154 is defined.
3155 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3156 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3157 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3158 * configure.ac: Check for ptrace64.
3159 * configure, config.in: Regenerate.
3160
fecf803e
UW
31612013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3162 Ulrich Weigand <uweigand@de.ibm.com>
3163
3164 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3165 Call ptrace64 instead of ptrace if defined.
3166 Add macro addr_ptr to take care of ptrace address argument.
3167 (pdc_read_regs): Likewise.
3168 (pdc_write_regs): Likewise.
3169 (aix_thread_resume): Likewise.
3170 (fetch_regs_kernel_thread): Likewise.
3171 (store_regs_kernel_thread): Likewise.
3172
3bb5e4a8
AB
31732013-08-07 Anton Blanchard <anton@samba.org>
3174
3175 * MAINTAINERS: Add myself to Write After Approval.
3176
12070676
TT
31772013-08-05 Tom Tromey <tromey@redhat.com>
3178
3179 * aix-thread.c (_initialize_aix_thread): Use
3180 complete_target_initialization.
3181 * bsd-uthread.c (_initialize_bsd_uthread): Use
3182 complete_target_initialization.
3183 * dec-thread.c (_initialize_dec_thread): Use
3184 complete_target_initialization.
3185 * ravenscar-thread.c (_initialize_ravenscar): Use
3186 complete_target_initialization.
3187 * sol-thread.c (_initialize_sol_thread): Use
3188 complete_target_initialization.
3189 * spu-multiarch.c (_initialize_spu_multiarch): Use
3190 complete_target_initialization.
3191
7c7b6655
TT
31922013-08-05 Tom Tromey <tromey@redhat.com>
3193
3194 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3195 * ada-lang.c (ada_lookup_simple_minsym): Return
3196 bound_minimal_symbol.
3197 * ada-lang.h (ada_lookup_simple_minsym): Update.
3198 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3199 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3200 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3201 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3202 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3203 * minsyms.c (msymbol_objfile): Remove.
3204 (lookup_minimal_symbol_internal): New function, from
3205 lookup_minimal_symbol.
3206 (lookup_minimal_symbol): Rewrite using
3207 lookup_minimal_symbol_internal.
3208 (lookup_bound_minimal_symbol): New function.
3209 * minsyms.h (msymbol_objfile): Remove.
3210 (lookup_bound_minimal_symbol): Declare.
3211 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3212 * parse.c (write_exp_msymbol): Change parameter to a
3213 bound_minimal_symbol.
3214 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3215 * parser-defs.h (write_exp_msymbol): Update.
3216 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3217 * symfile.c (simple_read_overlay_table): Use
3218 lookup_bound_minimal_symbol.
3219 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3220 (search_symbols): Likewise.
3221 (print_msymbol_info): Take a bound_minimal_symbol argument.
3222 (symtab_symbol_info, rbreak_command): Update.
3223 * symtab.h (struct symbol_search) <msymbol>: Change type
3224 to bound_minimal_symbol.
3225 * valops.c (find_function_in_inferior): Use
3226 lookup_bound_minimal_symbol.
3227 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3228
934b9bac
JK
32292013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3230
3231 Code cleanup.
3232 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3233 to ...
3234 (async_cleanup_sigint_signal_handler): ... this.
3235 (initialize_sigint_signal_handler): Remove declaration.
3236 (handle_remote_sigint): Rename the declaration to ...
3237 (async_handle_remote_sigint): ... this.
3238 (handle_remote_sigint_twice): Rename the declaration to ...
3239 (async_handle_remote_sigint_twice): ... this.
3240 (async_remote_interrupt, async_remote_interrupt_twice)
3241 (remote_interrupt): Remove the declarations.
3242 (remote_interrupt_twice): Rename the declaration ...
3243 (sync_remote_interrupt_twice): ... this.
3244 (sigint_remote_twice_token): Rename the variable to ...
3245 (async_sigint_remote_twice_token): ... this.
3246 (sigint_remote_token): Rename the variable to ...
3247 (async_sigint_remote_token): ... this.
3248 (initialize_sigint_signal_handler): Rename the function to ...
3249 (async_initialize_sigint_signal_handler): ... this. Update the name
3250 inside.
3251 (handle_remote_sigint): Rename the function to ...
3252 (async_handle_remote_sigint): ... this. Update the names inside.
3253 (handle_remote_sigint_twice): Rename the function to ...
3254 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3255 (cleanup_sigint_signal_handler): Rename the function to ...
3256 (async_cleanup_sigint_signal_handler): ... this.
3257 (remote_interrupt): Rename the function to ...
3258 (sync_remote_interrupt): this. Update the names inside.
3259 (remote_interrupt_twice): Rename the function to ...
3260 (sync_remote_interrupt_twice): this. Update the names inside.
3261 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3262 (_initialize_remote): Update the names inside.
3263
3a1115a0
TT
32642013-08-02 Tom Tromey <tromey@redhat.com>
3265
3266 PR symtab/15719:
3267 * breakpoint.c (update_watchpoint, watchpoint_check)
3268 (watch_command_1): Update.
3269 * eval.c (fetch_subexp_value): Add "preserve_errors"
3270 parameter.
3271 * ppc-linux-nat.c (check_condition): Update.
3272 * value.h (fetch_subexp_value): Update.
3273
58b19776
AB
32742013-08-02 Andrew Burgess <aburgess@broadcom.com>
3275
3276 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3277 add_file_handler.
3278
ec94af83
DE
32792013-08-01 Doug Evans <dje@google.com>
3280
7ee85ab1
DE
3281 PR symtab/15691
3282 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3283 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3284 Add assert of sig_entry->dwo_unit == NULL.
3285 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3286 had already been read.
3287 (read_signatured_type): Set per_cu.tu_read.
3288
b846d303
DE
3289 PR symtab/15695
3290 * valops.c (value_struct_elt): Add missing call to check_typedef.
3291 (value_find_oload_method_list): Ditto.
3292
b52109bc
DE
3293 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3294 effectively, struct symbol_search **.
3295 (make_cleanup_free_search_symbols): Change arg to struct
3296 symbol_search **. All callers updated.
3297 (compare_search_syms): Compare symtab file name and block as well.
3298 (search_symbols_equal): New function.
3299 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3300 New args new_head, new_tail. Result is now void. Remove dups after
3301 sorting the symbols.
3302 (search_symbols): Sort all found symbols once, after all have been
3303 found, and remove duplicates. Simplify cleanup tracking of result.
3304 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3305
ec94af83
DE
3306 Further workarounds for binutils/15021.
3307 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3308 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3309 Watch for duplicate symtabs coming from type units.
3310 (compute_symtab_includes): Update call to
3311 recursively_compute_inclusions. Build vector of included symtabs
3312 instead of per_cus.
3313 * symtab.h (symtab_ptr): New typedef.
3314 (DEF_VEC_P (symtab_ptr)): New VEC type.
3315 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3316 instead.
3317
b2ae85cf
AB
33182013-08-01 Andrew Burgess <aburgess@broadcom.com>
3319
3320 * cli/cli-script.c (script_from_file): Remove use of
3321 error_pre_print.
3322 * main.c (captured_main): Remove use of error_pre_print and
3323 quit_pre_print.
3324 * utils.c (error_pre_print, quit_pre_print): Remove.
3325 * utils.h (error_pre_print, quit_pre_print): Likewise.
3326
645eab03
YQ
33272013-08-01 Yao Qi <yao@codesourcery.com>
3328
3329 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3330 with mi_getopt.
3331 (mi_cmd_stack_list_variables): Likewise.
3332
16f92dd4
AB
33332013-07-31 Andrew Burgess <aburgess@broadcom.com>
3334
3335 * exceptions.c (deprecated_throw_reason): Remove.
3336 * exceptions.h (deprecated_throw_reason): Remove.
3337
13f78033
AB
33382013-07-31 Andrew Burgess <aburgess@broadcom.com>
3339
3340 * remote-mips.c (mips_error): Replace use of
3341 deprecated_throw_reason with throw_verror. Use the error message
3342 passed to mips_error as the error message for throw_verror.
3343
039e3c22
AB
33442013-07-31 Andrew Burgess <aburgess@broadcom.com>
3345
3346 * monitor.c (monitor_interrupt_query): Replace use of
3347 deprecated_throw_reason with quit.
3348 * nto-procfs.c (interrupt_query): Likewise.
3349 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3350 * remote-mips.c (mips_kill): Likewise.
3351 * remote.c (interrupt_query): Likewise.
3352
8150913b
AB
33532013-07-31 Andrew Burgess <aburgess@broadcom.com>
3354
3355 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3356 with call to fatal.
3357
de74e63a
YQ
33582013-07-31 Pedro Alves <pedro@codesourcery.com>
3359 Yao Qi <yao@codesourcery.com>
3360
3361 * tracepoint.c (trace_dump_command): Select the current frame.
3362
247f5c4f
DE
33632013-07-30 Doug Evans <dje@google.com>
3364
3365 * dwarf2read.c (process_queue): Add type signature to debug output.
3366
11b4b7cc
AB
33672013-07-30 Andrew Burgess <aburgess@broadcom.com>
3368
3369 * value.c (value_fetch_lazy): Mark optimized out values as such
3370 rather than raising an error.
3371
b0c54aa5
AB
33722013-07-30 Andrew Burgess <aburgess@broadcom.com>
3373
3374 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3375 before checking which bits of the parent, not the child, value are
3376 valid.
3377
97c85fc6
MB
33782013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3379
3380 PR gdb/15715
3381 * top.c: Include "filenames.h".
3382 (set_history_filename): New function.
3383 (init_main): Install it as set hook of the "set history filename"
3384 command.
3385
ff39bb5e
SA
33862013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3387
3388 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3389 attribute parameter.
3390 (dwarf2_const_value_data): Constify struct attribute parameter.
3391 (dwarf2_const_value): Constify struct attribute parameter.
3392 (dwarf2_const_value_attr): Constify struct attribute parameter.
3393 (lookup_die_type): Constify struct attribute parameter.
3394 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3395 (follow_die_ref_or_sig): Constify struct attribute parameter.
3396 (follow_die_ref): Constify struct attribute parameter.
3397 (follow_die_sig): Constify struct attribute parameter.
3398 (get_DW_AT_signature_type): Constify struct attribute parameter.
3399 (get_type_unit_group): Constify struct attribute parameter.
3400 (fill_in_loclist_baton): Constify struct attribute parameter.
3401 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3402 (type_unit_group): Constify struct attribute parameter.
3403
6e5a29e1
SA
34042013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3405
3406 * dwarf2read.c (attr_form_is_block): Make argument const.
3407 (attr_form_is_section_offset): Make argument const.
3408 (attr_form_is_constant): Make argument const.
3409 (attr_form_is_ref): Make argument const.
3410
7771576e
SA
34112013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3412
3413 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3414 All uses updated.
3415 (attr_form_is_ref): Moved below attr_form_is_constant.
3416
a94e8645
DE
34172013-07-29 Doug Evans <dje@google.com>
3418
bb5291d0
DE
3419 * main.c (captured_command_loop): Tweak comment.
3420
b5419e49
DE
3421 * target.c (target_async_permitted_1): Fix comment.
3422
b2d23133
DE
3423 * symtab.c (iterate_over_some_symtabs): Add comment.
3424
a94e8645
DE
3425 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3426
7a60ad40
YQ
34272013-07-27 Yao Qi <yao@codesourcery.com>
3428
3429 * NEWS: Mention that GDBserver now supports hardware
3430 watchpoints on the MIPS GNU/Linux target.
3431
aaee2056
YQ
34322013-07-27 Yao Qi <yao@codesourcery.com>
3433
3434 * Makefile.in (HFILES_NO_SRCDIR): Add
3435 common/mips-linux-watch.h.
3436 (mips-linux-watch.o): New rule.
3437 * common/mips-linux-watch.c: New.
3438 * common/mips-linux-watch.h: New.
3439 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3440 * mips-linux-nat.c: Include mips-linux-watch.h.
3441 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3442 to common/mips-linux-watch.h.
3443 (MAX_DEBUG_REGISTER): Likewise.
3444 (enum pt_watch_style): Likewise.
3445 (struct mips32_watch_regs): Likewise.
3446 (struct mips64_watch_regs): Likewise.
3447 (struct pt_watch_regs): Likewise.
3448 (struct mips_watchpoint): Likewise.
3449 (mips_linux_watch_get_irw_mask): Move to
3450 common/mips-linux-watch.c.
3451 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3452 (mips_linux_watch_get_watchlo): Likewise.
3453 (mips_linux_watch_set_watchlo): Likewise.
3454 (mips_linux_watch_get_watchhi): Likewise.
3455 (mips_linux_watch_set_watchhi): Likewise.
3456 (mips_linux_read_watch_registers): Likewise.
3457 (mips_linux_watch_type_to_irw): Likewise.
3458 (mips_linux_stopped_data_address, fill_mask): Likewise.
3459 (mips_linux_watch_try_one_watch): Likewise.
3460 (mips_linux_watch_populate_regs): Likewise.
3461
b3436450
YQ
34622013-07-27 Yao Qi <yao@codesourcery.com>
3463
3464 * mips-linux-nat.c (get_irw_mask): Rename to ...
3465 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3466 'set' to 'n'. Update function comment. All callers changed.
3467 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3468 function comment. All callers changed.
3469 (get_num_valid): Rename to ...
3470 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3471 'set' to 'n'. Update function comment. All callers changed.
3472 (get_watchlo): Rename to ...
3473 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3474 'set' to 'n'. Update function comment. All callers changed.
3475 (set_watchlo): Rename to ...
3476 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3477 'set' to 'n'. Update function comment. All callers changed.
3478 (get_watchhi): Rename to ...
3479 (mips_linux_watch_get_watchhi): ... this. Update function
3480 comment. All callers changed.
3481 (set_watchhi): Rename to ...
3482 (mips_linux_watch_set_watchhi): ... this. Update function
3483 comment. All callers changed.
3484 (mips_linux_read_watch_registers): Update function comment.
3485 Add new parameters 'lwpid', 'watch_readback', and
3486 'watch_readback_valid'. Update.
3487 (type_to_irw): Rename to ...
3488 (mips_linux_watch_type_to_irw): ... this. Update function
3489 comment. All callers changed.
3490 (fill_mask): Update function comment.
3491 (try_one_watch): Rename to ...
3492 (mips_linux_watch_try_one_watch): ... this. Change the type
3493 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3494 (populate_regs_from_watches): Rename to ...
3495 (mips_linux_watch_populate_regs): ... this. Add parameter
3496 'current_watches'. All callers changed.
3497
9be14b81
YQ
34982013-07-27 Yao Qi <yao@codesourcery.com>
3499
3500 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3501 the code.
3502 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3503 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3504 (struct pt_watch_regs): Likewise.
3505 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3506 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3507 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3508 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3509 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3510
de6f69ad
YQ
35112013-07-27 Yao Qi <yao@codesourcery.com>
3512
3513 * breakpoint.h: Include break-common.h.
3514 (enum target_hw_bp_type): Move to ...
3515 * common/break-common.h: ... here. New.
3516
6f64ef53
PA
35172013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3518
3519 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3520 process group regardless of having tty on stdin.
3521
6107e809
DE
35222013-07-25 Doug Evans <dje@google.com>
3523
3524 * linux-fork.h (detach_fork): Delete.
3525
7fdc1521
TT
35262013-07-25 Tom Tromey <tromey@redhat.com>
3527
3528 PR remote/15256, PR remote/15266:
3529 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3530 * monitor.c (monitor_detach): Use unpush_target.
3531 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3532 * remote-mips.c (mips_detach): Use unpush_target. Don't
3533 call mips_close.
3534 * remote-sim.c (gdbsim_detach): Use unpush_target.
3535 * target.c (pop_target): Remove.
3536 (pop_all_targets_above): Don't call target_close.
3537 (target_close): Assert that the target is unpushed.
3538 * target.h (pop_target): Don't declare.
3539 * tracepoint.c (tfile_open): Use unpush_target.
3540
c22a2b88
TT
35412013-07-25 Tom Tromey <tromey@redhat.com>
3542
3543 * linux-thread-db.c (init_thread_db_ops): Call
3544 complete_target_initialization.
3545 (_initialize_thread_db): Don't call add_target.
3546 * target.c (complete_target_initialization): New function.
3547 (add_target_with_completer): Call it.
3548 * target.h (complete_target_initialization): Declare.
3549
cbb6aada
MK
35502013-07-25 Mark Kettenis <kettenis@gnu.org>
3551
3552 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3553 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3554 (HPPANBSD_SIZEOF_GREGS): New define.
3555 (hppaobsd_supply_gregset): Handle additional registers.
3556 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3557 we provide more registers now.
3558 (hppabsd_supply_gregset): Supply additional registers.
3559 (hppabsd_collect_gregset): Collect additional registers.
3560
17767988
MK
35612013-07-25 Mark Kettenis <kettenis@gnu.org>
3562
3563 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3564 (hppabsd_dwarf2_frame_init_reg): New function.
3565 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3566
fdc8aae8
AB
35672013-07-25 Andrew Burgess <aburgess@broadcom.com>
3568
3569 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3570 'z' format code. Remove error for optimized out values, standard
3571 code will handle these fine.
3572
6fbe845e
AB
35732013-07-25 Andrew Burgess <aburgess@broadcom.com>
3574
3575 * NEWS: Mention new 'z' formatter.
3576 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3577 (_initialize_printcmd): Mention 'z' formatter in help text of the
3578 'x' command.
3579
3373342d
MR
35802013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3581
3582 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3583 formatting.
3584
25f9533e
SDJ
35852013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3586
3587 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3588 interface can evaluate arguments. Fallback to the old mode if it
3589 cannot.
3590 (create_exception_master_breakpoint): Likewise.
3591 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3592 (struct sym_probe_fns elf_probe_fns): Export function above to the
3593 probe interface.
3594 * probe.c (can_evaluate_probe_arguments): New function.
3595 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3596 function pointer.
3597 (can_evaluate_probe_arguments): New function prototype.
3598 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3599 probe interface can evaluate arguments. Fallback to the old mode
3600 if it cannot.
3601 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3602 interface can evaluate arguments. Warning the user if it cannot.
3603 (stap_can_evaluate_probe_arguments): New function.
3604 (struct probe_ops stap_probe_ops): Export function above to the
3605 probe interface.
3606 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3607 New function pointer.
3608
3360c0bf
LM
36092013-07-24 Luis Machado <lgustavo@codesourcery.com>
3610
3611 * Makefile.in (SFILES): Add common/target-common.c.
3612 Add common/target-common.h to headers.
3613 (COMMON_OBS): Add target-common.o.
3614 (target-common.o): New target.
3615 * linux-nat.h (resume_kind): Move to common/target-common.h.
3616 * target.c (target_waitstatus_to_string): Move to
3617 common/target-common.c.
3618 * target.h: Include target-common.h.
3619 (target_waitkind): Move to common/target-common.h.
3620 (target_waitstatus): Likewise.
3621 (TARGET_WNOHANG): Likewise.
3622 * common/target-common.c: New file.
3623 * common/target-common.h: New file.
3624
6656a72d
DE
36252013-07-24 Doug Evans <dje@google.com>
3626
3627 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3628 a warning.
3629
6df81a63
YQ
36302013-07-23 Yao Qi <yao@codesourcery.com>
3631
3632 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3633 parameter 'gdbarch'.
3634 (i386_stack_tramp_frame_sniffer): Caller update.
3635 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3636 parameter 'gdbarch' and 'target'.
3637 (i386_linux_core_read_description): Caller update.
3638 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3639 Likewise.
3640 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3641 declaration.
3642
365156ad
TT
36432013-07-23 Tom Tromey <tromey@redhat.com>
3644
3645 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3646 2013-07-22.
3647
046ac79f
JK
36482013-07-22 Doug Evans <dje@google.com>
3649
3650 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3651 * exec.c (exec_close): Update call to remove_target_sections.
3652 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3653 * solib.c (update_solib_list): Ditto.
3654 (reload_shared_libraries_1): Ditto.
3655 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3656 * target.h (struct target_section): Rename key to owner.
3657 All uses updated.
046ac79f 3658
29b2cc46
TT
36592013-07-22 Tom Tromey <tromey@redhat.com>
3660
3661 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3662
d1160018
TT
36632013-07-22 Tom Tromey <tromey@redhat.com>
3664
3665 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3666 Simplify cleanup handling.
3667
2f324bf6
TT
36682013-07-22 Tom Tromey <tromey@redhat.com>
3669
3670 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3671 on all return paths.
3672
e23b9d6e
UW
36732013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3674
3675 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3676 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3677 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3678
1cf55f60
PM
36792013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3680
3681 * top.c (print_gdb_version): Add help, apropos description and
3682 url to online documentation.
3683
fa876972
HZ
36842013-07-19 Hui Zhu <hui@codesourcery.com>
3685
3686 PR gdb/15692
3687 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3688
1527aea8
YQ
36892013-07-19 Yao Qi <yao@codesourcery.com>
3690
3691 * target.c (update_current_target): Change the default action
3692 of 'to_traceframe_info' from tcomplain to return_zero.
3693 * target.h (struct target_ops) <to_traceframe_info>: Add more
3694 comments.
3695 * valops.c (read_value_memory): Call
3696 traceframe_available_memory unconditionally.
3697
886f230e
YQ
36982013-07-18 Yao Qi <yao@codesourcery.com>
3699
3700 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3701 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3702 symbol without prefix. If found, set its type to
3703 'mst_solib_trampoline'.
3704
16419bae
DE
37052013-07-17 Doug Evans <dje@google.com>
3706
e7045703
DE
3707 * NEWS: Mention "set print raw frame-arguments".
3708 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3709 * stack.c (print_raw_frame_arguments): New static global.
3710 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3711 (_initialize_stack): New command "set/show print raw frame-arguments".
3712 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3713 (set_print_raw, show_print_raw): New functions.
3714 (_initialize_valprint): New prefix command "set/show print raw".
3715 * valprint.h (value_print_options): Improve comments.
3716
453e48a5
DE
3717 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3718 of all *list variables.
3719
16419bae
DE
3720 * gdbcmd.h (togglelist): Delete.
3721 * cli/cli-cmds.c (togglelist): Delete.
3722 (init_cmd_lists): Update.
3723 * cli/cli-cmds.h (togglelist): Delete.
3724
626f2d1c
TT
37252013-07-17 Tom Tromey <tromey@redhat.com>
3726
3727 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3728 dwarf2_per_objfile.
3729
57e6060e
DE
37302013-07-16 Doug Evans <dje@google.com>
3731
3732 * nto-tdep.c (nto_relocate_section_addresses): Update,
3733 target_section.bfd deleted.
3734 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3735 * s390-tdep.c (s390_load): Ditto.
3736 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3737
5ea5559b
AB
37382013-07-16 Andrew Burgess <aburgess@broadcom.com>
3739
3740 * common/format.c (parse_format_string): Add checks for NULL
3741 character before calling strchr.
3742
2b2848e2
DE
37432013-07-16 Doug Evans <dje@google.com>
3744
2c571006
DE
3745 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3746 temp_pathname argument.
3747 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3748 when opening the file fails.
3749
2b2848e2
DE
3750 * target.h (struct target_section): Delete member bfd.
3751 All users updated to use the_bfd_section->owner instead.
3752 * exec.c (add_to_section_table): Assert bfd is expected value.
3753 Remove initialization of target_section.bfd.
3754 (remove_target_sections): Update.
3755 (section_table_available_memory): Update.
3756 (section_table_xfer_memory_partial): Update.
3757 (print_section_info): Update.
3758 (exec_set_section_address): Update.
3759 * record-full.c (record_full_core_xfer_partial): Update.
3760 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3761 * solib-target.c (solib_target_relocate_section_addresses): Update.
3762 * symfile.c (build_section_addr_info_from_section_table): Update.
3763 * target.c (memory_xfer_live_readonly_partial): Update.
3764 (memory_xfer_partial_1): Update.
3765
926bf92d
UW
37662013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3767
3768 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3769 now available for embedded (BookE) and server (BookS) processors,
3770 correct mentions of 'booke' and adjust comments accordingly in order to
3771 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3772 (have_ptrace_booke_interface): Rename function and variable
3773 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3774 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3775 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3776 'hwdebug_point_cmp'. Update all uses.
3777 (booke_find_thread_points_by_tid): Rename function
3778 'booke_find_thread_points_by_tid' to
3779 'hwdebug_find_thread_points_by_tid'. Update all uses.
3780 (booke_insert_point): Rename function 'booke_insert_point' to
3781 'hwdebug_insert_point'. Update all uses.
3782 (booke_remove_point): Rename function 'booke_remove_point' to
3783 'hwdebug_remove_point'. Update all uses.
3784
d929bc19
MR
37852013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3786
3787 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3788 numbers with enum values.
3789
054e8d9e
AA
37902013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3791
3792 PR threads/13217
3793 * thread.c (thread_apply_all_command): Check for valid threads
3794 and thread count.
3795 (thread_array_cleanup): New struct.
3796 (set_thread_refcount): New function.
3797
cf006359
AB
37982013-07-11 Andrew Burgess <aburgess@broadcom.com>
3799
3800 * infcmd.c (default_print_one_register_info): Reuse function
3801 print_hex_chars.
3802
94e36acc
TT
38032013-07-10 Tom Tromey <tromey@redhat.com>
3804
3805 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3806 (ada-exp.o): New target.
3807
915dd369
SDJ
38082013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3809
3810 * mt-tdep.c (mt_registers_info): Call
3811 get_no_prettyformat_print_options instead of
3812 get_raw_print_options (regression by last patch from Doug
3813 Evans).
3814
eca07816
JB
38152013-07-09 Pedro Alves <palves@redhat.com>
3816
3817 Checked in by Joel Brobecker <brobecker@adacore.com>.
3818 * ada-lang.c (coerce_unspec_val_to_type): Use
3819 value_optimized_out_const.
3820 * value.c (value_optimized_out_const): New function.
3821 * value.h (value_optimized_out_const): New declaration.
3822
2a998fc0
DE
38232013-07-09 Doug Evans <dje@google.com>
3824
3825 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3826 Enum values rename as well. All uses updated.
3827 * valprint.h (value_print_options): Rename member pretty to
3828 pretty format. Rename member prettyprint_arrays to
3829 prettyformat_arrays. Rename member prettyprint_structs to
3830 prettyformat_structs. All uses updated.
3831 (get_no_prettyformat_print_options): Renamed from
3832 get_raw_print_options.
3833 * valprint.c (get_no_prettyformat_print_options): Renamed from
3834 get_raw_print_options. All callers updated.
3835 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3836 All callers updated.
3837 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3838 All callers updated.
3839 (_initialize_valprint): Improve help text for "set print pretty" and
3840 "set print arrays".
3841
466c1fca
AB
38422013-07-09 Andrew Burgess <aburgess@broadcom.com>
3843
3844 * value.c (value_bits_valid): Revert previous change, and change
3845 by Pedro on 2013-07-04, due to regressions in
3846 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3847
ad0f0303
AB
38482013-07-08 Andrew Burgess <aburgess@broadcom.com>
3849 Pedro Alves <palves@redhat.com>
3850
3851 * value.c (value_bits_valid): If the value is not lval_computed
3852 or has no check validity handler then the answer is the
3853 optimized_out flag, otherwise defer to the handler.
3854
b187bec1
EZ
38552013-07-06 Eli Zaretskii <eliz@gnu.org>
3856
48d1d6f5
EZ
3857 * top.c (print_gdb_configuration): Explain in output of
3858 --configuration what does "relocatable" mean.
3859
b187bec1
EZ
3860 * main.c (print_gdb_help): Regroup options in the --help text.
3861 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3862 the relevant discussions.
3863
52d361e1
YQ
38642013-07-06 Yao Qi <yao@codesourcery.com>
3865
3866 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3867 Remove parameter 'lsal'.
3868 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3869 to inner block. Caller update.
3870 (base_breakpoint_create_breakpoints_sal): Update.
3871 (bkpt_create_breakpoints_sal): Likewise.
3872 (tracepoint_create_breakpoints_sal): Likewise.
3873 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3874 element 0 of vector 'canonical->sals'.
3875
e1ec1b42
LM
38762013-07-05 Luis Machado <lgustavo@codesourcery.com>
3877
3878 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3879 register number instead of the pseudo register one.
3880 (rs6000_dwarf2_reg_to_regnum): Likewise.
3881
7195e6f0
PA
38822013-07-04 Pedro Alves <palves@redhat.com>
3883
3884 * findvar.c (value_of_register): Use allocate_optimized_out_value
3885 if the register has been optimized out, instead of
3886 set_value_optimized_out.
3887 * frame-unwind.c (frame_unwind_got_optimized): Use
3888 allocate_optimized_out_value.
3889
58722cac
PA
38902013-07-04 Pedro Alves <palves@redhat.com>
3891
3892 * value.c (value_bits_valid): If the value is not lval_computed,
3893 or doesn't have a check_validity hook, assume the value is entirely
3894 valid.
3895
691a26f5
AB
38962013-07-04 Andrew Burgess <aburgess@broadcom.com>
3897
3898 * stack.c (read_frame_arg): No longer fetch lazy values.
3899 * value.c (value_optimized_out): If the value is not already
3900 marked optimized out, and is lazy then fetch it.
3901 (value_primitive_field): Move optimized out check to later in the
3902 function, after we have loaded any lazy values.
3903 (value_fetch_lazy): Use optimized out flag directly rather than
3904 calling optimized_out method.
3905
a58e2656
AB
39062013-07-04 Andrew Burgess <aburgess@broadcom.com>
3907
3908 * valops.c: Don't include "user-regs.h".
3909 (value_fetch_lazy): Moved to value.c.
3910 * value.c: Include "user-regs.h".
3911 (value_fetch_lazy): Moved from valops.c.
3912
bd885420
YQ
39132013-07-04 Yao Qi <yao@codesourcery.com>
3914
3915 Revert:
3916 2013-06-27 Yao Qi <yao@codesourcery.com>
3917
3918 * common/create-version.sh: Update comments. Handle the case
3919 that TARGET_ALIAS is empty.
3920
17ef446e
PA
39212013-07-03 Pedro Alves <palves@redhat.com>
3922
3923 * Makefile.in (config.status): Depend on development.sh.
3924 (aclocal_m4_deps): Add libmcheck.m4.
3925 * acinclude.m4: Include libmcheck.m4.
3926 * configure.ac: Source development.sh instead of setting
3927 'development' here. --enable-libmcheck/--disable-libmcheck code
3928 factored out to GDB_AC_LIBMCHECK. Run it.
3929 * development.sh: New file.
3930 * libmcheck.m4: New file.
3931 * configure: Regenerate.
3932
ac6dd50f
TT
39332013-07-02 Tom Tromey <tromey@redhat.com>
3934
3935 * contrib/ari/update-web-ari.sh: Update for version.in change.
3936
bd1df410
TT
39372013-07-02 Tom Tromey <tromey@redhat.com>
3938
3939 * common/ptid.h: Comment fixes.
3940
4db1a1dc
TT
39412013-07-01 Tom Tromey <tromey@redhat.com>
3942
3943 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3944 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3945 (dwarf2_read_index, create_all_comp_units): Update.
3946
dd9aa048
TT
39472013-07-01 Tom Tromey <tromey@redhat.com>
3948
3949 * configure.ac (build_warnings): Add -Wold-style-definition.
3950 * configure: Rebuild.
3951 * machoread.c (_initialize_machoread): Use "(void)".
3952 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3953 use "(void)".
3954
44d100c3
TT
39552013-07-01 Tom Tromey <tromey@redhat.com>
3956
3957 * configure.ac (build_warnings): Add -Wold-style-declaration.
3958 * configure: Rebuild.
3959 * dsrec.c (make_srec): Use "static const", not "const static".
3960 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3961 not "const static".
3962 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3963 Use "static const", not "const static".
3964 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3965 not "const static".
3966 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3967 not "const static".
3968 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3969 not "const static".
3970 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3971 not "const static".
3972 (v850_dbtrap_breakpoint_from_pc): Likewise.
3973 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3974 not "const static".
3975
2945b807
TT
39762013-07-01 Tom Tromey <tromey@redhat.com>
3977
3978 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3979 * configure: Rebuild.
3980
d8d2a3ee
PA
39812013-07-01 Pedro Alves <palves@redhat.com>
3982
3983 * defs.h: Include "pathmax.h".
3984 * utils.c: Don't include sys/param.h.
3985 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3986 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3987 instead of MAXPATHLEN.
3988 * solib-sunos.c: Don't include sys/param.h.
3989 * xcoffread.c: Don't include sys/param.h.
3990 * bsd-kvm.c: Don't include sys/param.h.
3991 * darwin-nat.c: Don't include sys/param.h.
3992 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3993 * darwin-nat-info.c: Don't include sys/param.h.
3994 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3995 MAXPATHLEN.
3996 * i386obsd-nat.c: Don't include sys/param.h.
3997 * inf-child.c: Don't include sys/param.h.
3998 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3999 * linux-fork.c: Don't include sys/param.h.
4000 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4001 * linux-nat.c: Don't include sys/param.h.
4002 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4003 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4004 * m68klinux-nat.c: Don't include sys/param.h.
4005 * nbsd-nat.c: Don't include sys/param.h.
4006 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4007 * ppc-linux-nat.c: Don't include sys/param.h.
4008 * rs6000-nat.c: Don't include sys/param.h.
4009 * spu-linux-nat.c. Don't include sys/param.h.
4010 * windows-nat.c: Don't include sys/param.h.
4011 * xtensa-linux-nat.c: Don't include sys/param.h.
4012 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4013
38ec2207
PA
40142013-07-01 Pedro Alves <palves@redhat.com>
4015
4016 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4017 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4018 * gnulib/aclocal.m4: Regenerate.
4019 * gnulib/config.in: Regenerate.
4020 * gnulib/configure: Regenerate.
4021 * gnulib/import/pathmax.h: New file.
4022 * gnulib/import/Makefile.am: Regenerate.
4023 * gnulib/import/Makefile.in: Regenerate.
4024 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4025 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4026 * gnulib/import/m4/pathmax.m4: New file.
4027
e655c1a2
PA
40282013-07-01 Pedro Alves <palves@redhat.com>
4029
4030 * configure.ac (GDBINIT): Define, depending on host.
4031 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4032 * top.c (PATH_MAX): Delete fallback definition.
4033 (GDBINIT_FILENAME): Delete.
4034 (gdbinit): Reimplement as const char array set to the GDBINIT
4035 string constant.
4036 * top.h (gdbinit): Make const.
4037 * configure, config.in: Regenerate.
4038
50dd9793
PA
40392013-07-01 Pedro Alves <palves@redhat.com>
4040
4041 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4042 * cli/cli-cmds.h (source_script): Likewise.
4043 * exceptions.c (catch_command_errors_const): New function.
4044 * exceptions.h (catch_command_errors_const): Declare.
4045 * main.c (get_init_files): Make parameters const, and adjust.
4046 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4047 'local_gdbinit' locals const. Adjust to use
4048 catch_command_errors_const.
4049 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4050 'local_gdbinit' locals const.
4051
bc7dea8d
PA
40522013-07-01 Pedro Alves <palves@redhat.com>
4053
4054 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4055 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4056 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4057 <unistd.h>.
4058
8839a007
PA
40592013-07-01 Pedro Alves <palves@redhat.com>
4060
4061 Import the "unistd" gnulib module.
4062 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4063 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4064 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4065 import/m4/unistd_h.m4.
4066 * gnulib/aclocal.m4: Renenerate.
4067 * gnulib/config.in: Renenerate.
4068 * gnulib/configure: Renenerate.
4069 * gnulib/import/Makefile.am: Renenerate.
4070 * gnulib/import/Makefile.in: Renenerate.
4071 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4072 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4073 * gnulib/import/m4/off_t.m4: New file.
4074 * gnulib/import/m4/ssize_t.m4: New file.
4075 * gnulib/import/m4/sys_types_h.m4: New file.
4076 * gnulib/import/m4/unistd_h.m4: New file.
4077 * gnulib/import/sys_types.in.h: New file.
4078 * gnulib/import/unistd.c: New file.
4079 * gnulib/import/unistd.in.h: New file.
4080
8c0da261
PA
40812013-07-01 Pedro Alves <palves@redhat.com>
4082
4083 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4084 defined instead of checking HAVE_UNISTD_H.
4085
3574124b
PA
40862013-07-01 Pedro Alves <palves@redhat.com>
4087
4088 Reimport gnulib from scratch.
4089 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4090 import/m4/onceonly.m4.
4091 * gnulib/aclocal.m4: Renegerate.
4092 * gnulib/config.in: Renegerate.
4093 * gnulib/configure: Renegerate.
4094 * gnulib/import/Makefile.in: Renegerate.
4095 * gnulib/import/extra/update-copyright: Renegerate.
4096 * gnulib/import/m4/onceonly.m4: Delete.
4097
702dc4fd
PA
40982013-07-01 Pedro Alves <palves@redhat.com>
4099
4100 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4101
47e1ce27
JK
41022013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4103
4104 Code cleanup.
4105 * remote.c (async_remote_interrupt_twice): Make it static.
4106 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4107
e82839d4
SDJ
41082013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4109
4110 * ia64-linux-tdep.c: Include <ctype.h>.
4111 (ia64_linux_stap_is_single_operand): New function.
4112 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4113
d6c2da54
TT
41142013-06-28 Tom Tromey <tromey@redhat.com>
4115
4116 * Makefile.in (version.c): Use version.in, not
4117 common/version.in.
4118 * common/create-version.sh: Likewise.
4119 * common/version.in: Move...
4120 * version.in: ...here.
4121
74da6f00
PA
41222013-06-28 Pedro Alves <palves@redhat.com>
4123
4124 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4125 here.
4126 * utils.h (pagination_enabled): Declare.
4127
d32dc48e
PA
41282013-06-28 Pedro Alves <palves@redhat.com>
4129
4130 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4131 Move higher up in file.
4132
0edd9e3b
TT
41332013-06-28 Tom Tromey <tromey@redhat.com>
4134
4135 * tracepoint.c (deprecated_readline_begin_hook)
4136 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4137 declare.
4138
4eb59108
PA
41392013-06-28 Pedro Alves <palves@redhat.com>
4140
4141 PR tui/14880
4142 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4143 checking if they're available.
4144 * value.c (value_available_contents_eq): Change comment.
4145 * value.h (value_available_contents_eq): Expand comment.
4146
97b17156
TT
41472013-06-27 Tom Tromey <tromey@redhat.com>
4148
4149 * target.c (find_run_target): Remove.
4150 * target.h (find_run_target): Remove.
4151
6a3bfc5c
TT
41522013-06-27 Tom Tromey <tromey@redhat.com>
4153
4154 * corelow.c (core_gdbarch): Now static.
4155
c9ef825d
TT
41562013-06-27 Tom Tromey <tromey@redhat.com>
4157
4158 * target.c (target_struct_index): Remove.
4159
e5823f1c
PA
41602013-06-27 Pedro Alves <palves@redhat.com>
4161
4162 * infrun.c: Remove comment describing the 'stepping over runtime
4163 loader dynamic symbol resolution code' mechanism; moved to
4164 gdbint.texinfo.
4165
97f8dd09
PA
41662013-06-27 Pedro Alves <palves@redhat.com>
4167
4168 * exceptions.c (catch_command_errors): Remove spurious space.
4169 * exceptions.h (catch_command_errors): Second parameter is "arg",
4170 not "command".
4171
02b1871e
YQ
41722013-06-27 Yao Qi <yao@codesourcery.com>
4173
4174 * common/create-version.sh: Update comments. Handle the case
4175 that TARGET_ALIAS is empty.
4176
bb1b1cf1
PA
41772013-06-26 Pedro Alves <palves@redhat.com>
4178
4179 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4180 comment.
4181
7b624e71
PA
41822013-06-26 Pedro Alves <palves@redhat.com>
4183
4184 * infrun.c: Update comments on stepping over runtime loader
4185 dynamic symbol resolution code.
4186
74e5a346
SDJ
41872013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4188
4189 * ax-gdb.h (union exp_element): Forward declare.
4190 * parser-defs.h: Include expression.h.
4191
a2fb2cee
MR
41922013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4193
4194 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4195
cdba14e0
DK
41962013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4197
4198 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4199
f30aa5af
DK
42002013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4201
4202 Fix trace-status to output proper start-time and stop-time.
4203 * tracepoint.c (trace_status_command): Fix type of printf arg to
4204 prevent improper type conversion.
4205 (trace_status_mi): Likewise.
4206
1aee363c
MR
42072013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4208
4209 * mips-tdep.c (mips_next_pc): Fix a typo.
4210
3356937a
MR
42112013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4212
4213 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4214
dc673c81
YQ
42152013-06-26 Pedro Alves <pedro@codesourcery.com>
4216 Yao Qi <yao@codesourcery.com>
4217
4218 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4219 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4220 * mi/mi-main.c (print_variable_or_computed): New function.
4221 (mi_cmd_trace_frame_collected): New function.
4222 * tracepoint.c (find_trace_state_variable_by_number): New.
4223 (struct traceframe_info): Move to tracepoint.h
4224 (struct collection_list): Likewise.
4225 (do_collect_symbol): Include locals and arguments in the
4226 collected variables list.
4227 (clear_collection_list): Clear wholly collected variables list
4228 and computed variables list.
4229 (append_exp): New function.
4230 (encode_actions_1): Include variables in the wholly
4231 collected variables list. Include memory ranges and
4232 full-fledged expressions in the computed expressions list.
4233 (encode_actions): Move some code to ...
4234 Return the cleanup chain.
4235 (encode_actions_rsp): ... here. New function.
4236 (get_traceframe_location, get_traceframe_info): Remove static.
4237 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4238 (struct collection_list): Moved from tracepoint.c. Add two
4239 new fields 'wholly_collected' and 'computed'.
4240 (find_trace_state_variable_by_number): Declare.
4241 (encode_actions): Adjust declaration.
4242 (encode_actions_rsp): Declare.
4243 (get_traceframe_info, get_traceframe_location): Declare.
4244
4245 * NEWS: Mention new MI command -trace-frame-collected.
4246
28a93511
YQ
42472013-06-26 Pedro Alves <pedro@codesourcery.com>
4248 Yao Qi <yao@codesourcery.com>
4249
4250 * ctf.c (ctf_traceframe_info): Push trace state variables
4251 present in the trace data into the traceframe info object.
4252 * breakpoint.c (DEF_VEC_I): Remove.
4253 * common/filestuff.c (DEF_VEC_I): Likewise.
4254 * dwarf2loc.c (DEF_VEC_I): Likewise.
4255 * mi/mi-main.c (DEF_VEC_I): Likewise.
4256 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4257 * features/traceframe-info.dtd: Add tvar element and its
4258 attributes.
4259 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4260 (build_traceframe_info): Push trace state variables present in
4261 the trace data into the traceframe info object.
4262 (traceframe_info_start_tvar): New function.
4263 (tvar_attributes): New.
4264 (traceframe_info_children): Add "tvar" element.
4265 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4266
4267 * NEWS: Mention the change in GDB and GDBserver.
4268
ddacd3c8
YQ
42692013-06-26 Pedro Alves <pedro@codesourcery.com>
4270 Yao Qi <yao@codesourcery.com>
4271
4272 * tracepoint.c (trace_dump_command): Move code to ...
4273 (get_traceframe_location): ... here. New.
4274
05796b35
YQ
42752013-06-26 Pedro Alves <pedro@codesourcery.com>
4276 Yao Qi <yao@codesourcery.com>
4277
4278 * tracepoint.c (trace_dump_command): GDB emits an error
4279 instead of a warning when a traceframe is not selected.
4280
cbfa3b61
YQ
42812013-06-26 Pedro Alves <pedro@codesourcery.com>
4282 Yao Qi <yao@codesourcery.com>
4283
4284 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4285 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4286 in collection_list.
4287 (do_clear_collection_list, init_collection_list): New.
4288 (encode_actions): Add local variables 'tracepoint_list' and
4289 'stepping_list'. Call init_collection_list and make cleanup
4290 which calls do_clear_collection_list. Don't call
4291 clear_collection_list.
4292 (_initialize_tracepoint): Delete references to
4293 'tracepoint_list' and 'stepping_list'.
4294
6e2048d3
TT
42952013-06-25 Tom Tromey <tromey@redhat.com>
4296
4297 * common/create-version.sh (date): Use "$", not "$$" in sed
4298 expression.
4299
42059f0e
KB
43002013-06-25 Kevin Buettner <kevinb@redhat.com>
4301
4302 * NEWS (New targets): Add entry for TI MSP430.
4303
a0743c90
YQ
43042013-06-25 Yao Qi <yao@codesourcery.com>
4305
4306 * remote.c (remote_start_remote): Move code to upload tsv
4307 earlier.
4308
9d6e6e84
HZ
43092013-06-25 Yao Qi <yao@codesourcery.com>
4310 Hui Zhu <hui@codesourcery.com>
4311 Pedro Alves <palves@redhat.com>
4312
4313 PR breakpoints/15075
4314 PR breakpoints/15434
4315 * breakpoint.c (bpstat_stop_status): Call
4316 b->ops->after_condition_true.
4317 (update_dprintf_command_list): Don't append "continue" command
4318 to the command list of dprintf breakpoint.
4319 (base_breakpoint_after_condition_true): New function.
4320 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4321 (dprintf_after_condition_true): New function.
4322 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4323 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4324
586cf749
KB
43252013-06-24 Kevin Buettner <kevinb@redhat.com>
4326
4327 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4328 (ALLDEPFILES): Add msp430-tdep.c.
4329 * configure.tgt (msp430*-*-elf): New target.
4330 * msp430-tdep.c: New file.
4331
1bbce132
MR
43322013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4333
4334 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4335 microMIPS synthetic symbols.
4336
3e5d3a5a
MR
43372013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4338
4339 * objfiles.h (pc_in_section): New prototype.
4340 (in_plt_section): Remove name argument, replace prototype with
4341 static inline function.
4342 * mips-tdep.h: Include "objfiles.h".
4343 (in_mips_stubs_section): New function.
4344 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4345 in_solib_call_trampoline member.
4346 (hppa_in_solib_call_trampoline): Remove name argument.
4347 * objfiles.c (pc_in_section): New function.
4348 (in_plt_section): Remove function.
4349 * mips-linux-tdep.c: Include "objfiles.h".
4350 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4351 name argument. Return 1 rather than the low 16-bit halfword of
4352 any instruction examined.
4353 (mips_linux_in_dynsym_resolve_code): Update
4354 mips_linux_in_dynsym_stub call accordingly.
4355 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4356 rather than an equivalent hand-coded sequence.
4357 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4358 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4359 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4360 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4361 in_opd_section.
4362 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4363 on call to tdep->in_solib_call_trampoline.
4364 (hppa_in_solib_call_trampoline): Remove name argument, update
4365 according to in_plt_section change.
4366 (hppa_skip_trampoline_code): Update according to in_plt_section
4367 change.
4368 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4369 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4370 Likewise.
4371 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4372 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4373 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4374 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4375 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4376 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4377 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4378 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4379 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4380 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4381 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4382 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4383 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4384
b9b26a16
JB
43852013-06-24 Joel Brobecker <brobecker@adacore.com>
4386
4387 * common/create-version.sh: Fix expansion of $host_alias
4388 and $target_alias in generation of HOST_NAME and TARGET_NAME
4389 (resp.).
4390
01208463
TT
43912013-06-24 Tom Tromey <tromey@redhat.com>
4392
4393 * common/create-version.sh: New file.
4394 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4395 create-version.sh.
4396 (HFILES_NO_SRCDIR): Use common/version.h.
4397 * version.in: Move to ...
4398 * common/version.in: ... here. Replace date with "DATE".
4399 * version.h: Move to ...
4400 * common/version.h: ... here.
4401
bb6b9a5e
JB
44022013-06-21 Joel Brobecker <brobecker@adacore.com>
4403
4404 * gdb/gnulib/Makefile.in: Update date in copyright header.
4405 * gdb/gnulib/configure.ac: Ditto.
4406 * gdb/gnulib/update-gnulib.sh: Ditto.
4407
c3b18ee7
JB
44082013-06-21 Joel Brobecker <brobecker@adacore.com>
4409
4410 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4411 "gdb/gnulib/import".
4412
85d3b769
WN
44132013-06-21 Will Newton <will.newton@linaro.org>
4414
4415 * doublest.c (ldfrexp): Remove function.
4416 (convert_doublest_to_floatformat): Call frexpl instead of
4417 ldfrexp.
4418
88b48903
WN
44192013-06-21 Will Newton <will.newton@linaro.org>
4420
4421 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4422 * gnulib/aclocal.m4: Regenerate.
4423 * gnulib/config.in: Regenerate.
4424 * gnulib/configure: Regenerate.
4425 * gnulib/import/Makefile.am: Update.
4426 * gnulib/import/Makefile.in: Update.
4427 * gnulib/import/m4/gnulib-cache.m4: Update.
4428 * gnulib/import/m4/gnulib-comp.m4: Update.
4429 * gnulib/import/float+.h: Import.
4430 * gnulib/import/float.c: Import.
4431 * gnulib/import/float.in.h: Import.
4432 * gnulib/import/fpucw.h: Import.
4433 * gnulib/import/frexp.c: Import.
4434 * gnulib/import/frexpl.c: Import.
4435 * gnulib/import/isnan.c: Import.
4436 * gnulib/import/isnand-nolibm.h: Import.
4437 * gnulib/import/isnand.c: Import.
4438 * gnulib/import/isnanl-nolibm.h: Import.
4439 * gnulib/import/isnanl.c: Import.
4440 * gnulib/import/itold.c: Import.
4441 * gnulib/import/m4/exponentd.m4: Import.
4442 * gnulib/import/m4/exponentl.m4: Import.
4443 * gnulib/import/m4/float_h.m4: Import.
4444 * gnulib/import/m4/fpieee.m4: Import.
4445 * gnulib/import/m4/frexp.m4: Import.
4446 * gnulib/import/m4/frexpl.m4: Import.
4447 * gnulib/import/m4/isnand.m4: Import.
4448 * gnulib/import/m4/isnanl.m4: Import.
4449 * gnulib/import/m4/math_h.m4: Import.
4450 * gnulib/import/math.c: Import.
4451 * gnulib/import/math.in.h: Import.
4452
4353c9e6
JK
44532013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4454
4455 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4456 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4457 signature_INTEL_edx comparisons.
4458
e3e06db3
DE
44592013-06-20 Doug Evans <dje@google.com>
4460
6ac97d4c
DE
4461 symtab/15652
4462 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4463 All callers updated.
4464 (open_dwp_file): If we can't find the dwp file, search the basename
4465 in debug-file-directory.
4466
93417882
DE
4467 * dwarf2read.c (struct dwp_file): Fix comment.
4468 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4469
e3e06db3
DE
4470 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4471 better.
4472
0878d0fa
YQ
44732013-06-20 Yao Qi <yao@codesourcery.com>
4474
4475 * breakpoint.c (create_breakpoint): Fix code indentation.
4476
023fa29b
YQ
44772013-06-20 Yao Qi <yao@codesourcery.com>
4478
4479 * breakpoint.c (create_breakpoints_sal_default): Remove
4480 parameter 'lsal'. Update declaration.
4481 (bkpt_create_breakpoints_sal): Caller update.
4482 (tracepoint_create_breakpoints_sal): Likewise.
4483
c898adb7
YQ
44842013-06-20 Pedro Alves <pedro@codesourcery.com>
4485 Yao Qi <yao@codesourcery.com>
4486
4487 * NEWS: Mention the new option '--skip-unavailable' of command
4488 -data-list-register-values.
4489 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4490 --skip-unavailable option. Adjust to use output_register.
4491 (output_register): Add new 'skip_unavailable' parameter.
4492 Handle it.
4493
4d157a3d
MF
44942013-06-19 Mike Frysinger <vapier@gentoo.org>
4495
4496 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4497 common/i386-gcc-cpuid.h.
4498 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4499 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4500 Copy the latest version from upstream gcc.
4501 * common/linux-btrace.c: Include i386-cpuid.h.
4502 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4503 call to i386_cpuid.
4504 (cpu_supports_btrace): Likewise.
4505 * go32-nat.c: Include i386-cpuid.h.
4506 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4507
1ce4db08
DE
45082013-06-19 Doug Evans <dje@google.com>
4509
4510 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4511 (get_section_index): Ditto.
4512
0e4777df
TT
45132013-06-19 Tom Tromey <tromey@redhat.com>
4514
4515 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4516 "dprintf" help.
4517
3190f0c6
DE
45182013-06-18 Doug Evans <dje@google.com>
4519
4520 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4521 before using it.
4522 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4523 Move test of cu_index closer to use. Print complaint if cu_index
4524 is bad.
4525
8b89a20a
JB
45262013-06-18 Joel Brobecker <brobecker@adacore.com>
4527
4528 * machoread.c (oso_vector): Delete this global.
4529 (macho_register_oso): Add new parameter "oso_vector_ptr".
4530 Use it instead of the "oso_vector" global.
4531 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4532 (macho_symfile_read): Use a local oso_vector, to be free'ed
4533 at the end of this function, in place of the old "oso_vector"
4534 global. Update various function calls accordingly. Use one
4535 single cleanup chain for the entire function.
4536
59b0c7c1
JB
45372013-06-18 Joel Brobecker <brobecker@adacore.com>
4538
937c708c 4539 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4540 DWARF2_PER_OBJFILE by uses of DATA instead.
4541
427cd150
TT
45422013-06-18 Tom Tromey <tromey@redhat.com>
4543
4544 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4545 argument.
4546 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4547 Special case signals other than GDB_SIGNAL_TRAP.
4548 (explains_signal_watchpoint): New function.
4549 (base_breakpoint_explains_signal): Add 'sig' argument.
4550 (initialize_breakpoint_ops): Set 'explains_signal' method for
4551 watchpoints.
4552 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4553 signal argument.
4554 (bpstat_explains_signal): Likewise.
4555 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4556
2d57700b
TT
45572013-06-18 Tom Tromey <tromey@redhat.com>
4558
4559 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4560
ac475191
TT
45612013-06-18 Tom Tromey <tromey@redhat.com>
4562
4563 * python/python.c (finish_python_initialization): Decref
4564 'pythondir' on failure path as well.
4565
5bd1ef56
TT
45662013-06-18 Tom Tromey <tromey@redhat.com>
4567
4568 PR symtab/15391:
4569 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4570 after taking bits_to_skip into account. Sign extend byte_offset.
4571 * utils.h (gdb_sign_extend): Declare.
4572 * utils.c (gdb_sign_extend): New function.
4573
92fac807
JK
45742013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4575
4576 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4577
2d503272
PM
45782013-06-17 Pierre Muller <muller@sourceware.org>
4579
4580 * corelow.c (core_open): Print GDB signal name instead of target
4581 signal number.
4582
6916fd98
MF
45832013-06-17 Mike Frysinger <vapier@gentoo.org>
4584
4585 * .gitignore: Add /gcore.
4586
9c02c129
DE
45872013-06-13 Doug Evans <dje@google.com>
4588
4589 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4590 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4591
d0548fa2
PM
45922013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4593
4594 * stack.c (backtrace_command_1): Fix indentation.
4595
22128028
JB
45962013-06-11 Joel Brobecker <brobecker@adacore.com>
4597
4598 * window-nat.c (thread_rec): Add missing empty line after
4599 local variable declaration.
4600
2ed3e009
JB
46012013-06-11 Joel Brobecker <brobecker@adacore.com>
4602
4603 * windows-nat.c (thread_rec): Revert format used to print
4604 error code returned by SuspendThread from %d back to %u.
4605
0c3d84be
JB
46062013-06-11 Joel Brobecker <brobecker@adacore.com>
4607
4608 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4609 ID in debug trace.
4610 (get_windows_debug_event): Likewise, for all debug traces.
4611
80e88e1a
JB
46122013-06-11 Joel Brobecker <brobecker@adacore.com>
4613
4614 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4615 warning message.
4616
1edebdbf
YQ
46172013-06-08 Pedro Alves <pedro@codesourcery.com>
4618 Yao Qi <yao@codesourcery.com>
4619
4620 * mi/mi-main.c (get_register): Remove declaration.
4621 (output_register): Declare.
4622 (mi_cmd_data_list_register_values): Remove local variable
4623 'tuple_cleanup'. Move some code into output_register.
4624 (get_register): Renamed to ...
4625 (output_register): ... this. Output the register's
4626 "number" ui_out tuple here.
4627
47d48711
PA
46282013-06-07 Pedro Alves <palves@redhat.com>
4629
4630 * darwin-nat.c: Fix formating in copyright header.
4631 * darwin-nat.h: Likewise.
4632 * gnu-nat.c: Likewise.
4633 * machoread.c: Likewise.
4634
3aee8918
PA
46352013-06-07 Pedro Alves <palves@redhat.com>
4636
5f2b57b5 4637 PR server/14823
3aee8918
PA
4638 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4639 static. Output a global target description pointer.
4640 (init_registers_${name}): Adjust to initialize a
4641 target description structure.
4642
fe8400b4
WN
46432013-06-07 Will Newton <will.newton@linaro.org>
4644
4645 * printcmd.c (build_address_symbolic): Call
4646 gdbarch_addr_bits_remove for text minimal symbols.
4647
20df6206
WN
46482013-06-07 Will Newton <will.newton@linaro.org>
4649
4650 * MAINTAINERS: Add myself to Write After Approval.
4651
aef525cb
YQ
46522013-06-07 Yao Qi <yao@codesourcery.com>
4653
4654 * tracepoint.c (start_tracing): Move code to ...
4655 (trace_reset_local_state): ... here. New.
4656 (disconnect_tracing): Don't call set_current_traceframe,
4657 set_tracepoint_num, and set_traceframe_context. Call
4658 trace_reset_local_state instead.
4659 (tfile_close): Call trace_reset_local_state.
4660 * ctf.c (ctf_close): Likewise.
4661 * remote.c (remote_close): Likewise.
4662 * tracepoint.h (trace_reset_local_state): Declare.
4663
d2415c6c
DE
46642013-06-06 Doug Evans <dje@google.com>
4665
4666 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4667 and fix header docs.
4668
69fc87c2
DE
46692013-06-05 Doug Evans <dje@google.com>
4670 Keith Seitz <keiths@redhat.com>
4671
4672 PR 15519
4673 * cp-namespace.c (find_symbol_in_baseclass): Call
4674 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4675 Check result of call to lookup_symbol_static.
4676 Call lookup_static_symbol_aux unconditionally.
4677 Call check_typedef on base types before accessing them.
4678 (cp_lookup_nested_symbol): Fix comment.
4679
a513d1e8
LM
46802013-06-05 Luis Machado <lgustavo@codesourcery.com>
4681
4682 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4683 minimal symbols pointing to function descriptors.
4684
351a6f02
TT
46852013-06-05 Tom Tromey <tromey@redhat.com>
4686
4687 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4688
5e1b953b 46892013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4690 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4691
4692 * remote.c (remote_wait_as): Restore signal handler before returning
4693 when GDB gets a notification.
4694
f9e14852
GB
46952013-06-04 Gary Benson <gbenson@redhat.com>
4696
8445cbf1 4697 PR 2328
f9e14852
GB
4698 * breakpoint.h (handle_solib_event): Moved function declaration
4699 to solib.h.
4700 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4701 (bpstat_stop_status): Pass new argument to handle_solib_event.
4702 * solib.h (update_solib_breakpoints): New function declaration.
4703 (handle_solib_event): Moved function declaration from
4704 breakpoint.h.
4705 * solib.c (update_solib_breakpoints): New function.
4706 (handle_solib_event): Moved function from breakpoint.c.
4707 Updated to call solib_ops->handle_event if not NULL.
4708 * solist.h (target_so_ops): New fields "update_breakpoints" and
4709 "handle_event".
4710 * infrun.c (set_stop_on_solib_events): New function.
4711 (_initialize_infrun): Use the above for "set
4712 stop-on-solib-events".
4713 (handle_inferior_event): Pass new argument to handle_solib_event.
4714 * solib-svr4.c (probe.h): New include.
4715 (svr4_free_library_list): New forward declaration.
4716 (probe_action): New enum.
4717 (probe_info): New struct.
4718 (probe_info): New static variable.
4719 (NUM_PROBES): New definition.
4720 (svr4_info): New fields "using_xfer", "probes_table" and
4721 "solib_list".
4722 (free_probes_table): New function.
4723 (free_solib_list): New function.
4724 (svr4_pspace_data_cleanup): Free probes table and solib list.
4725 (svr4_copy_library_list): New function.
4726 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4727 (svr4_read_so_list): New parameter "prev_lm".
4728 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4729 (svr4_current_sos): New function.
4730 (probe_and_action): New struct.
4731 (hash_probe_and_action): New function.
4732 (equal_probe_and_action): Likewise.
4733 (register_solib_event_probe): Likewise.
4734 (solib_event_probe_at): Likewise.
4735 (solib_event_probe_action): Likewise.
4736 (solist_update_full): Likewise.
4737 (solist_update_incremental): Likewise.
4738 (disable_probes_interface_cleanup): Likewise.
4739 (svr4_handle_solib_event): Likewise.
4740 (svr4_update_solib_event_breakpoint): Likewise.
4741 (svr4_update_solib_event_breakpoints): Likewise.
4742 (svr4_create_solib_event_breakpoints): Likewise.
4743 (enable_break): Free probes table before creating breakpoints.
4744 Use svr4_create_solib_event_breakpoints to create breakpoints.
4745 (svr4_solib_create_inferior_hook): Free the solib list.
4746 (_initialize_svr4_solib): Initialise
4747 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4748
ced63ec0
GB
47492013-06-04 Gary Benson <gbenson@redhat.com>
4750
4751 * target.h (target_ops): New field
4752 "to_augmented_libraries_svr4_read".
4753 (target_augmented_libraries_svr4_read): New macro.
4754 * target.c (update_current_target): Handle
4755 to_augmented_libraries_svr4_read.
4756 * remote.c (remote_state): New field
4757 "augmented_libraries_svr4_read".
4758 (remote_augmented_libraries_svr4_read_feature): New function.
4759 (remote_protocol_features): Add entry for
4760 "augmented-libraries-svr4-read".
4761 (remote_augmented_libraries_svr4_read): New function.
4762 (init_remote_ops): Initialize
4763 remote_ops.to_augmented_libraries_svr4_read.
4764
7f91dbec
GB
47652013-06-04 Gary Benson <gbenson@redhat.com>
4766
4767 * NEWS: Update.
4768
607ece04
GB
47692013-06-04 Gary Benson <gbenson@redhat.com>
4770
4771 * objfiles.h (inhibit_section_map_updates): New function
4772 declaration.
4773 (resume_section_map_updates): Likewise.
4774 (resume_section_map_updates_cleanup): Likewise.
4775 * objfiles.c (objfile_pspace_info): Removed field
4776 "objfiles_changed_p". New fields "new_objfiles_available",
4777 "section_map_dirty" and "inhibit_updates".
4778 (allocate_objfile): Set new_objfiles_available.
4779 (free_objfile): Set section_map_dirty.
4780 (objfile_relocate1): Likewise.
4781 (in_plt_section): Likewise.
4782 (find_pc_section): Update the conditions under which the
4783 section map will be updated.
4784 (inhibit_section_map_updates): New function.
4785 (resume_section_map_updates): Likewise.
4786 (resume_section_map_updates_cleanup): Likewise.
4787
9ee6a5ac
GB
47882013-06-04 Gary Benson <gbenson@redhat.com>
4789
4790 * probe.h (get_probe_argument_count): New declaration.
4791 (evaluate_probe_argument): Likewise.
4792 * probe.c (get_probe_argument_count): New function.
4793 (evaluate_probe_argument): Likewise.
4794 (probe_safe_evaluate_at_pc): Use the above new functions.
4795
845d4708
AM
47962013-06-04 Alan Modra <amodra@gmail.com>
4797
4798 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4799 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4800 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4801 target mem reads on optional insns.
4802 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4803 ppc_insns_match_pattern calls.
4804 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4805 Add match for power7 thread safety insns, and new order of
4806 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4807 invocation in comment, and update rest of comment.
4808 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4809 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4810 (ppc64_standard_linkage2_target): Update insn offsets.
4811 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4812 stubs first. Update calls.
4813
404e278f
YQ
48142013-06-04 Yao Qi <yao@codesourcery.com>
4815
4816 * solib.c (solib_find): Don't need dir separator if path has
4817 drive spec.
4818
f6aea118
JB
48192013-06-03 Joel Brobecker <brobecker@adacore.com>
4820
4821 Revert (indirectly causes a SIGSEGV):
4822 * machoread.c (macho_symfile_read): Assign first cleanup to
4823 'back_to'.
4824
87967e27
YQ
48252013-06-03 Yao Qi <yao@codesourcery.com>
4826
4827 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4828 mi-parse.c. Make them static.
4829 (mi_all_values): Likewise.
4830 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4831 mi_parse_print_values. Make it external.
4832 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4833 Remove the declarations.
4834 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4835 * mi/mi-parse.h (mi_parse_print_values): Declare.
4836 * mi/mi-cmd-stack.c: Include mi-parse.h.
4837 (parse_print_values): Remove
4838 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4839 of parse_print_values.
4840 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4841
3ca73e0c
YQ
48422013-05-31 Pedro Alves <pedro@codesourcery.com>
4843 Yao Qi <yao@codesourcery.com>
4844
4845 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4846 (encode_actions): Move code to ...
4847 (all_tracepoint_actions_and_cleanup): ... here. New.
4848 (trace_dump_command): Likewise.
4849
4e993a19
TT
48502013-05-30 Tom Tromey <tromey@redhat.com>
4851
4852 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4853
e3b76b4f
TT
48542013-05-30 Tom Tromey <tromey@redhat.com>
4855
4856 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4857 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4858 'old_chain' argument. Add 'parser_result' argument.
4859 (gdb_xml_create_parser_and_cleanup): Remove old version.
4860 (gdb_xml_parse_quick): Update.
4861 (xml_process_xincludes): Update.
4862 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4863 declare.
4864
db26349c
TT
48652013-05-30 Tom Tromey <tromey@redhat.com>
4866
4867 * probe.c (collect_probes): Check arguments for NULL before
4868 calling compile_rx_or_error.
4869 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4870 Remove NULL return.
4871
77f9e713
TT
48722013-05-30 Tom Tromey <tromey@redhat.com>
4873
4874 * infrun.c (adjust_pc_after_break): Introduce an outer null
4875 cleanup.
4876
45475de7
TT
48772013-05-30 Tom Tromey <tromey@redhat.com>
4878
4879 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4880
ac5007fd
TT
48812013-05-30 Tom Tromey <tromey@redhat.com>
4882
4883 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4884 for 'old_chain'. Do not check 'head' before processing
4885 cleanups.
4886
cd82eddc
TT
48872013-05-30 Tom Tromey <tromey@redhat.com>
4888
4889 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4890 "cleanup_tuple".
4891
57cee33a
TT
48922013-05-30 Tom Tromey <tromey@redhat.com>
4893
4894 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4895 inner scope. Unconditionally call do_cleanups.
4896
795d915c
TT
48972013-05-30 Tom Tromey <tromey@redhat.com>
4898
4899 * source.c (find_and_open_source): Call do_cleanups.
4900
1fc3cf4a
TT
49012013-05-30 Tom Tromey <tromey@redhat.com>
4902
4903 * linux-thread-db.c (thread_db_load_search): Unconditionally
4904 call do_cleanups.
4905
e35ac9bf
TT
49062013-05-30 Tom Tromey <tromey@redhat.com>
4907
4908 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4909 for 'cleanup'; instead use a later one.
4910
f3300387
TT
49112013-05-30 Tom Tromey <tromey@redhat.com>
4912
4913 * python/py-breakpoint.c (bppy_get_commands): Use
4914 explicit, unconditional return.
4915 * python/py-frame.c (frapy_read_var): Likewise.
4916 * python/python.c (gdbpy_decode_line): Likewise.
4917
c27e16e3
TT
49182013-05-30 Tom Tromey <tromey@redhat.com>
4919
4920 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4921 do_cleanups on all return paths.
4922
5ae85e44
TT
49232013-05-30 Tom Tromey <tromey@redhat.com>
4924
4925 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4926
73b8d9da
TT
49272013-05-30 Tom Tromey <tromey@redhat.com>
4928
4929 * stabsread.c (read_struct_type): Call do_cleanups along
4930 all return paths.
4931
7d266584
MR
49322013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4933
4934 * mips-linux-tdep.c: Adjust formatting throughout.
4935
0f900f54
TT
49362013-05-30 Tom Tromey <tromey@redhat.com>
4937
4938 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4939 along all return paths.
4940
a991ac28
TT
49412013-05-30 Tom Tromey <tromey@redhat.com>
4942
4943 * symfile.c (find_separate_debug_file): Call do_cleanups
4944 along all return paths.
4945
1abaf042
TT
49462013-05-30 Tom Tromey <tromey@redhat.com>
4947
4948 * symtab.c (search_symbols): Introduce a null cleanup for
4949 'retval_chain'.
4950
edefe1da
TT
49512013-05-30 Tom Tromey <tromey@redhat.com>
4952
4953 * python/py-value.c (valpy_binop): Call do_cleanups before
4954 exiting loop.
4955
54f72dcc
TT
49562013-05-30 Tom Tromey <tromey@redhat.com>
4957
4958 * python/py-prettyprint.c (print_children): Remove extra
4959 do_cleanups call.
4960
af1c6971
TT
49612013-05-30 Tom Tromey <tromey@redhat.com>
4962
4963 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4964 all return paths.
4965
b862ce75
TT
49662013-05-30 Tom Tromey <tromey@redhat.com>
4967
4968 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4969 along all return paths.
4970
e12fefc8
TT
49712013-05-30 Tom Tromey <tromey@redhat.com>
4972
4973 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4974 call do_cleanups.
4975
4867f990
TT
49762013-05-30 Tom Tromey <tromey@redhat.com>
4977
4978 * varobj.c (c_value_of_root): Call do_cleanups along all
4979 return paths.
4980
4fd2d6af
TT
49812013-05-30 Tom Tromey <tromey@redhat.com>
4982
4983 * tracepoint.c (trace_dump_command): Unconditionally call
4984 do_cleanups.
4985
752eb8b4
TT
49862013-05-30 Tom Tromey <tromey@redhat.com>
4987
4988 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4989 do_cleanups earlier.
4990
e42d0aa5
TT
49912013-05-30 Tom Tromey <tromey@redhat.com>
4992
4993 * machoread.c (macho_symfile_read): Assign first cleanup to
4994 'back_to'.
4995
4bbc010a
TT
49962013-05-30 Tom Tromey <tromey@redhat.com>
4997
4998 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4999
b9635925
TT
50002013-05-30 Tom Tromey <tromey@redhat.com>
5001
5002 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5003
25f43500
TT
50042013-05-30 Tom Tromey <tromey@redhat.com>
5005
5006 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5007 call discard_cleanups.
5008 (inf_ptrace_attach): Likewise.
5009
d6a2e54a
TT
50102013-05-30 Tom Tromey <tromey@redhat.com>
5011
5012 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5013 return paths.
5014 (mips_initialize): Likewise.
5015 (common_open): Call do_cleanups.
5016
48be7c1b
TT
50172013-05-30 Tom Tromey <tromey@redhat.com>
5018
5019 * utils.c (internal_vproblem): Call do_cleanups.
5020
e61727ab
TT
50212013-05-30 Tom Tromey <tromey@redhat.com>
5022
5023 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5024
b81b921f
TT
50252013-05-30 Tom Tromey <tromey@redhat.com>
5026
5027 * cli/cli-script.c (setup_user_args): Don't return after error.
5028
fe48dfb1
TT
50292013-05-30 Tom Tromey <tromey@redhat.com>
5030
5031 * somread.c (som_symtab_read): Call do_cleanups.
5032
27833de7
TT
50332013-05-30 Tom Tromey <tromey@redhat.com>
5034
5035 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5036
5b3fca71
TT
50372013-05-30 Tom Tromey <tromey@redhat.com>
5038
5039 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5040 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5041 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5042 * source.c (show_substitute_path_command): Call do_cleanups.
5043 (unset_substitute_path_command, set_substitute_path_command):
5044 Likewise.
5045 * symfile.c (load_command): Call do_cleanups.
5046
af83e3f8
TT
50472013-05-30 Tom Tromey <tromey@redhat.com>
5048
5049 * contrib/cleanup_check.py: New file.
5050 * contrib/gcc-with-excheck: Add option parsing.
5051
564eac42
JB
50522013-05-30 Joel Brobecker <brobecker@adacore.com>
5053
5054 * windows-nat.c (windows_delete_thread): Add missing space
5055 in cast expression.
5056
47902076
HAQ
50572013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5058
5059 * inferior.c (top level): Include tilde.h.
5060 (add_inferior_command): Call tilde_expand on the value of 'exec'
5061 argument.
5062
23da373a
YQ
50632013-05-30 Pedro Alves <pedro@codesourcery.com>
5064 Yao Qi <yao@codesourcery.com>
5065
5066 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5067 Caller update.
5068 (encode_actions): Likewise.
5069 * remote.c (remote_download_tracepoint): Caller update.
5070 * tracepoint.h (encode_actions): Update declaration.
5071
a6e6f791
PA
50722013-05-30 Pedro Alves <palves@redhat.com>
5073
5074 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5075 pointer.
5076
36d25514
YQ
50772013-05-30 Yao Qi <yao@codesourcery.com>
5078
5079 * remote.c (remote_check_symbols): Remove unused parameter
5080 'objfile'.
5081 Declaration update.
5082 (remote_start_remote, remote_new_objfile): Caller update.
5083
62a813cc
YQ
50842013-05-30 Yao Qi <yao@codesourcery.com>
5085
5086 * mi/mi-cmds.c (mi_cmds): Define MI command
5087 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5088 DEF_MI_CMD_CLI.
5089
28439a30
PA
50902013-05-29 Pedro Alves <palves@redhat.com>
5091
5092 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5093 (remote_insert_watchpoint, remote_remove_watchpoint)
5094 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5095 (remote_verify_memory, compare_sections_command)
5096 (remote_search_memory): Set the general process/thread on the
5097 remote side.
5098
6ac1c082
PA
50992013-05-29 Pedro Alves <palves@redhat.com>
5100
5101 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5102 (_initialize_aarch64_tdep): Don't call
5103 initialize_tdesc_aarch64_without_fpu.
5104 * features/Makefile (WHICH): Remove reference to
5105 aarch64-without-fpu.
5106 * features/aarch64-without-fpu.c: Delete file.
5107 * regformats/aarch64-without-fpu.dat: Delete file.
5108
a73e3634
YQ
51092013-05-28 Yao Qi <yao@codesourcery.com>
5110
5111 * tracepoint.c (stringify_collection_list): Remove parameter
5112 'string'.
5113 (encode_actions): Caller update. Remove local variables.
5114
c0ea94eb
YQ
51152013-05-24 Yao Qi <yao@codesourcery.com>
5116
5117 * tracepoint.c (TFILE_PID): Remove.
5118 (tfile_open): Don't add thread and inferior.
5119 (tfile_close): Don't set 'inferior_ptid'. Don't call
5120 exit_inferior_silent.
5121 (tfile_thread_alive): Remove.
5122 (init_tfile_ops): Don't set field 'to_thread_alive' of
5123 tfile_ops.
5124
20d7f211
DE
51252013-05-23 Doug Evans <dje@google.com>
5126
5127 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5128
8658d16d
PA
51292013-05-23 Pedro Alves <palves@redhat.com>
5130
5131 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5132 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5133 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5134 Only define if HAVE_SOCKETS is defined.
5135 * configure.ac: Check for sys/socket.h.
5136 * config.in, configure: Regenerate.
5137
21aa081e
PA
51382013-05-23 Pedro Alves <palves@redhat.com>
5139
5140 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5141 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5142 printing uint32_t variables.
5143
c2d6af84
PA
51442013-05-23 Pedro Alves <palves@redhat.com>
5145
5146 * NEWS: Mention GDBserver range stepping support.
5147
c1e36e3e
PA
51482013-05-23 Yao Qi <yao@codesourcery.com>
5149 Pedro Alves <palves@redhat.com>
5150
5151 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5152 field.
5153 * infcmd.c (step_once, until_next_command): Enable range stepping.
5154 * infrun.c (displaced_step_prepare): Disable range stepping.
5155 (resume): Disable range stepping if stepping over a breakpoint or
5156 we have software watchpoints. If range stepping is enabled,
5157 assert the thread is in the stepping range.
5158 (clear_proceed_status_thread): Clear may_range_step.
5159 (handle_inferior_event): Disable range stepping as soon as we know
5160 the thread that hit the event. Re-enable it whenever we're going
5161 to step with a step range.
5162 * remote.c (struct vCont_action_support) <r>: New field.
5163 (use_range_stepping): New global.
5164 (remote_vcont_probe): Handle 'r' action.
5165 (append_resumption): Append an 'r' action if the thread may range
5166 step.
5167 (show_range_stepping): New function.
5168 (set_range_stepping): New function.
5169 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5170 'set range-stepping' and 'show range-stepping' commands.
5171 * NEWS: Mention range stepping, the new vCont;r action, and the
5172 new "set/show range-stepping" commands.
5173
d458bd84
PA
51742013-05-23 Yao Qi <yao@codesourcery.com>
5175 Pedro Alves <palves@redhat.com>
5176
5177 * remote.c (struct vCont_action_support): New struct.
5178 (struct remote_state) <support_vCont_t>: Remove field.
5179 <vCont_actions_support>: New field.
5180 (remote_vcont_probe, remote_stop_ns): Update.
5181
ce4c476a
PA
51822013-05-23 Yao Qi <yao@codesourcery.com>
5183 Pedro Alves <palves@redhat.com>
5184
5185 * gdbthread.h (pc_in_thread_step_range): New declaration.
5186 * thread.c (pc_in_thread_step_range): New function.
5187 * infrun.c (handle_inferior_event): Use it.
5188
ce70887a
JB
51892013-05-23 Joel Brobecker <brobecker@adacore.com>
5190
5191 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5192 of sprintf.
5193
55b87a52
KS
51942013-05-22 Keith Seitz <keiths@redhat.com>
5195
5196 * ada-lang.c (is_known_support_routine): Add explicit free of
5197 'func_name' from find_frame_funname.
5198 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5199 for func_name from find_frame_funname.
5200 * python/py-frame.c (frapy_name): Add explicit free of
5201 'name' from find_frame_funname.
5202 * stack.c (find_frame_funname): Add comment explaining that
5203 funcp must be freed by the caller.
5204 Return copy of symbol names instead of pointers.
5205 (print_frame): Add a cleanup for 'funname' from
5206 find_frame_funname.
5207 * stack.h (find_frame_funname): Remove "const" from
5208 'funname' parameter.
5209
5f2e6b00
TT
52102013-05-22 Tom Tromey <tromey@redhat.com>
5211
5212 PR c++/15401:
5213 * c-valprint.c (c_value_print): Use value_addr for
5214 references. Convert back to reference type with value_ref.
5215
d85c4847
EZ
52162013-05-22 Eli Zaretskii <eliz@gnu.org>
5217
5218 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5219 unloaded DLL, it will be done by handle_solib_event. See
5220 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5221 details.
5222
54eb231c
PM
52232013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5224
5225 * ui-out.c: Create typedef ui_out_level_p and define vector
5226 operations for that type.
5227 (struct ui_out): Use a vector instead of an array.
5228 (current_level): Return level from a vector.
5229 (push_level): Create a level in a vector.
5230 (pop_level): Delete a level in a vector.
5231 (ui_out_new): Create initial level zero level, and store in a
5232 vector.
5233 (ui_out_destroy): Add vector cleanup.
5234
ac90359c
PA
52352013-05-22 Pedro Alves <palves@redhat.com>
5236
5237 * python/python-internal.h (gdb_Py_DECREF): Tag with
5238 "ARI: editCase function".
5239
6dcc1893
PP
52402013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5241
5242 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5243
c8c735b9
PA
52442013-05-21 Pedro Alves <palves@redhat.com>
5245
5246 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5247 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5248 * python/py-utils.c (py_decref): Don't check for NULL before
5249 calling Py_DECREF.
5250
1915daeb
PA
52512013-05-21 Pedro Alves <palves@redhat.com>
5252
5253 * python/py-utils.c (py_decref): Remove extra braces.
5254 (gdb_pymodule_addobject): Remove extra braces.
5255 * python-internal.h (gdb_Py_DECREF): New static inline function.
5256 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5257
bd9673a4
PW
52582013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5259
5260 * breakpoints.c (detach_breakpoints): Do not
5261 detach breakpoints locations with loc_type bp_loc_other.
5262
ff6009d0
JK
52632013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5264
5265 Workaround Python 2.6.
5266 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5267 a block.
5268
3641da11
JK
52692013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5270
5271 Code cleanup: constification.
5272 * solib.c (solib_ops): Make return type and ops variable type const.
5273 (set_solib_ops): Make the new_ops parameter and ops variable const.
5274 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5275 (solib_add, solib_keep_data_in_core, clear_solib)
5276 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5277 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5278 const.
5279 * solib.h (set_solib_ops): Make the new_ops parameter const.
5280
776af39e
JB
52812013-05-21 Joel Brobecker <brobecker@adacore.com>
5282
5283 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5284 variable.
5285 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5286 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5287 (SYSTEM_GDBINIT_FILES): New variables.
5288 (all): Add stamp-system-gdbinit.
5289 (stamp-system-gdbinit): New rule.
5290 (clean-system-gdbinit, install-system-gdbinit)
5291 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5292 (install-only): Add dependency on install-system-gdbinit.
5293 (uninstall): Add dependency on uninstall-system-gdbinit.
5294 (clean): Add dependency on clean-system-gdbinit.
5295 * system-gdbinit/elinos.py: New file.
5296 * system-gdbinit/wrs-linux.py: New file.
5297
1509e573
JB
52982013-05-21 Joel Brobecker <brobecker@adacore.com>
5299
5300 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5301
c5867ab6
HZ
53022013-05-21 Hui Zhu <hui@codesourcery.com>
5303
5304 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5305 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5306 * mi/mi-cmd-break.c (ctype.h): New include.
5307 (gdb_obstack.h): New include.
5308 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5309 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5310 (mi_cmd_dprintf_insert): New.
5311 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5312 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5313
7d38e38f
TT
53142013-05-20 Tom Tromey <tromey@redhat.com>
5315
5316 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5317
97b77b39
TT
53182013-05-20 Tom Tromey <tromey@redhat.com>
5319
5320 * python/py-value.c (valpy_get_dynamic_type): Simplify
5321 dynamic_type assignment. Use Py_XINCREF.
5322
53e66479
TT
53232013-05-20 Tom Tromey <tromey@redhat.com>
5324
5325 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5326
dcf87832
TT
53272013-05-20 Tom Tromey <tromey@redhat.com>
5328
5329 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5330 (gdbpy_selected_frame): Move object-construction code
5331 out of TRY_CATCH.
5332
aa36459a
TT
53332013-05-20 Tom Tromey <tromey@redhat.com>
5334
5335 * python/py-arch.c (gdbpy_initialize_arch): Use
5336 gdb_pymodule_addobject.
5337 * python/py-block.c (gdbpy_initialize_blocks): Use
5338 gdb_pymodule_addobject.
5339 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5340 gdb_pymodule_addobject.
5341 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5342 gdb_pymodule_addobject.
5343 * python/py-event.c (gdbpy_initialize_event_generic): Use
5344 gdb_pymodule_addobject.
5345 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5346 gdb_pymodule_addobject.
5347 * python/py-evts.c (add_new_registry): Use
5348 gdb_pymodule_addobject.
5349 (gdbpy_initialize_py_events): Likewise.
5350 * python/py-finishbreakpoint.c
5351 (gdbpy_initialize_finishbreakpoints): Use
5352 gdb_pymodule_addobject.
5353 * python/py-frame.c (gdbpy_initialize_frames): Use
5354 gdb_pymodule_addobject.
5355 * python/py-function.c (gdbpy_initialize_functions): Use
5356 gdb_pymodule_addobject.
5357 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5358 gdb_pymodule_addobject.
5359 * python/py-infthread.c (gdbpy_initialize_thread): Use
5360 gdb_pymodule_addobject.
5361 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5362 gdb_pymodule_addobject.
5363 * python/py-param.c (gdbpy_initialize_parameters): Use
5364 gdb_pymodule_addobject.
5365 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5366 gdb_pymodule_addobject.
5367 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5368 gdb_pymodule_addobject.
5369 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5370 gdb_pymodule_addobject.
5371 * python/py-type.c (gdbpy_initialize_types): Use
5372 gdb_pymodule_addobject.
5373 * python/py-utils.c (gdb_pymodule_addobject): New function.
5374 * python/py-value.c (gdbpy_initialize_values): Use
5375 gdb_pymodule_addobject.
5376 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5377 * python/python.c (_initialize_python): Use
5378 gdb_pymodule_addobject.
5379
3d4a3c3e
TT
53802013-05-20 Tom Tromey <tromey@redhat.com>
5381
5382 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5383 * python/py-param.c (get_set_value, get_show_value): Use
5384 explicit decrefs.
5385 * python/python.c (start_type_printers, apply_type_printers):
5386 Use explicit decrefs.
5387
72ff8829
TT
53882013-05-20 Tom Tromey <tromey@redhat.com>
5389
5390 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5391 incref the module.
5392
02146ba5
TT
53932013-05-20 Tom Tromey <tromey@redhat.com>
5394
5395 * python/python.c (gdbpy_run_events): Decref the result
5396 of PyObject_CallObject.
5397
33ee792f
TT
53982013-05-20 Tom Tromey <tromey@redhat.com>
5399
5400 * python/py-symtab.c (set_sal): Use
5401 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5402 (symtab_and_line_to_sal_object): Update.
5403
fcb49fc8
TT
54042013-05-20 Tom Tromey <tromey@redhat.com>
5405
5406 * python/py-param.c (compute_enum_values): Decref 'item'.
5407
0646da15
TT
54082013-05-20 Tom Tromey <tromey@redhat.com>
5409
5410 * mi/mi-main.c: Include python-internal.h.
5411 (mi_cmd_list_features): Check gdb_python_initialized.
5412 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5413 (python_inferior_exit, python_new_objfile, add_thread_object)
5414 (delete_thread_object, py_free_inferior): Check
5415 gdb_python_initialized.
5416 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5417 gdb_python_initialized.
5418 * python/py-type.c (save_objfile_types): Check
5419 gdb_python_initialized.
5420 * python/python-internal.h (gdb_python_initialized): Declare.
5421 * python/python.c (ensure_python_env): Throw exception if
5422 Python not initialized.
5423 (before_prompt_hook, source_python_script_for_objfile)
5424 (start_type_printers, apply_type_printers,
5425 free_type_printers): Check gdb_python_initialized.
5426 * varobj.c (varobj_get_display_hint)
5427 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5428 (install_new_value_visualizer, varobj_set_visualizer)
5429 (value_get_print_value): Check gdb_python_initialized.
5430
999633ed
TT
54312013-05-20 Tom Tromey <tromey@redhat.com>
5432
5433 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5434 Check errors.
5435 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5436 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5437 Check errors.
5438 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5439 Check errors.
5440 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5441 Check errors.
5442 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5443 Check errors.
5444 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5445 init function to return 'int'.
5446 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5447 Return 'int'. Check errors.
5448 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5449 Check errors.
5450 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5451 Return 'int'. Check errors.
5452 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5453 Check errors.
5454 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5455 Check errors.
5456 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5457 Check errors.
5458 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5459 Check errors.
5460 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5461 Check errors.
5462 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5463 Check errors.
5464 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5465 Check errors.
5466 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5467 Check errors.
5468 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5469 Check errors.
5470 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5471 Check errors.
5472 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5473 Check errors.
5474 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5475 Check errors.
5476 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5477 Check errors.
5478 * python/python-internal.h (gdbpy_initialize_auto_load,
5479 gdbpy_initialize_values, gdbpy_initialize_frames,
5480 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5481 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5482 gdbpy_initialize_blocks, gdbpy_initialize_types,
5483 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5484 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5485 gdbpy_initialize_finishbreakpoints,
5486 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5487 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5488 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5489 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5490 gdbpy_initialize_signal_event,
5491 gdbpy_initialize_breakpoint_event,
5492 gdbpy_initialize_continue_event,
5493 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5494 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5495 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5496 * python/python.c (gdb_python_initialized): New global.
5497 (gdbpy_initialize_events): Return 'int'. Check errors.
5498 (_initialize_python): Check errors. Set
5499 gdb_python_initialized.
5500
18868860
TT
55012013-05-20 Tom Tromey <tromey@redhat.com>
5502
5503 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5504 Decref the reslut of PyObject_CallMethod.
5505
9f4ff0c2
TT
55062013-05-20 Tom Tromey <tromey@redhat.com>
5507
5508 * python/py-event.c (gdbpy_initialize_event_generic): Return
5509 early if PyType_Ready fails.
5510
0d3a2e8a
TT
55112013-05-20 Tom Tromey <tromey@redhat.com>
5512
5513 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5514 as 'default' in the switch.
5515
b86af38a
TT
55162013-05-20 Tom Tromey <tromey@redhat.com>
5517
5518 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5519 get_addr_from_python calls out of TRY_CATCH.
5520 (infpy_write_memory, infpy_search_memory): Likewise.
5521 * python/py-utils.c (get_addr_from_python): Return negative
5522 value on error. Use TRY_CATCH.
5523 * python/python-internal.h (get_addr_from_python): Use
5524 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5525
c127ec58
TT
55262013-05-20 Tom Tromey <tromey@redhat.com>
5527
5528 * python/py-event.c (evpy_emit_event): Decref the
5529 result of PyObject_CallFunctionObjArgs.
5530
ba327838
TT
55312013-05-20 Tom Tromey <tromey@redhat.com>
5532
5533 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5534 Correctly decref.
5535
d8191432
TT
55362013-05-20 Tom Tromey <tromey@redhat.com>
5537
5538 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5539
5d153bd1
TT
55402013-05-20 Tom Tromey <tromey@redhat.com>
5541
5542 * python/py-event.h (gdbpy_initialize_event_generic): Use
5543 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5544 * python/py-evts.c (add_new_registry): Use
5545 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5546 * python/python-internal.h
5547 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5548
56cc411c
TT
55492013-05-20 Tom Tromey <tromey@redhat.com>
5550
5551 * python/py-arch.c (archpy_disassemble): Update.
5552 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5553 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5554 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5555 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5556 macro.
5557 (GDB_PY_HANDLE_EXCEPTION): Update.
5558 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5559
8919e174
TT
55602013-05-20 Tom Tromey <tromey@redhat.com>
5561
5562 * python/python-internal.h (events_object_type): Remove.
5563
9b08f225
TT
55642013-05-20 Tom Tromey <tromey@redhat.com>
5565
f5aee5ee
AM
5566 * python/py-event.h (evpy_emit_event): Use
5567 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5568 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5569 New macro.
9b08f225 5570
f04010ff
TT
55712013-05-20 Tom Tromey <tromey@redhat.com>
5572
5573 * py-evtregistry.c (create_event_object): Decref
5574 eventregistry_object if PyList_New fails.
5575
3919fd96
TT
55762013-05-20 Tom Tromey <tromey@redhat.com>
5577
5578 * py-cmd.c (gdbpy_string_to_argv): Check result of
5579 PyList_New.
5580
0430e8cb
TT
55812013-05-20 Tom Tromey <tromey@redhat.com>
5582
5583 * python/python.c (before_prompt_hook): Add cleanup to
5584 decref 'hook'.
5585
764123e4
TT
55862013-05-20 Tom Tromey <tromey@redhat.com>
5587
5588 * python/py-function.c (fnpy_init): Decref result of
5589 PyObject_GetAttrString.
5590
634c58be
TT
55912013-05-20 Tom Tromey <tromey@redhat.com>
5592
5593 * python/py-threadevent.c (get_event_thread): Use
5594 CPYCHECKER_RETURNS_BORROWED_REF.
5595 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5596 New define.
5597 (pspace_to_pspace_object, objfile_to_objfile_object)
5598 (find_thread_object): Use it.
5599
62eec1a5
TT
56002013-05-20 Tom Tromey <tromey@redhat.com>
5601
5602 * python/py-arch.c (arch_object_type): Use
5603 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5604 * python/py-block.c (block_syms_iterator_object_type):
5605 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5606 * python/py-bpevent.c (breakpoint_event_object_type):
5607 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5608 * python/py-cmd.c (cmdpy_object_type): Use
5609 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5610 * python/py-continueevent.c (continue_event_object_type):
5611 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5612 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5613 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5614 * python/py-events.h (thread_event_object_type):
5615 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5616 * python/py-evtregistry.c (eventregistry_object_type): Use
5617 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5618 * python/py-exitedevent.c (exited_event_object_type):
5619 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5620 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5621 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5622 * python/py-function.c (fnpy_object_type): Use
5623 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5624 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5625 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5626 * python/py-infthread.c (thread_object_type): Use
5627 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5628 * python/py-lazy-string.c (lazy_string_object_type):
5629 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5630 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5631 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5632 * python/py-objfile.c (objfile_object_type): Use
5633 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5634 * python/py-param.c (parmpy_object_type):
5635 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5636 * python/py-progspace.c (pspace_object_type):
5637 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5638 * python/py-signalevent.c (signal_event_object_type):
5639 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5640 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5641 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5642 * python/py-type.c (type_object_type, field_object_type)
5643 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5644 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5645 define.
5646 (value_object_type, block_object_type, symbol_object_type)
5647 (event_object_type, stop_event_object_type, breakpoint_object_type)
5648 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5649
81ea8796
AT
56502013-05-20 Andreas Tobler <andreas@fgznet.ch>
5651
5652 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5653 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5654
a2ce51a0
DE
56552013-05-20 Doug Evans <dje@google.com>
5656
5657 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5658 For Fission.
5659 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5660 reading_dwo_directly.
5661 (struct signatured_type): New member dwo_unit.
5662 (struct die_reader_specs): New member comp_dir.
5663 (create_signatured_type_table_from_index): Use malloc for
5664 all_type_units instead of objfile's obstack.
5665 (create_all_type_units): Ditto.
5666 (fill_in_sig_entry_from_dwo_entry): New function.
5667 (add_type_unit): New function.
5668 (lookup_dwo_signatured_type): New function.
5669 (lookup_dwp_signatured_type): New function.
5670 (lookup_signatured_type): New arg cu. All callers updated.
5671 (init_cu_die_reader): Initialize comp_dir.
5672 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5673 Change assert of matching type signatures to call error on mismatch.
5674 (lookup_dwo_unit): Add assert.
5675 (init_tu_and_read_dwo_dies): New function.
5676 (init_cutu_and_read_dies): Call it.
5677 (build_type_unit_groups): Handle case of no type unit groups created.
5678 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5679 (lookup_dwo_cutu): Tweak complaint.
5680 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5681 (dwarf2_per_objfile_free): Free all_type_units.
5682
a25cd31f
JB
56832013-05-20 Joel Brobecker <brobecker@adacore.com>
5684
5685 * windows-nat.c (handle_unload_dll): Add missing empty line.
5686
4d804846
JB
56872013-05-20 Joel Brobecker <brobecker@adacore.com>
5688
5689 * dwarf2read.c (prototyped_function_p): New function.
5690 (read_subroutine_type): Use it.
5691
1c432e72
JB
56922013-05-20 Joel Brobecker <brobecker@adacore.com>
5693
5694 * rs6000-aix-tdep.c: De-indent some example code provided
5695 as a comment.
5696
4feebbdd
EBM
56972013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5698
5699 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5700 region is ok for a hardware watchpoint using the new ptrace interface
5701 on Power servers.
5702
7d0c9981
DE
57032013-05-17 Doug Evans <dje@google.com>
5704
5705 * NEWS: Mention new maintenance commands check-symtabs, and
5706 expand-symtabs, and renamed check-psymtabs.
5707 * psymtab.c (maintenance_check_psymtabs): Renamed from
5708 maintenance_check_symtabs. Only process already-expanded symbol
5709 tables.
5710 (_initialize_psymtab): Update.
5711 * symmisc.c (maintenance_check_symtabs): New function.
5712 (maintenance_expand_name_matcher): New function
5713 (maintenance_expand_file_matcher): New function
5714 (maintenance_expand_symtabs): New function.
5715 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5716 commands.
5717
6cbc7c3d
TT
57182013-05-17 Tom Tromey <tromey@redhat.com>
5719
5720 * python/py-inferior.c (infpy_read_memory): Don't call
5721 PyErr_SetString if PyObject_New fails.
5722 * python/py-frame.c (frame_info_to_frame_object): Don't call
5723 PyErr_SetString if PyObject_New fails.
5724
a48b32c0
L
57252013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5726
5727 * acinclude.m4: Add check for dlopen in libdl.
5728 * configure.ac: Ditto.
5729 * configure: Regenerate.
5730
3de661e6
PM
57312013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5732
5733 * frame.c (frame_stash): Convert to htab.
5734 (frame_addr_hash): New function.
5735 (frame_addr_hash_eq): New function.
5736 (frame_stash_create): Convert function to create
5737 a hash table.
5738 (frame_stash_add): Convert function to add an entry to a hash
5739 table.
5740 (frame_stash_find): Convert function to search the hash table.
5741 (frame_stash_invalidate): Convert function to empty the hash
5742 table.
5743 (get_frame_id): Only add to stash if a frame_id is created.
5744 (_initialize_frame): Call frame_stash_create.
5745
bb4168a9 57462013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5747
5748 * configure.ac: Ensure MIG is available when building for GNU Hurd
5749 hosts.
5750 * configure: Regenerate.
5751
d1be3247
JB
57522013-05-16 Joel Brobecker <brobecker@adacore.com>
5753
5754 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5755
b8fea896
JB
57562013-05-16 Joel Brobecker <brobecker@adacore.com>
5757
5758 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5759 all cleanups are done before returning from this function.
5760
af880d85
JB
57612013-05-15 Joel Brobecker <brobecker@adacore.com>
5762
5763 * utils.h: #include "exceptions.h".
5764 (enum errors): Remove partial declaration.
5765
356a5233
JB
57662013-05-15 Joel Brobecker <brobecker@adacore.com>
5767
5768 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5769 * gdbarch.h, gdbarch.c: Regenerate.
5770 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5771 handling.
5772
5773 * rs6000-aix-tdep.h: New file.
5774 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5775 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5776 "xml-utils.h".
5777 (struct field_info, struct ld_info_desc): New types.
5778 (ld_info32_desc, ld_info64_desc): New static constants.
5779 (struct ld_info): New type.
5780 (rs6000_aix_extract_ld_info): New function.
5781 (rs6000_aix_shared_library_to_xml): Likewise.
5782 (rs6000_aix_ld_info_to_xml): Likewise.
5783 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5784 (rs6000_aix_init_osabi): Add call to
5785 set_gdbarch_core_xfer_shared_libraries_aix.
5786 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5787 Remove "xml-utils.h" include.
5788 (LdInfo): Delete typedef.
5789 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5790 Delete macros.
5791 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5792 Adjust code accordingly.
5793 (rs6000_core_ldinfo): Delete, folded into
5794 rs6000_aix_core_xfer_shared_libraries_aix.
5795 (rs6000_xfer_shared_library): Delete.
5796 (rs6000_xfer_shared_libraries): Reimplement.
5797
742ce053
MM
57982013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5799
5800 * record.c (record_goto_cmdlist): New.
5801 (cmd_record_goto): Split into this ...
5802 (cmd_record_goto_begin): ... this
5803 (cmd_record_goto_end): ... and this.
5804 (_initialize_record): Change "record goto" to prefix command.
5805 Add commands for "record goto begin" and "record goto end".
5806 Add an alias for "record goto start" to "record goto begin".
5807
e93ba630
JK
58082013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5809
5810 * linespec.c (convert_linespec_to_sals): New comment for
5811 SOURCE_FILENAME assignment.
5812
5821aace
JK
58132013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5814
5815 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5816 internal_warning.
5817
a1b8c4cc
TT
58182013-05-14 Tom Tromey <tromey@redhat.com>
5819
5820 * eval.c (parse_and_eval_long): Make 'exp' const.
5821 * value.h (parse_and_eval_long): Update.
5822
23b3a2c3
TT
58232013-05-14 Tom Tromey <tromey@redhat.com>
5824
5825 * ui-file.c (gdb_fopen): Make arguments const.
5826 * ui-file.h (gdb_fopen): Make arguments const.
5827
ca623f82
TT
58282013-05-14 Tom Tromey <tromey@redhat.com>
5829
5830 * remote.c (remote_set_trace_notes): Make arguments const.
5831 * target.c (update_current_target): Update cast.
5832 * target.h (to_set_trace_notes): Make arguments const.
5833
503ebb2c
TT
58342013-05-14 Tom Tromey <tromey@redhat.com>
5835
5836 * go32-nat.c (go32_terminal_info): Make 'args' const.
5837 * inferior.h (child_terminal_info): Update.
5838 * inflow.c (child_terminal_info): Make 'args' const.
5839 * target.c (default_terminal_info): Make 'args' const.
5840 (debug_to_terminal_save_ours): Likewise.
5841 * target.h (struct target_ops) <to_terminal_info>: Make argument
5842 const.
5843
85e1311a
TT
58442013-05-13 Tom Tromey <tromey@redhat.com>
5845
5846 * gcore.c (create_gcore_bfd): Make 'filename' const.
5847 * gcore.h (create_gcore_bfd): Make 'filename' const.
5848 * record-full.c (record_full_save): Make 'recfilename' const.
5849 * target.c (target_save_record): Make 'filename' const.
5850 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5851 const.
5852 (target_save_record): Likewise.
5853
d62bfeaf
TT
58542013-05-13 Tom Tromey <tromey@redhat.com>
5855
f5aee5ee 5856 PR gdb/15338:
d62bfeaf
TT
5857 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5858 ranges section has been read.
5859
ac1ca910
TT
58602013-05-13 Tom Tromey <tromey@redhat.com>
5861
5862 PR exp/15364:
5863 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5864 STRUCTOP_PTR>: Return a not_lval value for
5865 EVAL_AVOID_SIDE_EFFECTS.
5866 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5867 for EVAL_AVOID_SIDE_EFFECTS.
5868
36d1c68c
JB
58692013-05-13 Joel Brobecker <brobecker@adacore.com>
5870
5871 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5872 floating point registers to register type before storing
5873 value.
5874 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5875 Likewise.
5876
21ff4686
TT
58772013-05-10 Joel Brobecker <brobecker@adacore.com>
5878 Tom Tromey <tromey@redhat.com>
5879
5880 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5881 New functions.
5882 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5883 Declare.
5884 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5885 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5886 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5887 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5888
d3685d60
TT
58892013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5890 Tom Tromey <tromey@redhat.com>
5891
5892 PR build/15414:
5893 * configure: Rebuild.
5894 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5895 with -Wno-format.
5896
eb9fe518
PA
58972013-05-10 Pedro Alves <palves@redhat.com>
5898
5899 * remote.c (_initialize_remote): Fix spelling of
5900 qXfer:traceframe-info:read packet in packet config command.
5901
9779ab84
PA
59022013-05-10 David Taylor <dtaylor@emc.com>
5903
5904 PR remote/15455
5905
5906 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5907 "QTro" at start of packet.
5908
060cfbef
JB
59092013-05-10 Joel Brobecker <brobecker@adacore.com>
5910
5911 * solib-aix.c (solib_aix_relocate_section_addresses):
5912 For the .bss section action, apply the same offset as
5913 the .data section.
5914
ab1c4e88
JB
59152013-05-10 Joel Brobecker <brobecker@adacore.com>
5916
5917 * solib-aix.c (solib_aix_relocate_section_addresses):
5918 Remove FIXME comment.
5919
c1357578
JB
59202013-05-10 Joel Brobecker <brobecker@adacore.com>
5921
5922 PR tdep/15420:
5923 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5924 New functions, directly copied from sparc-sol-thread.c.
5925 * sparc-sol-thread.c: Delete.
5926 * configure.ac: Remove code handling sparc-solaris-thread.c.
5927 * configure: Regenerate.
5928
1e611234
PM
59292013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5930
5931 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5932 filter logic.
5933 (backtrace_command): Add "no-filters" option parsing.
5934 (_initialize_stack): Alter help to reflect "no-filters" option.
5935 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5936 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5937 (py-frame.o): Add target
5938 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5939 filter files.
5940 * python/python.h: Add new frame filter constants, and flag enum.
5941 (apply_frame_filter): Add definition.
5942 * python/python.c (apply_frame_filter): New non-Python
5943 enabled function.
5944 * python/py-utils.c (py_xdecref): New function.
5945 (make_cleanup_py_xdecref): Ditto.
5946 * python/py-objfile.c: Declare frame_filters dictionary.
5947 (objfpy_dealloc): Add frame_filters dealloc.
5948 (objfpy_new): Initialize frame_filters attribute.
5949 (objfile_to_objfile_object): Ditto.
5950 (objfpy_get_frame_filters): New function.
5951 (objfpy_set_frame_filters): New function.
5952 * python/py-progspace.c: Declare frame_filters dictionary.
5953 (pspy_dealloc): Add frame_filters dealloc.
5954 (pspy_new): Initialize frame_filters attribute.
5955 (pspacee_to_pspace_object): Ditto.
5956 (pspy_get_frame_filters): New function.
5957 (pspy_set_frame_filters): New function.
5958 * python/py-framefilter.c: New file.
5959 * python/lib/gdb/command/frame_filters.py: New file.
5960 * python/lib/gdb/frames.py: New file.
5961 * python/lib/gdb/__init__.py: Initialize global frame_filters
5962 dictionary
5963 * python/lib/gdb/FrameDecorator.py: New file.
5964 * python/lib/gdb/FrameIterator.py: New file.
5965 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5966 * mi/mi-cmds.h: Declare.
5967 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5968 --no-frame-filter logic, and Python frame filter logic.
5969 (stack_enable_frame_filters): New function.
5970 (parse_no_frame_option): Ditto.
5971 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5972 filter logic.
5973 (mi_cmd_stack_list_locals): Ditto.
5974 (mi_cmd_stack_list_args): Ditto.
5975 (mi_cmd_stack_list_variables): Ditto.
5976 * NEWS: Add frame filter note.
5977
2cb9c859
DE
59782013-05-09 Doug Evans <dje@google.com>
5979
6bf667bb
DE
5980 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5981 All callers updated.
5982 (syms_from_objfile): Ditto. Make static.
5983 (symbol_file_add_with_addrs): Renamed from
5984 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5985 num_offsets. All callers updated.
5986 * symfile.h (syms_from_objfile): Delete.
5987
2cb9c859
DE
5988 * symfile.c (decrement_reading_symtab): Add assert.
5989 (increment_reading_symtab): Ditto.
5990
40aea477
JB
59912013-05-09 Joel Brobecker <brobecker@adacore.com>
5992
5993 * source.c (forward_search_command): Replace call to getc
5994 by call to fgetc.
5995 (reverse_search_command): Likewise.
5996
680d1742
DE
59972013-05-08 Doug Evans <dje@google.com>
5998
5999 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6000 matching test.
6001
17e760ae
JB
60022013-05-08 Joel Brobecker <brobecker@adacore.com>
6003
6004 * sol-thread.c (info_cb): Factorize the code a little.
6005
c0f5f490
JB
60062013-05-08 Joel Brobecker <brobecker@adacore.com>
6007
6008 * sol-thread.c (info_cb): Rework the output of the "maintenance
6009 info sol-threads" command a bit.
6010
5d74e061
JB
60112013-05-08 Joel Brobecker <brobecker@adacore.com>
6012
6013 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6014 Replace ti.ti_startfunc by ti.ti_pc.
6015
814a3ff7
JB
60162013-05-08 Joel Brobecker <brobecker@adacore.com>
6017
6018 * solib-aix.c (solib_aix_free_library_list): New function
6019 for the case where HAVE_LIBEXPAT is not defined.
6020
58ce7251
SDJ
60212013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6022
6023 PR breakpoints/15413:
6024 * breakpoint.c (condition_completer): Simplify the code to
6025 disconsider multiple locations of breakpoints when completing the
6026 "condition" command.
6027
be8b1ea6
PM
60282013-05-07 Pierre Muller <muller@sourceware.org>
6029
6030 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6031 instead of <sys/wait.h>.
6032
1e52bda6
PM
60332013-05-07 Pierre Muller <muller@sourceware.org>
6034
6035 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6036 trailing new line from warning message.
6037
27fd0c6b
PM
60382013-05-07 Pierre Muller <muller@sourceware.org>
6039
6040 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6041 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6042
e228ac87
JB
60432013-05-07 Joel Brobecker <brobecker@adacore.com>
6044
6045 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6046 error message (ARI fix).
6047
60482013-05-07 Joel Brobecker <brobecker@adacore.com>
6049
6050 * features/library-list-aix.dtd: Replace library-list by
6051 library-list-aix.
6052 * rs6000-nat.c: Replace library-list by library-list-aix
6053 throughout.
6054 * solib-aix.c: Likewise.
6055
60562013-05-07 Joel Brobecker <brobecker@adacore.com>
6057
6058 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6059 Renames TARGET_OBJECT_AIX_LIBRARIES.
6060 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6061 TARGET_OBJECT_LIBRARIES_AIX throughout.
6062 * solib-aix.c: Likwise.
6063
26a4dda9
YQ
60642013-05-07 Yao Qi <yao@codesourcery.com>
6065
6066 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6067 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6068
3582629f
YQ
60692013-05-07 Yao Qi <yao@codesourcery.com>
6070
6071 * solib-dsbt.c (enable_break): Declare.
6072 (dsbt_current_sos): Remove call to enable_break2.
6073 (enable_break2): Rename to enable_break. Set solib breakpoint
6074 on '_dl_debug_state'.
6075 (enable_break): Remove.
6076
aacbb8a5
LM
60772013-05-07 Luis Machado <lgustavo@codesourcery.com>
6078
6079 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6080 debug state prior to replicating existing hardware watchpoints or
6081 breakpoints.
6082
0c013353
JK
60832013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6084
6085 * gcore.c (gcore_create_callback): Ignore sections with
6086 separate_debug_objfile_backlink != NULL.
6087
a1217d97
SL
60882013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6089 Andrew Jenner <andrew@codesourcery.com>
6090 Chung-Lin Tang <cltang@codesourcery.com>
6091 Julian Brown <julian@codesourcery.com>
6092
6093 Based on the nios2-elf port from Altera Corporation.
6094
6095 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6096 nios2-linux-tdep.o.
6097 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6098 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6099 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6100 * nios2-tdep.h: New.
6101 * nios2-tdep.c: New.
6102 * nios2-linux-tdep.c: New.
6103 * features/Makefile (WHICH): Add nios2-linux.
6104 (nios2-linux-expedite): Set.
6105 * features/nios2-cpu.xml: New.
6106 * features/nios2.xml: New.
6107 * features/nios2-linux.xml: New.
6108 * features/nios2.c: New (autogenerated).
6109 * features/nios2-linux.c: New (autogenerated).
6110 * regformats/nios2-linux.dat: New (autogenerated).
6111 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6112 and commands.
6113
0892cb63
DE
61142013-05-06 Doug Evans <dje@google.com>
6115
3b7bacac
DE
6116 * symfile.c: Whitespace cleanup.
6117
0892cb63
DE
6118 * solist.h (struct target_so_ops): New member clear_so.
6119 * solib-svr4.c (svr4_clear_so): New function.
6120 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6121 * solib.c (clear_so): Renamed from free_so_symbols.
6122 All callers updated. Call target clear_so if it exists.
6123
40501e00
TT
61242013-05-06 Tom Tromey <tromey@redhat.com>
6125
6126 * ada-lang.c (ada_value_primitive_packed_val): Don't
6127 call value_incref.
6128 * value.c (set_value_parent): Incref the new parent and decref
6129 the old parent.
6130 (value_copy, value_primitive_field): Use set_value_parent.
6131
b6807d98
TT
61322013-05-06 Tom Tromey <tromey@redhat.com>
6133
6134 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6135 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6136 if needed.
6137 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6138 * dwarf2read.c (write_constant_as_bytes)
6139 (dwarf2_fetch_constant_bytes): New functions.
6140
3aef2284
TT
61412013-05-06 Tom Tromey <tromey@redhat.com>
6142
6143 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6144 parameters.
6145 (dwarf2_const_value_attr): Update.
6146
66f65e2b
TT
61472013-05-06 Tom Tromey <tromey@redhat.com>
6148
6149 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6150 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6151 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6152 Remove declaration.
6153
7919a973
TT
61542013-05-06 Tom Tromey <tromey@redhat.com>
6155
6156 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6157 objfile's obstack.
6158
a7bfba49
DE
61592013-05-06 Doug Evans <dje@google.com>
6160
3189cb12
DE
6161 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6162 * stabsread.h (process_one_symbol): Update declaration.
6163 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6164 * elfread.c (elf_symfile_relocate_probe): Ditto.
6165 * psymtab.c (relocate_psymtabs): Ditto.
6166 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6167 (objfile_relocate): Ditto.
6168 * objfiles.h (objfile_relocate): Update declaration.
6169 * symfile.c (relative_addr_info_to_section_offsets): Constify
6170 addrs parameter.
6171 (default_symfile_offsets): Ditto.
6172 (syms_from_objfile_1): Constify offsets parameter.
6173 (syms_from_objfile): Ditto.
6174 (symbol_file_add_with_addrs_or_offsets): Ditto.
6175 (symfile_map_offsets_to_segments): Constify data parameter.
6176 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6177 delta parameters of member relocate.
6178 (struct sym_probe_fns): Constify new_offsets,
6179 delta parameters of member sym_relocate_probe.
6180 (struct sym_fns): Constify section_addr_info parameter of member
6181 sym_offsets.
6182 (relative_addr_info_to_section_offsets): Update declaration.
6183 (default_symfile_offsets): Ditto.
6184 (syms_from_objfile): Ditto.
6185 (symfile_map_offsets_to_segments): Ditto.
6186
a7bfba49
DE
6187 * symfile.c (syms_from_objfile_1): Use correct section count when
6188 objfile->sf == NULL.
6189
5f8e0b8f
MF
61902013-05-06 Mike Frysinger <vapier@gentoo.org>
6191
6192 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6193
ea52d893
DE
61942013-05-06 Doug Evans <dje@google.com>
6195
6196 * psympriv.h (struct partial_symtab): Augment comment for member
6197 section_offsets.
6198
4d1eb6b4
JB
61992013-05-06 Joel Brobecker <brobecker@adacore.com>
6200
6201 Reimplement shared library support on ppc-aix...
6202 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6203 * features/library-list-aix.dtd: New file.
6204 * solib-aix.h, solib-aix.c: New file.
6205 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6206 (rs6000_find_toc_address_hook): Delete.
6207 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6208 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6209 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6210 "xml-utils.h".
6211 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6212 (vmap_symtab, fixup_breakpoints): Delete.
6213 (rs6000_xfer_shared_libraries): New function.
6214 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6215 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6216 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6217 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6218 (rs6000_xfer_shared_library): New function.
6219 (find_toc_address): Delete.
6220 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6221 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6222 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6223 before creating minimal symbol. Adjust function description
6224 accordingly.
6225 (scan_xcoff_symtab): Replace call to
6226 prim_record_minimal_symbol_and_info by call to
6227 record_minimal_symbol.
6228 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6229 around default_symfile_offsets.
6230 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6231 powerpc-aix targets.
6232 * config/rs6000/nm-rs6000.h: Delete.
6233 * config/powerpc/aix.mh (NAT_FILE): Delete.
6234 (NATDEPFILES): Remove xcoffsolib.o.
6235 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6236 (ALL_TARGET_OBS): Add solib-aix.o.
6237 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6238 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6239 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6240 * xcoffsolib.h, xcoffsolib.c: Delete.
6241
6242 * solib.c (reload_shared_libraries): Remove reference to
6243 SOLIB_CREATE_INFERIOR_HOOK.
6244 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6245 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6246 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6247 comment.
6248 * corelow.c (deprecated_core_resize_section_table): Delete.
6249 * exec.c: Remove include of xcoffsolib.h".
6250 (map_vmap, vmap): Delete.
6251 (exec_close_1): Remove references to vmap.
6252 (exec_file_attach): Remove vmap handling code, and reference
6253 to DEPRECATED_IBM6000_TARGET.
6254 (bfdsec_to_vmap): Delete.
6255 (exec_files_info): Remove block of code handling VMAP.
6256 * infcmd.c (post_create_inferior): Remove reference to
6257 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6258 * infrun.c (follow_exec): Remove reference to
6259 SOLIB_CREATE_INFERIOR_HOOK.
6260 * stack.c (print_frame): Remove reference to PC_SOLIB.
6261 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6262 (dsbt_relocate_main_executable): Likewise.
6263 * solib-frv.c (frv_current_sos): Likewise.
6264
0c4f667c
JB
62652013-05-06 Joel Brobecker <brobecker@adacore.com>
6266
6267 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6268 to target_write_memory and target_read_memory.
6269
726ce67c
JB
62702013-05-06 Joel Brobecker <brobecker@adacore.com>
6271
6272 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6273 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6274
c8c9911f
JB
62752013-05-06 Joel Brobecker <brobecker@adacore.com>
6276
6277 * darwin-nat.c: Replace all "%x" instances in format strings
6278 into "0x%x" throughout.
6279
fda184b6
JB
62802013-05-06 Joel Brobecker <brobecker@adacore.com>
6281
6282 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6283 gdb_assert by call to MACH_CHECK_ERROR.
6284 (darwin_attach_pid): Raise an error rather than a failed
6285 assertion when various system calls failed. Report a warning
6286 instead of raising a failed assertion when PREV_NOT is not NULL
6287 after call to mach_port_request_notification.
6288 (darwin_ptrace_me): Raise an error rather than a failed
6289 assertion when read returns nonzero.
6290
d1d69afb
JB
62912013-05-06 Joel Brobecker <brobecker@adacore.com>
6292
6293 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6294
dc90b24d
JK
62952013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6296
6297 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6298
faab9922
JK
62992013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6300
6301 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6302 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6303 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6304 a stale cleanup. Fix double free of NAME.
6305
e0ea48a0
EZ
63062013-05-04 Eli Zaretskii <eliz@gnu.org>
6307
6308 * windows-nat.c (windows_delete_thread): Accept an additional
6309 argument, the thread's exit code, and announce thread death when
6310 print_thread_events is non-zero and we are deleting a thread that
6311 is not the main thread.
6312 (get_windows_debug_event): Pass thread exit code to
6313 windows_delete_thread.
6314
83b2706a
KB
63152013-05-03 Kevin Buettner <kevinb@redhat.com>
6316
6317 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6318 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6319 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6320 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6321 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6322 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6323 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6324 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6325 (gdbarch_tdep): New struct.
6326 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6327 E_NUM_REGS.
6328 (v850e3v5_register_name): New function.
6329 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6330 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6331 code handling the struct return conventions for the RH850 ABI.
6332 Update all callers.
6333 (v850_eight_byte_align_p): New function.
6334 (v850_push_call_dummy): Push structs by value, not by reference
6335 for the RH850 ABI. Add support for eight byte alignment.
6336 (v850_dbtrap_breakpoint_from_pc): New function.
6337 (v850_gdbarch_init): Add ABI detection code. Register
6338 v850e3v5_register_name for the v850e3v5 architecture. Set the
6339 number of registers for v850e3v5. Register
6340 v850_dbtrap_breakpoint_from_pc as appropriate.
6341 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6342
d445b2f6
DE
63432013-05-03 Doug Evans <dje@google.com>
6344
6345 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6346 of bfd_count_sections.
6347 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6348 * symfile.c (default_symfile_offsets): Ditto.
6349 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6350 one entry, not bfd_count_sections entries.
6351
b3ce41ea
KB
63522013-05-03 Kevin Buettner <kevinb@redhat.com>
6353
6354 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6355 `save' and `restore' register groups. Don't include SPL
6356 or SPH in these groups.
6357 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6358 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6359 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6360 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6361 dwarf2_append_unwinders().
6362
96f7d3f1
PW
63632013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6364
6365 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6366 ignore SIGINT and SIGTRAP in case these internal signals are
6367 caught explicitely.
6368
b9dd1947
JB
63692013-05-01 Joel Brobecker <brobecker@adacore.com>
6370
6371 * darwin-nat.c (darwin_read_write_inferior): Change types
6372 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6373 of copy_count to "mach_msg_type_number_t".
6374 (darwin_read_dyld_info): Change type of parameter
6375 rdaddr to "gdb_byte *".
6376
4ca18a63
JB
63772013-05-01 Joel Brobecker <brobecker@adacore.com>
6378
6379 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6380 of &info->load_map from "char *" to "gdb_byte *".
6381
2b692d32
JB
63822013-05-01 Joel Brobecker <brobecker@adacore.com>
6383
6384 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6385 from "char *" to "gdb_byte *".
6386 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6387
a98c29a0
DE
63882013-04-30 Doug Evans <dje@google.com>
6389
6a506a2d
DE
6390 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6391 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6392 DWO stub. If DWO isn't found, just use stub.
6393 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6394
a98c29a0
DE
6395 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6396 calling init_cutu_and_read_dies.
6397
f92b06da
WT
63982013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6399
6400 * target-descriptions.c (maint_print_c_tdesc_cmd):
6401 Add case to parse structures as register types and
6402 bitfields.
6403
95eebdcc
WT
64042013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6405
6406 * MAINTAINERS (Write After Approval): Add myself to the list.
6407
019c1128
JB
64082013-04-30 Joel Brobecker <brobecker@adacore.com>
6409
6410 * sol-thread.c (rw_common): Change type of parameter "buf"
6411 to "gdb_byte *".
6412 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6413 rw_common to "gdb_byte *" instead of "char *".
6414
5812197c
JB
64152013-04-30 Joel Brobecker <brobecker@adacore.com>
6416
6417 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6418 of local variable msym to const struct bound_minimal_symbol.
6419 Adjust use accordingly.
6420 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6421
ecccb813
TS
64222013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6423
6424 * i386gnu-nat.c (CREG_OFFSET): New macro.
6425 (creg_offset): New array.
6426 (CREG_ADDR): Use creg_offset instead of reg_offset.
6427
f1d02dd4 64282013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6429
6430 * mep-tdep.c (mep_write_pc): Delete.
6431 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6432 Add call to set_gdbarch_pc_regnum.
6433
f1d02dd4 64342013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6435
6436 * common/filestuff.c: Replace #include <dirent.h> by
6437 #include "gdb_dirent.h".
6438
f1d02dd4 64392013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6440
6441 * common/filestuff.c: Replace #include <sys/stat.h> by
6442 #include "gdb_stat.h".
6443
b385a60d
PM
64442013-04-29 Pierre Muller <muller@sourceware.org>
6445
6446 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6447 editCase function rule.
6448 (get_DW_AT_signature_type): Likewise.
6449
d27b54ad
JB
64502013-04-29 Joel Brobecker <brobecker@adacore.com>
6451
6452 * m32r-tdep.c (m32r_write_pc): Delete.
6453 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6454 Add call to set_gdbarch_pc_regnum.
6455
47d21dc5
PM
64562013-04-29 Pierre Muller <muller@sourceware.org>
6457
6458 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6459
9056882e
JB
64602013-04-29 Joel Brobecker <brobecker@adacore.com>
6461
6462 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6463
7ee4732a
YQ
64642013-04-28 Yao Qi <yao@codesourcery.com>
6465
6466 * solib-dsbt.c (fetch_loadmap): Re-indent.
6467 (displacement_from_map, enable_break2): Likewise.
6468 (dsbt_relocate_section_addresses): Likewise.
6469
2260af53 64702013-04-26 Joel Brobecker <brobecker@adacore.com>
6471
6472 GDB 7.6 released.
6473
ff546935
TT
64742013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6475
6476 PR corefiles/14983:
6477 * dwarf2read.c (process_full_comp_unit): Always create a static
6478 block.
6479
40fb6c5e
HZ
64802013-04-25 Hui Zhu <hui@codesourcery.com>
6481
6482 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6483 to loc->cmd_bytecode.
6484
74e04d1c
DE
64852013-04-24 Doug Evans <dje@google.com>
6486
6487 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6488
3cf62c1d
KS
64892013-04-22 Keith Seitz <keiths@redhat.com>
6490
6491 * tracepoint.c (trace_save): Call the writer's start method.
6492
bf9e4d0c
MB
64932013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6494
6495 PR gdb/10462
6496 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6497 before argument.
6498
5d71132c
TT
64992013-04-23 Tom Tromey <tromey@redhat.com>
6500
6501 * common/filestuff.c: Check USE_WIN32API before including
6502 sys/socket.h.
6503 (HAVE_F_GETFD): New define.
6504 (mark_cloexec): Check HAVE_F_GETFD.
6505 (gdb_open_cloexec): Change 'mode' to unsigned long.
6506 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6507 (gdb_pipe_cloexec): Check HAVE_PIPE.
6508 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6509 long.
6510
a11cfd87
HZ
65112013-04-23 Hui Zhu <hui@codesourcery.com>
6512
6513 PR gdb/15293
a11cfd87
HZ
6514 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6515
2d9442cc
HZ
65162013-04-23 Hui Zhu <hui@codesourcery.com>
6517
6518 PR gdb/15165
2d9442cc
HZ
6519 * breakpoint.c (dprintf_print_recreate): New.
6520 (save_breakpoints): Let it not save dprintf commands.
6521 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6522
614c279d
TT
65232013-04-22 Tom Tromey <tromey@redhat.com>
6524
6525 PR gdb/7912:
6526 * Makefile.in (SFILES): Add filestuff.c
6527 (COMMON_OBS): Add filestuff.o.
6528 (filestuff.o): New target.
6529 * auto-load.c (auto_load_objfile_script_1): Use
6530 gdb_fopen_cloexec.
6531 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6532 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6533 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6534 * common/agent.c (gdb_connect_sync_socket): Use
6535 gdb_socket_cloexec.
6536 * common/filestuff.c: New file.
6537 * common/filestuff.h: New file.
6538 * common/linux-osdata.c (linux_common_core_of_thread)
6539 (command_from_pid, commandline_from_pid, print_source_lines)
6540 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6541 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6542 gdb_fopen_cloexec.
6543 * common/linux-procfs.c (linux_proc_get_int)
6544 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6545 * config.in, configure: Rebuild.
6546 * configure.ac: Don't check for sys/socket.h. Check for
6547 fdwalk, pipe2.
6548 * corelow.c (core_open): Use gdb_open_cloexec.
6549 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6550 * fork-child.c (fork_inferior): Call close_most_fds.
6551 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6552 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6553 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6554 Use gdb_fopen_cloexec.
6555 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6556 gdb_open_cloexec.
6557 (linux_async_pipe): Use gdb_pipe_cloexec.
6558 * remote-fileio.c (remote_fileio_func_open): Use
6559 gdb_open_cloexec.
6560 * remote.c (remote_file_put, remote_file_get): Use
6561 gdb_fopen_cloexec.
6562 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6563 close_most_fds.
6564 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6565 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6566 * solib.c (solib_find): Use gdb_open_cloexec.
6567 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6568 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6569 (tfile_open): Use gdb_open_cloexec.
6570 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6571 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6572 * xml-support.c (xml_fetch_content_from_file): Use
6573 gdb_fopen_cloexec.
6574 * main.c (captured_main): Call notice_open_fds.
6575
5fda2332
EBM
65762013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6577
6578 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6579 'char *' to 'gdb_byte *'.
6580 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6581 'gdb_byte'.
6582
eb6c553b
YQ
65832013-04-22 Yao Qi <yao@codesourcery.com>
6584
6585 * infrun.c: Fix typo in comment.
6586
9991b207
SDJ
65872013-04-22 Andrew Haley <aph@redhat.com>
6588
6589 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6590 instead of "long".
6591
8b4833e3
YQ
65922013-04-20 Yao Qi <yao@codesourcery.com>
6593
6594 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6595 'char *' to 'gdb_byte *'. Cast the return value of
6596 'bt_ctf_get_char_array' to 'gdb_byte *'.
6597
bd3f3b55
PA
65982013-04-19 Pedro Alves <palves@redhat.com>
6599
6600 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6601 -Wpointer-sign.
6602 * configure: Regenerate.
6603
c49e7f76
PA
66042013-04-19 Pedro Alves <palves@redhat.com>
6605
6606 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6607 'void *'.
6608
12ff8552
PA
66092013-04-19 Pedro Alves <palves@redhat.com>
6610
6611 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6612 Change type of 'myaddr' parameter to gdb_byte pointer.
6613 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6614 to 'long long' pointer instead of to 'unsigned long long'.
6615 (monitor_write_memory_block, monitor_read_memory_single)
6616 (monitor_read_memory): Change type of 'myaddr' parameter to
6617 gdb_byte pointer.
6618
9c37696b
PA
66192013-04-19 Pedro Alves <palves@redhat.com>
6620
6621 * record.c (validate_history_size): Make parameter 'setting'
6622 unsigned.
6623
a398505b
PA
66242013-04-19 Pedro Alves <palves@redhat.com>
6625
6626 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6627 to 'gdb_byte *'.
6628
9f8afa72
PA
66292013-04-19 Pedro Alves <palves@redhat.com>
6630
6631 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6632 local to int.
6633
c714b426
PA
66342013-04-19 Pedro Alves <palves@redhat.com>
6635
6636 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6637 * ada-tasks.c (read_fat_string_value): Likewise.
6638
507a579c
PA
66392013-04-19 Pedro Alves <palves@redhat.com>
6640
6641 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6642 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6643 'offset', and adjust.
6644
f9d83a0b
PA
66452013-04-19 Pedro Alves <palves@redhat.com>
6646
6647 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6648 (read_index_from_section): Add cast to 'char *'.
6649
745eb4fd
PA
66502013-04-19 Pedro Alves <palves@redhat.com>
6651
6652 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6653
db5be46f
PA
66542013-04-19 Pedro Alves <palves@redhat.com>
6655
6656 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6657
0f928d68
PA
66582013-04-19 Pedro Alves <palves@redhat.com>
6659
6660 * record-full.c (record_full_get_bookmark): Change local 'ret'
6661 type to char * and add cast to gdb_byte *.
6662 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6663 string.
6664 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6665
89f6d837
PA
66662013-04-19 Pedro Alves <palves@redhat.com>
6667
6668 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6669 * python/py-prettyprint.c (print_string_repr): Change type of
6670 'output' local to char *. Add cast to gdb_byte * in
6671 LA_PRINT_STRING call.
6672 (print_children): Change type of 'output' local to char *.
6673 * python/py-value.c (valpy_string): Add cast to const char * in
6674 PyUnicode_Decode call.
6675
ce6ec7d8
PA
66762013-04-19 Pedro Alves <palves@redhat.com>
6677
6678 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6679 and change its type to 'const char *'. Adjust.
6680 (mips_send_packet): Add cast to 'char *', and remove cast to
6681 'unsigned char *'.
6682 (mips_receive_packet): Remove cast to 'unsigned char *'.
6683 (mips_load_srec): Use bfd_byte.
6684 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6685 (pmon_checkset): Make 'value' parameter unsigned.
6686
fda0389f
PA
66872013-04-19 Pedro Alves <palves@redhat.com>
6688
6689 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6690
bc20a4af
PA
66912013-04-19 Pedro Alves <palves@redhat.com>
6692
6693 * remote.c (remote_write_bytes_aux, compare_sections_command)
6694 (remote_read_qxfer)
6695 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6696 (remote_hostio_readlink, remote_bfd_iovec_pread)
6697 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6698 binary buffer, and char when buffer is used as string.
6699 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6700 (trace_save, tfile_open, traceframe_walk_blocks)
6701 (tfile_fetch_registers): Likewise.
6702
c628b528
PA
67032013-04-19 Pedro Alves <palves@redhat.com>
6704
6705 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6706 buffer and size_t size. Adjust.
6707 * ser-base.h (ser_base_write): Adjust.
6708 * ser-go32.c (cnts): Change type to size_t.
6709 (dos_write): Change prototype -- take 'void *'
6710 buffer and size_t size. Adjust.
6711 (dos_info): Print elements of 'cnts' as unsigned long.
6712 * serial.c (serial_write): Likewise.
6713 * serial.h (serial_write): Adjust.
6714 (struct serial_ops) <write>: Change prototype -- take 'void *'
6715 buffer and size_t size. Adjust.
6716
51a5cd90
PA
67172013-04-19 Pedro Alves <palves@redhat.com>
6718
6719 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6720 gdb_byte *.
6721 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6722
a9933661
PA
67232013-04-19 Pedro Alves <palves@redhat.com>
6724
6725 * alpha-tdep.c (alpha_extract_return_value): Use
6726 regcache_cooked_read_unsigned to read 'v0'.
6727
19afdd07
PA
67282013-04-19 Pedro Alves <palves@redhat.com>
6729
6730 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6731 parameters 'at', 'as' and 'offset' to uint32_t.
6732
96b32e50
PA
67332013-04-19 Pedro Alves <palves@redhat.com>
6734
6735 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6736 'is64' to signed 'int'.
6737
eb1bd1fb
PA
67382013-04-19 Pedro Alves <palves@redhat.com>
6739
6740 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6741 parameter to int *.
6742
463920bf
PA
67432013-04-19 Pedro Alves <palves@redhat.com>
6744
6745 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6746 'insnbuf' buffer type to unsigned int[].
6747
70242eb1
PA
67482013-04-19 Pedro Alves <palves@redhat.com>
6749
6750 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6751
9d1dd0e2
PA
67522013-04-19 Pedro Alves <palves@redhat.com>
6753
6754 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6755 unsigned long *.
6756
44096aee
PA
67572013-04-19 Pedro Alves <palves@redhat.com>
6758
6759 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6760 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6761 UINT_MAX.
6762 * mips-tdep.c (heuristic_fence_post): Change type to int.
6763 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6764
e4286e57
PA
67652013-04-19 Pedro Alves <palves@redhat.com>
6766
6767 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6768 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6769 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6770
001f13d8
PA
67712013-04-19 Pedro Alves <palves@redhat.com>
6772
6773 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6774 it to get a string view of the byte buffer.
6775 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6776 type to gdb_byte *. Adjust.
6777 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6778 Change local to char *.
6779 * solib-darwin.c (find_program_interpreter): Change return type to
6780 char *. Adjust.
6781 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6782 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6783 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6784 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6785 * solib-svr4.c (find_program_interpreter): Change return type to
6786 char *. Adjust.
6787 (enable_break): Change local 'interp_name' to char *.
6788 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6789 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6790 (spu_pseudo_register_write_spu): Use char for string buffer.
6791 Adjust.
6792 (info_spu_event_command, info_spu_signal_command): Add casts to
6793 'char *'.
6794
948f8e3d
PA
67952013-04-19 Pedro Alves <palves@redhat.com>
6796
6797 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6798 gdb_byte[].
6799 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6800 * ada-lang.c (ada_value_assign): Use gdb_byte.
6801 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6802 (alphanbsd_sigtramp_offset): Use gdb_byte.
6803 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6804 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6805 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6806 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6807 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6808 * arm-tdep.c (arm_stub_unwind_sniffer)
6809 (arm_displaced_init_closure): Use gdb_byte.
6810 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6811 (arm_default_thumb_le_breakpoint)
6812 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6813 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6814 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6815 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6816 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6817 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6818 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6819 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6820 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6821 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6822 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6823 (cris_store_return_value, cris_extract_return_value): Use
6824 gdb_byte.
6825 (constraint): Change type of parameter to char * from signed
6826 char*. Use gdb_byte.
6827 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6828 of local buffer to gdb_byte *.
6829 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6830 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6831 (add_address_entry): Change type of local buffer to gdb_byte[].
6832 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6833 (frv_push_dummy_call): Use gdb_byte.
6834 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6835 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6836 (hppa_hpux_supply_save_state): Use gdb_byte.
6837 * hppa-tdep.c (hppa32_push_dummy_call)
6838 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6839 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6840 (slotN_contents, replace_slotN_contents): Change type of parameter
6841 to gdb_byte *.
6842 (fetch_instruction, ia64_pseudo_register_write)
6843 (ia64_register_to_value, ia64_value_to_register)
6844 (ia64_extract_return_value, ia64_store_return_value)
6845 (ia64_push_dummy_call): Use gdb_byte.
6846 * m32c-tdep.c (m32c_return_value): Remove cast.
6847 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6848 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6849 gdb_byte.
6850 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6851 * mn10300-tdep.c (mn10300_store_return_value)
6852 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6853 gdb_byte.
6854 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6855 (moxie_process_record): Remove casts.
6856 * ppc-ravenscar-thread.c (supply_register_at_address)
6857 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6858 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6859 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6860 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6861 * remote.c (compare_sections_command): Use gdb_byte.
6862 * score-tdep.c (score7_free_memblock): Change type of parameter to
6863 gdb_byte *.
6864 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6865 gdb_byte *. Use gdb_byte.
6866 (sh_push_dummy_call_fpu): Use gdb_byte.
6867 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6868 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6869 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6870 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6871 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6872 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6873 (sh64_store_return_value, sh64_register_convert_to_virtual):
6874 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6875 (sh64_pseudo_register_write): Use gdb_byte.
6876 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6877 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6878 buffer.
6879 (irix_current_sos): Use gdb_byte.
6880 * solib-som.c (som_current_sos): Use gdb_byte.
6881 * sparc-ravenscar-thread.c (supply_register_at_address)
6882 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6883 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6884 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6885 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6886 'gdb_byte *'.
6887 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6888 'gdb_byte *'.
6889 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6890 * xstormy16-tdep.c (xstormy16_extract_return_value)
6891 (xstormy16_store_return_value): Change parameter type to
6892 'gdb_byte *'. Adjust.
6893 (xstormy16_push_dummy_call): Use gdb_byte.
6894 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6895 (call0_analyze_prologue, execute_code): Use gdb_byte.
6896
433730c9
PA
68972013-04-19 Vladimir Kargov <kargov@gmail.com>
6898 Pedro Alves <palves@redhat.com>
6899
6900 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6901 value contents.
6902
ac9ec31b
DE
69032013-04-17 Doug Evans <dje@google.com>
6904
6905 * dwarf2read.c (struct signatured_type): New member type.
6906 (struct attribute): Replace member signatured_type with signature.
6907 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6908 (read_call_site_scope): Call follow_die_ref instead of
6909 follow_die_ref_or_sig.
6910 (read_structure_type): Rewrite handling of signatured types.
6911 (read_enumeration_type): Ditto.
6912 (read_attribute_value): Update.
6913 (build_error_marker_type): New function.
6914 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6915 Don't call error for bad types, just build an error marker type.
6916 (dump_die_shallow): Update.
6917 (follow_die_sig_1): Renamed from follow_die_sig.
6918 Don't call error for bad types, instead return NULL.
6919 (follow_die_sig): New function.
6920 (get_signatured_type, get_DW_AT_signature_type): New functions.
6921
e546e8bb
YZ
69222013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6923
6924 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6925 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6926 function.
e546e8bb 6927
ab116149
YQ
69282013-04-17 Yao Qi <yao@codesourcery.com>
6929
6930 * top.c (print_gdb_configuration): Print configure-time
6931 parameter on using libbabeltrace or not.
6932
488a42b8
PA
69332013-04-16 Pedro Alves <palves@redhat.com>
6934
6935 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6936
f5fb825b
PA
69372013-04-16 Pedro Alves <palves@redhat.com>
6938
85d494ea 6939 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6940 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6941
e1154999
PA
69422013-04-16 Pedro Alves <palves@redhat.com>
6943
6944 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6945 * common/glibc_thread_db.h: ... this new file ...
6946 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6947
e3b50a7f
PA
69482013-04-16 Will Newton <will.newton@gmail.com>
6949 Pedro Alves <palves@redhat.com>
6950
6951 PR build/11881
6952
6953 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6954 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6955 HAVE_THREAD_DB_H.
6956
1c2e4450
PA
69572013-04-16 Pedro Alves <palves@redhat.com>
6958 Eli Zaretskii <eliz@gnu.org>
6959
6960 * NEWS: Mention "set foo unlimited".
6961
4031ecc5
DE
69622013-04-15 Doug Evans <dje@google.com>
6963
19c3d4c9
DE
6964 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6965 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6966 (create_dwo_cu_reader): Renamed from
6967 create_dwo_debug_info_hash_table_reader.
6968 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6969 Remove support for multiple CUs in a DWO file.
6970 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6971
4031ecc5
DE
6972 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6973 instead of phex.
6974 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6975 (create_dwo_in_dwp): Ditto.
6976
b340913d
TT
69772013-04-15 Tom Tromey <tromey@redhat.com>
6978
6979 * NEWS: Move recent entries into "since 7.6" section.
6980
cc16e6c9
TT
69812013-04-15 Tom Tromey <tromey@redhat.com>
6982
6983 PR c++/13588:
6984 * NEWS: Update.
6985 * break-catch-throw.c (struct exception_catchpoint)
6986 <exception_rx, pattern>: New fields.
6987 (fetch_probe_arguments, dtor_exception_catchpoint)
6988 (check_status_exception_catchpoint)
6989 (print_one_detail_exception_catchpoint): New functions.
6990 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6991 Compile regular expression if needed.
6992 (extract_exception_regexp): New function.
6993 (catch_exception_command_1): Use extract_exception_regexp.
6994 (compute_exception): Use fetch_probe_arguments.
6995 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6996 and check_status fields.
6997 * cp-abi.c (cplus_typename_from_type_info): New function.
6998 * cp-abi.h (cplus_typename_from_type_info): Declare.
6999 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7000 * gdb_regex.h (compile_rx_or_error): Declare.
7001 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7002 comment.
7003 (init_gnuv3_ops): Set get_type_from_type_info field.
7004 * probe.c (compile_rx_or_error): Move...
7005 * utils.c (compile_rx_or_error): ... here.
7006
72f1fe8a
TT
70072013-04-15 Tom Tromey <tromey@redhat.com>
7008
7009 PR c++/15176:
7010 * NEWS: Update.
7011 * break-catch-throw.c (compute_exception): New function.
7012 (exception_funcs): New global.
7013 (_initialize_break_catch_throw): Create $_exception.
7014 * cp-abi.c (cplus_type_from_type_info): New function.
7015 * cp-abi.h (cplus_type_from_type_info): Declare.
7016 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7017 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7018 (gnuv3_get_type_from_type_info): New functions.
7019 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7020
fc4746a2
TT
70212013-04-15 Tom Tromey <tromey@redhat.com>
7022
7023 * break-catch-throw.c (struct exception_names): New.
7024 (exception_functions): Change type.
7025 (re_set_exception_catchpoint): Look for SDT probes.
7026
15a73f56
TT
70272013-04-15 Tom Tromey <tromey@redhat.com>
7028
7029 PR c++/10119:
7030 * break-catch-throw.c (exception_functions): New global.
7031 (gnu_v3_exception_catchpoint_ops): Move earlier.
7032 (struct exception_catchpoint): New.
7033 (classify_exception_breakpoint): Rewrite.
7034 (re_set_exception_catchpoint): New function.
7035 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7036 Allocate a struct exception_catchpoint.
7037 (catch_exception_command_1): Update.
7038 (initialize_throw_catchpoint_ops): Set 're_set' method.
7039
916703c0
TT
70402013-04-15 Tom Tromey <tromey@redhat.com>
7041
7042 * Makefile.in (SFILES): Add break-catch-throw.c
7043 (COMMON_OBS): Add break-catch-throw.o.
7044 * break-catch-throw.c: New file.
7045 * breakpoint.c: Move exception-catching code to new file.
7046 (ep_parse_optional_if_clause): No longer static.
7047 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7048
6e72ca20
TT
70492013-04-15 Tom Tromey <tromey@redhat.com>
7050
7051 PR c++/9065:
7052 * NEWS: Update.
7053 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7054 * c-exp.y (TYPEID): New token.
7055 (exp): Add new TYPEID productions.
7056 (ident_tokens): Add "typeid".
7057 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7058 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7059 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7060 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7061 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7062 case.
7063 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7064 (build_std_type_info_type, gnuv3_get_typeid_type)
7065 (gnuv3_get_typeid): New functions.
7066 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7067 new fields on ABI object.
7068 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7069 * std-operator.def (OP_TYPEID): New.
7070
715c6909
TT
70712013-04-15 Tom Tromey <tromey@redhat.com>
7072
7073 * elfread.c (elf_symtab_read): Install versioned symbol under
7074 unversioned name as well.
7075
8de20a37
TT
70762013-04-15 Tom Tromey <tromey@redhat.com>
7077
7078 PR c++/11990:
7079 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7080 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7081 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7082 (gdb_demangle): New function.
7083 * cp-support.h (gdb_demangle): Declare.
7084 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7085 (dwarf2_name): Use gdb_demangle.
7086 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7087 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7088 suffixes from name.
7089 (gnuv3_print_method_ptr): Use gdb_demangle.
7090 * jv-lang.c (java_demangle): Use gdb_demangle.
7091 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7092 * language.c (unk_lang_demangle): Use gdb_demangle.
7093 * symtab.c (symbol_find_demangled_name)
7094 (demangle_for_lookup): Use gdb_demangle.
7095
591f19e8
TT
70962013-04-15 Tom Tromey <tromey@redhat.com>
7097
7098 PR c++/12824:
7099 * NEWS: Update.
7100 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7101 New constant.
7102 (classify_exception_breakpoint): New function.
7103 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7104 (print_mention_exception_catchpoint)
7105 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7106 (catch_exception_command_1): Handle "rethrow" catchpoint.
7107 (catch_rethrow_command): New function.
7108 (_initialize_breakpoint): Add "catch rethrow" command.
7109
4d40cad2
PM
71102013-04-15 Pierre Muller <muller@sourceware.org>
7111
7112 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7113 set_gdbarch_write_pc as deprecated anymore.
7114
30bcb456
JB
71152013-04-15 Joel Brobecker <brobecker@adacore.com>
7116
7117 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7118 declarations.
7119
da9160e4
YQ
71202013-04-13 Yao Qi <yao@codesourcery.com>
7121
7122 * ctf.c (_initialize_ctf): Include "completer.h".
7123 Call add_target_with_completer instead of add_target.
7124
39ed5604
JK
71252013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7126
7127 Fix GDB regression related to PR binutils/14813.
7128 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7129 * minidebug.c (lzma_close): Add return value comment.
7130 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7131 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7132 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7133
71342013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
7135
7136 * config.in: Regenerate.
7137
d521ce57
TT
71382013-04-12 Tom Tromey <tromey@redhat.com>
7139
7140 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7141 const.
7142 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7143 (struct die_reader_specs) <buffer>: Likewise.
7144 (die_reader_func_ftype): Make 'info_ptr' const.
7145 (struct line_header) <include_dirs, statement_program_start,
7146 statement_program_end>: Now const.
7147 (struct file_entry) <name>: Likewise.
7148 (struct partial_die_info) <sibling>: Likewise.
7149 (struct dwarf_block) <data>: Likewise.
7150 (dwarf2_read_section): Remove cast.
7151 (dwarf2_get_section_info): Make 'bufp' const.
7152 (read_index_from_section): Constify.
7153 (dw2_get_file_names_reader): Make 'info_ptr' const.
7154 (dw2_get_primary_filename_reader): Likewise.
7155 (read_comp_unit_head): Make 'info_ptr' and return type const.
7156 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7157 Likewise.
7158 (read_abbrev_offset): Constify.
7159 (dwarf2_create_include_psymtab): Make 'name' const.
7160 (create_debug_types_hash_table): Update.
7161 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7162 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7163 Constify.
7164 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7165 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7166 (read_comp_units_from_section): Constify.
7167 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7168 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7169 const.
7170 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7171 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7172 (create_dwp_hash_table, dwarf2_ranges_read)
7173 (dwarf2_record_block_ranges): Constify.
7174 (read_die_and_children, read_die_and_siblings_1)
7175 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7176 const.
7177 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7178 (abbrev_table_read_table): Constify.
7179 (load_partial_dies): Make 'info_ptr' const.
7180 (read_partial_die, read_attribute_value, read_attribute): Make
7181 'info_ptr' and return type const.
7182 (read_address, read_initial_length)
7183 (read_checked_initial_length_and_offset, read_offset)
7184 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7185 const.
7186 (read_direct_string): Make 'buf' and return type const.
7187 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7188 (read_indirect_string): Make return type const.
7189 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7190 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7191 'info_ptr' const.
7192 (read_str_index): Make return type const.
7193 (add_include_dir): Make 'include_dir' const.
7194 (add_file_name): Make 'name' const.
7195 (dwarf_decode_line_header): Constify.
7196 (psymtab_include_file_name): Make return type const.
7197 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7198 (dwarf2_start_subfile): Make 'filename' const.
7199 (dwarf2_const_value_attr): Make 'bytes' const.
7200 (read_signatured_type_reader): Make 'info_ptr' const.
7201 (decode_locdesc): Constify.
7202 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7203 const.
7204 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7205 'mac_end', and return type const.
7206 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7207 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7208 type const.
7209 (per_cu_header_read_in): Constify.
7210 * symfile.h (dwarf2_get_section_info): Update.
7211
d47a1bc1
TT
72122013-04-12 Tom Tromey <tromey@redhat.com>
7213
7214 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7215
6eaaf48b
EZ
72162013-04-12 Eli Zaretskii <eliz@gnu.org>
7217
fc4c25bf 7218 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
7219 * top.c (print_gdb_configuration): New function, displays the
7220 details about GDB configure-time parameters.
7221 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
7222 * cli/cli-cmds.c (show_configuration): New function.
7223 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
7224 * main.c (captured_main) <print_configuration>: New static var.
7225 <long_options>: Use it.
7226 If --configuration was given, call print_gdb_configuration.
7227
b292c783
JK
72282013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7229 Pedro Alves <palves@redhat.com>
7230
7231 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7232 (generated_files): Add gcore.
7233 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7234 HAVE_NATIVE_GCORE_HOST.
7235 (gcore): New.
7236 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7237 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7238 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7239 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7240 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7241 Add HAVE_NATIVE_GCORE_HOST.
7242 * configure: Regenerate.
7243 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7244 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7245 AC_CONFIG_FILES for gcore.
7246 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7247 gdb_have_gcore.
7248 * gdb_gcore.sh: Rename to ...
7249 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7250 and GCORE_TRANSFORM_NAME substitutions.
7251
c96b3c4f
JK
7252 Fix parsing tabs in ${gdb_target_obs}.
7253 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7254
d6cb50a2
JK
72552013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7256
7257 * remote.c (unpush_and_perror): Add output message final dot.
7258
cf2cb5ec
YQ
72592013-04-11 Yao Qi <yao@codesourcery.com>
7260
7261 * tracepoint.c (tfile_interp_line): Fit parameters line and
7262 utpp in one line.
7263
07293be4
JB
72642013-04-10 Joel Brobecker <brobecker@adacore.com>
7265
7266 * solib.c (solib_map_sections): Remove code overwriting
7267 SO->SO_NAME with the bfd's filename.
7268
f81d1120
PA
72692013-04-10 Pedro Alves <palves@redhat.com>
7270
7271 * cli/cli-decode.c (integer_unlimited_completer): New function.
7272 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7273 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7274 completer.
7275 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7276 (is_unlimited_literal): New function.
7277 (do_set_command): Handle literal "unlimited" arguments.
7278 * frame.c (_initialize_frame) <set backtrace limit>: Document
7279 "unlimited".
7280 * printcmd.c (_initialize_printcmd) <set print
7281 max-symbolic-offset>: Add help text.
7282 * record-full.c (_initialize_record_full) <set record full
7283 insn-number-max>: Likewise.
7284 * record.c (_initialize_record) <set record
7285 instruction-history-size, set record function-call-history-size>:
7286 Add help text.
7287 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7288 help text.
7289 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7290 Likewise.
7291 * source.c (_initialize_source) <set listsize>: Add help text.
7292 * utils.c (initialize_utils) <set height, set width>: Likewise.
7293 <set pagination>: Mention "set height unlimited".
7294 * valprint.c (_initialize_valprint) <set print elements, set print
7295 repeats>: Document "unlimited".
7296
2f9d54cf
PA
72972013-04-10 Pedro Alves <palves@redhat.com>
7298
7299 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7300 instead of disconnect_tracing.
7301 * infcmd.c (detach_command, disconnect_command): Call
7302 query_if_trace_running. Adjust.
7303 * top.c: Include "tracepoint.h".
7304 (quit_target): Delete. Contents moved ...
7305 (quit_force): ... here. Wrap each stage of teardown in
7306 TRY_CATCH. Call disconnect_tracing before detaching.
7307
393fd4c3
YQ
73082013-04-10 Hui Zhu <hui@codesourcery.com>
7309 Yao Qi <yao@codesourcery.com>
7310
7311 * configure.ac: Check libbabeltrace is installed.
7312 * config.in: Regenerate.
7313 * configure: Regenerate.
7314 * Makefile.in (LIBBABELTRACE): New.
7315 (CLIBS): Add LIBBABELTRACE.
7316 * ctf.c: Include "exec.h".
7317 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7318 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7319 (ctf_save_metadata_header): Define new type aliases in
7320 metadata.
7321 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7322 in metadata. Start a new faked packet for trace status.
7323 (ctf_write_status): Write trace status to CTF.
7324 (ctf_write_uploaded_tsv): Write TSV to CTF.
7325 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7326 (ctf_write_definition_end): End the faked packet.
7327
7328 (ctx, ctf_iter, trace_dirname): New.
7329 (start_pos): New variable.
7330 (ctf_destroy, ctf_open_dir, ctf_open): New.
7331 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7332 macros.
7333 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7334 (ctf_fetch_registers, ctf_xfer_partial): New.
7335 (ctf_get_trace_state_variable_value): New.
7336 (ctf_get_tpnum_from_frame_event): New.
7337 (ctf_get_traceframe_address): New.
7338 (ctf_trace_find, ctf_has_stack): New.
7339 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7340 (ctf_get_trace_status, ctf_read_status): New.
7341 (_initialize_ctf): New.
7342 * tracepoint.c (get_tracepoint_number): New
7343 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7344 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7345 * tracepoint.h: ... here.
7346 (get_tracepoint_number): Declare it.
7347 (get_uploaded_tsv): Declare it.
7348
7349 * NEWS: Mention new configure option.
7350
5c2b4418
HZ
73512013-04-10 Pedro Alves <palves@redhat.com>
7352 Hui Zhu <hui@codesourcery.com>
7353
7354 * breakpoint.c (dprintf_re_set): New.
7355 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7356 to dprintf_re_set.
7357
a5c66735
JB
73582013-04-09 Joel Brobecker <brobecker@adacore.com>
7359
7360 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7361 Remove solib-svr4.o from the list.
7362
9e77999c
JB
73632013-04-09 Joel Brobecker <brobecker@adacore.com>
7364
7365 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7366 Use gdb_assert_not_reached instead of invalid boolean expression.
7367
1927e618
PA
73682013-04-09 Pedro Alves <palves@redhat.com>
7369
7370 * remote.c (unpush_and_perror): New function.
7371 (readchar, remote_serial_write): Use it.
7372
10782d74
MM
73732013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7374
7375 * NEWS: Mention new btrace RSP packets.
7376
4c8429ef
TT
73772013-04-08 Tom Tromey <tromey@redhat.com>
7378
7379 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7380 long.
7381
8625fc1b
TT
73822013-04-08 Tom Tromey <tromey@redhat.com>
7383
7384 * maint.c (print_bfd_section_info): Print the section index.
7385 * symmisc.c (dump_msymbols): Print the section index.
7386
e27d198c
TT
73872013-04-08 Tom Tromey <tromey@redhat.com>
7388
7389 PR symtab/8424:
7390 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7391 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7392 * breakpoint.c (resolve_sal_pc): Update.
7393 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7394 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7395 (minsym_lookup_iterator_cb): Use it.
7396 (default_read_var_value): Update.
7397 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7398 Update.
7399 * infcmd.c (jump_command): Update.
7400 * linespec.c (minsym_found): Update.
7401 * maint.c (maintenance_translate_address): Update.
7402 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7403 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7404 * parse.c (write_exp_msymbol): Update.
7405 * printcmd.c (address_info): Update.
7406 * psymtab.c (find_pc_sect_psymbol): Update.
7407 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7408 SYMBOL_OBJ_SECTION.
7409 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7410 Don't initialize SYMBOL_OBJ_SECTION.
7411 * spu-tdep.c (spu_catch_start): Update.
7412 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7413 * symmisc.c (dump_msymbols, print_symbol): Update.
7414 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7415 how fallback section is computed.
7416 (fixup_symbol_section): Update.
7417 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7418 Update.
7419 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7420 Initialize SYMBOL_SECTION.
7421 * symtab.h (struct general_symbol_info) <section>: Update comment.
7422 <obj_section>: Remove.
7423 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7424 (SYMBOL_OBJFILE): New macro.
7425
e6dc44a8
TT
74262013-04-08 Tom Tromey <tromey@redhat.com>
7427
7428 * coffread.c (record_minimal_symbol): Update.
7429 * dbxread.c (record_minimal_symbol): Update.
7430 * elfread.c (record_minimal_symbol): Update.
7431 * machoread.c (macho_symtab_add_minsym): Update.
7432 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7433 Update.
7434 * minsyms.c (prim_record_minimal_symbol): Update.
7435 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7436 argument.
7437 (prim_record_minimal_symbol_and_info): Likewise.
7438 * minsyms.h (prim_record_minimal_symbol_full)
7439 (prim_record_minimal_symbol_and_info): Update.
7440 * symtab.c (allocate_symbol, initialize_symbol)
7441 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7442 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7443 Update.
7444
36192a8d
TT
74452013-04-08 Tom Tromey <tromey@redhat.com>
7446
7447 PR symtab/8423:
7448 * solib-som.c (som_solib_section_offsets): Use BFD section
7449 indices. Set offsets for all sections.
7450 * somread.c (som_symtab_read): Compute BFD section for
7451 symbol. Use prim_record_minimal_symbol_and_info.
7452 (som_symfile_read): Fix comment.
7453 (struct find_section_offset_arg): New.
7454 (find_section_offset, set_section_index): New functions.
7455 (som_symfile_offsets): Use set_section_index to compute
7456 section indices.
7457
65cf3563
TT
74582013-04-08 Tom Tromey <tromey@redhat.com>
7459
7460 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7461 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7462 gdb_bfd_section_index.
7463 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7464 New functions.
7465 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7466 Declare.
7467 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7468 Update.
7469 * objfiles.c (add_to_objfile_sections_full): New function.
7470 (add_to_objfile_sections): Use it.
7471 (build_section_table): Rewrite.
7472 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7473 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7474 (struct objfile) <sections>: Update comment.
7475 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7476 is NULL.
7477 (ALL_OBJSECTIONS): Use it.
7478 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7479 * solib-frv.c (frv_relocate_main_executable): Update.
7480 * solib-target.c (solib_target_relocate_section_addresses):
7481 Use gdb_bfd_section_index.
7482 * symfile.c (build_section_addr_info_from_section_table):
7483 Use gdb_bfd_section_index.
7484 (build_section_addr_info_from_bfd, place_section): Likewise.
7485 * symtab.c (fixup_section): Update.
7486 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7487
7cbd4a93
TT
74882013-04-08 Tom Tromey <tromey@redhat.com>
7489
7490 * minsyms.h (struct bound_minimal_symbol): New.
7491 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7492 Remove objfile argument.
7493 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7494 Return bound_minimal_symbol.
7495 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7496 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7497 Return bound_minimal_symbol.
7498 (in_gnu_ifunc_stub): Update.
7499 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7500 Remove 'objfile_p' argument.
7501 (lookup_solib_trampoline_symbol_by_pc): Update.
7502 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7503 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7504 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7505 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7506 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7507 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7508 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7509 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7510 stack.c, symtab.c, tui/tui-disasm.c: Update.
7511
f85f34ed
TT
75122013-04-08 Tom Tromey <tromey@redhat.com>
7513
7514 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7515 Use symbol's obstack, not an objfile.
7516 * coffread.c (process_coff_symbol): Update.
7517 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7518 * jv-lang.c (add_class_symbol): Update.
7519 * mdebugread.c (new_symbol): Update.
7520 * minsyms.c (prim_record_minimal_symbol_full)
7521 (terminate_minimal_symbol_table): Update.
7522 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7523 * stabsread.c (define_symbol, read_enum_type): Update.
7524 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7525 Handle Ada specially.
7526 (symbol_set_language): Add 'obstack' argument.
7527 (symbol_set_names): Update.
7528 (symbol_natural_name, symbol_demangled_name): Always use
7529 ada_decode_symbol.
7530 * symtab.h (struct general_symbol_info)
7531 <language_specific::obstack>: New field.
7532 <ada_mangled>: New field.
7533 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7534 (symbol_set_language): Update.
7535
ccde22c0
TT
75362013-04-08 Tom Tromey <tromey@redhat.com>
7537
7538 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7539 Take an obstack, not an objfile.
7540 (symbol_set_names): Update.
7541 * symtab.h (symbol_set_demangled_name): Update.
7542
e623cf5d
TT
75432013-04-08 Tom Tromey <tromey@redhat.com>
7544
7545 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7546 allocate_symbol.
7547 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7548 (read_func_scope): Call allocate_template_symbol.
7549 (new_symbol_full): Call allocate_symbol.
7550 * jit.c (finalize_symtab): Call allocate_symbol.
7551 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7552 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7553 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7554 (common_block_end): Call allocate_symbol.
7555 * symtab.c (allocate_symbol, initialize_symbol)
7556 (allocate_template_symbol): New functions.
7557 * symtab.c (allocate_symbol, initialize_symbol)
7558 (allocate_template_symbol): Declare.
7559 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7560
f6de8ec2
PA
75612013-04-08 Pedro Alves <palves@redhat.com>
7562 Keith Seitz <keiths@redhat.com>
7563
7564 * breakpoint.c (create_breakpoint): Rename
7565 "parse_condition_and_thread" parameter to "parse_arg". Update
7566 describing comment. If !PARSE_ARG, then error out if ARG is not
7567 the empty string after extracting the location.
7568 * breakpoint.h (create_breakpoint): Rename
7569 "parse_condition_and_thread" parameter to "parse_arg".
7570
f65ce5fb
AR
75712013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7572
7573 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7574
cc5925ad
YQ
75752013-04-07 Yao Qi <yao@codesourcery.com>
7576
7577 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7578 and 'addr2' to CORE_ADDR.
7579 * target.c (update_current_target): Update.
7580 * target.h (struct target_ops) <to_trace_find>: Change parameter
7581 type to CORE_ADDR.
7582 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7583 'addr2' to CORE_ADDR.
7584 (tfile_trace_find): Likewise.
7585 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7586 Change local variable 'addr' to type CORE_ADDR.
7587 * tracepoint.h (tfind_1): Update declaration.
7588
d9ac0664
EZ
75892013-04-06 Eli Zaretskii <eliz@gnu.org>
7590
7591 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7592 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7593 Include main.h.
7594
7595 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7596 here...
7597 * main.h (windows_get_absolute_argv0): ...to here.
7598
02142a6c
DE
75992013-04-05 Doug Evans <dje@google.com>
7600
7601 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7602 (read_cutu_die_from_dwo): Add comments.
7603 (read_structure_type): Update comment.
7604 (read_enumeration_type, read_namespace_type): Update comment.
7605 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7606
43662968
JK
76072013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7608
7609 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7610 * Makefile.in (gdb.z): Remove.
7611 (install-only): Remove $(man1dir) and gdb.1 installation.
7612 * gdb.1: Remove.
7613
9ead1b84
JK
76142013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7615
7616 Fix compatibility with Linux kernel 3.8.3.
7617 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7618 to more inner block. Remove parsing of NUMBER from outer block.
7619 Parse NUMBER only if KEYWORD has been identified.
7620
d1794952
JK
76212013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7622
7623 Fix variable name shadowing.
7624 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7625 filename to mapsfilename and update its uses.
7626
9025569e
EZ
76272013-04-05 Eli Zaretskii <eliz@gnu.org>
7628
7629 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7630 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7631 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7632 details of the problem.
7633
c9a6ce02
PA
76342013-04-04 Pedro Alves <palves@redhat.com>
7635 Hui Zhu <hui@codesourcery.com>
7636
7637 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7638 tracepoint, reset its STEP_COUNT and call validate_actionline.
7639
5ff888ce
DE
76402013-04-03 Doug Evans <dje@google.com>
7641
bf6af496
DE
7642 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7643 read_die_and_siblings.
7644 (read_die_and_siblings): New function.
7645 (read_cutu_die_from_dwo): Dump die if requested.
7646 (read_die_and_children): Call read_full_die_1 and
7647 read_die_and_siblings_1.
7648 (read_full_die): Dump die if requested.
7649
7650 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7651
0ac5b59e
DE
7652 * dwarf2read.c (struct dwo_file): New member comp_dir.
7653 Rename member name to dwo_name. All uses updated.
7654 (hash_dwo_file): Include comp_dir in computation.
7655 (eq_dwo_file): Ditto.
7656 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7657 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7658
5ff888ce
DE
7659 * psymtab.c (read_psymtabs_with_fullname): Don't call
7660 psymtab_to_fullname if the basenames are different.
7661
ec83d211
JK
76622013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7663
7664 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7665 New entry about "fullname" presence.
7666
4f4352f7
PA
76672013-04-03 Pedro Alves <palves@redhat.com>
7668
7669 * NEWS: Mention x86_64/Cygwin as new native configuration.
7670
3d1d5ea3
DE
76712013-04-02 Doug Evans <dje@google.com>
7672
7673 * dwarf2read.c (read_structure_type): Fix typo in comment.
7674
be9a8770
PA
76752013-04-02 Pedro Alves <palves@redhat.com>
7676
7677 * NEWS: Mention "set/show debug aarch64", "set/show debug
7678 coff-pe-read" and "set/show debug mach-o".
7679
a46c1e42
PA
76802013-04-02 Pedro Alves <palves@redhat.com>
7681
7682 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7683
3ad18b19
EZ
76842013-04-02 Eli Zaretskii <eliz@gnu.org>
7685
7686 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7687 gdb_string.h is now in common/.
7688
e9f1758d
PA
76892013-04-02 Pedro Alves <palves@redhat.com>
7690
7691 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7692 under "New options".
7693
049dc89b
JK
76942013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7695
7696 Revert this patch:
7697 PR gdb/15275
7698 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7699
c33e31fd
PA
77002013-04-02 Pedro Alves <palves@redhat.com>
7701
7702 PR gdb/15275
7703
7704 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7705 (remote_serial_write): New function.
7706 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7707
ea5f3910
JW
77082013-04-01 Jiong Wang <jiwang@tilera.com>
7709
7710 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7711 "New targets" sections.
ea5f3910 7712
5c6fa7ab
DE
77132013-04-01 Doug Evans <dje@google.com>
7714
c0f78cd4
DE
7715 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7716 (process_enumeration_scope): Simplify.
7717
0186c6a7
DE
7718 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7719 type_unit_group ...
7720 (struct signatured_type): ... to here.
7721 (sig_type_ptr): New typedef.
7722 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7723 out of union 't'. All uses updated.
7724 (dw2_get_file_names_reader): Assert not called for a type unit.
7725 (dw2_get_file_names): Assert not called for a type unit or type
7726 unit group.
7727 (build_type_psymtabs_reader): Assert called for a type unit.
7728 (build_type_psymtab_dependencies): Assert called for a type unit group.
7729
5c6fa7ab
DE
7730 * dwarf2read.c (free_dwo_file): Add comment.
7731 (dwarf2_per_objfile_free): Unref dwp bfd.
7732
b3c0ad67 77332013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7734
7735 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7736 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7737 (read_pe_exported_syms): Remove unused 'exportix'.
7738 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7739 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7740 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7741
e2df1547
AR
77422013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7743
7744 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7745 (print_it_watchpoint): Remove unused 'bl'.
7746 (say_where): Remove unused 'uiout'.
7747 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7748 (bkpt_breakpoint_hit): Remove unused 'b'.
7749 (internal_bkpt_print_it): Remove unused 'uiout'.
7750 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7751
d81e75c0
TD
77522013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7753
7754 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7755 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7756
5a8b3f62
DE
77572013-03-29 Doug Evans <dje@google.com>
7758
ab5088bf
DE
7759 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7760 Delete arg is_dwp. All callers updated.
7761 (open_dwp_file): New function.
7762 (open_and_init_dwp_file): Call it.
7763 (get_dwp_file): New function.
7764 (lookup_dwo_cutu): Call it.
7765
a8ad1e57
DE
7766 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7767 unnecessary, cleanup.
7768
6296d8c1
DE
7769 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7770
b0c7bfa9
DE
7771 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7772 (lookup_dwo_unit): New function.
7773 (init_cutu_and_read_dies): Move DWO handling to new functions.
7774
c88ee1f0
DE
7775 * dwarf2read.c (struct signatured_type): Tweak comment.
7776 (struct dwo_unit): Tweak comment.
7777 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7778 (create_dwo_debug_info_hash_table): Tweak comment.
7779 (dwarf2_per_cu_offset_and_type): Tweak comment.
7780
5a8b3f62
DE
7781 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7782 missing .debug_types section.
7783
9852c492
YQ
77842013-03-29 Yao Qi <yao@codesourcery.com>
7785
7786 * corelow.c: Include "completer.h".
7787 (_initialize_corelow): Call add_target_with_completer with
7788 argument 'filename_completer'.
7789 * tracepoint.c: Likewise.
7790 * exec.c (_initialize_exec): Likewise.
7791 * target.c (add_target): Rename to ...
7792 (add_target_with_completer): ... this. Call set_cmd_completer
7793 if parameter completer is not NULL.
7794 (add_target): New.
7795 * target.h: Include "command.h".
7796 (add_target_with_completer): Declare it.
7797
af312be7
JB
77982013-03-28 Joel Brobecker <brobecker@adacore.com>
7799
7800 * coffread.c (is_import_fixup_symbol): New function.
7801 (record_minimal_symbol): Use is_import_fixup_symbol to
7802 detect import fixup symbols, and discard them.
7803
8a0459fd
DE
78042013-03-28 Doug Evans <dje@google.com>
7805
0349ea22
DE
7806 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7807 types hash table until we know we need it.
7808
f652bce2
DE
7809 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7810 index numbers.
7811
e4a48d9d
DE
7812 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7813 All callers updated.
7814 (dw2_print_stats): Print #read CUs too.
7815 (dump_die_shallow): Print signatured types better.
7816
8a0459fd
DE
7817 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7818 info_or_types_section to section. All uses updated.
7819 (struct dwo_unit): Ditto.
7820
bd3eecc3
PA
78212013-03-28 Pedro Alves <palves@redhat.com>
7822
7823 * NEWS (New options): New section.
7824 (New options): Mention set/show remote trace-status-packet.
7825 * remote.c (PACKET_qTStatus): New enumeration value.
7826 (remote_get_trace_status): Skip sending qTStatus if the packet is
7827 disabled. Use packet_ok.
7828 (_initialize_remote): Register a configuration command for
7829 qTStatus packet.
7830
41245087
DE
78312013-03-28 Doug Evans <dje@google.com>
7832
7edbb660
DE
7833 * symfile.c (find_separate_debug_file): Add comment.
7834 (terminate_after_last_dir_separator): Tweak comment.
7835
0018ea6f
DE
7836 * dwarf2read.c (create_partial_symtab): Add forward decl.
7837 (create_partial_symtab): Move to be closer to other psymtab functions.
7838 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7839
ca69b9e6
DE
7840 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7841 (compute_symtab_includes): Remove unnecessary forward declaration.
7842 (die_needs_namespace): Add comment marking group of functions for
7843 dwarf2 name computation.
7844
a9375afe
DE
7845 * typeprint.c (_initialize_typeprint): Improve type help text.
7846
41245087
DE
7847 * python/python.c (finish_python_initialization): Provide suggestion
7848 for how to tell gdb to find its python files.
7849
7f7cc265
PA
78502013-03-28 Pedro Alves <palves@redhat.com>
7851
7852 PR gdb/15294
7853
7854 * source.c (_initialize_source): Change back "set listsize" to an
7855 integer command.
7856
ec21308c
JK
78572013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7858
7859 PR gdb/15275
7860 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7861
840a9a1f
PA
78622013-03-27 Pedro Alves <palves@redhat.com>
7863
7864 * top.c (history_size): Rename to ...
7865 (history_size_setshow_var): ... this. Add comment.
7866 (show_commands): Use readline's 'history_length' instead of
7867 computing the history length by calling history_get in a loop.
7868 (set_history_size_command): Error out for sizes over INT_MAX.
7869 Restore previous history size on invalid size.
7870 (init_history): If HISTSIZE is negative, leave the history size as
7871 zero. Add comments.
7872 (init_main): Adjust.
7873
826ecc4d
PA
78742013-03-27 Pedro Alves <palves@redhat.com>
7875
7876 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7877 coff_pe_read" command to "set debug coff-pe-read".
7878
0ccfeeae
MM
78792013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7880
7881 * record.c (command_size_to_target_size): Fix size comparison.
7882 Change parameter type from pointer to integer to integer.
7883 Update all users.
7884
40653b35
PM
78852013-03-27 Pierre Muller <muller@sourceware.org>
7886
7887 * windows-nat.c (handle_output_debug_string): Avoid typecast
7888 from integer of different size warning.
7889
c62fa0e2
JB
78902013-03-26 Joel Brobecker <brobecker@adacore.com>
7891
7892 * windows-nat.c (handle_output_debug_string): Add empty line
7893 after local block variable definition.
7894
2c619be2
PA
78952013-03-26 Pedro Alves <palves@redhat.com>
7896
7897 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7898 (net_open): Make 'polls' local unsigned.
7899
1b493192
PA
79002013-03-26 Pedro Alves <palves@redhat.com>
7901
7902 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7903 a zuinteger command instead of uinteger.
7904
7ee70bf5
PA
79052013-03-26 Pedro Alves <palves@redhat.com>
7906
7907 * record-full.c (record_full_insn_num): Make it unsigned.
7908 (record_full_check_insn_num, record_full_message)
7909 (record_full_registers_change, record_full_xfer_partial): Remove
7910 record_full_insn_max_num check (it's always != 0).
7911 (record_full_info, record_full_restore): Use %u as format string.
7912 (): Use %u as format string.
7913 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7914 check (it's always != 0).
7915
dfd1f9bb
PA
79162013-03-26 Pedro Alves <palves@redhat.com>
7917
7918 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7919 and "set dcache size" commands zuinteger instead of uinteger.
7920
addb4faf
PA
79212013-03-26 Pedro Alves <palves@redhat.com>
7922
7923 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7924 command zuinteger instead of uinteger.
7925
b75bf488
PA
79262013-03-26 Pedro Alves <palves@redhat.com>
7927
7928 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7929 zuinteger instead of uinteger.
7930
42c634cb
PA
79312013-03-26 Pedro Alves <palves@redhat.com>
7932
7933 * record.c (record_insn_history_size_setshow_var)
7934 (record_call_history_size_setshow_var): New globals.
7935 (command_size_to_target_size): New function.
7936 (cmd_record_insn_history, cmd_record_call_history): Use
7937 command_size_to_target_size instead of cast.
7938 (validate_history_size, set_record_insn_history_size)
7939 (set_record_call_history_size): New functions.
7940 (_initialize_record): Install set_record_insn_history_size and
7941 set_record_call_history_size as "set" hooks of "set record
7942 instruction-history-size" and "set record
7943 function-call-history-size".
7944
1fb2e2b5
PA
79452013-03-26 Pedro Alves <palves@redhat.com>
7946
7947 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7948 use with history_max_entries use. Remove FIXME note.
7949
99c819ee
MM
79502013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7951
7952 * record-btrace.c (record_btrace_close): Call
7953 record_btrace_auto_disable.
7954
9f9e404c
JB
79552013-03-25 Joel Brobecker <brobecker@adacore.com>
7956
7957 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7958
ebcdfe33
DE
79592013-03-25 Doug Evans <dje@google.com>
7960
7961 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7962
24955f63
TT
79632013-03-25 Tom Tromey <tromey@redhat.com>
7964
7965 PR symtab/11462:
7966 * c-exp.y (exp): Add new productions for destructors after '.' and
7967 '->'.
7968 (write_destructor_name): New function.
7969
fce632b6
TT
79702013-03-25 Tom Tromey <tromey@redhat.com>
7971
7972 PR c++/9197:
7973 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7974 value_struct_elt, not lookup_struct_elt_type.
7975 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7976 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7977 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7978
a4341769
YQ
79792013-03-25 Yao Qi <yao@codesourcery.com>
7980
7981 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7982 instead of '_mkdir'.
7983
b5981e5a
EZ
79842013-03-23 Eli Zaretskii <eliz@gnu.org>
7985
7986 * windows-nat.c (windows_get_absolute_argv0): New function.
7987 * windows-nat.h: Add its prototype.
7988
7989 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7990 Use IS_DIR_SEPARATOR instead of looking for a character inside
7991 SLASH_STRING. Include filenames.h.
7992 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7993 relocate_gdb_directory works when passed gdb_program_name.
7994 Include windows-nat.h.
7995
598d3636
JK
79962013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7997
7998 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7999 * remote.c (trace_error): Remove the special handling of '2'.
8000 (readchar) <SERIAL_EOF>
8001 (readchar) <SERIAL_ERROR>
8002 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8003 (remote_get_trace_status): Call throw_exception if EX is
8004 TARGET_CLOSE_ERROR.
8005 * utils.c (perror_with_name): Rename to ...
8006 (throw_perror_with_name): ... here. New parameter errcode, describe it
8007 in the function comment.
8008 (perror_with_name): New function wrapper.
8009 * utils.h (enum errors): New stub declaration.
8010 (throw_perror_with_name): New declaration.
8011
82b821e9
PA
80122013-03-22 Pedro Alves <palves@redhat.com>
8013 Yao Qi <yao@codesourcery.com>
8014 Mark Kettenis <kettenis@gnu.org>
8015
8016 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8017 Don't let the user set the value to UINT_MAX directly.
8018 <var_integer>: Don't let the user set the value to INT_MAX
8019 directly.
8020
78a095c3
JK
80212013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8022
8023 * remote.c (remote_unpush_target): New function.
8024 (remote_open_1): Remove two pop_target calls, update one comment, add
8025 comment to target_preopen call. Replace pop_target call by
8026 remote_unpush_target call.
8027 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8028 pop_target calls by remote_unpush_target calls.
8029
3e74e146
PA
80302013-03-22 Pedro Alves <palves@redhat.com>
8031
8032 * linux-nat.c (linux_child_follow_fork): Don't call
8033 linux_enable_event_reporting.
8034 (linux_handle_extended_wait): Don't call
8035 linux_enable_event_reporting.
8036
a2213dca
PA
80372013-03-22 Pedro Alves <palves@redhat.com>
8038
8039 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8040 use it to rewrite the trampoline buffers with type gdb_byte[], and
8041 undefine the macro. Remove char* cast.
8042
bd712aed
DE
80432013-03-21 Doug Evans <dje@google.com>
8044
8045 New commands "mt set per-command {space,time,symtab} {on,off}".
8046 * NEWS: Add entry.
8047 * event-top.c: #include "maint.h".
8048 * main.c: #include "maint.h".
8049 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8050 timeval-utils.h, maint.h, cli/cli-setshow.h.
8051 (per_command_time, per_command_space): New static globals.
8052 (per_command_symtab): New static global.
8053 (per_command_setlist, per_command_showlist): New static globals.
8054 (struct cmd_stats): Move here from utils.c.
8055 (set_per_command_time): Renamed from set_display_time in utils.c
8056 and moved here. All callers updated.
8057 (set_per_command_space): Renamed from set_display_space in utils.c
8058 and moved here. All callers updated.
8059 (count_symtabs_and_blocks): New function.
8060 (report_command_stats): Moved here from utils.c. Add support for
8061 printing symtab stats. Only print data if enabled before command
8062 executed.
8063 (make_command_stats_cleanup): Ditto.
8064 (sert_per_command_cmd, show_per_command_cmd): New functions.
8065 (_initialize_maint_cmds): Add new commands
8066 mt set per-command {space,time,symtab} {on,off}.
8067 * maint.h: New file.
8068 * top.c: #include "maint.h".
8069 * utils.c (reset_prompt_for_continue_wait_time): New function.
8070 (get_prompt_for_continue_wait_time): New function.
8071 * utils.h (reset_prompt_for_continue_wait_time): Declare
8072 (get_prompt_for_continue_wait_time): Declare.
8073 (make_command_stats_cleanup): Moved to maint.h.
8074 (set_display_time, set_display_space): Moved to maint.h and renamed
8075 to set_per_command_time, set_per_command_space.
8076 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8077 parse_binary_operation and made non-static. Don't call error,
8078 just return an error marker. All callers updated.
8079 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8080
d76488d8
TT
80812013-03-21 Tom Tromey <tromey@redhat.com>
8082
8083 * symfile.c (alloc_section_addr_info): Update header. Don't set
8084 'num_sections' field.
8085 (build_section_addr_info_from_section_table): Set 'num_sections'.
8086 (build_section_addr_info_from_bfd): Likewise.
8087 (build_section_addr_info_from_objfile): Remove dead loop
8088 condition.
8089 (free_section_addr_info): Unconditionally call xfree.
8090 (relative_addr_info_to_section_offsets, addrs_section_sort)
8091 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8092 condition.
8093 (syms_from_objfile_1): Remove dead 'if' condition. Check
8094 'num_sections'.
8095 (add_symbol_file_command): Set 'num_sections'.
8096 * symfile-mem.c (symbol_file_add_from_memory): Set
8097 'num_sections'.
8098 * somread.c (som_symfile_offsets): Remove dead loop condition.
8099 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8100 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8101
a72e5169 81022013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
8103
8104 * tracepoint.h (decode_agent_options): Add 'trace_string'
8105 argument.
8106 * tracepoint.c (decode_agent_options): Add 'trace_string'
8107 argument.
8108 (validate_actionline): Update.
8109 (collect_symbol): Add 'trace_string' argument.
8110 (struct add_local_symbols_data) <trace_string>: New field.
8111 (do_collect_symbol): Update.
8112 (add_local_symbols): Add 'trace_string' argument.
8113 (encode_actions_1): Update.
8114 (trace_dump_actions): Update.
8115 * dwarf2loc.c (access_memory): Update.
8116 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8117 * ax-general.c (new_agent_expr): Update.
8118 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8119 (gen_trace_for_return_address): Add argument.
8120 (trace_kludge, trace_string_kludge): Remove.
8121 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8122 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8123 (gen_trace_for_var): Add 'trace_string' argument.
8124 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8125 (gen_printf, agent_eval_command_one): Update.
8126
b2f83c08
TT
81272013-03-21 Tom Tromey <tromey@redhat.com>
8128
8129 PR exp/15109:
8130 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8131 Handle FILENAME token.
8132
9507860e
TT
81332013-03-21 Tom Tromey <tromey@redhat.com>
8134
8135 * c-exp.y (YYPRINT): Define.
8136 (c_print_token): New function.
8137
e403aa4b
TT
81382013-03-21 Tom Tromey <tromey@redhat.com>
8139
8140 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8141
af307d6a
YQ
81422013-03-21 Yao Qi <yao@codesourcery.com>
8143
8144 * ctf.c: Include "gdb_stat.h".
8145 [USE_WIN32API]: New macro 'mkdir'.
8146 (ctf_start): Use permission bits macros if they are defined.
8147
fb81d016
KS
81482013-03-20 Keith Seitz <keiths@redhat.com>
8149
8150 * breakpoint.h (struct breakpoint): Add comment to
8151 extra_string indicating that this member is mallod'd.
8152 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8153
ef0026f0
PA
81542013-03-20 Pedro Alves <palves@redhat.com>
8155
8156 PR gdb/15289
8157
8158 * cli/cli-setshow.c (do_set_command)
8159 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8160 the result of parsing the command argument. Throw error if the
8161 value is greater than UINT_MAX. Print the invalid value with
8162 plongest.
8163 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8164 result of parsing the command argument. Throw error if the value
8165 is greater than INT_MAX, not greater or equal. Also throw error
8166 if the value is less than INT_MIN. Print the invalid value with
8167 plongest.
8168 <var_zuinteger_unlimited>: Throw error if the value is greater
8169 than INT_MAX, not greater or equal.
8170 (do_show_command) <var_integer, var_zinteger,
8171 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8172
24d6c2a0
TT
81732013-03-20 Tom Tromey <tromey@redhat.com>
8174
8175 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8176 if possible.
8177 * dwarf2read.c (read_func_scope): Remove old FIXME.
8178 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8179 not LOC_COMPUTED.
8180 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8181 Unconditionally call via computed ops, if possible.
8182 * printcmd.c (address_info): Unconditionally call via computed ops,
8183 if possible.
8184 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8185 if possible.
8186 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8187 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8188 if possible.
8189
f1e6e072
TT
81902013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8191 Tom Tromey <tromey@redhat.com>
8192
8193 PR symtab/8421:
8194 * coffread.c (coff_register_index): New global.
8195 (process_coff_symbol, coff_read_enum_type): Set
8196 SYMBOL_ACLASS_INDEX.
8197 (_initialize_coffread): Initialize new global.
8198 * dwarf2loc.c (locexpr_find_frame_base_location)
8199 (dwarf2_block_frame_base_locexpr_funcs)
8200 (loclist_find_frame_base_location)
8201 (dwarf2_block_frame_base_loclist_funcs): New.
8202 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8203 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8204 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8205 (dwarf2_block_frame_base_loclist_funcs): New.
8206 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8207 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8208 globals.
8209 (read_func_scope): Update.
8210 (fixup_go_packaging, mark_common_block_symbol_computed)
8211 (var_decode_location, new_symbol_full, dwarf2_const_value):
8212 Set SYMBOL_ACLASS_INDEX.
8213 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8214 (_initialize_dwarf2_read): Initialize new globals.
8215 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8216 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8217 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8218 globals.
8219 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8220 (_initialize_mdebugread): Initialize new globals.
8221 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8222 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8223 (stab_register_index, stab_regparm_index): New globals.
8224 (define_symbol, read_enum_type, common_block_end): Set
8225 SYMBOL_ACLASS_INDEX.
8226 (_initialize_stabsread): Initialize new globals.
8227 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8228 globals.
8229 (MAX_SYMBOL_IMPLS): New define.
8230 (register_symbol_computed_impl, register_symbol_block_impl)
8231 (register_symbol_register_impl)
8232 (initialize_ordinary_address_classes): New functions.
8233 (_initialize_symtab): Call initialize_ordinary_address_classes.
8234 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8235 (struct symbol_impl): New.
8236 (SYMBOL_ACLASS_BITS): New define.
8237 (struct symbol) <aclass, ops>: Remove fields.
8238 <aclass_index>: New field.
8239 (symbol_impls): Declare.
8240 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8241 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8242 (register_symbol_computed_impl, register_symbol_block_impl)
8243 (register_symbol_register_impl): Declare.
8244 (struct symbol_computed_ops): Add location_has_loclist.
8245 (struct symbol_block_ops): New.
8246 (SYMBOL_BLOCK_OPS): New.
8247 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8248
dbccfd4c
TT
82492013-03-20 Tom Tromey <tromey@redhat.com>
8250
8251 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8252 (print_partial_symbols, recursively_search_psymtabs): Use
8253 PSYMBOL_CLASS.
8254
e3f1ad4f
PM
82552013-03-20 Pierre Muller <muller@sourceware.org>
8256
8257 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8258 addtion, subtraction, multiplication and division binary operator.
8259
460014f5
JK
82602013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8261
8262 Code cleanup.
8263 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8264 * bsd-kvm.c (bsd_kvm_close): Likewise.
8265 * bsd-uthread.c (bsd_uthread_close): Likewise.
8266 * corelow.c (core_close): Likewise.
8267 (core_close_cleanup): Remove parameter quitting from a caller.
8268 * event-top.c (async_disconnect): Likewise.
8269 * exec.c (exec_close_1): Remove parameter quitting.
8270 * go32-nat.c (go32_close): Likewise.
8271 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8272 parameter quitting from a caller.
8273 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8274 variable.
8275 (mips_linux_close): Remove parameter quitting. Remove parameter
8276 quitting from a caller.
8277 * monitor.c (monitor_close): Remove parameter quitting.
8278 * monitor.h (monitor_close): Likewise.
8279 * record-btrace.c (record_btrace_close): Likewise.
8280 * record-full.c (record_full_close): Likewise.
8281 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8282 it also from fprintf_unfiltered.
8283 * remote-mips.c (mips_close): Remove parameter quitting.
8284 (mips_detach): Remove parameter quitting from a caller.
8285 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8286 (gdbsim_close): Remove duplicate function comment. Remove parameter
8287 quitting and remove it also from printf_filtered.
8288 * remote.c (remote_close): Remove parameter quitting.
8289 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8290 * target.c (update_current_target): Remove parameter int from to_close
8291 de_fault.
8292 (push_target, unpush_target, pop_target): Remove parameter quitting from
8293 a caller.
8294 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8295 Remove parameter quitting from a caller.
8296 (target_preopen): Remove parameter quitting from a caller.
8297 (target_close): Remove parameter quitting. Remove parameter quitting
8298 from a caller two times. Remove parameter quitting also from
8299 fprintf_unfiltered.
8300 * target.h (struct target_ops): Remove parameter quitting and as int
8301 from fields to_xclose and to_close.
8302 (extern struct target_ops current_target):
8303 (target_close, pop_all_targets): Remove parameter quitting. Update the
8304 comment.
8305 (pop_all_targets_above): Remove parameter quitting.
8306 * top.c (quit_target): Remove parameter quitting from a caller.
8307 * tracepoint.c (tfile_close): Remove parameter quitting.
8308 * windows-nat.c (windows_close): Remove parameter quitting.
8309
35a7120b
CV
83102013-03-20 Corinna Vinschen <vinschen@redhat.com>
8311
8312 * windows-nat.c (handle_output_debug_string): Replace call
8313 to string_to_core_addr with call to strtoull.
8314
8249a5a9
YQ
83152013-03-20 Yao Qi <yao@codesourcery.com>
8316
8317 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8318 and write it to CTF metadata.
8319
2c15ef43
CV
83202013-03-19 Corinna Vinschen <vinschen@redhat.com>
8321
8322 * windows-nat.c (handle_output_debug_string): Change type of n to
8323 SIZE_T to avoid crash on 64 bit systems.
8324
1cdd3232
EZ
83252013-03-17 Eli Zaretskii <eliz@gnu.org>
8326
8327 * python/python-internal.h (HAVE_SNPRINTF)
8328 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8329 about redefinition of snprintf by pyerrors.h.
8330
3cb2ab1a
SE
83312013-03-15 Steve Ellcey <sellcey@mips.com>
8332
8333 * remote-sim.c (sim_command_completer): Make char arguments const.
8334
9ce98649
TT
83352013-03-15 Tom Tromey <tromey@redhat.com>
8336
8337 PR c++/15116:
8338 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8339
dccee2de
TT
83402013-03-14 Tom Tromey <tromey@redhat.com>
8341
8342 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8343 New fields.
8344 (get_file_crc): Move from symfile.c.
8345 (gdb_bfd_crc): New function.
8346 * gdb_bfd.h (gdb_bfd_crc): Declare.
8347 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8348 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8349 (separate_debug_file_exists): Use gdb_bfd_crc.
8350
cc0ea93c
TT
83512013-03-14 Tom Tromey <tromey@redhat.com>
8352
8353 * symfile.c (get_debug_link_info): Remove.
8354 (find_separate_debug_file_by_debuglink): Use
8355 bfd_get_debug_link_info.
8356
08c23b0d
TT
83572013-03-14 Tom Tromey <tromey@redhat.com>
8358
8359 * symtab.c (error_in_psymtab_expansion): New function.
8360 (lookup_symbol_aux_quick)
8361 (basic_lookup_transparent_type_quick): Remove "last resort"
8362 code. Use error_in_psymtab_expansion.
8363
288e77a7
JK
83642013-03-14 Doug Evans <dje@google.com>
8365 Jan Kratochvil <jan.kratochvil@redhat.com>
8366
8367 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8368 any successful compare_filenames_for_search or FILENAME_CMP.
8369 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8370 * symtab.c (iterate_over_some_symtabs): Likewise.
8371
8f1b8b82
JK
83722013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8373
8374 * source.c (print_source_lines_base): Make a local copy of
8375 symtab_to_fullname.
8376
23eb71e4
JK
83772013-03-14 Hui Zhu <hui_zhu@mentor.com>
8378 Jan Kratochvil <jan.kratochvil@redhat.com>
8379
8380 * source.c (print_source_lines_base): Suppress "file" for TUI.
8381
bb869963
SDJ
83822013-03-14 Keith Seitz <keiths@redhat.com>
8383 Alan Matsuoka <alanm@redhat.com>
8384
8385 PR c++/15203
8386 PR c++/15210
8387 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8388 TYPE_CODE_METHOD.
8389 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8390 symbols.
8391
d6682f9e
YQ
83922013-03-14 Yao Qi <yao@codesourcery.com>
8393
8394 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8395 status to tfile if trace is stopped by command 'tstop'.
8396
a22fa6e4
YQ
83972013-03-14 Yao Qi <yao@codesourcery.com>
8398
8399 * tracepoint.c (tfile_write_status): Write trace notes and user
8400 name into tfile if they are not NULL.
8401
d0353e76
YQ
84022013-03-14 Hui Zhu <hui@codesourcery.com>
8403 Yao Qi <yao@codesourcery.com>
8404
8405 * Makefile.in (REMOTE_OBS): Add ctf.o.
8406 (SFILES): Add ctf.c.
8407 (HFILES_NO_SRCDIR): Add ctf.h.
8408 * ctf.c, ctf.h: New files.
8409 * tracepoint.c: Include 'ctf.h'.
8410 (collect_pseudocommand): Remove static.
8411 (trace_save_command): Parse option "-ctf".
8412 Produce different trace file writers per option.
8413 Adjust output message.
8414 (trace_save_tfile, trace_save_ctf): New.
8415 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8416 * mi/mi-main.c: Include 'ctf.h'.
8417 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8418 trace_save_tfile or trace_save_ctf.
8419 * NEWS: Mention these changes.
8420
3f43bc09
YQ
84212013-03-14 Yao Qi <yao@codesourcery.com>
8422
8423 * tracepoint.c (trace_file_writer_xfree): New.
8424 (struct tfile_writer_data): New.
8425 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8426 (tfile_write_header, tfile_write_regblock_type): New.
8427 (tfile_write_status, tfile_write_uploaded_tsv): New.
8428 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8429 (tfile_write_raw_data, (tfile_end): New.
8430 (tfile_write_ops): New global variable.
8431 (TRACE_WRITE_R_BLOCK): New macro.
8432 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8433 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8434 (TRACE_WRITE_V_BLOCK): New macro.
8435 (trace_save): Add extra one parameter WRITER. Make it static.
8436 Use WRITER to writer trace.
8437 (tfile_trace_file_writer_new): New.
8438 (trace_save_command): Caller update.
8439 (trace_save_tfile): Write trace data in TFILE format.
8440 * tracepoint.h (struct trace_frame_write_ops): New.
8441 (struct trace_file_write_ops): New.
8442 (struct trace_file_writer): New.
8443 (trace_save): Remove its declaration.
8444 (trace_save_tfile): Declare it.
8445 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8446 instead of trace_save.
8447
58665b40
PA
84482013-03-13 Pedro Alves <palves@redhat.com>
8449
8450 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8451
10217050
PA
84522013-03-13 Pedro Alves <palves@redhat.com>
8453
8454 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8455 commented out code.
8456 * demangle.c (current_demangling_style_string): Make it const.
8457 (set_demangling_command): Assert the demangling style is known.
8458 Remove all handling of unknown styles. Set
8459 'current_demangling_style_string' to an element of the
8460 demangling_style_names array.
8461 (set_demangling_style): Delete.
8462 (_initialize_demangler): Set current_demangling_style_string to the
8463 element of the demangling_style_names array that corresponds to
8464 the default demangling style. Remove FIXME note. Don't call
8465 set_demangling_style.
8466 * gdb-demangle.h (set_demangling_style): Remove declaration.
8467
6f937416
PA
84682013-03-13 Pedro Alves <palves@redhat.com>
8469
8470 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8471 fields const.
8472 (ada_make_symbol_completion_list): Make "text0" parameter const.
8473 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8474 * breakpoint.c (condition_completer): Make "text" and "word"
8475 parameters const. Adjust.
8476 (check_tracepoint_command): Adjust to validate_actionline
8477 prototype change.
8478 (catch_syscall_completer): Make "text" and "word" parameters
8479 const.
8480 * cli/cli-cmds.c (show_user): Make "comname" local const.
8481 (valid_command_p): Make "command" parameter const.
8482 (alias_command): Make "alias_prefix" and "command_prefix" locals
8483 const.
8484 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8485 (add_alias_cmd): Make "name" and "oldname" parameters const.
8486 Adjust. No longer make copy of OLDNAME.
8487 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8488 (add_setshow_cmd_full, add_setshow_enum_cmd)
8489 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8490 (add_setshow_filename_cmd, add_setshow_string_cmd)
8491 (add_setshow_string_noescape_cmd)
8492 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8493 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8494 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8495 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8496 Make "name" parameter const.
8497 (help_cmd): Rename "command" parameter to "arg". New const local
8498 "command".
8499 (find_cmd): Make "command" parameter const.
8500 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8501 deprecated_cmd_warning prototype change.
8502 (undef_cmd_error): Make "cmdtype" parameter const.
8503 (lookup_cmd): Make "line" parameter const.
8504 (deprecated_cmd_warning): Change type of "text" parameter to
8505 pointer to const char, from pointer to pointer to char. Adjust.
8506 (lookup_cmd_composition): Make "text" parameter const.
8507 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8508 parameters const.
8509 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8510 const.
8511 * cli/cli-script.c (validate_comname): Make "tem" local const.
8512 (define_command): New const local "tem_c". Use it in calls to
8513 lookup_cmd.
8514 (document_command): Make "tem" and "comfull" locals const.
8515 (show_user_1): Make "prefix" and "name" parameters const.
8516 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8517 const.
8518 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8519 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8520 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8521 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8522 (complete_on_enum, add_setshow_enum_cmd)
8523 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8524 (add_setshow_filename_cmd, add_setshow_string_cmd)
8525 (add_setshow_string_noescape_cmd)
8526 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8527 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8528 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8529 Change prototypes, constifying strings.
8530 * completer.c (noop_completer, filename_completer): Make "text"
8531 and "prefix" parameters const.
8532 (location_completer, expression_completer)
8533 (complete_line_internal): Make "text" and "prefix" parameters
8534 const and adjust.
8535 (command_completer, signal_completer): Make "text" and "prefix"
8536 parameters const.
8537 * completer.h (noop_completer, filename_completer)
8538 (expression_completer, location_completer, command_completer)
8539 (signal_completer): Change prototypes.
8540 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8541 parameters const.
8542 * cp-abi.c (cp_abi_completer): Likewise.
8543 * expression.h (parse_expression_for_completion): Change
8544 prototype.
8545 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8546 parameters const.
8547 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8548 * infrun.c (handle_completer): Make "text" and "word" parameters
8549 const.
8550 * interps.c (interpreter_completer): Make "text" and "word"
8551 parameters const.
8552 * language.h (struct language_defn)
8553 <la_make_symbol_completion_list>: Make "text" and "word"
8554 parameters const.
8555 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8556 (parse_exp_in_context): Rename to ...
8557 (parse_exp_in_context_1): ... this.
8558 (parse_exp_in_context): Reimplement, with const hack from
8559 parse_exp_1.
8560 (parse_expression_for_completion): Make "string" parameter const.
8561 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8562 to pointer to const char. Adjust.
8563 (print_command_1): Make "exp" parameter const.
8564 (output_command): Rename to ...
8565 (output_command_const): ... this. Make "exp" parameter const.
8566 (output_command): Reimplement.
8567 (x_command): Adjust.
8568 (display_command): Rename "exp" parameter to "arg". New "exp"
8569 local, const version of "arg".
8570 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8571 "cmd_name" local const.
8572 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8573 call.
8574 (cmdpy_completer): Make "text" and "word" parameters const.
8575 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8576 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8577 const.
8578 * remote.c (_initialize_remote): Make "cmd_name" local const.
8579 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8580 parameters const. Adjust.
8581 (completion_list_add_fields): Make "sym_text", "text" and "word"
8582 parameters const.
8583 (struct add_name_data) <sym_text, text, word>: Make fields const.
8584 (default_make_symbol_completion_list_break_on): Make "text" and
8585 "word" parameters const. Adjust locals.
8586 (default_make_symbol_completion_list)
8587 (make_symbol_completion_list, make_symbol_completion_type)
8588 (make_symbol_completion_list_fn): Make "text" and "word"
8589 parameters const.
8590 (make_file_symbol_completion_list): Make "text", "word" and
8591 "srcfile" parameters const. Adjust locals.
8592 (add_filename_to_list): Make "text" and "word" parameters const.
8593 (struct add_partial_filename_data) <text, word>: Make fields
8594 const.
8595 (make_source_files_completion_list): Make "text" and "word"
8596 parameters const.
8597 * symtab.h (default_make_symbol_completion_list_break_on)
8598 (default_make_symbol_completion_list, make_symbol_completion_list)
8599 (make_symbol_completion_type enum type_code)
8600 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8601 (make_source_files_completion_list): Change prototype.
8602 * top.c (execute_command): Adjust to pass pointer to pointer to
8603 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8604 change.
8605 (set_verbose): Make "cmdname" local const.
8606 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8607 and adjust.
8608 (validate_actionline): Make "line" parameter a pointer to const
8609 char, and adjust.
8610 (encode_actions_1): Make "action_exp" local const, and adjust.
8611 (encode_actions): Adjust.
8612 (replace_comma): Delete.
8613 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8614 const, and adjust. Don't frob the action string while splitting
8615 it at commas. Instead, make a copy of each split substring in
8616 turn.
8617 (trace_dump_command): Adjust to validate_actionline prototype
8618 change.
8619 * tracepoint.h (decode_agent_options, decode_agent_options)
8620 (encode_actions, validate_actionline): Change prototypes.
8621 * valprint.h (output_command): Delete declaration.
8622 (output_command_const): Declare.
8623 * value.c (function_destroyer): Cast const away in xfree call.
8624
a0bcdaa7
PA
86252013-03-13 Pedro Alves <palves@redhat.com>
8626
8627 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8628 rather than casting 'const char * const *' to 'const char **'.
8629 * ada-lex.l (processInt): Make "trailer" local const. Remove
8630 'const char **' cast.
8631 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8632 locals, and use those as strtol output pointer, instead than doing
8633 invalid casts to from 'const char **' to 'char **'.
8634 (_initialize_demangle): Remove cast.
8635 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8636 locals, and use those as strtol output pointer, instead than doing
8637 invalid casts to from 'const char **' to 'char **'.
8638 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8639 casts.
8640 * stap-probe.c (stap_parse_register_operand)
8641 (stap_parse_single_operand): Likewise.
8642
8ddb1965
YQ
86432013-03-13 Yao Qi <yao@codesourcery.com>
8644
8645 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8646 the last matched 'V' blcok in trace frame.
8647
2d450646
JB
86482013-03-12 Joel Brobecker <brobecker@adacore.com>
8649
8650 * NEWS: Create a new section for the next release branch.
8651 Rename the section of the current branch, now that it has
8652 been cut.
8653
b4b79973 86542013-03-12 Joel Brobecker <brobecker@adacore.com>
8655
8656 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8657 * version.in: Bump version to 7.6.50.20130312-cvs.
8658
ee047554
KS
86592013-03-12 Keith Seitz <keiths@redhat.com>
8660
8661 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8662 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8663 Remove temporary copy of input string.
8664 (mi_execute_command_wrapper): Make "cmd" const.
8665 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8666 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8667 Use const strings.
8668 (mi_parse): Make "cmd" const.
8669 Use const strings.
8670 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8671
bbc13ae3
KS
86722013-03-12 Keith Seitz <keiths@redhat.com>
8673
8674 * ada-lang.c (ada_read_renaming_var_value): Pass const
8675 pointer to expression string to parse_exp_1.
8676 (create_excep_cond_exprs): Likewise.
8677 * ax-gdb.c (agent_eval_command_one): Likewise.
8678 (maint_agent_printf_command): Likewise.
8679 Constify much of the string handling/parsing.
8680 * breakpoint.c (set_breakpoint_condition): Pass const
8681 pointer to expression string to parse_exp_1.
8682 (update_watchpoint): Likewise.
8683 (parse_cmd_to_aexpr): Constify string handling.
8684 Pass const pointer to parse_exp_1.
8685 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8686 (find_condition_and_thread): Likewise.
8687 Make TOK const.
8688 (watch_command_1): Make "arg" const.
8689 Constify string handling.
8690 Copy the expression string instead of changing the input
8691 string.
8692 (update_breakpoint_location): Pass const pointer to
8693 parse_exp_1.
8694 * eval.c (parse_and_eval_address): Make "exp" const.
8695 (parse_to_comma_and_eval): Make "expp" const.
8696 (parse_and_eval): Make "exp" const.
8697 * expression.h (parse_expression): Make argument const.
8698 (parse_exp_1): Make first argument const.
8699 * findcmd.c (parse_find_args): Treat "args" as const.
8700 * linespec.c (parse_linespec): Pass const pointer to
8701 linespec_expression_to_pc.
8702 (linespec_expression_to_pc): Make "exp_ptr" const.
8703 * parse.c (parse_exp_1): Make "stringptr" const.
8704 Make a copy of the expression to pass to parse_exp_in_context until
8705 this whole interface can be constified.
8706 (parse_expression): Make "string" const.
8707 * printcmd.c (ui_printf): Treat "arg" as const.
8708 Handle const strings.
8709 * tracepoint.c (validate_actionline): Pass const pointer to
8710 all calls to parse_exp_1.
8711 (encode_actions_1): Likewise.
8712 * value.h (parse_to_comma_and_eval): Make argument const.
8713 (parse_and_eval_address): Likewise.
8714 (parse_and_eval): Likewise.
8715 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8716 (varobj_set_value): Likewise.
8717 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8718 constify string handling.
8719 Pass const pointers to parse_and_eval_address and
8720 parse_to_comman_and_eval.
8721 * cli/cli-utils.c (skip_to_space): Rename to ...
8722 (skip_to_space_const): ... this. Handle const strings.
8723 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8724 skip_to_space_const.
8725 (skip_to_space_const): Declare.
8726 * common/format.c (parse_format_string): Make "arg" const.
8727 Handle const strings.
8728 * common/format.h (parse_format_string): Make "arg" const.
8729 * gdbserver/ax.c (ax_printf): Make "format" const.
8730 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8731 of the expression string.
8732
f3cec7e6
HZ
87332013-03-12 Hui Zhu <hui@codesourcery.com>
8734
8735 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8736
9df7235c
HZ
87372013-03-12 Yao Qi <yao@codesourcery.com>
8738 Hui Zhu <hui@codesourcery.com>
8739
8740 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8741 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8742 DW_OP_deref_size.
8743
82d049ab
PH
87442013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8745
5f8e0b8f
MF
8746 * ada-lex.l (rules): Only recognize 'thread' as a
8747 delimiter when followed by numerals, as for c-exp.y.
8748 Use new rewind_to_char function to rewind the input for
8749 expression-delimiting tokens.
8750 (rewind_to_char): New function.
82d049ab 8751
8c1fb155
JK
87522013-03-11 Pedro Alves <palves@redhat.com>
8753 Jan Kratochvil <jan.kratochvil@redhat.com>
8754
8755 * configure: Regenerate.
8756 * configure.ac (check dynamic export flag): Link python test with
8757 $PYTHON_LIBS.
8758
cc81e1c6
DE
87592013-03-11 Doug Evans <dje@google.com>
8760 Keith Seitz <keiths@redhat.com>
8761
8762 * linespec.c (find_linespec_symbols): Call find_function_symbols
8763 first, and then call lookup_prefix_sym/find_method.
8764
39086a0e
PA
87652013-03-11 Pedro Alves <palves@redhat.com>
8766
8767 * charset.c (convert_between_encodings): Don't cast between
8768 different pointer to pointer types. Instead, make the 'inp' local
8769 be of the type iconv expects.
8770 (wchar_iterate): Don't cast between different pointer to pointer
8771 types. Instead, use new pointer local of the type iconv expects.
8772 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8773 Add new local of type char pointer, and use it to get a
8774 char/string view of the byte buffer, instead of casting between
8775 pointer to pointer types.
8776
90585175
HAQ
87772013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8778
8779 * remote.c (remote_set_trace_buffer_size): Move != operator
8780 to the start of next line to fix an ARI warning.
8781
59ea5688
MM
87822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8783
8784 * NEWS: Add record changes.
8785
946287b7
MM
87862013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8787
8788 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8789 the instruction history disassembly.
8790 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8791 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8792
afedecd3
MM
87932013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8794
8795 * Makefile.in (SFILES): Add record-btrace.c
8796 (COMMON_OBS): Add record-btrace.o
8797 * record-btrace.c: New.
8798 * objfiles.c: Include btrace.h.
8799 (free_objfile): call btrace_free_objfile.
8800
15984c13
MM
88012013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8802
8803 * target.c (target_call_history, target_call_history_from,
8804 target_call_history_range): New.
8805 * target.h (target_ops) <to_call_history, to_call_history_from,
8806 to_call_history_range>: New fields.
8807 (target_call_history, target_call_history_from,
8808 target_call_history_range): New declaration.
8809 * record.c (get_call_history_modifiers, cmd_record_call_history,
8810 record_call_history_size): New.
8811 (_initialize_record): Add the "record function-call-history" command.
8812 Add "set/show record function-call-history-size" commands.
8813 * record.h (record_print_flag): New.
8814
67c86d06
MM
88152013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8816
8817 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8818 to_insn_history_range>: New fields.
8819 (target_insn_history): New.
8820 (target_insn_history_from): New.
8821 (target_insn_history_range): New.
8822 * target.c (target_insn_history): New.
8823 (target_insn_history_from): New.
8824 (target_insn_history_range): New.
8825 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8826 (record_insn_history_size): New.
8827 (get_insn_number): New.
8828 (get_context_size): New.
8829 (no_chunk): New.
8830 (get_insn_history_modifiers): New.
8831 (cmd_record_insn_history): New.
8832 (_initialize_record): Add "set/show record instruction-history-size"
8833 command. Add "record instruction-history" command.
8834
7c1687a9
MM
88352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8836
8837 * record.h (record_disconnect): New.
8838 (record_detach): New.
8839 (record_mourn_inferior): New.
8840 (record_kill): New.
8841 * record-full.c (record_disconnect, record_detach,
8842 record_mourn_inferior, record_kill): Move to...
8843 * record.c: ...here.
8844 (DEBUG): New.
8845 (record_stop): New.
8846 (record_unpush): New.
8847 (cmd_record_stop): Call record_stop. Replace unpush_target
8848 call with record_unpush call.
8849 (record_disconnect, record_detach): Assert that the target
8850 is of record stratum. Call record_unpush, record_stop, and
8851 DEBUG.
8852 (record_mourn_inferior, record_kill): Assert that the target
8853 is of record stratum. Call record_unpush and DEBUG.
8854
25ea693b
MM
88552013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8856
8857 * record-full.h, record-full.c (record_memory_query): Rename
8858 to ...
8859 (record_full_memory_query): ...this. Update all users.
8860 (record_arch_list_add_reg): Rename to ...
8861 (record_full_arch_list_add_reg): ...this. Update all users.
8862 (record_arch_list_add_mem): Rename to ...
8863 (record_full_arch_list_add_mem): ...this. Update all users.
8864 (record_arch_list_add_end): Rename to ...
8865 (record_full_arch_list_add_end): ...this. Update all users.
8866 (record_gdb_operation_disable_set): Rename to ...
8867 (record_full_gdb_operation_disable_set): ...this.
8868 Update all users.
8869
88d1aa9d
MM
88702013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8871
8872 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8873 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8874 (RECORD_IS_REPLAY): Renamed to ...
8875 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8876 (RECORD_FILE_MAGIC): Renamed to ...
8877 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8878 (record_mem_entry): Renamed to ...
8879 (record_full_mem_entry): ... this. Updated all users.
8880 (record_reg_entry): Renamed to ...
8881 (record_full_reg_entry): ... this. Updated all users.
8882 (record_end_entry): Renamed to ...
8883 (record_full_end_entry): ... this. Updated all users.
8884 (record_type) <record_end, record_reg, record_mem>: Renamed
8885 to ...
8886 (record_full_type) <record_full_end, record_full_reg,
8887 record_full_mem>: ... this. Updated all users.
8888 (record_entry): Renamed to ...
8889 (record_full_entry): ... this. Updated all users.
8890 (record_core_buf_entry): Renamed to ...
8891 (record_full_core_buf_entry): ... this. Updated all users.
8892 (record_core_regbuf): Renamed to ...
8893 (record_full_core_regbuf): ... this. Updated all users.
8894 (record_core_start): Renamed to ...
8895 (record_full_core_start): ... this. Updated all users.
8896 (record_core_end): Renamed to ...
8897 (record_full_core_end): ... this. Updated all users.
8898 (record_core_buf_list): Renamed to ...
8899 (record_full_core_buf_list): ... this. Updated all users.
8900 (record_first): Renamed to ...
8901 (record_full_first): ... this. Updated all users.
8902 (record_list): Renamed to ...
8903 (record_full_list): ... this. Updated all users.
8904 (record_arch_list_head): Renamed to ...
8905 (record_full_arch_list_head): ... this. Updated all users.
8906 (record_arch_list_tail): Renamed to ...
8907 (record_full_arch_list_tail): ... this. Updated all users.
8908 (record_stop_at_limit): Renamed to ...
8909 (record_full_stop_at_limit): ... this. Updated all users.
8910 (record_insn_max_num): Renamed to ...
8911 (record_full_insn_max_num): ... this. Updated all users.
8912 (record_insn_num): Renamed to ...
8913 (record_full_insn_num): ... this. Updated all users.
8914 (record_insn_count): Renamed to ...
8915 (record_full_insn_count): ... this. Updated all users.
8916 (record_ops): Renamed to ...
8917 (record_full_ops): ... this. Updated all users.
8918 (record_core_ops): Renamed to ...
8919 (record_full_core_ops): ... this. Updated all users.
8920 (set_record_cmdlist): Renamed to ...
8921 (set_record_full_cmdlist): ... this. Updated all users.
8922 (show_record_cmdlist): Renamed to ...
8923 (show_record_full_cmdlist): ... this. Updated all users.
8924 (record_cmdlist): Renamed to ...
8925 (record_full_cmdlist): ... this. Updated all users.
8926 (record_beneath_to_resume_ops): Renamed to ...
8927 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8928 (record_beneath_to_resume): Renamed to ...
8929 (record_full_beneath_to_resume): ... this. Updated all users.
8930 (record_beneath_to_wait_ops): Renamed to ...
8931 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8932 (record_beneath_to_wait): Renamed to ...
8933 (record_full_beneath_to_wait): ... this. Updated all users.
8934 (record_beneath_to_store_registers_ops): Renamed to ...
8935 (record_full_beneath_to_store_registers_ops): ... this.
8936 Updated all users.
8937 (record_beneath_to_store_registers): Renamed to ...
8938 (record_full_beneath_to_store_registers): ... this.
8939 Updated all users.
8940 (record_beneath_to_xfer_partial_ops): Renamed to ...
8941 (record_full_beneath_to_xfer_partial_ops): ... this.
8942 Updated all users.
8943 (record_beneath_to_xfer_partial): Renamed to ...
8944 (record_full_beneath_to_xfer_partial): ... this.
8945 Updated all users.
8946 (record_beneath_to_insert_breakpoint): Renamed to ...
8947 (record_full_beneath_to_insert_breakpoint): ... this.
8948 Updated all users.
8949 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8950 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8951 Updated all users.
8952 (record_beneath_to_stopped_data_address): Renamed to ...
8953 (record_full_beneath_to_stopped_data_address): ... this.
8954 Updated all users.
8955 (record_beneath_to_async): Renamed to ...
8956 (record_full_beneath_to_async): ... this. Updated all users.
8957 (record_goto_insn): Renamed to ...
8958 (record_full_goto_insn): ... this. Updated all users.
8959 (record_save): Renamed to ...
8960 (record_full_save): ... this. Updated all users.
8961 (record_reg_alloc): Renamed to ...
8962 (record_full_reg_alloc): ... this. Updated all users.
8963 (record_reg_release): Renamed to ...
8964 (record_full_reg_release): ... this. Updated all users.
8965 (record_mem_alloc): Renamed to ...
8966 (record_full_mem_alloc): ... this. Updated all users.
8967 (record_mem_release): Renamed to ...
8968 (record_full_mem_release): ... this. Updated all users.
8969 (record_end_alloc): Renamed to ...
8970 (record_full_end_alloc): ... this. Updated all users.
8971 (record_end_release): Renamed to ...
8972 (record_full_end_release): ... this. Updated all users.
8973 (record_entry_release): Renamed to ...
8974 (record_full_entry_release): ... this. Updated all users.
8975 (record_list_release): Renamed to ...
8976 (record_full_list_release): ... this. Updated all users.
8977 (record_list_release_following): Renamed to ...
8978 (record_full_list_release_following): ... this.
8979 Updated all users.
8980 (record_list_release_first): Renamed to ...
8981 (record_full_list_release_first): ... this. Updated all users.
8982 (record_arch_list_add): Renamed to ...
8983 (record_full_arch_list_add): ... this. Updated all users.
8984 (record_get_loc): Renamed to ...
8985 (record_full_get_loc): ... this. Updated all users.
8986 (record_check_insn_num): Renamed to ...
8987 (record_full_check_insn_num): ... this. Updated all users.
8988 (record_arch_list_cleanups): Renamed to ...
8989 (record_full_arch_list_cleanups): ... this. Updated all users.
8990 (record_message): Renamed to ...
8991 (record_full_message): ... this. Updated all users.
8992 (record_message_wrapper): Renamed to ...
8993 (record_full_message_wrapper): ... this. Updated all users.
8994 (record_message_wrapper_safe): Renamed to ...
8995 (record_full_message_wrapper_safe): ... this. Updated all users.
8996 (record_gdb_operation_disable): Renamed to ...
8997 (record_full_gdb_operation_disable): ... this. Updated all users.
8998 (record_hw_watchpoint): Renamed to ...
8999 (record_full_hw_watchpoint): ... this. Updated all users.
9000 (record_exec_insn): Renamed to ...
9001 (record_full_exec_insn): ... this. Updated all users.
9002 (record_restore): Renamed to ...
9003 (record_full_restore): ... this. Updated all users.
9004 (record_async_inferior_event_token): Renamed to ...
9005 (record_full_async_inferior_event_token): ... this.
9006 Updated all users.
9007 (record_async_inferior_event_handler): Renamed to ...
9008 (record_full_async_inferior_event_handler): ... this.
9009 Updated all users.
9010 (record_core_open_1): Renamed to ...
9011 (record_full_core_open_1): ... this. Updated all users.
9012 (record_open_1): Renamed to ...
9013 (record_full_open_1): ... this. Updated all users.
9014 (record_open): Renamed to ...
9015 (record_full_open): ... this. Updated all users.
9016 (record_close): Renamed to ...
9017 (record_full_close): ... this. Updated all users.
9018 (record_resume_step): Renamed to ...
9019 (record_full_resume_step): ... this. Updated all users.
9020 (record_resumed): Renamed to ...
9021 (record_full_resumed): ... this. Updated all users.
9022 (record_execution_dir): Renamed to ...
9023 (record_full_execution_dir): ... this. Updated all users.
9024 (record_resume): Renamed to ...
9025 (record_full_resume): ... this. Updated all users.
9026 (record_get_sig): Renamed to ...
9027 (record_full_get_sig): ... this. Updated all users.
9028 (record_sig_handler): Renamed to ...
9029 (record_full_sig_handler): ... this. Updated all users.
9030 (record_wait_cleanups): Renamed to ...
9031 (record_full_wait_cleanups): ... this. Updated all users.
9032 (record_wait_1): Renamed to ...
9033 (record_full_wait_1): ... this. Updated all users.
9034 (record_wait): Renamed to ...
9035 (record_full_wait): ... this. Updated all users.
9036 (record_stopped_by_watchpoint): Renamed to ...
9037 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9038 (record_disconnect): Renamed to ...
9039 (record_full_disconnect): ... this. Updated all users.
9040 (record_detach): Renamed to ...
9041 (record_full_detach): ... this. Updated all users.
9042 (record_mourn_inferior): Renamed to ...
9043 (record_full_mourn_inferior): ... this. Updated all users.
9044 (record_kill): Renamed to ...
9045 (record_full_kill): ... this. Updated all users.
9046 (record_stopped_data_address): Renamed to ...
9047 (record_full_stopped_data_address): ... this. Updated all users.
9048 (record_registers_change): Renamed to ...
9049 (record_full_registers_change): ... this. Updated all users.
9050 (record_store_registers): Renamed to ...
9051 (record_full_store_registers): ... this. Updated all users.
9052 (record_xfer_partial): Renamed to ...
9053 (record_full_xfer_partial): ... this. Updated all users.
9054 (record_breakpoint): Renamed to ...
9055 (record_full_breakpoint): ... this. Updated all users.
9056 (record_breakpoint_p): Renamed to ...
9057 (record_full_breakpoint_p): ... this. Updated all users.
9058 (record_breakpoints): Renamed to ...
9059 (record_full_breakpoints): ... this. Updated all users.
9060 (record_sync_record_breakpoints): Renamed to ...
9061 (record_full_sync_record_breakpoints): ... this.
9062 Updated all users.
9063 (record_init_record_breakpoints): Renamed to ...
9064 (record_full_init_record_breakpoints): ... this.
9065 Updated all users.
9066 (record_insert_breakpoint): Renamed to ...
9067 (record_full_insert_breakpoint): ... this. Updated all users.
9068 (record_remove_breakpoint): Renamed to ...
9069 (record_full_remove_breakpoint): ... this. Updated all users.
9070 (record_can_execute_reverse): Renamed to ...
9071 (record_full_can_execute_reverse): ... this. Updated all users.
9072 (record_get_bookmark): Renamed to ...
9073 (record_full_get_bookmark): ... this. Updated all users.
9074 (record_goto_bookmark): Renamed to ...
9075 (record_full_goto_bookmark): ... this. Updated all users.
9076 (record_async): Renamed to ...
9077 (record_full_async): ... this. Updated all users.
9078 (record_can_async_p): Renamed to ...
9079 (record_full_can_async_p): ... this. Updated all users.
9080 (record_is_async_p): Renamed to ...
9081 (record_full_is_async_p): ... this. Updated all users.
9082 (record_execution_direction): Renamed to ...
9083 (record_full_execution_direction): ... this. Updated all users.
9084 (record_info): Renamed to ...
9085 (record_full_info): ... this. Updated all users.
9086 (record_delete): Renamed to ...
9087 (record_full_delete): ... this. Updated all users.
9088 (record_is_replaying): Renamed to ...
9089 (record_full_is_replaying): ... this. Updated all users.
9090 (record_goto_entry): Renamed to ...
9091 (record_full_goto_entry): ... this. Updated all users.
9092 (record_goto_begin): Renamed to ...
9093 (record_full_goto_begin): ... this. Updated all users.
9094 (record_goto_end): Renamed to ...
9095 (record_full_goto_end): ... this. Updated all users.
9096 (record_goto): Renamed to ...
9097 (record_full_goto): ... this. Updated all users.
9098 (init_record_ops): Renamed to ...
9099 (init_record_full_ops): ... this. Updated all users.
9100 (record_core_resume): Renamed to ...
9101 (record_full_core_resume): ... this. Updated all users.
9102 (record_core_kill): Renamed to ...
9103 (record_full_core_kill): ... this. Updated all users.
9104 (record_core_fetch_registers): Renamed to ...
9105 (record_full_core_fetch_registers): ... this. Updated all users.
9106 (record_core_prepare_to_store): Renamed to ...
9107 (record_full_core_prepare_to_store): ... this. Updated all users.
9108 (record_core_store_registers): Renamed to ...
9109 (record_full_core_store_registers): ... this. Updated all users.
9110 (record_core_xfer_partial): Renamed to ...
9111 (record_full_core_xfer_partial): ... this. Updated all users.
9112 (record_core_insert_breakpoint): Renamed to ...
9113 (record_full_core_insert_breakpoint): ... this. Updated all users.
9114 (record_core_remove_breakpoint): Renamed to ...
9115 (record_full_core_remove_breakpoint): ... this. Updated all users.
9116 (record_core_has_execution): Renamed to ...
9117 (record_full_core_has_execution): ... this. Updated all users.
9118 (init_record_core_ops): Renamed to ...
9119 (init_record_full_core_ops): ... this. Updated all users.
9120 (cmd_record_restore): Renamed to ...
9121 (cmd_record_full_restore): ... this. Updated all users.
9122 (record_save_cleanups): Renamed to ...
9123 (record_full_save_cleanups): ... this. Updated all users.
9124 (cmd_record_start): Renamed to ...
9125 (cmd_record_full_start): ... this. Updated all users.
9126 (set_record_insn_max_num): Renamed to ...
9127 (set_record_full_insn_max_num): ... this. Updated all users.
9128 (set_record_command): Renamed to ...
9129 (set_record_full_command): ... this. Updated all users.
9130 (show_record_command): Renamed to ...
9131 (show_record_full_command): ... this. Updated all users.
9132 (_initialize_record): Renamed to ...
9133 (_initialize_record_full): ... this. Updated all users.
9134
d02ed0bb
MM
91352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9136
9137 * record.h: Split into this and ...
9138 * record-full.h: ... this.
9139 * record.c: Split into this and ...
9140 * record-full.c: ... this.
9141 * target.h (target_ops): Add new fields to_info_record,
9142 to_save_record, to_delete_record, to_record_is_replaying,
9143 to_goto_record_begin, to_goto_record_end, to_goto_record.
9144 (target_info_record): New.
9145 (target_save_record): New.
9146 (target_supports_delete_record): New.
9147 (target_delete_record): New.
9148 (target_record_is_replaying): New.
9149 (target_goto_record_begin): New.
9150 (target_goto_record_end): New.
9151 (target_goto_record): New.
9152 * target.c (target_info_record): New.
9153 (target_save_record): New.
9154 (target_supports_delete_record): New.
9155 (target_delete_record): New.
9156 (target_record_is_replaying): New.
9157 (target_goto_record_begin): New.
9158 (target_goto_record_end): New.
9159 (target_goto_record): New.
9160 * record.h: Declare struct cmd_list_element.
9161 (record_cmdlist): New declaration.
9162 (set_record_cmdlist): New declaration.
9163 (show_record_cmdlist): New declaration.
9164 (info_record_cmdlist): New declaration.
9165 (cmd_record_goto): New declaration.
9166 * record.c: Remove unnecessary includes.
9167 Include inferior.h.
9168 (cmd_record_goto): Remove declaration.
9169 (record_cmdlist): Now extern. Initialize.
9170 (set_record_cmdlist): Now extern. Initialize.
9171 (show_record_cmdlist): Now extern. Initialize.
9172 (info_record_cmdlist): Now extern. Initialize.
9173 (find_record_target): New.
9174 (require_record_target): New.
9175 (cmd_record_start): Update.
9176 (cmd_record_delete): Remove target-specific code.
9177 Call target_delete_record.
9178 (cmd_record_stop): Unpush any record target.
9179 (set_record_insn_max_num): Move to record-full.c
9180 (set_record_command): Add comment.
9181 (show_record_command): Add comment.
9182 (info_record_command): Update comment.
9183 Remove target-specific code.
9184 Call the record target's to_info_record.
9185 (cmd_record_start): New.
9186 (cmd_record_goto): Now extern.
9187 Remove target-specific code.
9188 Call target_goto_begin, target_goto_end, or target_goto.
9189 (_initialize_record): Move record target ops initialization to
9190 record-full.c.
9191 Change "record" command help text.
9192 Move "record restore", "record set", and "record show" commands to
9193 record-full.c.
9194 * Makefile.in (SFILES): Add record-full.c.
9195 (HFILES_NO_SRCDIR): Add record-full.h.
9196 (COMMON_OBS): Add record-full.o.
9197 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9198 * arm-tdep.c: Include record-full.h.
9199 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9200 * i386-tdep.c: Include record-full.h.
9201 * infrun.c: Include record-full.h.
9202 * linux-record.c: Include record-full.h.
9203 * moxie-tdep.c: Include record-full.h.
9204 * record-full.c: Include record-full.h.
9205 Change module comment.
9206 (set_record_full_cmdlist): New.
9207 (show_record_full_cmdlist): New.
9208 (record_full_cmdlist): New.
9209 (record_goto_insn): New declaration.
9210 (record_save): New declaration.
9211 (record_check_insn_num): Change query string.
9212 (record_info): New.
9213 (record_delete): New.
9214 (record_is_replaying): New.
9215 (record_goto_entry): New.
9216 (record_goto_begin): New.
9217 (record_goto_end): New.
9218 (record_goto): New.
9219 (init_record_ops): Update.
9220 (init_record_core_ops): Update.
9221 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9222 (cmd_record_start): New.
9223 (set_record_insn_max_num): Moved from record.c
9224 (set_record_full_command): New.
9225 (show_record_full_command): New.
9226 (_initialize_record_full): New.
9227
b48d48eb
MM
92282013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9229
9230 * target.h (add_deprecated_target_alias): New.
9231 * target.c (add_deprecated_target_alias): New.
9232
a950d57c
MM
92332013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9234
9235 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9236 and signal.h.
9237 (linux_supports_btrace): Add kernel and
9238 cpuid check.
9239 (kernel_supports_btrace): New function.
9240 (cpu_supports_btrace): New function.
9241 (intel_supports_btrace): New function.
9242
9accd112
MM
92432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9244
9245 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9246 * remote.c: Include btrace.h.
9247 (struct btrace_target_info): New struct.
9248 (remote_supports_btrace): New function.
9249 (send_Qbtrace): New function.
9250 (remote_enable_btrace): New function.
9251 (remote_disable_btrace): New function.
9252 (remote_teardown_btrace): New function.
9253 (remote_read_btrace): New function.
9254 (init_remote_ops): Add btrace ops.
9255 (enum <unnamed>): Add btrace packets.
9256 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9257 (_initialize_remote): Add packet configuration for branch tracing.
9258
c12a2917
MM
92592013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9260
9261 * features/btrace.dtd: New file.
9262 * Makefile.in (XMLFILES): Add btrace.dtd.
9263 * btrace.h (parse_xml_btrace): New declaration.
9264 * btrace.c: Include xml-support.h.
9265 (parse_xml_btrace): New function.
9266 (parse_xml_btrace_block): New function.
9267 (block_attributes): New struct.
9268 (btrace_attributes): New struct.
9269 (btrace_children): New struct.
9270 (btrace_elements): New struct.
9271
3e3aea48
MM
92722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9273
9274 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9275 (amd64_linux_enable_btrace): New.
9276 (amd64_linux_disable_btrace): New.
9277 (amd64_linux_teardown_btrace): New.
9278 (_initialize_amd64_linux_nat): Initialize btrace ops.
9279 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9280 (i386_linux_enable_btrace): New.
9281 (i386_linux_disable_btrace): New.
9282 (i386_linux_teardown_btrace): New.
9283 (_initialize_i386_linux_nat): Initialize btrace ops.
9284 * config/i386/linux.mh: Add linux-btrace.o.
9285 * config/i386/linux64.mh: Add linux-btrace.o.
9286
7c97f91e
MM
92872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9288
9289 * common/linux_btrace.h: New file.
9290 * common/linux_btrace.c: New file.
9291 * Makefile.in (SFILES): Add btrace.c.
9292 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9293 (COMMON_OBS): Add btrace.o.
9294 (linux-btrace.o): New rule.
9295
1999790b 92962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9297
9298 * target.h: Include btrace.h.
9299 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9300 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9301 * target.c (target_supports_btrace): New function.
9302 (target_enable_btrace): New function.
9303 (target_disable_btrace): New function.
9304 (target_teardown_btrace): New function.
9305 (target_read_btrace): New function.
9306 * btrace.h: New file.
9307 * btrace.c: New file.
9308 * Makefile.in: Add btrace.c.
9309 * gdbthread.h: Include btrace.h.
9310 (struct thread_info): Add btrace field.
9311 * thread.c: Include btrace.h.
9312 (clear_thread_inferior_resources): Call target_teardown_btrace.
9313 * common/btrace-common.h: New file.
9314
61a31a67
JK
93152013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9316
9317 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9318 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9319 kill_status to outer block.
9320
05c56a9d
JK
93212013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9322
9323 Fix entry-values if the callee called a noreturn function.
9324 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9325 get_frame_address_in_block. Add new comment.
9326
9112db09
JK
93272013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9328
9329 Fix entry-values in C++ across CUs.
9330 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9331 lookup_minimal_symbol. Add a comment.
9332 * dwarf2read.c
9333 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9334 DW_AT_linkage_name.
9335
9b67fcec
YQ
93362013-03-08 Yao Qi <yao@codesourcery.com>
9337
9338 * tracepoint.c (_initialize_tracepoint): Indent the code.
9339
6221be90
PA
93402013-03-08 Pedro Alves <palves@redhat.com>
9341
9342 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9343 (parse_find_args, find_command): Change type of pattern buffer
9344 locals to 'gdb_byte *'.
9345
be9a119c 93462013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9347 Hafiz Abid Qadeer <abidh@codesourcery.com>
9348
9349 * NEWS: Mention set and show trace-buffer-size commands.
9350 Mention new packet.
9351 * target.h (struct target_ops): New method
9352 to_set_trace_buffer_size.
9353 (target_set_trace_buffer_size): New macro.
9354 * target.c (update_current_target): Set up new method.
9355 * tracepoint.c (trace_buffer_size): New global.
9356 (start_tracing): Send it to the target.
9357 (set_trace_buffer_size): New function.
9358 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9359 * remote.c (remote_set_trace_buffer_size): New function.
9360 (_initialize_remote): Use it.
9361 (QTBuffer:size) New remote command.
9362 (PACKET_QTBuffer_size): New enum.
9363 (remote_protocol_features): Add an entry for
9364 PACKET_QTBuffer_size.
9365
7da3ab79
TT
93662013-03-08 Tom Tromey <tromey@redhat.com>
9367
9368 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9369 variable.
9370
0c1f71e7
PA
93712013-03-07 Pedro Alves <palves@redhat.com>
9372
9373 * target.c (target_read_stralloc, target_fileio_read_alloc):
9374 *Cast pointer to 'gdb_byte *' in target call.
9375
c8af03a2
PA
93762013-03-07 Pedro Alves <palves@redhat.com>
9377
9378 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9379 call.
9380
529480d0
KS
93812013-03-07 Keith Seitz <keiths@redhat.com>
9382
9383 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9384 (trace_pass_command): Likewise.
9385 * cli/cli-cmds.c: Include cli/cli-utils.h.
9386 (source_command): Use skip-spaces.
9387 (disassemble_command): Likewise.
9388 * findcmd.c: Include cli/cli-utils.h.
9389 (parse_find_args): Use skip_spaces.
9390 * go32-nat.c: Include cli/cli-utils.h.
9391 (go32_sldt): Use skip_spaces.
9392 (go32_sgdt): Likewise.
9393 (go32_sidt): Likewise.
9394 (go32_pde): Likewise.
9395 (go32_pte): Likewise.
9396 (go32_pte_for_address): Likewise.
9397 * infcmd.c: Include cli/cli-utils.h.
9398 (registers_info): Use skip_spaces.
9399 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9400 (linux_info_proc): Likewise.
9401 * linux-thread-db.c: Include cli/cli-utils.h.
9402 (info_auto_load_libthread_db): Use skip_spaces_const.
9403 * m32r-rom.c: Include cli/cli-utils.h.
9404 (m32r_upload_command): Use skip_spaces.
9405 * maint.c: Include cli/cli-utils.h.
9406 (maintenance_translate_address): Use skip_spaces.
9407 * mi/mi-parse.c: Include cli/cli-utils.h.
9408 (mi_parse_argv): Use skip_spaces.
9409 (mi_parse): Likewise.
9410 * minsyms.c: Include cli/cli-utils.h.
9411 (msymbol_hash_iw): Use skip_spaces_const.
9412 * objc-lang.c: Include cli/cli-utils.h.
9413 (parse_selector): Use skip_spaces.
9414 (parse_method): Likewise.
9415 * python/python.c: Include cli/cli-utils.h.
9416 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9417 (python_command)[HAVE_PYTHON]: Likewise.
9418 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9419 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9420 (m32r_load): Use skip_spaces.
9421 * serial.c: Include cli/cli-utils.h.
9422 (serial_open): Use skip_spaces_const.
9423 * stack.c: Include cli/cli-utils.h.
9424 (parse_frame_specification_1): Use skip_spaces_const.
9425 * symfile.c: Include cli/cli-utils.h.
9426 (set_ext_lang_command): Use skip_spaces.
9427 * symtab.c: Include cli/cli-utils.h.
9428 (rbreak_command): Use skip_spaces.
9429 * thread.c (thread_name_command): Use skip_spaces.
9430 * tracepoint.c (validate_actionline): Use skip_spaces.
9431 (encode_actions_1): Likewise.
9432 (trace_find_range_command): Likewise.
9433 (trace_find_outside_command): Likewise.
9434 (trace_dump_actions): Likewise.
9435
ac91cd70
PA
94362013-03-07 Pedro Alves <palves@redhat.com>
9437
9438 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9439 * expprint.c (print_subexp_standard): Likewise.
9440 * utils.c (host_char_to_target): Likewise.
9441 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9442 * varobj.c (value_get_print_value): Change type of local to char*.
9443 Cast it gdb_byte * in call to language printer.
9444
2898e560
PA
94452013-03-07 Pedro Alves <palves@redhat.com>
9446
9447 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9448 gdb_byte *'.
9449 (make_wchar_iterator): Remove cast to char*.
9450 (wchar_iterate): Change type of local.
9451
a09b4448
PA
94522013-03-07 Pedro Alves <palves@redhat.com>
9453
9454 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9455 for 'regcache->register_status'.
9456
20ced3e4
PA
94572013-03-07 Pedro Alves <palves@redhat.com>
9458
c2d6a675 9459 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9460 int.
9461
fe106009
PA
94622013-03-07 Pedro Alves <palves@redhat.com>
9463
9464 * stap-probe.c (handle_stap_probe): Add cast to char*.
9465
8ac2c12b
PA
94662013-03-07 Pedro Alves <palves@redhat.com>
9467
9468 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9469 RECORD_MSGRCV>: Pass a signed variable to
9470 regcache_raw_read_signed, instead of an unsigned one.
9471
99f0a309
PA
94722013-03-07 Pedro Alves <palves@redhat.com>
9473
9474 * remote-notif.c (notif_debug): Change type to int.
9475 * remote-notif.h (notif_debug): Likewise.
9476
964b8317
PA
94772013-03-07 Pedro Alves <palves@redhat.com>
9478
9479 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9480
f0cc8ad4
PA
94812013-03-07 Pedro Alves <palves@redhat.com>
9482
9483 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9484 * remote.h (hex2bin, bin2hex): ... here.
9485 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9486
77dec115
EZ
94872013-03-07 Eli Zaretskii <eliz@gnu.org>
9488
9489 * utils.c (initialize_utils): Improve doc strings of "set/show
9490 width", "set/show height", and "set/show pagination".
9491
741d92cf
KS
94922013-03-06 Keith Seitz <keiths@redhat.com>
9493
9494 * ax-gdb.c (gen_printf): Make FORMAT const.
9495 * ax-gdb.h (gen_printf): Likewise.
9496 * ax-general.c (ax_string): Make STR const.
9497 * ax.h (ax_string): Likewise.
9498
7b6c814e
DE
94992013-03-06 Doug Evans <dje@google.com>
9500
9501 * elfread.c (elf_symfile_read): Move debugging printf to more
9502 logical location.
9503
634334ab
PA
95042013-03-06 Pedro Alves <palves@redhat.com>
9505
9506 * python/py-utils.c (target_string_to_unicode): Delete function.
9507 * python/python-internal.h (target_string_to_unicode): Delete
9508 declaration.
9509
e482a1a7
PM
95102013-03-06 Pierre Muller <muller@sourceware.org>
9511
9512 * linespec.c (get_current_search_block): ARI fix, use (void)
9513 for empty parameter list.
9514
4eeaa230
DE
95152013-03-05 Doug Evans <dje@google.com>
9516
9517 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9518 of old ada_lookup_symbol_list. In !full_search case, don't
9519 search superblocks.
9520 (ada_lookup_symbol_list): Delete arg full_search, all callers
9521 updated. Call ada_lookup_symbol_list_worker.
9522 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9523 * ada-lang.h (ada_lookup_symbol_list): Update.
9524 * language.h (language_defn): Update comment for
9525 la_iterate_over_symbols.
9526 * linespec.c (iterate_over_file_blocks): New function.
9527 (iterate_over_all_matching_symtabs): Call it.
9528 (lookup_prefix_sym): Ditto.
9529 (get_current_search_block): New function.
9530 (get_search_block): Delete.
9531 (find_label_symbols): Call get_current_search_block.
9532 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9533 * symtab.c (iterate_over_symbols): Don't search superblocks.
9534
b69b1fb1
YQ
95352013-03-05 Yao Qi <yao@codesourcery.com>
9536
9537 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9538 parameter VAR's type from "unsigned int" to "int".
9539 * command.h (var_zuinteger_unlimited): Update its comments.
9540 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9541
3c095f49
CV
95422013-03-05 Corinna Vinschen <vinschen@redhat.de>
9543
9544 * NEWS: Mention new target x86_64-*-cygwin*.
9545
b5b0b0af
CV
95462013-03-05 Corinna Vinschen <vinschen@redhat.de>
9547
9548 * configure.host: Add x86_64-*-cygwin* as host.
9549 * configure.tgt: Add x86_64-*-cygwin* as target.
9550 * config/i386/cygwin64.mh: New file.
9551
f6f99966
JK
95522013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9553
9554 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9555
33f448b1
JK
95562013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9557
9558 * linespec.c (struct linespec_canonical_name): New.
9559 (struct linespec_state): Change canonical_names type to it.
9560 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9561 xrealloc element size. Initialize the different CANONICAL fields.
9562 (canonical_to_fullform): New.
9563 (filter_results): Use it. Add variables canonical, fullform and
9564 cleanup.
9565 (struct decode_line_2_item, decode_line_2_compare_items): New.
9566 (decode_line_2): Remove variables iter and item_names, add variables
9567 items and items_count. Modify the code for these new variables.
9568
feb14725
CV
95692013-03-04 Corinna Vinschen <vinschen@redhat.com>
9570
9571 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9572 calling do_cleanup.
9573
e83b17ba
HZ
95742013-03-04 Luis Machado <lgustavo@codesourcery.com>
9575
9576 * tracepoint.c (build_traceframe_info): Add code for byte order.
9577
a2d13a0d
KB
95782013-03-02 Kevin Buettner <kevinb@redhat.com>
9579
8dddcae8
KB
9580 * v850-tdep.c: (v850e2_register_name): Revise system register
9581 names to match current V850E2M architecture specifications.
9582 Update register number enum comments too.
f5aee5ee 9583
d79e58d8
JW
95842013-03-01 Jiong Wang <jiwang@tilera.com>
9585 Pedro Alves <palves@redhat.com>
9586
9587 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9588 to END_ADDR.
9589 (tilegx_skip_prologue): Limit prologue analysis to section end.
9590
c4be5165
JK
95912013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9592
9593 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9594 use it.
9595
e362b510
PA
95962013-03-01 Pedro Alves <palves@redhat.com>
9597
9598 Use gdb_byte for bytes from the program being debugged.
9599
9600 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9601 Change type of local 'buf' to gdb_byte.
9602 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9603 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9604 * cris-tdep.c (cris_sigcontext_addr)
9605 (cris_sigtramp_frame_unwind_cache): Likewise.
9606 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9607 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9608 Likewise.
9609 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9610 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9611 (hppa32_hpux_search_dummy_call_sequence)
9612 (hppa_hpux_supply_save_state): Likewise.
9613 * hppa-linux-tdep.c (insns_match_pattern)
9614 (hppa_linux_find_global_pointer): Likewise.
9615 * hppa-tdep.c (hppa_in_function_epilogue_p)
9616 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9617 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9618 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9619 (i386fbsd_collect_uthread): Likewise.
9620 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9621 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9622 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9623 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9624 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9625 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9626 (ia64_libunwind_frame_prev_register)
9627 (ia64_libunwind_sigtramp_frame_this_id)
9628 (ia64_find_global_pointer_from_dynamic_section)
9629 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9630 (ia64_unwind_pc): Likewise.
9631 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9632 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9633 (m68hc11_extract_return_value): Likewise.
9634 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9635 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9636 (mep_get_insn, mep_push_dummy_call): Likewise.
9637 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9638 (mips_linux_in_dynsym_stub): Likewise.
9639 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9640 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9641 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9642 to gdb_byte.
9643 * remote-mips.c (mips_set_register): Likewise.
9644 * remote-sim.c (gdbsim_fetch_register): Likewise.
9645 * score-tdep.c (score7_fetch_inst): Change type of parameter
9646 'memblock' and local 'buf' to gdb_byte.
9647 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9648 Change type of local 'buf' to gdb_byte. Adjust.
9649 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9650 to gdb_byte**.
9651 (score7_analyze_prologue): Change type of 'memblock' and
9652 'memblock_ptr' locals to gdb_byte*.
9653 * sh64-tdep.c (sh64_extract_return_value)
9654 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9655 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9656 * solib-pa64.c (pa64_solib_create_inferior_hook)
9657 (pa64_open_symbol_file_object): Remove local 'buf'.
9658 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9659 (som_open_symbol_file_object): Likewise.
9660 * solib-spu.c (spu_current_sos): Likewise.
9661 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9662 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9663 (spu_store_registers): Likewise.
9664 * target.c (debug_print_register): Likewise.
9665 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9666 * xstormy16-tdep.c (xstormy16_store_return_value)
9667 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9668 (xstormy16_find_jmp_table_entry): Likewise.
9669
75cc61ca 96702013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9671
9672 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9673 (tilegx_gdbarch_init): Install it.
9674
ddb08e9c
TT
96752013-02-28 Tom Tromey <tromey@redhat.com>
9676
9677 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9678 PyLong_Check.
9679
62d7fb51
DE
96802013-02-28 Doug Evans <dje@google.com>
9681
9682 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9683 * python/python.c (gdbpy_find_pc_line): Ditto.
9684
c4a9e8b4
TT
96852013-02-28 Tom Tromey <tromey@redhat.com>
9686
9687 * contrib/excheck.py: New file.
9688 * contrib/exsummary.py: New file.
9689 * contrib/gcc-with-excheck: New file.
9690
7f6a5dde
TT
96912013-02-28 Tom Tromey <tromey@redhat.com>
9692
9693 * python/python.c (gdbpy_print_stack): Call begin_line and
9694 fprintf_filtered inside TRY_CATCH.
9695
9e974e55
TT
96962013-02-28 Tom Tromey <tromey@redhat.com>
9697
9698 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9699 inside TRY_CATCH.
9700
dd5fa3e7
TT
97012013-02-28 Tom Tromey <tromey@redhat.com>
9702
9703 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9704 frame_object_to_frame_info inside TRY_CATCH.
9705
86a3263f
TT
97062013-02-28 Tom Tromey <tromey@redhat.com>
9707
9708 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9709 TRY_CATCH.
9710
81b52a3a
TT
97112013-02-28 Tom Tromey <tromey@redhat.com>
9712
9713 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9714
d50a0ce2
CV
97152013-02-27 Corinna Vinschen <vinschen@redhat.com>
9716
9717 * windows-nat.c: Throughout, fix format strings and casts of
9718 printf-like functions to avoid type related warnings on all
9719 platforms.
9720 (handle_output_debug_string): Fetch context information address
9721 from debug string using string_to_core_addr.
9722
e1f58301
JW
97232013-02-27 Jiong Wang <jiwang@tilera.com>
9724
9725 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9726 * regformats/reg-tilegx32.dat: New.
9727
4fcd89fc
JW
97282013-02-27 Jiong Wang <jiwang@tilera.com>
9729
9730 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9731
748d24e6
JW
97322013-02-27 Jiong Wang <jiwang@tilera.com>
9733
9734 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9735
6c8e944d
YQ
97362013-02-27 Yao Qi <yao@codesourcery.com>
9737 Pedro Alves <palves@redhat.com>
9738
9739 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9740 pc/tp/range/outside, look for the next trace frame instead of
9741 always starting from frame 0.
6c8e944d 9742
acd7db30
AG
97432013-02-26 Anthony Green <green@moxielogic.com>
9744
9745 * configure.tgt: Add support for moxie-*-rtems* target.
9746
025e6dce
PA
97472013-02-25 Pedro Alves <palves@redhat.com>
9748
9749 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9750 warning text.
9751
ca9c94ef
MR
97522013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9753
9754 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9755 if $fp is used as the virtual frame pointer.
9756
24c274a1
AM
97572013-02-23 Alan Modra <amodra@gmail.com>
9758
9759 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9760 symbol size.
9761 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9762 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9763 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9764 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9765
bfada189
JK
97662013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9767
9768 Code cleanup.
9769 * elfread.c (build_id_bfd_get): Make the return type const.
9770 (build_id_verify): Make the check parameter const.
9771 (build_id_to_debug_filename): Make the build_id parameter and variable
9772 data const.
9773 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9774
c0355132
AM
97752013-02-21 Alan Modra <amodra@gmail.com>
9776
9777 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9778
9f44fbc0
SCR
97792013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9780
9781 Add a new method 'disassemble' to gdb.Architecture class.
9782 * python/py-arch.c (archpy_disassmble): Implementation of the
9783 new method gdb.Architecture.disassemble.
9784 (arch_object_methods): Add entry for the new method.
9785
b74ea3eb
JW
97862013-02-20 Jiong Wang <jiwang@tilera.com>
9787
9788 * MAINTAINERS (Write After Approval): Add myself to the list.
9789
61a672f1
PA
97902013-02-19 Pedro Alves <palves@redhat.com>
9791
9792 Garbage collect 'struct monitor_ops'::load_routine.
9793
9794 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9795 * monitor.c (monitor_load): No longer call
9796 current_monitor->load_routine.
9797 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9798 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9799 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9800
40e397df
PA
98012013-02-19 Pedro Alves <palves@redhat.com>
9802
9803 PR gdb/15161
9804
9805 Harmonize with generic_load.
9806
9807 * monitor.c: Include "readline/readline.h".
9808 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9809 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9810 long/strtol for the 'load_offset' local. Error out if no argument
9811 is given or if too many arguments are given. Tilde expand the
9812 passed in file name.
9813
f698ca8e
KT
98142013-02-19 Kai Tietz <ktietz@redhat.com>
9815
9816 PR gdb/15161
9817 * symfile.c (load_section_data): Change type of load_offset
9818 to CORE_ADDR.
9819 (generic_load): User strtoulst instead of strtoul for conversion
9820 of load_offset.
9821
3361b059
WL
98222013-02-19 Jiong Wang <jiwang@tilera.com>
9823
9824 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9825 for return address, "lr" register, saved on stack.
9826 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9827 after we invoke tilegx_analyze_prologue.
9828
3e9d5130
WL
98292013-02-19 Jiong Wang <jiwang@tilera.com>
9830
bb1bcd86
WL
9831 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9832
3361b059 98332013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9834
b74ea3eb 9835 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9836
4aaf2503
WL
98372013-02-19 Jiong Wang <jiwang@tilera.com>
9838
b74ea3eb 9839 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9840 (tilegx_write_pc): New function.
9841 (tilegx_cannot_reference_register): Return zero if REGNO
9842 is TILEGX_FAULTNUM_REGNUM.
9843 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9844 (tilegx_register_name): Add handling of "faultnum" register.
9845 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9846 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9847 handling of TILEGX_FAULTNUM_REGNUM.
9848 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9849
bc23a956
WL
98502013-02-19 Jiong Wang <jiwang@tilera.com>
9851
9852 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9853 should be aligned to 64bit.
bc23a956 9854
42f45f1a
KT
98552013-02-19 Kai Tietz <ktietz@redhat.com>
9856
9857 * windows-nat.c (windows_xfer_memory): Fix debug-output
9858 for LLP64.
9859
6ce4c112
LL
98602013-02-19 Lei Liu <lei.liu2@windriver.com>
9861
9862 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9863 Don't check DSP register number if HAVE_DSP is not set.
9864
30e8ee25
AM
98652013-02-19 Alan Modra <amodra@gmail.com>
9866
9867 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9868 throughout file instead.
9869 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9870 Don't xmalloc return value.
9871 (build_id_verify): Similarly. Don't xfree.
9872 (build_id_to_debug_filename): Update.
9873 (find_separate_debug_file_by_buildid): Update, don't xfree.
9874
4c9ad8c2
TT
98752013-02-18 Tom Tromey <tromey@redhat.com>
9876
9877 PR gdb/15102:
9878 * dwarf2read.c (read_subrange_type): Use result of
9879 'check_typedef'.
9880
983dc440
YQ
98812013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9882
9883 * frame.c: Remove one extra white space after #include
9884 directive.
9885
7fb2b84a
JK
98862013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9887
9888 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9889
edceb2a9
JK
98902013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9891
9892 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9893 and dir commands into an if block.
9894
e81b7af8
TT
98952013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9896
9897 * python/py-breakpoint (struct pybp_code): Use int instead of
9898 enum type_code.
9899
f5911ea1
HAQ
99002013-02-15 Pedro Alves <pedro@codesourcery.com>
9901 Hafiz Abid Qadeer <abidh@codesourcery.com>
9902
9903 * NEWS: Mention new field "trace-file".
9904 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9905 (tfile_open): Record the trace file's filename in the trace
9906 status.
9907 (tfile_files_info): Mention the name of the trace file.
9908 Check the "filename" field explicitely.
9909 (trace_status_command): Explicitely check "filename" field.
9910 (trace_find_command): Ditto.
9911 (trace_find_pc_command): Ditto.
9912 (trace_find_tracepoint_command): Ditto.
9913 (trace_find_line_command): Ditto.
9914 (trace_find_range_command): Ditto.
9915 (trace_find_outside_command): Ditto.
9916 * tracepoint.h (struct trace_status) <from_file>: Rename it
9917 to "filename" and make it hold the trace file's filename
9918 instead of a boolean.
9919 * remote.c (remote_get_trace_status): Initialize "filename"
9920 field with NULL instead of 0.
9921
796cb314
YQ
99222013-02-15 Yao Qi <yao@codesourcery.com>
9923
9924 * remote.c: Fix a typo.
9925
42e79b1d
PM
99262013-02-14 Pierre Muller <muller@sourceware.org>
9927
9928 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9929
baea0dae
PA
99302013-02-14 Pedro Alves <palves@redhat.com>
9931
9932 * utils.c (savestring): Don't #undef it. Move function to
9933 common/common-utils.c.
9934 * common/common-utils.c: Include gdb_string.h.
9935 (savestring): Move here from utils.c.
9936 * common/common-utils.h (savestring): Declare.
9937
57c3b6ed
PA
99382013-02-14 Pedro Alves <palves@redhat.com>
9939
9940 * utils.c (savestring): Rename parameter 'size' to 'len'.
9941
d6c44983
YZ
99422013-02-14 Pedro Alves <palves@redhat.com>
9943 Yufeng Zhang <yufeng.zhang@arm.com>
9944
9945 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9946 (aarch64_inferior_data, struct aarch64_inferior_data):
9947 Delete.
9948 (struct aarch64_process_info): New.
9949 (aarch64_process_list): New global.
9950 (aarch64_find_process_pid, aarch64_add_process)
9951 (aarch64_process_info_get): New functions.
9952 (aarch64_inferior_data_get): Delete.
9953 (aarch64_process_info_get): New function.
9954 (aarch64_forget_process): New function.
9955 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9956 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9957 aarch64_get_debug_reg_state.
9958 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9959 instead of linux_nat_iterate_watchpoint_lwps.
9960 (aarch64_linux_new_fork): New function.
9961 (aarch64_linux_child_post_startup_inferior): Use
9962 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9963 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9964 (aarch64_linux_remove_hw_breakpoint)
9965 (aarch64_handle_aligned_watchpoint)
9966 (aarch64_handle_unaligned_watchpoint)
9967 (aarch64_linux_insert_watchpoint)
9968 (aarch64_linux_remove_watchpoint)
9969 (aarch64_linux_stopped_data_address): Adjust to pass the current
9970 process id to aarch64_debug_reg_state.
9971 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9972 linux_nat_new_fork hook, and aarch64_forget_process as
9973 linux_nat_forget_process hook; remove the call to
9974 register_inferior_data_with_cleanup.
9975
4819b3f8
PA
99762013-02-14 Pedro Alves <palves@redhat.com>
9977
9978 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9979 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9980 lval_memory.
9981
1773c82c
HAQ
99822013-02-14 Pedro Alves <pedro@codesourcery.com>
9983 Hafiz Abid Qadeer <abidh@codesourcery.com>
9984
9985 * tracepoint.h (validate_trace_state_variable_name): Declare.
9986 * tracepoint.c (validate_trace_state_variable_name): New.
9987 (trace_variable_command): Parse the trace state variable's name
9988 without using parse_expression. Do several validations.
9989 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9990 trace state variable's name with parse_expression. Validate it.
9991
53778a97
YQ
99922013-02-14 Yao Qi <yao@codesourcery.com>
9993
9994 * infcmd.c (breakpoint_proceeded): Remove it.
9995
7b3ae3a6
YQ
99962013-02-14 Yao Qi <yao@codesourcery.com>
9997
9998 * tracepoint.c (end_actions_pseudocommand): Make it static.
9999 (while_stepping_pseudocommand): Likewise.
10000 * tracepoint.h (end_actions_pseudocommand): Remove the
10001 declaration.
10002 (while_stepping_pseudocommand): Likewise.
10003
64580925
YQ
100042013-02-14 Yao Qi <yao@codesourcery.com>
10005
10006 * cli/cli-decode.c (help_cmd): Remove the declaration of
10007 "cmdlist".
10008 (help_all): Likewise.
10009
26cb8b7c
PA
100102013-02-13 Pedro Alves <palves@redhat.com>
10011
10012 * amd64-linux-nat.c (update_debug_registers_callback):
10013 Update comment.
10014 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10015 iterate_over_lwps.
10016 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10017 i386_debug_reg_state.
10018 (amd64_linux_new_fork): New function.
10019 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10020 linux_nat_new_fork hook, and i386_forget_process as
10021 linux_nat_forget_process hook.
10022 * i386-linux-nat.c (update_debug_registers_callback):
10023 Update comment.
a8256ea1 10024 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10025 iterate_over_lwps.
10026 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10027 i386_debug_reg_state.
10028 (i386_linux_new_fork): New function.
10029 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10030 linux_nat_new_fork hook, and i386_forget_process as
10031 linux_nat_forget_process hook.
10032 * i386-nat.c (i386_init_dregs): Delete.
10033 (i386_inferior_data, struct i386_inferior_data):
10034 Delete.
10035 (struct i386_process_info): New.
10036 (i386_process_list): New global.
10037 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10038 New functions.
10039 (i386_inferior_data_get): Delete.
10040 (i386_process_info_get): New function.
10041 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10042 (i386_forget_process): New function.
10043 (i386_cleanup_dregs): Rewrite.
10044 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10045 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10046 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10047 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10048 to i386_debug_reg_state.
10049 (i386_use_watchpoints): Don't register inferior data.
10050 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10051 adjust comment.
10052 (i386_forget_process): Declare.
10053 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10054 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10055 New static globals.
10056 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10057 (add_initial_lwp): New, factored out from ...
10058 (add_lwp): ... this. Don't check the number of lwps before
10059 calling linux_nat_new_thread.
10060 (linux_nat_iterate_watchpoint_lwps): Delete.
10061 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10062 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10063 forks and vforks.
10064 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10065 initial lwp.
10066 (linux_nat_kill, linux_nat_mourn_inferior): Call
10067 linux_nat_forget_process.
10068 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10069 (linux_nat_forget_process): New functions.
10070 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10071 type.
10072 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10073 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10074 types.
10075 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10076 (linux_nat_forget_process): New declarations.
10077
10078 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10079 (amd64fbsd_mourn_inferior): New function.
10080 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10081 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10082
5befea72
MS
100832013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10084
55015247
YQ
10085 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10086 Adding _().
5befea72 10087
1d3ffd6b
MS
100882013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10089
10090 * aarch64-linux-nat.c (debug_reg_change_callback)
10091 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10092 %s and phex().
10093
6eb04473
MS
100942013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10095
10096 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10097 with LONGEST.
10098
a016fc87
HAQ
100992013-02-13 Pedro Alves <palves@redhat.com>
10100 Hafiz Abid Qadeer <abidh@codesourcery.com>
10101
10102 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10103
e234dfaf
TT
101042013-02-12 Tom Tromey <tromey@redhat.com>
10105
10106 PR symtab/11464:
10107 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10108 NAME return.
10109 (classify_inner_name): Remove 'first_name' argument, add
10110 'context'. Remove unused variable.
10111 (yylex): Explicitly maintain the context type. Exit loop earlier
10112 if NAME result is seen.
10113
0b1afbb3
PA
101142013-02-12 Pedro Alves <palves@redhat.com>
10115
10116 * amd64-darwin-tdep.c: Add (C) after Copyright.
10117 * cli/cli-cmds.h: Ditto.
10118 * cli/cli-decode.c: Ditto.
10119 * cli/cli-decode.h: Ditto.
10120 * cli/cli-dump.c: Ditto.
10121 * cli/cli-dump.h: Ditto.
10122 * cli/cli-interp.c: Ditto.
10123 * cli/cli-logging.c: Ditto.
10124 * cli/cli-script.c: Ditto.
10125 * cli/cli-script.h: Ditto.
10126 * cli/cli-setshow.c: Ditto.
10127 * cli/cli-setshow.h: Ditto.
10128 * cli/cli-utils.c: Ditto.
10129 * cli/cli-utils.h: Ditto.
10130 * config/alpha/nm-osf3.h: Ditto.
10131 * config/djgpp/djconfig.sh: Ditto.
10132 * config/i386/nm-fbsd.h: Ditto.
10133 * config/i386/nm-i386gnu.h: Ditto.
10134 * config/nm-linux.h: Ditto.
10135 * config/nm-nto.h: Ditto.
10136 * config/rs6000/nm-rs6000.h: Ditto.
10137 * config/sparc/nm-sol2.h: Ditto.
10138 * darwin-nat-info.c: Ditto.
10139 * dfp.c: Ditto.
10140 * dfp.h: Ditto.
10141 * gdb-demangle.h: Ditto.
10142 * i386-darwin-nat.c: Ditto.
10143 * i386-darwin-tdep.c: Ditto.
10144 * linux-fork.h: Ditto.
10145 * m32c-tdep.c: Ditto.
10146 * microblaze-linux-tdep.c: Ditto.
10147 * microblaze-rom.c: Ditto.
10148 * microblaze-tdep.c: Ditto.
10149 * microblaze-tdep.h: Ditto.
10150 * mips-linux-tdep.h: Ditto.
10151 * ppc-ravenscar-thread.c: Ditto.
10152 * ppc-ravenscar-thread.h: Ditto.
10153 * prologue-value.c: Ditto.
10154 * prologue-value.h: Ditto.
10155 * ravenscar-thread.c: Ditto.
10156 * ravenscar-thread.h: Ditto.
10157 * sparc-ravenscar-thread.c: Ditto.
10158 * sparc-ravenscar-thread.h: Ditto.
10159 * tilegx-linux-tdep.c: Ditto.
10160 * unwind_stop_reasons.def: Ditto.
10161 * windows-nat.h: Ditto.
10162 * xtensa-linux-tdep.c: Ditto.
10163 * xtensa-xtregs.c: Ditto.
10164 * regformats/regdat.sh: Ditto.
10165 * regformats/regdef.h: Ditto.
10166
6c01dd94
PA
101672013-02-12 Pedro Alves <palves@redhat.com>
10168
10169 * break-catch-sig.c: Update copyright years.
10170
b65a2bd9
SCR
101712013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10172
10173 Add support for a destructor for ui_out data and use it to
10174 provide a ui_out destructor.
10175 * ui-out.h: Declare the new ui_out destructor.
10176 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10177 * ui-out.c (default_data_destroy): Add a default data destructor
10178 which does nothing.
10179 (default_ui_out_impl): Set the new data_destroy field to
10180 default_data_destroy
10181 (uo_data_destroy): Local function which invokes the data
10182 destructor if present.
10183 (clear_table): Local function which clears the table data of a
10184 ui_out object.
10185 (ui_out_destroy): Public function which frees a ui_out object.
10186 (ui_out_table_end): Use the new clear_table function.
10187 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10188 NULL.
10189 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10190 to NULL.
10191
c2792f5a
DE
101922013-02-11 Doug Evans <dje@google.com>
10193
10194 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10195 (printf_decfloat): New function. Broken out from ui_printf.
10196 Remove unnecessary code to shift the entire format string down.
10197 (printf_pointer): New function.
10198 (ui_printf): Code to print C strings, wide C strings, decfloats,
10199 and pointers moved to separate functions.
10200
d9e98382
SDJ
102012013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10202
10203 * valops.c (value_assign): Handling bitfield offset in
10204 `lval_internalvar_component' case.
10205
4ff3ce77
DE
102062013-02-08 Doug Evans <dje@google.com>
10207
10208 * common/format.c (parse_format_string): Fix whitespace.
10209
901900c4
MGD
102102013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10211
10212 * stack.c (return_command): Work around uninitialized variable
10213 warning.
10214
b5dbc8d4
YZ
102152013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10216
10217 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10218 number of the registers from 36 to 34.
10219
51d66578
MS
102202013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10221
10222 * NEWS: Mention new AArch64 native and target support.
10223
176b1c95
MS
102242013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10225
10226 * MAINTAINERS (Write After Approval): Add myself.
10227
9d19df75
MS
102282013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10229 Marcus Shawcroft <marcus.shawcroft@arm.com>
10230 Nigel Stephens <nigel.stephens@arm.com>
10231 Yufeng Zhang <yufeng.zhang@arm.com>
10232
10233 * aarch64-linux-nat.c: New file.
10234 * config/aarch64/linux.mh: New file.
10235 * configure.host: Add AArch64.
10236 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10237
7e1e0340
DE
102382013-02-07 Doug Evans <dje@google.com>
10239
10240 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10241 disassemble command.
10242
45e25a36
MS
102432013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10244
10245 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10246 set_gdbarch_fetch_tls_load_module_address.
10247
bbfdfe1c
DM
102482013-02-06 David S. Miller <davem@davemloft.net>
10249
10250 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10251 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10252 * value.c (struct_return_convention): New function.
10253 (using_struct_return): Implement in terms of struct_return_convention.
10254 * value.h (struct_return_convention): Declare.
10255 * stack.c (return_command): Allow successful overriding of the return
10256 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10257
bc9abe4a
TT
102582013-02-06 Tom Tromey <tromey@redhat.com>
10259
10260 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10261 outside of TRY_CATCH.
10262
134a2066
YQ
102632013-02-06 Yao Qi <yao@codesourcery.com>
10264
10265 * mi/mi-interp.c: Include "tracepoint.h".
10266 (mi_tsv_modified): Declare.
10267 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10268 (mi_interpreter_init): Call observer_attach_tsv_modified.
10269 (mi_tsv_modified): New.
10270 (mi_tsv_created, mi_tsv_deleted): Update.
10271 * tracepoint.c (trace_variable_command): Call
10272 observer_notify_tsv_modified if the initial value of tsv is
10273 changed.
10274 (delete_trace_state_variable): Call
10275 observer_notify_tsv_deleted earlier.
10276 (trace_variable_command): Caller update.
10277 (create_tsv_from_upload): Likewise.
10278 * observer.sh: Declare "struct trace_state_variable".
10279
10280 * NEWS: Mention the new MI notification "=tsv-modified".
10281
59be2b6a
DE
102822013-02-05 Doug Evans <dje@google.com>
10283
10284 * completer.c (location_completer): Fix typo in comment.
10285
d30113d4
JK
102862013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10287
10288 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10289 ADDRESS sorted.
10290
14ac654f
MS
102912013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10292
10293 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10294 Refactor if statement to avoid trailing || operator.
10295
543bf33d
AT
102962013-02-05 Andreas Tobler <andreast@fgznet.ch>
10297
10298 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10299
dc18f110
AT
103002013-02-04 Andreas Tobler <andreast@fgznet.ch>
10301
10302 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10303 * configure.host: Add powerpc*-*-freebsd* target.
10304 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10305 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10306 * config/powerpc/fbsd.mh: New file.
10307
b3ac9c77
SDJ
103082013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10309 Denys Vlasenko <dvlasenk@redhat.com>
10310 Pedro Alves <palves@redhat.com>
10311
10312 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10313 (struct elf_internal_linux_prpsinfo): Forward declare.
10314 * gdbarch.h, gdbarch.c: Regenerate.
10315 * linux-tdep.c: Include `cli/cli-utils.h'.
10316 (linux_fill_prpsinfo): New function.
10317 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10318 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10319 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10320 depending on gdbarch pointer bitness.
10321 * ppc-linux-tdep.c: Include elf-bfd.h.
10322 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10323 on 32-bit.
10324
176eb98c
MS
103252013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10326 Marcus Shawcroft <marcus.shawcroft@arm.com>
10327 Nigel Stephens <nigel.stephens@arm.com>
10328 Yufeng Zhang <yufeng.zhang@arm.com>
10329
10330 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10331
cf0dbd6f
MS
103322013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10333 Marcus Shawcroft <marcus.shawcroft@arm.com>
10334 Nigel Stephens <nigel.stephens@arm.com>
10335 Yufeng Zhang <yufeng.zhang@arm.com>
10336
10337 * aarch64-newlib-tdep.c: New file.
10338 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10339 aarch64*-*-elf.
10340 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10341 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10342 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10343 * osabi.c (gdb_osabi_names): Add "Newlib".
10344
1ae3db19
MS
103452013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10346 Marcus Shawcroft <marcus.shawcroft@arm.com>
10347 Nigel Stephens <nigel.stephens@arm.com>
10348 Yufeng Zhang <yufeng.zhang@arm.com>
10349
10350 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10351 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10352 * aarch64-linux-tdep.c: New file.
10353 * aarch64-linux-tdep.h: New file.
10354 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10355 * configure.tgt: Add aarch64-none-linux-gnu.
10356
07b287a0
MS
103572013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10358 Marcus Shawcroft <marcus.shawcroft@arm.com>
10359 Nigel Stephens <nigel.stephens@arm.com>
10360 Yufeng Zhang <yufeng.zhang@arm.com>
10361
10362 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10363 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10364 (ALLDEPFILES): Add aarch64-tdep.c.
10365 * aarch64-tdep.c: New file.
10366 * aarch64-tdep.h: New file.
10367 * configure.tgt: Add AArch64.
10368 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10369 (aarch64-expedite): New definition.
10370 * features/aarch64-core.xml: New file.
10371 * features/aarch64-fpu.xml: New file.
10372 * features/aarch64-without-fpu.c: New file (generated).
10373 * features/aarch64-without-fpu.xml: New file.
10374 * features/aarch64.c: New file (generated).
10375 * features/aarch64.xml: New file.
10376 * regformats/aarch64-without-fpu.dat: New file (generated).
10377 * regformats/aarch64.dat: New file (generated).
10378
0f1b18ab
JK
103792013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10380
10381 * contrib/expect-read1.c: New file.
10382 * contrib/expect-read1.sh: New file.
10383
233d95b5
JK
103842013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10385
10386 * dwarf2read.c (file_file_name): New function with code from
10387 file_full_name.
10388 (file_full_name): Move most of the code to file_file_name.
10389 (macro_start_file): Rename variable full_name to file_name and use
10390 file_file_name for it. Add comp_dir parameter to new_macro_table.
10391 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10392 macro_source_file->filename access by macro_source_fullname call.
10393 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10394 caller.
10395 * macrotab.c (struct macro_table): New field comp_dir.
10396 (macro_include): New variables link_fullname and source_fullname.
10397 Replace any macro_source_file->filename access by macro_source_fullname
10398 call.
10399 (macro_lookup_inclusion): Remove the partial filenames checking code.
10400 (check_for_redefinition): New variables source_fullname and
10401 found_key_fullname. Replace any macro_source_file->filename access by
10402 macro_source_fullname call.
10403 (macro_undef): New variables source_fullname and key_fullname. Replace
10404 any macro_source_file->filename access by macro_source_fullname call.
10405 (macro_lookup_definition): New variables retval and source_fullname.
10406 Replace any macro_source_file->filename access by macro_source_fullname
10407 call.
10408 (foreach_macro): New variable key_fullname. Replace any
10409 macro_source_file->filename access by macro_source_fullname call.
10410 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10411 macro_source_file->filename access by macro_source_fullname call.
10412 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10413 (macro_source_fullname): New function.
10414 * macrotab.h (struct macro_source_file): Extent the filename field
10415 comment.
10416 (new_macro_table): New parameter comp_dir, add a comment for it.
10417 (macro_source_fullname): new declaration.
10418
da235a7c
JK
104192013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10420
10421 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10422 this_real_name to outer block. Use it also for
10423 compare_filenames_for_search.
10424 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10425 with dw2_get_real_path for file_matcher, considering also
10426 BASENAMES_MAY_DIFFER.
10427 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10428
fbd9ab74
JK
104292013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10430
10431 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10432 to the file_matcher parameter. Pass 0 to it.
10433 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10434 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10435 NULL psymtab_to_fullname result.
10436 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10437 an expected filename instead.
10438 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10439 file_matcher parameter. Call also psymtab_to_fullname, after newly
10440 considering BASENAMES_MAY_DIFFER.
10441 * source.c (rewrite_source_path): Remove static.
10442 * source.h (rewrite_source_path): New declaration.
10443 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10444 the expand_symtabs_matching field. Comment it.
10445 * symtab.c (file_matches): New function comment. Add parameter
10446 basenames, implement it.
10447 (search_symbols_file_matches): Add basenames parameter. Update the
10448 file_matches caller.
10449 (search_symbols): Match FILES also against symtab_to_fullname.
10450 Optimize it for BASENAMES_MAY_DIFFER.
10451
56d397a3
JK
104522013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10453
10454 * source.c (print_source_lines_base): Print for TUI also "fullname".
10455 * tui/tui-data.c (init_content_element): Change tui_locator_element
10456 field to full_name.
10457 * tui/tui-data.h (struct tui_locator_element): Likewise.
10458 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10459 tui_update_locator_filename calls to tui_update_locator_fullname.
10460 Replace symtab->filename refererence by symtab_to_fullname call.
10461 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10462 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10463 field to full_name. Replace symtab->filename refererence by
10464 symtab_to_fullname call.
10465 (tui_show_symtab_source): Rename parameter to fullname. Change
10466 tui_locator_element field to full_name.
10467 * tui/tui-stack.c: Include source.h.
10468 (tui_set_locator_filename): Rename the declaration to ...
10469 (tui_set_locator_fullname): ... here. Rename its parameter to
10470 fullname, updates its comment.
10471 (tui_set_locator_info): Rename its parameter to fullname.
10472 (tui_set_locator_filename): Rename the definition to ...
10473 (tui_set_locator_fullname): ... here. Rename its parameter to
10474 fullname, updates its comment. Change tui_locator_element field to
10475 full_name.
10476 (tui_set_locator_info): Rename its parameter to fullname.
10477 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10478 (tui_update_locator_filename): Rename to ...
10479 (tui_update_locator_fullname): ... here. Rename callee to
10480 tui_set_locator_fullname.
10481 (tui_show_frame_info): Replace symtab->filename refererence by
10482 symtab_to_fullname call.
10483 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10484 (tui_update_locator_fullname): ... here.
10485 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10486 tui_update_locator_fullname. Replace symtab->filename refererence by
10487 symtab_to_fullname call.
10488 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10489 Rename the callee to tui_update_locator_fullname.
10490 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10491
05cba821
JK
104922013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10493
10494 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10495 by symtab_to_filename_for_display calls.
10496 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10497 (clear_command): New variable sal_fullname, initialize it. Replace
10498 compare_filenames_for_search by filename_cmp with sal_fullname.
10499 (say_where, update_static_tracepoint): Replace symtab->filename
10500 refererences by symtab_to_filename_for_display calls.
10501 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10502 Likewise.
10503 * dwarf2read.c: Include source.h.
10504 (fixup_go_packaging): Replace symtab->filename refererences by
10505 symtab_to_filename_for_display calls.
10506 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10507 Replace symtab->filename refererences by symtab_to_filename_for_display
10508 calls.
10509 (create_sals_line_offset, convert_linespec_to_sals): New variable
10510 fullname, initialize it, replace symtab->filename reference by the
10511 variable.
10512 * linux-fork.c: Include source.h.
10513 (info_checkpoints_command): Replace symtab->filename refererences by
10514 symtab_to_filename_for_display calls.
10515 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10516 by symtab_to_filename_for_display calls.
10517 * mdebugread.c: Include source.h.
10518 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10519 symtab_to_filename_for_display calls.
10520 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10521 (mi_cmd_file_list_exec_source_files): Likewise.
10522 * printcmd.c: Include source.h.
10523 (build_address_symbolic): Replace symtab->filename refererences by
10524 symtab_to_filename_for_display calls.
10525 * psymtab.c (partial_map_symtabs_matching_filename)
10526 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10527 with psymtab_to_fullname.
10528 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10529 by symtab_to_filename_for_display calls.
10530 (stpy_get_filename): New variable filename, initialize it, use instead
10531 of symtab->filename refererences.
10532 (salpy_str): Make variable filename const char *. Replace
10533 symtab->filename refererences by symtab_to_filename_for_display calls.
10534 * skip.c: Include source.h and filenames.h.
10535 (skip_file_command): Remove const from the symtab variable. Replace
10536 symtab->filename refererences by symtab_to_fullname call.
10537 (function_name_is_marked_for_skip): New variables searched_for_fullname
10538 and fullname. Use them to search also with symtab's fullname.
10539 * source.c (find_source_lines): Replace symtab->filename refererences
10540 by symtab_to_filename_for_display calls.
10541 (print_source_lines_base): New variable filename, use it instead of
10542 symtab->filename. Replace symtab->filename refererences by
10543 symtab_to_filename_for_display calls.
10544 (line_info, forward_search_command): Replace symtab->filename
10545 refererences by symtab_to_filename_for_display calls.
10546 (reverse_search_command): Replace symtab->filename refererences by
10547 symtab_to_filename_for_display calls. New variable filename for it.
10548 * stack.c (frame_info): Likewise.
10549 * symmisc.c: Include source.h.
10550 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10551 (maintenance_info_symtabs): Replace symtab->filename refererences by
10552 symtab_to_filename_for_display calls.
10553 * symtab.c (iterate_over_some_symtabs): Call
10554 compare_filenames_for_search also with symtab_to_fullname.
10555 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10556 symtab->filename refererences by symtab_to_filename_for_display calls.
10557 (find_line_symtab): Replace symtab->filename refererences by
10558 symtab_to_filename_for_display calls.
10559 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10560 (print_symbol_info): Make the last parameter const char *. New
10561 variable s_filename. Use it in the function.
10562 (symtab_symbol_info): Make the last_filename variable const char *.
10563 Replace symtab->filename refererences by symtab_to_filename_for_display
10564 calls.
10565 (rbreak_command): New variable fullname. Use it. Replace
10566 symtab->filename refererence by symtab_to_filename_for_display call.
10567 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10568 (print_one_static_tracepoint_marker): Replace symtab->filename
10569 refererences by symtab_to_filename_for_display calls.
10570 * tui/tui-source.c (tui_set_source_content): New variables filename and
10571 s_filename. Replace symtab->filename refererences by this variable.
10572 Replace other symtab->filename refererences by
10573 symtab_to_filename_for_display calls.
10574
1b56eb55
JK
105752013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10576 Jan Kratochvil <jan.kratochvil@redhat.com>
10577
10578 Add a new variable that controls a way in which filenames are
10579 displayed.
10580 * NEWS (set filename-display): New entry.
10581 * source.c (filename_display_basename, filename_display_relative)
10582 (filename_display_absolute, filename_display_kind_names)
10583 (filename_display_string, show_filename_display_string)
10584 (symtab_to_filename_for_display): New.
10585 (_initialize_source): Added initialization of 'filename-display'
10586 variable.
10587 * source.h (symtab_to_filename_for_display): Added declaration.
10588 * stack.c (print_frame): Added new variable and calling of a new
10589 function and condition with this variable. Changed third argument of
10590 calling of a function.
10591
aa079c93
JK
105922013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10593
10594 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10595 Rename field reference filename to fullname.
10596 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10597 fullname. New comment for it.
10598 * tui/tui-source.c (tui_set_source_content): Rename field reference
10599 filename to fullname. Initialize field by symtab_to_fullname now.
10600 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10601 reference filename to fullname. Use symtab_to_fullname during
10602 comparison.
10603
652a8996
JK
106042013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10605
10606 Code cleanup.
10607 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10608 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10609 filename to fullname. Rename variable this_name to this_fullname.
10610 Lowercase FILENAME_CMP call.
10611 (dw2_find_symbol_file): New comment for the returned string.
10612 (dwarf2_gdb_index_functions): Rename the function to
10613 dw2_expand_symtabs_with_fullname.
10614 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10615 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10616 fullname.
10617 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10618 * symfile.h (struct quick_symbol_functions): Rename field
10619 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10620 parameter filename to fullname. Document returned string meaning for
10621 find_symbol_file.
10622 * symtab.c (find_line_symtab): Rename the called function to
10623 expand_symtabs_with_fullname.
10624
af529f8f
JK
106252013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10626
10627 Code cleanup.
10628 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10629 call of filename_cmp with compare_filenames_for_search.
10630 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10631 is_abs, unify the call of FILENAME_CMP with
10632 compare_filenames_for_search. New gdb_asserts for real_path and name.
10633 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10634 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10635 * symfile.h (struct quick_symbol_functions): Extend the comment for
10636 map_symtabs_matching_filename.
10637 * symtab.c (compare_filenames_for_search): Remove the function comment
10638 relative path requirement. Handle absolute filenames, with a comment.
10639 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10640 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10641 real_path and name. Unify the call of compare_filenames_for_search
10642 with FILENAME_CMP.
10643 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10644
2f202fde
JK
106452013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10646
10647 Code cleanup.
10648 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10649 source_file references by symtab field references. Remove variables
10650 sal and fullname.
10651 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10652 (clear_command, say_where): Replace bp_location field source_file
10653 references by symtab field references.
10654 (bp_location_dtor): Remove the source_file reference.
10655 (update_static_tracepoint): Replace bp_location field source_file
10656 references by symtab field references.
10657 (breakpoint_free_objfile): New function.
10658 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10659 Replace the field source_file by field symtab, extend its comment.
10660 (breakpoint_free_objfile): New declaration.
10661 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10662 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10663 field source_file references by symtab field references.
10664
f5b95b50
JK
106652013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10666
10667 Replace xfullpath calls by gdb_realpath calls.
10668 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10669 function comment.
10670 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10671 Remove it from the iterate_over_some_symtabs call.
10672 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10673 Remove it from the dw2_map_expand_apply calls, remove a block handling
10674 it.
10675 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10676 Remove it from the iterate_over_some_symtabs call.
10677 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10678 Remove it from the partial_map_expand_apply calls, remove a block
10679 handling it. Drop gdb_realpath call and cleanups from the real_path
10680 handling.
10681 * source.c (openp): Drop the comment part about xfullpath. Replace
10682 xfullpath calls by gdb_realpath calls.
10683 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10684 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10685 from method map_symtabs_matching_filename and its comment.
10686 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10687 gdb_realpath call.
10688 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10689 remove it also from the function comment, remove a block handling it.
10690 Drop gdb_realpath call and cleanups from the real_path handling.
10691 (iterate_over_symtabs): Drop variable full_path and its use.
10692 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10693 * utils.c (xfullpath): Remove.
10694 * utils.h (xfullpath): Remove.
10695
d78489bf
AT
106962013-02-01 Andreas Tobler <andreast@fgznet.ch>
10697
10698 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10699 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10700 (ALLDEPFILES): Add ppc64-tdep.c.
10701 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10702 ppc64-tdep.o to gdb_target_obs.
10703 * ppc64-tdep.h: New file.
10704 * ppc64-tdep.c: New file.
10705 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10706 ppc-linux-tdep.c to here.
10707 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10708 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10709 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10710 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10711 from ppc-linux-tdep.c to here.
10712 (ppc64_convert_from_func_ptr_addr): Rename from
10713 ppc64_linux_convert_from_func_ptr_addr to
10714 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10715 here.
10716 * rs6000-tdep.c:
10717 (read_insn): Move from ppc-linux-tdep.c to here.
10718 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10719 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10720 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10721 Removed above functions.
10722 (ppc_linux_init_abi): Adjust.
10723
8db60374
AR
107242013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10725
10726 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10727
f2e5f4ce
AR
107282013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10729
10730 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10731
c1f7d745
PA
107322013-02-01 Pedro Alves <palves@redhat.com>
10733
10734 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10735 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10736
8a92335b
JK
107372013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10738
10739 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10740 files with no separate debug info.
10741 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10742 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10743 only for files with no separate debug info.
10744
8eacb197
TT
107452013-01-31 Tom Tromey <tromey@redhat.com>
10746
10747 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10748 change type.
10749 (struct jit_program_space_data): Rename from jit_inferior_data.
10750 Update comments.
10751 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10752 Change return type. Attach data to program space.
10753 (jit_program_space_data_cleanup): Rename from
10754 jit_inferior_data_cleanup; change argument type.
10755 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10756 change type.
10757 (jit_register_code): Update.
10758 (jit_update_inferior_cache): Remove.
10759 (jit_breakpoint_deleted): Get jit data from the location's program
10760 space.
10761 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10762 'ps_data', change type.
10763 (jit_inferior_init, jit_breakpoint_re_set_internal)
10764 (jit_event_handler): Update.
10765 (free_objfile_data): Get data from objfile's program space.
10766 (_initialize_jit): Update.
10767
f25c0135
TT
107682013-01-31 Tom Tromey <tromey@redhat.com>
10769
10770 PR gdb/13987:
10771 * jit.c (struct jit_inferior_data) <cached_code_address,
10772 jit_breakpoint>: New fields.
10773 (jit_breakpoint_re_set_internal): Fix logging. Only create
10774 breakpoint if cached address has changed.
10775 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10776 functions.
10777 (_initialize_jit): Register breakpoint deleted observer.
10778
974a734b
AR
107792013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10780
10781 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10782 (save_infcall_suspend_state): Ifdef out unused inf.
10783 (restore_infcall_suspend_state): Ifdef out unused inf.
10784 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10785 (jit_frame_sniffer): Remove unused inf_data.
10786
df54f8eb
AR
107872013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10788
10789 * c-exp.y (classify_inner_name): Remove unused type.
10790 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10791 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10792 need_escape.
10793 (c_get_string): Remove unused kind.
10794 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10795
5799c0b9
AR
107962013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10797
10798 * charset.c (intermediate_encoding): Remove unused i.
10799 * completer.c (signal_completer): Remove unused i.
10800 * continuations.c (discard_my_continuations_1): Remove unused
10801 continuation_ptr.
10802 * corelow.c (core_close): Remove unuseD name.
10803 (get_core_siginfo): Remove unused pid.
10804 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10805 i, cps.
10806 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10807 (loclist_describe_location): Remove unused first.
10808 * event-top.c (command_line_handler): Remove unused got_eof.
10809 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10810 (resize_section_table): Remove unused old_value.
10811 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10812 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10813 * i386-tdep.c (i386_process_record): Remove unused rex.
10814 * infcmd.c (get_return_value): Remove unused uiout.
10815 * jv-lang.c (type_from_class): Remove unused is_array.
10816 * jv-valprint.c (java_val_print): Remove unused i.
10817 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10818 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10819 * m2-typeprint.c (m2_print_type): Remove unused code.
10820 * macroexp.c (get_character_constant): Remove unused body_start.
10821 (macro_stringify): Remove unused result.
10822 * objc-lang.c (find_methods): Remove unused gdbarch.
10823 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10824 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10825 * stack.c (print_frame_args): Remove unused summary.
10826 * thread.c (thread_apply_command): Remove unused p.
10827 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10828 * valops.c (search_struct_method): Remove unused skip.
10829 * valprint.c (generic_val_print): Remove unused byte_order.
10830 * varobj.c (varobj_update): Remove unused changed.
10831 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10832 (alias_command): Remove unused c.
10833 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10834 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10835 format.
10836 (mi_cmd_data_write_memory): Remove unused word_format.
10837 (mi_cmd_data_write_memory_bytes): Remove unused r.
10838 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10839 p_start, p_end.
10840 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10841 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10842 line_width.
10843
c656bca5
AR
108442013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10845
10846 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10847 * symtab.c (iterate_over_symtabs): Remove unused s.
10848 (find_pc_sect_symtab): Remove unused pspAce.
10849 (find_pc_sect_line): Remove unused alt_symtab.
10850 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10851 (completion_list_add_name): Remove unused newsize.
10852
7078baeb
TT
108532013-01-31 Tom Tromey <tromey@redhat.com>
10854
10855 PR c++/14998:
10856 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10857 TYPE_CODE_FUNC.
10858
c2e8b827
AR
108592013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10860
10861 * target.c (target_read_string): Remove unused origlen.
10862
0e43993a
AR
108632013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10864
10865 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10866 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10867 * ax-general.c (ax_print): Remove unused is_float.
10868 * blockframe.c (block_innermost_frame): Remove unused start, end.
10869 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10870
765a97ab
AR
108712013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10872
10873 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10874 (svr4_read_so_list): Remove unused lmo.
10875 * solib-target.c (solib_target_relocate_section_addresses): Remove
10876 unused flags.
10877
a99dad3d
TT
108782013-01-30 Tom Tromey <tromey@redhat.com>
10879
10880 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10881
3bff1ecd
TT
108822013-01-30 Tom Tromey <tromey@redhat.com>
10883
10884 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10885 * utils.c (gnu_debuglink_crc32): Remove.
10886 * utils.h (gnu_debuglink_crc32): Don't declare.
10887
7d455152
TT
108882013-01-30 Tom Tromey <tromey@redhat.com>
10889
10890 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10891 (read_structure_type, read_enumeration_type): Remove cast.
10892
abee88f2
TT
108932013-01-30 Tom Tromey <tromey@redhat.com>
10894
10895 * dwarf2read.c (read_namespace_type): Remove cast.
10896 (read_typedef): Likewise.
10897
8d9878a4
TT
108982013-01-29 Tom Tromey <tromey@redhat.com>
10899
10900 * dwarf2read.c (free_dwo_file): Remove assert.
10901
a543d2a9
TT
109022013-01-29 Tom Tromey <tromey@redhat.com>
10903
10904 * value.c (deprecated_set_value_modifiable): Remove.
10905 * value.h (deprecated_set_value_modifiable): Remove.
10906
bed911e5
DE
109072013-01-28 Doug Evans <dje@google.com>
10908
10909 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10910 to addresses from dwo files.
10911
28c64fc2
SCR
109122013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10913
10914 * valops.c (find_overload_match): Remove unused argument 'lax'.
10915 * value.h: Remove unused argument 'lax' from the declaration of
10916 find_overload_match.
10917 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10918 to find_overload_match.
10919 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10920 argument to find_overload_match.
10921
4d4ec4e5
TT
109222013-01-25 Tom Tromey <tromey@redhat.com>
10923
10924 * dwarf2read.c (processing_has_namespace_info): Remove.
10925 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10926 (process_die, read_func_scope, dwarf2_start_symtab)
10927 (new_symbol_full): Update.
10928
195a3f6c
TT
109292013-01-25 Tom Tromey <tromey@redhat.com>
10930
10931 * cp-namespace.c (cp_set_block_scope): Remove.
10932 * cp-support.h (cp_set_block_scope): Remove.
10933 * dbxread.c: Include block.h.
10934 (cp_set_block_scope): New function.
10935 (process_one_symbol): Update.
10936 * dwarf2read.c (read_func_scope): Use block_set_scope.
10937
8ba0730a
PA
109382013-01-25 Pedro Alves <palves@redhat.com>
10939
10940 * remote.c (add_current_inferior_and_thread): Tweak comment.
10941
12aaed36
TT
109422013-01-25 Tom Tromey <tromey@redhat.com>
10943
10944 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10945 (cp_add_using_directive): Add 'copy_names' argument.
10946 * cp-support.h (cp_add_using_directive): Update.
10947 (struct using_direct) <import_src, import_dest, alias,
10948 declaration>: Now const.
10949 * dwarf2read.c (read_import_statement): Use obconcat.
10950 Don't copy names passed to cp_add_using_directive.
10951
7fc75ca7
TT
109522013-01-25 Tom Tromey <tromey@redhat.com>
10953
10954 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10955
3405876a
PA
109562013-01-25 Pedro Alves <palves@redhat.com>
10957
10958 * remote.c (stop_reply_extract_thread): New.
10959 (add_current_inferior_and_thread): New parameter 'wait_status'.
10960 Handle it.
10961 (remote_start_remote): Pass wait status to
10962 add_current_inferior_and_thread.
10963 (extended_remote_run): Update comment.
10964 (extended_remote_create_inferior_1): Pass wait status to
10965 add_current_inferior_and_thread.
10966
8954db33
AB
109672013-01-25 Andrew Burgess <aburgess@broadcom.com>
10968 Ulrich Weigand <uweigand@de.ibm.com>
10969
10970 * valarith.c (value_vector_widen): New function for replicating a
10971 scalar into a vector.
10972 (value_binop): Use value_vector_widen to widen scalar to vector
10973 rather than casting, this better matches gcc C behaviour.
10974 * valops.c (value_casst): Update logic for casting between vector
10975 types, and for casting from scalar to vector, try to match gcc C
10976 behaviour.
10977 * value.h (value_vector_widen): Declare.
10978 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10979 function, handle special case for casting scalar to vector.
10980 (opencl_relop): Use opencl_value_cast.
10981 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10982 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10983 in order to use opencl_value_cast.
10984
843b20dc
YQ
109852013-01-25 Yao Qi <yao@codesourcery.com>
10986
10987 * event-loop.c: Include "queue.h".
10988 (gdb_event_p): New typedef.
10989 (DECLARE_QUEUE_P): Use.
10990 (DEFINE_QUEUE_P): Use.
10991 (async_queue_event): Remove.
10992 (gdb_event_xfree): New.
10993 (initialize_event_loop): New.
10994 (process_event): Use QUEUE macros.
10995 (event_queue): Remove.
10996 (gdb_wait_for_event): Caller update.
10997 (check_async_event_handlers): Likewise.
10998 (poll_timers): Likewise.
10999 * event-loop.h (initialize_event_loop): Declare.
11000 * event-loop.c (gdb_event_xfree): New.
11001 * top.c (gdb_init): Call initialize_event_loop.
11002
20ad8856
YQ
110032013-01-25 Yao Qi <yao@codesourcery.com>
11004
11005 * event-loop.c (async_queue_event): Remove one parameter
11006 'position'. Remove code handling 'position' == TAIL.
11007 (gdb_wait_for_event): Caller update.
11008 (check_async_event_handlers): Caller update.
11009 (poll_timers): Caller update.
11010 * event-loop.h (enum queue_position): Remove.
11011
3bbbe775
MK
110122013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11013
11014 * MAINTAINERS: Update my email.
11015
a87d9ac4
YQ
110162013-01-25 Yao Qi <yao@codesourcery.com>
11017
11018 * main.c (print_gdb_help): Remove "--epoch" from the help
11019 message.
11020
2077afdd
TD
110212013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11022
11023 * symtab.c (skip_prologue_using_sal): Consider a file
11024 change the same as an increased line number
11025
63da4037
TD
110262013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11027
30e8ee25 11028 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11029
45e6c716
TT
110302013-01-24 Tom Tromey <tromey@redhat.com>
11031
11032 * ada-lang.h (ada_decode_symbol): Make return type const.
11033 * ada-lang.c (ada_decode_symbol): Likewise.
11034
b1ae631a
DE
110352013-01-23 Doug Evans <dje@google.com>
11036
11037 * linespec.c (find_linespec_symbols): Make static.
11038
55a78401
SDJ
110392013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11040
11041 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11042 type on float conversion for complex type.
11043
bea883fd
SCR
110442013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11045
11046 Add a new class gdb.Architecture which exposes GDB's
11047 internal representation of architecture via GDB Python API.
11048 * Makefile.in: Add entries corresponding to the new file
11049 python/py-arch.c.
11050 * NEWS (Python Scripting): Add entries for the new class
11051 gdb.Architecture and the new method gdb.Frame.architecture.
11052 * python/py-arch.c: Implement gdb.Architecture class.
11053 * python/py-frame.c (frapy_arch): Implement the method
11054 gdb.Frame.architecture().
11055 (frame_object_methods): Add 'architecture' to the method table.
11056 * python/python-internal.h: Add declarations of new utility
11057 functions.
11058 * python/python.c (_initialize_python): Initialize
11059 gdb.Architecture class.
11060
796a7ff8
DE
110612013-01-23 Doug Evans <dje@google.com>
11062
11063 Work around binutils/15021.
11064 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11065 type_unit_group out of union s. All uses updated.
11066 (read_index_from_section): Watch for index version 8.
11067 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11068 an imported symtab.
11069 (write_psymtabs_to_index): Increment version number to 8.
11070
0928e93d
PA
110712013-01-22 Pedro Alves <palves@redhat.com>
11072
11073 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11074 user-visible.
11075
9c97429f
PA
110762013-01-22 Pedro Alves <palves@redhat.com>
11077
11078 * annotate.c (annotate_breakpoints_changed): Rename to ...
11079 (annotate_breakpoints_invalid): ... this. Make static.
11080 (breakpoint_changed): Adjust.
11081 (_initialize_annotate): Always install the observers. Install a
11082 "breakpoint_created" observer.
11083 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11084 * breakpoint.c (set_breakpoint_condition)
11085 (breakpoint_set_commands, do_map_commands_command)
11086 (init_raw_breakpoint, clear_command, set_ignore_count)
11087 (enable_breakpoint_disp): No longer call
11088 annotate_breakpoints_changed.
11089
bd00c694
PA
110902013-01-22 Pedro Alves <palves@redhat.com>
11091
11092 * annotate.c: Include "inferior.h".
11093 (frames_invalid_emitted)
11094 (breakpoints_invalid_emitted): New globals.
11095 (async_background_execution_p): New function.
11096 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11097 emitting the annotation if it has already been emitted.
11098 (annotate_display_prompt): New function.
11099 * annotate.h (annotate_display_prompt): New declaration.
11100 * event-top.c: Include annotate.h.
11101 (display_gdb_prompt): Call annotate_display_prompt.
11102
187d10dd
PA
111032013-01-22 Pedro Alves <palves@redhat.com>
11104
11105 * annotate.c (ignore_count_changed): Delete.
11106 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11107 (annotate_ignore_count_change): Delete.
11108 (annotate_stopped): Don't emit a delayed breakpoints-changed
11109 annotation.
11110 * annotate.h (annotate_ignore_count_change): Delete.
11111 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11112 annotate_ignore_count_change.
11113
d84cf7eb
TT
111142013-01-22 Tom Tromey <tromey@redhat.com>
11115
11116 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11117 require_rvalue for a register location.
11118
8f1d5693
MK
111192013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11120
11121 * breakpoint.c (print_one_breakpoint_location): Add MI
11122 field 'thread-groups' when printing a breakpoint.
11123 (output_thread_groups): New function.
11124
aa6199c6
SCR
111252013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11126
11127 * python/lib/gdb/commands/explore.py
11128 (CompoundExplorer.explore_expr): Correct the name of a method
11129 being invoked.
11130 (ExploreTypeCommand.invoke): Add a missing 'return'.
11131
d2afef13
TT
111322013-01-21 Tom Tromey <tromey@redhat.com>
11133
11134 * gdb_obstack.h (obconcat): Move declaration here, from...
11135 * symfile.h (obconcat): ... here.
11136 * gdb_obstack.c: New file.
11137 (obconcat): Move from...
11138 * symfile.c (obconcat): ... here.
11139 * Makefile.in (SFILES): Add gdb_obstack.c.
11140 (COMMON_OBS): Add gdb_obstack.o.
11141
10f0c4bb
TT
111422013-01-21 Tom Tromey <tromey@redhat.com>
11143
11144 * symfile.h (obsavestring): Don't declare.
11145 * symfile.c (obsavestring): Remove.
11146 * ada-exp.y: Use obstack_copy0, not obsavestring.
11147 * ada-lang.c: Use obstack_copy0, not obsavestring.
11148 * coffread.c: Use obstack_copy0, not obsavestring.
11149 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11150 * dbxread.c: Use obstack_copy0, not obsavestring.
11151 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11152 * jit.c: Use obstack_copy0, not obsavestring.
11153 * mdebugread.c: Use obstack_copy0, not obsavestring.
11154 * psymtab.c: Use obstack_copy0, not obsavestring.
11155 * stabsread.c: Use obstack_copy0, not obsavestring.
11156 * xcoffread.c: Use obstack_copy0, not obsavestring.
11157
86f62fd7
TT
111582013-01-21 Tom Tromey <tromey@redhat.com>
11159
11160 * dwarf2read.c (fixup_go_packaging): Save package name
11161 on objfile obstack.
11162 * gdbtypes.c (init_type): Don't copy name.
11163
15d034d0
TT
111642013-01-21 Tom Tromey <tromey@redhat.com>
11165
11166 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11167 const.
11168 (struct attribute) <u.str>: Now const.
11169 (struct fnfieldlist) <name>: Now const.
11170 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11171 (partial_die_parent_scope): Make return type const.
11172 (partial_die_full_name, add_partial_symbol): Update.
11173 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11174 'name' const.
11175 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11176 (read_file_scope, read_func_scope, dwarf2_add_field)
11177 (dwarf2_add_member_fn, read_structure_type)
11178 (process_enumeration_scope, read_array_type, read_module_type)
11179 (read_base_type, read_subrange_type): Update.
11180 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11181 (new_symbol_full, guess_full_die_structure_name): Update.
11182 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11183 (dwarf2_name): Return const type.
11184 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11185 const.
11186
748e18ae
TT
111872013-01-21 Tom Tromey <tromey@redhat.com>
11188
11189 * gdbtypes.c (init_type): Make 'name' const.
11190 * gdbtypes.h (init_type): Update.
11191
46212e0b
TT
111922013-01-21 Tom Tromey <tromey@redhat.com>
11193
11194 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11195 (start_symtab): Make 'name' and 'dirname' const. Use
11196 set_last_source_file.
11197 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11198 (last_source_file): Define. Now static.
11199 (set_last_source_file, get_last_source_file): New functions.
11200 * buildsym.h (last_source_file): Don't declare.
11201 (start_symtab): Update.
11202 (set_last_source_file, get_last_source_file): Declare.
11203 * coffread.c (complete_symtab): Use set_last_source_file.
11204 (coff_end_symtab): Likewise.
11205 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11206 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11207 set_last_source_file.
11208 (process_one_symbol): Use get_last_source_file.
11209 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11210 (psymtab_to_symtab_1): Use get_last_source_file.
11211 * xcoffread.c (process_linenos): Use get_last_source_file.
11212 (complete_symtab): Use set_last_source_file.
11213 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11214 (scan_xcoff_symtab): Use set_last_source_file.
11215
9d2ceabe
TT
112162013-01-21 Tom Tromey <tromey@redhat.com>
11217
11218 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11219 (symbol_set_names): Remove casts. Handle field const-ness.
11220
cfc594ee
TT
112212013-01-21 Tom Tromey <tromey@redhat.com>
11222
11223 * dwarf2read.c (new_symbol_full): Remove cast.
11224 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11225 * symtab.h (symbol_set_demangled_name): Update.
11226
5484b13a
TT
112272013-01-21 Tom Tromey <tromey@redhat.com>
11228
11229 * main.c (captured_main): Call bfd_init.
11230
1605ef26
TT
112312013-01-21 Tom Tromey <tromey@redhat.com>
11232
11233 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11234 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11235 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11236 * NEWS: Update.
11237
3b74cdc3
JK
112382013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11239
11240 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11241
5a352474
JK
112422013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11243
11244 Fix gdb.fortran/common-block.exp crash in PIE mode.
11245 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11246 LOC_COMMON_BLOCK.
11247 * f-valprint.c (info_common_command_for_block): Expect
11248 LOC_COMMON_BLOCK in gdb_assert.
11249 * symtab.h (struct general_symbol_info): Update comment for the
11250 common_block member.
11251 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11252 (enum address_class): New member LOC_COMMON_BLOCK.
11253
c60797fd
DB
112542013-01-18 David Blaikie <dblaikie@gmail.com>
11255
11256 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11257
46f35228
TT
112582013-01-18 Tom Tromey <tromey@redhat.com>
11259
11260 PR c++/14999:
11261 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11262 Call require_rvalue.
11263
257e7a09
YQ
112642013-01-18 Yao Qi <yao@codesourcery.com>
11265
11266 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11267 (dbx_read_symtab): New declaration.
11268 (dbx_psymtab_to_symtab): Delete.
11269 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11270 Rename parameter PST to SELF. Exchanged two parameters.
11271 (start_psymtab): Caller update.
11272 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11273 (dwarf2_read_symtab): New declaration.
11274 (dwarf2_psymtab_to_symtab): Delete.
11275 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11276 Rename parameter PST to SELF. Exchanged two parameters.
11277 (create_partial_symtab): Caller update.
11278 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11279 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11280 Rename parameter PST to SELF. Exchanged two parameters.
11281 (parse_partial_symbols, new_psymtab): Caller update.
11282 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11283 two parameters.
11284 * psymtab.c (psymtab_to_symtab): Caller update.
11285 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11286 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11287 Rename parameter PST to SELF. Exchanged two parameters.
11288 (xcoff_start_psymtab): Caller update.
11289
0de5618e
YQ
112902013-01-18 Yao Qi <yao@codesourcery.com>
11291
11292 * infrun.c (proceed): Rename local variable 'oneproc' to
11293 'force_step'.
11294
5c04624b
DE
112952013-01-17 Doug Evans <dje@google.com>
11296
848e3e78
DE
11297 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11298 (dw2_build_type_unit_groups): Delete. All uses updated.
11299
5c04624b
DE
11300 * symtab.h (struct symbol_search): Add comment.
11301
d84fca2c
JK
113022013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11303
11304 * symtab.c (compare_filenames_for_search): New comment for
11305 HAS_DRIVE_SPEC.
11306
6108433d
TT
113072013-01-17 Tom Tromey <tromey@redhat.com>
11308
11309 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11310
c89ffd86
JK
113112013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11312
11313 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11314 initialize it by existing make_cleanup. Call new do_cleanups.
11315
db2b2972
TT
113162013-01-17 Tom Tromey <tromey@redhat.com>
11317
11318 * cp-abi.c (cp_abi_completer): New function.
11319 (_initialize_cp_abi): Set completer for "set cp-abi".
11320
be7d37a2
TT
113212013-01-17 Tom Tromey <tromey@redhat.com>
11322
11323 * mem-break.c: Remove obsolete comment.
11324 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11325
c9fb1240
SD
113262012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11327
11328 * jit.c (jit_reader_load_command): Interpret the jit reader name
11329 as an absolute path if it begins with a forward slash.
11330
db334a01
SD
113312012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11332
11333 PR gdb/14550
11334
11335 * jit.c (finalize_symtab): Ensure that only the global block has a
11336 NULL superblock.
11337
7d928dac
PA
113382013-01-17 Pedro Alves <palves@redhat.com>
11339
11340 * acinclude.m4: Include ../config/plugins.m4,
11341 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11342 * Makefile.in (aclocal_m4_deps): Update.
11343 * aclocal.m4: Renegerate.
11344
fb8cf7c5
DE
113452013-01-16 Doug Evans <dje@google.com>
11346
11347 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11348
ab04a2af
TT
113492013-01-16 Pedro Alves <palves@redhat.com>
11350 Tom Tromey <tromey@redhat.com>
11351
11352 PR cli/7221:
11353 * NEWS: Add "catch signal".
11354 * breakpoint.c (base_breakpoint_ops): No longer static.
11355 (bpstat_explains_signal): New function.
11356 (init_catchpoint): No longer static.
11357 (base_breakpoint_explains_signal): New function.
11358 (base_breakpoint_ops): Initialize new field.
11359 * breakpoint.h (enum bpstat_signal_value): New.
11360 (struct breakpoint_ops) <explains_signal>: New field.
11361 (bpstat_explains_signal): Remove macro, declare as function.
11362 (base_breakpoint_ops, init_catchpoint): Declare.
11363 * break-catch-sig.c: New file.
11364 * inferior.h (signal_catch_update): Declare.
11365 * infrun.c (signal_catch): New global.
11366 (handle_syscall_event): Update for change to
11367 bpstat_explains_signal.
11368 (handle_inferior_event): Likewise. Always handle random signals
11369 via bpstats.
11370 (signal_cache_update): Check signal_catch.
11371 (signal_catch_update): New function.
11372 (_initialize_infrun): Initialize signal_catch.
11373 * Makefile.in (SFILES): Add break-catch-sig.c.
11374 (COMMON_OBS): Add break-catch-sig.o.
11375
8ac3646f
TT
113762013-01-16 Tom Tromey <tromey@redhat.com>
11377
11378 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11379 (print_one_catch_solib, print_one_catch_syscall)
11380 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11381 "catch-type".
11382
5a18e302
YQ
113832013-01-16 Yao Qi <yao@codesourcery.com>
11384
11385 * printcmd.c (current_display_number): Make it static.
11386
3f01d0d0
YQ
113872013-01-16 Yao Qi <yao@codesourcery.com>
11388
11389 * infcmd.c (step_once): Don't check '!single_inst' as it was
11390 checked before.
11391
1ed59174
JK
113922013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11393
11394 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11395
44478ab3
TT
113962013-01-14 Tom Tromey <tromey@redhat.com>
11397
11398 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11399 set command.
11400 * command.h (add_setshow_string_noescape_cmd): Update.
11401 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11402 (complete_set_gnutarget): New function.
11403 (_initialize_core): Set the "set gnutarget" completer.
11404
06d66ee9
TT
114052013-01-14 Tom Tromey <tromey@redhat.com>
11406
11407 PR symtab/14442:
11408 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11409 (c_type_print_modifier): Likewise.
11410 * dwarf2read.c (read_tag_restrict_type): New function.
11411 (read_type_die_1): Handle DW_TAG_restrict_type.
11412 * gdbtypes.c (make_restrict_type): New function.
11413 (recursive_dump_type): Handle TYPE_RESTRICT.
11414 * gdbtypes.h (enum type_flag_values): Renumber.
11415 (enum type_instance_flag_value): Add
11416 TYPE_INSTANCE_FLAG_RESTRICT.
11417 (TYPE_RESTRICT): New macro.
11418 (make_restrict_type): Declare.
11419
c9bf0622
TT
114202013-01-14 Tom Tromey <tromey@redhat.com>
11421
11422 PR symtab/14931:
11423 * psymtab.c (struct psymtab_state): New.
11424 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11425 functions.
11426 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11427 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11428
44d594fd
PA
114292013-01-14 Richard Sharman <richard_sharman@mitel.com>
11430 Pedro Alves <palves@redhat.com>
11431
11432 PR remote/14786
11433
11434 * remote.c (remote_threads_info): Make a copy of the reply from
11435 qfThreadInfo and use that instead of rs->buf.
11436
442e4d9c
YQ
114372013-01-14 Yao Qi <yao@codesourcery.com>
11438
11439 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11440 (dbx_psymtab_to_symtab): Likewise.
11441 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11442 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11443 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11444
5b12a61c
JK
114452013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11446
11447 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11448 make_cleanup_restore_current_language. Call set_language. Move
11449 OLD_CHAIN and INNER_CHAIN cleanups.
11450 * utils.c (do_restore_current_language)
11451 (make_cleanup_restore_current_language): New functions.
11452 * utils.h (make_cleanup_restore_current_language): New declaration.
11453
f0a4b570
JK
114542013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11455
11456 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11457 non-existing files.
11458
57b3c00c
JK
11459 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11460 non-existing files if FILENAME is already absolute.
11461
daefa854
JK
114622013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11463
11464 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11465 fputs_filtered. Append trailing newline.
11466
ca9c6ee2
YQ
114672013-01-11 Yao Qi <yao@codesourcery.com>
11468 Stan Shebs <stan@codesourcery.com>
11469
11470 * psymtab.c (init_psymbol_list): Clarify the comment.
11471
f28045c2
YQ
114722013-01-11 Yao Qi <yao@codesourcery.com>
11473
11474 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11475 (update_dprintf_command_list): Assert that 'printf_line' is
11476 non-null. Remove condition check.
11477
da5132d3
JK
114782013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11479
11480 Code cleanup.
11481 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11482 type const char *.
11483 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11484 const char *.
11485 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11486
843e694d
AG
114872013-01-09 Anthony Green <green@moxielogic.com>
11488
11489 * cp-abi.c (cplus_print_vtable): Don't return value from void
11490 function.
11491 * ada-lang.c (re_set_catch_assert): Ditto.
11492
da51c347
DE
114932013-01-09 Doug Evans <dje@google.com>
11494
11495 * symfile.h (quick_symbol_functions): Delete member
11496 pre_expand_symtabs_matching. All uses removed.
11497 * dwarf2read.c (dw2_lookup_symbol): Implement.
11498 (dw2_do_expand_symtabs_matching): Delete.
11499 (dw2_pre_expand_symtabs_matching): Delete.
11500 (struct dw2_symtab_iterator): New type.
11501 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11502 (dw2_expand_symtabs_for_function): Rewrite.
11503 (dwarf2_gdb_index_functions): Update.
11504 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11505 (psym_functions): Update.
11506
b2259038
TT
115072013-01-09 Tom Tromey <tromey@redhat.com>
11508
11509 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11510 * configure: Rebuild.
11511 * configure.ac: Add somread.o to the build if BFD has SOM
11512 support.
11513 * somread.c: Include som/aout.h, not syms.h.
11514 (som_symtab_read): Use som_external_symbol_dictionary_record.
11515 Unpack records manually.
11516 (_initialize_somread): Declare.
11517
bdad4180
MF
115182012-01-08 Mike Frysinger <vapier@gentoo.org>
11519
11520 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11521 Cast return_address to 64bits.
11522
03cdf680
HZ
115232013-01-08 Hui Zhu <hui_zhu@mentor.com>
11524
11525 * printcmd.c: Remove define of function output_command.
11526 * tracepoint.c: Remove extern of function output_command.
11527 * valprint.h: (output_command): New extern.
11528
8a808554
TT
115292013-01-07 Tom Tromey <tromey@redhat.com>
11530
11531 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11532 Remove.
11533 (objc_language_defn): Use c_printchar, c_printstr,
11534 c_emit_char.
11535
e93a8774
TT
115362013-01-07 Tom Tromey <tromey@redhat.com>
11537
11538 PR cli/7719:
11539 * NEWS: Update.
11540 * ada-valprint.c (printstr, print_field_values): Remove
11541 "inspect_it" code.
11542 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11543 code.
11544 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11545 code.
11546 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11547 * main.c (captured_main): Remove "epoch" argument.
11548 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11549 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11550 * p-valprint.c (pascal_object_print_value_fields): Remove
11551 "inspect_it" code.
11552 * printcmd.c (print_command_1): Remove 'inspect' argument.
11553 (print_command, call_command): Update.
11554 (inspect_command): Remove.
11555 (_initialize_printcmd): Make "inspect" an alias for "print".
11556 * top.c (epoch_interface): Remove.
11557 * top.h (epoch_interface): Remove.
11558 * valprint.c (user_print_options): Update.
11559 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11560 * valprint.h (struct value_print_options) <inspect_it>: Remove
11561 field.
11562
115632013-01-04 Tom Tromey <tromey@redhat.com>
11564
11565 * valprint.h (read_string): Add 'extern'.
11566
b967eb24
JB
115672013-01-07 Joel Brobecker <brobecker@adacore.com>
11568
11569 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11570 used to decide whether to define darwin_read_dyld_info or not.
11571
78a8b30e
PM
115722013-01-03 Pierre Muller <muller@sourceware.org>
11573
11574 * main.c (relocate_gdb_directory): Avoid calling stat function
11575 if DIR is empty.
11576
50da2f25
YQ
115772013-01-03 Yao Qi <yao@codesourcery.com>
11578
11579 * psymtab.c (fixup_psymbol_section): Update declaration.
11580 (fixup_psymbol_section): Remove code returning value.
11581
e7e8980f
YQ
115822013-01-03 Yao Qi <yao@codesourcery.com>
11583
11584 * symtab.h: Remove some out of date comments.
11585 (enum exception_event_kind): Move it ...
11586 * breakpoint.c: ... here.
11587
569283d4
MF
115882013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11589
9f9d9a96 11590 PR gdb/14405
569283d4
MF
11591 * darwin-nat.c (darwin_read_dyld_info): Only build if
11592 TASK_DYLD_INFO_COUNT is defined.
11593 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11594 TASK_DYLD_INFO_COUNT is defined.
11595
2e36fbea
TT
115962013-01-02 Tom Tromey <tromey@redhat.com>
11597
11598 * symfile.h (struct ecoff_debug_hack): Remove.
11599 * objfiles.c: Don't include mdebugread.h.
11600
4f05add4
TT
116012013-01-02 Tom Tromey <tromey@redhat.com>
11602
11603 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11604 * configure.ac: Check for Mach-O support in BFD. Update
11605 CONFIG_OBS.
11606 * configure: Rebuild.
11607
def63ff0
TT
116082013-01-02 Tom Tromey <tromey@redhat.com>
11609
11610 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11611 * configure.ac: Use GDB_AC_CHECK_BFD.
11612 * configure: Rebuild.
11613
60c5dd93
MK
116142013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11615
11616 * MAINTAINERS: Update my email.
11617
6e58437e
JB
116182013-01-01 Joel Brobecker <brobecker@adacore.com>
11619
11620 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11621
627fe805
JB
116222013-01-01 Joel Brobecker <brobecker@adacore.com>
11623
11624 * rs6000-nat.c (bss_data_overlap): New function.
11625 (vmap_symtab): Use it to adjust the .bss section's offset.
11626
28e7fd62
JB
116272013-01-01 Joel Brobecker <brobecker@adacore.com>
11628
11629 Update year range in copyright notice of all files.
11630
e93a8774 116312013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11632
11633 * top.c (print_gdb_version): Update copyright year.
11634
72b20e9c 11635For older changes see ChangeLog-2012.
c906108c
SS
11636\f
11637Local Variables:
11638mode: change-log
11639left-margin: 8
11640fill-column: 74
11641version-control: never
57da7796 11642coding: utf-8
c906108c 11643End:
This page took 2.632469 seconds and 4 git commands to generate.