Work around gold/15646.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-12 Doug Evans <dje@google.com>
2
3 Work around gold/15646.
4 * dwarf2read.c (read_index_from_section): Update comment.
5 (struct dw2_symtab_iterator): New member global_seen.
6 (dw2_symtab_iter_init): Initialize it.
7 (dw2_symtab_iter_next): Skip duplicate global symbols.
8 (dw2_expand_symtabs_matching): Ditto.
9
10 2013-11-12 Joel Brobecker <brobecker@adacore.com>
11
12 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
13 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
14 command.
15 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
16 (mi_cmd_info_ada_exceptions): New function.
17 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
18
19 2013-11-12 Joel Brobecker <brobecker@adacore.com>
20
21 * ada-lang.h: #include "vec.h".
22 (struct ada_exc_info): New.
23 (ada_exc_info): New typedef.
24 (DEF_VEC_O(ada_exc_info)): New vector.
25 (ada_exceptions_list): Add declaration.
26 * ada-lang.c (ada_is_exception_sym)
27 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
28 (sort_remove_dups_ada_exceptions_list)
29 (ada_exc_search_name_matches, ada_add_standard_exceptions)
30 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
31 (ada_exceptions_list_1, ada_exceptions_list)
32 (info_exceptions_command): New function.
33 (_initialize_ada_language): Add "info exception" command.
34
35 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
36
37 PR python/15629
38 * NEWS: Add linetable feature.
39 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
40 * python/py-linetable.c: New file.
41 * python/py-symtab.c (stpy_get_linetable): New function.
42 * python/python-internal.h (symtab_to_linetable_object): Declare.
43 (gdbpy_initialize_linetable): Ditto.
44 * python/python.c (_initialize_python): Call
45 gdbpy_initialize_linetable.
46
47 2013-11-11 Joel Brobecker <brobecker@adacore.com>
48
49 * ada-lang.c (create_ada_exception_catchpoint): Enhance
50 the documentation of fields "except_string" and "condition".
51 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
52 CONDITION on the heap before passing it to
53 create_ada_exception_catchpoint.
54 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
55 CONDITION.
56
57 2013-11-11 Tom Tromey <tromey@redhat.com>
58
59 * config.in, configure: Rebuild.
60 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
61
62 2013-11-11 Joel Brobecker <brobecker@adacore.com>
63
64 * remote-sim.c (gdbsim_detach): Break declaration into
65 shorter lines. No code change.
66
67 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
68
69 * remote-sim.c (gdbsim_detach): Fix prototype.
70
71 2013-11-08 Doug Evans <dje@google.com>
72
73 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
74 (create_debug_types_hash_table): Only print debugging messages for
75 each TU if dwarf2-read >= 2.
76 (process_queue): Ditto.
77 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
78 Update doc string.
79
80 2013-11-08 Tom Tromey <tromey@redhat.com>
81
82 * configure: Rebuild.
83 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
84
85 2013-11-08 Tom Tromey <tromey@redhat.com>
86
87 * configure, config.in: Rebuild.
88 * configure.ac: Remove unused configury.
89
90 2013-11-08 Tom Tromey <tromey@redhat.com>
91
92 * m32c-tdep.c: Use gdb_string.h.
93
94 2013-11-08 Tom Tromey <tromey@redhat.com>
95
96 * configure, config.in: Rebuild.
97 * configure.ac: Remove all link.h-related checks.
98
99 2013-11-08 Tom Tromey <tromey@redhat.com>
100
101 * acinclude.m4: Include common.m4.
102 * common/common.m4: New file.
103 * configure, config.in: Rebuild.
104 * configure.ac: Use GDB_AC_COMMON.
105
106 2013-11-08 Doug Evans <dje@google.com>
107
108 * NEWS: Mention that "set debug symtab-create" now accepts a
109 verbosity level.
110 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
111 to set the symtab's primary flag.
112 * jit.c (finalize_symtab): Ditto.
113 * mdebugread.c (psymtab_to_symtab_1): Ditto.
114 * symfile.c (allocate_symtab): Only print debugging messages for
115 symtab_create_debug levels 2 and higher.
116 * symtab.c (symtab_create_debug): Change type to unsigned int.
117 (set_symtab_primary): New function.
118 (_initialize_symtab): Change "set debug symtab-create" to a
119 zuinteger option.
120 * symtab.h (set_symtab_primary): Declare.
121 (symtab_create_debug): Update decl.
122
123 2013-11-08 Tom Tromey <tromey@redhat.com>
124
125 * aix-thread.c (aix_thread_detach): Update.
126 * corelow.c (core_detach): Update.
127 * darwin-nat.c (darwin_detach): Update.
128 * dec-thread.c (dec_thread_detach): Update.
129 * gnu-nat.c (gnu_detach): Update.
130 * go32-nat.c (go32_detach): Update.
131 * inf-ptrace.c (inf_ptrace_detach): Update.
132 * inf-ttrace.c (inf_ttrace_detach): Update.
133 * linux-fork.c (linux_fork_detach): Update.
134 * linux-fork.h (linux_fork_detach): Update.
135 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
136 local for const-correctness.
137 * linux-thread-db.c (thread_db_detach): Update.
138 * monitor.c (monitor_detach): Update.
139 * nto-procfs.c (procfs_detach): Update.
140 * procfs.c (procfs_detach): Update.
141 * record.c (record_detach): Update.
142 * record.h (record_detach): Update.
143 * remote-m32r-sdi.c (m32r_detach): Update.
144 * remote-mips.c (mips_detach): Update.
145 * remote-sim.c (gdbsim_detach): Update.
146 * remote.c (remote_detach_1, remote_detach)
147 (extended_remote_detach): Update.
148 * sol-thread.c (sol_thread_detach): Update.
149 * target.c (target_detach): Make "args" const.
150 (init_dummy_target): Update.
151 * target.h (struct target_ops) <to_detach>: Make argument const.
152 (target_detach): Likewise.
153 * windows-nat.c (windows_detach): Update.
154
155 2013-11-07 Doug Evans <dje@google.com>
156
157 PR 11786
158 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
159 and align fields for PT_GNU_RELRO segments.
160
161 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
162
163 PR python/15747
164 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
165
166 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
167
168 * NEWS: Document Python temporary breakpoint support.
169 * python/py-breakpoint.c (bppy_get_temporary): New function.
170 (bppy_init): New keyword: temporary. Parse it and set breakpoint
171 to temporary if True.
172
173 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
174
175 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
176 removed to allow analyzing unconditional branch instructions
177 with PC-relative offsets of zero.
178
179 2013-11-07 Yao Qi <yao@codesourcery.com>
180
181 * mi/mi-cmd-var.c: Include "language.h".
182 (mi_cmd_var_info_expression): Get language name from
183 language_defn.
184 * varobj.c (varobj_language_string): Remove.
185 (variable_language): Remove declaration.
186 (languages): Remove.
187 (varobj_get_language): Change the type of return value.
188 (variable_language): Remove.
189 * varobj.h (enum varobj_languages): Remove.
190 (varobj_language_string): Remove declaration.
191 (varobj_get_language): Update declaration.
192
193 2013-11-07 Yao Qi <yao@codesourcery.com>
194
195 * language.h (struct language_defn) <la_natural_name>: New
196 field.
197 * ada-lang.c (ada_language_defn): Initialize field
198 'la_natural_name'.
199 * c-lang.c (c_language_defn): Likewise.
200 (cplus_language_defn, asm_language_defn): Likewise.
201 * d-lang.c (d_language_defn): Likewise.
202 * f-lang.c (f_language_defn): Likewise.
203 * go-lang.c (go_language_defn): Likewise.
204 * jv-lang.c (java_language_defn): Likewise.
205 * language.c (unknown_language_defn ): Likewise.
206 (auto_language_defn): Likewise.
207 * m2-lang.c (m2_language_defn): Likewise.
208 * objc-lang.c (objc_language_defn): Likewise.
209 * opencl-lang.c (opencl_language_defn): Likewise.
210 * p-lang.c (pascal_language_defn): Likewise.
211
212 2013-11-07 Yao Qi <yao@codesourcery.com>
213
214 * language.c (language_str): Return const char *.
215 (add_language): Add const to 'language_names'
216 * language.h (struct language_defn) <la_name>: Add const.
217 (language_str: Update declaration.
218
219 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
220
221 * s390-linux-nat.c (s390_read_description): Consider the TE field
222 in the HWCAP for determining 'have_regset_tdb'.
223
224 2013-11-06 Will Newton <will.newton@linaro.org>
225
226 PR gdb/12866
227 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
228 values. (read_partial_die): Likewise.
229
230 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
231
232 PR cli/16122
233 * top.c (command_line_input): Unify interactivity tests to use
234 input_from_terminal_p.
235 * event-top.c (command_line_handler): Likewise.
236
237 2013-11-06 Yao Qi <yao@codesourcery.com>
238
239 * Makefile.in (check-perf): New target.
240
241 2013-11-05 Will Newton <will.newton@linaro.org>
242
243 PR gdb/7670
244 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
245 (arm_print_float_info): Likewise.
246
247 2013-11-04 Anton Blanchard <anton@samba.org>
248
249 * target.c (memory_xfer_partial): Cap write to 4KB.
250
251 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
252
253 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
254 probe scan even when the arch provides no get_longjmp_target.
255
256 2013-10-31 Pedro Alves <palves@redhat.com>
257
258 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
259 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
260 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
261 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
262 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
263 <bpstat handling>: If the bpstat chain wants the signal to be
264 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
265 GDB_SIGNAL_TRAP.
266
267 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
268
269 * breakpoint.c (update_watchpoint): Update error message and add
270 an additional error message.
271
272 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
273
274 * s390-tdep.h: Rename to...
275 * s390-linux-tdep.h: ...here.
276 * s390-tdep.c: Rename to...
277 * s390-linux-tdep.c: ...here. Adjust #include.
278 * s390-nat.c: Rename to...
279 * s390-linux-nat.c: ...here. Adjust #include.
280 * config/s390/s390.mh: Rename to...
281 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
282 s390-linux-nat.o.
283 * configure.host: Reflect host rename "s390" -> "linux".
284 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
285 * Makefile.in (ALL_TARGET_OBS): Likewise.
286 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
287 s390-linux-tdep.h.
288 (ALLDEPFILES): Reflect rename of .c files.
289
290 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
291
292 * s390-nat.c: Whitespace cleanup.
293 * s390-tdep.c: Likewise.
294 * s390-tdep.h: Remove empty line at end of file.
295
296 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
297
298 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
299 siginfo_size.
300
301 2013-10-29 Tom Tromey <tromey@redhat.com>
302
303 * utils.c (reg): Move undefinition...
304 * gdb_curses.h: ... here. Update comment to mention AIX.
305
306 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
307
308 * exec.h (add_target_sections_of_objfile): New declaration.
309 * exec.c (add_target_sections_of_objfile): New function.
310 * symfile.c (add_symbol_file_command): Update current target sections.
311 (remove_symbol_file_command): New command.
312 (symfile_free_objfile): New function.
313 (_initialize_symfile): Register observer for free_objfile events.
314 * NEWS: Add description of the remove-symbol-file command.
315 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
316 * objfiles.c (free_objfile): Notify free_objfile.
317 (is_addr_in_objfile): New function.
318 * objfiles.h (is_addr_in_objfile): New declaration.
319 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
320 events instead of solib_unloaded events.
321 (_initialize_printcmd): Register observer for free_objfile instead
322 of solib_unloaded notifications.
323 * solib.c (remove_user_added_objfile): New function.
324 (_initialize_symfile): Add remove-symbol-file.
325
326 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
327
328 * infcmd.c (default_print_one_register_info): Use val_print to
329 print all values even optimized out or unavailable ones. Don't
330 try to print a raw form of optimized out or unavailable values.
331
332 2013-10-29 Yao Qi <yao@codesourcery.com>
333
334 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
335 parameter 'arg' instead of from program_space_data.
336 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
337 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
338 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
339 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
340 * inflow.c (inflow_inferior_data_cleanup): Get data from
341 parameter 'arg' instead of inferior_data.
342 * registry.h: Add comments.
343
344 2013-10-28 Pedro Alves <palves@redhat.com>
345
346 * breakpoint.c (watchpoints_triggered)
347 <!target_stopped_data_address>: Hardcode return 1.
348
349 2013-10-28 Pedro Alves <palves@redhat.com>
350
351 * infrun.c (process_event_stop_test): Remove unnecessary scoping
352 level and reindent.
353
354 2013-10-28 Pedro Alves <palves@redhat.com>
355
356 * infrun.c (process_event_stop_test): New function, factored out
357 from handle_inferior_event.
358 (handle_inferior_event): 'process_event_stop_test' is now a
359 function instead of a goto label -- adjust.
360
361 2013-10-28 Pedro Alves <palves@redhat.com>
362
363 * infrun.c (handle_inferior_event): Move process_event_stop_test
364 goto label to the else branch of the ecs->random_signal check,
365 along with FRAME and GDBARCH re-fetching.
366
367 2013-10-28 Pedro Alves <palves@redhat.com>
368
369 * infrun.c (switch_back_to_stepped_thread): New function, factored
370 out from handle_inferior_event.
371 (handle_inferior_event): Adjust to call
372 switch_back_to_stepped_thread. Call it also at the tail of the
373 random signal handling, and return, instead of also handling
374 random signals just before the stepping tests.
375
376 2013-10-28 Pedro Alves <palves@redhat.com>
377
378 * infrun.c (clear_stop_func): Delete.
379 (handle_inferior_event): Don't call clear_stop_func and don't
380 clear 'ecs->random_signal'.
381
382 2013-10-27 Yao Qi <yao@codesourcery.com>
383
384 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
385 (varobj_create, varobj_get_path_expr): Update.
386 (varobj_value_has_mutated, varobj_update): Likewise.
387 (create_child_with_value, new_root_variable): Likewise.
388 (number_of_children, name_of_variable): Likewise.
389 (value_of_child, my_value_of_variable): Likewise.
390 (varobj_value_is_changeable_p): Likewise.
391
392 2013-10-25 Yao Qi <yao@codesourcery.com>
393
394 * language.h (struct lang_varobj_ops): Declare.
395 (struct language_defn) <la_varobj_ops>: New field.
396 * ada-lang.c: Include "varobj.h"
397 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
398 ada_varobj_ops.
399 * c-lang.c: Include "varobj.h"
400 (c_language_defn): Initialize field 'la_varobj_ops' with
401 c_varobj_ops.
402 (cplus_language_defn): Initialize field 'la_varobj_ops' with
403 cplus_varobj_ops.
404 (asm_language_defn): Initialize field 'la_varobj_ops' with
405 default_varobj_ops.
406 (minimal_language_defn): Likewise.
407 * d-lang.c (d_language_defn): Likewise.
408 * f-lang.c (f_language_defn): Likewise.
409 * go-lang.c (go_language_defn): Likewise.
410 * m2-lang.c (m2_language_defn): Likewise.
411 * objc-lang.c (objc_language_defn): Likewise.
412 * opencl-lang.c (opencl_language_defn): Likewise.
413 * p-lang.c (pascal_language_defn): Likewise.
414 * language.c (unknown_language_defn): Likewise.
415 (auto_language_defn): Likewise.
416 (local_language_defn): Likewise.
417 * jv-lang.c (java_language_defn): Initialize field
418 'la_varobj_ops' with java_varobj_ops.
419 * varobj.c (varobj_create): Update.
420 * varobj.h (default_varobj_ops): Define macro.
421
422 2013-10-25 Pedro Alves <palves@redhat.com>
423
424 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
425 static field value.
426 (cp_print_static_field): If the value is entirely optimized out,
427 print <optimized out> here.
428 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
429 static field value.
430 * p-valprint.c (pascal_object_print_static_field): If the value is
431 entirely optimized out, print <optimized out> here.
432 * valops.c (do_search_struct_field)
433 (value_struct_elt_for_reference): No longer handle a NULL static
434 field value.
435 * value.c (value_static_field): Return an optimized out value
436 instead of NULL.
437
438 2013-10-25 Yao Qi <yao@codesourcery.com>
439
440 * remote.c (remote_traceframe_info): Return early if
441 traceframe is not selected.
442
443 2013-10-25 Yao Qi <yao@codesourcery.com>
444
445 * tracepoint.c (traceframe_fun): Remove.
446 (traceframe_sal): Remove.
447 (set_traceframe_context): Add local variables.
448
449 2013-10-25 Joel Brobecker <brobecker@adacore.com>
450
451 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
452 and parameter name.
453
454 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
455
456 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
457 failure from register information collection.
458
459 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
460
461 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
462 member.
463 (linux_corefile_thread_callback): Update accordingly.
464 (linux_make_corefile_notes): Likewise.
465
466 2013-10-24 Pedro Alves <palves@redhat.com>
467
468 * NEWS (New options): Mention set/show startup-with-shell.
469 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
470 instead of 3.
471 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
472 startup-with-shell'.
473 (show_startup_with_shell): New function.
474 (_initialize_fork_child): Register the set/show startup-with-shell
475 commands.
476 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
477 * inf-ttrace.c (inf_ttrace_him): Remove comment.
478 * procfs.c (procfs_init_inferior): Remove comment.
479 * infcmd.c (startup_with_shell): New global.
480 * inferior.h (startup_with_shell): Declare global.
481 (STARTUP_WITH_SHELL): Delete.
482 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
483
484 2013-10-23 Pedro Alves <palves@redhat.com>
485
486 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
487 * common/signals.c: Include "gdb_assert.h".
488 (signals): New field 'symbol'.
489 (SET): Use the 'symbol' parameter.
490 (gdb_signal_to_symbol_string): New function.
491 * infrun.c (handle_inferior_event) <random signal>: In debug
492 output, print the random signal enum as string in addition to its
493 number.
494 * target/waitstatus.c (target_waitstatus_to_string): Print the
495 signal's enum value as string instead of the (POSIX) signal name.
496
497 2013-10-23 Gary Benson <gbenson@redhat.com>
498
499 PR 16013
500 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
501 from 32 to 18. Adjusted fscanf format string accordingly.
502 (Avoids leaving cmd unterminated.)
503 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
504 trun, retn or extra. (Avoids leaving extra unterminated.) Check
505 that local_address and remote_address will not overflow.
506 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
507 leaving dependencies unterminated. Parse size as "%u" to match
508 definition.
509
510 2013-10-22 Pedro Alves <palves@redhat.com>
511
512 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
513 set ecs->random signal.
514
515 2013-10-22 Pedro Alves <palves@redhat.com>
516
517 * infrun.c (keep_going): Update comments.
518
519 2013-10-22 Pedro Alves <palves@redhat.com>
520
521 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
522 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
523
524 2013-10-22 Pedro Alves <palves@redhat.com>
525
526 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
527 GDB_EXC_BAD_ACCESS.
528 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
529 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
530 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
531 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
532 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
533 (GDB_SIGNAL_LAST): Change description string.
534 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
535 Adjust to signal renaming.
536 * darwin-nat.c (darwin_decode_message): Likewise.
537
538 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
539
540 * MAINTAINERS (Write After Approval): Add myself to the list.
541
542 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
543
544 * breakpoint.c (update_watchpoint): If hardware watchpoints are
545 forced off, downgrade them to software watchpoints if possible,
546 and error out if not possible.
547 (watch_command_1): Move watchpoint type selection closer to
548 watchpoint creation, and extend the comments.
549
550 2013-10-18 Pedro Alves <palves@redhat.com>
551
552 PR gdb/16062
553 * infrun.c (handle_inferior_event): Keep going if we got a random
554 signal we should not stop for, instead of falling through to the
555 step tests.
556
557 2013-10-18 Yao Qi <yao@codesourcery.com>
558
559 * c-varobj.c (cplus_number_of_children): Fix indentation.
560
561 2013-10-17 Tom Tromey <tromey@redhat.com>
562
563 PR gdb/15995:
564 * printcmd.c (printcmd): Call gdb_flush.
565
566 2013-10-17 Tom Tromey <tromey@redhat.com>
567
568 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
569 (elf_locate_sections): Update.
570
571 2013-10-17 Yao Qi <yao@codesourcery.com>
572
573 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
574 * ada-varobj.c: Remove the include of ada-varobj.h.
575 (ada_varobj_get_number_of_children): Declare.
576 (ada_varobj_get_name_of_child): Make it static.
577 (ada_varobj_get_path_expr_of_child): Likewise.
578 (ada_varobj_get_value_of_child): Likewise.
579 (ada_varobj_get_type_of_child): Likewise.
580 (ada_varobj_get_value_of_array_variable): Likewise.
581 * ada-varobj.h: Remove.
582
583 2013-10-17 Yao Qi <yao@codesourcery.com>
584
585 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
586 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
587 * ada-varobj.c: Include "varobj.h".
588 (ada_number_of_children): New. Moved from varobj.c.
589 (ada_name_of_variable, ada_name_of_child): Likewise.
590 (ada_path_expr_of_child, ada_value_of_child): Likewise.
591 (ada_type_of_child, ada_value_of_variable): Likewise.
592 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
593 (ada_varobj_ops): New.
594 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
595 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
596 * gdbtypes.h (get_target_type): Declare.
597 * varobj.c: Remove the inclusion of "ada-varobj.h" and
598 "ada-lang.h".
599 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
600 (ANONYMOUS_UNION_NAME): Likewise.
601 (get_type, get_value_type, get_target_type): Remove declarations.
602 (value_get_print_value, varobj_value_get_print_value): Likewise.
603 (c_number_of_children, c_name_of_variable): Likewise.
604 (c_name_of_child, c_path_expr_of_child): Likewise.
605 (c_value_of_child, c_type_of_child): Likewise.
606 (c_value_of_variable, cplus_number_of_children): Likewise.
607 (cplus_class_num_children, cplus_name_of_variable): Likewise.
608 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
609 (cplus_value_of_child, cplus_type_of_child): Likewise.
610 (cplus_value_of_variable, java_number_of_children): Likewise.
611 (java_name_of_variable, java_name_of_child): Likewise.
612 (java_path_expr_of_child, java_value_of_child): Likewise.
613 (java_type_of_child, java_value_of_variable): Likewise.
614 (ada_number_of_children, ada_name_of_variable): Likewise.
615 (ada_name_of_child, ada_path_expr_of_child): Likewise.
616 (ada_value_of_child, ada_type_of_child): Likewise.
617 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
618 (ada_value_has_mutated): Likewise.
619 (struct language_specific): Move it to varobj.h.
620 (CPLUS_FAKE_CHILD): Move it to varobj.h.
621 (restrict_range): Rename it varobj_restrict_range. Make it extern.
622 Callers update.
623 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
624 Make it extern.
625 (is_anonymous_child): Move it to c-varobj.c and rename to
626 varobj_is_anonymous_child. Caller update.
627 (get_type): Move it to c-varobj.c.
628 (get_value_type): Rename it varobj_get_value_type. Make it
629 extern.
630 (get_target_type): Move it gdbtypes.c.
631 (varobj_formatted_print_options): New function.
632 (value_get_print_value): Rename it to
633 varobj_value_get_print_value and make it extern.
634 (varobj_value_is_changeable_p): Make it extern.
635 (adjust_value_for_child_access): Move it to c-varobj.c.
636 (default_value_is_changeable_p): Rename it to
637 varobj_default_value_is_changeable_p. Make it extern.
638 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
639 (c_name_of_child, c_path_expr_of_child): Likewise.
640 (c_value_of_child, c_type_of_child): Likewise.
641 (c_value_of_variable, cplus_number_of_children): Likewise.
642 (cplus_class_num_children, cplus_name_of_variable): Likewise.
643 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
644 (cplus_value_of_child, cplus_type_of_child): Likewise.
645 (cplus_value_of_variable): Likewise.
646 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
647 (java_name_of_child, java_path_expr_of_child): Likewise.
648 (java_value_of_child, java_type_of_child): Likewise.
649 (java_value_of_variable): Likewise.
650 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
651 (ada_name_of_child, ada_path_expr_of_child): Likewise.
652 (ada_value_of_child, ada_type_of_child): Likewise.
653 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
654 (ada_value_has_mutated): Likewise.
655 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
656 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
657 (c_varobj_ops, cplus_varobj_ops): Declare.
658 (java_varobj_ops, ada_varobj_ops): Declare.
659 (varobj_default_value_is_changeable_p): Declare.
660 (varobj_value_is_changeable_p): Declare.
661 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
662 (varobj_get_path_expr_parent): Declare.
663 (varobj_value_get_print_value): Declare.
664 (varobj_formatted_print_options): Declare.
665 (varobj_restrict_range): Declare.
666
667 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
668
669 * target/waitstatus.h (target_waitkind): Remove spurious
670 character from the comments.
671
672 2013-10-17 Joel Brobecker <brobecker@adacore.com>
673
674 * gdbarch.sh (get_longjmp_target): Add method documentation.
675 * gdbarch.h: Regenerate.
676
677 2013-10-16 Tom Tromey <tromey@redhat.com>
678
679 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
680 label.
681
682 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
683
684 * gcore.in: Call GDB using the full path to the gcore script.
685 Error out if the GDB binary is not found.
686
687 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
688
689 PR gdb/16014
690 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
691 sizeof.
692
693 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
694
695 PR gdb/16042
696 * target.c (target_disable_btrace): Fix invalid return value for
697 void function.
698 (target_teardown_btrace): Likewise.
699
700 2013-10-14 Yao Qi <yao@codesourcery.com>
701
702 * varobj.c (struct varobj): Move most of the fields to
703 varobj.h.
704 (struct varobj_dynamic): New struct.
705 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
706 (varobj_has_more): Likewise.
707 (dynamic_varobj_has_child_method): Likewise.
708 (update_dynamic_varobj_children): Likewise.
709 (varobj_get_num_children): Likewise.
710 (varobj_list_children, varobj_pretty_printed_p): Likewise.
711 (install_new_value_visualizer): Likewise.
712 (install_new_value_visualizer, install_new_value): Likewise.
713 (varobj_update, new_variable, free_variable): Likewise.
714 (my_value_of_variable, value_get_print_value): Likewise.
715 (install_visualizer): Change the type of parameter 'var' to
716 'struct varobjd_dynamic *'. Callers update.
717 * varobj.h (struct varobj): Moved from varobj.c.
718 (struct varobj) <dynamic>: New field.
719
720 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
721
722 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
723 as the preferred name of r30.
724 * nios2-linux-tdep.c (reg_offsets): Likewise.
725 * features/nios2-cpu.xml: Likewise.
726 * features/nios2-linux.c: Regenerated.
727 * features/nios2.c: Regenerated.
728 * regformats/nios2-linux.dat: Regenerated.
729
730 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
731
732 Canonicalize directories for EXEC_FILENAME.
733 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
734 exec_filename.
735 * utils.c (gdb_realpath_keepfile): New function.
736 * utils.h (gdb_realpath_keepfile): New declaration.
737
738 2013-10-11 Doug Evans <dje@google.com>
739
740 * Makefile.in (GDBFLAGS): New variable.
741 (run): New rule.
742
743 2013-10-11 Joel Brobecker <brobecker@adacore.com>
744
745 * NEWS: Add entry documenting the new "-catch-assert" and
746 "-catch-exception" GDB/MI commands.
747
748 2013-10-11 Joel Brobecker <brobecker@adacore.com>
749
750 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
751 "enabled".
752 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
753 "enabled". Set B->ENABLE_STATE accordingly.
754 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
755 ada-lang.c.
756 (create_ada_exception_catchpoint): Add declaration.
757 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
758 (create_ada_exception_catchpoint): Make non-static. Add new
759 parameter "disabled". Use it in call to
760 init_ada_exception_breakpoint.
761 (catch_ada_exception_command): Add parameter "enabled" in call
762 to create_ada_exception_catchpoint.
763 (catch_assert_command): Likewise.
764
765 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
766 Add declarations.
767 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
768 "catch-exception" commands.
769 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
770 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
771
772 2013-10-11 Joel Brobecker <brobecker@adacore.com>
773
774 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
775 "enum exception_catchpoint_kind". Replace the "ex_" prefix
776 of all its enumerates with "ada_". Update the rest of this
777 file throughout.
778
779 2013-10-11 Joel Brobecker <brobecker@adacore.com>
780
781 * ada-lang.c (ada_decode_exception_location): Delete.
782 (create_ada_exception_catchpoint): Remove arguments "sal",
783 "addr_string" and "ops". Add argument "ex_kind" instead.
784 Adjust implementation accordingly, calling ada_exception_sal
785 to get the entities it no longer gets passed as arguments.
786 Document the function's arguments.
787 (catch_ada_exception_command): Use catch_ada_exception_command_split
788 instead of ada_decode_exception_location, and update call to
789 create_ada_exception_catchpoint.
790 (catch_ada_assert_command_split): Renames
791 ada_decode_assert_location. Remove parameters "addr_string" and
792 "ops", and now returns void. Adjust implementation accordingly.
793 Update the function documentation.
794 (catch_assert_command): Use catch_ada_assert_command_split
795 instead of ada_decode_assert_location. Update call to
796 create_ada_exception_catchpoint.
797
798 2013-10-11 Joel Brobecker <brobecker@adacore.com>
799
800 * utils.h (perror_warning_with_name): Add declaration.
801 * utils.c (perror_warning_with_name): New function.
802 * cli/cli-cmds.c (source_script_with_search): Add call to
803 perror_warning_with_name if from_tty is nul.
804
805 2013-10-11 Joel Brobecker <brobecker@adacore.com>
806
807 * utils.c (perror_string): New function, extracted out of
808 throw_perror_with_name.
809 (throw_perror_with_name): Rework to use perror_string.
810
811 2013-10-11 Yao Qi <yao@codesourcery.com>
812
813 * remote.c (discard_pending_stop_replies_in_queue): Update
814 declaration.
815 (struct stop_reply) <rs>: New field.
816 (remove_stop_reply_of_remote_state): New function.
817 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
818 Callers update. Pass remove_stop_reply_of_remote_state to
819 QUEUE_iterate.
820 (remote_parse_stop_reply): Initialize field 'rs'.
821
822 2013-10-10 Will Newton <will.newton@linaro.org>
823
824 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
825 linux_init_abi.
826
827 2013-10-10 Joel Brobecker <brobecker@adacore.com>
828
829 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
830 serial_baud_show_cmd.
831 (_initialize_cli_cmds): Delete the code creating the
832 "set/show remotebaud" commands.
833 * serial.c (baud_rate): Move here from top.c.
834 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
835 (_initialize_serial): Create "set/show serial baud" commands.
836 Add "set/show remotebaud" command aliases.
837 * top.c (baud_rate): Moved to serial.c.
838 * NEWS: Document the new "set/show serial baud" commands,
839 replacing "set/show remotebaud".
840
841 2013-10-09 Pedro Alves <palves@redhat.com>
842
843 * breakpoint.c (insert_bp_location): Use memory_error_message to
844 build the memory error string.
845 * c-lang.c: Include "gdbcore.h".
846 (c_get_string): Use memory_error to throw error.
847 (target_xfer_memory_error): Delete.
848 (memory_error_message): New, factored out from
849 target_xfer_memory_error.
850 (memory_error): Change parameter type to target_xfer_error.
851 Rewrite.
852 (read_memory): Use memory_error instead of
853 target_xfer_memory_error.
854 * gdbcore.h: Include "target.h".
855 (memory_error): Change parameter type to target_xfer_error.
856 (memory_error_message): Declare function.
857 * target.c (target_read_memory, target_read_stack)
858 (target_write_memory, target_write_raw_memory): Return
859 TARGET_XFER_E_IO on error. Adjust comments.
860 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
861 instead of EIO.
862 * target.h (target_read, target_insert_breakpoint)
863 (target_remove_breakpoint): Adjust comments.
864 * valprint.c (partial_memory_read): Rename parameter, and adjust
865 comment.
866 (val_print_string): Use memory_error_message to build the memory
867 error string.
868
869 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
870
871 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
872 result variable. Rename variable fopen_e_ever_failed to
873 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
874
875 2013-10-09 Pedro Alves <palves@redhat.com>
876
877 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
878 (monitor_write_memory_longlongs, monitor_write_memory_block):
879 Constify 'myaddr' parameter.
880 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
881 helper.
882 (monitor_xfer_partial): New function.
883 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
884 hook. Install a to_xfer_partial hook.
885
886 2013-10-09 Tom Tromey <tromey@redhat.com>
887
888 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
889 bfd_get_alt_debug_link_info.
890
891 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
892
893 New flag OBJF_NOT_FILENAME.
894 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
895 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
896 allocate_objfile.
897 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
898 symbol_file_add_from_bfd.
899 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
900 allocate_objfile.
901 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
902 NULL.
903 * objfiles.h (OBJF_NOT_FILENAME): New.
904
905 2013-10-08 Tom Tromey <tromey@redhat.com>
906
907 * Makefile.in (SFILES): Add build-id.c.
908 (HFILES_NO_SRCDIR): Add build-id.h.
909 * build-id.c: New file, largely from elfread.c. Modified
910 most functions.
911 * build-id.h: New file.
912 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
913 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
914 Search for dwz file using build-id.
915 * elfread.c (build_id_bfd_get, build_id_verify)
916 (build_id_to_debug_filename, find_separate_debug_file): Remove.
917
918 2013-10-08 Joel Brobecker <brobecker@adacore.com>
919
920 * ada-lang.c (compare_names_with_case): Renamed from
921 compare_names, adding a new parameter "casing" and its handling.
922 New function documentation.
923 (compare_names): New function, implemented using
924 compare_names_with_case.
925
926 2013-10-08 Joel Brobecker <brobecker@adacore.com>
927
928 * ada-lang.c (ada_exception_sal): Remove advance declaration.
929
930 2013-10-07 Tom Tromey <tromey@redhat.com>
931
932 * objfiles.c (free_objfile_per_bfd_storage): Delete the
933 demangled_names_hash.
934 (free_objfile): Don't delete the demangled_names_hash.
935 * objfiles.h (struct objfile_per_bfd_storage)
936 <demangled_names_hash>: New field.
937 (struct objfile) <demangled_names_hash>: Move to
938 objfile_per_bfd_storage.
939 * symfile.c (reread_symbols): Don't delete the
940 demangled_names_hash.
941 * symtab.c (create_demangled_names_hash): Update.
942 (symbol_set_names): Update.
943
944 2013-10-07 Tom Tromey <tromey@redhat.com>
945
946 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
947 needs_relocations>: New fields.
948 (gdb_bfd_requires_relocations): New function.
949 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
950 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
951 the BFD needs relocations applied.
952
953 2013-10-07 Pedro Alves <palves@redhat.com>
954
955 PR breakpoints/11568
956 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
957 the thread list" instead of "gone".
958
959 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
960
961 * NEWS: Mention new convenience variable $_exitsignal.
962 * corelow.c (core_open): Reset exit convenience variables. Set
963 $_exitsignal to the uncaught signal which generated the corefile.
964 * infrun.c (handle_inferior_event): Reset exit convenience
965 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
966 (clear_exit_convenience_vars): New function.
967 * inferior.h (clear_exit_convenience_vars): New prototype.
968
969 2013-10-06 Yao Qi <yao@codesourcery.com>
970
971 * varobj.h: Add comments to enum varobj_languages.
972
973 2013-10-04 Doug Evans <dje@google.com>
974
975 Add support for DWP file format version 2.
976 * NEWS: Mention support for DWP file format version 2.
977 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
978 union of asection, containing_section. New fields virtual_offset
979 and is_virtual. Change type of readin filed from int to char.
980 (dwo_sections, dwo_file): Tweak comments.
981 (dwp_v2_section_ids): New enum.
982 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
983 str_offsets, types.
984 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
985 All uses updated.
986 (virtual_v2_dwo_sections): New struct.
987 (dwp_hash_table): New fields version, nr_columns. Change type of
988 section_pool field to a union.
989 (dwp_file): New field version.
990 (dwarf2_has_info): Check for virtual sections.
991 (get_containing_section): New function.
992 (get_section_bfd_owner, get_section_bfd_section): Call it.
993 (dwarf2_locate_sections): Update.
994 (dwarf2_section_empty_p): Update.
995 (dwarf2_read_section): Handle virtual sections.
996 (locate_dwz_sections): Update.
997 (create_dwp_hash_table): Document and handle V2 format.
998 (locate_v1_virtual_dwo_sections): Renamed from
999 locate_virtual_dwo_sections and update. All callers updated.
1000 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1001 Delete arg htab. Rename arg section_index to unit_index.
1002 All callers updated.
1003 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1004 All uses updated.
1005 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1006 (lookup_dwo_unit_in_dwp): Add V2 support.
1007 (dwarf2_locate_dwo_sections): Update.
1008 (dwarf2_locate_common_dwp_sections): Renamed from
1009 dwarf2_locate_dwp_sections and update. All callers updated.
1010 (dwarf2_locate_v2_dwp_sections): New function.
1011 (open_and_init_dwp_file): Add V2 support.
1012 (read_str_index): New locals str_section, str_offsets_section.
1013
1014 2013-10-04 Pedro Alves <palves@redhat.com>
1015
1016 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1017 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1018 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1019 describing comments with references to ptid.h.
1020 * common/ptid.h: Remove intro description of constructors,
1021 accessors and predicates.
1022 (struct ptid): Reformat.
1023 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1024 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1025 describing comments.
1026
1027 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1028
1029 * aix-thread.c (sync_threadlists): Add missing ')' in call
1030 to ptid_build.
1031
1032 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1033
1034 * procfs.c (procfs_init_inferior): Fix typo causing the build
1035 to fail.
1036
1037 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1038
1039 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1040
1041 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1042
1043 * mi/mi-main.c (run_one_inferior): Add function description.
1044 Make ARG a pointer to an integer whose value determines whether
1045 we should "run" or "start" the program.
1046 (mi_cmd_exec_run): Add handling of the "--start" option.
1047 Reject all other command-line options.
1048 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1049
1050 2013-10-04 Yao Qi <yao@codesourcery.com>
1051
1052 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1053 (struct notif_client) <pending_event>: Moved
1054 to struct remote_notif_state.
1055 <id>: New field.
1056 (struct remote_notif_state) <pending_event>: New field.
1057 (notif_event_xfree): Declare.
1058 * remote-notif.c (handle_notification): Adjust.
1059 (notif_event_xfree): New function.
1060 (do_notif_event_xfree): Call notif_event_xfree.
1061 (remote_notif_state_xfree): Call notif_event_xfree to free
1062 each element in field pending_event.
1063 * remote.c (discard_pending_stop_replies): Remove declaration.
1064 (discard_pending_stop_replies_in_queue): Declare.
1065 (remote_close): Call discard_pending_stop_replies_in_queue
1066 instead of discard_pending_stop_replies.
1067 (remote_start_remote): Adjust.
1068 (stop_reply_xfree): Call notif_event_xfree.
1069 (notif_client_stop): Adjust initialization.
1070 (remote_notif_remove_all): Rename it to ...
1071 (remove_stop_reply_for_inferior): ... this. Update comments.
1072 Don't check INF is NULL.
1073 (discard_pending_stop_replies): Return early if notif_state is
1074 NULL. Adjust. Don't check INF is NULL.
1075 (remote_notif_get_pending_events): Adjust.
1076 (discard_pending_stop_replies_in_queue): New function.
1077 (remote_wait_ns): Likewise.
1078
1079 2013-10-04 Yao Qi <yao@codesourcery.com>
1080
1081 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1082 (notif_queue): Remove.
1083 (remote_notif_process): Add one parameter 'notif_queue'.
1084 Update comments. Callers update.
1085 (remote_async_get_pending_events_token): Remove.
1086 (remote_notif_register_async_event_handler): Remove.
1087 (remote_notif_unregister_async_event_handler): Remove.
1088 (handle_notification): Add parameter 'notif_queue'. Update
1089 comments. Callers update.
1090 (notif_xfree): Remove.
1091 (remote_notif_state_allocate): New function.
1092 (remote_notif_state_xfree): New function.
1093 (_initialize_notif): Remove code to allocate queue.
1094 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1095 (struct remote_notif_state): New.
1096 (handle_notification): Update declaration.
1097 (remote_notif_process): Likewise.
1098 (remote_notif_register_async_event_handler): Remove.
1099 (remote_notif_unregister_async_event_handler): Remove.
1100 (remote_notif_state_allocate): Declare.
1101 (remote_notif_state_xfree): Declare.
1102 * remote.c (struct remote_state) <notif_state>: New field.
1103 (remote_close): Don't call
1104 remote_notif_unregister_async_event_handler. Call
1105 remote_notif_state_xfree.
1106 (remote_open_1): Don't call
1107 remote_notif_register_async_event_handler. Call
1108 remote_notif_state_allocate.
1109
1110 2013-10-04 Yao Qi <yao@codesourcery.com>
1111
1112 * varobj.c (create_child_with_value): Remove 'const' from the
1113 type of parameter 'name'.
1114 (varobj_add_child): Likewise.
1115 (install_dynamic_child): Remove 'const' from the type of
1116 parameter 'name'.
1117 (varobj_add_child): Likewise.
1118 (create_child_with_value): Likewise. Update comments. Don't
1119 duplicate 'name'.
1120 (update_dynamic_varobj_children): Duplicate 'name'
1121 and pass it to install_dynamic_child.
1122
1123 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1124
1125 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1126 conversion logic to occur after PyLong_Check. Comment on order
1127 change significance.
1128 * python/py-arch.c (archpy_disassemble): Comment on order of
1129 conversion for integers and longs.
1130
1131 2013-10-03 Pedro Alves <palves@redhat.com>
1132
1133 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1134 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1135 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1136 PTRACE_O_TRACEFORK is not supported.
1137 (linux_test_for_tracesysgood): New function.
1138 (linux_test_for_tracefork): New function, factored out from
1139 linux_check_ptrace_features, and also don't kill child_pid here.
1140
1141 2013-10-03 Tristan Gingold <gingold@adacore.com>
1142
1143 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1144 Remove verbose error reporting. Use detected state to
1145 thread_set_state call.
1146 (i386_darwin_dr_get): Fix return type. Remove verbose error
1147 report.
1148 Remove trailing spaces.
1149
1150 2013-10-02 Pedro Alves <palves@redhat.com>
1151
1152 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1153 val_print_optimized_out.
1154 * jv-valprint.c (java_print_value_fields): Likewise.
1155 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1156 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1157 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1158 new optimized out value.
1159 * findvar.c (address_from_register): Likewise.
1160 * frame.c (put_frame_register): Tweak error string to say the
1161 register was not saved, rather than optimized out.
1162 * infcmd.c (default_print_one_register_info): Adjust call to
1163 val_print_optimized_out. Use value_of_register instead of
1164 get_frame_register_value.
1165 * mi/mi-main.c (output_register): Use value_of_register instead of
1166 get_frame_register_value.
1167 * valprint.c (valprint_check_validity): Likewise.
1168 (val_print_optimized_out): New value parameter. If the value is
1169 lval_register, print <not saved> instead.
1170 (value_check_printable, val_print_scalar_formatted): Adjust calls
1171 to val_print_optimized_out.
1172 * valprint.h (val_print_optimized_out): New value parameter.
1173 * value.c (struct value) <optimized_out>: Extend comment.
1174 (error_value_optimized_out): New function.
1175 (require_not_optimized_out): Use it. Use a different string for
1176 lval_register values.
1177 * value.h (error_value_optimized_out): New declaration.
1178 * NEWS: Mention <not saved>.
1179
1180 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1181
1182 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1183 strcmp to compare two symtab filenames.
1184
1185 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1186
1187 * symtab.c (search_symbols_equal): Delete.
1188 (sort_search_symbols_remove_dups): Replace call to
1189 search_symbols_equal by call to compare_search_syms,
1190 adjusting as necessary.
1191
1192 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1193
1194 PR python/15579
1195 * python/python.c: Document gdb.execute command in Python help.
1196
1197 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1198
1199 * python/py-frame.c (frame_info_to_frame_object): Use
1200 gdbpy_convert_exception. Clean up Python object on failure.
1201
1202 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1203
1204 * python/lib/gdb/command/frame_filters.py
1205 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1206 (ShowFrameFilterPriority.invoke): Ditto.
1207
1208 2013-10-01 Keith Seitz <keiths@redhat.com>
1209
1210 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1211 (parse_linespec): Make 'argptr' const.
1212 Remove temporary cast of 'argptr' to const char **.
1213 (decode_line_full): Pass const pointer to parse_linespec.
1214 (decode_line_1): Likewise.
1215 (decode_objc): Make local variable 'new_argptr' const.
1216 (find_function_symbols): Remove temporary cast to char *
1217 to find_imps.
1218 * objc-lang.c (find_imps): Make argument 'method' const.
1219 Return const.
1220 * objc-lang.h (find_imps): Likewise.
1221
1222 2013-10-01 Keith Seitz <keiths@redhat.com>
1223
1224 * completer.c (skip_quoted_chars): Make all arguments const.
1225 Return const.
1226 (skip_quoted): Likewise.
1227 * completer.h (skip_quoted_chars): Likewise.
1228 (skip_quoted): Likewise.
1229 * defs.h (skip_quoted): Remove duplicate declaration.
1230 * jv-exp.y: Include completer.h.
1231 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1232 * p-exp.y: Include completer.h.
1233
1234 2013-10-01 Keith Seitz <keiths@redhat.com>
1235
1236 * c-exp.y (parse_number): Make first argument const.
1237 Make a copy of the input to manipulate.
1238 (c_parse_escape): Make first argument const.
1239 Make local variable 'tokptr' const.
1240 (parse_string_or_char): Make first two arguments const.
1241 (macro_original_text): Make const.
1242 (lex_one_token): Make local variable 'tokstart' const.
1243 Likewise for local variables named 'p'.
1244 Cast away const for struct stoken (temporary).
1245 * c-lang.h (c_parse_escpae): Make first argument const.
1246 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1247 const.
1248 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1249 var_string case.
1250 * f-exp.y (parse_number): Make first argument const.
1251 (match_string_literal): Make local variable 'tokstart'
1252 const.
1253 (yylex): Make local variable 'p' const.
1254 Cast away const for struct stoken (temporary).
1255 * go-exp.y (parse_number): Make first argument const.
1256 (parse_string_or_char): Likewise.
1257 Make local variable 'tokstart' const.
1258 (lex_one_token): Likewise for numerous locals called 'p'.
1259 Cast away const for struct stoken (temporary).
1260 * jv-exp.y (parse_number): Make first argument const.
1261 Make local variables 'tokstart' and 'tokptr' const.
1262 Cast away const for call to skip_quoted (temporary).
1263 (yylex): Make local variable 'p' const.
1264 Cast away const for struct stoken (temporary).
1265 * m2-exp.y (parse_number): Make local variable 'p' const.
1266 (yylex): Likewise for 'tokstart'.
1267 Cast away const for struct stoken (temporary).
1268 Make local variable 'p' const.
1269 * macroexp.c (get_character_constant): Pass a const string
1270 to c_parse_escape.
1271 (get_string_literal): Likewise.
1272 (macro_expand_next): Make first argument const.
1273 Cast away const for init_shared_buffer.
1274 * macroexp.h (macro_expand_next): Make first argument const.
1275 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1276 Pass a const string to c_parse_escape.
1277 Make local variables 'p' and 'namestart' const.
1278 * parse.c (lexptr): Make const.
1279 (prev_lexptr): Likewise.
1280 (find_template_name_end): Return const.
1281 Make argument const, too.
1282 (parse_exp_in_context): Make first argument const.
1283 Remove the entire const_hack.
1284 (parse_exp_in_context_1): Make first argument const.
1285 * parser-defs.h (find_template_name_end): Return const.
1286 Make argument const, too.
1287 (lexptr): Make const.
1288 (prev_lexptr): Likewise.
1289 * utils.c (parse_escape): Make second argument const.
1290 * utils.h (parse_escape): Likewise.
1291
1292 2013-10-01 Keith Seitz <keiths@redhat.com>
1293
1294 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1295 is now const.
1296 (block_lookup): Make 'raw_name' and 'name' const.
1297 * ada-lex.l (processString): Update for struct stoken.ptr.
1298 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1299 (operator_stoken): Likewise.
1300 (lex_one_token): Remove temporary cast to char * for
1301 'yylval.sval.ptr'.
1302 * f-exp.y (yylex): Likewise.
1303 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1304 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1305 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1306 'yylval.sval.ptr'.
1307 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1308 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1309 * linespec.c (struct ls_parser): Make 'stream' const.
1310 (find_parameter_list_end): Make argument 'input' and local
1311 variable 'p' const.
1312 (linespec_lexer_lex_string): Make local variables 'start' and
1313 'p' const.
1314 Use skip_spaces_const instead of skip_spaces.
1315 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1316 const.
1317 (parse_linespec): Temporarily cast 'argptr' to const for
1318 'parser->lexer.stream'.
1319 * m2-exp.y (yylex): Remove temporary cast to char * for
1320 'yylval.sval.ptr'.
1321 * objc-lang.c (add_msglist): Make local variable 'p' const.
1322 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1323 (exp : STRING): Make 'sp' const.
1324 (parse_number): Make argument 'p' const.
1325 * parser-defs.h (struct stoken): Make 'ptr' const.
1326
1327 2013-10-01 Doug Evans <dje@google.com>
1328
1329 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1330
1331 2013-10-01 Yao Qi <yao@codesourcery.com>
1332
1333 * varobj.c (c_value_of_root): Remove declaration.
1334 (cplus_value_of_root, java_value_of_root): Likewise.
1335 (ada_value_of_root): Likewise.
1336 (struct language_specific) <value_of_root>: Remove.
1337 (languages): Update initialization.
1338 (check_scope): Move earlier.
1339 (c_value_of_root): Move earlier and rename to ...
1340 (value_of_root_1): ... this.
1341 (value_of_root): Caller update.
1342 (cplus_value_of_root, java_value_of_root): Remove.
1343 (ada_value_of_root): Remove.
1344
1345 2013-10-01 Yao Qi <yao@codesourcery.com>
1346
1347 * varobj.c (varobj_format_string): Remove "unknown".
1348 (languages): Remove the first element.
1349 * varobj.h (enum varobj_languages): Remove vlang_c.
1350
1351 2013-10-01 Yao Qi <yao@codesourcery.com>
1352
1353 * varobj.c (struct language_specific) <language>: Remove.
1354 (languages): Update the initialization.
1355
1356 2013-10-01 Yao Qi <yao@codesourcery.com>
1357
1358 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1359 "solib-target.h". Include "windows-tdep.h".
1360 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1361 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1362 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1363 windows-tdep.o to gdb_target_obs.
1364
1365 2013-10-01 Yao Qi <yao@codesourcery.com>
1366
1367 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1368 "solib-target.h".
1369 (amd64_windows_init_abi): Don't call set_solib_ops and
1370 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1371 windows_init_abi instead.
1372 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1373 "solib-target.h".
1374 (i386_cygwin_init_abi): Don't call set_solib_ops,
1375 set_gdbarch_has_dos_based_file_system and
1376 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1377 windows_init_abi instead.
1378 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1379 (windows_init_abi): New function.
1380 (windows_iterate_over_objfiles_in_search_order): Make it
1381 static.
1382 * windows-tdep.h (windows_init_abi): Declare.
1383 (windows_iterate_over_objfiles_in_search_order): Remove
1384 declaration.
1385
1386 2013-10-01 Jerome Guitton <guitton@adacore.com>
1387
1388 Checked in by Joel Brobecker <brobecker@adacore.com>
1389 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1390 incomplete dictionnary instead of None in case of missing
1391 environment variables.
1392 (elinos_init): in case of an incomplete environment, best
1393 effort to load system libraries instead of abort.
1394
1395 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1396
1397 * ada-lang.c (ada_has_this_exception_support): Ignore
1398 mst_solib_trampoline minimal symbols.
1399
1400 2013-09-30 Tristan Gingold <gingold@adacore.com>
1401
1402 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1403 hardware watchpoint.
1404 (i386_darwin_dr_set): Support 32 and 64 bit states.
1405 (i386_darwin_dr_get): Likewise.
1406 (i386_darwin_dr_set_control): Make static.
1407 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1408 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1409
1410 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1411
1412 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1413 Replace TIDGET with ptid_get_lwp.
1414 Replace GET_LWP with ptid_get_lwp.
1415 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1416 Replace BUILD_THREAD with ptid_build.
1417 Replace BUILD_LWP with ptid_build.
1418 Replace PIDGET with ptid_get_pid.
1419 Replace TIDGET with ptid_get_lwp.
1420 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1421 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1422 Replace TIDGET with ptid_get_lwp.
1423 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1424 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1425 Replace TIDGET with ptid_get_lwp.
1426 Replace GET_LWP with ptid_get_lwp.
1427 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1428 * auxv.c: Likewise.
1429 * breakpoint.c: Likewise.
1430 * common/ptid.c (ptid_is_pid): Condense check for
1431 null_ptid and minus_one_ptid.
1432 (ptid_lwp_p): New function.
1433 (ptid_tid_p): New function.
1434 * common/ptid.h: Update comments for accessors.
1435 (ptid_lwp_p): New prototype.
1436 (ptid_tid_p): New prototype.
1437 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1438 * gcore.c: Replace PIDGET with ptid_get_pid.
1439 * gdbthread.h: Likewise.
1440 * gnu-nat.c: Likewise.
1441 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1442 Replace TIDGET with ptid_get_lwp.
1443 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1444 * hppanbsd-nat.c: Likewise.
1445 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1446 Replace TIDGET with ptid_get_lwp.
1447 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1448 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1449 * infcmd.c: Likewise.
1450 * inferior.h: Likewise.
1451 * inflow.c: Likewise.
1452 * infrun.c: Likewise.
1453 * linux-fork.c: Likewise.
1454 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1455 Replace GET_PID with ptid_get_pid.
1456 Replace is_lwp with ptid_lwp_p.
1457 Replace GET_LWP with ptid_get_lwp.
1458 Replace BUILD_LWP with ptid_build.
1459
1460 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1461
1462 * common/linux-btrace.c: Move sys/syscall.h out of the
1463 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1464 Also check for SYS_perf_event_open before attempting to buid.
1465
1466 2013-09-27 Doug Evans <dje@google.com>
1467
1468 * dwarf2read.c (dwarf2_section_info): Add comment.
1469 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1470 All uses updated.
1471 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1472 (dwarf2_read_section): Delete unused local "header". Add section
1473 name to error message.
1474 (create_dwo_in_dwp): Tweak comment.
1475 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1476
1477 * dwarf2read.c (die_reader_specs): Tweak comment.
1478 (get_section_bfd_owner, get_section_bfd_section): New functions.
1479 (get_section_name, get_section_file_name): New functions.
1480 (get_section_id, get_section_flags): New functions.
1481 (*): Use new functions to access section fields.
1482
1483 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1484 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1485 arg "htab". All callers updated.
1486 (create_debug_types_hash_table): Remove redundant copy of
1487 abbrev_section.
1488 (create_dwo_in_dwp): Tweak comments.
1489 (read_str_index): Tweak comment. Record dwarf form name in static
1490 local.
1491
1492 2013-09-27 Pedro Alves <palves@redhat.com>
1493
1494 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1495 (remote_filename_p): Add comment.
1496 * remote.c (remote_filename_p): Adjust to use
1497 REMOTE_SYSROOT_PREFIX.
1498 * solib.c (solib_find): When deciding whether we need to add a
1499 directory separator, check whether the sysroot is "remote:"
1500 instead of checking whether the patch has a drive spec. Add
1501 comments.
1502
1503 2013-09-27 Pedro Alves <palves@redhat.com>
1504
1505 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1506 Delete fields.
1507 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1508 directly.
1509
1510 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1511
1512 Fix set debug frame output.
1513 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1514 SENTINEL_FRAME entry lower to match enum frame_type order.
1515
1516 2013-09-26 Pierre Muller <muller@sourceware.org>
1517
1518 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1519 AMD64_R15_REGNUM when a register index is expected.
1520 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1521 Substitute in array.
1522 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1523 (amd64_push_arguments): Substitute in integer_regnum array.
1524
1525 2013-09-25 Doug Evans <dje@google.com>
1526
1527 * objfiles.c (allocate_objfile): Move comment to better place.
1528
1529 New option "set debug symfile on".
1530 * NEWS: Mention "set debug symfile".
1531 * Makefile.in (SFILES): Add symfile-debug.c.
1532 (COMMON_OBS): Add symfile-debug.o.
1533 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1534 objfile's symbol functions.
1535 * objfiles.h (objfile_set_sym_fns): Declare.
1536 * symfile-debug.c: New file.
1537 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1538 objfile's symbol functions.
1539 (reread_symbols): Ditto.
1540
1541 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1542 All uses updated.
1543 (add_symtab_fns): Update prototype.
1544 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1545 (registered_sym_fns): ... this.
1546 (symtab_fns): Update.
1547 (add_symtab_fns): New arg "flavour". All callers updated.
1548 (find_sym_fns): Rewrite to use new sym_fns registry.
1549
1550 * symfile.h (struct sym_fns): Add "objfile" argument to
1551 sym_read_linetable. All uses updated.
1552
1553 * symtab.c (domain_name, search_domain_name): New functions.
1554 * symtab.h (domain_name, search_domain_name): Declare.
1555
1556 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1557 map_matching_symbols so objfile is first. All uses updated.
1558 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1559 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1560
1561 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1562
1563 PR shlibs/8882
1564 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1565 link map entries.
1566
1567 2013-09-24 Doug Evans <dje@google.com>
1568
1569 * objfiles.c (free_objfile): Move comment.
1570
1571 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1572
1573 * ada-exp.y (string_to_operator): Delete.
1574 (dummy_string_to_ada_operator): Delete.
1575
1576 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1577
1578 Revert:
1579 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1580 amd64-tdep.c.
1581 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1582 call_dummy_integer_regs, and classify.
1583 * amd64-tdep.h (amd64_classify): Add declaration.
1584 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1585 (amd64_reg_class): Delete, moved to i386-tdep.h.
1586 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1587 Replace call to amd64_classify by call to tdep->classify.
1588 (amd64_push_arguments): Get the list of registers to use for
1589 passing integer parameters from the gdbarch tdep structure,
1590 rather than using a hardcoded one. Replace calls to amd64_classify
1591 by calls to tdep->classify.
1592 (amd64_push_dummy_call): Get the register number used for
1593 the "hidden" argument from tdep->call_dummy_integer_regs.
1594 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1595 and tdep->call_dummy_integer_regs. Set tdep->classify.
1596
1597 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1598
1599 Revert:
1600 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1601 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1602 where tdep->memory_args_by_pointer is non-zero.
1603
1604 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1605
1606 Revert:
1607 * i386-tdep.h (struct gdbarch_tdep): Add new field
1608 integer_param_regs_saved_in_caller_frame.
1609 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1610 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1611
1612 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1613
1614 * amd64-windows-tdep.c: #include "value.h"
1615 (amd64_windows_classify): Delete.
1616 (amd64_windows_passed_by_integer_register)
1617 (amd64_windows_passed_by_xmm_register)
1618 (amd64_windows_passed_by_pointer)
1619 (amd64_windows_adjust_args_passed_by_pointer)
1620 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1621 (amd64_windows_push_dummy_call): New functions.
1622 (amd64_windows_init_abi): Remove setting of
1623 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1624 tdep->classify, tdep->memory_args_by_pointer and
1625 tdep->integer_param_regs_saved_in_caller_frame.
1626 Add call to set_gdbarch_push_dummy_call.
1627
1628 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1629
1630 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1631 objfile->original_name.
1632
1633 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1634
1635 Pass down original filename for objfile.
1636 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1637 * elfread.c (elf_symfile_read): Likewise.
1638 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1639 longer set ORIGINAL_NAME.
1640 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1641 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1642 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1643 symbol_file_add_from_bfd call.
1644 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1645 (macho_check_dsym): Add parameter filenamep. Change function comment.
1646 Set *filenamep.
1647 (macho_symfile_read): New variable dsym_filename. Update
1648 macho_check_dsym call. Use it for symbol_file_add_separate.
1649 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1650 it. Use it for objfile->original_name.
1651 (objfile_name): Return OBFD's filename, if available.
1652 * objfiles.h (allocate_objfile): Add new parameter name.
1653 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1654 * symfile-mem.c (symbol_file_add_from_memory): Update
1655 symbol_file_add_from_bfd call.
1656 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1657 comment for it.
1658 (symbol_file_add_with_addrs): New parameter name, add function comment
1659 for it. Remove variable name. Update allocate_objfile call.
1660 (symbol_file_add_separate): New parameter name, add function comment
1661 for it. Update symbol_file_add_with_addrs call.
1662 (symbol_file_add_from_bfd): New parameter name. Update
1663 symbol_file_add_with_addrs call.
1664 (symbol_file_add): Update symbol_file_add_from_bfd call.
1665 (reread_symbols): New variable original_name. Save
1666 objfile->original_name by it.
1667 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1668 second parameter.
1669
1670 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1671
1672 Code cleanup: Add objfile_name accessor function.
1673 * ada-lang.c (is_known_support_routine): Use objfile_name.
1674 * auto-load.c (source_gdb_script_for_objfile)
1675 (auto_load_objfile_script): Likewise.
1676 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1677 * dbxread.c (dbx_symfile_read): Likewise.
1678 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1679 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1680 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1681 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1682 (lookup_dwp_signatured_type, lookup_dwo_unit)
1683 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1684 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1685 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1686 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1687 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1688 (read_subrange_type, load_partial_dies, read_partial_die)
1689 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1690 (die_containing_type, build_error_marker_type, lookup_die_type)
1691 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1692 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1693 (get_DW_AT_signature_type, write_psymtabs_to_index)
1694 (save_gdb_index_command): Likewise.
1695 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1696 Likewise.
1697 * expprint.c (dump_subexp_body_standard): Likewise.
1698 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1699 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1700 original_name.
1701 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1702 obj_name, use objfile_name for it, use the variable.
1703 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1704 Use objfile_name.
1705 * machoread.c (macho_symtab_read, macho_check_dsym)
1706 (macho_symfile_relocate): Likewise.
1707 * maint.c (maintenance_translate_address): Likewise.
1708 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1709 * minsyms.c (install_minimal_symbols): Likewise.
1710 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1711 original_name.
1712 (filter_overlapping_sections): Use objfile_name.
1713 (objfile_name): New function.
1714 * objfiles.h (struct objfile): Rename field name to original_name.
1715 (objfile_name): New prototype.
1716 * printcmd.c (sym_info, address_info): Use objfile_name.
1717 * probe.c (parse_probes, collect_probes, compare_probes)
1718 (info_probes_for_ops): Likewise.
1719 * progspace.c (clone_program_space): Likewise.
1720 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1721 (maintenance_info_psymtabs): Likewise.
1722 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1723 (source_section_scripts): Likewise.
1724 * python/py-objfile.c (objfpy_get_filename): Likewise.
1725 * python/py-progspace.c (pspy_get_filename): Likewise.
1726 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1727 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1728 * solib.c (solib_read_symbols): Likewise.
1729 * stabsread.c (scan_file_globals): Likewise.
1730 * stap-probe.c (handle_stap_probe): Likewise.
1731 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1732 (find_separate_debug_file_by_debuglink): Likewise.
1733 (reread_symbols): Likewise. Use the objfile field name renamed to
1734 original_name.
1735 (allocate_symtab): Use objfile_name.
1736 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1737 (dump_objfile, dump_msymbols, dump_symtab_1)
1738 (maintenance_print_msymbols, maintenance_print_objfiles)
1739 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1740 * target.c (target_translate_tls_address, target_info): Likewise.
1741 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1742 objfile_name.
1743
1744 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1745
1746 Code cleanup.
1747 * probe.c (parse_probes): Rename variable objfile_name to
1748 objfile_namestr.
1749
1750 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1751
1752 Remove solib-sunos.c.
1753 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1754 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1755 * objfiles.c (rt_common_objfile): Remove.
1756 (free_objfile): Remove rt_common_objfile comparison.
1757 * objfiles.h (rt_common_objfile): Remove.
1758 * solib-sunos.c: Remove.
1759 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1760
1761 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1762
1763 Remove a.out NetBSD and OpenBSD hosts.
1764 * NEWS (Removed native configurations): New.
1765 * config/arm/nbsdaout.mh: Remove.
1766 * config/i386/nbsdaout.mh: Remove.
1767 * config/i386/obsdaout.mh: Remove.
1768 * config/m68k/nbsdaout.mh: Remove.
1769 * config/sparc/nbsdaout.mh: Remove.
1770 * config/vax/nbsdaout.mh: Remove.
1771 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1772 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1773 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1774 error.
1775 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1776 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1777 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1778
1779 2013-09-23 Tom Tromey <tromey@redhat.com>
1780
1781 * linespec.c (struct minsym_and_objfile): Remove.
1782 (minsym_and_objfile_d): Remove.
1783 (struct linespec, struct collect_info, linespec_parse_basic)
1784 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1785 (compare_msymbols, find_method, find_function_symbols)
1786 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1787 (add_minsym, search_minsyms_for_name): Update.
1788
1789 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1790
1791 * regcache.c: Add include of valprint.h.
1792 (dump_endian_bytes): Delete.
1793 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1794
1795 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1796
1797 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1798
1799 2013-09-19 Pedro Alves <palves@redhat.com>
1800
1801 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1802 breakpoints.
1803
1804 2013-09-19 Pedro Alves <palves@redhat.com>
1805 Thomas Schwinge <thomas@codesourcery.com>
1806 Yue Lu <hacklu.newborn@gmail.com>
1807
1808 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1809 Take a gdb_byte pointer instead of a char pointer.
1810
1811 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1812 gnu_xfer_partial helper.
1813 (gnu_xfer_partial): New function.
1814 (gnu_target): Don't install a deprecated_xfer_memory hook.
1815 Install a to_xfer_partial hook.
1816
1817 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1818
1819 Constification.
1820 * main.c (captured_main): Replace catch_command_errors by
1821 catch_command_errors_const. Twice.
1822 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1823 (symbol_file_add): Make name parameter const.
1824 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1825 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1826 variable name. Change their usage accordingly.
1827 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1828 const.
1829 (symbol_file_add_main): Make args parameter const.
1830
1831 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1832 Ulrich Weigand <uweigand@de.ibm.com>
1833
1834 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1835 of c_value member.
1836 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1837
1838 2013-09-18 Pedro Alves <palves@redhat.com>
1839 Yue Lu <hacklu.newborn@gmail.com>
1840
1841 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1842 (gnu_create_inferior)
1843 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1844 (set_sig_thread_cmd): Use the lwpid field of ptids to
1845 store/extract thread ids instead of the tid field.
1846 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1847
1848 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1849
1850 * infcmd.c (default_print_one_register_info): Add detection of
1851 optimized out values.
1852 (default_print_registers_info): Switch to using
1853 get_frame_register_value.
1854
1855 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1856
1857 * infrun.c (handle_inferior_event): Check if we know the
1858 function start address before setting a resume breakpoint.
1859
1860 2013-09-18 Pedro Alves <palves@redhat.com>
1861
1862 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1863 minus_one_ptid instead of looking at the ptid's tid field and
1864 comparing that to -1.
1865
1866 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1867
1868 * main.h (get_gdb_program_name): Remove extra whitespace.
1869
1870 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1871
1872 * main.h (get_gdb_program_name): Add declaration.
1873 * main.c (get_gdb_program_name): Add definition.
1874
1875 2013-09-17 Doug Evans <dje@google.com>
1876
1877 * dwarf2read.c: Move definitions of complaint functions to after
1878 forward declarations of local functions.
1879
1880 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1881 Pedro Alves <palves@redhat.com>
1882
1883 PR gdb/11568
1884 * breakpoint.c (remove_threaded_breakpoints): New function.
1885 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1886 as thread_exit observer.
1887
1888 2013-09-17 Pedro Alves <palves@redhat.com>
1889
1890 PR gdb/15911
1891 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1892 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1893 * corelow.c (core_open):
1894 * frame.h (print_stack_frame, print_frame_info): New
1895 'set_current_sal' parameter.
1896 * infcmd.c (finish_command, kill_command): Adjust call to
1897 print_stack_frame.
1898 * inferior.c (inferior_command): Likewise.
1899 * infrun.c (normal_stop): Likewise.
1900 * linux-fork.c (linux_fork_context): Likewise.
1901 * record-full.c (record_full_goto_entry, record_full_restore):
1902 Likewise.
1903 * remote-mips.c (common_open): Likewise.
1904 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1905 Use it.
1906 (print_frame_info): New 'set_current_sal' parameter. Set the last
1907 displayed sal depending on the new paremeter instead of looking at
1908 print_what.
1909 (backtrace_command_1, select_and_print_frame, frame_command)
1910 (current_frame_command, up_command, down_command): Adjust call to
1911 print_stack_frame.
1912 * thread.c (print_thread_info, restore_selected_frame)
1913 (do_captured_thread_select): Adjust call to print_stack_frame.
1914 * tracepoint.c (tfind_1): Likewise.
1915 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1916 (mi_cmd_stack_info_frame): Likewise.
1917 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1918 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1919
1920 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1921
1922 * value.c (isvoid_internal_fn): Replace "parameter" with
1923 "argument".
1924
1925 2013-09-16 Stan Shebs <stan@codesourcery.com>
1926
1927 * README: Update references to writing code for GDB.
1928 * configure.ac (build_warnings): Remove obsolete comment.
1929 * configure: Regenerate.
1930 * gdbarch.sh: Remove references to gdbint.texinfo.
1931 * gdbarch.h: Regenerate.
1932 * gdbtypes.c (objfile_type): Remove comments referencing internals
1933 manual and D10V.
1934
1935 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1936
1937 * NEWS: Mention new convenience function $_isvoid.
1938 * value.c (isvoid_internal_fn): New function.
1939 (_initialize_values): Add new convenience function $_isvoid.
1940
1941 2013-09-16 Pierre Muller <muller@sourceware.org>
1942
1943 * arm-linux-tdep.c: Add "elf/common.h" header.
1944 Remove AT_HWCAP macro definintion as it is provided in
1945 added include file.
1946 * s390-tdep.c: Remove system header <elf.h>
1947 Add "elf/common.h" header for AT_HWCAP definition.
1948 (s390_core_read_description): Use correct CORE_ADDR
1949 for hwcap local variable used as third parameter
1950 of function target_auxv_search.
1951
1952 2013-09-14 Pierre Muller <muller@sourceware.org>
1953 Tom Tromey <tromey@redhat.com>
1954 Pedro Alves <palves@redhat.com>
1955
1956 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1957 mode if operating system doesn't know O_CLOEXEC.
1958
1959 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1960
1961 Code cleanup.
1962 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1963 inner block.
1964
1965 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1966
1967 * NEWS: Mention TDB support.
1968 * features/s390-tdb.xml: New file.
1969 * features/s390-te-linux64.xml: New file.
1970 * features/s390x-te-linux64.xml: New file.
1971 * features/Makefile (WHICH): Add new tdescs above.
1972 (s390-te-linux64-expedite): Set.
1973 (s390x-te-linux64-expedite): Set.
1974 * features/s390-te-linux64.c: New file (generated).
1975 * features/s390x-te-linux64.c: New file (generated).
1976 * regformats/s390-te-linux64.dat: New file (generated).
1977 * regformats/s390x-te-linux64.dat: New file (generated).
1978 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1979 (HWCAP_S390_TE): Likewise.
1980 (S390_TDB_DWORD0_REGNUM): Likewise.
1981 (S390_TDB_DWORD0_REGNUM): Likewise.
1982 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1983 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1984 (S390_TDB_ATIA_REGNUM): Likewise.
1985 (S390_TDB_R0_REGNUM): Likewise.
1986 (S390_TDB_R1_REGNUM): Likewise.
1987 (S390_TDB_R2_REGNUM): Likewise.
1988 (S390_TDB_R3_REGNUM): Likewise.
1989 (S390_TDB_R4_REGNUM): Likewise.
1990 (S390_TDB_R5_REGNUM): Likewise.
1991 (S390_TDB_R6_REGNUM): Likewise.
1992 (S390_TDB_R7_REGNUM): Likewise.
1993 (S390_TDB_R8_REGNUM): Likewise.
1994 (S390_TDB_R9_REGNUM): Likewise.
1995 (S390_TDB_R10_REGNUM): Likewise.
1996 (S390_TDB_R11_REGNUM): Likewise.
1997 (S390_TDB_R12_REGNUM): Likewise.
1998 (S390_TDB_R13_REGNUM): Likewise.
1999 (S390_TDB_R14_REGNUM): Likewise.
2000 (S390_TDB_R15_REGNUM): Likewise.
2001 (S390_NUM_REGS): Increase.
2002 (S390_IS_TDBREGSET_REGNUM): New macro.
2003 (s390_regmap_tdb): Declare.
2004 (s390_sizeof_tdbregset): Define.
2005 (tdesc_s390_te_linux64): Declare.
2006 (tdesc_s390x_te_linux64): Likewise.
2007 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2008 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2009 (s390_regmap_tdb): New regmap.
2010 (s390_supply_tdb_regset): New function.
2011 (s390_tdb_regset): New regset.
2012 (s390_linux64v2_regset_sections): Add TDB regset to list.
2013 (s390x_linux64v2_regset_sections): Likewise.
2014 (s390_regset_from_core_section): Recognize TDB core note section.
2015 (s390_core_read_description): If HWCAP indicates TE support,
2016 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2017 (s390_gdbarch_init): Handle TDB regset.
2018 (_initialize_s390_tdep): Initialize new tdescs.
2019 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2020 (have_regset_tdb): New variable.
2021 (s390_native_supply): Support register invalidation.
2022 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2023 (check_regset): Treat ENODATA as "regset exists".
2024 (s390_linux_fetch_inferior_registers): Add TDB.
2025 (s390_read_description): Check for TDB existence and select
2026 appropriate tdesc.
2027 * gdbserver/Makefile.in (clean): Add removal of new makefile
2028 targets.
2029 (s390-te-linux64.c): New makefile target.
2030 (s390x-te-linux64.c): Likewise.
2031 * gdbserver/configure.srv (srv_regobj): Append new objects
2032 s390-te-linux64.o and s390x-te-linux64.o.
2033 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2034 s390x-te-linux64.xml, and s390-tdb.xml.
2035 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2036 declaration.
2037 (tdesc_s390_te_linux64): Likewise.
2038 (init_registers_s390x_te_linux64): Likewise.
2039 (tdesc_s390x_te_linux64): Likewise.
2040 (s390_check_regset): Treat ENODATA as "regset exists".
2041 (s390_arch_setup): Add TDB regset support.
2042 (initialize_low_arch): Initialize registers for new tdescs.
2043
2044 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2045
2046 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2047 (S390_IS_FPREGSET_REGNUM): New macro.
2048 * s390-tdep.c (s390_dwarf_regmap): Make const.
2049 (regnum_is_gpr_full): New function for replacing repeated code.
2050 (s390_pseudo_register_name): Use it.
2051 (s390_pseudo_register_type): Likewise.
2052 (s390_pseudo_register_read): Likewise.
2053 (s390_pseudo_register_write): Likewise.
2054 (s390_unwind_pseudo_register): Likewise.
2055 (s390_regmap_gregset): New format for regmap.
2056 (s390x_regmap_gregset): Likewise.
2057 (s390_regmap_fpregset): Likewise.
2058 (s390_regmap_upper): Likewise.
2059 (s390_regmap_last_break): Likewise.
2060 (s390_regmap_system_call): Likewise.
2061 (s390_supply_regset): Adjust to new regmap format.
2062 (s390_collect_regset): Likewise.
2063 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2064 (s390_native_collect): Likewise.
2065 (supply_gregset): Likewise.
2066 (fill_gregset): Likewise.
2067 (supply_fpregset): Likewise.
2068 (fill_fpregset): Likewise.
2069 (fetch_regset): Likewise.
2070 (store_regset): Likewise.
2071 (s390_linux_fetch_inferior_registers): Likewise.
2072 (s390_linux_fetch_inferior_registers): Likewise.
2073
2074 2013-09-12 Andrew Pinski <apinski@cavium.com>
2075
2076 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2077
2078 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2079
2080 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2081
2082 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2083
2084 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2085
2086 2013-09-06 Pedro Alves <palves@redhat.com>
2087
2088 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2089 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2090 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2091 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2092 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2093 gdb_stdlog.
2094
2095 2013-09-06 Pedro Alves <palves@redhat.com>
2096
2097 * remote-sim.c (dump_mem): Constify buf parameter.
2098 gdbsim_xfer_inferior_memory): Rename to ...
2099 (gdbsim_xfer_memory): ... this. Adjust interface as
2100 target_xfer_partial helper.
2101 (gdbsim_xfer_partial): New function.
2102 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2103 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2104
2105 2013-09-06 Pedro Alves <palves@redhat.com>
2106
2107 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2108 host_address_to_string, and send debug output to gdb_stdlog.
2109
2110 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2111
2112 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2113 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2114 gdb_target_obs for cris target.
2115 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2116 (cris_gdbarch_init): Move calls to
2117 set_gdbarch_fetch_tls_load_module_address and
2118 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2119 Add call to gdbarch_init_osabi.
2120 * cris-linux-tdep.c: New file.
2121 * cris-tdep.h: New file.
2122
2123 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2124
2125 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2126 to deprecated_init_ui_hook.
2127
2128 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2129
2130 * cli/cli-interp.c (_initialize_cli_interp): Add a
2131 command_loop_proc to interp_procs.
2132 * event-top.c (cli_command_loop): Change signature to match
2133 interp_command_loop_ftype.
2134 * event-top.h (cli_command_loop): Same.
2135 * interps.c (interp_new): Require every interpreter to have a
2136 command_loop_proc.
2137 (current_interp_command_loop): Just call the command_loop_proc on
2138 the current interpreter.
2139 * tui/tui-interp.c (_initialize_tui_interp): Add a
2140 command_loop_proc to interp_procs.
2141
2142 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2143
2144 * cris-tdep.c (cris_gdbarch_init): Add call to
2145 get_gdbarch_fetch_tls_load_module_address.
2146
2147 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2148
2149 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2150 (cris_elf_gregset_t): Rename from elf_gregset_t.
2151 (crisv32_elf_gregset_t): Adjust.
2152 (cris_supply_gregset, fetch_core_registers): Adjust.
2153
2154 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2155
2156 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2157
2158 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
2159
2160 * defs.h (deprecated_command_loop_hook): Remove, including
2161 references in comments.
2162 * interps.c (current_interp_command_loop): No longer use
2163 deprecated_command_loop_hook.
2164 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2165 setup.
2166 * top.c (deprecated_command_loop_hook): Remove.
2167
2168 2013-09-05 Pedro Alves <palves@redhat.com>
2169
2170 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2171 local is now int instead of ULONGEST. Print it with %d
2172 instead of paddress.
2173
2174 2013-09-05 Tristan Gingold <gingold@adacore.com>
2175
2176 * MAINTAINERS: Remove avr maintainership.
2177
2178 2013-09-05 Pedro Alves <palves@redhat.com>
2179
2180 * findvar.c (value_of_register): Rework in terms of
2181 value_of_register_lazy.
2182
2183 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2184
2185 * symfile.c (add_symbol_file_command): Remove trailing
2186 whitespaces and blank line after comment.
2187
2188 2013-09-05 Pedro Alves <palves@redhat.com>
2189
2190 * tui/tui-regs.c (tui_register_format): Don't look at the
2191 register's name here. Return string representing register
2192 value instead of storing it in the data element.
2193 (tui_get_register): Compare register string representations
2194 instead of register value states and contents.
2195
2196 2013-09-05 Pedro Alves <palves@redhat.com>
2197
2198 PR tui/15933
2199 * tui/tui-regs.c (tui_show_registers): Show registers of the
2200 selected frame, not the current frame.
2201
2202 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2203
2204 * MAINTAINERS (Write After Approval): Add myself to the list.
2205
2206 2013-09-04 Doug Evans <dje@google.com>
2207
2208 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2209 (queue_and_load_dwo_tu): New function.
2210 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2211 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2212 Make dependent_cu optional.
2213 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2214 and an older .gdb_index is in use, queue and load all its TUs too.
2215
2216 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2217
2218 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2219 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2220 variable search_flags.
2221 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2222 (OPF_RETURN_REALPATH): ... here.
2223 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2224 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2225 call. Twice.
2226 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2227 openp call.
2228 * solib.c (solib_find): Likewise. Four times.
2229 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2230 in the function comment and for the realpath_fptr variable.
2231 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2232 (find_and_open_source): Likewise. Twice.
2233 * symfile.c (symfile_bfd_open): Likewise, also twice.
2234
2235 2013-09-04 Doug Evans <dje@google.com>
2236
2237 * progspace.c (save_current_space_and_thread): Remove unnecessary
2238 call to save_current_inferior.
2239
2240 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2241
2242 * sh64-tdep.c (sh64_do_register): Return after printing message
2243 about unavailable register contents.
2244
2245 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2246 Pedro Alves <palves@redhat.com>
2247
2248 * symfile.c (add_symbol_file_command): Error out on unknown
2249 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2250 options and collapse into single conditional branch.
2251
2252 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2253
2254 * inf-child.c (inf_child_follow_fork): New parameter
2255 detach_fork.
2256 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2257 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2258 * inferior.h (detach_fork): Remove.
2259 * infrun.c (detach_fork): Adjust comment and make it
2260 static.
2261 (follow_fork): Pass detach_fork parameter to
2262 target_follow_fork.
2263 * linux-nat.c (linux_child_follow_fork): New parameter
2264 detach_fork.
2265 * target.c (target_follow_fork): New parameter detach_fork.
2266 Pass detach_fork as parameter and print its value.
2267 * target.h (struct target_ops) <to_follow_fork>: New int
2268 parameter.
2269 (target_follow_fork): New parameter detach_fork.
2270
2271 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2272
2273 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2274 Replace sec->bfd by sec->the_bfd_section->owner.
2275
2276 2013-09-03 Yao Qi <yao@codesourcery.com>
2277
2278 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2279 from linux_has_shared_address_space.
2280 (linux_has_shared_address_space): Call linux_is_uclinux.
2281 * linux-tdep.h (linux_is_uclinux): Declare.
2282 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2283 linux_is_uclinux.
2284
2285 2013-09-03 Yao Qi <yao@codesourcery.com>
2286
2287 * config/djgpp/fnchange.lst: Remove entry of
2288 i386-interix-nat.c and i386-interix-tdep.c.
2289 * configure.ac: Remove '*-*-interix*'.
2290 * configure: Re-generated.
2291 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2292 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2293 obsolete comments.
2294 * osabi.c (gdb_osabi_names): Remove "Interix".
2295
2296 2013-09-03 Yao Qi <yao@codesourcery.com>
2297
2298 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2299
2300 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2301
2302 * record.h (record_print_flag) <record_print_src_line,
2303 record_print_insn_range>: Rename into ...
2304 (record_print_flag) <record_print_src_line,
2305 record_print_insn_range>: ... this. Update all users.
2306
2307 2013-09-02 Pierre Muller <muller@sourceware.org>
2308
2309 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2310 error code.
2311
2312 2013-09-02 Pierre Muller <muller@sourceware.org>
2313
2314 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2315 by use of plongest function.
2316
2317 2013-09-02 Tristan Gingold <gingold@adacore.com>
2318
2319 * NEWS: Add entry mentioning support for native Windows x64
2320 SEH data.
2321
2322 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2323 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2324 (struct amd64_windows_frame_cache): New struct.
2325 (amd64_windows_w2gdb_regnum): New global.
2326 (pc_in_range, amd64_windows_frame_decode_epilogue)
2327 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2328 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2329 (amd64_windows_frame_this_id): New functions.
2330 (amd64_windows_frame_unwind): New static global.
2331 (amd64_windows_skip_prologue): New function.
2332 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2333 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2334 with amd64_windows_skip_prologue.
2335
2336 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2337
2338 GDB 7.6.1 released.
2339
2340 2013-08-30 Pedro Alves <palves@redhat.com>
2341
2342 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2343 SRC_AND_LOC.
2344
2345 2013-08-30 Pedro Alves <palves@redhat.com>
2346
2347 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2348 warning text.
2349
2350 2013-08-30 Pedro Alves <palves@redhat.com>
2351
2352 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2353 Adjust arguments to print_stack_frame.
2354
2355 2013-08-30 Pedro Alves <palves@redhat.com>
2356
2357 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2358
2359 2013-08-30 Pedro Alves <palves@redhat.com>
2360
2361 * frame.h (show_and_print_stack_frame): Delete declaration.
2362
2363 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2364
2365 PR python/15461
2366 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2367 (archpy_name): Check for valid architecture.
2368 (archpy_disassemble): Ditto.
2369
2370 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2371
2372 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2373 instead of "long long" in call to ptrace64.
2374
2375 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2376
2377 * mi/mi-interp.c (mi_command_loop): Change signature to match
2378 interp_command_loop_ftype.
2379 (mi1_command_loop): Remove.
2380 (mi2_command_loop): Remove.
2381 (mi3_command_loop): Remove.
2382 (mi_interpreter_resume): Remove setting of
2383 deprecated_command_loop_hook.
2384 (_initialize_mi_interp): Set mi_command_loop as the command loop
2385 callback.
2386
2387 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2388
2389 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2390 value_type.
2391
2392 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2393
2394 * value.c (allocate_value_contents): Make static.
2395 * value.h (allocate_value_contents): Remove prototype.
2396
2397 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2398
2399 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2400 of assembling value via allocate_value_lazy and attribute setter.
2401 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2402 assembling value via allocate_value_lazy and attribute setter.
2403 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2404 assembling value via allocate_value_lazy and attribute setter.
2405
2406 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2407
2408 * value.c (value_from_contents_and_address): Replace allocate_value and
2409 memcpy with value_from_contents.
2410
2411 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2412
2413 * python/py-framefilter.c (py_print_frame): Remove usage of
2414 PyString_AsString. Use python_string_to_host_string instead.
2415 Refactor function to work with a string as a new allocation
2416 instead of a pointer.
2417 (py_print_frame): Ditto.
2418 * python/lib/gdb/frames.py (return_list): Cain iterators together
2419 instead of adding them as a list.
2420 (_sort_list): Call return_list, and remove duplicate code.
2421 (execute_frame_filters): Convert iterator to a list with list().
2422 * python/lib/gdb/command/frame_filters.py
2423 (SetFrameFilterPriority._set_filter_priority): Convert priority
2424 attribute to an integer.
2425 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2426 wrapper function __next__.
2427 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2428 define as "str".
2429
2430 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2431
2432 PR python/15752
2433 * python/py-framefilter.c (apply_frame_filter): Check
2434 gdb_python_initialized. Exit if the Python frame-filter code
2435 cannot be initialized.
2436
2437 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2438
2439 PR cli/15842
2440 * top.c (print_gdb_version): Remove erroneous newline after help
2441 text.
2442
2443 2013-08-29 Yao Qi <yao@codesourcery.com>
2444
2445 * varobj.c (install_dynamic_child): Remove trailing space.
2446 Add one blank line after variable declaration.
2447
2448 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2449
2450 PR gdb/15415
2451 * corefile.c (get_exec_file): Use exec_filename.
2452 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2453 * exec.c (exec_close): Free EXEC_FILENAME.
2454 (exec_file_attach): New variable canonical_pathname. Use
2455 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2456 EXEC_FILENAME.
2457 * exec.h (exec_filename): New.
2458 * inferior.c (print_inferior, inferior_command): Use
2459 PSPACE_EXEC_FILENAME.
2460 * mi/mi-main.c (print_one_inferior): Likewise.
2461 * progspace.c (clone_program_space, print_program_space): Likewise.
2462 * progspace.h (struct program_space): New field pspace_exec_filename.
2463 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2464 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2465
2466 2013-08-28 Will Newton <will.newton@linaro.org>
2467
2468 * common/linux-ptrace.c: Include stdint.h unconditionally.
2469
2470 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2471
2472 Code cleanup.
2473 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2474
2475 2013-08-28 Yao Qi <yao@codesourcery.com>
2476 Pedro Alves <palves@redhat.com>
2477
2478 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2479 instead of stdio_fileopen.
2480 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2481 .Call stderr_fileopen instead of stdio_fileopen.
2482 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2483 [__MINGW32__] (stderr_file_fputs): New function.
2484 (stderr_fileopen): New function.
2485 * ui-file.h (stderr_fileopen): Declare.
2486
2487 2013-08-27 Doug Evans <dje@google.com>
2488
2489 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2490 (struct dwarf2_per_cu_data): Ditto.
2491 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2492 (process_imported_unit_die): Ditto.
2493 (follow_die_sig_1): Simplify assert.
2494
2495 2013-08-27 Pedro Alves <palves@redhat.com>
2496
2497 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2498 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2499 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2500 windows_xfer_memory directly.
2501 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2502
2503 2013-08-27 Pedro Alves <palves@redhat.com>
2504
2505 * darwin-nat.c (darwin_xfer_memory): Delete.
2506 (_initialize_darwin_inferior): Don't install a
2507 deprecated_xfer_memory method.
2508
2509 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2510 Yao Qi <yao@codesourcery.com>
2511
2512 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2513 (parse_no_frames_option): Remove.
2514 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2515 (mi_cmd_stack_list_args): Adjust.
2516 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2517 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2518 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2519 Caller update.
2520 (list_args_or_locals): New parameter 'skip_unavailable'.
2521 Handle it.
2522 * valprint.c (scalar_type_p): Rename to ...
2523 (val_print_scalar_type_p): ... this. Make extern.
2524 (val_print, value_check_printable): Adjust.
2525 * valprint.h (val_print_scalar_type_p): Declare.
2526 * value.c (value_entirely_unavailable): New function.
2527 * value.h (value_entirely_unavailable): Declare.
2528
2529 * NEWS: Mention the new option "--skip-unavailable" to MI
2530 commands '-stack-list-locals', '-stack-list-arguments' and
2531 '-stack-list-variables'.
2532
2533 2013-08-27 Yao Qi <yao@codesourcery.com>
2534
2535 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2536 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2537 options.
2538 * mi/mi-getopt.c (mi_getopt): Remove.
2539 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2540 'error_on_unknown'.
2541 (mi_getopt): Call mi_getopt_1.
2542 (mi_getopt_silent): New.
2543 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2544
2545 2013-08-26 Doug Evans <dje@google.com>
2546
2547 PR symtab/15885
2548 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2549 .gdb_index is in use.
2550 * symfile.c (reread_symbols): Reset objfile->sf.
2551
2552 * NEWS: Document "mt print objfiles" now takes optional regexp.
2553 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2554 regexp of objfiles to print.
2555 (_initialize_symmisc): Update doc string for "mt print objfiles".
2556
2557 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2558 missing debug info checks.
2559
2560 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2561 Ulrich Weigand <uweigand@de.ibm.com>
2562
2563 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2564 line tables generated by XLC compiled binaries.
2565
2566 2013-08-23 Doug Evans <dje@google.com>
2567
2568 * symmisc.c (dump_symtab): Delete prototype.
2569 (dump_msymbols, dump_objfile): Ditto.
2570 (maintenance_info_symtabs): Mark as dont_repeat.
2571 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2572
2573 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2574 debugging printf to better location.
2575
2576 2013-08-23 Pedro Alves <palves@redhat.com>
2577
2578 * target.c (target_read_live_memory): Change type of 'ret' local
2579 to LONGEST.
2580
2581 2013-08-23 Pedro Alves <palves@redhat.com>
2582
2583 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2584 (remote_read_bytes): Change return type to LONGEST, and adjust to
2585 return a target_xfer_error on error.
2586 (remote_xfer_memory): Delete.
2587 (remote_flash_write): Change type of 'ret' local to LONGEST.
2588 (remote_xfer_partial, remote_xfer_partial): Adjust.
2589 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2590
2591 2013-08-23 Pierre Muller <muller@sourceware.org>
2592
2593 ARI fix: Push # directives to start of line.
2594 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2595
2596 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2597
2598 PR gdb/15501
2599 * breakpoint.c (enable_command, disable_command): Iterate over
2600 all specified breakpoint locations.
2601
2602 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2603
2604 * common/linux-ptrace.c (linux_fork_to_function): Push #
2605 directives to the start of the line.
2606 (linux_check_ptrace_features): Fix warning message to use
2607 the "_" markup.
2608
2609 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2610
2611 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2612 nat/linux-waitpid.h.
2613 (linux-waitpid.o): New object file rule.
2614 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2615 (current_ptrace_options): Moved from linux-nat.c.
2616 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2617 parameters.
2618 (linux_fork_to_function): New function.
2619 (linux_grandchild_function): Likewise.
2620 (linux_child_function): Likewise.
2621 (linux_check_ptrace_features): New function, heavily
2622 based on linux-nat.c:linux_test_for_tracefork.
2623 (linux_enable_event_reporting): New function.
2624 (ptrace_supports_feature): Likewise.
2625 (linux_supports_tracefork): Likewise.
2626 (linux_supports_traceclone): Likewise.
2627 (linux_supports_tracevforkdone): Likewise.
2628 (linux_supports_tracesysgood): Likewise.
2629 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2630 gdbserver/linux-low.c.
2631 (linux_enable_event_reporting): New declaration.
2632 (linux_supports_tracefork): Likewise.
2633 (linux_supports_traceclone): Likewise.
2634 (linux_supports_tracevforkdone): Likewise.
2635 (linux_supports_tracesysgood): Likewise.
2636 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2637 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2638 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2639 * config/arm/linux.mh (NATDEPFILES): Likewise.
2640 * config/i386/linux.mh (NATDEPFILES): Likewise.
2641 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2642 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2643 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2644 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2645 * config/mips/linux.mh (NATDEPFILES): Likewise.
2646 * config/pa/linux.mh (NATDEPFILES): Likewise..
2647 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2648 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2649 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2650 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2651 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2652 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2653 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2654 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2655 ptrace's 4th argument's types.
2656 Check the type of PTRACE_TYPE_ARG4.
2657 * configure: Regenerate.
2658 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2659 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2660 (linux_supports_tracefork_flag): Remove.
2661 (linux_supports_tracesysgood_flag): Likewise.
2662 (linux_supports_tracevforkdone_flag): Likewise.
2663 (current_ptrace_options): Moved to
2664 common/linux-ptrace.c.
2665 (linux_tracefork_child): Remove.
2666 (my_waitpid): Remove.
2667 (linux_test_for_tracefork): Renamed to
2668 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2669 (linux_test_for_tracesysgood): Remove.
2670 (linux_supports_tracesysgood): Remove.
2671 (linux_supports_tracefork): Remove.
2672 (linux_supports_tracevforkdone): Remove.
2673 (linux_enable_tracesysgood): Remove.
2674 (linux_enable_event_reporting): Remove.
2675 (linux_init_ptrace): New function.
2676 (linux_child_post_attach): Call linux_init_ptrace.
2677 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2678 (linux_child_follow_fork): Call linux_supports_tracefork
2679 and linux_supports_tracevforkdone.
2680 (linux_child_insert_fork_catchpoint): Call
2681 linux_supports_tracefork.
2682 (linux_child_insert_vfork_catchpoint): Likewise.
2683 (linux_child_set_syscall_catchpoint): Call
2684 linux_supports_tracesysgood.
2685 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2686 * nat/linux-nat.h: New file.
2687 * nat/linux-waitpid.c: New file.
2688 * nat/linux-waitpid.h: New file.
2689
2690 2013-08-22 Samuel Bronson <naesten@gmail.com>
2691
2692 ARM Linux support for `catch syscall'.
2693 * syscalls/arm-linux.py: New file.
2694 * syscalls/arm-linux.xml: Likewise.
2695 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2696 (arm_linux_init_abi): Register the new function and syscall xml file.
2697 * data-directory/Makefile.in: Install the new syscall xml file.
2698 * NEWS: Brag about this.
2699
2700 2013-08-22 Pedro Alves <palves@redhat.com>
2701
2702 PR gdb/15871
2703 * corefile.c (target_xfer_memory_error): New function.
2704 (memory_error): Defer EIO to target_memory_error.
2705 (read_memory): Use target_xfer_partial, and handle finer-grained
2706 target xfer errors.
2707 * target.c (target_xfer_error_to_string): New function.
2708 (memory_xfer_partial_1): If memory is known to be
2709 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2710 (target_xfer_partial): Make extern.
2711 * target.h (enum target_xfer_error): New enum.
2712 (target_xfer_error_to_string): Declare function.
2713 (target_xfer_partial): Declare function.
2714 (struct target_ops) <xfer_partial>: Adjust describing comment.
2715
2716 2013-08-22 Alan Modra <amodra@gmail.com>
2717
2718 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2719 * configure.tgt: Likewise as targets.
2720
2721 2013-08-20 Doug Evans <dje@google.com>
2722
2723 * buildsym.c (subfile_stack): Move here from buildsym.h.
2724 (pending_macros): Ditto.
2725 (get_macro_table): New function.
2726 (buildsym_init): Initialize subfile_stack.
2727 * coffread.c (type_vector,type_vector_length): Moved here from
2728 buildsym.h.
2729 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2730 (coff_symtab_read): Use it.
2731 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2732 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2733 with call to get_macro_table.
2734 * stabsread.c (type_vector,type_vector_length): Moved here from
2735 buildsym.h.
2736 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2737 * buildsym.h (get_macro_table): Declare.
2738
2739 2013-08-20 Tom Tromey <tromey@redhat.com>
2740
2741 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2742 Update.
2743 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2744
2745 2013-08-20 Doug Evans <dje@google.com>
2746
2747 * blockframe.c: Remove #include "psymtab.h".
2748 * cp-support.c: Ditto.
2749 * source.c: Ditto.
2750 * stack.c: Ditto.
2751
2752 2013-08-20 Tom Tromey <tromey@redhat.com>
2753
2754 PR python/15816:
2755 * exceptions.h (return_mask): Now an enum.
2756 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2757 enum constants.
2758
2759 2013-08-20 Tom Tromey <tromey@redhat.com>
2760
2761 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2762 get_objfile_arch.
2763 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2764 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2765 * jit.c (jit_object_close_impl): Update.
2766 * jv-lang.c (get_dynamics_objfile): Update.
2767 * linespec.c (add_minsym): Use get_dynamics_objfile.
2768 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2769 (allocate_objfile): Don't initialize 'gdbarch' field.
2770 (get_objfile_arch): Update.
2771 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2772 moved from...
2773 (struct objfile) <gdbarch>: ... here. Remove.
2774 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2775 get_objfile_arch.
2776 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2777
2778 2013-08-20 Alan Modra <amodra@gmail.com>
2779
2780 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2781 for IBM long double nan and inf.
2782 (floatformat_is_negative, floatformat_classify,
2783 floatformat_mantissa): Similarly.
2784 (floatformat_ieee_single, floatformat_ieee_double,
2785 floatformat_ieee_quad, floatformat_arm_ext,
2786 floatformat_ia64_spill): Delete unused vars.
2787 (_initialize_doublest): Delete unused function.
2788 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2789 little-endian variants of floatformat_ibm_long_double.
2790
2791 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2792
2793 * Makefile.in (SFILES): Remove common/target-common.c and
2794 add target/waitstatus.c.
2795 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2796 target/resume.h, target/wait.h and target/waitstatus.h.
2797 (COMMON_OBS): Remove target-common.o and add
2798 waitstatus.o.
2799 (target-common.o): Remove.
2800 (waitstatus.o): New target object file.
2801 * common/target-common.c: Move contents to
2802 target/waitstatus.c and remove.
2803 * common/target-common.h: Move contents to other files and
2804 remove.
2805 (enum resume_kind: Move to target/resume.h.
2806 (TARGET_WNOHANG): Move to target/wait.h.
2807 (enum target_waitkind): Move to target/waitstatus.h.
2808 (struct target_waitstatus): Likewise.
2809 * target.h: Do not include target-common.h and
2810 include target/resume.h, target/wait.h and
2811 target/waitstatus.h.
2812 * target/resume.h: New file.
2813 * target/wait.h: New file.
2814 * target/waitstatus.h: New file.
2815 * target/waitstatus.c: New file.
2816
2817 2013-08-19 Pedro Alves <palves@redhat.com>
2818
2819 * linux-nat.c (linux_test_for_tracefork)
2820 (linux_test_for_tracesysgood, linux_child_follow_fork)
2821 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2822 (linux_nat_wait_1): Extend comment.
2823 (linux_async_pipe): Add comment.
2824
2825 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2826
2827 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2828 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2829 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2830 Update to account for fact that PC is now a pseudo-register.
2831 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2832 cases for RL78_PC_REGNUM.
2833
2834 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2835
2836 PR cli/15841
2837 * top.c (quit_force): Skip writing history file
2838 if input is not from terminal.
2839
2840 2013-08-14 Tom Tromey <tromey@redhat.com>
2841
2842 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2843 resultthreadlist>: New fields.
2844 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2845 (remote_get_threadlist, remote_threadlist_iterator): Use
2846 new fields. Remove static variables.
2847
2848 2013-08-14 Tom Tromey <tromey@redhat.com>
2849
2850 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2851 remote_watch_data_address>: New fields.
2852 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2853 (process_stop_reply, remote_wait_as)
2854 (remote_check_watch_resources, remote_stopped_data_address): Update.
2855
2856 2013-08-14 Tom Tromey <tromey@redhat.com>
2857
2858 * remote.c (struct remote_state) <async_client_callback,
2859 async_client_context>: New fields.
2860 (async_client_callback, async_client_context): Remove.
2861 (remote_async_serial_handler, remote_async): Update.
2862
2863 2013-08-14 Tom Tromey <tromey@redhat.com>
2864
2865 * remote.c (sizeof_pkt): Remove.
2866 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2867
2868 2013-08-14 Tom Tromey <tromey@redhat.com>
2869
2870 * remote.c (struct remote_state) <use_threadinfo_query,
2871 use_threadextra_query>: New fields.
2872 (remote_threads_info, remote_threads_extra_info)
2873 (remote_open_1): Update.
2874
2875 2013-08-14 Tom Tromey <tromey@redhat.com>
2876
2877 * remote.c (struct remote_state) <finished_object,
2878 finished_annex, finished_offset>: New fields.
2879 (remote_read_qxfer): Use remote_state fields; remove static
2880 variables.
2881
2882 2013-08-14 Tom Tromey <tromey@redhat.com>
2883
2884 * remote.c (struct remote_state) <last_sent_step>:
2885 New field.
2886 (last_sent_step): Remove.
2887 (remote_resume, remote_wait_as): Update.
2888
2889 2013-08-14 Tom Tromey <tromey@redhat.com>
2890
2891 * remote.c (struct remote_state) <last_sent_signal>:
2892 New field.
2893 (last_sent_signal): Remove.
2894 (new_remote_state, remote_resume, remote_wait_as): Update.
2895
2896 2013-08-14 Tom Tromey <tromey@redhat.com>
2897
2898 * remote.c (struct remote_state) <last_program_signals_packet>:
2899 New field.
2900 (last_program_signals_packet): Remove.
2901 (remote_program_signals, remote_open_1): Update.
2902
2903 2013-08-14 Tom Tromey <tromey@redhat.com>
2904
2905 * remote.c (struct remote_state) <last_pass_packet>:
2906 New field.
2907 (last_pass_packet): Remove.
2908 (remote_pass_signals, remote_open_1): Update.
2909
2910 2013-08-14 Tom Tromey <tromey@redhat.com>
2911
2912 * remote.c (struct remote_state) <remote_traceframe_number>:
2913 New field.
2914 (remote_traceframe_number): Remove.
2915 (new_remote_state, remote_open_1, set_remote_traceframe)
2916 (remote_trace_find): Update.
2917
2918 2013-08-14 Tom Tromey <tromey@redhat.com>
2919
2920 * remote.c (struct remote_state) <general_thread, continue_thread>:
2921 New fields.
2922 (general_thread, continue_thread): Remove.
2923 (record_currthread, set_thread, set_general_process)
2924 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2925 (extended_remote_mourn_1): Update.
2926
2927 2013-08-14 Tom Tromey <tromey@redhat.com>
2928
2929 * remote.c (struct remote_state) <remote_desc>: New field.
2930 (remote_desc): Remove.
2931 (remote_threads_info, remote_threads_extra_info, remote_close)
2932 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2933 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2934 (remote_hostio_send_command, remote_file_put, remote_file_get)
2935 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2936 (remote_async, remote_new_objfile, set_range_stepping): Update.
2937
2938 2013-08-14 Tom Tromey <tromey@redhat.com>
2939
2940 * remote.c (remote_state): Now a pointer.
2941 (get_remote_state_raw): Update.
2942 (new_remote_state): New function.
2943 (_initialize_remote): Use new_remote_state.
2944
2945 2013-08-14 Tom Tromey <tromey@redhat.com>
2946
2947 * remote.c (remote_protocol_features): Now const.
2948
2949 2013-08-14 Tom Tromey <tromey@redhat.com>
2950
2951 * remote.c (crc32_table, crc32): Remove.
2952 (remote_verify_memory): Use xcrc32.
2953
2954 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2955
2956 * value.h (create_internalvar_type_lazy): Adjust prototype
2957 declaration.
2958
2959 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2960
2961 * common/format.c (parse_format_string): Don't allow '#' flag for
2962 pointer arguments in format string.
2963
2964 2013-08-13 Pierre Muller <muller@sourceware.org>
2965
2966 * utils.c (init_page_info): Only call tgetnum function
2967 if rl_get_screen_size did not return useful values.
2968
2969 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2970
2971 PR breakpoints/15117
2972 * linespec.c (linespec_parse_basic): Check for convenience
2973 variable or history value while parsing.
2974
2975 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2976
2977 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2978 AVR.
2979 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2980 different signals between the generic Linux kernel implementation
2981 and AVR's.
2982 (avr_linux_gdb_signal_from_target): Delete.
2983 (avr_linux_gdb_signal_to_target): Delete.
2984 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2985
2986 2013-08-09 Doug Evans <dje@google.com>
2987
2988 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2989 entries.
2990
2991 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2992
2993 * linux-tdep.c: Define enum with generic signal numbers.
2994 (linux_gdb_signal_from_target): New function.
2995 (linux_gdb_signal_to_target): Likewise.
2996 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2997 methods to the functions above.
2998 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2999 (linux_gdb_signal_to_target): Likewise.
3000 * alpha-linux-tdep.c: Define new enum with signals different
3001 from generic Linux kernel.
3002 (alpha_linux_gdb_signal_from_target): New function.
3003 (alpha_linux_gdb_signal_to_target): Likewise.
3004 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3005 with the functions mentioned above.
3006 * avr-tdep.c: Define enum with differences between Linux kernel
3007 and AVR signals.
3008 (avr_linux_gdb_signal_from_target): New function.
3009 (avr_linux_gdb_signal_to_target): Likewise.
3010 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3011 the functions mentioned above.
3012 * sparc-linux-tdep.c: Define enum with differences between SPARC
3013 and generic Linux kernel signal numbers.
3014 (sparc32_linux_gdb_signal_from_target): New function.
3015 (sparc32_linux_gdb_signal_to_target): Likewise.
3016 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3017 to the functions defined above.
3018 * xtensa-linux-tdep.c: Define enum with differences between
3019 Xtensa and Linux kernel generic signals.
3020 (xtensa_linux_gdb_signal_from_target): New function.
3021 (xtensa_linux_gdb_signal_to_target): Likewise.
3022 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3023 to the functions defined above.
3024 * mips-linux-tdep.c: Define enum with differences between
3025 signals in MIPS and Linux kernel generic ones.
3026 (mips_gdb_signal_to_target): New function.
3027 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3028 only different signals from the Linux kernel generic.
3029 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3030 the functions defined above.
3031 * mips-linux-tdep.h (enum mips_signals): Remove.
3032
3033 2013-08-09 Pedro Alves <palves@redhat.com>
3034
3035 * avr-tdep.c (XMALLOC): Delete macro.
3036 * cli/cli-dump.c (XMALLOC): Delete macro.
3037
3038 2013-08-09 Pedro Alves <palves@redhat.com>
3039
3040 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3041 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3042 (fopen_with_cleanup, add_dump_command): Make static.
3043 * cli/cli-dump.h: Delete file.
3044 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3045 cli/cli-dump.h.
3046
3047 2013-08-09 Pedro Alves <palves@redhat.com>
3048
3049 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3050 error message.
3051
3052 2013-08-09 Pedro Alves <palves@redhat.com>
3053
3054 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3055 error message.
3056
3057 2013-08-09 Pedro Alves <palves@redhat.com>
3058
3059 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3060 (gcore_command): Use tilde_expand here, and when showing the
3061 filename to the user, show the expanded version.
3062
3063 2013-08-09 Yao Qi <yao@codesourcery.com>
3064
3065 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3066 'entryval' is set.
3067
3068 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3069
3070 * gcore.c (create_gcore_bfd): Use tilde_expand.
3071
3072 2013-08-08 Yao Qi <yao@codesourcery.com>
3073
3074 * frame.h (read_frame_local): Declare.
3075 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3076 read_frame_local.
3077 * stack.c (read_frame_local): New.
3078
3079 2013-08-08 Yao Qi <yao@codesourcery.com>
3080
3081 * mi/mi-cmd-stack.c: Update comments to function
3082 list_args_or_locals.
3083
3084 2013-08-07 Tom Tromey <tromey@redhat.com>
3085
3086 PR symtab/15028:
3087 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3088 (process_psymtab_comp_unit_reader): Use it.
3089 (process_psymtab_comp_unit): Update. Add "pretend_language"
3090 argument.
3091 (dwarf2_build_psymtabs_hard): Update.
3092 (scan_partial_symbols): Pass CU's language to
3093 process_psymtab_comp_unit.
3094
3095 2013-08-07 Tom Tromey <tromey@redhat.com>
3096
3097 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3098 (dwarf2_gdb_index_functions): Update.
3099 * psymtab.c (find_symbol_file_from_partial): Remove.
3100 (psym_functions): Update.
3101 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3102 Remove.
3103
3104 2013-08-07 Tom Tromey <tromey@redhat.com>
3105
3106 * symfile.c (set_initial_language): Look up "main" symbol
3107 and use its language.
3108 * symtab.c (find_main_filename): Remove.
3109 * symtab.h (find_main_filename): Remove.
3110
3111 2013-08-07 Tom Tromey <tromey@redhat.com>
3112
3113 * dwarf2read.c (recursively_compute_inclusions): Add
3114 "immediate_parent" argument. Set symtab's "user" field
3115 if not set.
3116 (compute_symtab_includes): Update.
3117
3118 2013-08-07 Tom Tromey <tromey@redhat.com>
3119
3120 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3121 when adding label symbols.
3122
3123 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3124 Ulrich Weigand <uweigand@de.ibm.com>
3125
3126 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3127 * configure.host (powerpc64-*-aix*): Likewise.
3128
3129 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3130 Ulrich Weigand <uweigand@de.ibm.com>
3131
3132 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3133 is defined.
3134 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3135 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3136 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3137 * configure.ac: Check for ptrace64.
3138 * configure, config.in: Regenerate.
3139
3140 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3141 Ulrich Weigand <uweigand@de.ibm.com>
3142
3143 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3144 Call ptrace64 instead of ptrace if defined.
3145 Add macro addr_ptr to take care of ptrace address argument.
3146 (pdc_read_regs): Likewise.
3147 (pdc_write_regs): Likewise.
3148 (aix_thread_resume): Likewise.
3149 (fetch_regs_kernel_thread): Likewise.
3150 (store_regs_kernel_thread): Likewise.
3151
3152 2013-08-07 Anton Blanchard <anton@samba.org>
3153
3154 * MAINTAINERS: Add myself to Write After Approval.
3155
3156 2013-08-05 Tom Tromey <tromey@redhat.com>
3157
3158 * aix-thread.c (_initialize_aix_thread): Use
3159 complete_target_initialization.
3160 * bsd-uthread.c (_initialize_bsd_uthread): Use
3161 complete_target_initialization.
3162 * dec-thread.c (_initialize_dec_thread): Use
3163 complete_target_initialization.
3164 * ravenscar-thread.c (_initialize_ravenscar): Use
3165 complete_target_initialization.
3166 * sol-thread.c (_initialize_sol_thread): Use
3167 complete_target_initialization.
3168 * spu-multiarch.c (_initialize_spu_multiarch): Use
3169 complete_target_initialization.
3170
3171 2013-08-05 Tom Tromey <tromey@redhat.com>
3172
3173 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3174 * ada-lang.c (ada_lookup_simple_minsym): Return
3175 bound_minimal_symbol.
3176 * ada-lang.h (ada_lookup_simple_minsym): Update.
3177 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3178 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3179 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3180 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3181 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3182 * minsyms.c (msymbol_objfile): Remove.
3183 (lookup_minimal_symbol_internal): New function, from
3184 lookup_minimal_symbol.
3185 (lookup_minimal_symbol): Rewrite using
3186 lookup_minimal_symbol_internal.
3187 (lookup_bound_minimal_symbol): New function.
3188 * minsyms.h (msymbol_objfile): Remove.
3189 (lookup_bound_minimal_symbol): Declare.
3190 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3191 * parse.c (write_exp_msymbol): Change parameter to a
3192 bound_minimal_symbol.
3193 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3194 * parser-defs.h (write_exp_msymbol): Update.
3195 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3196 * symfile.c (simple_read_overlay_table): Use
3197 lookup_bound_minimal_symbol.
3198 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3199 (search_symbols): Likewise.
3200 (print_msymbol_info): Take a bound_minimal_symbol argument.
3201 (symtab_symbol_info, rbreak_command): Update.
3202 * symtab.h (struct symbol_search) <msymbol>: Change type
3203 to bound_minimal_symbol.
3204 * valops.c (find_function_in_inferior): Use
3205 lookup_bound_minimal_symbol.
3206 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3207
3208 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3209
3210 Code cleanup.
3211 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3212 to ...
3213 (async_cleanup_sigint_signal_handler): ... this.
3214 (initialize_sigint_signal_handler): Remove declaration.
3215 (handle_remote_sigint): Rename the declaration to ...
3216 (async_handle_remote_sigint): ... this.
3217 (handle_remote_sigint_twice): Rename the declaration to ...
3218 (async_handle_remote_sigint_twice): ... this.
3219 (async_remote_interrupt, async_remote_interrupt_twice)
3220 (remote_interrupt): Remove the declarations.
3221 (remote_interrupt_twice): Rename the declaration ...
3222 (sync_remote_interrupt_twice): ... this.
3223 (sigint_remote_twice_token): Rename the variable to ...
3224 (async_sigint_remote_twice_token): ... this.
3225 (sigint_remote_token): Rename the variable to ...
3226 (async_sigint_remote_token): ... this.
3227 (initialize_sigint_signal_handler): Rename the function to ...
3228 (async_initialize_sigint_signal_handler): ... this. Update the name
3229 inside.
3230 (handle_remote_sigint): Rename the function to ...
3231 (async_handle_remote_sigint): ... this. Update the names inside.
3232 (handle_remote_sigint_twice): Rename the function to ...
3233 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3234 (cleanup_sigint_signal_handler): Rename the function to ...
3235 (async_cleanup_sigint_signal_handler): ... this.
3236 (remote_interrupt): Rename the function to ...
3237 (sync_remote_interrupt): this. Update the names inside.
3238 (remote_interrupt_twice): Rename the function to ...
3239 (sync_remote_interrupt_twice): this. Update the names inside.
3240 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3241 (_initialize_remote): Update the names inside.
3242
3243 2013-08-02 Tom Tromey <tromey@redhat.com>
3244
3245 PR symtab/15719:
3246 * breakpoint.c (update_watchpoint, watchpoint_check)
3247 (watch_command_1): Update.
3248 * eval.c (fetch_subexp_value): Add "preserve_errors"
3249 parameter.
3250 * ppc-linux-nat.c (check_condition): Update.
3251 * value.h (fetch_subexp_value): Update.
3252
3253 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3254
3255 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3256 add_file_handler.
3257
3258 2013-08-01 Doug Evans <dje@google.com>
3259
3260 PR symtab/15691
3261 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3262 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3263 Add assert of sig_entry->dwo_unit == NULL.
3264 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3265 had already been read.
3266 (read_signatured_type): Set per_cu.tu_read.
3267
3268 PR symtab/15695
3269 * valops.c (value_struct_elt): Add missing call to check_typedef.
3270 (value_find_oload_method_list): Ditto.
3271
3272 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3273 effectively, struct symbol_search **.
3274 (make_cleanup_free_search_symbols): Change arg to struct
3275 symbol_search **. All callers updated.
3276 (compare_search_syms): Compare symtab file name and block as well.
3277 (search_symbols_equal): New function.
3278 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3279 New args new_head, new_tail. Result is now void. Remove dups after
3280 sorting the symbols.
3281 (search_symbols): Sort all found symbols once, after all have been
3282 found, and remove duplicates. Simplify cleanup tracking of result.
3283 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3284
3285 Further workarounds for binutils/15021.
3286 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3287 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3288 Watch for duplicate symtabs coming from type units.
3289 (compute_symtab_includes): Update call to
3290 recursively_compute_inclusions. Build vector of included symtabs
3291 instead of per_cus.
3292 * symtab.h (symtab_ptr): New typedef.
3293 (DEF_VEC_P (symtab_ptr)): New VEC type.
3294 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3295 instead.
3296
3297 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3298
3299 * cli/cli-script.c (script_from_file): Remove use of
3300 error_pre_print.
3301 * main.c (captured_main): Remove use of error_pre_print and
3302 quit_pre_print.
3303 * utils.c (error_pre_print, quit_pre_print): Remove.
3304 * utils.h (error_pre_print, quit_pre_print): Likewise.
3305
3306 2013-08-01 Yao Qi <yao@codesourcery.com>
3307
3308 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3309 with mi_getopt.
3310 (mi_cmd_stack_list_variables): Likewise.
3311
3312 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3313
3314 * exceptions.c (deprecated_throw_reason): Remove.
3315 * exceptions.h (deprecated_throw_reason): Remove.
3316
3317 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3318
3319 * remote-mips.c (mips_error): Replace use of
3320 deprecated_throw_reason with throw_verror. Use the error message
3321 passed to mips_error as the error message for throw_verror.
3322
3323 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3324
3325 * monitor.c (monitor_interrupt_query): Replace use of
3326 deprecated_throw_reason with quit.
3327 * nto-procfs.c (interrupt_query): Likewise.
3328 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3329 * remote-mips.c (mips_kill): Likewise.
3330 * remote.c (interrupt_query): Likewise.
3331
3332 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3333
3334 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3335 with call to fatal.
3336
3337 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3338 Yao Qi <yao@codesourcery.com>
3339
3340 * tracepoint.c (trace_dump_command): Select the current frame.
3341
3342 2013-07-30 Doug Evans <dje@google.com>
3343
3344 * dwarf2read.c (process_queue): Add type signature to debug output.
3345
3346 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3347
3348 * value.c (value_fetch_lazy): Mark optimized out values as such
3349 rather than raising an error.
3350
3351 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3352
3353 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3354 before checking which bits of the parent, not the child, value are
3355 valid.
3356
3357 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3358
3359 PR gdb/15715
3360 * top.c: Include "filenames.h".
3361 (set_history_filename): New function.
3362 (init_main): Install it as set hook of the "set history filename"
3363 command.
3364
3365 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3366
3367 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3368 attribute parameter.
3369 (dwarf2_const_value_data): Constify struct attribute parameter.
3370 (dwarf2_const_value): Constify struct attribute parameter.
3371 (dwarf2_const_value_attr): Constify struct attribute parameter.
3372 (lookup_die_type): Constify struct attribute parameter.
3373 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3374 (follow_die_ref_or_sig): Constify struct attribute parameter.
3375 (follow_die_ref): Constify struct attribute parameter.
3376 (follow_die_sig): Constify struct attribute parameter.
3377 (get_DW_AT_signature_type): Constify struct attribute parameter.
3378 (get_type_unit_group): Constify struct attribute parameter.
3379 (fill_in_loclist_baton): Constify struct attribute parameter.
3380 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3381 (type_unit_group): Constify struct attribute parameter.
3382
3383 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3384
3385 * dwarf2read.c (attr_form_is_block): Make argument const.
3386 (attr_form_is_section_offset): Make argument const.
3387 (attr_form_is_constant): Make argument const.
3388 (attr_form_is_ref): Make argument const.
3389
3390 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3391
3392 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3393 All uses updated.
3394 (attr_form_is_ref): Moved below attr_form_is_constant.
3395
3396 2013-07-29 Doug Evans <dje@google.com>
3397
3398 * main.c (captured_command_loop): Tweak comment.
3399
3400 * target.c (target_async_permitted_1): Fix comment.
3401
3402 * symtab.c (iterate_over_some_symtabs): Add comment.
3403
3404 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3405
3406 2013-07-27 Yao Qi <yao@codesourcery.com>
3407
3408 * NEWS: Mention that GDBserver now supports hardware
3409 watchpoints on the MIPS GNU/Linux target.
3410
3411 2013-07-27 Yao Qi <yao@codesourcery.com>
3412
3413 * Makefile.in (HFILES_NO_SRCDIR): Add
3414 common/mips-linux-watch.h.
3415 (mips-linux-watch.o): New rule.
3416 * common/mips-linux-watch.c: New.
3417 * common/mips-linux-watch.h: New.
3418 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3419 * mips-linux-nat.c: Include mips-linux-watch.h.
3420 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3421 to common/mips-linux-watch.h.
3422 (MAX_DEBUG_REGISTER): Likewise.
3423 (enum pt_watch_style): Likewise.
3424 (struct mips32_watch_regs): Likewise.
3425 (struct mips64_watch_regs): Likewise.
3426 (struct pt_watch_regs): Likewise.
3427 (struct mips_watchpoint): Likewise.
3428 (mips_linux_watch_get_irw_mask): Move to
3429 common/mips-linux-watch.c.
3430 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3431 (mips_linux_watch_get_watchlo): Likewise.
3432 (mips_linux_watch_set_watchlo): Likewise.
3433 (mips_linux_watch_get_watchhi): Likewise.
3434 (mips_linux_watch_set_watchhi): Likewise.
3435 (mips_linux_read_watch_registers): Likewise.
3436 (mips_linux_watch_type_to_irw): Likewise.
3437 (mips_linux_stopped_data_address, fill_mask): Likewise.
3438 (mips_linux_watch_try_one_watch): Likewise.
3439 (mips_linux_watch_populate_regs): Likewise.
3440
3441 2013-07-27 Yao Qi <yao@codesourcery.com>
3442
3443 * mips-linux-nat.c (get_irw_mask): Rename to ...
3444 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3445 'set' to 'n'. Update function comment. All callers changed.
3446 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3447 function comment. All callers changed.
3448 (get_num_valid): Rename to ...
3449 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3450 'set' to 'n'. Update function comment. All callers changed.
3451 (get_watchlo): Rename to ...
3452 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3453 'set' to 'n'. Update function comment. All callers changed.
3454 (set_watchlo): Rename to ...
3455 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3456 'set' to 'n'. Update function comment. All callers changed.
3457 (get_watchhi): Rename to ...
3458 (mips_linux_watch_get_watchhi): ... this. Update function
3459 comment. All callers changed.
3460 (set_watchhi): Rename to ...
3461 (mips_linux_watch_set_watchhi): ... this. Update function
3462 comment. All callers changed.
3463 (mips_linux_read_watch_registers): Update function comment.
3464 Add new parameters 'lwpid', 'watch_readback', and
3465 'watch_readback_valid'. Update.
3466 (type_to_irw): Rename to ...
3467 (mips_linux_watch_type_to_irw): ... this. Update function
3468 comment. All callers changed.
3469 (fill_mask): Update function comment.
3470 (try_one_watch): Rename to ...
3471 (mips_linux_watch_try_one_watch): ... this. Change the type
3472 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3473 (populate_regs_from_watches): Rename to ...
3474 (mips_linux_watch_populate_regs): ... this. Add parameter
3475 'current_watches'. All callers changed.
3476
3477 2013-07-27 Yao Qi <yao@codesourcery.com>
3478
3479 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3480 the code.
3481 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3482 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3483 (struct pt_watch_regs): Likewise.
3484 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3485 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3486 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3487 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3488 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3489
3490 2013-07-27 Yao Qi <yao@codesourcery.com>
3491
3492 * breakpoint.h: Include break-common.h.
3493 (enum target_hw_bp_type): Move to ...
3494 * common/break-common.h: ... here. New.
3495
3496 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3497
3498 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3499 process group regardless of having tty on stdin.
3500
3501 2013-07-25 Doug Evans <dje@google.com>
3502
3503 * linux-fork.h (detach_fork): Delete.
3504
3505 2013-07-25 Tom Tromey <tromey@redhat.com>
3506
3507 PR remote/15256, PR remote/15266:
3508 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3509 * monitor.c (monitor_detach): Use unpush_target.
3510 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3511 * remote-mips.c (mips_detach): Use unpush_target. Don't
3512 call mips_close.
3513 * remote-sim.c (gdbsim_detach): Use unpush_target.
3514 * target.c (pop_target): Remove.
3515 (pop_all_targets_above): Don't call target_close.
3516 (target_close): Assert that the target is unpushed.
3517 * target.h (pop_target): Don't declare.
3518 * tracepoint.c (tfile_open): Use unpush_target.
3519
3520 2013-07-25 Tom Tromey <tromey@redhat.com>
3521
3522 * linux-thread-db.c (init_thread_db_ops): Call
3523 complete_target_initialization.
3524 (_initialize_thread_db): Don't call add_target.
3525 * target.c (complete_target_initialization): New function.
3526 (add_target_with_completer): Call it.
3527 * target.h (complete_target_initialization): Declare.
3528
3529 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3530
3531 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3532 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3533 (HPPANBSD_SIZEOF_GREGS): New define.
3534 (hppaobsd_supply_gregset): Handle additional registers.
3535 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3536 we provide more registers now.
3537 (hppabsd_supply_gregset): Supply additional registers.
3538 (hppabsd_collect_gregset): Collect additional registers.
3539
3540 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3541
3542 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3543 (hppabsd_dwarf2_frame_init_reg): New function.
3544 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3545
3546 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3547
3548 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3549 'z' format code. Remove error for optimized out values, standard
3550 code will handle these fine.
3551
3552 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3553
3554 * NEWS: Mention new 'z' formatter.
3555 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3556 (_initialize_printcmd): Mention 'z' formatter in help text of the
3557 'x' command.
3558
3559 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3560
3561 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3562 formatting.
3563
3564 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3565
3566 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3567 interface can evaluate arguments. Fallback to the old mode if it
3568 cannot.
3569 (create_exception_master_breakpoint): Likewise.
3570 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3571 (struct sym_probe_fns elf_probe_fns): Export function above to the
3572 probe interface.
3573 * probe.c (can_evaluate_probe_arguments): New function.
3574 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3575 function pointer.
3576 (can_evaluate_probe_arguments): New function prototype.
3577 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3578 probe interface can evaluate arguments. Fallback to the old mode
3579 if it cannot.
3580 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3581 interface can evaluate arguments. Warning the user if it cannot.
3582 (stap_can_evaluate_probe_arguments): New function.
3583 (struct probe_ops stap_probe_ops): Export function above to the
3584 probe interface.
3585 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3586 New function pointer.
3587
3588 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3589
3590 * Makefile.in (SFILES): Add common/target-common.c.
3591 Add common/target-common.h to headers.
3592 (COMMON_OBS): Add target-common.o.
3593 (target-common.o): New target.
3594 * linux-nat.h (resume_kind): Move to common/target-common.h.
3595 * target.c (target_waitstatus_to_string): Move to
3596 common/target-common.c.
3597 * target.h: Include target-common.h.
3598 (target_waitkind): Move to common/target-common.h.
3599 (target_waitstatus): Likewise.
3600 (TARGET_WNOHANG): Likewise.
3601 * common/target-common.c: New file.
3602 * common/target-common.h: New file.
3603
3604 2013-07-24 Doug Evans <dje@google.com>
3605
3606 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3607 a warning.
3608
3609 2013-07-23 Yao Qi <yao@codesourcery.com>
3610
3611 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3612 parameter 'gdbarch'.
3613 (i386_stack_tramp_frame_sniffer): Caller update.
3614 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3615 parameter 'gdbarch' and 'target'.
3616 (i386_linux_core_read_description): Caller update.
3617 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3618 Likewise.
3619 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3620 declaration.
3621
3622 2013-07-23 Tom Tromey <tromey@redhat.com>
3623
3624 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3625 2013-07-22.
3626
3627 2013-07-22 Doug Evans <dje@google.com>
3628
3629 * exec.h (remove_target_sections): Delete arg abfd.
3630 * exec.c (exec_close): Update call to remove_target_sections.
3631 (remove_target_sections): Delete arg abfd.
3632 * solib.c (update_solib_list): Ditto.
3633 (reload_shared_libraries_1): Ditto.
3634 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3635 * target.h (struct target_section): Rename key to owner.
3636 All uses updated.
3637
3638 2013-07-22 Tom Tromey <tromey@redhat.com>
3639
3640 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3641
3642 2013-07-22 Tom Tromey <tromey@redhat.com>
3643
3644 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3645 Simplify cleanup handling.
3646
3647 2013-07-22 Tom Tromey <tromey@redhat.com>
3648
3649 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3650 on all return paths.
3651
3652 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3653
3654 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3655 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3656 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3657
3658 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3659
3660 * top.c (print_gdb_version): Add help, apropos description and
3661 url to online documentation.
3662
3663 2013-07-19 Hui Zhu <hui@codesourcery.com>
3664
3665 PR gdb/15692
3666 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3667
3668 2013-07-19 Yao Qi <yao@codesourcery.com>
3669
3670 * target.c (update_current_target): Change the default action
3671 of 'to_traceframe_info' from tcomplain to return_zero.
3672 * target.h (struct target_ops) <to_traceframe_info>: Add more
3673 comments.
3674 * valops.c (read_value_memory): Call
3675 traceframe_available_memory unconditionally.
3676
3677 2013-07-18 Yao Qi <yao@codesourcery.com>
3678
3679 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3680 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3681 symbol without prefix. If found, set its type to
3682 'mst_solib_trampoline'.
3683
3684 2013-07-17 Doug Evans <dje@google.com>
3685
3686 * NEWS: Mention "set print raw frame-arguments".
3687 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3688 * stack.c (print_raw_frame_arguments): New static global.
3689 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3690 (_initialize_stack): New command "set/show print raw frame-arguments".
3691 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3692 (set_print_raw, show_print_raw): New functions.
3693 (_initialize_valprint): New prefix command "set/show print raw".
3694 * valprint.h (value_print_options): Improve comments.
3695
3696 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3697 of all *list variables.
3698
3699 * gdbcmd.h (togglelist): Delete.
3700 * cli/cli-cmds.c (togglelist): Delete.
3701 (init_cmd_lists): Update.
3702 * cli/cli-cmds.h (togglelist): Delete.
3703
3704 2013-07-17 Tom Tromey <tromey@redhat.com>
3705
3706 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3707 dwarf2_per_objfile.
3708
3709 2013-07-16 Doug Evans <dje@google.com>
3710
3711 * nto-tdep.c (nto_relocate_section_addresses): Update,
3712 target_section.bfd deleted.
3713 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3714 * s390-tdep.c (s390_load): Ditto.
3715 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3716
3717 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3718
3719 * common/format.c (parse_format_string): Add checks for NULL
3720 character before calling strchr.
3721
3722 2013-07-16 Doug Evans <dje@google.com>
3723
3724 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3725 temp_pathname argument.
3726 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3727 when opening the file fails.
3728
3729 * target.h (struct target_section): Delete member bfd.
3730 All users updated to use the_bfd_section->owner instead.
3731 * exec.c (add_to_section_table): Assert bfd is expected value.
3732 Remove initialization of target_section.bfd.
3733 (remove_target_sections): Update.
3734 (section_table_available_memory): Update.
3735 (section_table_xfer_memory_partial): Update.
3736 (print_section_info): Update.
3737 (exec_set_section_address): Update.
3738 * record-full.c (record_full_core_xfer_partial): Update.
3739 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3740 * solib-target.c (solib_target_relocate_section_addresses): Update.
3741 * symfile.c (build_section_addr_info_from_section_table): Update.
3742 * target.c (memory_xfer_live_readonly_partial): Update.
3743 (memory_xfer_partial_1): Update.
3744
3745 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3746
3747 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3748 now available for embedded (BookE) and server (BookS) processors,
3749 correct mentions of 'booke' and adjust comments accordingly in order to
3750 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3751 (have_ptrace_booke_interface): Rename function and variable
3752 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3753 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3754 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3755 'hwdebug_point_cmp'. Update all uses.
3756 (booke_find_thread_points_by_tid): Rename function
3757 'booke_find_thread_points_by_tid' to
3758 'hwdebug_find_thread_points_by_tid'. Update all uses.
3759 (booke_insert_point): Rename function 'booke_insert_point' to
3760 'hwdebug_insert_point'. Update all uses.
3761 (booke_remove_point): Rename function 'booke_remove_point' to
3762 'hwdebug_remove_point'. Update all uses.
3763
3764 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3765
3766 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3767 numbers with enum values.
3768
3769 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3770
3771 PR threads/13217
3772 * thread.c (thread_apply_all_command): Check for valid threads
3773 and thread count.
3774 (thread_array_cleanup): New struct.
3775 (set_thread_refcount): New function.
3776
3777 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3778
3779 * infcmd.c (default_print_one_register_info): Reuse function
3780 print_hex_chars.
3781
3782 2013-07-10 Tom Tromey <tromey@redhat.com>
3783
3784 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3785 (ada-exp.o): New target.
3786
3787 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3788
3789 * mt-tdep.c (mt_registers_info): Call
3790 get_no_prettyformat_print_options instead of
3791 get_raw_print_options (regression by last patch from Doug
3792 Evans).
3793
3794 2013-07-09 Pedro Alves <palves@redhat.com>
3795
3796 Checked in by Joel Brobecker <brobecker@adacore.com>.
3797 * ada-lang.c (coerce_unspec_val_to_type): Use
3798 value_optimized_out_const.
3799 * value.c (value_optimized_out_const): New function.
3800 * value.h (value_optimized_out_const): New declaration.
3801
3802 2013-07-09 Doug Evans <dje@google.com>
3803
3804 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3805 Enum values rename as well. All uses updated.
3806 * valprint.h (value_print_options): Rename member pretty to
3807 pretty format. Rename member prettyprint_arrays to
3808 prettyformat_arrays. Rename member prettyprint_structs to
3809 prettyformat_structs. All uses updated.
3810 (get_no_prettyformat_print_options): Renamed from
3811 get_raw_print_options.
3812 * valprint.c (get_no_prettyformat_print_options): Renamed from
3813 get_raw_print_options. All callers updated.
3814 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3815 All callers updated.
3816 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3817 All callers updated.
3818 (_initialize_valprint): Improve help text for "set print pretty" and
3819 "set print arrays".
3820
3821 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3822
3823 * value.c (value_bits_valid): Revert previous change, and change
3824 by Pedro on 2013-07-04, due to regressions in
3825 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3826
3827 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3828 Pedro Alves <palves@redhat.com>
3829
3830 * value.c (value_bits_valid): If the value is not lval_computed
3831 or has no check validity handler then the answer is the
3832 optimized_out flag, otherwise defer to the handler.
3833
3834 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3835
3836 * top.c (print_gdb_configuration): Explain in output of
3837 --configuration what does "relocatable" mean.
3838
3839 * main.c (print_gdb_help): Regroup options in the --help text.
3840 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3841 the relevant discussions.
3842
3843 2013-07-06 Yao Qi <yao@codesourcery.com>
3844
3845 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3846 Remove parameter 'lsal'.
3847 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3848 to inner block. Caller update.
3849 (base_breakpoint_create_breakpoints_sal): Update.
3850 (bkpt_create_breakpoints_sal): Likewise.
3851 (tracepoint_create_breakpoints_sal): Likewise.
3852 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3853 element 0 of vector 'canonical->sals'.
3854
3855 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3856
3857 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3858 register number instead of the pseudo register one.
3859 (rs6000_dwarf2_reg_to_regnum): Likewise.
3860
3861 2013-07-04 Pedro Alves <palves@redhat.com>
3862
3863 * findvar.c (value_of_register): Use allocate_optimized_out_value
3864 if the register has been optimized out, instead of
3865 set_value_optimized_out.
3866 * frame-unwind.c (frame_unwind_got_optimized): Use
3867 allocate_optimized_out_value.
3868
3869 2013-07-04 Pedro Alves <palves@redhat.com>
3870
3871 * value.c (value_bits_valid): If the value is not lval_computed,
3872 or doesn't have a check_validity hook, assume the value is entirely
3873 valid.
3874
3875 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3876
3877 * stack.c (read_frame_arg): No longer fetch lazy values.
3878 * value.c (value_optimized_out): If the value is not already
3879 marked optimized out, and is lazy then fetch it.
3880 (value_primitive_field): Move optimized out check to later in the
3881 function, after we have loaded any lazy values.
3882 (value_fetch_lazy): Use optimized out flag directly rather than
3883 calling optimized_out method.
3884
3885 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3886
3887 * valops.c: Don't include "user-regs.h".
3888 (value_fetch_lazy): Moved to value.c.
3889 * value.c: Include "user-regs.h".
3890 (value_fetch_lazy): Moved from valops.c.
3891
3892 2013-07-04 Yao Qi <yao@codesourcery.com>
3893
3894 Revert:
3895 2013-06-27 Yao Qi <yao@codesourcery.com>
3896
3897 * common/create-version.sh: Update comments. Handle the case
3898 that TARGET_ALIAS is empty.
3899
3900 2013-07-03 Pedro Alves <palves@redhat.com>
3901
3902 * Makefile.in (config.status): Depend on development.sh.
3903 (aclocal_m4_deps): Add libmcheck.m4.
3904 * acinclude.m4: Include libmcheck.m4.
3905 * configure.ac: Source development.sh instead of setting
3906 'development' here. --enable-libmcheck/--disable-libmcheck code
3907 factored out to GDB_AC_LIBMCHECK. Run it.
3908 * development.sh: New file.
3909 * libmcheck.m4: New file.
3910 * configure: Regenerate.
3911
3912 2013-07-02 Tom Tromey <tromey@redhat.com>
3913
3914 * contrib/ari/update-web-ari.sh: Update for version.in change.
3915
3916 2013-07-02 Tom Tromey <tromey@redhat.com>
3917
3918 * common/ptid.h: Comment fixes.
3919
3920 2013-07-01 Tom Tromey <tromey@redhat.com>
3921
3922 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3923 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3924 (dwarf2_read_index, create_all_comp_units): Update.
3925
3926 2013-07-01 Tom Tromey <tromey@redhat.com>
3927
3928 * configure.ac (build_warnings): Add -Wold-style-definition.
3929 * configure: Rebuild.
3930 * machoread.c (_initialize_machoread): Use "(void)".
3931 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3932 use "(void)".
3933
3934 2013-07-01 Tom Tromey <tromey@redhat.com>
3935
3936 * configure.ac (build_warnings): Add -Wold-style-declaration.
3937 * configure: Rebuild.
3938 * dsrec.c (make_srec): Use "static const", not "const static".
3939 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3940 not "const static".
3941 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3942 Use "static const", not "const static".
3943 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3944 not "const static".
3945 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3946 not "const static".
3947 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3948 not "const static".
3949 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3950 not "const static".
3951 (v850_dbtrap_breakpoint_from_pc): Likewise.
3952 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3953 not "const static".
3954
3955 2013-07-01 Tom Tromey <tromey@redhat.com>
3956
3957 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3958 * configure: Rebuild.
3959
3960 2013-07-01 Pedro Alves <palves@redhat.com>
3961
3962 * defs.h: Include "pathmax.h".
3963 * utils.c: Don't include sys/param.h.
3964 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3965 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3966 instead of MAXPATHLEN.
3967 * solib-sunos.c: Don't include sys/param.h.
3968 * xcoffread.c: Don't include sys/param.h.
3969 * bsd-kvm.c: Don't include sys/param.h.
3970 * darwin-nat.c: Don't include sys/param.h.
3971 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3972 * darwin-nat-info.c: Don't include sys/param.h.
3973 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3974 MAXPATHLEN.
3975 * i386obsd-nat.c: Don't include sys/param.h.
3976 * inf-child.c: Don't include sys/param.h.
3977 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3978 * linux-fork.c: Don't include sys/param.h.
3979 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3980 * linux-nat.c: Don't include sys/param.h.
3981 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3982 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3983 * m68klinux-nat.c: Don't include sys/param.h.
3984 * nbsd-nat.c: Don't include sys/param.h.
3985 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3986 * ppc-linux-nat.c: Don't include sys/param.h.
3987 * rs6000-nat.c: Don't include sys/param.h.
3988 * spu-linux-nat.c. Don't include sys/param.h.
3989 * windows-nat.c: Don't include sys/param.h.
3990 * xtensa-linux-nat.c: Don't include sys/param.h.
3991 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3992
3993 2013-07-01 Pedro Alves <palves@redhat.com>
3994
3995 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3996 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3997 * gnulib/aclocal.m4: Regenerate.
3998 * gnulib/config.in: Regenerate.
3999 * gnulib/configure: Regenerate.
4000 * gnulib/import/pathmax.h: New file.
4001 * gnulib/import/Makefile.am: Regenerate.
4002 * gnulib/import/Makefile.in: Regenerate.
4003 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4004 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4005 * gnulib/import/m4/pathmax.m4: New file.
4006
4007 2013-07-01 Pedro Alves <palves@redhat.com>
4008
4009 * configure.ac (GDBINIT): Define, depending on host.
4010 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4011 * top.c (PATH_MAX): Delete fallback definition.
4012 (GDBINIT_FILENAME): Delete.
4013 (gdbinit): Reimplement as const char array set to the GDBINIT
4014 string constant.
4015 * top.h (gdbinit): Make const.
4016 * configure, config.in: Regenerate.
4017
4018 2013-07-01 Pedro Alves <palves@redhat.com>
4019
4020 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4021 * cli/cli-cmds.h (source_script): Likewise.
4022 * exceptions.c (catch_command_errors_const): New function.
4023 * exceptions.h (catch_command_errors_const): Declare.
4024 * main.c (get_init_files): Make parameters const, and adjust.
4025 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4026 'local_gdbinit' locals const. Adjust to use
4027 catch_command_errors_const.
4028 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4029 'local_gdbinit' locals const.
4030
4031 2013-07-01 Pedro Alves <palves@redhat.com>
4032
4033 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4034 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4035 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4036 <unistd.h>.
4037
4038 2013-07-01 Pedro Alves <palves@redhat.com>
4039
4040 Import the "unistd" gnulib module.
4041 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4042 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4043 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4044 import/m4/unistd_h.m4.
4045 * gnulib/aclocal.m4: Renenerate.
4046 * gnulib/config.in: Renenerate.
4047 * gnulib/configure: Renenerate.
4048 * gnulib/import/Makefile.am: Renenerate.
4049 * gnulib/import/Makefile.in: Renenerate.
4050 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4051 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4052 * gnulib/import/m4/off_t.m4: New file.
4053 * gnulib/import/m4/ssize_t.m4: New file.
4054 * gnulib/import/m4/sys_types_h.m4: New file.
4055 * gnulib/import/m4/unistd_h.m4: New file.
4056 * gnulib/import/sys_types.in.h: New file.
4057 * gnulib/import/unistd.c: New file.
4058 * gnulib/import/unistd.in.h: New file.
4059
4060 2013-07-01 Pedro Alves <palves@redhat.com>
4061
4062 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4063 defined instead of checking HAVE_UNISTD_H.
4064
4065 2013-07-01 Pedro Alves <palves@redhat.com>
4066
4067 Reimport gnulib from scratch.
4068 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4069 import/m4/onceonly.m4.
4070 * gnulib/aclocal.m4: Renegerate.
4071 * gnulib/config.in: Renegerate.
4072 * gnulib/configure: Renegerate.
4073 * gnulib/import/Makefile.in: Renegerate.
4074 * gnulib/import/extra/update-copyright: Renegerate.
4075 * gnulib/import/m4/onceonly.m4: Delete.
4076
4077 2013-07-01 Pedro Alves <palves@redhat.com>
4078
4079 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4080
4081 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4082
4083 Code cleanup.
4084 * remote.c (async_remote_interrupt_twice): Make it static.
4085 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4086
4087 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4088
4089 * ia64-linux-tdep.c: Include <ctype.h>.
4090 (ia64_linux_stap_is_single_operand): New function.
4091 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4092
4093 2013-06-28 Tom Tromey <tromey@redhat.com>
4094
4095 * Makefile.in (version.c): Use version.in, not
4096 common/version.in.
4097 * common/create-version.sh: Likewise.
4098 * common/version.in: Move...
4099 * version.in: ...here.
4100
4101 2013-06-28 Pedro Alves <palves@redhat.com>
4102
4103 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4104 here.
4105 * utils.h (pagination_enabled): Declare.
4106
4107 2013-06-28 Pedro Alves <palves@redhat.com>
4108
4109 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4110 Move higher up in file.
4111
4112 2013-06-28 Tom Tromey <tromey@redhat.com>
4113
4114 * tracepoint.c (deprecated_readline_begin_hook)
4115 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4116 declare.
4117
4118 2013-06-28 Pedro Alves <palves@redhat.com>
4119
4120 PR tui/14880
4121 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4122 checking if they're available.
4123 * value.c (value_available_contents_eq): Change comment.
4124 * value.h (value_available_contents_eq): Expand comment.
4125
4126 2013-06-27 Tom Tromey <tromey@redhat.com>
4127
4128 * target.c (find_run_target): Remove.
4129 * target.h (find_run_target): Remove.
4130
4131 2013-06-27 Tom Tromey <tromey@redhat.com>
4132
4133 * corelow.c (core_gdbarch): Now static.
4134
4135 2013-06-27 Tom Tromey <tromey@redhat.com>
4136
4137 * target.c (target_struct_index): Remove.
4138
4139 2013-06-27 Pedro Alves <palves@redhat.com>
4140
4141 * infrun.c: Remove comment describing the 'stepping over runtime
4142 loader dynamic symbol resolution code' mechanism; moved to
4143 gdbint.texinfo.
4144
4145 2013-06-27 Pedro Alves <palves@redhat.com>
4146
4147 * exceptions.c (catch_command_errors): Remove spurious space.
4148 * exceptions.h (catch_command_errors): Second parameter is "arg",
4149 not "command".
4150
4151 2013-06-27 Yao Qi <yao@codesourcery.com>
4152
4153 * common/create-version.sh: Update comments. Handle the case
4154 that TARGET_ALIAS is empty.
4155
4156 2013-06-26 Pedro Alves <palves@redhat.com>
4157
4158 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4159 comment.
4160
4161 2013-06-26 Pedro Alves <palves@redhat.com>
4162
4163 * infrun.c: Update comments on stepping over runtime loader
4164 dynamic symbol resolution code.
4165
4166 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4167
4168 * ax-gdb.h (union exp_element): Forward declare.
4169 * parser-defs.h: Include expression.h.
4170
4171 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4172
4173 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4174
4175 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4176
4177 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4178
4179 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4180
4181 Fix trace-status to output proper start-time and stop-time.
4182 * tracepoint.c (trace_status_command): Fix type of printf arg to
4183 prevent improper type conversion.
4184 (trace_status_mi): Likewise.
4185
4186 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4187
4188 * mips-tdep.c (mips_next_pc): Fix a typo.
4189
4190 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4191
4192 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4193
4194 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4195 Yao Qi <yao@codesourcery.com>
4196
4197 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4198 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4199 * mi/mi-main.c (print_variable_or_computed): New function.
4200 (mi_cmd_trace_frame_collected): New function.
4201 * tracepoint.c (find_trace_state_variable_by_number): New.
4202 (struct traceframe_info): Move to tracepoint.h
4203 (struct collection_list): Likewise.
4204 (do_collect_symbol): Include locals and arguments in the
4205 collected variables list.
4206 (clear_collection_list): Clear wholly collected variables list
4207 and computed variables list.
4208 (append_exp): New function.
4209 (encode_actions_1): Include variables in the wholly
4210 collected variables list. Include memory ranges and
4211 full-fledged expressions in the computed expressions list.
4212 (encode_actions): Move some code to ...
4213 Return the cleanup chain.
4214 (encode_actions_rsp): ... here. New function.
4215 (get_traceframe_location, get_traceframe_info): Remove static.
4216 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4217 (struct collection_list): Moved from tracepoint.c. Add two
4218 new fields 'wholly_collected' and 'computed'.
4219 (find_trace_state_variable_by_number): Declare.
4220 (encode_actions): Adjust declaration.
4221 (encode_actions_rsp): Declare.
4222 (get_traceframe_info, get_traceframe_location): Declare.
4223
4224 * NEWS: Mention new MI command -trace-frame-collected.
4225
4226 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4227 Yao Qi <yao@codesourcery.com>
4228
4229 * ctf.c (ctf_traceframe_info): Push trace state variables
4230 present in the trace data into the traceframe info object.
4231 * breakpoint.c (DEF_VEC_I): Remove.
4232 * common/filestuff.c (DEF_VEC_I): Likewise.
4233 * dwarf2loc.c (DEF_VEC_I): Likewise.
4234 * mi/mi-main.c (DEF_VEC_I): Likewise.
4235 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4236 * features/traceframe-info.dtd: Add tvar element and its
4237 attributes.
4238 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4239 (build_traceframe_info): Push trace state variables present in
4240 the trace data into the traceframe info object.
4241 (traceframe_info_start_tvar): New function.
4242 (tvar_attributes): New.
4243 (traceframe_info_children): Add "tvar" element.
4244 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4245
4246 * NEWS: Mention the change in GDB and GDBserver.
4247
4248 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4249 Yao Qi <yao@codesourcery.com>
4250
4251 * tracepoint.c (trace_dump_command): Move code to ...
4252 (get_traceframe_location): ... here. New.
4253
4254 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4255 Yao Qi <yao@codesourcery.com>
4256
4257 * tracepoint.c (trace_dump_command): GDB emits an error
4258 instead of a warning when a traceframe is not selected.
4259
4260 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4261 Yao Qi <yao@codesourcery.com>
4262
4263 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4264 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4265 in collection_list.
4266 (do_clear_collection_list, init_collection_list): New.
4267 (encode_actions): Add local variables 'tracepoint_list' and
4268 'stepping_list'. Call init_collection_list and make cleanup
4269 which calls do_clear_collection_list. Don't call
4270 clear_collection_list.
4271 (_initialize_tracepoint): Delete references to
4272 'tracepoint_list' and 'stepping_list'.
4273
4274 2013-06-25 Tom Tromey <tromey@redhat.com>
4275
4276 * common/create-version.sh (date): Use "$", not "$$" in sed
4277 expression.
4278
4279 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4280
4281 * NEWS (New targets): Add entry for TI MSP430.
4282
4283 2013-06-25 Yao Qi <yao@codesourcery.com>
4284
4285 * remote.c (remote_start_remote): Move code to upload tsv
4286 earlier.
4287
4288 2013-06-25 Yao Qi <yao@codesourcery.com>
4289 Hui Zhu <hui@codesourcery.com>
4290 Pedro Alves <palves@redhat.com>
4291
4292 PR breakpoints/15075
4293 PR breakpoints/15434
4294 * breakpoint.c (bpstat_stop_status): Call
4295 b->ops->after_condition_true.
4296 (update_dprintf_command_list): Don't append "continue" command
4297 to the command list of dprintf breakpoint.
4298 (base_breakpoint_after_condition_true): New function.
4299 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4300 (dprintf_after_condition_true): New function.
4301 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4302 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4303
4304 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4305
4306 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4307 (ALLDEPFILES): Add msp430-tdep.c.
4308 * configure.tgt (msp430*-*-elf): New target.
4309 * msp430-tdep.c: New file.
4310
4311 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4312
4313 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4314 microMIPS synthetic symbols.
4315
4316 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4317
4318 * objfiles.h (pc_in_section): New prototype.
4319 (in_plt_section): Remove name argument, replace prototype with
4320 static inline function.
4321 * mips-tdep.h: Include "objfiles.h".
4322 (in_mips_stubs_section): New function.
4323 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4324 in_solib_call_trampoline member.
4325 (hppa_in_solib_call_trampoline): Remove name argument.
4326 * objfiles.c (pc_in_section): New function.
4327 (in_plt_section): Remove function.
4328 * mips-linux-tdep.c: Include "objfiles.h".
4329 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4330 name argument. Return 1 rather than the low 16-bit halfword of
4331 any instruction examined.
4332 (mips_linux_in_dynsym_resolve_code): Update
4333 mips_linux_in_dynsym_stub call accordingly.
4334 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4335 rather than an equivalent hand-coded sequence.
4336 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4337 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4338 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4339 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4340 in_opd_section.
4341 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4342 on call to tdep->in_solib_call_trampoline.
4343 (hppa_in_solib_call_trampoline): Remove name argument, update
4344 according to in_plt_section change.
4345 (hppa_skip_trampoline_code): Update according to in_plt_section
4346 change.
4347 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4348 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4349 Likewise.
4350 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4351 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4352 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4353 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4354 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4355 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4356 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4357 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4358 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4359 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4360 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4361 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4362 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4363
4364 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4365
4366 * common/create-version.sh: Fix expansion of $host_alias
4367 and $target_alias in generation of HOST_NAME and TARGET_NAME
4368 (resp.).
4369
4370 2013-06-24 Tom Tromey <tromey@redhat.com>
4371
4372 * common/create-version.sh: New file.
4373 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4374 create-version.sh.
4375 (HFILES_NO_SRCDIR): Use common/version.h.
4376 * version.in: Move to ...
4377 * common/version.in: ... here. Replace date with "DATE".
4378 * version.h: Move to ...
4379 * common/version.h: ... here.
4380
4381 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4382
4383 * gdb/gnulib/Makefile.in: Update date in copyright header.
4384 * gdb/gnulib/configure.ac: Ditto.
4385 * gdb/gnulib/update-gnulib.sh: Ditto.
4386
4387 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4388
4389 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4390 "gdb/gnulib/import".
4391
4392 2013-06-21 Will Newton <will.newton@linaro.org>
4393
4394 * doublest.c (ldfrexp): Remove function.
4395 (convert_doublest_to_floatformat): Call frexpl instead of
4396 ldfrexp.
4397
4398 2013-06-21 Will Newton <will.newton@linaro.org>
4399
4400 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4401 * gnulib/aclocal.m4: Regenerate.
4402 * gnulib/config.in: Regenerate.
4403 * gnulib/configure: Regenerate.
4404 * gnulib/import/Makefile.am: Update.
4405 * gnulib/import/Makefile.in: Update.
4406 * gnulib/import/m4/gnulib-cache.m4: Update.
4407 * gnulib/import/m4/gnulib-comp.m4: Update.
4408 * gnulib/import/float+.h: Import.
4409 * gnulib/import/float.c: Import.
4410 * gnulib/import/float.in.h: Import.
4411 * gnulib/import/fpucw.h: Import.
4412 * gnulib/import/frexp.c: Import.
4413 * gnulib/import/frexpl.c: Import.
4414 * gnulib/import/isnan.c: Import.
4415 * gnulib/import/isnand-nolibm.h: Import.
4416 * gnulib/import/isnand.c: Import.
4417 * gnulib/import/isnanl-nolibm.h: Import.
4418 * gnulib/import/isnanl.c: Import.
4419 * gnulib/import/itold.c: Import.
4420 * gnulib/import/m4/exponentd.m4: Import.
4421 * gnulib/import/m4/exponentl.m4: Import.
4422 * gnulib/import/m4/float_h.m4: Import.
4423 * gnulib/import/m4/fpieee.m4: Import.
4424 * gnulib/import/m4/frexp.m4: Import.
4425 * gnulib/import/m4/frexpl.m4: Import.
4426 * gnulib/import/m4/isnand.m4: Import.
4427 * gnulib/import/m4/isnanl.m4: Import.
4428 * gnulib/import/m4/math_h.m4: Import.
4429 * gnulib/import/math.c: Import.
4430 * gnulib/import/math.in.h: Import.
4431
4432 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4433
4434 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4435 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4436 signature_INTEL_edx comparisons.
4437
4438 2013-06-20 Doug Evans <dje@google.com>
4439
4440 symtab/15652
4441 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4442 All callers updated.
4443 (open_dwp_file): If we can't find the dwp file, search the basename
4444 in debug-file-directory.
4445
4446 * dwarf2read.c (struct dwp_file): Fix comment.
4447 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4448
4449 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4450 better.
4451
4452 2013-06-20 Yao Qi <yao@codesourcery.com>
4453
4454 * breakpoint.c (create_breakpoint): Fix code indentation.
4455
4456 2013-06-20 Yao Qi <yao@codesourcery.com>
4457
4458 * breakpoint.c (create_breakpoints_sal_default): Remove
4459 parameter 'lsal'. Update declaration.
4460 (bkpt_create_breakpoints_sal): Caller update.
4461 (tracepoint_create_breakpoints_sal): Likewise.
4462
4463 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4464 Yao Qi <yao@codesourcery.com>
4465
4466 * NEWS: Mention the new option '--skip-unavailable' of command
4467 -data-list-register-values.
4468 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4469 --skip-unavailable option. Adjust to use output_register.
4470 (output_register): Add new 'skip_unavailable' parameter.
4471 Handle it.
4472
4473 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4474
4475 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4476 common/i386-gcc-cpuid.h.
4477 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4478 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4479 Copy the latest version from upstream gcc.
4480 * common/linux-btrace.c: Include i386-cpuid.h.
4481 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4482 call to i386_cpuid.
4483 (cpu_supports_btrace): Likewise.
4484 * go32-nat.c: Include i386-cpuid.h.
4485 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4486
4487 2013-06-19 Doug Evans <dje@google.com>
4488
4489 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4490 (get_section_index): Ditto.
4491
4492 2013-06-19 Tom Tromey <tromey@redhat.com>
4493
4494 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4495 "dprintf" help.
4496
4497 2013-06-18 Doug Evans <dje@google.com>
4498
4499 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4500 before using it.
4501 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4502 Move test of cu_index closer to use. Print complaint if cu_index
4503 is bad.
4504
4505 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4506
4507 * machoread.c (oso_vector): Delete this global.
4508 (macho_register_oso): Add new parameter "oso_vector_ptr".
4509 Use it instead of the "oso_vector" global.
4510 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4511 (macho_symfile_read): Use a local oso_vector, to be free'ed
4512 at the end of this function, in place of the old "oso_vector"
4513 global. Update various function calls accordingly. Use one
4514 single cleanup chain for the entire function.
4515
4516 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4517
4518 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4519 DWARF2_PER_OBJFILE by uses of DATA instead.
4520
4521 2013-06-18 Tom Tromey <tromey@redhat.com>
4522
4523 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4524 argument.
4525 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4526 Special case signals other than GDB_SIGNAL_TRAP.
4527 (explains_signal_watchpoint): New function.
4528 (base_breakpoint_explains_signal): Add 'sig' argument.
4529 (initialize_breakpoint_ops): Set 'explains_signal' method for
4530 watchpoints.
4531 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4532 signal argument.
4533 (bpstat_explains_signal): Likewise.
4534 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4535
4536 2013-06-18 Tom Tromey <tromey@redhat.com>
4537
4538 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4539
4540 2013-06-18 Tom Tromey <tromey@redhat.com>
4541
4542 * python/python.c (finish_python_initialization): Decref
4543 'pythondir' on failure path as well.
4544
4545 2013-06-18 Tom Tromey <tromey@redhat.com>
4546
4547 PR symtab/15391:
4548 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4549 after taking bits_to_skip into account. Sign extend byte_offset.
4550 * utils.h (gdb_sign_extend): Declare.
4551 * utils.c (gdb_sign_extend): New function.
4552
4553 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4554
4555 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4556
4557 2013-06-17 Pierre Muller <muller@sourceware.org>
4558
4559 * corelow.c (core_open): Print GDB signal name instead of target
4560 signal number.
4561
4562 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4563
4564 * .gitignore: Add /gcore.
4565
4566 2013-06-13 Doug Evans <dje@google.com>
4567
4568 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4569 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4570
4571 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4572
4573 * stack.c (backtrace_command_1): Fix indentation.
4574
4575 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4576
4577 * window-nat.c (thread_rec): Add missing empty line after
4578 local variable declaration.
4579
4580 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4581
4582 * windows-nat.c (thread_rec): Revert format used to print
4583 error code returned by SuspendThread from %d back to %u.
4584
4585 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4586
4587 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4588 ID in debug trace.
4589 (get_windows_debug_event): Likewise, for all debug traces.
4590
4591 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4592
4593 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4594 warning message.
4595
4596 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4597 Yao Qi <yao@codesourcery.com>
4598
4599 * mi/mi-main.c (get_register): Remove declaration.
4600 (output_register): Declare.
4601 (mi_cmd_data_list_register_values): Remove local variable
4602 'tuple_cleanup'. Move some code into output_register.
4603 (get_register): Renamed to ...
4604 (output_register): ... this. Output the register's
4605 "number" ui_out tuple here.
4606
4607 2013-06-07 Pedro Alves <palves@redhat.com>
4608
4609 * darwin-nat.c: Fix formating in copyright header.
4610 * darwin-nat.h: Likewise.
4611 * gnu-nat.c: Likewise.
4612 * machoread.c: Likewise.
4613
4614 2013-06-07 Pedro Alves <palves@redhat.com>
4615
4616 PR server/14823
4617 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4618 static. Output a global target description pointer.
4619 (init_registers_${name}): Adjust to initialize a
4620 target description structure.
4621
4622 2013-06-07 Will Newton <will.newton@linaro.org>
4623
4624 * printcmd.c (build_address_symbolic): Call
4625 gdbarch_addr_bits_remove for text minimal symbols.
4626
4627 2013-06-07 Will Newton <will.newton@linaro.org>
4628
4629 * MAINTAINERS: Add myself to Write After Approval.
4630
4631 2013-06-07 Yao Qi <yao@codesourcery.com>
4632
4633 * tracepoint.c (start_tracing): Move code to ...
4634 (trace_reset_local_state): ... here. New.
4635 (disconnect_tracing): Don't call set_current_traceframe,
4636 set_tracepoint_num, and set_traceframe_context. Call
4637 trace_reset_local_state instead.
4638 (tfile_close): Call trace_reset_local_state.
4639 * ctf.c (ctf_close): Likewise.
4640 * remote.c (remote_close): Likewise.
4641 * tracepoint.h (trace_reset_local_state): Declare.
4642
4643 2013-06-06 Doug Evans <dje@google.com>
4644
4645 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4646 and fix header docs.
4647
4648 2013-06-05 Doug Evans <dje@google.com>
4649 Keith Seitz <keiths@redhat.com>
4650
4651 PR 15519
4652 * cp-namespace.c (find_symbol_in_baseclass): Call
4653 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4654 Check result of call to lookup_symbol_static.
4655 Call lookup_static_symbol_aux unconditionally.
4656 Call check_typedef on base types before accessing them.
4657 (cp_lookup_nested_symbol): Fix comment.
4658
4659 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4660
4661 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4662 minimal symbols pointing to function descriptors.
4663
4664 2013-06-05 Tom Tromey <tromey@redhat.com>
4665
4666 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4667
4668 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4669 Pedro Alves <palves@redhat.com>
4670
4671 * remote.c (remote_wait_as): Restore signal handler before returning
4672 when GDB gets a notification.
4673
4674 2013-06-04 Gary Benson <gbenson@redhat.com>
4675
4676 PR 2328
4677 * breakpoint.h (handle_solib_event): Moved function declaration
4678 to solib.h.
4679 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4680 (bpstat_stop_status): Pass new argument to handle_solib_event.
4681 * solib.h (update_solib_breakpoints): New function declaration.
4682 (handle_solib_event): Moved function declaration from
4683 breakpoint.h.
4684 * solib.c (update_solib_breakpoints): New function.
4685 (handle_solib_event): Moved function from breakpoint.c.
4686 Updated to call solib_ops->handle_event if not NULL.
4687 * solist.h (target_so_ops): New fields "update_breakpoints" and
4688 "handle_event".
4689 * infrun.c (set_stop_on_solib_events): New function.
4690 (_initialize_infrun): Use the above for "set
4691 stop-on-solib-events".
4692 (handle_inferior_event): Pass new argument to handle_solib_event.
4693 * solib-svr4.c (probe.h): New include.
4694 (svr4_free_library_list): New forward declaration.
4695 (probe_action): New enum.
4696 (probe_info): New struct.
4697 (probe_info): New static variable.
4698 (NUM_PROBES): New definition.
4699 (svr4_info): New fields "using_xfer", "probes_table" and
4700 "solib_list".
4701 (free_probes_table): New function.
4702 (free_solib_list): New function.
4703 (svr4_pspace_data_cleanup): Free probes table and solib list.
4704 (svr4_copy_library_list): New function.
4705 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4706 (svr4_read_so_list): New parameter "prev_lm".
4707 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4708 (svr4_current_sos): New function.
4709 (probe_and_action): New struct.
4710 (hash_probe_and_action): New function.
4711 (equal_probe_and_action): Likewise.
4712 (register_solib_event_probe): Likewise.
4713 (solib_event_probe_at): Likewise.
4714 (solib_event_probe_action): Likewise.
4715 (solist_update_full): Likewise.
4716 (solist_update_incremental): Likewise.
4717 (disable_probes_interface_cleanup): Likewise.
4718 (svr4_handle_solib_event): Likewise.
4719 (svr4_update_solib_event_breakpoint): Likewise.
4720 (svr4_update_solib_event_breakpoints): Likewise.
4721 (svr4_create_solib_event_breakpoints): Likewise.
4722 (enable_break): Free probes table before creating breakpoints.
4723 Use svr4_create_solib_event_breakpoints to create breakpoints.
4724 (svr4_solib_create_inferior_hook): Free the solib list.
4725 (_initialize_svr4_solib): Initialise
4726 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4727
4728 2013-06-04 Gary Benson <gbenson@redhat.com>
4729
4730 * target.h (target_ops): New field
4731 "to_augmented_libraries_svr4_read".
4732 (target_augmented_libraries_svr4_read): New macro.
4733 * target.c (update_current_target): Handle
4734 to_augmented_libraries_svr4_read.
4735 * remote.c (remote_state): New field
4736 "augmented_libraries_svr4_read".
4737 (remote_augmented_libraries_svr4_read_feature): New function.
4738 (remote_protocol_features): Add entry for
4739 "augmented-libraries-svr4-read".
4740 (remote_augmented_libraries_svr4_read): New function.
4741 (init_remote_ops): Initialize
4742 remote_ops.to_augmented_libraries_svr4_read.
4743
4744 2013-06-04 Gary Benson <gbenson@redhat.com>
4745
4746 * NEWS: Update.
4747
4748 2013-06-04 Gary Benson <gbenson@redhat.com>
4749
4750 * objfiles.h (inhibit_section_map_updates): New function
4751 declaration.
4752 (resume_section_map_updates): Likewise.
4753 (resume_section_map_updates_cleanup): Likewise.
4754 * objfiles.c (objfile_pspace_info): Removed field
4755 "objfiles_changed_p". New fields "new_objfiles_available",
4756 "section_map_dirty" and "inhibit_updates".
4757 (allocate_objfile): Set new_objfiles_available.
4758 (free_objfile): Set section_map_dirty.
4759 (objfile_relocate1): Likewise.
4760 (in_plt_section): Likewise.
4761 (find_pc_section): Update the conditions under which the
4762 section map will be updated.
4763 (inhibit_section_map_updates): New function.
4764 (resume_section_map_updates): Likewise.
4765 (resume_section_map_updates_cleanup): Likewise.
4766
4767 2013-06-04 Gary Benson <gbenson@redhat.com>
4768
4769 * probe.h (get_probe_argument_count): New declaration.
4770 (evaluate_probe_argument): Likewise.
4771 * probe.c (get_probe_argument_count): New function.
4772 (evaluate_probe_argument): Likewise.
4773 (probe_safe_evaluate_at_pc): Use the above new functions.
4774
4775 2013-06-04 Alan Modra <amodra@gmail.com>
4776
4777 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4778 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4779 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4780 target mem reads on optional insns.
4781 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4782 ppc_insns_match_pattern calls.
4783 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4784 Add match for power7 thread safety insns, and new order of
4785 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4786 invocation in comment, and update rest of comment.
4787 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4788 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4789 (ppc64_standard_linkage2_target): Update insn offsets.
4790 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4791 stubs first. Update calls.
4792
4793 2013-06-04 Yao Qi <yao@codesourcery.com>
4794
4795 * solib.c (solib_find): Don't need dir separator if path has
4796 drive spec.
4797
4798 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4799
4800 Revert (indirectly causes a SIGSEGV):
4801 * machoread.c (macho_symfile_read): Assign first cleanup to
4802 'back_to'.
4803
4804 2013-06-03 Yao Qi <yao@codesourcery.com>
4805
4806 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4807 mi-parse.c. Make them static.
4808 (mi_all_values): Likewise.
4809 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4810 mi_parse_print_values. Make it external.
4811 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4812 Remove the declarations.
4813 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4814 * mi/mi-parse.h (mi_parse_print_values): Declare.
4815 * mi/mi-cmd-stack.c: Include mi-parse.h.
4816 (parse_print_values): Remove
4817 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4818 of parse_print_values.
4819 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4820
4821 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4822 Yao Qi <yao@codesourcery.com>
4823
4824 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4825 (encode_actions): Move code to ...
4826 (all_tracepoint_actions_and_cleanup): ... here. New.
4827 (trace_dump_command): Likewise.
4828
4829 2013-05-30 Tom Tromey <tromey@redhat.com>
4830
4831 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4832
4833 2013-05-30 Tom Tromey <tromey@redhat.com>
4834
4835 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4836 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4837 'old_chain' argument. Add 'parser_result' argument.
4838 (gdb_xml_create_parser_and_cleanup): Remove old version.
4839 (gdb_xml_parse_quick): Update.
4840 (xml_process_xincludes): Update.
4841 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4842 declare.
4843
4844 2013-05-30 Tom Tromey <tromey@redhat.com>
4845
4846 * probe.c (collect_probes): Check arguments for NULL before
4847 calling compile_rx_or_error.
4848 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4849 Remove NULL return.
4850
4851 2013-05-30 Tom Tromey <tromey@redhat.com>
4852
4853 * infrun.c (adjust_pc_after_break): Introduce an outer null
4854 cleanup.
4855
4856 2013-05-30 Tom Tromey <tromey@redhat.com>
4857
4858 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4859
4860 2013-05-30 Tom Tromey <tromey@redhat.com>
4861
4862 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4863 for 'old_chain'. Do not check 'head' before processing
4864 cleanups.
4865
4866 2013-05-30 Tom Tromey <tromey@redhat.com>
4867
4868 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4869 "cleanup_tuple".
4870
4871 2013-05-30 Tom Tromey <tromey@redhat.com>
4872
4873 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4874 inner scope. Unconditionally call do_cleanups.
4875
4876 2013-05-30 Tom Tromey <tromey@redhat.com>
4877
4878 * source.c (find_and_open_source): Call do_cleanups.
4879
4880 2013-05-30 Tom Tromey <tromey@redhat.com>
4881
4882 * linux-thread-db.c (thread_db_load_search): Unconditionally
4883 call do_cleanups.
4884
4885 2013-05-30 Tom Tromey <tromey@redhat.com>
4886
4887 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4888 for 'cleanup'; instead use a later one.
4889
4890 2013-05-30 Tom Tromey <tromey@redhat.com>
4891
4892 * python/py-breakpoint.c (bppy_get_commands): Use
4893 explicit, unconditional return.
4894 * python/py-frame.c (frapy_read_var): Likewise.
4895 * python/python.c (gdbpy_decode_line): Likewise.
4896
4897 2013-05-30 Tom Tromey <tromey@redhat.com>
4898
4899 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4900 do_cleanups on all return paths.
4901
4902 2013-05-30 Tom Tromey <tromey@redhat.com>
4903
4904 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4905
4906 2013-05-30 Tom Tromey <tromey@redhat.com>
4907
4908 * stabsread.c (read_struct_type): Call do_cleanups along
4909 all return paths.
4910
4911 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4912
4913 * mips-linux-tdep.c: Adjust formatting throughout.
4914
4915 2013-05-30 Tom Tromey <tromey@redhat.com>
4916
4917 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4918 along all return paths.
4919
4920 2013-05-30 Tom Tromey <tromey@redhat.com>
4921
4922 * symfile.c (find_separate_debug_file): Call do_cleanups
4923 along all return paths.
4924
4925 2013-05-30 Tom Tromey <tromey@redhat.com>
4926
4927 * symtab.c (search_symbols): Introduce a null cleanup for
4928 'retval_chain'.
4929
4930 2013-05-30 Tom Tromey <tromey@redhat.com>
4931
4932 * python/py-value.c (valpy_binop): Call do_cleanups before
4933 exiting loop.
4934
4935 2013-05-30 Tom Tromey <tromey@redhat.com>
4936
4937 * python/py-prettyprint.c (print_children): Remove extra
4938 do_cleanups call.
4939
4940 2013-05-30 Tom Tromey <tromey@redhat.com>
4941
4942 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4943 all return paths.
4944
4945 2013-05-30 Tom Tromey <tromey@redhat.com>
4946
4947 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4948 along all return paths.
4949
4950 2013-05-30 Tom Tromey <tromey@redhat.com>
4951
4952 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4953 call do_cleanups.
4954
4955 2013-05-30 Tom Tromey <tromey@redhat.com>
4956
4957 * varobj.c (c_value_of_root): Call do_cleanups along all
4958 return paths.
4959
4960 2013-05-30 Tom Tromey <tromey@redhat.com>
4961
4962 * tracepoint.c (trace_dump_command): Unconditionally call
4963 do_cleanups.
4964
4965 2013-05-30 Tom Tromey <tromey@redhat.com>
4966
4967 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4968 do_cleanups earlier.
4969
4970 2013-05-30 Tom Tromey <tromey@redhat.com>
4971
4972 * machoread.c (macho_symfile_read): Assign first cleanup to
4973 'back_to'.
4974
4975 2013-05-30 Tom Tromey <tromey@redhat.com>
4976
4977 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4978
4979 2013-05-30 Tom Tromey <tromey@redhat.com>
4980
4981 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4982
4983 2013-05-30 Tom Tromey <tromey@redhat.com>
4984
4985 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4986 call discard_cleanups.
4987 (inf_ptrace_attach): Likewise.
4988
4989 2013-05-30 Tom Tromey <tromey@redhat.com>
4990
4991 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4992 return paths.
4993 (mips_initialize): Likewise.
4994 (common_open): Call do_cleanups.
4995
4996 2013-05-30 Tom Tromey <tromey@redhat.com>
4997
4998 * utils.c (internal_vproblem): Call do_cleanups.
4999
5000 2013-05-30 Tom Tromey <tromey@redhat.com>
5001
5002 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5003
5004 2013-05-30 Tom Tromey <tromey@redhat.com>
5005
5006 * cli/cli-script.c (setup_user_args): Don't return after error.
5007
5008 2013-05-30 Tom Tromey <tromey@redhat.com>
5009
5010 * somread.c (som_symtab_read): Call do_cleanups.
5011
5012 2013-05-30 Tom Tromey <tromey@redhat.com>
5013
5014 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5015
5016 2013-05-30 Tom Tromey <tromey@redhat.com>
5017
5018 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5019 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5020 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5021 * source.c (show_substitute_path_command): Call do_cleanups.
5022 (unset_substitute_path_command, set_substitute_path_command):
5023 Likewise.
5024 * symfile.c (load_command): Call do_cleanups.
5025
5026 2013-05-30 Tom Tromey <tromey@redhat.com>
5027
5028 * contrib/cleanup_check.py: New file.
5029 * contrib/gcc-with-excheck: Add option parsing.
5030
5031 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5032
5033 * windows-nat.c (windows_delete_thread): Add missing space
5034 in cast expression.
5035
5036 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5037
5038 * inferior.c (top level): Include tilde.h.
5039 (add_inferior_command): Call tilde_expand on the value of 'exec'
5040 argument.
5041
5042 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5043 Yao Qi <yao@codesourcery.com>
5044
5045 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5046 Caller update.
5047 (encode_actions): Likewise.
5048 * remote.c (remote_download_tracepoint): Caller update.
5049 * tracepoint.h (encode_actions): Update declaration.
5050
5051 2013-05-30 Pedro Alves <palves@redhat.com>
5052
5053 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5054 pointer.
5055
5056 2013-05-30 Yao Qi <yao@codesourcery.com>
5057
5058 * remote.c (remote_check_symbols): Remove unused parameter
5059 'objfile'.
5060 Declaration update.
5061 (remote_start_remote, remote_new_objfile): Caller update.
5062
5063 2013-05-30 Yao Qi <yao@codesourcery.com>
5064
5065 * mi/mi-cmds.c (mi_cmds): Define MI command
5066 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5067 DEF_MI_CMD_CLI.
5068
5069 2013-05-29 Pedro Alves <palves@redhat.com>
5070
5071 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5072 (remote_insert_watchpoint, remote_remove_watchpoint)
5073 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5074 (remote_verify_memory, compare_sections_command)
5075 (remote_search_memory): Set the general process/thread on the
5076 remote side.
5077
5078 2013-05-29 Pedro Alves <palves@redhat.com>
5079
5080 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5081 (_initialize_aarch64_tdep): Don't call
5082 initialize_tdesc_aarch64_without_fpu.
5083 * features/Makefile (WHICH): Remove reference to
5084 aarch64-without-fpu.
5085 * features/aarch64-without-fpu.c: Delete file.
5086 * regformats/aarch64-without-fpu.dat: Delete file.
5087
5088 2013-05-28 Yao Qi <yao@codesourcery.com>
5089
5090 * tracepoint.c (stringify_collection_list): Remove parameter
5091 'string'.
5092 (encode_actions): Caller update. Remove local variables.
5093
5094 2013-05-24 Yao Qi <yao@codesourcery.com>
5095
5096 * tracepoint.c (TFILE_PID): Remove.
5097 (tfile_open): Don't add thread and inferior.
5098 (tfile_close): Don't set 'inferior_ptid'. Don't call
5099 exit_inferior_silent.
5100 (tfile_thread_alive): Remove.
5101 (init_tfile_ops): Don't set field 'to_thread_alive' of
5102 tfile_ops.
5103
5104 2013-05-23 Doug Evans <dje@google.com>
5105
5106 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5107
5108 2013-05-23 Pedro Alves <palves@redhat.com>
5109
5110 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5111 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5112 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5113 Only define if HAVE_SOCKETS is defined.
5114 * configure.ac: Check for sys/socket.h.
5115 * config.in, configure: Regenerate.
5116
5117 2013-05-23 Pedro Alves <palves@redhat.com>
5118
5119 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5120 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5121 printing uint32_t variables.
5122
5123 2013-05-23 Pedro Alves <palves@redhat.com>
5124
5125 * NEWS: Mention GDBserver range stepping support.
5126
5127 2013-05-23 Yao Qi <yao@codesourcery.com>
5128 Pedro Alves <palves@redhat.com>
5129
5130 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5131 field.
5132 * infcmd.c (step_once, until_next_command): Enable range stepping.
5133 * infrun.c (displaced_step_prepare): Disable range stepping.
5134 (resume): Disable range stepping if stepping over a breakpoint or
5135 we have software watchpoints. If range stepping is enabled,
5136 assert the thread is in the stepping range.
5137 (clear_proceed_status_thread): Clear may_range_step.
5138 (handle_inferior_event): Disable range stepping as soon as we know
5139 the thread that hit the event. Re-enable it whenever we're going
5140 to step with a step range.
5141 * remote.c (struct vCont_action_support) <r>: New field.
5142 (use_range_stepping): New global.
5143 (remote_vcont_probe): Handle 'r' action.
5144 (append_resumption): Append an 'r' action if the thread may range
5145 step.
5146 (show_range_stepping): New function.
5147 (set_range_stepping): New function.
5148 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5149 'set range-stepping' and 'show range-stepping' commands.
5150 * NEWS: Mention range stepping, the new vCont;r action, and the
5151 new "set/show range-stepping" commands.
5152
5153 2013-05-23 Yao Qi <yao@codesourcery.com>
5154 Pedro Alves <palves@redhat.com>
5155
5156 * remote.c (struct vCont_action_support): New struct.
5157 (struct remote_state) <support_vCont_t>: Remove field.
5158 <vCont_actions_support>: New field.
5159 (remote_vcont_probe, remote_stop_ns): Update.
5160
5161 2013-05-23 Yao Qi <yao@codesourcery.com>
5162 Pedro Alves <palves@redhat.com>
5163
5164 * gdbthread.h (pc_in_thread_step_range): New declaration.
5165 * thread.c (pc_in_thread_step_range): New function.
5166 * infrun.c (handle_inferior_event): Use it.
5167
5168 2013-05-23 Joel Brobecker <brobecker@adacore.com>
5169
5170 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5171 of sprintf.
5172
5173 2013-05-22 Keith Seitz <keiths@redhat.com>
5174
5175 * ada-lang.c (is_known_support_routine): Add explicit free of
5176 'func_name' from find_frame_funname.
5177 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5178 for func_name from find_frame_funname.
5179 * python/py-frame.c (frapy_name): Add explicit free of
5180 'name' from find_frame_funname.
5181 * stack.c (find_frame_funname): Add comment explaining that
5182 funcp must be freed by the caller.
5183 Return copy of symbol names instead of pointers.
5184 (print_frame): Add a cleanup for 'funname' from
5185 find_frame_funname.
5186 * stack.h (find_frame_funname): Remove "const" from
5187 'funname' parameter.
5188
5189 2013-05-22 Tom Tromey <tromey@redhat.com>
5190
5191 PR c++/15401:
5192 * c-valprint.c (c_value_print): Use value_addr for
5193 references. Convert back to reference type with value_ref.
5194
5195 2013-05-22 Eli Zaretskii <eliz@gnu.org>
5196
5197 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5198 unloaded DLL, it will be done by handle_solib_event. See
5199 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5200 details.
5201
5202 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5203
5204 * ui-out.c: Create typedef ui_out_level_p and define vector
5205 operations for that type.
5206 (struct ui_out): Use a vector instead of an array.
5207 (current_level): Return level from a vector.
5208 (push_level): Create a level in a vector.
5209 (pop_level): Delete a level in a vector.
5210 (ui_out_new): Create initial level zero level, and store in a
5211 vector.
5212 (ui_out_destroy): Add vector cleanup.
5213
5214 2013-05-22 Pedro Alves <palves@redhat.com>
5215
5216 * python/python-internal.h (gdb_Py_DECREF): Tag with
5217 "ARI: editCase function".
5218
5219 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5220
5221 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5222
5223 2013-05-21 Pedro Alves <palves@redhat.com>
5224
5225 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5226 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5227 * python/py-utils.c (py_decref): Don't check for NULL before
5228 calling Py_DECREF.
5229
5230 2013-05-21 Pedro Alves <palves@redhat.com>
5231
5232 * python/py-utils.c (py_decref): Remove extra braces.
5233 (gdb_pymodule_addobject): Remove extra braces.
5234 * python-internal.h (gdb_Py_DECREF): New static inline function.
5235 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5236
5237 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5238
5239 * breakpoints.c (detach_breakpoints): Do not
5240 detach breakpoints locations with loc_type bp_loc_other.
5241
5242 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5243
5244 Workaround Python 2.6.
5245 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5246 a block.
5247
5248 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5249
5250 Code cleanup: constification.
5251 * solib.c (solib_ops): Make return type and ops variable type const.
5252 (set_solib_ops): Make the new_ops parameter and ops variable const.
5253 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5254 (solib_add, solib_keep_data_in_core, clear_solib)
5255 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5256 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5257 const.
5258 * solib.h (set_solib_ops): Make the new_ops parameter const.
5259
5260 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5261
5262 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5263 variable.
5264 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5265 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5266 (SYSTEM_GDBINIT_FILES): New variables.
5267 (all): Add stamp-system-gdbinit.
5268 (stamp-system-gdbinit): New rule.
5269 (clean-system-gdbinit, install-system-gdbinit)
5270 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5271 (install-only): Add dependency on install-system-gdbinit.
5272 (uninstall): Add dependency on uninstall-system-gdbinit.
5273 (clean): Add dependency on clean-system-gdbinit.
5274 * system-gdbinit/elinos.py: New file.
5275 * system-gdbinit/wrs-linux.py: New file.
5276
5277 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5278
5279 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5280
5281 2013-05-21 Hui Zhu <hui@codesourcery.com>
5282
5283 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5284 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5285 * mi/mi-cmd-break.c (ctype.h): New include.
5286 (gdb_obstack.h): New include.
5287 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5288 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5289 (mi_cmd_dprintf_insert): New.
5290 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5291 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5292
5293 2013-05-20 Tom Tromey <tromey@redhat.com>
5294
5295 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5296
5297 2013-05-20 Tom Tromey <tromey@redhat.com>
5298
5299 * python/py-value.c (valpy_get_dynamic_type): Simplify
5300 dynamic_type assignment. Use Py_XINCREF.
5301
5302 2013-05-20 Tom Tromey <tromey@redhat.com>
5303
5304 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5305
5306 2013-05-20 Tom Tromey <tromey@redhat.com>
5307
5308 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5309 (gdbpy_selected_frame): Move object-construction code
5310 out of TRY_CATCH.
5311
5312 2013-05-20 Tom Tromey <tromey@redhat.com>
5313
5314 * python/py-arch.c (gdbpy_initialize_arch): Use
5315 gdb_pymodule_addobject.
5316 * python/py-block.c (gdbpy_initialize_blocks): Use
5317 gdb_pymodule_addobject.
5318 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5319 gdb_pymodule_addobject.
5320 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5321 gdb_pymodule_addobject.
5322 * python/py-event.c (gdbpy_initialize_event_generic): Use
5323 gdb_pymodule_addobject.
5324 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5325 gdb_pymodule_addobject.
5326 * python/py-evts.c (add_new_registry): Use
5327 gdb_pymodule_addobject.
5328 (gdbpy_initialize_py_events): Likewise.
5329 * python/py-finishbreakpoint.c
5330 (gdbpy_initialize_finishbreakpoints): Use
5331 gdb_pymodule_addobject.
5332 * python/py-frame.c (gdbpy_initialize_frames): Use
5333 gdb_pymodule_addobject.
5334 * python/py-function.c (gdbpy_initialize_functions): Use
5335 gdb_pymodule_addobject.
5336 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5337 gdb_pymodule_addobject.
5338 * python/py-infthread.c (gdbpy_initialize_thread): Use
5339 gdb_pymodule_addobject.
5340 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5341 gdb_pymodule_addobject.
5342 * python/py-param.c (gdbpy_initialize_parameters): Use
5343 gdb_pymodule_addobject.
5344 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5345 gdb_pymodule_addobject.
5346 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5347 gdb_pymodule_addobject.
5348 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5349 gdb_pymodule_addobject.
5350 * python/py-type.c (gdbpy_initialize_types): Use
5351 gdb_pymodule_addobject.
5352 * python/py-utils.c (gdb_pymodule_addobject): New function.
5353 * python/py-value.c (gdbpy_initialize_values): Use
5354 gdb_pymodule_addobject.
5355 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5356 * python/python.c (_initialize_python): Use
5357 gdb_pymodule_addobject.
5358
5359 2013-05-20 Tom Tromey <tromey@redhat.com>
5360
5361 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5362 * python/py-param.c (get_set_value, get_show_value): Use
5363 explicit decrefs.
5364 * python/python.c (start_type_printers, apply_type_printers):
5365 Use explicit decrefs.
5366
5367 2013-05-20 Tom Tromey <tromey@redhat.com>
5368
5369 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5370 incref the module.
5371
5372 2013-05-20 Tom Tromey <tromey@redhat.com>
5373
5374 * python/python.c (gdbpy_run_events): Decref the result
5375 of PyObject_CallObject.
5376
5377 2013-05-20 Tom Tromey <tromey@redhat.com>
5378
5379 * python/py-symtab.c (set_sal): Use
5380 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5381 (symtab_and_line_to_sal_object): Update.
5382
5383 2013-05-20 Tom Tromey <tromey@redhat.com>
5384
5385 * python/py-param.c (compute_enum_values): Decref 'item'.
5386
5387 2013-05-20 Tom Tromey <tromey@redhat.com>
5388
5389 * mi/mi-main.c: Include python-internal.h.
5390 (mi_cmd_list_features): Check gdb_python_initialized.
5391 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5392 (python_inferior_exit, python_new_objfile, add_thread_object)
5393 (delete_thread_object, py_free_inferior): Check
5394 gdb_python_initialized.
5395 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5396 gdb_python_initialized.
5397 * python/py-type.c (save_objfile_types): Check
5398 gdb_python_initialized.
5399 * python/python-internal.h (gdb_python_initialized): Declare.
5400 * python/python.c (ensure_python_env): Throw exception if
5401 Python not initialized.
5402 (before_prompt_hook, source_python_script_for_objfile)
5403 (start_type_printers, apply_type_printers,
5404 free_type_printers): Check gdb_python_initialized.
5405 * varobj.c (varobj_get_display_hint)
5406 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5407 (install_new_value_visualizer, varobj_set_visualizer)
5408 (value_get_print_value): Check gdb_python_initialized.
5409
5410 2013-05-20 Tom Tromey <tromey@redhat.com>
5411
5412 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5413 Check errors.
5414 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5415 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5416 Check errors.
5417 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5418 Check errors.
5419 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5420 Check errors.
5421 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5422 Check errors.
5423 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5424 init function to return 'int'.
5425 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5426 Return 'int'. Check errors.
5427 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5428 Check errors.
5429 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5430 Return 'int'. Check errors.
5431 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5432 Check errors.
5433 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5434 Check errors.
5435 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5436 Check errors.
5437 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5438 Check errors.
5439 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5440 Check errors.
5441 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5442 Check errors.
5443 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5444 Check errors.
5445 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5446 Check errors.
5447 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5448 Check errors.
5449 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5450 Check errors.
5451 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5452 Check errors.
5453 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5454 Check errors.
5455 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5456 Check errors.
5457 * python/python-internal.h (gdbpy_initialize_auto_load,
5458 gdbpy_initialize_values, gdbpy_initialize_frames,
5459 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5460 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5461 gdbpy_initialize_blocks, gdbpy_initialize_types,
5462 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5463 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5464 gdbpy_initialize_finishbreakpoints,
5465 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5466 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5467 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5468 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5469 gdbpy_initialize_signal_event,
5470 gdbpy_initialize_breakpoint_event,
5471 gdbpy_initialize_continue_event,
5472 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5473 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5474 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5475 * python/python.c (gdb_python_initialized): New global.
5476 (gdbpy_initialize_events): Return 'int'. Check errors.
5477 (_initialize_python): Check errors. Set
5478 gdb_python_initialized.
5479
5480 2013-05-20 Tom Tromey <tromey@redhat.com>
5481
5482 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5483 Decref the reslut of PyObject_CallMethod.
5484
5485 2013-05-20 Tom Tromey <tromey@redhat.com>
5486
5487 * python/py-event.c (gdbpy_initialize_event_generic): Return
5488 early if PyType_Ready fails.
5489
5490 2013-05-20 Tom Tromey <tromey@redhat.com>
5491
5492 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5493 as 'default' in the switch.
5494
5495 2013-05-20 Tom Tromey <tromey@redhat.com>
5496
5497 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5498 get_addr_from_python calls out of TRY_CATCH.
5499 (infpy_write_memory, infpy_search_memory): Likewise.
5500 * python/py-utils.c (get_addr_from_python): Return negative
5501 value on error. Use TRY_CATCH.
5502 * python/python-internal.h (get_addr_from_python): Use
5503 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5504
5505 2013-05-20 Tom Tromey <tromey@redhat.com>
5506
5507 * python/py-event.c (evpy_emit_event): Decref the
5508 result of PyObject_CallFunctionObjArgs.
5509
5510 2013-05-20 Tom Tromey <tromey@redhat.com>
5511
5512 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5513 Correctly decref.
5514
5515 2013-05-20 Tom Tromey <tromey@redhat.com>
5516
5517 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5518
5519 2013-05-20 Tom Tromey <tromey@redhat.com>
5520
5521 * python/py-event.h (gdbpy_initialize_event_generic): Use
5522 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5523 * python/py-evts.c (add_new_registry): Use
5524 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5525 * python/python-internal.h
5526 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5527
5528 2013-05-20 Tom Tromey <tromey@redhat.com>
5529
5530 * python/py-arch.c (archpy_disassemble): Update.
5531 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5532 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5533 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5534 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5535 macro.
5536 (GDB_PY_HANDLE_EXCEPTION): Update.
5537 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5538
5539 2013-05-20 Tom Tromey <tromey@redhat.com>
5540
5541 * python/python-internal.h (events_object_type): Remove.
5542
5543 2013-05-20 Tom Tromey <tromey@redhat.com>
5544
5545 * python/py-event.h (evpy_emit_event): Use
5546 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5547 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5548 New macro.
5549
5550 2013-05-20 Tom Tromey <tromey@redhat.com>
5551
5552 * py-evtregistry.c (create_event_object): Decref
5553 eventregistry_object if PyList_New fails.
5554
5555 2013-05-20 Tom Tromey <tromey@redhat.com>
5556
5557 * py-cmd.c (gdbpy_string_to_argv): Check result of
5558 PyList_New.
5559
5560 2013-05-20 Tom Tromey <tromey@redhat.com>
5561
5562 * python/python.c (before_prompt_hook): Add cleanup to
5563 decref 'hook'.
5564
5565 2013-05-20 Tom Tromey <tromey@redhat.com>
5566
5567 * python/py-function.c (fnpy_init): Decref result of
5568 PyObject_GetAttrString.
5569
5570 2013-05-20 Tom Tromey <tromey@redhat.com>
5571
5572 * python/py-threadevent.c (get_event_thread): Use
5573 CPYCHECKER_RETURNS_BORROWED_REF.
5574 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5575 New define.
5576 (pspace_to_pspace_object, objfile_to_objfile_object)
5577 (find_thread_object): Use it.
5578
5579 2013-05-20 Tom Tromey <tromey@redhat.com>
5580
5581 * python/py-arch.c (arch_object_type): Use
5582 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5583 * python/py-block.c (block_syms_iterator_object_type):
5584 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5585 * python/py-bpevent.c (breakpoint_event_object_type):
5586 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5587 * python/py-cmd.c (cmdpy_object_type): Use
5588 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5589 * python/py-continueevent.c (continue_event_object_type):
5590 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5591 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5592 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5593 * python/py-events.h (thread_event_object_type):
5594 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5595 * python/py-evtregistry.c (eventregistry_object_type): Use
5596 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5597 * python/py-exitedevent.c (exited_event_object_type):
5598 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5599 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5600 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5601 * python/py-function.c (fnpy_object_type): Use
5602 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5603 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5604 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5605 * python/py-infthread.c (thread_object_type): Use
5606 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5607 * python/py-lazy-string.c (lazy_string_object_type):
5608 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5609 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5610 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5611 * python/py-objfile.c (objfile_object_type): Use
5612 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5613 * python/py-param.c (parmpy_object_type):
5614 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5615 * python/py-progspace.c (pspace_object_type):
5616 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5617 * python/py-signalevent.c (signal_event_object_type):
5618 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5619 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5620 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5621 * python/py-type.c (type_object_type, field_object_type)
5622 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5623 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5624 define.
5625 (value_object_type, block_object_type, symbol_object_type)
5626 (event_object_type, stop_event_object_type, breakpoint_object_type)
5627 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5628
5629 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5630
5631 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5632 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5633
5634 2013-05-20 Doug Evans <dje@google.com>
5635
5636 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5637 For Fission.
5638 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5639 reading_dwo_directly.
5640 (struct signatured_type): New member dwo_unit.
5641 (struct die_reader_specs): New member comp_dir.
5642 (create_signatured_type_table_from_index): Use malloc for
5643 all_type_units instead of objfile's obstack.
5644 (create_all_type_units): Ditto.
5645 (fill_in_sig_entry_from_dwo_entry): New function.
5646 (add_type_unit): New function.
5647 (lookup_dwo_signatured_type): New function.
5648 (lookup_dwp_signatured_type): New function.
5649 (lookup_signatured_type): New arg cu. All callers updated.
5650 (init_cu_die_reader): Initialize comp_dir.
5651 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5652 Change assert of matching type signatures to call error on mismatch.
5653 (lookup_dwo_unit): Add assert.
5654 (init_tu_and_read_dwo_dies): New function.
5655 (init_cutu_and_read_dies): Call it.
5656 (build_type_unit_groups): Handle case of no type unit groups created.
5657 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5658 (lookup_dwo_cutu): Tweak complaint.
5659 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5660 (dwarf2_per_objfile_free): Free all_type_units.
5661
5662 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5663
5664 * windows-nat.c (handle_unload_dll): Add missing empty line.
5665
5666 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5667
5668 * dwarf2read.c (prototyped_function_p): New function.
5669 (read_subroutine_type): Use it.
5670
5671 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5672
5673 * rs6000-aix-tdep.c: De-indent some example code provided
5674 as a comment.
5675
5676 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5677
5678 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5679 region is ok for a hardware watchpoint using the new ptrace interface
5680 on Power servers.
5681
5682 2013-05-17 Doug Evans <dje@google.com>
5683
5684 * NEWS: Mention new maintenance commands check-symtabs, and
5685 expand-symtabs, and renamed check-psymtabs.
5686 * psymtab.c (maintenance_check_psymtabs): Renamed from
5687 maintenance_check_symtabs. Only process already-expanded symbol
5688 tables.
5689 (_initialize_psymtab): Update.
5690 * symmisc.c (maintenance_check_symtabs): New function.
5691 (maintenance_expand_name_matcher): New function
5692 (maintenance_expand_file_matcher): New function
5693 (maintenance_expand_symtabs): New function.
5694 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5695 commands.
5696
5697 2013-05-17 Tom Tromey <tromey@redhat.com>
5698
5699 * python/py-inferior.c (infpy_read_memory): Don't call
5700 PyErr_SetString if PyObject_New fails.
5701 * python/py-frame.c (frame_info_to_frame_object): Don't call
5702 PyErr_SetString if PyObject_New fails.
5703
5704 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5705
5706 * acinclude.m4: Add check for dlopen in libdl.
5707 * configure.ac: Ditto.
5708 * configure: Regenerate.
5709
5710 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5711
5712 * frame.c (frame_stash): Convert to htab.
5713 (frame_addr_hash): New function.
5714 (frame_addr_hash_eq): New function.
5715 (frame_stash_create): Convert function to create
5716 a hash table.
5717 (frame_stash_add): Convert function to add an entry to a hash
5718 table.
5719 (frame_stash_find): Convert function to search the hash table.
5720 (frame_stash_invalidate): Convert function to empty the hash
5721 table.
5722 (get_frame_id): Only add to stash if a frame_id is created.
5723 (_initialize_frame): Call frame_stash_create.
5724
5725 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5726
5727 * configure.ac: Ensure MIG is available when building for GNU Hurd
5728 hosts.
5729 * configure: Regenerate.
5730
5731 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5732
5733 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5734
5735 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5736
5737 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5738 all cleanups are done before returning from this function.
5739
5740 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5741
5742 * utils.h: #include "exceptions.h".
5743 (enum errors): Remove partial declaration.
5744
5745 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5746
5747 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5748 * gdbarch.h, gdbarch.c: Regenerate.
5749 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5750 handling.
5751
5752 * rs6000-aix-tdep.h: New file.
5753 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5754 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5755 "xml-utils.h".
5756 (struct field_info, struct ld_info_desc): New types.
5757 (ld_info32_desc, ld_info64_desc): New static constants.
5758 (struct ld_info): New type.
5759 (rs6000_aix_extract_ld_info): New function.
5760 (rs6000_aix_shared_library_to_xml): Likewise.
5761 (rs6000_aix_ld_info_to_xml): Likewise.
5762 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5763 (rs6000_aix_init_osabi): Add call to
5764 set_gdbarch_core_xfer_shared_libraries_aix.
5765 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5766 Remove "xml-utils.h" include.
5767 (LdInfo): Delete typedef.
5768 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5769 Delete macros.
5770 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5771 Adjust code accordingly.
5772 (rs6000_core_ldinfo): Delete, folded into
5773 rs6000_aix_core_xfer_shared_libraries_aix.
5774 (rs6000_xfer_shared_library): Delete.
5775 (rs6000_xfer_shared_libraries): Reimplement.
5776
5777 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5778
5779 * record.c (record_goto_cmdlist): New.
5780 (cmd_record_goto): Split into this ...
5781 (cmd_record_goto_begin): ... this
5782 (cmd_record_goto_end): ... and this.
5783 (_initialize_record): Change "record goto" to prefix command.
5784 Add commands for "record goto begin" and "record goto end".
5785 Add an alias for "record goto start" to "record goto begin".
5786
5787 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5788
5789 * linespec.c (convert_linespec_to_sals): New comment for
5790 SOURCE_FILENAME assignment.
5791
5792 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5793
5794 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5795 internal_warning.
5796
5797 2013-05-14 Tom Tromey <tromey@redhat.com>
5798
5799 * eval.c (parse_and_eval_long): Make 'exp' const.
5800 * value.h (parse_and_eval_long): Update.
5801
5802 2013-05-14 Tom Tromey <tromey@redhat.com>
5803
5804 * ui-file.c (gdb_fopen): Make arguments const.
5805 * ui-file.h (gdb_fopen): Make arguments const.
5806
5807 2013-05-14 Tom Tromey <tromey@redhat.com>
5808
5809 * remote.c (remote_set_trace_notes): Make arguments const.
5810 * target.c (update_current_target): Update cast.
5811 * target.h (to_set_trace_notes): Make arguments const.
5812
5813 2013-05-14 Tom Tromey <tromey@redhat.com>
5814
5815 * go32-nat.c (go32_terminal_info): Make 'args' const.
5816 * inferior.h (child_terminal_info): Update.
5817 * inflow.c (child_terminal_info): Make 'args' const.
5818 * target.c (default_terminal_info): Make 'args' const.
5819 (debug_to_terminal_save_ours): Likewise.
5820 * target.h (struct target_ops) <to_terminal_info>: Make argument
5821 const.
5822
5823 2013-05-13 Tom Tromey <tromey@redhat.com>
5824
5825 * gcore.c (create_gcore_bfd): Make 'filename' const.
5826 * gcore.h (create_gcore_bfd): Make 'filename' const.
5827 * record-full.c (record_full_save): Make 'recfilename' const.
5828 * target.c (target_save_record): Make 'filename' const.
5829 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5830 const.
5831 (target_save_record): Likewise.
5832
5833 2013-05-13 Tom Tromey <tromey@redhat.com>
5834
5835 PR gdb/15338:
5836 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5837 ranges section has been read.
5838
5839 2013-05-13 Tom Tromey <tromey@redhat.com>
5840
5841 PR exp/15364:
5842 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5843 STRUCTOP_PTR>: Return a not_lval value for
5844 EVAL_AVOID_SIDE_EFFECTS.
5845 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5846 for EVAL_AVOID_SIDE_EFFECTS.
5847
5848 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5849
5850 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5851 floating point registers to register type before storing
5852 value.
5853 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5854 Likewise.
5855
5856 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5857 Tom Tromey <tromey@redhat.com>
5858
5859 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5860 New functions.
5861 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5862 Declare.
5863 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5864 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5865 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5866 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5867
5868 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5869 Tom Tromey <tromey@redhat.com>
5870
5871 PR build/15414:
5872 * configure: Rebuild.
5873 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5874 with -Wno-format.
5875
5876 2013-05-10 Pedro Alves <palves@redhat.com>
5877
5878 * remote.c (_initialize_remote): Fix spelling of
5879 qXfer:traceframe-info:read packet in packet config command.
5880
5881 2013-05-10 David Taylor <dtaylor@emc.com>
5882
5883 PR remote/15455
5884
5885 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5886 "QTro" at start of packet.
5887
5888 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5889
5890 * solib-aix.c (solib_aix_relocate_section_addresses):
5891 For the .bss section action, apply the same offset as
5892 the .data section.
5893
5894 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5895
5896 * solib-aix.c (solib_aix_relocate_section_addresses):
5897 Remove FIXME comment.
5898
5899 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5900
5901 PR tdep/15420:
5902 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5903 New functions, directly copied from sparc-sol-thread.c.
5904 * sparc-sol-thread.c: Delete.
5905 * configure.ac: Remove code handling sparc-solaris-thread.c.
5906 * configure: Regenerate.
5907
5908 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5909
5910 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5911 filter logic.
5912 (backtrace_command): Add "no-filters" option parsing.
5913 (_initialize_stack): Alter help to reflect "no-filters" option.
5914 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5915 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5916 (py-frame.o): Add target
5917 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5918 filter files.
5919 * python/python.h: Add new frame filter constants, and flag enum.
5920 (apply_frame_filter): Add definition.
5921 * python/python.c (apply_frame_filter): New non-Python
5922 enabled function.
5923 * python/py-utils.c (py_xdecref): New function.
5924 (make_cleanup_py_xdecref): Ditto.
5925 * python/py-objfile.c: Declare frame_filters dictionary.
5926 (objfpy_dealloc): Add frame_filters dealloc.
5927 (objfpy_new): Initialize frame_filters attribute.
5928 (objfile_to_objfile_object): Ditto.
5929 (objfpy_get_frame_filters): New function.
5930 (objfpy_set_frame_filters): New function.
5931 * python/py-progspace.c: Declare frame_filters dictionary.
5932 (pspy_dealloc): Add frame_filters dealloc.
5933 (pspy_new): Initialize frame_filters attribute.
5934 (pspacee_to_pspace_object): Ditto.
5935 (pspy_get_frame_filters): New function.
5936 (pspy_set_frame_filters): New function.
5937 * python/py-framefilter.c: New file.
5938 * python/lib/gdb/command/frame_filters.py: New file.
5939 * python/lib/gdb/frames.py: New file.
5940 * python/lib/gdb/__init__.py: Initialize global frame_filters
5941 dictionary
5942 * python/lib/gdb/FrameDecorator.py: New file.
5943 * python/lib/gdb/FrameIterator.py: New file.
5944 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5945 * mi/mi-cmds.h: Declare.
5946 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5947 --no-frame-filter logic, and Python frame filter logic.
5948 (stack_enable_frame_filters): New function.
5949 (parse_no_frame_option): Ditto.
5950 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5951 filter logic.
5952 (mi_cmd_stack_list_locals): Ditto.
5953 (mi_cmd_stack_list_args): Ditto.
5954 (mi_cmd_stack_list_variables): Ditto.
5955 * NEWS: Add frame filter note.
5956
5957 2013-05-09 Doug Evans <dje@google.com>
5958
5959 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5960 All callers updated.
5961 (syms_from_objfile): Ditto. Make static.
5962 (symbol_file_add_with_addrs): Renamed from
5963 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5964 num_offsets. All callers updated.
5965 * symfile.h (syms_from_objfile): Delete.
5966
5967 * symfile.c (decrement_reading_symtab): Add assert.
5968 (increment_reading_symtab): Ditto.
5969
5970 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5971
5972 * source.c (forward_search_command): Replace call to getc
5973 by call to fgetc.
5974 (reverse_search_command): Likewise.
5975
5976 2013-05-08 Doug Evans <dje@google.com>
5977
5978 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5979 matching test.
5980
5981 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5982
5983 * sol-thread.c (info_cb): Factorize the code a little.
5984
5985 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5986
5987 * sol-thread.c (info_cb): Rework the output of the "maintenance
5988 info sol-threads" command a bit.
5989
5990 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5991
5992 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5993 Replace ti.ti_startfunc by ti.ti_pc.
5994
5995 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5996
5997 * solib-aix.c (solib_aix_free_library_list): New function
5998 for the case where HAVE_LIBEXPAT is not defined.
5999
6000 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6001
6002 PR breakpoints/15413:
6003 * breakpoint.c (condition_completer): Simplify the code to
6004 disconsider multiple locations of breakpoints when completing the
6005 "condition" command.
6006
6007 2013-05-07 Pierre Muller <muller@sourceware.org>
6008
6009 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6010 instead of <sys/wait.h>.
6011
6012 2013-05-07 Pierre Muller <muller@sourceware.org>
6013
6014 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6015 trailing new line from warning message.
6016
6017 2013-05-07 Pierre Muller <muller@sourceware.org>
6018
6019 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6020 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6021
6022 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6023
6024 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6025 error message (ARI fix).
6026
6027 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6028
6029 * features/library-list-aix.dtd: Replace library-list by
6030 library-list-aix.
6031 * rs6000-nat.c: Replace library-list by library-list-aix
6032 throughout.
6033 * solib-aix.c: Likewise.
6034
6035 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6036
6037 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6038 Renames TARGET_OBJECT_AIX_LIBRARIES.
6039 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6040 TARGET_OBJECT_LIBRARIES_AIX throughout.
6041 * solib-aix.c: Likwise.
6042
6043 2013-05-07 Yao Qi <yao@codesourcery.com>
6044
6045 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6046 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6047
6048 2013-05-07 Yao Qi <yao@codesourcery.com>
6049
6050 * solib-dsbt.c (enable_break): Declare.
6051 (dsbt_current_sos): Remove call to enable_break2.
6052 (enable_break2): Rename to enable_break. Set solib breakpoint
6053 on '_dl_debug_state'.
6054 (enable_break): Remove.
6055
6056 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6057
6058 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6059 debug state prior to replicating existing hardware watchpoints or
6060 breakpoints.
6061
6062 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6063
6064 * gcore.c (gcore_create_callback): Ignore sections with
6065 separate_debug_objfile_backlink != NULL.
6066
6067 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6068 Andrew Jenner <andrew@codesourcery.com>
6069 Chung-Lin Tang <cltang@codesourcery.com>
6070 Julian Brown <julian@codesourcery.com>
6071
6072 Based on the nios2-elf port from Altera Corporation.
6073
6074 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6075 nios2-linux-tdep.o.
6076 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6077 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6078 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6079 * nios2-tdep.h: New.
6080 * nios2-tdep.c: New.
6081 * nios2-linux-tdep.c: New.
6082 * features/Makefile (WHICH): Add nios2-linux.
6083 (nios2-linux-expedite): Set.
6084 * features/nios2-cpu.xml: New.
6085 * features/nios2.xml: New.
6086 * features/nios2-linux.xml: New.
6087 * features/nios2.c: New (autogenerated).
6088 * features/nios2-linux.c: New (autogenerated).
6089 * regformats/nios2-linux.dat: New (autogenerated).
6090 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6091 and commands.
6092
6093 2013-05-06 Doug Evans <dje@google.com>
6094
6095 * symfile.c: Whitespace cleanup.
6096
6097 * solist.h (struct target_so_ops): New member clear_so.
6098 * solib-svr4.c (svr4_clear_so): New function.
6099 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6100 * solib.c (clear_so): Renamed from free_so_symbols.
6101 All callers updated. Call target clear_so if it exists.
6102
6103 2013-05-06 Tom Tromey <tromey@redhat.com>
6104
6105 * ada-lang.c (ada_value_primitive_packed_val): Don't
6106 call value_incref.
6107 * value.c (set_value_parent): Incref the new parent and decref
6108 the old parent.
6109 (value_copy, value_primitive_field): Use set_value_parent.
6110
6111 2013-05-06 Tom Tromey <tromey@redhat.com>
6112
6113 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6114 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6115 if needed.
6116 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6117 * dwarf2read.c (write_constant_as_bytes)
6118 (dwarf2_fetch_constant_bytes): New functions.
6119
6120 2013-05-06 Tom Tromey <tromey@redhat.com>
6121
6122 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6123 parameters.
6124 (dwarf2_const_value_attr): Update.
6125
6126 2013-05-06 Tom Tromey <tromey@redhat.com>
6127
6128 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6129 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6130 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6131 Remove declaration.
6132
6133 2013-05-06 Tom Tromey <tromey@redhat.com>
6134
6135 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6136 objfile's obstack.
6137
6138 2013-05-06 Doug Evans <dje@google.com>
6139
6140 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6141 * stabsread.h (process_one_symbol): Update declaration.
6142 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6143 * elfread.c (elf_symfile_relocate_probe): Ditto.
6144 * psymtab.c (relocate_psymtabs): Ditto.
6145 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6146 (objfile_relocate): Ditto.
6147 * objfiles.h (objfile_relocate): Update declaration.
6148 * symfile.c (relative_addr_info_to_section_offsets): Constify
6149 addrs parameter.
6150 (default_symfile_offsets): Ditto.
6151 (syms_from_objfile_1): Constify offsets parameter.
6152 (syms_from_objfile): Ditto.
6153 (symbol_file_add_with_addrs_or_offsets): Ditto.
6154 (symfile_map_offsets_to_segments): Constify data parameter.
6155 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6156 delta parameters of member relocate.
6157 (struct sym_probe_fns): Constify new_offsets,
6158 delta parameters of member sym_relocate_probe.
6159 (struct sym_fns): Constify section_addr_info parameter of member
6160 sym_offsets.
6161 (relative_addr_info_to_section_offsets): Update declaration.
6162 (default_symfile_offsets): Ditto.
6163 (syms_from_objfile): Ditto.
6164 (symfile_map_offsets_to_segments): Ditto.
6165
6166 * symfile.c (syms_from_objfile_1): Use correct section count when
6167 objfile->sf == NULL.
6168
6169 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6170
6171 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6172
6173 2013-05-06 Doug Evans <dje@google.com>
6174
6175 * psympriv.h (struct partial_symtab): Augment comment for member
6176 section_offsets.
6177
6178 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6179
6180 Reimplement shared library support on ppc-aix...
6181 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6182 * features/library-list-aix.dtd: New file.
6183 * solib-aix.h, solib-aix.c: New file.
6184 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6185 (rs6000_find_toc_address_hook): Delete.
6186 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6187 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6188 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6189 "xml-utils.h".
6190 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6191 (vmap_symtab, fixup_breakpoints): Delete.
6192 (rs6000_xfer_shared_libraries): New function.
6193 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6194 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6195 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6196 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6197 (rs6000_xfer_shared_library): New function.
6198 (find_toc_address): Delete.
6199 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6200 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6201 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6202 before creating minimal symbol. Adjust function description
6203 accordingly.
6204 (scan_xcoff_symtab): Replace call to
6205 prim_record_minimal_symbol_and_info by call to
6206 record_minimal_symbol.
6207 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6208 around default_symfile_offsets.
6209 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6210 powerpc-aix targets.
6211 * config/rs6000/nm-rs6000.h: Delete.
6212 * config/powerpc/aix.mh (NAT_FILE): Delete.
6213 (NATDEPFILES): Remove xcoffsolib.o.
6214 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6215 (ALL_TARGET_OBS): Add solib-aix.o.
6216 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6217 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6218 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6219 * xcoffsolib.h, xcoffsolib.c: Delete.
6220
6221 * solib.c (reload_shared_libraries): Remove reference to
6222 SOLIB_CREATE_INFERIOR_HOOK.
6223 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6224 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6225 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6226 comment.
6227 * corelow.c (deprecated_core_resize_section_table): Delete.
6228 * exec.c: Remove include of xcoffsolib.h".
6229 (map_vmap, vmap): Delete.
6230 (exec_close_1): Remove references to vmap.
6231 (exec_file_attach): Remove vmap handling code, and reference
6232 to DEPRECATED_IBM6000_TARGET.
6233 (bfdsec_to_vmap): Delete.
6234 (exec_files_info): Remove block of code handling VMAP.
6235 * infcmd.c (post_create_inferior): Remove reference to
6236 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6237 * infrun.c (follow_exec): Remove reference to
6238 SOLIB_CREATE_INFERIOR_HOOK.
6239 * stack.c (print_frame): Remove reference to PC_SOLIB.
6240 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6241 (dsbt_relocate_main_executable): Likewise.
6242 * solib-frv.c (frv_current_sos): Likewise.
6243
6244 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6245
6246 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6247 to target_write_memory and target_read_memory.
6248
6249 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6250
6251 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6252 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6253
6254 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6255
6256 * darwin-nat.c: Replace all "%x" instances in format strings
6257 into "0x%x" throughout.
6258
6259 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6260
6261 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6262 gdb_assert by call to MACH_CHECK_ERROR.
6263 (darwin_attach_pid): Raise an error rather than a failed
6264 assertion when various system calls failed. Report a warning
6265 instead of raising a failed assertion when PREV_NOT is not NULL
6266 after call to mach_port_request_notification.
6267 (darwin_ptrace_me): Raise an error rather than a failed
6268 assertion when read returns nonzero.
6269
6270 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6271
6272 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6273
6274 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6275
6276 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6277
6278 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6279
6280 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6281 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6282 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6283 a stale cleanup. Fix double free of NAME.
6284
6285 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6286
6287 * windows-nat.c (windows_delete_thread): Accept an additional
6288 argument, the thread's exit code, and announce thread death when
6289 print_thread_events is non-zero and we are deleting a thread that
6290 is not the main thread.
6291 (get_windows_debug_event): Pass thread exit code to
6292 windows_delete_thread.
6293
6294 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6295
6296 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6297 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6298 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6299 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6300 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6301 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6302 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6303 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6304 (gdbarch_tdep): New struct.
6305 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6306 E_NUM_REGS.
6307 (v850e3v5_register_name): New function.
6308 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6309 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6310 code handling the struct return conventions for the RH850 ABI.
6311 Update all callers.
6312 (v850_eight_byte_align_p): New function.
6313 (v850_push_call_dummy): Push structs by value, not by reference
6314 for the RH850 ABI. Add support for eight byte alignment.
6315 (v850_dbtrap_breakpoint_from_pc): New function.
6316 (v850_gdbarch_init): Add ABI detection code. Register
6317 v850e3v5_register_name for the v850e3v5 architecture. Set the
6318 number of registers for v850e3v5. Register
6319 v850_dbtrap_breakpoint_from_pc as appropriate.
6320 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6321
6322 2013-05-03 Doug Evans <dje@google.com>
6323
6324 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6325 of bfd_count_sections.
6326 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6327 * symfile.c (default_symfile_offsets): Ditto.
6328 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6329 one entry, not bfd_count_sections entries.
6330
6331 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6332
6333 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6334 `save' and `restore' register groups. Don't include SPL
6335 or SPH in these groups.
6336 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6337 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6338 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6339 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6340 dwarf2_append_unwinders().
6341
6342 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6343
6344 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6345 ignore SIGINT and SIGTRAP in case these internal signals are
6346 caught explicitely.
6347
6348 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6349
6350 * darwin-nat.c (darwin_read_write_inferior): Change types
6351 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6352 of copy_count to "mach_msg_type_number_t".
6353 (darwin_read_dyld_info): Change type of parameter
6354 rdaddr to "gdb_byte *".
6355
6356 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6357
6358 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6359 of &info->load_map from "char *" to "gdb_byte *".
6360
6361 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6362
6363 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6364 from "char *" to "gdb_byte *".
6365 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6366
6367 2013-04-30 Doug Evans <dje@google.com>
6368
6369 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6370 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6371 DWO stub. If DWO isn't found, just use stub.
6372 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6373
6374 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6375 calling init_cutu_and_read_dies.
6376
6377 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6378
6379 * target-descriptions.c (maint_print_c_tdesc_cmd):
6380 Add case to parse structures as register types and
6381 bitfields.
6382
6383 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6384
6385 * MAINTAINERS (Write After Approval): Add myself to the list.
6386
6387 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6388
6389 * sol-thread.c (rw_common): Change type of parameter "buf"
6390 to "gdb_byte *".
6391 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6392 rw_common to "gdb_byte *" instead of "char *".
6393
6394 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6395
6396 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6397 of local variable msym to const struct bound_minimal_symbol.
6398 Adjust use accordingly.
6399 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6400
6401 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6402
6403 * i386gnu-nat.c (CREG_OFFSET): New macro.
6404 (creg_offset): New array.
6405 (CREG_ADDR): Use creg_offset instead of reg_offset.
6406
6407 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6408
6409 * mep-tdep.c (mep_write_pc): Delete.
6410 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6411 Add call to set_gdbarch_pc_regnum.
6412
6413 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6414
6415 * common/filestuff.c: Replace #include <dirent.h> by
6416 #include "gdb_dirent.h".
6417
6418 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6419
6420 * common/filestuff.c: Replace #include <sys/stat.h> by
6421 #include "gdb_stat.h".
6422
6423 2013-04-29 Pierre Muller <muller@sourceware.org>
6424
6425 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6426 editCase function rule.
6427 (get_DW_AT_signature_type): Likewise.
6428
6429 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6430
6431 * m32r-tdep.c (m32r_write_pc): Delete.
6432 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6433 Add call to set_gdbarch_pc_regnum.
6434
6435 2013-04-29 Pierre Muller <muller@sourceware.org>
6436
6437 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6438
6439 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6440
6441 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6442
6443 2013-04-28 Yao Qi <yao@codesourcery.com>
6444
6445 * solib-dsbt.c (fetch_loadmap): Re-indent.
6446 (displacement_from_map, enable_break2): Likewise.
6447 (dsbt_relocate_section_addresses): Likewise.
6448
6449 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6450
6451 GDB 7.6 released.
6452
6453 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6454
6455 PR corefiles/14983:
6456 * dwarf2read.c (process_full_comp_unit): Always create a static
6457 block.
6458
6459 2013-04-25 Hui Zhu <hui@codesourcery.com>
6460
6461 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6462 to loc->cmd_bytecode.
6463
6464 2013-04-24 Doug Evans <dje@google.com>
6465
6466 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6467
6468 2013-04-22 Keith Seitz <keiths@redhat.com>
6469
6470 * tracepoint.c (trace_save): Call the writer's start method.
6471
6472 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6473
6474 PR gdb/10462
6475 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6476 before argument.
6477
6478 2013-04-23 Tom Tromey <tromey@redhat.com>
6479
6480 * common/filestuff.c: Check USE_WIN32API before including
6481 sys/socket.h.
6482 (HAVE_F_GETFD): New define.
6483 (mark_cloexec): Check HAVE_F_GETFD.
6484 (gdb_open_cloexec): Change 'mode' to unsigned long.
6485 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6486 (gdb_pipe_cloexec): Check HAVE_PIPE.
6487 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6488 long.
6489
6490 2013-04-23 Hui Zhu <hui@codesourcery.com>
6491
6492 PR gdb/15293
6493 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6494
6495 2013-04-23 Hui Zhu <hui@codesourcery.com>
6496
6497 PR gdb/15165
6498 * breakpoint.c (dprintf_print_recreate): New.
6499 (save_breakpoints): Let it not save dprintf commands.
6500 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6501
6502 2013-04-22 Tom Tromey <tromey@redhat.com>
6503
6504 PR gdb/7912:
6505 * Makefile.in (SFILES): Add filestuff.c
6506 (COMMON_OBS): Add filestuff.o.
6507 (filestuff.o): New target.
6508 * auto-load.c (auto_load_objfile_script_1): Use
6509 gdb_fopen_cloexec.
6510 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6511 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6512 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6513 * common/agent.c (gdb_connect_sync_socket): Use
6514 gdb_socket_cloexec.
6515 * common/filestuff.c: New file.
6516 * common/filestuff.h: New file.
6517 * common/linux-osdata.c (linux_common_core_of_thread)
6518 (command_from_pid, commandline_from_pid, print_source_lines)
6519 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6520 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6521 gdb_fopen_cloexec.
6522 * common/linux-procfs.c (linux_proc_get_int)
6523 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6524 * config.in, configure: Rebuild.
6525 * configure.ac: Don't check for sys/socket.h. Check for
6526 fdwalk, pipe2.
6527 * corelow.c (core_open): Use gdb_open_cloexec.
6528 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6529 * fork-child.c (fork_inferior): Call close_most_fds.
6530 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6531 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6532 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6533 Use gdb_fopen_cloexec.
6534 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6535 gdb_open_cloexec.
6536 (linux_async_pipe): Use gdb_pipe_cloexec.
6537 * remote-fileio.c (remote_fileio_func_open): Use
6538 gdb_open_cloexec.
6539 * remote.c (remote_file_put, remote_file_get): Use
6540 gdb_fopen_cloexec.
6541 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6542 close_most_fds.
6543 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6544 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6545 * solib.c (solib_find): Use gdb_open_cloexec.
6546 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6547 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6548 (tfile_open): Use gdb_open_cloexec.
6549 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6550 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6551 * xml-support.c (xml_fetch_content_from_file): Use
6552 gdb_fopen_cloexec.
6553 * main.c (captured_main): Call notice_open_fds.
6554
6555 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6556
6557 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6558 'char *' to 'gdb_byte *'.
6559 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6560 'gdb_byte'.
6561
6562 2013-04-22 Yao Qi <yao@codesourcery.com>
6563
6564 * infrun.c: Fix typo in comment.
6565
6566 2013-04-22 Andrew Haley <aph@redhat.com>
6567
6568 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6569 instead of "long".
6570
6571 2013-04-20 Yao Qi <yao@codesourcery.com>
6572
6573 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6574 'char *' to 'gdb_byte *'. Cast the return value of
6575 'bt_ctf_get_char_array' to 'gdb_byte *'.
6576
6577 2013-04-19 Pedro Alves <palves@redhat.com>
6578
6579 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6580 -Wpointer-sign.
6581 * configure: Regenerate.
6582
6583 2013-04-19 Pedro Alves <palves@redhat.com>
6584
6585 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6586 'void *'.
6587
6588 2013-04-19 Pedro Alves <palves@redhat.com>
6589
6590 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6591 Change type of 'myaddr' parameter to gdb_byte pointer.
6592 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6593 to 'long long' pointer instead of to 'unsigned long long'.
6594 (monitor_write_memory_block, monitor_read_memory_single)
6595 (monitor_read_memory): Change type of 'myaddr' parameter to
6596 gdb_byte pointer.
6597
6598 2013-04-19 Pedro Alves <palves@redhat.com>
6599
6600 * record.c (validate_history_size): Make parameter 'setting'
6601 unsigned.
6602
6603 2013-04-19 Pedro Alves <palves@redhat.com>
6604
6605 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6606 to 'gdb_byte *'.
6607
6608 2013-04-19 Pedro Alves <palves@redhat.com>
6609
6610 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6611 local to int.
6612
6613 2013-04-19 Pedro Alves <palves@redhat.com>
6614
6615 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6616 * ada-tasks.c (read_fat_string_value): Likewise.
6617
6618 2013-04-19 Pedro Alves <palves@redhat.com>
6619
6620 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6621 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6622 'offset', and adjust.
6623
6624 2013-04-19 Pedro Alves <palves@redhat.com>
6625
6626 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6627 (read_index_from_section): Add cast to 'char *'.
6628
6629 2013-04-19 Pedro Alves <palves@redhat.com>
6630
6631 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6632
6633 2013-04-19 Pedro Alves <palves@redhat.com>
6634
6635 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6636
6637 2013-04-19 Pedro Alves <palves@redhat.com>
6638
6639 * record-full.c (record_full_get_bookmark): Change local 'ret'
6640 type to char * and add cast to gdb_byte *.
6641 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6642 string.
6643 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6644
6645 2013-04-19 Pedro Alves <palves@redhat.com>
6646
6647 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6648 * python/py-prettyprint.c (print_string_repr): Change type of
6649 'output' local to char *. Add cast to gdb_byte * in
6650 LA_PRINT_STRING call.
6651 (print_children): Change type of 'output' local to char *.
6652 * python/py-value.c (valpy_string): Add cast to const char * in
6653 PyUnicode_Decode call.
6654
6655 2013-04-19 Pedro Alves <palves@redhat.com>
6656
6657 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6658 and change its type to 'const char *'. Adjust.
6659 (mips_send_packet): Add cast to 'char *', and remove cast to
6660 'unsigned char *'.
6661 (mips_receive_packet): Remove cast to 'unsigned char *'.
6662 (mips_load_srec): Use bfd_byte.
6663 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6664 (pmon_checkset): Make 'value' parameter unsigned.
6665
6666 2013-04-19 Pedro Alves <palves@redhat.com>
6667
6668 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6669
6670 2013-04-19 Pedro Alves <palves@redhat.com>
6671
6672 * remote.c (remote_write_bytes_aux, compare_sections_command)
6673 (remote_read_qxfer)
6674 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6675 (remote_hostio_readlink, remote_bfd_iovec_pread)
6676 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6677 binary buffer, and char when buffer is used as string.
6678 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6679 (trace_save, tfile_open, traceframe_walk_blocks)
6680 (tfile_fetch_registers): Likewise.
6681
6682 2013-04-19 Pedro Alves <palves@redhat.com>
6683
6684 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6685 buffer and size_t size. Adjust.
6686 * ser-base.h (ser_base_write): Adjust.
6687 * ser-go32.c (cnts): Change type to size_t.
6688 (dos_write): Change prototype -- take 'void *'
6689 buffer and size_t size. Adjust.
6690 (dos_info): Print elements of 'cnts' as unsigned long.
6691 * serial.c (serial_write): Likewise.
6692 * serial.h (serial_write): Adjust.
6693 (struct serial_ops) <write>: Change prototype -- take 'void *'
6694 buffer and size_t size. Adjust.
6695
6696 2013-04-19 Pedro Alves <palves@redhat.com>
6697
6698 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6699 gdb_byte *.
6700 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6701
6702 2013-04-19 Pedro Alves <palves@redhat.com>
6703
6704 * alpha-tdep.c (alpha_extract_return_value): Use
6705 regcache_cooked_read_unsigned to read 'v0'.
6706
6707 2013-04-19 Pedro Alves <palves@redhat.com>
6708
6709 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6710 parameters 'at', 'as' and 'offset' to uint32_t.
6711
6712 2013-04-19 Pedro Alves <palves@redhat.com>
6713
6714 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6715 'is64' to signed 'int'.
6716
6717 2013-04-19 Pedro Alves <palves@redhat.com>
6718
6719 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6720 parameter to int *.
6721
6722 2013-04-19 Pedro Alves <palves@redhat.com>
6723
6724 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6725 'insnbuf' buffer type to unsigned int[].
6726
6727 2013-04-19 Pedro Alves <palves@redhat.com>
6728
6729 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6730
6731 2013-04-19 Pedro Alves <palves@redhat.com>
6732
6733 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6734 unsigned long *.
6735
6736 2013-04-19 Pedro Alves <palves@redhat.com>
6737
6738 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6739 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6740 UINT_MAX.
6741 * mips-tdep.c (heuristic_fence_post): Change type to int.
6742 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6743
6744 2013-04-19 Pedro Alves <palves@redhat.com>
6745
6746 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6747 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6748 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6749
6750 2013-04-19 Pedro Alves <palves@redhat.com>
6751
6752 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6753 it to get a string view of the byte buffer.
6754 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6755 type to gdb_byte *. Adjust.
6756 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6757 Change local to char *.
6758 * solib-darwin.c (find_program_interpreter): Change return type to
6759 char *. Adjust.
6760 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6761 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6762 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6763 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6764 * solib-svr4.c (find_program_interpreter): Change return type to
6765 char *. Adjust.
6766 (enable_break): Change local 'interp_name' to char *.
6767 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6768 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6769 (spu_pseudo_register_write_spu): Use char for string buffer.
6770 Adjust.
6771 (info_spu_event_command, info_spu_signal_command): Add casts to
6772 'char *'.
6773
6774 2013-04-19 Pedro Alves <palves@redhat.com>
6775
6776 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6777 gdb_byte[].
6778 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6779 * ada-lang.c (ada_value_assign): Use gdb_byte.
6780 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6781 (alphanbsd_sigtramp_offset): Use gdb_byte.
6782 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6783 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6784 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6785 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6786 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6787 * arm-tdep.c (arm_stub_unwind_sniffer)
6788 (arm_displaced_init_closure): Use gdb_byte.
6789 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6790 (arm_default_thumb_le_breakpoint)
6791 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6792 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6793 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6794 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6795 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6796 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6797 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6798 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6799 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6800 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6801 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6802 (cris_store_return_value, cris_extract_return_value): Use
6803 gdb_byte.
6804 (constraint): Change type of parameter to char * from signed
6805 char*. Use gdb_byte.
6806 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6807 of local buffer to gdb_byte *.
6808 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6809 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6810 (add_address_entry): Change type of local buffer to gdb_byte[].
6811 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6812 (frv_push_dummy_call): Use gdb_byte.
6813 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6814 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6815 (hppa_hpux_supply_save_state): Use gdb_byte.
6816 * hppa-tdep.c (hppa32_push_dummy_call)
6817 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6818 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6819 (slotN_contents, replace_slotN_contents): Change type of parameter
6820 to gdb_byte *.
6821 (fetch_instruction, ia64_pseudo_register_write)
6822 (ia64_register_to_value, ia64_value_to_register)
6823 (ia64_extract_return_value, ia64_store_return_value)
6824 (ia64_push_dummy_call): Use gdb_byte.
6825 * m32c-tdep.c (m32c_return_value): Remove cast.
6826 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6827 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6828 gdb_byte.
6829 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6830 * mn10300-tdep.c (mn10300_store_return_value)
6831 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6832 gdb_byte.
6833 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6834 (moxie_process_record): Remove casts.
6835 * ppc-ravenscar-thread.c (supply_register_at_address)
6836 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6837 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6838 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6839 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6840 * remote.c (compare_sections_command): Use gdb_byte.
6841 * score-tdep.c (score7_free_memblock): Change type of parameter to
6842 gdb_byte *.
6843 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6844 gdb_byte *. Use gdb_byte.
6845 (sh_push_dummy_call_fpu): Use gdb_byte.
6846 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6847 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6848 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6849 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6850 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6851 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6852 (sh64_store_return_value, sh64_register_convert_to_virtual):
6853 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6854 (sh64_pseudo_register_write): Use gdb_byte.
6855 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6856 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6857 buffer.
6858 (irix_current_sos): Use gdb_byte.
6859 * solib-som.c (som_current_sos): Use gdb_byte.
6860 * sparc-ravenscar-thread.c (supply_register_at_address)
6861 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6862 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6863 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6864 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6865 'gdb_byte *'.
6866 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6867 'gdb_byte *'.
6868 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6869 * xstormy16-tdep.c (xstormy16_extract_return_value)
6870 (xstormy16_store_return_value): Change parameter type to
6871 'gdb_byte *'. Adjust.
6872 (xstormy16_push_dummy_call): Use gdb_byte.
6873 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6874 (call0_analyze_prologue, execute_code): Use gdb_byte.
6875
6876 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6877 Pedro Alves <palves@redhat.com>
6878
6879 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6880 value contents.
6881
6882 2013-04-17 Doug Evans <dje@google.com>
6883
6884 * dwarf2read.c (struct signatured_type): New member type.
6885 (struct attribute): Replace member signatured_type with signature.
6886 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6887 (read_call_site_scope): Call follow_die_ref instead of
6888 follow_die_ref_or_sig.
6889 (read_structure_type): Rewrite handling of signatured types.
6890 (read_enumeration_type): Ditto.
6891 (read_attribute_value): Update.
6892 (build_error_marker_type): New function.
6893 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6894 Don't call error for bad types, just build an error marker type.
6895 (dump_die_shallow): Update.
6896 (follow_die_sig_1): Renamed from follow_die_sig.
6897 Don't call error for bad types, instead return NULL.
6898 (follow_die_sig): New function.
6899 (get_signatured_type, get_DW_AT_signature_type): New functions.
6900
6901 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6902
6903 * aarch64-tdep.c (aarch64_write_pc): Removed.
6904 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6905 function.
6906
6907 2013-04-17 Yao Qi <yao@codesourcery.com>
6908
6909 * top.c (print_gdb_configuration): Print configure-time
6910 parameter on using libbabeltrace or not.
6911
6912 2013-04-16 Pedro Alves <palves@redhat.com>
6913
6914 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6915
6916 2013-04-16 Pedro Alves <palves@redhat.com>
6917
6918 * common/glibc_thread_db.h: Update from upstream glibc
6919 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6920
6921 2013-04-16 Pedro Alves <palves@redhat.com>
6922
6923 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6924 * common/glibc_thread_db.h: ... this new file ...
6925 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6926
6927 2013-04-16 Will Newton <will.newton@gmail.com>
6928 Pedro Alves <palves@redhat.com>
6929
6930 PR build/11881
6931
6932 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6933 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6934 HAVE_THREAD_DB_H.
6935
6936 2013-04-16 Pedro Alves <palves@redhat.com>
6937 Eli Zaretskii <eliz@gnu.org>
6938
6939 * NEWS: Mention "set foo unlimited".
6940
6941 2013-04-15 Doug Evans <dje@google.com>
6942
6943 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6944 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6945 (create_dwo_cu_reader): Renamed from
6946 create_dwo_debug_info_hash_table_reader.
6947 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6948 Remove support for multiple CUs in a DWO file.
6949 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6950
6951 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6952 instead of phex.
6953 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6954 (create_dwo_in_dwp): Ditto.
6955
6956 2013-04-15 Tom Tromey <tromey@redhat.com>
6957
6958 * NEWS: Move recent entries into "since 7.6" section.
6959
6960 2013-04-15 Tom Tromey <tromey@redhat.com>
6961
6962 PR c++/13588:
6963 * NEWS: Update.
6964 * break-catch-throw.c (struct exception_catchpoint)
6965 <exception_rx, pattern>: New fields.
6966 (fetch_probe_arguments, dtor_exception_catchpoint)
6967 (check_status_exception_catchpoint)
6968 (print_one_detail_exception_catchpoint): New functions.
6969 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6970 Compile regular expression if needed.
6971 (extract_exception_regexp): New function.
6972 (catch_exception_command_1): Use extract_exception_regexp.
6973 (compute_exception): Use fetch_probe_arguments.
6974 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6975 and check_status fields.
6976 * cp-abi.c (cplus_typename_from_type_info): New function.
6977 * cp-abi.h (cplus_typename_from_type_info): Declare.
6978 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6979 * gdb_regex.h (compile_rx_or_error): Declare.
6980 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6981 comment.
6982 (init_gnuv3_ops): Set get_type_from_type_info field.
6983 * probe.c (compile_rx_or_error): Move...
6984 * utils.c (compile_rx_or_error): ... here.
6985
6986 2013-04-15 Tom Tromey <tromey@redhat.com>
6987
6988 PR c++/15176:
6989 * NEWS: Update.
6990 * break-catch-throw.c (compute_exception): New function.
6991 (exception_funcs): New global.
6992 (_initialize_break_catch_throw): Create $_exception.
6993 * cp-abi.c (cplus_type_from_type_info): New function.
6994 * cp-abi.h (cplus_type_from_type_info): Declare.
6995 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6996 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6997 (gnuv3_get_type_from_type_info): New functions.
6998 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6999
7000 2013-04-15 Tom Tromey <tromey@redhat.com>
7001
7002 * break-catch-throw.c (struct exception_names): New.
7003 (exception_functions): Change type.
7004 (re_set_exception_catchpoint): Look for SDT probes.
7005
7006 2013-04-15 Tom Tromey <tromey@redhat.com>
7007
7008 PR c++/10119:
7009 * break-catch-throw.c (exception_functions): New global.
7010 (gnu_v3_exception_catchpoint_ops): Move earlier.
7011 (struct exception_catchpoint): New.
7012 (classify_exception_breakpoint): Rewrite.
7013 (re_set_exception_catchpoint): New function.
7014 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7015 Allocate a struct exception_catchpoint.
7016 (catch_exception_command_1): Update.
7017 (initialize_throw_catchpoint_ops): Set 're_set' method.
7018
7019 2013-04-15 Tom Tromey <tromey@redhat.com>
7020
7021 * Makefile.in (SFILES): Add break-catch-throw.c
7022 (COMMON_OBS): Add break-catch-throw.o.
7023 * break-catch-throw.c: New file.
7024 * breakpoint.c: Move exception-catching code to new file.
7025 (ep_parse_optional_if_clause): No longer static.
7026 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7027
7028 2013-04-15 Tom Tromey <tromey@redhat.com>
7029
7030 PR c++/9065:
7031 * NEWS: Update.
7032 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7033 * c-exp.y (TYPEID): New token.
7034 (exp): Add new TYPEID productions.
7035 (ident_tokens): Add "typeid".
7036 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7037 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7038 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7039 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7040 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7041 case.
7042 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7043 (build_std_type_info_type, gnuv3_get_typeid_type)
7044 (gnuv3_get_typeid): New functions.
7045 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7046 new fields on ABI object.
7047 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7048 * std-operator.def (OP_TYPEID): New.
7049
7050 2013-04-15 Tom Tromey <tromey@redhat.com>
7051
7052 * elfread.c (elf_symtab_read): Install versioned symbol under
7053 unversioned name as well.
7054
7055 2013-04-15 Tom Tromey <tromey@redhat.com>
7056
7057 PR c++/11990:
7058 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7059 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7060 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7061 (gdb_demangle): New function.
7062 * cp-support.h (gdb_demangle): Declare.
7063 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7064 (dwarf2_name): Use gdb_demangle.
7065 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7066 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7067 suffixes from name.
7068 (gnuv3_print_method_ptr): Use gdb_demangle.
7069 * jv-lang.c (java_demangle): Use gdb_demangle.
7070 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7071 * language.c (unk_lang_demangle): Use gdb_demangle.
7072 * symtab.c (symbol_find_demangled_name)
7073 (demangle_for_lookup): Use gdb_demangle.
7074
7075 2013-04-15 Tom Tromey <tromey@redhat.com>
7076
7077 PR c++/12824:
7078 * NEWS: Update.
7079 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7080 New constant.
7081 (classify_exception_breakpoint): New function.
7082 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7083 (print_mention_exception_catchpoint)
7084 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7085 (catch_exception_command_1): Handle "rethrow" catchpoint.
7086 (catch_rethrow_command): New function.
7087 (_initialize_breakpoint): Add "catch rethrow" command.
7088
7089 2013-04-15 Pierre Muller <muller@sourceware.org>
7090
7091 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7092 set_gdbarch_write_pc as deprecated anymore.
7093
7094 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7095
7096 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7097 declarations.
7098
7099 2013-04-13 Yao Qi <yao@codesourcery.com>
7100
7101 * ctf.c (_initialize_ctf): Include "completer.h".
7102 Call add_target_with_completer instead of add_target.
7103
7104 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7105
7106 Fix GDB regression related to PR binutils/14813.
7107 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7108 * minidebug.c (lzma_close): Add return value comment.
7109 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7110 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7111 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7112
7113 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7114
7115 * config.in: Regenerate.
7116
7117 2013-04-12 Tom Tromey <tromey@redhat.com>
7118
7119 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7120 const.
7121 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7122 (struct die_reader_specs) <buffer>: Likewise.
7123 (die_reader_func_ftype): Make 'info_ptr' const.
7124 (struct line_header) <include_dirs, statement_program_start,
7125 statement_program_end>: Now const.
7126 (struct file_entry) <name>: Likewise.
7127 (struct partial_die_info) <sibling>: Likewise.
7128 (struct dwarf_block) <data>: Likewise.
7129 (dwarf2_read_section): Remove cast.
7130 (dwarf2_get_section_info): Make 'bufp' const.
7131 (read_index_from_section): Constify.
7132 (dw2_get_file_names_reader): Make 'info_ptr' const.
7133 (dw2_get_primary_filename_reader): Likewise.
7134 (read_comp_unit_head): Make 'info_ptr' and return type const.
7135 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7136 Likewise.
7137 (read_abbrev_offset): Constify.
7138 (dwarf2_create_include_psymtab): Make 'name' const.
7139 (create_debug_types_hash_table): Update.
7140 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7141 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7142 Constify.
7143 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7144 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7145 (read_comp_units_from_section): Constify.
7146 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7147 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7148 const.
7149 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7150 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7151 (create_dwp_hash_table, dwarf2_ranges_read)
7152 (dwarf2_record_block_ranges): Constify.
7153 (read_die_and_children, read_die_and_siblings_1)
7154 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7155 const.
7156 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7157 (abbrev_table_read_table): Constify.
7158 (load_partial_dies): Make 'info_ptr' const.
7159 (read_partial_die, read_attribute_value, read_attribute): Make
7160 'info_ptr' and return type const.
7161 (read_address, read_initial_length)
7162 (read_checked_initial_length_and_offset, read_offset)
7163 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7164 const.
7165 (read_direct_string): Make 'buf' and return type const.
7166 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7167 (read_indirect_string): Make return type const.
7168 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7169 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7170 'info_ptr' const.
7171 (read_str_index): Make return type const.
7172 (add_include_dir): Make 'include_dir' const.
7173 (add_file_name): Make 'name' const.
7174 (dwarf_decode_line_header): Constify.
7175 (psymtab_include_file_name): Make return type const.
7176 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7177 (dwarf2_start_subfile): Make 'filename' const.
7178 (dwarf2_const_value_attr): Make 'bytes' const.
7179 (read_signatured_type_reader): Make 'info_ptr' const.
7180 (decode_locdesc): Constify.
7181 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7182 const.
7183 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7184 'mac_end', and return type const.
7185 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7186 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7187 type const.
7188 (per_cu_header_read_in): Constify.
7189 * symfile.h (dwarf2_get_section_info): Update.
7190
7191 2013-04-12 Tom Tromey <tromey@redhat.com>
7192
7193 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7194
7195 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7196
7197 * NEWS: Mention "show configuration", --configuration.
7198 * top.c (print_gdb_configuration): New function, displays the
7199 details about GDB configure-time parameters.
7200 (print_gdb_version): Mention "show configuration".
7201 * cli/cli-cmds.c (show_configuration): New function.
7202 (_initialize_cli_cmds): Add the "show configuration" command.
7203 * main.c (captured_main) <print_configuration>: New static var.
7204 <long_options>: Use it.
7205 If --configuration was given, call print_gdb_configuration.
7206
7207 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7208 Pedro Alves <palves@redhat.com>
7209
7210 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7211 (generated_files): Add gcore.
7212 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7213 HAVE_NATIVE_GCORE_HOST.
7214 (gcore): New.
7215 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7216 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7217 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7218 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7219 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7220 Add HAVE_NATIVE_GCORE_HOST.
7221 * configure: Regenerate.
7222 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7223 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7224 AC_CONFIG_FILES for gcore.
7225 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7226 gdb_have_gcore.
7227 * gdb_gcore.sh: Rename to ...
7228 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7229 and GCORE_TRANSFORM_NAME substitutions.
7230
7231 Fix parsing tabs in ${gdb_target_obs}.
7232 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7233
7234 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7235
7236 * remote.c (unpush_and_perror): Add output message final dot.
7237
7238 2013-04-11 Yao Qi <yao@codesourcery.com>
7239
7240 * tracepoint.c (tfile_interp_line): Fit parameters line and
7241 utpp in one line.
7242
7243 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7244
7245 * solib.c (solib_map_sections): Remove code overwriting
7246 SO->SO_NAME with the bfd's filename.
7247
7248 2013-04-10 Pedro Alves <palves@redhat.com>
7249
7250 * cli/cli-decode.c (integer_unlimited_completer): New function.
7251 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7252 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7253 completer.
7254 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7255 (is_unlimited_literal): New function.
7256 (do_set_command): Handle literal "unlimited" arguments.
7257 * frame.c (_initialize_frame) <set backtrace limit>: Document
7258 "unlimited".
7259 * printcmd.c (_initialize_printcmd) <set print
7260 max-symbolic-offset>: Add help text.
7261 * record-full.c (_initialize_record_full) <set record full
7262 insn-number-max>: Likewise.
7263 * record.c (_initialize_record) <set record
7264 instruction-history-size, set record function-call-history-size>:
7265 Add help text.
7266 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7267 help text.
7268 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7269 Likewise.
7270 * source.c (_initialize_source) <set listsize>: Add help text.
7271 * utils.c (initialize_utils) <set height, set width>: Likewise.
7272 <set pagination>: Mention "set height unlimited".
7273 * valprint.c (_initialize_valprint) <set print elements, set print
7274 repeats>: Document "unlimited".
7275
7276 2013-04-10 Pedro Alves <palves@redhat.com>
7277
7278 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7279 instead of disconnect_tracing.
7280 * infcmd.c (detach_command, disconnect_command): Call
7281 query_if_trace_running. Adjust.
7282 * top.c: Include "tracepoint.h".
7283 (quit_target): Delete. Contents moved ...
7284 (quit_force): ... here. Wrap each stage of teardown in
7285 TRY_CATCH. Call disconnect_tracing before detaching.
7286
7287 2013-04-10 Hui Zhu <hui@codesourcery.com>
7288 Yao Qi <yao@codesourcery.com>
7289
7290 * configure.ac: Check libbabeltrace is installed.
7291 * config.in: Regenerate.
7292 * configure: Regenerate.
7293 * Makefile.in (LIBBABELTRACE): New.
7294 (CLIBS): Add LIBBABELTRACE.
7295 * ctf.c: Include "exec.h".
7296 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7297 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7298 (ctf_save_metadata_header): Define new type aliases in
7299 metadata.
7300 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7301 in metadata. Start a new faked packet for trace status.
7302 (ctf_write_status): Write trace status to CTF.
7303 (ctf_write_uploaded_tsv): Write TSV to CTF.
7304 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7305 (ctf_write_definition_end): End the faked packet.
7306
7307 (ctx, ctf_iter, trace_dirname): New.
7308 (start_pos): New variable.
7309 (ctf_destroy, ctf_open_dir, ctf_open): New.
7310 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7311 macros.
7312 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7313 (ctf_fetch_registers, ctf_xfer_partial): New.
7314 (ctf_get_trace_state_variable_value): New.
7315 (ctf_get_tpnum_from_frame_event): New.
7316 (ctf_get_traceframe_address): New.
7317 (ctf_trace_find, ctf_has_stack): New.
7318 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7319 (ctf_get_trace_status, ctf_read_status): New.
7320 (_initialize_ctf): New.
7321 * tracepoint.c (get_tracepoint_number): New
7322 (get_uploaded_tsv): Remove 'static'.
7323 (struct traceframe_info, trace_regblock_size): Move it to ...
7324 * tracepoint.h: ... here.
7325 (get_tracepoint_number): Declare it.
7326 (get_uploaded_tsv): Declare it.
7327
7328 * NEWS: Mention new configure option.
7329
7330 2013-04-10 Pedro Alves <palves@redhat.com>
7331 Hui Zhu <hui@codesourcery.com>
7332
7333 * breakpoint.c (dprintf_re_set): New.
7334 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7335 to dprintf_re_set.
7336
7337 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7338
7339 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7340 Remove solib-svr4.o from the list.
7341
7342 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7343
7344 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7345 Use gdb_assert_not_reached instead of invalid boolean expression.
7346
7347 2013-04-09 Pedro Alves <palves@redhat.com>
7348
7349 * remote.c (unpush_and_perror): New function.
7350 (readchar, remote_serial_write): Use it.
7351
7352 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7353
7354 * NEWS: Mention new btrace RSP packets.
7355
7356 2013-04-08 Tom Tromey <tromey@redhat.com>
7357
7358 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7359 long.
7360
7361 2013-04-08 Tom Tromey <tromey@redhat.com>
7362
7363 * maint.c (print_bfd_section_info): Print the section index.
7364 * symmisc.c (dump_msymbols): Print the section index.
7365
7366 2013-04-08 Tom Tromey <tromey@redhat.com>
7367
7368 PR symtab/8424:
7369 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7370 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7371 * breakpoint.c (resolve_sal_pc): Update.
7372 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7373 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7374 (minsym_lookup_iterator_cb): Use it.
7375 (default_read_var_value): Update.
7376 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7377 Update.
7378 * infcmd.c (jump_command): Update.
7379 * linespec.c (minsym_found): Update.
7380 * maint.c (maintenance_translate_address): Update.
7381 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7382 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7383 * parse.c (write_exp_msymbol): Update.
7384 * printcmd.c (address_info): Update.
7385 * psymtab.c (find_pc_sect_psymbol): Update.
7386 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7387 SYMBOL_OBJ_SECTION.
7388 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7389 Don't initialize SYMBOL_OBJ_SECTION.
7390 * spu-tdep.c (spu_catch_start): Update.
7391 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7392 * symmisc.c (dump_msymbols, print_symbol): Update.
7393 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7394 how fallback section is computed.
7395 (fixup_symbol_section): Update.
7396 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7397 Update.
7398 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7399 Initialize SYMBOL_SECTION.
7400 * symtab.h (struct general_symbol_info) <section>: Update comment.
7401 <obj_section>: Remove.
7402 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7403 (SYMBOL_OBJFILE): New macro.
7404
7405 2013-04-08 Tom Tromey <tromey@redhat.com>
7406
7407 * coffread.c (record_minimal_symbol): Update.
7408 * dbxread.c (record_minimal_symbol): Update.
7409 * elfread.c (record_minimal_symbol): Update.
7410 * machoread.c (macho_symtab_add_minsym): Update.
7411 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7412 Update.
7413 * minsyms.c (prim_record_minimal_symbol): Update.
7414 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7415 argument.
7416 (prim_record_minimal_symbol_and_info): Likewise.
7417 * minsyms.h (prim_record_minimal_symbol_full)
7418 (prim_record_minimal_symbol_and_info): Update.
7419 * symtab.c (allocate_symbol, initialize_symbol)
7420 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7421 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7422 Update.
7423
7424 2013-04-08 Tom Tromey <tromey@redhat.com>
7425
7426 PR symtab/8423:
7427 * solib-som.c (som_solib_section_offsets): Use BFD section
7428 indices. Set offsets for all sections.
7429 * somread.c (som_symtab_read): Compute BFD section for
7430 symbol. Use prim_record_minimal_symbol_and_info.
7431 (som_symfile_read): Fix comment.
7432 (struct find_section_offset_arg): New.
7433 (find_section_offset, set_section_index): New functions.
7434 (som_symfile_offsets): Use set_section_index to compute
7435 section indices.
7436
7437 2013-04-08 Tom Tromey <tromey@redhat.com>
7438
7439 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7440 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7441 gdb_bfd_section_index.
7442 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7443 New functions.
7444 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7445 Declare.
7446 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7447 Update.
7448 * objfiles.c (add_to_objfile_sections_full): New function.
7449 (add_to_objfile_sections): Use it.
7450 (build_section_table): Rewrite.
7451 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7452 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7453 (struct objfile) <sections>: Update comment.
7454 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7455 is NULL.
7456 (ALL_OBJSECTIONS): Use it.
7457 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7458 * solib-frv.c (frv_relocate_main_executable): Update.
7459 * solib-target.c (solib_target_relocate_section_addresses):
7460 Use gdb_bfd_section_index.
7461 * symfile.c (build_section_addr_info_from_section_table):
7462 Use gdb_bfd_section_index.
7463 (build_section_addr_info_from_bfd, place_section): Likewise.
7464 * symtab.c (fixup_section): Update.
7465 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7466
7467 2013-04-08 Tom Tromey <tromey@redhat.com>
7468
7469 * minsyms.h (struct bound_minimal_symbol): New.
7470 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7471 Remove objfile argument.
7472 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7473 Return bound_minimal_symbol.
7474 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7475 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7476 Return bound_minimal_symbol.
7477 (in_gnu_ifunc_stub): Update.
7478 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7479 Remove 'objfile_p' argument.
7480 (lookup_solib_trampoline_symbol_by_pc): Update.
7481 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7482 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7483 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7484 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7485 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7486 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7487 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7488 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7489 stack.c, symtab.c, tui/tui-disasm.c: Update.
7490
7491 2013-04-08 Tom Tromey <tromey@redhat.com>
7492
7493 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7494 Use symbol's obstack, not an objfile.
7495 * coffread.c (process_coff_symbol): Update.
7496 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7497 * jv-lang.c (add_class_symbol): Update.
7498 * mdebugread.c (new_symbol): Update.
7499 * minsyms.c (prim_record_minimal_symbol_full)
7500 (terminate_minimal_symbol_table): Update.
7501 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7502 * stabsread.c (define_symbol, read_enum_type): Update.
7503 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7504 Handle Ada specially.
7505 (symbol_set_language): Add 'obstack' argument.
7506 (symbol_set_names): Update.
7507 (symbol_natural_name, symbol_demangled_name): Always use
7508 ada_decode_symbol.
7509 * symtab.h (struct general_symbol_info)
7510 <language_specific::obstack>: New field.
7511 <ada_mangled>: New field.
7512 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7513 (symbol_set_language): Update.
7514
7515 2013-04-08 Tom Tromey <tromey@redhat.com>
7516
7517 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7518 Take an obstack, not an objfile.
7519 (symbol_set_names): Update.
7520 * symtab.h (symbol_set_demangled_name): Update.
7521
7522 2013-04-08 Tom Tromey <tromey@redhat.com>
7523
7524 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7525 allocate_symbol.
7526 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7527 (read_func_scope): Call allocate_template_symbol.
7528 (new_symbol_full): Call allocate_symbol.
7529 * jit.c (finalize_symtab): Call allocate_symbol.
7530 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7531 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7532 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7533 (common_block_end): Call allocate_symbol.
7534 * symtab.c (allocate_symbol, initialize_symbol)
7535 (allocate_template_symbol): New functions.
7536 * symtab.c (allocate_symbol, initialize_symbol)
7537 (allocate_template_symbol): Declare.
7538 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7539
7540 2013-04-08 Pedro Alves <palves@redhat.com>
7541 Keith Seitz <keiths@redhat.com>
7542
7543 * breakpoint.c (create_breakpoint): Rename
7544 "parse_condition_and_thread" parameter to "parse_arg". Update
7545 describing comment. If !PARSE_ARG, then error out if ARG is not
7546 the empty string after extracting the location.
7547 * breakpoint.h (create_breakpoint): Rename
7548 "parse_condition_and_thread" parameter to "parse_arg".
7549
7550 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7551
7552 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7553
7554 2013-04-07 Yao Qi <yao@codesourcery.com>
7555
7556 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7557 and 'addr2' to CORE_ADDR.
7558 * target.c (update_current_target): Update.
7559 * target.h (struct target_ops) <to_trace_find>: Change parameter
7560 type to CORE_ADDR.
7561 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7562 'addr2' to CORE_ADDR.
7563 (tfile_trace_find): Likewise.
7564 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7565 Change local variable 'addr' to type CORE_ADDR.
7566 * tracepoint.h (tfind_1): Update declaration.
7567
7568 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7569
7570 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7571 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7572 Include main.h.
7573
7574 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7575 here...
7576 * main.h (windows_get_absolute_argv0): ...to here.
7577
7578 2013-04-05 Doug Evans <dje@google.com>
7579
7580 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7581 (read_cutu_die_from_dwo): Add comments.
7582 (read_structure_type): Update comment.
7583 (read_enumeration_type, read_namespace_type): Update comment.
7584 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7585
7586 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7587
7588 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7589 * Makefile.in (gdb.z): Remove.
7590 (install-only): Remove $(man1dir) and gdb.1 installation.
7591 * gdb.1: Remove.
7592
7593 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7594
7595 Fix compatibility with Linux kernel 3.8.3.
7596 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7597 to more inner block. Remove parsing of NUMBER from outer block.
7598 Parse NUMBER only if KEYWORD has been identified.
7599
7600 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7601
7602 Fix variable name shadowing.
7603 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7604 filename to mapsfilename and update its uses.
7605
7606 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7607
7608 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7609 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7610 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7611 details of the problem.
7612
7613 2013-04-04 Pedro Alves <palves@redhat.com>
7614 Hui Zhu <hui@codesourcery.com>
7615
7616 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7617 tracepoint, reset its STEP_COUNT and call validate_actionline.
7618
7619 2013-04-03 Doug Evans <dje@google.com>
7620
7621 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7622 read_die_and_siblings.
7623 (read_die_and_siblings): New function.
7624 (read_cutu_die_from_dwo): Dump die if requested.
7625 (read_die_and_children): Call read_full_die_1 and
7626 read_die_and_siblings_1.
7627 (read_full_die): Dump die if requested.
7628
7629 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7630
7631 * dwarf2read.c (struct dwo_file): New member comp_dir.
7632 Rename member name to dwo_name. All uses updated.
7633 (hash_dwo_file): Include comp_dir in computation.
7634 (eq_dwo_file): Ditto.
7635 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7636 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7637
7638 * psymtab.c (read_psymtabs_with_fullname): Don't call
7639 psymtab_to_fullname if the basenames are different.
7640
7641 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7642
7643 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7644 New entry about "fullname" presence.
7645
7646 2013-04-03 Pedro Alves <palves@redhat.com>
7647
7648 * NEWS: Mention x86_64/Cygwin as new native configuration.
7649
7650 2013-04-02 Doug Evans <dje@google.com>
7651
7652 * dwarf2read.c (read_structure_type): Fix typo in comment.
7653
7654 2013-04-02 Pedro Alves <palves@redhat.com>
7655
7656 * NEWS: Mention "set/show debug aarch64", "set/show debug
7657 coff-pe-read" and "set/show debug mach-o".
7658
7659 2013-04-02 Pedro Alves <palves@redhat.com>
7660
7661 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7662
7663 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7664
7665 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7666 gdb_string.h is now in common/.
7667
7668 2013-04-02 Pedro Alves <palves@redhat.com>
7669
7670 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7671 under "New options".
7672
7673 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7674
7675 Revert this patch:
7676 PR gdb/15275
7677 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7678
7679 2013-04-02 Pedro Alves <palves@redhat.com>
7680
7681 PR gdb/15275
7682
7683 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7684 (remote_serial_write): New function.
7685 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7686
7687 2013-04-01 Jiong Wang <jiwang@tilera.com>
7688
7689 * NEWS: Mention TILE-Gx in "New native configurations" and
7690 "New targets" sections.
7691
7692 2013-04-01 Doug Evans <dje@google.com>
7693
7694 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7695 (process_enumeration_scope): Simplify.
7696
7697 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7698 type_unit_group ...
7699 (struct signatured_type): ... to here.
7700 (sig_type_ptr): New typedef.
7701 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7702 out of union 't'. All uses updated.
7703 (dw2_get_file_names_reader): Assert not called for a type unit.
7704 (dw2_get_file_names): Assert not called for a type unit or type
7705 unit group.
7706 (build_type_psymtabs_reader): Assert called for a type unit.
7707 (build_type_psymtab_dependencies): Assert called for a type unit group.
7708
7709 * dwarf2read.c (free_dwo_file): Add comment.
7710 (dwarf2_per_objfile_free): Unref dwp bfd.
7711
7712 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7713
7714 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7715 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7716 (read_pe_exported_syms): Remove unused 'exportix'.
7717 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7718 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7719 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7720
7721 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7722
7723 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7724 (print_it_watchpoint): Remove unused 'bl'.
7725 (say_where): Remove unused 'uiout'.
7726 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7727 (bkpt_breakpoint_hit): Remove unused 'b'.
7728 (internal_bkpt_print_it): Remove unused 'uiout'.
7729 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7730
7731 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7732
7733 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7734 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7735
7736 2013-03-29 Doug Evans <dje@google.com>
7737
7738 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7739 Delete arg is_dwp. All callers updated.
7740 (open_dwp_file): New function.
7741 (open_and_init_dwp_file): Call it.
7742 (get_dwp_file): New function.
7743 (lookup_dwo_cutu): Call it.
7744
7745 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7746 unnecessary, cleanup.
7747
7748 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7749
7750 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7751 (lookup_dwo_unit): New function.
7752 (init_cutu_and_read_dies): Move DWO handling to new functions.
7753
7754 * dwarf2read.c (struct signatured_type): Tweak comment.
7755 (struct dwo_unit): Tweak comment.
7756 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7757 (create_dwo_debug_info_hash_table): Tweak comment.
7758 (dwarf2_per_cu_offset_and_type): Tweak comment.
7759
7760 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7761 missing .debug_types section.
7762
7763 2013-03-29 Yao Qi <yao@codesourcery.com>
7764
7765 * corelow.c: Include "completer.h".
7766 (_initialize_corelow): Call add_target_with_completer with
7767 argument 'filename_completer'.
7768 * tracepoint.c: Likewise.
7769 * exec.c (_initialize_exec): Likewise.
7770 * target.c (add_target): Rename to ...
7771 (add_target_with_completer): ... this. Call set_cmd_completer
7772 if parameter completer is not NULL.
7773 (add_target): New.
7774 * target.h: Include "command.h".
7775 (add_target_with_completer): Declare it.
7776
7777 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7778
7779 * coffread.c (is_import_fixup_symbol): New function.
7780 (record_minimal_symbol): Use is_import_fixup_symbol to
7781 detect import fixup symbols, and discard them.
7782
7783 2013-03-28 Doug Evans <dje@google.com>
7784
7785 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7786 types hash table until we know we need it.
7787
7788 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7789 index numbers.
7790
7791 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7792 All callers updated.
7793 (dw2_print_stats): Print #read CUs too.
7794 (dump_die_shallow): Print signatured types better.
7795
7796 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7797 info_or_types_section to section. All uses updated.
7798 (struct dwo_unit): Ditto.
7799
7800 2013-03-28 Pedro Alves <palves@redhat.com>
7801
7802 * NEWS (New options): New section.
7803 (New options): Mention set/show remote trace-status-packet.
7804 * remote.c (PACKET_qTStatus): New enumeration value.
7805 (remote_get_trace_status): Skip sending qTStatus if the packet is
7806 disabled. Use packet_ok.
7807 (_initialize_remote): Register a configuration command for
7808 qTStatus packet.
7809
7810 2013-03-28 Doug Evans <dje@google.com>
7811
7812 * symfile.c (find_separate_debug_file): Add comment.
7813 (terminate_after_last_dir_separator): Tweak comment.
7814
7815 * dwarf2read.c (create_partial_symtab): Add forward decl.
7816 (create_partial_symtab): Move to be closer to other psymtab functions.
7817 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7818
7819 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7820 (compute_symtab_includes): Remove unnecessary forward declaration.
7821 (die_needs_namespace): Add comment marking group of functions for
7822 dwarf2 name computation.
7823
7824 * typeprint.c (_initialize_typeprint): Improve type help text.
7825
7826 * python/python.c (finish_python_initialization): Provide suggestion
7827 for how to tell gdb to find its python files.
7828
7829 2013-03-28 Pedro Alves <palves@redhat.com>
7830
7831 PR gdb/15294
7832
7833 * source.c (_initialize_source): Change back "set listsize" to an
7834 integer command.
7835
7836 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7837
7838 PR gdb/15275
7839 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7840
7841 2013-03-27 Pedro Alves <palves@redhat.com>
7842
7843 * top.c (history_size): Rename to ...
7844 (history_size_setshow_var): ... this. Add comment.
7845 (show_commands): Use readline's 'history_length' instead of
7846 computing the history length by calling history_get in a loop.
7847 (set_history_size_command): Error out for sizes over INT_MAX.
7848 Restore previous history size on invalid size.
7849 (init_history): If HISTSIZE is negative, leave the history size as
7850 zero. Add comments.
7851 (init_main): Adjust.
7852
7853 2013-03-27 Pedro Alves <palves@redhat.com>
7854
7855 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7856 coff_pe_read" command to "set debug coff-pe-read".
7857
7858 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7859
7860 * record.c (command_size_to_target_size): Fix size comparison.
7861 Change parameter type from pointer to integer to integer.
7862 Update all users.
7863
7864 2013-03-27 Pierre Muller <muller@sourceware.org>
7865
7866 * windows-nat.c (handle_output_debug_string): Avoid typecast
7867 from integer of different size warning.
7868
7869 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7870
7871 * windows-nat.c (handle_output_debug_string): Add empty line
7872 after local block variable definition.
7873
7874 2013-03-26 Pedro Alves <palves@redhat.com>
7875
7876 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7877 (net_open): Make 'polls' local unsigned.
7878
7879 2013-03-26 Pedro Alves <palves@redhat.com>
7880
7881 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7882 a zuinteger command instead of uinteger.
7883
7884 2013-03-26 Pedro Alves <palves@redhat.com>
7885
7886 * record-full.c (record_full_insn_num): Make it unsigned.
7887 (record_full_check_insn_num, record_full_message)
7888 (record_full_registers_change, record_full_xfer_partial): Remove
7889 record_full_insn_max_num check (it's always != 0).
7890 (record_full_info, record_full_restore): Use %u as format string.
7891 (): Use %u as format string.
7892 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7893 check (it's always != 0).
7894
7895 2013-03-26 Pedro Alves <palves@redhat.com>
7896
7897 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7898 and "set dcache size" commands zuinteger instead of uinteger.
7899
7900 2013-03-26 Pedro Alves <palves@redhat.com>
7901
7902 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7903 command zuinteger instead of uinteger.
7904
7905 2013-03-26 Pedro Alves <palves@redhat.com>
7906
7907 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7908 zuinteger instead of uinteger.
7909
7910 2013-03-26 Pedro Alves <palves@redhat.com>
7911
7912 * record.c (record_insn_history_size_setshow_var)
7913 (record_call_history_size_setshow_var): New globals.
7914 (command_size_to_target_size): New function.
7915 (cmd_record_insn_history, cmd_record_call_history): Use
7916 command_size_to_target_size instead of cast.
7917 (validate_history_size, set_record_insn_history_size)
7918 (set_record_call_history_size): New functions.
7919 (_initialize_record): Install set_record_insn_history_size and
7920 set_record_call_history_size as "set" hooks of "set record
7921 instruction-history-size" and "set record
7922 function-call-history-size".
7923
7924 2013-03-26 Pedro Alves <palves@redhat.com>
7925
7926 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7927 use with history_max_entries use. Remove FIXME note.
7928
7929 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7930
7931 * record-btrace.c (record_btrace_close): Call
7932 record_btrace_auto_disable.
7933
7934 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7935
7936 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7937
7938 2013-03-25 Doug Evans <dje@google.com>
7939
7940 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7941
7942 2013-03-25 Tom Tromey <tromey@redhat.com>
7943
7944 PR symtab/11462:
7945 * c-exp.y (exp): Add new productions for destructors after '.' and
7946 '->'.
7947 (write_destructor_name): New function.
7948
7949 2013-03-25 Tom Tromey <tromey@redhat.com>
7950
7951 PR c++/9197:
7952 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7953 value_struct_elt, not lookup_struct_elt_type.
7954 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7955 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7956 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7957
7958 2013-03-25 Yao Qi <yao@codesourcery.com>
7959
7960 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7961 instead of '_mkdir'.
7962
7963 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7964
7965 * windows-nat.c (windows_get_absolute_argv0): New function.
7966 * windows-nat.h: Add its prototype.
7967
7968 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7969 Use IS_DIR_SEPARATOR instead of looking for a character inside
7970 SLASH_STRING. Include filenames.h.
7971 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7972 relocate_gdb_directory works when passed gdb_program_name.
7973 Include windows-nat.h.
7974
7975 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7976
7977 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7978 * remote.c (trace_error): Remove the special handling of '2'.
7979 (readchar) <SERIAL_EOF>
7980 (readchar) <SERIAL_ERROR>
7981 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7982 (remote_get_trace_status): Call throw_exception if EX is
7983 TARGET_CLOSE_ERROR.
7984 * utils.c (perror_with_name): Rename to ...
7985 (throw_perror_with_name): ... here. New parameter errcode, describe it
7986 in the function comment.
7987 (perror_with_name): New function wrapper.
7988 * utils.h (enum errors): New stub declaration.
7989 (throw_perror_with_name): New declaration.
7990
7991 2013-03-22 Pedro Alves <palves@redhat.com>
7992 Yao Qi <yao@codesourcery.com>
7993 Mark Kettenis <kettenis@gnu.org>
7994
7995 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7996 Don't let the user set the value to UINT_MAX directly.
7997 <var_integer>: Don't let the user set the value to INT_MAX
7998 directly.
7999
8000 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8001
8002 * remote.c (remote_unpush_target): New function.
8003 (remote_open_1): Remove two pop_target calls, update one comment, add
8004 comment to target_preopen call. Replace pop_target call by
8005 remote_unpush_target call.
8006 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8007 pop_target calls by remote_unpush_target calls.
8008
8009 2013-03-22 Pedro Alves <palves@redhat.com>
8010
8011 * linux-nat.c (linux_child_follow_fork): Don't call
8012 linux_enable_event_reporting.
8013 (linux_handle_extended_wait): Don't call
8014 linux_enable_event_reporting.
8015
8016 2013-03-22 Pedro Alves <palves@redhat.com>
8017
8018 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8019 use it to rewrite the trampoline buffers with type gdb_byte[], and
8020 undefine the macro. Remove char* cast.
8021
8022 2013-03-21 Doug Evans <dje@google.com>
8023
8024 New commands "mt set per-command {space,time,symtab} {on,off}".
8025 * NEWS: Add entry.
8026 * event-top.c: #include "maint.h".
8027 * main.c: #include "maint.h".
8028 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8029 timeval-utils.h, maint.h, cli/cli-setshow.h.
8030 (per_command_time, per_command_space): New static globals.
8031 (per_command_symtab): New static global.
8032 (per_command_setlist, per_command_showlist): New static globals.
8033 (struct cmd_stats): Move here from utils.c.
8034 (set_per_command_time): Renamed from set_display_time in utils.c
8035 and moved here. All callers updated.
8036 (set_per_command_space): Renamed from set_display_space in utils.c
8037 and moved here. All callers updated.
8038 (count_symtabs_and_blocks): New function.
8039 (report_command_stats): Moved here from utils.c. Add support for
8040 printing symtab stats. Only print data if enabled before command
8041 executed.
8042 (make_command_stats_cleanup): Ditto.
8043 (sert_per_command_cmd, show_per_command_cmd): New functions.
8044 (_initialize_maint_cmds): Add new commands
8045 mt set per-command {space,time,symtab} {on,off}.
8046 * maint.h: New file.
8047 * top.c: #include "maint.h".
8048 * utils.c (reset_prompt_for_continue_wait_time): New function.
8049 (get_prompt_for_continue_wait_time): New function.
8050 * utils.h (reset_prompt_for_continue_wait_time): Declare
8051 (get_prompt_for_continue_wait_time): Declare.
8052 (make_command_stats_cleanup): Moved to maint.h.
8053 (set_display_time, set_display_space): Moved to maint.h and renamed
8054 to set_per_command_time, set_per_command_space.
8055 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8056 parse_binary_operation and made non-static. Don't call error,
8057 just return an error marker. All callers updated.
8058 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8059
8060 2013-03-21 Tom Tromey <tromey@redhat.com>
8061
8062 * symfile.c (alloc_section_addr_info): Update header. Don't set
8063 'num_sections' field.
8064 (build_section_addr_info_from_section_table): Set 'num_sections'.
8065 (build_section_addr_info_from_bfd): Likewise.
8066 (build_section_addr_info_from_objfile): Remove dead loop
8067 condition.
8068 (free_section_addr_info): Unconditionally call xfree.
8069 (relative_addr_info_to_section_offsets, addrs_section_sort)
8070 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8071 condition.
8072 (syms_from_objfile_1): Remove dead 'if' condition. Check
8073 'num_sections'.
8074 (add_symbol_file_command): Set 'num_sections'.
8075 * symfile-mem.c (symbol_file_add_from_memory): Set
8076 'num_sections'.
8077 * somread.c (som_symfile_offsets): Remove dead loop condition.
8078 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8079 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8080
8081 2013-03-21 Tom Tromey <tromey@redhat.com>
8082
8083 * tracepoint.h (decode_agent_options): Add 'trace_string'
8084 argument.
8085 * tracepoint.c (decode_agent_options): Add 'trace_string'
8086 argument.
8087 (validate_actionline): Update.
8088 (collect_symbol): Add 'trace_string' argument.
8089 (struct add_local_symbols_data) <trace_string>: New field.
8090 (do_collect_symbol): Update.
8091 (add_local_symbols): Add 'trace_string' argument.
8092 (encode_actions_1): Update.
8093 (trace_dump_actions): Update.
8094 * dwarf2loc.c (access_memory): Update.
8095 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8096 * ax-general.c (new_agent_expr): Update.
8097 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8098 (gen_trace_for_return_address): Add argument.
8099 (trace_kludge, trace_string_kludge): Remove.
8100 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8101 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8102 (gen_trace_for_var): Add 'trace_string' argument.
8103 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8104 (gen_printf, agent_eval_command_one): Update.
8105
8106 2013-03-21 Tom Tromey <tromey@redhat.com>
8107
8108 PR exp/15109:
8109 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8110 Handle FILENAME token.
8111
8112 2013-03-21 Tom Tromey <tromey@redhat.com>
8113
8114 * c-exp.y (YYPRINT): Define.
8115 (c_print_token): New function.
8116
8117 2013-03-21 Tom Tromey <tromey@redhat.com>
8118
8119 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8120
8121 2013-03-21 Yao Qi <yao@codesourcery.com>
8122
8123 * ctf.c: Include "gdb_stat.h".
8124 [USE_WIN32API]: New macro 'mkdir'.
8125 (ctf_start): Use permission bits macros if they are defined.
8126
8127 2013-03-20 Keith Seitz <keiths@redhat.com>
8128
8129 * breakpoint.h (struct breakpoint): Add comment to
8130 extra_string indicating that this member is mallod'd.
8131 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8132
8133 2013-03-20 Pedro Alves <palves@redhat.com>
8134
8135 PR gdb/15289
8136
8137 * cli/cli-setshow.c (do_set_command)
8138 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8139 the result of parsing the command argument. Throw error if the
8140 value is greater than UINT_MAX. Print the invalid value with
8141 plongest.
8142 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8143 result of parsing the command argument. Throw error if the value
8144 is greater than INT_MAX, not greater or equal. Also throw error
8145 if the value is less than INT_MIN. Print the invalid value with
8146 plongest.
8147 <var_zuinteger_unlimited>: Throw error if the value is greater
8148 than INT_MAX, not greater or equal.
8149 (do_show_command) <var_integer, var_zinteger,
8150 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8151
8152 2013-03-20 Tom Tromey <tromey@redhat.com>
8153
8154 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8155 if possible.
8156 * dwarf2read.c (read_func_scope): Remove old FIXME.
8157 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8158 not LOC_COMPUTED.
8159 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8160 Unconditionally call via computed ops, if possible.
8161 * printcmd.c (address_info): Unconditionally call via computed ops,
8162 if possible.
8163 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8164 if possible.
8165 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8166 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8167 if possible.
8168
8169 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8170 Tom Tromey <tromey@redhat.com>
8171
8172 PR symtab/8421:
8173 * coffread.c (coff_register_index): New global.
8174 (process_coff_symbol, coff_read_enum_type): Set
8175 SYMBOL_ACLASS_INDEX.
8176 (_initialize_coffread): Initialize new global.
8177 * dwarf2loc.c (locexpr_find_frame_base_location)
8178 (dwarf2_block_frame_base_locexpr_funcs)
8179 (loclist_find_frame_base_location)
8180 (dwarf2_block_frame_base_loclist_funcs): New.
8181 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8182 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8183 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8184 (dwarf2_block_frame_base_loclist_funcs): New.
8185 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8186 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8187 globals.
8188 (read_func_scope): Update.
8189 (fixup_go_packaging, mark_common_block_symbol_computed)
8190 (var_decode_location, new_symbol_full, dwarf2_const_value):
8191 Set SYMBOL_ACLASS_INDEX.
8192 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8193 (_initialize_dwarf2_read): Initialize new globals.
8194 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8195 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8196 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8197 globals.
8198 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8199 (_initialize_mdebugread): Initialize new globals.
8200 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8201 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8202 (stab_register_index, stab_regparm_index): New globals.
8203 (define_symbol, read_enum_type, common_block_end): Set
8204 SYMBOL_ACLASS_INDEX.
8205 (_initialize_stabsread): Initialize new globals.
8206 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8207 globals.
8208 (MAX_SYMBOL_IMPLS): New define.
8209 (register_symbol_computed_impl, register_symbol_block_impl)
8210 (register_symbol_register_impl)
8211 (initialize_ordinary_address_classes): New functions.
8212 (_initialize_symtab): Call initialize_ordinary_address_classes.
8213 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8214 (struct symbol_impl): New.
8215 (SYMBOL_ACLASS_BITS): New define.
8216 (struct symbol) <aclass, ops>: Remove fields.
8217 <aclass_index>: New field.
8218 (symbol_impls): Declare.
8219 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8220 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8221 (register_symbol_computed_impl, register_symbol_block_impl)
8222 (register_symbol_register_impl): Declare.
8223 (struct symbol_computed_ops): Add location_has_loclist.
8224 (struct symbol_block_ops): New.
8225 (SYMBOL_BLOCK_OPS): New.
8226 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8227
8228 2013-03-20 Tom Tromey <tromey@redhat.com>
8229
8230 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8231 (print_partial_symbols, recursively_search_psymtabs): Use
8232 PSYMBOL_CLASS.
8233
8234 2013-03-20 Pierre Muller <muller@sourceware.org>
8235
8236 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8237 addtion, subtraction, multiplication and division binary operator.
8238
8239 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8240
8241 Code cleanup.
8242 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8243 * bsd-kvm.c (bsd_kvm_close): Likewise.
8244 * bsd-uthread.c (bsd_uthread_close): Likewise.
8245 * corelow.c (core_close): Likewise.
8246 (core_close_cleanup): Remove parameter quitting from a caller.
8247 * event-top.c (async_disconnect): Likewise.
8248 * exec.c (exec_close_1): Remove parameter quitting.
8249 * go32-nat.c (go32_close): Likewise.
8250 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8251 parameter quitting from a caller.
8252 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8253 variable.
8254 (mips_linux_close): Remove parameter quitting. Remove parameter
8255 quitting from a caller.
8256 * monitor.c (monitor_close): Remove parameter quitting.
8257 * monitor.h (monitor_close): Likewise.
8258 * record-btrace.c (record_btrace_close): Likewise.
8259 * record-full.c (record_full_close): Likewise.
8260 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8261 it also from fprintf_unfiltered.
8262 * remote-mips.c (mips_close): Remove parameter quitting.
8263 (mips_detach): Remove parameter quitting from a caller.
8264 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8265 (gdbsim_close): Remove duplicate function comment. Remove parameter
8266 quitting and remove it also from printf_filtered.
8267 * remote.c (remote_close): Remove parameter quitting.
8268 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8269 * target.c (update_current_target): Remove parameter int from to_close
8270 de_fault.
8271 (push_target, unpush_target, pop_target): Remove parameter quitting from
8272 a caller.
8273 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8274 Remove parameter quitting from a caller.
8275 (target_preopen): Remove parameter quitting from a caller.
8276 (target_close): Remove parameter quitting. Remove parameter quitting
8277 from a caller two times. Remove parameter quitting also from
8278 fprintf_unfiltered.
8279 * target.h (struct target_ops): Remove parameter quitting and as int
8280 from fields to_xclose and to_close.
8281 (extern struct target_ops current_target):
8282 (target_close, pop_all_targets): Remove parameter quitting. Update the
8283 comment.
8284 (pop_all_targets_above): Remove parameter quitting.
8285 * top.c (quit_target): Remove parameter quitting from a caller.
8286 * tracepoint.c (tfile_close): Remove parameter quitting.
8287 * windows-nat.c (windows_close): Remove parameter quitting.
8288
8289 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8290
8291 * windows-nat.c (handle_output_debug_string): Replace call
8292 to string_to_core_addr with call to strtoull.
8293
8294 2013-03-20 Yao Qi <yao@codesourcery.com>
8295
8296 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8297 and write it to CTF metadata.
8298
8299 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8300
8301 * windows-nat.c (handle_output_debug_string): Change type of n to
8302 SIZE_T to avoid crash on 64 bit systems.
8303
8304 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8305
8306 * python/python-internal.h (HAVE_SNPRINTF)
8307 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8308 about redefinition of snprintf by pyerrors.h.
8309
8310 2013-03-15 Steve Ellcey <sellcey@mips.com>
8311
8312 * remote-sim.c (sim_command_completer): Make char arguments const.
8313
8314 2013-03-15 Tom Tromey <tromey@redhat.com>
8315
8316 PR c++/15116:
8317 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8318
8319 2013-03-14 Tom Tromey <tromey@redhat.com>
8320
8321 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8322 New fields.
8323 (get_file_crc): Move from symfile.c.
8324 (gdb_bfd_crc): New function.
8325 * gdb_bfd.h (gdb_bfd_crc): Declare.
8326 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8327 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8328 (separate_debug_file_exists): Use gdb_bfd_crc.
8329
8330 2013-03-14 Tom Tromey <tromey@redhat.com>
8331
8332 * symfile.c (get_debug_link_info): Remove.
8333 (find_separate_debug_file_by_debuglink): Use
8334 bfd_get_debug_link_info.
8335
8336 2013-03-14 Tom Tromey <tromey@redhat.com>
8337
8338 * symtab.c (error_in_psymtab_expansion): New function.
8339 (lookup_symbol_aux_quick)
8340 (basic_lookup_transparent_type_quick): Remove "last resort"
8341 code. Use error_in_psymtab_expansion.
8342
8343 2013-03-14 Doug Evans <dje@google.com>
8344 Jan Kratochvil <jan.kratochvil@redhat.com>
8345
8346 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8347 any successful compare_filenames_for_search or FILENAME_CMP.
8348 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8349 * symtab.c (iterate_over_some_symtabs): Likewise.
8350
8351 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8352
8353 * source.c (print_source_lines_base): Make a local copy of
8354 symtab_to_fullname.
8355
8356 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8357 Jan Kratochvil <jan.kratochvil@redhat.com>
8358
8359 * source.c (print_source_lines_base): Suppress "file" for TUI.
8360
8361 2013-03-14 Keith Seitz <keiths@redhat.com>
8362 Alan Matsuoka <alanm@redhat.com>
8363
8364 PR c++/15203
8365 PR c++/15210
8366 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8367 TYPE_CODE_METHOD.
8368 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8369 symbols.
8370
8371 2013-03-14 Yao Qi <yao@codesourcery.com>
8372
8373 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8374 status to tfile if trace is stopped by command 'tstop'.
8375
8376 2013-03-14 Yao Qi <yao@codesourcery.com>
8377
8378 * tracepoint.c (tfile_write_status): Write trace notes and user
8379 name into tfile if they are not NULL.
8380
8381 2013-03-14 Hui Zhu <hui@codesourcery.com>
8382 Yao Qi <yao@codesourcery.com>
8383
8384 * Makefile.in (REMOTE_OBS): Add ctf.o.
8385 (SFILES): Add ctf.c.
8386 (HFILES_NO_SRCDIR): Add ctf.h.
8387 * ctf.c, ctf.h: New files.
8388 * tracepoint.c: Include 'ctf.h'.
8389 (collect_pseudocommand): Remove static.
8390 (trace_save_command): Parse option "-ctf".
8391 Produce different trace file writers per option.
8392 Adjust output message.
8393 (trace_save_tfile, trace_save_ctf): New.
8394 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8395 * mi/mi-main.c: Include 'ctf.h'.
8396 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8397 trace_save_tfile or trace_save_ctf.
8398 * NEWS: Mention these changes.
8399
8400 2013-03-14 Yao Qi <yao@codesourcery.com>
8401
8402 * tracepoint.c (trace_file_writer_xfree): New.
8403 (struct tfile_writer_data): New.
8404 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8405 (tfile_write_header, tfile_write_regblock_type): New.
8406 (tfile_write_status, tfile_write_uploaded_tsv): New.
8407 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8408 (tfile_write_raw_data, (tfile_end): New.
8409 (tfile_write_ops): New global variable.
8410 (TRACE_WRITE_R_BLOCK): New macro.
8411 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8412 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8413 (TRACE_WRITE_V_BLOCK): New macro.
8414 (trace_save): Add extra one parameter WRITER. Make it static.
8415 Use WRITER to writer trace.
8416 (tfile_trace_file_writer_new): New.
8417 (trace_save_command): Caller update.
8418 (trace_save_tfile): Write trace data in TFILE format.
8419 * tracepoint.h (struct trace_frame_write_ops): New.
8420 (struct trace_file_write_ops): New.
8421 (struct trace_file_writer): New.
8422 (trace_save): Remove its declaration.
8423 (trace_save_tfile): Declare it.
8424 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8425 instead of trace_save.
8426
8427 2013-03-13 Pedro Alves <palves@redhat.com>
8428
8429 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8430
8431 2013-03-13 Pedro Alves <palves@redhat.com>
8432
8433 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8434 commented out code.
8435 * demangle.c (current_demangling_style_string): Make it const.
8436 (set_demangling_command): Assert the demangling style is known.
8437 Remove all handling of unknown styles. Set
8438 'current_demangling_style_string' to an element of the
8439 demangling_style_names array.
8440 (set_demangling_style): Delete.
8441 (_initialize_demangler): Set current_demangling_style_string to the
8442 element of the demangling_style_names array that corresponds to
8443 the default demangling style. Remove FIXME note. Don't call
8444 set_demangling_style.
8445 * gdb-demangle.h (set_demangling_style): Remove declaration.
8446
8447 2013-03-13 Pedro Alves <palves@redhat.com>
8448
8449 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8450 fields const.
8451 (ada_make_symbol_completion_list): Make "text0" parameter const.
8452 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8453 * breakpoint.c (condition_completer): Make "text" and "word"
8454 parameters const. Adjust.
8455 (check_tracepoint_command): Adjust to validate_actionline
8456 prototype change.
8457 (catch_syscall_completer): Make "text" and "word" parameters
8458 const.
8459 * cli/cli-cmds.c (show_user): Make "comname" local const.
8460 (valid_command_p): Make "command" parameter const.
8461 (alias_command): Make "alias_prefix" and "command_prefix" locals
8462 const.
8463 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8464 (add_alias_cmd): Make "name" and "oldname" parameters const.
8465 Adjust. No longer make copy of OLDNAME.
8466 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8467 (add_setshow_cmd_full, add_setshow_enum_cmd)
8468 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8469 (add_setshow_filename_cmd, add_setshow_string_cmd)
8470 (add_setshow_string_noescape_cmd)
8471 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8472 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8473 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8474 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8475 Make "name" parameter const.
8476 (help_cmd): Rename "command" parameter to "arg". New const local
8477 "command".
8478 (find_cmd): Make "command" parameter const.
8479 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8480 deprecated_cmd_warning prototype change.
8481 (undef_cmd_error): Make "cmdtype" parameter const.
8482 (lookup_cmd): Make "line" parameter const.
8483 (deprecated_cmd_warning): Change type of "text" parameter to
8484 pointer to const char, from pointer to pointer to char. Adjust.
8485 (lookup_cmd_composition): Make "text" parameter const.
8486 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8487 parameters const.
8488 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8489 const.
8490 * cli/cli-script.c (validate_comname): Make "tem" local const.
8491 (define_command): New const local "tem_c". Use it in calls to
8492 lookup_cmd.
8493 (document_command): Make "tem" and "comfull" locals const.
8494 (show_user_1): Make "prefix" and "name" parameters const.
8495 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8496 const.
8497 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8498 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8499 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8500 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8501 (complete_on_enum, add_setshow_enum_cmd)
8502 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8503 (add_setshow_filename_cmd, add_setshow_string_cmd)
8504 (add_setshow_string_noescape_cmd)
8505 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8506 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8507 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8508 Change prototypes, constifying strings.
8509 * completer.c (noop_completer, filename_completer): Make "text"
8510 and "prefix" parameters const.
8511 (location_completer, expression_completer)
8512 (complete_line_internal): Make "text" and "prefix" parameters
8513 const and adjust.
8514 (command_completer, signal_completer): Make "text" and "prefix"
8515 parameters const.
8516 * completer.h (noop_completer, filename_completer)
8517 (expression_completer, location_completer, command_completer)
8518 (signal_completer): Change prototypes.
8519 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8520 parameters const.
8521 * cp-abi.c (cp_abi_completer): Likewise.
8522 * expression.h (parse_expression_for_completion): Change
8523 prototype.
8524 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8525 parameters const.
8526 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8527 * infrun.c (handle_completer): Make "text" and "word" parameters
8528 const.
8529 * interps.c (interpreter_completer): Make "text" and "word"
8530 parameters const.
8531 * language.h (struct language_defn)
8532 <la_make_symbol_completion_list>: Make "text" and "word"
8533 parameters const.
8534 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8535 (parse_exp_in_context): Rename to ...
8536 (parse_exp_in_context_1): ... this.
8537 (parse_exp_in_context): Reimplement, with const hack from
8538 parse_exp_1.
8539 (parse_expression_for_completion): Make "string" parameter const.
8540 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8541 to pointer to const char. Adjust.
8542 (print_command_1): Make "exp" parameter const.
8543 (output_command): Rename to ...
8544 (output_command_const): ... this. Make "exp" parameter const.
8545 (output_command): Reimplement.
8546 (x_command): Adjust.
8547 (display_command): Rename "exp" parameter to "arg". New "exp"
8548 local, const version of "arg".
8549 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8550 "cmd_name" local const.
8551 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8552 call.
8553 (cmdpy_completer): Make "text" and "word" parameters const.
8554 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8555 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8556 const.
8557 * remote.c (_initialize_remote): Make "cmd_name" local const.
8558 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8559 parameters const. Adjust.
8560 (completion_list_add_fields): Make "sym_text", "text" and "word"
8561 parameters const.
8562 (struct add_name_data) <sym_text, text, word>: Make fields const.
8563 (default_make_symbol_completion_list_break_on): Make "text" and
8564 "word" parameters const. Adjust locals.
8565 (default_make_symbol_completion_list)
8566 (make_symbol_completion_list, make_symbol_completion_type)
8567 (make_symbol_completion_list_fn): Make "text" and "word"
8568 parameters const.
8569 (make_file_symbol_completion_list): Make "text", "word" and
8570 "srcfile" parameters const. Adjust locals.
8571 (add_filename_to_list): Make "text" and "word" parameters const.
8572 (struct add_partial_filename_data) <text, word>: Make fields
8573 const.
8574 (make_source_files_completion_list): Make "text" and "word"
8575 parameters const.
8576 * symtab.h (default_make_symbol_completion_list_break_on)
8577 (default_make_symbol_completion_list, make_symbol_completion_list)
8578 (make_symbol_completion_type enum type_code)
8579 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8580 (make_source_files_completion_list): Change prototype.
8581 * top.c (execute_command): Adjust to pass pointer to pointer to
8582 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8583 change.
8584 (set_verbose): Make "cmdname" local const.
8585 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8586 and adjust.
8587 (validate_actionline): Make "line" parameter a pointer to const
8588 char, and adjust.
8589 (encode_actions_1): Make "action_exp" local const, and adjust.
8590 (encode_actions): Adjust.
8591 (replace_comma): Delete.
8592 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8593 const, and adjust. Don't frob the action string while splitting
8594 it at commas. Instead, make a copy of each split substring in
8595 turn.
8596 (trace_dump_command): Adjust to validate_actionline prototype
8597 change.
8598 * tracepoint.h (decode_agent_options, decode_agent_options)
8599 (encode_actions, validate_actionline): Change prototypes.
8600 * valprint.h (output_command): Delete declaration.
8601 (output_command_const): Declare.
8602 * value.c (function_destroyer): Cast const away in xfree call.
8603
8604 2013-03-13 Pedro Alves <palves@redhat.com>
8605
8606 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8607 rather than casting 'const char * const *' to 'const char **'.
8608 * ada-lex.l (processInt): Make "trailer" local const. Remove
8609 'const char **' cast.
8610 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8611 locals, and use those as strtol output pointer, instead than doing
8612 invalid casts to from 'const char **' to 'char **'.
8613 (_initialize_demangle): Remove cast.
8614 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8615 locals, and use those as strtol output pointer, instead than doing
8616 invalid casts to from 'const char **' to 'char **'.
8617 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8618 casts.
8619 * stap-probe.c (stap_parse_register_operand)
8620 (stap_parse_single_operand): Likewise.
8621
8622 2013-03-13 Yao Qi <yao@codesourcery.com>
8623
8624 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8625 the last matched 'V' blcok in trace frame.
8626
8627 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8628
8629 * NEWS: Create a new section for the next release branch.
8630 Rename the section of the current branch, now that it has
8631 been cut.
8632
8633 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8634
8635 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8636 * version.in: Bump version to 7.6.50.20130312-cvs.
8637
8638 2013-03-12 Keith Seitz <keiths@redhat.com>
8639
8640 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8641 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8642 Remove temporary copy of input string.
8643 (mi_execute_command_wrapper): Make "cmd" const.
8644 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8645 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8646 Use const strings.
8647 (mi_parse): Make "cmd" const.
8648 Use const strings.
8649 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8650
8651 2013-03-12 Keith Seitz <keiths@redhat.com>
8652
8653 * ada-lang.c (ada_read_renaming_var_value): Pass const
8654 pointer to expression string to parse_exp_1.
8655 (create_excep_cond_exprs): Likewise.
8656 * ax-gdb.c (agent_eval_command_one): Likewise.
8657 (maint_agent_printf_command): Likewise.
8658 Constify much of the string handling/parsing.
8659 * breakpoint.c (set_breakpoint_condition): Pass const
8660 pointer to expression string to parse_exp_1.
8661 (update_watchpoint): Likewise.
8662 (parse_cmd_to_aexpr): Constify string handling.
8663 Pass const pointer to parse_exp_1.
8664 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8665 (find_condition_and_thread): Likewise.
8666 Make TOK const.
8667 (watch_command_1): Make "arg" const.
8668 Constify string handling.
8669 Copy the expression string instead of changing the input
8670 string.
8671 (update_breakpoint_location): Pass const pointer to
8672 parse_exp_1.
8673 * eval.c (parse_and_eval_address): Make "exp" const.
8674 (parse_to_comma_and_eval): Make "expp" const.
8675 (parse_and_eval): Make "exp" const.
8676 * expression.h (parse_expression): Make argument const.
8677 (parse_exp_1): Make first argument const.
8678 * findcmd.c (parse_find_args): Treat "args" as const.
8679 * linespec.c (parse_linespec): Pass const pointer to
8680 linespec_expression_to_pc.
8681 (linespec_expression_to_pc): Make "exp_ptr" const.
8682 * parse.c (parse_exp_1): Make "stringptr" const.
8683 Make a copy of the expression to pass to parse_exp_in_context until
8684 this whole interface can be constified.
8685 (parse_expression): Make "string" const.
8686 * printcmd.c (ui_printf): Treat "arg" as const.
8687 Handle const strings.
8688 * tracepoint.c (validate_actionline): Pass const pointer to
8689 all calls to parse_exp_1.
8690 (encode_actions_1): Likewise.
8691 * value.h (parse_to_comma_and_eval): Make argument const.
8692 (parse_and_eval_address): Likewise.
8693 (parse_and_eval): Likewise.
8694 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8695 (varobj_set_value): Likewise.
8696 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8697 constify string handling.
8698 Pass const pointers to parse_and_eval_address and
8699 parse_to_comman_and_eval.
8700 * cli/cli-utils.c (skip_to_space): Rename to ...
8701 (skip_to_space_const): ... this. Handle const strings.
8702 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8703 skip_to_space_const.
8704 (skip_to_space_const): Declare.
8705 * common/format.c (parse_format_string): Make "arg" const.
8706 Handle const strings.
8707 * common/format.h (parse_format_string): Make "arg" const.
8708 * gdbserver/ax.c (ax_printf): Make "format" const.
8709 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8710 of the expression string.
8711
8712 2013-03-12 Hui Zhu <hui@codesourcery.com>
8713
8714 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8715
8716 2013-03-12 Yao Qi <yao@codesourcery.com>
8717 Hui Zhu <hui@codesourcery.com>
8718
8719 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8720 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8721 DW_OP_deref_size.
8722
8723 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8724
8725 * ada-lex.l (rules): Only recognize 'thread' as a
8726 delimiter when followed by numerals, as for c-exp.y.
8727 Use new rewind_to_char function to rewind the input for
8728 expression-delimiting tokens.
8729 (rewind_to_char): New function.
8730
8731 2013-03-11 Pedro Alves <palves@redhat.com>
8732 Jan Kratochvil <jan.kratochvil@redhat.com>
8733
8734 * configure: Regenerate.
8735 * configure.ac (check dynamic export flag): Link python test with
8736 $PYTHON_LIBS.
8737
8738 2013-03-11 Doug Evans <dje@google.com>
8739 Keith Seitz <keiths@redhat.com>
8740
8741 * linespec.c (find_linespec_symbols): Call find_function_symbols
8742 first, and then call lookup_prefix_sym/find_method.
8743
8744 2013-03-11 Pedro Alves <palves@redhat.com>
8745
8746 * charset.c (convert_between_encodings): Don't cast between
8747 different pointer to pointer types. Instead, make the 'inp' local
8748 be of the type iconv expects.
8749 (wchar_iterate): Don't cast between different pointer to pointer
8750 types. Instead, use new pointer local of the type iconv expects.
8751 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8752 Add new local of type char pointer, and use it to get a
8753 char/string view of the byte buffer, instead of casting between
8754 pointer to pointer types.
8755
8756 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8757
8758 * remote.c (remote_set_trace_buffer_size): Move != operator
8759 to the start of next line to fix an ARI warning.
8760
8761 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8762
8763 * NEWS: Add record changes.
8764
8765 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8766
8767 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8768 the instruction history disassembly.
8769 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8770 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8771
8772 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8773
8774 * Makefile.in (SFILES): Add record-btrace.c
8775 (COMMON_OBS): Add record-btrace.o
8776 * record-btrace.c: New.
8777 * objfiles.c: Include btrace.h.
8778 (free_objfile): call btrace_free_objfile.
8779
8780 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8781
8782 * target.c (target_call_history, target_call_history_from,
8783 target_call_history_range): New.
8784 * target.h (target_ops) <to_call_history, to_call_history_from,
8785 to_call_history_range>: New fields.
8786 (target_call_history, target_call_history_from,
8787 target_call_history_range): New declaration.
8788 * record.c (get_call_history_modifiers, cmd_record_call_history,
8789 record_call_history_size): New.
8790 (_initialize_record): Add the "record function-call-history" command.
8791 Add "set/show record function-call-history-size" commands.
8792 * record.h (record_print_flag): New.
8793
8794 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8795
8796 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8797 to_insn_history_range>: New fields.
8798 (target_insn_history): New.
8799 (target_insn_history_from): New.
8800 (target_insn_history_range): New.
8801 * target.c (target_insn_history): New.
8802 (target_insn_history_from): New.
8803 (target_insn_history_range): New.
8804 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8805 (record_insn_history_size): New.
8806 (get_insn_number): New.
8807 (get_context_size): New.
8808 (no_chunk): New.
8809 (get_insn_history_modifiers): New.
8810 (cmd_record_insn_history): New.
8811 (_initialize_record): Add "set/show record instruction-history-size"
8812 command. Add "record instruction-history" command.
8813
8814 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8815
8816 * record.h (record_disconnect): New.
8817 (record_detach): New.
8818 (record_mourn_inferior): New.
8819 (record_kill): New.
8820 * record-full.c (record_disconnect, record_detach,
8821 record_mourn_inferior, record_kill): Move to...
8822 * record.c: ...here.
8823 (DEBUG): New.
8824 (record_stop): New.
8825 (record_unpush): New.
8826 (cmd_record_stop): Call record_stop. Replace unpush_target
8827 call with record_unpush call.
8828 (record_disconnect, record_detach): Assert that the target
8829 is of record stratum. Call record_unpush, record_stop, and
8830 DEBUG.
8831 (record_mourn_inferior, record_kill): Assert that the target
8832 is of record stratum. Call record_unpush and DEBUG.
8833
8834 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8835
8836 * record-full.h, record-full.c (record_memory_query): Rename
8837 to ...
8838 (record_full_memory_query): ...this. Update all users.
8839 (record_arch_list_add_reg): Rename to ...
8840 (record_full_arch_list_add_reg): ...this. Update all users.
8841 (record_arch_list_add_mem): Rename to ...
8842 (record_full_arch_list_add_mem): ...this. Update all users.
8843 (record_arch_list_add_end): Rename to ...
8844 (record_full_arch_list_add_end): ...this. Update all users.
8845 (record_gdb_operation_disable_set): Rename to ...
8846 (record_full_gdb_operation_disable_set): ...this.
8847 Update all users.
8848
8849 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8850
8851 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8852 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8853 (RECORD_IS_REPLAY): Renamed to ...
8854 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8855 (RECORD_FILE_MAGIC): Renamed to ...
8856 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8857 (record_mem_entry): Renamed to ...
8858 (record_full_mem_entry): ... this. Updated all users.
8859 (record_reg_entry): Renamed to ...
8860 (record_full_reg_entry): ... this. Updated all users.
8861 (record_end_entry): Renamed to ...
8862 (record_full_end_entry): ... this. Updated all users.
8863 (record_type) <record_end, record_reg, record_mem>: Renamed
8864 to ...
8865 (record_full_type) <record_full_end, record_full_reg,
8866 record_full_mem>: ... this. Updated all users.
8867 (record_entry): Renamed to ...
8868 (record_full_entry): ... this. Updated all users.
8869 (record_core_buf_entry): Renamed to ...
8870 (record_full_core_buf_entry): ... this. Updated all users.
8871 (record_core_regbuf): Renamed to ...
8872 (record_full_core_regbuf): ... this. Updated all users.
8873 (record_core_start): Renamed to ...
8874 (record_full_core_start): ... this. Updated all users.
8875 (record_core_end): Renamed to ...
8876 (record_full_core_end): ... this. Updated all users.
8877 (record_core_buf_list): Renamed to ...
8878 (record_full_core_buf_list): ... this. Updated all users.
8879 (record_first): Renamed to ...
8880 (record_full_first): ... this. Updated all users.
8881 (record_list): Renamed to ...
8882 (record_full_list): ... this. Updated all users.
8883 (record_arch_list_head): Renamed to ...
8884 (record_full_arch_list_head): ... this. Updated all users.
8885 (record_arch_list_tail): Renamed to ...
8886 (record_full_arch_list_tail): ... this. Updated all users.
8887 (record_stop_at_limit): Renamed to ...
8888 (record_full_stop_at_limit): ... this. Updated all users.
8889 (record_insn_max_num): Renamed to ...
8890 (record_full_insn_max_num): ... this. Updated all users.
8891 (record_insn_num): Renamed to ...
8892 (record_full_insn_num): ... this. Updated all users.
8893 (record_insn_count): Renamed to ...
8894 (record_full_insn_count): ... this. Updated all users.
8895 (record_ops): Renamed to ...
8896 (record_full_ops): ... this. Updated all users.
8897 (record_core_ops): Renamed to ...
8898 (record_full_core_ops): ... this. Updated all users.
8899 (set_record_cmdlist): Renamed to ...
8900 (set_record_full_cmdlist): ... this. Updated all users.
8901 (show_record_cmdlist): Renamed to ...
8902 (show_record_full_cmdlist): ... this. Updated all users.
8903 (record_cmdlist): Renamed to ...
8904 (record_full_cmdlist): ... this. Updated all users.
8905 (record_beneath_to_resume_ops): Renamed to ...
8906 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8907 (record_beneath_to_resume): Renamed to ...
8908 (record_full_beneath_to_resume): ... this. Updated all users.
8909 (record_beneath_to_wait_ops): Renamed to ...
8910 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8911 (record_beneath_to_wait): Renamed to ...
8912 (record_full_beneath_to_wait): ... this. Updated all users.
8913 (record_beneath_to_store_registers_ops): Renamed to ...
8914 (record_full_beneath_to_store_registers_ops): ... this.
8915 Updated all users.
8916 (record_beneath_to_store_registers): Renamed to ...
8917 (record_full_beneath_to_store_registers): ... this.
8918 Updated all users.
8919 (record_beneath_to_xfer_partial_ops): Renamed to ...
8920 (record_full_beneath_to_xfer_partial_ops): ... this.
8921 Updated all users.
8922 (record_beneath_to_xfer_partial): Renamed to ...
8923 (record_full_beneath_to_xfer_partial): ... this.
8924 Updated all users.
8925 (record_beneath_to_insert_breakpoint): Renamed to ...
8926 (record_full_beneath_to_insert_breakpoint): ... this.
8927 Updated all users.
8928 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8929 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8930 Updated all users.
8931 (record_beneath_to_stopped_data_address): Renamed to ...
8932 (record_full_beneath_to_stopped_data_address): ... this.
8933 Updated all users.
8934 (record_beneath_to_async): Renamed to ...
8935 (record_full_beneath_to_async): ... this. Updated all users.
8936 (record_goto_insn): Renamed to ...
8937 (record_full_goto_insn): ... this. Updated all users.
8938 (record_save): Renamed to ...
8939 (record_full_save): ... this. Updated all users.
8940 (record_reg_alloc): Renamed to ...
8941 (record_full_reg_alloc): ... this. Updated all users.
8942 (record_reg_release): Renamed to ...
8943 (record_full_reg_release): ... this. Updated all users.
8944 (record_mem_alloc): Renamed to ...
8945 (record_full_mem_alloc): ... this. Updated all users.
8946 (record_mem_release): Renamed to ...
8947 (record_full_mem_release): ... this. Updated all users.
8948 (record_end_alloc): Renamed to ...
8949 (record_full_end_alloc): ... this. Updated all users.
8950 (record_end_release): Renamed to ...
8951 (record_full_end_release): ... this. Updated all users.
8952 (record_entry_release): Renamed to ...
8953 (record_full_entry_release): ... this. Updated all users.
8954 (record_list_release): Renamed to ...
8955 (record_full_list_release): ... this. Updated all users.
8956 (record_list_release_following): Renamed to ...
8957 (record_full_list_release_following): ... this.
8958 Updated all users.
8959 (record_list_release_first): Renamed to ...
8960 (record_full_list_release_first): ... this. Updated all users.
8961 (record_arch_list_add): Renamed to ...
8962 (record_full_arch_list_add): ... this. Updated all users.
8963 (record_get_loc): Renamed to ...
8964 (record_full_get_loc): ... this. Updated all users.
8965 (record_check_insn_num): Renamed to ...
8966 (record_full_check_insn_num): ... this. Updated all users.
8967 (record_arch_list_cleanups): Renamed to ...
8968 (record_full_arch_list_cleanups): ... this. Updated all users.
8969 (record_message): Renamed to ...
8970 (record_full_message): ... this. Updated all users.
8971 (record_message_wrapper): Renamed to ...
8972 (record_full_message_wrapper): ... this. Updated all users.
8973 (record_message_wrapper_safe): Renamed to ...
8974 (record_full_message_wrapper_safe): ... this. Updated all users.
8975 (record_gdb_operation_disable): Renamed to ...
8976 (record_full_gdb_operation_disable): ... this. Updated all users.
8977 (record_hw_watchpoint): Renamed to ...
8978 (record_full_hw_watchpoint): ... this. Updated all users.
8979 (record_exec_insn): Renamed to ...
8980 (record_full_exec_insn): ... this. Updated all users.
8981 (record_restore): Renamed to ...
8982 (record_full_restore): ... this. Updated all users.
8983 (record_async_inferior_event_token): Renamed to ...
8984 (record_full_async_inferior_event_token): ... this.
8985 Updated all users.
8986 (record_async_inferior_event_handler): Renamed to ...
8987 (record_full_async_inferior_event_handler): ... this.
8988 Updated all users.
8989 (record_core_open_1): Renamed to ...
8990 (record_full_core_open_1): ... this. Updated all users.
8991 (record_open_1): Renamed to ...
8992 (record_full_open_1): ... this. Updated all users.
8993 (record_open): Renamed to ...
8994 (record_full_open): ... this. Updated all users.
8995 (record_close): Renamed to ...
8996 (record_full_close): ... this. Updated all users.
8997 (record_resume_step): Renamed to ...
8998 (record_full_resume_step): ... this. Updated all users.
8999 (record_resumed): Renamed to ...
9000 (record_full_resumed): ... this. Updated all users.
9001 (record_execution_dir): Renamed to ...
9002 (record_full_execution_dir): ... this. Updated all users.
9003 (record_resume): Renamed to ...
9004 (record_full_resume): ... this. Updated all users.
9005 (record_get_sig): Renamed to ...
9006 (record_full_get_sig): ... this. Updated all users.
9007 (record_sig_handler): Renamed to ...
9008 (record_full_sig_handler): ... this. Updated all users.
9009 (record_wait_cleanups): Renamed to ...
9010 (record_full_wait_cleanups): ... this. Updated all users.
9011 (record_wait_1): Renamed to ...
9012 (record_full_wait_1): ... this. Updated all users.
9013 (record_wait): Renamed to ...
9014 (record_full_wait): ... this. Updated all users.
9015 (record_stopped_by_watchpoint): Renamed to ...
9016 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9017 (record_disconnect): Renamed to ...
9018 (record_full_disconnect): ... this. Updated all users.
9019 (record_detach): Renamed to ...
9020 (record_full_detach): ... this. Updated all users.
9021 (record_mourn_inferior): Renamed to ...
9022 (record_full_mourn_inferior): ... this. Updated all users.
9023 (record_kill): Renamed to ...
9024 (record_full_kill): ... this. Updated all users.
9025 (record_stopped_data_address): Renamed to ...
9026 (record_full_stopped_data_address): ... this. Updated all users.
9027 (record_registers_change): Renamed to ...
9028 (record_full_registers_change): ... this. Updated all users.
9029 (record_store_registers): Renamed to ...
9030 (record_full_store_registers): ... this. Updated all users.
9031 (record_xfer_partial): Renamed to ...
9032 (record_full_xfer_partial): ... this. Updated all users.
9033 (record_breakpoint): Renamed to ...
9034 (record_full_breakpoint): ... this. Updated all users.
9035 (record_breakpoint_p): Renamed to ...
9036 (record_full_breakpoint_p): ... this. Updated all users.
9037 (record_breakpoints): Renamed to ...
9038 (record_full_breakpoints): ... this. Updated all users.
9039 (record_sync_record_breakpoints): Renamed to ...
9040 (record_full_sync_record_breakpoints): ... this.
9041 Updated all users.
9042 (record_init_record_breakpoints): Renamed to ...
9043 (record_full_init_record_breakpoints): ... this.
9044 Updated all users.
9045 (record_insert_breakpoint): Renamed to ...
9046 (record_full_insert_breakpoint): ... this. Updated all users.
9047 (record_remove_breakpoint): Renamed to ...
9048 (record_full_remove_breakpoint): ... this. Updated all users.
9049 (record_can_execute_reverse): Renamed to ...
9050 (record_full_can_execute_reverse): ... this. Updated all users.
9051 (record_get_bookmark): Renamed to ...
9052 (record_full_get_bookmark): ... this. Updated all users.
9053 (record_goto_bookmark): Renamed to ...
9054 (record_full_goto_bookmark): ... this. Updated all users.
9055 (record_async): Renamed to ...
9056 (record_full_async): ... this. Updated all users.
9057 (record_can_async_p): Renamed to ...
9058 (record_full_can_async_p): ... this. Updated all users.
9059 (record_is_async_p): Renamed to ...
9060 (record_full_is_async_p): ... this. Updated all users.
9061 (record_execution_direction): Renamed to ...
9062 (record_full_execution_direction): ... this. Updated all users.
9063 (record_info): Renamed to ...
9064 (record_full_info): ... this. Updated all users.
9065 (record_delete): Renamed to ...
9066 (record_full_delete): ... this. Updated all users.
9067 (record_is_replaying): Renamed to ...
9068 (record_full_is_replaying): ... this. Updated all users.
9069 (record_goto_entry): Renamed to ...
9070 (record_full_goto_entry): ... this. Updated all users.
9071 (record_goto_begin): Renamed to ...
9072 (record_full_goto_begin): ... this. Updated all users.
9073 (record_goto_end): Renamed to ...
9074 (record_full_goto_end): ... this. Updated all users.
9075 (record_goto): Renamed to ...
9076 (record_full_goto): ... this. Updated all users.
9077 (init_record_ops): Renamed to ...
9078 (init_record_full_ops): ... this. Updated all users.
9079 (record_core_resume): Renamed to ...
9080 (record_full_core_resume): ... this. Updated all users.
9081 (record_core_kill): Renamed to ...
9082 (record_full_core_kill): ... this. Updated all users.
9083 (record_core_fetch_registers): Renamed to ...
9084 (record_full_core_fetch_registers): ... this. Updated all users.
9085 (record_core_prepare_to_store): Renamed to ...
9086 (record_full_core_prepare_to_store): ... this. Updated all users.
9087 (record_core_store_registers): Renamed to ...
9088 (record_full_core_store_registers): ... this. Updated all users.
9089 (record_core_xfer_partial): Renamed to ...
9090 (record_full_core_xfer_partial): ... this. Updated all users.
9091 (record_core_insert_breakpoint): Renamed to ...
9092 (record_full_core_insert_breakpoint): ... this. Updated all users.
9093 (record_core_remove_breakpoint): Renamed to ...
9094 (record_full_core_remove_breakpoint): ... this. Updated all users.
9095 (record_core_has_execution): Renamed to ...
9096 (record_full_core_has_execution): ... this. Updated all users.
9097 (init_record_core_ops): Renamed to ...
9098 (init_record_full_core_ops): ... this. Updated all users.
9099 (cmd_record_restore): Renamed to ...
9100 (cmd_record_full_restore): ... this. Updated all users.
9101 (record_save_cleanups): Renamed to ...
9102 (record_full_save_cleanups): ... this. Updated all users.
9103 (cmd_record_start): Renamed to ...
9104 (cmd_record_full_start): ... this. Updated all users.
9105 (set_record_insn_max_num): Renamed to ...
9106 (set_record_full_insn_max_num): ... this. Updated all users.
9107 (set_record_command): Renamed to ...
9108 (set_record_full_command): ... this. Updated all users.
9109 (show_record_command): Renamed to ...
9110 (show_record_full_command): ... this. Updated all users.
9111 (_initialize_record): Renamed to ...
9112 (_initialize_record_full): ... this. Updated all users.
9113
9114 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9115
9116 * record.h: Split into this and ...
9117 * record-full.h: ... this.
9118 * record.c: Split into this and ...
9119 * record-full.c: ... this.
9120 * target.h (target_ops): Add new fields to_info_record,
9121 to_save_record, to_delete_record, to_record_is_replaying,
9122 to_goto_record_begin, to_goto_record_end, to_goto_record.
9123 (target_info_record): New.
9124 (target_save_record): New.
9125 (target_supports_delete_record): New.
9126 (target_delete_record): New.
9127 (target_record_is_replaying): New.
9128 (target_goto_record_begin): New.
9129 (target_goto_record_end): New.
9130 (target_goto_record): New.
9131 * target.c (target_info_record): New.
9132 (target_save_record): New.
9133 (target_supports_delete_record): New.
9134 (target_delete_record): New.
9135 (target_record_is_replaying): New.
9136 (target_goto_record_begin): New.
9137 (target_goto_record_end): New.
9138 (target_goto_record): New.
9139 * record.h: Declare struct cmd_list_element.
9140 (record_cmdlist): New declaration.
9141 (set_record_cmdlist): New declaration.
9142 (show_record_cmdlist): New declaration.
9143 (info_record_cmdlist): New declaration.
9144 (cmd_record_goto): New declaration.
9145 * record.c: Remove unnecessary includes.
9146 Include inferior.h.
9147 (cmd_record_goto): Remove declaration.
9148 (record_cmdlist): Now extern. Initialize.
9149 (set_record_cmdlist): Now extern. Initialize.
9150 (show_record_cmdlist): Now extern. Initialize.
9151 (info_record_cmdlist): Now extern. Initialize.
9152 (find_record_target): New.
9153 (require_record_target): New.
9154 (cmd_record_start): Update.
9155 (cmd_record_delete): Remove target-specific code.
9156 Call target_delete_record.
9157 (cmd_record_stop): Unpush any record target.
9158 (set_record_insn_max_num): Move to record-full.c
9159 (set_record_command): Add comment.
9160 (show_record_command): Add comment.
9161 (info_record_command): Update comment.
9162 Remove target-specific code.
9163 Call the record target's to_info_record.
9164 (cmd_record_start): New.
9165 (cmd_record_goto): Now extern.
9166 Remove target-specific code.
9167 Call target_goto_begin, target_goto_end, or target_goto.
9168 (_initialize_record): Move record target ops initialization to
9169 record-full.c.
9170 Change "record" command help text.
9171 Move "record restore", "record set", and "record show" commands to
9172 record-full.c.
9173 * Makefile.in (SFILES): Add record-full.c.
9174 (HFILES_NO_SRCDIR): Add record-full.h.
9175 (COMMON_OBS): Add record-full.o.
9176 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9177 * arm-tdep.c: Include record-full.h.
9178 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9179 * i386-tdep.c: Include record-full.h.
9180 * infrun.c: Include record-full.h.
9181 * linux-record.c: Include record-full.h.
9182 * moxie-tdep.c: Include record-full.h.
9183 * record-full.c: Include record-full.h.
9184 Change module comment.
9185 (set_record_full_cmdlist): New.
9186 (show_record_full_cmdlist): New.
9187 (record_full_cmdlist): New.
9188 (record_goto_insn): New declaration.
9189 (record_save): New declaration.
9190 (record_check_insn_num): Change query string.
9191 (record_info): New.
9192 (record_delete): New.
9193 (record_is_replaying): New.
9194 (record_goto_entry): New.
9195 (record_goto_begin): New.
9196 (record_goto_end): New.
9197 (record_goto): New.
9198 (init_record_ops): Update.
9199 (init_record_core_ops): Update.
9200 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9201 (cmd_record_start): New.
9202 (set_record_insn_max_num): Moved from record.c
9203 (set_record_full_command): New.
9204 (show_record_full_command): New.
9205 (_initialize_record_full): New.
9206
9207 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9208
9209 * target.h (add_deprecated_target_alias): New.
9210 * target.c (add_deprecated_target_alias): New.
9211
9212 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9213
9214 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9215 and signal.h.
9216 (linux_supports_btrace): Add kernel and
9217 cpuid check.
9218 (kernel_supports_btrace): New function.
9219 (cpu_supports_btrace): New function.
9220 (intel_supports_btrace): New function.
9221
9222 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9223
9224 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9225 * remote.c: Include btrace.h.
9226 (struct btrace_target_info): New struct.
9227 (remote_supports_btrace): New function.
9228 (send_Qbtrace): New function.
9229 (remote_enable_btrace): New function.
9230 (remote_disable_btrace): New function.
9231 (remote_teardown_btrace): New function.
9232 (remote_read_btrace): New function.
9233 (init_remote_ops): Add btrace ops.
9234 (enum <unnamed>): Add btrace packets.
9235 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9236 (_initialize_remote): Add packet configuration for branch tracing.
9237
9238 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9239
9240 * features/btrace.dtd: New file.
9241 * Makefile.in (XMLFILES): Add btrace.dtd.
9242 * btrace.h (parse_xml_btrace): New declaration.
9243 * btrace.c: Include xml-support.h.
9244 (parse_xml_btrace): New function.
9245 (parse_xml_btrace_block): New function.
9246 (block_attributes): New struct.
9247 (btrace_attributes): New struct.
9248 (btrace_children): New struct.
9249 (btrace_elements): New struct.
9250
9251 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9252
9253 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9254 (amd64_linux_enable_btrace): New.
9255 (amd64_linux_disable_btrace): New.
9256 (amd64_linux_teardown_btrace): New.
9257 (_initialize_amd64_linux_nat): Initialize btrace ops.
9258 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9259 (i386_linux_enable_btrace): New.
9260 (i386_linux_disable_btrace): New.
9261 (i386_linux_teardown_btrace): New.
9262 (_initialize_i386_linux_nat): Initialize btrace ops.
9263 * config/i386/linux.mh: Add linux-btrace.o.
9264 * config/i386/linux64.mh: Add linux-btrace.o.
9265
9266 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9267
9268 * common/linux_btrace.h: New file.
9269 * common/linux_btrace.c: New file.
9270 * Makefile.in (SFILES): Add btrace.c.
9271 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9272 (COMMON_OBS): Add btrace.o.
9273 (linux-btrace.o): New rule.
9274
9275 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9276
9277 * target.h: Include btrace.h.
9278 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9279 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9280 * target.c (target_supports_btrace): New function.
9281 (target_enable_btrace): New function.
9282 (target_disable_btrace): New function.
9283 (target_teardown_btrace): New function.
9284 (target_read_btrace): New function.
9285 * btrace.h: New file.
9286 * btrace.c: New file.
9287 * Makefile.in: Add btrace.c.
9288 * gdbthread.h: Include btrace.h.
9289 (struct thread_info): Add btrace field.
9290 * thread.c: Include btrace.h.
9291 (clear_thread_inferior_resources): Call target_teardown_btrace.
9292 * common/btrace-common.h: New file.
9293
9294 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9295
9296 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9297 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9298 kill_status to outer block.
9299
9300 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9301
9302 Fix entry-values if the callee called a noreturn function.
9303 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9304 get_frame_address_in_block. Add new comment.
9305
9306 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9307
9308 Fix entry-values in C++ across CUs.
9309 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9310 lookup_minimal_symbol. Add a comment.
9311 * dwarf2read.c
9312 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9313 DW_AT_linkage_name.
9314
9315 2013-03-08 Yao Qi <yao@codesourcery.com>
9316
9317 * tracepoint.c (_initialize_tracepoint): Indent the code.
9318
9319 2013-03-08 Pedro Alves <palves@redhat.com>
9320
9321 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9322 (parse_find_args, find_command): Change type of pattern buffer
9323 locals to 'gdb_byte *'.
9324
9325 2013-03-08 Stan Shebs <stan@codesourcery.com>
9326 Hafiz Abid Qadeer <abidh@codesourcery.com>
9327
9328 * NEWS: Mention set and show trace-buffer-size commands.
9329 Mention new packet.
9330 * target.h (struct target_ops): New method
9331 to_set_trace_buffer_size.
9332 (target_set_trace_buffer_size): New macro.
9333 * target.c (update_current_target): Set up new method.
9334 * tracepoint.c (trace_buffer_size): New global.
9335 (start_tracing): Send it to the target.
9336 (set_trace_buffer_size): New function.
9337 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9338 * remote.c (remote_set_trace_buffer_size): New function.
9339 (_initialize_remote): Use it.
9340 (QTBuffer:size) New remote command.
9341 (PACKET_QTBuffer_size): New enum.
9342 (remote_protocol_features): Add an entry for
9343 PACKET_QTBuffer_size.
9344
9345 2013-03-08 Tom Tromey <tromey@redhat.com>
9346
9347 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9348 variable.
9349
9350 2013-03-07 Pedro Alves <palves@redhat.com>
9351
9352 * target.c (target_read_stralloc, target_fileio_read_alloc):
9353 *Cast pointer to 'gdb_byte *' in target call.
9354
9355 2013-03-07 Pedro Alves <palves@redhat.com>
9356
9357 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9358 call.
9359
9360 2013-03-07 Keith Seitz <keiths@redhat.com>
9361
9362 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9363 (trace_pass_command): Likewise.
9364 * cli/cli-cmds.c: Include cli/cli-utils.h.
9365 (source_command): Use skip-spaces.
9366 (disassemble_command): Likewise.
9367 * findcmd.c: Include cli/cli-utils.h.
9368 (parse_find_args): Use skip_spaces.
9369 * go32-nat.c: Include cli/cli-utils.h.
9370 (go32_sldt): Use skip_spaces.
9371 (go32_sgdt): Likewise.
9372 (go32_sidt): Likewise.
9373 (go32_pde): Likewise.
9374 (go32_pte): Likewise.
9375 (go32_pte_for_address): Likewise.
9376 * infcmd.c: Include cli/cli-utils.h.
9377 (registers_info): Use skip_spaces.
9378 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9379 (linux_info_proc): Likewise.
9380 * linux-thread-db.c: Include cli/cli-utils.h.
9381 (info_auto_load_libthread_db): Use skip_spaces_const.
9382 * m32r-rom.c: Include cli/cli-utils.h.
9383 (m32r_upload_command): Use skip_spaces.
9384 * maint.c: Include cli/cli-utils.h.
9385 (maintenance_translate_address): Use skip_spaces.
9386 * mi/mi-parse.c: Include cli/cli-utils.h.
9387 (mi_parse_argv): Use skip_spaces.
9388 (mi_parse): Likewise.
9389 * minsyms.c: Include cli/cli-utils.h.
9390 (msymbol_hash_iw): Use skip_spaces_const.
9391 * objc-lang.c: Include cli/cli-utils.h.
9392 (parse_selector): Use skip_spaces.
9393 (parse_method): Likewise.
9394 * python/python.c: Include cli/cli-utils.h.
9395 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9396 (python_command)[HAVE_PYTHON]: Likewise.
9397 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9398 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9399 (m32r_load): Use skip_spaces.
9400 * serial.c: Include cli/cli-utils.h.
9401 (serial_open): Use skip_spaces_const.
9402 * stack.c: Include cli/cli-utils.h.
9403 (parse_frame_specification_1): Use skip_spaces_const.
9404 * symfile.c: Include cli/cli-utils.h.
9405 (set_ext_lang_command): Use skip_spaces.
9406 * symtab.c: Include cli/cli-utils.h.
9407 (rbreak_command): Use skip_spaces.
9408 * thread.c (thread_name_command): Use skip_spaces.
9409 * tracepoint.c (validate_actionline): Use skip_spaces.
9410 (encode_actions_1): Likewise.
9411 (trace_find_range_command): Likewise.
9412 (trace_find_outside_command): Likewise.
9413 (trace_dump_actions): Likewise.
9414
9415 2013-03-07 Pedro Alves <palves@redhat.com>
9416
9417 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9418 * expprint.c (print_subexp_standard): Likewise.
9419 * utils.c (host_char_to_target): Likewise.
9420 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9421 * varobj.c (value_get_print_value): Change type of local to char*.
9422 Cast it gdb_byte * in call to language printer.
9423
9424 2013-03-07 Pedro Alves <palves@redhat.com>
9425
9426 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9427 gdb_byte *'.
9428 (make_wchar_iterator): Remove cast to char*.
9429 (wchar_iterate): Change type of local.
9430
9431 2013-03-07 Pedro Alves <palves@redhat.com>
9432
9433 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9434 for 'regcache->register_status'.
9435
9436 2013-03-07 Pedro Alves <palves@redhat.com>
9437
9438 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9439 int.
9440
9441 2013-03-07 Pedro Alves <palves@redhat.com>
9442
9443 * stap-probe.c (handle_stap_probe): Add cast to char*.
9444
9445 2013-03-07 Pedro Alves <palves@redhat.com>
9446
9447 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9448 RECORD_MSGRCV>: Pass a signed variable to
9449 regcache_raw_read_signed, instead of an unsigned one.
9450
9451 2013-03-07 Pedro Alves <palves@redhat.com>
9452
9453 * remote-notif.c (notif_debug): Change type to int.
9454 * remote-notif.h (notif_debug): Likewise.
9455
9456 2013-03-07 Pedro Alves <palves@redhat.com>
9457
9458 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9459
9460 2013-03-07 Pedro Alves <palves@redhat.com>
9461
9462 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9463 * remote.h (hex2bin, bin2hex): ... here.
9464 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9465
9466 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9467
9468 * utils.c (initialize_utils): Improve doc strings of "set/show
9469 width", "set/show height", and "set/show pagination".
9470
9471 2013-03-06 Keith Seitz <keiths@redhat.com>
9472
9473 * ax-gdb.c (gen_printf): Make FORMAT const.
9474 * ax-gdb.h (gen_printf): Likewise.
9475 * ax-general.c (ax_string): Make STR const.
9476 * ax.h (ax_string): Likewise.
9477
9478 2013-03-06 Doug Evans <dje@google.com>
9479
9480 * elfread.c (elf_symfile_read): Move debugging printf to more
9481 logical location.
9482
9483 2013-03-06 Pedro Alves <palves@redhat.com>
9484
9485 * python/py-utils.c (target_string_to_unicode): Delete function.
9486 * python/python-internal.h (target_string_to_unicode): Delete
9487 declaration.
9488
9489 2013-03-06 Pierre Muller <muller@sourceware.org>
9490
9491 * linespec.c (get_current_search_block): ARI fix, use (void)
9492 for empty parameter list.
9493
9494 2013-03-05 Doug Evans <dje@google.com>
9495
9496 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9497 of old ada_lookup_symbol_list. In !full_search case, don't
9498 search superblocks.
9499 (ada_lookup_symbol_list): Delete arg full_search, all callers
9500 updated. Call ada_lookup_symbol_list_worker.
9501 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9502 * ada-lang.h (ada_lookup_symbol_list): Update.
9503 * language.h (language_defn): Update comment for
9504 la_iterate_over_symbols.
9505 * linespec.c (iterate_over_file_blocks): New function.
9506 (iterate_over_all_matching_symtabs): Call it.
9507 (lookup_prefix_sym): Ditto.
9508 (get_current_search_block): New function.
9509 (get_search_block): Delete.
9510 (find_label_symbols): Call get_current_search_block.
9511 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9512 * symtab.c (iterate_over_symbols): Don't search superblocks.
9513
9514 2013-03-05 Yao Qi <yao@codesourcery.com>
9515
9516 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9517 parameter VAR's type from "unsigned int" to "int".
9518 * command.h (var_zuinteger_unlimited): Update its comments.
9519 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9520
9521 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9522
9523 * NEWS: Mention new target x86_64-*-cygwin*.
9524
9525 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9526
9527 * configure.host: Add x86_64-*-cygwin* as host.
9528 * configure.tgt: Add x86_64-*-cygwin* as target.
9529 * config/i386/cygwin64.mh: New file.
9530
9531 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9532
9533 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9534
9535 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9536
9537 * linespec.c (struct linespec_canonical_name): New.
9538 (struct linespec_state): Change canonical_names type to it.
9539 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9540 xrealloc element size. Initialize the different CANONICAL fields.
9541 (canonical_to_fullform): New.
9542 (filter_results): Use it. Add variables canonical, fullform and
9543 cleanup.
9544 (struct decode_line_2_item, decode_line_2_compare_items): New.
9545 (decode_line_2): Remove variables iter and item_names, add variables
9546 items and items_count. Modify the code for these new variables.
9547
9548 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9549
9550 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9551 calling do_cleanup.
9552
9553 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9554
9555 * tracepoint.c (build_traceframe_info): Add code for byte order.
9556
9557 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9558
9559 * v850-tdep.c: (v850e2_register_name): Revise system register
9560 names to match current V850E2M architecture specifications.
9561 Update register number enum comments too.
9562
9563 2013-03-01 Jiong Wang <jiwang@tilera.com>
9564 Pedro Alves <palves@redhat.com>
9565
9566 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9567 to END_ADDR.
9568 (tilegx_skip_prologue): Limit prologue analysis to section end.
9569
9570 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9571
9572 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9573 use it.
9574
9575 2013-03-01 Pedro Alves <palves@redhat.com>
9576
9577 Use gdb_byte for bytes from the program being debugged.
9578
9579 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9580 Change type of local 'buf' to gdb_byte.
9581 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9582 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9583 * cris-tdep.c (cris_sigcontext_addr)
9584 (cris_sigtramp_frame_unwind_cache): Likewise.
9585 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9586 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9587 Likewise.
9588 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9589 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9590 (hppa32_hpux_search_dummy_call_sequence)
9591 (hppa_hpux_supply_save_state): Likewise.
9592 * hppa-linux-tdep.c (insns_match_pattern)
9593 (hppa_linux_find_global_pointer): Likewise.
9594 * hppa-tdep.c (hppa_in_function_epilogue_p)
9595 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9596 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9597 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9598 (i386fbsd_collect_uthread): Likewise.
9599 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9600 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9601 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9602 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9603 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9604 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9605 (ia64_libunwind_frame_prev_register)
9606 (ia64_libunwind_sigtramp_frame_this_id)
9607 (ia64_find_global_pointer_from_dynamic_section)
9608 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9609 (ia64_unwind_pc): Likewise.
9610 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9611 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9612 (m68hc11_extract_return_value): Likewise.
9613 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9614 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9615 (mep_get_insn, mep_push_dummy_call): Likewise.
9616 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9617 (mips_linux_in_dynsym_stub): Likewise.
9618 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9619 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9620 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9621 to gdb_byte.
9622 * remote-mips.c (mips_set_register): Likewise.
9623 * remote-sim.c (gdbsim_fetch_register): Likewise.
9624 * score-tdep.c (score7_fetch_inst): Change type of parameter
9625 'memblock' and local 'buf' to gdb_byte.
9626 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9627 Change type of local 'buf' to gdb_byte. Adjust.
9628 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9629 to gdb_byte**.
9630 (score7_analyze_prologue): Change type of 'memblock' and
9631 'memblock_ptr' locals to gdb_byte*.
9632 * sh64-tdep.c (sh64_extract_return_value)
9633 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9634 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9635 * solib-pa64.c (pa64_solib_create_inferior_hook)
9636 (pa64_open_symbol_file_object): Remove local 'buf'.
9637 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9638 (som_open_symbol_file_object): Likewise.
9639 * solib-spu.c (spu_current_sos): Likewise.
9640 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9641 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9642 (spu_store_registers): Likewise.
9643 * target.c (debug_print_register): Likewise.
9644 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9645 * xstormy16-tdep.c (xstormy16_store_return_value)
9646 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9647 (xstormy16_find_jmp_table_entry): Likewise.
9648
9649 2013-03-01 Jiong Wang <jiwang@tilera.com>
9650
9651 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9652 (tilegx_gdbarch_init): Install it.
9653
9654 2013-02-28 Tom Tromey <tromey@redhat.com>
9655
9656 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9657 PyLong_Check.
9658
9659 2013-02-28 Doug Evans <dje@google.com>
9660
9661 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9662 * python/python.c (gdbpy_find_pc_line): Ditto.
9663
9664 2013-02-28 Tom Tromey <tromey@redhat.com>
9665
9666 * contrib/excheck.py: New file.
9667 * contrib/exsummary.py: New file.
9668 * contrib/gcc-with-excheck: New file.
9669
9670 2013-02-28 Tom Tromey <tromey@redhat.com>
9671
9672 * python/python.c (gdbpy_print_stack): Call begin_line and
9673 fprintf_filtered inside TRY_CATCH.
9674
9675 2013-02-28 Tom Tromey <tromey@redhat.com>
9676
9677 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9678 inside TRY_CATCH.
9679
9680 2013-02-28 Tom Tromey <tromey@redhat.com>
9681
9682 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9683 frame_object_to_frame_info inside TRY_CATCH.
9684
9685 2013-02-28 Tom Tromey <tromey@redhat.com>
9686
9687 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9688 TRY_CATCH.
9689
9690 2013-02-28 Tom Tromey <tromey@redhat.com>
9691
9692 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9693
9694 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9695
9696 * windows-nat.c: Throughout, fix format strings and casts of
9697 printf-like functions to avoid type related warnings on all
9698 platforms.
9699 (handle_output_debug_string): Fetch context information address
9700 from debug string using string_to_core_addr.
9701
9702 2013-02-27 Jiong Wang <jiwang@tilera.com>
9703
9704 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9705 * regformats/reg-tilegx32.dat: New.
9706
9707 2013-02-27 Jiong Wang <jiwang@tilera.com>
9708
9709 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9710
9711 2013-02-27 Jiong Wang <jiwang@tilera.com>
9712
9713 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9714
9715 2013-02-27 Yao Qi <yao@codesourcery.com>
9716 Pedro Alves <palves@redhat.com>
9717
9718 * tracepoint.c (tfile_trace_find): For tfind
9719 pc/tp/range/outside, look for the next trace frame instead of
9720 always starting from frame 0.
9721
9722 2013-02-26 Anthony Green <green@moxielogic.com>
9723
9724 * configure.tgt: Add support for moxie-*-rtems* target.
9725
9726 2013-02-25 Pedro Alves <palves@redhat.com>
9727
9728 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9729 warning text.
9730
9731 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9732
9733 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9734 if $fp is used as the virtual frame pointer.
9735
9736 2013-02-23 Alan Modra <amodra@gmail.com>
9737
9738 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9739 symbol size.
9740 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9741 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9742 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9743 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9744
9745 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9746
9747 Code cleanup.
9748 * elfread.c (build_id_bfd_get): Make the return type const.
9749 (build_id_verify): Make the check parameter const.
9750 (build_id_to_debug_filename): Make the build_id parameter and variable
9751 data const.
9752 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9753
9754 2013-02-21 Alan Modra <amodra@gmail.com>
9755
9756 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9757
9758 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9759
9760 Add a new method 'disassemble' to gdb.Architecture class.
9761 * python/py-arch.c (archpy_disassmble): Implementation of the
9762 new method gdb.Architecture.disassemble.
9763 (arch_object_methods): Add entry for the new method.
9764
9765 2013-02-20 Jiong Wang <jiwang@tilera.com>
9766
9767 * MAINTAINERS (Write After Approval): Add myself to the list.
9768
9769 2013-02-19 Pedro Alves <palves@redhat.com>
9770
9771 Garbage collect 'struct monitor_ops'::load_routine.
9772
9773 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9774 * monitor.c (monitor_load): No longer call
9775 current_monitor->load_routine.
9776 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9777 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9778 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9779
9780 2013-02-19 Pedro Alves <palves@redhat.com>
9781
9782 PR gdb/15161
9783
9784 Harmonize with generic_load.
9785
9786 * monitor.c: Include "readline/readline.h".
9787 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9788 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9789 long/strtol for the 'load_offset' local. Error out if no argument
9790 is given or if too many arguments are given. Tilde expand the
9791 passed in file name.
9792
9793 2013-02-19 Kai Tietz <ktietz@redhat.com>
9794
9795 PR gdb/15161
9796 * symfile.c (load_section_data): Change type of load_offset
9797 to CORE_ADDR.
9798 (generic_load): User strtoulst instead of strtoul for conversion
9799 of load_offset.
9800
9801 2013-02-19 Jiong Wang <jiwang@tilera.com>
9802
9803 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9804 for return address, "lr" register, saved on stack.
9805 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9806 after we invoke tilegx_analyze_prologue.
9807
9808 2013-02-19 Jiong Wang <jiwang@tilera.com>
9809
9810 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9811
9812 2013-02-19 Jiong Wang <jiwang@tilera.com>
9813
9814 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9815
9816 2013-02-19 Jiong Wang <jiwang@tilera.com>
9817
9818 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9819 (tilegx_write_pc): New function.
9820 (tilegx_cannot_reference_register): Return zero if REGNO
9821 is TILEGX_FAULTNUM_REGNUM.
9822 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9823 (tilegx_register_name): Add handling of "faultnum" register.
9824 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9825 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9826 handling of TILEGX_FAULTNUM_REGNUM.
9827 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9828
9829 2013-02-19 Jiong Wang <jiwang@tilera.com>
9830
9831 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9832 should be aligned to 64bit.
9833
9834 2013-02-19 Kai Tietz <ktietz@redhat.com>
9835
9836 * windows-nat.c (windows_xfer_memory): Fix debug-output
9837 for LLP64.
9838
9839 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9840
9841 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9842 Don't check DSP register number if HAVE_DSP is not set.
9843
9844 2013-02-19 Alan Modra <amodra@gmail.com>
9845
9846 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9847 throughout file instead.
9848 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9849 Don't xmalloc return value.
9850 (build_id_verify): Similarly. Don't xfree.
9851 (build_id_to_debug_filename): Update.
9852 (find_separate_debug_file_by_buildid): Update, don't xfree.
9853
9854 2013-02-18 Tom Tromey <tromey@redhat.com>
9855
9856 PR gdb/15102:
9857 * dwarf2read.c (read_subrange_type): Use result of
9858 'check_typedef'.
9859
9860 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9861
9862 * frame.c: Remove one extra white space after #include
9863 directive.
9864
9865 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9866
9867 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9868
9869 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9870
9871 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9872 and dir commands into an if block.
9873
9874 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9875
9876 * python/py-breakpoint (struct pybp_code): Use int instead of
9877 enum type_code.
9878
9879 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9880 Hafiz Abid Qadeer <abidh@codesourcery.com>
9881
9882 * NEWS: Mention new field "trace-file".
9883 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9884 (tfile_open): Record the trace file's filename in the trace
9885 status.
9886 (tfile_files_info): Mention the name of the trace file.
9887 Check the "filename" field explicitely.
9888 (trace_status_command): Explicitely check "filename" field.
9889 (trace_find_command): Ditto.
9890 (trace_find_pc_command): Ditto.
9891 (trace_find_tracepoint_command): Ditto.
9892 (trace_find_line_command): Ditto.
9893 (trace_find_range_command): Ditto.
9894 (trace_find_outside_command): Ditto.
9895 * tracepoint.h (struct trace_status) <from_file>: Rename it
9896 to "filename" and make it hold the trace file's filename
9897 instead of a boolean.
9898 * remote.c (remote_get_trace_status): Initialize "filename"
9899 field with NULL instead of 0.
9900
9901 2013-02-15 Yao Qi <yao@codesourcery.com>
9902
9903 * remote.c: Fix a typo.
9904
9905 2013-02-14 Pierre Muller <muller@sourceware.org>
9906
9907 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9908
9909 2013-02-14 Pedro Alves <palves@redhat.com>
9910
9911 * utils.c (savestring): Don't #undef it. Move function to
9912 common/common-utils.c.
9913 * common/common-utils.c: Include gdb_string.h.
9914 (savestring): Move here from utils.c.
9915 * common/common-utils.h (savestring): Declare.
9916
9917 2013-02-14 Pedro Alves <palves@redhat.com>
9918
9919 * utils.c (savestring): Rename parameter 'size' to 'len'.
9920
9921 2013-02-14 Pedro Alves <palves@redhat.com>
9922 Yufeng Zhang <yufeng.zhang@arm.com>
9923
9924 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9925 (aarch64_inferior_data, struct aarch64_inferior_data):
9926 Delete.
9927 (struct aarch64_process_info): New.
9928 (aarch64_process_list): New global.
9929 (aarch64_find_process_pid, aarch64_add_process)
9930 (aarch64_process_info_get): New functions.
9931 (aarch64_inferior_data_get): Delete.
9932 (aarch64_process_info_get): New function.
9933 (aarch64_forget_process): New function.
9934 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9935 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9936 aarch64_get_debug_reg_state.
9937 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9938 instead of linux_nat_iterate_watchpoint_lwps.
9939 (aarch64_linux_new_fork): New function.
9940 (aarch64_linux_child_post_startup_inferior): Use
9941 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9942 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9943 (aarch64_linux_remove_hw_breakpoint)
9944 (aarch64_handle_aligned_watchpoint)
9945 (aarch64_handle_unaligned_watchpoint)
9946 (aarch64_linux_insert_watchpoint)
9947 (aarch64_linux_remove_watchpoint)
9948 (aarch64_linux_stopped_data_address): Adjust to pass the current
9949 process id to aarch64_debug_reg_state.
9950 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9951 linux_nat_new_fork hook, and aarch64_forget_process as
9952 linux_nat_forget_process hook; remove the call to
9953 register_inferior_data_with_cleanup.
9954
9955 2013-02-14 Pedro Alves <palves@redhat.com>
9956
9957 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9958 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9959 lval_memory.
9960
9961 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9962 Hafiz Abid Qadeer <abidh@codesourcery.com>
9963
9964 * tracepoint.h (validate_trace_state_variable_name): Declare.
9965 * tracepoint.c (validate_trace_state_variable_name): New.
9966 (trace_variable_command): Parse the trace state variable's name
9967 without using parse_expression. Do several validations.
9968 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9969 trace state variable's name with parse_expression. Validate it.
9970
9971 2013-02-14 Yao Qi <yao@codesourcery.com>
9972
9973 * infcmd.c (breakpoint_proceeded): Remove it.
9974
9975 2013-02-14 Yao Qi <yao@codesourcery.com>
9976
9977 * tracepoint.c (end_actions_pseudocommand): Make it static.
9978 (while_stepping_pseudocommand): Likewise.
9979 * tracepoint.h (end_actions_pseudocommand): Remove the
9980 declaration.
9981 (while_stepping_pseudocommand): Likewise.
9982
9983 2013-02-14 Yao Qi <yao@codesourcery.com>
9984
9985 * cli/cli-decode.c (help_cmd): Remove the declaration of
9986 "cmdlist".
9987 (help_all): Likewise.
9988
9989 2013-02-13 Pedro Alves <palves@redhat.com>
9990
9991 * amd64-linux-nat.c (update_debug_registers_callback):
9992 Update comment.
9993 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9994 iterate_over_lwps.
9995 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9996 i386_debug_reg_state.
9997 (amd64_linux_new_fork): New function.
9998 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9999 linux_nat_new_fork hook, and i386_forget_process as
10000 linux_nat_forget_process hook.
10001 * i386-linux-nat.c (update_debug_registers_callback):
10002 Update comment.
10003 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10004 iterate_over_lwps.
10005 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10006 i386_debug_reg_state.
10007 (i386_linux_new_fork): New function.
10008 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10009 linux_nat_new_fork hook, and i386_forget_process as
10010 linux_nat_forget_process hook.
10011 * i386-nat.c (i386_init_dregs): Delete.
10012 (i386_inferior_data, struct i386_inferior_data):
10013 Delete.
10014 (struct i386_process_info): New.
10015 (i386_process_list): New global.
10016 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10017 New functions.
10018 (i386_inferior_data_get): Delete.
10019 (i386_process_info_get): New function.
10020 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10021 (i386_forget_process): New function.
10022 (i386_cleanup_dregs): Rewrite.
10023 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10024 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10025 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10026 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10027 to i386_debug_reg_state.
10028 (i386_use_watchpoints): Don't register inferior data.
10029 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10030 adjust comment.
10031 (i386_forget_process): Declare.
10032 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10033 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10034 New static globals.
10035 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10036 (add_initial_lwp): New, factored out from ...
10037 (add_lwp): ... this. Don't check the number of lwps before
10038 calling linux_nat_new_thread.
10039 (linux_nat_iterate_watchpoint_lwps): Delete.
10040 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10041 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10042 forks and vforks.
10043 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10044 initial lwp.
10045 (linux_nat_kill, linux_nat_mourn_inferior): Call
10046 linux_nat_forget_process.
10047 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10048 (linux_nat_forget_process): New functions.
10049 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10050 type.
10051 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10052 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10053 types.
10054 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10055 (linux_nat_forget_process): New declarations.
10056
10057 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10058 (amd64fbsd_mourn_inferior): New function.
10059 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10060 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10061
10062 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10063
10064 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10065 Adding _().
10066
10067 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10068
10069 * aarch64-linux-nat.c (debug_reg_change_callback)
10070 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10071 %s and phex().
10072
10073 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10074
10075 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10076 with LONGEST.
10077
10078 2013-02-13 Pedro Alves <palves@redhat.com>
10079 Hafiz Abid Qadeer <abidh@codesourcery.com>
10080
10081 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10082
10083 2013-02-12 Tom Tromey <tromey@redhat.com>
10084
10085 PR symtab/11464:
10086 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10087 NAME return.
10088 (classify_inner_name): Remove 'first_name' argument, add
10089 'context'. Remove unused variable.
10090 (yylex): Explicitly maintain the context type. Exit loop earlier
10091 if NAME result is seen.
10092
10093 2013-02-12 Pedro Alves <palves@redhat.com>
10094
10095 * amd64-darwin-tdep.c: Add (C) after Copyright.
10096 * cli/cli-cmds.h: Ditto.
10097 * cli/cli-decode.c: Ditto.
10098 * cli/cli-decode.h: Ditto.
10099 * cli/cli-dump.c: Ditto.
10100 * cli/cli-dump.h: Ditto.
10101 * cli/cli-interp.c: Ditto.
10102 * cli/cli-logging.c: Ditto.
10103 * cli/cli-script.c: Ditto.
10104 * cli/cli-script.h: Ditto.
10105 * cli/cli-setshow.c: Ditto.
10106 * cli/cli-setshow.h: Ditto.
10107 * cli/cli-utils.c: Ditto.
10108 * cli/cli-utils.h: Ditto.
10109 * config/alpha/nm-osf3.h: Ditto.
10110 * config/djgpp/djconfig.sh: Ditto.
10111 * config/i386/nm-fbsd.h: Ditto.
10112 * config/i386/nm-i386gnu.h: Ditto.
10113 * config/nm-linux.h: Ditto.
10114 * config/nm-nto.h: Ditto.
10115 * config/rs6000/nm-rs6000.h: Ditto.
10116 * config/sparc/nm-sol2.h: Ditto.
10117 * darwin-nat-info.c: Ditto.
10118 * dfp.c: Ditto.
10119 * dfp.h: Ditto.
10120 * gdb-demangle.h: Ditto.
10121 * i386-darwin-nat.c: Ditto.
10122 * i386-darwin-tdep.c: Ditto.
10123 * linux-fork.h: Ditto.
10124 * m32c-tdep.c: Ditto.
10125 * microblaze-linux-tdep.c: Ditto.
10126 * microblaze-rom.c: Ditto.
10127 * microblaze-tdep.c: Ditto.
10128 * microblaze-tdep.h: Ditto.
10129 * mips-linux-tdep.h: Ditto.
10130 * ppc-ravenscar-thread.c: Ditto.
10131 * ppc-ravenscar-thread.h: Ditto.
10132 * prologue-value.c: Ditto.
10133 * prologue-value.h: Ditto.
10134 * ravenscar-thread.c: Ditto.
10135 * ravenscar-thread.h: Ditto.
10136 * sparc-ravenscar-thread.c: Ditto.
10137 * sparc-ravenscar-thread.h: Ditto.
10138 * tilegx-linux-tdep.c: Ditto.
10139 * unwind_stop_reasons.def: Ditto.
10140 * windows-nat.h: Ditto.
10141 * xtensa-linux-tdep.c: Ditto.
10142 * xtensa-xtregs.c: Ditto.
10143 * regformats/regdat.sh: Ditto.
10144 * regformats/regdef.h: Ditto.
10145
10146 2013-02-12 Pedro Alves <palves@redhat.com>
10147
10148 * break-catch-sig.c: Update copyright years.
10149
10150 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10151
10152 Add support for a destructor for ui_out data and use it to
10153 provide a ui_out destructor.
10154 * ui-out.h: Declare the new ui_out destructor.
10155 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10156 * ui-out.c (default_data_destroy): Add a default data destructor
10157 which does nothing.
10158 (default_ui_out_impl): Set the new data_destroy field to
10159 default_data_destroy
10160 (uo_data_destroy): Local function which invokes the data
10161 destructor if present.
10162 (clear_table): Local function which clears the table data of a
10163 ui_out object.
10164 (ui_out_destroy): Public function which frees a ui_out object.
10165 (ui_out_table_end): Use the new clear_table function.
10166 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10167 NULL.
10168 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10169 to NULL.
10170
10171 2013-02-11 Doug Evans <dje@google.com>
10172
10173 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10174 (printf_decfloat): New function. Broken out from ui_printf.
10175 Remove unnecessary code to shift the entire format string down.
10176 (printf_pointer): New function.
10177 (ui_printf): Code to print C strings, wide C strings, decfloats,
10178 and pointers moved to separate functions.
10179
10180 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10181
10182 * valops.c (value_assign): Handling bitfield offset in
10183 `lval_internalvar_component' case.
10184
10185 2013-02-08 Doug Evans <dje@google.com>
10186
10187 * common/format.c (parse_format_string): Fix whitespace.
10188
10189 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10190
10191 * stack.c (return_command): Work around uninitialized variable
10192 warning.
10193
10194 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10195
10196 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10197 number of the registers from 36 to 34.
10198
10199 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10200
10201 * NEWS: Mention new AArch64 native and target support.
10202
10203 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10204
10205 * MAINTAINERS (Write After Approval): Add myself.
10206
10207 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10208 Marcus Shawcroft <marcus.shawcroft@arm.com>
10209 Nigel Stephens <nigel.stephens@arm.com>
10210 Yufeng Zhang <yufeng.zhang@arm.com>
10211
10212 * aarch64-linux-nat.c: New file.
10213 * config/aarch64/linux.mh: New file.
10214 * configure.host: Add AArch64.
10215 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10216
10217 2013-02-07 Doug Evans <dje@google.com>
10218
10219 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10220 disassemble command.
10221
10222 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10223
10224 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10225 set_gdbarch_fetch_tls_load_module_address.
10226
10227 2013-02-06 David S. Miller <davem@davemloft.net>
10228
10229 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10230 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10231 * value.c (struct_return_convention): New function.
10232 (using_struct_return): Implement in terms of struct_return_convention.
10233 * value.h (struct_return_convention): Declare.
10234 * stack.c (return_command): Allow successful overriding of the return
10235 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10236
10237 2013-02-06 Tom Tromey <tromey@redhat.com>
10238
10239 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10240 outside of TRY_CATCH.
10241
10242 2013-02-06 Yao Qi <yao@codesourcery.com>
10243
10244 * mi/mi-interp.c: Include "tracepoint.h".
10245 (mi_tsv_modified): Declare.
10246 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10247 (mi_interpreter_init): Call observer_attach_tsv_modified.
10248 (mi_tsv_modified): New.
10249 (mi_tsv_created, mi_tsv_deleted): Update.
10250 * tracepoint.c (trace_variable_command): Call
10251 observer_notify_tsv_modified if the initial value of tsv is
10252 changed.
10253 (delete_trace_state_variable): Call
10254 observer_notify_tsv_deleted earlier.
10255 (trace_variable_command): Caller update.
10256 (create_tsv_from_upload): Likewise.
10257 * observer.sh: Declare "struct trace_state_variable".
10258
10259 * NEWS: Mention the new MI notification "=tsv-modified".
10260
10261 2013-02-05 Doug Evans <dje@google.com>
10262
10263 * completer.c (location_completer): Fix typo in comment.
10264
10265 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10266
10267 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10268 ADDRESS sorted.
10269
10270 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10271
10272 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10273 Refactor if statement to avoid trailing || operator.
10274
10275 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10276
10277 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10278
10279 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10280
10281 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10282 * configure.host: Add powerpc*-*-freebsd* target.
10283 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10284 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10285 * config/powerpc/fbsd.mh: New file.
10286
10287 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10288 Denys Vlasenko <dvlasenk@redhat.com>
10289 Pedro Alves <palves@redhat.com>
10290
10291 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10292 (struct elf_internal_linux_prpsinfo): Forward declare.
10293 * gdbarch.h, gdbarch.c: Regenerate.
10294 * linux-tdep.c: Include `cli/cli-utils.h'.
10295 (linux_fill_prpsinfo): New function.
10296 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10297 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10298 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10299 depending on gdbarch pointer bitness.
10300 * ppc-linux-tdep.c: Include elf-bfd.h.
10301 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10302 on 32-bit.
10303
10304 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10305 Marcus Shawcroft <marcus.shawcroft@arm.com>
10306 Nigel Stephens <nigel.stephens@arm.com>
10307 Yufeng Zhang <yufeng.zhang@arm.com>
10308
10309 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10310
10311 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10312 Marcus Shawcroft <marcus.shawcroft@arm.com>
10313 Nigel Stephens <nigel.stephens@arm.com>
10314 Yufeng Zhang <yufeng.zhang@arm.com>
10315
10316 * aarch64-newlib-tdep.c: New file.
10317 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10318 aarch64*-*-elf.
10319 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10320 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10321 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10322 * osabi.c (gdb_osabi_names): Add "Newlib".
10323
10324 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10325 Marcus Shawcroft <marcus.shawcroft@arm.com>
10326 Nigel Stephens <nigel.stephens@arm.com>
10327 Yufeng Zhang <yufeng.zhang@arm.com>
10328
10329 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10330 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10331 * aarch64-linux-tdep.c: New file.
10332 * aarch64-linux-tdep.h: New file.
10333 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10334 * configure.tgt: Add aarch64-none-linux-gnu.
10335
10336 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10337 Marcus Shawcroft <marcus.shawcroft@arm.com>
10338 Nigel Stephens <nigel.stephens@arm.com>
10339 Yufeng Zhang <yufeng.zhang@arm.com>
10340
10341 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10342 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10343 (ALLDEPFILES): Add aarch64-tdep.c.
10344 * aarch64-tdep.c: New file.
10345 * aarch64-tdep.h: New file.
10346 * configure.tgt: Add AArch64.
10347 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10348 (aarch64-expedite): New definition.
10349 * features/aarch64-core.xml: New file.
10350 * features/aarch64-fpu.xml: New file.
10351 * features/aarch64-without-fpu.c: New file (generated).
10352 * features/aarch64-without-fpu.xml: New file.
10353 * features/aarch64.c: New file (generated).
10354 * features/aarch64.xml: New file.
10355 * regformats/aarch64-without-fpu.dat: New file (generated).
10356 * regformats/aarch64.dat: New file (generated).
10357
10358 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10359
10360 * contrib/expect-read1.c: New file.
10361 * contrib/expect-read1.sh: New file.
10362
10363 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10364
10365 * dwarf2read.c (file_file_name): New function with code from
10366 file_full_name.
10367 (file_full_name): Move most of the code to file_file_name.
10368 (macro_start_file): Rename variable full_name to file_name and use
10369 file_file_name for it. Add comp_dir parameter to new_macro_table.
10370 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10371 macro_source_file->filename access by macro_source_fullname call.
10372 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10373 caller.
10374 * macrotab.c (struct macro_table): New field comp_dir.
10375 (macro_include): New variables link_fullname and source_fullname.
10376 Replace any macro_source_file->filename access by macro_source_fullname
10377 call.
10378 (macro_lookup_inclusion): Remove the partial filenames checking code.
10379 (check_for_redefinition): New variables source_fullname and
10380 found_key_fullname. Replace any macro_source_file->filename access by
10381 macro_source_fullname call.
10382 (macro_undef): New variables source_fullname and key_fullname. Replace
10383 any macro_source_file->filename access by macro_source_fullname call.
10384 (macro_lookup_definition): New variables retval and source_fullname.
10385 Replace any macro_source_file->filename access by macro_source_fullname
10386 call.
10387 (foreach_macro): New variable key_fullname. Replace any
10388 macro_source_file->filename access by macro_source_fullname call.
10389 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10390 macro_source_file->filename access by macro_source_fullname call.
10391 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10392 (macro_source_fullname): New function.
10393 * macrotab.h (struct macro_source_file): Extent the filename field
10394 comment.
10395 (new_macro_table): New parameter comp_dir, add a comment for it.
10396 (macro_source_fullname): new declaration.
10397
10398 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10399
10400 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10401 this_real_name to outer block. Use it also for
10402 compare_filenames_for_search.
10403 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10404 with dw2_get_real_path for file_matcher, considering also
10405 BASENAMES_MAY_DIFFER.
10406 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10407
10408 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10409
10410 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10411 to the file_matcher parameter. Pass 0 to it.
10412 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10413 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10414 NULL psymtab_to_fullname result.
10415 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10416 an expected filename instead.
10417 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10418 file_matcher parameter. Call also psymtab_to_fullname, after newly
10419 considering BASENAMES_MAY_DIFFER.
10420 * source.c (rewrite_source_path): Remove static.
10421 * source.h (rewrite_source_path): New declaration.
10422 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10423 the expand_symtabs_matching field. Comment it.
10424 * symtab.c (file_matches): New function comment. Add parameter
10425 basenames, implement it.
10426 (search_symbols_file_matches): Add basenames parameter. Update the
10427 file_matches caller.
10428 (search_symbols): Match FILES also against symtab_to_fullname.
10429 Optimize it for BASENAMES_MAY_DIFFER.
10430
10431 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10432
10433 * source.c (print_source_lines_base): Print for TUI also "fullname".
10434 * tui/tui-data.c (init_content_element): Change tui_locator_element
10435 field to full_name.
10436 * tui/tui-data.h (struct tui_locator_element): Likewise.
10437 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10438 tui_update_locator_filename calls to tui_update_locator_fullname.
10439 Replace symtab->filename refererence by symtab_to_fullname call.
10440 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10441 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10442 field to full_name. Replace symtab->filename refererence by
10443 symtab_to_fullname call.
10444 (tui_show_symtab_source): Rename parameter to fullname. Change
10445 tui_locator_element field to full_name.
10446 * tui/tui-stack.c: Include source.h.
10447 (tui_set_locator_filename): Rename the declaration to ...
10448 (tui_set_locator_fullname): ... here. Rename its parameter to
10449 fullname, updates its comment.
10450 (tui_set_locator_info): Rename its parameter to fullname.
10451 (tui_set_locator_filename): Rename the definition to ...
10452 (tui_set_locator_fullname): ... here. Rename its parameter to
10453 fullname, updates its comment. Change tui_locator_element field to
10454 full_name.
10455 (tui_set_locator_info): Rename its parameter to fullname.
10456 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10457 (tui_update_locator_filename): Rename to ...
10458 (tui_update_locator_fullname): ... here. Rename callee to
10459 tui_set_locator_fullname.
10460 (tui_show_frame_info): Replace symtab->filename refererence by
10461 symtab_to_fullname call.
10462 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10463 (tui_update_locator_fullname): ... here.
10464 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10465 tui_update_locator_fullname. Replace symtab->filename refererence by
10466 symtab_to_fullname call.
10467 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10468 Rename the callee to tui_update_locator_fullname.
10469 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10470
10471 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10472
10473 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10474 by symtab_to_filename_for_display calls.
10475 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10476 (clear_command): New variable sal_fullname, initialize it. Replace
10477 compare_filenames_for_search by filename_cmp with sal_fullname.
10478 (say_where, update_static_tracepoint): Replace symtab->filename
10479 refererences by symtab_to_filename_for_display calls.
10480 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10481 Likewise.
10482 * dwarf2read.c: Include source.h.
10483 (fixup_go_packaging): Replace symtab->filename refererences by
10484 symtab_to_filename_for_display calls.
10485 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10486 Replace symtab->filename refererences by symtab_to_filename_for_display
10487 calls.
10488 (create_sals_line_offset, convert_linespec_to_sals): New variable
10489 fullname, initialize it, replace symtab->filename reference by the
10490 variable.
10491 * linux-fork.c: Include source.h.
10492 (info_checkpoints_command): Replace symtab->filename refererences by
10493 symtab_to_filename_for_display calls.
10494 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10495 by symtab_to_filename_for_display calls.
10496 * mdebugread.c: Include source.h.
10497 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10498 symtab_to_filename_for_display calls.
10499 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10500 (mi_cmd_file_list_exec_source_files): Likewise.
10501 * printcmd.c: Include source.h.
10502 (build_address_symbolic): Replace symtab->filename refererences by
10503 symtab_to_filename_for_display calls.
10504 * psymtab.c (partial_map_symtabs_matching_filename)
10505 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10506 with psymtab_to_fullname.
10507 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10508 by symtab_to_filename_for_display calls.
10509 (stpy_get_filename): New variable filename, initialize it, use instead
10510 of symtab->filename refererences.
10511 (salpy_str): Make variable filename const char *. Replace
10512 symtab->filename refererences by symtab_to_filename_for_display calls.
10513 * skip.c: Include source.h and filenames.h.
10514 (skip_file_command): Remove const from the symtab variable. Replace
10515 symtab->filename refererences by symtab_to_fullname call.
10516 (function_name_is_marked_for_skip): New variables searched_for_fullname
10517 and fullname. Use them to search also with symtab's fullname.
10518 * source.c (find_source_lines): Replace symtab->filename refererences
10519 by symtab_to_filename_for_display calls.
10520 (print_source_lines_base): New variable filename, use it instead of
10521 symtab->filename. Replace symtab->filename refererences by
10522 symtab_to_filename_for_display calls.
10523 (line_info, forward_search_command): Replace symtab->filename
10524 refererences by symtab_to_filename_for_display calls.
10525 (reverse_search_command): Replace symtab->filename refererences by
10526 symtab_to_filename_for_display calls. New variable filename for it.
10527 * stack.c (frame_info): Likewise.
10528 * symmisc.c: Include source.h.
10529 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10530 (maintenance_info_symtabs): Replace symtab->filename refererences by
10531 symtab_to_filename_for_display calls.
10532 * symtab.c (iterate_over_some_symtabs): Call
10533 compare_filenames_for_search also with symtab_to_fullname.
10534 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10535 symtab->filename refererences by symtab_to_filename_for_display calls.
10536 (find_line_symtab): Replace symtab->filename refererences by
10537 symtab_to_filename_for_display calls.
10538 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10539 (print_symbol_info): Make the last parameter const char *. New
10540 variable s_filename. Use it in the function.
10541 (symtab_symbol_info): Make the last_filename variable const char *.
10542 Replace symtab->filename refererences by symtab_to_filename_for_display
10543 calls.
10544 (rbreak_command): New variable fullname. Use it. Replace
10545 symtab->filename refererence by symtab_to_filename_for_display call.
10546 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10547 (print_one_static_tracepoint_marker): Replace symtab->filename
10548 refererences by symtab_to_filename_for_display calls.
10549 * tui/tui-source.c (tui_set_source_content): New variables filename and
10550 s_filename. Replace symtab->filename refererences by this variable.
10551 Replace other symtab->filename refererences by
10552 symtab_to_filename_for_display calls.
10553
10554 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10555 Jan Kratochvil <jan.kratochvil@redhat.com>
10556
10557 Add a new variable that controls a way in which filenames are
10558 displayed.
10559 * NEWS (set filename-display): New entry.
10560 * source.c (filename_display_basename, filename_display_relative)
10561 (filename_display_absolute, filename_display_kind_names)
10562 (filename_display_string, show_filename_display_string)
10563 (symtab_to_filename_for_display): New.
10564 (_initialize_source): Added initialization of 'filename-display'
10565 variable.
10566 * source.h (symtab_to_filename_for_display): Added declaration.
10567 * stack.c (print_frame): Added new variable and calling of a new
10568 function and condition with this variable. Changed third argument of
10569 calling of a function.
10570
10571 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10572
10573 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10574 Rename field reference filename to fullname.
10575 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10576 fullname. New comment for it.
10577 * tui/tui-source.c (tui_set_source_content): Rename field reference
10578 filename to fullname. Initialize field by symtab_to_fullname now.
10579 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10580 reference filename to fullname. Use symtab_to_fullname during
10581 comparison.
10582
10583 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10584
10585 Code cleanup.
10586 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10587 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10588 filename to fullname. Rename variable this_name to this_fullname.
10589 Lowercase FILENAME_CMP call.
10590 (dw2_find_symbol_file): New comment for the returned string.
10591 (dwarf2_gdb_index_functions): Rename the function to
10592 dw2_expand_symtabs_with_fullname.
10593 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10594 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10595 fullname.
10596 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10597 * symfile.h (struct quick_symbol_functions): Rename field
10598 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10599 parameter filename to fullname. Document returned string meaning for
10600 find_symbol_file.
10601 * symtab.c (find_line_symtab): Rename the called function to
10602 expand_symtabs_with_fullname.
10603
10604 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10605
10606 Code cleanup.
10607 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10608 call of filename_cmp with compare_filenames_for_search.
10609 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10610 is_abs, unify the call of FILENAME_CMP with
10611 compare_filenames_for_search. New gdb_asserts for real_path and name.
10612 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10613 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10614 * symfile.h (struct quick_symbol_functions): Extend the comment for
10615 map_symtabs_matching_filename.
10616 * symtab.c (compare_filenames_for_search): Remove the function comment
10617 relative path requirement. Handle absolute filenames, with a comment.
10618 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10619 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10620 real_path and name. Unify the call of compare_filenames_for_search
10621 with FILENAME_CMP.
10622 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10623
10624 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10625
10626 Code cleanup.
10627 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10628 source_file references by symtab field references. Remove variables
10629 sal and fullname.
10630 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10631 (clear_command, say_where): Replace bp_location field source_file
10632 references by symtab field references.
10633 (bp_location_dtor): Remove the source_file reference.
10634 (update_static_tracepoint): Replace bp_location field source_file
10635 references by symtab field references.
10636 (breakpoint_free_objfile): New function.
10637 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10638 Replace the field source_file by field symtab, extend its comment.
10639 (breakpoint_free_objfile): New declaration.
10640 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10641 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10642 field source_file references by symtab field references.
10643
10644 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10645
10646 Replace xfullpath calls by gdb_realpath calls.
10647 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10648 function comment.
10649 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10650 Remove it from the iterate_over_some_symtabs call.
10651 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10652 Remove it from the dw2_map_expand_apply calls, remove a block handling
10653 it.
10654 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10655 Remove it from the iterate_over_some_symtabs call.
10656 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10657 Remove it from the partial_map_expand_apply calls, remove a block
10658 handling it. Drop gdb_realpath call and cleanups from the real_path
10659 handling.
10660 * source.c (openp): Drop the comment part about xfullpath. Replace
10661 xfullpath calls by gdb_realpath calls.
10662 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10663 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10664 from method map_symtabs_matching_filename and its comment.
10665 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10666 gdb_realpath call.
10667 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10668 remove it also from the function comment, remove a block handling it.
10669 Drop gdb_realpath call and cleanups from the real_path handling.
10670 (iterate_over_symtabs): Drop variable full_path and its use.
10671 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10672 * utils.c (xfullpath): Remove.
10673 * utils.h (xfullpath): Remove.
10674
10675 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10676
10677 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10678 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10679 (ALLDEPFILES): Add ppc64-tdep.c.
10680 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10681 ppc64-tdep.o to gdb_target_obs.
10682 * ppc64-tdep.h: New file.
10683 * ppc64-tdep.c: New file.
10684 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10685 ppc-linux-tdep.c to here.
10686 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10687 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10688 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10689 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10690 from ppc-linux-tdep.c to here.
10691 (ppc64_convert_from_func_ptr_addr): Rename from
10692 ppc64_linux_convert_from_func_ptr_addr to
10693 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10694 here.
10695 * rs6000-tdep.c:
10696 (read_insn): Move from ppc-linux-tdep.c to here.
10697 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10698 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10699 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10700 Removed above functions.
10701 (ppc_linux_init_abi): Adjust.
10702
10703 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10704
10705 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10706
10707 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10708
10709 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10710
10711 2013-02-01 Pedro Alves <palves@redhat.com>
10712
10713 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10714 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10715
10716 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10717
10718 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10719 files with no separate debug info.
10720 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10721 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10722 only for files with no separate debug info.
10723
10724 2013-01-31 Tom Tromey <tromey@redhat.com>
10725
10726 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10727 change type.
10728 (struct jit_program_space_data): Rename from jit_inferior_data.
10729 Update comments.
10730 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10731 Change return type. Attach data to program space.
10732 (jit_program_space_data_cleanup): Rename from
10733 jit_inferior_data_cleanup; change argument type.
10734 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10735 change type.
10736 (jit_register_code): Update.
10737 (jit_update_inferior_cache): Remove.
10738 (jit_breakpoint_deleted): Get jit data from the location's program
10739 space.
10740 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10741 'ps_data', change type.
10742 (jit_inferior_init, jit_breakpoint_re_set_internal)
10743 (jit_event_handler): Update.
10744 (free_objfile_data): Get data from objfile's program space.
10745 (_initialize_jit): Update.
10746
10747 2013-01-31 Tom Tromey <tromey@redhat.com>
10748
10749 PR gdb/13987:
10750 * jit.c (struct jit_inferior_data) <cached_code_address,
10751 jit_breakpoint>: New fields.
10752 (jit_breakpoint_re_set_internal): Fix logging. Only create
10753 breakpoint if cached address has changed.
10754 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10755 functions.
10756 (_initialize_jit): Register breakpoint deleted observer.
10757
10758 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10759
10760 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10761 (save_infcall_suspend_state): Ifdef out unused inf.
10762 (restore_infcall_suspend_state): Ifdef out unused inf.
10763 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10764 (jit_frame_sniffer): Remove unused inf_data.
10765
10766 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10767
10768 * c-exp.y (classify_inner_name): Remove unused type.
10769 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10770 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10771 need_escape.
10772 (c_get_string): Remove unused kind.
10773 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10774
10775 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10776
10777 * charset.c (intermediate_encoding): Remove unused i.
10778 * completer.c (signal_completer): Remove unused i.
10779 * continuations.c (discard_my_continuations_1): Remove unused
10780 continuation_ptr.
10781 * corelow.c (core_close): Remove unuseD name.
10782 (get_core_siginfo): Remove unused pid.
10783 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10784 i, cps.
10785 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10786 (loclist_describe_location): Remove unused first.
10787 * event-top.c (command_line_handler): Remove unused got_eof.
10788 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10789 (resize_section_table): Remove unused old_value.
10790 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10791 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10792 * i386-tdep.c (i386_process_record): Remove unused rex.
10793 * infcmd.c (get_return_value): Remove unused uiout.
10794 * jv-lang.c (type_from_class): Remove unused is_array.
10795 * jv-valprint.c (java_val_print): Remove unused i.
10796 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10797 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10798 * m2-typeprint.c (m2_print_type): Remove unused code.
10799 * macroexp.c (get_character_constant): Remove unused body_start.
10800 (macro_stringify): Remove unused result.
10801 * objc-lang.c (find_methods): Remove unused gdbarch.
10802 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10803 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10804 * stack.c (print_frame_args): Remove unused summary.
10805 * thread.c (thread_apply_command): Remove unused p.
10806 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10807 * valops.c (search_struct_method): Remove unused skip.
10808 * valprint.c (generic_val_print): Remove unused byte_order.
10809 * varobj.c (varobj_update): Remove unused changed.
10810 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10811 (alias_command): Remove unused c.
10812 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10813 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10814 format.
10815 (mi_cmd_data_write_memory): Remove unused word_format.
10816 (mi_cmd_data_write_memory_bytes): Remove unused r.
10817 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10818 p_start, p_end.
10819 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10820 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10821 line_width.
10822
10823 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10824
10825 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10826 * symtab.c (iterate_over_symtabs): Remove unused s.
10827 (find_pc_sect_symtab): Remove unused pspAce.
10828 (find_pc_sect_line): Remove unused alt_symtab.
10829 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10830 (completion_list_add_name): Remove unused newsize.
10831
10832 2013-01-31 Tom Tromey <tromey@redhat.com>
10833
10834 PR c++/14998:
10835 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10836 TYPE_CODE_FUNC.
10837
10838 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10839
10840 * target.c (target_read_string): Remove unused origlen.
10841
10842 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10843
10844 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10845 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10846 * ax-general.c (ax_print): Remove unused is_float.
10847 * blockframe.c (block_innermost_frame): Remove unused start, end.
10848 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10849
10850 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10851
10852 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10853 (svr4_read_so_list): Remove unused lmo.
10854 * solib-target.c (solib_target_relocate_section_addresses): Remove
10855 unused flags.
10856
10857 2013-01-30 Tom Tromey <tromey@redhat.com>
10858
10859 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10860
10861 2013-01-30 Tom Tromey <tromey@redhat.com>
10862
10863 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10864 * utils.c (gnu_debuglink_crc32): Remove.
10865 * utils.h (gnu_debuglink_crc32): Don't declare.
10866
10867 2013-01-30 Tom Tromey <tromey@redhat.com>
10868
10869 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10870 (read_structure_type, read_enumeration_type): Remove cast.
10871
10872 2013-01-30 Tom Tromey <tromey@redhat.com>
10873
10874 * dwarf2read.c (read_namespace_type): Remove cast.
10875 (read_typedef): Likewise.
10876
10877 2013-01-29 Tom Tromey <tromey@redhat.com>
10878
10879 * dwarf2read.c (free_dwo_file): Remove assert.
10880
10881 2013-01-29 Tom Tromey <tromey@redhat.com>
10882
10883 * value.c (deprecated_set_value_modifiable): Remove.
10884 * value.h (deprecated_set_value_modifiable): Remove.
10885
10886 2013-01-28 Doug Evans <dje@google.com>
10887
10888 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10889 to addresses from dwo files.
10890
10891 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10892
10893 * valops.c (find_overload_match): Remove unused argument 'lax'.
10894 * value.h: Remove unused argument 'lax' from the declaration of
10895 find_overload_match.
10896 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10897 to find_overload_match.
10898 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10899 argument to find_overload_match.
10900
10901 2013-01-25 Tom Tromey <tromey@redhat.com>
10902
10903 * dwarf2read.c (processing_has_namespace_info): Remove.
10904 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10905 (process_die, read_func_scope, dwarf2_start_symtab)
10906 (new_symbol_full): Update.
10907
10908 2013-01-25 Tom Tromey <tromey@redhat.com>
10909
10910 * cp-namespace.c (cp_set_block_scope): Remove.
10911 * cp-support.h (cp_set_block_scope): Remove.
10912 * dbxread.c: Include block.h.
10913 (cp_set_block_scope): New function.
10914 (process_one_symbol): Update.
10915 * dwarf2read.c (read_func_scope): Use block_set_scope.
10916
10917 2013-01-25 Pedro Alves <palves@redhat.com>
10918
10919 * remote.c (add_current_inferior_and_thread): Tweak comment.
10920
10921 2013-01-25 Tom Tromey <tromey@redhat.com>
10922
10923 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10924 (cp_add_using_directive): Add 'copy_names' argument.
10925 * cp-support.h (cp_add_using_directive): Update.
10926 (struct using_direct) <import_src, import_dest, alias,
10927 declaration>: Now const.
10928 * dwarf2read.c (read_import_statement): Use obconcat.
10929 Don't copy names passed to cp_add_using_directive.
10930
10931 2013-01-25 Tom Tromey <tromey@redhat.com>
10932
10933 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10934
10935 2013-01-25 Pedro Alves <palves@redhat.com>
10936
10937 * remote.c (stop_reply_extract_thread): New.
10938 (add_current_inferior_and_thread): New parameter 'wait_status'.
10939 Handle it.
10940 (remote_start_remote): Pass wait status to
10941 add_current_inferior_and_thread.
10942 (extended_remote_run): Update comment.
10943 (extended_remote_create_inferior_1): Pass wait status to
10944 add_current_inferior_and_thread.
10945
10946 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10947 Ulrich Weigand <uweigand@de.ibm.com>
10948
10949 * valarith.c (value_vector_widen): New function for replicating a
10950 scalar into a vector.
10951 (value_binop): Use value_vector_widen to widen scalar to vector
10952 rather than casting, this better matches gcc C behaviour.
10953 * valops.c (value_casst): Update logic for casting between vector
10954 types, and for casting from scalar to vector, try to match gcc C
10955 behaviour.
10956 * value.h (value_vector_widen): Declare.
10957 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10958 function, handle special case for casting scalar to vector.
10959 (opencl_relop): Use opencl_value_cast.
10960 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10961 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10962 in order to use opencl_value_cast.
10963
10964 2013-01-25 Yao Qi <yao@codesourcery.com>
10965
10966 * event-loop.c: Include "queue.h".
10967 (gdb_event_p): New typedef.
10968 (DECLARE_QUEUE_P): Use.
10969 (DEFINE_QUEUE_P): Use.
10970 (async_queue_event): Remove.
10971 (gdb_event_xfree): New.
10972 (initialize_event_loop): New.
10973 (process_event): Use QUEUE macros.
10974 (event_queue): Remove.
10975 (gdb_wait_for_event): Caller update.
10976 (check_async_event_handlers): Likewise.
10977 (poll_timers): Likewise.
10978 * event-loop.h (initialize_event_loop): Declare.
10979 * event-loop.c (gdb_event_xfree): New.
10980 * top.c (gdb_init): Call initialize_event_loop.
10981
10982 2013-01-25 Yao Qi <yao@codesourcery.com>
10983
10984 * event-loop.c (async_queue_event): Remove one parameter
10985 'position'. Remove code handling 'position' == TAIL.
10986 (gdb_wait_for_event): Caller update.
10987 (check_async_event_handlers): Caller update.
10988 (poll_timers): Caller update.
10989 * event-loop.h (enum queue_position): Remove.
10990
10991 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10992
10993 * MAINTAINERS: Update my email.
10994
10995 2013-01-25 Yao Qi <yao@codesourcery.com>
10996
10997 * main.c (print_gdb_help): Remove "--epoch" from the help
10998 message.
10999
11000 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11001
11002 * symtab.c (skip_prologue_using_sal): Consider a file
11003 change the same as an increased line number
11004
11005 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11006
11007 * MAINTAINERS (Write After Approval): Add myself to the list.
11008
11009 2013-01-24 Tom Tromey <tromey@redhat.com>
11010
11011 * ada-lang.h (ada_decode_symbol): Make return type const.
11012 * ada-lang.c (ada_decode_symbol): Likewise.
11013
11014 2013-01-23 Doug Evans <dje@google.com>
11015
11016 * linespec.c (find_linespec_symbols): Make static.
11017
11018 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11019
11020 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11021 type on float conversion for complex type.
11022
11023 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11024
11025 Add a new class gdb.Architecture which exposes GDB's
11026 internal representation of architecture via GDB Python API.
11027 * Makefile.in: Add entries corresponding to the new file
11028 python/py-arch.c.
11029 * NEWS (Python Scripting): Add entries for the new class
11030 gdb.Architecture and the new method gdb.Frame.architecture.
11031 * python/py-arch.c: Implement gdb.Architecture class.
11032 * python/py-frame.c (frapy_arch): Implement the method
11033 gdb.Frame.architecture().
11034 (frame_object_methods): Add 'architecture' to the method table.
11035 * python/python-internal.h: Add declarations of new utility
11036 functions.
11037 * python/python.c (_initialize_python): Initialize
11038 gdb.Architecture class.
11039
11040 2013-01-23 Doug Evans <dje@google.com>
11041
11042 Work around binutils/15021.
11043 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11044 type_unit_group out of union s. All uses updated.
11045 (read_index_from_section): Watch for index version 8.
11046 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11047 an imported symtab.
11048 (write_psymtabs_to_index): Increment version number to 8.
11049
11050 2013-01-22 Pedro Alves <palves@redhat.com>
11051
11052 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11053 user-visible.
11054
11055 2013-01-22 Pedro Alves <palves@redhat.com>
11056
11057 * annotate.c (annotate_breakpoints_changed): Rename to ...
11058 (annotate_breakpoints_invalid): ... this. Make static.
11059 (breakpoint_changed): Adjust.
11060 (_initialize_annotate): Always install the observers. Install a
11061 "breakpoint_created" observer.
11062 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11063 * breakpoint.c (set_breakpoint_condition)
11064 (breakpoint_set_commands, do_map_commands_command)
11065 (init_raw_breakpoint, clear_command, set_ignore_count)
11066 (enable_breakpoint_disp): No longer call
11067 annotate_breakpoints_changed.
11068
11069 2013-01-22 Pedro Alves <palves@redhat.com>
11070
11071 * annotate.c: Include "inferior.h".
11072 (frames_invalid_emitted)
11073 (breakpoints_invalid_emitted): New globals.
11074 (async_background_execution_p): New function.
11075 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11076 emitting the annotation if it has already been emitted.
11077 (annotate_display_prompt): New function.
11078 * annotate.h (annotate_display_prompt): New declaration.
11079 * event-top.c: Include annotate.h.
11080 (display_gdb_prompt): Call annotate_display_prompt.
11081
11082 2013-01-22 Pedro Alves <palves@redhat.com>
11083
11084 * annotate.c (ignore_count_changed): Delete.
11085 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11086 (annotate_ignore_count_change): Delete.
11087 (annotate_stopped): Don't emit a delayed breakpoints-changed
11088 annotation.
11089 * annotate.h (annotate_ignore_count_change): Delete.
11090 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11091 annotate_ignore_count_change.
11092
11093 2013-01-22 Tom Tromey <tromey@redhat.com>
11094
11095 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11096 require_rvalue for a register location.
11097
11098 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11099
11100 * breakpoint.c (print_one_breakpoint_location): Add MI
11101 field 'thread-groups' when printing a breakpoint.
11102 (output_thread_groups): New function.
11103
11104 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11105
11106 * python/lib/gdb/commands/explore.py
11107 (CompoundExplorer.explore_expr): Correct the name of a method
11108 being invoked.
11109 (ExploreTypeCommand.invoke): Add a missing 'return'.
11110
11111 2013-01-21 Tom Tromey <tromey@redhat.com>
11112
11113 * gdb_obstack.h (obconcat): Move declaration here, from...
11114 * symfile.h (obconcat): ... here.
11115 * gdb_obstack.c: New file.
11116 (obconcat): Move from...
11117 * symfile.c (obconcat): ... here.
11118 * Makefile.in (SFILES): Add gdb_obstack.c.
11119 (COMMON_OBS): Add gdb_obstack.o.
11120
11121 2013-01-21 Tom Tromey <tromey@redhat.com>
11122
11123 * symfile.h (obsavestring): Don't declare.
11124 * symfile.c (obsavestring): Remove.
11125 * ada-exp.y: Use obstack_copy0, not obsavestring.
11126 * ada-lang.c: Use obstack_copy0, not obsavestring.
11127 * coffread.c: Use obstack_copy0, not obsavestring.
11128 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11129 * dbxread.c: Use obstack_copy0, not obsavestring.
11130 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11131 * jit.c: Use obstack_copy0, not obsavestring.
11132 * mdebugread.c: Use obstack_copy0, not obsavestring.
11133 * psymtab.c: Use obstack_copy0, not obsavestring.
11134 * stabsread.c: Use obstack_copy0, not obsavestring.
11135 * xcoffread.c: Use obstack_copy0, not obsavestring.
11136
11137 2013-01-21 Tom Tromey <tromey@redhat.com>
11138
11139 * dwarf2read.c (fixup_go_packaging): Save package name
11140 on objfile obstack.
11141 * gdbtypes.c (init_type): Don't copy name.
11142
11143 2013-01-21 Tom Tromey <tromey@redhat.com>
11144
11145 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11146 const.
11147 (struct attribute) <u.str>: Now const.
11148 (struct fnfieldlist) <name>: Now const.
11149 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11150 (partial_die_parent_scope): Make return type const.
11151 (partial_die_full_name, add_partial_symbol): Update.
11152 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11153 'name' const.
11154 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11155 (read_file_scope, read_func_scope, dwarf2_add_field)
11156 (dwarf2_add_member_fn, read_structure_type)
11157 (process_enumeration_scope, read_array_type, read_module_type)
11158 (read_base_type, read_subrange_type): Update.
11159 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11160 (new_symbol_full, guess_full_die_structure_name): Update.
11161 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11162 (dwarf2_name): Return const type.
11163 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11164 const.
11165
11166 2013-01-21 Tom Tromey <tromey@redhat.com>
11167
11168 * gdbtypes.c (init_type): Make 'name' const.
11169 * gdbtypes.h (init_type): Update.
11170
11171 2013-01-21 Tom Tromey <tromey@redhat.com>
11172
11173 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11174 (start_symtab): Make 'name' and 'dirname' const. Use
11175 set_last_source_file.
11176 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11177 (last_source_file): Define. Now static.
11178 (set_last_source_file, get_last_source_file): New functions.
11179 * buildsym.h (last_source_file): Don't declare.
11180 (start_symtab): Update.
11181 (set_last_source_file, get_last_source_file): Declare.
11182 * coffread.c (complete_symtab): Use set_last_source_file.
11183 (coff_end_symtab): Likewise.
11184 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11185 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11186 set_last_source_file.
11187 (process_one_symbol): Use get_last_source_file.
11188 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11189 (psymtab_to_symtab_1): Use get_last_source_file.
11190 * xcoffread.c (process_linenos): Use get_last_source_file.
11191 (complete_symtab): Use set_last_source_file.
11192 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11193 (scan_xcoff_symtab): Use set_last_source_file.
11194
11195 2013-01-21 Tom Tromey <tromey@redhat.com>
11196
11197 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11198 (symbol_set_names): Remove casts. Handle field const-ness.
11199
11200 2013-01-21 Tom Tromey <tromey@redhat.com>
11201
11202 * dwarf2read.c (new_symbol_full): Remove cast.
11203 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11204 * symtab.h (symbol_set_demangled_name): Update.
11205
11206 2013-01-21 Tom Tromey <tromey@redhat.com>
11207
11208 * main.c (captured_main): Call bfd_init.
11209
11210 2013-01-21 Tom Tromey <tromey@redhat.com>
11211
11212 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11213 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11214 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11215 * NEWS: Update.
11216
11217 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11218
11219 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11220
11221 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11222
11223 Fix gdb.fortran/common-block.exp crash in PIE mode.
11224 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11225 LOC_COMMON_BLOCK.
11226 * f-valprint.c (info_common_command_for_block): Expect
11227 LOC_COMMON_BLOCK in gdb_assert.
11228 * symtab.h (struct general_symbol_info): Update comment for the
11229 common_block member.
11230 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11231 (enum address_class): New member LOC_COMMON_BLOCK.
11232
11233 2013-01-18 David Blaikie <dblaikie@gmail.com>
11234
11235 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11236
11237 2013-01-18 Tom Tromey <tromey@redhat.com>
11238
11239 PR c++/14999:
11240 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11241 Call require_rvalue.
11242
11243 2013-01-18 Yao Qi <yao@codesourcery.com>
11244
11245 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11246 (dbx_read_symtab): New declaration.
11247 (dbx_psymtab_to_symtab): Delete.
11248 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11249 Rename parameter PST to SELF. Exchanged two parameters.
11250 (start_psymtab): Caller update.
11251 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11252 (dwarf2_read_symtab): New declaration.
11253 (dwarf2_psymtab_to_symtab): Delete.
11254 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11255 Rename parameter PST to SELF. Exchanged two parameters.
11256 (create_partial_symtab): Caller update.
11257 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11258 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11259 Rename parameter PST to SELF. Exchanged two parameters.
11260 (parse_partial_symbols, new_psymtab): Caller update.
11261 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11262 two parameters.
11263 * psymtab.c (psymtab_to_symtab): Caller update.
11264 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11265 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11266 Rename parameter PST to SELF. Exchanged two parameters.
11267 (xcoff_start_psymtab): Caller update.
11268
11269 2013-01-18 Yao Qi <yao@codesourcery.com>
11270
11271 * infrun.c (proceed): Rename local variable 'oneproc' to
11272 'force_step'.
11273
11274 2013-01-17 Doug Evans <dje@google.com>
11275
11276 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11277 (dw2_build_type_unit_groups): Delete. All uses updated.
11278
11279 * symtab.h (struct symbol_search): Add comment.
11280
11281 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11282
11283 * symtab.c (compare_filenames_for_search): New comment for
11284 HAS_DRIVE_SPEC.
11285
11286 2013-01-17 Tom Tromey <tromey@redhat.com>
11287
11288 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11289
11290 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11291
11292 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11293 initialize it by existing make_cleanup. Call new do_cleanups.
11294
11295 2013-01-17 Tom Tromey <tromey@redhat.com>
11296
11297 * cp-abi.c (cp_abi_completer): New function.
11298 (_initialize_cp_abi): Set completer for "set cp-abi".
11299
11300 2013-01-17 Tom Tromey <tromey@redhat.com>
11301
11302 * mem-break.c: Remove obsolete comment.
11303 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11304
11305 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11306
11307 * jit.c (jit_reader_load_command): Interpret the jit reader name
11308 as an absolute path if it begins with a forward slash.
11309
11310 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11311
11312 PR gdb/14550
11313
11314 * jit.c (finalize_symtab): Ensure that only the global block has a
11315 NULL superblock.
11316
11317 2013-01-17 Pedro Alves <palves@redhat.com>
11318
11319 * acinclude.m4: Include ../config/plugins.m4,
11320 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11321 * Makefile.in (aclocal_m4_deps): Update.
11322 * aclocal.m4: Renegerate.
11323
11324 2013-01-16 Doug Evans <dje@google.com>
11325
11326 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11327
11328 2013-01-16 Pedro Alves <palves@redhat.com>
11329 Tom Tromey <tromey@redhat.com>
11330
11331 PR cli/7221:
11332 * NEWS: Add "catch signal".
11333 * breakpoint.c (base_breakpoint_ops): No longer static.
11334 (bpstat_explains_signal): New function.
11335 (init_catchpoint): No longer static.
11336 (base_breakpoint_explains_signal): New function.
11337 (base_breakpoint_ops): Initialize new field.
11338 * breakpoint.h (enum bpstat_signal_value): New.
11339 (struct breakpoint_ops) <explains_signal>: New field.
11340 (bpstat_explains_signal): Remove macro, declare as function.
11341 (base_breakpoint_ops, init_catchpoint): Declare.
11342 * break-catch-sig.c: New file.
11343 * inferior.h (signal_catch_update): Declare.
11344 * infrun.c (signal_catch): New global.
11345 (handle_syscall_event): Update for change to
11346 bpstat_explains_signal.
11347 (handle_inferior_event): Likewise. Always handle random signals
11348 via bpstats.
11349 (signal_cache_update): Check signal_catch.
11350 (signal_catch_update): New function.
11351 (_initialize_infrun): Initialize signal_catch.
11352 * Makefile.in (SFILES): Add break-catch-sig.c.
11353 (COMMON_OBS): Add break-catch-sig.o.
11354
11355 2013-01-16 Tom Tromey <tromey@redhat.com>
11356
11357 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11358 (print_one_catch_solib, print_one_catch_syscall)
11359 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11360 "catch-type".
11361
11362 2013-01-16 Yao Qi <yao@codesourcery.com>
11363
11364 * printcmd.c (current_display_number): Make it static.
11365
11366 2013-01-16 Yao Qi <yao@codesourcery.com>
11367
11368 * infcmd.c (step_once): Don't check '!single_inst' as it was
11369 checked before.
11370
11371 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11372
11373 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11374
11375 2013-01-14 Tom Tromey <tromey@redhat.com>
11376
11377 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11378 set command.
11379 * command.h (add_setshow_string_noescape_cmd): Update.
11380 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11381 (complete_set_gnutarget): New function.
11382 (_initialize_core): Set the "set gnutarget" completer.
11383
11384 2013-01-14 Tom Tromey <tromey@redhat.com>
11385
11386 PR symtab/14442:
11387 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11388 (c_type_print_modifier): Likewise.
11389 * dwarf2read.c (read_tag_restrict_type): New function.
11390 (read_type_die_1): Handle DW_TAG_restrict_type.
11391 * gdbtypes.c (make_restrict_type): New function.
11392 (recursive_dump_type): Handle TYPE_RESTRICT.
11393 * gdbtypes.h (enum type_flag_values): Renumber.
11394 (enum type_instance_flag_value): Add
11395 TYPE_INSTANCE_FLAG_RESTRICT.
11396 (TYPE_RESTRICT): New macro.
11397 (make_restrict_type): Declare.
11398
11399 2013-01-14 Tom Tromey <tromey@redhat.com>
11400
11401 PR symtab/14931:
11402 * psymtab.c (struct psymtab_state): New.
11403 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11404 functions.
11405 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11406 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11407
11408 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11409 Pedro Alves <palves@redhat.com>
11410
11411 PR remote/14786
11412
11413 * remote.c (remote_threads_info): Make a copy of the reply from
11414 qfThreadInfo and use that instead of rs->buf.
11415
11416 2013-01-14 Yao Qi <yao@codesourcery.com>
11417
11418 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11419 (dbx_psymtab_to_symtab): Likewise.
11420 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11421 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11422 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11423
11424 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11425
11426 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11427 make_cleanup_restore_current_language. Call set_language. Move
11428 OLD_CHAIN and INNER_CHAIN cleanups.
11429 * utils.c (do_restore_current_language)
11430 (make_cleanup_restore_current_language): New functions.
11431 * utils.h (make_cleanup_restore_current_language): New declaration.
11432
11433 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11434
11435 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11436 non-existing files.
11437
11438 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11439 non-existing files if FILENAME is already absolute.
11440
11441 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11442
11443 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11444 fputs_filtered. Append trailing newline.
11445
11446 2013-01-11 Yao Qi <yao@codesourcery.com>
11447 Stan Shebs <stan@codesourcery.com>
11448
11449 * psymtab.c (init_psymbol_list): Clarify the comment.
11450
11451 2013-01-11 Yao Qi <yao@codesourcery.com>
11452
11453 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11454 (update_dprintf_command_list): Assert that 'printf_line' is
11455 non-null. Remove condition check.
11456
11457 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11458
11459 Code cleanup.
11460 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11461 type const char *.
11462 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11463 const char *.
11464 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11465
11466 2013-01-09 Anthony Green <green@moxielogic.com>
11467
11468 * cp-abi.c (cplus_print_vtable): Don't return value from void
11469 function.
11470 * ada-lang.c (re_set_catch_assert): Ditto.
11471
11472 2013-01-09 Doug Evans <dje@google.com>
11473
11474 * symfile.h (quick_symbol_functions): Delete member
11475 pre_expand_symtabs_matching. All uses removed.
11476 * dwarf2read.c (dw2_lookup_symbol): Implement.
11477 (dw2_do_expand_symtabs_matching): Delete.
11478 (dw2_pre_expand_symtabs_matching): Delete.
11479 (struct dw2_symtab_iterator): New type.
11480 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11481 (dw2_expand_symtabs_for_function): Rewrite.
11482 (dwarf2_gdb_index_functions): Update.
11483 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11484 (psym_functions): Update.
11485
11486 2013-01-09 Tom Tromey <tromey@redhat.com>
11487
11488 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11489 * configure: Rebuild.
11490 * configure.ac: Add somread.o to the build if BFD has SOM
11491 support.
11492 * somread.c: Include som/aout.h, not syms.h.
11493 (som_symtab_read): Use som_external_symbol_dictionary_record.
11494 Unpack records manually.
11495 (_initialize_somread): Declare.
11496
11497 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11498
11499 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11500 Cast return_address to 64bits.
11501
11502 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11503
11504 * printcmd.c: Remove define of function output_command.
11505 * tracepoint.c: Remove extern of function output_command.
11506 * valprint.h: (output_command): New extern.
11507
11508 2013-01-07 Tom Tromey <tromey@redhat.com>
11509
11510 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11511 Remove.
11512 (objc_language_defn): Use c_printchar, c_printstr,
11513 c_emit_char.
11514
11515 2013-01-07 Tom Tromey <tromey@redhat.com>
11516
11517 PR cli/7719:
11518 * NEWS: Update.
11519 * ada-valprint.c (printstr, print_field_values): Remove
11520 "inspect_it" code.
11521 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11522 code.
11523 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11524 code.
11525 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11526 * main.c (captured_main): Remove "epoch" argument.
11527 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11528 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11529 * p-valprint.c (pascal_object_print_value_fields): Remove
11530 "inspect_it" code.
11531 * printcmd.c (print_command_1): Remove 'inspect' argument.
11532 (print_command, call_command): Update.
11533 (inspect_command): Remove.
11534 (_initialize_printcmd): Make "inspect" an alias for "print".
11535 * top.c (epoch_interface): Remove.
11536 * top.h (epoch_interface): Remove.
11537 * valprint.c (user_print_options): Update.
11538 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11539 * valprint.h (struct value_print_options) <inspect_it>: Remove
11540 field.
11541
11542 2013-01-04 Tom Tromey <tromey@redhat.com>
11543
11544 * valprint.h (read_string): Add 'extern'.
11545
11546 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11547
11548 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11549 used to decide whether to define darwin_read_dyld_info or not.
11550
11551 2013-01-03 Pierre Muller <muller@sourceware.org>
11552
11553 * main.c (relocate_gdb_directory): Avoid calling stat function
11554 if DIR is empty.
11555
11556 2013-01-03 Yao Qi <yao@codesourcery.com>
11557
11558 * psymtab.c (fixup_psymbol_section): Update declaration.
11559 (fixup_psymbol_section): Remove code returning value.
11560
11561 2013-01-03 Yao Qi <yao@codesourcery.com>
11562
11563 * symtab.h: Remove some out of date comments.
11564 (enum exception_event_kind): Move it ...
11565 * breakpoint.c: ... here.
11566
11567 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11568
11569 PR gdb/14405
11570 * darwin-nat.c (darwin_read_dyld_info): Only build if
11571 TASK_DYLD_INFO_COUNT is defined.
11572 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11573 TASK_DYLD_INFO_COUNT is defined.
11574
11575 2013-01-02 Tom Tromey <tromey@redhat.com>
11576
11577 * symfile.h (struct ecoff_debug_hack): Remove.
11578 * objfiles.c: Don't include mdebugread.h.
11579
11580 2013-01-02 Tom Tromey <tromey@redhat.com>
11581
11582 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11583 * configure.ac: Check for Mach-O support in BFD. Update
11584 CONFIG_OBS.
11585 * configure: Rebuild.
11586
11587 2013-01-02 Tom Tromey <tromey@redhat.com>
11588
11589 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11590 * configure.ac: Use GDB_AC_CHECK_BFD.
11591 * configure: Rebuild.
11592
11593 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11594
11595 * MAINTAINERS: Update my email.
11596
11597 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11598
11599 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11600
11601 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11602
11603 * rs6000-nat.c (bss_data_overlap): New function.
11604 (vmap_symtab): Use it to adjust the .bss section's offset.
11605
11606 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11607
11608 Update year range in copyright notice of all files.
11609
11610 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11611
11612 * top.c (print_gdb_version): Update copyright year.
11613
11614 For older changes see ChangeLog-2012.
11615 \f
11616 Local Variables:
11617 mode: change-log
11618 left-margin: 8
11619 fill-column: 74
11620 version-control: never
11621 coding: utf-8
11622 End:
This page took 0.286598 seconds and 5 git commands to generate.