* gdb.base/fileio.exp: Make $dir2 writable after the test is done
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
4 NULL.
5
6 2013-11-12 Doug Evans <dje@google.com>
7
8 Work around gold/15646.
9 * dwarf2read.c (read_index_from_section): Update comment.
10 (struct dw2_symtab_iterator): New member global_seen.
11 (dw2_symtab_iter_init): Initialize it.
12 (dw2_symtab_iter_next): Skip duplicate global symbols.
13 (dw2_expand_symtabs_matching): Ditto.
14
15 2013-11-12 Joel Brobecker <brobecker@adacore.com>
16
17 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
18 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
19 command.
20 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
21 (mi_cmd_info_ada_exceptions): New function.
22 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
23
24 2013-11-12 Joel Brobecker <brobecker@adacore.com>
25
26 * ada-lang.h: #include "vec.h".
27 (struct ada_exc_info): New.
28 (ada_exc_info): New typedef.
29 (DEF_VEC_O(ada_exc_info)): New vector.
30 (ada_exceptions_list): Add declaration.
31 * ada-lang.c (ada_is_exception_sym)
32 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
33 (sort_remove_dups_ada_exceptions_list)
34 (ada_exc_search_name_matches, ada_add_standard_exceptions)
35 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
36 (ada_exceptions_list_1, ada_exceptions_list)
37 (info_exceptions_command): New function.
38 (_initialize_ada_language): Add "info exception" command.
39
40 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
41
42 PR python/15629
43 * NEWS: Add linetable feature.
44 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
45 * python/py-linetable.c: New file.
46 * python/py-symtab.c (stpy_get_linetable): New function.
47 * python/python-internal.h (symtab_to_linetable_object): Declare.
48 (gdbpy_initialize_linetable): Ditto.
49 * python/python.c (_initialize_python): Call
50 gdbpy_initialize_linetable.
51
52 2013-11-11 Joel Brobecker <brobecker@adacore.com>
53
54 * ada-lang.c (create_ada_exception_catchpoint): Enhance
55 the documentation of fields "except_string" and "condition".
56 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
57 CONDITION on the heap before passing it to
58 create_ada_exception_catchpoint.
59 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
60 CONDITION.
61
62 2013-11-11 Tom Tromey <tromey@redhat.com>
63
64 * config.in, configure: Rebuild.
65 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
66
67 2013-11-11 Joel Brobecker <brobecker@adacore.com>
68
69 * remote-sim.c (gdbsim_detach): Break declaration into
70 shorter lines. No code change.
71
72 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
73
74 * remote-sim.c (gdbsim_detach): Fix prototype.
75
76 2013-11-08 Doug Evans <dje@google.com>
77
78 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
79 (create_debug_types_hash_table): Only print debugging messages for
80 each TU if dwarf2-read >= 2.
81 (process_queue): Ditto.
82 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
83 Update doc string.
84
85 2013-11-08 Tom Tromey <tromey@redhat.com>
86
87 * configure: Rebuild.
88 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
89
90 2013-11-08 Tom Tromey <tromey@redhat.com>
91
92 * configure, config.in: Rebuild.
93 * configure.ac: Remove unused configury.
94
95 2013-11-08 Tom Tromey <tromey@redhat.com>
96
97 * m32c-tdep.c: Use gdb_string.h.
98
99 2013-11-08 Tom Tromey <tromey@redhat.com>
100
101 * configure, config.in: Rebuild.
102 * configure.ac: Remove all link.h-related checks.
103
104 2013-11-08 Tom Tromey <tromey@redhat.com>
105
106 * acinclude.m4: Include common.m4.
107 * common/common.m4: New file.
108 * configure, config.in: Rebuild.
109 * configure.ac: Use GDB_AC_COMMON.
110
111 2013-11-08 Doug Evans <dje@google.com>
112
113 * NEWS: Mention that "set debug symtab-create" now accepts a
114 verbosity level.
115 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
116 to set the symtab's primary flag.
117 * jit.c (finalize_symtab): Ditto.
118 * mdebugread.c (psymtab_to_symtab_1): Ditto.
119 * symfile.c (allocate_symtab): Only print debugging messages for
120 symtab_create_debug levels 2 and higher.
121 * symtab.c (symtab_create_debug): Change type to unsigned int.
122 (set_symtab_primary): New function.
123 (_initialize_symtab): Change "set debug symtab-create" to a
124 zuinteger option.
125 * symtab.h (set_symtab_primary): Declare.
126 (symtab_create_debug): Update decl.
127
128 2013-11-08 Tom Tromey <tromey@redhat.com>
129
130 * aix-thread.c (aix_thread_detach): Update.
131 * corelow.c (core_detach): Update.
132 * darwin-nat.c (darwin_detach): Update.
133 * dec-thread.c (dec_thread_detach): Update.
134 * gnu-nat.c (gnu_detach): Update.
135 * go32-nat.c (go32_detach): Update.
136 * inf-ptrace.c (inf_ptrace_detach): Update.
137 * inf-ttrace.c (inf_ttrace_detach): Update.
138 * linux-fork.c (linux_fork_detach): Update.
139 * linux-fork.h (linux_fork_detach): Update.
140 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
141 local for const-correctness.
142 * linux-thread-db.c (thread_db_detach): Update.
143 * monitor.c (monitor_detach): Update.
144 * nto-procfs.c (procfs_detach): Update.
145 * procfs.c (procfs_detach): Update.
146 * record.c (record_detach): Update.
147 * record.h (record_detach): Update.
148 * remote-m32r-sdi.c (m32r_detach): Update.
149 * remote-mips.c (mips_detach): Update.
150 * remote-sim.c (gdbsim_detach): Update.
151 * remote.c (remote_detach_1, remote_detach)
152 (extended_remote_detach): Update.
153 * sol-thread.c (sol_thread_detach): Update.
154 * target.c (target_detach): Make "args" const.
155 (init_dummy_target): Update.
156 * target.h (struct target_ops) <to_detach>: Make argument const.
157 (target_detach): Likewise.
158 * windows-nat.c (windows_detach): Update.
159
160 2013-11-07 Doug Evans <dje@google.com>
161
162 PR 11786
163 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
164 and align fields for PT_GNU_RELRO segments.
165
166 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
167
168 PR python/15747
169 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
170
171 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
172
173 * NEWS: Document Python temporary breakpoint support.
174 * python/py-breakpoint.c (bppy_get_temporary): New function.
175 (bppy_init): New keyword: temporary. Parse it and set breakpoint
176 to temporary if True.
177
178 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
179
180 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
181 removed to allow analyzing unconditional branch instructions
182 with PC-relative offsets of zero.
183
184 2013-11-07 Yao Qi <yao@codesourcery.com>
185
186 * mi/mi-cmd-var.c: Include "language.h".
187 (mi_cmd_var_info_expression): Get language name from
188 language_defn.
189 * varobj.c (varobj_language_string): Remove.
190 (variable_language): Remove declaration.
191 (languages): Remove.
192 (varobj_get_language): Change the type of return value.
193 (variable_language): Remove.
194 * varobj.h (enum varobj_languages): Remove.
195 (varobj_language_string): Remove declaration.
196 (varobj_get_language): Update declaration.
197
198 2013-11-07 Yao Qi <yao@codesourcery.com>
199
200 * language.h (struct language_defn) <la_natural_name>: New
201 field.
202 * ada-lang.c (ada_language_defn): Initialize field
203 'la_natural_name'.
204 * c-lang.c (c_language_defn): Likewise.
205 (cplus_language_defn, asm_language_defn): Likewise.
206 * d-lang.c (d_language_defn): Likewise.
207 * f-lang.c (f_language_defn): Likewise.
208 * go-lang.c (go_language_defn): Likewise.
209 * jv-lang.c (java_language_defn): Likewise.
210 * language.c (unknown_language_defn ): Likewise.
211 (auto_language_defn): Likewise.
212 * m2-lang.c (m2_language_defn): Likewise.
213 * objc-lang.c (objc_language_defn): Likewise.
214 * opencl-lang.c (opencl_language_defn): Likewise.
215 * p-lang.c (pascal_language_defn): Likewise.
216
217 2013-11-07 Yao Qi <yao@codesourcery.com>
218
219 * language.c (language_str): Return const char *.
220 (add_language): Add const to 'language_names'
221 * language.h (struct language_defn) <la_name>: Add const.
222 (language_str: Update declaration.
223
224 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
225
226 * s390-linux-nat.c (s390_read_description): Consider the TE field
227 in the HWCAP for determining 'have_regset_tdb'.
228
229 2013-11-06 Will Newton <will.newton@linaro.org>
230
231 PR gdb/12866
232 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
233 values. (read_partial_die): Likewise.
234
235 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
236
237 PR cli/16122
238 * top.c (command_line_input): Unify interactivity tests to use
239 input_from_terminal_p.
240 * event-top.c (command_line_handler): Likewise.
241
242 2013-11-06 Yao Qi <yao@codesourcery.com>
243
244 * Makefile.in (check-perf): New target.
245
246 2013-11-05 Will Newton <will.newton@linaro.org>
247
248 PR gdb/7670
249 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
250 (arm_print_float_info): Likewise.
251
252 2013-11-04 Anton Blanchard <anton@samba.org>
253
254 * target.c (memory_xfer_partial): Cap write to 4KB.
255
256 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
257
258 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
259 probe scan even when the arch provides no get_longjmp_target.
260
261 2013-10-31 Pedro Alves <palves@redhat.com>
262
263 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
264 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
265 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
266 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
267 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
268 <bpstat handling>: If the bpstat chain wants the signal to be
269 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
270 GDB_SIGNAL_TRAP.
271
272 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
273
274 * breakpoint.c (update_watchpoint): Update error message and add
275 an additional error message.
276
277 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
278
279 * s390-tdep.h: Rename to...
280 * s390-linux-tdep.h: ...here.
281 * s390-tdep.c: Rename to...
282 * s390-linux-tdep.c: ...here. Adjust #include.
283 * s390-nat.c: Rename to...
284 * s390-linux-nat.c: ...here. Adjust #include.
285 * config/s390/s390.mh: Rename to...
286 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
287 s390-linux-nat.o.
288 * configure.host: Reflect host rename "s390" -> "linux".
289 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
290 * Makefile.in (ALL_TARGET_OBS): Likewise.
291 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
292 s390-linux-tdep.h.
293 (ALLDEPFILES): Reflect rename of .c files.
294
295 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
296
297 * s390-nat.c: Whitespace cleanup.
298 * s390-tdep.c: Likewise.
299 * s390-tdep.h: Remove empty line at end of file.
300
301 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
302
303 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
304 siginfo_size.
305
306 2013-10-29 Tom Tromey <tromey@redhat.com>
307
308 * utils.c (reg): Move undefinition...
309 * gdb_curses.h: ... here. Update comment to mention AIX.
310
311 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
312
313 * exec.h (add_target_sections_of_objfile): New declaration.
314 * exec.c (add_target_sections_of_objfile): New function.
315 * symfile.c (add_symbol_file_command): Update current target sections.
316 (remove_symbol_file_command): New command.
317 (symfile_free_objfile): New function.
318 (_initialize_symfile): Register observer for free_objfile events.
319 * NEWS: Add description of the remove-symbol-file command.
320 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
321 * objfiles.c (free_objfile): Notify free_objfile.
322 (is_addr_in_objfile): New function.
323 * objfiles.h (is_addr_in_objfile): New declaration.
324 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
325 events instead of solib_unloaded events.
326 (_initialize_printcmd): Register observer for free_objfile instead
327 of solib_unloaded notifications.
328 * solib.c (remove_user_added_objfile): New function.
329 (_initialize_symfile): Add remove-symbol-file.
330
331 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
332
333 * infcmd.c (default_print_one_register_info): Use val_print to
334 print all values even optimized out or unavailable ones. Don't
335 try to print a raw form of optimized out or unavailable values.
336
337 2013-10-29 Yao Qi <yao@codesourcery.com>
338
339 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
340 parameter 'arg' instead of from program_space_data.
341 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
342 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
343 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
344 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
345 * inflow.c (inflow_inferior_data_cleanup): Get data from
346 parameter 'arg' instead of inferior_data.
347 * registry.h: Add comments.
348
349 2013-10-28 Pedro Alves <palves@redhat.com>
350
351 * breakpoint.c (watchpoints_triggered)
352 <!target_stopped_data_address>: Hardcode return 1.
353
354 2013-10-28 Pedro Alves <palves@redhat.com>
355
356 * infrun.c (process_event_stop_test): Remove unnecessary scoping
357 level and reindent.
358
359 2013-10-28 Pedro Alves <palves@redhat.com>
360
361 * infrun.c (process_event_stop_test): New function, factored out
362 from handle_inferior_event.
363 (handle_inferior_event): 'process_event_stop_test' is now a
364 function instead of a goto label -- adjust.
365
366 2013-10-28 Pedro Alves <palves@redhat.com>
367
368 * infrun.c (handle_inferior_event): Move process_event_stop_test
369 goto label to the else branch of the ecs->random_signal check,
370 along with FRAME and GDBARCH re-fetching.
371
372 2013-10-28 Pedro Alves <palves@redhat.com>
373
374 * infrun.c (switch_back_to_stepped_thread): New function, factored
375 out from handle_inferior_event.
376 (handle_inferior_event): Adjust to call
377 switch_back_to_stepped_thread. Call it also at the tail of the
378 random signal handling, and return, instead of also handling
379 random signals just before the stepping tests.
380
381 2013-10-28 Pedro Alves <palves@redhat.com>
382
383 * infrun.c (clear_stop_func): Delete.
384 (handle_inferior_event): Don't call clear_stop_func and don't
385 clear 'ecs->random_signal'.
386
387 2013-10-27 Yao Qi <yao@codesourcery.com>
388
389 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
390 (varobj_create, varobj_get_path_expr): Update.
391 (varobj_value_has_mutated, varobj_update): Likewise.
392 (create_child_with_value, new_root_variable): Likewise.
393 (number_of_children, name_of_variable): Likewise.
394 (value_of_child, my_value_of_variable): Likewise.
395 (varobj_value_is_changeable_p): Likewise.
396
397 2013-10-25 Yao Qi <yao@codesourcery.com>
398
399 * language.h (struct lang_varobj_ops): Declare.
400 (struct language_defn) <la_varobj_ops>: New field.
401 * ada-lang.c: Include "varobj.h"
402 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
403 ada_varobj_ops.
404 * c-lang.c: Include "varobj.h"
405 (c_language_defn): Initialize field 'la_varobj_ops' with
406 c_varobj_ops.
407 (cplus_language_defn): Initialize field 'la_varobj_ops' with
408 cplus_varobj_ops.
409 (asm_language_defn): Initialize field 'la_varobj_ops' with
410 default_varobj_ops.
411 (minimal_language_defn): Likewise.
412 * d-lang.c (d_language_defn): Likewise.
413 * f-lang.c (f_language_defn): Likewise.
414 * go-lang.c (go_language_defn): Likewise.
415 * m2-lang.c (m2_language_defn): Likewise.
416 * objc-lang.c (objc_language_defn): Likewise.
417 * opencl-lang.c (opencl_language_defn): Likewise.
418 * p-lang.c (pascal_language_defn): Likewise.
419 * language.c (unknown_language_defn): Likewise.
420 (auto_language_defn): Likewise.
421 (local_language_defn): Likewise.
422 * jv-lang.c (java_language_defn): Initialize field
423 'la_varobj_ops' with java_varobj_ops.
424 * varobj.c (varobj_create): Update.
425 * varobj.h (default_varobj_ops): Define macro.
426
427 2013-10-25 Pedro Alves <palves@redhat.com>
428
429 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
430 static field value.
431 (cp_print_static_field): If the value is entirely optimized out,
432 print <optimized out> here.
433 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
434 static field value.
435 * p-valprint.c (pascal_object_print_static_field): If the value is
436 entirely optimized out, print <optimized out> here.
437 * valops.c (do_search_struct_field)
438 (value_struct_elt_for_reference): No longer handle a NULL static
439 field value.
440 * value.c (value_static_field): Return an optimized out value
441 instead of NULL.
442
443 2013-10-25 Yao Qi <yao@codesourcery.com>
444
445 * remote.c (remote_traceframe_info): Return early if
446 traceframe is not selected.
447
448 2013-10-25 Yao Qi <yao@codesourcery.com>
449
450 * tracepoint.c (traceframe_fun): Remove.
451 (traceframe_sal): Remove.
452 (set_traceframe_context): Add local variables.
453
454 2013-10-25 Joel Brobecker <brobecker@adacore.com>
455
456 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
457 and parameter name.
458
459 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
460
461 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
462 failure from register information collection.
463
464 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
465
466 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
467 member.
468 (linux_corefile_thread_callback): Update accordingly.
469 (linux_make_corefile_notes): Likewise.
470
471 2013-10-24 Pedro Alves <palves@redhat.com>
472
473 * NEWS (New options): Mention set/show startup-with-shell.
474 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
475 instead of 3.
476 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
477 startup-with-shell'.
478 (show_startup_with_shell): New function.
479 (_initialize_fork_child): Register the set/show startup-with-shell
480 commands.
481 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
482 * inf-ttrace.c (inf_ttrace_him): Remove comment.
483 * procfs.c (procfs_init_inferior): Remove comment.
484 * infcmd.c (startup_with_shell): New global.
485 * inferior.h (startup_with_shell): Declare global.
486 (STARTUP_WITH_SHELL): Delete.
487 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
488
489 2013-10-23 Pedro Alves <palves@redhat.com>
490
491 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
492 * common/signals.c: Include "gdb_assert.h".
493 (signals): New field 'symbol'.
494 (SET): Use the 'symbol' parameter.
495 (gdb_signal_to_symbol_string): New function.
496 * infrun.c (handle_inferior_event) <random signal>: In debug
497 output, print the random signal enum as string in addition to its
498 number.
499 * target/waitstatus.c (target_waitstatus_to_string): Print the
500 signal's enum value as string instead of the (POSIX) signal name.
501
502 2013-10-23 Gary Benson <gbenson@redhat.com>
503
504 PR 16013
505 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
506 from 32 to 18. Adjusted fscanf format string accordingly.
507 (Avoids leaving cmd unterminated.)
508 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
509 trun, retn or extra. (Avoids leaving extra unterminated.) Check
510 that local_address and remote_address will not overflow.
511 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
512 leaving dependencies unterminated. Parse size as "%u" to match
513 definition.
514
515 2013-10-22 Pedro Alves <palves@redhat.com>
516
517 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
518 set ecs->random signal.
519
520 2013-10-22 Pedro Alves <palves@redhat.com>
521
522 * infrun.c (keep_going): Update comments.
523
524 2013-10-22 Pedro Alves <palves@redhat.com>
525
526 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
527 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
528
529 2013-10-22 Pedro Alves <palves@redhat.com>
530
531 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
532 GDB_EXC_BAD_ACCESS.
533 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
534 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
535 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
536 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
537 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
538 (GDB_SIGNAL_LAST): Change description string.
539 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
540 Adjust to signal renaming.
541 * darwin-nat.c (darwin_decode_message): Likewise.
542
543 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
544
545 * MAINTAINERS (Write After Approval): Add myself to the list.
546
547 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
548
549 * breakpoint.c (update_watchpoint): If hardware watchpoints are
550 forced off, downgrade them to software watchpoints if possible,
551 and error out if not possible.
552 (watch_command_1): Move watchpoint type selection closer to
553 watchpoint creation, and extend the comments.
554
555 2013-10-18 Pedro Alves <palves@redhat.com>
556
557 PR gdb/16062
558 * infrun.c (handle_inferior_event): Keep going if we got a random
559 signal we should not stop for, instead of falling through to the
560 step tests.
561
562 2013-10-18 Yao Qi <yao@codesourcery.com>
563
564 * c-varobj.c (cplus_number_of_children): Fix indentation.
565
566 2013-10-17 Tom Tromey <tromey@redhat.com>
567
568 PR gdb/15995:
569 * printcmd.c (printcmd): Call gdb_flush.
570
571 2013-10-17 Tom Tromey <tromey@redhat.com>
572
573 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
574 (elf_locate_sections): Update.
575
576 2013-10-17 Yao Qi <yao@codesourcery.com>
577
578 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
579 * ada-varobj.c: Remove the include of ada-varobj.h.
580 (ada_varobj_get_number_of_children): Declare.
581 (ada_varobj_get_name_of_child): Make it static.
582 (ada_varobj_get_path_expr_of_child): Likewise.
583 (ada_varobj_get_value_of_child): Likewise.
584 (ada_varobj_get_type_of_child): Likewise.
585 (ada_varobj_get_value_of_array_variable): Likewise.
586 * ada-varobj.h: Remove.
587
588 2013-10-17 Yao Qi <yao@codesourcery.com>
589
590 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
591 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
592 * ada-varobj.c: Include "varobj.h".
593 (ada_number_of_children): New. Moved from varobj.c.
594 (ada_name_of_variable, ada_name_of_child): Likewise.
595 (ada_path_expr_of_child, ada_value_of_child): Likewise.
596 (ada_type_of_child, ada_value_of_variable): Likewise.
597 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
598 (ada_varobj_ops): New.
599 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
600 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
601 * gdbtypes.h (get_target_type): Declare.
602 * varobj.c: Remove the inclusion of "ada-varobj.h" and
603 "ada-lang.h".
604 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
605 (ANONYMOUS_UNION_NAME): Likewise.
606 (get_type, get_value_type, get_target_type): Remove declarations.
607 (value_get_print_value, varobj_value_get_print_value): Likewise.
608 (c_number_of_children, c_name_of_variable): Likewise.
609 (c_name_of_child, c_path_expr_of_child): Likewise.
610 (c_value_of_child, c_type_of_child): Likewise.
611 (c_value_of_variable, cplus_number_of_children): Likewise.
612 (cplus_class_num_children, cplus_name_of_variable): Likewise.
613 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
614 (cplus_value_of_child, cplus_type_of_child): Likewise.
615 (cplus_value_of_variable, java_number_of_children): Likewise.
616 (java_name_of_variable, java_name_of_child): Likewise.
617 (java_path_expr_of_child, java_value_of_child): Likewise.
618 (java_type_of_child, java_value_of_variable): Likewise.
619 (ada_number_of_children, ada_name_of_variable): Likewise.
620 (ada_name_of_child, ada_path_expr_of_child): Likewise.
621 (ada_value_of_child, ada_type_of_child): Likewise.
622 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
623 (ada_value_has_mutated): Likewise.
624 (struct language_specific): Move it to varobj.h.
625 (CPLUS_FAKE_CHILD): Move it to varobj.h.
626 (restrict_range): Rename it varobj_restrict_range. Make it extern.
627 Callers update.
628 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
629 Make it extern.
630 (is_anonymous_child): Move it to c-varobj.c and rename to
631 varobj_is_anonymous_child. Caller update.
632 (get_type): Move it to c-varobj.c.
633 (get_value_type): Rename it varobj_get_value_type. Make it
634 extern.
635 (get_target_type): Move it gdbtypes.c.
636 (varobj_formatted_print_options): New function.
637 (value_get_print_value): Rename it to
638 varobj_value_get_print_value and make it extern.
639 (varobj_value_is_changeable_p): Make it extern.
640 (adjust_value_for_child_access): Move it to c-varobj.c.
641 (default_value_is_changeable_p): Rename it to
642 varobj_default_value_is_changeable_p. Make it extern.
643 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
644 (c_name_of_child, c_path_expr_of_child): Likewise.
645 (c_value_of_child, c_type_of_child): Likewise.
646 (c_value_of_variable, cplus_number_of_children): Likewise.
647 (cplus_class_num_children, cplus_name_of_variable): Likewise.
648 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
649 (cplus_value_of_child, cplus_type_of_child): Likewise.
650 (cplus_value_of_variable): Likewise.
651 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
652 (java_name_of_child, java_path_expr_of_child): Likewise.
653 (java_value_of_child, java_type_of_child): Likewise.
654 (java_value_of_variable): Likewise.
655 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
656 (ada_name_of_child, ada_path_expr_of_child): Likewise.
657 (ada_value_of_child, ada_type_of_child): Likewise.
658 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
659 (ada_value_has_mutated): Likewise.
660 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
661 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
662 (c_varobj_ops, cplus_varobj_ops): Declare.
663 (java_varobj_ops, ada_varobj_ops): Declare.
664 (varobj_default_value_is_changeable_p): Declare.
665 (varobj_value_is_changeable_p): Declare.
666 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
667 (varobj_get_path_expr_parent): Declare.
668 (varobj_value_get_print_value): Declare.
669 (varobj_formatted_print_options): Declare.
670 (varobj_restrict_range): Declare.
671
672 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
673
674 * target/waitstatus.h (target_waitkind): Remove spurious
675 character from the comments.
676
677 2013-10-17 Joel Brobecker <brobecker@adacore.com>
678
679 * gdbarch.sh (get_longjmp_target): Add method documentation.
680 * gdbarch.h: Regenerate.
681
682 2013-10-16 Tom Tromey <tromey@redhat.com>
683
684 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
685 label.
686
687 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
688
689 * gcore.in: Call GDB using the full path to the gcore script.
690 Error out if the GDB binary is not found.
691
692 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
693
694 PR gdb/16014
695 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
696 sizeof.
697
698 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
699
700 PR gdb/16042
701 * target.c (target_disable_btrace): Fix invalid return value for
702 void function.
703 (target_teardown_btrace): Likewise.
704
705 2013-10-14 Yao Qi <yao@codesourcery.com>
706
707 * varobj.c (struct varobj): Move most of the fields to
708 varobj.h.
709 (struct varobj_dynamic): New struct.
710 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
711 (varobj_has_more): Likewise.
712 (dynamic_varobj_has_child_method): Likewise.
713 (update_dynamic_varobj_children): Likewise.
714 (varobj_get_num_children): Likewise.
715 (varobj_list_children, varobj_pretty_printed_p): Likewise.
716 (install_new_value_visualizer): Likewise.
717 (install_new_value_visualizer, install_new_value): Likewise.
718 (varobj_update, new_variable, free_variable): Likewise.
719 (my_value_of_variable, value_get_print_value): Likewise.
720 (install_visualizer): Change the type of parameter 'var' to
721 'struct varobjd_dynamic *'. Callers update.
722 * varobj.h (struct varobj): Moved from varobj.c.
723 (struct varobj) <dynamic>: New field.
724
725 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
726
727 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
728 as the preferred name of r30.
729 * nios2-linux-tdep.c (reg_offsets): Likewise.
730 * features/nios2-cpu.xml: Likewise.
731 * features/nios2-linux.c: Regenerated.
732 * features/nios2.c: Regenerated.
733 * regformats/nios2-linux.dat: Regenerated.
734
735 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
736
737 Canonicalize directories for EXEC_FILENAME.
738 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
739 exec_filename.
740 * utils.c (gdb_realpath_keepfile): New function.
741 * utils.h (gdb_realpath_keepfile): New declaration.
742
743 2013-10-11 Doug Evans <dje@google.com>
744
745 * Makefile.in (GDBFLAGS): New variable.
746 (run): New rule.
747
748 2013-10-11 Joel Brobecker <brobecker@adacore.com>
749
750 * NEWS: Add entry documenting the new "-catch-assert" and
751 "-catch-exception" GDB/MI commands.
752
753 2013-10-11 Joel Brobecker <brobecker@adacore.com>
754
755 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
756 "enabled".
757 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
758 "enabled". Set B->ENABLE_STATE accordingly.
759 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
760 ada-lang.c.
761 (create_ada_exception_catchpoint): Add declaration.
762 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
763 (create_ada_exception_catchpoint): Make non-static. Add new
764 parameter "disabled". Use it in call to
765 init_ada_exception_breakpoint.
766 (catch_ada_exception_command): Add parameter "enabled" in call
767 to create_ada_exception_catchpoint.
768 (catch_assert_command): Likewise.
769
770 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
771 Add declarations.
772 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
773 "catch-exception" commands.
774 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
775 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
776
777 2013-10-11 Joel Brobecker <brobecker@adacore.com>
778
779 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
780 "enum exception_catchpoint_kind". Replace the "ex_" prefix
781 of all its enumerates with "ada_". Update the rest of this
782 file throughout.
783
784 2013-10-11 Joel Brobecker <brobecker@adacore.com>
785
786 * ada-lang.c (ada_decode_exception_location): Delete.
787 (create_ada_exception_catchpoint): Remove arguments "sal",
788 "addr_string" and "ops". Add argument "ex_kind" instead.
789 Adjust implementation accordingly, calling ada_exception_sal
790 to get the entities it no longer gets passed as arguments.
791 Document the function's arguments.
792 (catch_ada_exception_command): Use catch_ada_exception_command_split
793 instead of ada_decode_exception_location, and update call to
794 create_ada_exception_catchpoint.
795 (catch_ada_assert_command_split): Renames
796 ada_decode_assert_location. Remove parameters "addr_string" and
797 "ops", and now returns void. Adjust implementation accordingly.
798 Update the function documentation.
799 (catch_assert_command): Use catch_ada_assert_command_split
800 instead of ada_decode_assert_location. Update call to
801 create_ada_exception_catchpoint.
802
803 2013-10-11 Joel Brobecker <brobecker@adacore.com>
804
805 * utils.h (perror_warning_with_name): Add declaration.
806 * utils.c (perror_warning_with_name): New function.
807 * cli/cli-cmds.c (source_script_with_search): Add call to
808 perror_warning_with_name if from_tty is nul.
809
810 2013-10-11 Joel Brobecker <brobecker@adacore.com>
811
812 * utils.c (perror_string): New function, extracted out of
813 throw_perror_with_name.
814 (throw_perror_with_name): Rework to use perror_string.
815
816 2013-10-11 Yao Qi <yao@codesourcery.com>
817
818 * remote.c (discard_pending_stop_replies_in_queue): Update
819 declaration.
820 (struct stop_reply) <rs>: New field.
821 (remove_stop_reply_of_remote_state): New function.
822 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
823 Callers update. Pass remove_stop_reply_of_remote_state to
824 QUEUE_iterate.
825 (remote_parse_stop_reply): Initialize field 'rs'.
826
827 2013-10-10 Will Newton <will.newton@linaro.org>
828
829 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
830 linux_init_abi.
831
832 2013-10-10 Joel Brobecker <brobecker@adacore.com>
833
834 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
835 serial_baud_show_cmd.
836 (_initialize_cli_cmds): Delete the code creating the
837 "set/show remotebaud" commands.
838 * serial.c (baud_rate): Move here from top.c.
839 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
840 (_initialize_serial): Create "set/show serial baud" commands.
841 Add "set/show remotebaud" command aliases.
842 * top.c (baud_rate): Moved to serial.c.
843 * NEWS: Document the new "set/show serial baud" commands,
844 replacing "set/show remotebaud".
845
846 2013-10-09 Pedro Alves <palves@redhat.com>
847
848 * breakpoint.c (insert_bp_location): Use memory_error_message to
849 build the memory error string.
850 * c-lang.c: Include "gdbcore.h".
851 (c_get_string): Use memory_error to throw error.
852 (target_xfer_memory_error): Delete.
853 (memory_error_message): New, factored out from
854 target_xfer_memory_error.
855 (memory_error): Change parameter type to target_xfer_error.
856 Rewrite.
857 (read_memory): Use memory_error instead of
858 target_xfer_memory_error.
859 * gdbcore.h: Include "target.h".
860 (memory_error): Change parameter type to target_xfer_error.
861 (memory_error_message): Declare function.
862 * target.c (target_read_memory, target_read_stack)
863 (target_write_memory, target_write_raw_memory): Return
864 TARGET_XFER_E_IO on error. Adjust comments.
865 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
866 instead of EIO.
867 * target.h (target_read, target_insert_breakpoint)
868 (target_remove_breakpoint): Adjust comments.
869 * valprint.c (partial_memory_read): Rename parameter, and adjust
870 comment.
871 (val_print_string): Use memory_error_message to build the memory
872 error string.
873
874 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
875
876 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
877 result variable. Rename variable fopen_e_ever_failed to
878 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
879
880 2013-10-09 Pedro Alves <palves@redhat.com>
881
882 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
883 (monitor_write_memory_longlongs, monitor_write_memory_block):
884 Constify 'myaddr' parameter.
885 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
886 helper.
887 (monitor_xfer_partial): New function.
888 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
889 hook. Install a to_xfer_partial hook.
890
891 2013-10-09 Tom Tromey <tromey@redhat.com>
892
893 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
894 bfd_get_alt_debug_link_info.
895
896 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
897
898 New flag OBJF_NOT_FILENAME.
899 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
900 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
901 allocate_objfile.
902 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
903 symbol_file_add_from_bfd.
904 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
905 allocate_objfile.
906 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
907 NULL.
908 * objfiles.h (OBJF_NOT_FILENAME): New.
909
910 2013-10-08 Tom Tromey <tromey@redhat.com>
911
912 * Makefile.in (SFILES): Add build-id.c.
913 (HFILES_NO_SRCDIR): Add build-id.h.
914 * build-id.c: New file, largely from elfread.c. Modified
915 most functions.
916 * build-id.h: New file.
917 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
918 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
919 Search for dwz file using build-id.
920 * elfread.c (build_id_bfd_get, build_id_verify)
921 (build_id_to_debug_filename, find_separate_debug_file): Remove.
922
923 2013-10-08 Joel Brobecker <brobecker@adacore.com>
924
925 * ada-lang.c (compare_names_with_case): Renamed from
926 compare_names, adding a new parameter "casing" and its handling.
927 New function documentation.
928 (compare_names): New function, implemented using
929 compare_names_with_case.
930
931 2013-10-08 Joel Brobecker <brobecker@adacore.com>
932
933 * ada-lang.c (ada_exception_sal): Remove advance declaration.
934
935 2013-10-07 Tom Tromey <tromey@redhat.com>
936
937 * objfiles.c (free_objfile_per_bfd_storage): Delete the
938 demangled_names_hash.
939 (free_objfile): Don't delete the demangled_names_hash.
940 * objfiles.h (struct objfile_per_bfd_storage)
941 <demangled_names_hash>: New field.
942 (struct objfile) <demangled_names_hash>: Move to
943 objfile_per_bfd_storage.
944 * symfile.c (reread_symbols): Don't delete the
945 demangled_names_hash.
946 * symtab.c (create_demangled_names_hash): Update.
947 (symbol_set_names): Update.
948
949 2013-10-07 Tom Tromey <tromey@redhat.com>
950
951 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
952 needs_relocations>: New fields.
953 (gdb_bfd_requires_relocations): New function.
954 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
955 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
956 the BFD needs relocations applied.
957
958 2013-10-07 Pedro Alves <palves@redhat.com>
959
960 PR breakpoints/11568
961 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
962 the thread list" instead of "gone".
963
964 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
965
966 * NEWS: Mention new convenience variable $_exitsignal.
967 * corelow.c (core_open): Reset exit convenience variables. Set
968 $_exitsignal to the uncaught signal which generated the corefile.
969 * infrun.c (handle_inferior_event): Reset exit convenience
970 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
971 (clear_exit_convenience_vars): New function.
972 * inferior.h (clear_exit_convenience_vars): New prototype.
973
974 2013-10-06 Yao Qi <yao@codesourcery.com>
975
976 * varobj.h: Add comments to enum varobj_languages.
977
978 2013-10-04 Doug Evans <dje@google.com>
979
980 Add support for DWP file format version 2.
981 * NEWS: Mention support for DWP file format version 2.
982 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
983 union of asection, containing_section. New fields virtual_offset
984 and is_virtual. Change type of readin filed from int to char.
985 (dwo_sections, dwo_file): Tweak comments.
986 (dwp_v2_section_ids): New enum.
987 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
988 str_offsets, types.
989 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
990 All uses updated.
991 (virtual_v2_dwo_sections): New struct.
992 (dwp_hash_table): New fields version, nr_columns. Change type of
993 section_pool field to a union.
994 (dwp_file): New field version.
995 (dwarf2_has_info): Check for virtual sections.
996 (get_containing_section): New function.
997 (get_section_bfd_owner, get_section_bfd_section): Call it.
998 (dwarf2_locate_sections): Update.
999 (dwarf2_section_empty_p): Update.
1000 (dwarf2_read_section): Handle virtual sections.
1001 (locate_dwz_sections): Update.
1002 (create_dwp_hash_table): Document and handle V2 format.
1003 (locate_v1_virtual_dwo_sections): Renamed from
1004 locate_virtual_dwo_sections and update. All callers updated.
1005 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1006 Delete arg htab. Rename arg section_index to unit_index.
1007 All callers updated.
1008 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1009 All uses updated.
1010 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1011 (lookup_dwo_unit_in_dwp): Add V2 support.
1012 (dwarf2_locate_dwo_sections): Update.
1013 (dwarf2_locate_common_dwp_sections): Renamed from
1014 dwarf2_locate_dwp_sections and update. All callers updated.
1015 (dwarf2_locate_v2_dwp_sections): New function.
1016 (open_and_init_dwp_file): Add V2 support.
1017 (read_str_index): New locals str_section, str_offsets_section.
1018
1019 2013-10-04 Pedro Alves <palves@redhat.com>
1020
1021 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1022 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1023 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1024 describing comments with references to ptid.h.
1025 * common/ptid.h: Remove intro description of constructors,
1026 accessors and predicates.
1027 (struct ptid): Reformat.
1028 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1029 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1030 describing comments.
1031
1032 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1033
1034 * aix-thread.c (sync_threadlists): Add missing ')' in call
1035 to ptid_build.
1036
1037 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1038
1039 * procfs.c (procfs_init_inferior): Fix typo causing the build
1040 to fail.
1041
1042 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1043
1044 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1045
1046 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1047
1048 * mi/mi-main.c (run_one_inferior): Add function description.
1049 Make ARG a pointer to an integer whose value determines whether
1050 we should "run" or "start" the program.
1051 (mi_cmd_exec_run): Add handling of the "--start" option.
1052 Reject all other command-line options.
1053 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1054
1055 2013-10-04 Yao Qi <yao@codesourcery.com>
1056
1057 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1058 (struct notif_client) <pending_event>: Moved
1059 to struct remote_notif_state.
1060 <id>: New field.
1061 (struct remote_notif_state) <pending_event>: New field.
1062 (notif_event_xfree): Declare.
1063 * remote-notif.c (handle_notification): Adjust.
1064 (notif_event_xfree): New function.
1065 (do_notif_event_xfree): Call notif_event_xfree.
1066 (remote_notif_state_xfree): Call notif_event_xfree to free
1067 each element in field pending_event.
1068 * remote.c (discard_pending_stop_replies): Remove declaration.
1069 (discard_pending_stop_replies_in_queue): Declare.
1070 (remote_close): Call discard_pending_stop_replies_in_queue
1071 instead of discard_pending_stop_replies.
1072 (remote_start_remote): Adjust.
1073 (stop_reply_xfree): Call notif_event_xfree.
1074 (notif_client_stop): Adjust initialization.
1075 (remote_notif_remove_all): Rename it to ...
1076 (remove_stop_reply_for_inferior): ... this. Update comments.
1077 Don't check INF is NULL.
1078 (discard_pending_stop_replies): Return early if notif_state is
1079 NULL. Adjust. Don't check INF is NULL.
1080 (remote_notif_get_pending_events): Adjust.
1081 (discard_pending_stop_replies_in_queue): New function.
1082 (remote_wait_ns): Likewise.
1083
1084 2013-10-04 Yao Qi <yao@codesourcery.com>
1085
1086 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1087 (notif_queue): Remove.
1088 (remote_notif_process): Add one parameter 'notif_queue'.
1089 Update comments. Callers update.
1090 (remote_async_get_pending_events_token): Remove.
1091 (remote_notif_register_async_event_handler): Remove.
1092 (remote_notif_unregister_async_event_handler): Remove.
1093 (handle_notification): Add parameter 'notif_queue'. Update
1094 comments. Callers update.
1095 (notif_xfree): Remove.
1096 (remote_notif_state_allocate): New function.
1097 (remote_notif_state_xfree): New function.
1098 (_initialize_notif): Remove code to allocate queue.
1099 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1100 (struct remote_notif_state): New.
1101 (handle_notification): Update declaration.
1102 (remote_notif_process): Likewise.
1103 (remote_notif_register_async_event_handler): Remove.
1104 (remote_notif_unregister_async_event_handler): Remove.
1105 (remote_notif_state_allocate): Declare.
1106 (remote_notif_state_xfree): Declare.
1107 * remote.c (struct remote_state) <notif_state>: New field.
1108 (remote_close): Don't call
1109 remote_notif_unregister_async_event_handler. Call
1110 remote_notif_state_xfree.
1111 (remote_open_1): Don't call
1112 remote_notif_register_async_event_handler. Call
1113 remote_notif_state_allocate.
1114
1115 2013-10-04 Yao Qi <yao@codesourcery.com>
1116
1117 * varobj.c (create_child_with_value): Remove 'const' from the
1118 type of parameter 'name'.
1119 (varobj_add_child): Likewise.
1120 (install_dynamic_child): Remove 'const' from the type of
1121 parameter 'name'.
1122 (varobj_add_child): Likewise.
1123 (create_child_with_value): Likewise. Update comments. Don't
1124 duplicate 'name'.
1125 (update_dynamic_varobj_children): Duplicate 'name'
1126 and pass it to install_dynamic_child.
1127
1128 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1129
1130 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1131 conversion logic to occur after PyLong_Check. Comment on order
1132 change significance.
1133 * python/py-arch.c (archpy_disassemble): Comment on order of
1134 conversion for integers and longs.
1135
1136 2013-10-03 Pedro Alves <palves@redhat.com>
1137
1138 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1139 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1140 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1141 PTRACE_O_TRACEFORK is not supported.
1142 (linux_test_for_tracesysgood): New function.
1143 (linux_test_for_tracefork): New function, factored out from
1144 linux_check_ptrace_features, and also don't kill child_pid here.
1145
1146 2013-10-03 Tristan Gingold <gingold@adacore.com>
1147
1148 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1149 Remove verbose error reporting. Use detected state to
1150 thread_set_state call.
1151 (i386_darwin_dr_get): Fix return type. Remove verbose error
1152 report.
1153 Remove trailing spaces.
1154
1155 2013-10-02 Pedro Alves <palves@redhat.com>
1156
1157 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1158 val_print_optimized_out.
1159 * jv-valprint.c (java_print_value_fields): Likewise.
1160 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1161 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1162 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1163 new optimized out value.
1164 * findvar.c (address_from_register): Likewise.
1165 * frame.c (put_frame_register): Tweak error string to say the
1166 register was not saved, rather than optimized out.
1167 * infcmd.c (default_print_one_register_info): Adjust call to
1168 val_print_optimized_out. Use value_of_register instead of
1169 get_frame_register_value.
1170 * mi/mi-main.c (output_register): Use value_of_register instead of
1171 get_frame_register_value.
1172 * valprint.c (valprint_check_validity): Likewise.
1173 (val_print_optimized_out): New value parameter. If the value is
1174 lval_register, print <not saved> instead.
1175 (value_check_printable, val_print_scalar_formatted): Adjust calls
1176 to val_print_optimized_out.
1177 * valprint.h (val_print_optimized_out): New value parameter.
1178 * value.c (struct value) <optimized_out>: Extend comment.
1179 (error_value_optimized_out): New function.
1180 (require_not_optimized_out): Use it. Use a different string for
1181 lval_register values.
1182 * value.h (error_value_optimized_out): New declaration.
1183 * NEWS: Mention <not saved>.
1184
1185 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1186
1187 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1188 strcmp to compare two symtab filenames.
1189
1190 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1191
1192 * symtab.c (search_symbols_equal): Delete.
1193 (sort_search_symbols_remove_dups): Replace call to
1194 search_symbols_equal by call to compare_search_syms,
1195 adjusting as necessary.
1196
1197 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1198
1199 PR python/15579
1200 * python/python.c: Document gdb.execute command in Python help.
1201
1202 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1203
1204 * python/py-frame.c (frame_info_to_frame_object): Use
1205 gdbpy_convert_exception. Clean up Python object on failure.
1206
1207 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1208
1209 * python/lib/gdb/command/frame_filters.py
1210 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1211 (ShowFrameFilterPriority.invoke): Ditto.
1212
1213 2013-10-01 Keith Seitz <keiths@redhat.com>
1214
1215 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1216 (parse_linespec): Make 'argptr' const.
1217 Remove temporary cast of 'argptr' to const char **.
1218 (decode_line_full): Pass const pointer to parse_linespec.
1219 (decode_line_1): Likewise.
1220 (decode_objc): Make local variable 'new_argptr' const.
1221 (find_function_symbols): Remove temporary cast to char *
1222 to find_imps.
1223 * objc-lang.c (find_imps): Make argument 'method' const.
1224 Return const.
1225 * objc-lang.h (find_imps): Likewise.
1226
1227 2013-10-01 Keith Seitz <keiths@redhat.com>
1228
1229 * completer.c (skip_quoted_chars): Make all arguments const.
1230 Return const.
1231 (skip_quoted): Likewise.
1232 * completer.h (skip_quoted_chars): Likewise.
1233 (skip_quoted): Likewise.
1234 * defs.h (skip_quoted): Remove duplicate declaration.
1235 * jv-exp.y: Include completer.h.
1236 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1237 * p-exp.y: Include completer.h.
1238
1239 2013-10-01 Keith Seitz <keiths@redhat.com>
1240
1241 * c-exp.y (parse_number): Make first argument const.
1242 Make a copy of the input to manipulate.
1243 (c_parse_escape): Make first argument const.
1244 Make local variable 'tokptr' const.
1245 (parse_string_or_char): Make first two arguments const.
1246 (macro_original_text): Make const.
1247 (lex_one_token): Make local variable 'tokstart' const.
1248 Likewise for local variables named 'p'.
1249 Cast away const for struct stoken (temporary).
1250 * c-lang.h (c_parse_escpae): Make first argument const.
1251 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1252 const.
1253 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1254 var_string case.
1255 * f-exp.y (parse_number): Make first argument const.
1256 (match_string_literal): Make local variable 'tokstart'
1257 const.
1258 (yylex): Make local variable 'p' const.
1259 Cast away const for struct stoken (temporary).
1260 * go-exp.y (parse_number): Make first argument const.
1261 (parse_string_or_char): Likewise.
1262 Make local variable 'tokstart' const.
1263 (lex_one_token): Likewise for numerous locals called 'p'.
1264 Cast away const for struct stoken (temporary).
1265 * jv-exp.y (parse_number): Make first argument const.
1266 Make local variables 'tokstart' and 'tokptr' const.
1267 Cast away const for call to skip_quoted (temporary).
1268 (yylex): Make local variable 'p' const.
1269 Cast away const for struct stoken (temporary).
1270 * m2-exp.y (parse_number): Make local variable 'p' const.
1271 (yylex): Likewise for 'tokstart'.
1272 Cast away const for struct stoken (temporary).
1273 Make local variable 'p' const.
1274 * macroexp.c (get_character_constant): Pass a const string
1275 to c_parse_escape.
1276 (get_string_literal): Likewise.
1277 (macro_expand_next): Make first argument const.
1278 Cast away const for init_shared_buffer.
1279 * macroexp.h (macro_expand_next): Make first argument const.
1280 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1281 Pass a const string to c_parse_escape.
1282 Make local variables 'p' and 'namestart' const.
1283 * parse.c (lexptr): Make const.
1284 (prev_lexptr): Likewise.
1285 (find_template_name_end): Return const.
1286 Make argument const, too.
1287 (parse_exp_in_context): Make first argument const.
1288 Remove the entire const_hack.
1289 (parse_exp_in_context_1): Make first argument const.
1290 * parser-defs.h (find_template_name_end): Return const.
1291 Make argument const, too.
1292 (lexptr): Make const.
1293 (prev_lexptr): Likewise.
1294 * utils.c (parse_escape): Make second argument const.
1295 * utils.h (parse_escape): Likewise.
1296
1297 2013-10-01 Keith Seitz <keiths@redhat.com>
1298
1299 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1300 is now const.
1301 (block_lookup): Make 'raw_name' and 'name' const.
1302 * ada-lex.l (processString): Update for struct stoken.ptr.
1303 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1304 (operator_stoken): Likewise.
1305 (lex_one_token): Remove temporary cast to char * for
1306 'yylval.sval.ptr'.
1307 * f-exp.y (yylex): Likewise.
1308 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1309 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1310 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1311 'yylval.sval.ptr'.
1312 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1313 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1314 * linespec.c (struct ls_parser): Make 'stream' const.
1315 (find_parameter_list_end): Make argument 'input' and local
1316 variable 'p' const.
1317 (linespec_lexer_lex_string): Make local variables 'start' and
1318 'p' const.
1319 Use skip_spaces_const instead of skip_spaces.
1320 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1321 const.
1322 (parse_linespec): Temporarily cast 'argptr' to const for
1323 'parser->lexer.stream'.
1324 * m2-exp.y (yylex): Remove temporary cast to char * for
1325 'yylval.sval.ptr'.
1326 * objc-lang.c (add_msglist): Make local variable 'p' const.
1327 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1328 (exp : STRING): Make 'sp' const.
1329 (parse_number): Make argument 'p' const.
1330 * parser-defs.h (struct stoken): Make 'ptr' const.
1331
1332 2013-10-01 Doug Evans <dje@google.com>
1333
1334 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1335
1336 2013-10-01 Yao Qi <yao@codesourcery.com>
1337
1338 * varobj.c (c_value_of_root): Remove declaration.
1339 (cplus_value_of_root, java_value_of_root): Likewise.
1340 (ada_value_of_root): Likewise.
1341 (struct language_specific) <value_of_root>: Remove.
1342 (languages): Update initialization.
1343 (check_scope): Move earlier.
1344 (c_value_of_root): Move earlier and rename to ...
1345 (value_of_root_1): ... this.
1346 (value_of_root): Caller update.
1347 (cplus_value_of_root, java_value_of_root): Remove.
1348 (ada_value_of_root): Remove.
1349
1350 2013-10-01 Yao Qi <yao@codesourcery.com>
1351
1352 * varobj.c (varobj_format_string): Remove "unknown".
1353 (languages): Remove the first element.
1354 * varobj.h (enum varobj_languages): Remove vlang_c.
1355
1356 2013-10-01 Yao Qi <yao@codesourcery.com>
1357
1358 * varobj.c (struct language_specific) <language>: Remove.
1359 (languages): Update the initialization.
1360
1361 2013-10-01 Yao Qi <yao@codesourcery.com>
1362
1363 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1364 "solib-target.h". Include "windows-tdep.h".
1365 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1366 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1367 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1368 windows-tdep.o to gdb_target_obs.
1369
1370 2013-10-01 Yao Qi <yao@codesourcery.com>
1371
1372 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1373 "solib-target.h".
1374 (amd64_windows_init_abi): Don't call set_solib_ops and
1375 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1376 windows_init_abi instead.
1377 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1378 "solib-target.h".
1379 (i386_cygwin_init_abi): Don't call set_solib_ops,
1380 set_gdbarch_has_dos_based_file_system and
1381 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1382 windows_init_abi instead.
1383 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1384 (windows_init_abi): New function.
1385 (windows_iterate_over_objfiles_in_search_order): Make it
1386 static.
1387 * windows-tdep.h (windows_init_abi): Declare.
1388 (windows_iterate_over_objfiles_in_search_order): Remove
1389 declaration.
1390
1391 2013-10-01 Jerome Guitton <guitton@adacore.com>
1392
1393 Checked in by Joel Brobecker <brobecker@adacore.com>
1394 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1395 incomplete dictionnary instead of None in case of missing
1396 environment variables.
1397 (elinos_init): in case of an incomplete environment, best
1398 effort to load system libraries instead of abort.
1399
1400 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1401
1402 * ada-lang.c (ada_has_this_exception_support): Ignore
1403 mst_solib_trampoline minimal symbols.
1404
1405 2013-09-30 Tristan Gingold <gingold@adacore.com>
1406
1407 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1408 hardware watchpoint.
1409 (i386_darwin_dr_set): Support 32 and 64 bit states.
1410 (i386_darwin_dr_get): Likewise.
1411 (i386_darwin_dr_set_control): Make static.
1412 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1413 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1414
1415 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1416
1417 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1418 Replace TIDGET with ptid_get_lwp.
1419 Replace GET_LWP with ptid_get_lwp.
1420 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1421 Replace BUILD_THREAD with ptid_build.
1422 Replace BUILD_LWP with ptid_build.
1423 Replace PIDGET with ptid_get_pid.
1424 Replace TIDGET with ptid_get_lwp.
1425 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1426 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1427 Replace TIDGET with ptid_get_lwp.
1428 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1429 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1430 Replace TIDGET with ptid_get_lwp.
1431 Replace GET_LWP with ptid_get_lwp.
1432 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1433 * auxv.c: Likewise.
1434 * breakpoint.c: Likewise.
1435 * common/ptid.c (ptid_is_pid): Condense check for
1436 null_ptid and minus_one_ptid.
1437 (ptid_lwp_p): New function.
1438 (ptid_tid_p): New function.
1439 * common/ptid.h: Update comments for accessors.
1440 (ptid_lwp_p): New prototype.
1441 (ptid_tid_p): New prototype.
1442 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1443 * gcore.c: Replace PIDGET with ptid_get_pid.
1444 * gdbthread.h: Likewise.
1445 * gnu-nat.c: Likewise.
1446 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1447 Replace TIDGET with ptid_get_lwp.
1448 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1449 * hppanbsd-nat.c: Likewise.
1450 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1451 Replace TIDGET with ptid_get_lwp.
1452 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1453 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1454 * infcmd.c: Likewise.
1455 * inferior.h: Likewise.
1456 * inflow.c: Likewise.
1457 * infrun.c: Likewise.
1458 * linux-fork.c: Likewise.
1459 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1460 Replace GET_PID with ptid_get_pid.
1461 Replace is_lwp with ptid_lwp_p.
1462 Replace GET_LWP with ptid_get_lwp.
1463 Replace BUILD_LWP with ptid_build.
1464
1465 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1466
1467 * common/linux-btrace.c: Move sys/syscall.h out of the
1468 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1469 Also check for SYS_perf_event_open before attempting to buid.
1470
1471 2013-09-27 Doug Evans <dje@google.com>
1472
1473 * dwarf2read.c (dwarf2_section_info): Add comment.
1474 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1475 All uses updated.
1476 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1477 (dwarf2_read_section): Delete unused local "header". Add section
1478 name to error message.
1479 (create_dwo_in_dwp): Tweak comment.
1480 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1481
1482 * dwarf2read.c (die_reader_specs): Tweak comment.
1483 (get_section_bfd_owner, get_section_bfd_section): New functions.
1484 (get_section_name, get_section_file_name): New functions.
1485 (get_section_id, get_section_flags): New functions.
1486 (*): Use new functions to access section fields.
1487
1488 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1489 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1490 arg "htab". All callers updated.
1491 (create_debug_types_hash_table): Remove redundant copy of
1492 abbrev_section.
1493 (create_dwo_in_dwp): Tweak comments.
1494 (read_str_index): Tweak comment. Record dwarf form name in static
1495 local.
1496
1497 2013-09-27 Pedro Alves <palves@redhat.com>
1498
1499 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1500 (remote_filename_p): Add comment.
1501 * remote.c (remote_filename_p): Adjust to use
1502 REMOTE_SYSROOT_PREFIX.
1503 * solib.c (solib_find): When deciding whether we need to add a
1504 directory separator, check whether the sysroot is "remote:"
1505 instead of checking whether the patch has a drive spec. Add
1506 comments.
1507
1508 2013-09-27 Pedro Alves <palves@redhat.com>
1509
1510 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1511 Delete fields.
1512 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1513 directly.
1514
1515 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1516
1517 Fix set debug frame output.
1518 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1519 SENTINEL_FRAME entry lower to match enum frame_type order.
1520
1521 2013-09-26 Pierre Muller <muller@sourceware.org>
1522
1523 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1524 AMD64_R15_REGNUM when a register index is expected.
1525 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1526 Substitute in array.
1527 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1528 (amd64_push_arguments): Substitute in integer_regnum array.
1529
1530 2013-09-25 Doug Evans <dje@google.com>
1531
1532 * objfiles.c (allocate_objfile): Move comment to better place.
1533
1534 New option "set debug symfile on".
1535 * NEWS: Mention "set debug symfile".
1536 * Makefile.in (SFILES): Add symfile-debug.c.
1537 (COMMON_OBS): Add symfile-debug.o.
1538 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1539 objfile's symbol functions.
1540 * objfiles.h (objfile_set_sym_fns): Declare.
1541 * symfile-debug.c: New file.
1542 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1543 objfile's symbol functions.
1544 (reread_symbols): Ditto.
1545
1546 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1547 All uses updated.
1548 (add_symtab_fns): Update prototype.
1549 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1550 (registered_sym_fns): ... this.
1551 (symtab_fns): Update.
1552 (add_symtab_fns): New arg "flavour". All callers updated.
1553 (find_sym_fns): Rewrite to use new sym_fns registry.
1554
1555 * symfile.h (struct sym_fns): Add "objfile" argument to
1556 sym_read_linetable. All uses updated.
1557
1558 * symtab.c (domain_name, search_domain_name): New functions.
1559 * symtab.h (domain_name, search_domain_name): Declare.
1560
1561 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1562 map_matching_symbols so objfile is first. All uses updated.
1563 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1564 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1565
1566 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1567
1568 PR shlibs/8882
1569 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1570 link map entries.
1571
1572 2013-09-24 Doug Evans <dje@google.com>
1573
1574 * objfiles.c (free_objfile): Move comment.
1575
1576 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1577
1578 * ada-exp.y (string_to_operator): Delete.
1579 (dummy_string_to_ada_operator): Delete.
1580
1581 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1582
1583 Revert:
1584 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1585 amd64-tdep.c.
1586 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1587 call_dummy_integer_regs, and classify.
1588 * amd64-tdep.h (amd64_classify): Add declaration.
1589 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1590 (amd64_reg_class): Delete, moved to i386-tdep.h.
1591 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1592 Replace call to amd64_classify by call to tdep->classify.
1593 (amd64_push_arguments): Get the list of registers to use for
1594 passing integer parameters from the gdbarch tdep structure,
1595 rather than using a hardcoded one. Replace calls to amd64_classify
1596 by calls to tdep->classify.
1597 (amd64_push_dummy_call): Get the register number used for
1598 the "hidden" argument from tdep->call_dummy_integer_regs.
1599 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1600 and tdep->call_dummy_integer_regs. Set tdep->classify.
1601
1602 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1603
1604 Revert:
1605 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1606 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1607 where tdep->memory_args_by_pointer is non-zero.
1608
1609 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1610
1611 Revert:
1612 * i386-tdep.h (struct gdbarch_tdep): Add new field
1613 integer_param_regs_saved_in_caller_frame.
1614 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1615 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1616
1617 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1618
1619 * amd64-windows-tdep.c: #include "value.h"
1620 (amd64_windows_classify): Delete.
1621 (amd64_windows_passed_by_integer_register)
1622 (amd64_windows_passed_by_xmm_register)
1623 (amd64_windows_passed_by_pointer)
1624 (amd64_windows_adjust_args_passed_by_pointer)
1625 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1626 (amd64_windows_push_dummy_call): New functions.
1627 (amd64_windows_init_abi): Remove setting of
1628 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1629 tdep->classify, tdep->memory_args_by_pointer and
1630 tdep->integer_param_regs_saved_in_caller_frame.
1631 Add call to set_gdbarch_push_dummy_call.
1632
1633 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1634
1635 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1636 objfile->original_name.
1637
1638 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1639
1640 Pass down original filename for objfile.
1641 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1642 * elfread.c (elf_symfile_read): Likewise.
1643 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1644 longer set ORIGINAL_NAME.
1645 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1646 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1647 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1648 symbol_file_add_from_bfd call.
1649 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1650 (macho_check_dsym): Add parameter filenamep. Change function comment.
1651 Set *filenamep.
1652 (macho_symfile_read): New variable dsym_filename. Update
1653 macho_check_dsym call. Use it for symbol_file_add_separate.
1654 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1655 it. Use it for objfile->original_name.
1656 (objfile_name): Return OBFD's filename, if available.
1657 * objfiles.h (allocate_objfile): Add new parameter name.
1658 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1659 * symfile-mem.c (symbol_file_add_from_memory): Update
1660 symbol_file_add_from_bfd call.
1661 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1662 comment for it.
1663 (symbol_file_add_with_addrs): New parameter name, add function comment
1664 for it. Remove variable name. Update allocate_objfile call.
1665 (symbol_file_add_separate): New parameter name, add function comment
1666 for it. Update symbol_file_add_with_addrs call.
1667 (symbol_file_add_from_bfd): New parameter name. Update
1668 symbol_file_add_with_addrs call.
1669 (symbol_file_add): Update symbol_file_add_from_bfd call.
1670 (reread_symbols): New variable original_name. Save
1671 objfile->original_name by it.
1672 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1673 second parameter.
1674
1675 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1676
1677 Code cleanup: Add objfile_name accessor function.
1678 * ada-lang.c (is_known_support_routine): Use objfile_name.
1679 * auto-load.c (source_gdb_script_for_objfile)
1680 (auto_load_objfile_script): Likewise.
1681 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1682 * dbxread.c (dbx_symfile_read): Likewise.
1683 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1684 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1685 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1686 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1687 (lookup_dwp_signatured_type, lookup_dwo_unit)
1688 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1689 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1690 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1691 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1692 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1693 (read_subrange_type, load_partial_dies, read_partial_die)
1694 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1695 (die_containing_type, build_error_marker_type, lookup_die_type)
1696 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1697 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1698 (get_DW_AT_signature_type, write_psymtabs_to_index)
1699 (save_gdb_index_command): Likewise.
1700 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1701 Likewise.
1702 * expprint.c (dump_subexp_body_standard): Likewise.
1703 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1704 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1705 original_name.
1706 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1707 obj_name, use objfile_name for it, use the variable.
1708 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1709 Use objfile_name.
1710 * machoread.c (macho_symtab_read, macho_check_dsym)
1711 (macho_symfile_relocate): Likewise.
1712 * maint.c (maintenance_translate_address): Likewise.
1713 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1714 * minsyms.c (install_minimal_symbols): Likewise.
1715 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1716 original_name.
1717 (filter_overlapping_sections): Use objfile_name.
1718 (objfile_name): New function.
1719 * objfiles.h (struct objfile): Rename field name to original_name.
1720 (objfile_name): New prototype.
1721 * printcmd.c (sym_info, address_info): Use objfile_name.
1722 * probe.c (parse_probes, collect_probes, compare_probes)
1723 (info_probes_for_ops): Likewise.
1724 * progspace.c (clone_program_space): Likewise.
1725 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1726 (maintenance_info_psymtabs): Likewise.
1727 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1728 (source_section_scripts): Likewise.
1729 * python/py-objfile.c (objfpy_get_filename): Likewise.
1730 * python/py-progspace.c (pspy_get_filename): Likewise.
1731 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1732 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1733 * solib.c (solib_read_symbols): Likewise.
1734 * stabsread.c (scan_file_globals): Likewise.
1735 * stap-probe.c (handle_stap_probe): Likewise.
1736 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1737 (find_separate_debug_file_by_debuglink): Likewise.
1738 (reread_symbols): Likewise. Use the objfile field name renamed to
1739 original_name.
1740 (allocate_symtab): Use objfile_name.
1741 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1742 (dump_objfile, dump_msymbols, dump_symtab_1)
1743 (maintenance_print_msymbols, maintenance_print_objfiles)
1744 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1745 * target.c (target_translate_tls_address, target_info): Likewise.
1746 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1747 objfile_name.
1748
1749 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1750
1751 Code cleanup.
1752 * probe.c (parse_probes): Rename variable objfile_name to
1753 objfile_namestr.
1754
1755 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1756
1757 Remove solib-sunos.c.
1758 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1759 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1760 * objfiles.c (rt_common_objfile): Remove.
1761 (free_objfile): Remove rt_common_objfile comparison.
1762 * objfiles.h (rt_common_objfile): Remove.
1763 * solib-sunos.c: Remove.
1764 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1765
1766 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1767
1768 Remove a.out NetBSD and OpenBSD hosts.
1769 * NEWS (Removed native configurations): New.
1770 * config/arm/nbsdaout.mh: Remove.
1771 * config/i386/nbsdaout.mh: Remove.
1772 * config/i386/obsdaout.mh: Remove.
1773 * config/m68k/nbsdaout.mh: Remove.
1774 * config/sparc/nbsdaout.mh: Remove.
1775 * config/vax/nbsdaout.mh: Remove.
1776 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1777 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1778 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1779 error.
1780 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1781 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1782 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1783
1784 2013-09-23 Tom Tromey <tromey@redhat.com>
1785
1786 * linespec.c (struct minsym_and_objfile): Remove.
1787 (minsym_and_objfile_d): Remove.
1788 (struct linespec, struct collect_info, linespec_parse_basic)
1789 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1790 (compare_msymbols, find_method, find_function_symbols)
1791 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1792 (add_minsym, search_minsyms_for_name): Update.
1793
1794 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1795
1796 * regcache.c: Add include of valprint.h.
1797 (dump_endian_bytes): Delete.
1798 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1799
1800 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1801
1802 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1803
1804 2013-09-19 Pedro Alves <palves@redhat.com>
1805
1806 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1807 breakpoints.
1808
1809 2013-09-19 Pedro Alves <palves@redhat.com>
1810 Thomas Schwinge <thomas@codesourcery.com>
1811 Yue Lu <hacklu.newborn@gmail.com>
1812
1813 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1814 Take a gdb_byte pointer instead of a char pointer.
1815
1816 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1817 gnu_xfer_partial helper.
1818 (gnu_xfer_partial): New function.
1819 (gnu_target): Don't install a deprecated_xfer_memory hook.
1820 Install a to_xfer_partial hook.
1821
1822 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1823
1824 Constification.
1825 * main.c (captured_main): Replace catch_command_errors by
1826 catch_command_errors_const. Twice.
1827 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1828 (symbol_file_add): Make name parameter const.
1829 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1830 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1831 variable name. Change their usage accordingly.
1832 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1833 const.
1834 (symbol_file_add_main): Make args parameter const.
1835
1836 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1837 Ulrich Weigand <uweigand@de.ibm.com>
1838
1839 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1840 of c_value member.
1841 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1842
1843 2013-09-18 Pedro Alves <palves@redhat.com>
1844 Yue Lu <hacklu.newborn@gmail.com>
1845
1846 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1847 (gnu_create_inferior)
1848 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1849 (set_sig_thread_cmd): Use the lwpid field of ptids to
1850 store/extract thread ids instead of the tid field.
1851 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1852
1853 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1854
1855 * infcmd.c (default_print_one_register_info): Add detection of
1856 optimized out values.
1857 (default_print_registers_info): Switch to using
1858 get_frame_register_value.
1859
1860 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1861
1862 * infrun.c (handle_inferior_event): Check if we know the
1863 function start address before setting a resume breakpoint.
1864
1865 2013-09-18 Pedro Alves <palves@redhat.com>
1866
1867 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1868 minus_one_ptid instead of looking at the ptid's tid field and
1869 comparing that to -1.
1870
1871 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1872
1873 * main.h (get_gdb_program_name): Remove extra whitespace.
1874
1875 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1876
1877 * main.h (get_gdb_program_name): Add declaration.
1878 * main.c (get_gdb_program_name): Add definition.
1879
1880 2013-09-17 Doug Evans <dje@google.com>
1881
1882 * dwarf2read.c: Move definitions of complaint functions to after
1883 forward declarations of local functions.
1884
1885 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1886 Pedro Alves <palves@redhat.com>
1887
1888 PR gdb/11568
1889 * breakpoint.c (remove_threaded_breakpoints): New function.
1890 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1891 as thread_exit observer.
1892
1893 2013-09-17 Pedro Alves <palves@redhat.com>
1894
1895 PR gdb/15911
1896 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1897 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1898 * corelow.c (core_open):
1899 * frame.h (print_stack_frame, print_frame_info): New
1900 'set_current_sal' parameter.
1901 * infcmd.c (finish_command, kill_command): Adjust call to
1902 print_stack_frame.
1903 * inferior.c (inferior_command): Likewise.
1904 * infrun.c (normal_stop): Likewise.
1905 * linux-fork.c (linux_fork_context): Likewise.
1906 * record-full.c (record_full_goto_entry, record_full_restore):
1907 Likewise.
1908 * remote-mips.c (common_open): Likewise.
1909 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1910 Use it.
1911 (print_frame_info): New 'set_current_sal' parameter. Set the last
1912 displayed sal depending on the new paremeter instead of looking at
1913 print_what.
1914 (backtrace_command_1, select_and_print_frame, frame_command)
1915 (current_frame_command, up_command, down_command): Adjust call to
1916 print_stack_frame.
1917 * thread.c (print_thread_info, restore_selected_frame)
1918 (do_captured_thread_select): Adjust call to print_stack_frame.
1919 * tracepoint.c (tfind_1): Likewise.
1920 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1921 (mi_cmd_stack_info_frame): Likewise.
1922 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1923 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1924
1925 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1926
1927 * value.c (isvoid_internal_fn): Replace "parameter" with
1928 "argument".
1929
1930 2013-09-16 Stan Shebs <stan@codesourcery.com>
1931
1932 * README: Update references to writing code for GDB.
1933 * configure.ac (build_warnings): Remove obsolete comment.
1934 * configure: Regenerate.
1935 * gdbarch.sh: Remove references to gdbint.texinfo.
1936 * gdbarch.h: Regenerate.
1937 * gdbtypes.c (objfile_type): Remove comments referencing internals
1938 manual and D10V.
1939
1940 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1941
1942 * NEWS: Mention new convenience function $_isvoid.
1943 * value.c (isvoid_internal_fn): New function.
1944 (_initialize_values): Add new convenience function $_isvoid.
1945
1946 2013-09-16 Pierre Muller <muller@sourceware.org>
1947
1948 * arm-linux-tdep.c: Add "elf/common.h" header.
1949 Remove AT_HWCAP macro definintion as it is provided in
1950 added include file.
1951 * s390-tdep.c: Remove system header <elf.h>
1952 Add "elf/common.h" header for AT_HWCAP definition.
1953 (s390_core_read_description): Use correct CORE_ADDR
1954 for hwcap local variable used as third parameter
1955 of function target_auxv_search.
1956
1957 2013-09-14 Pierre Muller <muller@sourceware.org>
1958 Tom Tromey <tromey@redhat.com>
1959 Pedro Alves <palves@redhat.com>
1960
1961 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1962 mode if operating system doesn't know O_CLOEXEC.
1963
1964 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1965
1966 Code cleanup.
1967 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1968 inner block.
1969
1970 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1971
1972 * NEWS: Mention TDB support.
1973 * features/s390-tdb.xml: New file.
1974 * features/s390-te-linux64.xml: New file.
1975 * features/s390x-te-linux64.xml: New file.
1976 * features/Makefile (WHICH): Add new tdescs above.
1977 (s390-te-linux64-expedite): Set.
1978 (s390x-te-linux64-expedite): Set.
1979 * features/s390-te-linux64.c: New file (generated).
1980 * features/s390x-te-linux64.c: New file (generated).
1981 * regformats/s390-te-linux64.dat: New file (generated).
1982 * regformats/s390x-te-linux64.dat: New file (generated).
1983 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1984 (HWCAP_S390_TE): Likewise.
1985 (S390_TDB_DWORD0_REGNUM): Likewise.
1986 (S390_TDB_DWORD0_REGNUM): Likewise.
1987 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1988 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1989 (S390_TDB_ATIA_REGNUM): Likewise.
1990 (S390_TDB_R0_REGNUM): Likewise.
1991 (S390_TDB_R1_REGNUM): Likewise.
1992 (S390_TDB_R2_REGNUM): Likewise.
1993 (S390_TDB_R3_REGNUM): Likewise.
1994 (S390_TDB_R4_REGNUM): Likewise.
1995 (S390_TDB_R5_REGNUM): Likewise.
1996 (S390_TDB_R6_REGNUM): Likewise.
1997 (S390_TDB_R7_REGNUM): Likewise.
1998 (S390_TDB_R8_REGNUM): Likewise.
1999 (S390_TDB_R9_REGNUM): Likewise.
2000 (S390_TDB_R10_REGNUM): Likewise.
2001 (S390_TDB_R11_REGNUM): Likewise.
2002 (S390_TDB_R12_REGNUM): Likewise.
2003 (S390_TDB_R13_REGNUM): Likewise.
2004 (S390_TDB_R14_REGNUM): Likewise.
2005 (S390_TDB_R15_REGNUM): Likewise.
2006 (S390_NUM_REGS): Increase.
2007 (S390_IS_TDBREGSET_REGNUM): New macro.
2008 (s390_regmap_tdb): Declare.
2009 (s390_sizeof_tdbregset): Define.
2010 (tdesc_s390_te_linux64): Declare.
2011 (tdesc_s390x_te_linux64): Likewise.
2012 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2013 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2014 (s390_regmap_tdb): New regmap.
2015 (s390_supply_tdb_regset): New function.
2016 (s390_tdb_regset): New regset.
2017 (s390_linux64v2_regset_sections): Add TDB regset to list.
2018 (s390x_linux64v2_regset_sections): Likewise.
2019 (s390_regset_from_core_section): Recognize TDB core note section.
2020 (s390_core_read_description): If HWCAP indicates TE support,
2021 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2022 (s390_gdbarch_init): Handle TDB regset.
2023 (_initialize_s390_tdep): Initialize new tdescs.
2024 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2025 (have_regset_tdb): New variable.
2026 (s390_native_supply): Support register invalidation.
2027 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2028 (check_regset): Treat ENODATA as "regset exists".
2029 (s390_linux_fetch_inferior_registers): Add TDB.
2030 (s390_read_description): Check for TDB existence and select
2031 appropriate tdesc.
2032 * gdbserver/Makefile.in (clean): Add removal of new makefile
2033 targets.
2034 (s390-te-linux64.c): New makefile target.
2035 (s390x-te-linux64.c): Likewise.
2036 * gdbserver/configure.srv (srv_regobj): Append new objects
2037 s390-te-linux64.o and s390x-te-linux64.o.
2038 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2039 s390x-te-linux64.xml, and s390-tdb.xml.
2040 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2041 declaration.
2042 (tdesc_s390_te_linux64): Likewise.
2043 (init_registers_s390x_te_linux64): Likewise.
2044 (tdesc_s390x_te_linux64): Likewise.
2045 (s390_check_regset): Treat ENODATA as "regset exists".
2046 (s390_arch_setup): Add TDB regset support.
2047 (initialize_low_arch): Initialize registers for new tdescs.
2048
2049 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2050
2051 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2052 (S390_IS_FPREGSET_REGNUM): New macro.
2053 * s390-tdep.c (s390_dwarf_regmap): Make const.
2054 (regnum_is_gpr_full): New function for replacing repeated code.
2055 (s390_pseudo_register_name): Use it.
2056 (s390_pseudo_register_type): Likewise.
2057 (s390_pseudo_register_read): Likewise.
2058 (s390_pseudo_register_write): Likewise.
2059 (s390_unwind_pseudo_register): Likewise.
2060 (s390_regmap_gregset): New format for regmap.
2061 (s390x_regmap_gregset): Likewise.
2062 (s390_regmap_fpregset): Likewise.
2063 (s390_regmap_upper): Likewise.
2064 (s390_regmap_last_break): Likewise.
2065 (s390_regmap_system_call): Likewise.
2066 (s390_supply_regset): Adjust to new regmap format.
2067 (s390_collect_regset): Likewise.
2068 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2069 (s390_native_collect): Likewise.
2070 (supply_gregset): Likewise.
2071 (fill_gregset): Likewise.
2072 (supply_fpregset): Likewise.
2073 (fill_fpregset): Likewise.
2074 (fetch_regset): Likewise.
2075 (store_regset): Likewise.
2076 (s390_linux_fetch_inferior_registers): Likewise.
2077 (s390_linux_fetch_inferior_registers): Likewise.
2078
2079 2013-09-12 Andrew Pinski <apinski@cavium.com>
2080
2081 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2082
2083 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2084
2085 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2086
2087 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2088
2089 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2090
2091 2013-09-06 Pedro Alves <palves@redhat.com>
2092
2093 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2094 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2095 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2096 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2097 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2098 gdb_stdlog.
2099
2100 2013-09-06 Pedro Alves <palves@redhat.com>
2101
2102 * remote-sim.c (dump_mem): Constify buf parameter.
2103 gdbsim_xfer_inferior_memory): Rename to ...
2104 (gdbsim_xfer_memory): ... this. Adjust interface as
2105 target_xfer_partial helper.
2106 (gdbsim_xfer_partial): New function.
2107 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2108 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2109
2110 2013-09-06 Pedro Alves <palves@redhat.com>
2111
2112 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2113 host_address_to_string, and send debug output to gdb_stdlog.
2114
2115 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2116
2117 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2118 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2119 gdb_target_obs for cris target.
2120 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2121 (cris_gdbarch_init): Move calls to
2122 set_gdbarch_fetch_tls_load_module_address and
2123 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2124 Add call to gdbarch_init_osabi.
2125 * cris-linux-tdep.c: New file.
2126 * cris-tdep.h: New file.
2127
2128 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2129
2130 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2131 to deprecated_init_ui_hook.
2132
2133 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2134
2135 * cli/cli-interp.c (_initialize_cli_interp): Add a
2136 command_loop_proc to interp_procs.
2137 * event-top.c (cli_command_loop): Change signature to match
2138 interp_command_loop_ftype.
2139 * event-top.h (cli_command_loop): Same.
2140 * interps.c (interp_new): Require every interpreter to have a
2141 command_loop_proc.
2142 (current_interp_command_loop): Just call the command_loop_proc on
2143 the current interpreter.
2144 * tui/tui-interp.c (_initialize_tui_interp): Add a
2145 command_loop_proc to interp_procs.
2146
2147 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2148
2149 * cris-tdep.c (cris_gdbarch_init): Add call to
2150 get_gdbarch_fetch_tls_load_module_address.
2151
2152 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2153
2154 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2155 (cris_elf_gregset_t): Rename from elf_gregset_t.
2156 (crisv32_elf_gregset_t): Adjust.
2157 (cris_supply_gregset, fetch_core_registers): Adjust.
2158
2159 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2160
2161 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2162
2163 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
2164
2165 * defs.h (deprecated_command_loop_hook): Remove, including
2166 references in comments.
2167 * interps.c (current_interp_command_loop): No longer use
2168 deprecated_command_loop_hook.
2169 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2170 setup.
2171 * top.c (deprecated_command_loop_hook): Remove.
2172
2173 2013-09-05 Pedro Alves <palves@redhat.com>
2174
2175 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2176 local is now int instead of ULONGEST. Print it with %d
2177 instead of paddress.
2178
2179 2013-09-05 Tristan Gingold <gingold@adacore.com>
2180
2181 * MAINTAINERS: Remove avr maintainership.
2182
2183 2013-09-05 Pedro Alves <palves@redhat.com>
2184
2185 * findvar.c (value_of_register): Rework in terms of
2186 value_of_register_lazy.
2187
2188 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2189
2190 * symfile.c (add_symbol_file_command): Remove trailing
2191 whitespaces and blank line after comment.
2192
2193 2013-09-05 Pedro Alves <palves@redhat.com>
2194
2195 * tui/tui-regs.c (tui_register_format): Don't look at the
2196 register's name here. Return string representing register
2197 value instead of storing it in the data element.
2198 (tui_get_register): Compare register string representations
2199 instead of register value states and contents.
2200
2201 2013-09-05 Pedro Alves <palves@redhat.com>
2202
2203 PR tui/15933
2204 * tui/tui-regs.c (tui_show_registers): Show registers of the
2205 selected frame, not the current frame.
2206
2207 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2208
2209 * MAINTAINERS (Write After Approval): Add myself to the list.
2210
2211 2013-09-04 Doug Evans <dje@google.com>
2212
2213 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2214 (queue_and_load_dwo_tu): New function.
2215 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2216 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2217 Make dependent_cu optional.
2218 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2219 and an older .gdb_index is in use, queue and load all its TUs too.
2220
2221 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2222
2223 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2224 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2225 variable search_flags.
2226 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2227 (OPF_RETURN_REALPATH): ... here.
2228 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2229 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2230 call. Twice.
2231 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2232 openp call.
2233 * solib.c (solib_find): Likewise. Four times.
2234 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2235 in the function comment and for the realpath_fptr variable.
2236 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2237 (find_and_open_source): Likewise. Twice.
2238 * symfile.c (symfile_bfd_open): Likewise, also twice.
2239
2240 2013-09-04 Doug Evans <dje@google.com>
2241
2242 * progspace.c (save_current_space_and_thread): Remove unnecessary
2243 call to save_current_inferior.
2244
2245 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2246
2247 * sh64-tdep.c (sh64_do_register): Return after printing message
2248 about unavailable register contents.
2249
2250 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2251 Pedro Alves <palves@redhat.com>
2252
2253 * symfile.c (add_symbol_file_command): Error out on unknown
2254 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2255 options and collapse into single conditional branch.
2256
2257 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2258
2259 * inf-child.c (inf_child_follow_fork): New parameter
2260 detach_fork.
2261 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2262 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2263 * inferior.h (detach_fork): Remove.
2264 * infrun.c (detach_fork): Adjust comment and make it
2265 static.
2266 (follow_fork): Pass detach_fork parameter to
2267 target_follow_fork.
2268 * linux-nat.c (linux_child_follow_fork): New parameter
2269 detach_fork.
2270 * target.c (target_follow_fork): New parameter detach_fork.
2271 Pass detach_fork as parameter and print its value.
2272 * target.h (struct target_ops) <to_follow_fork>: New int
2273 parameter.
2274 (target_follow_fork): New parameter detach_fork.
2275
2276 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2277
2278 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2279 Replace sec->bfd by sec->the_bfd_section->owner.
2280
2281 2013-09-03 Yao Qi <yao@codesourcery.com>
2282
2283 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2284 from linux_has_shared_address_space.
2285 (linux_has_shared_address_space): Call linux_is_uclinux.
2286 * linux-tdep.h (linux_is_uclinux): Declare.
2287 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2288 linux_is_uclinux.
2289
2290 2013-09-03 Yao Qi <yao@codesourcery.com>
2291
2292 * config/djgpp/fnchange.lst: Remove entry of
2293 i386-interix-nat.c and i386-interix-tdep.c.
2294 * configure.ac: Remove '*-*-interix*'.
2295 * configure: Re-generated.
2296 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2297 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2298 obsolete comments.
2299 * osabi.c (gdb_osabi_names): Remove "Interix".
2300
2301 2013-09-03 Yao Qi <yao@codesourcery.com>
2302
2303 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2304
2305 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2306
2307 * record.h (record_print_flag) <record_print_src_line,
2308 record_print_insn_range>: Rename into ...
2309 (record_print_flag) <record_print_src_line,
2310 record_print_insn_range>: ... this. Update all users.
2311
2312 2013-09-02 Pierre Muller <muller@sourceware.org>
2313
2314 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2315 error code.
2316
2317 2013-09-02 Pierre Muller <muller@sourceware.org>
2318
2319 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2320 by use of plongest function.
2321
2322 2013-09-02 Tristan Gingold <gingold@adacore.com>
2323
2324 * NEWS: Add entry mentioning support for native Windows x64
2325 SEH data.
2326
2327 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2328 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2329 (struct amd64_windows_frame_cache): New struct.
2330 (amd64_windows_w2gdb_regnum): New global.
2331 (pc_in_range, amd64_windows_frame_decode_epilogue)
2332 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2333 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2334 (amd64_windows_frame_this_id): New functions.
2335 (amd64_windows_frame_unwind): New static global.
2336 (amd64_windows_skip_prologue): New function.
2337 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2338 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2339 with amd64_windows_skip_prologue.
2340
2341 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2342
2343 GDB 7.6.1 released.
2344
2345 2013-08-30 Pedro Alves <palves@redhat.com>
2346
2347 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2348 SRC_AND_LOC.
2349
2350 2013-08-30 Pedro Alves <palves@redhat.com>
2351
2352 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2353 warning text.
2354
2355 2013-08-30 Pedro Alves <palves@redhat.com>
2356
2357 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2358 Adjust arguments to print_stack_frame.
2359
2360 2013-08-30 Pedro Alves <palves@redhat.com>
2361
2362 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2363
2364 2013-08-30 Pedro Alves <palves@redhat.com>
2365
2366 * frame.h (show_and_print_stack_frame): Delete declaration.
2367
2368 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2369
2370 PR python/15461
2371 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2372 (archpy_name): Check for valid architecture.
2373 (archpy_disassemble): Ditto.
2374
2375 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2376
2377 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2378 instead of "long long" in call to ptrace64.
2379
2380 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2381
2382 * mi/mi-interp.c (mi_command_loop): Change signature to match
2383 interp_command_loop_ftype.
2384 (mi1_command_loop): Remove.
2385 (mi2_command_loop): Remove.
2386 (mi3_command_loop): Remove.
2387 (mi_interpreter_resume): Remove setting of
2388 deprecated_command_loop_hook.
2389 (_initialize_mi_interp): Set mi_command_loop as the command loop
2390 callback.
2391
2392 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2393
2394 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2395 value_type.
2396
2397 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2398
2399 * value.c (allocate_value_contents): Make static.
2400 * value.h (allocate_value_contents): Remove prototype.
2401
2402 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2403
2404 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2405 of assembling value via allocate_value_lazy and attribute setter.
2406 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2407 assembling value via allocate_value_lazy and attribute setter.
2408 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2409 assembling value via allocate_value_lazy and attribute setter.
2410
2411 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2412
2413 * value.c (value_from_contents_and_address): Replace allocate_value and
2414 memcpy with value_from_contents.
2415
2416 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2417
2418 * python/py-framefilter.c (py_print_frame): Remove usage of
2419 PyString_AsString. Use python_string_to_host_string instead.
2420 Refactor function to work with a string as a new allocation
2421 instead of a pointer.
2422 (py_print_frame): Ditto.
2423 * python/lib/gdb/frames.py (return_list): Cain iterators together
2424 instead of adding them as a list.
2425 (_sort_list): Call return_list, and remove duplicate code.
2426 (execute_frame_filters): Convert iterator to a list with list().
2427 * python/lib/gdb/command/frame_filters.py
2428 (SetFrameFilterPriority._set_filter_priority): Convert priority
2429 attribute to an integer.
2430 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2431 wrapper function __next__.
2432 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2433 define as "str".
2434
2435 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2436
2437 PR python/15752
2438 * python/py-framefilter.c (apply_frame_filter): Check
2439 gdb_python_initialized. Exit if the Python frame-filter code
2440 cannot be initialized.
2441
2442 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2443
2444 PR cli/15842
2445 * top.c (print_gdb_version): Remove erroneous newline after help
2446 text.
2447
2448 2013-08-29 Yao Qi <yao@codesourcery.com>
2449
2450 * varobj.c (install_dynamic_child): Remove trailing space.
2451 Add one blank line after variable declaration.
2452
2453 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2454
2455 PR gdb/15415
2456 * corefile.c (get_exec_file): Use exec_filename.
2457 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2458 * exec.c (exec_close): Free EXEC_FILENAME.
2459 (exec_file_attach): New variable canonical_pathname. Use
2460 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2461 EXEC_FILENAME.
2462 * exec.h (exec_filename): New.
2463 * inferior.c (print_inferior, inferior_command): Use
2464 PSPACE_EXEC_FILENAME.
2465 * mi/mi-main.c (print_one_inferior): Likewise.
2466 * progspace.c (clone_program_space, print_program_space): Likewise.
2467 * progspace.h (struct program_space): New field pspace_exec_filename.
2468 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2469 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2470
2471 2013-08-28 Will Newton <will.newton@linaro.org>
2472
2473 * common/linux-ptrace.c: Include stdint.h unconditionally.
2474
2475 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2476
2477 Code cleanup.
2478 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2479
2480 2013-08-28 Yao Qi <yao@codesourcery.com>
2481 Pedro Alves <palves@redhat.com>
2482
2483 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2484 instead of stdio_fileopen.
2485 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2486 .Call stderr_fileopen instead of stdio_fileopen.
2487 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2488 [__MINGW32__] (stderr_file_fputs): New function.
2489 (stderr_fileopen): New function.
2490 * ui-file.h (stderr_fileopen): Declare.
2491
2492 2013-08-27 Doug Evans <dje@google.com>
2493
2494 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2495 (struct dwarf2_per_cu_data): Ditto.
2496 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2497 (process_imported_unit_die): Ditto.
2498 (follow_die_sig_1): Simplify assert.
2499
2500 2013-08-27 Pedro Alves <palves@redhat.com>
2501
2502 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2503 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2504 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2505 windows_xfer_memory directly.
2506 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2507
2508 2013-08-27 Pedro Alves <palves@redhat.com>
2509
2510 * darwin-nat.c (darwin_xfer_memory): Delete.
2511 (_initialize_darwin_inferior): Don't install a
2512 deprecated_xfer_memory method.
2513
2514 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2515 Yao Qi <yao@codesourcery.com>
2516
2517 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2518 (parse_no_frames_option): Remove.
2519 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2520 (mi_cmd_stack_list_args): Adjust.
2521 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2522 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2523 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2524 Caller update.
2525 (list_args_or_locals): New parameter 'skip_unavailable'.
2526 Handle it.
2527 * valprint.c (scalar_type_p): Rename to ...
2528 (val_print_scalar_type_p): ... this. Make extern.
2529 (val_print, value_check_printable): Adjust.
2530 * valprint.h (val_print_scalar_type_p): Declare.
2531 * value.c (value_entirely_unavailable): New function.
2532 * value.h (value_entirely_unavailable): Declare.
2533
2534 * NEWS: Mention the new option "--skip-unavailable" to MI
2535 commands '-stack-list-locals', '-stack-list-arguments' and
2536 '-stack-list-variables'.
2537
2538 2013-08-27 Yao Qi <yao@codesourcery.com>
2539
2540 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2541 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2542 options.
2543 * mi/mi-getopt.c (mi_getopt): Remove.
2544 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2545 'error_on_unknown'.
2546 (mi_getopt): Call mi_getopt_1.
2547 (mi_getopt_silent): New.
2548 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2549
2550 2013-08-26 Doug Evans <dje@google.com>
2551
2552 PR symtab/15885
2553 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2554 .gdb_index is in use.
2555 * symfile.c (reread_symbols): Reset objfile->sf.
2556
2557 * NEWS: Document "mt print objfiles" now takes optional regexp.
2558 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2559 regexp of objfiles to print.
2560 (_initialize_symmisc): Update doc string for "mt print objfiles".
2561
2562 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2563 missing debug info checks.
2564
2565 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2566 Ulrich Weigand <uweigand@de.ibm.com>
2567
2568 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2569 line tables generated by XLC compiled binaries.
2570
2571 2013-08-23 Doug Evans <dje@google.com>
2572
2573 * symmisc.c (dump_symtab): Delete prototype.
2574 (dump_msymbols, dump_objfile): Ditto.
2575 (maintenance_info_symtabs): Mark as dont_repeat.
2576 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2577
2578 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2579 debugging printf to better location.
2580
2581 2013-08-23 Pedro Alves <palves@redhat.com>
2582
2583 * target.c (target_read_live_memory): Change type of 'ret' local
2584 to LONGEST.
2585
2586 2013-08-23 Pedro Alves <palves@redhat.com>
2587
2588 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2589 (remote_read_bytes): Change return type to LONGEST, and adjust to
2590 return a target_xfer_error on error.
2591 (remote_xfer_memory): Delete.
2592 (remote_flash_write): Change type of 'ret' local to LONGEST.
2593 (remote_xfer_partial, remote_xfer_partial): Adjust.
2594 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2595
2596 2013-08-23 Pierre Muller <muller@sourceware.org>
2597
2598 ARI fix: Push # directives to start of line.
2599 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2600
2601 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2602
2603 PR gdb/15501
2604 * breakpoint.c (enable_command, disable_command): Iterate over
2605 all specified breakpoint locations.
2606
2607 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2608
2609 * common/linux-ptrace.c (linux_fork_to_function): Push #
2610 directives to the start of the line.
2611 (linux_check_ptrace_features): Fix warning message to use
2612 the "_" markup.
2613
2614 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2615
2616 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2617 nat/linux-waitpid.h.
2618 (linux-waitpid.o): New object file rule.
2619 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2620 (current_ptrace_options): Moved from linux-nat.c.
2621 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2622 parameters.
2623 (linux_fork_to_function): New function.
2624 (linux_grandchild_function): Likewise.
2625 (linux_child_function): Likewise.
2626 (linux_check_ptrace_features): New function, heavily
2627 based on linux-nat.c:linux_test_for_tracefork.
2628 (linux_enable_event_reporting): New function.
2629 (ptrace_supports_feature): Likewise.
2630 (linux_supports_tracefork): Likewise.
2631 (linux_supports_traceclone): Likewise.
2632 (linux_supports_tracevforkdone): Likewise.
2633 (linux_supports_tracesysgood): Likewise.
2634 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2635 gdbserver/linux-low.c.
2636 (linux_enable_event_reporting): New declaration.
2637 (linux_supports_tracefork): Likewise.
2638 (linux_supports_traceclone): Likewise.
2639 (linux_supports_tracevforkdone): Likewise.
2640 (linux_supports_tracesysgood): Likewise.
2641 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2642 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2643 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2644 * config/arm/linux.mh (NATDEPFILES): Likewise.
2645 * config/i386/linux.mh (NATDEPFILES): Likewise.
2646 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2647 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2648 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2649 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2650 * config/mips/linux.mh (NATDEPFILES): Likewise.
2651 * config/pa/linux.mh (NATDEPFILES): Likewise..
2652 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2653 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2654 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2655 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2656 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2657 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2658 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2659 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2660 ptrace's 4th argument's types.
2661 Check the type of PTRACE_TYPE_ARG4.
2662 * configure: Regenerate.
2663 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2664 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2665 (linux_supports_tracefork_flag): Remove.
2666 (linux_supports_tracesysgood_flag): Likewise.
2667 (linux_supports_tracevforkdone_flag): Likewise.
2668 (current_ptrace_options): Moved to
2669 common/linux-ptrace.c.
2670 (linux_tracefork_child): Remove.
2671 (my_waitpid): Remove.
2672 (linux_test_for_tracefork): Renamed to
2673 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2674 (linux_test_for_tracesysgood): Remove.
2675 (linux_supports_tracesysgood): Remove.
2676 (linux_supports_tracefork): Remove.
2677 (linux_supports_tracevforkdone): Remove.
2678 (linux_enable_tracesysgood): Remove.
2679 (linux_enable_event_reporting): Remove.
2680 (linux_init_ptrace): New function.
2681 (linux_child_post_attach): Call linux_init_ptrace.
2682 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2683 (linux_child_follow_fork): Call linux_supports_tracefork
2684 and linux_supports_tracevforkdone.
2685 (linux_child_insert_fork_catchpoint): Call
2686 linux_supports_tracefork.
2687 (linux_child_insert_vfork_catchpoint): Likewise.
2688 (linux_child_set_syscall_catchpoint): Call
2689 linux_supports_tracesysgood.
2690 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2691 * nat/linux-nat.h: New file.
2692 * nat/linux-waitpid.c: New file.
2693 * nat/linux-waitpid.h: New file.
2694
2695 2013-08-22 Samuel Bronson <naesten@gmail.com>
2696
2697 ARM Linux support for `catch syscall'.
2698 * syscalls/arm-linux.py: New file.
2699 * syscalls/arm-linux.xml: Likewise.
2700 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2701 (arm_linux_init_abi): Register the new function and syscall xml file.
2702 * data-directory/Makefile.in: Install the new syscall xml file.
2703 * NEWS: Brag about this.
2704
2705 2013-08-22 Pedro Alves <palves@redhat.com>
2706
2707 PR gdb/15871
2708 * corefile.c (target_xfer_memory_error): New function.
2709 (memory_error): Defer EIO to target_memory_error.
2710 (read_memory): Use target_xfer_partial, and handle finer-grained
2711 target xfer errors.
2712 * target.c (target_xfer_error_to_string): New function.
2713 (memory_xfer_partial_1): If memory is known to be
2714 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2715 (target_xfer_partial): Make extern.
2716 * target.h (enum target_xfer_error): New enum.
2717 (target_xfer_error_to_string): Declare function.
2718 (target_xfer_partial): Declare function.
2719 (struct target_ops) <xfer_partial>: Adjust describing comment.
2720
2721 2013-08-22 Alan Modra <amodra@gmail.com>
2722
2723 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2724 * configure.tgt: Likewise as targets.
2725
2726 2013-08-20 Doug Evans <dje@google.com>
2727
2728 * buildsym.c (subfile_stack): Move here from buildsym.h.
2729 (pending_macros): Ditto.
2730 (get_macro_table): New function.
2731 (buildsym_init): Initialize subfile_stack.
2732 * coffread.c (type_vector,type_vector_length): Moved here from
2733 buildsym.h.
2734 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2735 (coff_symtab_read): Use it.
2736 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2737 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2738 with call to get_macro_table.
2739 * stabsread.c (type_vector,type_vector_length): Moved here from
2740 buildsym.h.
2741 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2742 * buildsym.h (get_macro_table): Declare.
2743
2744 2013-08-20 Tom Tromey <tromey@redhat.com>
2745
2746 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2747 Update.
2748 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2749
2750 2013-08-20 Doug Evans <dje@google.com>
2751
2752 * blockframe.c: Remove #include "psymtab.h".
2753 * cp-support.c: Ditto.
2754 * source.c: Ditto.
2755 * stack.c: Ditto.
2756
2757 2013-08-20 Tom Tromey <tromey@redhat.com>
2758
2759 PR python/15816:
2760 * exceptions.h (return_mask): Now an enum.
2761 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2762 enum constants.
2763
2764 2013-08-20 Tom Tromey <tromey@redhat.com>
2765
2766 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2767 get_objfile_arch.
2768 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2769 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2770 * jit.c (jit_object_close_impl): Update.
2771 * jv-lang.c (get_dynamics_objfile): Update.
2772 * linespec.c (add_minsym): Use get_dynamics_objfile.
2773 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2774 (allocate_objfile): Don't initialize 'gdbarch' field.
2775 (get_objfile_arch): Update.
2776 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2777 moved from...
2778 (struct objfile) <gdbarch>: ... here. Remove.
2779 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2780 get_objfile_arch.
2781 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2782
2783 2013-08-20 Alan Modra <amodra@gmail.com>
2784
2785 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2786 for IBM long double nan and inf.
2787 (floatformat_is_negative, floatformat_classify,
2788 floatformat_mantissa): Similarly.
2789 (floatformat_ieee_single, floatformat_ieee_double,
2790 floatformat_ieee_quad, floatformat_arm_ext,
2791 floatformat_ia64_spill): Delete unused vars.
2792 (_initialize_doublest): Delete unused function.
2793 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2794 little-endian variants of floatformat_ibm_long_double.
2795
2796 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2797
2798 * Makefile.in (SFILES): Remove common/target-common.c and
2799 add target/waitstatus.c.
2800 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2801 target/resume.h, target/wait.h and target/waitstatus.h.
2802 (COMMON_OBS): Remove target-common.o and add
2803 waitstatus.o.
2804 (target-common.o): Remove.
2805 (waitstatus.o): New target object file.
2806 * common/target-common.c: Move contents to
2807 target/waitstatus.c and remove.
2808 * common/target-common.h: Move contents to other files and
2809 remove.
2810 (enum resume_kind: Move to target/resume.h.
2811 (TARGET_WNOHANG): Move to target/wait.h.
2812 (enum target_waitkind): Move to target/waitstatus.h.
2813 (struct target_waitstatus): Likewise.
2814 * target.h: Do not include target-common.h and
2815 include target/resume.h, target/wait.h and
2816 target/waitstatus.h.
2817 * target/resume.h: New file.
2818 * target/wait.h: New file.
2819 * target/waitstatus.h: New file.
2820 * target/waitstatus.c: New file.
2821
2822 2013-08-19 Pedro Alves <palves@redhat.com>
2823
2824 * linux-nat.c (linux_test_for_tracefork)
2825 (linux_test_for_tracesysgood, linux_child_follow_fork)
2826 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2827 (linux_nat_wait_1): Extend comment.
2828 (linux_async_pipe): Add comment.
2829
2830 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2831
2832 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2833 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2834 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2835 Update to account for fact that PC is now a pseudo-register.
2836 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2837 cases for RL78_PC_REGNUM.
2838
2839 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2840
2841 PR cli/15841
2842 * top.c (quit_force): Skip writing history file
2843 if input is not from terminal.
2844
2845 2013-08-14 Tom Tromey <tromey@redhat.com>
2846
2847 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2848 resultthreadlist>: New fields.
2849 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2850 (remote_get_threadlist, remote_threadlist_iterator): Use
2851 new fields. Remove static variables.
2852
2853 2013-08-14 Tom Tromey <tromey@redhat.com>
2854
2855 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2856 remote_watch_data_address>: New fields.
2857 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2858 (process_stop_reply, remote_wait_as)
2859 (remote_check_watch_resources, remote_stopped_data_address): Update.
2860
2861 2013-08-14 Tom Tromey <tromey@redhat.com>
2862
2863 * remote.c (struct remote_state) <async_client_callback,
2864 async_client_context>: New fields.
2865 (async_client_callback, async_client_context): Remove.
2866 (remote_async_serial_handler, remote_async): Update.
2867
2868 2013-08-14 Tom Tromey <tromey@redhat.com>
2869
2870 * remote.c (sizeof_pkt): Remove.
2871 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2872
2873 2013-08-14 Tom Tromey <tromey@redhat.com>
2874
2875 * remote.c (struct remote_state) <use_threadinfo_query,
2876 use_threadextra_query>: New fields.
2877 (remote_threads_info, remote_threads_extra_info)
2878 (remote_open_1): Update.
2879
2880 2013-08-14 Tom Tromey <tromey@redhat.com>
2881
2882 * remote.c (struct remote_state) <finished_object,
2883 finished_annex, finished_offset>: New fields.
2884 (remote_read_qxfer): Use remote_state fields; remove static
2885 variables.
2886
2887 2013-08-14 Tom Tromey <tromey@redhat.com>
2888
2889 * remote.c (struct remote_state) <last_sent_step>:
2890 New field.
2891 (last_sent_step): Remove.
2892 (remote_resume, remote_wait_as): Update.
2893
2894 2013-08-14 Tom Tromey <tromey@redhat.com>
2895
2896 * remote.c (struct remote_state) <last_sent_signal>:
2897 New field.
2898 (last_sent_signal): Remove.
2899 (new_remote_state, remote_resume, remote_wait_as): Update.
2900
2901 2013-08-14 Tom Tromey <tromey@redhat.com>
2902
2903 * remote.c (struct remote_state) <last_program_signals_packet>:
2904 New field.
2905 (last_program_signals_packet): Remove.
2906 (remote_program_signals, remote_open_1): Update.
2907
2908 2013-08-14 Tom Tromey <tromey@redhat.com>
2909
2910 * remote.c (struct remote_state) <last_pass_packet>:
2911 New field.
2912 (last_pass_packet): Remove.
2913 (remote_pass_signals, remote_open_1): Update.
2914
2915 2013-08-14 Tom Tromey <tromey@redhat.com>
2916
2917 * remote.c (struct remote_state) <remote_traceframe_number>:
2918 New field.
2919 (remote_traceframe_number): Remove.
2920 (new_remote_state, remote_open_1, set_remote_traceframe)
2921 (remote_trace_find): Update.
2922
2923 2013-08-14 Tom Tromey <tromey@redhat.com>
2924
2925 * remote.c (struct remote_state) <general_thread, continue_thread>:
2926 New fields.
2927 (general_thread, continue_thread): Remove.
2928 (record_currthread, set_thread, set_general_process)
2929 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2930 (extended_remote_mourn_1): Update.
2931
2932 2013-08-14 Tom Tromey <tromey@redhat.com>
2933
2934 * remote.c (struct remote_state) <remote_desc>: New field.
2935 (remote_desc): Remove.
2936 (remote_threads_info, remote_threads_extra_info, remote_close)
2937 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2938 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2939 (remote_hostio_send_command, remote_file_put, remote_file_get)
2940 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2941 (remote_async, remote_new_objfile, set_range_stepping): Update.
2942
2943 2013-08-14 Tom Tromey <tromey@redhat.com>
2944
2945 * remote.c (remote_state): Now a pointer.
2946 (get_remote_state_raw): Update.
2947 (new_remote_state): New function.
2948 (_initialize_remote): Use new_remote_state.
2949
2950 2013-08-14 Tom Tromey <tromey@redhat.com>
2951
2952 * remote.c (remote_protocol_features): Now const.
2953
2954 2013-08-14 Tom Tromey <tromey@redhat.com>
2955
2956 * remote.c (crc32_table, crc32): Remove.
2957 (remote_verify_memory): Use xcrc32.
2958
2959 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2960
2961 * value.h (create_internalvar_type_lazy): Adjust prototype
2962 declaration.
2963
2964 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2965
2966 * common/format.c (parse_format_string): Don't allow '#' flag for
2967 pointer arguments in format string.
2968
2969 2013-08-13 Pierre Muller <muller@sourceware.org>
2970
2971 * utils.c (init_page_info): Only call tgetnum function
2972 if rl_get_screen_size did not return useful values.
2973
2974 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2975
2976 PR breakpoints/15117
2977 * linespec.c (linespec_parse_basic): Check for convenience
2978 variable or history value while parsing.
2979
2980 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2981
2982 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2983 AVR.
2984 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2985 different signals between the generic Linux kernel implementation
2986 and AVR's.
2987 (avr_linux_gdb_signal_from_target): Delete.
2988 (avr_linux_gdb_signal_to_target): Delete.
2989 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2990
2991 2013-08-09 Doug Evans <dje@google.com>
2992
2993 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2994 entries.
2995
2996 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2997
2998 * linux-tdep.c: Define enum with generic signal numbers.
2999 (linux_gdb_signal_from_target): New function.
3000 (linux_gdb_signal_to_target): Likewise.
3001 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3002 methods to the functions above.
3003 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3004 (linux_gdb_signal_to_target): Likewise.
3005 * alpha-linux-tdep.c: Define new enum with signals different
3006 from generic Linux kernel.
3007 (alpha_linux_gdb_signal_from_target): New function.
3008 (alpha_linux_gdb_signal_to_target): Likewise.
3009 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3010 with the functions mentioned above.
3011 * avr-tdep.c: Define enum with differences between Linux kernel
3012 and AVR signals.
3013 (avr_linux_gdb_signal_from_target): New function.
3014 (avr_linux_gdb_signal_to_target): Likewise.
3015 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3016 the functions mentioned above.
3017 * sparc-linux-tdep.c: Define enum with differences between SPARC
3018 and generic Linux kernel signal numbers.
3019 (sparc32_linux_gdb_signal_from_target): New function.
3020 (sparc32_linux_gdb_signal_to_target): Likewise.
3021 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3022 to the functions defined above.
3023 * xtensa-linux-tdep.c: Define enum with differences between
3024 Xtensa and Linux kernel generic signals.
3025 (xtensa_linux_gdb_signal_from_target): New function.
3026 (xtensa_linux_gdb_signal_to_target): Likewise.
3027 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3028 to the functions defined above.
3029 * mips-linux-tdep.c: Define enum with differences between
3030 signals in MIPS and Linux kernel generic ones.
3031 (mips_gdb_signal_to_target): New function.
3032 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3033 only different signals from the Linux kernel generic.
3034 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3035 the functions defined above.
3036 * mips-linux-tdep.h (enum mips_signals): Remove.
3037
3038 2013-08-09 Pedro Alves <palves@redhat.com>
3039
3040 * avr-tdep.c (XMALLOC): Delete macro.
3041 * cli/cli-dump.c (XMALLOC): Delete macro.
3042
3043 2013-08-09 Pedro Alves <palves@redhat.com>
3044
3045 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3046 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3047 (fopen_with_cleanup, add_dump_command): Make static.
3048 * cli/cli-dump.h: Delete file.
3049 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3050 cli/cli-dump.h.
3051
3052 2013-08-09 Pedro Alves <palves@redhat.com>
3053
3054 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3055 error message.
3056
3057 2013-08-09 Pedro Alves <palves@redhat.com>
3058
3059 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3060 error message.
3061
3062 2013-08-09 Pedro Alves <palves@redhat.com>
3063
3064 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3065 (gcore_command): Use tilde_expand here, and when showing the
3066 filename to the user, show the expanded version.
3067
3068 2013-08-09 Yao Qi <yao@codesourcery.com>
3069
3070 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3071 'entryval' is set.
3072
3073 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3074
3075 * gcore.c (create_gcore_bfd): Use tilde_expand.
3076
3077 2013-08-08 Yao Qi <yao@codesourcery.com>
3078
3079 * frame.h (read_frame_local): Declare.
3080 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3081 read_frame_local.
3082 * stack.c (read_frame_local): New.
3083
3084 2013-08-08 Yao Qi <yao@codesourcery.com>
3085
3086 * mi/mi-cmd-stack.c: Update comments to function
3087 list_args_or_locals.
3088
3089 2013-08-07 Tom Tromey <tromey@redhat.com>
3090
3091 PR symtab/15028:
3092 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3093 (process_psymtab_comp_unit_reader): Use it.
3094 (process_psymtab_comp_unit): Update. Add "pretend_language"
3095 argument.
3096 (dwarf2_build_psymtabs_hard): Update.
3097 (scan_partial_symbols): Pass CU's language to
3098 process_psymtab_comp_unit.
3099
3100 2013-08-07 Tom Tromey <tromey@redhat.com>
3101
3102 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3103 (dwarf2_gdb_index_functions): Update.
3104 * psymtab.c (find_symbol_file_from_partial): Remove.
3105 (psym_functions): Update.
3106 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3107 Remove.
3108
3109 2013-08-07 Tom Tromey <tromey@redhat.com>
3110
3111 * symfile.c (set_initial_language): Look up "main" symbol
3112 and use its language.
3113 * symtab.c (find_main_filename): Remove.
3114 * symtab.h (find_main_filename): Remove.
3115
3116 2013-08-07 Tom Tromey <tromey@redhat.com>
3117
3118 * dwarf2read.c (recursively_compute_inclusions): Add
3119 "immediate_parent" argument. Set symtab's "user" field
3120 if not set.
3121 (compute_symtab_includes): Update.
3122
3123 2013-08-07 Tom Tromey <tromey@redhat.com>
3124
3125 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3126 when adding label symbols.
3127
3128 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3129 Ulrich Weigand <uweigand@de.ibm.com>
3130
3131 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3132 * configure.host (powerpc64-*-aix*): Likewise.
3133
3134 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3135 Ulrich Weigand <uweigand@de.ibm.com>
3136
3137 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3138 is defined.
3139 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3140 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3141 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3142 * configure.ac: Check for ptrace64.
3143 * configure, config.in: Regenerate.
3144
3145 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3146 Ulrich Weigand <uweigand@de.ibm.com>
3147
3148 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3149 Call ptrace64 instead of ptrace if defined.
3150 Add macro addr_ptr to take care of ptrace address argument.
3151 (pdc_read_regs): Likewise.
3152 (pdc_write_regs): Likewise.
3153 (aix_thread_resume): Likewise.
3154 (fetch_regs_kernel_thread): Likewise.
3155 (store_regs_kernel_thread): Likewise.
3156
3157 2013-08-07 Anton Blanchard <anton@samba.org>
3158
3159 * MAINTAINERS: Add myself to Write After Approval.
3160
3161 2013-08-05 Tom Tromey <tromey@redhat.com>
3162
3163 * aix-thread.c (_initialize_aix_thread): Use
3164 complete_target_initialization.
3165 * bsd-uthread.c (_initialize_bsd_uthread): Use
3166 complete_target_initialization.
3167 * dec-thread.c (_initialize_dec_thread): Use
3168 complete_target_initialization.
3169 * ravenscar-thread.c (_initialize_ravenscar): Use
3170 complete_target_initialization.
3171 * sol-thread.c (_initialize_sol_thread): Use
3172 complete_target_initialization.
3173 * spu-multiarch.c (_initialize_spu_multiarch): Use
3174 complete_target_initialization.
3175
3176 2013-08-05 Tom Tromey <tromey@redhat.com>
3177
3178 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3179 * ada-lang.c (ada_lookup_simple_minsym): Return
3180 bound_minimal_symbol.
3181 * ada-lang.h (ada_lookup_simple_minsym): Update.
3182 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3183 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3184 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3185 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3186 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3187 * minsyms.c (msymbol_objfile): Remove.
3188 (lookup_minimal_symbol_internal): New function, from
3189 lookup_minimal_symbol.
3190 (lookup_minimal_symbol): Rewrite using
3191 lookup_minimal_symbol_internal.
3192 (lookup_bound_minimal_symbol): New function.
3193 * minsyms.h (msymbol_objfile): Remove.
3194 (lookup_bound_minimal_symbol): Declare.
3195 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3196 * parse.c (write_exp_msymbol): Change parameter to a
3197 bound_minimal_symbol.
3198 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3199 * parser-defs.h (write_exp_msymbol): Update.
3200 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3201 * symfile.c (simple_read_overlay_table): Use
3202 lookup_bound_minimal_symbol.
3203 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3204 (search_symbols): Likewise.
3205 (print_msymbol_info): Take a bound_minimal_symbol argument.
3206 (symtab_symbol_info, rbreak_command): Update.
3207 * symtab.h (struct symbol_search) <msymbol>: Change type
3208 to bound_minimal_symbol.
3209 * valops.c (find_function_in_inferior): Use
3210 lookup_bound_minimal_symbol.
3211 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3212
3213 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3214
3215 Code cleanup.
3216 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3217 to ...
3218 (async_cleanup_sigint_signal_handler): ... this.
3219 (initialize_sigint_signal_handler): Remove declaration.
3220 (handle_remote_sigint): Rename the declaration to ...
3221 (async_handle_remote_sigint): ... this.
3222 (handle_remote_sigint_twice): Rename the declaration to ...
3223 (async_handle_remote_sigint_twice): ... this.
3224 (async_remote_interrupt, async_remote_interrupt_twice)
3225 (remote_interrupt): Remove the declarations.
3226 (remote_interrupt_twice): Rename the declaration ...
3227 (sync_remote_interrupt_twice): ... this.
3228 (sigint_remote_twice_token): Rename the variable to ...
3229 (async_sigint_remote_twice_token): ... this.
3230 (sigint_remote_token): Rename the variable to ...
3231 (async_sigint_remote_token): ... this.
3232 (initialize_sigint_signal_handler): Rename the function to ...
3233 (async_initialize_sigint_signal_handler): ... this. Update the name
3234 inside.
3235 (handle_remote_sigint): Rename the function to ...
3236 (async_handle_remote_sigint): ... this. Update the names inside.
3237 (handle_remote_sigint_twice): Rename the function to ...
3238 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3239 (cleanup_sigint_signal_handler): Rename the function to ...
3240 (async_cleanup_sigint_signal_handler): ... this.
3241 (remote_interrupt): Rename the function to ...
3242 (sync_remote_interrupt): this. Update the names inside.
3243 (remote_interrupt_twice): Rename the function to ...
3244 (sync_remote_interrupt_twice): this. Update the names inside.
3245 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3246 (_initialize_remote): Update the names inside.
3247
3248 2013-08-02 Tom Tromey <tromey@redhat.com>
3249
3250 PR symtab/15719:
3251 * breakpoint.c (update_watchpoint, watchpoint_check)
3252 (watch_command_1): Update.
3253 * eval.c (fetch_subexp_value): Add "preserve_errors"
3254 parameter.
3255 * ppc-linux-nat.c (check_condition): Update.
3256 * value.h (fetch_subexp_value): Update.
3257
3258 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3259
3260 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3261 add_file_handler.
3262
3263 2013-08-01 Doug Evans <dje@google.com>
3264
3265 PR symtab/15691
3266 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3267 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3268 Add assert of sig_entry->dwo_unit == NULL.
3269 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3270 had already been read.
3271 (read_signatured_type): Set per_cu.tu_read.
3272
3273 PR symtab/15695
3274 * valops.c (value_struct_elt): Add missing call to check_typedef.
3275 (value_find_oload_method_list): Ditto.
3276
3277 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3278 effectively, struct symbol_search **.
3279 (make_cleanup_free_search_symbols): Change arg to struct
3280 symbol_search **. All callers updated.
3281 (compare_search_syms): Compare symtab file name and block as well.
3282 (search_symbols_equal): New function.
3283 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3284 New args new_head, new_tail. Result is now void. Remove dups after
3285 sorting the symbols.
3286 (search_symbols): Sort all found symbols once, after all have been
3287 found, and remove duplicates. Simplify cleanup tracking of result.
3288 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3289
3290 Further workarounds for binutils/15021.
3291 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3292 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3293 Watch for duplicate symtabs coming from type units.
3294 (compute_symtab_includes): Update call to
3295 recursively_compute_inclusions. Build vector of included symtabs
3296 instead of per_cus.
3297 * symtab.h (symtab_ptr): New typedef.
3298 (DEF_VEC_P (symtab_ptr)): New VEC type.
3299 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3300 instead.
3301
3302 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3303
3304 * cli/cli-script.c (script_from_file): Remove use of
3305 error_pre_print.
3306 * main.c (captured_main): Remove use of error_pre_print and
3307 quit_pre_print.
3308 * utils.c (error_pre_print, quit_pre_print): Remove.
3309 * utils.h (error_pre_print, quit_pre_print): Likewise.
3310
3311 2013-08-01 Yao Qi <yao@codesourcery.com>
3312
3313 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3314 with mi_getopt.
3315 (mi_cmd_stack_list_variables): Likewise.
3316
3317 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3318
3319 * exceptions.c (deprecated_throw_reason): Remove.
3320 * exceptions.h (deprecated_throw_reason): Remove.
3321
3322 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3323
3324 * remote-mips.c (mips_error): Replace use of
3325 deprecated_throw_reason with throw_verror. Use the error message
3326 passed to mips_error as the error message for throw_verror.
3327
3328 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3329
3330 * monitor.c (monitor_interrupt_query): Replace use of
3331 deprecated_throw_reason with quit.
3332 * nto-procfs.c (interrupt_query): Likewise.
3333 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3334 * remote-mips.c (mips_kill): Likewise.
3335 * remote.c (interrupt_query): Likewise.
3336
3337 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3338
3339 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3340 with call to fatal.
3341
3342 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3343 Yao Qi <yao@codesourcery.com>
3344
3345 * tracepoint.c (trace_dump_command): Select the current frame.
3346
3347 2013-07-30 Doug Evans <dje@google.com>
3348
3349 * dwarf2read.c (process_queue): Add type signature to debug output.
3350
3351 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3352
3353 * value.c (value_fetch_lazy): Mark optimized out values as such
3354 rather than raising an error.
3355
3356 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3357
3358 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3359 before checking which bits of the parent, not the child, value are
3360 valid.
3361
3362 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3363
3364 PR gdb/15715
3365 * top.c: Include "filenames.h".
3366 (set_history_filename): New function.
3367 (init_main): Install it as set hook of the "set history filename"
3368 command.
3369
3370 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3371
3372 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3373 attribute parameter.
3374 (dwarf2_const_value_data): Constify struct attribute parameter.
3375 (dwarf2_const_value): Constify struct attribute parameter.
3376 (dwarf2_const_value_attr): Constify struct attribute parameter.
3377 (lookup_die_type): Constify struct attribute parameter.
3378 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3379 (follow_die_ref_or_sig): Constify struct attribute parameter.
3380 (follow_die_ref): Constify struct attribute parameter.
3381 (follow_die_sig): Constify struct attribute parameter.
3382 (get_DW_AT_signature_type): Constify struct attribute parameter.
3383 (get_type_unit_group): Constify struct attribute parameter.
3384 (fill_in_loclist_baton): Constify struct attribute parameter.
3385 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3386 (type_unit_group): Constify struct attribute parameter.
3387
3388 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3389
3390 * dwarf2read.c (attr_form_is_block): Make argument const.
3391 (attr_form_is_section_offset): Make argument const.
3392 (attr_form_is_constant): Make argument const.
3393 (attr_form_is_ref): Make argument const.
3394
3395 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3396
3397 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3398 All uses updated.
3399 (attr_form_is_ref): Moved below attr_form_is_constant.
3400
3401 2013-07-29 Doug Evans <dje@google.com>
3402
3403 * main.c (captured_command_loop): Tweak comment.
3404
3405 * target.c (target_async_permitted_1): Fix comment.
3406
3407 * symtab.c (iterate_over_some_symtabs): Add comment.
3408
3409 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3410
3411 2013-07-27 Yao Qi <yao@codesourcery.com>
3412
3413 * NEWS: Mention that GDBserver now supports hardware
3414 watchpoints on the MIPS GNU/Linux target.
3415
3416 2013-07-27 Yao Qi <yao@codesourcery.com>
3417
3418 * Makefile.in (HFILES_NO_SRCDIR): Add
3419 common/mips-linux-watch.h.
3420 (mips-linux-watch.o): New rule.
3421 * common/mips-linux-watch.c: New.
3422 * common/mips-linux-watch.h: New.
3423 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3424 * mips-linux-nat.c: Include mips-linux-watch.h.
3425 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3426 to common/mips-linux-watch.h.
3427 (MAX_DEBUG_REGISTER): Likewise.
3428 (enum pt_watch_style): Likewise.
3429 (struct mips32_watch_regs): Likewise.
3430 (struct mips64_watch_regs): Likewise.
3431 (struct pt_watch_regs): Likewise.
3432 (struct mips_watchpoint): Likewise.
3433 (mips_linux_watch_get_irw_mask): Move to
3434 common/mips-linux-watch.c.
3435 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3436 (mips_linux_watch_get_watchlo): Likewise.
3437 (mips_linux_watch_set_watchlo): Likewise.
3438 (mips_linux_watch_get_watchhi): Likewise.
3439 (mips_linux_watch_set_watchhi): Likewise.
3440 (mips_linux_read_watch_registers): Likewise.
3441 (mips_linux_watch_type_to_irw): Likewise.
3442 (mips_linux_stopped_data_address, fill_mask): Likewise.
3443 (mips_linux_watch_try_one_watch): Likewise.
3444 (mips_linux_watch_populate_regs): Likewise.
3445
3446 2013-07-27 Yao Qi <yao@codesourcery.com>
3447
3448 * mips-linux-nat.c (get_irw_mask): Rename to ...
3449 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3450 'set' to 'n'. Update function comment. All callers changed.
3451 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3452 function comment. All callers changed.
3453 (get_num_valid): Rename to ...
3454 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3455 'set' to 'n'. Update function comment. All callers changed.
3456 (get_watchlo): Rename to ...
3457 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3458 'set' to 'n'. Update function comment. All callers changed.
3459 (set_watchlo): Rename to ...
3460 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3461 'set' to 'n'. Update function comment. All callers changed.
3462 (get_watchhi): Rename to ...
3463 (mips_linux_watch_get_watchhi): ... this. Update function
3464 comment. All callers changed.
3465 (set_watchhi): Rename to ...
3466 (mips_linux_watch_set_watchhi): ... this. Update function
3467 comment. All callers changed.
3468 (mips_linux_read_watch_registers): Update function comment.
3469 Add new parameters 'lwpid', 'watch_readback', and
3470 'watch_readback_valid'. Update.
3471 (type_to_irw): Rename to ...
3472 (mips_linux_watch_type_to_irw): ... this. Update function
3473 comment. All callers changed.
3474 (fill_mask): Update function comment.
3475 (try_one_watch): Rename to ...
3476 (mips_linux_watch_try_one_watch): ... this. Change the type
3477 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3478 (populate_regs_from_watches): Rename to ...
3479 (mips_linux_watch_populate_regs): ... this. Add parameter
3480 'current_watches'. All callers changed.
3481
3482 2013-07-27 Yao Qi <yao@codesourcery.com>
3483
3484 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3485 the code.
3486 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3487 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3488 (struct pt_watch_regs): Likewise.
3489 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3490 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3491 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3492 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3493 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3494
3495 2013-07-27 Yao Qi <yao@codesourcery.com>
3496
3497 * breakpoint.h: Include break-common.h.
3498 (enum target_hw_bp_type): Move to ...
3499 * common/break-common.h: ... here. New.
3500
3501 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3502
3503 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3504 process group regardless of having tty on stdin.
3505
3506 2013-07-25 Doug Evans <dje@google.com>
3507
3508 * linux-fork.h (detach_fork): Delete.
3509
3510 2013-07-25 Tom Tromey <tromey@redhat.com>
3511
3512 PR remote/15256, PR remote/15266:
3513 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3514 * monitor.c (monitor_detach): Use unpush_target.
3515 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3516 * remote-mips.c (mips_detach): Use unpush_target. Don't
3517 call mips_close.
3518 * remote-sim.c (gdbsim_detach): Use unpush_target.
3519 * target.c (pop_target): Remove.
3520 (pop_all_targets_above): Don't call target_close.
3521 (target_close): Assert that the target is unpushed.
3522 * target.h (pop_target): Don't declare.
3523 * tracepoint.c (tfile_open): Use unpush_target.
3524
3525 2013-07-25 Tom Tromey <tromey@redhat.com>
3526
3527 * linux-thread-db.c (init_thread_db_ops): Call
3528 complete_target_initialization.
3529 (_initialize_thread_db): Don't call add_target.
3530 * target.c (complete_target_initialization): New function.
3531 (add_target_with_completer): Call it.
3532 * target.h (complete_target_initialization): Declare.
3533
3534 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3535
3536 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3537 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3538 (HPPANBSD_SIZEOF_GREGS): New define.
3539 (hppaobsd_supply_gregset): Handle additional registers.
3540 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3541 we provide more registers now.
3542 (hppabsd_supply_gregset): Supply additional registers.
3543 (hppabsd_collect_gregset): Collect additional registers.
3544
3545 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3546
3547 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3548 (hppabsd_dwarf2_frame_init_reg): New function.
3549 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3550
3551 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3552
3553 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3554 'z' format code. Remove error for optimized out values, standard
3555 code will handle these fine.
3556
3557 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3558
3559 * NEWS: Mention new 'z' formatter.
3560 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3561 (_initialize_printcmd): Mention 'z' formatter in help text of the
3562 'x' command.
3563
3564 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3565
3566 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3567 formatting.
3568
3569 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3570
3571 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3572 interface can evaluate arguments. Fallback to the old mode if it
3573 cannot.
3574 (create_exception_master_breakpoint): Likewise.
3575 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3576 (struct sym_probe_fns elf_probe_fns): Export function above to the
3577 probe interface.
3578 * probe.c (can_evaluate_probe_arguments): New function.
3579 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3580 function pointer.
3581 (can_evaluate_probe_arguments): New function prototype.
3582 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3583 probe interface can evaluate arguments. Fallback to the old mode
3584 if it cannot.
3585 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3586 interface can evaluate arguments. Warning the user if it cannot.
3587 (stap_can_evaluate_probe_arguments): New function.
3588 (struct probe_ops stap_probe_ops): Export function above to the
3589 probe interface.
3590 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3591 New function pointer.
3592
3593 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3594
3595 * Makefile.in (SFILES): Add common/target-common.c.
3596 Add common/target-common.h to headers.
3597 (COMMON_OBS): Add target-common.o.
3598 (target-common.o): New target.
3599 * linux-nat.h (resume_kind): Move to common/target-common.h.
3600 * target.c (target_waitstatus_to_string): Move to
3601 common/target-common.c.
3602 * target.h: Include target-common.h.
3603 (target_waitkind): Move to common/target-common.h.
3604 (target_waitstatus): Likewise.
3605 (TARGET_WNOHANG): Likewise.
3606 * common/target-common.c: New file.
3607 * common/target-common.h: New file.
3608
3609 2013-07-24 Doug Evans <dje@google.com>
3610
3611 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3612 a warning.
3613
3614 2013-07-23 Yao Qi <yao@codesourcery.com>
3615
3616 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3617 parameter 'gdbarch'.
3618 (i386_stack_tramp_frame_sniffer): Caller update.
3619 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3620 parameter 'gdbarch' and 'target'.
3621 (i386_linux_core_read_description): Caller update.
3622 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3623 Likewise.
3624 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3625 declaration.
3626
3627 2013-07-23 Tom Tromey <tromey@redhat.com>
3628
3629 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3630 2013-07-22.
3631
3632 2013-07-22 Doug Evans <dje@google.com>
3633
3634 * exec.h (remove_target_sections): Delete arg abfd.
3635 * exec.c (exec_close): Update call to remove_target_sections.
3636 (remove_target_sections): Delete arg abfd.
3637 * solib.c (update_solib_list): Ditto.
3638 (reload_shared_libraries_1): Ditto.
3639 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3640 * target.h (struct target_section): Rename key to owner.
3641 All uses updated.
3642
3643 2013-07-22 Tom Tromey <tromey@redhat.com>
3644
3645 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3646
3647 2013-07-22 Tom Tromey <tromey@redhat.com>
3648
3649 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3650 Simplify cleanup handling.
3651
3652 2013-07-22 Tom Tromey <tromey@redhat.com>
3653
3654 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3655 on all return paths.
3656
3657 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3658
3659 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3660 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3661 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3662
3663 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3664
3665 * top.c (print_gdb_version): Add help, apropos description and
3666 url to online documentation.
3667
3668 2013-07-19 Hui Zhu <hui@codesourcery.com>
3669
3670 PR gdb/15692
3671 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3672
3673 2013-07-19 Yao Qi <yao@codesourcery.com>
3674
3675 * target.c (update_current_target): Change the default action
3676 of 'to_traceframe_info' from tcomplain to return_zero.
3677 * target.h (struct target_ops) <to_traceframe_info>: Add more
3678 comments.
3679 * valops.c (read_value_memory): Call
3680 traceframe_available_memory unconditionally.
3681
3682 2013-07-18 Yao Qi <yao@codesourcery.com>
3683
3684 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3685 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3686 symbol without prefix. If found, set its type to
3687 'mst_solib_trampoline'.
3688
3689 2013-07-17 Doug Evans <dje@google.com>
3690
3691 * NEWS: Mention "set print raw frame-arguments".
3692 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3693 * stack.c (print_raw_frame_arguments): New static global.
3694 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3695 (_initialize_stack): New command "set/show print raw frame-arguments".
3696 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3697 (set_print_raw, show_print_raw): New functions.
3698 (_initialize_valprint): New prefix command "set/show print raw".
3699 * valprint.h (value_print_options): Improve comments.
3700
3701 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3702 of all *list variables.
3703
3704 * gdbcmd.h (togglelist): Delete.
3705 * cli/cli-cmds.c (togglelist): Delete.
3706 (init_cmd_lists): Update.
3707 * cli/cli-cmds.h (togglelist): Delete.
3708
3709 2013-07-17 Tom Tromey <tromey@redhat.com>
3710
3711 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3712 dwarf2_per_objfile.
3713
3714 2013-07-16 Doug Evans <dje@google.com>
3715
3716 * nto-tdep.c (nto_relocate_section_addresses): Update,
3717 target_section.bfd deleted.
3718 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3719 * s390-tdep.c (s390_load): Ditto.
3720 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3721
3722 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3723
3724 * common/format.c (parse_format_string): Add checks for NULL
3725 character before calling strchr.
3726
3727 2013-07-16 Doug Evans <dje@google.com>
3728
3729 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3730 temp_pathname argument.
3731 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3732 when opening the file fails.
3733
3734 * target.h (struct target_section): Delete member bfd.
3735 All users updated to use the_bfd_section->owner instead.
3736 * exec.c (add_to_section_table): Assert bfd is expected value.
3737 Remove initialization of target_section.bfd.
3738 (remove_target_sections): Update.
3739 (section_table_available_memory): Update.
3740 (section_table_xfer_memory_partial): Update.
3741 (print_section_info): Update.
3742 (exec_set_section_address): Update.
3743 * record-full.c (record_full_core_xfer_partial): Update.
3744 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3745 * solib-target.c (solib_target_relocate_section_addresses): Update.
3746 * symfile.c (build_section_addr_info_from_section_table): Update.
3747 * target.c (memory_xfer_live_readonly_partial): Update.
3748 (memory_xfer_partial_1): Update.
3749
3750 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3751
3752 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3753 now available for embedded (BookE) and server (BookS) processors,
3754 correct mentions of 'booke' and adjust comments accordingly in order to
3755 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3756 (have_ptrace_booke_interface): Rename function and variable
3757 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3758 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3759 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3760 'hwdebug_point_cmp'. Update all uses.
3761 (booke_find_thread_points_by_tid): Rename function
3762 'booke_find_thread_points_by_tid' to
3763 'hwdebug_find_thread_points_by_tid'. Update all uses.
3764 (booke_insert_point): Rename function 'booke_insert_point' to
3765 'hwdebug_insert_point'. Update all uses.
3766 (booke_remove_point): Rename function 'booke_remove_point' to
3767 'hwdebug_remove_point'. Update all uses.
3768
3769 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3770
3771 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3772 numbers with enum values.
3773
3774 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3775
3776 PR threads/13217
3777 * thread.c (thread_apply_all_command): Check for valid threads
3778 and thread count.
3779 (thread_array_cleanup): New struct.
3780 (set_thread_refcount): New function.
3781
3782 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3783
3784 * infcmd.c (default_print_one_register_info): Reuse function
3785 print_hex_chars.
3786
3787 2013-07-10 Tom Tromey <tromey@redhat.com>
3788
3789 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3790 (ada-exp.o): New target.
3791
3792 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3793
3794 * mt-tdep.c (mt_registers_info): Call
3795 get_no_prettyformat_print_options instead of
3796 get_raw_print_options (regression by last patch from Doug
3797 Evans).
3798
3799 2013-07-09 Pedro Alves <palves@redhat.com>
3800
3801 Checked in by Joel Brobecker <brobecker@adacore.com>.
3802 * ada-lang.c (coerce_unspec_val_to_type): Use
3803 value_optimized_out_const.
3804 * value.c (value_optimized_out_const): New function.
3805 * value.h (value_optimized_out_const): New declaration.
3806
3807 2013-07-09 Doug Evans <dje@google.com>
3808
3809 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3810 Enum values rename as well. All uses updated.
3811 * valprint.h (value_print_options): Rename member pretty to
3812 pretty format. Rename member prettyprint_arrays to
3813 prettyformat_arrays. Rename member prettyprint_structs to
3814 prettyformat_structs. All uses updated.
3815 (get_no_prettyformat_print_options): Renamed from
3816 get_raw_print_options.
3817 * valprint.c (get_no_prettyformat_print_options): Renamed from
3818 get_raw_print_options. All callers updated.
3819 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3820 All callers updated.
3821 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3822 All callers updated.
3823 (_initialize_valprint): Improve help text for "set print pretty" and
3824 "set print arrays".
3825
3826 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3827
3828 * value.c (value_bits_valid): Revert previous change, and change
3829 by Pedro on 2013-07-04, due to regressions in
3830 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3831
3832 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3833 Pedro Alves <palves@redhat.com>
3834
3835 * value.c (value_bits_valid): If the value is not lval_computed
3836 or has no check validity handler then the answer is the
3837 optimized_out flag, otherwise defer to the handler.
3838
3839 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3840
3841 * top.c (print_gdb_configuration): Explain in output of
3842 --configuration what does "relocatable" mean.
3843
3844 * main.c (print_gdb_help): Regroup options in the --help text.
3845 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3846 the relevant discussions.
3847
3848 2013-07-06 Yao Qi <yao@codesourcery.com>
3849
3850 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3851 Remove parameter 'lsal'.
3852 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3853 to inner block. Caller update.
3854 (base_breakpoint_create_breakpoints_sal): Update.
3855 (bkpt_create_breakpoints_sal): Likewise.
3856 (tracepoint_create_breakpoints_sal): Likewise.
3857 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3858 element 0 of vector 'canonical->sals'.
3859
3860 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3861
3862 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3863 register number instead of the pseudo register one.
3864 (rs6000_dwarf2_reg_to_regnum): Likewise.
3865
3866 2013-07-04 Pedro Alves <palves@redhat.com>
3867
3868 * findvar.c (value_of_register): Use allocate_optimized_out_value
3869 if the register has been optimized out, instead of
3870 set_value_optimized_out.
3871 * frame-unwind.c (frame_unwind_got_optimized): Use
3872 allocate_optimized_out_value.
3873
3874 2013-07-04 Pedro Alves <palves@redhat.com>
3875
3876 * value.c (value_bits_valid): If the value is not lval_computed,
3877 or doesn't have a check_validity hook, assume the value is entirely
3878 valid.
3879
3880 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3881
3882 * stack.c (read_frame_arg): No longer fetch lazy values.
3883 * value.c (value_optimized_out): If the value is not already
3884 marked optimized out, and is lazy then fetch it.
3885 (value_primitive_field): Move optimized out check to later in the
3886 function, after we have loaded any lazy values.
3887 (value_fetch_lazy): Use optimized out flag directly rather than
3888 calling optimized_out method.
3889
3890 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3891
3892 * valops.c: Don't include "user-regs.h".
3893 (value_fetch_lazy): Moved to value.c.
3894 * value.c: Include "user-regs.h".
3895 (value_fetch_lazy): Moved from valops.c.
3896
3897 2013-07-04 Yao Qi <yao@codesourcery.com>
3898
3899 Revert:
3900 2013-06-27 Yao Qi <yao@codesourcery.com>
3901
3902 * common/create-version.sh: Update comments. Handle the case
3903 that TARGET_ALIAS is empty.
3904
3905 2013-07-03 Pedro Alves <palves@redhat.com>
3906
3907 * Makefile.in (config.status): Depend on development.sh.
3908 (aclocal_m4_deps): Add libmcheck.m4.
3909 * acinclude.m4: Include libmcheck.m4.
3910 * configure.ac: Source development.sh instead of setting
3911 'development' here. --enable-libmcheck/--disable-libmcheck code
3912 factored out to GDB_AC_LIBMCHECK. Run it.
3913 * development.sh: New file.
3914 * libmcheck.m4: New file.
3915 * configure: Regenerate.
3916
3917 2013-07-02 Tom Tromey <tromey@redhat.com>
3918
3919 * contrib/ari/update-web-ari.sh: Update for version.in change.
3920
3921 2013-07-02 Tom Tromey <tromey@redhat.com>
3922
3923 * common/ptid.h: Comment fixes.
3924
3925 2013-07-01 Tom Tromey <tromey@redhat.com>
3926
3927 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3928 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3929 (dwarf2_read_index, create_all_comp_units): Update.
3930
3931 2013-07-01 Tom Tromey <tromey@redhat.com>
3932
3933 * configure.ac (build_warnings): Add -Wold-style-definition.
3934 * configure: Rebuild.
3935 * machoread.c (_initialize_machoread): Use "(void)".
3936 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3937 use "(void)".
3938
3939 2013-07-01 Tom Tromey <tromey@redhat.com>
3940
3941 * configure.ac (build_warnings): Add -Wold-style-declaration.
3942 * configure: Rebuild.
3943 * dsrec.c (make_srec): Use "static const", not "const static".
3944 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3945 not "const static".
3946 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3947 Use "static const", not "const static".
3948 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3949 not "const static".
3950 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3951 not "const static".
3952 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3953 not "const static".
3954 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3955 not "const static".
3956 (v850_dbtrap_breakpoint_from_pc): Likewise.
3957 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3958 not "const static".
3959
3960 2013-07-01 Tom Tromey <tromey@redhat.com>
3961
3962 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3963 * configure: Rebuild.
3964
3965 2013-07-01 Pedro Alves <palves@redhat.com>
3966
3967 * defs.h: Include "pathmax.h".
3968 * utils.c: Don't include sys/param.h.
3969 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3970 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3971 instead of MAXPATHLEN.
3972 * solib-sunos.c: Don't include sys/param.h.
3973 * xcoffread.c: Don't include sys/param.h.
3974 * bsd-kvm.c: Don't include sys/param.h.
3975 * darwin-nat.c: Don't include sys/param.h.
3976 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3977 * darwin-nat-info.c: Don't include sys/param.h.
3978 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3979 MAXPATHLEN.
3980 * i386obsd-nat.c: Don't include sys/param.h.
3981 * inf-child.c: Don't include sys/param.h.
3982 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3983 * linux-fork.c: Don't include sys/param.h.
3984 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3985 * linux-nat.c: Don't include sys/param.h.
3986 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3987 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3988 * m68klinux-nat.c: Don't include sys/param.h.
3989 * nbsd-nat.c: Don't include sys/param.h.
3990 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3991 * ppc-linux-nat.c: Don't include sys/param.h.
3992 * rs6000-nat.c: Don't include sys/param.h.
3993 * spu-linux-nat.c. Don't include sys/param.h.
3994 * windows-nat.c: Don't include sys/param.h.
3995 * xtensa-linux-nat.c: Don't include sys/param.h.
3996 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3997
3998 2013-07-01 Pedro Alves <palves@redhat.com>
3999
4000 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4001 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4002 * gnulib/aclocal.m4: Regenerate.
4003 * gnulib/config.in: Regenerate.
4004 * gnulib/configure: Regenerate.
4005 * gnulib/import/pathmax.h: New file.
4006 * gnulib/import/Makefile.am: Regenerate.
4007 * gnulib/import/Makefile.in: Regenerate.
4008 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4009 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4010 * gnulib/import/m4/pathmax.m4: New file.
4011
4012 2013-07-01 Pedro Alves <palves@redhat.com>
4013
4014 * configure.ac (GDBINIT): Define, depending on host.
4015 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4016 * top.c (PATH_MAX): Delete fallback definition.
4017 (GDBINIT_FILENAME): Delete.
4018 (gdbinit): Reimplement as const char array set to the GDBINIT
4019 string constant.
4020 * top.h (gdbinit): Make const.
4021 * configure, config.in: Regenerate.
4022
4023 2013-07-01 Pedro Alves <palves@redhat.com>
4024
4025 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4026 * cli/cli-cmds.h (source_script): Likewise.
4027 * exceptions.c (catch_command_errors_const): New function.
4028 * exceptions.h (catch_command_errors_const): Declare.
4029 * main.c (get_init_files): Make parameters const, and adjust.
4030 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4031 'local_gdbinit' locals const. Adjust to use
4032 catch_command_errors_const.
4033 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4034 'local_gdbinit' locals const.
4035
4036 2013-07-01 Pedro Alves <palves@redhat.com>
4037
4038 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4039 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4040 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4041 <unistd.h>.
4042
4043 2013-07-01 Pedro Alves <palves@redhat.com>
4044
4045 Import the "unistd" gnulib module.
4046 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4047 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4048 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4049 import/m4/unistd_h.m4.
4050 * gnulib/aclocal.m4: Renenerate.
4051 * gnulib/config.in: Renenerate.
4052 * gnulib/configure: Renenerate.
4053 * gnulib/import/Makefile.am: Renenerate.
4054 * gnulib/import/Makefile.in: Renenerate.
4055 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4056 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4057 * gnulib/import/m4/off_t.m4: New file.
4058 * gnulib/import/m4/ssize_t.m4: New file.
4059 * gnulib/import/m4/sys_types_h.m4: New file.
4060 * gnulib/import/m4/unistd_h.m4: New file.
4061 * gnulib/import/sys_types.in.h: New file.
4062 * gnulib/import/unistd.c: New file.
4063 * gnulib/import/unistd.in.h: New file.
4064
4065 2013-07-01 Pedro Alves <palves@redhat.com>
4066
4067 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4068 defined instead of checking HAVE_UNISTD_H.
4069
4070 2013-07-01 Pedro Alves <palves@redhat.com>
4071
4072 Reimport gnulib from scratch.
4073 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4074 import/m4/onceonly.m4.
4075 * gnulib/aclocal.m4: Renegerate.
4076 * gnulib/config.in: Renegerate.
4077 * gnulib/configure: Renegerate.
4078 * gnulib/import/Makefile.in: Renegerate.
4079 * gnulib/import/extra/update-copyright: Renegerate.
4080 * gnulib/import/m4/onceonly.m4: Delete.
4081
4082 2013-07-01 Pedro Alves <palves@redhat.com>
4083
4084 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4085
4086 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4087
4088 Code cleanup.
4089 * remote.c (async_remote_interrupt_twice): Make it static.
4090 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4091
4092 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4093
4094 * ia64-linux-tdep.c: Include <ctype.h>.
4095 (ia64_linux_stap_is_single_operand): New function.
4096 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4097
4098 2013-06-28 Tom Tromey <tromey@redhat.com>
4099
4100 * Makefile.in (version.c): Use version.in, not
4101 common/version.in.
4102 * common/create-version.sh: Likewise.
4103 * common/version.in: Move...
4104 * version.in: ...here.
4105
4106 2013-06-28 Pedro Alves <palves@redhat.com>
4107
4108 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4109 here.
4110 * utils.h (pagination_enabled): Declare.
4111
4112 2013-06-28 Pedro Alves <palves@redhat.com>
4113
4114 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4115 Move higher up in file.
4116
4117 2013-06-28 Tom Tromey <tromey@redhat.com>
4118
4119 * tracepoint.c (deprecated_readline_begin_hook)
4120 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4121 declare.
4122
4123 2013-06-28 Pedro Alves <palves@redhat.com>
4124
4125 PR tui/14880
4126 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4127 checking if they're available.
4128 * value.c (value_available_contents_eq): Change comment.
4129 * value.h (value_available_contents_eq): Expand comment.
4130
4131 2013-06-27 Tom Tromey <tromey@redhat.com>
4132
4133 * target.c (find_run_target): Remove.
4134 * target.h (find_run_target): Remove.
4135
4136 2013-06-27 Tom Tromey <tromey@redhat.com>
4137
4138 * corelow.c (core_gdbarch): Now static.
4139
4140 2013-06-27 Tom Tromey <tromey@redhat.com>
4141
4142 * target.c (target_struct_index): Remove.
4143
4144 2013-06-27 Pedro Alves <palves@redhat.com>
4145
4146 * infrun.c: Remove comment describing the 'stepping over runtime
4147 loader dynamic symbol resolution code' mechanism; moved to
4148 gdbint.texinfo.
4149
4150 2013-06-27 Pedro Alves <palves@redhat.com>
4151
4152 * exceptions.c (catch_command_errors): Remove spurious space.
4153 * exceptions.h (catch_command_errors): Second parameter is "arg",
4154 not "command".
4155
4156 2013-06-27 Yao Qi <yao@codesourcery.com>
4157
4158 * common/create-version.sh: Update comments. Handle the case
4159 that TARGET_ALIAS is empty.
4160
4161 2013-06-26 Pedro Alves <palves@redhat.com>
4162
4163 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4164 comment.
4165
4166 2013-06-26 Pedro Alves <palves@redhat.com>
4167
4168 * infrun.c: Update comments on stepping over runtime loader
4169 dynamic symbol resolution code.
4170
4171 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4172
4173 * ax-gdb.h (union exp_element): Forward declare.
4174 * parser-defs.h: Include expression.h.
4175
4176 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4177
4178 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4179
4180 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4181
4182 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4183
4184 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4185
4186 Fix trace-status to output proper start-time and stop-time.
4187 * tracepoint.c (trace_status_command): Fix type of printf arg to
4188 prevent improper type conversion.
4189 (trace_status_mi): Likewise.
4190
4191 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4192
4193 * mips-tdep.c (mips_next_pc): Fix a typo.
4194
4195 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4196
4197 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4198
4199 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4200 Yao Qi <yao@codesourcery.com>
4201
4202 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4203 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4204 * mi/mi-main.c (print_variable_or_computed): New function.
4205 (mi_cmd_trace_frame_collected): New function.
4206 * tracepoint.c (find_trace_state_variable_by_number): New.
4207 (struct traceframe_info): Move to tracepoint.h
4208 (struct collection_list): Likewise.
4209 (do_collect_symbol): Include locals and arguments in the
4210 collected variables list.
4211 (clear_collection_list): Clear wholly collected variables list
4212 and computed variables list.
4213 (append_exp): New function.
4214 (encode_actions_1): Include variables in the wholly
4215 collected variables list. Include memory ranges and
4216 full-fledged expressions in the computed expressions list.
4217 (encode_actions): Move some code to ...
4218 Return the cleanup chain.
4219 (encode_actions_rsp): ... here. New function.
4220 (get_traceframe_location, get_traceframe_info): Remove static.
4221 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4222 (struct collection_list): Moved from tracepoint.c. Add two
4223 new fields 'wholly_collected' and 'computed'.
4224 (find_trace_state_variable_by_number): Declare.
4225 (encode_actions): Adjust declaration.
4226 (encode_actions_rsp): Declare.
4227 (get_traceframe_info, get_traceframe_location): Declare.
4228
4229 * NEWS: Mention new MI command -trace-frame-collected.
4230
4231 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4232 Yao Qi <yao@codesourcery.com>
4233
4234 * ctf.c (ctf_traceframe_info): Push trace state variables
4235 present in the trace data into the traceframe info object.
4236 * breakpoint.c (DEF_VEC_I): Remove.
4237 * common/filestuff.c (DEF_VEC_I): Likewise.
4238 * dwarf2loc.c (DEF_VEC_I): Likewise.
4239 * mi/mi-main.c (DEF_VEC_I): Likewise.
4240 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4241 * features/traceframe-info.dtd: Add tvar element and its
4242 attributes.
4243 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4244 (build_traceframe_info): Push trace state variables present in
4245 the trace data into the traceframe info object.
4246 (traceframe_info_start_tvar): New function.
4247 (tvar_attributes): New.
4248 (traceframe_info_children): Add "tvar" element.
4249 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4250
4251 * NEWS: Mention the change in GDB and GDBserver.
4252
4253 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4254 Yao Qi <yao@codesourcery.com>
4255
4256 * tracepoint.c (trace_dump_command): Move code to ...
4257 (get_traceframe_location): ... here. New.
4258
4259 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4260 Yao Qi <yao@codesourcery.com>
4261
4262 * tracepoint.c (trace_dump_command): GDB emits an error
4263 instead of a warning when a traceframe is not selected.
4264
4265 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4266 Yao Qi <yao@codesourcery.com>
4267
4268 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4269 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4270 in collection_list.
4271 (do_clear_collection_list, init_collection_list): New.
4272 (encode_actions): Add local variables 'tracepoint_list' and
4273 'stepping_list'. Call init_collection_list and make cleanup
4274 which calls do_clear_collection_list. Don't call
4275 clear_collection_list.
4276 (_initialize_tracepoint): Delete references to
4277 'tracepoint_list' and 'stepping_list'.
4278
4279 2013-06-25 Tom Tromey <tromey@redhat.com>
4280
4281 * common/create-version.sh (date): Use "$", not "$$" in sed
4282 expression.
4283
4284 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4285
4286 * NEWS (New targets): Add entry for TI MSP430.
4287
4288 2013-06-25 Yao Qi <yao@codesourcery.com>
4289
4290 * remote.c (remote_start_remote): Move code to upload tsv
4291 earlier.
4292
4293 2013-06-25 Yao Qi <yao@codesourcery.com>
4294 Hui Zhu <hui@codesourcery.com>
4295 Pedro Alves <palves@redhat.com>
4296
4297 PR breakpoints/15075
4298 PR breakpoints/15434
4299 * breakpoint.c (bpstat_stop_status): Call
4300 b->ops->after_condition_true.
4301 (update_dprintf_command_list): Don't append "continue" command
4302 to the command list of dprintf breakpoint.
4303 (base_breakpoint_after_condition_true): New function.
4304 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4305 (dprintf_after_condition_true): New function.
4306 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4307 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4308
4309 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4310
4311 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4312 (ALLDEPFILES): Add msp430-tdep.c.
4313 * configure.tgt (msp430*-*-elf): New target.
4314 * msp430-tdep.c: New file.
4315
4316 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4317
4318 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4319 microMIPS synthetic symbols.
4320
4321 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4322
4323 * objfiles.h (pc_in_section): New prototype.
4324 (in_plt_section): Remove name argument, replace prototype with
4325 static inline function.
4326 * mips-tdep.h: Include "objfiles.h".
4327 (in_mips_stubs_section): New function.
4328 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4329 in_solib_call_trampoline member.
4330 (hppa_in_solib_call_trampoline): Remove name argument.
4331 * objfiles.c (pc_in_section): New function.
4332 (in_plt_section): Remove function.
4333 * mips-linux-tdep.c: Include "objfiles.h".
4334 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4335 name argument. Return 1 rather than the low 16-bit halfword of
4336 any instruction examined.
4337 (mips_linux_in_dynsym_resolve_code): Update
4338 mips_linux_in_dynsym_stub call accordingly.
4339 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4340 rather than an equivalent hand-coded sequence.
4341 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4342 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4343 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4344 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4345 in_opd_section.
4346 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4347 on call to tdep->in_solib_call_trampoline.
4348 (hppa_in_solib_call_trampoline): Remove name argument, update
4349 according to in_plt_section change.
4350 (hppa_skip_trampoline_code): Update according to in_plt_section
4351 change.
4352 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4353 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4354 Likewise.
4355 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4356 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4357 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4358 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4359 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4360 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4361 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4362 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4363 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4364 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4365 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4366 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4367 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4368
4369 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4370
4371 * common/create-version.sh: Fix expansion of $host_alias
4372 and $target_alias in generation of HOST_NAME and TARGET_NAME
4373 (resp.).
4374
4375 2013-06-24 Tom Tromey <tromey@redhat.com>
4376
4377 * common/create-version.sh: New file.
4378 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4379 create-version.sh.
4380 (HFILES_NO_SRCDIR): Use common/version.h.
4381 * version.in: Move to ...
4382 * common/version.in: ... here. Replace date with "DATE".
4383 * version.h: Move to ...
4384 * common/version.h: ... here.
4385
4386 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4387
4388 * gdb/gnulib/Makefile.in: Update date in copyright header.
4389 * gdb/gnulib/configure.ac: Ditto.
4390 * gdb/gnulib/update-gnulib.sh: Ditto.
4391
4392 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4393
4394 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4395 "gdb/gnulib/import".
4396
4397 2013-06-21 Will Newton <will.newton@linaro.org>
4398
4399 * doublest.c (ldfrexp): Remove function.
4400 (convert_doublest_to_floatformat): Call frexpl instead of
4401 ldfrexp.
4402
4403 2013-06-21 Will Newton <will.newton@linaro.org>
4404
4405 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4406 * gnulib/aclocal.m4: Regenerate.
4407 * gnulib/config.in: Regenerate.
4408 * gnulib/configure: Regenerate.
4409 * gnulib/import/Makefile.am: Update.
4410 * gnulib/import/Makefile.in: Update.
4411 * gnulib/import/m4/gnulib-cache.m4: Update.
4412 * gnulib/import/m4/gnulib-comp.m4: Update.
4413 * gnulib/import/float+.h: Import.
4414 * gnulib/import/float.c: Import.
4415 * gnulib/import/float.in.h: Import.
4416 * gnulib/import/fpucw.h: Import.
4417 * gnulib/import/frexp.c: Import.
4418 * gnulib/import/frexpl.c: Import.
4419 * gnulib/import/isnan.c: Import.
4420 * gnulib/import/isnand-nolibm.h: Import.
4421 * gnulib/import/isnand.c: Import.
4422 * gnulib/import/isnanl-nolibm.h: Import.
4423 * gnulib/import/isnanl.c: Import.
4424 * gnulib/import/itold.c: Import.
4425 * gnulib/import/m4/exponentd.m4: Import.
4426 * gnulib/import/m4/exponentl.m4: Import.
4427 * gnulib/import/m4/float_h.m4: Import.
4428 * gnulib/import/m4/fpieee.m4: Import.
4429 * gnulib/import/m4/frexp.m4: Import.
4430 * gnulib/import/m4/frexpl.m4: Import.
4431 * gnulib/import/m4/isnand.m4: Import.
4432 * gnulib/import/m4/isnanl.m4: Import.
4433 * gnulib/import/m4/math_h.m4: Import.
4434 * gnulib/import/math.c: Import.
4435 * gnulib/import/math.in.h: Import.
4436
4437 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4438
4439 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4440 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4441 signature_INTEL_edx comparisons.
4442
4443 2013-06-20 Doug Evans <dje@google.com>
4444
4445 symtab/15652
4446 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4447 All callers updated.
4448 (open_dwp_file): If we can't find the dwp file, search the basename
4449 in debug-file-directory.
4450
4451 * dwarf2read.c (struct dwp_file): Fix comment.
4452 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4453
4454 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4455 better.
4456
4457 2013-06-20 Yao Qi <yao@codesourcery.com>
4458
4459 * breakpoint.c (create_breakpoint): Fix code indentation.
4460
4461 2013-06-20 Yao Qi <yao@codesourcery.com>
4462
4463 * breakpoint.c (create_breakpoints_sal_default): Remove
4464 parameter 'lsal'. Update declaration.
4465 (bkpt_create_breakpoints_sal): Caller update.
4466 (tracepoint_create_breakpoints_sal): Likewise.
4467
4468 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4469 Yao Qi <yao@codesourcery.com>
4470
4471 * NEWS: Mention the new option '--skip-unavailable' of command
4472 -data-list-register-values.
4473 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4474 --skip-unavailable option. Adjust to use output_register.
4475 (output_register): Add new 'skip_unavailable' parameter.
4476 Handle it.
4477
4478 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4479
4480 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4481 common/i386-gcc-cpuid.h.
4482 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4483 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4484 Copy the latest version from upstream gcc.
4485 * common/linux-btrace.c: Include i386-cpuid.h.
4486 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4487 call to i386_cpuid.
4488 (cpu_supports_btrace): Likewise.
4489 * go32-nat.c: Include i386-cpuid.h.
4490 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4491
4492 2013-06-19 Doug Evans <dje@google.com>
4493
4494 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4495 (get_section_index): Ditto.
4496
4497 2013-06-19 Tom Tromey <tromey@redhat.com>
4498
4499 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4500 "dprintf" help.
4501
4502 2013-06-18 Doug Evans <dje@google.com>
4503
4504 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4505 before using it.
4506 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4507 Move test of cu_index closer to use. Print complaint if cu_index
4508 is bad.
4509
4510 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4511
4512 * machoread.c (oso_vector): Delete this global.
4513 (macho_register_oso): Add new parameter "oso_vector_ptr".
4514 Use it instead of the "oso_vector" global.
4515 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4516 (macho_symfile_read): Use a local oso_vector, to be free'ed
4517 at the end of this function, in place of the old "oso_vector"
4518 global. Update various function calls accordingly. Use one
4519 single cleanup chain for the entire function.
4520
4521 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4522
4523 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4524 DWARF2_PER_OBJFILE by uses of DATA instead.
4525
4526 2013-06-18 Tom Tromey <tromey@redhat.com>
4527
4528 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4529 argument.
4530 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4531 Special case signals other than GDB_SIGNAL_TRAP.
4532 (explains_signal_watchpoint): New function.
4533 (base_breakpoint_explains_signal): Add 'sig' argument.
4534 (initialize_breakpoint_ops): Set 'explains_signal' method for
4535 watchpoints.
4536 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4537 signal argument.
4538 (bpstat_explains_signal): Likewise.
4539 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4540
4541 2013-06-18 Tom Tromey <tromey@redhat.com>
4542
4543 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4544
4545 2013-06-18 Tom Tromey <tromey@redhat.com>
4546
4547 * python/python.c (finish_python_initialization): Decref
4548 'pythondir' on failure path as well.
4549
4550 2013-06-18 Tom Tromey <tromey@redhat.com>
4551
4552 PR symtab/15391:
4553 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4554 after taking bits_to_skip into account. Sign extend byte_offset.
4555 * utils.h (gdb_sign_extend): Declare.
4556 * utils.c (gdb_sign_extend): New function.
4557
4558 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4559
4560 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4561
4562 2013-06-17 Pierre Muller <muller@sourceware.org>
4563
4564 * corelow.c (core_open): Print GDB signal name instead of target
4565 signal number.
4566
4567 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4568
4569 * .gitignore: Add /gcore.
4570
4571 2013-06-13 Doug Evans <dje@google.com>
4572
4573 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4574 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4575
4576 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4577
4578 * stack.c (backtrace_command_1): Fix indentation.
4579
4580 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4581
4582 * window-nat.c (thread_rec): Add missing empty line after
4583 local variable declaration.
4584
4585 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4586
4587 * windows-nat.c (thread_rec): Revert format used to print
4588 error code returned by SuspendThread from %d back to %u.
4589
4590 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4591
4592 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4593 ID in debug trace.
4594 (get_windows_debug_event): Likewise, for all debug traces.
4595
4596 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4597
4598 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4599 warning message.
4600
4601 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4602 Yao Qi <yao@codesourcery.com>
4603
4604 * mi/mi-main.c (get_register): Remove declaration.
4605 (output_register): Declare.
4606 (mi_cmd_data_list_register_values): Remove local variable
4607 'tuple_cleanup'. Move some code into output_register.
4608 (get_register): Renamed to ...
4609 (output_register): ... this. Output the register's
4610 "number" ui_out tuple here.
4611
4612 2013-06-07 Pedro Alves <palves@redhat.com>
4613
4614 * darwin-nat.c: Fix formating in copyright header.
4615 * darwin-nat.h: Likewise.
4616 * gnu-nat.c: Likewise.
4617 * machoread.c: Likewise.
4618
4619 2013-06-07 Pedro Alves <palves@redhat.com>
4620
4621 PR server/14823
4622 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4623 static. Output a global target description pointer.
4624 (init_registers_${name}): Adjust to initialize a
4625 target description structure.
4626
4627 2013-06-07 Will Newton <will.newton@linaro.org>
4628
4629 * printcmd.c (build_address_symbolic): Call
4630 gdbarch_addr_bits_remove for text minimal symbols.
4631
4632 2013-06-07 Will Newton <will.newton@linaro.org>
4633
4634 * MAINTAINERS: Add myself to Write After Approval.
4635
4636 2013-06-07 Yao Qi <yao@codesourcery.com>
4637
4638 * tracepoint.c (start_tracing): Move code to ...
4639 (trace_reset_local_state): ... here. New.
4640 (disconnect_tracing): Don't call set_current_traceframe,
4641 set_tracepoint_num, and set_traceframe_context. Call
4642 trace_reset_local_state instead.
4643 (tfile_close): Call trace_reset_local_state.
4644 * ctf.c (ctf_close): Likewise.
4645 * remote.c (remote_close): Likewise.
4646 * tracepoint.h (trace_reset_local_state): Declare.
4647
4648 2013-06-06 Doug Evans <dje@google.com>
4649
4650 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4651 and fix header docs.
4652
4653 2013-06-05 Doug Evans <dje@google.com>
4654 Keith Seitz <keiths@redhat.com>
4655
4656 PR 15519
4657 * cp-namespace.c (find_symbol_in_baseclass): Call
4658 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4659 Check result of call to lookup_symbol_static.
4660 Call lookup_static_symbol_aux unconditionally.
4661 Call check_typedef on base types before accessing them.
4662 (cp_lookup_nested_symbol): Fix comment.
4663
4664 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4665
4666 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4667 minimal symbols pointing to function descriptors.
4668
4669 2013-06-05 Tom Tromey <tromey@redhat.com>
4670
4671 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4672
4673 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4674 Pedro Alves <palves@redhat.com>
4675
4676 * remote.c (remote_wait_as): Restore signal handler before returning
4677 when GDB gets a notification.
4678
4679 2013-06-04 Gary Benson <gbenson@redhat.com>
4680
4681 PR 2328
4682 * breakpoint.h (handle_solib_event): Moved function declaration
4683 to solib.h.
4684 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4685 (bpstat_stop_status): Pass new argument to handle_solib_event.
4686 * solib.h (update_solib_breakpoints): New function declaration.
4687 (handle_solib_event): Moved function declaration from
4688 breakpoint.h.
4689 * solib.c (update_solib_breakpoints): New function.
4690 (handle_solib_event): Moved function from breakpoint.c.
4691 Updated to call solib_ops->handle_event if not NULL.
4692 * solist.h (target_so_ops): New fields "update_breakpoints" and
4693 "handle_event".
4694 * infrun.c (set_stop_on_solib_events): New function.
4695 (_initialize_infrun): Use the above for "set
4696 stop-on-solib-events".
4697 (handle_inferior_event): Pass new argument to handle_solib_event.
4698 * solib-svr4.c (probe.h): New include.
4699 (svr4_free_library_list): New forward declaration.
4700 (probe_action): New enum.
4701 (probe_info): New struct.
4702 (probe_info): New static variable.
4703 (NUM_PROBES): New definition.
4704 (svr4_info): New fields "using_xfer", "probes_table" and
4705 "solib_list".
4706 (free_probes_table): New function.
4707 (free_solib_list): New function.
4708 (svr4_pspace_data_cleanup): Free probes table and solib list.
4709 (svr4_copy_library_list): New function.
4710 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4711 (svr4_read_so_list): New parameter "prev_lm".
4712 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4713 (svr4_current_sos): New function.
4714 (probe_and_action): New struct.
4715 (hash_probe_and_action): New function.
4716 (equal_probe_and_action): Likewise.
4717 (register_solib_event_probe): Likewise.
4718 (solib_event_probe_at): Likewise.
4719 (solib_event_probe_action): Likewise.
4720 (solist_update_full): Likewise.
4721 (solist_update_incremental): Likewise.
4722 (disable_probes_interface_cleanup): Likewise.
4723 (svr4_handle_solib_event): Likewise.
4724 (svr4_update_solib_event_breakpoint): Likewise.
4725 (svr4_update_solib_event_breakpoints): Likewise.
4726 (svr4_create_solib_event_breakpoints): Likewise.
4727 (enable_break): Free probes table before creating breakpoints.
4728 Use svr4_create_solib_event_breakpoints to create breakpoints.
4729 (svr4_solib_create_inferior_hook): Free the solib list.
4730 (_initialize_svr4_solib): Initialise
4731 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4732
4733 2013-06-04 Gary Benson <gbenson@redhat.com>
4734
4735 * target.h (target_ops): New field
4736 "to_augmented_libraries_svr4_read".
4737 (target_augmented_libraries_svr4_read): New macro.
4738 * target.c (update_current_target): Handle
4739 to_augmented_libraries_svr4_read.
4740 * remote.c (remote_state): New field
4741 "augmented_libraries_svr4_read".
4742 (remote_augmented_libraries_svr4_read_feature): New function.
4743 (remote_protocol_features): Add entry for
4744 "augmented-libraries-svr4-read".
4745 (remote_augmented_libraries_svr4_read): New function.
4746 (init_remote_ops): Initialize
4747 remote_ops.to_augmented_libraries_svr4_read.
4748
4749 2013-06-04 Gary Benson <gbenson@redhat.com>
4750
4751 * NEWS: Update.
4752
4753 2013-06-04 Gary Benson <gbenson@redhat.com>
4754
4755 * objfiles.h (inhibit_section_map_updates): New function
4756 declaration.
4757 (resume_section_map_updates): Likewise.
4758 (resume_section_map_updates_cleanup): Likewise.
4759 * objfiles.c (objfile_pspace_info): Removed field
4760 "objfiles_changed_p". New fields "new_objfiles_available",
4761 "section_map_dirty" and "inhibit_updates".
4762 (allocate_objfile): Set new_objfiles_available.
4763 (free_objfile): Set section_map_dirty.
4764 (objfile_relocate1): Likewise.
4765 (in_plt_section): Likewise.
4766 (find_pc_section): Update the conditions under which the
4767 section map will be updated.
4768 (inhibit_section_map_updates): New function.
4769 (resume_section_map_updates): Likewise.
4770 (resume_section_map_updates_cleanup): Likewise.
4771
4772 2013-06-04 Gary Benson <gbenson@redhat.com>
4773
4774 * probe.h (get_probe_argument_count): New declaration.
4775 (evaluate_probe_argument): Likewise.
4776 * probe.c (get_probe_argument_count): New function.
4777 (evaluate_probe_argument): Likewise.
4778 (probe_safe_evaluate_at_pc): Use the above new functions.
4779
4780 2013-06-04 Alan Modra <amodra@gmail.com>
4781
4782 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4783 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4784 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4785 target mem reads on optional insns.
4786 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4787 ppc_insns_match_pattern calls.
4788 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4789 Add match for power7 thread safety insns, and new order of
4790 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4791 invocation in comment, and update rest of comment.
4792 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4793 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4794 (ppc64_standard_linkage2_target): Update insn offsets.
4795 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4796 stubs first. Update calls.
4797
4798 2013-06-04 Yao Qi <yao@codesourcery.com>
4799
4800 * solib.c (solib_find): Don't need dir separator if path has
4801 drive spec.
4802
4803 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4804
4805 Revert (indirectly causes a SIGSEGV):
4806 * machoread.c (macho_symfile_read): Assign first cleanup to
4807 'back_to'.
4808
4809 2013-06-03 Yao Qi <yao@codesourcery.com>
4810
4811 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4812 mi-parse.c. Make them static.
4813 (mi_all_values): Likewise.
4814 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4815 mi_parse_print_values. Make it external.
4816 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4817 Remove the declarations.
4818 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4819 * mi/mi-parse.h (mi_parse_print_values): Declare.
4820 * mi/mi-cmd-stack.c: Include mi-parse.h.
4821 (parse_print_values): Remove
4822 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4823 of parse_print_values.
4824 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4825
4826 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4827 Yao Qi <yao@codesourcery.com>
4828
4829 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4830 (encode_actions): Move code to ...
4831 (all_tracepoint_actions_and_cleanup): ... here. New.
4832 (trace_dump_command): Likewise.
4833
4834 2013-05-30 Tom Tromey <tromey@redhat.com>
4835
4836 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4837
4838 2013-05-30 Tom Tromey <tromey@redhat.com>
4839
4840 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4841 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4842 'old_chain' argument. Add 'parser_result' argument.
4843 (gdb_xml_create_parser_and_cleanup): Remove old version.
4844 (gdb_xml_parse_quick): Update.
4845 (xml_process_xincludes): Update.
4846 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4847 declare.
4848
4849 2013-05-30 Tom Tromey <tromey@redhat.com>
4850
4851 * probe.c (collect_probes): Check arguments for NULL before
4852 calling compile_rx_or_error.
4853 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4854 Remove NULL return.
4855
4856 2013-05-30 Tom Tromey <tromey@redhat.com>
4857
4858 * infrun.c (adjust_pc_after_break): Introduce an outer null
4859 cleanup.
4860
4861 2013-05-30 Tom Tromey <tromey@redhat.com>
4862
4863 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4864
4865 2013-05-30 Tom Tromey <tromey@redhat.com>
4866
4867 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4868 for 'old_chain'. Do not check 'head' before processing
4869 cleanups.
4870
4871 2013-05-30 Tom Tromey <tromey@redhat.com>
4872
4873 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4874 "cleanup_tuple".
4875
4876 2013-05-30 Tom Tromey <tromey@redhat.com>
4877
4878 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4879 inner scope. Unconditionally call do_cleanups.
4880
4881 2013-05-30 Tom Tromey <tromey@redhat.com>
4882
4883 * source.c (find_and_open_source): Call do_cleanups.
4884
4885 2013-05-30 Tom Tromey <tromey@redhat.com>
4886
4887 * linux-thread-db.c (thread_db_load_search): Unconditionally
4888 call do_cleanups.
4889
4890 2013-05-30 Tom Tromey <tromey@redhat.com>
4891
4892 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4893 for 'cleanup'; instead use a later one.
4894
4895 2013-05-30 Tom Tromey <tromey@redhat.com>
4896
4897 * python/py-breakpoint.c (bppy_get_commands): Use
4898 explicit, unconditional return.
4899 * python/py-frame.c (frapy_read_var): Likewise.
4900 * python/python.c (gdbpy_decode_line): Likewise.
4901
4902 2013-05-30 Tom Tromey <tromey@redhat.com>
4903
4904 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4905 do_cleanups on all return paths.
4906
4907 2013-05-30 Tom Tromey <tromey@redhat.com>
4908
4909 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4910
4911 2013-05-30 Tom Tromey <tromey@redhat.com>
4912
4913 * stabsread.c (read_struct_type): Call do_cleanups along
4914 all return paths.
4915
4916 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4917
4918 * mips-linux-tdep.c: Adjust formatting throughout.
4919
4920 2013-05-30 Tom Tromey <tromey@redhat.com>
4921
4922 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4923 along all return paths.
4924
4925 2013-05-30 Tom Tromey <tromey@redhat.com>
4926
4927 * symfile.c (find_separate_debug_file): Call do_cleanups
4928 along all return paths.
4929
4930 2013-05-30 Tom Tromey <tromey@redhat.com>
4931
4932 * symtab.c (search_symbols): Introduce a null cleanup for
4933 'retval_chain'.
4934
4935 2013-05-30 Tom Tromey <tromey@redhat.com>
4936
4937 * python/py-value.c (valpy_binop): Call do_cleanups before
4938 exiting loop.
4939
4940 2013-05-30 Tom Tromey <tromey@redhat.com>
4941
4942 * python/py-prettyprint.c (print_children): Remove extra
4943 do_cleanups call.
4944
4945 2013-05-30 Tom Tromey <tromey@redhat.com>
4946
4947 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4948 all return paths.
4949
4950 2013-05-30 Tom Tromey <tromey@redhat.com>
4951
4952 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4953 along all return paths.
4954
4955 2013-05-30 Tom Tromey <tromey@redhat.com>
4956
4957 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4958 call do_cleanups.
4959
4960 2013-05-30 Tom Tromey <tromey@redhat.com>
4961
4962 * varobj.c (c_value_of_root): Call do_cleanups along all
4963 return paths.
4964
4965 2013-05-30 Tom Tromey <tromey@redhat.com>
4966
4967 * tracepoint.c (trace_dump_command): Unconditionally call
4968 do_cleanups.
4969
4970 2013-05-30 Tom Tromey <tromey@redhat.com>
4971
4972 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4973 do_cleanups earlier.
4974
4975 2013-05-30 Tom Tromey <tromey@redhat.com>
4976
4977 * machoread.c (macho_symfile_read): Assign first cleanup to
4978 'back_to'.
4979
4980 2013-05-30 Tom Tromey <tromey@redhat.com>
4981
4982 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4983
4984 2013-05-30 Tom Tromey <tromey@redhat.com>
4985
4986 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4987
4988 2013-05-30 Tom Tromey <tromey@redhat.com>
4989
4990 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4991 call discard_cleanups.
4992 (inf_ptrace_attach): Likewise.
4993
4994 2013-05-30 Tom Tromey <tromey@redhat.com>
4995
4996 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4997 return paths.
4998 (mips_initialize): Likewise.
4999 (common_open): Call do_cleanups.
5000
5001 2013-05-30 Tom Tromey <tromey@redhat.com>
5002
5003 * utils.c (internal_vproblem): Call do_cleanups.
5004
5005 2013-05-30 Tom Tromey <tromey@redhat.com>
5006
5007 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5008
5009 2013-05-30 Tom Tromey <tromey@redhat.com>
5010
5011 * cli/cli-script.c (setup_user_args): Don't return after error.
5012
5013 2013-05-30 Tom Tromey <tromey@redhat.com>
5014
5015 * somread.c (som_symtab_read): Call do_cleanups.
5016
5017 2013-05-30 Tom Tromey <tromey@redhat.com>
5018
5019 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5020
5021 2013-05-30 Tom Tromey <tromey@redhat.com>
5022
5023 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5024 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5025 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5026 * source.c (show_substitute_path_command): Call do_cleanups.
5027 (unset_substitute_path_command, set_substitute_path_command):
5028 Likewise.
5029 * symfile.c (load_command): Call do_cleanups.
5030
5031 2013-05-30 Tom Tromey <tromey@redhat.com>
5032
5033 * contrib/cleanup_check.py: New file.
5034 * contrib/gcc-with-excheck: Add option parsing.
5035
5036 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5037
5038 * windows-nat.c (windows_delete_thread): Add missing space
5039 in cast expression.
5040
5041 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5042
5043 * inferior.c (top level): Include tilde.h.
5044 (add_inferior_command): Call tilde_expand on the value of 'exec'
5045 argument.
5046
5047 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5048 Yao Qi <yao@codesourcery.com>
5049
5050 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5051 Caller update.
5052 (encode_actions): Likewise.
5053 * remote.c (remote_download_tracepoint): Caller update.
5054 * tracepoint.h (encode_actions): Update declaration.
5055
5056 2013-05-30 Pedro Alves <palves@redhat.com>
5057
5058 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5059 pointer.
5060
5061 2013-05-30 Yao Qi <yao@codesourcery.com>
5062
5063 * remote.c (remote_check_symbols): Remove unused parameter
5064 'objfile'.
5065 Declaration update.
5066 (remote_start_remote, remote_new_objfile): Caller update.
5067
5068 2013-05-30 Yao Qi <yao@codesourcery.com>
5069
5070 * mi/mi-cmds.c (mi_cmds): Define MI command
5071 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5072 DEF_MI_CMD_CLI.
5073
5074 2013-05-29 Pedro Alves <palves@redhat.com>
5075
5076 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5077 (remote_insert_watchpoint, remote_remove_watchpoint)
5078 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5079 (remote_verify_memory, compare_sections_command)
5080 (remote_search_memory): Set the general process/thread on the
5081 remote side.
5082
5083 2013-05-29 Pedro Alves <palves@redhat.com>
5084
5085 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5086 (_initialize_aarch64_tdep): Don't call
5087 initialize_tdesc_aarch64_without_fpu.
5088 * features/Makefile (WHICH): Remove reference to
5089 aarch64-without-fpu.
5090 * features/aarch64-without-fpu.c: Delete file.
5091 * regformats/aarch64-without-fpu.dat: Delete file.
5092
5093 2013-05-28 Yao Qi <yao@codesourcery.com>
5094
5095 * tracepoint.c (stringify_collection_list): Remove parameter
5096 'string'.
5097 (encode_actions): Caller update. Remove local variables.
5098
5099 2013-05-24 Yao Qi <yao@codesourcery.com>
5100
5101 * tracepoint.c (TFILE_PID): Remove.
5102 (tfile_open): Don't add thread and inferior.
5103 (tfile_close): Don't set 'inferior_ptid'. Don't call
5104 exit_inferior_silent.
5105 (tfile_thread_alive): Remove.
5106 (init_tfile_ops): Don't set field 'to_thread_alive' of
5107 tfile_ops.
5108
5109 2013-05-23 Doug Evans <dje@google.com>
5110
5111 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5112
5113 2013-05-23 Pedro Alves <palves@redhat.com>
5114
5115 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5116 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5117 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5118 Only define if HAVE_SOCKETS is defined.
5119 * configure.ac: Check for sys/socket.h.
5120 * config.in, configure: Regenerate.
5121
5122 2013-05-23 Pedro Alves <palves@redhat.com>
5123
5124 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5125 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5126 printing uint32_t variables.
5127
5128 2013-05-23 Pedro Alves <palves@redhat.com>
5129
5130 * NEWS: Mention GDBserver range stepping support.
5131
5132 2013-05-23 Yao Qi <yao@codesourcery.com>
5133 Pedro Alves <palves@redhat.com>
5134
5135 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5136 field.
5137 * infcmd.c (step_once, until_next_command): Enable range stepping.
5138 * infrun.c (displaced_step_prepare): Disable range stepping.
5139 (resume): Disable range stepping if stepping over a breakpoint or
5140 we have software watchpoints. If range stepping is enabled,
5141 assert the thread is in the stepping range.
5142 (clear_proceed_status_thread): Clear may_range_step.
5143 (handle_inferior_event): Disable range stepping as soon as we know
5144 the thread that hit the event. Re-enable it whenever we're going
5145 to step with a step range.
5146 * remote.c (struct vCont_action_support) <r>: New field.
5147 (use_range_stepping): New global.
5148 (remote_vcont_probe): Handle 'r' action.
5149 (append_resumption): Append an 'r' action if the thread may range
5150 step.
5151 (show_range_stepping): New function.
5152 (set_range_stepping): New function.
5153 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5154 'set range-stepping' and 'show range-stepping' commands.
5155 * NEWS: Mention range stepping, the new vCont;r action, and the
5156 new "set/show range-stepping" commands.
5157
5158 2013-05-23 Yao Qi <yao@codesourcery.com>
5159 Pedro Alves <palves@redhat.com>
5160
5161 * remote.c (struct vCont_action_support): New struct.
5162 (struct remote_state) <support_vCont_t>: Remove field.
5163 <vCont_actions_support>: New field.
5164 (remote_vcont_probe, remote_stop_ns): Update.
5165
5166 2013-05-23 Yao Qi <yao@codesourcery.com>
5167 Pedro Alves <palves@redhat.com>
5168
5169 * gdbthread.h (pc_in_thread_step_range): New declaration.
5170 * thread.c (pc_in_thread_step_range): New function.
5171 * infrun.c (handle_inferior_event): Use it.
5172
5173 2013-05-23 Joel Brobecker <brobecker@adacore.com>
5174
5175 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5176 of sprintf.
5177
5178 2013-05-22 Keith Seitz <keiths@redhat.com>
5179
5180 * ada-lang.c (is_known_support_routine): Add explicit free of
5181 'func_name' from find_frame_funname.
5182 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5183 for func_name from find_frame_funname.
5184 * python/py-frame.c (frapy_name): Add explicit free of
5185 'name' from find_frame_funname.
5186 * stack.c (find_frame_funname): Add comment explaining that
5187 funcp must be freed by the caller.
5188 Return copy of symbol names instead of pointers.
5189 (print_frame): Add a cleanup for 'funname' from
5190 find_frame_funname.
5191 * stack.h (find_frame_funname): Remove "const" from
5192 'funname' parameter.
5193
5194 2013-05-22 Tom Tromey <tromey@redhat.com>
5195
5196 PR c++/15401:
5197 * c-valprint.c (c_value_print): Use value_addr for
5198 references. Convert back to reference type with value_ref.
5199
5200 2013-05-22 Eli Zaretskii <eliz@gnu.org>
5201
5202 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5203 unloaded DLL, it will be done by handle_solib_event. See
5204 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5205 details.
5206
5207 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5208
5209 * ui-out.c: Create typedef ui_out_level_p and define vector
5210 operations for that type.
5211 (struct ui_out): Use a vector instead of an array.
5212 (current_level): Return level from a vector.
5213 (push_level): Create a level in a vector.
5214 (pop_level): Delete a level in a vector.
5215 (ui_out_new): Create initial level zero level, and store in a
5216 vector.
5217 (ui_out_destroy): Add vector cleanup.
5218
5219 2013-05-22 Pedro Alves <palves@redhat.com>
5220
5221 * python/python-internal.h (gdb_Py_DECREF): Tag with
5222 "ARI: editCase function".
5223
5224 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5225
5226 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5227
5228 2013-05-21 Pedro Alves <palves@redhat.com>
5229
5230 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5231 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5232 * python/py-utils.c (py_decref): Don't check for NULL before
5233 calling Py_DECREF.
5234
5235 2013-05-21 Pedro Alves <palves@redhat.com>
5236
5237 * python/py-utils.c (py_decref): Remove extra braces.
5238 (gdb_pymodule_addobject): Remove extra braces.
5239 * python-internal.h (gdb_Py_DECREF): New static inline function.
5240 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5241
5242 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5243
5244 * breakpoints.c (detach_breakpoints): Do not
5245 detach breakpoints locations with loc_type bp_loc_other.
5246
5247 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5248
5249 Workaround Python 2.6.
5250 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5251 a block.
5252
5253 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5254
5255 Code cleanup: constification.
5256 * solib.c (solib_ops): Make return type and ops variable type const.
5257 (set_solib_ops): Make the new_ops parameter and ops variable const.
5258 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5259 (solib_add, solib_keep_data_in_core, clear_solib)
5260 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5261 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5262 const.
5263 * solib.h (set_solib_ops): Make the new_ops parameter const.
5264
5265 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5266
5267 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5268 variable.
5269 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5270 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5271 (SYSTEM_GDBINIT_FILES): New variables.
5272 (all): Add stamp-system-gdbinit.
5273 (stamp-system-gdbinit): New rule.
5274 (clean-system-gdbinit, install-system-gdbinit)
5275 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5276 (install-only): Add dependency on install-system-gdbinit.
5277 (uninstall): Add dependency on uninstall-system-gdbinit.
5278 (clean): Add dependency on clean-system-gdbinit.
5279 * system-gdbinit/elinos.py: New file.
5280 * system-gdbinit/wrs-linux.py: New file.
5281
5282 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5283
5284 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5285
5286 2013-05-21 Hui Zhu <hui@codesourcery.com>
5287
5288 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5289 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5290 * mi/mi-cmd-break.c (ctype.h): New include.
5291 (gdb_obstack.h): New include.
5292 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5293 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5294 (mi_cmd_dprintf_insert): New.
5295 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5296 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5297
5298 2013-05-20 Tom Tromey <tromey@redhat.com>
5299
5300 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5301
5302 2013-05-20 Tom Tromey <tromey@redhat.com>
5303
5304 * python/py-value.c (valpy_get_dynamic_type): Simplify
5305 dynamic_type assignment. Use Py_XINCREF.
5306
5307 2013-05-20 Tom Tromey <tromey@redhat.com>
5308
5309 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5310
5311 2013-05-20 Tom Tromey <tromey@redhat.com>
5312
5313 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5314 (gdbpy_selected_frame): Move object-construction code
5315 out of TRY_CATCH.
5316
5317 2013-05-20 Tom Tromey <tromey@redhat.com>
5318
5319 * python/py-arch.c (gdbpy_initialize_arch): Use
5320 gdb_pymodule_addobject.
5321 * python/py-block.c (gdbpy_initialize_blocks): Use
5322 gdb_pymodule_addobject.
5323 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5324 gdb_pymodule_addobject.
5325 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5326 gdb_pymodule_addobject.
5327 * python/py-event.c (gdbpy_initialize_event_generic): Use
5328 gdb_pymodule_addobject.
5329 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5330 gdb_pymodule_addobject.
5331 * python/py-evts.c (add_new_registry): Use
5332 gdb_pymodule_addobject.
5333 (gdbpy_initialize_py_events): Likewise.
5334 * python/py-finishbreakpoint.c
5335 (gdbpy_initialize_finishbreakpoints): Use
5336 gdb_pymodule_addobject.
5337 * python/py-frame.c (gdbpy_initialize_frames): Use
5338 gdb_pymodule_addobject.
5339 * python/py-function.c (gdbpy_initialize_functions): Use
5340 gdb_pymodule_addobject.
5341 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5342 gdb_pymodule_addobject.
5343 * python/py-infthread.c (gdbpy_initialize_thread): Use
5344 gdb_pymodule_addobject.
5345 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5346 gdb_pymodule_addobject.
5347 * python/py-param.c (gdbpy_initialize_parameters): Use
5348 gdb_pymodule_addobject.
5349 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5350 gdb_pymodule_addobject.
5351 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5352 gdb_pymodule_addobject.
5353 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5354 gdb_pymodule_addobject.
5355 * python/py-type.c (gdbpy_initialize_types): Use
5356 gdb_pymodule_addobject.
5357 * python/py-utils.c (gdb_pymodule_addobject): New function.
5358 * python/py-value.c (gdbpy_initialize_values): Use
5359 gdb_pymodule_addobject.
5360 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5361 * python/python.c (_initialize_python): Use
5362 gdb_pymodule_addobject.
5363
5364 2013-05-20 Tom Tromey <tromey@redhat.com>
5365
5366 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5367 * python/py-param.c (get_set_value, get_show_value): Use
5368 explicit decrefs.
5369 * python/python.c (start_type_printers, apply_type_printers):
5370 Use explicit decrefs.
5371
5372 2013-05-20 Tom Tromey <tromey@redhat.com>
5373
5374 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5375 incref the module.
5376
5377 2013-05-20 Tom Tromey <tromey@redhat.com>
5378
5379 * python/python.c (gdbpy_run_events): Decref the result
5380 of PyObject_CallObject.
5381
5382 2013-05-20 Tom Tromey <tromey@redhat.com>
5383
5384 * python/py-symtab.c (set_sal): Use
5385 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5386 (symtab_and_line_to_sal_object): Update.
5387
5388 2013-05-20 Tom Tromey <tromey@redhat.com>
5389
5390 * python/py-param.c (compute_enum_values): Decref 'item'.
5391
5392 2013-05-20 Tom Tromey <tromey@redhat.com>
5393
5394 * mi/mi-main.c: Include python-internal.h.
5395 (mi_cmd_list_features): Check gdb_python_initialized.
5396 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5397 (python_inferior_exit, python_new_objfile, add_thread_object)
5398 (delete_thread_object, py_free_inferior): Check
5399 gdb_python_initialized.
5400 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5401 gdb_python_initialized.
5402 * python/py-type.c (save_objfile_types): Check
5403 gdb_python_initialized.
5404 * python/python-internal.h (gdb_python_initialized): Declare.
5405 * python/python.c (ensure_python_env): Throw exception if
5406 Python not initialized.
5407 (before_prompt_hook, source_python_script_for_objfile)
5408 (start_type_printers, apply_type_printers,
5409 free_type_printers): Check gdb_python_initialized.
5410 * varobj.c (varobj_get_display_hint)
5411 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5412 (install_new_value_visualizer, varobj_set_visualizer)
5413 (value_get_print_value): Check gdb_python_initialized.
5414
5415 2013-05-20 Tom Tromey <tromey@redhat.com>
5416
5417 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5418 Check errors.
5419 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5420 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5421 Check errors.
5422 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5423 Check errors.
5424 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5425 Check errors.
5426 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5427 Check errors.
5428 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5429 init function to return 'int'.
5430 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5431 Return 'int'. Check errors.
5432 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5433 Check errors.
5434 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5435 Return 'int'. Check errors.
5436 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5437 Check errors.
5438 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5439 Check errors.
5440 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5441 Check errors.
5442 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5443 Check errors.
5444 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5445 Check errors.
5446 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5447 Check errors.
5448 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5449 Check errors.
5450 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5451 Check errors.
5452 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5453 Check errors.
5454 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5455 Check errors.
5456 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5457 Check errors.
5458 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5459 Check errors.
5460 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5461 Check errors.
5462 * python/python-internal.h (gdbpy_initialize_auto_load,
5463 gdbpy_initialize_values, gdbpy_initialize_frames,
5464 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5465 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5466 gdbpy_initialize_blocks, gdbpy_initialize_types,
5467 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5468 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5469 gdbpy_initialize_finishbreakpoints,
5470 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5471 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5472 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5473 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5474 gdbpy_initialize_signal_event,
5475 gdbpy_initialize_breakpoint_event,
5476 gdbpy_initialize_continue_event,
5477 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5478 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5479 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5480 * python/python.c (gdb_python_initialized): New global.
5481 (gdbpy_initialize_events): Return 'int'. Check errors.
5482 (_initialize_python): Check errors. Set
5483 gdb_python_initialized.
5484
5485 2013-05-20 Tom Tromey <tromey@redhat.com>
5486
5487 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5488 Decref the reslut of PyObject_CallMethod.
5489
5490 2013-05-20 Tom Tromey <tromey@redhat.com>
5491
5492 * python/py-event.c (gdbpy_initialize_event_generic): Return
5493 early if PyType_Ready fails.
5494
5495 2013-05-20 Tom Tromey <tromey@redhat.com>
5496
5497 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5498 as 'default' in the switch.
5499
5500 2013-05-20 Tom Tromey <tromey@redhat.com>
5501
5502 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5503 get_addr_from_python calls out of TRY_CATCH.
5504 (infpy_write_memory, infpy_search_memory): Likewise.
5505 * python/py-utils.c (get_addr_from_python): Return negative
5506 value on error. Use TRY_CATCH.
5507 * python/python-internal.h (get_addr_from_python): Use
5508 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5509
5510 2013-05-20 Tom Tromey <tromey@redhat.com>
5511
5512 * python/py-event.c (evpy_emit_event): Decref the
5513 result of PyObject_CallFunctionObjArgs.
5514
5515 2013-05-20 Tom Tromey <tromey@redhat.com>
5516
5517 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5518 Correctly decref.
5519
5520 2013-05-20 Tom Tromey <tromey@redhat.com>
5521
5522 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5523
5524 2013-05-20 Tom Tromey <tromey@redhat.com>
5525
5526 * python/py-event.h (gdbpy_initialize_event_generic): Use
5527 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5528 * python/py-evts.c (add_new_registry): Use
5529 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5530 * python/python-internal.h
5531 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5532
5533 2013-05-20 Tom Tromey <tromey@redhat.com>
5534
5535 * python/py-arch.c (archpy_disassemble): Update.
5536 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5537 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5538 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5539 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5540 macro.
5541 (GDB_PY_HANDLE_EXCEPTION): Update.
5542 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5543
5544 2013-05-20 Tom Tromey <tromey@redhat.com>
5545
5546 * python/python-internal.h (events_object_type): Remove.
5547
5548 2013-05-20 Tom Tromey <tromey@redhat.com>
5549
5550 * python/py-event.h (evpy_emit_event): Use
5551 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5552 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5553 New macro.
5554
5555 2013-05-20 Tom Tromey <tromey@redhat.com>
5556
5557 * py-evtregistry.c (create_event_object): Decref
5558 eventregistry_object if PyList_New fails.
5559
5560 2013-05-20 Tom Tromey <tromey@redhat.com>
5561
5562 * py-cmd.c (gdbpy_string_to_argv): Check result of
5563 PyList_New.
5564
5565 2013-05-20 Tom Tromey <tromey@redhat.com>
5566
5567 * python/python.c (before_prompt_hook): Add cleanup to
5568 decref 'hook'.
5569
5570 2013-05-20 Tom Tromey <tromey@redhat.com>
5571
5572 * python/py-function.c (fnpy_init): Decref result of
5573 PyObject_GetAttrString.
5574
5575 2013-05-20 Tom Tromey <tromey@redhat.com>
5576
5577 * python/py-threadevent.c (get_event_thread): Use
5578 CPYCHECKER_RETURNS_BORROWED_REF.
5579 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5580 New define.
5581 (pspace_to_pspace_object, objfile_to_objfile_object)
5582 (find_thread_object): Use it.
5583
5584 2013-05-20 Tom Tromey <tromey@redhat.com>
5585
5586 * python/py-arch.c (arch_object_type): Use
5587 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5588 * python/py-block.c (block_syms_iterator_object_type):
5589 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5590 * python/py-bpevent.c (breakpoint_event_object_type):
5591 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5592 * python/py-cmd.c (cmdpy_object_type): Use
5593 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5594 * python/py-continueevent.c (continue_event_object_type):
5595 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5596 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5597 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5598 * python/py-events.h (thread_event_object_type):
5599 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5600 * python/py-evtregistry.c (eventregistry_object_type): Use
5601 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5602 * python/py-exitedevent.c (exited_event_object_type):
5603 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5604 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5605 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5606 * python/py-function.c (fnpy_object_type): Use
5607 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5608 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5609 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5610 * python/py-infthread.c (thread_object_type): Use
5611 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5612 * python/py-lazy-string.c (lazy_string_object_type):
5613 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5614 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5615 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5616 * python/py-objfile.c (objfile_object_type): Use
5617 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5618 * python/py-param.c (parmpy_object_type):
5619 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5620 * python/py-progspace.c (pspace_object_type):
5621 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5622 * python/py-signalevent.c (signal_event_object_type):
5623 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5624 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5625 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5626 * python/py-type.c (type_object_type, field_object_type)
5627 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5628 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5629 define.
5630 (value_object_type, block_object_type, symbol_object_type)
5631 (event_object_type, stop_event_object_type, breakpoint_object_type)
5632 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5633
5634 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5635
5636 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5637 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5638
5639 2013-05-20 Doug Evans <dje@google.com>
5640
5641 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5642 For Fission.
5643 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5644 reading_dwo_directly.
5645 (struct signatured_type): New member dwo_unit.
5646 (struct die_reader_specs): New member comp_dir.
5647 (create_signatured_type_table_from_index): Use malloc for
5648 all_type_units instead of objfile's obstack.
5649 (create_all_type_units): Ditto.
5650 (fill_in_sig_entry_from_dwo_entry): New function.
5651 (add_type_unit): New function.
5652 (lookup_dwo_signatured_type): New function.
5653 (lookup_dwp_signatured_type): New function.
5654 (lookup_signatured_type): New arg cu. All callers updated.
5655 (init_cu_die_reader): Initialize comp_dir.
5656 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5657 Change assert of matching type signatures to call error on mismatch.
5658 (lookup_dwo_unit): Add assert.
5659 (init_tu_and_read_dwo_dies): New function.
5660 (init_cutu_and_read_dies): Call it.
5661 (build_type_unit_groups): Handle case of no type unit groups created.
5662 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5663 (lookup_dwo_cutu): Tweak complaint.
5664 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5665 (dwarf2_per_objfile_free): Free all_type_units.
5666
5667 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5668
5669 * windows-nat.c (handle_unload_dll): Add missing empty line.
5670
5671 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5672
5673 * dwarf2read.c (prototyped_function_p): New function.
5674 (read_subroutine_type): Use it.
5675
5676 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5677
5678 * rs6000-aix-tdep.c: De-indent some example code provided
5679 as a comment.
5680
5681 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5682
5683 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5684 region is ok for a hardware watchpoint using the new ptrace interface
5685 on Power servers.
5686
5687 2013-05-17 Doug Evans <dje@google.com>
5688
5689 * NEWS: Mention new maintenance commands check-symtabs, and
5690 expand-symtabs, and renamed check-psymtabs.
5691 * psymtab.c (maintenance_check_psymtabs): Renamed from
5692 maintenance_check_symtabs. Only process already-expanded symbol
5693 tables.
5694 (_initialize_psymtab): Update.
5695 * symmisc.c (maintenance_check_symtabs): New function.
5696 (maintenance_expand_name_matcher): New function
5697 (maintenance_expand_file_matcher): New function
5698 (maintenance_expand_symtabs): New function.
5699 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5700 commands.
5701
5702 2013-05-17 Tom Tromey <tromey@redhat.com>
5703
5704 * python/py-inferior.c (infpy_read_memory): Don't call
5705 PyErr_SetString if PyObject_New fails.
5706 * python/py-frame.c (frame_info_to_frame_object): Don't call
5707 PyErr_SetString if PyObject_New fails.
5708
5709 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5710
5711 * acinclude.m4: Add check for dlopen in libdl.
5712 * configure.ac: Ditto.
5713 * configure: Regenerate.
5714
5715 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5716
5717 * frame.c (frame_stash): Convert to htab.
5718 (frame_addr_hash): New function.
5719 (frame_addr_hash_eq): New function.
5720 (frame_stash_create): Convert function to create
5721 a hash table.
5722 (frame_stash_add): Convert function to add an entry to a hash
5723 table.
5724 (frame_stash_find): Convert function to search the hash table.
5725 (frame_stash_invalidate): Convert function to empty the hash
5726 table.
5727 (get_frame_id): Only add to stash if a frame_id is created.
5728 (_initialize_frame): Call frame_stash_create.
5729
5730 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5731
5732 * configure.ac: Ensure MIG is available when building for GNU Hurd
5733 hosts.
5734 * configure: Regenerate.
5735
5736 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5737
5738 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5739
5740 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5741
5742 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5743 all cleanups are done before returning from this function.
5744
5745 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5746
5747 * utils.h: #include "exceptions.h".
5748 (enum errors): Remove partial declaration.
5749
5750 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5751
5752 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5753 * gdbarch.h, gdbarch.c: Regenerate.
5754 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5755 handling.
5756
5757 * rs6000-aix-tdep.h: New file.
5758 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5759 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5760 "xml-utils.h".
5761 (struct field_info, struct ld_info_desc): New types.
5762 (ld_info32_desc, ld_info64_desc): New static constants.
5763 (struct ld_info): New type.
5764 (rs6000_aix_extract_ld_info): New function.
5765 (rs6000_aix_shared_library_to_xml): Likewise.
5766 (rs6000_aix_ld_info_to_xml): Likewise.
5767 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5768 (rs6000_aix_init_osabi): Add call to
5769 set_gdbarch_core_xfer_shared_libraries_aix.
5770 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5771 Remove "xml-utils.h" include.
5772 (LdInfo): Delete typedef.
5773 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5774 Delete macros.
5775 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5776 Adjust code accordingly.
5777 (rs6000_core_ldinfo): Delete, folded into
5778 rs6000_aix_core_xfer_shared_libraries_aix.
5779 (rs6000_xfer_shared_library): Delete.
5780 (rs6000_xfer_shared_libraries): Reimplement.
5781
5782 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5783
5784 * record.c (record_goto_cmdlist): New.
5785 (cmd_record_goto): Split into this ...
5786 (cmd_record_goto_begin): ... this
5787 (cmd_record_goto_end): ... and this.
5788 (_initialize_record): Change "record goto" to prefix command.
5789 Add commands for "record goto begin" and "record goto end".
5790 Add an alias for "record goto start" to "record goto begin".
5791
5792 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5793
5794 * linespec.c (convert_linespec_to_sals): New comment for
5795 SOURCE_FILENAME assignment.
5796
5797 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5798
5799 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5800 internal_warning.
5801
5802 2013-05-14 Tom Tromey <tromey@redhat.com>
5803
5804 * eval.c (parse_and_eval_long): Make 'exp' const.
5805 * value.h (parse_and_eval_long): Update.
5806
5807 2013-05-14 Tom Tromey <tromey@redhat.com>
5808
5809 * ui-file.c (gdb_fopen): Make arguments const.
5810 * ui-file.h (gdb_fopen): Make arguments const.
5811
5812 2013-05-14 Tom Tromey <tromey@redhat.com>
5813
5814 * remote.c (remote_set_trace_notes): Make arguments const.
5815 * target.c (update_current_target): Update cast.
5816 * target.h (to_set_trace_notes): Make arguments const.
5817
5818 2013-05-14 Tom Tromey <tromey@redhat.com>
5819
5820 * go32-nat.c (go32_terminal_info): Make 'args' const.
5821 * inferior.h (child_terminal_info): Update.
5822 * inflow.c (child_terminal_info): Make 'args' const.
5823 * target.c (default_terminal_info): Make 'args' const.
5824 (debug_to_terminal_save_ours): Likewise.
5825 * target.h (struct target_ops) <to_terminal_info>: Make argument
5826 const.
5827
5828 2013-05-13 Tom Tromey <tromey@redhat.com>
5829
5830 * gcore.c (create_gcore_bfd): Make 'filename' const.
5831 * gcore.h (create_gcore_bfd): Make 'filename' const.
5832 * record-full.c (record_full_save): Make 'recfilename' const.
5833 * target.c (target_save_record): Make 'filename' const.
5834 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5835 const.
5836 (target_save_record): Likewise.
5837
5838 2013-05-13 Tom Tromey <tromey@redhat.com>
5839
5840 PR gdb/15338:
5841 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5842 ranges section has been read.
5843
5844 2013-05-13 Tom Tromey <tromey@redhat.com>
5845
5846 PR exp/15364:
5847 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5848 STRUCTOP_PTR>: Return a not_lval value for
5849 EVAL_AVOID_SIDE_EFFECTS.
5850 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5851 for EVAL_AVOID_SIDE_EFFECTS.
5852
5853 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5854
5855 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5856 floating point registers to register type before storing
5857 value.
5858 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5859 Likewise.
5860
5861 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5862 Tom Tromey <tromey@redhat.com>
5863
5864 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5865 New functions.
5866 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5867 Declare.
5868 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5869 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5870 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5871 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5872
5873 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5874 Tom Tromey <tromey@redhat.com>
5875
5876 PR build/15414:
5877 * configure: Rebuild.
5878 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5879 with -Wno-format.
5880
5881 2013-05-10 Pedro Alves <palves@redhat.com>
5882
5883 * remote.c (_initialize_remote): Fix spelling of
5884 qXfer:traceframe-info:read packet in packet config command.
5885
5886 2013-05-10 David Taylor <dtaylor@emc.com>
5887
5888 PR remote/15455
5889
5890 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5891 "QTro" at start of packet.
5892
5893 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5894
5895 * solib-aix.c (solib_aix_relocate_section_addresses):
5896 For the .bss section action, apply the same offset as
5897 the .data section.
5898
5899 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5900
5901 * solib-aix.c (solib_aix_relocate_section_addresses):
5902 Remove FIXME comment.
5903
5904 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5905
5906 PR tdep/15420:
5907 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5908 New functions, directly copied from sparc-sol-thread.c.
5909 * sparc-sol-thread.c: Delete.
5910 * configure.ac: Remove code handling sparc-solaris-thread.c.
5911 * configure: Regenerate.
5912
5913 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5914
5915 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5916 filter logic.
5917 (backtrace_command): Add "no-filters" option parsing.
5918 (_initialize_stack): Alter help to reflect "no-filters" option.
5919 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5920 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5921 (py-frame.o): Add target
5922 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5923 filter files.
5924 * python/python.h: Add new frame filter constants, and flag enum.
5925 (apply_frame_filter): Add definition.
5926 * python/python.c (apply_frame_filter): New non-Python
5927 enabled function.
5928 * python/py-utils.c (py_xdecref): New function.
5929 (make_cleanup_py_xdecref): Ditto.
5930 * python/py-objfile.c: Declare frame_filters dictionary.
5931 (objfpy_dealloc): Add frame_filters dealloc.
5932 (objfpy_new): Initialize frame_filters attribute.
5933 (objfile_to_objfile_object): Ditto.
5934 (objfpy_get_frame_filters): New function.
5935 (objfpy_set_frame_filters): New function.
5936 * python/py-progspace.c: Declare frame_filters dictionary.
5937 (pspy_dealloc): Add frame_filters dealloc.
5938 (pspy_new): Initialize frame_filters attribute.
5939 (pspacee_to_pspace_object): Ditto.
5940 (pspy_get_frame_filters): New function.
5941 (pspy_set_frame_filters): New function.
5942 * python/py-framefilter.c: New file.
5943 * python/lib/gdb/command/frame_filters.py: New file.
5944 * python/lib/gdb/frames.py: New file.
5945 * python/lib/gdb/__init__.py: Initialize global frame_filters
5946 dictionary
5947 * python/lib/gdb/FrameDecorator.py: New file.
5948 * python/lib/gdb/FrameIterator.py: New file.
5949 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5950 * mi/mi-cmds.h: Declare.
5951 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5952 --no-frame-filter logic, and Python frame filter logic.
5953 (stack_enable_frame_filters): New function.
5954 (parse_no_frame_option): Ditto.
5955 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5956 filter logic.
5957 (mi_cmd_stack_list_locals): Ditto.
5958 (mi_cmd_stack_list_args): Ditto.
5959 (mi_cmd_stack_list_variables): Ditto.
5960 * NEWS: Add frame filter note.
5961
5962 2013-05-09 Doug Evans <dje@google.com>
5963
5964 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5965 All callers updated.
5966 (syms_from_objfile): Ditto. Make static.
5967 (symbol_file_add_with_addrs): Renamed from
5968 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5969 num_offsets. All callers updated.
5970 * symfile.h (syms_from_objfile): Delete.
5971
5972 * symfile.c (decrement_reading_symtab): Add assert.
5973 (increment_reading_symtab): Ditto.
5974
5975 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5976
5977 * source.c (forward_search_command): Replace call to getc
5978 by call to fgetc.
5979 (reverse_search_command): Likewise.
5980
5981 2013-05-08 Doug Evans <dje@google.com>
5982
5983 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5984 matching test.
5985
5986 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5987
5988 * sol-thread.c (info_cb): Factorize the code a little.
5989
5990 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5991
5992 * sol-thread.c (info_cb): Rework the output of the "maintenance
5993 info sol-threads" command a bit.
5994
5995 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5996
5997 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5998 Replace ti.ti_startfunc by ti.ti_pc.
5999
6000 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6001
6002 * solib-aix.c (solib_aix_free_library_list): New function
6003 for the case where HAVE_LIBEXPAT is not defined.
6004
6005 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6006
6007 PR breakpoints/15413:
6008 * breakpoint.c (condition_completer): Simplify the code to
6009 disconsider multiple locations of breakpoints when completing the
6010 "condition" command.
6011
6012 2013-05-07 Pierre Muller <muller@sourceware.org>
6013
6014 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6015 instead of <sys/wait.h>.
6016
6017 2013-05-07 Pierre Muller <muller@sourceware.org>
6018
6019 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6020 trailing new line from warning message.
6021
6022 2013-05-07 Pierre Muller <muller@sourceware.org>
6023
6024 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6025 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6026
6027 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6028
6029 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6030 error message (ARI fix).
6031
6032 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6033
6034 * features/library-list-aix.dtd: Replace library-list by
6035 library-list-aix.
6036 * rs6000-nat.c: Replace library-list by library-list-aix
6037 throughout.
6038 * solib-aix.c: Likewise.
6039
6040 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6041
6042 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6043 Renames TARGET_OBJECT_AIX_LIBRARIES.
6044 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6045 TARGET_OBJECT_LIBRARIES_AIX throughout.
6046 * solib-aix.c: Likwise.
6047
6048 2013-05-07 Yao Qi <yao@codesourcery.com>
6049
6050 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6051 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6052
6053 2013-05-07 Yao Qi <yao@codesourcery.com>
6054
6055 * solib-dsbt.c (enable_break): Declare.
6056 (dsbt_current_sos): Remove call to enable_break2.
6057 (enable_break2): Rename to enable_break. Set solib breakpoint
6058 on '_dl_debug_state'.
6059 (enable_break): Remove.
6060
6061 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6062
6063 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6064 debug state prior to replicating existing hardware watchpoints or
6065 breakpoints.
6066
6067 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6068
6069 * gcore.c (gcore_create_callback): Ignore sections with
6070 separate_debug_objfile_backlink != NULL.
6071
6072 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6073 Andrew Jenner <andrew@codesourcery.com>
6074 Chung-Lin Tang <cltang@codesourcery.com>
6075 Julian Brown <julian@codesourcery.com>
6076
6077 Based on the nios2-elf port from Altera Corporation.
6078
6079 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6080 nios2-linux-tdep.o.
6081 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6082 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6083 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6084 * nios2-tdep.h: New.
6085 * nios2-tdep.c: New.
6086 * nios2-linux-tdep.c: New.
6087 * features/Makefile (WHICH): Add nios2-linux.
6088 (nios2-linux-expedite): Set.
6089 * features/nios2-cpu.xml: New.
6090 * features/nios2.xml: New.
6091 * features/nios2-linux.xml: New.
6092 * features/nios2.c: New (autogenerated).
6093 * features/nios2-linux.c: New (autogenerated).
6094 * regformats/nios2-linux.dat: New (autogenerated).
6095 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6096 and commands.
6097
6098 2013-05-06 Doug Evans <dje@google.com>
6099
6100 * symfile.c: Whitespace cleanup.
6101
6102 * solist.h (struct target_so_ops): New member clear_so.
6103 * solib-svr4.c (svr4_clear_so): New function.
6104 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6105 * solib.c (clear_so): Renamed from free_so_symbols.
6106 All callers updated. Call target clear_so if it exists.
6107
6108 2013-05-06 Tom Tromey <tromey@redhat.com>
6109
6110 * ada-lang.c (ada_value_primitive_packed_val): Don't
6111 call value_incref.
6112 * value.c (set_value_parent): Incref the new parent and decref
6113 the old parent.
6114 (value_copy, value_primitive_field): Use set_value_parent.
6115
6116 2013-05-06 Tom Tromey <tromey@redhat.com>
6117
6118 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6119 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6120 if needed.
6121 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6122 * dwarf2read.c (write_constant_as_bytes)
6123 (dwarf2_fetch_constant_bytes): New functions.
6124
6125 2013-05-06 Tom Tromey <tromey@redhat.com>
6126
6127 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6128 parameters.
6129 (dwarf2_const_value_attr): Update.
6130
6131 2013-05-06 Tom Tromey <tromey@redhat.com>
6132
6133 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6134 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6135 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6136 Remove declaration.
6137
6138 2013-05-06 Tom Tromey <tromey@redhat.com>
6139
6140 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6141 objfile's obstack.
6142
6143 2013-05-06 Doug Evans <dje@google.com>
6144
6145 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6146 * stabsread.h (process_one_symbol): Update declaration.
6147 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6148 * elfread.c (elf_symfile_relocate_probe): Ditto.
6149 * psymtab.c (relocate_psymtabs): Ditto.
6150 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6151 (objfile_relocate): Ditto.
6152 * objfiles.h (objfile_relocate): Update declaration.
6153 * symfile.c (relative_addr_info_to_section_offsets): Constify
6154 addrs parameter.
6155 (default_symfile_offsets): Ditto.
6156 (syms_from_objfile_1): Constify offsets parameter.
6157 (syms_from_objfile): Ditto.
6158 (symbol_file_add_with_addrs_or_offsets): Ditto.
6159 (symfile_map_offsets_to_segments): Constify data parameter.
6160 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6161 delta parameters of member relocate.
6162 (struct sym_probe_fns): Constify new_offsets,
6163 delta parameters of member sym_relocate_probe.
6164 (struct sym_fns): Constify section_addr_info parameter of member
6165 sym_offsets.
6166 (relative_addr_info_to_section_offsets): Update declaration.
6167 (default_symfile_offsets): Ditto.
6168 (syms_from_objfile): Ditto.
6169 (symfile_map_offsets_to_segments): Ditto.
6170
6171 * symfile.c (syms_from_objfile_1): Use correct section count when
6172 objfile->sf == NULL.
6173
6174 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6175
6176 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6177
6178 2013-05-06 Doug Evans <dje@google.com>
6179
6180 * psympriv.h (struct partial_symtab): Augment comment for member
6181 section_offsets.
6182
6183 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6184
6185 Reimplement shared library support on ppc-aix...
6186 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6187 * features/library-list-aix.dtd: New file.
6188 * solib-aix.h, solib-aix.c: New file.
6189 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6190 (rs6000_find_toc_address_hook): Delete.
6191 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6192 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6193 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6194 "xml-utils.h".
6195 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6196 (vmap_symtab, fixup_breakpoints): Delete.
6197 (rs6000_xfer_shared_libraries): New function.
6198 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6199 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6200 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6201 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6202 (rs6000_xfer_shared_library): New function.
6203 (find_toc_address): Delete.
6204 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6205 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6206 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6207 before creating minimal symbol. Adjust function description
6208 accordingly.
6209 (scan_xcoff_symtab): Replace call to
6210 prim_record_minimal_symbol_and_info by call to
6211 record_minimal_symbol.
6212 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6213 around default_symfile_offsets.
6214 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6215 powerpc-aix targets.
6216 * config/rs6000/nm-rs6000.h: Delete.
6217 * config/powerpc/aix.mh (NAT_FILE): Delete.
6218 (NATDEPFILES): Remove xcoffsolib.o.
6219 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6220 (ALL_TARGET_OBS): Add solib-aix.o.
6221 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6222 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6223 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6224 * xcoffsolib.h, xcoffsolib.c: Delete.
6225
6226 * solib.c (reload_shared_libraries): Remove reference to
6227 SOLIB_CREATE_INFERIOR_HOOK.
6228 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6229 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6230 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6231 comment.
6232 * corelow.c (deprecated_core_resize_section_table): Delete.
6233 * exec.c: Remove include of xcoffsolib.h".
6234 (map_vmap, vmap): Delete.
6235 (exec_close_1): Remove references to vmap.
6236 (exec_file_attach): Remove vmap handling code, and reference
6237 to DEPRECATED_IBM6000_TARGET.
6238 (bfdsec_to_vmap): Delete.
6239 (exec_files_info): Remove block of code handling VMAP.
6240 * infcmd.c (post_create_inferior): Remove reference to
6241 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6242 * infrun.c (follow_exec): Remove reference to
6243 SOLIB_CREATE_INFERIOR_HOOK.
6244 * stack.c (print_frame): Remove reference to PC_SOLIB.
6245 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6246 (dsbt_relocate_main_executable): Likewise.
6247 * solib-frv.c (frv_current_sos): Likewise.
6248
6249 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6250
6251 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6252 to target_write_memory and target_read_memory.
6253
6254 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6255
6256 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6257 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6258
6259 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6260
6261 * darwin-nat.c: Replace all "%x" instances in format strings
6262 into "0x%x" throughout.
6263
6264 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6265
6266 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6267 gdb_assert by call to MACH_CHECK_ERROR.
6268 (darwin_attach_pid): Raise an error rather than a failed
6269 assertion when various system calls failed. Report a warning
6270 instead of raising a failed assertion when PREV_NOT is not NULL
6271 after call to mach_port_request_notification.
6272 (darwin_ptrace_me): Raise an error rather than a failed
6273 assertion when read returns nonzero.
6274
6275 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6276
6277 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6278
6279 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6280
6281 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6282
6283 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6284
6285 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6286 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6287 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6288 a stale cleanup. Fix double free of NAME.
6289
6290 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6291
6292 * windows-nat.c (windows_delete_thread): Accept an additional
6293 argument, the thread's exit code, and announce thread death when
6294 print_thread_events is non-zero and we are deleting a thread that
6295 is not the main thread.
6296 (get_windows_debug_event): Pass thread exit code to
6297 windows_delete_thread.
6298
6299 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6300
6301 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6302 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6303 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6304 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6305 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6306 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6307 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6308 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6309 (gdbarch_tdep): New struct.
6310 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6311 E_NUM_REGS.
6312 (v850e3v5_register_name): New function.
6313 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6314 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6315 code handling the struct return conventions for the RH850 ABI.
6316 Update all callers.
6317 (v850_eight_byte_align_p): New function.
6318 (v850_push_call_dummy): Push structs by value, not by reference
6319 for the RH850 ABI. Add support for eight byte alignment.
6320 (v850_dbtrap_breakpoint_from_pc): New function.
6321 (v850_gdbarch_init): Add ABI detection code. Register
6322 v850e3v5_register_name for the v850e3v5 architecture. Set the
6323 number of registers for v850e3v5. Register
6324 v850_dbtrap_breakpoint_from_pc as appropriate.
6325 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6326
6327 2013-05-03 Doug Evans <dje@google.com>
6328
6329 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6330 of bfd_count_sections.
6331 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6332 * symfile.c (default_symfile_offsets): Ditto.
6333 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6334 one entry, not bfd_count_sections entries.
6335
6336 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6337
6338 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6339 `save' and `restore' register groups. Don't include SPL
6340 or SPH in these groups.
6341 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6342 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6343 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6344 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6345 dwarf2_append_unwinders().
6346
6347 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6348
6349 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6350 ignore SIGINT and SIGTRAP in case these internal signals are
6351 caught explicitely.
6352
6353 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6354
6355 * darwin-nat.c (darwin_read_write_inferior): Change types
6356 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6357 of copy_count to "mach_msg_type_number_t".
6358 (darwin_read_dyld_info): Change type of parameter
6359 rdaddr to "gdb_byte *".
6360
6361 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6362
6363 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6364 of &info->load_map from "char *" to "gdb_byte *".
6365
6366 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6367
6368 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6369 from "char *" to "gdb_byte *".
6370 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6371
6372 2013-04-30 Doug Evans <dje@google.com>
6373
6374 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6375 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6376 DWO stub. If DWO isn't found, just use stub.
6377 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6378
6379 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6380 calling init_cutu_and_read_dies.
6381
6382 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6383
6384 * target-descriptions.c (maint_print_c_tdesc_cmd):
6385 Add case to parse structures as register types and
6386 bitfields.
6387
6388 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6389
6390 * MAINTAINERS (Write After Approval): Add myself to the list.
6391
6392 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6393
6394 * sol-thread.c (rw_common): Change type of parameter "buf"
6395 to "gdb_byte *".
6396 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6397 rw_common to "gdb_byte *" instead of "char *".
6398
6399 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6400
6401 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6402 of local variable msym to const struct bound_minimal_symbol.
6403 Adjust use accordingly.
6404 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6405
6406 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6407
6408 * i386gnu-nat.c (CREG_OFFSET): New macro.
6409 (creg_offset): New array.
6410 (CREG_ADDR): Use creg_offset instead of reg_offset.
6411
6412 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6413
6414 * mep-tdep.c (mep_write_pc): Delete.
6415 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6416 Add call to set_gdbarch_pc_regnum.
6417
6418 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6419
6420 * common/filestuff.c: Replace #include <dirent.h> by
6421 #include "gdb_dirent.h".
6422
6423 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6424
6425 * common/filestuff.c: Replace #include <sys/stat.h> by
6426 #include "gdb_stat.h".
6427
6428 2013-04-29 Pierre Muller <muller@sourceware.org>
6429
6430 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6431 editCase function rule.
6432 (get_DW_AT_signature_type): Likewise.
6433
6434 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6435
6436 * m32r-tdep.c (m32r_write_pc): Delete.
6437 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6438 Add call to set_gdbarch_pc_regnum.
6439
6440 2013-04-29 Pierre Muller <muller@sourceware.org>
6441
6442 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6443
6444 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6445
6446 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6447
6448 2013-04-28 Yao Qi <yao@codesourcery.com>
6449
6450 * solib-dsbt.c (fetch_loadmap): Re-indent.
6451 (displacement_from_map, enable_break2): Likewise.
6452 (dsbt_relocate_section_addresses): Likewise.
6453
6454 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6455
6456 GDB 7.6 released.
6457
6458 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6459
6460 PR corefiles/14983:
6461 * dwarf2read.c (process_full_comp_unit): Always create a static
6462 block.
6463
6464 2013-04-25 Hui Zhu <hui@codesourcery.com>
6465
6466 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6467 to loc->cmd_bytecode.
6468
6469 2013-04-24 Doug Evans <dje@google.com>
6470
6471 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6472
6473 2013-04-22 Keith Seitz <keiths@redhat.com>
6474
6475 * tracepoint.c (trace_save): Call the writer's start method.
6476
6477 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6478
6479 PR gdb/10462
6480 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6481 before argument.
6482
6483 2013-04-23 Tom Tromey <tromey@redhat.com>
6484
6485 * common/filestuff.c: Check USE_WIN32API before including
6486 sys/socket.h.
6487 (HAVE_F_GETFD): New define.
6488 (mark_cloexec): Check HAVE_F_GETFD.
6489 (gdb_open_cloexec): Change 'mode' to unsigned long.
6490 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6491 (gdb_pipe_cloexec): Check HAVE_PIPE.
6492 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6493 long.
6494
6495 2013-04-23 Hui Zhu <hui@codesourcery.com>
6496
6497 PR gdb/15293
6498 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6499
6500 2013-04-23 Hui Zhu <hui@codesourcery.com>
6501
6502 PR gdb/15165
6503 * breakpoint.c (dprintf_print_recreate): New.
6504 (save_breakpoints): Let it not save dprintf commands.
6505 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6506
6507 2013-04-22 Tom Tromey <tromey@redhat.com>
6508
6509 PR gdb/7912:
6510 * Makefile.in (SFILES): Add filestuff.c
6511 (COMMON_OBS): Add filestuff.o.
6512 (filestuff.o): New target.
6513 * auto-load.c (auto_load_objfile_script_1): Use
6514 gdb_fopen_cloexec.
6515 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6516 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6517 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6518 * common/agent.c (gdb_connect_sync_socket): Use
6519 gdb_socket_cloexec.
6520 * common/filestuff.c: New file.
6521 * common/filestuff.h: New file.
6522 * common/linux-osdata.c (linux_common_core_of_thread)
6523 (command_from_pid, commandline_from_pid, print_source_lines)
6524 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6525 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6526 gdb_fopen_cloexec.
6527 * common/linux-procfs.c (linux_proc_get_int)
6528 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6529 * config.in, configure: Rebuild.
6530 * configure.ac: Don't check for sys/socket.h. Check for
6531 fdwalk, pipe2.
6532 * corelow.c (core_open): Use gdb_open_cloexec.
6533 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6534 * fork-child.c (fork_inferior): Call close_most_fds.
6535 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6536 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6537 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6538 Use gdb_fopen_cloexec.
6539 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6540 gdb_open_cloexec.
6541 (linux_async_pipe): Use gdb_pipe_cloexec.
6542 * remote-fileio.c (remote_fileio_func_open): Use
6543 gdb_open_cloexec.
6544 * remote.c (remote_file_put, remote_file_get): Use
6545 gdb_fopen_cloexec.
6546 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6547 close_most_fds.
6548 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6549 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6550 * solib.c (solib_find): Use gdb_open_cloexec.
6551 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6552 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6553 (tfile_open): Use gdb_open_cloexec.
6554 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6555 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6556 * xml-support.c (xml_fetch_content_from_file): Use
6557 gdb_fopen_cloexec.
6558 * main.c (captured_main): Call notice_open_fds.
6559
6560 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6561
6562 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6563 'char *' to 'gdb_byte *'.
6564 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6565 'gdb_byte'.
6566
6567 2013-04-22 Yao Qi <yao@codesourcery.com>
6568
6569 * infrun.c: Fix typo in comment.
6570
6571 2013-04-22 Andrew Haley <aph@redhat.com>
6572
6573 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6574 instead of "long".
6575
6576 2013-04-20 Yao Qi <yao@codesourcery.com>
6577
6578 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6579 'char *' to 'gdb_byte *'. Cast the return value of
6580 'bt_ctf_get_char_array' to 'gdb_byte *'.
6581
6582 2013-04-19 Pedro Alves <palves@redhat.com>
6583
6584 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6585 -Wpointer-sign.
6586 * configure: Regenerate.
6587
6588 2013-04-19 Pedro Alves <palves@redhat.com>
6589
6590 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6591 'void *'.
6592
6593 2013-04-19 Pedro Alves <palves@redhat.com>
6594
6595 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6596 Change type of 'myaddr' parameter to gdb_byte pointer.
6597 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6598 to 'long long' pointer instead of to 'unsigned long long'.
6599 (monitor_write_memory_block, monitor_read_memory_single)
6600 (monitor_read_memory): Change type of 'myaddr' parameter to
6601 gdb_byte pointer.
6602
6603 2013-04-19 Pedro Alves <palves@redhat.com>
6604
6605 * record.c (validate_history_size): Make parameter 'setting'
6606 unsigned.
6607
6608 2013-04-19 Pedro Alves <palves@redhat.com>
6609
6610 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6611 to 'gdb_byte *'.
6612
6613 2013-04-19 Pedro Alves <palves@redhat.com>
6614
6615 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6616 local to int.
6617
6618 2013-04-19 Pedro Alves <palves@redhat.com>
6619
6620 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6621 * ada-tasks.c (read_fat_string_value): Likewise.
6622
6623 2013-04-19 Pedro Alves <palves@redhat.com>
6624
6625 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6626 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6627 'offset', and adjust.
6628
6629 2013-04-19 Pedro Alves <palves@redhat.com>
6630
6631 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6632 (read_index_from_section): Add cast to 'char *'.
6633
6634 2013-04-19 Pedro Alves <palves@redhat.com>
6635
6636 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6637
6638 2013-04-19 Pedro Alves <palves@redhat.com>
6639
6640 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6641
6642 2013-04-19 Pedro Alves <palves@redhat.com>
6643
6644 * record-full.c (record_full_get_bookmark): Change local 'ret'
6645 type to char * and add cast to gdb_byte *.
6646 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6647 string.
6648 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6649
6650 2013-04-19 Pedro Alves <palves@redhat.com>
6651
6652 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6653 * python/py-prettyprint.c (print_string_repr): Change type of
6654 'output' local to char *. Add cast to gdb_byte * in
6655 LA_PRINT_STRING call.
6656 (print_children): Change type of 'output' local to char *.
6657 * python/py-value.c (valpy_string): Add cast to const char * in
6658 PyUnicode_Decode call.
6659
6660 2013-04-19 Pedro Alves <palves@redhat.com>
6661
6662 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6663 and change its type to 'const char *'. Adjust.
6664 (mips_send_packet): Add cast to 'char *', and remove cast to
6665 'unsigned char *'.
6666 (mips_receive_packet): Remove cast to 'unsigned char *'.
6667 (mips_load_srec): Use bfd_byte.
6668 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6669 (pmon_checkset): Make 'value' parameter unsigned.
6670
6671 2013-04-19 Pedro Alves <palves@redhat.com>
6672
6673 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6674
6675 2013-04-19 Pedro Alves <palves@redhat.com>
6676
6677 * remote.c (remote_write_bytes_aux, compare_sections_command)
6678 (remote_read_qxfer)
6679 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6680 (remote_hostio_readlink, remote_bfd_iovec_pread)
6681 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6682 binary buffer, and char when buffer is used as string.
6683 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6684 (trace_save, tfile_open, traceframe_walk_blocks)
6685 (tfile_fetch_registers): Likewise.
6686
6687 2013-04-19 Pedro Alves <palves@redhat.com>
6688
6689 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6690 buffer and size_t size. Adjust.
6691 * ser-base.h (ser_base_write): Adjust.
6692 * ser-go32.c (cnts): Change type to size_t.
6693 (dos_write): Change prototype -- take 'void *'
6694 buffer and size_t size. Adjust.
6695 (dos_info): Print elements of 'cnts' as unsigned long.
6696 * serial.c (serial_write): Likewise.
6697 * serial.h (serial_write): Adjust.
6698 (struct serial_ops) <write>: Change prototype -- take 'void *'
6699 buffer and size_t size. Adjust.
6700
6701 2013-04-19 Pedro Alves <palves@redhat.com>
6702
6703 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6704 gdb_byte *.
6705 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6706
6707 2013-04-19 Pedro Alves <palves@redhat.com>
6708
6709 * alpha-tdep.c (alpha_extract_return_value): Use
6710 regcache_cooked_read_unsigned to read 'v0'.
6711
6712 2013-04-19 Pedro Alves <palves@redhat.com>
6713
6714 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6715 parameters 'at', 'as' and 'offset' to uint32_t.
6716
6717 2013-04-19 Pedro Alves <palves@redhat.com>
6718
6719 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6720 'is64' to signed 'int'.
6721
6722 2013-04-19 Pedro Alves <palves@redhat.com>
6723
6724 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6725 parameter to int *.
6726
6727 2013-04-19 Pedro Alves <palves@redhat.com>
6728
6729 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6730 'insnbuf' buffer type to unsigned int[].
6731
6732 2013-04-19 Pedro Alves <palves@redhat.com>
6733
6734 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6735
6736 2013-04-19 Pedro Alves <palves@redhat.com>
6737
6738 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6739 unsigned long *.
6740
6741 2013-04-19 Pedro Alves <palves@redhat.com>
6742
6743 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6744 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6745 UINT_MAX.
6746 * mips-tdep.c (heuristic_fence_post): Change type to int.
6747 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6748
6749 2013-04-19 Pedro Alves <palves@redhat.com>
6750
6751 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6752 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6753 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6754
6755 2013-04-19 Pedro Alves <palves@redhat.com>
6756
6757 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6758 it to get a string view of the byte buffer.
6759 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6760 type to gdb_byte *. Adjust.
6761 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6762 Change local to char *.
6763 * solib-darwin.c (find_program_interpreter): Change return type to
6764 char *. Adjust.
6765 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6766 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6767 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6768 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6769 * solib-svr4.c (find_program_interpreter): Change return type to
6770 char *. Adjust.
6771 (enable_break): Change local 'interp_name' to char *.
6772 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6773 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6774 (spu_pseudo_register_write_spu): Use char for string buffer.
6775 Adjust.
6776 (info_spu_event_command, info_spu_signal_command): Add casts to
6777 'char *'.
6778
6779 2013-04-19 Pedro Alves <palves@redhat.com>
6780
6781 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6782 gdb_byte[].
6783 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6784 * ada-lang.c (ada_value_assign): Use gdb_byte.
6785 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6786 (alphanbsd_sigtramp_offset): Use gdb_byte.
6787 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6788 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6789 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6790 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6791 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6792 * arm-tdep.c (arm_stub_unwind_sniffer)
6793 (arm_displaced_init_closure): Use gdb_byte.
6794 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6795 (arm_default_thumb_le_breakpoint)
6796 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6797 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6798 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6799 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6800 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6801 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6802 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6803 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6804 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6805 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6806 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6807 (cris_store_return_value, cris_extract_return_value): Use
6808 gdb_byte.
6809 (constraint): Change type of parameter to char * from signed
6810 char*. Use gdb_byte.
6811 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6812 of local buffer to gdb_byte *.
6813 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6814 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6815 (add_address_entry): Change type of local buffer to gdb_byte[].
6816 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6817 (frv_push_dummy_call): Use gdb_byte.
6818 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6819 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6820 (hppa_hpux_supply_save_state): Use gdb_byte.
6821 * hppa-tdep.c (hppa32_push_dummy_call)
6822 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6823 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6824 (slotN_contents, replace_slotN_contents): Change type of parameter
6825 to gdb_byte *.
6826 (fetch_instruction, ia64_pseudo_register_write)
6827 (ia64_register_to_value, ia64_value_to_register)
6828 (ia64_extract_return_value, ia64_store_return_value)
6829 (ia64_push_dummy_call): Use gdb_byte.
6830 * m32c-tdep.c (m32c_return_value): Remove cast.
6831 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6832 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6833 gdb_byte.
6834 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6835 * mn10300-tdep.c (mn10300_store_return_value)
6836 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6837 gdb_byte.
6838 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6839 (moxie_process_record): Remove casts.
6840 * ppc-ravenscar-thread.c (supply_register_at_address)
6841 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6842 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6843 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6844 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6845 * remote.c (compare_sections_command): Use gdb_byte.
6846 * score-tdep.c (score7_free_memblock): Change type of parameter to
6847 gdb_byte *.
6848 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6849 gdb_byte *. Use gdb_byte.
6850 (sh_push_dummy_call_fpu): Use gdb_byte.
6851 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6852 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6853 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6854 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6855 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6856 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6857 (sh64_store_return_value, sh64_register_convert_to_virtual):
6858 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6859 (sh64_pseudo_register_write): Use gdb_byte.
6860 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6861 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6862 buffer.
6863 (irix_current_sos): Use gdb_byte.
6864 * solib-som.c (som_current_sos): Use gdb_byte.
6865 * sparc-ravenscar-thread.c (supply_register_at_address)
6866 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6867 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6868 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6869 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6870 'gdb_byte *'.
6871 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6872 'gdb_byte *'.
6873 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6874 * xstormy16-tdep.c (xstormy16_extract_return_value)
6875 (xstormy16_store_return_value): Change parameter type to
6876 'gdb_byte *'. Adjust.
6877 (xstormy16_push_dummy_call): Use gdb_byte.
6878 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6879 (call0_analyze_prologue, execute_code): Use gdb_byte.
6880
6881 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6882 Pedro Alves <palves@redhat.com>
6883
6884 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6885 value contents.
6886
6887 2013-04-17 Doug Evans <dje@google.com>
6888
6889 * dwarf2read.c (struct signatured_type): New member type.
6890 (struct attribute): Replace member signatured_type with signature.
6891 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6892 (read_call_site_scope): Call follow_die_ref instead of
6893 follow_die_ref_or_sig.
6894 (read_structure_type): Rewrite handling of signatured types.
6895 (read_enumeration_type): Ditto.
6896 (read_attribute_value): Update.
6897 (build_error_marker_type): New function.
6898 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6899 Don't call error for bad types, just build an error marker type.
6900 (dump_die_shallow): Update.
6901 (follow_die_sig_1): Renamed from follow_die_sig.
6902 Don't call error for bad types, instead return NULL.
6903 (follow_die_sig): New function.
6904 (get_signatured_type, get_DW_AT_signature_type): New functions.
6905
6906 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6907
6908 * aarch64-tdep.c (aarch64_write_pc): Removed.
6909 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6910 function.
6911
6912 2013-04-17 Yao Qi <yao@codesourcery.com>
6913
6914 * top.c (print_gdb_configuration): Print configure-time
6915 parameter on using libbabeltrace or not.
6916
6917 2013-04-16 Pedro Alves <palves@redhat.com>
6918
6919 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6920
6921 2013-04-16 Pedro Alves <palves@redhat.com>
6922
6923 * common/glibc_thread_db.h: Update from upstream glibc
6924 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6925
6926 2013-04-16 Pedro Alves <palves@redhat.com>
6927
6928 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6929 * common/glibc_thread_db.h: ... this new file ...
6930 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6931
6932 2013-04-16 Will Newton <will.newton@gmail.com>
6933 Pedro Alves <palves@redhat.com>
6934
6935 PR build/11881
6936
6937 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6938 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6939 HAVE_THREAD_DB_H.
6940
6941 2013-04-16 Pedro Alves <palves@redhat.com>
6942 Eli Zaretskii <eliz@gnu.org>
6943
6944 * NEWS: Mention "set foo unlimited".
6945
6946 2013-04-15 Doug Evans <dje@google.com>
6947
6948 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6949 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6950 (create_dwo_cu_reader): Renamed from
6951 create_dwo_debug_info_hash_table_reader.
6952 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6953 Remove support for multiple CUs in a DWO file.
6954 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6955
6956 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6957 instead of phex.
6958 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6959 (create_dwo_in_dwp): Ditto.
6960
6961 2013-04-15 Tom Tromey <tromey@redhat.com>
6962
6963 * NEWS: Move recent entries into "since 7.6" section.
6964
6965 2013-04-15 Tom Tromey <tromey@redhat.com>
6966
6967 PR c++/13588:
6968 * NEWS: Update.
6969 * break-catch-throw.c (struct exception_catchpoint)
6970 <exception_rx, pattern>: New fields.
6971 (fetch_probe_arguments, dtor_exception_catchpoint)
6972 (check_status_exception_catchpoint)
6973 (print_one_detail_exception_catchpoint): New functions.
6974 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6975 Compile regular expression if needed.
6976 (extract_exception_regexp): New function.
6977 (catch_exception_command_1): Use extract_exception_regexp.
6978 (compute_exception): Use fetch_probe_arguments.
6979 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6980 and check_status fields.
6981 * cp-abi.c (cplus_typename_from_type_info): New function.
6982 * cp-abi.h (cplus_typename_from_type_info): Declare.
6983 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6984 * gdb_regex.h (compile_rx_or_error): Declare.
6985 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6986 comment.
6987 (init_gnuv3_ops): Set get_type_from_type_info field.
6988 * probe.c (compile_rx_or_error): Move...
6989 * utils.c (compile_rx_or_error): ... here.
6990
6991 2013-04-15 Tom Tromey <tromey@redhat.com>
6992
6993 PR c++/15176:
6994 * NEWS: Update.
6995 * break-catch-throw.c (compute_exception): New function.
6996 (exception_funcs): New global.
6997 (_initialize_break_catch_throw): Create $_exception.
6998 * cp-abi.c (cplus_type_from_type_info): New function.
6999 * cp-abi.h (cplus_type_from_type_info): Declare.
7000 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7001 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7002 (gnuv3_get_type_from_type_info): New functions.
7003 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7004
7005 2013-04-15 Tom Tromey <tromey@redhat.com>
7006
7007 * break-catch-throw.c (struct exception_names): New.
7008 (exception_functions): Change type.
7009 (re_set_exception_catchpoint): Look for SDT probes.
7010
7011 2013-04-15 Tom Tromey <tromey@redhat.com>
7012
7013 PR c++/10119:
7014 * break-catch-throw.c (exception_functions): New global.
7015 (gnu_v3_exception_catchpoint_ops): Move earlier.
7016 (struct exception_catchpoint): New.
7017 (classify_exception_breakpoint): Rewrite.
7018 (re_set_exception_catchpoint): New function.
7019 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7020 Allocate a struct exception_catchpoint.
7021 (catch_exception_command_1): Update.
7022 (initialize_throw_catchpoint_ops): Set 're_set' method.
7023
7024 2013-04-15 Tom Tromey <tromey@redhat.com>
7025
7026 * Makefile.in (SFILES): Add break-catch-throw.c
7027 (COMMON_OBS): Add break-catch-throw.o.
7028 * break-catch-throw.c: New file.
7029 * breakpoint.c: Move exception-catching code to new file.
7030 (ep_parse_optional_if_clause): No longer static.
7031 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7032
7033 2013-04-15 Tom Tromey <tromey@redhat.com>
7034
7035 PR c++/9065:
7036 * NEWS: Update.
7037 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7038 * c-exp.y (TYPEID): New token.
7039 (exp): Add new TYPEID productions.
7040 (ident_tokens): Add "typeid".
7041 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7042 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7043 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7044 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7045 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7046 case.
7047 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7048 (build_std_type_info_type, gnuv3_get_typeid_type)
7049 (gnuv3_get_typeid): New functions.
7050 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7051 new fields on ABI object.
7052 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7053 * std-operator.def (OP_TYPEID): New.
7054
7055 2013-04-15 Tom Tromey <tromey@redhat.com>
7056
7057 * elfread.c (elf_symtab_read): Install versioned symbol under
7058 unversioned name as well.
7059
7060 2013-04-15 Tom Tromey <tromey@redhat.com>
7061
7062 PR c++/11990:
7063 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7064 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7065 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7066 (gdb_demangle): New function.
7067 * cp-support.h (gdb_demangle): Declare.
7068 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7069 (dwarf2_name): Use gdb_demangle.
7070 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7071 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7072 suffixes from name.
7073 (gnuv3_print_method_ptr): Use gdb_demangle.
7074 * jv-lang.c (java_demangle): Use gdb_demangle.
7075 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7076 * language.c (unk_lang_demangle): Use gdb_demangle.
7077 * symtab.c (symbol_find_demangled_name)
7078 (demangle_for_lookup): Use gdb_demangle.
7079
7080 2013-04-15 Tom Tromey <tromey@redhat.com>
7081
7082 PR c++/12824:
7083 * NEWS: Update.
7084 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7085 New constant.
7086 (classify_exception_breakpoint): New function.
7087 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7088 (print_mention_exception_catchpoint)
7089 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7090 (catch_exception_command_1): Handle "rethrow" catchpoint.
7091 (catch_rethrow_command): New function.
7092 (_initialize_breakpoint): Add "catch rethrow" command.
7093
7094 2013-04-15 Pierre Muller <muller@sourceware.org>
7095
7096 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7097 set_gdbarch_write_pc as deprecated anymore.
7098
7099 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7100
7101 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7102 declarations.
7103
7104 2013-04-13 Yao Qi <yao@codesourcery.com>
7105
7106 * ctf.c (_initialize_ctf): Include "completer.h".
7107 Call add_target_with_completer instead of add_target.
7108
7109 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7110
7111 Fix GDB regression related to PR binutils/14813.
7112 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7113 * minidebug.c (lzma_close): Add return value comment.
7114 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7115 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7116 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7117
7118 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7119
7120 * config.in: Regenerate.
7121
7122 2013-04-12 Tom Tromey <tromey@redhat.com>
7123
7124 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7125 const.
7126 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7127 (struct die_reader_specs) <buffer>: Likewise.
7128 (die_reader_func_ftype): Make 'info_ptr' const.
7129 (struct line_header) <include_dirs, statement_program_start,
7130 statement_program_end>: Now const.
7131 (struct file_entry) <name>: Likewise.
7132 (struct partial_die_info) <sibling>: Likewise.
7133 (struct dwarf_block) <data>: Likewise.
7134 (dwarf2_read_section): Remove cast.
7135 (dwarf2_get_section_info): Make 'bufp' const.
7136 (read_index_from_section): Constify.
7137 (dw2_get_file_names_reader): Make 'info_ptr' const.
7138 (dw2_get_primary_filename_reader): Likewise.
7139 (read_comp_unit_head): Make 'info_ptr' and return type const.
7140 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7141 Likewise.
7142 (read_abbrev_offset): Constify.
7143 (dwarf2_create_include_psymtab): Make 'name' const.
7144 (create_debug_types_hash_table): Update.
7145 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7146 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7147 Constify.
7148 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7149 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7150 (read_comp_units_from_section): Constify.
7151 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7152 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7153 const.
7154 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7155 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7156 (create_dwp_hash_table, dwarf2_ranges_read)
7157 (dwarf2_record_block_ranges): Constify.
7158 (read_die_and_children, read_die_and_siblings_1)
7159 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7160 const.
7161 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7162 (abbrev_table_read_table): Constify.
7163 (load_partial_dies): Make 'info_ptr' const.
7164 (read_partial_die, read_attribute_value, read_attribute): Make
7165 'info_ptr' and return type const.
7166 (read_address, read_initial_length)
7167 (read_checked_initial_length_and_offset, read_offset)
7168 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7169 const.
7170 (read_direct_string): Make 'buf' and return type const.
7171 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7172 (read_indirect_string): Make return type const.
7173 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7174 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7175 'info_ptr' const.
7176 (read_str_index): Make return type const.
7177 (add_include_dir): Make 'include_dir' const.
7178 (add_file_name): Make 'name' const.
7179 (dwarf_decode_line_header): Constify.
7180 (psymtab_include_file_name): Make return type const.
7181 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7182 (dwarf2_start_subfile): Make 'filename' const.
7183 (dwarf2_const_value_attr): Make 'bytes' const.
7184 (read_signatured_type_reader): Make 'info_ptr' const.
7185 (decode_locdesc): Constify.
7186 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7187 const.
7188 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7189 'mac_end', and return type const.
7190 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7191 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7192 type const.
7193 (per_cu_header_read_in): Constify.
7194 * symfile.h (dwarf2_get_section_info): Update.
7195
7196 2013-04-12 Tom Tromey <tromey@redhat.com>
7197
7198 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7199
7200 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7201
7202 * NEWS: Mention "show configuration", --configuration.
7203 * top.c (print_gdb_configuration): New function, displays the
7204 details about GDB configure-time parameters.
7205 (print_gdb_version): Mention "show configuration".
7206 * cli/cli-cmds.c (show_configuration): New function.
7207 (_initialize_cli_cmds): Add the "show configuration" command.
7208 * main.c (captured_main) <print_configuration>: New static var.
7209 <long_options>: Use it.
7210 If --configuration was given, call print_gdb_configuration.
7211
7212 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7213 Pedro Alves <palves@redhat.com>
7214
7215 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7216 (generated_files): Add gcore.
7217 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7218 HAVE_NATIVE_GCORE_HOST.
7219 (gcore): New.
7220 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7221 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7222 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7223 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7224 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7225 Add HAVE_NATIVE_GCORE_HOST.
7226 * configure: Regenerate.
7227 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7228 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7229 AC_CONFIG_FILES for gcore.
7230 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7231 gdb_have_gcore.
7232 * gdb_gcore.sh: Rename to ...
7233 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7234 and GCORE_TRANSFORM_NAME substitutions.
7235
7236 Fix parsing tabs in ${gdb_target_obs}.
7237 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7238
7239 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7240
7241 * remote.c (unpush_and_perror): Add output message final dot.
7242
7243 2013-04-11 Yao Qi <yao@codesourcery.com>
7244
7245 * tracepoint.c (tfile_interp_line): Fit parameters line and
7246 utpp in one line.
7247
7248 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7249
7250 * solib.c (solib_map_sections): Remove code overwriting
7251 SO->SO_NAME with the bfd's filename.
7252
7253 2013-04-10 Pedro Alves <palves@redhat.com>
7254
7255 * cli/cli-decode.c (integer_unlimited_completer): New function.
7256 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7257 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7258 completer.
7259 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7260 (is_unlimited_literal): New function.
7261 (do_set_command): Handle literal "unlimited" arguments.
7262 * frame.c (_initialize_frame) <set backtrace limit>: Document
7263 "unlimited".
7264 * printcmd.c (_initialize_printcmd) <set print
7265 max-symbolic-offset>: Add help text.
7266 * record-full.c (_initialize_record_full) <set record full
7267 insn-number-max>: Likewise.
7268 * record.c (_initialize_record) <set record
7269 instruction-history-size, set record function-call-history-size>:
7270 Add help text.
7271 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7272 help text.
7273 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7274 Likewise.
7275 * source.c (_initialize_source) <set listsize>: Add help text.
7276 * utils.c (initialize_utils) <set height, set width>: Likewise.
7277 <set pagination>: Mention "set height unlimited".
7278 * valprint.c (_initialize_valprint) <set print elements, set print
7279 repeats>: Document "unlimited".
7280
7281 2013-04-10 Pedro Alves <palves@redhat.com>
7282
7283 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7284 instead of disconnect_tracing.
7285 * infcmd.c (detach_command, disconnect_command): Call
7286 query_if_trace_running. Adjust.
7287 * top.c: Include "tracepoint.h".
7288 (quit_target): Delete. Contents moved ...
7289 (quit_force): ... here. Wrap each stage of teardown in
7290 TRY_CATCH. Call disconnect_tracing before detaching.
7291
7292 2013-04-10 Hui Zhu <hui@codesourcery.com>
7293 Yao Qi <yao@codesourcery.com>
7294
7295 * configure.ac: Check libbabeltrace is installed.
7296 * config.in: Regenerate.
7297 * configure: Regenerate.
7298 * Makefile.in (LIBBABELTRACE): New.
7299 (CLIBS): Add LIBBABELTRACE.
7300 * ctf.c: Include "exec.h".
7301 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7302 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7303 (ctf_save_metadata_header): Define new type aliases in
7304 metadata.
7305 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7306 in metadata. Start a new faked packet for trace status.
7307 (ctf_write_status): Write trace status to CTF.
7308 (ctf_write_uploaded_tsv): Write TSV to CTF.
7309 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7310 (ctf_write_definition_end): End the faked packet.
7311
7312 (ctx, ctf_iter, trace_dirname): New.
7313 (start_pos): New variable.
7314 (ctf_destroy, ctf_open_dir, ctf_open): New.
7315 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7316 macros.
7317 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7318 (ctf_fetch_registers, ctf_xfer_partial): New.
7319 (ctf_get_trace_state_variable_value): New.
7320 (ctf_get_tpnum_from_frame_event): New.
7321 (ctf_get_traceframe_address): New.
7322 (ctf_trace_find, ctf_has_stack): New.
7323 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7324 (ctf_get_trace_status, ctf_read_status): New.
7325 (_initialize_ctf): New.
7326 * tracepoint.c (get_tracepoint_number): New
7327 (get_uploaded_tsv): Remove 'static'.
7328 (struct traceframe_info, trace_regblock_size): Move it to ...
7329 * tracepoint.h: ... here.
7330 (get_tracepoint_number): Declare it.
7331 (get_uploaded_tsv): Declare it.
7332
7333 * NEWS: Mention new configure option.
7334
7335 2013-04-10 Pedro Alves <palves@redhat.com>
7336 Hui Zhu <hui@codesourcery.com>
7337
7338 * breakpoint.c (dprintf_re_set): New.
7339 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7340 to dprintf_re_set.
7341
7342 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7343
7344 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7345 Remove solib-svr4.o from the list.
7346
7347 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7348
7349 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7350 Use gdb_assert_not_reached instead of invalid boolean expression.
7351
7352 2013-04-09 Pedro Alves <palves@redhat.com>
7353
7354 * remote.c (unpush_and_perror): New function.
7355 (readchar, remote_serial_write): Use it.
7356
7357 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7358
7359 * NEWS: Mention new btrace RSP packets.
7360
7361 2013-04-08 Tom Tromey <tromey@redhat.com>
7362
7363 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7364 long.
7365
7366 2013-04-08 Tom Tromey <tromey@redhat.com>
7367
7368 * maint.c (print_bfd_section_info): Print the section index.
7369 * symmisc.c (dump_msymbols): Print the section index.
7370
7371 2013-04-08 Tom Tromey <tromey@redhat.com>
7372
7373 PR symtab/8424:
7374 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7375 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7376 * breakpoint.c (resolve_sal_pc): Update.
7377 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7378 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7379 (minsym_lookup_iterator_cb): Use it.
7380 (default_read_var_value): Update.
7381 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7382 Update.
7383 * infcmd.c (jump_command): Update.
7384 * linespec.c (minsym_found): Update.
7385 * maint.c (maintenance_translate_address): Update.
7386 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7387 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7388 * parse.c (write_exp_msymbol): Update.
7389 * printcmd.c (address_info): Update.
7390 * psymtab.c (find_pc_sect_psymbol): Update.
7391 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7392 SYMBOL_OBJ_SECTION.
7393 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7394 Don't initialize SYMBOL_OBJ_SECTION.
7395 * spu-tdep.c (spu_catch_start): Update.
7396 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7397 * symmisc.c (dump_msymbols, print_symbol): Update.
7398 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7399 how fallback section is computed.
7400 (fixup_symbol_section): Update.
7401 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7402 Update.
7403 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7404 Initialize SYMBOL_SECTION.
7405 * symtab.h (struct general_symbol_info) <section>: Update comment.
7406 <obj_section>: Remove.
7407 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7408 (SYMBOL_OBJFILE): New macro.
7409
7410 2013-04-08 Tom Tromey <tromey@redhat.com>
7411
7412 * coffread.c (record_minimal_symbol): Update.
7413 * dbxread.c (record_minimal_symbol): Update.
7414 * elfread.c (record_minimal_symbol): Update.
7415 * machoread.c (macho_symtab_add_minsym): Update.
7416 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7417 Update.
7418 * minsyms.c (prim_record_minimal_symbol): Update.
7419 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7420 argument.
7421 (prim_record_minimal_symbol_and_info): Likewise.
7422 * minsyms.h (prim_record_minimal_symbol_full)
7423 (prim_record_minimal_symbol_and_info): Update.
7424 * symtab.c (allocate_symbol, initialize_symbol)
7425 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7426 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7427 Update.
7428
7429 2013-04-08 Tom Tromey <tromey@redhat.com>
7430
7431 PR symtab/8423:
7432 * solib-som.c (som_solib_section_offsets): Use BFD section
7433 indices. Set offsets for all sections.
7434 * somread.c (som_symtab_read): Compute BFD section for
7435 symbol. Use prim_record_minimal_symbol_and_info.
7436 (som_symfile_read): Fix comment.
7437 (struct find_section_offset_arg): New.
7438 (find_section_offset, set_section_index): New functions.
7439 (som_symfile_offsets): Use set_section_index to compute
7440 section indices.
7441
7442 2013-04-08 Tom Tromey <tromey@redhat.com>
7443
7444 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7445 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7446 gdb_bfd_section_index.
7447 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7448 New functions.
7449 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7450 Declare.
7451 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7452 Update.
7453 * objfiles.c (add_to_objfile_sections_full): New function.
7454 (add_to_objfile_sections): Use it.
7455 (build_section_table): Rewrite.
7456 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7457 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7458 (struct objfile) <sections>: Update comment.
7459 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7460 is NULL.
7461 (ALL_OBJSECTIONS): Use it.
7462 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7463 * solib-frv.c (frv_relocate_main_executable): Update.
7464 * solib-target.c (solib_target_relocate_section_addresses):
7465 Use gdb_bfd_section_index.
7466 * symfile.c (build_section_addr_info_from_section_table):
7467 Use gdb_bfd_section_index.
7468 (build_section_addr_info_from_bfd, place_section): Likewise.
7469 * symtab.c (fixup_section): Update.
7470 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7471
7472 2013-04-08 Tom Tromey <tromey@redhat.com>
7473
7474 * minsyms.h (struct bound_minimal_symbol): New.
7475 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7476 Remove objfile argument.
7477 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7478 Return bound_minimal_symbol.
7479 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7480 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7481 Return bound_minimal_symbol.
7482 (in_gnu_ifunc_stub): Update.
7483 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7484 Remove 'objfile_p' argument.
7485 (lookup_solib_trampoline_symbol_by_pc): Update.
7486 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7487 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7488 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7489 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7490 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7491 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7492 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7493 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7494 stack.c, symtab.c, tui/tui-disasm.c: Update.
7495
7496 2013-04-08 Tom Tromey <tromey@redhat.com>
7497
7498 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7499 Use symbol's obstack, not an objfile.
7500 * coffread.c (process_coff_symbol): Update.
7501 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7502 * jv-lang.c (add_class_symbol): Update.
7503 * mdebugread.c (new_symbol): Update.
7504 * minsyms.c (prim_record_minimal_symbol_full)
7505 (terminate_minimal_symbol_table): Update.
7506 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7507 * stabsread.c (define_symbol, read_enum_type): Update.
7508 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7509 Handle Ada specially.
7510 (symbol_set_language): Add 'obstack' argument.
7511 (symbol_set_names): Update.
7512 (symbol_natural_name, symbol_demangled_name): Always use
7513 ada_decode_symbol.
7514 * symtab.h (struct general_symbol_info)
7515 <language_specific::obstack>: New field.
7516 <ada_mangled>: New field.
7517 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7518 (symbol_set_language): Update.
7519
7520 2013-04-08 Tom Tromey <tromey@redhat.com>
7521
7522 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7523 Take an obstack, not an objfile.
7524 (symbol_set_names): Update.
7525 * symtab.h (symbol_set_demangled_name): Update.
7526
7527 2013-04-08 Tom Tromey <tromey@redhat.com>
7528
7529 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7530 allocate_symbol.
7531 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7532 (read_func_scope): Call allocate_template_symbol.
7533 (new_symbol_full): Call allocate_symbol.
7534 * jit.c (finalize_symtab): Call allocate_symbol.
7535 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7536 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7537 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7538 (common_block_end): Call allocate_symbol.
7539 * symtab.c (allocate_symbol, initialize_symbol)
7540 (allocate_template_symbol): New functions.
7541 * symtab.c (allocate_symbol, initialize_symbol)
7542 (allocate_template_symbol): Declare.
7543 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7544
7545 2013-04-08 Pedro Alves <palves@redhat.com>
7546 Keith Seitz <keiths@redhat.com>
7547
7548 * breakpoint.c (create_breakpoint): Rename
7549 "parse_condition_and_thread" parameter to "parse_arg". Update
7550 describing comment. If !PARSE_ARG, then error out if ARG is not
7551 the empty string after extracting the location.
7552 * breakpoint.h (create_breakpoint): Rename
7553 "parse_condition_and_thread" parameter to "parse_arg".
7554
7555 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7556
7557 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7558
7559 2013-04-07 Yao Qi <yao@codesourcery.com>
7560
7561 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7562 and 'addr2' to CORE_ADDR.
7563 * target.c (update_current_target): Update.
7564 * target.h (struct target_ops) <to_trace_find>: Change parameter
7565 type to CORE_ADDR.
7566 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7567 'addr2' to CORE_ADDR.
7568 (tfile_trace_find): Likewise.
7569 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7570 Change local variable 'addr' to type CORE_ADDR.
7571 * tracepoint.h (tfind_1): Update declaration.
7572
7573 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7574
7575 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7576 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7577 Include main.h.
7578
7579 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7580 here...
7581 * main.h (windows_get_absolute_argv0): ...to here.
7582
7583 2013-04-05 Doug Evans <dje@google.com>
7584
7585 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7586 (read_cutu_die_from_dwo): Add comments.
7587 (read_structure_type): Update comment.
7588 (read_enumeration_type, read_namespace_type): Update comment.
7589 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7590
7591 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7592
7593 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7594 * Makefile.in (gdb.z): Remove.
7595 (install-only): Remove $(man1dir) and gdb.1 installation.
7596 * gdb.1: Remove.
7597
7598 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7599
7600 Fix compatibility with Linux kernel 3.8.3.
7601 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7602 to more inner block. Remove parsing of NUMBER from outer block.
7603 Parse NUMBER only if KEYWORD has been identified.
7604
7605 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7606
7607 Fix variable name shadowing.
7608 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7609 filename to mapsfilename and update its uses.
7610
7611 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7612
7613 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7614 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7615 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7616 details of the problem.
7617
7618 2013-04-04 Pedro Alves <palves@redhat.com>
7619 Hui Zhu <hui@codesourcery.com>
7620
7621 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7622 tracepoint, reset its STEP_COUNT and call validate_actionline.
7623
7624 2013-04-03 Doug Evans <dje@google.com>
7625
7626 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7627 read_die_and_siblings.
7628 (read_die_and_siblings): New function.
7629 (read_cutu_die_from_dwo): Dump die if requested.
7630 (read_die_and_children): Call read_full_die_1 and
7631 read_die_and_siblings_1.
7632 (read_full_die): Dump die if requested.
7633
7634 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7635
7636 * dwarf2read.c (struct dwo_file): New member comp_dir.
7637 Rename member name to dwo_name. All uses updated.
7638 (hash_dwo_file): Include comp_dir in computation.
7639 (eq_dwo_file): Ditto.
7640 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7641 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7642
7643 * psymtab.c (read_psymtabs_with_fullname): Don't call
7644 psymtab_to_fullname if the basenames are different.
7645
7646 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7647
7648 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7649 New entry about "fullname" presence.
7650
7651 2013-04-03 Pedro Alves <palves@redhat.com>
7652
7653 * NEWS: Mention x86_64/Cygwin as new native configuration.
7654
7655 2013-04-02 Doug Evans <dje@google.com>
7656
7657 * dwarf2read.c (read_structure_type): Fix typo in comment.
7658
7659 2013-04-02 Pedro Alves <palves@redhat.com>
7660
7661 * NEWS: Mention "set/show debug aarch64", "set/show debug
7662 coff-pe-read" and "set/show debug mach-o".
7663
7664 2013-04-02 Pedro Alves <palves@redhat.com>
7665
7666 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7667
7668 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7669
7670 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7671 gdb_string.h is now in common/.
7672
7673 2013-04-02 Pedro Alves <palves@redhat.com>
7674
7675 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7676 under "New options".
7677
7678 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7679
7680 Revert this patch:
7681 PR gdb/15275
7682 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7683
7684 2013-04-02 Pedro Alves <palves@redhat.com>
7685
7686 PR gdb/15275
7687
7688 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7689 (remote_serial_write): New function.
7690 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7691
7692 2013-04-01 Jiong Wang <jiwang@tilera.com>
7693
7694 * NEWS: Mention TILE-Gx in "New native configurations" and
7695 "New targets" sections.
7696
7697 2013-04-01 Doug Evans <dje@google.com>
7698
7699 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7700 (process_enumeration_scope): Simplify.
7701
7702 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7703 type_unit_group ...
7704 (struct signatured_type): ... to here.
7705 (sig_type_ptr): New typedef.
7706 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7707 out of union 't'. All uses updated.
7708 (dw2_get_file_names_reader): Assert not called for a type unit.
7709 (dw2_get_file_names): Assert not called for a type unit or type
7710 unit group.
7711 (build_type_psymtabs_reader): Assert called for a type unit.
7712 (build_type_psymtab_dependencies): Assert called for a type unit group.
7713
7714 * dwarf2read.c (free_dwo_file): Add comment.
7715 (dwarf2_per_objfile_free): Unref dwp bfd.
7716
7717 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7718
7719 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7720 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7721 (read_pe_exported_syms): Remove unused 'exportix'.
7722 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7723 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7724 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7725
7726 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7727
7728 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7729 (print_it_watchpoint): Remove unused 'bl'.
7730 (say_where): Remove unused 'uiout'.
7731 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7732 (bkpt_breakpoint_hit): Remove unused 'b'.
7733 (internal_bkpt_print_it): Remove unused 'uiout'.
7734 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7735
7736 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7737
7738 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7739 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7740
7741 2013-03-29 Doug Evans <dje@google.com>
7742
7743 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7744 Delete arg is_dwp. All callers updated.
7745 (open_dwp_file): New function.
7746 (open_and_init_dwp_file): Call it.
7747 (get_dwp_file): New function.
7748 (lookup_dwo_cutu): Call it.
7749
7750 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7751 unnecessary, cleanup.
7752
7753 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7754
7755 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7756 (lookup_dwo_unit): New function.
7757 (init_cutu_and_read_dies): Move DWO handling to new functions.
7758
7759 * dwarf2read.c (struct signatured_type): Tweak comment.
7760 (struct dwo_unit): Tweak comment.
7761 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7762 (create_dwo_debug_info_hash_table): Tweak comment.
7763 (dwarf2_per_cu_offset_and_type): Tweak comment.
7764
7765 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7766 missing .debug_types section.
7767
7768 2013-03-29 Yao Qi <yao@codesourcery.com>
7769
7770 * corelow.c: Include "completer.h".
7771 (_initialize_corelow): Call add_target_with_completer with
7772 argument 'filename_completer'.
7773 * tracepoint.c: Likewise.
7774 * exec.c (_initialize_exec): Likewise.
7775 * target.c (add_target): Rename to ...
7776 (add_target_with_completer): ... this. Call set_cmd_completer
7777 if parameter completer is not NULL.
7778 (add_target): New.
7779 * target.h: Include "command.h".
7780 (add_target_with_completer): Declare it.
7781
7782 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7783
7784 * coffread.c (is_import_fixup_symbol): New function.
7785 (record_minimal_symbol): Use is_import_fixup_symbol to
7786 detect import fixup symbols, and discard them.
7787
7788 2013-03-28 Doug Evans <dje@google.com>
7789
7790 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7791 types hash table until we know we need it.
7792
7793 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7794 index numbers.
7795
7796 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7797 All callers updated.
7798 (dw2_print_stats): Print #read CUs too.
7799 (dump_die_shallow): Print signatured types better.
7800
7801 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7802 info_or_types_section to section. All uses updated.
7803 (struct dwo_unit): Ditto.
7804
7805 2013-03-28 Pedro Alves <palves@redhat.com>
7806
7807 * NEWS (New options): New section.
7808 (New options): Mention set/show remote trace-status-packet.
7809 * remote.c (PACKET_qTStatus): New enumeration value.
7810 (remote_get_trace_status): Skip sending qTStatus if the packet is
7811 disabled. Use packet_ok.
7812 (_initialize_remote): Register a configuration command for
7813 qTStatus packet.
7814
7815 2013-03-28 Doug Evans <dje@google.com>
7816
7817 * symfile.c (find_separate_debug_file): Add comment.
7818 (terminate_after_last_dir_separator): Tweak comment.
7819
7820 * dwarf2read.c (create_partial_symtab): Add forward decl.
7821 (create_partial_symtab): Move to be closer to other psymtab functions.
7822 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7823
7824 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7825 (compute_symtab_includes): Remove unnecessary forward declaration.
7826 (die_needs_namespace): Add comment marking group of functions for
7827 dwarf2 name computation.
7828
7829 * typeprint.c (_initialize_typeprint): Improve type help text.
7830
7831 * python/python.c (finish_python_initialization): Provide suggestion
7832 for how to tell gdb to find its python files.
7833
7834 2013-03-28 Pedro Alves <palves@redhat.com>
7835
7836 PR gdb/15294
7837
7838 * source.c (_initialize_source): Change back "set listsize" to an
7839 integer command.
7840
7841 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7842
7843 PR gdb/15275
7844 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7845
7846 2013-03-27 Pedro Alves <palves@redhat.com>
7847
7848 * top.c (history_size): Rename to ...
7849 (history_size_setshow_var): ... this. Add comment.
7850 (show_commands): Use readline's 'history_length' instead of
7851 computing the history length by calling history_get in a loop.
7852 (set_history_size_command): Error out for sizes over INT_MAX.
7853 Restore previous history size on invalid size.
7854 (init_history): If HISTSIZE is negative, leave the history size as
7855 zero. Add comments.
7856 (init_main): Adjust.
7857
7858 2013-03-27 Pedro Alves <palves@redhat.com>
7859
7860 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7861 coff_pe_read" command to "set debug coff-pe-read".
7862
7863 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7864
7865 * record.c (command_size_to_target_size): Fix size comparison.
7866 Change parameter type from pointer to integer to integer.
7867 Update all users.
7868
7869 2013-03-27 Pierre Muller <muller@sourceware.org>
7870
7871 * windows-nat.c (handle_output_debug_string): Avoid typecast
7872 from integer of different size warning.
7873
7874 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7875
7876 * windows-nat.c (handle_output_debug_string): Add empty line
7877 after local block variable definition.
7878
7879 2013-03-26 Pedro Alves <palves@redhat.com>
7880
7881 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7882 (net_open): Make 'polls' local unsigned.
7883
7884 2013-03-26 Pedro Alves <palves@redhat.com>
7885
7886 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7887 a zuinteger command instead of uinteger.
7888
7889 2013-03-26 Pedro Alves <palves@redhat.com>
7890
7891 * record-full.c (record_full_insn_num): Make it unsigned.
7892 (record_full_check_insn_num, record_full_message)
7893 (record_full_registers_change, record_full_xfer_partial): Remove
7894 record_full_insn_max_num check (it's always != 0).
7895 (record_full_info, record_full_restore): Use %u as format string.
7896 (): Use %u as format string.
7897 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7898 check (it's always != 0).
7899
7900 2013-03-26 Pedro Alves <palves@redhat.com>
7901
7902 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7903 and "set dcache size" commands zuinteger instead of uinteger.
7904
7905 2013-03-26 Pedro Alves <palves@redhat.com>
7906
7907 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7908 command zuinteger instead of uinteger.
7909
7910 2013-03-26 Pedro Alves <palves@redhat.com>
7911
7912 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7913 zuinteger instead of uinteger.
7914
7915 2013-03-26 Pedro Alves <palves@redhat.com>
7916
7917 * record.c (record_insn_history_size_setshow_var)
7918 (record_call_history_size_setshow_var): New globals.
7919 (command_size_to_target_size): New function.
7920 (cmd_record_insn_history, cmd_record_call_history): Use
7921 command_size_to_target_size instead of cast.
7922 (validate_history_size, set_record_insn_history_size)
7923 (set_record_call_history_size): New functions.
7924 (_initialize_record): Install set_record_insn_history_size and
7925 set_record_call_history_size as "set" hooks of "set record
7926 instruction-history-size" and "set record
7927 function-call-history-size".
7928
7929 2013-03-26 Pedro Alves <palves@redhat.com>
7930
7931 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7932 use with history_max_entries use. Remove FIXME note.
7933
7934 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7935
7936 * record-btrace.c (record_btrace_close): Call
7937 record_btrace_auto_disable.
7938
7939 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7940
7941 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7942
7943 2013-03-25 Doug Evans <dje@google.com>
7944
7945 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7946
7947 2013-03-25 Tom Tromey <tromey@redhat.com>
7948
7949 PR symtab/11462:
7950 * c-exp.y (exp): Add new productions for destructors after '.' and
7951 '->'.
7952 (write_destructor_name): New function.
7953
7954 2013-03-25 Tom Tromey <tromey@redhat.com>
7955
7956 PR c++/9197:
7957 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7958 value_struct_elt, not lookup_struct_elt_type.
7959 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7960 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7961 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7962
7963 2013-03-25 Yao Qi <yao@codesourcery.com>
7964
7965 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7966 instead of '_mkdir'.
7967
7968 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7969
7970 * windows-nat.c (windows_get_absolute_argv0): New function.
7971 * windows-nat.h: Add its prototype.
7972
7973 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7974 Use IS_DIR_SEPARATOR instead of looking for a character inside
7975 SLASH_STRING. Include filenames.h.
7976 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7977 relocate_gdb_directory works when passed gdb_program_name.
7978 Include windows-nat.h.
7979
7980 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7981
7982 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7983 * remote.c (trace_error): Remove the special handling of '2'.
7984 (readchar) <SERIAL_EOF>
7985 (readchar) <SERIAL_ERROR>
7986 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7987 (remote_get_trace_status): Call throw_exception if EX is
7988 TARGET_CLOSE_ERROR.
7989 * utils.c (perror_with_name): Rename to ...
7990 (throw_perror_with_name): ... here. New parameter errcode, describe it
7991 in the function comment.
7992 (perror_with_name): New function wrapper.
7993 * utils.h (enum errors): New stub declaration.
7994 (throw_perror_with_name): New declaration.
7995
7996 2013-03-22 Pedro Alves <palves@redhat.com>
7997 Yao Qi <yao@codesourcery.com>
7998 Mark Kettenis <kettenis@gnu.org>
7999
8000 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8001 Don't let the user set the value to UINT_MAX directly.
8002 <var_integer>: Don't let the user set the value to INT_MAX
8003 directly.
8004
8005 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8006
8007 * remote.c (remote_unpush_target): New function.
8008 (remote_open_1): Remove two pop_target calls, update one comment, add
8009 comment to target_preopen call. Replace pop_target call by
8010 remote_unpush_target call.
8011 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8012 pop_target calls by remote_unpush_target calls.
8013
8014 2013-03-22 Pedro Alves <palves@redhat.com>
8015
8016 * linux-nat.c (linux_child_follow_fork): Don't call
8017 linux_enable_event_reporting.
8018 (linux_handle_extended_wait): Don't call
8019 linux_enable_event_reporting.
8020
8021 2013-03-22 Pedro Alves <palves@redhat.com>
8022
8023 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8024 use it to rewrite the trampoline buffers with type gdb_byte[], and
8025 undefine the macro. Remove char* cast.
8026
8027 2013-03-21 Doug Evans <dje@google.com>
8028
8029 New commands "mt set per-command {space,time,symtab} {on,off}".
8030 * NEWS: Add entry.
8031 * event-top.c: #include "maint.h".
8032 * main.c: #include "maint.h".
8033 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8034 timeval-utils.h, maint.h, cli/cli-setshow.h.
8035 (per_command_time, per_command_space): New static globals.
8036 (per_command_symtab): New static global.
8037 (per_command_setlist, per_command_showlist): New static globals.
8038 (struct cmd_stats): Move here from utils.c.
8039 (set_per_command_time): Renamed from set_display_time in utils.c
8040 and moved here. All callers updated.
8041 (set_per_command_space): Renamed from set_display_space in utils.c
8042 and moved here. All callers updated.
8043 (count_symtabs_and_blocks): New function.
8044 (report_command_stats): Moved here from utils.c. Add support for
8045 printing symtab stats. Only print data if enabled before command
8046 executed.
8047 (make_command_stats_cleanup): Ditto.
8048 (sert_per_command_cmd, show_per_command_cmd): New functions.
8049 (_initialize_maint_cmds): Add new commands
8050 mt set per-command {space,time,symtab} {on,off}.
8051 * maint.h: New file.
8052 * top.c: #include "maint.h".
8053 * utils.c (reset_prompt_for_continue_wait_time): New function.
8054 (get_prompt_for_continue_wait_time): New function.
8055 * utils.h (reset_prompt_for_continue_wait_time): Declare
8056 (get_prompt_for_continue_wait_time): Declare.
8057 (make_command_stats_cleanup): Moved to maint.h.
8058 (set_display_time, set_display_space): Moved to maint.h and renamed
8059 to set_per_command_time, set_per_command_space.
8060 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8061 parse_binary_operation and made non-static. Don't call error,
8062 just return an error marker. All callers updated.
8063 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8064
8065 2013-03-21 Tom Tromey <tromey@redhat.com>
8066
8067 * symfile.c (alloc_section_addr_info): Update header. Don't set
8068 'num_sections' field.
8069 (build_section_addr_info_from_section_table): Set 'num_sections'.
8070 (build_section_addr_info_from_bfd): Likewise.
8071 (build_section_addr_info_from_objfile): Remove dead loop
8072 condition.
8073 (free_section_addr_info): Unconditionally call xfree.
8074 (relative_addr_info_to_section_offsets, addrs_section_sort)
8075 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8076 condition.
8077 (syms_from_objfile_1): Remove dead 'if' condition. Check
8078 'num_sections'.
8079 (add_symbol_file_command): Set 'num_sections'.
8080 * symfile-mem.c (symbol_file_add_from_memory): Set
8081 'num_sections'.
8082 * somread.c (som_symfile_offsets): Remove dead loop condition.
8083 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8084 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8085
8086 2013-03-21 Tom Tromey <tromey@redhat.com>
8087
8088 * tracepoint.h (decode_agent_options): Add 'trace_string'
8089 argument.
8090 * tracepoint.c (decode_agent_options): Add 'trace_string'
8091 argument.
8092 (validate_actionline): Update.
8093 (collect_symbol): Add 'trace_string' argument.
8094 (struct add_local_symbols_data) <trace_string>: New field.
8095 (do_collect_symbol): Update.
8096 (add_local_symbols): Add 'trace_string' argument.
8097 (encode_actions_1): Update.
8098 (trace_dump_actions): Update.
8099 * dwarf2loc.c (access_memory): Update.
8100 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8101 * ax-general.c (new_agent_expr): Update.
8102 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8103 (gen_trace_for_return_address): Add argument.
8104 (trace_kludge, trace_string_kludge): Remove.
8105 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8106 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8107 (gen_trace_for_var): Add 'trace_string' argument.
8108 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8109 (gen_printf, agent_eval_command_one): Update.
8110
8111 2013-03-21 Tom Tromey <tromey@redhat.com>
8112
8113 PR exp/15109:
8114 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8115 Handle FILENAME token.
8116
8117 2013-03-21 Tom Tromey <tromey@redhat.com>
8118
8119 * c-exp.y (YYPRINT): Define.
8120 (c_print_token): New function.
8121
8122 2013-03-21 Tom Tromey <tromey@redhat.com>
8123
8124 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8125
8126 2013-03-21 Yao Qi <yao@codesourcery.com>
8127
8128 * ctf.c: Include "gdb_stat.h".
8129 [USE_WIN32API]: New macro 'mkdir'.
8130 (ctf_start): Use permission bits macros if they are defined.
8131
8132 2013-03-20 Keith Seitz <keiths@redhat.com>
8133
8134 * breakpoint.h (struct breakpoint): Add comment to
8135 extra_string indicating that this member is mallod'd.
8136 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8137
8138 2013-03-20 Pedro Alves <palves@redhat.com>
8139
8140 PR gdb/15289
8141
8142 * cli/cli-setshow.c (do_set_command)
8143 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8144 the result of parsing the command argument. Throw error if the
8145 value is greater than UINT_MAX. Print the invalid value with
8146 plongest.
8147 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8148 result of parsing the command argument. Throw error if the value
8149 is greater than INT_MAX, not greater or equal. Also throw error
8150 if the value is less than INT_MIN. Print the invalid value with
8151 plongest.
8152 <var_zuinteger_unlimited>: Throw error if the value is greater
8153 than INT_MAX, not greater or equal.
8154 (do_show_command) <var_integer, var_zinteger,
8155 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8156
8157 2013-03-20 Tom Tromey <tromey@redhat.com>
8158
8159 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8160 if possible.
8161 * dwarf2read.c (read_func_scope): Remove old FIXME.
8162 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8163 not LOC_COMPUTED.
8164 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8165 Unconditionally call via computed ops, if possible.
8166 * printcmd.c (address_info): Unconditionally call via computed ops,
8167 if possible.
8168 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8169 if possible.
8170 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8171 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8172 if possible.
8173
8174 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8175 Tom Tromey <tromey@redhat.com>
8176
8177 PR symtab/8421:
8178 * coffread.c (coff_register_index): New global.
8179 (process_coff_symbol, coff_read_enum_type): Set
8180 SYMBOL_ACLASS_INDEX.
8181 (_initialize_coffread): Initialize new global.
8182 * dwarf2loc.c (locexpr_find_frame_base_location)
8183 (dwarf2_block_frame_base_locexpr_funcs)
8184 (loclist_find_frame_base_location)
8185 (dwarf2_block_frame_base_loclist_funcs): New.
8186 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8187 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8188 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8189 (dwarf2_block_frame_base_loclist_funcs): New.
8190 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8191 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8192 globals.
8193 (read_func_scope): Update.
8194 (fixup_go_packaging, mark_common_block_symbol_computed)
8195 (var_decode_location, new_symbol_full, dwarf2_const_value):
8196 Set SYMBOL_ACLASS_INDEX.
8197 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8198 (_initialize_dwarf2_read): Initialize new globals.
8199 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8200 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8201 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8202 globals.
8203 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8204 (_initialize_mdebugread): Initialize new globals.
8205 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8206 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8207 (stab_register_index, stab_regparm_index): New globals.
8208 (define_symbol, read_enum_type, common_block_end): Set
8209 SYMBOL_ACLASS_INDEX.
8210 (_initialize_stabsread): Initialize new globals.
8211 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8212 globals.
8213 (MAX_SYMBOL_IMPLS): New define.
8214 (register_symbol_computed_impl, register_symbol_block_impl)
8215 (register_symbol_register_impl)
8216 (initialize_ordinary_address_classes): New functions.
8217 (_initialize_symtab): Call initialize_ordinary_address_classes.
8218 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8219 (struct symbol_impl): New.
8220 (SYMBOL_ACLASS_BITS): New define.
8221 (struct symbol) <aclass, ops>: Remove fields.
8222 <aclass_index>: New field.
8223 (symbol_impls): Declare.
8224 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8225 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8226 (register_symbol_computed_impl, register_symbol_block_impl)
8227 (register_symbol_register_impl): Declare.
8228 (struct symbol_computed_ops): Add location_has_loclist.
8229 (struct symbol_block_ops): New.
8230 (SYMBOL_BLOCK_OPS): New.
8231 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8232
8233 2013-03-20 Tom Tromey <tromey@redhat.com>
8234
8235 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8236 (print_partial_symbols, recursively_search_psymtabs): Use
8237 PSYMBOL_CLASS.
8238
8239 2013-03-20 Pierre Muller <muller@sourceware.org>
8240
8241 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8242 addtion, subtraction, multiplication and division binary operator.
8243
8244 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8245
8246 Code cleanup.
8247 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8248 * bsd-kvm.c (bsd_kvm_close): Likewise.
8249 * bsd-uthread.c (bsd_uthread_close): Likewise.
8250 * corelow.c (core_close): Likewise.
8251 (core_close_cleanup): Remove parameter quitting from a caller.
8252 * event-top.c (async_disconnect): Likewise.
8253 * exec.c (exec_close_1): Remove parameter quitting.
8254 * go32-nat.c (go32_close): Likewise.
8255 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8256 parameter quitting from a caller.
8257 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8258 variable.
8259 (mips_linux_close): Remove parameter quitting. Remove parameter
8260 quitting from a caller.
8261 * monitor.c (monitor_close): Remove parameter quitting.
8262 * monitor.h (monitor_close): Likewise.
8263 * record-btrace.c (record_btrace_close): Likewise.
8264 * record-full.c (record_full_close): Likewise.
8265 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8266 it also from fprintf_unfiltered.
8267 * remote-mips.c (mips_close): Remove parameter quitting.
8268 (mips_detach): Remove parameter quitting from a caller.
8269 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8270 (gdbsim_close): Remove duplicate function comment. Remove parameter
8271 quitting and remove it also from printf_filtered.
8272 * remote.c (remote_close): Remove parameter quitting.
8273 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8274 * target.c (update_current_target): Remove parameter int from to_close
8275 de_fault.
8276 (push_target, unpush_target, pop_target): Remove parameter quitting from
8277 a caller.
8278 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8279 Remove parameter quitting from a caller.
8280 (target_preopen): Remove parameter quitting from a caller.
8281 (target_close): Remove parameter quitting. Remove parameter quitting
8282 from a caller two times. Remove parameter quitting also from
8283 fprintf_unfiltered.
8284 * target.h (struct target_ops): Remove parameter quitting and as int
8285 from fields to_xclose and to_close.
8286 (extern struct target_ops current_target):
8287 (target_close, pop_all_targets): Remove parameter quitting. Update the
8288 comment.
8289 (pop_all_targets_above): Remove parameter quitting.
8290 * top.c (quit_target): Remove parameter quitting from a caller.
8291 * tracepoint.c (tfile_close): Remove parameter quitting.
8292 * windows-nat.c (windows_close): Remove parameter quitting.
8293
8294 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8295
8296 * windows-nat.c (handle_output_debug_string): Replace call
8297 to string_to_core_addr with call to strtoull.
8298
8299 2013-03-20 Yao Qi <yao@codesourcery.com>
8300
8301 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8302 and write it to CTF metadata.
8303
8304 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8305
8306 * windows-nat.c (handle_output_debug_string): Change type of n to
8307 SIZE_T to avoid crash on 64 bit systems.
8308
8309 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8310
8311 * python/python-internal.h (HAVE_SNPRINTF)
8312 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8313 about redefinition of snprintf by pyerrors.h.
8314
8315 2013-03-15 Steve Ellcey <sellcey@mips.com>
8316
8317 * remote-sim.c (sim_command_completer): Make char arguments const.
8318
8319 2013-03-15 Tom Tromey <tromey@redhat.com>
8320
8321 PR c++/15116:
8322 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8323
8324 2013-03-14 Tom Tromey <tromey@redhat.com>
8325
8326 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8327 New fields.
8328 (get_file_crc): Move from symfile.c.
8329 (gdb_bfd_crc): New function.
8330 * gdb_bfd.h (gdb_bfd_crc): Declare.
8331 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8332 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8333 (separate_debug_file_exists): Use gdb_bfd_crc.
8334
8335 2013-03-14 Tom Tromey <tromey@redhat.com>
8336
8337 * symfile.c (get_debug_link_info): Remove.
8338 (find_separate_debug_file_by_debuglink): Use
8339 bfd_get_debug_link_info.
8340
8341 2013-03-14 Tom Tromey <tromey@redhat.com>
8342
8343 * symtab.c (error_in_psymtab_expansion): New function.
8344 (lookup_symbol_aux_quick)
8345 (basic_lookup_transparent_type_quick): Remove "last resort"
8346 code. Use error_in_psymtab_expansion.
8347
8348 2013-03-14 Doug Evans <dje@google.com>
8349 Jan Kratochvil <jan.kratochvil@redhat.com>
8350
8351 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8352 any successful compare_filenames_for_search or FILENAME_CMP.
8353 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8354 * symtab.c (iterate_over_some_symtabs): Likewise.
8355
8356 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8357
8358 * source.c (print_source_lines_base): Make a local copy of
8359 symtab_to_fullname.
8360
8361 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8362 Jan Kratochvil <jan.kratochvil@redhat.com>
8363
8364 * source.c (print_source_lines_base): Suppress "file" for TUI.
8365
8366 2013-03-14 Keith Seitz <keiths@redhat.com>
8367 Alan Matsuoka <alanm@redhat.com>
8368
8369 PR c++/15203
8370 PR c++/15210
8371 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8372 TYPE_CODE_METHOD.
8373 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8374 symbols.
8375
8376 2013-03-14 Yao Qi <yao@codesourcery.com>
8377
8378 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8379 status to tfile if trace is stopped by command 'tstop'.
8380
8381 2013-03-14 Yao Qi <yao@codesourcery.com>
8382
8383 * tracepoint.c (tfile_write_status): Write trace notes and user
8384 name into tfile if they are not NULL.
8385
8386 2013-03-14 Hui Zhu <hui@codesourcery.com>
8387 Yao Qi <yao@codesourcery.com>
8388
8389 * Makefile.in (REMOTE_OBS): Add ctf.o.
8390 (SFILES): Add ctf.c.
8391 (HFILES_NO_SRCDIR): Add ctf.h.
8392 * ctf.c, ctf.h: New files.
8393 * tracepoint.c: Include 'ctf.h'.
8394 (collect_pseudocommand): Remove static.
8395 (trace_save_command): Parse option "-ctf".
8396 Produce different trace file writers per option.
8397 Adjust output message.
8398 (trace_save_tfile, trace_save_ctf): New.
8399 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8400 * mi/mi-main.c: Include 'ctf.h'.
8401 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8402 trace_save_tfile or trace_save_ctf.
8403 * NEWS: Mention these changes.
8404
8405 2013-03-14 Yao Qi <yao@codesourcery.com>
8406
8407 * tracepoint.c (trace_file_writer_xfree): New.
8408 (struct tfile_writer_data): New.
8409 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8410 (tfile_write_header, tfile_write_regblock_type): New.
8411 (tfile_write_status, tfile_write_uploaded_tsv): New.
8412 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8413 (tfile_write_raw_data, (tfile_end): New.
8414 (tfile_write_ops): New global variable.
8415 (TRACE_WRITE_R_BLOCK): New macro.
8416 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8417 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8418 (TRACE_WRITE_V_BLOCK): New macro.
8419 (trace_save): Add extra one parameter WRITER. Make it static.
8420 Use WRITER to writer trace.
8421 (tfile_trace_file_writer_new): New.
8422 (trace_save_command): Caller update.
8423 (trace_save_tfile): Write trace data in TFILE format.
8424 * tracepoint.h (struct trace_frame_write_ops): New.
8425 (struct trace_file_write_ops): New.
8426 (struct trace_file_writer): New.
8427 (trace_save): Remove its declaration.
8428 (trace_save_tfile): Declare it.
8429 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8430 instead of trace_save.
8431
8432 2013-03-13 Pedro Alves <palves@redhat.com>
8433
8434 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8435
8436 2013-03-13 Pedro Alves <palves@redhat.com>
8437
8438 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8439 commented out code.
8440 * demangle.c (current_demangling_style_string): Make it const.
8441 (set_demangling_command): Assert the demangling style is known.
8442 Remove all handling of unknown styles. Set
8443 'current_demangling_style_string' to an element of the
8444 demangling_style_names array.
8445 (set_demangling_style): Delete.
8446 (_initialize_demangler): Set current_demangling_style_string to the
8447 element of the demangling_style_names array that corresponds to
8448 the default demangling style. Remove FIXME note. Don't call
8449 set_demangling_style.
8450 * gdb-demangle.h (set_demangling_style): Remove declaration.
8451
8452 2013-03-13 Pedro Alves <palves@redhat.com>
8453
8454 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8455 fields const.
8456 (ada_make_symbol_completion_list): Make "text0" parameter const.
8457 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8458 * breakpoint.c (condition_completer): Make "text" and "word"
8459 parameters const. Adjust.
8460 (check_tracepoint_command): Adjust to validate_actionline
8461 prototype change.
8462 (catch_syscall_completer): Make "text" and "word" parameters
8463 const.
8464 * cli/cli-cmds.c (show_user): Make "comname" local const.
8465 (valid_command_p): Make "command" parameter const.
8466 (alias_command): Make "alias_prefix" and "command_prefix" locals
8467 const.
8468 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8469 (add_alias_cmd): Make "name" and "oldname" parameters const.
8470 Adjust. No longer make copy of OLDNAME.
8471 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8472 (add_setshow_cmd_full, add_setshow_enum_cmd)
8473 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8474 (add_setshow_filename_cmd, add_setshow_string_cmd)
8475 (add_setshow_string_noescape_cmd)
8476 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8477 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8478 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8479 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8480 Make "name" parameter const.
8481 (help_cmd): Rename "command" parameter to "arg". New const local
8482 "command".
8483 (find_cmd): Make "command" parameter const.
8484 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8485 deprecated_cmd_warning prototype change.
8486 (undef_cmd_error): Make "cmdtype" parameter const.
8487 (lookup_cmd): Make "line" parameter const.
8488 (deprecated_cmd_warning): Change type of "text" parameter to
8489 pointer to const char, from pointer to pointer to char. Adjust.
8490 (lookup_cmd_composition): Make "text" parameter const.
8491 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8492 parameters const.
8493 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8494 const.
8495 * cli/cli-script.c (validate_comname): Make "tem" local const.
8496 (define_command): New const local "tem_c". Use it in calls to
8497 lookup_cmd.
8498 (document_command): Make "tem" and "comfull" locals const.
8499 (show_user_1): Make "prefix" and "name" parameters const.
8500 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8501 const.
8502 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8503 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8504 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8505 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8506 (complete_on_enum, add_setshow_enum_cmd)
8507 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8508 (add_setshow_filename_cmd, add_setshow_string_cmd)
8509 (add_setshow_string_noescape_cmd)
8510 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8511 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8512 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8513 Change prototypes, constifying strings.
8514 * completer.c (noop_completer, filename_completer): Make "text"
8515 and "prefix" parameters const.
8516 (location_completer, expression_completer)
8517 (complete_line_internal): Make "text" and "prefix" parameters
8518 const and adjust.
8519 (command_completer, signal_completer): Make "text" and "prefix"
8520 parameters const.
8521 * completer.h (noop_completer, filename_completer)
8522 (expression_completer, location_completer, command_completer)
8523 (signal_completer): Change prototypes.
8524 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8525 parameters const.
8526 * cp-abi.c (cp_abi_completer): Likewise.
8527 * expression.h (parse_expression_for_completion): Change
8528 prototype.
8529 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8530 parameters const.
8531 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8532 * infrun.c (handle_completer): Make "text" and "word" parameters
8533 const.
8534 * interps.c (interpreter_completer): Make "text" and "word"
8535 parameters const.
8536 * language.h (struct language_defn)
8537 <la_make_symbol_completion_list>: Make "text" and "word"
8538 parameters const.
8539 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8540 (parse_exp_in_context): Rename to ...
8541 (parse_exp_in_context_1): ... this.
8542 (parse_exp_in_context): Reimplement, with const hack from
8543 parse_exp_1.
8544 (parse_expression_for_completion): Make "string" parameter const.
8545 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8546 to pointer to const char. Adjust.
8547 (print_command_1): Make "exp" parameter const.
8548 (output_command): Rename to ...
8549 (output_command_const): ... this. Make "exp" parameter const.
8550 (output_command): Reimplement.
8551 (x_command): Adjust.
8552 (display_command): Rename "exp" parameter to "arg". New "exp"
8553 local, const version of "arg".
8554 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8555 "cmd_name" local const.
8556 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8557 call.
8558 (cmdpy_completer): Make "text" and "word" parameters const.
8559 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8560 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8561 const.
8562 * remote.c (_initialize_remote): Make "cmd_name" local const.
8563 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8564 parameters const. Adjust.
8565 (completion_list_add_fields): Make "sym_text", "text" and "word"
8566 parameters const.
8567 (struct add_name_data) <sym_text, text, word>: Make fields const.
8568 (default_make_symbol_completion_list_break_on): Make "text" and
8569 "word" parameters const. Adjust locals.
8570 (default_make_symbol_completion_list)
8571 (make_symbol_completion_list, make_symbol_completion_type)
8572 (make_symbol_completion_list_fn): Make "text" and "word"
8573 parameters const.
8574 (make_file_symbol_completion_list): Make "text", "word" and
8575 "srcfile" parameters const. Adjust locals.
8576 (add_filename_to_list): Make "text" and "word" parameters const.
8577 (struct add_partial_filename_data) <text, word>: Make fields
8578 const.
8579 (make_source_files_completion_list): Make "text" and "word"
8580 parameters const.
8581 * symtab.h (default_make_symbol_completion_list_break_on)
8582 (default_make_symbol_completion_list, make_symbol_completion_list)
8583 (make_symbol_completion_type enum type_code)
8584 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8585 (make_source_files_completion_list): Change prototype.
8586 * top.c (execute_command): Adjust to pass pointer to pointer to
8587 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8588 change.
8589 (set_verbose): Make "cmdname" local const.
8590 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8591 and adjust.
8592 (validate_actionline): Make "line" parameter a pointer to const
8593 char, and adjust.
8594 (encode_actions_1): Make "action_exp" local const, and adjust.
8595 (encode_actions): Adjust.
8596 (replace_comma): Delete.
8597 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8598 const, and adjust. Don't frob the action string while splitting
8599 it at commas. Instead, make a copy of each split substring in
8600 turn.
8601 (trace_dump_command): Adjust to validate_actionline prototype
8602 change.
8603 * tracepoint.h (decode_agent_options, decode_agent_options)
8604 (encode_actions, validate_actionline): Change prototypes.
8605 * valprint.h (output_command): Delete declaration.
8606 (output_command_const): Declare.
8607 * value.c (function_destroyer): Cast const away in xfree call.
8608
8609 2013-03-13 Pedro Alves <palves@redhat.com>
8610
8611 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8612 rather than casting 'const char * const *' to 'const char **'.
8613 * ada-lex.l (processInt): Make "trailer" local const. Remove
8614 'const char **' cast.
8615 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8616 locals, and use those as strtol output pointer, instead than doing
8617 invalid casts to from 'const char **' to 'char **'.
8618 (_initialize_demangle): Remove cast.
8619 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8620 locals, and use those as strtol output pointer, instead than doing
8621 invalid casts to from 'const char **' to 'char **'.
8622 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8623 casts.
8624 * stap-probe.c (stap_parse_register_operand)
8625 (stap_parse_single_operand): Likewise.
8626
8627 2013-03-13 Yao Qi <yao@codesourcery.com>
8628
8629 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8630 the last matched 'V' blcok in trace frame.
8631
8632 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8633
8634 * NEWS: Create a new section for the next release branch.
8635 Rename the section of the current branch, now that it has
8636 been cut.
8637
8638 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8639
8640 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8641 * version.in: Bump version to 7.6.50.20130312-cvs.
8642
8643 2013-03-12 Keith Seitz <keiths@redhat.com>
8644
8645 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8646 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8647 Remove temporary copy of input string.
8648 (mi_execute_command_wrapper): Make "cmd" const.
8649 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8650 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8651 Use const strings.
8652 (mi_parse): Make "cmd" const.
8653 Use const strings.
8654 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8655
8656 2013-03-12 Keith Seitz <keiths@redhat.com>
8657
8658 * ada-lang.c (ada_read_renaming_var_value): Pass const
8659 pointer to expression string to parse_exp_1.
8660 (create_excep_cond_exprs): Likewise.
8661 * ax-gdb.c (agent_eval_command_one): Likewise.
8662 (maint_agent_printf_command): Likewise.
8663 Constify much of the string handling/parsing.
8664 * breakpoint.c (set_breakpoint_condition): Pass const
8665 pointer to expression string to parse_exp_1.
8666 (update_watchpoint): Likewise.
8667 (parse_cmd_to_aexpr): Constify string handling.
8668 Pass const pointer to parse_exp_1.
8669 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8670 (find_condition_and_thread): Likewise.
8671 Make TOK const.
8672 (watch_command_1): Make "arg" const.
8673 Constify string handling.
8674 Copy the expression string instead of changing the input
8675 string.
8676 (update_breakpoint_location): Pass const pointer to
8677 parse_exp_1.
8678 * eval.c (parse_and_eval_address): Make "exp" const.
8679 (parse_to_comma_and_eval): Make "expp" const.
8680 (parse_and_eval): Make "exp" const.
8681 * expression.h (parse_expression): Make argument const.
8682 (parse_exp_1): Make first argument const.
8683 * findcmd.c (parse_find_args): Treat "args" as const.
8684 * linespec.c (parse_linespec): Pass const pointer to
8685 linespec_expression_to_pc.
8686 (linespec_expression_to_pc): Make "exp_ptr" const.
8687 * parse.c (parse_exp_1): Make "stringptr" const.
8688 Make a copy of the expression to pass to parse_exp_in_context until
8689 this whole interface can be constified.
8690 (parse_expression): Make "string" const.
8691 * printcmd.c (ui_printf): Treat "arg" as const.
8692 Handle const strings.
8693 * tracepoint.c (validate_actionline): Pass const pointer to
8694 all calls to parse_exp_1.
8695 (encode_actions_1): Likewise.
8696 * value.h (parse_to_comma_and_eval): Make argument const.
8697 (parse_and_eval_address): Likewise.
8698 (parse_and_eval): Likewise.
8699 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8700 (varobj_set_value): Likewise.
8701 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8702 constify string handling.
8703 Pass const pointers to parse_and_eval_address and
8704 parse_to_comman_and_eval.
8705 * cli/cli-utils.c (skip_to_space): Rename to ...
8706 (skip_to_space_const): ... this. Handle const strings.
8707 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8708 skip_to_space_const.
8709 (skip_to_space_const): Declare.
8710 * common/format.c (parse_format_string): Make "arg" const.
8711 Handle const strings.
8712 * common/format.h (parse_format_string): Make "arg" const.
8713 * gdbserver/ax.c (ax_printf): Make "format" const.
8714 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8715 of the expression string.
8716
8717 2013-03-12 Hui Zhu <hui@codesourcery.com>
8718
8719 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8720
8721 2013-03-12 Yao Qi <yao@codesourcery.com>
8722 Hui Zhu <hui@codesourcery.com>
8723
8724 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8725 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8726 DW_OP_deref_size.
8727
8728 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8729
8730 * ada-lex.l (rules): Only recognize 'thread' as a
8731 delimiter when followed by numerals, as for c-exp.y.
8732 Use new rewind_to_char function to rewind the input for
8733 expression-delimiting tokens.
8734 (rewind_to_char): New function.
8735
8736 2013-03-11 Pedro Alves <palves@redhat.com>
8737 Jan Kratochvil <jan.kratochvil@redhat.com>
8738
8739 * configure: Regenerate.
8740 * configure.ac (check dynamic export flag): Link python test with
8741 $PYTHON_LIBS.
8742
8743 2013-03-11 Doug Evans <dje@google.com>
8744 Keith Seitz <keiths@redhat.com>
8745
8746 * linespec.c (find_linespec_symbols): Call find_function_symbols
8747 first, and then call lookup_prefix_sym/find_method.
8748
8749 2013-03-11 Pedro Alves <palves@redhat.com>
8750
8751 * charset.c (convert_between_encodings): Don't cast between
8752 different pointer to pointer types. Instead, make the 'inp' local
8753 be of the type iconv expects.
8754 (wchar_iterate): Don't cast between different pointer to pointer
8755 types. Instead, use new pointer local of the type iconv expects.
8756 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8757 Add new local of type char pointer, and use it to get a
8758 char/string view of the byte buffer, instead of casting between
8759 pointer to pointer types.
8760
8761 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8762
8763 * remote.c (remote_set_trace_buffer_size): Move != operator
8764 to the start of next line to fix an ARI warning.
8765
8766 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8767
8768 * NEWS: Add record changes.
8769
8770 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8771
8772 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8773 the instruction history disassembly.
8774 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8775 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8776
8777 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8778
8779 * Makefile.in (SFILES): Add record-btrace.c
8780 (COMMON_OBS): Add record-btrace.o
8781 * record-btrace.c: New.
8782 * objfiles.c: Include btrace.h.
8783 (free_objfile): call btrace_free_objfile.
8784
8785 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8786
8787 * target.c (target_call_history, target_call_history_from,
8788 target_call_history_range): New.
8789 * target.h (target_ops) <to_call_history, to_call_history_from,
8790 to_call_history_range>: New fields.
8791 (target_call_history, target_call_history_from,
8792 target_call_history_range): New declaration.
8793 * record.c (get_call_history_modifiers, cmd_record_call_history,
8794 record_call_history_size): New.
8795 (_initialize_record): Add the "record function-call-history" command.
8796 Add "set/show record function-call-history-size" commands.
8797 * record.h (record_print_flag): New.
8798
8799 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8800
8801 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8802 to_insn_history_range>: New fields.
8803 (target_insn_history): New.
8804 (target_insn_history_from): New.
8805 (target_insn_history_range): New.
8806 * target.c (target_insn_history): New.
8807 (target_insn_history_from): New.
8808 (target_insn_history_range): New.
8809 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8810 (record_insn_history_size): New.
8811 (get_insn_number): New.
8812 (get_context_size): New.
8813 (no_chunk): New.
8814 (get_insn_history_modifiers): New.
8815 (cmd_record_insn_history): New.
8816 (_initialize_record): Add "set/show record instruction-history-size"
8817 command. Add "record instruction-history" command.
8818
8819 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8820
8821 * record.h (record_disconnect): New.
8822 (record_detach): New.
8823 (record_mourn_inferior): New.
8824 (record_kill): New.
8825 * record-full.c (record_disconnect, record_detach,
8826 record_mourn_inferior, record_kill): Move to...
8827 * record.c: ...here.
8828 (DEBUG): New.
8829 (record_stop): New.
8830 (record_unpush): New.
8831 (cmd_record_stop): Call record_stop. Replace unpush_target
8832 call with record_unpush call.
8833 (record_disconnect, record_detach): Assert that the target
8834 is of record stratum. Call record_unpush, record_stop, and
8835 DEBUG.
8836 (record_mourn_inferior, record_kill): Assert that the target
8837 is of record stratum. Call record_unpush and DEBUG.
8838
8839 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8840
8841 * record-full.h, record-full.c (record_memory_query): Rename
8842 to ...
8843 (record_full_memory_query): ...this. Update all users.
8844 (record_arch_list_add_reg): Rename to ...
8845 (record_full_arch_list_add_reg): ...this. Update all users.
8846 (record_arch_list_add_mem): Rename to ...
8847 (record_full_arch_list_add_mem): ...this. Update all users.
8848 (record_arch_list_add_end): Rename to ...
8849 (record_full_arch_list_add_end): ...this. Update all users.
8850 (record_gdb_operation_disable_set): Rename to ...
8851 (record_full_gdb_operation_disable_set): ...this.
8852 Update all users.
8853
8854 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8855
8856 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8857 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8858 (RECORD_IS_REPLAY): Renamed to ...
8859 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8860 (RECORD_FILE_MAGIC): Renamed to ...
8861 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8862 (record_mem_entry): Renamed to ...
8863 (record_full_mem_entry): ... this. Updated all users.
8864 (record_reg_entry): Renamed to ...
8865 (record_full_reg_entry): ... this. Updated all users.
8866 (record_end_entry): Renamed to ...
8867 (record_full_end_entry): ... this. Updated all users.
8868 (record_type) <record_end, record_reg, record_mem>: Renamed
8869 to ...
8870 (record_full_type) <record_full_end, record_full_reg,
8871 record_full_mem>: ... this. Updated all users.
8872 (record_entry): Renamed to ...
8873 (record_full_entry): ... this. Updated all users.
8874 (record_core_buf_entry): Renamed to ...
8875 (record_full_core_buf_entry): ... this. Updated all users.
8876 (record_core_regbuf): Renamed to ...
8877 (record_full_core_regbuf): ... this. Updated all users.
8878 (record_core_start): Renamed to ...
8879 (record_full_core_start): ... this. Updated all users.
8880 (record_core_end): Renamed to ...
8881 (record_full_core_end): ... this. Updated all users.
8882 (record_core_buf_list): Renamed to ...
8883 (record_full_core_buf_list): ... this. Updated all users.
8884 (record_first): Renamed to ...
8885 (record_full_first): ... this. Updated all users.
8886 (record_list): Renamed to ...
8887 (record_full_list): ... this. Updated all users.
8888 (record_arch_list_head): Renamed to ...
8889 (record_full_arch_list_head): ... this. Updated all users.
8890 (record_arch_list_tail): Renamed to ...
8891 (record_full_arch_list_tail): ... this. Updated all users.
8892 (record_stop_at_limit): Renamed to ...
8893 (record_full_stop_at_limit): ... this. Updated all users.
8894 (record_insn_max_num): Renamed to ...
8895 (record_full_insn_max_num): ... this. Updated all users.
8896 (record_insn_num): Renamed to ...
8897 (record_full_insn_num): ... this. Updated all users.
8898 (record_insn_count): Renamed to ...
8899 (record_full_insn_count): ... this. Updated all users.
8900 (record_ops): Renamed to ...
8901 (record_full_ops): ... this. Updated all users.
8902 (record_core_ops): Renamed to ...
8903 (record_full_core_ops): ... this. Updated all users.
8904 (set_record_cmdlist): Renamed to ...
8905 (set_record_full_cmdlist): ... this. Updated all users.
8906 (show_record_cmdlist): Renamed to ...
8907 (show_record_full_cmdlist): ... this. Updated all users.
8908 (record_cmdlist): Renamed to ...
8909 (record_full_cmdlist): ... this. Updated all users.
8910 (record_beneath_to_resume_ops): Renamed to ...
8911 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8912 (record_beneath_to_resume): Renamed to ...
8913 (record_full_beneath_to_resume): ... this. Updated all users.
8914 (record_beneath_to_wait_ops): Renamed to ...
8915 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8916 (record_beneath_to_wait): Renamed to ...
8917 (record_full_beneath_to_wait): ... this. Updated all users.
8918 (record_beneath_to_store_registers_ops): Renamed to ...
8919 (record_full_beneath_to_store_registers_ops): ... this.
8920 Updated all users.
8921 (record_beneath_to_store_registers): Renamed to ...
8922 (record_full_beneath_to_store_registers): ... this.
8923 Updated all users.
8924 (record_beneath_to_xfer_partial_ops): Renamed to ...
8925 (record_full_beneath_to_xfer_partial_ops): ... this.
8926 Updated all users.
8927 (record_beneath_to_xfer_partial): Renamed to ...
8928 (record_full_beneath_to_xfer_partial): ... this.
8929 Updated all users.
8930 (record_beneath_to_insert_breakpoint): Renamed to ...
8931 (record_full_beneath_to_insert_breakpoint): ... this.
8932 Updated all users.
8933 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8934 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8935 Updated all users.
8936 (record_beneath_to_stopped_data_address): Renamed to ...
8937 (record_full_beneath_to_stopped_data_address): ... this.
8938 Updated all users.
8939 (record_beneath_to_async): Renamed to ...
8940 (record_full_beneath_to_async): ... this. Updated all users.
8941 (record_goto_insn): Renamed to ...
8942 (record_full_goto_insn): ... this. Updated all users.
8943 (record_save): Renamed to ...
8944 (record_full_save): ... this. Updated all users.
8945 (record_reg_alloc): Renamed to ...
8946 (record_full_reg_alloc): ... this. Updated all users.
8947 (record_reg_release): Renamed to ...
8948 (record_full_reg_release): ... this. Updated all users.
8949 (record_mem_alloc): Renamed to ...
8950 (record_full_mem_alloc): ... this. Updated all users.
8951 (record_mem_release): Renamed to ...
8952 (record_full_mem_release): ... this. Updated all users.
8953 (record_end_alloc): Renamed to ...
8954 (record_full_end_alloc): ... this. Updated all users.
8955 (record_end_release): Renamed to ...
8956 (record_full_end_release): ... this. Updated all users.
8957 (record_entry_release): Renamed to ...
8958 (record_full_entry_release): ... this. Updated all users.
8959 (record_list_release): Renamed to ...
8960 (record_full_list_release): ... this. Updated all users.
8961 (record_list_release_following): Renamed to ...
8962 (record_full_list_release_following): ... this.
8963 Updated all users.
8964 (record_list_release_first): Renamed to ...
8965 (record_full_list_release_first): ... this. Updated all users.
8966 (record_arch_list_add): Renamed to ...
8967 (record_full_arch_list_add): ... this. Updated all users.
8968 (record_get_loc): Renamed to ...
8969 (record_full_get_loc): ... this. Updated all users.
8970 (record_check_insn_num): Renamed to ...
8971 (record_full_check_insn_num): ... this. Updated all users.
8972 (record_arch_list_cleanups): Renamed to ...
8973 (record_full_arch_list_cleanups): ... this. Updated all users.
8974 (record_message): Renamed to ...
8975 (record_full_message): ... this. Updated all users.
8976 (record_message_wrapper): Renamed to ...
8977 (record_full_message_wrapper): ... this. Updated all users.
8978 (record_message_wrapper_safe): Renamed to ...
8979 (record_full_message_wrapper_safe): ... this. Updated all users.
8980 (record_gdb_operation_disable): Renamed to ...
8981 (record_full_gdb_operation_disable): ... this. Updated all users.
8982 (record_hw_watchpoint): Renamed to ...
8983 (record_full_hw_watchpoint): ... this. Updated all users.
8984 (record_exec_insn): Renamed to ...
8985 (record_full_exec_insn): ... this. Updated all users.
8986 (record_restore): Renamed to ...
8987 (record_full_restore): ... this. Updated all users.
8988 (record_async_inferior_event_token): Renamed to ...
8989 (record_full_async_inferior_event_token): ... this.
8990 Updated all users.
8991 (record_async_inferior_event_handler): Renamed to ...
8992 (record_full_async_inferior_event_handler): ... this.
8993 Updated all users.
8994 (record_core_open_1): Renamed to ...
8995 (record_full_core_open_1): ... this. Updated all users.
8996 (record_open_1): Renamed to ...
8997 (record_full_open_1): ... this. Updated all users.
8998 (record_open): Renamed to ...
8999 (record_full_open): ... this. Updated all users.
9000 (record_close): Renamed to ...
9001 (record_full_close): ... this. Updated all users.
9002 (record_resume_step): Renamed to ...
9003 (record_full_resume_step): ... this. Updated all users.
9004 (record_resumed): Renamed to ...
9005 (record_full_resumed): ... this. Updated all users.
9006 (record_execution_dir): Renamed to ...
9007 (record_full_execution_dir): ... this. Updated all users.
9008 (record_resume): Renamed to ...
9009 (record_full_resume): ... this. Updated all users.
9010 (record_get_sig): Renamed to ...
9011 (record_full_get_sig): ... this. Updated all users.
9012 (record_sig_handler): Renamed to ...
9013 (record_full_sig_handler): ... this. Updated all users.
9014 (record_wait_cleanups): Renamed to ...
9015 (record_full_wait_cleanups): ... this. Updated all users.
9016 (record_wait_1): Renamed to ...
9017 (record_full_wait_1): ... this. Updated all users.
9018 (record_wait): Renamed to ...
9019 (record_full_wait): ... this. Updated all users.
9020 (record_stopped_by_watchpoint): Renamed to ...
9021 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9022 (record_disconnect): Renamed to ...
9023 (record_full_disconnect): ... this. Updated all users.
9024 (record_detach): Renamed to ...
9025 (record_full_detach): ... this. Updated all users.
9026 (record_mourn_inferior): Renamed to ...
9027 (record_full_mourn_inferior): ... this. Updated all users.
9028 (record_kill): Renamed to ...
9029 (record_full_kill): ... this. Updated all users.
9030 (record_stopped_data_address): Renamed to ...
9031 (record_full_stopped_data_address): ... this. Updated all users.
9032 (record_registers_change): Renamed to ...
9033 (record_full_registers_change): ... this. Updated all users.
9034 (record_store_registers): Renamed to ...
9035 (record_full_store_registers): ... this. Updated all users.
9036 (record_xfer_partial): Renamed to ...
9037 (record_full_xfer_partial): ... this. Updated all users.
9038 (record_breakpoint): Renamed to ...
9039 (record_full_breakpoint): ... this. Updated all users.
9040 (record_breakpoint_p): Renamed to ...
9041 (record_full_breakpoint_p): ... this. Updated all users.
9042 (record_breakpoints): Renamed to ...
9043 (record_full_breakpoints): ... this. Updated all users.
9044 (record_sync_record_breakpoints): Renamed to ...
9045 (record_full_sync_record_breakpoints): ... this.
9046 Updated all users.
9047 (record_init_record_breakpoints): Renamed to ...
9048 (record_full_init_record_breakpoints): ... this.
9049 Updated all users.
9050 (record_insert_breakpoint): Renamed to ...
9051 (record_full_insert_breakpoint): ... this. Updated all users.
9052 (record_remove_breakpoint): Renamed to ...
9053 (record_full_remove_breakpoint): ... this. Updated all users.
9054 (record_can_execute_reverse): Renamed to ...
9055 (record_full_can_execute_reverse): ... this. Updated all users.
9056 (record_get_bookmark): Renamed to ...
9057 (record_full_get_bookmark): ... this. Updated all users.
9058 (record_goto_bookmark): Renamed to ...
9059 (record_full_goto_bookmark): ... this. Updated all users.
9060 (record_async): Renamed to ...
9061 (record_full_async): ... this. Updated all users.
9062 (record_can_async_p): Renamed to ...
9063 (record_full_can_async_p): ... this. Updated all users.
9064 (record_is_async_p): Renamed to ...
9065 (record_full_is_async_p): ... this. Updated all users.
9066 (record_execution_direction): Renamed to ...
9067 (record_full_execution_direction): ... this. Updated all users.
9068 (record_info): Renamed to ...
9069 (record_full_info): ... this. Updated all users.
9070 (record_delete): Renamed to ...
9071 (record_full_delete): ... this. Updated all users.
9072 (record_is_replaying): Renamed to ...
9073 (record_full_is_replaying): ... this. Updated all users.
9074 (record_goto_entry): Renamed to ...
9075 (record_full_goto_entry): ... this. Updated all users.
9076 (record_goto_begin): Renamed to ...
9077 (record_full_goto_begin): ... this. Updated all users.
9078 (record_goto_end): Renamed to ...
9079 (record_full_goto_end): ... this. Updated all users.
9080 (record_goto): Renamed to ...
9081 (record_full_goto): ... this. Updated all users.
9082 (init_record_ops): Renamed to ...
9083 (init_record_full_ops): ... this. Updated all users.
9084 (record_core_resume): Renamed to ...
9085 (record_full_core_resume): ... this. Updated all users.
9086 (record_core_kill): Renamed to ...
9087 (record_full_core_kill): ... this. Updated all users.
9088 (record_core_fetch_registers): Renamed to ...
9089 (record_full_core_fetch_registers): ... this. Updated all users.
9090 (record_core_prepare_to_store): Renamed to ...
9091 (record_full_core_prepare_to_store): ... this. Updated all users.
9092 (record_core_store_registers): Renamed to ...
9093 (record_full_core_store_registers): ... this. Updated all users.
9094 (record_core_xfer_partial): Renamed to ...
9095 (record_full_core_xfer_partial): ... this. Updated all users.
9096 (record_core_insert_breakpoint): Renamed to ...
9097 (record_full_core_insert_breakpoint): ... this. Updated all users.
9098 (record_core_remove_breakpoint): Renamed to ...
9099 (record_full_core_remove_breakpoint): ... this. Updated all users.
9100 (record_core_has_execution): Renamed to ...
9101 (record_full_core_has_execution): ... this. Updated all users.
9102 (init_record_core_ops): Renamed to ...
9103 (init_record_full_core_ops): ... this. Updated all users.
9104 (cmd_record_restore): Renamed to ...
9105 (cmd_record_full_restore): ... this. Updated all users.
9106 (record_save_cleanups): Renamed to ...
9107 (record_full_save_cleanups): ... this. Updated all users.
9108 (cmd_record_start): Renamed to ...
9109 (cmd_record_full_start): ... this. Updated all users.
9110 (set_record_insn_max_num): Renamed to ...
9111 (set_record_full_insn_max_num): ... this. Updated all users.
9112 (set_record_command): Renamed to ...
9113 (set_record_full_command): ... this. Updated all users.
9114 (show_record_command): Renamed to ...
9115 (show_record_full_command): ... this. Updated all users.
9116 (_initialize_record): Renamed to ...
9117 (_initialize_record_full): ... this. Updated all users.
9118
9119 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9120
9121 * record.h: Split into this and ...
9122 * record-full.h: ... this.
9123 * record.c: Split into this and ...
9124 * record-full.c: ... this.
9125 * target.h (target_ops): Add new fields to_info_record,
9126 to_save_record, to_delete_record, to_record_is_replaying,
9127 to_goto_record_begin, to_goto_record_end, to_goto_record.
9128 (target_info_record): New.
9129 (target_save_record): New.
9130 (target_supports_delete_record): New.
9131 (target_delete_record): New.
9132 (target_record_is_replaying): New.
9133 (target_goto_record_begin): New.
9134 (target_goto_record_end): New.
9135 (target_goto_record): New.
9136 * target.c (target_info_record): New.
9137 (target_save_record): New.
9138 (target_supports_delete_record): New.
9139 (target_delete_record): New.
9140 (target_record_is_replaying): New.
9141 (target_goto_record_begin): New.
9142 (target_goto_record_end): New.
9143 (target_goto_record): New.
9144 * record.h: Declare struct cmd_list_element.
9145 (record_cmdlist): New declaration.
9146 (set_record_cmdlist): New declaration.
9147 (show_record_cmdlist): New declaration.
9148 (info_record_cmdlist): New declaration.
9149 (cmd_record_goto): New declaration.
9150 * record.c: Remove unnecessary includes.
9151 Include inferior.h.
9152 (cmd_record_goto): Remove declaration.
9153 (record_cmdlist): Now extern. Initialize.
9154 (set_record_cmdlist): Now extern. Initialize.
9155 (show_record_cmdlist): Now extern. Initialize.
9156 (info_record_cmdlist): Now extern. Initialize.
9157 (find_record_target): New.
9158 (require_record_target): New.
9159 (cmd_record_start): Update.
9160 (cmd_record_delete): Remove target-specific code.
9161 Call target_delete_record.
9162 (cmd_record_stop): Unpush any record target.
9163 (set_record_insn_max_num): Move to record-full.c
9164 (set_record_command): Add comment.
9165 (show_record_command): Add comment.
9166 (info_record_command): Update comment.
9167 Remove target-specific code.
9168 Call the record target's to_info_record.
9169 (cmd_record_start): New.
9170 (cmd_record_goto): Now extern.
9171 Remove target-specific code.
9172 Call target_goto_begin, target_goto_end, or target_goto.
9173 (_initialize_record): Move record target ops initialization to
9174 record-full.c.
9175 Change "record" command help text.
9176 Move "record restore", "record set", and "record show" commands to
9177 record-full.c.
9178 * Makefile.in (SFILES): Add record-full.c.
9179 (HFILES_NO_SRCDIR): Add record-full.h.
9180 (COMMON_OBS): Add record-full.o.
9181 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9182 * arm-tdep.c: Include record-full.h.
9183 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9184 * i386-tdep.c: Include record-full.h.
9185 * infrun.c: Include record-full.h.
9186 * linux-record.c: Include record-full.h.
9187 * moxie-tdep.c: Include record-full.h.
9188 * record-full.c: Include record-full.h.
9189 Change module comment.
9190 (set_record_full_cmdlist): New.
9191 (show_record_full_cmdlist): New.
9192 (record_full_cmdlist): New.
9193 (record_goto_insn): New declaration.
9194 (record_save): New declaration.
9195 (record_check_insn_num): Change query string.
9196 (record_info): New.
9197 (record_delete): New.
9198 (record_is_replaying): New.
9199 (record_goto_entry): New.
9200 (record_goto_begin): New.
9201 (record_goto_end): New.
9202 (record_goto): New.
9203 (init_record_ops): Update.
9204 (init_record_core_ops): Update.
9205 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9206 (cmd_record_start): New.
9207 (set_record_insn_max_num): Moved from record.c
9208 (set_record_full_command): New.
9209 (show_record_full_command): New.
9210 (_initialize_record_full): New.
9211
9212 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9213
9214 * target.h (add_deprecated_target_alias): New.
9215 * target.c (add_deprecated_target_alias): New.
9216
9217 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9218
9219 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9220 and signal.h.
9221 (linux_supports_btrace): Add kernel and
9222 cpuid check.
9223 (kernel_supports_btrace): New function.
9224 (cpu_supports_btrace): New function.
9225 (intel_supports_btrace): New function.
9226
9227 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9228
9229 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9230 * remote.c: Include btrace.h.
9231 (struct btrace_target_info): New struct.
9232 (remote_supports_btrace): New function.
9233 (send_Qbtrace): New function.
9234 (remote_enable_btrace): New function.
9235 (remote_disable_btrace): New function.
9236 (remote_teardown_btrace): New function.
9237 (remote_read_btrace): New function.
9238 (init_remote_ops): Add btrace ops.
9239 (enum <unnamed>): Add btrace packets.
9240 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9241 (_initialize_remote): Add packet configuration for branch tracing.
9242
9243 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9244
9245 * features/btrace.dtd: New file.
9246 * Makefile.in (XMLFILES): Add btrace.dtd.
9247 * btrace.h (parse_xml_btrace): New declaration.
9248 * btrace.c: Include xml-support.h.
9249 (parse_xml_btrace): New function.
9250 (parse_xml_btrace_block): New function.
9251 (block_attributes): New struct.
9252 (btrace_attributes): New struct.
9253 (btrace_children): New struct.
9254 (btrace_elements): New struct.
9255
9256 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9257
9258 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9259 (amd64_linux_enable_btrace): New.
9260 (amd64_linux_disable_btrace): New.
9261 (amd64_linux_teardown_btrace): New.
9262 (_initialize_amd64_linux_nat): Initialize btrace ops.
9263 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9264 (i386_linux_enable_btrace): New.
9265 (i386_linux_disable_btrace): New.
9266 (i386_linux_teardown_btrace): New.
9267 (_initialize_i386_linux_nat): Initialize btrace ops.
9268 * config/i386/linux.mh: Add linux-btrace.o.
9269 * config/i386/linux64.mh: Add linux-btrace.o.
9270
9271 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9272
9273 * common/linux_btrace.h: New file.
9274 * common/linux_btrace.c: New file.
9275 * Makefile.in (SFILES): Add btrace.c.
9276 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9277 (COMMON_OBS): Add btrace.o.
9278 (linux-btrace.o): New rule.
9279
9280 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9281
9282 * target.h: Include btrace.h.
9283 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9284 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9285 * target.c (target_supports_btrace): New function.
9286 (target_enable_btrace): New function.
9287 (target_disable_btrace): New function.
9288 (target_teardown_btrace): New function.
9289 (target_read_btrace): New function.
9290 * btrace.h: New file.
9291 * btrace.c: New file.
9292 * Makefile.in: Add btrace.c.
9293 * gdbthread.h: Include btrace.h.
9294 (struct thread_info): Add btrace field.
9295 * thread.c: Include btrace.h.
9296 (clear_thread_inferior_resources): Call target_teardown_btrace.
9297 * common/btrace-common.h: New file.
9298
9299 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9300
9301 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9302 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9303 kill_status to outer block.
9304
9305 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9306
9307 Fix entry-values if the callee called a noreturn function.
9308 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9309 get_frame_address_in_block. Add new comment.
9310
9311 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9312
9313 Fix entry-values in C++ across CUs.
9314 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9315 lookup_minimal_symbol. Add a comment.
9316 * dwarf2read.c
9317 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9318 DW_AT_linkage_name.
9319
9320 2013-03-08 Yao Qi <yao@codesourcery.com>
9321
9322 * tracepoint.c (_initialize_tracepoint): Indent the code.
9323
9324 2013-03-08 Pedro Alves <palves@redhat.com>
9325
9326 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9327 (parse_find_args, find_command): Change type of pattern buffer
9328 locals to 'gdb_byte *'.
9329
9330 2013-03-08 Stan Shebs <stan@codesourcery.com>
9331 Hafiz Abid Qadeer <abidh@codesourcery.com>
9332
9333 * NEWS: Mention set and show trace-buffer-size commands.
9334 Mention new packet.
9335 * target.h (struct target_ops): New method
9336 to_set_trace_buffer_size.
9337 (target_set_trace_buffer_size): New macro.
9338 * target.c (update_current_target): Set up new method.
9339 * tracepoint.c (trace_buffer_size): New global.
9340 (start_tracing): Send it to the target.
9341 (set_trace_buffer_size): New function.
9342 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9343 * remote.c (remote_set_trace_buffer_size): New function.
9344 (_initialize_remote): Use it.
9345 (QTBuffer:size) New remote command.
9346 (PACKET_QTBuffer_size): New enum.
9347 (remote_protocol_features): Add an entry for
9348 PACKET_QTBuffer_size.
9349
9350 2013-03-08 Tom Tromey <tromey@redhat.com>
9351
9352 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9353 variable.
9354
9355 2013-03-07 Pedro Alves <palves@redhat.com>
9356
9357 * target.c (target_read_stralloc, target_fileio_read_alloc):
9358 *Cast pointer to 'gdb_byte *' in target call.
9359
9360 2013-03-07 Pedro Alves <palves@redhat.com>
9361
9362 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9363 call.
9364
9365 2013-03-07 Keith Seitz <keiths@redhat.com>
9366
9367 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9368 (trace_pass_command): Likewise.
9369 * cli/cli-cmds.c: Include cli/cli-utils.h.
9370 (source_command): Use skip-spaces.
9371 (disassemble_command): Likewise.
9372 * findcmd.c: Include cli/cli-utils.h.
9373 (parse_find_args): Use skip_spaces.
9374 * go32-nat.c: Include cli/cli-utils.h.
9375 (go32_sldt): Use skip_spaces.
9376 (go32_sgdt): Likewise.
9377 (go32_sidt): Likewise.
9378 (go32_pde): Likewise.
9379 (go32_pte): Likewise.
9380 (go32_pte_for_address): Likewise.
9381 * infcmd.c: Include cli/cli-utils.h.
9382 (registers_info): Use skip_spaces.
9383 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9384 (linux_info_proc): Likewise.
9385 * linux-thread-db.c: Include cli/cli-utils.h.
9386 (info_auto_load_libthread_db): Use skip_spaces_const.
9387 * m32r-rom.c: Include cli/cli-utils.h.
9388 (m32r_upload_command): Use skip_spaces.
9389 * maint.c: Include cli/cli-utils.h.
9390 (maintenance_translate_address): Use skip_spaces.
9391 * mi/mi-parse.c: Include cli/cli-utils.h.
9392 (mi_parse_argv): Use skip_spaces.
9393 (mi_parse): Likewise.
9394 * minsyms.c: Include cli/cli-utils.h.
9395 (msymbol_hash_iw): Use skip_spaces_const.
9396 * objc-lang.c: Include cli/cli-utils.h.
9397 (parse_selector): Use skip_spaces.
9398 (parse_method): Likewise.
9399 * python/python.c: Include cli/cli-utils.h.
9400 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9401 (python_command)[HAVE_PYTHON]: Likewise.
9402 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9403 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9404 (m32r_load): Use skip_spaces.
9405 * serial.c: Include cli/cli-utils.h.
9406 (serial_open): Use skip_spaces_const.
9407 * stack.c: Include cli/cli-utils.h.
9408 (parse_frame_specification_1): Use skip_spaces_const.
9409 * symfile.c: Include cli/cli-utils.h.
9410 (set_ext_lang_command): Use skip_spaces.
9411 * symtab.c: Include cli/cli-utils.h.
9412 (rbreak_command): Use skip_spaces.
9413 * thread.c (thread_name_command): Use skip_spaces.
9414 * tracepoint.c (validate_actionline): Use skip_spaces.
9415 (encode_actions_1): Likewise.
9416 (trace_find_range_command): Likewise.
9417 (trace_find_outside_command): Likewise.
9418 (trace_dump_actions): Likewise.
9419
9420 2013-03-07 Pedro Alves <palves@redhat.com>
9421
9422 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9423 * expprint.c (print_subexp_standard): Likewise.
9424 * utils.c (host_char_to_target): Likewise.
9425 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9426 * varobj.c (value_get_print_value): Change type of local to char*.
9427 Cast it gdb_byte * in call to language printer.
9428
9429 2013-03-07 Pedro Alves <palves@redhat.com>
9430
9431 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9432 gdb_byte *'.
9433 (make_wchar_iterator): Remove cast to char*.
9434 (wchar_iterate): Change type of local.
9435
9436 2013-03-07 Pedro Alves <palves@redhat.com>
9437
9438 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9439 for 'regcache->register_status'.
9440
9441 2013-03-07 Pedro Alves <palves@redhat.com>
9442
9443 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9444 int.
9445
9446 2013-03-07 Pedro Alves <palves@redhat.com>
9447
9448 * stap-probe.c (handle_stap_probe): Add cast to char*.
9449
9450 2013-03-07 Pedro Alves <palves@redhat.com>
9451
9452 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9453 RECORD_MSGRCV>: Pass a signed variable to
9454 regcache_raw_read_signed, instead of an unsigned one.
9455
9456 2013-03-07 Pedro Alves <palves@redhat.com>
9457
9458 * remote-notif.c (notif_debug): Change type to int.
9459 * remote-notif.h (notif_debug): Likewise.
9460
9461 2013-03-07 Pedro Alves <palves@redhat.com>
9462
9463 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9464
9465 2013-03-07 Pedro Alves <palves@redhat.com>
9466
9467 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9468 * remote.h (hex2bin, bin2hex): ... here.
9469 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9470
9471 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9472
9473 * utils.c (initialize_utils): Improve doc strings of "set/show
9474 width", "set/show height", and "set/show pagination".
9475
9476 2013-03-06 Keith Seitz <keiths@redhat.com>
9477
9478 * ax-gdb.c (gen_printf): Make FORMAT const.
9479 * ax-gdb.h (gen_printf): Likewise.
9480 * ax-general.c (ax_string): Make STR const.
9481 * ax.h (ax_string): Likewise.
9482
9483 2013-03-06 Doug Evans <dje@google.com>
9484
9485 * elfread.c (elf_symfile_read): Move debugging printf to more
9486 logical location.
9487
9488 2013-03-06 Pedro Alves <palves@redhat.com>
9489
9490 * python/py-utils.c (target_string_to_unicode): Delete function.
9491 * python/python-internal.h (target_string_to_unicode): Delete
9492 declaration.
9493
9494 2013-03-06 Pierre Muller <muller@sourceware.org>
9495
9496 * linespec.c (get_current_search_block): ARI fix, use (void)
9497 for empty parameter list.
9498
9499 2013-03-05 Doug Evans <dje@google.com>
9500
9501 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9502 of old ada_lookup_symbol_list. In !full_search case, don't
9503 search superblocks.
9504 (ada_lookup_symbol_list): Delete arg full_search, all callers
9505 updated. Call ada_lookup_symbol_list_worker.
9506 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9507 * ada-lang.h (ada_lookup_symbol_list): Update.
9508 * language.h (language_defn): Update comment for
9509 la_iterate_over_symbols.
9510 * linespec.c (iterate_over_file_blocks): New function.
9511 (iterate_over_all_matching_symtabs): Call it.
9512 (lookup_prefix_sym): Ditto.
9513 (get_current_search_block): New function.
9514 (get_search_block): Delete.
9515 (find_label_symbols): Call get_current_search_block.
9516 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9517 * symtab.c (iterate_over_symbols): Don't search superblocks.
9518
9519 2013-03-05 Yao Qi <yao@codesourcery.com>
9520
9521 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9522 parameter VAR's type from "unsigned int" to "int".
9523 * command.h (var_zuinteger_unlimited): Update its comments.
9524 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9525
9526 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9527
9528 * NEWS: Mention new target x86_64-*-cygwin*.
9529
9530 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9531
9532 * configure.host: Add x86_64-*-cygwin* as host.
9533 * configure.tgt: Add x86_64-*-cygwin* as target.
9534 * config/i386/cygwin64.mh: New file.
9535
9536 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9537
9538 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9539
9540 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9541
9542 * linespec.c (struct linespec_canonical_name): New.
9543 (struct linespec_state): Change canonical_names type to it.
9544 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9545 xrealloc element size. Initialize the different CANONICAL fields.
9546 (canonical_to_fullform): New.
9547 (filter_results): Use it. Add variables canonical, fullform and
9548 cleanup.
9549 (struct decode_line_2_item, decode_line_2_compare_items): New.
9550 (decode_line_2): Remove variables iter and item_names, add variables
9551 items and items_count. Modify the code for these new variables.
9552
9553 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9554
9555 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9556 calling do_cleanup.
9557
9558 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9559
9560 * tracepoint.c (build_traceframe_info): Add code for byte order.
9561
9562 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9563
9564 * v850-tdep.c: (v850e2_register_name): Revise system register
9565 names to match current V850E2M architecture specifications.
9566 Update register number enum comments too.
9567
9568 2013-03-01 Jiong Wang <jiwang@tilera.com>
9569 Pedro Alves <palves@redhat.com>
9570
9571 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9572 to END_ADDR.
9573 (tilegx_skip_prologue): Limit prologue analysis to section end.
9574
9575 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9576
9577 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9578 use it.
9579
9580 2013-03-01 Pedro Alves <palves@redhat.com>
9581
9582 Use gdb_byte for bytes from the program being debugged.
9583
9584 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9585 Change type of local 'buf' to gdb_byte.
9586 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9587 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9588 * cris-tdep.c (cris_sigcontext_addr)
9589 (cris_sigtramp_frame_unwind_cache): Likewise.
9590 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9591 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9592 Likewise.
9593 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9594 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9595 (hppa32_hpux_search_dummy_call_sequence)
9596 (hppa_hpux_supply_save_state): Likewise.
9597 * hppa-linux-tdep.c (insns_match_pattern)
9598 (hppa_linux_find_global_pointer): Likewise.
9599 * hppa-tdep.c (hppa_in_function_epilogue_p)
9600 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9601 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9602 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9603 (i386fbsd_collect_uthread): Likewise.
9604 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9605 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9606 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9607 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9608 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9609 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9610 (ia64_libunwind_frame_prev_register)
9611 (ia64_libunwind_sigtramp_frame_this_id)
9612 (ia64_find_global_pointer_from_dynamic_section)
9613 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9614 (ia64_unwind_pc): Likewise.
9615 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9616 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9617 (m68hc11_extract_return_value): Likewise.
9618 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9619 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9620 (mep_get_insn, mep_push_dummy_call): Likewise.
9621 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9622 (mips_linux_in_dynsym_stub): Likewise.
9623 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9624 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9625 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9626 to gdb_byte.
9627 * remote-mips.c (mips_set_register): Likewise.
9628 * remote-sim.c (gdbsim_fetch_register): Likewise.
9629 * score-tdep.c (score7_fetch_inst): Change type of parameter
9630 'memblock' and local 'buf' to gdb_byte.
9631 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9632 Change type of local 'buf' to gdb_byte. Adjust.
9633 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9634 to gdb_byte**.
9635 (score7_analyze_prologue): Change type of 'memblock' and
9636 'memblock_ptr' locals to gdb_byte*.
9637 * sh64-tdep.c (sh64_extract_return_value)
9638 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9639 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9640 * solib-pa64.c (pa64_solib_create_inferior_hook)
9641 (pa64_open_symbol_file_object): Remove local 'buf'.
9642 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9643 (som_open_symbol_file_object): Likewise.
9644 * solib-spu.c (spu_current_sos): Likewise.
9645 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9646 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9647 (spu_store_registers): Likewise.
9648 * target.c (debug_print_register): Likewise.
9649 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9650 * xstormy16-tdep.c (xstormy16_store_return_value)
9651 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9652 (xstormy16_find_jmp_table_entry): Likewise.
9653
9654 2013-03-01 Jiong Wang <jiwang@tilera.com>
9655
9656 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9657 (tilegx_gdbarch_init): Install it.
9658
9659 2013-02-28 Tom Tromey <tromey@redhat.com>
9660
9661 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9662 PyLong_Check.
9663
9664 2013-02-28 Doug Evans <dje@google.com>
9665
9666 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9667 * python/python.c (gdbpy_find_pc_line): Ditto.
9668
9669 2013-02-28 Tom Tromey <tromey@redhat.com>
9670
9671 * contrib/excheck.py: New file.
9672 * contrib/exsummary.py: New file.
9673 * contrib/gcc-with-excheck: New file.
9674
9675 2013-02-28 Tom Tromey <tromey@redhat.com>
9676
9677 * python/python.c (gdbpy_print_stack): Call begin_line and
9678 fprintf_filtered inside TRY_CATCH.
9679
9680 2013-02-28 Tom Tromey <tromey@redhat.com>
9681
9682 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9683 inside TRY_CATCH.
9684
9685 2013-02-28 Tom Tromey <tromey@redhat.com>
9686
9687 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9688 frame_object_to_frame_info inside TRY_CATCH.
9689
9690 2013-02-28 Tom Tromey <tromey@redhat.com>
9691
9692 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9693 TRY_CATCH.
9694
9695 2013-02-28 Tom Tromey <tromey@redhat.com>
9696
9697 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9698
9699 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9700
9701 * windows-nat.c: Throughout, fix format strings and casts of
9702 printf-like functions to avoid type related warnings on all
9703 platforms.
9704 (handle_output_debug_string): Fetch context information address
9705 from debug string using string_to_core_addr.
9706
9707 2013-02-27 Jiong Wang <jiwang@tilera.com>
9708
9709 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9710 * regformats/reg-tilegx32.dat: New.
9711
9712 2013-02-27 Jiong Wang <jiwang@tilera.com>
9713
9714 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9715
9716 2013-02-27 Jiong Wang <jiwang@tilera.com>
9717
9718 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9719
9720 2013-02-27 Yao Qi <yao@codesourcery.com>
9721 Pedro Alves <palves@redhat.com>
9722
9723 * tracepoint.c (tfile_trace_find): For tfind
9724 pc/tp/range/outside, look for the next trace frame instead of
9725 always starting from frame 0.
9726
9727 2013-02-26 Anthony Green <green@moxielogic.com>
9728
9729 * configure.tgt: Add support for moxie-*-rtems* target.
9730
9731 2013-02-25 Pedro Alves <palves@redhat.com>
9732
9733 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9734 warning text.
9735
9736 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9737
9738 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9739 if $fp is used as the virtual frame pointer.
9740
9741 2013-02-23 Alan Modra <amodra@gmail.com>
9742
9743 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9744 symbol size.
9745 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9746 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9747 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9748 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9749
9750 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9751
9752 Code cleanup.
9753 * elfread.c (build_id_bfd_get): Make the return type const.
9754 (build_id_verify): Make the check parameter const.
9755 (build_id_to_debug_filename): Make the build_id parameter and variable
9756 data const.
9757 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9758
9759 2013-02-21 Alan Modra <amodra@gmail.com>
9760
9761 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9762
9763 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9764
9765 Add a new method 'disassemble' to gdb.Architecture class.
9766 * python/py-arch.c (archpy_disassmble): Implementation of the
9767 new method gdb.Architecture.disassemble.
9768 (arch_object_methods): Add entry for the new method.
9769
9770 2013-02-20 Jiong Wang <jiwang@tilera.com>
9771
9772 * MAINTAINERS (Write After Approval): Add myself to the list.
9773
9774 2013-02-19 Pedro Alves <palves@redhat.com>
9775
9776 Garbage collect 'struct monitor_ops'::load_routine.
9777
9778 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9779 * monitor.c (monitor_load): No longer call
9780 current_monitor->load_routine.
9781 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9782 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9783 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9784
9785 2013-02-19 Pedro Alves <palves@redhat.com>
9786
9787 PR gdb/15161
9788
9789 Harmonize with generic_load.
9790
9791 * monitor.c: Include "readline/readline.h".
9792 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9793 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9794 long/strtol for the 'load_offset' local. Error out if no argument
9795 is given or if too many arguments are given. Tilde expand the
9796 passed in file name.
9797
9798 2013-02-19 Kai Tietz <ktietz@redhat.com>
9799
9800 PR gdb/15161
9801 * symfile.c (load_section_data): Change type of load_offset
9802 to CORE_ADDR.
9803 (generic_load): User strtoulst instead of strtoul for conversion
9804 of load_offset.
9805
9806 2013-02-19 Jiong Wang <jiwang@tilera.com>
9807
9808 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9809 for return address, "lr" register, saved on stack.
9810 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9811 after we invoke tilegx_analyze_prologue.
9812
9813 2013-02-19 Jiong Wang <jiwang@tilera.com>
9814
9815 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9816
9817 2013-02-19 Jiong Wang <jiwang@tilera.com>
9818
9819 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9820
9821 2013-02-19 Jiong Wang <jiwang@tilera.com>
9822
9823 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9824 (tilegx_write_pc): New function.
9825 (tilegx_cannot_reference_register): Return zero if REGNO
9826 is TILEGX_FAULTNUM_REGNUM.
9827 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9828 (tilegx_register_name): Add handling of "faultnum" register.
9829 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9830 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9831 handling of TILEGX_FAULTNUM_REGNUM.
9832 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9833
9834 2013-02-19 Jiong Wang <jiwang@tilera.com>
9835
9836 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9837 should be aligned to 64bit.
9838
9839 2013-02-19 Kai Tietz <ktietz@redhat.com>
9840
9841 * windows-nat.c (windows_xfer_memory): Fix debug-output
9842 for LLP64.
9843
9844 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9845
9846 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9847 Don't check DSP register number if HAVE_DSP is not set.
9848
9849 2013-02-19 Alan Modra <amodra@gmail.com>
9850
9851 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9852 throughout file instead.
9853 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9854 Don't xmalloc return value.
9855 (build_id_verify): Similarly. Don't xfree.
9856 (build_id_to_debug_filename): Update.
9857 (find_separate_debug_file_by_buildid): Update, don't xfree.
9858
9859 2013-02-18 Tom Tromey <tromey@redhat.com>
9860
9861 PR gdb/15102:
9862 * dwarf2read.c (read_subrange_type): Use result of
9863 'check_typedef'.
9864
9865 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9866
9867 * frame.c: Remove one extra white space after #include
9868 directive.
9869
9870 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9871
9872 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9873
9874 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9875
9876 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9877 and dir commands into an if block.
9878
9879 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9880
9881 * python/py-breakpoint (struct pybp_code): Use int instead of
9882 enum type_code.
9883
9884 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9885 Hafiz Abid Qadeer <abidh@codesourcery.com>
9886
9887 * NEWS: Mention new field "trace-file".
9888 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9889 (tfile_open): Record the trace file's filename in the trace
9890 status.
9891 (tfile_files_info): Mention the name of the trace file.
9892 Check the "filename" field explicitely.
9893 (trace_status_command): Explicitely check "filename" field.
9894 (trace_find_command): Ditto.
9895 (trace_find_pc_command): Ditto.
9896 (trace_find_tracepoint_command): Ditto.
9897 (trace_find_line_command): Ditto.
9898 (trace_find_range_command): Ditto.
9899 (trace_find_outside_command): Ditto.
9900 * tracepoint.h (struct trace_status) <from_file>: Rename it
9901 to "filename" and make it hold the trace file's filename
9902 instead of a boolean.
9903 * remote.c (remote_get_trace_status): Initialize "filename"
9904 field with NULL instead of 0.
9905
9906 2013-02-15 Yao Qi <yao@codesourcery.com>
9907
9908 * remote.c: Fix a typo.
9909
9910 2013-02-14 Pierre Muller <muller@sourceware.org>
9911
9912 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9913
9914 2013-02-14 Pedro Alves <palves@redhat.com>
9915
9916 * utils.c (savestring): Don't #undef it. Move function to
9917 common/common-utils.c.
9918 * common/common-utils.c: Include gdb_string.h.
9919 (savestring): Move here from utils.c.
9920 * common/common-utils.h (savestring): Declare.
9921
9922 2013-02-14 Pedro Alves <palves@redhat.com>
9923
9924 * utils.c (savestring): Rename parameter 'size' to 'len'.
9925
9926 2013-02-14 Pedro Alves <palves@redhat.com>
9927 Yufeng Zhang <yufeng.zhang@arm.com>
9928
9929 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9930 (aarch64_inferior_data, struct aarch64_inferior_data):
9931 Delete.
9932 (struct aarch64_process_info): New.
9933 (aarch64_process_list): New global.
9934 (aarch64_find_process_pid, aarch64_add_process)
9935 (aarch64_process_info_get): New functions.
9936 (aarch64_inferior_data_get): Delete.
9937 (aarch64_process_info_get): New function.
9938 (aarch64_forget_process): New function.
9939 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9940 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9941 aarch64_get_debug_reg_state.
9942 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9943 instead of linux_nat_iterate_watchpoint_lwps.
9944 (aarch64_linux_new_fork): New function.
9945 (aarch64_linux_child_post_startup_inferior): Use
9946 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9947 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9948 (aarch64_linux_remove_hw_breakpoint)
9949 (aarch64_handle_aligned_watchpoint)
9950 (aarch64_handle_unaligned_watchpoint)
9951 (aarch64_linux_insert_watchpoint)
9952 (aarch64_linux_remove_watchpoint)
9953 (aarch64_linux_stopped_data_address): Adjust to pass the current
9954 process id to aarch64_debug_reg_state.
9955 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9956 linux_nat_new_fork hook, and aarch64_forget_process as
9957 linux_nat_forget_process hook; remove the call to
9958 register_inferior_data_with_cleanup.
9959
9960 2013-02-14 Pedro Alves <palves@redhat.com>
9961
9962 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9963 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9964 lval_memory.
9965
9966 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9967 Hafiz Abid Qadeer <abidh@codesourcery.com>
9968
9969 * tracepoint.h (validate_trace_state_variable_name): Declare.
9970 * tracepoint.c (validate_trace_state_variable_name): New.
9971 (trace_variable_command): Parse the trace state variable's name
9972 without using parse_expression. Do several validations.
9973 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9974 trace state variable's name with parse_expression. Validate it.
9975
9976 2013-02-14 Yao Qi <yao@codesourcery.com>
9977
9978 * infcmd.c (breakpoint_proceeded): Remove it.
9979
9980 2013-02-14 Yao Qi <yao@codesourcery.com>
9981
9982 * tracepoint.c (end_actions_pseudocommand): Make it static.
9983 (while_stepping_pseudocommand): Likewise.
9984 * tracepoint.h (end_actions_pseudocommand): Remove the
9985 declaration.
9986 (while_stepping_pseudocommand): Likewise.
9987
9988 2013-02-14 Yao Qi <yao@codesourcery.com>
9989
9990 * cli/cli-decode.c (help_cmd): Remove the declaration of
9991 "cmdlist".
9992 (help_all): Likewise.
9993
9994 2013-02-13 Pedro Alves <palves@redhat.com>
9995
9996 * amd64-linux-nat.c (update_debug_registers_callback):
9997 Update comment.
9998 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9999 iterate_over_lwps.
10000 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10001 i386_debug_reg_state.
10002 (amd64_linux_new_fork): New function.
10003 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10004 linux_nat_new_fork hook, and i386_forget_process as
10005 linux_nat_forget_process hook.
10006 * i386-linux-nat.c (update_debug_registers_callback):
10007 Update comment.
10008 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10009 iterate_over_lwps.
10010 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10011 i386_debug_reg_state.
10012 (i386_linux_new_fork): New function.
10013 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10014 linux_nat_new_fork hook, and i386_forget_process as
10015 linux_nat_forget_process hook.
10016 * i386-nat.c (i386_init_dregs): Delete.
10017 (i386_inferior_data, struct i386_inferior_data):
10018 Delete.
10019 (struct i386_process_info): New.
10020 (i386_process_list): New global.
10021 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10022 New functions.
10023 (i386_inferior_data_get): Delete.
10024 (i386_process_info_get): New function.
10025 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10026 (i386_forget_process): New function.
10027 (i386_cleanup_dregs): Rewrite.
10028 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10029 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10030 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10031 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10032 to i386_debug_reg_state.
10033 (i386_use_watchpoints): Don't register inferior data.
10034 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10035 adjust comment.
10036 (i386_forget_process): Declare.
10037 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10038 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10039 New static globals.
10040 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10041 (add_initial_lwp): New, factored out from ...
10042 (add_lwp): ... this. Don't check the number of lwps before
10043 calling linux_nat_new_thread.
10044 (linux_nat_iterate_watchpoint_lwps): Delete.
10045 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10046 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10047 forks and vforks.
10048 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10049 initial lwp.
10050 (linux_nat_kill, linux_nat_mourn_inferior): Call
10051 linux_nat_forget_process.
10052 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10053 (linux_nat_forget_process): New functions.
10054 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10055 type.
10056 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10057 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10058 types.
10059 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10060 (linux_nat_forget_process): New declarations.
10061
10062 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10063 (amd64fbsd_mourn_inferior): New function.
10064 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10065 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10066
10067 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10068
10069 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10070 Adding _().
10071
10072 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10073
10074 * aarch64-linux-nat.c (debug_reg_change_callback)
10075 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10076 %s and phex().
10077
10078 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10079
10080 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10081 with LONGEST.
10082
10083 2013-02-13 Pedro Alves <palves@redhat.com>
10084 Hafiz Abid Qadeer <abidh@codesourcery.com>
10085
10086 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10087
10088 2013-02-12 Tom Tromey <tromey@redhat.com>
10089
10090 PR symtab/11464:
10091 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10092 NAME return.
10093 (classify_inner_name): Remove 'first_name' argument, add
10094 'context'. Remove unused variable.
10095 (yylex): Explicitly maintain the context type. Exit loop earlier
10096 if NAME result is seen.
10097
10098 2013-02-12 Pedro Alves <palves@redhat.com>
10099
10100 * amd64-darwin-tdep.c: Add (C) after Copyright.
10101 * cli/cli-cmds.h: Ditto.
10102 * cli/cli-decode.c: Ditto.
10103 * cli/cli-decode.h: Ditto.
10104 * cli/cli-dump.c: Ditto.
10105 * cli/cli-dump.h: Ditto.
10106 * cli/cli-interp.c: Ditto.
10107 * cli/cli-logging.c: Ditto.
10108 * cli/cli-script.c: Ditto.
10109 * cli/cli-script.h: Ditto.
10110 * cli/cli-setshow.c: Ditto.
10111 * cli/cli-setshow.h: Ditto.
10112 * cli/cli-utils.c: Ditto.
10113 * cli/cli-utils.h: Ditto.
10114 * config/alpha/nm-osf3.h: Ditto.
10115 * config/djgpp/djconfig.sh: Ditto.
10116 * config/i386/nm-fbsd.h: Ditto.
10117 * config/i386/nm-i386gnu.h: Ditto.
10118 * config/nm-linux.h: Ditto.
10119 * config/nm-nto.h: Ditto.
10120 * config/rs6000/nm-rs6000.h: Ditto.
10121 * config/sparc/nm-sol2.h: Ditto.
10122 * darwin-nat-info.c: Ditto.
10123 * dfp.c: Ditto.
10124 * dfp.h: Ditto.
10125 * gdb-demangle.h: Ditto.
10126 * i386-darwin-nat.c: Ditto.
10127 * i386-darwin-tdep.c: Ditto.
10128 * linux-fork.h: Ditto.
10129 * m32c-tdep.c: Ditto.
10130 * microblaze-linux-tdep.c: Ditto.
10131 * microblaze-rom.c: Ditto.
10132 * microblaze-tdep.c: Ditto.
10133 * microblaze-tdep.h: Ditto.
10134 * mips-linux-tdep.h: Ditto.
10135 * ppc-ravenscar-thread.c: Ditto.
10136 * ppc-ravenscar-thread.h: Ditto.
10137 * prologue-value.c: Ditto.
10138 * prologue-value.h: Ditto.
10139 * ravenscar-thread.c: Ditto.
10140 * ravenscar-thread.h: Ditto.
10141 * sparc-ravenscar-thread.c: Ditto.
10142 * sparc-ravenscar-thread.h: Ditto.
10143 * tilegx-linux-tdep.c: Ditto.
10144 * unwind_stop_reasons.def: Ditto.
10145 * windows-nat.h: Ditto.
10146 * xtensa-linux-tdep.c: Ditto.
10147 * xtensa-xtregs.c: Ditto.
10148 * regformats/regdat.sh: Ditto.
10149 * regformats/regdef.h: Ditto.
10150
10151 2013-02-12 Pedro Alves <palves@redhat.com>
10152
10153 * break-catch-sig.c: Update copyright years.
10154
10155 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10156
10157 Add support for a destructor for ui_out data and use it to
10158 provide a ui_out destructor.
10159 * ui-out.h: Declare the new ui_out destructor.
10160 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10161 * ui-out.c (default_data_destroy): Add a default data destructor
10162 which does nothing.
10163 (default_ui_out_impl): Set the new data_destroy field to
10164 default_data_destroy
10165 (uo_data_destroy): Local function which invokes the data
10166 destructor if present.
10167 (clear_table): Local function which clears the table data of a
10168 ui_out object.
10169 (ui_out_destroy): Public function which frees a ui_out object.
10170 (ui_out_table_end): Use the new clear_table function.
10171 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10172 NULL.
10173 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10174 to NULL.
10175
10176 2013-02-11 Doug Evans <dje@google.com>
10177
10178 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10179 (printf_decfloat): New function. Broken out from ui_printf.
10180 Remove unnecessary code to shift the entire format string down.
10181 (printf_pointer): New function.
10182 (ui_printf): Code to print C strings, wide C strings, decfloats,
10183 and pointers moved to separate functions.
10184
10185 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10186
10187 * valops.c (value_assign): Handling bitfield offset in
10188 `lval_internalvar_component' case.
10189
10190 2013-02-08 Doug Evans <dje@google.com>
10191
10192 * common/format.c (parse_format_string): Fix whitespace.
10193
10194 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10195
10196 * stack.c (return_command): Work around uninitialized variable
10197 warning.
10198
10199 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10200
10201 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10202 number of the registers from 36 to 34.
10203
10204 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10205
10206 * NEWS: Mention new AArch64 native and target support.
10207
10208 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10209
10210 * MAINTAINERS (Write After Approval): Add myself.
10211
10212 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10213 Marcus Shawcroft <marcus.shawcroft@arm.com>
10214 Nigel Stephens <nigel.stephens@arm.com>
10215 Yufeng Zhang <yufeng.zhang@arm.com>
10216
10217 * aarch64-linux-nat.c: New file.
10218 * config/aarch64/linux.mh: New file.
10219 * configure.host: Add AArch64.
10220 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10221
10222 2013-02-07 Doug Evans <dje@google.com>
10223
10224 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10225 disassemble command.
10226
10227 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10228
10229 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10230 set_gdbarch_fetch_tls_load_module_address.
10231
10232 2013-02-06 David S. Miller <davem@davemloft.net>
10233
10234 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10235 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10236 * value.c (struct_return_convention): New function.
10237 (using_struct_return): Implement in terms of struct_return_convention.
10238 * value.h (struct_return_convention): Declare.
10239 * stack.c (return_command): Allow successful overriding of the return
10240 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10241
10242 2013-02-06 Tom Tromey <tromey@redhat.com>
10243
10244 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10245 outside of TRY_CATCH.
10246
10247 2013-02-06 Yao Qi <yao@codesourcery.com>
10248
10249 * mi/mi-interp.c: Include "tracepoint.h".
10250 (mi_tsv_modified): Declare.
10251 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10252 (mi_interpreter_init): Call observer_attach_tsv_modified.
10253 (mi_tsv_modified): New.
10254 (mi_tsv_created, mi_tsv_deleted): Update.
10255 * tracepoint.c (trace_variable_command): Call
10256 observer_notify_tsv_modified if the initial value of tsv is
10257 changed.
10258 (delete_trace_state_variable): Call
10259 observer_notify_tsv_deleted earlier.
10260 (trace_variable_command): Caller update.
10261 (create_tsv_from_upload): Likewise.
10262 * observer.sh: Declare "struct trace_state_variable".
10263
10264 * NEWS: Mention the new MI notification "=tsv-modified".
10265
10266 2013-02-05 Doug Evans <dje@google.com>
10267
10268 * completer.c (location_completer): Fix typo in comment.
10269
10270 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10271
10272 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10273 ADDRESS sorted.
10274
10275 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10276
10277 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10278 Refactor if statement to avoid trailing || operator.
10279
10280 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10281
10282 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10283
10284 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10285
10286 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10287 * configure.host: Add powerpc*-*-freebsd* target.
10288 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10289 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10290 * config/powerpc/fbsd.mh: New file.
10291
10292 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10293 Denys Vlasenko <dvlasenk@redhat.com>
10294 Pedro Alves <palves@redhat.com>
10295
10296 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10297 (struct elf_internal_linux_prpsinfo): Forward declare.
10298 * gdbarch.h, gdbarch.c: Regenerate.
10299 * linux-tdep.c: Include `cli/cli-utils.h'.
10300 (linux_fill_prpsinfo): New function.
10301 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10302 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10303 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10304 depending on gdbarch pointer bitness.
10305 * ppc-linux-tdep.c: Include elf-bfd.h.
10306 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10307 on 32-bit.
10308
10309 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10310 Marcus Shawcroft <marcus.shawcroft@arm.com>
10311 Nigel Stephens <nigel.stephens@arm.com>
10312 Yufeng Zhang <yufeng.zhang@arm.com>
10313
10314 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10315
10316 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10317 Marcus Shawcroft <marcus.shawcroft@arm.com>
10318 Nigel Stephens <nigel.stephens@arm.com>
10319 Yufeng Zhang <yufeng.zhang@arm.com>
10320
10321 * aarch64-newlib-tdep.c: New file.
10322 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10323 aarch64*-*-elf.
10324 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10325 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10326 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10327 * osabi.c (gdb_osabi_names): Add "Newlib".
10328
10329 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10330 Marcus Shawcroft <marcus.shawcroft@arm.com>
10331 Nigel Stephens <nigel.stephens@arm.com>
10332 Yufeng Zhang <yufeng.zhang@arm.com>
10333
10334 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10335 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10336 * aarch64-linux-tdep.c: New file.
10337 * aarch64-linux-tdep.h: New file.
10338 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10339 * configure.tgt: Add aarch64-none-linux-gnu.
10340
10341 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10342 Marcus Shawcroft <marcus.shawcroft@arm.com>
10343 Nigel Stephens <nigel.stephens@arm.com>
10344 Yufeng Zhang <yufeng.zhang@arm.com>
10345
10346 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10347 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10348 (ALLDEPFILES): Add aarch64-tdep.c.
10349 * aarch64-tdep.c: New file.
10350 * aarch64-tdep.h: New file.
10351 * configure.tgt: Add AArch64.
10352 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10353 (aarch64-expedite): New definition.
10354 * features/aarch64-core.xml: New file.
10355 * features/aarch64-fpu.xml: New file.
10356 * features/aarch64-without-fpu.c: New file (generated).
10357 * features/aarch64-without-fpu.xml: New file.
10358 * features/aarch64.c: New file (generated).
10359 * features/aarch64.xml: New file.
10360 * regformats/aarch64-without-fpu.dat: New file (generated).
10361 * regformats/aarch64.dat: New file (generated).
10362
10363 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10364
10365 * contrib/expect-read1.c: New file.
10366 * contrib/expect-read1.sh: New file.
10367
10368 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10369
10370 * dwarf2read.c (file_file_name): New function with code from
10371 file_full_name.
10372 (file_full_name): Move most of the code to file_file_name.
10373 (macro_start_file): Rename variable full_name to file_name and use
10374 file_file_name for it. Add comp_dir parameter to new_macro_table.
10375 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10376 macro_source_file->filename access by macro_source_fullname call.
10377 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10378 caller.
10379 * macrotab.c (struct macro_table): New field comp_dir.
10380 (macro_include): New variables link_fullname and source_fullname.
10381 Replace any macro_source_file->filename access by macro_source_fullname
10382 call.
10383 (macro_lookup_inclusion): Remove the partial filenames checking code.
10384 (check_for_redefinition): New variables source_fullname and
10385 found_key_fullname. Replace any macro_source_file->filename access by
10386 macro_source_fullname call.
10387 (macro_undef): New variables source_fullname and key_fullname. Replace
10388 any macro_source_file->filename access by macro_source_fullname call.
10389 (macro_lookup_definition): New variables retval and source_fullname.
10390 Replace any macro_source_file->filename access by macro_source_fullname
10391 call.
10392 (foreach_macro): New variable key_fullname. Replace any
10393 macro_source_file->filename access by macro_source_fullname call.
10394 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10395 macro_source_file->filename access by macro_source_fullname call.
10396 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10397 (macro_source_fullname): New function.
10398 * macrotab.h (struct macro_source_file): Extent the filename field
10399 comment.
10400 (new_macro_table): New parameter comp_dir, add a comment for it.
10401 (macro_source_fullname): new declaration.
10402
10403 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10404
10405 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10406 this_real_name to outer block. Use it also for
10407 compare_filenames_for_search.
10408 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10409 with dw2_get_real_path for file_matcher, considering also
10410 BASENAMES_MAY_DIFFER.
10411 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10412
10413 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10414
10415 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10416 to the file_matcher parameter. Pass 0 to it.
10417 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10418 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10419 NULL psymtab_to_fullname result.
10420 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10421 an expected filename instead.
10422 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10423 file_matcher parameter. Call also psymtab_to_fullname, after newly
10424 considering BASENAMES_MAY_DIFFER.
10425 * source.c (rewrite_source_path): Remove static.
10426 * source.h (rewrite_source_path): New declaration.
10427 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10428 the expand_symtabs_matching field. Comment it.
10429 * symtab.c (file_matches): New function comment. Add parameter
10430 basenames, implement it.
10431 (search_symbols_file_matches): Add basenames parameter. Update the
10432 file_matches caller.
10433 (search_symbols): Match FILES also against symtab_to_fullname.
10434 Optimize it for BASENAMES_MAY_DIFFER.
10435
10436 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10437
10438 * source.c (print_source_lines_base): Print for TUI also "fullname".
10439 * tui/tui-data.c (init_content_element): Change tui_locator_element
10440 field to full_name.
10441 * tui/tui-data.h (struct tui_locator_element): Likewise.
10442 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10443 tui_update_locator_filename calls to tui_update_locator_fullname.
10444 Replace symtab->filename refererence by symtab_to_fullname call.
10445 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10446 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10447 field to full_name. Replace symtab->filename refererence by
10448 symtab_to_fullname call.
10449 (tui_show_symtab_source): Rename parameter to fullname. Change
10450 tui_locator_element field to full_name.
10451 * tui/tui-stack.c: Include source.h.
10452 (tui_set_locator_filename): Rename the declaration to ...
10453 (tui_set_locator_fullname): ... here. Rename its parameter to
10454 fullname, updates its comment.
10455 (tui_set_locator_info): Rename its parameter to fullname.
10456 (tui_set_locator_filename): Rename the definition to ...
10457 (tui_set_locator_fullname): ... here. Rename its parameter to
10458 fullname, updates its comment. Change tui_locator_element field to
10459 full_name.
10460 (tui_set_locator_info): Rename its parameter to fullname.
10461 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10462 (tui_update_locator_filename): Rename to ...
10463 (tui_update_locator_fullname): ... here. Rename callee to
10464 tui_set_locator_fullname.
10465 (tui_show_frame_info): Replace symtab->filename refererence by
10466 symtab_to_fullname call.
10467 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10468 (tui_update_locator_fullname): ... here.
10469 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10470 tui_update_locator_fullname. Replace symtab->filename refererence by
10471 symtab_to_fullname call.
10472 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10473 Rename the callee to tui_update_locator_fullname.
10474 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10475
10476 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10477
10478 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10479 by symtab_to_filename_for_display calls.
10480 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10481 (clear_command): New variable sal_fullname, initialize it. Replace
10482 compare_filenames_for_search by filename_cmp with sal_fullname.
10483 (say_where, update_static_tracepoint): Replace symtab->filename
10484 refererences by symtab_to_filename_for_display calls.
10485 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10486 Likewise.
10487 * dwarf2read.c: Include source.h.
10488 (fixup_go_packaging): Replace symtab->filename refererences by
10489 symtab_to_filename_for_display calls.
10490 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10491 Replace symtab->filename refererences by symtab_to_filename_for_display
10492 calls.
10493 (create_sals_line_offset, convert_linespec_to_sals): New variable
10494 fullname, initialize it, replace symtab->filename reference by the
10495 variable.
10496 * linux-fork.c: Include source.h.
10497 (info_checkpoints_command): Replace symtab->filename refererences by
10498 symtab_to_filename_for_display calls.
10499 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10500 by symtab_to_filename_for_display calls.
10501 * mdebugread.c: Include source.h.
10502 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10503 symtab_to_filename_for_display calls.
10504 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10505 (mi_cmd_file_list_exec_source_files): Likewise.
10506 * printcmd.c: Include source.h.
10507 (build_address_symbolic): Replace symtab->filename refererences by
10508 symtab_to_filename_for_display calls.
10509 * psymtab.c (partial_map_symtabs_matching_filename)
10510 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10511 with psymtab_to_fullname.
10512 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10513 by symtab_to_filename_for_display calls.
10514 (stpy_get_filename): New variable filename, initialize it, use instead
10515 of symtab->filename refererences.
10516 (salpy_str): Make variable filename const char *. Replace
10517 symtab->filename refererences by symtab_to_filename_for_display calls.
10518 * skip.c: Include source.h and filenames.h.
10519 (skip_file_command): Remove const from the symtab variable. Replace
10520 symtab->filename refererences by symtab_to_fullname call.
10521 (function_name_is_marked_for_skip): New variables searched_for_fullname
10522 and fullname. Use them to search also with symtab's fullname.
10523 * source.c (find_source_lines): Replace symtab->filename refererences
10524 by symtab_to_filename_for_display calls.
10525 (print_source_lines_base): New variable filename, use it instead of
10526 symtab->filename. Replace symtab->filename refererences by
10527 symtab_to_filename_for_display calls.
10528 (line_info, forward_search_command): Replace symtab->filename
10529 refererences by symtab_to_filename_for_display calls.
10530 (reverse_search_command): Replace symtab->filename refererences by
10531 symtab_to_filename_for_display calls. New variable filename for it.
10532 * stack.c (frame_info): Likewise.
10533 * symmisc.c: Include source.h.
10534 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10535 (maintenance_info_symtabs): Replace symtab->filename refererences by
10536 symtab_to_filename_for_display calls.
10537 * symtab.c (iterate_over_some_symtabs): Call
10538 compare_filenames_for_search also with symtab_to_fullname.
10539 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10540 symtab->filename refererences by symtab_to_filename_for_display calls.
10541 (find_line_symtab): Replace symtab->filename refererences by
10542 symtab_to_filename_for_display calls.
10543 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10544 (print_symbol_info): Make the last parameter const char *. New
10545 variable s_filename. Use it in the function.
10546 (symtab_symbol_info): Make the last_filename variable const char *.
10547 Replace symtab->filename refererences by symtab_to_filename_for_display
10548 calls.
10549 (rbreak_command): New variable fullname. Use it. Replace
10550 symtab->filename refererence by symtab_to_filename_for_display call.
10551 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10552 (print_one_static_tracepoint_marker): Replace symtab->filename
10553 refererences by symtab_to_filename_for_display calls.
10554 * tui/tui-source.c (tui_set_source_content): New variables filename and
10555 s_filename. Replace symtab->filename refererences by this variable.
10556 Replace other symtab->filename refererences by
10557 symtab_to_filename_for_display calls.
10558
10559 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10560 Jan Kratochvil <jan.kratochvil@redhat.com>
10561
10562 Add a new variable that controls a way in which filenames are
10563 displayed.
10564 * NEWS (set filename-display): New entry.
10565 * source.c (filename_display_basename, filename_display_relative)
10566 (filename_display_absolute, filename_display_kind_names)
10567 (filename_display_string, show_filename_display_string)
10568 (symtab_to_filename_for_display): New.
10569 (_initialize_source): Added initialization of 'filename-display'
10570 variable.
10571 * source.h (symtab_to_filename_for_display): Added declaration.
10572 * stack.c (print_frame): Added new variable and calling of a new
10573 function and condition with this variable. Changed third argument of
10574 calling of a function.
10575
10576 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10577
10578 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10579 Rename field reference filename to fullname.
10580 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10581 fullname. New comment for it.
10582 * tui/tui-source.c (tui_set_source_content): Rename field reference
10583 filename to fullname. Initialize field by symtab_to_fullname now.
10584 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10585 reference filename to fullname. Use symtab_to_fullname during
10586 comparison.
10587
10588 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10589
10590 Code cleanup.
10591 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10592 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10593 filename to fullname. Rename variable this_name to this_fullname.
10594 Lowercase FILENAME_CMP call.
10595 (dw2_find_symbol_file): New comment for the returned string.
10596 (dwarf2_gdb_index_functions): Rename the function to
10597 dw2_expand_symtabs_with_fullname.
10598 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10599 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10600 fullname.
10601 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10602 * symfile.h (struct quick_symbol_functions): Rename field
10603 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10604 parameter filename to fullname. Document returned string meaning for
10605 find_symbol_file.
10606 * symtab.c (find_line_symtab): Rename the called function to
10607 expand_symtabs_with_fullname.
10608
10609 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10610
10611 Code cleanup.
10612 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10613 call of filename_cmp with compare_filenames_for_search.
10614 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10615 is_abs, unify the call of FILENAME_CMP with
10616 compare_filenames_for_search. New gdb_asserts for real_path and name.
10617 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10618 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10619 * symfile.h (struct quick_symbol_functions): Extend the comment for
10620 map_symtabs_matching_filename.
10621 * symtab.c (compare_filenames_for_search): Remove the function comment
10622 relative path requirement. Handle absolute filenames, with a comment.
10623 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10624 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10625 real_path and name. Unify the call of compare_filenames_for_search
10626 with FILENAME_CMP.
10627 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10628
10629 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10630
10631 Code cleanup.
10632 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10633 source_file references by symtab field references. Remove variables
10634 sal and fullname.
10635 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10636 (clear_command, say_where): Replace bp_location field source_file
10637 references by symtab field references.
10638 (bp_location_dtor): Remove the source_file reference.
10639 (update_static_tracepoint): Replace bp_location field source_file
10640 references by symtab field references.
10641 (breakpoint_free_objfile): New function.
10642 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10643 Replace the field source_file by field symtab, extend its comment.
10644 (breakpoint_free_objfile): New declaration.
10645 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10646 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10647 field source_file references by symtab field references.
10648
10649 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10650
10651 Replace xfullpath calls by gdb_realpath calls.
10652 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10653 function comment.
10654 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10655 Remove it from the iterate_over_some_symtabs call.
10656 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10657 Remove it from the dw2_map_expand_apply calls, remove a block handling
10658 it.
10659 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10660 Remove it from the iterate_over_some_symtabs call.
10661 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10662 Remove it from the partial_map_expand_apply calls, remove a block
10663 handling it. Drop gdb_realpath call and cleanups from the real_path
10664 handling.
10665 * source.c (openp): Drop the comment part about xfullpath. Replace
10666 xfullpath calls by gdb_realpath calls.
10667 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10668 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10669 from method map_symtabs_matching_filename and its comment.
10670 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10671 gdb_realpath call.
10672 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10673 remove it also from the function comment, remove a block handling it.
10674 Drop gdb_realpath call and cleanups from the real_path handling.
10675 (iterate_over_symtabs): Drop variable full_path and its use.
10676 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10677 * utils.c (xfullpath): Remove.
10678 * utils.h (xfullpath): Remove.
10679
10680 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10681
10682 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10683 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10684 (ALLDEPFILES): Add ppc64-tdep.c.
10685 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10686 ppc64-tdep.o to gdb_target_obs.
10687 * ppc64-tdep.h: New file.
10688 * ppc64-tdep.c: New file.
10689 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10690 ppc-linux-tdep.c to here.
10691 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10692 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10693 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10694 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10695 from ppc-linux-tdep.c to here.
10696 (ppc64_convert_from_func_ptr_addr): Rename from
10697 ppc64_linux_convert_from_func_ptr_addr to
10698 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10699 here.
10700 * rs6000-tdep.c:
10701 (read_insn): Move from ppc-linux-tdep.c to here.
10702 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10703 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10704 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10705 Removed above functions.
10706 (ppc_linux_init_abi): Adjust.
10707
10708 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10709
10710 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10711
10712 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10713
10714 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10715
10716 2013-02-01 Pedro Alves <palves@redhat.com>
10717
10718 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10719 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10720
10721 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10722
10723 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10724 files with no separate debug info.
10725 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10726 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10727 only for files with no separate debug info.
10728
10729 2013-01-31 Tom Tromey <tromey@redhat.com>
10730
10731 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10732 change type.
10733 (struct jit_program_space_data): Rename from jit_inferior_data.
10734 Update comments.
10735 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10736 Change return type. Attach data to program space.
10737 (jit_program_space_data_cleanup): Rename from
10738 jit_inferior_data_cleanup; change argument type.
10739 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10740 change type.
10741 (jit_register_code): Update.
10742 (jit_update_inferior_cache): Remove.
10743 (jit_breakpoint_deleted): Get jit data from the location's program
10744 space.
10745 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10746 'ps_data', change type.
10747 (jit_inferior_init, jit_breakpoint_re_set_internal)
10748 (jit_event_handler): Update.
10749 (free_objfile_data): Get data from objfile's program space.
10750 (_initialize_jit): Update.
10751
10752 2013-01-31 Tom Tromey <tromey@redhat.com>
10753
10754 PR gdb/13987:
10755 * jit.c (struct jit_inferior_data) <cached_code_address,
10756 jit_breakpoint>: New fields.
10757 (jit_breakpoint_re_set_internal): Fix logging. Only create
10758 breakpoint if cached address has changed.
10759 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10760 functions.
10761 (_initialize_jit): Register breakpoint deleted observer.
10762
10763 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10764
10765 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10766 (save_infcall_suspend_state): Ifdef out unused inf.
10767 (restore_infcall_suspend_state): Ifdef out unused inf.
10768 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10769 (jit_frame_sniffer): Remove unused inf_data.
10770
10771 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10772
10773 * c-exp.y (classify_inner_name): Remove unused type.
10774 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10775 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10776 need_escape.
10777 (c_get_string): Remove unused kind.
10778 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10779
10780 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10781
10782 * charset.c (intermediate_encoding): Remove unused i.
10783 * completer.c (signal_completer): Remove unused i.
10784 * continuations.c (discard_my_continuations_1): Remove unused
10785 continuation_ptr.
10786 * corelow.c (core_close): Remove unuseD name.
10787 (get_core_siginfo): Remove unused pid.
10788 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10789 i, cps.
10790 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10791 (loclist_describe_location): Remove unused first.
10792 * event-top.c (command_line_handler): Remove unused got_eof.
10793 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10794 (resize_section_table): Remove unused old_value.
10795 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10796 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10797 * i386-tdep.c (i386_process_record): Remove unused rex.
10798 * infcmd.c (get_return_value): Remove unused uiout.
10799 * jv-lang.c (type_from_class): Remove unused is_array.
10800 * jv-valprint.c (java_val_print): Remove unused i.
10801 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10802 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10803 * m2-typeprint.c (m2_print_type): Remove unused code.
10804 * macroexp.c (get_character_constant): Remove unused body_start.
10805 (macro_stringify): Remove unused result.
10806 * objc-lang.c (find_methods): Remove unused gdbarch.
10807 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10808 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10809 * stack.c (print_frame_args): Remove unused summary.
10810 * thread.c (thread_apply_command): Remove unused p.
10811 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10812 * valops.c (search_struct_method): Remove unused skip.
10813 * valprint.c (generic_val_print): Remove unused byte_order.
10814 * varobj.c (varobj_update): Remove unused changed.
10815 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10816 (alias_command): Remove unused c.
10817 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10818 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10819 format.
10820 (mi_cmd_data_write_memory): Remove unused word_format.
10821 (mi_cmd_data_write_memory_bytes): Remove unused r.
10822 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10823 p_start, p_end.
10824 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10825 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10826 line_width.
10827
10828 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10829
10830 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10831 * symtab.c (iterate_over_symtabs): Remove unused s.
10832 (find_pc_sect_symtab): Remove unused pspAce.
10833 (find_pc_sect_line): Remove unused alt_symtab.
10834 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10835 (completion_list_add_name): Remove unused newsize.
10836
10837 2013-01-31 Tom Tromey <tromey@redhat.com>
10838
10839 PR c++/14998:
10840 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10841 TYPE_CODE_FUNC.
10842
10843 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10844
10845 * target.c (target_read_string): Remove unused origlen.
10846
10847 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10848
10849 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10850 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10851 * ax-general.c (ax_print): Remove unused is_float.
10852 * blockframe.c (block_innermost_frame): Remove unused start, end.
10853 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10854
10855 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10856
10857 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10858 (svr4_read_so_list): Remove unused lmo.
10859 * solib-target.c (solib_target_relocate_section_addresses): Remove
10860 unused flags.
10861
10862 2013-01-30 Tom Tromey <tromey@redhat.com>
10863
10864 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10865
10866 2013-01-30 Tom Tromey <tromey@redhat.com>
10867
10868 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10869 * utils.c (gnu_debuglink_crc32): Remove.
10870 * utils.h (gnu_debuglink_crc32): Don't declare.
10871
10872 2013-01-30 Tom Tromey <tromey@redhat.com>
10873
10874 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10875 (read_structure_type, read_enumeration_type): Remove cast.
10876
10877 2013-01-30 Tom Tromey <tromey@redhat.com>
10878
10879 * dwarf2read.c (read_namespace_type): Remove cast.
10880 (read_typedef): Likewise.
10881
10882 2013-01-29 Tom Tromey <tromey@redhat.com>
10883
10884 * dwarf2read.c (free_dwo_file): Remove assert.
10885
10886 2013-01-29 Tom Tromey <tromey@redhat.com>
10887
10888 * value.c (deprecated_set_value_modifiable): Remove.
10889 * value.h (deprecated_set_value_modifiable): Remove.
10890
10891 2013-01-28 Doug Evans <dje@google.com>
10892
10893 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10894 to addresses from dwo files.
10895
10896 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10897
10898 * valops.c (find_overload_match): Remove unused argument 'lax'.
10899 * value.h: Remove unused argument 'lax' from the declaration of
10900 find_overload_match.
10901 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10902 to find_overload_match.
10903 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10904 argument to find_overload_match.
10905
10906 2013-01-25 Tom Tromey <tromey@redhat.com>
10907
10908 * dwarf2read.c (processing_has_namespace_info): Remove.
10909 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10910 (process_die, read_func_scope, dwarf2_start_symtab)
10911 (new_symbol_full): Update.
10912
10913 2013-01-25 Tom Tromey <tromey@redhat.com>
10914
10915 * cp-namespace.c (cp_set_block_scope): Remove.
10916 * cp-support.h (cp_set_block_scope): Remove.
10917 * dbxread.c: Include block.h.
10918 (cp_set_block_scope): New function.
10919 (process_one_symbol): Update.
10920 * dwarf2read.c (read_func_scope): Use block_set_scope.
10921
10922 2013-01-25 Pedro Alves <palves@redhat.com>
10923
10924 * remote.c (add_current_inferior_and_thread): Tweak comment.
10925
10926 2013-01-25 Tom Tromey <tromey@redhat.com>
10927
10928 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10929 (cp_add_using_directive): Add 'copy_names' argument.
10930 * cp-support.h (cp_add_using_directive): Update.
10931 (struct using_direct) <import_src, import_dest, alias,
10932 declaration>: Now const.
10933 * dwarf2read.c (read_import_statement): Use obconcat.
10934 Don't copy names passed to cp_add_using_directive.
10935
10936 2013-01-25 Tom Tromey <tromey@redhat.com>
10937
10938 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10939
10940 2013-01-25 Pedro Alves <palves@redhat.com>
10941
10942 * remote.c (stop_reply_extract_thread): New.
10943 (add_current_inferior_and_thread): New parameter 'wait_status'.
10944 Handle it.
10945 (remote_start_remote): Pass wait status to
10946 add_current_inferior_and_thread.
10947 (extended_remote_run): Update comment.
10948 (extended_remote_create_inferior_1): Pass wait status to
10949 add_current_inferior_and_thread.
10950
10951 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10952 Ulrich Weigand <uweigand@de.ibm.com>
10953
10954 * valarith.c (value_vector_widen): New function for replicating a
10955 scalar into a vector.
10956 (value_binop): Use value_vector_widen to widen scalar to vector
10957 rather than casting, this better matches gcc C behaviour.
10958 * valops.c (value_casst): Update logic for casting between vector
10959 types, and for casting from scalar to vector, try to match gcc C
10960 behaviour.
10961 * value.h (value_vector_widen): Declare.
10962 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10963 function, handle special case for casting scalar to vector.
10964 (opencl_relop): Use opencl_value_cast.
10965 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10966 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10967 in order to use opencl_value_cast.
10968
10969 2013-01-25 Yao Qi <yao@codesourcery.com>
10970
10971 * event-loop.c: Include "queue.h".
10972 (gdb_event_p): New typedef.
10973 (DECLARE_QUEUE_P): Use.
10974 (DEFINE_QUEUE_P): Use.
10975 (async_queue_event): Remove.
10976 (gdb_event_xfree): New.
10977 (initialize_event_loop): New.
10978 (process_event): Use QUEUE macros.
10979 (event_queue): Remove.
10980 (gdb_wait_for_event): Caller update.
10981 (check_async_event_handlers): Likewise.
10982 (poll_timers): Likewise.
10983 * event-loop.h (initialize_event_loop): Declare.
10984 * event-loop.c (gdb_event_xfree): New.
10985 * top.c (gdb_init): Call initialize_event_loop.
10986
10987 2013-01-25 Yao Qi <yao@codesourcery.com>
10988
10989 * event-loop.c (async_queue_event): Remove one parameter
10990 'position'. Remove code handling 'position' == TAIL.
10991 (gdb_wait_for_event): Caller update.
10992 (check_async_event_handlers): Caller update.
10993 (poll_timers): Caller update.
10994 * event-loop.h (enum queue_position): Remove.
10995
10996 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10997
10998 * MAINTAINERS: Update my email.
10999
11000 2013-01-25 Yao Qi <yao@codesourcery.com>
11001
11002 * main.c (print_gdb_help): Remove "--epoch" from the help
11003 message.
11004
11005 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11006
11007 * symtab.c (skip_prologue_using_sal): Consider a file
11008 change the same as an increased line number
11009
11010 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11011
11012 * MAINTAINERS (Write After Approval): Add myself to the list.
11013
11014 2013-01-24 Tom Tromey <tromey@redhat.com>
11015
11016 * ada-lang.h (ada_decode_symbol): Make return type const.
11017 * ada-lang.c (ada_decode_symbol): Likewise.
11018
11019 2013-01-23 Doug Evans <dje@google.com>
11020
11021 * linespec.c (find_linespec_symbols): Make static.
11022
11023 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11024
11025 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11026 type on float conversion for complex type.
11027
11028 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11029
11030 Add a new class gdb.Architecture which exposes GDB's
11031 internal representation of architecture via GDB Python API.
11032 * Makefile.in: Add entries corresponding to the new file
11033 python/py-arch.c.
11034 * NEWS (Python Scripting): Add entries for the new class
11035 gdb.Architecture and the new method gdb.Frame.architecture.
11036 * python/py-arch.c: Implement gdb.Architecture class.
11037 * python/py-frame.c (frapy_arch): Implement the method
11038 gdb.Frame.architecture().
11039 (frame_object_methods): Add 'architecture' to the method table.
11040 * python/python-internal.h: Add declarations of new utility
11041 functions.
11042 * python/python.c (_initialize_python): Initialize
11043 gdb.Architecture class.
11044
11045 2013-01-23 Doug Evans <dje@google.com>
11046
11047 Work around binutils/15021.
11048 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11049 type_unit_group out of union s. All uses updated.
11050 (read_index_from_section): Watch for index version 8.
11051 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11052 an imported symtab.
11053 (write_psymtabs_to_index): Increment version number to 8.
11054
11055 2013-01-22 Pedro Alves <palves@redhat.com>
11056
11057 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11058 user-visible.
11059
11060 2013-01-22 Pedro Alves <palves@redhat.com>
11061
11062 * annotate.c (annotate_breakpoints_changed): Rename to ...
11063 (annotate_breakpoints_invalid): ... this. Make static.
11064 (breakpoint_changed): Adjust.
11065 (_initialize_annotate): Always install the observers. Install a
11066 "breakpoint_created" observer.
11067 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11068 * breakpoint.c (set_breakpoint_condition)
11069 (breakpoint_set_commands, do_map_commands_command)
11070 (init_raw_breakpoint, clear_command, set_ignore_count)
11071 (enable_breakpoint_disp): No longer call
11072 annotate_breakpoints_changed.
11073
11074 2013-01-22 Pedro Alves <palves@redhat.com>
11075
11076 * annotate.c: Include "inferior.h".
11077 (frames_invalid_emitted)
11078 (breakpoints_invalid_emitted): New globals.
11079 (async_background_execution_p): New function.
11080 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11081 emitting the annotation if it has already been emitted.
11082 (annotate_display_prompt): New function.
11083 * annotate.h (annotate_display_prompt): New declaration.
11084 * event-top.c: Include annotate.h.
11085 (display_gdb_prompt): Call annotate_display_prompt.
11086
11087 2013-01-22 Pedro Alves <palves@redhat.com>
11088
11089 * annotate.c (ignore_count_changed): Delete.
11090 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11091 (annotate_ignore_count_change): Delete.
11092 (annotate_stopped): Don't emit a delayed breakpoints-changed
11093 annotation.
11094 * annotate.h (annotate_ignore_count_change): Delete.
11095 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11096 annotate_ignore_count_change.
11097
11098 2013-01-22 Tom Tromey <tromey@redhat.com>
11099
11100 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11101 require_rvalue for a register location.
11102
11103 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11104
11105 * breakpoint.c (print_one_breakpoint_location): Add MI
11106 field 'thread-groups' when printing a breakpoint.
11107 (output_thread_groups): New function.
11108
11109 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11110
11111 * python/lib/gdb/commands/explore.py
11112 (CompoundExplorer.explore_expr): Correct the name of a method
11113 being invoked.
11114 (ExploreTypeCommand.invoke): Add a missing 'return'.
11115
11116 2013-01-21 Tom Tromey <tromey@redhat.com>
11117
11118 * gdb_obstack.h (obconcat): Move declaration here, from...
11119 * symfile.h (obconcat): ... here.
11120 * gdb_obstack.c: New file.
11121 (obconcat): Move from...
11122 * symfile.c (obconcat): ... here.
11123 * Makefile.in (SFILES): Add gdb_obstack.c.
11124 (COMMON_OBS): Add gdb_obstack.o.
11125
11126 2013-01-21 Tom Tromey <tromey@redhat.com>
11127
11128 * symfile.h (obsavestring): Don't declare.
11129 * symfile.c (obsavestring): Remove.
11130 * ada-exp.y: Use obstack_copy0, not obsavestring.
11131 * ada-lang.c: Use obstack_copy0, not obsavestring.
11132 * coffread.c: Use obstack_copy0, not obsavestring.
11133 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11134 * dbxread.c: Use obstack_copy0, not obsavestring.
11135 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11136 * jit.c: Use obstack_copy0, not obsavestring.
11137 * mdebugread.c: Use obstack_copy0, not obsavestring.
11138 * psymtab.c: Use obstack_copy0, not obsavestring.
11139 * stabsread.c: Use obstack_copy0, not obsavestring.
11140 * xcoffread.c: Use obstack_copy0, not obsavestring.
11141
11142 2013-01-21 Tom Tromey <tromey@redhat.com>
11143
11144 * dwarf2read.c (fixup_go_packaging): Save package name
11145 on objfile obstack.
11146 * gdbtypes.c (init_type): Don't copy name.
11147
11148 2013-01-21 Tom Tromey <tromey@redhat.com>
11149
11150 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11151 const.
11152 (struct attribute) <u.str>: Now const.
11153 (struct fnfieldlist) <name>: Now const.
11154 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11155 (partial_die_parent_scope): Make return type const.
11156 (partial_die_full_name, add_partial_symbol): Update.
11157 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11158 'name' const.
11159 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11160 (read_file_scope, read_func_scope, dwarf2_add_field)
11161 (dwarf2_add_member_fn, read_structure_type)
11162 (process_enumeration_scope, read_array_type, read_module_type)
11163 (read_base_type, read_subrange_type): Update.
11164 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11165 (new_symbol_full, guess_full_die_structure_name): Update.
11166 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11167 (dwarf2_name): Return const type.
11168 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11169 const.
11170
11171 2013-01-21 Tom Tromey <tromey@redhat.com>
11172
11173 * gdbtypes.c (init_type): Make 'name' const.
11174 * gdbtypes.h (init_type): Update.
11175
11176 2013-01-21 Tom Tromey <tromey@redhat.com>
11177
11178 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11179 (start_symtab): Make 'name' and 'dirname' const. Use
11180 set_last_source_file.
11181 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11182 (last_source_file): Define. Now static.
11183 (set_last_source_file, get_last_source_file): New functions.
11184 * buildsym.h (last_source_file): Don't declare.
11185 (start_symtab): Update.
11186 (set_last_source_file, get_last_source_file): Declare.
11187 * coffread.c (complete_symtab): Use set_last_source_file.
11188 (coff_end_symtab): Likewise.
11189 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11190 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11191 set_last_source_file.
11192 (process_one_symbol): Use get_last_source_file.
11193 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11194 (psymtab_to_symtab_1): Use get_last_source_file.
11195 * xcoffread.c (process_linenos): Use get_last_source_file.
11196 (complete_symtab): Use set_last_source_file.
11197 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11198 (scan_xcoff_symtab): Use set_last_source_file.
11199
11200 2013-01-21 Tom Tromey <tromey@redhat.com>
11201
11202 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11203 (symbol_set_names): Remove casts. Handle field const-ness.
11204
11205 2013-01-21 Tom Tromey <tromey@redhat.com>
11206
11207 * dwarf2read.c (new_symbol_full): Remove cast.
11208 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11209 * symtab.h (symbol_set_demangled_name): Update.
11210
11211 2013-01-21 Tom Tromey <tromey@redhat.com>
11212
11213 * main.c (captured_main): Call bfd_init.
11214
11215 2013-01-21 Tom Tromey <tromey@redhat.com>
11216
11217 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11218 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11219 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11220 * NEWS: Update.
11221
11222 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11223
11224 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11225
11226 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11227
11228 Fix gdb.fortran/common-block.exp crash in PIE mode.
11229 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11230 LOC_COMMON_BLOCK.
11231 * f-valprint.c (info_common_command_for_block): Expect
11232 LOC_COMMON_BLOCK in gdb_assert.
11233 * symtab.h (struct general_symbol_info): Update comment for the
11234 common_block member.
11235 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11236 (enum address_class): New member LOC_COMMON_BLOCK.
11237
11238 2013-01-18 David Blaikie <dblaikie@gmail.com>
11239
11240 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11241
11242 2013-01-18 Tom Tromey <tromey@redhat.com>
11243
11244 PR c++/14999:
11245 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11246 Call require_rvalue.
11247
11248 2013-01-18 Yao Qi <yao@codesourcery.com>
11249
11250 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11251 (dbx_read_symtab): New declaration.
11252 (dbx_psymtab_to_symtab): Delete.
11253 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11254 Rename parameter PST to SELF. Exchanged two parameters.
11255 (start_psymtab): Caller update.
11256 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11257 (dwarf2_read_symtab): New declaration.
11258 (dwarf2_psymtab_to_symtab): Delete.
11259 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11260 Rename parameter PST to SELF. Exchanged two parameters.
11261 (create_partial_symtab): Caller update.
11262 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11263 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11264 Rename parameter PST to SELF. Exchanged two parameters.
11265 (parse_partial_symbols, new_psymtab): Caller update.
11266 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11267 two parameters.
11268 * psymtab.c (psymtab_to_symtab): Caller update.
11269 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11270 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11271 Rename parameter PST to SELF. Exchanged two parameters.
11272 (xcoff_start_psymtab): Caller update.
11273
11274 2013-01-18 Yao Qi <yao@codesourcery.com>
11275
11276 * infrun.c (proceed): Rename local variable 'oneproc' to
11277 'force_step'.
11278
11279 2013-01-17 Doug Evans <dje@google.com>
11280
11281 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11282 (dw2_build_type_unit_groups): Delete. All uses updated.
11283
11284 * symtab.h (struct symbol_search): Add comment.
11285
11286 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11287
11288 * symtab.c (compare_filenames_for_search): New comment for
11289 HAS_DRIVE_SPEC.
11290
11291 2013-01-17 Tom Tromey <tromey@redhat.com>
11292
11293 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11294
11295 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11296
11297 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11298 initialize it by existing make_cleanup. Call new do_cleanups.
11299
11300 2013-01-17 Tom Tromey <tromey@redhat.com>
11301
11302 * cp-abi.c (cp_abi_completer): New function.
11303 (_initialize_cp_abi): Set completer for "set cp-abi".
11304
11305 2013-01-17 Tom Tromey <tromey@redhat.com>
11306
11307 * mem-break.c: Remove obsolete comment.
11308 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11309
11310 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11311
11312 * jit.c (jit_reader_load_command): Interpret the jit reader name
11313 as an absolute path if it begins with a forward slash.
11314
11315 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11316
11317 PR gdb/14550
11318
11319 * jit.c (finalize_symtab): Ensure that only the global block has a
11320 NULL superblock.
11321
11322 2013-01-17 Pedro Alves <palves@redhat.com>
11323
11324 * acinclude.m4: Include ../config/plugins.m4,
11325 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11326 * Makefile.in (aclocal_m4_deps): Update.
11327 * aclocal.m4: Renegerate.
11328
11329 2013-01-16 Doug Evans <dje@google.com>
11330
11331 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11332
11333 2013-01-16 Pedro Alves <palves@redhat.com>
11334 Tom Tromey <tromey@redhat.com>
11335
11336 PR cli/7221:
11337 * NEWS: Add "catch signal".
11338 * breakpoint.c (base_breakpoint_ops): No longer static.
11339 (bpstat_explains_signal): New function.
11340 (init_catchpoint): No longer static.
11341 (base_breakpoint_explains_signal): New function.
11342 (base_breakpoint_ops): Initialize new field.
11343 * breakpoint.h (enum bpstat_signal_value): New.
11344 (struct breakpoint_ops) <explains_signal>: New field.
11345 (bpstat_explains_signal): Remove macro, declare as function.
11346 (base_breakpoint_ops, init_catchpoint): Declare.
11347 * break-catch-sig.c: New file.
11348 * inferior.h (signal_catch_update): Declare.
11349 * infrun.c (signal_catch): New global.
11350 (handle_syscall_event): Update for change to
11351 bpstat_explains_signal.
11352 (handle_inferior_event): Likewise. Always handle random signals
11353 via bpstats.
11354 (signal_cache_update): Check signal_catch.
11355 (signal_catch_update): New function.
11356 (_initialize_infrun): Initialize signal_catch.
11357 * Makefile.in (SFILES): Add break-catch-sig.c.
11358 (COMMON_OBS): Add break-catch-sig.o.
11359
11360 2013-01-16 Tom Tromey <tromey@redhat.com>
11361
11362 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11363 (print_one_catch_solib, print_one_catch_syscall)
11364 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11365 "catch-type".
11366
11367 2013-01-16 Yao Qi <yao@codesourcery.com>
11368
11369 * printcmd.c (current_display_number): Make it static.
11370
11371 2013-01-16 Yao Qi <yao@codesourcery.com>
11372
11373 * infcmd.c (step_once): Don't check '!single_inst' as it was
11374 checked before.
11375
11376 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11377
11378 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11379
11380 2013-01-14 Tom Tromey <tromey@redhat.com>
11381
11382 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11383 set command.
11384 * command.h (add_setshow_string_noescape_cmd): Update.
11385 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11386 (complete_set_gnutarget): New function.
11387 (_initialize_core): Set the "set gnutarget" completer.
11388
11389 2013-01-14 Tom Tromey <tromey@redhat.com>
11390
11391 PR symtab/14442:
11392 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11393 (c_type_print_modifier): Likewise.
11394 * dwarf2read.c (read_tag_restrict_type): New function.
11395 (read_type_die_1): Handle DW_TAG_restrict_type.
11396 * gdbtypes.c (make_restrict_type): New function.
11397 (recursive_dump_type): Handle TYPE_RESTRICT.
11398 * gdbtypes.h (enum type_flag_values): Renumber.
11399 (enum type_instance_flag_value): Add
11400 TYPE_INSTANCE_FLAG_RESTRICT.
11401 (TYPE_RESTRICT): New macro.
11402 (make_restrict_type): Declare.
11403
11404 2013-01-14 Tom Tromey <tromey@redhat.com>
11405
11406 PR symtab/14931:
11407 * psymtab.c (struct psymtab_state): New.
11408 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11409 functions.
11410 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11411 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11412
11413 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11414 Pedro Alves <palves@redhat.com>
11415
11416 PR remote/14786
11417
11418 * remote.c (remote_threads_info): Make a copy of the reply from
11419 qfThreadInfo and use that instead of rs->buf.
11420
11421 2013-01-14 Yao Qi <yao@codesourcery.com>
11422
11423 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11424 (dbx_psymtab_to_symtab): Likewise.
11425 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11426 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11427 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11428
11429 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11430
11431 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11432 make_cleanup_restore_current_language. Call set_language. Move
11433 OLD_CHAIN and INNER_CHAIN cleanups.
11434 * utils.c (do_restore_current_language)
11435 (make_cleanup_restore_current_language): New functions.
11436 * utils.h (make_cleanup_restore_current_language): New declaration.
11437
11438 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11439
11440 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11441 non-existing files.
11442
11443 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11444 non-existing files if FILENAME is already absolute.
11445
11446 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11447
11448 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11449 fputs_filtered. Append trailing newline.
11450
11451 2013-01-11 Yao Qi <yao@codesourcery.com>
11452 Stan Shebs <stan@codesourcery.com>
11453
11454 * psymtab.c (init_psymbol_list): Clarify the comment.
11455
11456 2013-01-11 Yao Qi <yao@codesourcery.com>
11457
11458 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11459 (update_dprintf_command_list): Assert that 'printf_line' is
11460 non-null. Remove condition check.
11461
11462 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11463
11464 Code cleanup.
11465 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11466 type const char *.
11467 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11468 const char *.
11469 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11470
11471 2013-01-09 Anthony Green <green@moxielogic.com>
11472
11473 * cp-abi.c (cplus_print_vtable): Don't return value from void
11474 function.
11475 * ada-lang.c (re_set_catch_assert): Ditto.
11476
11477 2013-01-09 Doug Evans <dje@google.com>
11478
11479 * symfile.h (quick_symbol_functions): Delete member
11480 pre_expand_symtabs_matching. All uses removed.
11481 * dwarf2read.c (dw2_lookup_symbol): Implement.
11482 (dw2_do_expand_symtabs_matching): Delete.
11483 (dw2_pre_expand_symtabs_matching): Delete.
11484 (struct dw2_symtab_iterator): New type.
11485 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11486 (dw2_expand_symtabs_for_function): Rewrite.
11487 (dwarf2_gdb_index_functions): Update.
11488 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11489 (psym_functions): Update.
11490
11491 2013-01-09 Tom Tromey <tromey@redhat.com>
11492
11493 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11494 * configure: Rebuild.
11495 * configure.ac: Add somread.o to the build if BFD has SOM
11496 support.
11497 * somread.c: Include som/aout.h, not syms.h.
11498 (som_symtab_read): Use som_external_symbol_dictionary_record.
11499 Unpack records manually.
11500 (_initialize_somread): Declare.
11501
11502 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11503
11504 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11505 Cast return_address to 64bits.
11506
11507 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11508
11509 * printcmd.c: Remove define of function output_command.
11510 * tracepoint.c: Remove extern of function output_command.
11511 * valprint.h: (output_command): New extern.
11512
11513 2013-01-07 Tom Tromey <tromey@redhat.com>
11514
11515 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11516 Remove.
11517 (objc_language_defn): Use c_printchar, c_printstr,
11518 c_emit_char.
11519
11520 2013-01-07 Tom Tromey <tromey@redhat.com>
11521
11522 PR cli/7719:
11523 * NEWS: Update.
11524 * ada-valprint.c (printstr, print_field_values): Remove
11525 "inspect_it" code.
11526 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11527 code.
11528 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11529 code.
11530 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11531 * main.c (captured_main): Remove "epoch" argument.
11532 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11533 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11534 * p-valprint.c (pascal_object_print_value_fields): Remove
11535 "inspect_it" code.
11536 * printcmd.c (print_command_1): Remove 'inspect' argument.
11537 (print_command, call_command): Update.
11538 (inspect_command): Remove.
11539 (_initialize_printcmd): Make "inspect" an alias for "print".
11540 * top.c (epoch_interface): Remove.
11541 * top.h (epoch_interface): Remove.
11542 * valprint.c (user_print_options): Update.
11543 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11544 * valprint.h (struct value_print_options) <inspect_it>: Remove
11545 field.
11546
11547 2013-01-04 Tom Tromey <tromey@redhat.com>
11548
11549 * valprint.h (read_string): Add 'extern'.
11550
11551 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11552
11553 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11554 used to decide whether to define darwin_read_dyld_info or not.
11555
11556 2013-01-03 Pierre Muller <muller@sourceware.org>
11557
11558 * main.c (relocate_gdb_directory): Avoid calling stat function
11559 if DIR is empty.
11560
11561 2013-01-03 Yao Qi <yao@codesourcery.com>
11562
11563 * psymtab.c (fixup_psymbol_section): Update declaration.
11564 (fixup_psymbol_section): Remove code returning value.
11565
11566 2013-01-03 Yao Qi <yao@codesourcery.com>
11567
11568 * symtab.h: Remove some out of date comments.
11569 (enum exception_event_kind): Move it ...
11570 * breakpoint.c: ... here.
11571
11572 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11573
11574 PR gdb/14405
11575 * darwin-nat.c (darwin_read_dyld_info): Only build if
11576 TASK_DYLD_INFO_COUNT is defined.
11577 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11578 TASK_DYLD_INFO_COUNT is defined.
11579
11580 2013-01-02 Tom Tromey <tromey@redhat.com>
11581
11582 * symfile.h (struct ecoff_debug_hack): Remove.
11583 * objfiles.c: Don't include mdebugread.h.
11584
11585 2013-01-02 Tom Tromey <tromey@redhat.com>
11586
11587 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11588 * configure.ac: Check for Mach-O support in BFD. Update
11589 CONFIG_OBS.
11590 * configure: Rebuild.
11591
11592 2013-01-02 Tom Tromey <tromey@redhat.com>
11593
11594 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11595 * configure.ac: Use GDB_AC_CHECK_BFD.
11596 * configure: Rebuild.
11597
11598 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11599
11600 * MAINTAINERS: Update my email.
11601
11602 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11603
11604 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11605
11606 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11607
11608 * rs6000-nat.c (bss_data_overlap): New function.
11609 (vmap_symtab): Use it to adjust the .bss section's offset.
11610
11611 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11612
11613 Update year range in copyright notice of all files.
11614
11615 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11616
11617 * top.c (print_gdb_version): Update copyright year.
11618
11619 For older changes see ChangeLog-2012.
11620 \f
11621 Local Variables:
11622 mode: change-log
11623 left-margin: 8
11624 fill-column: 74
11625 version-control: never
11626 coding: utf-8
11627 End:
This page took 0.268829 seconds and 4 git commands to generate.