Rename "read_reg" into "read_addr_from_reg" in struct dwarf_expr_context_funcs
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-17 Joel Brobecker <brobecker@adacore.com>
2
3 * dwarf2expr.h (struct dwarf_expr_context_funcs)
4 <read_addr_from_reg>: Renames "read_reg".
5 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
6 Adjust comment.
7 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
8 Use read_addr_from_reg in place of read_reg.
9 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
10 in place of read_reg.
11 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
12 dwarf_expr_read_reg.
13 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
14 with dwarf_expr_read_addr_from_reg.
15 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
16 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
17 needs_frame_read_addr_from_reg.
18
19 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
20
21 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
22
23 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
24
25 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
26 NULL.
27
28 2013-11-15 Tom Tromey <tromey@redhat.com>
29
30 PR c++/16117:
31 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
32 (classify_name): Likewise. Prefer a field of "this" over a
33 filename.
34 (classify_inner_name, yylex): Update.
35
36 2013-11-15 Joel Brobecker <brobecker@adacore.com>
37
38 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
39 Extend the documentation a bit.
40 <get_reg_value>: New field.
41 * dwarf2loc.c (dwarf_expr_get_reg_value)
42 (needs_frame_get_reg_value): New functions.
43 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
44 callback.
45 * dwarf2-frame.c (get_reg_value): New function.
46 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
47 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
48 Use new callback to compute result_val.
49
50 2013-11-15 Alan Modra <amodra@gmail.com>
51
52 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
53 (ppc64_desc_entry_point): ..this. Update comments here and at
54 call points.
55 (ppc64_standard_linkage1, ppc64_standard_linkage2,
56 ppc64_standard_linkage3): Update comments.
57 (ppc64_standard_linkage4, ppc64_standard_linkage5,
58 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
59 patterns.
60 (ppc64_standard_linkage4_target): New function.
61 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
62 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
63 nop match. Fix comment wrap.
64
65 2013-11-14 Pedro Alves <palves@redhat.com>
66
67 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
68 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
69
70 2013-11-14 Pedro Alves <palves@redhat.com>
71
72 * infrun.c (struct execution_control_state)
73 <stepped_after_stopped_by_watchpoint>: New field.
74 (get_inferior_stop_soon): New function.
75 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
76 moved to struct execution_control_state -- adjust. Use
77 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
78 new function.
79 (handle_signal_stop): New function, factored out from
80 handle_inferior_event.
81
82 2013-11-14 Pedro Alves <palves@redhat.com>
83
84 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
85 return a boolean.
86 * breakpoint.c (bpstat_explains_signal): Adjust to return a
87 boolean.
88 (explains_signal_watchpoint, base_breakpoint_explains_signal):
89 Adjust to return a boolean.
90 * breakpoint.h (enum bpstat_signal_value): Delete.
91 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
92 (bpstat_explains_signal): Likewise.
93 * infrun.c (handle_inferior_event) <random signal checks>:
94 bpstat_explains_signal now returns a boolean - adjust. No longer
95 consider hiding signals.
96
97 2013-11-14 Pedro Alves <palves@redhat.com>
98
99 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
100 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
101 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
102 BPSTAT_SIGNAL_HIDE.
103 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
104 instead of BPSTAT_SIGNAL_HIDE.
105 * infrun.c (handle_inferior_event): Rework random signal checks.
106
107 2013-11-14 Pedro Alves <palves@redhat.com>
108
109 * infrun.c (struct execution_control_state): Remove
110 'random_signal' field.
111 (handle_syscall_event): Use bpstat_causes_stop instead of
112 bpstat_explains_signal. Don't set ecs->random_signal.
113 (handle_inferior_event): New 'random_signal' local.
114 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
115 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
116 bpstat_explains_signal. Don't set ecs->random_signal.
117 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
118 ecs->random_signal.
119
120 2013-11-14 Pedro Alves <palves@redhat.com>
121
122 * infrun.c (handle_inferior_event): Move comment from the
123 function's body to the function's description, adjusted.
124
125 2013-11-14 Pedro Alves <palves@redhat.com>
126
127 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
128 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
129 Assert we never fall through out of the TARGET_WAITKIND_LOADED
130 case.
131
132 2013-11-14 Tom Tromey <tromey@redhat.com>
133
134 * python/py-linetable.c (ltpy_has_line)
135 (ltpy_get_all_source_lines): Fix loop termination condition.
136
137 2013-11-14 Joel Brobecker <brobecker@adacore.com>
138
139 * mi/mi-parse.h (struct mi_parse) <language>: New field.
140 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
141 PARSE->LANGUAGE during command execution, if set.
142 * mi/mi-parse.c: Add "language.h" #include.
143 (mi_parse): Add parsing of "--language" command option.
144
145 * NEWS: Add entry mentioning the new "--language" command option.
146
147 2013-11-14 Pedro Alves <palves@redhat.com>
148 Joel Brobecker <brobecker@adacore.com>
149
150 * cli/cli-utils.h (extract_arg_const): Add declaration.
151 * cli/cli-utils.c (extract_arg_const): New function.
152 (extract_arg): Reimplement using extract_arg_const.
153
154 2013-11-14 Joel Brobecker <brobecker@adacore.com>
155
156 * language.h: Add "symtab.h" #include.
157
158 2013-11-13 Doug Evans <xdje42@gmail.com>
159
160 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
161 specific breakpoints, don't evaluate breakpoint condition if
162 different thread.
163
164 2013-11-13 Keith Seitz <keiths@redhat.com>
165
166 PR c++/7935
167 PR c++/10541
168 * cp-support.c (insepct_type): Add support for substituting
169 namespace aliases, too.
170 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
171 for DW_TAG_imported_declaration.
172 (add_partial_symbol): Likewise.
173 (process_die): Handle namespace aliases with
174 read_namespace_alias.
175 (die_needs_namespace): Add DW_TAG_imported_declaration.
176 (read_namespace_alias): New function.
177 (load_partial_dies): Load DW_TAG_imported_declaration, too.
178 (new_symbol_full): Handle DW_TAG_imported_declaration.
179
180 2013-11-13 Keith Seitz <keiths@redhat.com>
181
182 * p-exp.y (uptok): Make first parameter const.
183 (yylex): Make `tokstart' and `tokptr' const.
184 Don't copy the lexer input to a temporary buffer.
185 Make `p' const.
186 Remove const workaround for parse_escape.
187 Create a temporary buffer for a convenience variable instead
188 of doing in-place modification of the input.
189 If a match is found with a different case from the input,
190 do not change the input at all.
191 Use `tmp' to construct the resultant stoken instead of
192 `tokstart'.
193
194 2013-11-13 Doug Evans <xdje42@gmail.com>
195
196 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
197
198 2013-11-13 Joel Brobecker <brobecker@adacore.com>
199
200 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
201 entry with "ada-exceptions".
202
203 2013-11-13 Joel Brobecker <brobecker@adacore.com>
204
205 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
206 after re-initialization of OBJFILE's obstack.
207
208 2013-11-12 Doug Evans <xdje42@gmail.com>
209
210 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
211 bs->stop != 0 on entry. Update function comment. Simplify early
212 exit for frame mismatch. Reindent rest of function.
213
214 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
215
216 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
217 NULL.
218
219 2013-11-12 Doug Evans <dje@google.com>
220
221 Work around gold/15646.
222 * dwarf2read.c (read_index_from_section): Update comment.
223 (struct dw2_symtab_iterator): New member global_seen.
224 (dw2_symtab_iter_init): Initialize it.
225 (dw2_symtab_iter_next): Skip duplicate global symbols.
226 (dw2_expand_symtabs_matching): Ditto.
227
228 2013-11-12 Joel Brobecker <brobecker@adacore.com>
229
230 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
231 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
232 command.
233 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
234 (mi_cmd_info_ada_exceptions): New function.
235 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
236
237 2013-11-12 Joel Brobecker <brobecker@adacore.com>
238
239 * ada-lang.h: #include "vec.h".
240 (struct ada_exc_info): New.
241 (ada_exc_info): New typedef.
242 (DEF_VEC_O(ada_exc_info)): New vector.
243 (ada_exceptions_list): Add declaration.
244 * ada-lang.c (ada_is_exception_sym)
245 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
246 (sort_remove_dups_ada_exceptions_list)
247 (ada_exc_search_name_matches, ada_add_standard_exceptions)
248 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
249 (ada_exceptions_list_1, ada_exceptions_list)
250 (info_exceptions_command): New function.
251 (_initialize_ada_language): Add "info exception" command.
252
253 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
254
255 PR python/15629
256 * NEWS: Add linetable feature.
257 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
258 * python/py-linetable.c: New file.
259 * python/py-symtab.c (stpy_get_linetable): New function.
260 * python/python-internal.h (symtab_to_linetable_object): Declare.
261 (gdbpy_initialize_linetable): Ditto.
262 * python/python.c (_initialize_python): Call
263 gdbpy_initialize_linetable.
264
265 2013-11-11 Joel Brobecker <brobecker@adacore.com>
266
267 * ada-lang.c (create_ada_exception_catchpoint): Enhance
268 the documentation of fields "except_string" and "condition".
269 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
270 CONDITION on the heap before passing it to
271 create_ada_exception_catchpoint.
272 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
273 CONDITION.
274
275 2013-11-11 Tom Tromey <tromey@redhat.com>
276
277 * config.in, configure: Rebuild.
278 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
279
280 2013-11-11 Joel Brobecker <brobecker@adacore.com>
281
282 * remote-sim.c (gdbsim_detach): Break declaration into
283 shorter lines. No code change.
284
285 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
286
287 * remote-sim.c (gdbsim_detach): Fix prototype.
288
289 2013-11-08 Doug Evans <dje@google.com>
290
291 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
292 (create_debug_types_hash_table): Only print debugging messages for
293 each TU if dwarf2-read >= 2.
294 (process_queue): Ditto.
295 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
296 Update doc string.
297
298 2013-11-08 Tom Tromey <tromey@redhat.com>
299
300 * configure: Rebuild.
301 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
302
303 2013-11-08 Tom Tromey <tromey@redhat.com>
304
305 * configure, config.in: Rebuild.
306 * configure.ac: Remove unused configury.
307
308 2013-11-08 Tom Tromey <tromey@redhat.com>
309
310 * m32c-tdep.c: Use gdb_string.h.
311
312 2013-11-08 Tom Tromey <tromey@redhat.com>
313
314 * configure, config.in: Rebuild.
315 * configure.ac: Remove all link.h-related checks.
316
317 2013-11-08 Tom Tromey <tromey@redhat.com>
318
319 * acinclude.m4: Include common.m4.
320 * common/common.m4: New file.
321 * configure, config.in: Rebuild.
322 * configure.ac: Use GDB_AC_COMMON.
323
324 2013-11-08 Doug Evans <dje@google.com>
325
326 * NEWS: Mention that "set debug symtab-create" now accepts a
327 verbosity level.
328 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
329 to set the symtab's primary flag.
330 * jit.c (finalize_symtab): Ditto.
331 * mdebugread.c (psymtab_to_symtab_1): Ditto.
332 * symfile.c (allocate_symtab): Only print debugging messages for
333 symtab_create_debug levels 2 and higher.
334 * symtab.c (symtab_create_debug): Change type to unsigned int.
335 (set_symtab_primary): New function.
336 (_initialize_symtab): Change "set debug symtab-create" to a
337 zuinteger option.
338 * symtab.h (set_symtab_primary): Declare.
339 (symtab_create_debug): Update decl.
340
341 2013-11-08 Tom Tromey <tromey@redhat.com>
342
343 * aix-thread.c (aix_thread_detach): Update.
344 * corelow.c (core_detach): Update.
345 * darwin-nat.c (darwin_detach): Update.
346 * dec-thread.c (dec_thread_detach): Update.
347 * gnu-nat.c (gnu_detach): Update.
348 * go32-nat.c (go32_detach): Update.
349 * inf-ptrace.c (inf_ptrace_detach): Update.
350 * inf-ttrace.c (inf_ttrace_detach): Update.
351 * linux-fork.c (linux_fork_detach): Update.
352 * linux-fork.h (linux_fork_detach): Update.
353 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
354 local for const-correctness.
355 * linux-thread-db.c (thread_db_detach): Update.
356 * monitor.c (monitor_detach): Update.
357 * nto-procfs.c (procfs_detach): Update.
358 * procfs.c (procfs_detach): Update.
359 * record.c (record_detach): Update.
360 * record.h (record_detach): Update.
361 * remote-m32r-sdi.c (m32r_detach): Update.
362 * remote-mips.c (mips_detach): Update.
363 * remote-sim.c (gdbsim_detach): Update.
364 * remote.c (remote_detach_1, remote_detach)
365 (extended_remote_detach): Update.
366 * sol-thread.c (sol_thread_detach): Update.
367 * target.c (target_detach): Make "args" const.
368 (init_dummy_target): Update.
369 * target.h (struct target_ops) <to_detach>: Make argument const.
370 (target_detach): Likewise.
371 * windows-nat.c (windows_detach): Update.
372
373 2013-11-07 Doug Evans <dje@google.com>
374
375 PR 11786
376 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
377 and align fields for PT_GNU_RELRO segments.
378
379 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
380
381 PR python/15747
382 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
383
384 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
385
386 * NEWS: Document Python temporary breakpoint support.
387 * python/py-breakpoint.c (bppy_get_temporary): New function.
388 (bppy_init): New keyword: temporary. Parse it and set breakpoint
389 to temporary if True.
390
391 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
392
393 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
394 removed to allow analyzing unconditional branch instructions
395 with PC-relative offsets of zero.
396
397 2013-11-07 Yao Qi <yao@codesourcery.com>
398
399 * mi/mi-cmd-var.c: Include "language.h".
400 (mi_cmd_var_info_expression): Get language name from
401 language_defn.
402 * varobj.c (varobj_language_string): Remove.
403 (variable_language): Remove declaration.
404 (languages): Remove.
405 (varobj_get_language): Change the type of return value.
406 (variable_language): Remove.
407 * varobj.h (enum varobj_languages): Remove.
408 (varobj_language_string): Remove declaration.
409 (varobj_get_language): Update declaration.
410
411 2013-11-07 Yao Qi <yao@codesourcery.com>
412
413 * language.h (struct language_defn) <la_natural_name>: New
414 field.
415 * ada-lang.c (ada_language_defn): Initialize field
416 'la_natural_name'.
417 * c-lang.c (c_language_defn): Likewise.
418 (cplus_language_defn, asm_language_defn): Likewise.
419 * d-lang.c (d_language_defn): Likewise.
420 * f-lang.c (f_language_defn): Likewise.
421 * go-lang.c (go_language_defn): Likewise.
422 * jv-lang.c (java_language_defn): Likewise.
423 * language.c (unknown_language_defn ): Likewise.
424 (auto_language_defn): Likewise.
425 * m2-lang.c (m2_language_defn): Likewise.
426 * objc-lang.c (objc_language_defn): Likewise.
427 * opencl-lang.c (opencl_language_defn): Likewise.
428 * p-lang.c (pascal_language_defn): Likewise.
429
430 2013-11-07 Yao Qi <yao@codesourcery.com>
431
432 * language.c (language_str): Return const char *.
433 (add_language): Add const to 'language_names'
434 * language.h (struct language_defn) <la_name>: Add const.
435 (language_str: Update declaration.
436
437 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
438
439 * s390-linux-nat.c (s390_read_description): Consider the TE field
440 in the HWCAP for determining 'have_regset_tdb'.
441
442 2013-11-06 Will Newton <will.newton@linaro.org>
443
444 PR gdb/12866
445 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
446 values. (read_partial_die): Likewise.
447
448 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
449
450 PR cli/16122
451 * top.c (command_line_input): Unify interactivity tests to use
452 input_from_terminal_p.
453 * event-top.c (command_line_handler): Likewise.
454
455 2013-11-06 Yao Qi <yao@codesourcery.com>
456
457 * Makefile.in (check-perf): New target.
458
459 2013-11-05 Will Newton <will.newton@linaro.org>
460
461 PR gdb/7670
462 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
463 (arm_print_float_info): Likewise.
464
465 2013-11-04 Anton Blanchard <anton@samba.org>
466
467 * target.c (memory_xfer_partial): Cap write to 4KB.
468
469 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
470
471 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
472 probe scan even when the arch provides no get_longjmp_target.
473
474 2013-10-31 Pedro Alves <palves@redhat.com>
475
476 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
477 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
478 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
479 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
480 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
481 <bpstat handling>: If the bpstat chain wants the signal to be
482 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
483 GDB_SIGNAL_TRAP.
484
485 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
486
487 * breakpoint.c (update_watchpoint): Update error message and add
488 an additional error message.
489
490 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
491
492 * s390-tdep.h: Rename to...
493 * s390-linux-tdep.h: ...here.
494 * s390-tdep.c: Rename to...
495 * s390-linux-tdep.c: ...here. Adjust #include.
496 * s390-nat.c: Rename to...
497 * s390-linux-nat.c: ...here. Adjust #include.
498 * config/s390/s390.mh: Rename to...
499 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
500 s390-linux-nat.o.
501 * configure.host: Reflect host rename "s390" -> "linux".
502 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
503 * Makefile.in (ALL_TARGET_OBS): Likewise.
504 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
505 s390-linux-tdep.h.
506 (ALLDEPFILES): Reflect rename of .c files.
507
508 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
509
510 * s390-nat.c: Whitespace cleanup.
511 * s390-tdep.c: Likewise.
512 * s390-tdep.h: Remove empty line at end of file.
513
514 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
515
516 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
517 siginfo_size.
518
519 2013-10-29 Tom Tromey <tromey@redhat.com>
520
521 * utils.c (reg): Move undefinition...
522 * gdb_curses.h: ... here. Update comment to mention AIX.
523
524 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
525
526 * exec.h (add_target_sections_of_objfile): New declaration.
527 * exec.c (add_target_sections_of_objfile): New function.
528 * symfile.c (add_symbol_file_command): Update current target sections.
529 (remove_symbol_file_command): New command.
530 (symfile_free_objfile): New function.
531 (_initialize_symfile): Register observer for free_objfile events.
532 * NEWS: Add description of the remove-symbol-file command.
533 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
534 * objfiles.c (free_objfile): Notify free_objfile.
535 (is_addr_in_objfile): New function.
536 * objfiles.h (is_addr_in_objfile): New declaration.
537 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
538 events instead of solib_unloaded events.
539 (_initialize_printcmd): Register observer for free_objfile instead
540 of solib_unloaded notifications.
541 * solib.c (remove_user_added_objfile): New function.
542 (_initialize_symfile): Add remove-symbol-file.
543
544 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
545
546 * infcmd.c (default_print_one_register_info): Use val_print to
547 print all values even optimized out or unavailable ones. Don't
548 try to print a raw form of optimized out or unavailable values.
549
550 2013-10-29 Yao Qi <yao@codesourcery.com>
551
552 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
553 parameter 'arg' instead of from program_space_data.
554 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
555 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
556 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
557 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
558 * inflow.c (inflow_inferior_data_cleanup): Get data from
559 parameter 'arg' instead of inferior_data.
560 * registry.h: Add comments.
561
562 2013-10-28 Pedro Alves <palves@redhat.com>
563
564 * breakpoint.c (watchpoints_triggered)
565 <!target_stopped_data_address>: Hardcode return 1.
566
567 2013-10-28 Pedro Alves <palves@redhat.com>
568
569 * infrun.c (process_event_stop_test): Remove unnecessary scoping
570 level and reindent.
571
572 2013-10-28 Pedro Alves <palves@redhat.com>
573
574 * infrun.c (process_event_stop_test): New function, factored out
575 from handle_inferior_event.
576 (handle_inferior_event): 'process_event_stop_test' is now a
577 function instead of a goto label -- adjust.
578
579 2013-10-28 Pedro Alves <palves@redhat.com>
580
581 * infrun.c (handle_inferior_event): Move process_event_stop_test
582 goto label to the else branch of the ecs->random_signal check,
583 along with FRAME and GDBARCH re-fetching.
584
585 2013-10-28 Pedro Alves <palves@redhat.com>
586
587 * infrun.c (switch_back_to_stepped_thread): New function, factored
588 out from handle_inferior_event.
589 (handle_inferior_event): Adjust to call
590 switch_back_to_stepped_thread. Call it also at the tail of the
591 random signal handling, and return, instead of also handling
592 random signals just before the stepping tests.
593
594 2013-10-28 Pedro Alves <palves@redhat.com>
595
596 * infrun.c (clear_stop_func): Delete.
597 (handle_inferior_event): Don't call clear_stop_func and don't
598 clear 'ecs->random_signal'.
599
600 2013-10-27 Yao Qi <yao@codesourcery.com>
601
602 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
603 (varobj_create, varobj_get_path_expr): Update.
604 (varobj_value_has_mutated, varobj_update): Likewise.
605 (create_child_with_value, new_root_variable): Likewise.
606 (number_of_children, name_of_variable): Likewise.
607 (value_of_child, my_value_of_variable): Likewise.
608 (varobj_value_is_changeable_p): Likewise.
609
610 2013-10-25 Yao Qi <yao@codesourcery.com>
611
612 * language.h (struct lang_varobj_ops): Declare.
613 (struct language_defn) <la_varobj_ops>: New field.
614 * ada-lang.c: Include "varobj.h"
615 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
616 ada_varobj_ops.
617 * c-lang.c: Include "varobj.h"
618 (c_language_defn): Initialize field 'la_varobj_ops' with
619 c_varobj_ops.
620 (cplus_language_defn): Initialize field 'la_varobj_ops' with
621 cplus_varobj_ops.
622 (asm_language_defn): Initialize field 'la_varobj_ops' with
623 default_varobj_ops.
624 (minimal_language_defn): Likewise.
625 * d-lang.c (d_language_defn): Likewise.
626 * f-lang.c (f_language_defn): Likewise.
627 * go-lang.c (go_language_defn): Likewise.
628 * m2-lang.c (m2_language_defn): Likewise.
629 * objc-lang.c (objc_language_defn): Likewise.
630 * opencl-lang.c (opencl_language_defn): Likewise.
631 * p-lang.c (pascal_language_defn): Likewise.
632 * language.c (unknown_language_defn): Likewise.
633 (auto_language_defn): Likewise.
634 (local_language_defn): Likewise.
635 * jv-lang.c (java_language_defn): Initialize field
636 'la_varobj_ops' with java_varobj_ops.
637 * varobj.c (varobj_create): Update.
638 * varobj.h (default_varobj_ops): Define macro.
639
640 2013-10-25 Pedro Alves <palves@redhat.com>
641
642 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
643 static field value.
644 (cp_print_static_field): If the value is entirely optimized out,
645 print <optimized out> here.
646 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
647 static field value.
648 * p-valprint.c (pascal_object_print_static_field): If the value is
649 entirely optimized out, print <optimized out> here.
650 * valops.c (do_search_struct_field)
651 (value_struct_elt_for_reference): No longer handle a NULL static
652 field value.
653 * value.c (value_static_field): Return an optimized out value
654 instead of NULL.
655
656 2013-10-25 Yao Qi <yao@codesourcery.com>
657
658 * remote.c (remote_traceframe_info): Return early if
659 traceframe is not selected.
660
661 2013-10-25 Yao Qi <yao@codesourcery.com>
662
663 * tracepoint.c (traceframe_fun): Remove.
664 (traceframe_sal): Remove.
665 (set_traceframe_context): Add local variables.
666
667 2013-10-25 Joel Brobecker <brobecker@adacore.com>
668
669 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
670 and parameter name.
671
672 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
673
674 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
675 failure from register information collection.
676
677 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
678
679 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
680 member.
681 (linux_corefile_thread_callback): Update accordingly.
682 (linux_make_corefile_notes): Likewise.
683
684 2013-10-24 Pedro Alves <palves@redhat.com>
685
686 * NEWS (New options): Mention set/show startup-with-shell.
687 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
688 instead of 3.
689 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
690 startup-with-shell'.
691 (show_startup_with_shell): New function.
692 (_initialize_fork_child): Register the set/show startup-with-shell
693 commands.
694 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
695 * inf-ttrace.c (inf_ttrace_him): Remove comment.
696 * procfs.c (procfs_init_inferior): Remove comment.
697 * infcmd.c (startup_with_shell): New global.
698 * inferior.h (startup_with_shell): Declare global.
699 (STARTUP_WITH_SHELL): Delete.
700 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
701
702 2013-10-23 Pedro Alves <palves@redhat.com>
703
704 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
705 * common/signals.c: Include "gdb_assert.h".
706 (signals): New field 'symbol'.
707 (SET): Use the 'symbol' parameter.
708 (gdb_signal_to_symbol_string): New function.
709 * infrun.c (handle_inferior_event) <random signal>: In debug
710 output, print the random signal enum as string in addition to its
711 number.
712 * target/waitstatus.c (target_waitstatus_to_string): Print the
713 signal's enum value as string instead of the (POSIX) signal name.
714
715 2013-10-23 Gary Benson <gbenson@redhat.com>
716
717 PR 16013
718 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
719 from 32 to 18. Adjusted fscanf format string accordingly.
720 (Avoids leaving cmd unterminated.)
721 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
722 trun, retn or extra. (Avoids leaving extra unterminated.) Check
723 that local_address and remote_address will not overflow.
724 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
725 leaving dependencies unterminated. Parse size as "%u" to match
726 definition.
727
728 2013-10-22 Pedro Alves <palves@redhat.com>
729
730 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
731 set ecs->random signal.
732
733 2013-10-22 Pedro Alves <palves@redhat.com>
734
735 * infrun.c (keep_going): Update comments.
736
737 2013-10-22 Pedro Alves <palves@redhat.com>
738
739 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
740 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
741
742 2013-10-22 Pedro Alves <palves@redhat.com>
743
744 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
745 GDB_EXC_BAD_ACCESS.
746 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
747 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
748 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
749 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
750 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
751 (GDB_SIGNAL_LAST): Change description string.
752 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
753 Adjust to signal renaming.
754 * darwin-nat.c (darwin_decode_message): Likewise.
755
756 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
757
758 * MAINTAINERS (Write After Approval): Add myself to the list.
759
760 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
761
762 * breakpoint.c (update_watchpoint): If hardware watchpoints are
763 forced off, downgrade them to software watchpoints if possible,
764 and error out if not possible.
765 (watch_command_1): Move watchpoint type selection closer to
766 watchpoint creation, and extend the comments.
767
768 2013-10-18 Pedro Alves <palves@redhat.com>
769
770 PR gdb/16062
771 * infrun.c (handle_inferior_event): Keep going if we got a random
772 signal we should not stop for, instead of falling through to the
773 step tests.
774
775 2013-10-18 Yao Qi <yao@codesourcery.com>
776
777 * c-varobj.c (cplus_number_of_children): Fix indentation.
778
779 2013-10-17 Tom Tromey <tromey@redhat.com>
780
781 PR gdb/15995:
782 * printcmd.c (printcmd): Call gdb_flush.
783
784 2013-10-17 Tom Tromey <tromey@redhat.com>
785
786 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
787 (elf_locate_sections): Update.
788
789 2013-10-17 Yao Qi <yao@codesourcery.com>
790
791 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
792 * ada-varobj.c: Remove the include of ada-varobj.h.
793 (ada_varobj_get_number_of_children): Declare.
794 (ada_varobj_get_name_of_child): Make it static.
795 (ada_varobj_get_path_expr_of_child): Likewise.
796 (ada_varobj_get_value_of_child): Likewise.
797 (ada_varobj_get_type_of_child): Likewise.
798 (ada_varobj_get_value_of_array_variable): Likewise.
799 * ada-varobj.h: Remove.
800
801 2013-10-17 Yao Qi <yao@codesourcery.com>
802
803 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
804 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
805 * ada-varobj.c: Include "varobj.h".
806 (ada_number_of_children): New. Moved from varobj.c.
807 (ada_name_of_variable, ada_name_of_child): Likewise.
808 (ada_path_expr_of_child, ada_value_of_child): Likewise.
809 (ada_type_of_child, ada_value_of_variable): Likewise.
810 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
811 (ada_varobj_ops): New.
812 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
813 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
814 * gdbtypes.h (get_target_type): Declare.
815 * varobj.c: Remove the inclusion of "ada-varobj.h" and
816 "ada-lang.h".
817 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
818 (ANONYMOUS_UNION_NAME): Likewise.
819 (get_type, get_value_type, get_target_type): Remove declarations.
820 (value_get_print_value, varobj_value_get_print_value): Likewise.
821 (c_number_of_children, c_name_of_variable): Likewise.
822 (c_name_of_child, c_path_expr_of_child): Likewise.
823 (c_value_of_child, c_type_of_child): Likewise.
824 (c_value_of_variable, cplus_number_of_children): Likewise.
825 (cplus_class_num_children, cplus_name_of_variable): Likewise.
826 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
827 (cplus_value_of_child, cplus_type_of_child): Likewise.
828 (cplus_value_of_variable, java_number_of_children): Likewise.
829 (java_name_of_variable, java_name_of_child): Likewise.
830 (java_path_expr_of_child, java_value_of_child): Likewise.
831 (java_type_of_child, java_value_of_variable): Likewise.
832 (ada_number_of_children, ada_name_of_variable): Likewise.
833 (ada_name_of_child, ada_path_expr_of_child): Likewise.
834 (ada_value_of_child, ada_type_of_child): Likewise.
835 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
836 (ada_value_has_mutated): Likewise.
837 (struct language_specific): Move it to varobj.h.
838 (CPLUS_FAKE_CHILD): Move it to varobj.h.
839 (restrict_range): Rename it varobj_restrict_range. Make it extern.
840 Callers update.
841 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
842 Make it extern.
843 (is_anonymous_child): Move it to c-varobj.c and rename to
844 varobj_is_anonymous_child. Caller update.
845 (get_type): Move it to c-varobj.c.
846 (get_value_type): Rename it varobj_get_value_type. Make it
847 extern.
848 (get_target_type): Move it gdbtypes.c.
849 (varobj_formatted_print_options): New function.
850 (value_get_print_value): Rename it to
851 varobj_value_get_print_value and make it extern.
852 (varobj_value_is_changeable_p): Make it extern.
853 (adjust_value_for_child_access): Move it to c-varobj.c.
854 (default_value_is_changeable_p): Rename it to
855 varobj_default_value_is_changeable_p. Make it extern.
856 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
857 (c_name_of_child, c_path_expr_of_child): Likewise.
858 (c_value_of_child, c_type_of_child): Likewise.
859 (c_value_of_variable, cplus_number_of_children): Likewise.
860 (cplus_class_num_children, cplus_name_of_variable): Likewise.
861 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
862 (cplus_value_of_child, cplus_type_of_child): Likewise.
863 (cplus_value_of_variable): Likewise.
864 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
865 (java_name_of_child, java_path_expr_of_child): Likewise.
866 (java_value_of_child, java_type_of_child): Likewise.
867 (java_value_of_variable): Likewise.
868 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
869 (ada_name_of_child, ada_path_expr_of_child): Likewise.
870 (ada_value_of_child, ada_type_of_child): Likewise.
871 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
872 (ada_value_has_mutated): Likewise.
873 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
874 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
875 (c_varobj_ops, cplus_varobj_ops): Declare.
876 (java_varobj_ops, ada_varobj_ops): Declare.
877 (varobj_default_value_is_changeable_p): Declare.
878 (varobj_value_is_changeable_p): Declare.
879 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
880 (varobj_get_path_expr_parent): Declare.
881 (varobj_value_get_print_value): Declare.
882 (varobj_formatted_print_options): Declare.
883 (varobj_restrict_range): Declare.
884
885 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
886
887 * target/waitstatus.h (target_waitkind): Remove spurious
888 character from the comments.
889
890 2013-10-17 Joel Brobecker <brobecker@adacore.com>
891
892 * gdbarch.sh (get_longjmp_target): Add method documentation.
893 * gdbarch.h: Regenerate.
894
895 2013-10-16 Tom Tromey <tromey@redhat.com>
896
897 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
898 label.
899
900 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
901
902 * gcore.in: Call GDB using the full path to the gcore script.
903 Error out if the GDB binary is not found.
904
905 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
906
907 PR gdb/16014
908 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
909 sizeof.
910
911 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
912
913 PR gdb/16042
914 * target.c (target_disable_btrace): Fix invalid return value for
915 void function.
916 (target_teardown_btrace): Likewise.
917
918 2013-10-14 Yao Qi <yao@codesourcery.com>
919
920 * varobj.c (struct varobj): Move most of the fields to
921 varobj.h.
922 (struct varobj_dynamic): New struct.
923 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
924 (varobj_has_more): Likewise.
925 (dynamic_varobj_has_child_method): Likewise.
926 (update_dynamic_varobj_children): Likewise.
927 (varobj_get_num_children): Likewise.
928 (varobj_list_children, varobj_pretty_printed_p): Likewise.
929 (install_new_value_visualizer): Likewise.
930 (install_new_value_visualizer, install_new_value): Likewise.
931 (varobj_update, new_variable, free_variable): Likewise.
932 (my_value_of_variable, value_get_print_value): Likewise.
933 (install_visualizer): Change the type of parameter 'var' to
934 'struct varobjd_dynamic *'. Callers update.
935 * varobj.h (struct varobj): Moved from varobj.c.
936 (struct varobj) <dynamic>: New field.
937
938 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
939
940 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
941 as the preferred name of r30.
942 * nios2-linux-tdep.c (reg_offsets): Likewise.
943 * features/nios2-cpu.xml: Likewise.
944 * features/nios2-linux.c: Regenerated.
945 * features/nios2.c: Regenerated.
946 * regformats/nios2-linux.dat: Regenerated.
947
948 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
949
950 Canonicalize directories for EXEC_FILENAME.
951 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
952 exec_filename.
953 * utils.c (gdb_realpath_keepfile): New function.
954 * utils.h (gdb_realpath_keepfile): New declaration.
955
956 2013-10-11 Doug Evans <dje@google.com>
957
958 * Makefile.in (GDBFLAGS): New variable.
959 (run): New rule.
960
961 2013-10-11 Joel Brobecker <brobecker@adacore.com>
962
963 * NEWS: Add entry documenting the new "-catch-assert" and
964 "-catch-exception" GDB/MI commands.
965
966 2013-10-11 Joel Brobecker <brobecker@adacore.com>
967
968 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
969 "enabled".
970 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
971 "enabled". Set B->ENABLE_STATE accordingly.
972 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
973 ada-lang.c.
974 (create_ada_exception_catchpoint): Add declaration.
975 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
976 (create_ada_exception_catchpoint): Make non-static. Add new
977 parameter "disabled". Use it in call to
978 init_ada_exception_breakpoint.
979 (catch_ada_exception_command): Add parameter "enabled" in call
980 to create_ada_exception_catchpoint.
981 (catch_assert_command): Likewise.
982
983 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
984 Add declarations.
985 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
986 "catch-exception" commands.
987 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
988 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
989
990 2013-10-11 Joel Brobecker <brobecker@adacore.com>
991
992 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
993 "enum exception_catchpoint_kind". Replace the "ex_" prefix
994 of all its enumerates with "ada_". Update the rest of this
995 file throughout.
996
997 2013-10-11 Joel Brobecker <brobecker@adacore.com>
998
999 * ada-lang.c (ada_decode_exception_location): Delete.
1000 (create_ada_exception_catchpoint): Remove arguments "sal",
1001 "addr_string" and "ops". Add argument "ex_kind" instead.
1002 Adjust implementation accordingly, calling ada_exception_sal
1003 to get the entities it no longer gets passed as arguments.
1004 Document the function's arguments.
1005 (catch_ada_exception_command): Use catch_ada_exception_command_split
1006 instead of ada_decode_exception_location, and update call to
1007 create_ada_exception_catchpoint.
1008 (catch_ada_assert_command_split): Renames
1009 ada_decode_assert_location. Remove parameters "addr_string" and
1010 "ops", and now returns void. Adjust implementation accordingly.
1011 Update the function documentation.
1012 (catch_assert_command): Use catch_ada_assert_command_split
1013 instead of ada_decode_assert_location. Update call to
1014 create_ada_exception_catchpoint.
1015
1016 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1017
1018 * utils.h (perror_warning_with_name): Add declaration.
1019 * utils.c (perror_warning_with_name): New function.
1020 * cli/cli-cmds.c (source_script_with_search): Add call to
1021 perror_warning_with_name if from_tty is nul.
1022
1023 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1024
1025 * utils.c (perror_string): New function, extracted out of
1026 throw_perror_with_name.
1027 (throw_perror_with_name): Rework to use perror_string.
1028
1029 2013-10-11 Yao Qi <yao@codesourcery.com>
1030
1031 * remote.c (discard_pending_stop_replies_in_queue): Update
1032 declaration.
1033 (struct stop_reply) <rs>: New field.
1034 (remove_stop_reply_of_remote_state): New function.
1035 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1036 Callers update. Pass remove_stop_reply_of_remote_state to
1037 QUEUE_iterate.
1038 (remote_parse_stop_reply): Initialize field 'rs'.
1039
1040 2013-10-10 Will Newton <will.newton@linaro.org>
1041
1042 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1043 linux_init_abi.
1044
1045 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1046
1047 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1048 serial_baud_show_cmd.
1049 (_initialize_cli_cmds): Delete the code creating the
1050 "set/show remotebaud" commands.
1051 * serial.c (baud_rate): Move here from top.c.
1052 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1053 (_initialize_serial): Create "set/show serial baud" commands.
1054 Add "set/show remotebaud" command aliases.
1055 * top.c (baud_rate): Moved to serial.c.
1056 * NEWS: Document the new "set/show serial baud" commands,
1057 replacing "set/show remotebaud".
1058
1059 2013-10-09 Pedro Alves <palves@redhat.com>
1060
1061 * breakpoint.c (insert_bp_location): Use memory_error_message to
1062 build the memory error string.
1063 * c-lang.c: Include "gdbcore.h".
1064 (c_get_string): Use memory_error to throw error.
1065 (target_xfer_memory_error): Delete.
1066 (memory_error_message): New, factored out from
1067 target_xfer_memory_error.
1068 (memory_error): Change parameter type to target_xfer_error.
1069 Rewrite.
1070 (read_memory): Use memory_error instead of
1071 target_xfer_memory_error.
1072 * gdbcore.h: Include "target.h".
1073 (memory_error): Change parameter type to target_xfer_error.
1074 (memory_error_message): Declare function.
1075 * target.c (target_read_memory, target_read_stack)
1076 (target_write_memory, target_write_raw_memory): Return
1077 TARGET_XFER_E_IO on error. Adjust comments.
1078 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1079 instead of EIO.
1080 * target.h (target_read, target_insert_breakpoint)
1081 (target_remove_breakpoint): Adjust comments.
1082 * valprint.c (partial_memory_read): Rename parameter, and adjust
1083 comment.
1084 (val_print_string): Use memory_error_message to build the memory
1085 error string.
1086
1087 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1088
1089 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1090 result variable. Rename variable fopen_e_ever_failed to
1091 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1092
1093 2013-10-09 Pedro Alves <palves@redhat.com>
1094
1095 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1096 (monitor_write_memory_longlongs, monitor_write_memory_block):
1097 Constify 'myaddr' parameter.
1098 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1099 helper.
1100 (monitor_xfer_partial): New function.
1101 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1102 hook. Install a to_xfer_partial hook.
1103
1104 2013-10-09 Tom Tromey <tromey@redhat.com>
1105
1106 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1107 bfd_get_alt_debug_link_info.
1108
1109 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1110
1111 New flag OBJF_NOT_FILENAME.
1112 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1113 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1114 allocate_objfile.
1115 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1116 symbol_file_add_from_bfd.
1117 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1118 allocate_objfile.
1119 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1120 NULL.
1121 * objfiles.h (OBJF_NOT_FILENAME): New.
1122
1123 2013-10-08 Tom Tromey <tromey@redhat.com>
1124
1125 * Makefile.in (SFILES): Add build-id.c.
1126 (HFILES_NO_SRCDIR): Add build-id.h.
1127 * build-id.c: New file, largely from elfread.c. Modified
1128 most functions.
1129 * build-id.h: New file.
1130 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1131 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1132 Search for dwz file using build-id.
1133 * elfread.c (build_id_bfd_get, build_id_verify)
1134 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1135
1136 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1137
1138 * ada-lang.c (compare_names_with_case): Renamed from
1139 compare_names, adding a new parameter "casing" and its handling.
1140 New function documentation.
1141 (compare_names): New function, implemented using
1142 compare_names_with_case.
1143
1144 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1145
1146 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1147
1148 2013-10-07 Tom Tromey <tromey@redhat.com>
1149
1150 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1151 demangled_names_hash.
1152 (free_objfile): Don't delete the demangled_names_hash.
1153 * objfiles.h (struct objfile_per_bfd_storage)
1154 <demangled_names_hash>: New field.
1155 (struct objfile) <demangled_names_hash>: Move to
1156 objfile_per_bfd_storage.
1157 * symfile.c (reread_symbols): Don't delete the
1158 demangled_names_hash.
1159 * symtab.c (create_demangled_names_hash): Update.
1160 (symbol_set_names): Update.
1161
1162 2013-10-07 Tom Tromey <tromey@redhat.com>
1163
1164 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1165 needs_relocations>: New fields.
1166 (gdb_bfd_requires_relocations): New function.
1167 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1168 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1169 the BFD needs relocations applied.
1170
1171 2013-10-07 Pedro Alves <palves@redhat.com>
1172
1173 PR breakpoints/11568
1174 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1175 the thread list" instead of "gone".
1176
1177 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1178
1179 * NEWS: Mention new convenience variable $_exitsignal.
1180 * corelow.c (core_open): Reset exit convenience variables. Set
1181 $_exitsignal to the uncaught signal which generated the corefile.
1182 * infrun.c (handle_inferior_event): Reset exit convenience
1183 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1184 (clear_exit_convenience_vars): New function.
1185 * inferior.h (clear_exit_convenience_vars): New prototype.
1186
1187 2013-10-06 Yao Qi <yao@codesourcery.com>
1188
1189 * varobj.h: Add comments to enum varobj_languages.
1190
1191 2013-10-04 Doug Evans <dje@google.com>
1192
1193 Add support for DWP file format version 2.
1194 * NEWS: Mention support for DWP file format version 2.
1195 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1196 union of asection, containing_section. New fields virtual_offset
1197 and is_virtual. Change type of readin filed from int to char.
1198 (dwo_sections, dwo_file): Tweak comments.
1199 (dwp_v2_section_ids): New enum.
1200 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1201 str_offsets, types.
1202 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1203 All uses updated.
1204 (virtual_v2_dwo_sections): New struct.
1205 (dwp_hash_table): New fields version, nr_columns. Change type of
1206 section_pool field to a union.
1207 (dwp_file): New field version.
1208 (dwarf2_has_info): Check for virtual sections.
1209 (get_containing_section): New function.
1210 (get_section_bfd_owner, get_section_bfd_section): Call it.
1211 (dwarf2_locate_sections): Update.
1212 (dwarf2_section_empty_p): Update.
1213 (dwarf2_read_section): Handle virtual sections.
1214 (locate_dwz_sections): Update.
1215 (create_dwp_hash_table): Document and handle V2 format.
1216 (locate_v1_virtual_dwo_sections): Renamed from
1217 locate_virtual_dwo_sections and update. All callers updated.
1218 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1219 Delete arg htab. Rename arg section_index to unit_index.
1220 All callers updated.
1221 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1222 All uses updated.
1223 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1224 (lookup_dwo_unit_in_dwp): Add V2 support.
1225 (dwarf2_locate_dwo_sections): Update.
1226 (dwarf2_locate_common_dwp_sections): Renamed from
1227 dwarf2_locate_dwp_sections and update. All callers updated.
1228 (dwarf2_locate_v2_dwp_sections): New function.
1229 (open_and_init_dwp_file): Add V2 support.
1230 (read_str_index): New locals str_section, str_offsets_section.
1231
1232 2013-10-04 Pedro Alves <palves@redhat.com>
1233
1234 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1235 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1236 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1237 describing comments with references to ptid.h.
1238 * common/ptid.h: Remove intro description of constructors,
1239 accessors and predicates.
1240 (struct ptid): Reformat.
1241 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1242 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1243 describing comments.
1244
1245 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1246
1247 * aix-thread.c (sync_threadlists): Add missing ')' in call
1248 to ptid_build.
1249
1250 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1251
1252 * procfs.c (procfs_init_inferior): Fix typo causing the build
1253 to fail.
1254
1255 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1256
1257 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1258
1259 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1260
1261 * mi/mi-main.c (run_one_inferior): Add function description.
1262 Make ARG a pointer to an integer whose value determines whether
1263 we should "run" or "start" the program.
1264 (mi_cmd_exec_run): Add handling of the "--start" option.
1265 Reject all other command-line options.
1266 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1267
1268 2013-10-04 Yao Qi <yao@codesourcery.com>
1269
1270 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1271 (struct notif_client) <pending_event>: Moved
1272 to struct remote_notif_state.
1273 <id>: New field.
1274 (struct remote_notif_state) <pending_event>: New field.
1275 (notif_event_xfree): Declare.
1276 * remote-notif.c (handle_notification): Adjust.
1277 (notif_event_xfree): New function.
1278 (do_notif_event_xfree): Call notif_event_xfree.
1279 (remote_notif_state_xfree): Call notif_event_xfree to free
1280 each element in field pending_event.
1281 * remote.c (discard_pending_stop_replies): Remove declaration.
1282 (discard_pending_stop_replies_in_queue): Declare.
1283 (remote_close): Call discard_pending_stop_replies_in_queue
1284 instead of discard_pending_stop_replies.
1285 (remote_start_remote): Adjust.
1286 (stop_reply_xfree): Call notif_event_xfree.
1287 (notif_client_stop): Adjust initialization.
1288 (remote_notif_remove_all): Rename it to ...
1289 (remove_stop_reply_for_inferior): ... this. Update comments.
1290 Don't check INF is NULL.
1291 (discard_pending_stop_replies): Return early if notif_state is
1292 NULL. Adjust. Don't check INF is NULL.
1293 (remote_notif_get_pending_events): Adjust.
1294 (discard_pending_stop_replies_in_queue): New function.
1295 (remote_wait_ns): Likewise.
1296
1297 2013-10-04 Yao Qi <yao@codesourcery.com>
1298
1299 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1300 (notif_queue): Remove.
1301 (remote_notif_process): Add one parameter 'notif_queue'.
1302 Update comments. Callers update.
1303 (remote_async_get_pending_events_token): Remove.
1304 (remote_notif_register_async_event_handler): Remove.
1305 (remote_notif_unregister_async_event_handler): Remove.
1306 (handle_notification): Add parameter 'notif_queue'. Update
1307 comments. Callers update.
1308 (notif_xfree): Remove.
1309 (remote_notif_state_allocate): New function.
1310 (remote_notif_state_xfree): New function.
1311 (_initialize_notif): Remove code to allocate queue.
1312 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1313 (struct remote_notif_state): New.
1314 (handle_notification): Update declaration.
1315 (remote_notif_process): Likewise.
1316 (remote_notif_register_async_event_handler): Remove.
1317 (remote_notif_unregister_async_event_handler): Remove.
1318 (remote_notif_state_allocate): Declare.
1319 (remote_notif_state_xfree): Declare.
1320 * remote.c (struct remote_state) <notif_state>: New field.
1321 (remote_close): Don't call
1322 remote_notif_unregister_async_event_handler. Call
1323 remote_notif_state_xfree.
1324 (remote_open_1): Don't call
1325 remote_notif_register_async_event_handler. Call
1326 remote_notif_state_allocate.
1327
1328 2013-10-04 Yao Qi <yao@codesourcery.com>
1329
1330 * varobj.c (create_child_with_value): Remove 'const' from the
1331 type of parameter 'name'.
1332 (varobj_add_child): Likewise.
1333 (install_dynamic_child): Remove 'const' from the type of
1334 parameter 'name'.
1335 (varobj_add_child): Likewise.
1336 (create_child_with_value): Likewise. Update comments. Don't
1337 duplicate 'name'.
1338 (update_dynamic_varobj_children): Duplicate 'name'
1339 and pass it to install_dynamic_child.
1340
1341 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1342
1343 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1344 conversion logic to occur after PyLong_Check. Comment on order
1345 change significance.
1346 * python/py-arch.c (archpy_disassemble): Comment on order of
1347 conversion for integers and longs.
1348
1349 2013-10-03 Pedro Alves <palves@redhat.com>
1350
1351 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1352 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1353 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1354 PTRACE_O_TRACEFORK is not supported.
1355 (linux_test_for_tracesysgood): New function.
1356 (linux_test_for_tracefork): New function, factored out from
1357 linux_check_ptrace_features, and also don't kill child_pid here.
1358
1359 2013-10-03 Tristan Gingold <gingold@adacore.com>
1360
1361 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1362 Remove verbose error reporting. Use detected state to
1363 thread_set_state call.
1364 (i386_darwin_dr_get): Fix return type. Remove verbose error
1365 report.
1366 Remove trailing spaces.
1367
1368 2013-10-02 Pedro Alves <palves@redhat.com>
1369
1370 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1371 val_print_optimized_out.
1372 * jv-valprint.c (java_print_value_fields): Likewise.
1373 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1374 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1375 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1376 new optimized out value.
1377 * findvar.c (address_from_register): Likewise.
1378 * frame.c (put_frame_register): Tweak error string to say the
1379 register was not saved, rather than optimized out.
1380 * infcmd.c (default_print_one_register_info): Adjust call to
1381 val_print_optimized_out. Use value_of_register instead of
1382 get_frame_register_value.
1383 * mi/mi-main.c (output_register): Use value_of_register instead of
1384 get_frame_register_value.
1385 * valprint.c (valprint_check_validity): Likewise.
1386 (val_print_optimized_out): New value parameter. If the value is
1387 lval_register, print <not saved> instead.
1388 (value_check_printable, val_print_scalar_formatted): Adjust calls
1389 to val_print_optimized_out.
1390 * valprint.h (val_print_optimized_out): New value parameter.
1391 * value.c (struct value) <optimized_out>: Extend comment.
1392 (error_value_optimized_out): New function.
1393 (require_not_optimized_out): Use it. Use a different string for
1394 lval_register values.
1395 * value.h (error_value_optimized_out): New declaration.
1396 * NEWS: Mention <not saved>.
1397
1398 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1399
1400 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1401 strcmp to compare two symtab filenames.
1402
1403 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1404
1405 * symtab.c (search_symbols_equal): Delete.
1406 (sort_search_symbols_remove_dups): Replace call to
1407 search_symbols_equal by call to compare_search_syms,
1408 adjusting as necessary.
1409
1410 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1411
1412 PR python/15579
1413 * python/python.c: Document gdb.execute command in Python help.
1414
1415 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1416
1417 * python/py-frame.c (frame_info_to_frame_object): Use
1418 gdbpy_convert_exception. Clean up Python object on failure.
1419
1420 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1421
1422 * python/lib/gdb/command/frame_filters.py
1423 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1424 (ShowFrameFilterPriority.invoke): Ditto.
1425
1426 2013-10-01 Keith Seitz <keiths@redhat.com>
1427
1428 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1429 (parse_linespec): Make 'argptr' const.
1430 Remove temporary cast of 'argptr' to const char **.
1431 (decode_line_full): Pass const pointer to parse_linespec.
1432 (decode_line_1): Likewise.
1433 (decode_objc): Make local variable 'new_argptr' const.
1434 (find_function_symbols): Remove temporary cast to char *
1435 to find_imps.
1436 * objc-lang.c (find_imps): Make argument 'method' const.
1437 Return const.
1438 * objc-lang.h (find_imps): Likewise.
1439
1440 2013-10-01 Keith Seitz <keiths@redhat.com>
1441
1442 * completer.c (skip_quoted_chars): Make all arguments const.
1443 Return const.
1444 (skip_quoted): Likewise.
1445 * completer.h (skip_quoted_chars): Likewise.
1446 (skip_quoted): Likewise.
1447 * defs.h (skip_quoted): Remove duplicate declaration.
1448 * jv-exp.y: Include completer.h.
1449 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1450 * p-exp.y: Include completer.h.
1451
1452 2013-10-01 Keith Seitz <keiths@redhat.com>
1453
1454 * c-exp.y (parse_number): Make first argument const.
1455 Make a copy of the input to manipulate.
1456 (c_parse_escape): Make first argument const.
1457 Make local variable 'tokptr' const.
1458 (parse_string_or_char): Make first two arguments const.
1459 (macro_original_text): Make const.
1460 (lex_one_token): Make local variable 'tokstart' const.
1461 Likewise for local variables named 'p'.
1462 Cast away const for struct stoken (temporary).
1463 * c-lang.h (c_parse_escpae): Make first argument const.
1464 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1465 const.
1466 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1467 var_string case.
1468 * f-exp.y (parse_number): Make first argument const.
1469 (match_string_literal): Make local variable 'tokstart'
1470 const.
1471 (yylex): Make local variable 'p' const.
1472 Cast away const for struct stoken (temporary).
1473 * go-exp.y (parse_number): Make first argument const.
1474 (parse_string_or_char): Likewise.
1475 Make local variable 'tokstart' const.
1476 (lex_one_token): Likewise for numerous locals called 'p'.
1477 Cast away const for struct stoken (temporary).
1478 * jv-exp.y (parse_number): Make first argument const.
1479 Make local variables 'tokstart' and 'tokptr' const.
1480 Cast away const for call to skip_quoted (temporary).
1481 (yylex): Make local variable 'p' const.
1482 Cast away const for struct stoken (temporary).
1483 * m2-exp.y (parse_number): Make local variable 'p' const.
1484 (yylex): Likewise for 'tokstart'.
1485 Cast away const for struct stoken (temporary).
1486 Make local variable 'p' const.
1487 * macroexp.c (get_character_constant): Pass a const string
1488 to c_parse_escape.
1489 (get_string_literal): Likewise.
1490 (macro_expand_next): Make first argument const.
1491 Cast away const for init_shared_buffer.
1492 * macroexp.h (macro_expand_next): Make first argument const.
1493 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1494 Pass a const string to c_parse_escape.
1495 Make local variables 'p' and 'namestart' const.
1496 * parse.c (lexptr): Make const.
1497 (prev_lexptr): Likewise.
1498 (find_template_name_end): Return const.
1499 Make argument const, too.
1500 (parse_exp_in_context): Make first argument const.
1501 Remove the entire const_hack.
1502 (parse_exp_in_context_1): Make first argument const.
1503 * parser-defs.h (find_template_name_end): Return const.
1504 Make argument const, too.
1505 (lexptr): Make const.
1506 (prev_lexptr): Likewise.
1507 * utils.c (parse_escape): Make second argument const.
1508 * utils.h (parse_escape): Likewise.
1509
1510 2013-10-01 Keith Seitz <keiths@redhat.com>
1511
1512 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1513 is now const.
1514 (block_lookup): Make 'raw_name' and 'name' const.
1515 * ada-lex.l (processString): Update for struct stoken.ptr.
1516 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1517 (operator_stoken): Likewise.
1518 (lex_one_token): Remove temporary cast to char * for
1519 'yylval.sval.ptr'.
1520 * f-exp.y (yylex): Likewise.
1521 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1522 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1523 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1524 'yylval.sval.ptr'.
1525 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1526 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1527 * linespec.c (struct ls_parser): Make 'stream' const.
1528 (find_parameter_list_end): Make argument 'input' and local
1529 variable 'p' const.
1530 (linespec_lexer_lex_string): Make local variables 'start' and
1531 'p' const.
1532 Use skip_spaces_const instead of skip_spaces.
1533 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1534 const.
1535 (parse_linespec): Temporarily cast 'argptr' to const for
1536 'parser->lexer.stream'.
1537 * m2-exp.y (yylex): Remove temporary cast to char * for
1538 'yylval.sval.ptr'.
1539 * objc-lang.c (add_msglist): Make local variable 'p' const.
1540 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1541 (exp : STRING): Make 'sp' const.
1542 (parse_number): Make argument 'p' const.
1543 * parser-defs.h (struct stoken): Make 'ptr' const.
1544
1545 2013-10-01 Doug Evans <dje@google.com>
1546
1547 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1548
1549 2013-10-01 Yao Qi <yao@codesourcery.com>
1550
1551 * varobj.c (c_value_of_root): Remove declaration.
1552 (cplus_value_of_root, java_value_of_root): Likewise.
1553 (ada_value_of_root): Likewise.
1554 (struct language_specific) <value_of_root>: Remove.
1555 (languages): Update initialization.
1556 (check_scope): Move earlier.
1557 (c_value_of_root): Move earlier and rename to ...
1558 (value_of_root_1): ... this.
1559 (value_of_root): Caller update.
1560 (cplus_value_of_root, java_value_of_root): Remove.
1561 (ada_value_of_root): Remove.
1562
1563 2013-10-01 Yao Qi <yao@codesourcery.com>
1564
1565 * varobj.c (varobj_format_string): Remove "unknown".
1566 (languages): Remove the first element.
1567 * varobj.h (enum varobj_languages): Remove vlang_c.
1568
1569 2013-10-01 Yao Qi <yao@codesourcery.com>
1570
1571 * varobj.c (struct language_specific) <language>: Remove.
1572 (languages): Update the initialization.
1573
1574 2013-10-01 Yao Qi <yao@codesourcery.com>
1575
1576 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1577 "solib-target.h". Include "windows-tdep.h".
1578 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1579 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1580 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1581 windows-tdep.o to gdb_target_obs.
1582
1583 2013-10-01 Yao Qi <yao@codesourcery.com>
1584
1585 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1586 "solib-target.h".
1587 (amd64_windows_init_abi): Don't call set_solib_ops and
1588 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1589 windows_init_abi instead.
1590 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1591 "solib-target.h".
1592 (i386_cygwin_init_abi): Don't call set_solib_ops,
1593 set_gdbarch_has_dos_based_file_system and
1594 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1595 windows_init_abi instead.
1596 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1597 (windows_init_abi): New function.
1598 (windows_iterate_over_objfiles_in_search_order): Make it
1599 static.
1600 * windows-tdep.h (windows_init_abi): Declare.
1601 (windows_iterate_over_objfiles_in_search_order): Remove
1602 declaration.
1603
1604 2013-10-01 Jerome Guitton <guitton@adacore.com>
1605
1606 Checked in by Joel Brobecker <brobecker@adacore.com>
1607 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1608 incomplete dictionnary instead of None in case of missing
1609 environment variables.
1610 (elinos_init): in case of an incomplete environment, best
1611 effort to load system libraries instead of abort.
1612
1613 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1614
1615 * ada-lang.c (ada_has_this_exception_support): Ignore
1616 mst_solib_trampoline minimal symbols.
1617
1618 2013-09-30 Tristan Gingold <gingold@adacore.com>
1619
1620 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1621 hardware watchpoint.
1622 (i386_darwin_dr_set): Support 32 and 64 bit states.
1623 (i386_darwin_dr_get): Likewise.
1624 (i386_darwin_dr_set_control): Make static.
1625 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1626 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1627
1628 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1629
1630 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1631 Replace TIDGET with ptid_get_lwp.
1632 Replace GET_LWP with ptid_get_lwp.
1633 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1634 Replace BUILD_THREAD with ptid_build.
1635 Replace BUILD_LWP with ptid_build.
1636 Replace PIDGET with ptid_get_pid.
1637 Replace TIDGET with ptid_get_lwp.
1638 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1639 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1640 Replace TIDGET with ptid_get_lwp.
1641 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1642 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1643 Replace TIDGET with ptid_get_lwp.
1644 Replace GET_LWP with ptid_get_lwp.
1645 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1646 * auxv.c: Likewise.
1647 * breakpoint.c: Likewise.
1648 * common/ptid.c (ptid_is_pid): Condense check for
1649 null_ptid and minus_one_ptid.
1650 (ptid_lwp_p): New function.
1651 (ptid_tid_p): New function.
1652 * common/ptid.h: Update comments for accessors.
1653 (ptid_lwp_p): New prototype.
1654 (ptid_tid_p): New prototype.
1655 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1656 * gcore.c: Replace PIDGET with ptid_get_pid.
1657 * gdbthread.h: Likewise.
1658 * gnu-nat.c: Likewise.
1659 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1660 Replace TIDGET with ptid_get_lwp.
1661 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1662 * hppanbsd-nat.c: Likewise.
1663 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1664 Replace TIDGET with ptid_get_lwp.
1665 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1666 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1667 * infcmd.c: Likewise.
1668 * inferior.h: Likewise.
1669 * inflow.c: Likewise.
1670 * infrun.c: Likewise.
1671 * linux-fork.c: Likewise.
1672 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1673 Replace GET_PID with ptid_get_pid.
1674 Replace is_lwp with ptid_lwp_p.
1675 Replace GET_LWP with ptid_get_lwp.
1676 Replace BUILD_LWP with ptid_build.
1677
1678 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1679
1680 * common/linux-btrace.c: Move sys/syscall.h out of the
1681 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1682 Also check for SYS_perf_event_open before attempting to buid.
1683
1684 2013-09-27 Doug Evans <dje@google.com>
1685
1686 * dwarf2read.c (dwarf2_section_info): Add comment.
1687 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1688 All uses updated.
1689 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1690 (dwarf2_read_section): Delete unused local "header". Add section
1691 name to error message.
1692 (create_dwo_in_dwp): Tweak comment.
1693 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1694
1695 * dwarf2read.c (die_reader_specs): Tweak comment.
1696 (get_section_bfd_owner, get_section_bfd_section): New functions.
1697 (get_section_name, get_section_file_name): New functions.
1698 (get_section_id, get_section_flags): New functions.
1699 (*): Use new functions to access section fields.
1700
1701 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1702 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1703 arg "htab". All callers updated.
1704 (create_debug_types_hash_table): Remove redundant copy of
1705 abbrev_section.
1706 (create_dwo_in_dwp): Tweak comments.
1707 (read_str_index): Tweak comment. Record dwarf form name in static
1708 local.
1709
1710 2013-09-27 Pedro Alves <palves@redhat.com>
1711
1712 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1713 (remote_filename_p): Add comment.
1714 * remote.c (remote_filename_p): Adjust to use
1715 REMOTE_SYSROOT_PREFIX.
1716 * solib.c (solib_find): When deciding whether we need to add a
1717 directory separator, check whether the sysroot is "remote:"
1718 instead of checking whether the patch has a drive spec. Add
1719 comments.
1720
1721 2013-09-27 Pedro Alves <palves@redhat.com>
1722
1723 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1724 Delete fields.
1725 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1726 directly.
1727
1728 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1729
1730 Fix set debug frame output.
1731 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1732 SENTINEL_FRAME entry lower to match enum frame_type order.
1733
1734 2013-09-26 Pierre Muller <muller@sourceware.org>
1735
1736 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1737 AMD64_R15_REGNUM when a register index is expected.
1738 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1739 Substitute in array.
1740 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1741 (amd64_push_arguments): Substitute in integer_regnum array.
1742
1743 2013-09-25 Doug Evans <dje@google.com>
1744
1745 * objfiles.c (allocate_objfile): Move comment to better place.
1746
1747 New option "set debug symfile on".
1748 * NEWS: Mention "set debug symfile".
1749 * Makefile.in (SFILES): Add symfile-debug.c.
1750 (COMMON_OBS): Add symfile-debug.o.
1751 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1752 objfile's symbol functions.
1753 * objfiles.h (objfile_set_sym_fns): Declare.
1754 * symfile-debug.c: New file.
1755 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1756 objfile's symbol functions.
1757 (reread_symbols): Ditto.
1758
1759 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1760 All uses updated.
1761 (add_symtab_fns): Update prototype.
1762 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1763 (registered_sym_fns): ... this.
1764 (symtab_fns): Update.
1765 (add_symtab_fns): New arg "flavour". All callers updated.
1766 (find_sym_fns): Rewrite to use new sym_fns registry.
1767
1768 * symfile.h (struct sym_fns): Add "objfile" argument to
1769 sym_read_linetable. All uses updated.
1770
1771 * symtab.c (domain_name, search_domain_name): New functions.
1772 * symtab.h (domain_name, search_domain_name): Declare.
1773
1774 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1775 map_matching_symbols so objfile is first. All uses updated.
1776 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1777 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1778
1779 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1780
1781 PR shlibs/8882
1782 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1783 link map entries.
1784
1785 2013-09-24 Doug Evans <dje@google.com>
1786
1787 * objfiles.c (free_objfile): Move comment.
1788
1789 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1790
1791 * ada-exp.y (string_to_operator): Delete.
1792 (dummy_string_to_ada_operator): Delete.
1793
1794 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1795
1796 Revert:
1797 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1798 amd64-tdep.c.
1799 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1800 call_dummy_integer_regs, and classify.
1801 * amd64-tdep.h (amd64_classify): Add declaration.
1802 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1803 (amd64_reg_class): Delete, moved to i386-tdep.h.
1804 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1805 Replace call to amd64_classify by call to tdep->classify.
1806 (amd64_push_arguments): Get the list of registers to use for
1807 passing integer parameters from the gdbarch tdep structure,
1808 rather than using a hardcoded one. Replace calls to amd64_classify
1809 by calls to tdep->classify.
1810 (amd64_push_dummy_call): Get the register number used for
1811 the "hidden" argument from tdep->call_dummy_integer_regs.
1812 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1813 and tdep->call_dummy_integer_regs. Set tdep->classify.
1814
1815 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1816
1817 Revert:
1818 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1819 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1820 where tdep->memory_args_by_pointer is non-zero.
1821
1822 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1823
1824 Revert:
1825 * i386-tdep.h (struct gdbarch_tdep): Add new field
1826 integer_param_regs_saved_in_caller_frame.
1827 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1828 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1829
1830 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1831
1832 * amd64-windows-tdep.c: #include "value.h"
1833 (amd64_windows_classify): Delete.
1834 (amd64_windows_passed_by_integer_register)
1835 (amd64_windows_passed_by_xmm_register)
1836 (amd64_windows_passed_by_pointer)
1837 (amd64_windows_adjust_args_passed_by_pointer)
1838 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1839 (amd64_windows_push_dummy_call): New functions.
1840 (amd64_windows_init_abi): Remove setting of
1841 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1842 tdep->classify, tdep->memory_args_by_pointer and
1843 tdep->integer_param_regs_saved_in_caller_frame.
1844 Add call to set_gdbarch_push_dummy_call.
1845
1846 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1847
1848 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1849 objfile->original_name.
1850
1851 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1852
1853 Pass down original filename for objfile.
1854 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1855 * elfread.c (elf_symfile_read): Likewise.
1856 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1857 longer set ORIGINAL_NAME.
1858 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1859 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1860 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1861 symbol_file_add_from_bfd call.
1862 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1863 (macho_check_dsym): Add parameter filenamep. Change function comment.
1864 Set *filenamep.
1865 (macho_symfile_read): New variable dsym_filename. Update
1866 macho_check_dsym call. Use it for symbol_file_add_separate.
1867 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1868 it. Use it for objfile->original_name.
1869 (objfile_name): Return OBFD's filename, if available.
1870 * objfiles.h (allocate_objfile): Add new parameter name.
1871 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1872 * symfile-mem.c (symbol_file_add_from_memory): Update
1873 symbol_file_add_from_bfd call.
1874 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1875 comment for it.
1876 (symbol_file_add_with_addrs): New parameter name, add function comment
1877 for it. Remove variable name. Update allocate_objfile call.
1878 (symbol_file_add_separate): New parameter name, add function comment
1879 for it. Update symbol_file_add_with_addrs call.
1880 (symbol_file_add_from_bfd): New parameter name. Update
1881 symbol_file_add_with_addrs call.
1882 (symbol_file_add): Update symbol_file_add_from_bfd call.
1883 (reread_symbols): New variable original_name. Save
1884 objfile->original_name by it.
1885 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1886 second parameter.
1887
1888 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1889
1890 Code cleanup: Add objfile_name accessor function.
1891 * ada-lang.c (is_known_support_routine): Use objfile_name.
1892 * auto-load.c (source_gdb_script_for_objfile)
1893 (auto_load_objfile_script): Likewise.
1894 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1895 * dbxread.c (dbx_symfile_read): Likewise.
1896 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1897 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1898 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1899 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1900 (lookup_dwp_signatured_type, lookup_dwo_unit)
1901 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1902 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1903 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1904 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1905 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1906 (read_subrange_type, load_partial_dies, read_partial_die)
1907 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1908 (die_containing_type, build_error_marker_type, lookup_die_type)
1909 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1910 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1911 (get_DW_AT_signature_type, write_psymtabs_to_index)
1912 (save_gdb_index_command): Likewise.
1913 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1914 Likewise.
1915 * expprint.c (dump_subexp_body_standard): Likewise.
1916 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1917 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1918 original_name.
1919 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1920 obj_name, use objfile_name for it, use the variable.
1921 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1922 Use objfile_name.
1923 * machoread.c (macho_symtab_read, macho_check_dsym)
1924 (macho_symfile_relocate): Likewise.
1925 * maint.c (maintenance_translate_address): Likewise.
1926 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1927 * minsyms.c (install_minimal_symbols): Likewise.
1928 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1929 original_name.
1930 (filter_overlapping_sections): Use objfile_name.
1931 (objfile_name): New function.
1932 * objfiles.h (struct objfile): Rename field name to original_name.
1933 (objfile_name): New prototype.
1934 * printcmd.c (sym_info, address_info): Use objfile_name.
1935 * probe.c (parse_probes, collect_probes, compare_probes)
1936 (info_probes_for_ops): Likewise.
1937 * progspace.c (clone_program_space): Likewise.
1938 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1939 (maintenance_info_psymtabs): Likewise.
1940 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1941 (source_section_scripts): Likewise.
1942 * python/py-objfile.c (objfpy_get_filename): Likewise.
1943 * python/py-progspace.c (pspy_get_filename): Likewise.
1944 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1945 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1946 * solib.c (solib_read_symbols): Likewise.
1947 * stabsread.c (scan_file_globals): Likewise.
1948 * stap-probe.c (handle_stap_probe): Likewise.
1949 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1950 (find_separate_debug_file_by_debuglink): Likewise.
1951 (reread_symbols): Likewise. Use the objfile field name renamed to
1952 original_name.
1953 (allocate_symtab): Use objfile_name.
1954 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1955 (dump_objfile, dump_msymbols, dump_symtab_1)
1956 (maintenance_print_msymbols, maintenance_print_objfiles)
1957 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1958 * target.c (target_translate_tls_address, target_info): Likewise.
1959 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1960 objfile_name.
1961
1962 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1963
1964 Code cleanup.
1965 * probe.c (parse_probes): Rename variable objfile_name to
1966 objfile_namestr.
1967
1968 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1969
1970 Remove solib-sunos.c.
1971 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1972 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1973 * objfiles.c (rt_common_objfile): Remove.
1974 (free_objfile): Remove rt_common_objfile comparison.
1975 * objfiles.h (rt_common_objfile): Remove.
1976 * solib-sunos.c: Remove.
1977 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1978
1979 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1980
1981 Remove a.out NetBSD and OpenBSD hosts.
1982 * NEWS (Removed native configurations): New.
1983 * config/arm/nbsdaout.mh: Remove.
1984 * config/i386/nbsdaout.mh: Remove.
1985 * config/i386/obsdaout.mh: Remove.
1986 * config/m68k/nbsdaout.mh: Remove.
1987 * config/sparc/nbsdaout.mh: Remove.
1988 * config/vax/nbsdaout.mh: Remove.
1989 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1990 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1991 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1992 error.
1993 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1994 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1995 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1996
1997 2013-09-23 Tom Tromey <tromey@redhat.com>
1998
1999 * linespec.c (struct minsym_and_objfile): Remove.
2000 (minsym_and_objfile_d): Remove.
2001 (struct linespec, struct collect_info, linespec_parse_basic)
2002 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2003 (compare_msymbols, find_method, find_function_symbols)
2004 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2005 (add_minsym, search_minsyms_for_name): Update.
2006
2007 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2008
2009 * regcache.c: Add include of valprint.h.
2010 (dump_endian_bytes): Delete.
2011 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2012
2013 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2014
2015 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2016
2017 2013-09-19 Pedro Alves <palves@redhat.com>
2018
2019 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2020 breakpoints.
2021
2022 2013-09-19 Pedro Alves <palves@redhat.com>
2023 Thomas Schwinge <thomas@codesourcery.com>
2024 Yue Lu <hacklu.newborn@gmail.com>
2025
2026 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2027 Take a gdb_byte pointer instead of a char pointer.
2028
2029 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2030 gnu_xfer_partial helper.
2031 (gnu_xfer_partial): New function.
2032 (gnu_target): Don't install a deprecated_xfer_memory hook.
2033 Install a to_xfer_partial hook.
2034
2035 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2036
2037 Constification.
2038 * main.c (captured_main): Replace catch_command_errors by
2039 catch_command_errors_const. Twice.
2040 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2041 (symbol_file_add): Make name parameter const.
2042 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2043 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2044 variable name. Change their usage accordingly.
2045 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2046 const.
2047 (symbol_file_add_main): Make args parameter const.
2048
2049 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2050 Ulrich Weigand <uweigand@de.ibm.com>
2051
2052 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2053 of c_value member.
2054 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2055
2056 2013-09-18 Pedro Alves <palves@redhat.com>
2057 Yue Lu <hacklu.newborn@gmail.com>
2058
2059 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2060 (gnu_create_inferior)
2061 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2062 (set_sig_thread_cmd): Use the lwpid field of ptids to
2063 store/extract thread ids instead of the tid field.
2064 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2065
2066 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2067
2068 * infcmd.c (default_print_one_register_info): Add detection of
2069 optimized out values.
2070 (default_print_registers_info): Switch to using
2071 get_frame_register_value.
2072
2073 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2074
2075 * infrun.c (handle_inferior_event): Check if we know the
2076 function start address before setting a resume breakpoint.
2077
2078 2013-09-18 Pedro Alves <palves@redhat.com>
2079
2080 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2081 minus_one_ptid instead of looking at the ptid's tid field and
2082 comparing that to -1.
2083
2084 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2085
2086 * main.h (get_gdb_program_name): Remove extra whitespace.
2087
2088 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2089
2090 * main.h (get_gdb_program_name): Add declaration.
2091 * main.c (get_gdb_program_name): Add definition.
2092
2093 2013-09-17 Doug Evans <dje@google.com>
2094
2095 * dwarf2read.c: Move definitions of complaint functions to after
2096 forward declarations of local functions.
2097
2098 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2099 Pedro Alves <palves@redhat.com>
2100
2101 PR gdb/11568
2102 * breakpoint.c (remove_threaded_breakpoints): New function.
2103 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2104 as thread_exit observer.
2105
2106 2013-09-17 Pedro Alves <palves@redhat.com>
2107
2108 PR gdb/15911
2109 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2110 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2111 * corelow.c (core_open):
2112 * frame.h (print_stack_frame, print_frame_info): New
2113 'set_current_sal' parameter.
2114 * infcmd.c (finish_command, kill_command): Adjust call to
2115 print_stack_frame.
2116 * inferior.c (inferior_command): Likewise.
2117 * infrun.c (normal_stop): Likewise.
2118 * linux-fork.c (linux_fork_context): Likewise.
2119 * record-full.c (record_full_goto_entry, record_full_restore):
2120 Likewise.
2121 * remote-mips.c (common_open): Likewise.
2122 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2123 Use it.
2124 (print_frame_info): New 'set_current_sal' parameter. Set the last
2125 displayed sal depending on the new paremeter instead of looking at
2126 print_what.
2127 (backtrace_command_1, select_and_print_frame, frame_command)
2128 (current_frame_command, up_command, down_command): Adjust call to
2129 print_stack_frame.
2130 * thread.c (print_thread_info, restore_selected_frame)
2131 (do_captured_thread_select): Adjust call to print_stack_frame.
2132 * tracepoint.c (tfind_1): Likewise.
2133 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2134 (mi_cmd_stack_info_frame): Likewise.
2135 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2136 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2137
2138 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2139
2140 * value.c (isvoid_internal_fn): Replace "parameter" with
2141 "argument".
2142
2143 2013-09-16 Stan Shebs <stan@codesourcery.com>
2144
2145 * README: Update references to writing code for GDB.
2146 * configure.ac (build_warnings): Remove obsolete comment.
2147 * configure: Regenerate.
2148 * gdbarch.sh: Remove references to gdbint.texinfo.
2149 * gdbarch.h: Regenerate.
2150 * gdbtypes.c (objfile_type): Remove comments referencing internals
2151 manual and D10V.
2152
2153 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2154
2155 * NEWS: Mention new convenience function $_isvoid.
2156 * value.c (isvoid_internal_fn): New function.
2157 (_initialize_values): Add new convenience function $_isvoid.
2158
2159 2013-09-16 Pierre Muller <muller@sourceware.org>
2160
2161 * arm-linux-tdep.c: Add "elf/common.h" header.
2162 Remove AT_HWCAP macro definintion as it is provided in
2163 added include file.
2164 * s390-tdep.c: Remove system header <elf.h>
2165 Add "elf/common.h" header for AT_HWCAP definition.
2166 (s390_core_read_description): Use correct CORE_ADDR
2167 for hwcap local variable used as third parameter
2168 of function target_auxv_search.
2169
2170 2013-09-14 Pierre Muller <muller@sourceware.org>
2171 Tom Tromey <tromey@redhat.com>
2172 Pedro Alves <palves@redhat.com>
2173
2174 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2175 mode if operating system doesn't know O_CLOEXEC.
2176
2177 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2178
2179 Code cleanup.
2180 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2181 inner block.
2182
2183 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2184
2185 * NEWS: Mention TDB support.
2186 * features/s390-tdb.xml: New file.
2187 * features/s390-te-linux64.xml: New file.
2188 * features/s390x-te-linux64.xml: New file.
2189 * features/Makefile (WHICH): Add new tdescs above.
2190 (s390-te-linux64-expedite): Set.
2191 (s390x-te-linux64-expedite): Set.
2192 * features/s390-te-linux64.c: New file (generated).
2193 * features/s390x-te-linux64.c: New file (generated).
2194 * regformats/s390-te-linux64.dat: New file (generated).
2195 * regformats/s390x-te-linux64.dat: New file (generated).
2196 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2197 (HWCAP_S390_TE): Likewise.
2198 (S390_TDB_DWORD0_REGNUM): Likewise.
2199 (S390_TDB_DWORD0_REGNUM): Likewise.
2200 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2201 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2202 (S390_TDB_ATIA_REGNUM): Likewise.
2203 (S390_TDB_R0_REGNUM): Likewise.
2204 (S390_TDB_R1_REGNUM): Likewise.
2205 (S390_TDB_R2_REGNUM): Likewise.
2206 (S390_TDB_R3_REGNUM): Likewise.
2207 (S390_TDB_R4_REGNUM): Likewise.
2208 (S390_TDB_R5_REGNUM): Likewise.
2209 (S390_TDB_R6_REGNUM): Likewise.
2210 (S390_TDB_R7_REGNUM): Likewise.
2211 (S390_TDB_R8_REGNUM): Likewise.
2212 (S390_TDB_R9_REGNUM): Likewise.
2213 (S390_TDB_R10_REGNUM): Likewise.
2214 (S390_TDB_R11_REGNUM): Likewise.
2215 (S390_TDB_R12_REGNUM): Likewise.
2216 (S390_TDB_R13_REGNUM): Likewise.
2217 (S390_TDB_R14_REGNUM): Likewise.
2218 (S390_TDB_R15_REGNUM): Likewise.
2219 (S390_NUM_REGS): Increase.
2220 (S390_IS_TDBREGSET_REGNUM): New macro.
2221 (s390_regmap_tdb): Declare.
2222 (s390_sizeof_tdbregset): Define.
2223 (tdesc_s390_te_linux64): Declare.
2224 (tdesc_s390x_te_linux64): Likewise.
2225 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2226 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2227 (s390_regmap_tdb): New regmap.
2228 (s390_supply_tdb_regset): New function.
2229 (s390_tdb_regset): New regset.
2230 (s390_linux64v2_regset_sections): Add TDB regset to list.
2231 (s390x_linux64v2_regset_sections): Likewise.
2232 (s390_regset_from_core_section): Recognize TDB core note section.
2233 (s390_core_read_description): If HWCAP indicates TE support,
2234 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2235 (s390_gdbarch_init): Handle TDB regset.
2236 (_initialize_s390_tdep): Initialize new tdescs.
2237 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2238 (have_regset_tdb): New variable.
2239 (s390_native_supply): Support register invalidation.
2240 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2241 (check_regset): Treat ENODATA as "regset exists".
2242 (s390_linux_fetch_inferior_registers): Add TDB.
2243 (s390_read_description): Check for TDB existence and select
2244 appropriate tdesc.
2245 * gdbserver/Makefile.in (clean): Add removal of new makefile
2246 targets.
2247 (s390-te-linux64.c): New makefile target.
2248 (s390x-te-linux64.c): Likewise.
2249 * gdbserver/configure.srv (srv_regobj): Append new objects
2250 s390-te-linux64.o and s390x-te-linux64.o.
2251 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2252 s390x-te-linux64.xml, and s390-tdb.xml.
2253 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2254 declaration.
2255 (tdesc_s390_te_linux64): Likewise.
2256 (init_registers_s390x_te_linux64): Likewise.
2257 (tdesc_s390x_te_linux64): Likewise.
2258 (s390_check_regset): Treat ENODATA as "regset exists".
2259 (s390_arch_setup): Add TDB regset support.
2260 (initialize_low_arch): Initialize registers for new tdescs.
2261
2262 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2263
2264 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2265 (S390_IS_FPREGSET_REGNUM): New macro.
2266 * s390-tdep.c (s390_dwarf_regmap): Make const.
2267 (regnum_is_gpr_full): New function for replacing repeated code.
2268 (s390_pseudo_register_name): Use it.
2269 (s390_pseudo_register_type): Likewise.
2270 (s390_pseudo_register_read): Likewise.
2271 (s390_pseudo_register_write): Likewise.
2272 (s390_unwind_pseudo_register): Likewise.
2273 (s390_regmap_gregset): New format for regmap.
2274 (s390x_regmap_gregset): Likewise.
2275 (s390_regmap_fpregset): Likewise.
2276 (s390_regmap_upper): Likewise.
2277 (s390_regmap_last_break): Likewise.
2278 (s390_regmap_system_call): Likewise.
2279 (s390_supply_regset): Adjust to new regmap format.
2280 (s390_collect_regset): Likewise.
2281 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2282 (s390_native_collect): Likewise.
2283 (supply_gregset): Likewise.
2284 (fill_gregset): Likewise.
2285 (supply_fpregset): Likewise.
2286 (fill_fpregset): Likewise.
2287 (fetch_regset): Likewise.
2288 (store_regset): Likewise.
2289 (s390_linux_fetch_inferior_registers): Likewise.
2290 (s390_linux_fetch_inferior_registers): Likewise.
2291
2292 2013-09-12 Andrew Pinski <apinski@cavium.com>
2293
2294 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2295
2296 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2297
2298 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2299
2300 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2301
2302 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2303
2304 2013-09-06 Pedro Alves <palves@redhat.com>
2305
2306 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2307 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2308 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2309 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2310 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2311 gdb_stdlog.
2312
2313 2013-09-06 Pedro Alves <palves@redhat.com>
2314
2315 * remote-sim.c (dump_mem): Constify buf parameter.
2316 gdbsim_xfer_inferior_memory): Rename to ...
2317 (gdbsim_xfer_memory): ... this. Adjust interface as
2318 target_xfer_partial helper.
2319 (gdbsim_xfer_partial): New function.
2320 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2321 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2322
2323 2013-09-06 Pedro Alves <palves@redhat.com>
2324
2325 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2326 host_address_to_string, and send debug output to gdb_stdlog.
2327
2328 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2329
2330 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2331 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2332 gdb_target_obs for cris target.
2333 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2334 (cris_gdbarch_init): Move calls to
2335 set_gdbarch_fetch_tls_load_module_address and
2336 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2337 Add call to gdbarch_init_osabi.
2338 * cris-linux-tdep.c: New file.
2339 * cris-tdep.h: New file.
2340
2341 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2342
2343 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2344 to deprecated_init_ui_hook.
2345
2346 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2347
2348 * cli/cli-interp.c (_initialize_cli_interp): Add a
2349 command_loop_proc to interp_procs.
2350 * event-top.c (cli_command_loop): Change signature to match
2351 interp_command_loop_ftype.
2352 * event-top.h (cli_command_loop): Same.
2353 * interps.c (interp_new): Require every interpreter to have a
2354 command_loop_proc.
2355 (current_interp_command_loop): Just call the command_loop_proc on
2356 the current interpreter.
2357 * tui/tui-interp.c (_initialize_tui_interp): Add a
2358 command_loop_proc to interp_procs.
2359
2360 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2361
2362 * cris-tdep.c (cris_gdbarch_init): Add call to
2363 get_gdbarch_fetch_tls_load_module_address.
2364
2365 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2366
2367 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2368 (cris_elf_gregset_t): Rename from elf_gregset_t.
2369 (crisv32_elf_gregset_t): Adjust.
2370 (cris_supply_gregset, fetch_core_registers): Adjust.
2371
2372 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2373
2374 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2375
2376 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
2377
2378 * defs.h (deprecated_command_loop_hook): Remove, including
2379 references in comments.
2380 * interps.c (current_interp_command_loop): No longer use
2381 deprecated_command_loop_hook.
2382 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2383 setup.
2384 * top.c (deprecated_command_loop_hook): Remove.
2385
2386 2013-09-05 Pedro Alves <palves@redhat.com>
2387
2388 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2389 local is now int instead of ULONGEST. Print it with %d
2390 instead of paddress.
2391
2392 2013-09-05 Tristan Gingold <gingold@adacore.com>
2393
2394 * MAINTAINERS: Remove avr maintainership.
2395
2396 2013-09-05 Pedro Alves <palves@redhat.com>
2397
2398 * findvar.c (value_of_register): Rework in terms of
2399 value_of_register_lazy.
2400
2401 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2402
2403 * symfile.c (add_symbol_file_command): Remove trailing
2404 whitespaces and blank line after comment.
2405
2406 2013-09-05 Pedro Alves <palves@redhat.com>
2407
2408 * tui/tui-regs.c (tui_register_format): Don't look at the
2409 register's name here. Return string representing register
2410 value instead of storing it in the data element.
2411 (tui_get_register): Compare register string representations
2412 instead of register value states and contents.
2413
2414 2013-09-05 Pedro Alves <palves@redhat.com>
2415
2416 PR tui/15933
2417 * tui/tui-regs.c (tui_show_registers): Show registers of the
2418 selected frame, not the current frame.
2419
2420 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2421
2422 * MAINTAINERS (Write After Approval): Add myself to the list.
2423
2424 2013-09-04 Doug Evans <dje@google.com>
2425
2426 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2427 (queue_and_load_dwo_tu): New function.
2428 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2429 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2430 Make dependent_cu optional.
2431 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2432 and an older .gdb_index is in use, queue and load all its TUs too.
2433
2434 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2435
2436 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2437 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2438 variable search_flags.
2439 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2440 (OPF_RETURN_REALPATH): ... here.
2441 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2442 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2443 call. Twice.
2444 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2445 openp call.
2446 * solib.c (solib_find): Likewise. Four times.
2447 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2448 in the function comment and for the realpath_fptr variable.
2449 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2450 (find_and_open_source): Likewise. Twice.
2451 * symfile.c (symfile_bfd_open): Likewise, also twice.
2452
2453 2013-09-04 Doug Evans <dje@google.com>
2454
2455 * progspace.c (save_current_space_and_thread): Remove unnecessary
2456 call to save_current_inferior.
2457
2458 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2459
2460 * sh64-tdep.c (sh64_do_register): Return after printing message
2461 about unavailable register contents.
2462
2463 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2464 Pedro Alves <palves@redhat.com>
2465
2466 * symfile.c (add_symbol_file_command): Error out on unknown
2467 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2468 options and collapse into single conditional branch.
2469
2470 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2471
2472 * inf-child.c (inf_child_follow_fork): New parameter
2473 detach_fork.
2474 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2475 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2476 * inferior.h (detach_fork): Remove.
2477 * infrun.c (detach_fork): Adjust comment and make it
2478 static.
2479 (follow_fork): Pass detach_fork parameter to
2480 target_follow_fork.
2481 * linux-nat.c (linux_child_follow_fork): New parameter
2482 detach_fork.
2483 * target.c (target_follow_fork): New parameter detach_fork.
2484 Pass detach_fork as parameter and print its value.
2485 * target.h (struct target_ops) <to_follow_fork>: New int
2486 parameter.
2487 (target_follow_fork): New parameter detach_fork.
2488
2489 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2490
2491 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2492 Replace sec->bfd by sec->the_bfd_section->owner.
2493
2494 2013-09-03 Yao Qi <yao@codesourcery.com>
2495
2496 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2497 from linux_has_shared_address_space.
2498 (linux_has_shared_address_space): Call linux_is_uclinux.
2499 * linux-tdep.h (linux_is_uclinux): Declare.
2500 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2501 linux_is_uclinux.
2502
2503 2013-09-03 Yao Qi <yao@codesourcery.com>
2504
2505 * config/djgpp/fnchange.lst: Remove entry of
2506 i386-interix-nat.c and i386-interix-tdep.c.
2507 * configure.ac: Remove '*-*-interix*'.
2508 * configure: Re-generated.
2509 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2510 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2511 obsolete comments.
2512 * osabi.c (gdb_osabi_names): Remove "Interix".
2513
2514 2013-09-03 Yao Qi <yao@codesourcery.com>
2515
2516 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2517
2518 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2519
2520 * record.h (record_print_flag) <record_print_src_line,
2521 record_print_insn_range>: Rename into ...
2522 (record_print_flag) <record_print_src_line,
2523 record_print_insn_range>: ... this. Update all users.
2524
2525 2013-09-02 Pierre Muller <muller@sourceware.org>
2526
2527 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2528 error code.
2529
2530 2013-09-02 Pierre Muller <muller@sourceware.org>
2531
2532 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2533 by use of plongest function.
2534
2535 2013-09-02 Tristan Gingold <gingold@adacore.com>
2536
2537 * NEWS: Add entry mentioning support for native Windows x64
2538 SEH data.
2539
2540 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2541 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2542 (struct amd64_windows_frame_cache): New struct.
2543 (amd64_windows_w2gdb_regnum): New global.
2544 (pc_in_range, amd64_windows_frame_decode_epilogue)
2545 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2546 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2547 (amd64_windows_frame_this_id): New functions.
2548 (amd64_windows_frame_unwind): New static global.
2549 (amd64_windows_skip_prologue): New function.
2550 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2551 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2552 with amd64_windows_skip_prologue.
2553
2554 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2555
2556 GDB 7.6.1 released.
2557
2558 2013-08-30 Pedro Alves <palves@redhat.com>
2559
2560 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2561 SRC_AND_LOC.
2562
2563 2013-08-30 Pedro Alves <palves@redhat.com>
2564
2565 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2566 warning text.
2567
2568 2013-08-30 Pedro Alves <palves@redhat.com>
2569
2570 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2571 Adjust arguments to print_stack_frame.
2572
2573 2013-08-30 Pedro Alves <palves@redhat.com>
2574
2575 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2576
2577 2013-08-30 Pedro Alves <palves@redhat.com>
2578
2579 * frame.h (show_and_print_stack_frame): Delete declaration.
2580
2581 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2582
2583 PR python/15461
2584 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2585 (archpy_name): Check for valid architecture.
2586 (archpy_disassemble): Ditto.
2587
2588 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2589
2590 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2591 instead of "long long" in call to ptrace64.
2592
2593 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2594
2595 * mi/mi-interp.c (mi_command_loop): Change signature to match
2596 interp_command_loop_ftype.
2597 (mi1_command_loop): Remove.
2598 (mi2_command_loop): Remove.
2599 (mi3_command_loop): Remove.
2600 (mi_interpreter_resume): Remove setting of
2601 deprecated_command_loop_hook.
2602 (_initialize_mi_interp): Set mi_command_loop as the command loop
2603 callback.
2604
2605 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2606
2607 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2608 value_type.
2609
2610 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2611
2612 * value.c (allocate_value_contents): Make static.
2613 * value.h (allocate_value_contents): Remove prototype.
2614
2615 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2616
2617 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2618 of assembling value via allocate_value_lazy and attribute setter.
2619 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2620 assembling value via allocate_value_lazy and attribute setter.
2621 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2622 assembling value via allocate_value_lazy and attribute setter.
2623
2624 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2625
2626 * value.c (value_from_contents_and_address): Replace allocate_value and
2627 memcpy with value_from_contents.
2628
2629 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2630
2631 * python/py-framefilter.c (py_print_frame): Remove usage of
2632 PyString_AsString. Use python_string_to_host_string instead.
2633 Refactor function to work with a string as a new allocation
2634 instead of a pointer.
2635 (py_print_frame): Ditto.
2636 * python/lib/gdb/frames.py (return_list): Cain iterators together
2637 instead of adding them as a list.
2638 (_sort_list): Call return_list, and remove duplicate code.
2639 (execute_frame_filters): Convert iterator to a list with list().
2640 * python/lib/gdb/command/frame_filters.py
2641 (SetFrameFilterPriority._set_filter_priority): Convert priority
2642 attribute to an integer.
2643 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2644 wrapper function __next__.
2645 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2646 define as "str".
2647
2648 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2649
2650 PR python/15752
2651 * python/py-framefilter.c (apply_frame_filter): Check
2652 gdb_python_initialized. Exit if the Python frame-filter code
2653 cannot be initialized.
2654
2655 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2656
2657 PR cli/15842
2658 * top.c (print_gdb_version): Remove erroneous newline after help
2659 text.
2660
2661 2013-08-29 Yao Qi <yao@codesourcery.com>
2662
2663 * varobj.c (install_dynamic_child): Remove trailing space.
2664 Add one blank line after variable declaration.
2665
2666 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2667
2668 PR gdb/15415
2669 * corefile.c (get_exec_file): Use exec_filename.
2670 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2671 * exec.c (exec_close): Free EXEC_FILENAME.
2672 (exec_file_attach): New variable canonical_pathname. Use
2673 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2674 EXEC_FILENAME.
2675 * exec.h (exec_filename): New.
2676 * inferior.c (print_inferior, inferior_command): Use
2677 PSPACE_EXEC_FILENAME.
2678 * mi/mi-main.c (print_one_inferior): Likewise.
2679 * progspace.c (clone_program_space, print_program_space): Likewise.
2680 * progspace.h (struct program_space): New field pspace_exec_filename.
2681 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2682 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2683
2684 2013-08-28 Will Newton <will.newton@linaro.org>
2685
2686 * common/linux-ptrace.c: Include stdint.h unconditionally.
2687
2688 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2689
2690 Code cleanup.
2691 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2692
2693 2013-08-28 Yao Qi <yao@codesourcery.com>
2694 Pedro Alves <palves@redhat.com>
2695
2696 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2697 instead of stdio_fileopen.
2698 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2699 .Call stderr_fileopen instead of stdio_fileopen.
2700 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2701 [__MINGW32__] (stderr_file_fputs): New function.
2702 (stderr_fileopen): New function.
2703 * ui-file.h (stderr_fileopen): Declare.
2704
2705 2013-08-27 Doug Evans <dje@google.com>
2706
2707 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2708 (struct dwarf2_per_cu_data): Ditto.
2709 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2710 (process_imported_unit_die): Ditto.
2711 (follow_die_sig_1): Simplify assert.
2712
2713 2013-08-27 Pedro Alves <palves@redhat.com>
2714
2715 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2716 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2717 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2718 windows_xfer_memory directly.
2719 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2720
2721 2013-08-27 Pedro Alves <palves@redhat.com>
2722
2723 * darwin-nat.c (darwin_xfer_memory): Delete.
2724 (_initialize_darwin_inferior): Don't install a
2725 deprecated_xfer_memory method.
2726
2727 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2728 Yao Qi <yao@codesourcery.com>
2729
2730 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2731 (parse_no_frames_option): Remove.
2732 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2733 (mi_cmd_stack_list_args): Adjust.
2734 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2735 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2736 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2737 Caller update.
2738 (list_args_or_locals): New parameter 'skip_unavailable'.
2739 Handle it.
2740 * valprint.c (scalar_type_p): Rename to ...
2741 (val_print_scalar_type_p): ... this. Make extern.
2742 (val_print, value_check_printable): Adjust.
2743 * valprint.h (val_print_scalar_type_p): Declare.
2744 * value.c (value_entirely_unavailable): New function.
2745 * value.h (value_entirely_unavailable): Declare.
2746
2747 * NEWS: Mention the new option "--skip-unavailable" to MI
2748 commands '-stack-list-locals', '-stack-list-arguments' and
2749 '-stack-list-variables'.
2750
2751 2013-08-27 Yao Qi <yao@codesourcery.com>
2752
2753 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2754 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2755 options.
2756 * mi/mi-getopt.c (mi_getopt): Remove.
2757 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2758 'error_on_unknown'.
2759 (mi_getopt): Call mi_getopt_1.
2760 (mi_getopt_silent): New.
2761 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2762
2763 2013-08-26 Doug Evans <dje@google.com>
2764
2765 PR symtab/15885
2766 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2767 .gdb_index is in use.
2768 * symfile.c (reread_symbols): Reset objfile->sf.
2769
2770 * NEWS: Document "mt print objfiles" now takes optional regexp.
2771 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2772 regexp of objfiles to print.
2773 (_initialize_symmisc): Update doc string for "mt print objfiles".
2774
2775 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2776 missing debug info checks.
2777
2778 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2779 Ulrich Weigand <uweigand@de.ibm.com>
2780
2781 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2782 line tables generated by XLC compiled binaries.
2783
2784 2013-08-23 Doug Evans <dje@google.com>
2785
2786 * symmisc.c (dump_symtab): Delete prototype.
2787 (dump_msymbols, dump_objfile): Ditto.
2788 (maintenance_info_symtabs): Mark as dont_repeat.
2789 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2790
2791 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2792 debugging printf to better location.
2793
2794 2013-08-23 Pedro Alves <palves@redhat.com>
2795
2796 * target.c (target_read_live_memory): Change type of 'ret' local
2797 to LONGEST.
2798
2799 2013-08-23 Pedro Alves <palves@redhat.com>
2800
2801 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2802 (remote_read_bytes): Change return type to LONGEST, and adjust to
2803 return a target_xfer_error on error.
2804 (remote_xfer_memory): Delete.
2805 (remote_flash_write): Change type of 'ret' local to LONGEST.
2806 (remote_xfer_partial, remote_xfer_partial): Adjust.
2807 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2808
2809 2013-08-23 Pierre Muller <muller@sourceware.org>
2810
2811 ARI fix: Push # directives to start of line.
2812 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2813
2814 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2815
2816 PR gdb/15501
2817 * breakpoint.c (enable_command, disable_command): Iterate over
2818 all specified breakpoint locations.
2819
2820 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2821
2822 * common/linux-ptrace.c (linux_fork_to_function): Push #
2823 directives to the start of the line.
2824 (linux_check_ptrace_features): Fix warning message to use
2825 the "_" markup.
2826
2827 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2828
2829 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2830 nat/linux-waitpid.h.
2831 (linux-waitpid.o): New object file rule.
2832 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2833 (current_ptrace_options): Moved from linux-nat.c.
2834 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2835 parameters.
2836 (linux_fork_to_function): New function.
2837 (linux_grandchild_function): Likewise.
2838 (linux_child_function): Likewise.
2839 (linux_check_ptrace_features): New function, heavily
2840 based on linux-nat.c:linux_test_for_tracefork.
2841 (linux_enable_event_reporting): New function.
2842 (ptrace_supports_feature): Likewise.
2843 (linux_supports_tracefork): Likewise.
2844 (linux_supports_traceclone): Likewise.
2845 (linux_supports_tracevforkdone): Likewise.
2846 (linux_supports_tracesysgood): Likewise.
2847 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2848 gdbserver/linux-low.c.
2849 (linux_enable_event_reporting): New declaration.
2850 (linux_supports_tracefork): Likewise.
2851 (linux_supports_traceclone): Likewise.
2852 (linux_supports_tracevforkdone): Likewise.
2853 (linux_supports_tracesysgood): Likewise.
2854 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2855 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2856 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2857 * config/arm/linux.mh (NATDEPFILES): Likewise.
2858 * config/i386/linux.mh (NATDEPFILES): Likewise.
2859 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2860 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2861 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2862 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2863 * config/mips/linux.mh (NATDEPFILES): Likewise.
2864 * config/pa/linux.mh (NATDEPFILES): Likewise..
2865 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2866 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2867 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2868 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2869 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2870 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2871 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2872 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2873 ptrace's 4th argument's types.
2874 Check the type of PTRACE_TYPE_ARG4.
2875 * configure: Regenerate.
2876 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2877 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2878 (linux_supports_tracefork_flag): Remove.
2879 (linux_supports_tracesysgood_flag): Likewise.
2880 (linux_supports_tracevforkdone_flag): Likewise.
2881 (current_ptrace_options): Moved to
2882 common/linux-ptrace.c.
2883 (linux_tracefork_child): Remove.
2884 (my_waitpid): Remove.
2885 (linux_test_for_tracefork): Renamed to
2886 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2887 (linux_test_for_tracesysgood): Remove.
2888 (linux_supports_tracesysgood): Remove.
2889 (linux_supports_tracefork): Remove.
2890 (linux_supports_tracevforkdone): Remove.
2891 (linux_enable_tracesysgood): Remove.
2892 (linux_enable_event_reporting): Remove.
2893 (linux_init_ptrace): New function.
2894 (linux_child_post_attach): Call linux_init_ptrace.
2895 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2896 (linux_child_follow_fork): Call linux_supports_tracefork
2897 and linux_supports_tracevforkdone.
2898 (linux_child_insert_fork_catchpoint): Call
2899 linux_supports_tracefork.
2900 (linux_child_insert_vfork_catchpoint): Likewise.
2901 (linux_child_set_syscall_catchpoint): Call
2902 linux_supports_tracesysgood.
2903 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2904 * nat/linux-nat.h: New file.
2905 * nat/linux-waitpid.c: New file.
2906 * nat/linux-waitpid.h: New file.
2907
2908 2013-08-22 Samuel Bronson <naesten@gmail.com>
2909
2910 ARM Linux support for `catch syscall'.
2911 * syscalls/arm-linux.py: New file.
2912 * syscalls/arm-linux.xml: Likewise.
2913 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2914 (arm_linux_init_abi): Register the new function and syscall xml file.
2915 * data-directory/Makefile.in: Install the new syscall xml file.
2916 * NEWS: Brag about this.
2917
2918 2013-08-22 Pedro Alves <palves@redhat.com>
2919
2920 PR gdb/15871
2921 * corefile.c (target_xfer_memory_error): New function.
2922 (memory_error): Defer EIO to target_memory_error.
2923 (read_memory): Use target_xfer_partial, and handle finer-grained
2924 target xfer errors.
2925 * target.c (target_xfer_error_to_string): New function.
2926 (memory_xfer_partial_1): If memory is known to be
2927 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2928 (target_xfer_partial): Make extern.
2929 * target.h (enum target_xfer_error): New enum.
2930 (target_xfer_error_to_string): Declare function.
2931 (target_xfer_partial): Declare function.
2932 (struct target_ops) <xfer_partial>: Adjust describing comment.
2933
2934 2013-08-22 Alan Modra <amodra@gmail.com>
2935
2936 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2937 * configure.tgt: Likewise as targets.
2938
2939 2013-08-20 Doug Evans <dje@google.com>
2940
2941 * buildsym.c (subfile_stack): Move here from buildsym.h.
2942 (pending_macros): Ditto.
2943 (get_macro_table): New function.
2944 (buildsym_init): Initialize subfile_stack.
2945 * coffread.c (type_vector,type_vector_length): Moved here from
2946 buildsym.h.
2947 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2948 (coff_symtab_read): Use it.
2949 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2950 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2951 with call to get_macro_table.
2952 * stabsread.c (type_vector,type_vector_length): Moved here from
2953 buildsym.h.
2954 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2955 * buildsym.h (get_macro_table): Declare.
2956
2957 2013-08-20 Tom Tromey <tromey@redhat.com>
2958
2959 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2960 Update.
2961 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2962
2963 2013-08-20 Doug Evans <dje@google.com>
2964
2965 * blockframe.c: Remove #include "psymtab.h".
2966 * cp-support.c: Ditto.
2967 * source.c: Ditto.
2968 * stack.c: Ditto.
2969
2970 2013-08-20 Tom Tromey <tromey@redhat.com>
2971
2972 PR python/15816:
2973 * exceptions.h (return_mask): Now an enum.
2974 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2975 enum constants.
2976
2977 2013-08-20 Tom Tromey <tromey@redhat.com>
2978
2979 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2980 get_objfile_arch.
2981 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2982 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2983 * jit.c (jit_object_close_impl): Update.
2984 * jv-lang.c (get_dynamics_objfile): Update.
2985 * linespec.c (add_minsym): Use get_dynamics_objfile.
2986 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2987 (allocate_objfile): Don't initialize 'gdbarch' field.
2988 (get_objfile_arch): Update.
2989 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2990 moved from...
2991 (struct objfile) <gdbarch>: ... here. Remove.
2992 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2993 get_objfile_arch.
2994 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2995
2996 2013-08-20 Alan Modra <amodra@gmail.com>
2997
2998 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2999 for IBM long double nan and inf.
3000 (floatformat_is_negative, floatformat_classify,
3001 floatformat_mantissa): Similarly.
3002 (floatformat_ieee_single, floatformat_ieee_double,
3003 floatformat_ieee_quad, floatformat_arm_ext,
3004 floatformat_ia64_spill): Delete unused vars.
3005 (_initialize_doublest): Delete unused function.
3006 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3007 little-endian variants of floatformat_ibm_long_double.
3008
3009 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3010
3011 * Makefile.in (SFILES): Remove common/target-common.c and
3012 add target/waitstatus.c.
3013 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3014 target/resume.h, target/wait.h and target/waitstatus.h.
3015 (COMMON_OBS): Remove target-common.o and add
3016 waitstatus.o.
3017 (target-common.o): Remove.
3018 (waitstatus.o): New target object file.
3019 * common/target-common.c: Move contents to
3020 target/waitstatus.c and remove.
3021 * common/target-common.h: Move contents to other files and
3022 remove.
3023 (enum resume_kind: Move to target/resume.h.
3024 (TARGET_WNOHANG): Move to target/wait.h.
3025 (enum target_waitkind): Move to target/waitstatus.h.
3026 (struct target_waitstatus): Likewise.
3027 * target.h: Do not include target-common.h and
3028 include target/resume.h, target/wait.h and
3029 target/waitstatus.h.
3030 * target/resume.h: New file.
3031 * target/wait.h: New file.
3032 * target/waitstatus.h: New file.
3033 * target/waitstatus.c: New file.
3034
3035 2013-08-19 Pedro Alves <palves@redhat.com>
3036
3037 * linux-nat.c (linux_test_for_tracefork)
3038 (linux_test_for_tracesysgood, linux_child_follow_fork)
3039 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3040 (linux_nat_wait_1): Extend comment.
3041 (linux_async_pipe): Add comment.
3042
3043 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3044
3045 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3046 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3047 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3048 Update to account for fact that PC is now a pseudo-register.
3049 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3050 cases for RL78_PC_REGNUM.
3051
3052 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3053
3054 PR cli/15841
3055 * top.c (quit_force): Skip writing history file
3056 if input is not from terminal.
3057
3058 2013-08-14 Tom Tromey <tromey@redhat.com>
3059
3060 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3061 resultthreadlist>: New fields.
3062 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3063 (remote_get_threadlist, remote_threadlist_iterator): Use
3064 new fields. Remove static variables.
3065
3066 2013-08-14 Tom Tromey <tromey@redhat.com>
3067
3068 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3069 remote_watch_data_address>: New fields.
3070 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3071 (process_stop_reply, remote_wait_as)
3072 (remote_check_watch_resources, remote_stopped_data_address): Update.
3073
3074 2013-08-14 Tom Tromey <tromey@redhat.com>
3075
3076 * remote.c (struct remote_state) <async_client_callback,
3077 async_client_context>: New fields.
3078 (async_client_callback, async_client_context): Remove.
3079 (remote_async_serial_handler, remote_async): Update.
3080
3081 2013-08-14 Tom Tromey <tromey@redhat.com>
3082
3083 * remote.c (sizeof_pkt): Remove.
3084 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3085
3086 2013-08-14 Tom Tromey <tromey@redhat.com>
3087
3088 * remote.c (struct remote_state) <use_threadinfo_query,
3089 use_threadextra_query>: New fields.
3090 (remote_threads_info, remote_threads_extra_info)
3091 (remote_open_1): Update.
3092
3093 2013-08-14 Tom Tromey <tromey@redhat.com>
3094
3095 * remote.c (struct remote_state) <finished_object,
3096 finished_annex, finished_offset>: New fields.
3097 (remote_read_qxfer): Use remote_state fields; remove static
3098 variables.
3099
3100 2013-08-14 Tom Tromey <tromey@redhat.com>
3101
3102 * remote.c (struct remote_state) <last_sent_step>:
3103 New field.
3104 (last_sent_step): Remove.
3105 (remote_resume, remote_wait_as): Update.
3106
3107 2013-08-14 Tom Tromey <tromey@redhat.com>
3108
3109 * remote.c (struct remote_state) <last_sent_signal>:
3110 New field.
3111 (last_sent_signal): Remove.
3112 (new_remote_state, remote_resume, remote_wait_as): Update.
3113
3114 2013-08-14 Tom Tromey <tromey@redhat.com>
3115
3116 * remote.c (struct remote_state) <last_program_signals_packet>:
3117 New field.
3118 (last_program_signals_packet): Remove.
3119 (remote_program_signals, remote_open_1): Update.
3120
3121 2013-08-14 Tom Tromey <tromey@redhat.com>
3122
3123 * remote.c (struct remote_state) <last_pass_packet>:
3124 New field.
3125 (last_pass_packet): Remove.
3126 (remote_pass_signals, remote_open_1): Update.
3127
3128 2013-08-14 Tom Tromey <tromey@redhat.com>
3129
3130 * remote.c (struct remote_state) <remote_traceframe_number>:
3131 New field.
3132 (remote_traceframe_number): Remove.
3133 (new_remote_state, remote_open_1, set_remote_traceframe)
3134 (remote_trace_find): Update.
3135
3136 2013-08-14 Tom Tromey <tromey@redhat.com>
3137
3138 * remote.c (struct remote_state) <general_thread, continue_thread>:
3139 New fields.
3140 (general_thread, continue_thread): Remove.
3141 (record_currthread, set_thread, set_general_process)
3142 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3143 (extended_remote_mourn_1): Update.
3144
3145 2013-08-14 Tom Tromey <tromey@redhat.com>
3146
3147 * remote.c (struct remote_state) <remote_desc>: New field.
3148 (remote_desc): Remove.
3149 (remote_threads_info, remote_threads_extra_info, remote_close)
3150 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3151 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3152 (remote_hostio_send_command, remote_file_put, remote_file_get)
3153 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3154 (remote_async, remote_new_objfile, set_range_stepping): Update.
3155
3156 2013-08-14 Tom Tromey <tromey@redhat.com>
3157
3158 * remote.c (remote_state): Now a pointer.
3159 (get_remote_state_raw): Update.
3160 (new_remote_state): New function.
3161 (_initialize_remote): Use new_remote_state.
3162
3163 2013-08-14 Tom Tromey <tromey@redhat.com>
3164
3165 * remote.c (remote_protocol_features): Now const.
3166
3167 2013-08-14 Tom Tromey <tromey@redhat.com>
3168
3169 * remote.c (crc32_table, crc32): Remove.
3170 (remote_verify_memory): Use xcrc32.
3171
3172 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3173
3174 * value.h (create_internalvar_type_lazy): Adjust prototype
3175 declaration.
3176
3177 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3178
3179 * common/format.c (parse_format_string): Don't allow '#' flag for
3180 pointer arguments in format string.
3181
3182 2013-08-13 Pierre Muller <muller@sourceware.org>
3183
3184 * utils.c (init_page_info): Only call tgetnum function
3185 if rl_get_screen_size did not return useful values.
3186
3187 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3188
3189 PR breakpoints/15117
3190 * linespec.c (linespec_parse_basic): Check for convenience
3191 variable or history value while parsing.
3192
3193 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3194
3195 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3196 AVR.
3197 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3198 different signals between the generic Linux kernel implementation
3199 and AVR's.
3200 (avr_linux_gdb_signal_from_target): Delete.
3201 (avr_linux_gdb_signal_to_target): Delete.
3202 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3203
3204 2013-08-09 Doug Evans <dje@google.com>
3205
3206 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3207 entries.
3208
3209 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3210
3211 * linux-tdep.c: Define enum with generic signal numbers.
3212 (linux_gdb_signal_from_target): New function.
3213 (linux_gdb_signal_to_target): Likewise.
3214 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3215 methods to the functions above.
3216 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3217 (linux_gdb_signal_to_target): Likewise.
3218 * alpha-linux-tdep.c: Define new enum with signals different
3219 from generic Linux kernel.
3220 (alpha_linux_gdb_signal_from_target): New function.
3221 (alpha_linux_gdb_signal_to_target): Likewise.
3222 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3223 with the functions mentioned above.
3224 * avr-tdep.c: Define enum with differences between Linux kernel
3225 and AVR signals.
3226 (avr_linux_gdb_signal_from_target): New function.
3227 (avr_linux_gdb_signal_to_target): Likewise.
3228 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3229 the functions mentioned above.
3230 * sparc-linux-tdep.c: Define enum with differences between SPARC
3231 and generic Linux kernel signal numbers.
3232 (sparc32_linux_gdb_signal_from_target): New function.
3233 (sparc32_linux_gdb_signal_to_target): Likewise.
3234 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3235 to the functions defined above.
3236 * xtensa-linux-tdep.c: Define enum with differences between
3237 Xtensa and Linux kernel generic signals.
3238 (xtensa_linux_gdb_signal_from_target): New function.
3239 (xtensa_linux_gdb_signal_to_target): Likewise.
3240 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3241 to the functions defined above.
3242 * mips-linux-tdep.c: Define enum with differences between
3243 signals in MIPS and Linux kernel generic ones.
3244 (mips_gdb_signal_to_target): New function.
3245 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3246 only different signals from the Linux kernel generic.
3247 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3248 the functions defined above.
3249 * mips-linux-tdep.h (enum mips_signals): Remove.
3250
3251 2013-08-09 Pedro Alves <palves@redhat.com>
3252
3253 * avr-tdep.c (XMALLOC): Delete macro.
3254 * cli/cli-dump.c (XMALLOC): Delete macro.
3255
3256 2013-08-09 Pedro Alves <palves@redhat.com>
3257
3258 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3259 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3260 (fopen_with_cleanup, add_dump_command): Make static.
3261 * cli/cli-dump.h: Delete file.
3262 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3263 cli/cli-dump.h.
3264
3265 2013-08-09 Pedro Alves <palves@redhat.com>
3266
3267 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3268 error message.
3269
3270 2013-08-09 Pedro Alves <palves@redhat.com>
3271
3272 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3273 error message.
3274
3275 2013-08-09 Pedro Alves <palves@redhat.com>
3276
3277 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3278 (gcore_command): Use tilde_expand here, and when showing the
3279 filename to the user, show the expanded version.
3280
3281 2013-08-09 Yao Qi <yao@codesourcery.com>
3282
3283 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3284 'entryval' is set.
3285
3286 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3287
3288 * gcore.c (create_gcore_bfd): Use tilde_expand.
3289
3290 2013-08-08 Yao Qi <yao@codesourcery.com>
3291
3292 * frame.h (read_frame_local): Declare.
3293 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3294 read_frame_local.
3295 * stack.c (read_frame_local): New.
3296
3297 2013-08-08 Yao Qi <yao@codesourcery.com>
3298
3299 * mi/mi-cmd-stack.c: Update comments to function
3300 list_args_or_locals.
3301
3302 2013-08-07 Tom Tromey <tromey@redhat.com>
3303
3304 PR symtab/15028:
3305 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3306 (process_psymtab_comp_unit_reader): Use it.
3307 (process_psymtab_comp_unit): Update. Add "pretend_language"
3308 argument.
3309 (dwarf2_build_psymtabs_hard): Update.
3310 (scan_partial_symbols): Pass CU's language to
3311 process_psymtab_comp_unit.
3312
3313 2013-08-07 Tom Tromey <tromey@redhat.com>
3314
3315 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3316 (dwarf2_gdb_index_functions): Update.
3317 * psymtab.c (find_symbol_file_from_partial): Remove.
3318 (psym_functions): Update.
3319 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3320 Remove.
3321
3322 2013-08-07 Tom Tromey <tromey@redhat.com>
3323
3324 * symfile.c (set_initial_language): Look up "main" symbol
3325 and use its language.
3326 * symtab.c (find_main_filename): Remove.
3327 * symtab.h (find_main_filename): Remove.
3328
3329 2013-08-07 Tom Tromey <tromey@redhat.com>
3330
3331 * dwarf2read.c (recursively_compute_inclusions): Add
3332 "immediate_parent" argument. Set symtab's "user" field
3333 if not set.
3334 (compute_symtab_includes): Update.
3335
3336 2013-08-07 Tom Tromey <tromey@redhat.com>
3337
3338 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3339 when adding label symbols.
3340
3341 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3342 Ulrich Weigand <uweigand@de.ibm.com>
3343
3344 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3345 * configure.host (powerpc64-*-aix*): Likewise.
3346
3347 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3348 Ulrich Weigand <uweigand@de.ibm.com>
3349
3350 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3351 is defined.
3352 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3353 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3354 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3355 * configure.ac: Check for ptrace64.
3356 * configure, config.in: Regenerate.
3357
3358 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3359 Ulrich Weigand <uweigand@de.ibm.com>
3360
3361 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3362 Call ptrace64 instead of ptrace if defined.
3363 Add macro addr_ptr to take care of ptrace address argument.
3364 (pdc_read_regs): Likewise.
3365 (pdc_write_regs): Likewise.
3366 (aix_thread_resume): Likewise.
3367 (fetch_regs_kernel_thread): Likewise.
3368 (store_regs_kernel_thread): Likewise.
3369
3370 2013-08-07 Anton Blanchard <anton@samba.org>
3371
3372 * MAINTAINERS: Add myself to Write After Approval.
3373
3374 2013-08-05 Tom Tromey <tromey@redhat.com>
3375
3376 * aix-thread.c (_initialize_aix_thread): Use
3377 complete_target_initialization.
3378 * bsd-uthread.c (_initialize_bsd_uthread): Use
3379 complete_target_initialization.
3380 * dec-thread.c (_initialize_dec_thread): Use
3381 complete_target_initialization.
3382 * ravenscar-thread.c (_initialize_ravenscar): Use
3383 complete_target_initialization.
3384 * sol-thread.c (_initialize_sol_thread): Use
3385 complete_target_initialization.
3386 * spu-multiarch.c (_initialize_spu_multiarch): Use
3387 complete_target_initialization.
3388
3389 2013-08-05 Tom Tromey <tromey@redhat.com>
3390
3391 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3392 * ada-lang.c (ada_lookup_simple_minsym): Return
3393 bound_minimal_symbol.
3394 * ada-lang.h (ada_lookup_simple_minsym): Update.
3395 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3396 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3397 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3398 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3399 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3400 * minsyms.c (msymbol_objfile): Remove.
3401 (lookup_minimal_symbol_internal): New function, from
3402 lookup_minimal_symbol.
3403 (lookup_minimal_symbol): Rewrite using
3404 lookup_minimal_symbol_internal.
3405 (lookup_bound_minimal_symbol): New function.
3406 * minsyms.h (msymbol_objfile): Remove.
3407 (lookup_bound_minimal_symbol): Declare.
3408 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3409 * parse.c (write_exp_msymbol): Change parameter to a
3410 bound_minimal_symbol.
3411 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3412 * parser-defs.h (write_exp_msymbol): Update.
3413 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3414 * symfile.c (simple_read_overlay_table): Use
3415 lookup_bound_minimal_symbol.
3416 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3417 (search_symbols): Likewise.
3418 (print_msymbol_info): Take a bound_minimal_symbol argument.
3419 (symtab_symbol_info, rbreak_command): Update.
3420 * symtab.h (struct symbol_search) <msymbol>: Change type
3421 to bound_minimal_symbol.
3422 * valops.c (find_function_in_inferior): Use
3423 lookup_bound_minimal_symbol.
3424 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3425
3426 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3427
3428 Code cleanup.
3429 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3430 to ...
3431 (async_cleanup_sigint_signal_handler): ... this.
3432 (initialize_sigint_signal_handler): Remove declaration.
3433 (handle_remote_sigint): Rename the declaration to ...
3434 (async_handle_remote_sigint): ... this.
3435 (handle_remote_sigint_twice): Rename the declaration to ...
3436 (async_handle_remote_sigint_twice): ... this.
3437 (async_remote_interrupt, async_remote_interrupt_twice)
3438 (remote_interrupt): Remove the declarations.
3439 (remote_interrupt_twice): Rename the declaration ...
3440 (sync_remote_interrupt_twice): ... this.
3441 (sigint_remote_twice_token): Rename the variable to ...
3442 (async_sigint_remote_twice_token): ... this.
3443 (sigint_remote_token): Rename the variable to ...
3444 (async_sigint_remote_token): ... this.
3445 (initialize_sigint_signal_handler): Rename the function to ...
3446 (async_initialize_sigint_signal_handler): ... this. Update the name
3447 inside.
3448 (handle_remote_sigint): Rename the function to ...
3449 (async_handle_remote_sigint): ... this. Update the names inside.
3450 (handle_remote_sigint_twice): Rename the function to ...
3451 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3452 (cleanup_sigint_signal_handler): Rename the function to ...
3453 (async_cleanup_sigint_signal_handler): ... this.
3454 (remote_interrupt): Rename the function to ...
3455 (sync_remote_interrupt): this. Update the names inside.
3456 (remote_interrupt_twice): Rename the function to ...
3457 (sync_remote_interrupt_twice): this. Update the names inside.
3458 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3459 (_initialize_remote): Update the names inside.
3460
3461 2013-08-02 Tom Tromey <tromey@redhat.com>
3462
3463 PR symtab/15719:
3464 * breakpoint.c (update_watchpoint, watchpoint_check)
3465 (watch_command_1): Update.
3466 * eval.c (fetch_subexp_value): Add "preserve_errors"
3467 parameter.
3468 * ppc-linux-nat.c (check_condition): Update.
3469 * value.h (fetch_subexp_value): Update.
3470
3471 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3472
3473 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3474 add_file_handler.
3475
3476 2013-08-01 Doug Evans <dje@google.com>
3477
3478 PR symtab/15691
3479 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3480 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3481 Add assert of sig_entry->dwo_unit == NULL.
3482 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3483 had already been read.
3484 (read_signatured_type): Set per_cu.tu_read.
3485
3486 PR symtab/15695
3487 * valops.c (value_struct_elt): Add missing call to check_typedef.
3488 (value_find_oload_method_list): Ditto.
3489
3490 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3491 effectively, struct symbol_search **.
3492 (make_cleanup_free_search_symbols): Change arg to struct
3493 symbol_search **. All callers updated.
3494 (compare_search_syms): Compare symtab file name and block as well.
3495 (search_symbols_equal): New function.
3496 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3497 New args new_head, new_tail. Result is now void. Remove dups after
3498 sorting the symbols.
3499 (search_symbols): Sort all found symbols once, after all have been
3500 found, and remove duplicates. Simplify cleanup tracking of result.
3501 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3502
3503 Further workarounds for binutils/15021.
3504 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3505 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3506 Watch for duplicate symtabs coming from type units.
3507 (compute_symtab_includes): Update call to
3508 recursively_compute_inclusions. Build vector of included symtabs
3509 instead of per_cus.
3510 * symtab.h (symtab_ptr): New typedef.
3511 (DEF_VEC_P (symtab_ptr)): New VEC type.
3512 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3513 instead.
3514
3515 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3516
3517 * cli/cli-script.c (script_from_file): Remove use of
3518 error_pre_print.
3519 * main.c (captured_main): Remove use of error_pre_print and
3520 quit_pre_print.
3521 * utils.c (error_pre_print, quit_pre_print): Remove.
3522 * utils.h (error_pre_print, quit_pre_print): Likewise.
3523
3524 2013-08-01 Yao Qi <yao@codesourcery.com>
3525
3526 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3527 with mi_getopt.
3528 (mi_cmd_stack_list_variables): Likewise.
3529
3530 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3531
3532 * exceptions.c (deprecated_throw_reason): Remove.
3533 * exceptions.h (deprecated_throw_reason): Remove.
3534
3535 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3536
3537 * remote-mips.c (mips_error): Replace use of
3538 deprecated_throw_reason with throw_verror. Use the error message
3539 passed to mips_error as the error message for throw_verror.
3540
3541 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3542
3543 * monitor.c (monitor_interrupt_query): Replace use of
3544 deprecated_throw_reason with quit.
3545 * nto-procfs.c (interrupt_query): Likewise.
3546 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3547 * remote-mips.c (mips_kill): Likewise.
3548 * remote.c (interrupt_query): Likewise.
3549
3550 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3551
3552 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3553 with call to fatal.
3554
3555 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3556 Yao Qi <yao@codesourcery.com>
3557
3558 * tracepoint.c (trace_dump_command): Select the current frame.
3559
3560 2013-07-30 Doug Evans <dje@google.com>
3561
3562 * dwarf2read.c (process_queue): Add type signature to debug output.
3563
3564 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3565
3566 * value.c (value_fetch_lazy): Mark optimized out values as such
3567 rather than raising an error.
3568
3569 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3570
3571 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3572 before checking which bits of the parent, not the child, value are
3573 valid.
3574
3575 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3576
3577 PR gdb/15715
3578 * top.c: Include "filenames.h".
3579 (set_history_filename): New function.
3580 (init_main): Install it as set hook of the "set history filename"
3581 command.
3582
3583 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3584
3585 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3586 attribute parameter.
3587 (dwarf2_const_value_data): Constify struct attribute parameter.
3588 (dwarf2_const_value): Constify struct attribute parameter.
3589 (dwarf2_const_value_attr): Constify struct attribute parameter.
3590 (lookup_die_type): Constify struct attribute parameter.
3591 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3592 (follow_die_ref_or_sig): Constify struct attribute parameter.
3593 (follow_die_ref): Constify struct attribute parameter.
3594 (follow_die_sig): Constify struct attribute parameter.
3595 (get_DW_AT_signature_type): Constify struct attribute parameter.
3596 (get_type_unit_group): Constify struct attribute parameter.
3597 (fill_in_loclist_baton): Constify struct attribute parameter.
3598 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3599 (type_unit_group): Constify struct attribute parameter.
3600
3601 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3602
3603 * dwarf2read.c (attr_form_is_block): Make argument const.
3604 (attr_form_is_section_offset): Make argument const.
3605 (attr_form_is_constant): Make argument const.
3606 (attr_form_is_ref): Make argument const.
3607
3608 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3609
3610 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3611 All uses updated.
3612 (attr_form_is_ref): Moved below attr_form_is_constant.
3613
3614 2013-07-29 Doug Evans <dje@google.com>
3615
3616 * main.c (captured_command_loop): Tweak comment.
3617
3618 * target.c (target_async_permitted_1): Fix comment.
3619
3620 * symtab.c (iterate_over_some_symtabs): Add comment.
3621
3622 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3623
3624 2013-07-27 Yao Qi <yao@codesourcery.com>
3625
3626 * NEWS: Mention that GDBserver now supports hardware
3627 watchpoints on the MIPS GNU/Linux target.
3628
3629 2013-07-27 Yao Qi <yao@codesourcery.com>
3630
3631 * Makefile.in (HFILES_NO_SRCDIR): Add
3632 common/mips-linux-watch.h.
3633 (mips-linux-watch.o): New rule.
3634 * common/mips-linux-watch.c: New.
3635 * common/mips-linux-watch.h: New.
3636 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3637 * mips-linux-nat.c: Include mips-linux-watch.h.
3638 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3639 to common/mips-linux-watch.h.
3640 (MAX_DEBUG_REGISTER): Likewise.
3641 (enum pt_watch_style): Likewise.
3642 (struct mips32_watch_regs): Likewise.
3643 (struct mips64_watch_regs): Likewise.
3644 (struct pt_watch_regs): Likewise.
3645 (struct mips_watchpoint): Likewise.
3646 (mips_linux_watch_get_irw_mask): Move to
3647 common/mips-linux-watch.c.
3648 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3649 (mips_linux_watch_get_watchlo): Likewise.
3650 (mips_linux_watch_set_watchlo): Likewise.
3651 (mips_linux_watch_get_watchhi): Likewise.
3652 (mips_linux_watch_set_watchhi): Likewise.
3653 (mips_linux_read_watch_registers): Likewise.
3654 (mips_linux_watch_type_to_irw): Likewise.
3655 (mips_linux_stopped_data_address, fill_mask): Likewise.
3656 (mips_linux_watch_try_one_watch): Likewise.
3657 (mips_linux_watch_populate_regs): Likewise.
3658
3659 2013-07-27 Yao Qi <yao@codesourcery.com>
3660
3661 * mips-linux-nat.c (get_irw_mask): Rename to ...
3662 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3663 'set' to 'n'. Update function comment. All callers changed.
3664 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3665 function comment. All callers changed.
3666 (get_num_valid): Rename to ...
3667 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3668 'set' to 'n'. Update function comment. All callers changed.
3669 (get_watchlo): Rename to ...
3670 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3671 'set' to 'n'. Update function comment. All callers changed.
3672 (set_watchlo): Rename to ...
3673 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3674 'set' to 'n'. Update function comment. All callers changed.
3675 (get_watchhi): Rename to ...
3676 (mips_linux_watch_get_watchhi): ... this. Update function
3677 comment. All callers changed.
3678 (set_watchhi): Rename to ...
3679 (mips_linux_watch_set_watchhi): ... this. Update function
3680 comment. All callers changed.
3681 (mips_linux_read_watch_registers): Update function comment.
3682 Add new parameters 'lwpid', 'watch_readback', and
3683 'watch_readback_valid'. Update.
3684 (type_to_irw): Rename to ...
3685 (mips_linux_watch_type_to_irw): ... this. Update function
3686 comment. All callers changed.
3687 (fill_mask): Update function comment.
3688 (try_one_watch): Rename to ...
3689 (mips_linux_watch_try_one_watch): ... this. Change the type
3690 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3691 (populate_regs_from_watches): Rename to ...
3692 (mips_linux_watch_populate_regs): ... this. Add parameter
3693 'current_watches'. All callers changed.
3694
3695 2013-07-27 Yao Qi <yao@codesourcery.com>
3696
3697 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3698 the code.
3699 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3700 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3701 (struct pt_watch_regs): Likewise.
3702 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3703 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3704 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3705 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3706 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3707
3708 2013-07-27 Yao Qi <yao@codesourcery.com>
3709
3710 * breakpoint.h: Include break-common.h.
3711 (enum target_hw_bp_type): Move to ...
3712 * common/break-common.h: ... here. New.
3713
3714 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3715
3716 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3717 process group regardless of having tty on stdin.
3718
3719 2013-07-25 Doug Evans <dje@google.com>
3720
3721 * linux-fork.h (detach_fork): Delete.
3722
3723 2013-07-25 Tom Tromey <tromey@redhat.com>
3724
3725 PR remote/15256, PR remote/15266:
3726 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3727 * monitor.c (monitor_detach): Use unpush_target.
3728 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3729 * remote-mips.c (mips_detach): Use unpush_target. Don't
3730 call mips_close.
3731 * remote-sim.c (gdbsim_detach): Use unpush_target.
3732 * target.c (pop_target): Remove.
3733 (pop_all_targets_above): Don't call target_close.
3734 (target_close): Assert that the target is unpushed.
3735 * target.h (pop_target): Don't declare.
3736 * tracepoint.c (tfile_open): Use unpush_target.
3737
3738 2013-07-25 Tom Tromey <tromey@redhat.com>
3739
3740 * linux-thread-db.c (init_thread_db_ops): Call
3741 complete_target_initialization.
3742 (_initialize_thread_db): Don't call add_target.
3743 * target.c (complete_target_initialization): New function.
3744 (add_target_with_completer): Call it.
3745 * target.h (complete_target_initialization): Declare.
3746
3747 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3748
3749 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3750 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3751 (HPPANBSD_SIZEOF_GREGS): New define.
3752 (hppaobsd_supply_gregset): Handle additional registers.
3753 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3754 we provide more registers now.
3755 (hppabsd_supply_gregset): Supply additional registers.
3756 (hppabsd_collect_gregset): Collect additional registers.
3757
3758 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3759
3760 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3761 (hppabsd_dwarf2_frame_init_reg): New function.
3762 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3763
3764 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3765
3766 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3767 'z' format code. Remove error for optimized out values, standard
3768 code will handle these fine.
3769
3770 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3771
3772 * NEWS: Mention new 'z' formatter.
3773 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3774 (_initialize_printcmd): Mention 'z' formatter in help text of the
3775 'x' command.
3776
3777 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3778
3779 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3780 formatting.
3781
3782 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3783
3784 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3785 interface can evaluate arguments. Fallback to the old mode if it
3786 cannot.
3787 (create_exception_master_breakpoint): Likewise.
3788 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3789 (struct sym_probe_fns elf_probe_fns): Export function above to the
3790 probe interface.
3791 * probe.c (can_evaluate_probe_arguments): New function.
3792 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3793 function pointer.
3794 (can_evaluate_probe_arguments): New function prototype.
3795 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3796 probe interface can evaluate arguments. Fallback to the old mode
3797 if it cannot.
3798 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3799 interface can evaluate arguments. Warning the user if it cannot.
3800 (stap_can_evaluate_probe_arguments): New function.
3801 (struct probe_ops stap_probe_ops): Export function above to the
3802 probe interface.
3803 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3804 New function pointer.
3805
3806 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3807
3808 * Makefile.in (SFILES): Add common/target-common.c.
3809 Add common/target-common.h to headers.
3810 (COMMON_OBS): Add target-common.o.
3811 (target-common.o): New target.
3812 * linux-nat.h (resume_kind): Move to common/target-common.h.
3813 * target.c (target_waitstatus_to_string): Move to
3814 common/target-common.c.
3815 * target.h: Include target-common.h.
3816 (target_waitkind): Move to common/target-common.h.
3817 (target_waitstatus): Likewise.
3818 (TARGET_WNOHANG): Likewise.
3819 * common/target-common.c: New file.
3820 * common/target-common.h: New file.
3821
3822 2013-07-24 Doug Evans <dje@google.com>
3823
3824 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3825 a warning.
3826
3827 2013-07-23 Yao Qi <yao@codesourcery.com>
3828
3829 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3830 parameter 'gdbarch'.
3831 (i386_stack_tramp_frame_sniffer): Caller update.
3832 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3833 parameter 'gdbarch' and 'target'.
3834 (i386_linux_core_read_description): Caller update.
3835 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3836 Likewise.
3837 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3838 declaration.
3839
3840 2013-07-23 Tom Tromey <tromey@redhat.com>
3841
3842 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3843 2013-07-22.
3844
3845 2013-07-22 Doug Evans <dje@google.com>
3846
3847 * exec.h (remove_target_sections): Delete arg abfd.
3848 * exec.c (exec_close): Update call to remove_target_sections.
3849 (remove_target_sections): Delete arg abfd.
3850 * solib.c (update_solib_list): Ditto.
3851 (reload_shared_libraries_1): Ditto.
3852 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3853 * target.h (struct target_section): Rename key to owner.
3854 All uses updated.
3855
3856 2013-07-22 Tom Tromey <tromey@redhat.com>
3857
3858 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3859
3860 2013-07-22 Tom Tromey <tromey@redhat.com>
3861
3862 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3863 Simplify cleanup handling.
3864
3865 2013-07-22 Tom Tromey <tromey@redhat.com>
3866
3867 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3868 on all return paths.
3869
3870 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3871
3872 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3873 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3874 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3875
3876 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3877
3878 * top.c (print_gdb_version): Add help, apropos description and
3879 url to online documentation.
3880
3881 2013-07-19 Hui Zhu <hui@codesourcery.com>
3882
3883 PR gdb/15692
3884 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3885
3886 2013-07-19 Yao Qi <yao@codesourcery.com>
3887
3888 * target.c (update_current_target): Change the default action
3889 of 'to_traceframe_info' from tcomplain to return_zero.
3890 * target.h (struct target_ops) <to_traceframe_info>: Add more
3891 comments.
3892 * valops.c (read_value_memory): Call
3893 traceframe_available_memory unconditionally.
3894
3895 2013-07-18 Yao Qi <yao@codesourcery.com>
3896
3897 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3898 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3899 symbol without prefix. If found, set its type to
3900 'mst_solib_trampoline'.
3901
3902 2013-07-17 Doug Evans <dje@google.com>
3903
3904 * NEWS: Mention "set print raw frame-arguments".
3905 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3906 * stack.c (print_raw_frame_arguments): New static global.
3907 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3908 (_initialize_stack): New command "set/show print raw frame-arguments".
3909 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3910 (set_print_raw, show_print_raw): New functions.
3911 (_initialize_valprint): New prefix command "set/show print raw".
3912 * valprint.h (value_print_options): Improve comments.
3913
3914 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3915 of all *list variables.
3916
3917 * gdbcmd.h (togglelist): Delete.
3918 * cli/cli-cmds.c (togglelist): Delete.
3919 (init_cmd_lists): Update.
3920 * cli/cli-cmds.h (togglelist): Delete.
3921
3922 2013-07-17 Tom Tromey <tromey@redhat.com>
3923
3924 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3925 dwarf2_per_objfile.
3926
3927 2013-07-16 Doug Evans <dje@google.com>
3928
3929 * nto-tdep.c (nto_relocate_section_addresses): Update,
3930 target_section.bfd deleted.
3931 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3932 * s390-tdep.c (s390_load): Ditto.
3933 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3934
3935 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3936
3937 * common/format.c (parse_format_string): Add checks for NULL
3938 character before calling strchr.
3939
3940 2013-07-16 Doug Evans <dje@google.com>
3941
3942 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3943 temp_pathname argument.
3944 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3945 when opening the file fails.
3946
3947 * target.h (struct target_section): Delete member bfd.
3948 All users updated to use the_bfd_section->owner instead.
3949 * exec.c (add_to_section_table): Assert bfd is expected value.
3950 Remove initialization of target_section.bfd.
3951 (remove_target_sections): Update.
3952 (section_table_available_memory): Update.
3953 (section_table_xfer_memory_partial): Update.
3954 (print_section_info): Update.
3955 (exec_set_section_address): Update.
3956 * record-full.c (record_full_core_xfer_partial): Update.
3957 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3958 * solib-target.c (solib_target_relocate_section_addresses): Update.
3959 * symfile.c (build_section_addr_info_from_section_table): Update.
3960 * target.c (memory_xfer_live_readonly_partial): Update.
3961 (memory_xfer_partial_1): Update.
3962
3963 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3964
3965 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3966 now available for embedded (BookE) and server (BookS) processors,
3967 correct mentions of 'booke' and adjust comments accordingly in order to
3968 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3969 (have_ptrace_booke_interface): Rename function and variable
3970 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3971 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3972 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3973 'hwdebug_point_cmp'. Update all uses.
3974 (booke_find_thread_points_by_tid): Rename function
3975 'booke_find_thread_points_by_tid' to
3976 'hwdebug_find_thread_points_by_tid'. Update all uses.
3977 (booke_insert_point): Rename function 'booke_insert_point' to
3978 'hwdebug_insert_point'. Update all uses.
3979 (booke_remove_point): Rename function 'booke_remove_point' to
3980 'hwdebug_remove_point'. Update all uses.
3981
3982 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3983
3984 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3985 numbers with enum values.
3986
3987 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3988
3989 PR threads/13217
3990 * thread.c (thread_apply_all_command): Check for valid threads
3991 and thread count.
3992 (thread_array_cleanup): New struct.
3993 (set_thread_refcount): New function.
3994
3995 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3996
3997 * infcmd.c (default_print_one_register_info): Reuse function
3998 print_hex_chars.
3999
4000 2013-07-10 Tom Tromey <tromey@redhat.com>
4001
4002 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4003 (ada-exp.o): New target.
4004
4005 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4006
4007 * mt-tdep.c (mt_registers_info): Call
4008 get_no_prettyformat_print_options instead of
4009 get_raw_print_options (regression by last patch from Doug
4010 Evans).
4011
4012 2013-07-09 Pedro Alves <palves@redhat.com>
4013
4014 Checked in by Joel Brobecker <brobecker@adacore.com>.
4015 * ada-lang.c (coerce_unspec_val_to_type): Use
4016 value_optimized_out_const.
4017 * value.c (value_optimized_out_const): New function.
4018 * value.h (value_optimized_out_const): New declaration.
4019
4020 2013-07-09 Doug Evans <dje@google.com>
4021
4022 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4023 Enum values rename as well. All uses updated.
4024 * valprint.h (value_print_options): Rename member pretty to
4025 pretty format. Rename member prettyprint_arrays to
4026 prettyformat_arrays. Rename member prettyprint_structs to
4027 prettyformat_structs. All uses updated.
4028 (get_no_prettyformat_print_options): Renamed from
4029 get_raw_print_options.
4030 * valprint.c (get_no_prettyformat_print_options): Renamed from
4031 get_raw_print_options. All callers updated.
4032 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4033 All callers updated.
4034 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4035 All callers updated.
4036 (_initialize_valprint): Improve help text for "set print pretty" and
4037 "set print arrays".
4038
4039 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4040
4041 * value.c (value_bits_valid): Revert previous change, and change
4042 by Pedro on 2013-07-04, due to regressions in
4043 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4044
4045 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4046 Pedro Alves <palves@redhat.com>
4047
4048 * value.c (value_bits_valid): If the value is not lval_computed
4049 or has no check validity handler then the answer is the
4050 optimized_out flag, otherwise defer to the handler.
4051
4052 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4053
4054 * top.c (print_gdb_configuration): Explain in output of
4055 --configuration what does "relocatable" mean.
4056
4057 * main.c (print_gdb_help): Regroup options in the --help text.
4058 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4059 the relevant discussions.
4060
4061 2013-07-06 Yao Qi <yao@codesourcery.com>
4062
4063 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4064 Remove parameter 'lsal'.
4065 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4066 to inner block. Caller update.
4067 (base_breakpoint_create_breakpoints_sal): Update.
4068 (bkpt_create_breakpoints_sal): Likewise.
4069 (tracepoint_create_breakpoints_sal): Likewise.
4070 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4071 element 0 of vector 'canonical->sals'.
4072
4073 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4074
4075 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4076 register number instead of the pseudo register one.
4077 (rs6000_dwarf2_reg_to_regnum): Likewise.
4078
4079 2013-07-04 Pedro Alves <palves@redhat.com>
4080
4081 * findvar.c (value_of_register): Use allocate_optimized_out_value
4082 if the register has been optimized out, instead of
4083 set_value_optimized_out.
4084 * frame-unwind.c (frame_unwind_got_optimized): Use
4085 allocate_optimized_out_value.
4086
4087 2013-07-04 Pedro Alves <palves@redhat.com>
4088
4089 * value.c (value_bits_valid): If the value is not lval_computed,
4090 or doesn't have a check_validity hook, assume the value is entirely
4091 valid.
4092
4093 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4094
4095 * stack.c (read_frame_arg): No longer fetch lazy values.
4096 * value.c (value_optimized_out): If the value is not already
4097 marked optimized out, and is lazy then fetch it.
4098 (value_primitive_field): Move optimized out check to later in the
4099 function, after we have loaded any lazy values.
4100 (value_fetch_lazy): Use optimized out flag directly rather than
4101 calling optimized_out method.
4102
4103 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4104
4105 * valops.c: Don't include "user-regs.h".
4106 (value_fetch_lazy): Moved to value.c.
4107 * value.c: Include "user-regs.h".
4108 (value_fetch_lazy): Moved from valops.c.
4109
4110 2013-07-04 Yao Qi <yao@codesourcery.com>
4111
4112 Revert:
4113 2013-06-27 Yao Qi <yao@codesourcery.com>
4114
4115 * common/create-version.sh: Update comments. Handle the case
4116 that TARGET_ALIAS is empty.
4117
4118 2013-07-03 Pedro Alves <palves@redhat.com>
4119
4120 * Makefile.in (config.status): Depend on development.sh.
4121 (aclocal_m4_deps): Add libmcheck.m4.
4122 * acinclude.m4: Include libmcheck.m4.
4123 * configure.ac: Source development.sh instead of setting
4124 'development' here. --enable-libmcheck/--disable-libmcheck code
4125 factored out to GDB_AC_LIBMCHECK. Run it.
4126 * development.sh: New file.
4127 * libmcheck.m4: New file.
4128 * configure: Regenerate.
4129
4130 2013-07-02 Tom Tromey <tromey@redhat.com>
4131
4132 * contrib/ari/update-web-ari.sh: Update for version.in change.
4133
4134 2013-07-02 Tom Tromey <tromey@redhat.com>
4135
4136 * common/ptid.h: Comment fixes.
4137
4138 2013-07-01 Tom Tromey <tromey@redhat.com>
4139
4140 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4141 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4142 (dwarf2_read_index, create_all_comp_units): Update.
4143
4144 2013-07-01 Tom Tromey <tromey@redhat.com>
4145
4146 * configure.ac (build_warnings): Add -Wold-style-definition.
4147 * configure: Rebuild.
4148 * machoread.c (_initialize_machoread): Use "(void)".
4149 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4150 use "(void)".
4151
4152 2013-07-01 Tom Tromey <tromey@redhat.com>
4153
4154 * configure.ac (build_warnings): Add -Wold-style-declaration.
4155 * configure: Rebuild.
4156 * dsrec.c (make_srec): Use "static const", not "const static".
4157 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4158 not "const static".
4159 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4160 Use "static const", not "const static".
4161 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4162 not "const static".
4163 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4164 not "const static".
4165 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4166 not "const static".
4167 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4168 not "const static".
4169 (v850_dbtrap_breakpoint_from_pc): Likewise.
4170 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4171 not "const static".
4172
4173 2013-07-01 Tom Tromey <tromey@redhat.com>
4174
4175 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4176 * configure: Rebuild.
4177
4178 2013-07-01 Pedro Alves <palves@redhat.com>
4179
4180 * defs.h: Include "pathmax.h".
4181 * utils.c: Don't include sys/param.h.
4182 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4183 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4184 instead of MAXPATHLEN.
4185 * solib-sunos.c: Don't include sys/param.h.
4186 * xcoffread.c: Don't include sys/param.h.
4187 * bsd-kvm.c: Don't include sys/param.h.
4188 * darwin-nat.c: Don't include sys/param.h.
4189 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4190 * darwin-nat-info.c: Don't include sys/param.h.
4191 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4192 MAXPATHLEN.
4193 * i386obsd-nat.c: Don't include sys/param.h.
4194 * inf-child.c: Don't include sys/param.h.
4195 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4196 * linux-fork.c: Don't include sys/param.h.
4197 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4198 * linux-nat.c: Don't include sys/param.h.
4199 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4200 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4201 * m68klinux-nat.c: Don't include sys/param.h.
4202 * nbsd-nat.c: Don't include sys/param.h.
4203 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4204 * ppc-linux-nat.c: Don't include sys/param.h.
4205 * rs6000-nat.c: Don't include sys/param.h.
4206 * spu-linux-nat.c. Don't include sys/param.h.
4207 * windows-nat.c: Don't include sys/param.h.
4208 * xtensa-linux-nat.c: Don't include sys/param.h.
4209 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4210
4211 2013-07-01 Pedro Alves <palves@redhat.com>
4212
4213 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4214 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4215 * gnulib/aclocal.m4: Regenerate.
4216 * gnulib/config.in: Regenerate.
4217 * gnulib/configure: Regenerate.
4218 * gnulib/import/pathmax.h: New file.
4219 * gnulib/import/Makefile.am: Regenerate.
4220 * gnulib/import/Makefile.in: Regenerate.
4221 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4222 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4223 * gnulib/import/m4/pathmax.m4: New file.
4224
4225 2013-07-01 Pedro Alves <palves@redhat.com>
4226
4227 * configure.ac (GDBINIT): Define, depending on host.
4228 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4229 * top.c (PATH_MAX): Delete fallback definition.
4230 (GDBINIT_FILENAME): Delete.
4231 (gdbinit): Reimplement as const char array set to the GDBINIT
4232 string constant.
4233 * top.h (gdbinit): Make const.
4234 * configure, config.in: Regenerate.
4235
4236 2013-07-01 Pedro Alves <palves@redhat.com>
4237
4238 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4239 * cli/cli-cmds.h (source_script): Likewise.
4240 * exceptions.c (catch_command_errors_const): New function.
4241 * exceptions.h (catch_command_errors_const): Declare.
4242 * main.c (get_init_files): Make parameters const, and adjust.
4243 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4244 'local_gdbinit' locals const. Adjust to use
4245 catch_command_errors_const.
4246 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4247 'local_gdbinit' locals const.
4248
4249 2013-07-01 Pedro Alves <palves@redhat.com>
4250
4251 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4252 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4253 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4254 <unistd.h>.
4255
4256 2013-07-01 Pedro Alves <palves@redhat.com>
4257
4258 Import the "unistd" gnulib module.
4259 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4260 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4261 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4262 import/m4/unistd_h.m4.
4263 * gnulib/aclocal.m4: Renenerate.
4264 * gnulib/config.in: Renenerate.
4265 * gnulib/configure: Renenerate.
4266 * gnulib/import/Makefile.am: Renenerate.
4267 * gnulib/import/Makefile.in: Renenerate.
4268 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4269 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4270 * gnulib/import/m4/off_t.m4: New file.
4271 * gnulib/import/m4/ssize_t.m4: New file.
4272 * gnulib/import/m4/sys_types_h.m4: New file.
4273 * gnulib/import/m4/unistd_h.m4: New file.
4274 * gnulib/import/sys_types.in.h: New file.
4275 * gnulib/import/unistd.c: New file.
4276 * gnulib/import/unistd.in.h: New file.
4277
4278 2013-07-01 Pedro Alves <palves@redhat.com>
4279
4280 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4281 defined instead of checking HAVE_UNISTD_H.
4282
4283 2013-07-01 Pedro Alves <palves@redhat.com>
4284
4285 Reimport gnulib from scratch.
4286 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4287 import/m4/onceonly.m4.
4288 * gnulib/aclocal.m4: Renegerate.
4289 * gnulib/config.in: Renegerate.
4290 * gnulib/configure: Renegerate.
4291 * gnulib/import/Makefile.in: Renegerate.
4292 * gnulib/import/extra/update-copyright: Renegerate.
4293 * gnulib/import/m4/onceonly.m4: Delete.
4294
4295 2013-07-01 Pedro Alves <palves@redhat.com>
4296
4297 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4298
4299 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4300
4301 Code cleanup.
4302 * remote.c (async_remote_interrupt_twice): Make it static.
4303 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4304
4305 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4306
4307 * ia64-linux-tdep.c: Include <ctype.h>.
4308 (ia64_linux_stap_is_single_operand): New function.
4309 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4310
4311 2013-06-28 Tom Tromey <tromey@redhat.com>
4312
4313 * Makefile.in (version.c): Use version.in, not
4314 common/version.in.
4315 * common/create-version.sh: Likewise.
4316 * common/version.in: Move...
4317 * version.in: ...here.
4318
4319 2013-06-28 Pedro Alves <palves@redhat.com>
4320
4321 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4322 here.
4323 * utils.h (pagination_enabled): Declare.
4324
4325 2013-06-28 Pedro Alves <palves@redhat.com>
4326
4327 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4328 Move higher up in file.
4329
4330 2013-06-28 Tom Tromey <tromey@redhat.com>
4331
4332 * tracepoint.c (deprecated_readline_begin_hook)
4333 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4334 declare.
4335
4336 2013-06-28 Pedro Alves <palves@redhat.com>
4337
4338 PR tui/14880
4339 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4340 checking if they're available.
4341 * value.c (value_available_contents_eq): Change comment.
4342 * value.h (value_available_contents_eq): Expand comment.
4343
4344 2013-06-27 Tom Tromey <tromey@redhat.com>
4345
4346 * target.c (find_run_target): Remove.
4347 * target.h (find_run_target): Remove.
4348
4349 2013-06-27 Tom Tromey <tromey@redhat.com>
4350
4351 * corelow.c (core_gdbarch): Now static.
4352
4353 2013-06-27 Tom Tromey <tromey@redhat.com>
4354
4355 * target.c (target_struct_index): Remove.
4356
4357 2013-06-27 Pedro Alves <palves@redhat.com>
4358
4359 * infrun.c: Remove comment describing the 'stepping over runtime
4360 loader dynamic symbol resolution code' mechanism; moved to
4361 gdbint.texinfo.
4362
4363 2013-06-27 Pedro Alves <palves@redhat.com>
4364
4365 * exceptions.c (catch_command_errors): Remove spurious space.
4366 * exceptions.h (catch_command_errors): Second parameter is "arg",
4367 not "command".
4368
4369 2013-06-27 Yao Qi <yao@codesourcery.com>
4370
4371 * common/create-version.sh: Update comments. Handle the case
4372 that TARGET_ALIAS is empty.
4373
4374 2013-06-26 Pedro Alves <palves@redhat.com>
4375
4376 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4377 comment.
4378
4379 2013-06-26 Pedro Alves <palves@redhat.com>
4380
4381 * infrun.c: Update comments on stepping over runtime loader
4382 dynamic symbol resolution code.
4383
4384 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4385
4386 * ax-gdb.h (union exp_element): Forward declare.
4387 * parser-defs.h: Include expression.h.
4388
4389 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4390
4391 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4392
4393 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4394
4395 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4396
4397 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4398
4399 Fix trace-status to output proper start-time and stop-time.
4400 * tracepoint.c (trace_status_command): Fix type of printf arg to
4401 prevent improper type conversion.
4402 (trace_status_mi): Likewise.
4403
4404 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4405
4406 * mips-tdep.c (mips_next_pc): Fix a typo.
4407
4408 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4409
4410 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4411
4412 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4413 Yao Qi <yao@codesourcery.com>
4414
4415 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4416 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4417 * mi/mi-main.c (print_variable_or_computed): New function.
4418 (mi_cmd_trace_frame_collected): New function.
4419 * tracepoint.c (find_trace_state_variable_by_number): New.
4420 (struct traceframe_info): Move to tracepoint.h
4421 (struct collection_list): Likewise.
4422 (do_collect_symbol): Include locals and arguments in the
4423 collected variables list.
4424 (clear_collection_list): Clear wholly collected variables list
4425 and computed variables list.
4426 (append_exp): New function.
4427 (encode_actions_1): Include variables in the wholly
4428 collected variables list. Include memory ranges and
4429 full-fledged expressions in the computed expressions list.
4430 (encode_actions): Move some code to ...
4431 Return the cleanup chain.
4432 (encode_actions_rsp): ... here. New function.
4433 (get_traceframe_location, get_traceframe_info): Remove static.
4434 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4435 (struct collection_list): Moved from tracepoint.c. Add two
4436 new fields 'wholly_collected' and 'computed'.
4437 (find_trace_state_variable_by_number): Declare.
4438 (encode_actions): Adjust declaration.
4439 (encode_actions_rsp): Declare.
4440 (get_traceframe_info, get_traceframe_location): Declare.
4441
4442 * NEWS: Mention new MI command -trace-frame-collected.
4443
4444 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4445 Yao Qi <yao@codesourcery.com>
4446
4447 * ctf.c (ctf_traceframe_info): Push trace state variables
4448 present in the trace data into the traceframe info object.
4449 * breakpoint.c (DEF_VEC_I): Remove.
4450 * common/filestuff.c (DEF_VEC_I): Likewise.
4451 * dwarf2loc.c (DEF_VEC_I): Likewise.
4452 * mi/mi-main.c (DEF_VEC_I): Likewise.
4453 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4454 * features/traceframe-info.dtd: Add tvar element and its
4455 attributes.
4456 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4457 (build_traceframe_info): Push trace state variables present in
4458 the trace data into the traceframe info object.
4459 (traceframe_info_start_tvar): New function.
4460 (tvar_attributes): New.
4461 (traceframe_info_children): Add "tvar" element.
4462 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4463
4464 * NEWS: Mention the change in GDB and GDBserver.
4465
4466 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4467 Yao Qi <yao@codesourcery.com>
4468
4469 * tracepoint.c (trace_dump_command): Move code to ...
4470 (get_traceframe_location): ... here. New.
4471
4472 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4473 Yao Qi <yao@codesourcery.com>
4474
4475 * tracepoint.c (trace_dump_command): GDB emits an error
4476 instead of a warning when a traceframe is not selected.
4477
4478 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4479 Yao Qi <yao@codesourcery.com>
4480
4481 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4482 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4483 in collection_list.
4484 (do_clear_collection_list, init_collection_list): New.
4485 (encode_actions): Add local variables 'tracepoint_list' and
4486 'stepping_list'. Call init_collection_list and make cleanup
4487 which calls do_clear_collection_list. Don't call
4488 clear_collection_list.
4489 (_initialize_tracepoint): Delete references to
4490 'tracepoint_list' and 'stepping_list'.
4491
4492 2013-06-25 Tom Tromey <tromey@redhat.com>
4493
4494 * common/create-version.sh (date): Use "$", not "$$" in sed
4495 expression.
4496
4497 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4498
4499 * NEWS (New targets): Add entry for TI MSP430.
4500
4501 2013-06-25 Yao Qi <yao@codesourcery.com>
4502
4503 * remote.c (remote_start_remote): Move code to upload tsv
4504 earlier.
4505
4506 2013-06-25 Yao Qi <yao@codesourcery.com>
4507 Hui Zhu <hui@codesourcery.com>
4508 Pedro Alves <palves@redhat.com>
4509
4510 PR breakpoints/15075
4511 PR breakpoints/15434
4512 * breakpoint.c (bpstat_stop_status): Call
4513 b->ops->after_condition_true.
4514 (update_dprintf_command_list): Don't append "continue" command
4515 to the command list of dprintf breakpoint.
4516 (base_breakpoint_after_condition_true): New function.
4517 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4518 (dprintf_after_condition_true): New function.
4519 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4520 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4521
4522 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4523
4524 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4525 (ALLDEPFILES): Add msp430-tdep.c.
4526 * configure.tgt (msp430*-*-elf): New target.
4527 * msp430-tdep.c: New file.
4528
4529 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4530
4531 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4532 microMIPS synthetic symbols.
4533
4534 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4535
4536 * objfiles.h (pc_in_section): New prototype.
4537 (in_plt_section): Remove name argument, replace prototype with
4538 static inline function.
4539 * mips-tdep.h: Include "objfiles.h".
4540 (in_mips_stubs_section): New function.
4541 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4542 in_solib_call_trampoline member.
4543 (hppa_in_solib_call_trampoline): Remove name argument.
4544 * objfiles.c (pc_in_section): New function.
4545 (in_plt_section): Remove function.
4546 * mips-linux-tdep.c: Include "objfiles.h".
4547 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4548 name argument. Return 1 rather than the low 16-bit halfword of
4549 any instruction examined.
4550 (mips_linux_in_dynsym_resolve_code): Update
4551 mips_linux_in_dynsym_stub call accordingly.
4552 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4553 rather than an equivalent hand-coded sequence.
4554 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4555 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4556 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4557 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4558 in_opd_section.
4559 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4560 on call to tdep->in_solib_call_trampoline.
4561 (hppa_in_solib_call_trampoline): Remove name argument, update
4562 according to in_plt_section change.
4563 (hppa_skip_trampoline_code): Update according to in_plt_section
4564 change.
4565 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4566 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4567 Likewise.
4568 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4569 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4570 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4571 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4572 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4573 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4574 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4575 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4576 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4577 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4578 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4579 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4580 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4581
4582 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4583
4584 * common/create-version.sh: Fix expansion of $host_alias
4585 and $target_alias in generation of HOST_NAME and TARGET_NAME
4586 (resp.).
4587
4588 2013-06-24 Tom Tromey <tromey@redhat.com>
4589
4590 * common/create-version.sh: New file.
4591 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4592 create-version.sh.
4593 (HFILES_NO_SRCDIR): Use common/version.h.
4594 * version.in: Move to ...
4595 * common/version.in: ... here. Replace date with "DATE".
4596 * version.h: Move to ...
4597 * common/version.h: ... here.
4598
4599 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4600
4601 * gdb/gnulib/Makefile.in: Update date in copyright header.
4602 * gdb/gnulib/configure.ac: Ditto.
4603 * gdb/gnulib/update-gnulib.sh: Ditto.
4604
4605 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4606
4607 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4608 "gdb/gnulib/import".
4609
4610 2013-06-21 Will Newton <will.newton@linaro.org>
4611
4612 * doublest.c (ldfrexp): Remove function.
4613 (convert_doublest_to_floatformat): Call frexpl instead of
4614 ldfrexp.
4615
4616 2013-06-21 Will Newton <will.newton@linaro.org>
4617
4618 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4619 * gnulib/aclocal.m4: Regenerate.
4620 * gnulib/config.in: Regenerate.
4621 * gnulib/configure: Regenerate.
4622 * gnulib/import/Makefile.am: Update.
4623 * gnulib/import/Makefile.in: Update.
4624 * gnulib/import/m4/gnulib-cache.m4: Update.
4625 * gnulib/import/m4/gnulib-comp.m4: Update.
4626 * gnulib/import/float+.h: Import.
4627 * gnulib/import/float.c: Import.
4628 * gnulib/import/float.in.h: Import.
4629 * gnulib/import/fpucw.h: Import.
4630 * gnulib/import/frexp.c: Import.
4631 * gnulib/import/frexpl.c: Import.
4632 * gnulib/import/isnan.c: Import.
4633 * gnulib/import/isnand-nolibm.h: Import.
4634 * gnulib/import/isnand.c: Import.
4635 * gnulib/import/isnanl-nolibm.h: Import.
4636 * gnulib/import/isnanl.c: Import.
4637 * gnulib/import/itold.c: Import.
4638 * gnulib/import/m4/exponentd.m4: Import.
4639 * gnulib/import/m4/exponentl.m4: Import.
4640 * gnulib/import/m4/float_h.m4: Import.
4641 * gnulib/import/m4/fpieee.m4: Import.
4642 * gnulib/import/m4/frexp.m4: Import.
4643 * gnulib/import/m4/frexpl.m4: Import.
4644 * gnulib/import/m4/isnand.m4: Import.
4645 * gnulib/import/m4/isnanl.m4: Import.
4646 * gnulib/import/m4/math_h.m4: Import.
4647 * gnulib/import/math.c: Import.
4648 * gnulib/import/math.in.h: Import.
4649
4650 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4651
4652 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4653 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4654 signature_INTEL_edx comparisons.
4655
4656 2013-06-20 Doug Evans <dje@google.com>
4657
4658 symtab/15652
4659 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4660 All callers updated.
4661 (open_dwp_file): If we can't find the dwp file, search the basename
4662 in debug-file-directory.
4663
4664 * dwarf2read.c (struct dwp_file): Fix comment.
4665 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4666
4667 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4668 better.
4669
4670 2013-06-20 Yao Qi <yao@codesourcery.com>
4671
4672 * breakpoint.c (create_breakpoint): Fix code indentation.
4673
4674 2013-06-20 Yao Qi <yao@codesourcery.com>
4675
4676 * breakpoint.c (create_breakpoints_sal_default): Remove
4677 parameter 'lsal'. Update declaration.
4678 (bkpt_create_breakpoints_sal): Caller update.
4679 (tracepoint_create_breakpoints_sal): Likewise.
4680
4681 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4682 Yao Qi <yao@codesourcery.com>
4683
4684 * NEWS: Mention the new option '--skip-unavailable' of command
4685 -data-list-register-values.
4686 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4687 --skip-unavailable option. Adjust to use output_register.
4688 (output_register): Add new 'skip_unavailable' parameter.
4689 Handle it.
4690
4691 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4692
4693 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4694 common/i386-gcc-cpuid.h.
4695 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4696 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4697 Copy the latest version from upstream gcc.
4698 * common/linux-btrace.c: Include i386-cpuid.h.
4699 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4700 call to i386_cpuid.
4701 (cpu_supports_btrace): Likewise.
4702 * go32-nat.c: Include i386-cpuid.h.
4703 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4704
4705 2013-06-19 Doug Evans <dje@google.com>
4706
4707 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4708 (get_section_index): Ditto.
4709
4710 2013-06-19 Tom Tromey <tromey@redhat.com>
4711
4712 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4713 "dprintf" help.
4714
4715 2013-06-18 Doug Evans <dje@google.com>
4716
4717 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4718 before using it.
4719 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4720 Move test of cu_index closer to use. Print complaint if cu_index
4721 is bad.
4722
4723 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4724
4725 * machoread.c (oso_vector): Delete this global.
4726 (macho_register_oso): Add new parameter "oso_vector_ptr".
4727 Use it instead of the "oso_vector" global.
4728 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4729 (macho_symfile_read): Use a local oso_vector, to be free'ed
4730 at the end of this function, in place of the old "oso_vector"
4731 global. Update various function calls accordingly. Use one
4732 single cleanup chain for the entire function.
4733
4734 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4735
4736 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4737 DWARF2_PER_OBJFILE by uses of DATA instead.
4738
4739 2013-06-18 Tom Tromey <tromey@redhat.com>
4740
4741 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4742 argument.
4743 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4744 Special case signals other than GDB_SIGNAL_TRAP.
4745 (explains_signal_watchpoint): New function.
4746 (base_breakpoint_explains_signal): Add 'sig' argument.
4747 (initialize_breakpoint_ops): Set 'explains_signal' method for
4748 watchpoints.
4749 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4750 signal argument.
4751 (bpstat_explains_signal): Likewise.
4752 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4753
4754 2013-06-18 Tom Tromey <tromey@redhat.com>
4755
4756 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4757
4758 2013-06-18 Tom Tromey <tromey@redhat.com>
4759
4760 * python/python.c (finish_python_initialization): Decref
4761 'pythondir' on failure path as well.
4762
4763 2013-06-18 Tom Tromey <tromey@redhat.com>
4764
4765 PR symtab/15391:
4766 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4767 after taking bits_to_skip into account. Sign extend byte_offset.
4768 * utils.h (gdb_sign_extend): Declare.
4769 * utils.c (gdb_sign_extend): New function.
4770
4771 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4772
4773 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4774
4775 2013-06-17 Pierre Muller <muller@sourceware.org>
4776
4777 * corelow.c (core_open): Print GDB signal name instead of target
4778 signal number.
4779
4780 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4781
4782 * .gitignore: Add /gcore.
4783
4784 2013-06-13 Doug Evans <dje@google.com>
4785
4786 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4787 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4788
4789 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4790
4791 * stack.c (backtrace_command_1): Fix indentation.
4792
4793 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4794
4795 * window-nat.c (thread_rec): Add missing empty line after
4796 local variable declaration.
4797
4798 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4799
4800 * windows-nat.c (thread_rec): Revert format used to print
4801 error code returned by SuspendThread from %d back to %u.
4802
4803 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4804
4805 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4806 ID in debug trace.
4807 (get_windows_debug_event): Likewise, for all debug traces.
4808
4809 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4810
4811 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4812 warning message.
4813
4814 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4815 Yao Qi <yao@codesourcery.com>
4816
4817 * mi/mi-main.c (get_register): Remove declaration.
4818 (output_register): Declare.
4819 (mi_cmd_data_list_register_values): Remove local variable
4820 'tuple_cleanup'. Move some code into output_register.
4821 (get_register): Renamed to ...
4822 (output_register): ... this. Output the register's
4823 "number" ui_out tuple here.
4824
4825 2013-06-07 Pedro Alves <palves@redhat.com>
4826
4827 * darwin-nat.c: Fix formating in copyright header.
4828 * darwin-nat.h: Likewise.
4829 * gnu-nat.c: Likewise.
4830 * machoread.c: Likewise.
4831
4832 2013-06-07 Pedro Alves <palves@redhat.com>
4833
4834 PR server/14823
4835 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4836 static. Output a global target description pointer.
4837 (init_registers_${name}): Adjust to initialize a
4838 target description structure.
4839
4840 2013-06-07 Will Newton <will.newton@linaro.org>
4841
4842 * printcmd.c (build_address_symbolic): Call
4843 gdbarch_addr_bits_remove for text minimal symbols.
4844
4845 2013-06-07 Will Newton <will.newton@linaro.org>
4846
4847 * MAINTAINERS: Add myself to Write After Approval.
4848
4849 2013-06-07 Yao Qi <yao@codesourcery.com>
4850
4851 * tracepoint.c (start_tracing): Move code to ...
4852 (trace_reset_local_state): ... here. New.
4853 (disconnect_tracing): Don't call set_current_traceframe,
4854 set_tracepoint_num, and set_traceframe_context. Call
4855 trace_reset_local_state instead.
4856 (tfile_close): Call trace_reset_local_state.
4857 * ctf.c (ctf_close): Likewise.
4858 * remote.c (remote_close): Likewise.
4859 * tracepoint.h (trace_reset_local_state): Declare.
4860
4861 2013-06-06 Doug Evans <dje@google.com>
4862
4863 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4864 and fix header docs.
4865
4866 2013-06-05 Doug Evans <dje@google.com>
4867 Keith Seitz <keiths@redhat.com>
4868
4869 PR 15519
4870 * cp-namespace.c (find_symbol_in_baseclass): Call
4871 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4872 Check result of call to lookup_symbol_static.
4873 Call lookup_static_symbol_aux unconditionally.
4874 Call check_typedef on base types before accessing them.
4875 (cp_lookup_nested_symbol): Fix comment.
4876
4877 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4878
4879 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4880 minimal symbols pointing to function descriptors.
4881
4882 2013-06-05 Tom Tromey <tromey@redhat.com>
4883
4884 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4885
4886 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4887 Pedro Alves <palves@redhat.com>
4888
4889 * remote.c (remote_wait_as): Restore signal handler before returning
4890 when GDB gets a notification.
4891
4892 2013-06-04 Gary Benson <gbenson@redhat.com>
4893
4894 PR 2328
4895 * breakpoint.h (handle_solib_event): Moved function declaration
4896 to solib.h.
4897 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4898 (bpstat_stop_status): Pass new argument to handle_solib_event.
4899 * solib.h (update_solib_breakpoints): New function declaration.
4900 (handle_solib_event): Moved function declaration from
4901 breakpoint.h.
4902 * solib.c (update_solib_breakpoints): New function.
4903 (handle_solib_event): Moved function from breakpoint.c.
4904 Updated to call solib_ops->handle_event if not NULL.
4905 * solist.h (target_so_ops): New fields "update_breakpoints" and
4906 "handle_event".
4907 * infrun.c (set_stop_on_solib_events): New function.
4908 (_initialize_infrun): Use the above for "set
4909 stop-on-solib-events".
4910 (handle_inferior_event): Pass new argument to handle_solib_event.
4911 * solib-svr4.c (probe.h): New include.
4912 (svr4_free_library_list): New forward declaration.
4913 (probe_action): New enum.
4914 (probe_info): New struct.
4915 (probe_info): New static variable.
4916 (NUM_PROBES): New definition.
4917 (svr4_info): New fields "using_xfer", "probes_table" and
4918 "solib_list".
4919 (free_probes_table): New function.
4920 (free_solib_list): New function.
4921 (svr4_pspace_data_cleanup): Free probes table and solib list.
4922 (svr4_copy_library_list): New function.
4923 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4924 (svr4_read_so_list): New parameter "prev_lm".
4925 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4926 (svr4_current_sos): New function.
4927 (probe_and_action): New struct.
4928 (hash_probe_and_action): New function.
4929 (equal_probe_and_action): Likewise.
4930 (register_solib_event_probe): Likewise.
4931 (solib_event_probe_at): Likewise.
4932 (solib_event_probe_action): Likewise.
4933 (solist_update_full): Likewise.
4934 (solist_update_incremental): Likewise.
4935 (disable_probes_interface_cleanup): Likewise.
4936 (svr4_handle_solib_event): Likewise.
4937 (svr4_update_solib_event_breakpoint): Likewise.
4938 (svr4_update_solib_event_breakpoints): Likewise.
4939 (svr4_create_solib_event_breakpoints): Likewise.
4940 (enable_break): Free probes table before creating breakpoints.
4941 Use svr4_create_solib_event_breakpoints to create breakpoints.
4942 (svr4_solib_create_inferior_hook): Free the solib list.
4943 (_initialize_svr4_solib): Initialise
4944 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4945
4946 2013-06-04 Gary Benson <gbenson@redhat.com>
4947
4948 * target.h (target_ops): New field
4949 "to_augmented_libraries_svr4_read".
4950 (target_augmented_libraries_svr4_read): New macro.
4951 * target.c (update_current_target): Handle
4952 to_augmented_libraries_svr4_read.
4953 * remote.c (remote_state): New field
4954 "augmented_libraries_svr4_read".
4955 (remote_augmented_libraries_svr4_read_feature): New function.
4956 (remote_protocol_features): Add entry for
4957 "augmented-libraries-svr4-read".
4958 (remote_augmented_libraries_svr4_read): New function.
4959 (init_remote_ops): Initialize
4960 remote_ops.to_augmented_libraries_svr4_read.
4961
4962 2013-06-04 Gary Benson <gbenson@redhat.com>
4963
4964 * NEWS: Update.
4965
4966 2013-06-04 Gary Benson <gbenson@redhat.com>
4967
4968 * objfiles.h (inhibit_section_map_updates): New function
4969 declaration.
4970 (resume_section_map_updates): Likewise.
4971 (resume_section_map_updates_cleanup): Likewise.
4972 * objfiles.c (objfile_pspace_info): Removed field
4973 "objfiles_changed_p". New fields "new_objfiles_available",
4974 "section_map_dirty" and "inhibit_updates".
4975 (allocate_objfile): Set new_objfiles_available.
4976 (free_objfile): Set section_map_dirty.
4977 (objfile_relocate1): Likewise.
4978 (in_plt_section): Likewise.
4979 (find_pc_section): Update the conditions under which the
4980 section map will be updated.
4981 (inhibit_section_map_updates): New function.
4982 (resume_section_map_updates): Likewise.
4983 (resume_section_map_updates_cleanup): Likewise.
4984
4985 2013-06-04 Gary Benson <gbenson@redhat.com>
4986
4987 * probe.h (get_probe_argument_count): New declaration.
4988 (evaluate_probe_argument): Likewise.
4989 * probe.c (get_probe_argument_count): New function.
4990 (evaluate_probe_argument): Likewise.
4991 (probe_safe_evaluate_at_pc): Use the above new functions.
4992
4993 2013-06-04 Alan Modra <amodra@gmail.com>
4994
4995 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4996 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4997 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4998 target mem reads on optional insns.
4999 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5000 ppc_insns_match_pattern calls.
5001 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5002 Add match for power7 thread safety insns, and new order of
5003 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5004 invocation in comment, and update rest of comment.
5005 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5006 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5007 (ppc64_standard_linkage2_target): Update insn offsets.
5008 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5009 stubs first. Update calls.
5010
5011 2013-06-04 Yao Qi <yao@codesourcery.com>
5012
5013 * solib.c (solib_find): Don't need dir separator if path has
5014 drive spec.
5015
5016 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5017
5018 Revert (indirectly causes a SIGSEGV):
5019 * machoread.c (macho_symfile_read): Assign first cleanup to
5020 'back_to'.
5021
5022 2013-06-03 Yao Qi <yao@codesourcery.com>
5023
5024 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5025 mi-parse.c. Make them static.
5026 (mi_all_values): Likewise.
5027 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5028 mi_parse_print_values. Make it external.
5029 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5030 Remove the declarations.
5031 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5032 * mi/mi-parse.h (mi_parse_print_values): Declare.
5033 * mi/mi-cmd-stack.c: Include mi-parse.h.
5034 (parse_print_values): Remove
5035 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5036 of parse_print_values.
5037 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5038
5039 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5040 Yao Qi <yao@codesourcery.com>
5041
5042 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5043 (encode_actions): Move code to ...
5044 (all_tracepoint_actions_and_cleanup): ... here. New.
5045 (trace_dump_command): Likewise.
5046
5047 2013-05-30 Tom Tromey <tromey@redhat.com>
5048
5049 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5050
5051 2013-05-30 Tom Tromey <tromey@redhat.com>
5052
5053 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5054 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5055 'old_chain' argument. Add 'parser_result' argument.
5056 (gdb_xml_create_parser_and_cleanup): Remove old version.
5057 (gdb_xml_parse_quick): Update.
5058 (xml_process_xincludes): Update.
5059 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5060 declare.
5061
5062 2013-05-30 Tom Tromey <tromey@redhat.com>
5063
5064 * probe.c (collect_probes): Check arguments for NULL before
5065 calling compile_rx_or_error.
5066 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5067 Remove NULL return.
5068
5069 2013-05-30 Tom Tromey <tromey@redhat.com>
5070
5071 * infrun.c (adjust_pc_after_break): Introduce an outer null
5072 cleanup.
5073
5074 2013-05-30 Tom Tromey <tromey@redhat.com>
5075
5076 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5077
5078 2013-05-30 Tom Tromey <tromey@redhat.com>
5079
5080 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5081 for 'old_chain'. Do not check 'head' before processing
5082 cleanups.
5083
5084 2013-05-30 Tom Tromey <tromey@redhat.com>
5085
5086 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5087 "cleanup_tuple".
5088
5089 2013-05-30 Tom Tromey <tromey@redhat.com>
5090
5091 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5092 inner scope. Unconditionally call do_cleanups.
5093
5094 2013-05-30 Tom Tromey <tromey@redhat.com>
5095
5096 * source.c (find_and_open_source): Call do_cleanups.
5097
5098 2013-05-30 Tom Tromey <tromey@redhat.com>
5099
5100 * linux-thread-db.c (thread_db_load_search): Unconditionally
5101 call do_cleanups.
5102
5103 2013-05-30 Tom Tromey <tromey@redhat.com>
5104
5105 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5106 for 'cleanup'; instead use a later one.
5107
5108 2013-05-30 Tom Tromey <tromey@redhat.com>
5109
5110 * python/py-breakpoint.c (bppy_get_commands): Use
5111 explicit, unconditional return.
5112 * python/py-frame.c (frapy_read_var): Likewise.
5113 * python/python.c (gdbpy_decode_line): Likewise.
5114
5115 2013-05-30 Tom Tromey <tromey@redhat.com>
5116
5117 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5118 do_cleanups on all return paths.
5119
5120 2013-05-30 Tom Tromey <tromey@redhat.com>
5121
5122 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5123
5124 2013-05-30 Tom Tromey <tromey@redhat.com>
5125
5126 * stabsread.c (read_struct_type): Call do_cleanups along
5127 all return paths.
5128
5129 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5130
5131 * mips-linux-tdep.c: Adjust formatting throughout.
5132
5133 2013-05-30 Tom Tromey <tromey@redhat.com>
5134
5135 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5136 along all return paths.
5137
5138 2013-05-30 Tom Tromey <tromey@redhat.com>
5139
5140 * symfile.c (find_separate_debug_file): Call do_cleanups
5141 along all return paths.
5142
5143 2013-05-30 Tom Tromey <tromey@redhat.com>
5144
5145 * symtab.c (search_symbols): Introduce a null cleanup for
5146 'retval_chain'.
5147
5148 2013-05-30 Tom Tromey <tromey@redhat.com>
5149
5150 * python/py-value.c (valpy_binop): Call do_cleanups before
5151 exiting loop.
5152
5153 2013-05-30 Tom Tromey <tromey@redhat.com>
5154
5155 * python/py-prettyprint.c (print_children): Remove extra
5156 do_cleanups call.
5157
5158 2013-05-30 Tom Tromey <tromey@redhat.com>
5159
5160 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5161 all return paths.
5162
5163 2013-05-30 Tom Tromey <tromey@redhat.com>
5164
5165 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5166 along all return paths.
5167
5168 2013-05-30 Tom Tromey <tromey@redhat.com>
5169
5170 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5171 call do_cleanups.
5172
5173 2013-05-30 Tom Tromey <tromey@redhat.com>
5174
5175 * varobj.c (c_value_of_root): Call do_cleanups along all
5176 return paths.
5177
5178 2013-05-30 Tom Tromey <tromey@redhat.com>
5179
5180 * tracepoint.c (trace_dump_command): Unconditionally call
5181 do_cleanups.
5182
5183 2013-05-30 Tom Tromey <tromey@redhat.com>
5184
5185 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5186 do_cleanups earlier.
5187
5188 2013-05-30 Tom Tromey <tromey@redhat.com>
5189
5190 * machoread.c (macho_symfile_read): Assign first cleanup to
5191 'back_to'.
5192
5193 2013-05-30 Tom Tromey <tromey@redhat.com>
5194
5195 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5196
5197 2013-05-30 Tom Tromey <tromey@redhat.com>
5198
5199 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5200
5201 2013-05-30 Tom Tromey <tromey@redhat.com>
5202
5203 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5204 call discard_cleanups.
5205 (inf_ptrace_attach): Likewise.
5206
5207 2013-05-30 Tom Tromey <tromey@redhat.com>
5208
5209 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5210 return paths.
5211 (mips_initialize): Likewise.
5212 (common_open): Call do_cleanups.
5213
5214 2013-05-30 Tom Tromey <tromey@redhat.com>
5215
5216 * utils.c (internal_vproblem): Call do_cleanups.
5217
5218 2013-05-30 Tom Tromey <tromey@redhat.com>
5219
5220 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5221
5222 2013-05-30 Tom Tromey <tromey@redhat.com>
5223
5224 * cli/cli-script.c (setup_user_args): Don't return after error.
5225
5226 2013-05-30 Tom Tromey <tromey@redhat.com>
5227
5228 * somread.c (som_symtab_read): Call do_cleanups.
5229
5230 2013-05-30 Tom Tromey <tromey@redhat.com>
5231
5232 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5233
5234 2013-05-30 Tom Tromey <tromey@redhat.com>
5235
5236 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5237 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5238 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5239 * source.c (show_substitute_path_command): Call do_cleanups.
5240 (unset_substitute_path_command, set_substitute_path_command):
5241 Likewise.
5242 * symfile.c (load_command): Call do_cleanups.
5243
5244 2013-05-30 Tom Tromey <tromey@redhat.com>
5245
5246 * contrib/cleanup_check.py: New file.
5247 * contrib/gcc-with-excheck: Add option parsing.
5248
5249 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5250
5251 * windows-nat.c (windows_delete_thread): Add missing space
5252 in cast expression.
5253
5254 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5255
5256 * inferior.c (top level): Include tilde.h.
5257 (add_inferior_command): Call tilde_expand on the value of 'exec'
5258 argument.
5259
5260 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5261 Yao Qi <yao@codesourcery.com>
5262
5263 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5264 Caller update.
5265 (encode_actions): Likewise.
5266 * remote.c (remote_download_tracepoint): Caller update.
5267 * tracepoint.h (encode_actions): Update declaration.
5268
5269 2013-05-30 Pedro Alves <palves@redhat.com>
5270
5271 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5272 pointer.
5273
5274 2013-05-30 Yao Qi <yao@codesourcery.com>
5275
5276 * remote.c (remote_check_symbols): Remove unused parameter
5277 'objfile'.
5278 Declaration update.
5279 (remote_start_remote, remote_new_objfile): Caller update.
5280
5281 2013-05-30 Yao Qi <yao@codesourcery.com>
5282
5283 * mi/mi-cmds.c (mi_cmds): Define MI command
5284 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5285 DEF_MI_CMD_CLI.
5286
5287 2013-05-29 Pedro Alves <palves@redhat.com>
5288
5289 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5290 (remote_insert_watchpoint, remote_remove_watchpoint)
5291 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5292 (remote_verify_memory, compare_sections_command)
5293 (remote_search_memory): Set the general process/thread on the
5294 remote side.
5295
5296 2013-05-29 Pedro Alves <palves@redhat.com>
5297
5298 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5299 (_initialize_aarch64_tdep): Don't call
5300 initialize_tdesc_aarch64_without_fpu.
5301 * features/Makefile (WHICH): Remove reference to
5302 aarch64-without-fpu.
5303 * features/aarch64-without-fpu.c: Delete file.
5304 * regformats/aarch64-without-fpu.dat: Delete file.
5305
5306 2013-05-28 Yao Qi <yao@codesourcery.com>
5307
5308 * tracepoint.c (stringify_collection_list): Remove parameter
5309 'string'.
5310 (encode_actions): Caller update. Remove local variables.
5311
5312 2013-05-24 Yao Qi <yao@codesourcery.com>
5313
5314 * tracepoint.c (TFILE_PID): Remove.
5315 (tfile_open): Don't add thread and inferior.
5316 (tfile_close): Don't set 'inferior_ptid'. Don't call
5317 exit_inferior_silent.
5318 (tfile_thread_alive): Remove.
5319 (init_tfile_ops): Don't set field 'to_thread_alive' of
5320 tfile_ops.
5321
5322 2013-05-23 Doug Evans <dje@google.com>
5323
5324 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5325
5326 2013-05-23 Pedro Alves <palves@redhat.com>
5327
5328 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5329 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5330 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5331 Only define if HAVE_SOCKETS is defined.
5332 * configure.ac: Check for sys/socket.h.
5333 * config.in, configure: Regenerate.
5334
5335 2013-05-23 Pedro Alves <palves@redhat.com>
5336
5337 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5338 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5339 printing uint32_t variables.
5340
5341 2013-05-23 Pedro Alves <palves@redhat.com>
5342
5343 * NEWS: Mention GDBserver range stepping support.
5344
5345 2013-05-23 Yao Qi <yao@codesourcery.com>
5346 Pedro Alves <palves@redhat.com>
5347
5348 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5349 field.
5350 * infcmd.c (step_once, until_next_command): Enable range stepping.
5351 * infrun.c (displaced_step_prepare): Disable range stepping.
5352 (resume): Disable range stepping if stepping over a breakpoint or
5353 we have software watchpoints. If range stepping is enabled,
5354 assert the thread is in the stepping range.
5355 (clear_proceed_status_thread): Clear may_range_step.
5356 (handle_inferior_event): Disable range stepping as soon as we know
5357 the thread that hit the event. Re-enable it whenever we're going
5358 to step with a step range.
5359 * remote.c (struct vCont_action_support) <r>: New field.
5360 (use_range_stepping): New global.
5361 (remote_vcont_probe): Handle 'r' action.
5362 (append_resumption): Append an 'r' action if the thread may range
5363 step.
5364 (show_range_stepping): New function.
5365 (set_range_stepping): New function.
5366 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5367 'set range-stepping' and 'show range-stepping' commands.
5368 * NEWS: Mention range stepping, the new vCont;r action, and the
5369 new "set/show range-stepping" commands.
5370
5371 2013-05-23 Yao Qi <yao@codesourcery.com>
5372 Pedro Alves <palves@redhat.com>
5373
5374 * remote.c (struct vCont_action_support): New struct.
5375 (struct remote_state) <support_vCont_t>: Remove field.
5376 <vCont_actions_support>: New field.
5377 (remote_vcont_probe, remote_stop_ns): Update.
5378
5379 2013-05-23 Yao Qi <yao@codesourcery.com>
5380 Pedro Alves <palves@redhat.com>
5381
5382 * gdbthread.h (pc_in_thread_step_range): New declaration.
5383 * thread.c (pc_in_thread_step_range): New function.
5384 * infrun.c (handle_inferior_event): Use it.
5385
5386 2013-05-23 Joel Brobecker <brobecker@adacore.com>
5387
5388 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5389 of sprintf.
5390
5391 2013-05-22 Keith Seitz <keiths@redhat.com>
5392
5393 * ada-lang.c (is_known_support_routine): Add explicit free of
5394 'func_name' from find_frame_funname.
5395 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5396 for func_name from find_frame_funname.
5397 * python/py-frame.c (frapy_name): Add explicit free of
5398 'name' from find_frame_funname.
5399 * stack.c (find_frame_funname): Add comment explaining that
5400 funcp must be freed by the caller.
5401 Return copy of symbol names instead of pointers.
5402 (print_frame): Add a cleanup for 'funname' from
5403 find_frame_funname.
5404 * stack.h (find_frame_funname): Remove "const" from
5405 'funname' parameter.
5406
5407 2013-05-22 Tom Tromey <tromey@redhat.com>
5408
5409 PR c++/15401:
5410 * c-valprint.c (c_value_print): Use value_addr for
5411 references. Convert back to reference type with value_ref.
5412
5413 2013-05-22 Eli Zaretskii <eliz@gnu.org>
5414
5415 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5416 unloaded DLL, it will be done by handle_solib_event. See
5417 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5418 details.
5419
5420 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5421
5422 * ui-out.c: Create typedef ui_out_level_p and define vector
5423 operations for that type.
5424 (struct ui_out): Use a vector instead of an array.
5425 (current_level): Return level from a vector.
5426 (push_level): Create a level in a vector.
5427 (pop_level): Delete a level in a vector.
5428 (ui_out_new): Create initial level zero level, and store in a
5429 vector.
5430 (ui_out_destroy): Add vector cleanup.
5431
5432 2013-05-22 Pedro Alves <palves@redhat.com>
5433
5434 * python/python-internal.h (gdb_Py_DECREF): Tag with
5435 "ARI: editCase function".
5436
5437 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5438
5439 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5440
5441 2013-05-21 Pedro Alves <palves@redhat.com>
5442
5443 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5444 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5445 * python/py-utils.c (py_decref): Don't check for NULL before
5446 calling Py_DECREF.
5447
5448 2013-05-21 Pedro Alves <palves@redhat.com>
5449
5450 * python/py-utils.c (py_decref): Remove extra braces.
5451 (gdb_pymodule_addobject): Remove extra braces.
5452 * python-internal.h (gdb_Py_DECREF): New static inline function.
5453 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5454
5455 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5456
5457 * breakpoints.c (detach_breakpoints): Do not
5458 detach breakpoints locations with loc_type bp_loc_other.
5459
5460 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5461
5462 Workaround Python 2.6.
5463 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5464 a block.
5465
5466 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5467
5468 Code cleanup: constification.
5469 * solib.c (solib_ops): Make return type and ops variable type const.
5470 (set_solib_ops): Make the new_ops parameter and ops variable const.
5471 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5472 (solib_add, solib_keep_data_in_core, clear_solib)
5473 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5474 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5475 const.
5476 * solib.h (set_solib_ops): Make the new_ops parameter const.
5477
5478 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5479
5480 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5481 variable.
5482 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5483 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5484 (SYSTEM_GDBINIT_FILES): New variables.
5485 (all): Add stamp-system-gdbinit.
5486 (stamp-system-gdbinit): New rule.
5487 (clean-system-gdbinit, install-system-gdbinit)
5488 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5489 (install-only): Add dependency on install-system-gdbinit.
5490 (uninstall): Add dependency on uninstall-system-gdbinit.
5491 (clean): Add dependency on clean-system-gdbinit.
5492 * system-gdbinit/elinos.py: New file.
5493 * system-gdbinit/wrs-linux.py: New file.
5494
5495 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5496
5497 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5498
5499 2013-05-21 Hui Zhu <hui@codesourcery.com>
5500
5501 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5502 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5503 * mi/mi-cmd-break.c (ctype.h): New include.
5504 (gdb_obstack.h): New include.
5505 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5506 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5507 (mi_cmd_dprintf_insert): New.
5508 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5509 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5510
5511 2013-05-20 Tom Tromey <tromey@redhat.com>
5512
5513 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5514
5515 2013-05-20 Tom Tromey <tromey@redhat.com>
5516
5517 * python/py-value.c (valpy_get_dynamic_type): Simplify
5518 dynamic_type assignment. Use Py_XINCREF.
5519
5520 2013-05-20 Tom Tromey <tromey@redhat.com>
5521
5522 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5523
5524 2013-05-20 Tom Tromey <tromey@redhat.com>
5525
5526 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5527 (gdbpy_selected_frame): Move object-construction code
5528 out of TRY_CATCH.
5529
5530 2013-05-20 Tom Tromey <tromey@redhat.com>
5531
5532 * python/py-arch.c (gdbpy_initialize_arch): Use
5533 gdb_pymodule_addobject.
5534 * python/py-block.c (gdbpy_initialize_blocks): Use
5535 gdb_pymodule_addobject.
5536 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5537 gdb_pymodule_addobject.
5538 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5539 gdb_pymodule_addobject.
5540 * python/py-event.c (gdbpy_initialize_event_generic): Use
5541 gdb_pymodule_addobject.
5542 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5543 gdb_pymodule_addobject.
5544 * python/py-evts.c (add_new_registry): Use
5545 gdb_pymodule_addobject.
5546 (gdbpy_initialize_py_events): Likewise.
5547 * python/py-finishbreakpoint.c
5548 (gdbpy_initialize_finishbreakpoints): Use
5549 gdb_pymodule_addobject.
5550 * python/py-frame.c (gdbpy_initialize_frames): Use
5551 gdb_pymodule_addobject.
5552 * python/py-function.c (gdbpy_initialize_functions): Use
5553 gdb_pymodule_addobject.
5554 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5555 gdb_pymodule_addobject.
5556 * python/py-infthread.c (gdbpy_initialize_thread): Use
5557 gdb_pymodule_addobject.
5558 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5559 gdb_pymodule_addobject.
5560 * python/py-param.c (gdbpy_initialize_parameters): Use
5561 gdb_pymodule_addobject.
5562 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5563 gdb_pymodule_addobject.
5564 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5565 gdb_pymodule_addobject.
5566 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5567 gdb_pymodule_addobject.
5568 * python/py-type.c (gdbpy_initialize_types): Use
5569 gdb_pymodule_addobject.
5570 * python/py-utils.c (gdb_pymodule_addobject): New function.
5571 * python/py-value.c (gdbpy_initialize_values): Use
5572 gdb_pymodule_addobject.
5573 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5574 * python/python.c (_initialize_python): Use
5575 gdb_pymodule_addobject.
5576
5577 2013-05-20 Tom Tromey <tromey@redhat.com>
5578
5579 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5580 * python/py-param.c (get_set_value, get_show_value): Use
5581 explicit decrefs.
5582 * python/python.c (start_type_printers, apply_type_printers):
5583 Use explicit decrefs.
5584
5585 2013-05-20 Tom Tromey <tromey@redhat.com>
5586
5587 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5588 incref the module.
5589
5590 2013-05-20 Tom Tromey <tromey@redhat.com>
5591
5592 * python/python.c (gdbpy_run_events): Decref the result
5593 of PyObject_CallObject.
5594
5595 2013-05-20 Tom Tromey <tromey@redhat.com>
5596
5597 * python/py-symtab.c (set_sal): Use
5598 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5599 (symtab_and_line_to_sal_object): Update.
5600
5601 2013-05-20 Tom Tromey <tromey@redhat.com>
5602
5603 * python/py-param.c (compute_enum_values): Decref 'item'.
5604
5605 2013-05-20 Tom Tromey <tromey@redhat.com>
5606
5607 * mi/mi-main.c: Include python-internal.h.
5608 (mi_cmd_list_features): Check gdb_python_initialized.
5609 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5610 (python_inferior_exit, python_new_objfile, add_thread_object)
5611 (delete_thread_object, py_free_inferior): Check
5612 gdb_python_initialized.
5613 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5614 gdb_python_initialized.
5615 * python/py-type.c (save_objfile_types): Check
5616 gdb_python_initialized.
5617 * python/python-internal.h (gdb_python_initialized): Declare.
5618 * python/python.c (ensure_python_env): Throw exception if
5619 Python not initialized.
5620 (before_prompt_hook, source_python_script_for_objfile)
5621 (start_type_printers, apply_type_printers,
5622 free_type_printers): Check gdb_python_initialized.
5623 * varobj.c (varobj_get_display_hint)
5624 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5625 (install_new_value_visualizer, varobj_set_visualizer)
5626 (value_get_print_value): Check gdb_python_initialized.
5627
5628 2013-05-20 Tom Tromey <tromey@redhat.com>
5629
5630 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5631 Check errors.
5632 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5633 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5634 Check errors.
5635 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5636 Check errors.
5637 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5638 Check errors.
5639 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5640 Check errors.
5641 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5642 init function to return 'int'.
5643 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5644 Return 'int'. Check errors.
5645 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5646 Check errors.
5647 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5648 Return 'int'. Check errors.
5649 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5650 Check errors.
5651 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5652 Check errors.
5653 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5654 Check errors.
5655 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5656 Check errors.
5657 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5658 Check errors.
5659 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5660 Check errors.
5661 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5662 Check errors.
5663 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5664 Check errors.
5665 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5666 Check errors.
5667 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5668 Check errors.
5669 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5670 Check errors.
5671 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5672 Check errors.
5673 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5674 Check errors.
5675 * python/python-internal.h (gdbpy_initialize_auto_load,
5676 gdbpy_initialize_values, gdbpy_initialize_frames,
5677 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5678 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5679 gdbpy_initialize_blocks, gdbpy_initialize_types,
5680 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5681 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5682 gdbpy_initialize_finishbreakpoints,
5683 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5684 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5685 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5686 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5687 gdbpy_initialize_signal_event,
5688 gdbpy_initialize_breakpoint_event,
5689 gdbpy_initialize_continue_event,
5690 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5691 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5692 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5693 * python/python.c (gdb_python_initialized): New global.
5694 (gdbpy_initialize_events): Return 'int'. Check errors.
5695 (_initialize_python): Check errors. Set
5696 gdb_python_initialized.
5697
5698 2013-05-20 Tom Tromey <tromey@redhat.com>
5699
5700 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5701 Decref the reslut of PyObject_CallMethod.
5702
5703 2013-05-20 Tom Tromey <tromey@redhat.com>
5704
5705 * python/py-event.c (gdbpy_initialize_event_generic): Return
5706 early if PyType_Ready fails.
5707
5708 2013-05-20 Tom Tromey <tromey@redhat.com>
5709
5710 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5711 as 'default' in the switch.
5712
5713 2013-05-20 Tom Tromey <tromey@redhat.com>
5714
5715 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5716 get_addr_from_python calls out of TRY_CATCH.
5717 (infpy_write_memory, infpy_search_memory): Likewise.
5718 * python/py-utils.c (get_addr_from_python): Return negative
5719 value on error. Use TRY_CATCH.
5720 * python/python-internal.h (get_addr_from_python): Use
5721 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5722
5723 2013-05-20 Tom Tromey <tromey@redhat.com>
5724
5725 * python/py-event.c (evpy_emit_event): Decref the
5726 result of PyObject_CallFunctionObjArgs.
5727
5728 2013-05-20 Tom Tromey <tromey@redhat.com>
5729
5730 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5731 Correctly decref.
5732
5733 2013-05-20 Tom Tromey <tromey@redhat.com>
5734
5735 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5736
5737 2013-05-20 Tom Tromey <tromey@redhat.com>
5738
5739 * python/py-event.h (gdbpy_initialize_event_generic): Use
5740 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5741 * python/py-evts.c (add_new_registry): Use
5742 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5743 * python/python-internal.h
5744 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5745
5746 2013-05-20 Tom Tromey <tromey@redhat.com>
5747
5748 * python/py-arch.c (archpy_disassemble): Update.
5749 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5750 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5751 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5752 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5753 macro.
5754 (GDB_PY_HANDLE_EXCEPTION): Update.
5755 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5756
5757 2013-05-20 Tom Tromey <tromey@redhat.com>
5758
5759 * python/python-internal.h (events_object_type): Remove.
5760
5761 2013-05-20 Tom Tromey <tromey@redhat.com>
5762
5763 * python/py-event.h (evpy_emit_event): Use
5764 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5765 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5766 New macro.
5767
5768 2013-05-20 Tom Tromey <tromey@redhat.com>
5769
5770 * py-evtregistry.c (create_event_object): Decref
5771 eventregistry_object if PyList_New fails.
5772
5773 2013-05-20 Tom Tromey <tromey@redhat.com>
5774
5775 * py-cmd.c (gdbpy_string_to_argv): Check result of
5776 PyList_New.
5777
5778 2013-05-20 Tom Tromey <tromey@redhat.com>
5779
5780 * python/python.c (before_prompt_hook): Add cleanup to
5781 decref 'hook'.
5782
5783 2013-05-20 Tom Tromey <tromey@redhat.com>
5784
5785 * python/py-function.c (fnpy_init): Decref result of
5786 PyObject_GetAttrString.
5787
5788 2013-05-20 Tom Tromey <tromey@redhat.com>
5789
5790 * python/py-threadevent.c (get_event_thread): Use
5791 CPYCHECKER_RETURNS_BORROWED_REF.
5792 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5793 New define.
5794 (pspace_to_pspace_object, objfile_to_objfile_object)
5795 (find_thread_object): Use it.
5796
5797 2013-05-20 Tom Tromey <tromey@redhat.com>
5798
5799 * python/py-arch.c (arch_object_type): Use
5800 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5801 * python/py-block.c (block_syms_iterator_object_type):
5802 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5803 * python/py-bpevent.c (breakpoint_event_object_type):
5804 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5805 * python/py-cmd.c (cmdpy_object_type): Use
5806 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5807 * python/py-continueevent.c (continue_event_object_type):
5808 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5809 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5810 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5811 * python/py-events.h (thread_event_object_type):
5812 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5813 * python/py-evtregistry.c (eventregistry_object_type): Use
5814 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5815 * python/py-exitedevent.c (exited_event_object_type):
5816 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5817 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5818 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5819 * python/py-function.c (fnpy_object_type): Use
5820 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5821 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5822 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5823 * python/py-infthread.c (thread_object_type): Use
5824 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5825 * python/py-lazy-string.c (lazy_string_object_type):
5826 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5827 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5828 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5829 * python/py-objfile.c (objfile_object_type): Use
5830 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5831 * python/py-param.c (parmpy_object_type):
5832 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5833 * python/py-progspace.c (pspace_object_type):
5834 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5835 * python/py-signalevent.c (signal_event_object_type):
5836 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5837 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5838 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5839 * python/py-type.c (type_object_type, field_object_type)
5840 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5841 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5842 define.
5843 (value_object_type, block_object_type, symbol_object_type)
5844 (event_object_type, stop_event_object_type, breakpoint_object_type)
5845 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5846
5847 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5848
5849 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5850 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5851
5852 2013-05-20 Doug Evans <dje@google.com>
5853
5854 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5855 For Fission.
5856 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5857 reading_dwo_directly.
5858 (struct signatured_type): New member dwo_unit.
5859 (struct die_reader_specs): New member comp_dir.
5860 (create_signatured_type_table_from_index): Use malloc for
5861 all_type_units instead of objfile's obstack.
5862 (create_all_type_units): Ditto.
5863 (fill_in_sig_entry_from_dwo_entry): New function.
5864 (add_type_unit): New function.
5865 (lookup_dwo_signatured_type): New function.
5866 (lookup_dwp_signatured_type): New function.
5867 (lookup_signatured_type): New arg cu. All callers updated.
5868 (init_cu_die_reader): Initialize comp_dir.
5869 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5870 Change assert of matching type signatures to call error on mismatch.
5871 (lookup_dwo_unit): Add assert.
5872 (init_tu_and_read_dwo_dies): New function.
5873 (init_cutu_and_read_dies): Call it.
5874 (build_type_unit_groups): Handle case of no type unit groups created.
5875 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5876 (lookup_dwo_cutu): Tweak complaint.
5877 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5878 (dwarf2_per_objfile_free): Free all_type_units.
5879
5880 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5881
5882 * windows-nat.c (handle_unload_dll): Add missing empty line.
5883
5884 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5885
5886 * dwarf2read.c (prototyped_function_p): New function.
5887 (read_subroutine_type): Use it.
5888
5889 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5890
5891 * rs6000-aix-tdep.c: De-indent some example code provided
5892 as a comment.
5893
5894 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5895
5896 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5897 region is ok for a hardware watchpoint using the new ptrace interface
5898 on Power servers.
5899
5900 2013-05-17 Doug Evans <dje@google.com>
5901
5902 * NEWS: Mention new maintenance commands check-symtabs, and
5903 expand-symtabs, and renamed check-psymtabs.
5904 * psymtab.c (maintenance_check_psymtabs): Renamed from
5905 maintenance_check_symtabs. Only process already-expanded symbol
5906 tables.
5907 (_initialize_psymtab): Update.
5908 * symmisc.c (maintenance_check_symtabs): New function.
5909 (maintenance_expand_name_matcher): New function
5910 (maintenance_expand_file_matcher): New function
5911 (maintenance_expand_symtabs): New function.
5912 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5913 commands.
5914
5915 2013-05-17 Tom Tromey <tromey@redhat.com>
5916
5917 * python/py-inferior.c (infpy_read_memory): Don't call
5918 PyErr_SetString if PyObject_New fails.
5919 * python/py-frame.c (frame_info_to_frame_object): Don't call
5920 PyErr_SetString if PyObject_New fails.
5921
5922 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5923
5924 * acinclude.m4: Add check for dlopen in libdl.
5925 * configure.ac: Ditto.
5926 * configure: Regenerate.
5927
5928 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5929
5930 * frame.c (frame_stash): Convert to htab.
5931 (frame_addr_hash): New function.
5932 (frame_addr_hash_eq): New function.
5933 (frame_stash_create): Convert function to create
5934 a hash table.
5935 (frame_stash_add): Convert function to add an entry to a hash
5936 table.
5937 (frame_stash_find): Convert function to search the hash table.
5938 (frame_stash_invalidate): Convert function to empty the hash
5939 table.
5940 (get_frame_id): Only add to stash if a frame_id is created.
5941 (_initialize_frame): Call frame_stash_create.
5942
5943 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5944
5945 * configure.ac: Ensure MIG is available when building for GNU Hurd
5946 hosts.
5947 * configure: Regenerate.
5948
5949 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5950
5951 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5952
5953 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5954
5955 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5956 all cleanups are done before returning from this function.
5957
5958 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5959
5960 * utils.h: #include "exceptions.h".
5961 (enum errors): Remove partial declaration.
5962
5963 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5964
5965 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5966 * gdbarch.h, gdbarch.c: Regenerate.
5967 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5968 handling.
5969
5970 * rs6000-aix-tdep.h: New file.
5971 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5972 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5973 "xml-utils.h".
5974 (struct field_info, struct ld_info_desc): New types.
5975 (ld_info32_desc, ld_info64_desc): New static constants.
5976 (struct ld_info): New type.
5977 (rs6000_aix_extract_ld_info): New function.
5978 (rs6000_aix_shared_library_to_xml): Likewise.
5979 (rs6000_aix_ld_info_to_xml): Likewise.
5980 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5981 (rs6000_aix_init_osabi): Add call to
5982 set_gdbarch_core_xfer_shared_libraries_aix.
5983 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5984 Remove "xml-utils.h" include.
5985 (LdInfo): Delete typedef.
5986 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5987 Delete macros.
5988 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5989 Adjust code accordingly.
5990 (rs6000_core_ldinfo): Delete, folded into
5991 rs6000_aix_core_xfer_shared_libraries_aix.
5992 (rs6000_xfer_shared_library): Delete.
5993 (rs6000_xfer_shared_libraries): Reimplement.
5994
5995 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5996
5997 * record.c (record_goto_cmdlist): New.
5998 (cmd_record_goto): Split into this ...
5999 (cmd_record_goto_begin): ... this
6000 (cmd_record_goto_end): ... and this.
6001 (_initialize_record): Change "record goto" to prefix command.
6002 Add commands for "record goto begin" and "record goto end".
6003 Add an alias for "record goto start" to "record goto begin".
6004
6005 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6006
6007 * linespec.c (convert_linespec_to_sals): New comment for
6008 SOURCE_FILENAME assignment.
6009
6010 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6011
6012 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6013 internal_warning.
6014
6015 2013-05-14 Tom Tromey <tromey@redhat.com>
6016
6017 * eval.c (parse_and_eval_long): Make 'exp' const.
6018 * value.h (parse_and_eval_long): Update.
6019
6020 2013-05-14 Tom Tromey <tromey@redhat.com>
6021
6022 * ui-file.c (gdb_fopen): Make arguments const.
6023 * ui-file.h (gdb_fopen): Make arguments const.
6024
6025 2013-05-14 Tom Tromey <tromey@redhat.com>
6026
6027 * remote.c (remote_set_trace_notes): Make arguments const.
6028 * target.c (update_current_target): Update cast.
6029 * target.h (to_set_trace_notes): Make arguments const.
6030
6031 2013-05-14 Tom Tromey <tromey@redhat.com>
6032
6033 * go32-nat.c (go32_terminal_info): Make 'args' const.
6034 * inferior.h (child_terminal_info): Update.
6035 * inflow.c (child_terminal_info): Make 'args' const.
6036 * target.c (default_terminal_info): Make 'args' const.
6037 (debug_to_terminal_save_ours): Likewise.
6038 * target.h (struct target_ops) <to_terminal_info>: Make argument
6039 const.
6040
6041 2013-05-13 Tom Tromey <tromey@redhat.com>
6042
6043 * gcore.c (create_gcore_bfd): Make 'filename' const.
6044 * gcore.h (create_gcore_bfd): Make 'filename' const.
6045 * record-full.c (record_full_save): Make 'recfilename' const.
6046 * target.c (target_save_record): Make 'filename' const.
6047 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6048 const.
6049 (target_save_record): Likewise.
6050
6051 2013-05-13 Tom Tromey <tromey@redhat.com>
6052
6053 PR gdb/15338:
6054 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6055 ranges section has been read.
6056
6057 2013-05-13 Tom Tromey <tromey@redhat.com>
6058
6059 PR exp/15364:
6060 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6061 STRUCTOP_PTR>: Return a not_lval value for
6062 EVAL_AVOID_SIDE_EFFECTS.
6063 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6064 for EVAL_AVOID_SIDE_EFFECTS.
6065
6066 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6067
6068 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6069 floating point registers to register type before storing
6070 value.
6071 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6072 Likewise.
6073
6074 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6075 Tom Tromey <tromey@redhat.com>
6076
6077 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6078 New functions.
6079 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6080 Declare.
6081 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6082 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6083 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6084 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6085
6086 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6087 Tom Tromey <tromey@redhat.com>
6088
6089 PR build/15414:
6090 * configure: Rebuild.
6091 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6092 with -Wno-format.
6093
6094 2013-05-10 Pedro Alves <palves@redhat.com>
6095
6096 * remote.c (_initialize_remote): Fix spelling of
6097 qXfer:traceframe-info:read packet in packet config command.
6098
6099 2013-05-10 David Taylor <dtaylor@emc.com>
6100
6101 PR remote/15455
6102
6103 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6104 "QTro" at start of packet.
6105
6106 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6107
6108 * solib-aix.c (solib_aix_relocate_section_addresses):
6109 For the .bss section action, apply the same offset as
6110 the .data section.
6111
6112 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6113
6114 * solib-aix.c (solib_aix_relocate_section_addresses):
6115 Remove FIXME comment.
6116
6117 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6118
6119 PR tdep/15420:
6120 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6121 New functions, directly copied from sparc-sol-thread.c.
6122 * sparc-sol-thread.c: Delete.
6123 * configure.ac: Remove code handling sparc-solaris-thread.c.
6124 * configure: Regenerate.
6125
6126 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6127
6128 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6129 filter logic.
6130 (backtrace_command): Add "no-filters" option parsing.
6131 (_initialize_stack): Alter help to reflect "no-filters" option.
6132 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6133 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6134 (py-frame.o): Add target
6135 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6136 filter files.
6137 * python/python.h: Add new frame filter constants, and flag enum.
6138 (apply_frame_filter): Add definition.
6139 * python/python.c (apply_frame_filter): New non-Python
6140 enabled function.
6141 * python/py-utils.c (py_xdecref): New function.
6142 (make_cleanup_py_xdecref): Ditto.
6143 * python/py-objfile.c: Declare frame_filters dictionary.
6144 (objfpy_dealloc): Add frame_filters dealloc.
6145 (objfpy_new): Initialize frame_filters attribute.
6146 (objfile_to_objfile_object): Ditto.
6147 (objfpy_get_frame_filters): New function.
6148 (objfpy_set_frame_filters): New function.
6149 * python/py-progspace.c: Declare frame_filters dictionary.
6150 (pspy_dealloc): Add frame_filters dealloc.
6151 (pspy_new): Initialize frame_filters attribute.
6152 (pspacee_to_pspace_object): Ditto.
6153 (pspy_get_frame_filters): New function.
6154 (pspy_set_frame_filters): New function.
6155 * python/py-framefilter.c: New file.
6156 * python/lib/gdb/command/frame_filters.py: New file.
6157 * python/lib/gdb/frames.py: New file.
6158 * python/lib/gdb/__init__.py: Initialize global frame_filters
6159 dictionary
6160 * python/lib/gdb/FrameDecorator.py: New file.
6161 * python/lib/gdb/FrameIterator.py: New file.
6162 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6163 * mi/mi-cmds.h: Declare.
6164 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6165 --no-frame-filter logic, and Python frame filter logic.
6166 (stack_enable_frame_filters): New function.
6167 (parse_no_frame_option): Ditto.
6168 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6169 filter logic.
6170 (mi_cmd_stack_list_locals): Ditto.
6171 (mi_cmd_stack_list_args): Ditto.
6172 (mi_cmd_stack_list_variables): Ditto.
6173 * NEWS: Add frame filter note.
6174
6175 2013-05-09 Doug Evans <dje@google.com>
6176
6177 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6178 All callers updated.
6179 (syms_from_objfile): Ditto. Make static.
6180 (symbol_file_add_with_addrs): Renamed from
6181 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6182 num_offsets. All callers updated.
6183 * symfile.h (syms_from_objfile): Delete.
6184
6185 * symfile.c (decrement_reading_symtab): Add assert.
6186 (increment_reading_symtab): Ditto.
6187
6188 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6189
6190 * source.c (forward_search_command): Replace call to getc
6191 by call to fgetc.
6192 (reverse_search_command): Likewise.
6193
6194 2013-05-08 Doug Evans <dje@google.com>
6195
6196 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6197 matching test.
6198
6199 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6200
6201 * sol-thread.c (info_cb): Factorize the code a little.
6202
6203 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6204
6205 * sol-thread.c (info_cb): Rework the output of the "maintenance
6206 info sol-threads" command a bit.
6207
6208 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6209
6210 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6211 Replace ti.ti_startfunc by ti.ti_pc.
6212
6213 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6214
6215 * solib-aix.c (solib_aix_free_library_list): New function
6216 for the case where HAVE_LIBEXPAT is not defined.
6217
6218 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6219
6220 PR breakpoints/15413:
6221 * breakpoint.c (condition_completer): Simplify the code to
6222 disconsider multiple locations of breakpoints when completing the
6223 "condition" command.
6224
6225 2013-05-07 Pierre Muller <muller@sourceware.org>
6226
6227 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6228 instead of <sys/wait.h>.
6229
6230 2013-05-07 Pierre Muller <muller@sourceware.org>
6231
6232 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6233 trailing new line from warning message.
6234
6235 2013-05-07 Pierre Muller <muller@sourceware.org>
6236
6237 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6238 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6239
6240 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6241
6242 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6243 error message (ARI fix).
6244
6245 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6246
6247 * features/library-list-aix.dtd: Replace library-list by
6248 library-list-aix.
6249 * rs6000-nat.c: Replace library-list by library-list-aix
6250 throughout.
6251 * solib-aix.c: Likewise.
6252
6253 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6254
6255 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6256 Renames TARGET_OBJECT_AIX_LIBRARIES.
6257 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6258 TARGET_OBJECT_LIBRARIES_AIX throughout.
6259 * solib-aix.c: Likwise.
6260
6261 2013-05-07 Yao Qi <yao@codesourcery.com>
6262
6263 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6264 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6265
6266 2013-05-07 Yao Qi <yao@codesourcery.com>
6267
6268 * solib-dsbt.c (enable_break): Declare.
6269 (dsbt_current_sos): Remove call to enable_break2.
6270 (enable_break2): Rename to enable_break. Set solib breakpoint
6271 on '_dl_debug_state'.
6272 (enable_break): Remove.
6273
6274 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6275
6276 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6277 debug state prior to replicating existing hardware watchpoints or
6278 breakpoints.
6279
6280 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6281
6282 * gcore.c (gcore_create_callback): Ignore sections with
6283 separate_debug_objfile_backlink != NULL.
6284
6285 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6286 Andrew Jenner <andrew@codesourcery.com>
6287 Chung-Lin Tang <cltang@codesourcery.com>
6288 Julian Brown <julian@codesourcery.com>
6289
6290 Based on the nios2-elf port from Altera Corporation.
6291
6292 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6293 nios2-linux-tdep.o.
6294 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6295 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6296 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6297 * nios2-tdep.h: New.
6298 * nios2-tdep.c: New.
6299 * nios2-linux-tdep.c: New.
6300 * features/Makefile (WHICH): Add nios2-linux.
6301 (nios2-linux-expedite): Set.
6302 * features/nios2-cpu.xml: New.
6303 * features/nios2.xml: New.
6304 * features/nios2-linux.xml: New.
6305 * features/nios2.c: New (autogenerated).
6306 * features/nios2-linux.c: New (autogenerated).
6307 * regformats/nios2-linux.dat: New (autogenerated).
6308 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6309 and commands.
6310
6311 2013-05-06 Doug Evans <dje@google.com>
6312
6313 * symfile.c: Whitespace cleanup.
6314
6315 * solist.h (struct target_so_ops): New member clear_so.
6316 * solib-svr4.c (svr4_clear_so): New function.
6317 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6318 * solib.c (clear_so): Renamed from free_so_symbols.
6319 All callers updated. Call target clear_so if it exists.
6320
6321 2013-05-06 Tom Tromey <tromey@redhat.com>
6322
6323 * ada-lang.c (ada_value_primitive_packed_val): Don't
6324 call value_incref.
6325 * value.c (set_value_parent): Incref the new parent and decref
6326 the old parent.
6327 (value_copy, value_primitive_field): Use set_value_parent.
6328
6329 2013-05-06 Tom Tromey <tromey@redhat.com>
6330
6331 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6332 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6333 if needed.
6334 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6335 * dwarf2read.c (write_constant_as_bytes)
6336 (dwarf2_fetch_constant_bytes): New functions.
6337
6338 2013-05-06 Tom Tromey <tromey@redhat.com>
6339
6340 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6341 parameters.
6342 (dwarf2_const_value_attr): Update.
6343
6344 2013-05-06 Tom Tromey <tromey@redhat.com>
6345
6346 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6347 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6348 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6349 Remove declaration.
6350
6351 2013-05-06 Tom Tromey <tromey@redhat.com>
6352
6353 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6354 objfile's obstack.
6355
6356 2013-05-06 Doug Evans <dje@google.com>
6357
6358 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6359 * stabsread.h (process_one_symbol): Update declaration.
6360 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6361 * elfread.c (elf_symfile_relocate_probe): Ditto.
6362 * psymtab.c (relocate_psymtabs): Ditto.
6363 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6364 (objfile_relocate): Ditto.
6365 * objfiles.h (objfile_relocate): Update declaration.
6366 * symfile.c (relative_addr_info_to_section_offsets): Constify
6367 addrs parameter.
6368 (default_symfile_offsets): Ditto.
6369 (syms_from_objfile_1): Constify offsets parameter.
6370 (syms_from_objfile): Ditto.
6371 (symbol_file_add_with_addrs_or_offsets): Ditto.
6372 (symfile_map_offsets_to_segments): Constify data parameter.
6373 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6374 delta parameters of member relocate.
6375 (struct sym_probe_fns): Constify new_offsets,
6376 delta parameters of member sym_relocate_probe.
6377 (struct sym_fns): Constify section_addr_info parameter of member
6378 sym_offsets.
6379 (relative_addr_info_to_section_offsets): Update declaration.
6380 (default_symfile_offsets): Ditto.
6381 (syms_from_objfile): Ditto.
6382 (symfile_map_offsets_to_segments): Ditto.
6383
6384 * symfile.c (syms_from_objfile_1): Use correct section count when
6385 objfile->sf == NULL.
6386
6387 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6388
6389 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6390
6391 2013-05-06 Doug Evans <dje@google.com>
6392
6393 * psympriv.h (struct partial_symtab): Augment comment for member
6394 section_offsets.
6395
6396 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6397
6398 Reimplement shared library support on ppc-aix...
6399 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6400 * features/library-list-aix.dtd: New file.
6401 * solib-aix.h, solib-aix.c: New file.
6402 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6403 (rs6000_find_toc_address_hook): Delete.
6404 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6405 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6406 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6407 "xml-utils.h".
6408 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6409 (vmap_symtab, fixup_breakpoints): Delete.
6410 (rs6000_xfer_shared_libraries): New function.
6411 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6412 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6413 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6414 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6415 (rs6000_xfer_shared_library): New function.
6416 (find_toc_address): Delete.
6417 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6418 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6419 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6420 before creating minimal symbol. Adjust function description
6421 accordingly.
6422 (scan_xcoff_symtab): Replace call to
6423 prim_record_minimal_symbol_and_info by call to
6424 record_minimal_symbol.
6425 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6426 around default_symfile_offsets.
6427 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6428 powerpc-aix targets.
6429 * config/rs6000/nm-rs6000.h: Delete.
6430 * config/powerpc/aix.mh (NAT_FILE): Delete.
6431 (NATDEPFILES): Remove xcoffsolib.o.
6432 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6433 (ALL_TARGET_OBS): Add solib-aix.o.
6434 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6435 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6436 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6437 * xcoffsolib.h, xcoffsolib.c: Delete.
6438
6439 * solib.c (reload_shared_libraries): Remove reference to
6440 SOLIB_CREATE_INFERIOR_HOOK.
6441 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6442 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6443 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6444 comment.
6445 * corelow.c (deprecated_core_resize_section_table): Delete.
6446 * exec.c: Remove include of xcoffsolib.h".
6447 (map_vmap, vmap): Delete.
6448 (exec_close_1): Remove references to vmap.
6449 (exec_file_attach): Remove vmap handling code, and reference
6450 to DEPRECATED_IBM6000_TARGET.
6451 (bfdsec_to_vmap): Delete.
6452 (exec_files_info): Remove block of code handling VMAP.
6453 * infcmd.c (post_create_inferior): Remove reference to
6454 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6455 * infrun.c (follow_exec): Remove reference to
6456 SOLIB_CREATE_INFERIOR_HOOK.
6457 * stack.c (print_frame): Remove reference to PC_SOLIB.
6458 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6459 (dsbt_relocate_main_executable): Likewise.
6460 * solib-frv.c (frv_current_sos): Likewise.
6461
6462 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6463
6464 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6465 to target_write_memory and target_read_memory.
6466
6467 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6468
6469 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6470 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6471
6472 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6473
6474 * darwin-nat.c: Replace all "%x" instances in format strings
6475 into "0x%x" throughout.
6476
6477 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6478
6479 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6480 gdb_assert by call to MACH_CHECK_ERROR.
6481 (darwin_attach_pid): Raise an error rather than a failed
6482 assertion when various system calls failed. Report a warning
6483 instead of raising a failed assertion when PREV_NOT is not NULL
6484 after call to mach_port_request_notification.
6485 (darwin_ptrace_me): Raise an error rather than a failed
6486 assertion when read returns nonzero.
6487
6488 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6489
6490 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6491
6492 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6493
6494 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6495
6496 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6497
6498 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6499 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6500 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6501 a stale cleanup. Fix double free of NAME.
6502
6503 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6504
6505 * windows-nat.c (windows_delete_thread): Accept an additional
6506 argument, the thread's exit code, and announce thread death when
6507 print_thread_events is non-zero and we are deleting a thread that
6508 is not the main thread.
6509 (get_windows_debug_event): Pass thread exit code to
6510 windows_delete_thread.
6511
6512 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6513
6514 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6515 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6516 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6517 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6518 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6519 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6520 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6521 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6522 (gdbarch_tdep): New struct.
6523 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6524 E_NUM_REGS.
6525 (v850e3v5_register_name): New function.
6526 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6527 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6528 code handling the struct return conventions for the RH850 ABI.
6529 Update all callers.
6530 (v850_eight_byte_align_p): New function.
6531 (v850_push_call_dummy): Push structs by value, not by reference
6532 for the RH850 ABI. Add support for eight byte alignment.
6533 (v850_dbtrap_breakpoint_from_pc): New function.
6534 (v850_gdbarch_init): Add ABI detection code. Register
6535 v850e3v5_register_name for the v850e3v5 architecture. Set the
6536 number of registers for v850e3v5. Register
6537 v850_dbtrap_breakpoint_from_pc as appropriate.
6538 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6539
6540 2013-05-03 Doug Evans <dje@google.com>
6541
6542 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6543 of bfd_count_sections.
6544 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6545 * symfile.c (default_symfile_offsets): Ditto.
6546 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6547 one entry, not bfd_count_sections entries.
6548
6549 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6550
6551 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6552 `save' and `restore' register groups. Don't include SPL
6553 or SPH in these groups.
6554 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6555 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6556 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6557 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6558 dwarf2_append_unwinders().
6559
6560 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6561
6562 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6563 ignore SIGINT and SIGTRAP in case these internal signals are
6564 caught explicitely.
6565
6566 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6567
6568 * darwin-nat.c (darwin_read_write_inferior): Change types
6569 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6570 of copy_count to "mach_msg_type_number_t".
6571 (darwin_read_dyld_info): Change type of parameter
6572 rdaddr to "gdb_byte *".
6573
6574 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6575
6576 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6577 of &info->load_map from "char *" to "gdb_byte *".
6578
6579 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6580
6581 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6582 from "char *" to "gdb_byte *".
6583 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6584
6585 2013-04-30 Doug Evans <dje@google.com>
6586
6587 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6588 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6589 DWO stub. If DWO isn't found, just use stub.
6590 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6591
6592 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6593 calling init_cutu_and_read_dies.
6594
6595 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6596
6597 * target-descriptions.c (maint_print_c_tdesc_cmd):
6598 Add case to parse structures as register types and
6599 bitfields.
6600
6601 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6602
6603 * MAINTAINERS (Write After Approval): Add myself to the list.
6604
6605 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6606
6607 * sol-thread.c (rw_common): Change type of parameter "buf"
6608 to "gdb_byte *".
6609 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6610 rw_common to "gdb_byte *" instead of "char *".
6611
6612 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6613
6614 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6615 of local variable msym to const struct bound_minimal_symbol.
6616 Adjust use accordingly.
6617 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6618
6619 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6620
6621 * i386gnu-nat.c (CREG_OFFSET): New macro.
6622 (creg_offset): New array.
6623 (CREG_ADDR): Use creg_offset instead of reg_offset.
6624
6625 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6626
6627 * mep-tdep.c (mep_write_pc): Delete.
6628 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6629 Add call to set_gdbarch_pc_regnum.
6630
6631 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6632
6633 * common/filestuff.c: Replace #include <dirent.h> by
6634 #include "gdb_dirent.h".
6635
6636 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6637
6638 * common/filestuff.c: Replace #include <sys/stat.h> by
6639 #include "gdb_stat.h".
6640
6641 2013-04-29 Pierre Muller <muller@sourceware.org>
6642
6643 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6644 editCase function rule.
6645 (get_DW_AT_signature_type): Likewise.
6646
6647 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6648
6649 * m32r-tdep.c (m32r_write_pc): Delete.
6650 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6651 Add call to set_gdbarch_pc_regnum.
6652
6653 2013-04-29 Pierre Muller <muller@sourceware.org>
6654
6655 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6656
6657 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6658
6659 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6660
6661 2013-04-28 Yao Qi <yao@codesourcery.com>
6662
6663 * solib-dsbt.c (fetch_loadmap): Re-indent.
6664 (displacement_from_map, enable_break2): Likewise.
6665 (dsbt_relocate_section_addresses): Likewise.
6666
6667 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6668
6669 GDB 7.6 released.
6670
6671 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6672
6673 PR corefiles/14983:
6674 * dwarf2read.c (process_full_comp_unit): Always create a static
6675 block.
6676
6677 2013-04-25 Hui Zhu <hui@codesourcery.com>
6678
6679 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6680 to loc->cmd_bytecode.
6681
6682 2013-04-24 Doug Evans <dje@google.com>
6683
6684 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6685
6686 2013-04-22 Keith Seitz <keiths@redhat.com>
6687
6688 * tracepoint.c (trace_save): Call the writer's start method.
6689
6690 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6691
6692 PR gdb/10462
6693 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6694 before argument.
6695
6696 2013-04-23 Tom Tromey <tromey@redhat.com>
6697
6698 * common/filestuff.c: Check USE_WIN32API before including
6699 sys/socket.h.
6700 (HAVE_F_GETFD): New define.
6701 (mark_cloexec): Check HAVE_F_GETFD.
6702 (gdb_open_cloexec): Change 'mode' to unsigned long.
6703 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6704 (gdb_pipe_cloexec): Check HAVE_PIPE.
6705 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6706 long.
6707
6708 2013-04-23 Hui Zhu <hui@codesourcery.com>
6709
6710 PR gdb/15293
6711 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6712
6713 2013-04-23 Hui Zhu <hui@codesourcery.com>
6714
6715 PR gdb/15165
6716 * breakpoint.c (dprintf_print_recreate): New.
6717 (save_breakpoints): Let it not save dprintf commands.
6718 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6719
6720 2013-04-22 Tom Tromey <tromey@redhat.com>
6721
6722 PR gdb/7912:
6723 * Makefile.in (SFILES): Add filestuff.c
6724 (COMMON_OBS): Add filestuff.o.
6725 (filestuff.o): New target.
6726 * auto-load.c (auto_load_objfile_script_1): Use
6727 gdb_fopen_cloexec.
6728 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6729 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6730 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6731 * common/agent.c (gdb_connect_sync_socket): Use
6732 gdb_socket_cloexec.
6733 * common/filestuff.c: New file.
6734 * common/filestuff.h: New file.
6735 * common/linux-osdata.c (linux_common_core_of_thread)
6736 (command_from_pid, commandline_from_pid, print_source_lines)
6737 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6738 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6739 gdb_fopen_cloexec.
6740 * common/linux-procfs.c (linux_proc_get_int)
6741 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6742 * config.in, configure: Rebuild.
6743 * configure.ac: Don't check for sys/socket.h. Check for
6744 fdwalk, pipe2.
6745 * corelow.c (core_open): Use gdb_open_cloexec.
6746 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6747 * fork-child.c (fork_inferior): Call close_most_fds.
6748 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6749 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6750 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6751 Use gdb_fopen_cloexec.
6752 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6753 gdb_open_cloexec.
6754 (linux_async_pipe): Use gdb_pipe_cloexec.
6755 * remote-fileio.c (remote_fileio_func_open): Use
6756 gdb_open_cloexec.
6757 * remote.c (remote_file_put, remote_file_get): Use
6758 gdb_fopen_cloexec.
6759 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6760 close_most_fds.
6761 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6762 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6763 * solib.c (solib_find): Use gdb_open_cloexec.
6764 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6765 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6766 (tfile_open): Use gdb_open_cloexec.
6767 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6768 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6769 * xml-support.c (xml_fetch_content_from_file): Use
6770 gdb_fopen_cloexec.
6771 * main.c (captured_main): Call notice_open_fds.
6772
6773 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6774
6775 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6776 'char *' to 'gdb_byte *'.
6777 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6778 'gdb_byte'.
6779
6780 2013-04-22 Yao Qi <yao@codesourcery.com>
6781
6782 * infrun.c: Fix typo in comment.
6783
6784 2013-04-22 Andrew Haley <aph@redhat.com>
6785
6786 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6787 instead of "long".
6788
6789 2013-04-20 Yao Qi <yao@codesourcery.com>
6790
6791 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6792 'char *' to 'gdb_byte *'. Cast the return value of
6793 'bt_ctf_get_char_array' to 'gdb_byte *'.
6794
6795 2013-04-19 Pedro Alves <palves@redhat.com>
6796
6797 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6798 -Wpointer-sign.
6799 * configure: Regenerate.
6800
6801 2013-04-19 Pedro Alves <palves@redhat.com>
6802
6803 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6804 'void *'.
6805
6806 2013-04-19 Pedro Alves <palves@redhat.com>
6807
6808 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6809 Change type of 'myaddr' parameter to gdb_byte pointer.
6810 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6811 to 'long long' pointer instead of to 'unsigned long long'.
6812 (monitor_write_memory_block, monitor_read_memory_single)
6813 (monitor_read_memory): Change type of 'myaddr' parameter to
6814 gdb_byte pointer.
6815
6816 2013-04-19 Pedro Alves <palves@redhat.com>
6817
6818 * record.c (validate_history_size): Make parameter 'setting'
6819 unsigned.
6820
6821 2013-04-19 Pedro Alves <palves@redhat.com>
6822
6823 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6824 to 'gdb_byte *'.
6825
6826 2013-04-19 Pedro Alves <palves@redhat.com>
6827
6828 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6829 local to int.
6830
6831 2013-04-19 Pedro Alves <palves@redhat.com>
6832
6833 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6834 * ada-tasks.c (read_fat_string_value): Likewise.
6835
6836 2013-04-19 Pedro Alves <palves@redhat.com>
6837
6838 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6839 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6840 'offset', and adjust.
6841
6842 2013-04-19 Pedro Alves <palves@redhat.com>
6843
6844 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6845 (read_index_from_section): Add cast to 'char *'.
6846
6847 2013-04-19 Pedro Alves <palves@redhat.com>
6848
6849 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6850
6851 2013-04-19 Pedro Alves <palves@redhat.com>
6852
6853 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6854
6855 2013-04-19 Pedro Alves <palves@redhat.com>
6856
6857 * record-full.c (record_full_get_bookmark): Change local 'ret'
6858 type to char * and add cast to gdb_byte *.
6859 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6860 string.
6861 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6862
6863 2013-04-19 Pedro Alves <palves@redhat.com>
6864
6865 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6866 * python/py-prettyprint.c (print_string_repr): Change type of
6867 'output' local to char *. Add cast to gdb_byte * in
6868 LA_PRINT_STRING call.
6869 (print_children): Change type of 'output' local to char *.
6870 * python/py-value.c (valpy_string): Add cast to const char * in
6871 PyUnicode_Decode call.
6872
6873 2013-04-19 Pedro Alves <palves@redhat.com>
6874
6875 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6876 and change its type to 'const char *'. Adjust.
6877 (mips_send_packet): Add cast to 'char *', and remove cast to
6878 'unsigned char *'.
6879 (mips_receive_packet): Remove cast to 'unsigned char *'.
6880 (mips_load_srec): Use bfd_byte.
6881 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6882 (pmon_checkset): Make 'value' parameter unsigned.
6883
6884 2013-04-19 Pedro Alves <palves@redhat.com>
6885
6886 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6887
6888 2013-04-19 Pedro Alves <palves@redhat.com>
6889
6890 * remote.c (remote_write_bytes_aux, compare_sections_command)
6891 (remote_read_qxfer)
6892 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6893 (remote_hostio_readlink, remote_bfd_iovec_pread)
6894 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6895 binary buffer, and char when buffer is used as string.
6896 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6897 (trace_save, tfile_open, traceframe_walk_blocks)
6898 (tfile_fetch_registers): Likewise.
6899
6900 2013-04-19 Pedro Alves <palves@redhat.com>
6901
6902 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6903 buffer and size_t size. Adjust.
6904 * ser-base.h (ser_base_write): Adjust.
6905 * ser-go32.c (cnts): Change type to size_t.
6906 (dos_write): Change prototype -- take 'void *'
6907 buffer and size_t size. Adjust.
6908 (dos_info): Print elements of 'cnts' as unsigned long.
6909 * serial.c (serial_write): Likewise.
6910 * serial.h (serial_write): Adjust.
6911 (struct serial_ops) <write>: Change prototype -- take 'void *'
6912 buffer and size_t size. Adjust.
6913
6914 2013-04-19 Pedro Alves <palves@redhat.com>
6915
6916 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6917 gdb_byte *.
6918 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6919
6920 2013-04-19 Pedro Alves <palves@redhat.com>
6921
6922 * alpha-tdep.c (alpha_extract_return_value): Use
6923 regcache_cooked_read_unsigned to read 'v0'.
6924
6925 2013-04-19 Pedro Alves <palves@redhat.com>
6926
6927 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6928 parameters 'at', 'as' and 'offset' to uint32_t.
6929
6930 2013-04-19 Pedro Alves <palves@redhat.com>
6931
6932 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6933 'is64' to signed 'int'.
6934
6935 2013-04-19 Pedro Alves <palves@redhat.com>
6936
6937 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6938 parameter to int *.
6939
6940 2013-04-19 Pedro Alves <palves@redhat.com>
6941
6942 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6943 'insnbuf' buffer type to unsigned int[].
6944
6945 2013-04-19 Pedro Alves <palves@redhat.com>
6946
6947 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6948
6949 2013-04-19 Pedro Alves <palves@redhat.com>
6950
6951 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6952 unsigned long *.
6953
6954 2013-04-19 Pedro Alves <palves@redhat.com>
6955
6956 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6957 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6958 UINT_MAX.
6959 * mips-tdep.c (heuristic_fence_post): Change type to int.
6960 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6961
6962 2013-04-19 Pedro Alves <palves@redhat.com>
6963
6964 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6965 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6966 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6967
6968 2013-04-19 Pedro Alves <palves@redhat.com>
6969
6970 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6971 it to get a string view of the byte buffer.
6972 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6973 type to gdb_byte *. Adjust.
6974 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6975 Change local to char *.
6976 * solib-darwin.c (find_program_interpreter): Change return type to
6977 char *. Adjust.
6978 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6979 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6980 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6981 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6982 * solib-svr4.c (find_program_interpreter): Change return type to
6983 char *. Adjust.
6984 (enable_break): Change local 'interp_name' to char *.
6985 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6986 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6987 (spu_pseudo_register_write_spu): Use char for string buffer.
6988 Adjust.
6989 (info_spu_event_command, info_spu_signal_command): Add casts to
6990 'char *'.
6991
6992 2013-04-19 Pedro Alves <palves@redhat.com>
6993
6994 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6995 gdb_byte[].
6996 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6997 * ada-lang.c (ada_value_assign): Use gdb_byte.
6998 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6999 (alphanbsd_sigtramp_offset): Use gdb_byte.
7000 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7001 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7002 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7003 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7004 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7005 * arm-tdep.c (arm_stub_unwind_sniffer)
7006 (arm_displaced_init_closure): Use gdb_byte.
7007 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7008 (arm_default_thumb_le_breakpoint)
7009 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7010 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7011 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7012 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7013 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7014 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7015 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7016 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7017 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7018 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7019 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7020 (cris_store_return_value, cris_extract_return_value): Use
7021 gdb_byte.
7022 (constraint): Change type of parameter to char * from signed
7023 char*. Use gdb_byte.
7024 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7025 of local buffer to gdb_byte *.
7026 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7027 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7028 (add_address_entry): Change type of local buffer to gdb_byte[].
7029 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7030 (frv_push_dummy_call): Use gdb_byte.
7031 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7032 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7033 (hppa_hpux_supply_save_state): Use gdb_byte.
7034 * hppa-tdep.c (hppa32_push_dummy_call)
7035 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7036 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7037 (slotN_contents, replace_slotN_contents): Change type of parameter
7038 to gdb_byte *.
7039 (fetch_instruction, ia64_pseudo_register_write)
7040 (ia64_register_to_value, ia64_value_to_register)
7041 (ia64_extract_return_value, ia64_store_return_value)
7042 (ia64_push_dummy_call): Use gdb_byte.
7043 * m32c-tdep.c (m32c_return_value): Remove cast.
7044 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7045 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7046 gdb_byte.
7047 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7048 * mn10300-tdep.c (mn10300_store_return_value)
7049 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7050 gdb_byte.
7051 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7052 (moxie_process_record): Remove casts.
7053 * ppc-ravenscar-thread.c (supply_register_at_address)
7054 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7055 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7056 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7057 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7058 * remote.c (compare_sections_command): Use gdb_byte.
7059 * score-tdep.c (score7_free_memblock): Change type of parameter to
7060 gdb_byte *.
7061 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7062 gdb_byte *. Use gdb_byte.
7063 (sh_push_dummy_call_fpu): Use gdb_byte.
7064 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7065 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7066 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7067 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7068 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7069 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7070 (sh64_store_return_value, sh64_register_convert_to_virtual):
7071 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7072 (sh64_pseudo_register_write): Use gdb_byte.
7073 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7074 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7075 buffer.
7076 (irix_current_sos): Use gdb_byte.
7077 * solib-som.c (som_current_sos): Use gdb_byte.
7078 * sparc-ravenscar-thread.c (supply_register_at_address)
7079 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7080 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7081 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7082 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7083 'gdb_byte *'.
7084 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7085 'gdb_byte *'.
7086 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7087 * xstormy16-tdep.c (xstormy16_extract_return_value)
7088 (xstormy16_store_return_value): Change parameter type to
7089 'gdb_byte *'. Adjust.
7090 (xstormy16_push_dummy_call): Use gdb_byte.
7091 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7092 (call0_analyze_prologue, execute_code): Use gdb_byte.
7093
7094 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7095 Pedro Alves <palves@redhat.com>
7096
7097 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7098 value contents.
7099
7100 2013-04-17 Doug Evans <dje@google.com>
7101
7102 * dwarf2read.c (struct signatured_type): New member type.
7103 (struct attribute): Replace member signatured_type with signature.
7104 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7105 (read_call_site_scope): Call follow_die_ref instead of
7106 follow_die_ref_or_sig.
7107 (read_structure_type): Rewrite handling of signatured types.
7108 (read_enumeration_type): Ditto.
7109 (read_attribute_value): Update.
7110 (build_error_marker_type): New function.
7111 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7112 Don't call error for bad types, just build an error marker type.
7113 (dump_die_shallow): Update.
7114 (follow_die_sig_1): Renamed from follow_die_sig.
7115 Don't call error for bad types, instead return NULL.
7116 (follow_die_sig): New function.
7117 (get_signatured_type, get_DW_AT_signature_type): New functions.
7118
7119 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7120
7121 * aarch64-tdep.c (aarch64_write_pc): Removed.
7122 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7123 function.
7124
7125 2013-04-17 Yao Qi <yao@codesourcery.com>
7126
7127 * top.c (print_gdb_configuration): Print configure-time
7128 parameter on using libbabeltrace or not.
7129
7130 2013-04-16 Pedro Alves <palves@redhat.com>
7131
7132 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7133
7134 2013-04-16 Pedro Alves <palves@redhat.com>
7135
7136 * common/glibc_thread_db.h: Update from upstream glibc
7137 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7138
7139 2013-04-16 Pedro Alves <palves@redhat.com>
7140
7141 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7142 * common/glibc_thread_db.h: ... this new file ...
7143 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7144
7145 2013-04-16 Will Newton <will.newton@gmail.com>
7146 Pedro Alves <palves@redhat.com>
7147
7148 PR build/11881
7149
7150 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7151 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7152 HAVE_THREAD_DB_H.
7153
7154 2013-04-16 Pedro Alves <palves@redhat.com>
7155 Eli Zaretskii <eliz@gnu.org>
7156
7157 * NEWS: Mention "set foo unlimited".
7158
7159 2013-04-15 Doug Evans <dje@google.com>
7160
7161 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7162 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7163 (create_dwo_cu_reader): Renamed from
7164 create_dwo_debug_info_hash_table_reader.
7165 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7166 Remove support for multiple CUs in a DWO file.
7167 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7168
7169 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7170 instead of phex.
7171 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7172 (create_dwo_in_dwp): Ditto.
7173
7174 2013-04-15 Tom Tromey <tromey@redhat.com>
7175
7176 * NEWS: Move recent entries into "since 7.6" section.
7177
7178 2013-04-15 Tom Tromey <tromey@redhat.com>
7179
7180 PR c++/13588:
7181 * NEWS: Update.
7182 * break-catch-throw.c (struct exception_catchpoint)
7183 <exception_rx, pattern>: New fields.
7184 (fetch_probe_arguments, dtor_exception_catchpoint)
7185 (check_status_exception_catchpoint)
7186 (print_one_detail_exception_catchpoint): New functions.
7187 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7188 Compile regular expression if needed.
7189 (extract_exception_regexp): New function.
7190 (catch_exception_command_1): Use extract_exception_regexp.
7191 (compute_exception): Use fetch_probe_arguments.
7192 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7193 and check_status fields.
7194 * cp-abi.c (cplus_typename_from_type_info): New function.
7195 * cp-abi.h (cplus_typename_from_type_info): Declare.
7196 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7197 * gdb_regex.h (compile_rx_or_error): Declare.
7198 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7199 comment.
7200 (init_gnuv3_ops): Set get_type_from_type_info field.
7201 * probe.c (compile_rx_or_error): Move...
7202 * utils.c (compile_rx_or_error): ... here.
7203
7204 2013-04-15 Tom Tromey <tromey@redhat.com>
7205
7206 PR c++/15176:
7207 * NEWS: Update.
7208 * break-catch-throw.c (compute_exception): New function.
7209 (exception_funcs): New global.
7210 (_initialize_break_catch_throw): Create $_exception.
7211 * cp-abi.c (cplus_type_from_type_info): New function.
7212 * cp-abi.h (cplus_type_from_type_info): Declare.
7213 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7214 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7215 (gnuv3_get_type_from_type_info): New functions.
7216 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7217
7218 2013-04-15 Tom Tromey <tromey@redhat.com>
7219
7220 * break-catch-throw.c (struct exception_names): New.
7221 (exception_functions): Change type.
7222 (re_set_exception_catchpoint): Look for SDT probes.
7223
7224 2013-04-15 Tom Tromey <tromey@redhat.com>
7225
7226 PR c++/10119:
7227 * break-catch-throw.c (exception_functions): New global.
7228 (gnu_v3_exception_catchpoint_ops): Move earlier.
7229 (struct exception_catchpoint): New.
7230 (classify_exception_breakpoint): Rewrite.
7231 (re_set_exception_catchpoint): New function.
7232 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7233 Allocate a struct exception_catchpoint.
7234 (catch_exception_command_1): Update.
7235 (initialize_throw_catchpoint_ops): Set 're_set' method.
7236
7237 2013-04-15 Tom Tromey <tromey@redhat.com>
7238
7239 * Makefile.in (SFILES): Add break-catch-throw.c
7240 (COMMON_OBS): Add break-catch-throw.o.
7241 * break-catch-throw.c: New file.
7242 * breakpoint.c: Move exception-catching code to new file.
7243 (ep_parse_optional_if_clause): No longer static.
7244 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7245
7246 2013-04-15 Tom Tromey <tromey@redhat.com>
7247
7248 PR c++/9065:
7249 * NEWS: Update.
7250 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7251 * c-exp.y (TYPEID): New token.
7252 (exp): Add new TYPEID productions.
7253 (ident_tokens): Add "typeid".
7254 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7255 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7256 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7257 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7258 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7259 case.
7260 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7261 (build_std_type_info_type, gnuv3_get_typeid_type)
7262 (gnuv3_get_typeid): New functions.
7263 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7264 new fields on ABI object.
7265 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7266 * std-operator.def (OP_TYPEID): New.
7267
7268 2013-04-15 Tom Tromey <tromey@redhat.com>
7269
7270 * elfread.c (elf_symtab_read): Install versioned symbol under
7271 unversioned name as well.
7272
7273 2013-04-15 Tom Tromey <tromey@redhat.com>
7274
7275 PR c++/11990:
7276 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7277 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7278 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7279 (gdb_demangle): New function.
7280 * cp-support.h (gdb_demangle): Declare.
7281 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7282 (dwarf2_name): Use gdb_demangle.
7283 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7284 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7285 suffixes from name.
7286 (gnuv3_print_method_ptr): Use gdb_demangle.
7287 * jv-lang.c (java_demangle): Use gdb_demangle.
7288 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7289 * language.c (unk_lang_demangle): Use gdb_demangle.
7290 * symtab.c (symbol_find_demangled_name)
7291 (demangle_for_lookup): Use gdb_demangle.
7292
7293 2013-04-15 Tom Tromey <tromey@redhat.com>
7294
7295 PR c++/12824:
7296 * NEWS: Update.
7297 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7298 New constant.
7299 (classify_exception_breakpoint): New function.
7300 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7301 (print_mention_exception_catchpoint)
7302 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7303 (catch_exception_command_1): Handle "rethrow" catchpoint.
7304 (catch_rethrow_command): New function.
7305 (_initialize_breakpoint): Add "catch rethrow" command.
7306
7307 2013-04-15 Pierre Muller <muller@sourceware.org>
7308
7309 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7310 set_gdbarch_write_pc as deprecated anymore.
7311
7312 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7313
7314 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7315 declarations.
7316
7317 2013-04-13 Yao Qi <yao@codesourcery.com>
7318
7319 * ctf.c (_initialize_ctf): Include "completer.h".
7320 Call add_target_with_completer instead of add_target.
7321
7322 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7323
7324 Fix GDB regression related to PR binutils/14813.
7325 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7326 * minidebug.c (lzma_close): Add return value comment.
7327 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7328 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7329 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7330
7331 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7332
7333 * config.in: Regenerate.
7334
7335 2013-04-12 Tom Tromey <tromey@redhat.com>
7336
7337 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7338 const.
7339 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7340 (struct die_reader_specs) <buffer>: Likewise.
7341 (die_reader_func_ftype): Make 'info_ptr' const.
7342 (struct line_header) <include_dirs, statement_program_start,
7343 statement_program_end>: Now const.
7344 (struct file_entry) <name>: Likewise.
7345 (struct partial_die_info) <sibling>: Likewise.
7346 (struct dwarf_block) <data>: Likewise.
7347 (dwarf2_read_section): Remove cast.
7348 (dwarf2_get_section_info): Make 'bufp' const.
7349 (read_index_from_section): Constify.
7350 (dw2_get_file_names_reader): Make 'info_ptr' const.
7351 (dw2_get_primary_filename_reader): Likewise.
7352 (read_comp_unit_head): Make 'info_ptr' and return type const.
7353 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7354 Likewise.
7355 (read_abbrev_offset): Constify.
7356 (dwarf2_create_include_psymtab): Make 'name' const.
7357 (create_debug_types_hash_table): Update.
7358 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7359 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7360 Constify.
7361 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7362 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7363 (read_comp_units_from_section): Constify.
7364 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7365 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7366 const.
7367 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7368 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7369 (create_dwp_hash_table, dwarf2_ranges_read)
7370 (dwarf2_record_block_ranges): Constify.
7371 (read_die_and_children, read_die_and_siblings_1)
7372 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7373 const.
7374 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7375 (abbrev_table_read_table): Constify.
7376 (load_partial_dies): Make 'info_ptr' const.
7377 (read_partial_die, read_attribute_value, read_attribute): Make
7378 'info_ptr' and return type const.
7379 (read_address, read_initial_length)
7380 (read_checked_initial_length_and_offset, read_offset)
7381 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7382 const.
7383 (read_direct_string): Make 'buf' and return type const.
7384 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7385 (read_indirect_string): Make return type const.
7386 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7387 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7388 'info_ptr' const.
7389 (read_str_index): Make return type const.
7390 (add_include_dir): Make 'include_dir' const.
7391 (add_file_name): Make 'name' const.
7392 (dwarf_decode_line_header): Constify.
7393 (psymtab_include_file_name): Make return type const.
7394 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7395 (dwarf2_start_subfile): Make 'filename' const.
7396 (dwarf2_const_value_attr): Make 'bytes' const.
7397 (read_signatured_type_reader): Make 'info_ptr' const.
7398 (decode_locdesc): Constify.
7399 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7400 const.
7401 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7402 'mac_end', and return type const.
7403 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7404 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7405 type const.
7406 (per_cu_header_read_in): Constify.
7407 * symfile.h (dwarf2_get_section_info): Update.
7408
7409 2013-04-12 Tom Tromey <tromey@redhat.com>
7410
7411 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7412
7413 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7414
7415 * NEWS: Mention "show configuration", --configuration.
7416 * top.c (print_gdb_configuration): New function, displays the
7417 details about GDB configure-time parameters.
7418 (print_gdb_version): Mention "show configuration".
7419 * cli/cli-cmds.c (show_configuration): New function.
7420 (_initialize_cli_cmds): Add the "show configuration" command.
7421 * main.c (captured_main) <print_configuration>: New static var.
7422 <long_options>: Use it.
7423 If --configuration was given, call print_gdb_configuration.
7424
7425 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7426 Pedro Alves <palves@redhat.com>
7427
7428 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7429 (generated_files): Add gcore.
7430 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7431 HAVE_NATIVE_GCORE_HOST.
7432 (gcore): New.
7433 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7434 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7435 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7436 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7437 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7438 Add HAVE_NATIVE_GCORE_HOST.
7439 * configure: Regenerate.
7440 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7441 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7442 AC_CONFIG_FILES for gcore.
7443 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7444 gdb_have_gcore.
7445 * gdb_gcore.sh: Rename to ...
7446 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7447 and GCORE_TRANSFORM_NAME substitutions.
7448
7449 Fix parsing tabs in ${gdb_target_obs}.
7450 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7451
7452 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7453
7454 * remote.c (unpush_and_perror): Add output message final dot.
7455
7456 2013-04-11 Yao Qi <yao@codesourcery.com>
7457
7458 * tracepoint.c (tfile_interp_line): Fit parameters line and
7459 utpp in one line.
7460
7461 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7462
7463 * solib.c (solib_map_sections): Remove code overwriting
7464 SO->SO_NAME with the bfd's filename.
7465
7466 2013-04-10 Pedro Alves <palves@redhat.com>
7467
7468 * cli/cli-decode.c (integer_unlimited_completer): New function.
7469 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7470 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7471 completer.
7472 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7473 (is_unlimited_literal): New function.
7474 (do_set_command): Handle literal "unlimited" arguments.
7475 * frame.c (_initialize_frame) <set backtrace limit>: Document
7476 "unlimited".
7477 * printcmd.c (_initialize_printcmd) <set print
7478 max-symbolic-offset>: Add help text.
7479 * record-full.c (_initialize_record_full) <set record full
7480 insn-number-max>: Likewise.
7481 * record.c (_initialize_record) <set record
7482 instruction-history-size, set record function-call-history-size>:
7483 Add help text.
7484 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7485 help text.
7486 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7487 Likewise.
7488 * source.c (_initialize_source) <set listsize>: Add help text.
7489 * utils.c (initialize_utils) <set height, set width>: Likewise.
7490 <set pagination>: Mention "set height unlimited".
7491 * valprint.c (_initialize_valprint) <set print elements, set print
7492 repeats>: Document "unlimited".
7493
7494 2013-04-10 Pedro Alves <palves@redhat.com>
7495
7496 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7497 instead of disconnect_tracing.
7498 * infcmd.c (detach_command, disconnect_command): Call
7499 query_if_trace_running. Adjust.
7500 * top.c: Include "tracepoint.h".
7501 (quit_target): Delete. Contents moved ...
7502 (quit_force): ... here. Wrap each stage of teardown in
7503 TRY_CATCH. Call disconnect_tracing before detaching.
7504
7505 2013-04-10 Hui Zhu <hui@codesourcery.com>
7506 Yao Qi <yao@codesourcery.com>
7507
7508 * configure.ac: Check libbabeltrace is installed.
7509 * config.in: Regenerate.
7510 * configure: Regenerate.
7511 * Makefile.in (LIBBABELTRACE): New.
7512 (CLIBS): Add LIBBABELTRACE.
7513 * ctf.c: Include "exec.h".
7514 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7515 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7516 (ctf_save_metadata_header): Define new type aliases in
7517 metadata.
7518 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7519 in metadata. Start a new faked packet for trace status.
7520 (ctf_write_status): Write trace status to CTF.
7521 (ctf_write_uploaded_tsv): Write TSV to CTF.
7522 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7523 (ctf_write_definition_end): End the faked packet.
7524
7525 (ctx, ctf_iter, trace_dirname): New.
7526 (start_pos): New variable.
7527 (ctf_destroy, ctf_open_dir, ctf_open): New.
7528 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7529 macros.
7530 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7531 (ctf_fetch_registers, ctf_xfer_partial): New.
7532 (ctf_get_trace_state_variable_value): New.
7533 (ctf_get_tpnum_from_frame_event): New.
7534 (ctf_get_traceframe_address): New.
7535 (ctf_trace_find, ctf_has_stack): New.
7536 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7537 (ctf_get_trace_status, ctf_read_status): New.
7538 (_initialize_ctf): New.
7539 * tracepoint.c (get_tracepoint_number): New
7540 (get_uploaded_tsv): Remove 'static'.
7541 (struct traceframe_info, trace_regblock_size): Move it to ...
7542 * tracepoint.h: ... here.
7543 (get_tracepoint_number): Declare it.
7544 (get_uploaded_tsv): Declare it.
7545
7546 * NEWS: Mention new configure option.
7547
7548 2013-04-10 Pedro Alves <palves@redhat.com>
7549 Hui Zhu <hui@codesourcery.com>
7550
7551 * breakpoint.c (dprintf_re_set): New.
7552 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7553 to dprintf_re_set.
7554
7555 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7556
7557 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7558 Remove solib-svr4.o from the list.
7559
7560 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7561
7562 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7563 Use gdb_assert_not_reached instead of invalid boolean expression.
7564
7565 2013-04-09 Pedro Alves <palves@redhat.com>
7566
7567 * remote.c (unpush_and_perror): New function.
7568 (readchar, remote_serial_write): Use it.
7569
7570 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7571
7572 * NEWS: Mention new btrace RSP packets.
7573
7574 2013-04-08 Tom Tromey <tromey@redhat.com>
7575
7576 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7577 long.
7578
7579 2013-04-08 Tom Tromey <tromey@redhat.com>
7580
7581 * maint.c (print_bfd_section_info): Print the section index.
7582 * symmisc.c (dump_msymbols): Print the section index.
7583
7584 2013-04-08 Tom Tromey <tromey@redhat.com>
7585
7586 PR symtab/8424:
7587 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7588 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7589 * breakpoint.c (resolve_sal_pc): Update.
7590 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7591 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7592 (minsym_lookup_iterator_cb): Use it.
7593 (default_read_var_value): Update.
7594 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7595 Update.
7596 * infcmd.c (jump_command): Update.
7597 * linespec.c (minsym_found): Update.
7598 * maint.c (maintenance_translate_address): Update.
7599 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7600 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7601 * parse.c (write_exp_msymbol): Update.
7602 * printcmd.c (address_info): Update.
7603 * psymtab.c (find_pc_sect_psymbol): Update.
7604 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7605 SYMBOL_OBJ_SECTION.
7606 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7607 Don't initialize SYMBOL_OBJ_SECTION.
7608 * spu-tdep.c (spu_catch_start): Update.
7609 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7610 * symmisc.c (dump_msymbols, print_symbol): Update.
7611 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7612 how fallback section is computed.
7613 (fixup_symbol_section): Update.
7614 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7615 Update.
7616 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7617 Initialize SYMBOL_SECTION.
7618 * symtab.h (struct general_symbol_info) <section>: Update comment.
7619 <obj_section>: Remove.
7620 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7621 (SYMBOL_OBJFILE): New macro.
7622
7623 2013-04-08 Tom Tromey <tromey@redhat.com>
7624
7625 * coffread.c (record_minimal_symbol): Update.
7626 * dbxread.c (record_minimal_symbol): Update.
7627 * elfread.c (record_minimal_symbol): Update.
7628 * machoread.c (macho_symtab_add_minsym): Update.
7629 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7630 Update.
7631 * minsyms.c (prim_record_minimal_symbol): Update.
7632 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7633 argument.
7634 (prim_record_minimal_symbol_and_info): Likewise.
7635 * minsyms.h (prim_record_minimal_symbol_full)
7636 (prim_record_minimal_symbol_and_info): Update.
7637 * symtab.c (allocate_symbol, initialize_symbol)
7638 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7639 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7640 Update.
7641
7642 2013-04-08 Tom Tromey <tromey@redhat.com>
7643
7644 PR symtab/8423:
7645 * solib-som.c (som_solib_section_offsets): Use BFD section
7646 indices. Set offsets for all sections.
7647 * somread.c (som_symtab_read): Compute BFD section for
7648 symbol. Use prim_record_minimal_symbol_and_info.
7649 (som_symfile_read): Fix comment.
7650 (struct find_section_offset_arg): New.
7651 (find_section_offset, set_section_index): New functions.
7652 (som_symfile_offsets): Use set_section_index to compute
7653 section indices.
7654
7655 2013-04-08 Tom Tromey <tromey@redhat.com>
7656
7657 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7658 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7659 gdb_bfd_section_index.
7660 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7661 New functions.
7662 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7663 Declare.
7664 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7665 Update.
7666 * objfiles.c (add_to_objfile_sections_full): New function.
7667 (add_to_objfile_sections): Use it.
7668 (build_section_table): Rewrite.
7669 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7670 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7671 (struct objfile) <sections>: Update comment.
7672 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7673 is NULL.
7674 (ALL_OBJSECTIONS): Use it.
7675 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7676 * solib-frv.c (frv_relocate_main_executable): Update.
7677 * solib-target.c (solib_target_relocate_section_addresses):
7678 Use gdb_bfd_section_index.
7679 * symfile.c (build_section_addr_info_from_section_table):
7680 Use gdb_bfd_section_index.
7681 (build_section_addr_info_from_bfd, place_section): Likewise.
7682 * symtab.c (fixup_section): Update.
7683 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7684
7685 2013-04-08 Tom Tromey <tromey@redhat.com>
7686
7687 * minsyms.h (struct bound_minimal_symbol): New.
7688 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7689 Remove objfile argument.
7690 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7691 Return bound_minimal_symbol.
7692 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7693 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7694 Return bound_minimal_symbol.
7695 (in_gnu_ifunc_stub): Update.
7696 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7697 Remove 'objfile_p' argument.
7698 (lookup_solib_trampoline_symbol_by_pc): Update.
7699 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7700 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7701 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7702 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7703 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7704 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7705 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7706 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7707 stack.c, symtab.c, tui/tui-disasm.c: Update.
7708
7709 2013-04-08 Tom Tromey <tromey@redhat.com>
7710
7711 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7712 Use symbol's obstack, not an objfile.
7713 * coffread.c (process_coff_symbol): Update.
7714 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7715 * jv-lang.c (add_class_symbol): Update.
7716 * mdebugread.c (new_symbol): Update.
7717 * minsyms.c (prim_record_minimal_symbol_full)
7718 (terminate_minimal_symbol_table): Update.
7719 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7720 * stabsread.c (define_symbol, read_enum_type): Update.
7721 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7722 Handle Ada specially.
7723 (symbol_set_language): Add 'obstack' argument.
7724 (symbol_set_names): Update.
7725 (symbol_natural_name, symbol_demangled_name): Always use
7726 ada_decode_symbol.
7727 * symtab.h (struct general_symbol_info)
7728 <language_specific::obstack>: New field.
7729 <ada_mangled>: New field.
7730 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7731 (symbol_set_language): Update.
7732
7733 2013-04-08 Tom Tromey <tromey@redhat.com>
7734
7735 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7736 Take an obstack, not an objfile.
7737 (symbol_set_names): Update.
7738 * symtab.h (symbol_set_demangled_name): Update.
7739
7740 2013-04-08 Tom Tromey <tromey@redhat.com>
7741
7742 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7743 allocate_symbol.
7744 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7745 (read_func_scope): Call allocate_template_symbol.
7746 (new_symbol_full): Call allocate_symbol.
7747 * jit.c (finalize_symtab): Call allocate_symbol.
7748 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7749 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7750 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7751 (common_block_end): Call allocate_symbol.
7752 * symtab.c (allocate_symbol, initialize_symbol)
7753 (allocate_template_symbol): New functions.
7754 * symtab.c (allocate_symbol, initialize_symbol)
7755 (allocate_template_symbol): Declare.
7756 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7757
7758 2013-04-08 Pedro Alves <palves@redhat.com>
7759 Keith Seitz <keiths@redhat.com>
7760
7761 * breakpoint.c (create_breakpoint): Rename
7762 "parse_condition_and_thread" parameter to "parse_arg". Update
7763 describing comment. If !PARSE_ARG, then error out if ARG is not
7764 the empty string after extracting the location.
7765 * breakpoint.h (create_breakpoint): Rename
7766 "parse_condition_and_thread" parameter to "parse_arg".
7767
7768 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7769
7770 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7771
7772 2013-04-07 Yao Qi <yao@codesourcery.com>
7773
7774 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7775 and 'addr2' to CORE_ADDR.
7776 * target.c (update_current_target): Update.
7777 * target.h (struct target_ops) <to_trace_find>: Change parameter
7778 type to CORE_ADDR.
7779 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7780 'addr2' to CORE_ADDR.
7781 (tfile_trace_find): Likewise.
7782 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7783 Change local variable 'addr' to type CORE_ADDR.
7784 * tracepoint.h (tfind_1): Update declaration.
7785
7786 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7787
7788 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7789 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7790 Include main.h.
7791
7792 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7793 here...
7794 * main.h (windows_get_absolute_argv0): ...to here.
7795
7796 2013-04-05 Doug Evans <dje@google.com>
7797
7798 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7799 (read_cutu_die_from_dwo): Add comments.
7800 (read_structure_type): Update comment.
7801 (read_enumeration_type, read_namespace_type): Update comment.
7802 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7803
7804 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7805
7806 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7807 * Makefile.in (gdb.z): Remove.
7808 (install-only): Remove $(man1dir) and gdb.1 installation.
7809 * gdb.1: Remove.
7810
7811 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7812
7813 Fix compatibility with Linux kernel 3.8.3.
7814 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7815 to more inner block. Remove parsing of NUMBER from outer block.
7816 Parse NUMBER only if KEYWORD has been identified.
7817
7818 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7819
7820 Fix variable name shadowing.
7821 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7822 filename to mapsfilename and update its uses.
7823
7824 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7825
7826 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7827 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7828 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7829 details of the problem.
7830
7831 2013-04-04 Pedro Alves <palves@redhat.com>
7832 Hui Zhu <hui@codesourcery.com>
7833
7834 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7835 tracepoint, reset its STEP_COUNT and call validate_actionline.
7836
7837 2013-04-03 Doug Evans <dje@google.com>
7838
7839 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7840 read_die_and_siblings.
7841 (read_die_and_siblings): New function.
7842 (read_cutu_die_from_dwo): Dump die if requested.
7843 (read_die_and_children): Call read_full_die_1 and
7844 read_die_and_siblings_1.
7845 (read_full_die): Dump die if requested.
7846
7847 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7848
7849 * dwarf2read.c (struct dwo_file): New member comp_dir.
7850 Rename member name to dwo_name. All uses updated.
7851 (hash_dwo_file): Include comp_dir in computation.
7852 (eq_dwo_file): Ditto.
7853 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7854 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7855
7856 * psymtab.c (read_psymtabs_with_fullname): Don't call
7857 psymtab_to_fullname if the basenames are different.
7858
7859 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7860
7861 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7862 New entry about "fullname" presence.
7863
7864 2013-04-03 Pedro Alves <palves@redhat.com>
7865
7866 * NEWS: Mention x86_64/Cygwin as new native configuration.
7867
7868 2013-04-02 Doug Evans <dje@google.com>
7869
7870 * dwarf2read.c (read_structure_type): Fix typo in comment.
7871
7872 2013-04-02 Pedro Alves <palves@redhat.com>
7873
7874 * NEWS: Mention "set/show debug aarch64", "set/show debug
7875 coff-pe-read" and "set/show debug mach-o".
7876
7877 2013-04-02 Pedro Alves <palves@redhat.com>
7878
7879 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7880
7881 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7882
7883 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7884 gdb_string.h is now in common/.
7885
7886 2013-04-02 Pedro Alves <palves@redhat.com>
7887
7888 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7889 under "New options".
7890
7891 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7892
7893 Revert this patch:
7894 PR gdb/15275
7895 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7896
7897 2013-04-02 Pedro Alves <palves@redhat.com>
7898
7899 PR gdb/15275
7900
7901 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7902 (remote_serial_write): New function.
7903 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7904
7905 2013-04-01 Jiong Wang <jiwang@tilera.com>
7906
7907 * NEWS: Mention TILE-Gx in "New native configurations" and
7908 "New targets" sections.
7909
7910 2013-04-01 Doug Evans <dje@google.com>
7911
7912 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7913 (process_enumeration_scope): Simplify.
7914
7915 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7916 type_unit_group ...
7917 (struct signatured_type): ... to here.
7918 (sig_type_ptr): New typedef.
7919 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7920 out of union 't'. All uses updated.
7921 (dw2_get_file_names_reader): Assert not called for a type unit.
7922 (dw2_get_file_names): Assert not called for a type unit or type
7923 unit group.
7924 (build_type_psymtabs_reader): Assert called for a type unit.
7925 (build_type_psymtab_dependencies): Assert called for a type unit group.
7926
7927 * dwarf2read.c (free_dwo_file): Add comment.
7928 (dwarf2_per_objfile_free): Unref dwp bfd.
7929
7930 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7931
7932 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7933 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7934 (read_pe_exported_syms): Remove unused 'exportix'.
7935 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7936 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7937 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7938
7939 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7940
7941 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7942 (print_it_watchpoint): Remove unused 'bl'.
7943 (say_where): Remove unused 'uiout'.
7944 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7945 (bkpt_breakpoint_hit): Remove unused 'b'.
7946 (internal_bkpt_print_it): Remove unused 'uiout'.
7947 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7948
7949 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7950
7951 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7952 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7953
7954 2013-03-29 Doug Evans <dje@google.com>
7955
7956 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7957 Delete arg is_dwp. All callers updated.
7958 (open_dwp_file): New function.
7959 (open_and_init_dwp_file): Call it.
7960 (get_dwp_file): New function.
7961 (lookup_dwo_cutu): Call it.
7962
7963 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7964 unnecessary, cleanup.
7965
7966 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7967
7968 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7969 (lookup_dwo_unit): New function.
7970 (init_cutu_and_read_dies): Move DWO handling to new functions.
7971
7972 * dwarf2read.c (struct signatured_type): Tweak comment.
7973 (struct dwo_unit): Tweak comment.
7974 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7975 (create_dwo_debug_info_hash_table): Tweak comment.
7976 (dwarf2_per_cu_offset_and_type): Tweak comment.
7977
7978 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7979 missing .debug_types section.
7980
7981 2013-03-29 Yao Qi <yao@codesourcery.com>
7982
7983 * corelow.c: Include "completer.h".
7984 (_initialize_corelow): Call add_target_with_completer with
7985 argument 'filename_completer'.
7986 * tracepoint.c: Likewise.
7987 * exec.c (_initialize_exec): Likewise.
7988 * target.c (add_target): Rename to ...
7989 (add_target_with_completer): ... this. Call set_cmd_completer
7990 if parameter completer is not NULL.
7991 (add_target): New.
7992 * target.h: Include "command.h".
7993 (add_target_with_completer): Declare it.
7994
7995 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7996
7997 * coffread.c (is_import_fixup_symbol): New function.
7998 (record_minimal_symbol): Use is_import_fixup_symbol to
7999 detect import fixup symbols, and discard them.
8000
8001 2013-03-28 Doug Evans <dje@google.com>
8002
8003 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8004 types hash table until we know we need it.
8005
8006 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8007 index numbers.
8008
8009 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8010 All callers updated.
8011 (dw2_print_stats): Print #read CUs too.
8012 (dump_die_shallow): Print signatured types better.
8013
8014 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8015 info_or_types_section to section. All uses updated.
8016 (struct dwo_unit): Ditto.
8017
8018 2013-03-28 Pedro Alves <palves@redhat.com>
8019
8020 * NEWS (New options): New section.
8021 (New options): Mention set/show remote trace-status-packet.
8022 * remote.c (PACKET_qTStatus): New enumeration value.
8023 (remote_get_trace_status): Skip sending qTStatus if the packet is
8024 disabled. Use packet_ok.
8025 (_initialize_remote): Register a configuration command for
8026 qTStatus packet.
8027
8028 2013-03-28 Doug Evans <dje@google.com>
8029
8030 * symfile.c (find_separate_debug_file): Add comment.
8031 (terminate_after_last_dir_separator): Tweak comment.
8032
8033 * dwarf2read.c (create_partial_symtab): Add forward decl.
8034 (create_partial_symtab): Move to be closer to other psymtab functions.
8035 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8036
8037 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8038 (compute_symtab_includes): Remove unnecessary forward declaration.
8039 (die_needs_namespace): Add comment marking group of functions for
8040 dwarf2 name computation.
8041
8042 * typeprint.c (_initialize_typeprint): Improve type help text.
8043
8044 * python/python.c (finish_python_initialization): Provide suggestion
8045 for how to tell gdb to find its python files.
8046
8047 2013-03-28 Pedro Alves <palves@redhat.com>
8048
8049 PR gdb/15294
8050
8051 * source.c (_initialize_source): Change back "set listsize" to an
8052 integer command.
8053
8054 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8055
8056 PR gdb/15275
8057 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8058
8059 2013-03-27 Pedro Alves <palves@redhat.com>
8060
8061 * top.c (history_size): Rename to ...
8062 (history_size_setshow_var): ... this. Add comment.
8063 (show_commands): Use readline's 'history_length' instead of
8064 computing the history length by calling history_get in a loop.
8065 (set_history_size_command): Error out for sizes over INT_MAX.
8066 Restore previous history size on invalid size.
8067 (init_history): If HISTSIZE is negative, leave the history size as
8068 zero. Add comments.
8069 (init_main): Adjust.
8070
8071 2013-03-27 Pedro Alves <palves@redhat.com>
8072
8073 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8074 coff_pe_read" command to "set debug coff-pe-read".
8075
8076 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8077
8078 * record.c (command_size_to_target_size): Fix size comparison.
8079 Change parameter type from pointer to integer to integer.
8080 Update all users.
8081
8082 2013-03-27 Pierre Muller <muller@sourceware.org>
8083
8084 * windows-nat.c (handle_output_debug_string): Avoid typecast
8085 from integer of different size warning.
8086
8087 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8088
8089 * windows-nat.c (handle_output_debug_string): Add empty line
8090 after local block variable definition.
8091
8092 2013-03-26 Pedro Alves <palves@redhat.com>
8093
8094 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8095 (net_open): Make 'polls' local unsigned.
8096
8097 2013-03-26 Pedro Alves <palves@redhat.com>
8098
8099 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8100 a zuinteger command instead of uinteger.
8101
8102 2013-03-26 Pedro Alves <palves@redhat.com>
8103
8104 * record-full.c (record_full_insn_num): Make it unsigned.
8105 (record_full_check_insn_num, record_full_message)
8106 (record_full_registers_change, record_full_xfer_partial): Remove
8107 record_full_insn_max_num check (it's always != 0).
8108 (record_full_info, record_full_restore): Use %u as format string.
8109 (): Use %u as format string.
8110 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8111 check (it's always != 0).
8112
8113 2013-03-26 Pedro Alves <palves@redhat.com>
8114
8115 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8116 and "set dcache size" commands zuinteger instead of uinteger.
8117
8118 2013-03-26 Pedro Alves <palves@redhat.com>
8119
8120 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8121 command zuinteger instead of uinteger.
8122
8123 2013-03-26 Pedro Alves <palves@redhat.com>
8124
8125 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8126 zuinteger instead of uinteger.
8127
8128 2013-03-26 Pedro Alves <palves@redhat.com>
8129
8130 * record.c (record_insn_history_size_setshow_var)
8131 (record_call_history_size_setshow_var): New globals.
8132 (command_size_to_target_size): New function.
8133 (cmd_record_insn_history, cmd_record_call_history): Use
8134 command_size_to_target_size instead of cast.
8135 (validate_history_size, set_record_insn_history_size)
8136 (set_record_call_history_size): New functions.
8137 (_initialize_record): Install set_record_insn_history_size and
8138 set_record_call_history_size as "set" hooks of "set record
8139 instruction-history-size" and "set record
8140 function-call-history-size".
8141
8142 2013-03-26 Pedro Alves <palves@redhat.com>
8143
8144 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8145 use with history_max_entries use. Remove FIXME note.
8146
8147 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8148
8149 * record-btrace.c (record_btrace_close): Call
8150 record_btrace_auto_disable.
8151
8152 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8153
8154 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8155
8156 2013-03-25 Doug Evans <dje@google.com>
8157
8158 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8159
8160 2013-03-25 Tom Tromey <tromey@redhat.com>
8161
8162 PR symtab/11462:
8163 * c-exp.y (exp): Add new productions for destructors after '.' and
8164 '->'.
8165 (write_destructor_name): New function.
8166
8167 2013-03-25 Tom Tromey <tromey@redhat.com>
8168
8169 PR c++/9197:
8170 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8171 value_struct_elt, not lookup_struct_elt_type.
8172 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8173 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8174 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8175
8176 2013-03-25 Yao Qi <yao@codesourcery.com>
8177
8178 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8179 instead of '_mkdir'.
8180
8181 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8182
8183 * windows-nat.c (windows_get_absolute_argv0): New function.
8184 * windows-nat.h: Add its prototype.
8185
8186 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8187 Use IS_DIR_SEPARATOR instead of looking for a character inside
8188 SLASH_STRING. Include filenames.h.
8189 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8190 relocate_gdb_directory works when passed gdb_program_name.
8191 Include windows-nat.h.
8192
8193 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8194
8195 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8196 * remote.c (trace_error): Remove the special handling of '2'.
8197 (readchar) <SERIAL_EOF>
8198 (readchar) <SERIAL_ERROR>
8199 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8200 (remote_get_trace_status): Call throw_exception if EX is
8201 TARGET_CLOSE_ERROR.
8202 * utils.c (perror_with_name): Rename to ...
8203 (throw_perror_with_name): ... here. New parameter errcode, describe it
8204 in the function comment.
8205 (perror_with_name): New function wrapper.
8206 * utils.h (enum errors): New stub declaration.
8207 (throw_perror_with_name): New declaration.
8208
8209 2013-03-22 Pedro Alves <palves@redhat.com>
8210 Yao Qi <yao@codesourcery.com>
8211 Mark Kettenis <kettenis@gnu.org>
8212
8213 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8214 Don't let the user set the value to UINT_MAX directly.
8215 <var_integer>: Don't let the user set the value to INT_MAX
8216 directly.
8217
8218 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8219
8220 * remote.c (remote_unpush_target): New function.
8221 (remote_open_1): Remove two pop_target calls, update one comment, add
8222 comment to target_preopen call. Replace pop_target call by
8223 remote_unpush_target call.
8224 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8225 pop_target calls by remote_unpush_target calls.
8226
8227 2013-03-22 Pedro Alves <palves@redhat.com>
8228
8229 * linux-nat.c (linux_child_follow_fork): Don't call
8230 linux_enable_event_reporting.
8231 (linux_handle_extended_wait): Don't call
8232 linux_enable_event_reporting.
8233
8234 2013-03-22 Pedro Alves <palves@redhat.com>
8235
8236 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8237 use it to rewrite the trampoline buffers with type gdb_byte[], and
8238 undefine the macro. Remove char* cast.
8239
8240 2013-03-21 Doug Evans <dje@google.com>
8241
8242 New commands "mt set per-command {space,time,symtab} {on,off}".
8243 * NEWS: Add entry.
8244 * event-top.c: #include "maint.h".
8245 * main.c: #include "maint.h".
8246 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8247 timeval-utils.h, maint.h, cli/cli-setshow.h.
8248 (per_command_time, per_command_space): New static globals.
8249 (per_command_symtab): New static global.
8250 (per_command_setlist, per_command_showlist): New static globals.
8251 (struct cmd_stats): Move here from utils.c.
8252 (set_per_command_time): Renamed from set_display_time in utils.c
8253 and moved here. All callers updated.
8254 (set_per_command_space): Renamed from set_display_space in utils.c
8255 and moved here. All callers updated.
8256 (count_symtabs_and_blocks): New function.
8257 (report_command_stats): Moved here from utils.c. Add support for
8258 printing symtab stats. Only print data if enabled before command
8259 executed.
8260 (make_command_stats_cleanup): Ditto.
8261 (sert_per_command_cmd, show_per_command_cmd): New functions.
8262 (_initialize_maint_cmds): Add new commands
8263 mt set per-command {space,time,symtab} {on,off}.
8264 * maint.h: New file.
8265 * top.c: #include "maint.h".
8266 * utils.c (reset_prompt_for_continue_wait_time): New function.
8267 (get_prompt_for_continue_wait_time): New function.
8268 * utils.h (reset_prompt_for_continue_wait_time): Declare
8269 (get_prompt_for_continue_wait_time): Declare.
8270 (make_command_stats_cleanup): Moved to maint.h.
8271 (set_display_time, set_display_space): Moved to maint.h and renamed
8272 to set_per_command_time, set_per_command_space.
8273 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8274 parse_binary_operation and made non-static. Don't call error,
8275 just return an error marker. All callers updated.
8276 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8277
8278 2013-03-21 Tom Tromey <tromey@redhat.com>
8279
8280 * symfile.c (alloc_section_addr_info): Update header. Don't set
8281 'num_sections' field.
8282 (build_section_addr_info_from_section_table): Set 'num_sections'.
8283 (build_section_addr_info_from_bfd): Likewise.
8284 (build_section_addr_info_from_objfile): Remove dead loop
8285 condition.
8286 (free_section_addr_info): Unconditionally call xfree.
8287 (relative_addr_info_to_section_offsets, addrs_section_sort)
8288 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8289 condition.
8290 (syms_from_objfile_1): Remove dead 'if' condition. Check
8291 'num_sections'.
8292 (add_symbol_file_command): Set 'num_sections'.
8293 * symfile-mem.c (symbol_file_add_from_memory): Set
8294 'num_sections'.
8295 * somread.c (som_symfile_offsets): Remove dead loop condition.
8296 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8297 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8298
8299 2013-03-21 Tom Tromey <tromey@redhat.com>
8300
8301 * tracepoint.h (decode_agent_options): Add 'trace_string'
8302 argument.
8303 * tracepoint.c (decode_agent_options): Add 'trace_string'
8304 argument.
8305 (validate_actionline): Update.
8306 (collect_symbol): Add 'trace_string' argument.
8307 (struct add_local_symbols_data) <trace_string>: New field.
8308 (do_collect_symbol): Update.
8309 (add_local_symbols): Add 'trace_string' argument.
8310 (encode_actions_1): Update.
8311 (trace_dump_actions): Update.
8312 * dwarf2loc.c (access_memory): Update.
8313 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8314 * ax-general.c (new_agent_expr): Update.
8315 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8316 (gen_trace_for_return_address): Add argument.
8317 (trace_kludge, trace_string_kludge): Remove.
8318 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8319 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8320 (gen_trace_for_var): Add 'trace_string' argument.
8321 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8322 (gen_printf, agent_eval_command_one): Update.
8323
8324 2013-03-21 Tom Tromey <tromey@redhat.com>
8325
8326 PR exp/15109:
8327 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8328 Handle FILENAME token.
8329
8330 2013-03-21 Tom Tromey <tromey@redhat.com>
8331
8332 * c-exp.y (YYPRINT): Define.
8333 (c_print_token): New function.
8334
8335 2013-03-21 Tom Tromey <tromey@redhat.com>
8336
8337 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8338
8339 2013-03-21 Yao Qi <yao@codesourcery.com>
8340
8341 * ctf.c: Include "gdb_stat.h".
8342 [USE_WIN32API]: New macro 'mkdir'.
8343 (ctf_start): Use permission bits macros if they are defined.
8344
8345 2013-03-20 Keith Seitz <keiths@redhat.com>
8346
8347 * breakpoint.h (struct breakpoint): Add comment to
8348 extra_string indicating that this member is mallod'd.
8349 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8350
8351 2013-03-20 Pedro Alves <palves@redhat.com>
8352
8353 PR gdb/15289
8354
8355 * cli/cli-setshow.c (do_set_command)
8356 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8357 the result of parsing the command argument. Throw error if the
8358 value is greater than UINT_MAX. Print the invalid value with
8359 plongest.
8360 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8361 result of parsing the command argument. Throw error if the value
8362 is greater than INT_MAX, not greater or equal. Also throw error
8363 if the value is less than INT_MIN. Print the invalid value with
8364 plongest.
8365 <var_zuinteger_unlimited>: Throw error if the value is greater
8366 than INT_MAX, not greater or equal.
8367 (do_show_command) <var_integer, var_zinteger,
8368 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8369
8370 2013-03-20 Tom Tromey <tromey@redhat.com>
8371
8372 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8373 if possible.
8374 * dwarf2read.c (read_func_scope): Remove old FIXME.
8375 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8376 not LOC_COMPUTED.
8377 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8378 Unconditionally call via computed ops, if possible.
8379 * printcmd.c (address_info): Unconditionally call via computed ops,
8380 if possible.
8381 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8382 if possible.
8383 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8384 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8385 if possible.
8386
8387 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8388 Tom Tromey <tromey@redhat.com>
8389
8390 PR symtab/8421:
8391 * coffread.c (coff_register_index): New global.
8392 (process_coff_symbol, coff_read_enum_type): Set
8393 SYMBOL_ACLASS_INDEX.
8394 (_initialize_coffread): Initialize new global.
8395 * dwarf2loc.c (locexpr_find_frame_base_location)
8396 (dwarf2_block_frame_base_locexpr_funcs)
8397 (loclist_find_frame_base_location)
8398 (dwarf2_block_frame_base_loclist_funcs): New.
8399 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8400 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8401 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8402 (dwarf2_block_frame_base_loclist_funcs): New.
8403 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8404 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8405 globals.
8406 (read_func_scope): Update.
8407 (fixup_go_packaging, mark_common_block_symbol_computed)
8408 (var_decode_location, new_symbol_full, dwarf2_const_value):
8409 Set SYMBOL_ACLASS_INDEX.
8410 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8411 (_initialize_dwarf2_read): Initialize new globals.
8412 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8413 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8414 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8415 globals.
8416 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8417 (_initialize_mdebugread): Initialize new globals.
8418 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8419 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8420 (stab_register_index, stab_regparm_index): New globals.
8421 (define_symbol, read_enum_type, common_block_end): Set
8422 SYMBOL_ACLASS_INDEX.
8423 (_initialize_stabsread): Initialize new globals.
8424 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8425 globals.
8426 (MAX_SYMBOL_IMPLS): New define.
8427 (register_symbol_computed_impl, register_symbol_block_impl)
8428 (register_symbol_register_impl)
8429 (initialize_ordinary_address_classes): New functions.
8430 (_initialize_symtab): Call initialize_ordinary_address_classes.
8431 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8432 (struct symbol_impl): New.
8433 (SYMBOL_ACLASS_BITS): New define.
8434 (struct symbol) <aclass, ops>: Remove fields.
8435 <aclass_index>: New field.
8436 (symbol_impls): Declare.
8437 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8438 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8439 (register_symbol_computed_impl, register_symbol_block_impl)
8440 (register_symbol_register_impl): Declare.
8441 (struct symbol_computed_ops): Add location_has_loclist.
8442 (struct symbol_block_ops): New.
8443 (SYMBOL_BLOCK_OPS): New.
8444 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8445
8446 2013-03-20 Tom Tromey <tromey@redhat.com>
8447
8448 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8449 (print_partial_symbols, recursively_search_psymtabs): Use
8450 PSYMBOL_CLASS.
8451
8452 2013-03-20 Pierre Muller <muller@sourceware.org>
8453
8454 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8455 addtion, subtraction, multiplication and division binary operator.
8456
8457 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8458
8459 Code cleanup.
8460 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8461 * bsd-kvm.c (bsd_kvm_close): Likewise.
8462 * bsd-uthread.c (bsd_uthread_close): Likewise.
8463 * corelow.c (core_close): Likewise.
8464 (core_close_cleanup): Remove parameter quitting from a caller.
8465 * event-top.c (async_disconnect): Likewise.
8466 * exec.c (exec_close_1): Remove parameter quitting.
8467 * go32-nat.c (go32_close): Likewise.
8468 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8469 parameter quitting from a caller.
8470 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8471 variable.
8472 (mips_linux_close): Remove parameter quitting. Remove parameter
8473 quitting from a caller.
8474 * monitor.c (monitor_close): Remove parameter quitting.
8475 * monitor.h (monitor_close): Likewise.
8476 * record-btrace.c (record_btrace_close): Likewise.
8477 * record-full.c (record_full_close): Likewise.
8478 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8479 it also from fprintf_unfiltered.
8480 * remote-mips.c (mips_close): Remove parameter quitting.
8481 (mips_detach): Remove parameter quitting from a caller.
8482 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8483 (gdbsim_close): Remove duplicate function comment. Remove parameter
8484 quitting and remove it also from printf_filtered.
8485 * remote.c (remote_close): Remove parameter quitting.
8486 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8487 * target.c (update_current_target): Remove parameter int from to_close
8488 de_fault.
8489 (push_target, unpush_target, pop_target): Remove parameter quitting from
8490 a caller.
8491 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8492 Remove parameter quitting from a caller.
8493 (target_preopen): Remove parameter quitting from a caller.
8494 (target_close): Remove parameter quitting. Remove parameter quitting
8495 from a caller two times. Remove parameter quitting also from
8496 fprintf_unfiltered.
8497 * target.h (struct target_ops): Remove parameter quitting and as int
8498 from fields to_xclose and to_close.
8499 (extern struct target_ops current_target):
8500 (target_close, pop_all_targets): Remove parameter quitting. Update the
8501 comment.
8502 (pop_all_targets_above): Remove parameter quitting.
8503 * top.c (quit_target): Remove parameter quitting from a caller.
8504 * tracepoint.c (tfile_close): Remove parameter quitting.
8505 * windows-nat.c (windows_close): Remove parameter quitting.
8506
8507 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8508
8509 * windows-nat.c (handle_output_debug_string): Replace call
8510 to string_to_core_addr with call to strtoull.
8511
8512 2013-03-20 Yao Qi <yao@codesourcery.com>
8513
8514 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8515 and write it to CTF metadata.
8516
8517 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8518
8519 * windows-nat.c (handle_output_debug_string): Change type of n to
8520 SIZE_T to avoid crash on 64 bit systems.
8521
8522 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8523
8524 * python/python-internal.h (HAVE_SNPRINTF)
8525 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8526 about redefinition of snprintf by pyerrors.h.
8527
8528 2013-03-15 Steve Ellcey <sellcey@mips.com>
8529
8530 * remote-sim.c (sim_command_completer): Make char arguments const.
8531
8532 2013-03-15 Tom Tromey <tromey@redhat.com>
8533
8534 PR c++/15116:
8535 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8536
8537 2013-03-14 Tom Tromey <tromey@redhat.com>
8538
8539 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8540 New fields.
8541 (get_file_crc): Move from symfile.c.
8542 (gdb_bfd_crc): New function.
8543 * gdb_bfd.h (gdb_bfd_crc): Declare.
8544 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8545 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8546 (separate_debug_file_exists): Use gdb_bfd_crc.
8547
8548 2013-03-14 Tom Tromey <tromey@redhat.com>
8549
8550 * symfile.c (get_debug_link_info): Remove.
8551 (find_separate_debug_file_by_debuglink): Use
8552 bfd_get_debug_link_info.
8553
8554 2013-03-14 Tom Tromey <tromey@redhat.com>
8555
8556 * symtab.c (error_in_psymtab_expansion): New function.
8557 (lookup_symbol_aux_quick)
8558 (basic_lookup_transparent_type_quick): Remove "last resort"
8559 code. Use error_in_psymtab_expansion.
8560
8561 2013-03-14 Doug Evans <dje@google.com>
8562 Jan Kratochvil <jan.kratochvil@redhat.com>
8563
8564 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8565 any successful compare_filenames_for_search or FILENAME_CMP.
8566 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8567 * symtab.c (iterate_over_some_symtabs): Likewise.
8568
8569 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8570
8571 * source.c (print_source_lines_base): Make a local copy of
8572 symtab_to_fullname.
8573
8574 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8575 Jan Kratochvil <jan.kratochvil@redhat.com>
8576
8577 * source.c (print_source_lines_base): Suppress "file" for TUI.
8578
8579 2013-03-14 Keith Seitz <keiths@redhat.com>
8580 Alan Matsuoka <alanm@redhat.com>
8581
8582 PR c++/15203
8583 PR c++/15210
8584 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8585 TYPE_CODE_METHOD.
8586 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8587 symbols.
8588
8589 2013-03-14 Yao Qi <yao@codesourcery.com>
8590
8591 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8592 status to tfile if trace is stopped by command 'tstop'.
8593
8594 2013-03-14 Yao Qi <yao@codesourcery.com>
8595
8596 * tracepoint.c (tfile_write_status): Write trace notes and user
8597 name into tfile if they are not NULL.
8598
8599 2013-03-14 Hui Zhu <hui@codesourcery.com>
8600 Yao Qi <yao@codesourcery.com>
8601
8602 * Makefile.in (REMOTE_OBS): Add ctf.o.
8603 (SFILES): Add ctf.c.
8604 (HFILES_NO_SRCDIR): Add ctf.h.
8605 * ctf.c, ctf.h: New files.
8606 * tracepoint.c: Include 'ctf.h'.
8607 (collect_pseudocommand): Remove static.
8608 (trace_save_command): Parse option "-ctf".
8609 Produce different trace file writers per option.
8610 Adjust output message.
8611 (trace_save_tfile, trace_save_ctf): New.
8612 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8613 * mi/mi-main.c: Include 'ctf.h'.
8614 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8615 trace_save_tfile or trace_save_ctf.
8616 * NEWS: Mention these changes.
8617
8618 2013-03-14 Yao Qi <yao@codesourcery.com>
8619
8620 * tracepoint.c (trace_file_writer_xfree): New.
8621 (struct tfile_writer_data): New.
8622 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8623 (tfile_write_header, tfile_write_regblock_type): New.
8624 (tfile_write_status, tfile_write_uploaded_tsv): New.
8625 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8626 (tfile_write_raw_data, (tfile_end): New.
8627 (tfile_write_ops): New global variable.
8628 (TRACE_WRITE_R_BLOCK): New macro.
8629 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8630 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8631 (TRACE_WRITE_V_BLOCK): New macro.
8632 (trace_save): Add extra one parameter WRITER. Make it static.
8633 Use WRITER to writer trace.
8634 (tfile_trace_file_writer_new): New.
8635 (trace_save_command): Caller update.
8636 (trace_save_tfile): Write trace data in TFILE format.
8637 * tracepoint.h (struct trace_frame_write_ops): New.
8638 (struct trace_file_write_ops): New.
8639 (struct trace_file_writer): New.
8640 (trace_save): Remove its declaration.
8641 (trace_save_tfile): Declare it.
8642 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8643 instead of trace_save.
8644
8645 2013-03-13 Pedro Alves <palves@redhat.com>
8646
8647 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8648
8649 2013-03-13 Pedro Alves <palves@redhat.com>
8650
8651 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8652 commented out code.
8653 * demangle.c (current_demangling_style_string): Make it const.
8654 (set_demangling_command): Assert the demangling style is known.
8655 Remove all handling of unknown styles. Set
8656 'current_demangling_style_string' to an element of the
8657 demangling_style_names array.
8658 (set_demangling_style): Delete.
8659 (_initialize_demangler): Set current_demangling_style_string to the
8660 element of the demangling_style_names array that corresponds to
8661 the default demangling style. Remove FIXME note. Don't call
8662 set_demangling_style.
8663 * gdb-demangle.h (set_demangling_style): Remove declaration.
8664
8665 2013-03-13 Pedro Alves <palves@redhat.com>
8666
8667 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8668 fields const.
8669 (ada_make_symbol_completion_list): Make "text0" parameter const.
8670 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8671 * breakpoint.c (condition_completer): Make "text" and "word"
8672 parameters const. Adjust.
8673 (check_tracepoint_command): Adjust to validate_actionline
8674 prototype change.
8675 (catch_syscall_completer): Make "text" and "word" parameters
8676 const.
8677 * cli/cli-cmds.c (show_user): Make "comname" local const.
8678 (valid_command_p): Make "command" parameter const.
8679 (alias_command): Make "alias_prefix" and "command_prefix" locals
8680 const.
8681 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8682 (add_alias_cmd): Make "name" and "oldname" parameters const.
8683 Adjust. No longer make copy of OLDNAME.
8684 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8685 (add_setshow_cmd_full, add_setshow_enum_cmd)
8686 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8687 (add_setshow_filename_cmd, add_setshow_string_cmd)
8688 (add_setshow_string_noescape_cmd)
8689 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8690 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8691 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8692 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8693 Make "name" parameter const.
8694 (help_cmd): Rename "command" parameter to "arg". New const local
8695 "command".
8696 (find_cmd): Make "command" parameter const.
8697 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8698 deprecated_cmd_warning prototype change.
8699 (undef_cmd_error): Make "cmdtype" parameter const.
8700 (lookup_cmd): Make "line" parameter const.
8701 (deprecated_cmd_warning): Change type of "text" parameter to
8702 pointer to const char, from pointer to pointer to char. Adjust.
8703 (lookup_cmd_composition): Make "text" parameter const.
8704 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8705 parameters const.
8706 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8707 const.
8708 * cli/cli-script.c (validate_comname): Make "tem" local const.
8709 (define_command): New const local "tem_c". Use it in calls to
8710 lookup_cmd.
8711 (document_command): Make "tem" and "comfull" locals const.
8712 (show_user_1): Make "prefix" and "name" parameters const.
8713 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8714 const.
8715 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8716 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8717 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8718 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8719 (complete_on_enum, add_setshow_enum_cmd)
8720 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8721 (add_setshow_filename_cmd, add_setshow_string_cmd)
8722 (add_setshow_string_noescape_cmd)
8723 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8724 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8725 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8726 Change prototypes, constifying strings.
8727 * completer.c (noop_completer, filename_completer): Make "text"
8728 and "prefix" parameters const.
8729 (location_completer, expression_completer)
8730 (complete_line_internal): Make "text" and "prefix" parameters
8731 const and adjust.
8732 (command_completer, signal_completer): Make "text" and "prefix"
8733 parameters const.
8734 * completer.h (noop_completer, filename_completer)
8735 (expression_completer, location_completer, command_completer)
8736 (signal_completer): Change prototypes.
8737 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8738 parameters const.
8739 * cp-abi.c (cp_abi_completer): Likewise.
8740 * expression.h (parse_expression_for_completion): Change
8741 prototype.
8742 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8743 parameters const.
8744 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8745 * infrun.c (handle_completer): Make "text" and "word" parameters
8746 const.
8747 * interps.c (interpreter_completer): Make "text" and "word"
8748 parameters const.
8749 * language.h (struct language_defn)
8750 <la_make_symbol_completion_list>: Make "text" and "word"
8751 parameters const.
8752 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8753 (parse_exp_in_context): Rename to ...
8754 (parse_exp_in_context_1): ... this.
8755 (parse_exp_in_context): Reimplement, with const hack from
8756 parse_exp_1.
8757 (parse_expression_for_completion): Make "string" parameter const.
8758 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8759 to pointer to const char. Adjust.
8760 (print_command_1): Make "exp" parameter const.
8761 (output_command): Rename to ...
8762 (output_command_const): ... this. Make "exp" parameter const.
8763 (output_command): Reimplement.
8764 (x_command): Adjust.
8765 (display_command): Rename "exp" parameter to "arg". New "exp"
8766 local, const version of "arg".
8767 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8768 "cmd_name" local const.
8769 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8770 call.
8771 (cmdpy_completer): Make "text" and "word" parameters const.
8772 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8773 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8774 const.
8775 * remote.c (_initialize_remote): Make "cmd_name" local const.
8776 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8777 parameters const. Adjust.
8778 (completion_list_add_fields): Make "sym_text", "text" and "word"
8779 parameters const.
8780 (struct add_name_data) <sym_text, text, word>: Make fields const.
8781 (default_make_symbol_completion_list_break_on): Make "text" and
8782 "word" parameters const. Adjust locals.
8783 (default_make_symbol_completion_list)
8784 (make_symbol_completion_list, make_symbol_completion_type)
8785 (make_symbol_completion_list_fn): Make "text" and "word"
8786 parameters const.
8787 (make_file_symbol_completion_list): Make "text", "word" and
8788 "srcfile" parameters const. Adjust locals.
8789 (add_filename_to_list): Make "text" and "word" parameters const.
8790 (struct add_partial_filename_data) <text, word>: Make fields
8791 const.
8792 (make_source_files_completion_list): Make "text" and "word"
8793 parameters const.
8794 * symtab.h (default_make_symbol_completion_list_break_on)
8795 (default_make_symbol_completion_list, make_symbol_completion_list)
8796 (make_symbol_completion_type enum type_code)
8797 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8798 (make_source_files_completion_list): Change prototype.
8799 * top.c (execute_command): Adjust to pass pointer to pointer to
8800 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8801 change.
8802 (set_verbose): Make "cmdname" local const.
8803 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8804 and adjust.
8805 (validate_actionline): Make "line" parameter a pointer to const
8806 char, and adjust.
8807 (encode_actions_1): Make "action_exp" local const, and adjust.
8808 (encode_actions): Adjust.
8809 (replace_comma): Delete.
8810 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8811 const, and adjust. Don't frob the action string while splitting
8812 it at commas. Instead, make a copy of each split substring in
8813 turn.
8814 (trace_dump_command): Adjust to validate_actionline prototype
8815 change.
8816 * tracepoint.h (decode_agent_options, decode_agent_options)
8817 (encode_actions, validate_actionline): Change prototypes.
8818 * valprint.h (output_command): Delete declaration.
8819 (output_command_const): Declare.
8820 * value.c (function_destroyer): Cast const away in xfree call.
8821
8822 2013-03-13 Pedro Alves <palves@redhat.com>
8823
8824 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8825 rather than casting 'const char * const *' to 'const char **'.
8826 * ada-lex.l (processInt): Make "trailer" local const. Remove
8827 'const char **' cast.
8828 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8829 locals, and use those as strtol output pointer, instead than doing
8830 invalid casts to from 'const char **' to 'char **'.
8831 (_initialize_demangle): Remove cast.
8832 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8833 locals, and use those as strtol output pointer, instead than doing
8834 invalid casts to from 'const char **' to 'char **'.
8835 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8836 casts.
8837 * stap-probe.c (stap_parse_register_operand)
8838 (stap_parse_single_operand): Likewise.
8839
8840 2013-03-13 Yao Qi <yao@codesourcery.com>
8841
8842 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8843 the last matched 'V' blcok in trace frame.
8844
8845 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8846
8847 * NEWS: Create a new section for the next release branch.
8848 Rename the section of the current branch, now that it has
8849 been cut.
8850
8851 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8852
8853 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8854 * version.in: Bump version to 7.6.50.20130312-cvs.
8855
8856 2013-03-12 Keith Seitz <keiths@redhat.com>
8857
8858 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8859 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8860 Remove temporary copy of input string.
8861 (mi_execute_command_wrapper): Make "cmd" const.
8862 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8863 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8864 Use const strings.
8865 (mi_parse): Make "cmd" const.
8866 Use const strings.
8867 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8868
8869 2013-03-12 Keith Seitz <keiths@redhat.com>
8870
8871 * ada-lang.c (ada_read_renaming_var_value): Pass const
8872 pointer to expression string to parse_exp_1.
8873 (create_excep_cond_exprs): Likewise.
8874 * ax-gdb.c (agent_eval_command_one): Likewise.
8875 (maint_agent_printf_command): Likewise.
8876 Constify much of the string handling/parsing.
8877 * breakpoint.c (set_breakpoint_condition): Pass const
8878 pointer to expression string to parse_exp_1.
8879 (update_watchpoint): Likewise.
8880 (parse_cmd_to_aexpr): Constify string handling.
8881 Pass const pointer to parse_exp_1.
8882 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8883 (find_condition_and_thread): Likewise.
8884 Make TOK const.
8885 (watch_command_1): Make "arg" const.
8886 Constify string handling.
8887 Copy the expression string instead of changing the input
8888 string.
8889 (update_breakpoint_location): Pass const pointer to
8890 parse_exp_1.
8891 * eval.c (parse_and_eval_address): Make "exp" const.
8892 (parse_to_comma_and_eval): Make "expp" const.
8893 (parse_and_eval): Make "exp" const.
8894 * expression.h (parse_expression): Make argument const.
8895 (parse_exp_1): Make first argument const.
8896 * findcmd.c (parse_find_args): Treat "args" as const.
8897 * linespec.c (parse_linespec): Pass const pointer to
8898 linespec_expression_to_pc.
8899 (linespec_expression_to_pc): Make "exp_ptr" const.
8900 * parse.c (parse_exp_1): Make "stringptr" const.
8901 Make a copy of the expression to pass to parse_exp_in_context until
8902 this whole interface can be constified.
8903 (parse_expression): Make "string" const.
8904 * printcmd.c (ui_printf): Treat "arg" as const.
8905 Handle const strings.
8906 * tracepoint.c (validate_actionline): Pass const pointer to
8907 all calls to parse_exp_1.
8908 (encode_actions_1): Likewise.
8909 * value.h (parse_to_comma_and_eval): Make argument const.
8910 (parse_and_eval_address): Likewise.
8911 (parse_and_eval): Likewise.
8912 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8913 (varobj_set_value): Likewise.
8914 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8915 constify string handling.
8916 Pass const pointers to parse_and_eval_address and
8917 parse_to_comman_and_eval.
8918 * cli/cli-utils.c (skip_to_space): Rename to ...
8919 (skip_to_space_const): ... this. Handle const strings.
8920 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8921 skip_to_space_const.
8922 (skip_to_space_const): Declare.
8923 * common/format.c (parse_format_string): Make "arg" const.
8924 Handle const strings.
8925 * common/format.h (parse_format_string): Make "arg" const.
8926 * gdbserver/ax.c (ax_printf): Make "format" const.
8927 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8928 of the expression string.
8929
8930 2013-03-12 Hui Zhu <hui@codesourcery.com>
8931
8932 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8933
8934 2013-03-12 Yao Qi <yao@codesourcery.com>
8935 Hui Zhu <hui@codesourcery.com>
8936
8937 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8938 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8939 DW_OP_deref_size.
8940
8941 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8942
8943 * ada-lex.l (rules): Only recognize 'thread' as a
8944 delimiter when followed by numerals, as for c-exp.y.
8945 Use new rewind_to_char function to rewind the input for
8946 expression-delimiting tokens.
8947 (rewind_to_char): New function.
8948
8949 2013-03-11 Pedro Alves <palves@redhat.com>
8950 Jan Kratochvil <jan.kratochvil@redhat.com>
8951
8952 * configure: Regenerate.
8953 * configure.ac (check dynamic export flag): Link python test with
8954 $PYTHON_LIBS.
8955
8956 2013-03-11 Doug Evans <dje@google.com>
8957 Keith Seitz <keiths@redhat.com>
8958
8959 * linespec.c (find_linespec_symbols): Call find_function_symbols
8960 first, and then call lookup_prefix_sym/find_method.
8961
8962 2013-03-11 Pedro Alves <palves@redhat.com>
8963
8964 * charset.c (convert_between_encodings): Don't cast between
8965 different pointer to pointer types. Instead, make the 'inp' local
8966 be of the type iconv expects.
8967 (wchar_iterate): Don't cast between different pointer to pointer
8968 types. Instead, use new pointer local of the type iconv expects.
8969 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8970 Add new local of type char pointer, and use it to get a
8971 char/string view of the byte buffer, instead of casting between
8972 pointer to pointer types.
8973
8974 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8975
8976 * remote.c (remote_set_trace_buffer_size): Move != operator
8977 to the start of next line to fix an ARI warning.
8978
8979 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8980
8981 * NEWS: Add record changes.
8982
8983 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8984
8985 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8986 the instruction history disassembly.
8987 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8988 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8989
8990 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8991
8992 * Makefile.in (SFILES): Add record-btrace.c
8993 (COMMON_OBS): Add record-btrace.o
8994 * record-btrace.c: New.
8995 * objfiles.c: Include btrace.h.
8996 (free_objfile): call btrace_free_objfile.
8997
8998 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8999
9000 * target.c (target_call_history, target_call_history_from,
9001 target_call_history_range): New.
9002 * target.h (target_ops) <to_call_history, to_call_history_from,
9003 to_call_history_range>: New fields.
9004 (target_call_history, target_call_history_from,
9005 target_call_history_range): New declaration.
9006 * record.c (get_call_history_modifiers, cmd_record_call_history,
9007 record_call_history_size): New.
9008 (_initialize_record): Add the "record function-call-history" command.
9009 Add "set/show record function-call-history-size" commands.
9010 * record.h (record_print_flag): New.
9011
9012 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9013
9014 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9015 to_insn_history_range>: New fields.
9016 (target_insn_history): New.
9017 (target_insn_history_from): New.
9018 (target_insn_history_range): New.
9019 * target.c (target_insn_history): New.
9020 (target_insn_history_from): New.
9021 (target_insn_history_range): New.
9022 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9023 (record_insn_history_size): New.
9024 (get_insn_number): New.
9025 (get_context_size): New.
9026 (no_chunk): New.
9027 (get_insn_history_modifiers): New.
9028 (cmd_record_insn_history): New.
9029 (_initialize_record): Add "set/show record instruction-history-size"
9030 command. Add "record instruction-history" command.
9031
9032 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9033
9034 * record.h (record_disconnect): New.
9035 (record_detach): New.
9036 (record_mourn_inferior): New.
9037 (record_kill): New.
9038 * record-full.c (record_disconnect, record_detach,
9039 record_mourn_inferior, record_kill): Move to...
9040 * record.c: ...here.
9041 (DEBUG): New.
9042 (record_stop): New.
9043 (record_unpush): New.
9044 (cmd_record_stop): Call record_stop. Replace unpush_target
9045 call with record_unpush call.
9046 (record_disconnect, record_detach): Assert that the target
9047 is of record stratum. Call record_unpush, record_stop, and
9048 DEBUG.
9049 (record_mourn_inferior, record_kill): Assert that the target
9050 is of record stratum. Call record_unpush and DEBUG.
9051
9052 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9053
9054 * record-full.h, record-full.c (record_memory_query): Rename
9055 to ...
9056 (record_full_memory_query): ...this. Update all users.
9057 (record_arch_list_add_reg): Rename to ...
9058 (record_full_arch_list_add_reg): ...this. Update all users.
9059 (record_arch_list_add_mem): Rename to ...
9060 (record_full_arch_list_add_mem): ...this. Update all users.
9061 (record_arch_list_add_end): Rename to ...
9062 (record_full_arch_list_add_end): ...this. Update all users.
9063 (record_gdb_operation_disable_set): Rename to ...
9064 (record_full_gdb_operation_disable_set): ...this.
9065 Update all users.
9066
9067 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9068
9069 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9070 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9071 (RECORD_IS_REPLAY): Renamed to ...
9072 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9073 (RECORD_FILE_MAGIC): Renamed to ...
9074 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9075 (record_mem_entry): Renamed to ...
9076 (record_full_mem_entry): ... this. Updated all users.
9077 (record_reg_entry): Renamed to ...
9078 (record_full_reg_entry): ... this. Updated all users.
9079 (record_end_entry): Renamed to ...
9080 (record_full_end_entry): ... this. Updated all users.
9081 (record_type) <record_end, record_reg, record_mem>: Renamed
9082 to ...
9083 (record_full_type) <record_full_end, record_full_reg,
9084 record_full_mem>: ... this. Updated all users.
9085 (record_entry): Renamed to ...
9086 (record_full_entry): ... this. Updated all users.
9087 (record_core_buf_entry): Renamed to ...
9088 (record_full_core_buf_entry): ... this. Updated all users.
9089 (record_core_regbuf): Renamed to ...
9090 (record_full_core_regbuf): ... this. Updated all users.
9091 (record_core_start): Renamed to ...
9092 (record_full_core_start): ... this. Updated all users.
9093 (record_core_end): Renamed to ...
9094 (record_full_core_end): ... this. Updated all users.
9095 (record_core_buf_list): Renamed to ...
9096 (record_full_core_buf_list): ... this. Updated all users.
9097 (record_first): Renamed to ...
9098 (record_full_first): ... this. Updated all users.
9099 (record_list): Renamed to ...
9100 (record_full_list): ... this. Updated all users.
9101 (record_arch_list_head): Renamed to ...
9102 (record_full_arch_list_head): ... this. Updated all users.
9103 (record_arch_list_tail): Renamed to ...
9104 (record_full_arch_list_tail): ... this. Updated all users.
9105 (record_stop_at_limit): Renamed to ...
9106 (record_full_stop_at_limit): ... this. Updated all users.
9107 (record_insn_max_num): Renamed to ...
9108 (record_full_insn_max_num): ... this. Updated all users.
9109 (record_insn_num): Renamed to ...
9110 (record_full_insn_num): ... this. Updated all users.
9111 (record_insn_count): Renamed to ...
9112 (record_full_insn_count): ... this. Updated all users.
9113 (record_ops): Renamed to ...
9114 (record_full_ops): ... this. Updated all users.
9115 (record_core_ops): Renamed to ...
9116 (record_full_core_ops): ... this. Updated all users.
9117 (set_record_cmdlist): Renamed to ...
9118 (set_record_full_cmdlist): ... this. Updated all users.
9119 (show_record_cmdlist): Renamed to ...
9120 (show_record_full_cmdlist): ... this. Updated all users.
9121 (record_cmdlist): Renamed to ...
9122 (record_full_cmdlist): ... this. Updated all users.
9123 (record_beneath_to_resume_ops): Renamed to ...
9124 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9125 (record_beneath_to_resume): Renamed to ...
9126 (record_full_beneath_to_resume): ... this. Updated all users.
9127 (record_beneath_to_wait_ops): Renamed to ...
9128 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9129 (record_beneath_to_wait): Renamed to ...
9130 (record_full_beneath_to_wait): ... this. Updated all users.
9131 (record_beneath_to_store_registers_ops): Renamed to ...
9132 (record_full_beneath_to_store_registers_ops): ... this.
9133 Updated all users.
9134 (record_beneath_to_store_registers): Renamed to ...
9135 (record_full_beneath_to_store_registers): ... this.
9136 Updated all users.
9137 (record_beneath_to_xfer_partial_ops): Renamed to ...
9138 (record_full_beneath_to_xfer_partial_ops): ... this.
9139 Updated all users.
9140 (record_beneath_to_xfer_partial): Renamed to ...
9141 (record_full_beneath_to_xfer_partial): ... this.
9142 Updated all users.
9143 (record_beneath_to_insert_breakpoint): Renamed to ...
9144 (record_full_beneath_to_insert_breakpoint): ... this.
9145 Updated all users.
9146 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9147 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9148 Updated all users.
9149 (record_beneath_to_stopped_data_address): Renamed to ...
9150 (record_full_beneath_to_stopped_data_address): ... this.
9151 Updated all users.
9152 (record_beneath_to_async): Renamed to ...
9153 (record_full_beneath_to_async): ... this. Updated all users.
9154 (record_goto_insn): Renamed to ...
9155 (record_full_goto_insn): ... this. Updated all users.
9156 (record_save): Renamed to ...
9157 (record_full_save): ... this. Updated all users.
9158 (record_reg_alloc): Renamed to ...
9159 (record_full_reg_alloc): ... this. Updated all users.
9160 (record_reg_release): Renamed to ...
9161 (record_full_reg_release): ... this. Updated all users.
9162 (record_mem_alloc): Renamed to ...
9163 (record_full_mem_alloc): ... this. Updated all users.
9164 (record_mem_release): Renamed to ...
9165 (record_full_mem_release): ... this. Updated all users.
9166 (record_end_alloc): Renamed to ...
9167 (record_full_end_alloc): ... this. Updated all users.
9168 (record_end_release): Renamed to ...
9169 (record_full_end_release): ... this. Updated all users.
9170 (record_entry_release): Renamed to ...
9171 (record_full_entry_release): ... this. Updated all users.
9172 (record_list_release): Renamed to ...
9173 (record_full_list_release): ... this. Updated all users.
9174 (record_list_release_following): Renamed to ...
9175 (record_full_list_release_following): ... this.
9176 Updated all users.
9177 (record_list_release_first): Renamed to ...
9178 (record_full_list_release_first): ... this. Updated all users.
9179 (record_arch_list_add): Renamed to ...
9180 (record_full_arch_list_add): ... this. Updated all users.
9181 (record_get_loc): Renamed to ...
9182 (record_full_get_loc): ... this. Updated all users.
9183 (record_check_insn_num): Renamed to ...
9184 (record_full_check_insn_num): ... this. Updated all users.
9185 (record_arch_list_cleanups): Renamed to ...
9186 (record_full_arch_list_cleanups): ... this. Updated all users.
9187 (record_message): Renamed to ...
9188 (record_full_message): ... this. Updated all users.
9189 (record_message_wrapper): Renamed to ...
9190 (record_full_message_wrapper): ... this. Updated all users.
9191 (record_message_wrapper_safe): Renamed to ...
9192 (record_full_message_wrapper_safe): ... this. Updated all users.
9193 (record_gdb_operation_disable): Renamed to ...
9194 (record_full_gdb_operation_disable): ... this. Updated all users.
9195 (record_hw_watchpoint): Renamed to ...
9196 (record_full_hw_watchpoint): ... this. Updated all users.
9197 (record_exec_insn): Renamed to ...
9198 (record_full_exec_insn): ... this. Updated all users.
9199 (record_restore): Renamed to ...
9200 (record_full_restore): ... this. Updated all users.
9201 (record_async_inferior_event_token): Renamed to ...
9202 (record_full_async_inferior_event_token): ... this.
9203 Updated all users.
9204 (record_async_inferior_event_handler): Renamed to ...
9205 (record_full_async_inferior_event_handler): ... this.
9206 Updated all users.
9207 (record_core_open_1): Renamed to ...
9208 (record_full_core_open_1): ... this. Updated all users.
9209 (record_open_1): Renamed to ...
9210 (record_full_open_1): ... this. Updated all users.
9211 (record_open): Renamed to ...
9212 (record_full_open): ... this. Updated all users.
9213 (record_close): Renamed to ...
9214 (record_full_close): ... this. Updated all users.
9215 (record_resume_step): Renamed to ...
9216 (record_full_resume_step): ... this. Updated all users.
9217 (record_resumed): Renamed to ...
9218 (record_full_resumed): ... this. Updated all users.
9219 (record_execution_dir): Renamed to ...
9220 (record_full_execution_dir): ... this. Updated all users.
9221 (record_resume): Renamed to ...
9222 (record_full_resume): ... this. Updated all users.
9223 (record_get_sig): Renamed to ...
9224 (record_full_get_sig): ... this. Updated all users.
9225 (record_sig_handler): Renamed to ...
9226 (record_full_sig_handler): ... this. Updated all users.
9227 (record_wait_cleanups): Renamed to ...
9228 (record_full_wait_cleanups): ... this. Updated all users.
9229 (record_wait_1): Renamed to ...
9230 (record_full_wait_1): ... this. Updated all users.
9231 (record_wait): Renamed to ...
9232 (record_full_wait): ... this. Updated all users.
9233 (record_stopped_by_watchpoint): Renamed to ...
9234 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9235 (record_disconnect): Renamed to ...
9236 (record_full_disconnect): ... this. Updated all users.
9237 (record_detach): Renamed to ...
9238 (record_full_detach): ... this. Updated all users.
9239 (record_mourn_inferior): Renamed to ...
9240 (record_full_mourn_inferior): ... this. Updated all users.
9241 (record_kill): Renamed to ...
9242 (record_full_kill): ... this. Updated all users.
9243 (record_stopped_data_address): Renamed to ...
9244 (record_full_stopped_data_address): ... this. Updated all users.
9245 (record_registers_change): Renamed to ...
9246 (record_full_registers_change): ... this. Updated all users.
9247 (record_store_registers): Renamed to ...
9248 (record_full_store_registers): ... this. Updated all users.
9249 (record_xfer_partial): Renamed to ...
9250 (record_full_xfer_partial): ... this. Updated all users.
9251 (record_breakpoint): Renamed to ...
9252 (record_full_breakpoint): ... this. Updated all users.
9253 (record_breakpoint_p): Renamed to ...
9254 (record_full_breakpoint_p): ... this. Updated all users.
9255 (record_breakpoints): Renamed to ...
9256 (record_full_breakpoints): ... this. Updated all users.
9257 (record_sync_record_breakpoints): Renamed to ...
9258 (record_full_sync_record_breakpoints): ... this.
9259 Updated all users.
9260 (record_init_record_breakpoints): Renamed to ...
9261 (record_full_init_record_breakpoints): ... this.
9262 Updated all users.
9263 (record_insert_breakpoint): Renamed to ...
9264 (record_full_insert_breakpoint): ... this. Updated all users.
9265 (record_remove_breakpoint): Renamed to ...
9266 (record_full_remove_breakpoint): ... this. Updated all users.
9267 (record_can_execute_reverse): Renamed to ...
9268 (record_full_can_execute_reverse): ... this. Updated all users.
9269 (record_get_bookmark): Renamed to ...
9270 (record_full_get_bookmark): ... this. Updated all users.
9271 (record_goto_bookmark): Renamed to ...
9272 (record_full_goto_bookmark): ... this. Updated all users.
9273 (record_async): Renamed to ...
9274 (record_full_async): ... this. Updated all users.
9275 (record_can_async_p): Renamed to ...
9276 (record_full_can_async_p): ... this. Updated all users.
9277 (record_is_async_p): Renamed to ...
9278 (record_full_is_async_p): ... this. Updated all users.
9279 (record_execution_direction): Renamed to ...
9280 (record_full_execution_direction): ... this. Updated all users.
9281 (record_info): Renamed to ...
9282 (record_full_info): ... this. Updated all users.
9283 (record_delete): Renamed to ...
9284 (record_full_delete): ... this. Updated all users.
9285 (record_is_replaying): Renamed to ...
9286 (record_full_is_replaying): ... this. Updated all users.
9287 (record_goto_entry): Renamed to ...
9288 (record_full_goto_entry): ... this. Updated all users.
9289 (record_goto_begin): Renamed to ...
9290 (record_full_goto_begin): ... this. Updated all users.
9291 (record_goto_end): Renamed to ...
9292 (record_full_goto_end): ... this. Updated all users.
9293 (record_goto): Renamed to ...
9294 (record_full_goto): ... this. Updated all users.
9295 (init_record_ops): Renamed to ...
9296 (init_record_full_ops): ... this. Updated all users.
9297 (record_core_resume): Renamed to ...
9298 (record_full_core_resume): ... this. Updated all users.
9299 (record_core_kill): Renamed to ...
9300 (record_full_core_kill): ... this. Updated all users.
9301 (record_core_fetch_registers): Renamed to ...
9302 (record_full_core_fetch_registers): ... this. Updated all users.
9303 (record_core_prepare_to_store): Renamed to ...
9304 (record_full_core_prepare_to_store): ... this. Updated all users.
9305 (record_core_store_registers): Renamed to ...
9306 (record_full_core_store_registers): ... this. Updated all users.
9307 (record_core_xfer_partial): Renamed to ...
9308 (record_full_core_xfer_partial): ... this. Updated all users.
9309 (record_core_insert_breakpoint): Renamed to ...
9310 (record_full_core_insert_breakpoint): ... this. Updated all users.
9311 (record_core_remove_breakpoint): Renamed to ...
9312 (record_full_core_remove_breakpoint): ... this. Updated all users.
9313 (record_core_has_execution): Renamed to ...
9314 (record_full_core_has_execution): ... this. Updated all users.
9315 (init_record_core_ops): Renamed to ...
9316 (init_record_full_core_ops): ... this. Updated all users.
9317 (cmd_record_restore): Renamed to ...
9318 (cmd_record_full_restore): ... this. Updated all users.
9319 (record_save_cleanups): Renamed to ...
9320 (record_full_save_cleanups): ... this. Updated all users.
9321 (cmd_record_start): Renamed to ...
9322 (cmd_record_full_start): ... this. Updated all users.
9323 (set_record_insn_max_num): Renamed to ...
9324 (set_record_full_insn_max_num): ... this. Updated all users.
9325 (set_record_command): Renamed to ...
9326 (set_record_full_command): ... this. Updated all users.
9327 (show_record_command): Renamed to ...
9328 (show_record_full_command): ... this. Updated all users.
9329 (_initialize_record): Renamed to ...
9330 (_initialize_record_full): ... this. Updated all users.
9331
9332 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9333
9334 * record.h: Split into this and ...
9335 * record-full.h: ... this.
9336 * record.c: Split into this and ...
9337 * record-full.c: ... this.
9338 * target.h (target_ops): Add new fields to_info_record,
9339 to_save_record, to_delete_record, to_record_is_replaying,
9340 to_goto_record_begin, to_goto_record_end, to_goto_record.
9341 (target_info_record): New.
9342 (target_save_record): New.
9343 (target_supports_delete_record): New.
9344 (target_delete_record): New.
9345 (target_record_is_replaying): New.
9346 (target_goto_record_begin): New.
9347 (target_goto_record_end): New.
9348 (target_goto_record): New.
9349 * target.c (target_info_record): New.
9350 (target_save_record): New.
9351 (target_supports_delete_record): New.
9352 (target_delete_record): New.
9353 (target_record_is_replaying): New.
9354 (target_goto_record_begin): New.
9355 (target_goto_record_end): New.
9356 (target_goto_record): New.
9357 * record.h: Declare struct cmd_list_element.
9358 (record_cmdlist): New declaration.
9359 (set_record_cmdlist): New declaration.
9360 (show_record_cmdlist): New declaration.
9361 (info_record_cmdlist): New declaration.
9362 (cmd_record_goto): New declaration.
9363 * record.c: Remove unnecessary includes.
9364 Include inferior.h.
9365 (cmd_record_goto): Remove declaration.
9366 (record_cmdlist): Now extern. Initialize.
9367 (set_record_cmdlist): Now extern. Initialize.
9368 (show_record_cmdlist): Now extern. Initialize.
9369 (info_record_cmdlist): Now extern. Initialize.
9370 (find_record_target): New.
9371 (require_record_target): New.
9372 (cmd_record_start): Update.
9373 (cmd_record_delete): Remove target-specific code.
9374 Call target_delete_record.
9375 (cmd_record_stop): Unpush any record target.
9376 (set_record_insn_max_num): Move to record-full.c
9377 (set_record_command): Add comment.
9378 (show_record_command): Add comment.
9379 (info_record_command): Update comment.
9380 Remove target-specific code.
9381 Call the record target's to_info_record.
9382 (cmd_record_start): New.
9383 (cmd_record_goto): Now extern.
9384 Remove target-specific code.
9385 Call target_goto_begin, target_goto_end, or target_goto.
9386 (_initialize_record): Move record target ops initialization to
9387 record-full.c.
9388 Change "record" command help text.
9389 Move "record restore", "record set", and "record show" commands to
9390 record-full.c.
9391 * Makefile.in (SFILES): Add record-full.c.
9392 (HFILES_NO_SRCDIR): Add record-full.h.
9393 (COMMON_OBS): Add record-full.o.
9394 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9395 * arm-tdep.c: Include record-full.h.
9396 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9397 * i386-tdep.c: Include record-full.h.
9398 * infrun.c: Include record-full.h.
9399 * linux-record.c: Include record-full.h.
9400 * moxie-tdep.c: Include record-full.h.
9401 * record-full.c: Include record-full.h.
9402 Change module comment.
9403 (set_record_full_cmdlist): New.
9404 (show_record_full_cmdlist): New.
9405 (record_full_cmdlist): New.
9406 (record_goto_insn): New declaration.
9407 (record_save): New declaration.
9408 (record_check_insn_num): Change query string.
9409 (record_info): New.
9410 (record_delete): New.
9411 (record_is_replaying): New.
9412 (record_goto_entry): New.
9413 (record_goto_begin): New.
9414 (record_goto_end): New.
9415 (record_goto): New.
9416 (init_record_ops): Update.
9417 (init_record_core_ops): Update.
9418 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9419 (cmd_record_start): New.
9420 (set_record_insn_max_num): Moved from record.c
9421 (set_record_full_command): New.
9422 (show_record_full_command): New.
9423 (_initialize_record_full): New.
9424
9425 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9426
9427 * target.h (add_deprecated_target_alias): New.
9428 * target.c (add_deprecated_target_alias): New.
9429
9430 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9431
9432 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9433 and signal.h.
9434 (linux_supports_btrace): Add kernel and
9435 cpuid check.
9436 (kernel_supports_btrace): New function.
9437 (cpu_supports_btrace): New function.
9438 (intel_supports_btrace): New function.
9439
9440 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9441
9442 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9443 * remote.c: Include btrace.h.
9444 (struct btrace_target_info): New struct.
9445 (remote_supports_btrace): New function.
9446 (send_Qbtrace): New function.
9447 (remote_enable_btrace): New function.
9448 (remote_disable_btrace): New function.
9449 (remote_teardown_btrace): New function.
9450 (remote_read_btrace): New function.
9451 (init_remote_ops): Add btrace ops.
9452 (enum <unnamed>): Add btrace packets.
9453 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9454 (_initialize_remote): Add packet configuration for branch tracing.
9455
9456 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9457
9458 * features/btrace.dtd: New file.
9459 * Makefile.in (XMLFILES): Add btrace.dtd.
9460 * btrace.h (parse_xml_btrace): New declaration.
9461 * btrace.c: Include xml-support.h.
9462 (parse_xml_btrace): New function.
9463 (parse_xml_btrace_block): New function.
9464 (block_attributes): New struct.
9465 (btrace_attributes): New struct.
9466 (btrace_children): New struct.
9467 (btrace_elements): New struct.
9468
9469 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9470
9471 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9472 (amd64_linux_enable_btrace): New.
9473 (amd64_linux_disable_btrace): New.
9474 (amd64_linux_teardown_btrace): New.
9475 (_initialize_amd64_linux_nat): Initialize btrace ops.
9476 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9477 (i386_linux_enable_btrace): New.
9478 (i386_linux_disable_btrace): New.
9479 (i386_linux_teardown_btrace): New.
9480 (_initialize_i386_linux_nat): Initialize btrace ops.
9481 * config/i386/linux.mh: Add linux-btrace.o.
9482 * config/i386/linux64.mh: Add linux-btrace.o.
9483
9484 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9485
9486 * common/linux_btrace.h: New file.
9487 * common/linux_btrace.c: New file.
9488 * Makefile.in (SFILES): Add btrace.c.
9489 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9490 (COMMON_OBS): Add btrace.o.
9491 (linux-btrace.o): New rule.
9492
9493 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9494
9495 * target.h: Include btrace.h.
9496 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9497 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9498 * target.c (target_supports_btrace): New function.
9499 (target_enable_btrace): New function.
9500 (target_disable_btrace): New function.
9501 (target_teardown_btrace): New function.
9502 (target_read_btrace): New function.
9503 * btrace.h: New file.
9504 * btrace.c: New file.
9505 * Makefile.in: Add btrace.c.
9506 * gdbthread.h: Include btrace.h.
9507 (struct thread_info): Add btrace field.
9508 * thread.c: Include btrace.h.
9509 (clear_thread_inferior_resources): Call target_teardown_btrace.
9510 * common/btrace-common.h: New file.
9511
9512 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9513
9514 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9515 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9516 kill_status to outer block.
9517
9518 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9519
9520 Fix entry-values if the callee called a noreturn function.
9521 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9522 get_frame_address_in_block. Add new comment.
9523
9524 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9525
9526 Fix entry-values in C++ across CUs.
9527 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9528 lookup_minimal_symbol. Add a comment.
9529 * dwarf2read.c
9530 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9531 DW_AT_linkage_name.
9532
9533 2013-03-08 Yao Qi <yao@codesourcery.com>
9534
9535 * tracepoint.c (_initialize_tracepoint): Indent the code.
9536
9537 2013-03-08 Pedro Alves <palves@redhat.com>
9538
9539 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9540 (parse_find_args, find_command): Change type of pattern buffer
9541 locals to 'gdb_byte *'.
9542
9543 2013-03-08 Stan Shebs <stan@codesourcery.com>
9544 Hafiz Abid Qadeer <abidh@codesourcery.com>
9545
9546 * NEWS: Mention set and show trace-buffer-size commands.
9547 Mention new packet.
9548 * target.h (struct target_ops): New method
9549 to_set_trace_buffer_size.
9550 (target_set_trace_buffer_size): New macro.
9551 * target.c (update_current_target): Set up new method.
9552 * tracepoint.c (trace_buffer_size): New global.
9553 (start_tracing): Send it to the target.
9554 (set_trace_buffer_size): New function.
9555 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9556 * remote.c (remote_set_trace_buffer_size): New function.
9557 (_initialize_remote): Use it.
9558 (QTBuffer:size) New remote command.
9559 (PACKET_QTBuffer_size): New enum.
9560 (remote_protocol_features): Add an entry for
9561 PACKET_QTBuffer_size.
9562
9563 2013-03-08 Tom Tromey <tromey@redhat.com>
9564
9565 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9566 variable.
9567
9568 2013-03-07 Pedro Alves <palves@redhat.com>
9569
9570 * target.c (target_read_stralloc, target_fileio_read_alloc):
9571 *Cast pointer to 'gdb_byte *' in target call.
9572
9573 2013-03-07 Pedro Alves <palves@redhat.com>
9574
9575 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9576 call.
9577
9578 2013-03-07 Keith Seitz <keiths@redhat.com>
9579
9580 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9581 (trace_pass_command): Likewise.
9582 * cli/cli-cmds.c: Include cli/cli-utils.h.
9583 (source_command): Use skip-spaces.
9584 (disassemble_command): Likewise.
9585 * findcmd.c: Include cli/cli-utils.h.
9586 (parse_find_args): Use skip_spaces.
9587 * go32-nat.c: Include cli/cli-utils.h.
9588 (go32_sldt): Use skip_spaces.
9589 (go32_sgdt): Likewise.
9590 (go32_sidt): Likewise.
9591 (go32_pde): Likewise.
9592 (go32_pte): Likewise.
9593 (go32_pte_for_address): Likewise.
9594 * infcmd.c: Include cli/cli-utils.h.
9595 (registers_info): Use skip_spaces.
9596 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9597 (linux_info_proc): Likewise.
9598 * linux-thread-db.c: Include cli/cli-utils.h.
9599 (info_auto_load_libthread_db): Use skip_spaces_const.
9600 * m32r-rom.c: Include cli/cli-utils.h.
9601 (m32r_upload_command): Use skip_spaces.
9602 * maint.c: Include cli/cli-utils.h.
9603 (maintenance_translate_address): Use skip_spaces.
9604 * mi/mi-parse.c: Include cli/cli-utils.h.
9605 (mi_parse_argv): Use skip_spaces.
9606 (mi_parse): Likewise.
9607 * minsyms.c: Include cli/cli-utils.h.
9608 (msymbol_hash_iw): Use skip_spaces_const.
9609 * objc-lang.c: Include cli/cli-utils.h.
9610 (parse_selector): Use skip_spaces.
9611 (parse_method): Likewise.
9612 * python/python.c: Include cli/cli-utils.h.
9613 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9614 (python_command)[HAVE_PYTHON]: Likewise.
9615 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9616 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9617 (m32r_load): Use skip_spaces.
9618 * serial.c: Include cli/cli-utils.h.
9619 (serial_open): Use skip_spaces_const.
9620 * stack.c: Include cli/cli-utils.h.
9621 (parse_frame_specification_1): Use skip_spaces_const.
9622 * symfile.c: Include cli/cli-utils.h.
9623 (set_ext_lang_command): Use skip_spaces.
9624 * symtab.c: Include cli/cli-utils.h.
9625 (rbreak_command): Use skip_spaces.
9626 * thread.c (thread_name_command): Use skip_spaces.
9627 * tracepoint.c (validate_actionline): Use skip_spaces.
9628 (encode_actions_1): Likewise.
9629 (trace_find_range_command): Likewise.
9630 (trace_find_outside_command): Likewise.
9631 (trace_dump_actions): Likewise.
9632
9633 2013-03-07 Pedro Alves <palves@redhat.com>
9634
9635 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9636 * expprint.c (print_subexp_standard): Likewise.
9637 * utils.c (host_char_to_target): Likewise.
9638 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9639 * varobj.c (value_get_print_value): Change type of local to char*.
9640 Cast it gdb_byte * in call to language printer.
9641
9642 2013-03-07 Pedro Alves <palves@redhat.com>
9643
9644 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9645 gdb_byte *'.
9646 (make_wchar_iterator): Remove cast to char*.
9647 (wchar_iterate): Change type of local.
9648
9649 2013-03-07 Pedro Alves <palves@redhat.com>
9650
9651 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9652 for 'regcache->register_status'.
9653
9654 2013-03-07 Pedro Alves <palves@redhat.com>
9655
9656 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9657 int.
9658
9659 2013-03-07 Pedro Alves <palves@redhat.com>
9660
9661 * stap-probe.c (handle_stap_probe): Add cast to char*.
9662
9663 2013-03-07 Pedro Alves <palves@redhat.com>
9664
9665 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9666 RECORD_MSGRCV>: Pass a signed variable to
9667 regcache_raw_read_signed, instead of an unsigned one.
9668
9669 2013-03-07 Pedro Alves <palves@redhat.com>
9670
9671 * remote-notif.c (notif_debug): Change type to int.
9672 * remote-notif.h (notif_debug): Likewise.
9673
9674 2013-03-07 Pedro Alves <palves@redhat.com>
9675
9676 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9677
9678 2013-03-07 Pedro Alves <palves@redhat.com>
9679
9680 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9681 * remote.h (hex2bin, bin2hex): ... here.
9682 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9683
9684 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9685
9686 * utils.c (initialize_utils): Improve doc strings of "set/show
9687 width", "set/show height", and "set/show pagination".
9688
9689 2013-03-06 Keith Seitz <keiths@redhat.com>
9690
9691 * ax-gdb.c (gen_printf): Make FORMAT const.
9692 * ax-gdb.h (gen_printf): Likewise.
9693 * ax-general.c (ax_string): Make STR const.
9694 * ax.h (ax_string): Likewise.
9695
9696 2013-03-06 Doug Evans <dje@google.com>
9697
9698 * elfread.c (elf_symfile_read): Move debugging printf to more
9699 logical location.
9700
9701 2013-03-06 Pedro Alves <palves@redhat.com>
9702
9703 * python/py-utils.c (target_string_to_unicode): Delete function.
9704 * python/python-internal.h (target_string_to_unicode): Delete
9705 declaration.
9706
9707 2013-03-06 Pierre Muller <muller@sourceware.org>
9708
9709 * linespec.c (get_current_search_block): ARI fix, use (void)
9710 for empty parameter list.
9711
9712 2013-03-05 Doug Evans <dje@google.com>
9713
9714 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9715 of old ada_lookup_symbol_list. In !full_search case, don't
9716 search superblocks.
9717 (ada_lookup_symbol_list): Delete arg full_search, all callers
9718 updated. Call ada_lookup_symbol_list_worker.
9719 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9720 * ada-lang.h (ada_lookup_symbol_list): Update.
9721 * language.h (language_defn): Update comment for
9722 la_iterate_over_symbols.
9723 * linespec.c (iterate_over_file_blocks): New function.
9724 (iterate_over_all_matching_symtabs): Call it.
9725 (lookup_prefix_sym): Ditto.
9726 (get_current_search_block): New function.
9727 (get_search_block): Delete.
9728 (find_label_symbols): Call get_current_search_block.
9729 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9730 * symtab.c (iterate_over_symbols): Don't search superblocks.
9731
9732 2013-03-05 Yao Qi <yao@codesourcery.com>
9733
9734 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9735 parameter VAR's type from "unsigned int" to "int".
9736 * command.h (var_zuinteger_unlimited): Update its comments.
9737 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9738
9739 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9740
9741 * NEWS: Mention new target x86_64-*-cygwin*.
9742
9743 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9744
9745 * configure.host: Add x86_64-*-cygwin* as host.
9746 * configure.tgt: Add x86_64-*-cygwin* as target.
9747 * config/i386/cygwin64.mh: New file.
9748
9749 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9750
9751 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9752
9753 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9754
9755 * linespec.c (struct linespec_canonical_name): New.
9756 (struct linespec_state): Change canonical_names type to it.
9757 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9758 xrealloc element size. Initialize the different CANONICAL fields.
9759 (canonical_to_fullform): New.
9760 (filter_results): Use it. Add variables canonical, fullform and
9761 cleanup.
9762 (struct decode_line_2_item, decode_line_2_compare_items): New.
9763 (decode_line_2): Remove variables iter and item_names, add variables
9764 items and items_count. Modify the code for these new variables.
9765
9766 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9767
9768 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9769 calling do_cleanup.
9770
9771 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9772
9773 * tracepoint.c (build_traceframe_info): Add code for byte order.
9774
9775 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9776
9777 * v850-tdep.c: (v850e2_register_name): Revise system register
9778 names to match current V850E2M architecture specifications.
9779 Update register number enum comments too.
9780
9781 2013-03-01 Jiong Wang <jiwang@tilera.com>
9782 Pedro Alves <palves@redhat.com>
9783
9784 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9785 to END_ADDR.
9786 (tilegx_skip_prologue): Limit prologue analysis to section end.
9787
9788 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9789
9790 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9791 use it.
9792
9793 2013-03-01 Pedro Alves <palves@redhat.com>
9794
9795 Use gdb_byte for bytes from the program being debugged.
9796
9797 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9798 Change type of local 'buf' to gdb_byte.
9799 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9800 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9801 * cris-tdep.c (cris_sigcontext_addr)
9802 (cris_sigtramp_frame_unwind_cache): Likewise.
9803 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9804 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9805 Likewise.
9806 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9807 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9808 (hppa32_hpux_search_dummy_call_sequence)
9809 (hppa_hpux_supply_save_state): Likewise.
9810 * hppa-linux-tdep.c (insns_match_pattern)
9811 (hppa_linux_find_global_pointer): Likewise.
9812 * hppa-tdep.c (hppa_in_function_epilogue_p)
9813 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9814 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9815 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9816 (i386fbsd_collect_uthread): Likewise.
9817 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9818 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9819 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9820 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9821 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9822 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9823 (ia64_libunwind_frame_prev_register)
9824 (ia64_libunwind_sigtramp_frame_this_id)
9825 (ia64_find_global_pointer_from_dynamic_section)
9826 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9827 (ia64_unwind_pc): Likewise.
9828 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9829 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9830 (m68hc11_extract_return_value): Likewise.
9831 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9832 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9833 (mep_get_insn, mep_push_dummy_call): Likewise.
9834 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9835 (mips_linux_in_dynsym_stub): Likewise.
9836 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9837 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9838 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9839 to gdb_byte.
9840 * remote-mips.c (mips_set_register): Likewise.
9841 * remote-sim.c (gdbsim_fetch_register): Likewise.
9842 * score-tdep.c (score7_fetch_inst): Change type of parameter
9843 'memblock' and local 'buf' to gdb_byte.
9844 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9845 Change type of local 'buf' to gdb_byte. Adjust.
9846 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9847 to gdb_byte**.
9848 (score7_analyze_prologue): Change type of 'memblock' and
9849 'memblock_ptr' locals to gdb_byte*.
9850 * sh64-tdep.c (sh64_extract_return_value)
9851 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9852 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9853 * solib-pa64.c (pa64_solib_create_inferior_hook)
9854 (pa64_open_symbol_file_object): Remove local 'buf'.
9855 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9856 (som_open_symbol_file_object): Likewise.
9857 * solib-spu.c (spu_current_sos): Likewise.
9858 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9859 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9860 (spu_store_registers): Likewise.
9861 * target.c (debug_print_register): Likewise.
9862 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9863 * xstormy16-tdep.c (xstormy16_store_return_value)
9864 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9865 (xstormy16_find_jmp_table_entry): Likewise.
9866
9867 2013-03-01 Jiong Wang <jiwang@tilera.com>
9868
9869 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9870 (tilegx_gdbarch_init): Install it.
9871
9872 2013-02-28 Tom Tromey <tromey@redhat.com>
9873
9874 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9875 PyLong_Check.
9876
9877 2013-02-28 Doug Evans <dje@google.com>
9878
9879 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9880 * python/python.c (gdbpy_find_pc_line): Ditto.
9881
9882 2013-02-28 Tom Tromey <tromey@redhat.com>
9883
9884 * contrib/excheck.py: New file.
9885 * contrib/exsummary.py: New file.
9886 * contrib/gcc-with-excheck: New file.
9887
9888 2013-02-28 Tom Tromey <tromey@redhat.com>
9889
9890 * python/python.c (gdbpy_print_stack): Call begin_line and
9891 fprintf_filtered inside TRY_CATCH.
9892
9893 2013-02-28 Tom Tromey <tromey@redhat.com>
9894
9895 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9896 inside TRY_CATCH.
9897
9898 2013-02-28 Tom Tromey <tromey@redhat.com>
9899
9900 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9901 frame_object_to_frame_info inside TRY_CATCH.
9902
9903 2013-02-28 Tom Tromey <tromey@redhat.com>
9904
9905 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9906 TRY_CATCH.
9907
9908 2013-02-28 Tom Tromey <tromey@redhat.com>
9909
9910 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9911
9912 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9913
9914 * windows-nat.c: Throughout, fix format strings and casts of
9915 printf-like functions to avoid type related warnings on all
9916 platforms.
9917 (handle_output_debug_string): Fetch context information address
9918 from debug string using string_to_core_addr.
9919
9920 2013-02-27 Jiong Wang <jiwang@tilera.com>
9921
9922 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9923 * regformats/reg-tilegx32.dat: New.
9924
9925 2013-02-27 Jiong Wang <jiwang@tilera.com>
9926
9927 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9928
9929 2013-02-27 Jiong Wang <jiwang@tilera.com>
9930
9931 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9932
9933 2013-02-27 Yao Qi <yao@codesourcery.com>
9934 Pedro Alves <palves@redhat.com>
9935
9936 * tracepoint.c (tfile_trace_find): For tfind
9937 pc/tp/range/outside, look for the next trace frame instead of
9938 always starting from frame 0.
9939
9940 2013-02-26 Anthony Green <green@moxielogic.com>
9941
9942 * configure.tgt: Add support for moxie-*-rtems* target.
9943
9944 2013-02-25 Pedro Alves <palves@redhat.com>
9945
9946 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9947 warning text.
9948
9949 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9950
9951 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9952 if $fp is used as the virtual frame pointer.
9953
9954 2013-02-23 Alan Modra <amodra@gmail.com>
9955
9956 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9957 symbol size.
9958 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9959 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9960 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9961 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9962
9963 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9964
9965 Code cleanup.
9966 * elfread.c (build_id_bfd_get): Make the return type const.
9967 (build_id_verify): Make the check parameter const.
9968 (build_id_to_debug_filename): Make the build_id parameter and variable
9969 data const.
9970 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9971
9972 2013-02-21 Alan Modra <amodra@gmail.com>
9973
9974 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9975
9976 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9977
9978 Add a new method 'disassemble' to gdb.Architecture class.
9979 * python/py-arch.c (archpy_disassmble): Implementation of the
9980 new method gdb.Architecture.disassemble.
9981 (arch_object_methods): Add entry for the new method.
9982
9983 2013-02-20 Jiong Wang <jiwang@tilera.com>
9984
9985 * MAINTAINERS (Write After Approval): Add myself to the list.
9986
9987 2013-02-19 Pedro Alves <palves@redhat.com>
9988
9989 Garbage collect 'struct monitor_ops'::load_routine.
9990
9991 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9992 * monitor.c (monitor_load): No longer call
9993 current_monitor->load_routine.
9994 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9995 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9996 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9997
9998 2013-02-19 Pedro Alves <palves@redhat.com>
9999
10000 PR gdb/15161
10001
10002 Harmonize with generic_load.
10003
10004 * monitor.c: Include "readline/readline.h".
10005 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10006 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10007 long/strtol for the 'load_offset' local. Error out if no argument
10008 is given or if too many arguments are given. Tilde expand the
10009 passed in file name.
10010
10011 2013-02-19 Kai Tietz <ktietz@redhat.com>
10012
10013 PR gdb/15161
10014 * symfile.c (load_section_data): Change type of load_offset
10015 to CORE_ADDR.
10016 (generic_load): User strtoulst instead of strtoul for conversion
10017 of load_offset.
10018
10019 2013-02-19 Jiong Wang <jiwang@tilera.com>
10020
10021 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10022 for return address, "lr" register, saved on stack.
10023 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10024 after we invoke tilegx_analyze_prologue.
10025
10026 2013-02-19 Jiong Wang <jiwang@tilera.com>
10027
10028 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10029
10030 2013-02-19 Jiong Wang <jiwang@tilera.com>
10031
10032 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10033
10034 2013-02-19 Jiong Wang <jiwang@tilera.com>
10035
10036 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10037 (tilegx_write_pc): New function.
10038 (tilegx_cannot_reference_register): Return zero if REGNO
10039 is TILEGX_FAULTNUM_REGNUM.
10040 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10041 (tilegx_register_name): Add handling of "faultnum" register.
10042 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10043 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10044 handling of TILEGX_FAULTNUM_REGNUM.
10045 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10046
10047 2013-02-19 Jiong Wang <jiwang@tilera.com>
10048
10049 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10050 should be aligned to 64bit.
10051
10052 2013-02-19 Kai Tietz <ktietz@redhat.com>
10053
10054 * windows-nat.c (windows_xfer_memory): Fix debug-output
10055 for LLP64.
10056
10057 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10058
10059 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10060 Don't check DSP register number if HAVE_DSP is not set.
10061
10062 2013-02-19 Alan Modra <amodra@gmail.com>
10063
10064 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10065 throughout file instead.
10066 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10067 Don't xmalloc return value.
10068 (build_id_verify): Similarly. Don't xfree.
10069 (build_id_to_debug_filename): Update.
10070 (find_separate_debug_file_by_buildid): Update, don't xfree.
10071
10072 2013-02-18 Tom Tromey <tromey@redhat.com>
10073
10074 PR gdb/15102:
10075 * dwarf2read.c (read_subrange_type): Use result of
10076 'check_typedef'.
10077
10078 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10079
10080 * frame.c: Remove one extra white space after #include
10081 directive.
10082
10083 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10084
10085 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10086
10087 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10088
10089 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10090 and dir commands into an if block.
10091
10092 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10093
10094 * python/py-breakpoint (struct pybp_code): Use int instead of
10095 enum type_code.
10096
10097 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10098 Hafiz Abid Qadeer <abidh@codesourcery.com>
10099
10100 * NEWS: Mention new field "trace-file".
10101 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10102 (tfile_open): Record the trace file's filename in the trace
10103 status.
10104 (tfile_files_info): Mention the name of the trace file.
10105 Check the "filename" field explicitely.
10106 (trace_status_command): Explicitely check "filename" field.
10107 (trace_find_command): Ditto.
10108 (trace_find_pc_command): Ditto.
10109 (trace_find_tracepoint_command): Ditto.
10110 (trace_find_line_command): Ditto.
10111 (trace_find_range_command): Ditto.
10112 (trace_find_outside_command): Ditto.
10113 * tracepoint.h (struct trace_status) <from_file>: Rename it
10114 to "filename" and make it hold the trace file's filename
10115 instead of a boolean.
10116 * remote.c (remote_get_trace_status): Initialize "filename"
10117 field with NULL instead of 0.
10118
10119 2013-02-15 Yao Qi <yao@codesourcery.com>
10120
10121 * remote.c: Fix a typo.
10122
10123 2013-02-14 Pierre Muller <muller@sourceware.org>
10124
10125 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10126
10127 2013-02-14 Pedro Alves <palves@redhat.com>
10128
10129 * utils.c (savestring): Don't #undef it. Move function to
10130 common/common-utils.c.
10131 * common/common-utils.c: Include gdb_string.h.
10132 (savestring): Move here from utils.c.
10133 * common/common-utils.h (savestring): Declare.
10134
10135 2013-02-14 Pedro Alves <palves@redhat.com>
10136
10137 * utils.c (savestring): Rename parameter 'size' to 'len'.
10138
10139 2013-02-14 Pedro Alves <palves@redhat.com>
10140 Yufeng Zhang <yufeng.zhang@arm.com>
10141
10142 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10143 (aarch64_inferior_data, struct aarch64_inferior_data):
10144 Delete.
10145 (struct aarch64_process_info): New.
10146 (aarch64_process_list): New global.
10147 (aarch64_find_process_pid, aarch64_add_process)
10148 (aarch64_process_info_get): New functions.
10149 (aarch64_inferior_data_get): Delete.
10150 (aarch64_process_info_get): New function.
10151 (aarch64_forget_process): New function.
10152 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10153 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10154 aarch64_get_debug_reg_state.
10155 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10156 instead of linux_nat_iterate_watchpoint_lwps.
10157 (aarch64_linux_new_fork): New function.
10158 (aarch64_linux_child_post_startup_inferior): Use
10159 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10160 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10161 (aarch64_linux_remove_hw_breakpoint)
10162 (aarch64_handle_aligned_watchpoint)
10163 (aarch64_handle_unaligned_watchpoint)
10164 (aarch64_linux_insert_watchpoint)
10165 (aarch64_linux_remove_watchpoint)
10166 (aarch64_linux_stopped_data_address): Adjust to pass the current
10167 process id to aarch64_debug_reg_state.
10168 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10169 linux_nat_new_fork hook, and aarch64_forget_process as
10170 linux_nat_forget_process hook; remove the call to
10171 register_inferior_data_with_cleanup.
10172
10173 2013-02-14 Pedro Alves <palves@redhat.com>
10174
10175 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10176 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10177 lval_memory.
10178
10179 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10180 Hafiz Abid Qadeer <abidh@codesourcery.com>
10181
10182 * tracepoint.h (validate_trace_state_variable_name): Declare.
10183 * tracepoint.c (validate_trace_state_variable_name): New.
10184 (trace_variable_command): Parse the trace state variable's name
10185 without using parse_expression. Do several validations.
10186 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10187 trace state variable's name with parse_expression. Validate it.
10188
10189 2013-02-14 Yao Qi <yao@codesourcery.com>
10190
10191 * infcmd.c (breakpoint_proceeded): Remove it.
10192
10193 2013-02-14 Yao Qi <yao@codesourcery.com>
10194
10195 * tracepoint.c (end_actions_pseudocommand): Make it static.
10196 (while_stepping_pseudocommand): Likewise.
10197 * tracepoint.h (end_actions_pseudocommand): Remove the
10198 declaration.
10199 (while_stepping_pseudocommand): Likewise.
10200
10201 2013-02-14 Yao Qi <yao@codesourcery.com>
10202
10203 * cli/cli-decode.c (help_cmd): Remove the declaration of
10204 "cmdlist".
10205 (help_all): Likewise.
10206
10207 2013-02-13 Pedro Alves <palves@redhat.com>
10208
10209 * amd64-linux-nat.c (update_debug_registers_callback):
10210 Update comment.
10211 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10212 iterate_over_lwps.
10213 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10214 i386_debug_reg_state.
10215 (amd64_linux_new_fork): New function.
10216 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10217 linux_nat_new_fork hook, and i386_forget_process as
10218 linux_nat_forget_process hook.
10219 * i386-linux-nat.c (update_debug_registers_callback):
10220 Update comment.
10221 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10222 iterate_over_lwps.
10223 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10224 i386_debug_reg_state.
10225 (i386_linux_new_fork): New function.
10226 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10227 linux_nat_new_fork hook, and i386_forget_process as
10228 linux_nat_forget_process hook.
10229 * i386-nat.c (i386_init_dregs): Delete.
10230 (i386_inferior_data, struct i386_inferior_data):
10231 Delete.
10232 (struct i386_process_info): New.
10233 (i386_process_list): New global.
10234 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10235 New functions.
10236 (i386_inferior_data_get): Delete.
10237 (i386_process_info_get): New function.
10238 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10239 (i386_forget_process): New function.
10240 (i386_cleanup_dregs): Rewrite.
10241 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10242 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10243 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10244 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10245 to i386_debug_reg_state.
10246 (i386_use_watchpoints): Don't register inferior data.
10247 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10248 adjust comment.
10249 (i386_forget_process): Declare.
10250 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10251 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10252 New static globals.
10253 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10254 (add_initial_lwp): New, factored out from ...
10255 (add_lwp): ... this. Don't check the number of lwps before
10256 calling linux_nat_new_thread.
10257 (linux_nat_iterate_watchpoint_lwps): Delete.
10258 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10259 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10260 forks and vforks.
10261 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10262 initial lwp.
10263 (linux_nat_kill, linux_nat_mourn_inferior): Call
10264 linux_nat_forget_process.
10265 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10266 (linux_nat_forget_process): New functions.
10267 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10268 type.
10269 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10270 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10271 types.
10272 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10273 (linux_nat_forget_process): New declarations.
10274
10275 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10276 (amd64fbsd_mourn_inferior): New function.
10277 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10278 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10279
10280 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10281
10282 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10283 Adding _().
10284
10285 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10286
10287 * aarch64-linux-nat.c (debug_reg_change_callback)
10288 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10289 %s and phex().
10290
10291 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10292
10293 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10294 with LONGEST.
10295
10296 2013-02-13 Pedro Alves <palves@redhat.com>
10297 Hafiz Abid Qadeer <abidh@codesourcery.com>
10298
10299 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10300
10301 2013-02-12 Tom Tromey <tromey@redhat.com>
10302
10303 PR symtab/11464:
10304 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10305 NAME return.
10306 (classify_inner_name): Remove 'first_name' argument, add
10307 'context'. Remove unused variable.
10308 (yylex): Explicitly maintain the context type. Exit loop earlier
10309 if NAME result is seen.
10310
10311 2013-02-12 Pedro Alves <palves@redhat.com>
10312
10313 * amd64-darwin-tdep.c: Add (C) after Copyright.
10314 * cli/cli-cmds.h: Ditto.
10315 * cli/cli-decode.c: Ditto.
10316 * cli/cli-decode.h: Ditto.
10317 * cli/cli-dump.c: Ditto.
10318 * cli/cli-dump.h: Ditto.
10319 * cli/cli-interp.c: Ditto.
10320 * cli/cli-logging.c: Ditto.
10321 * cli/cli-script.c: Ditto.
10322 * cli/cli-script.h: Ditto.
10323 * cli/cli-setshow.c: Ditto.
10324 * cli/cli-setshow.h: Ditto.
10325 * cli/cli-utils.c: Ditto.
10326 * cli/cli-utils.h: Ditto.
10327 * config/alpha/nm-osf3.h: Ditto.
10328 * config/djgpp/djconfig.sh: Ditto.
10329 * config/i386/nm-fbsd.h: Ditto.
10330 * config/i386/nm-i386gnu.h: Ditto.
10331 * config/nm-linux.h: Ditto.
10332 * config/nm-nto.h: Ditto.
10333 * config/rs6000/nm-rs6000.h: Ditto.
10334 * config/sparc/nm-sol2.h: Ditto.
10335 * darwin-nat-info.c: Ditto.
10336 * dfp.c: Ditto.
10337 * dfp.h: Ditto.
10338 * gdb-demangle.h: Ditto.
10339 * i386-darwin-nat.c: Ditto.
10340 * i386-darwin-tdep.c: Ditto.
10341 * linux-fork.h: Ditto.
10342 * m32c-tdep.c: Ditto.
10343 * microblaze-linux-tdep.c: Ditto.
10344 * microblaze-rom.c: Ditto.
10345 * microblaze-tdep.c: Ditto.
10346 * microblaze-tdep.h: Ditto.
10347 * mips-linux-tdep.h: Ditto.
10348 * ppc-ravenscar-thread.c: Ditto.
10349 * ppc-ravenscar-thread.h: Ditto.
10350 * prologue-value.c: Ditto.
10351 * prologue-value.h: Ditto.
10352 * ravenscar-thread.c: Ditto.
10353 * ravenscar-thread.h: Ditto.
10354 * sparc-ravenscar-thread.c: Ditto.
10355 * sparc-ravenscar-thread.h: Ditto.
10356 * tilegx-linux-tdep.c: Ditto.
10357 * unwind_stop_reasons.def: Ditto.
10358 * windows-nat.h: Ditto.
10359 * xtensa-linux-tdep.c: Ditto.
10360 * xtensa-xtregs.c: Ditto.
10361 * regformats/regdat.sh: Ditto.
10362 * regformats/regdef.h: Ditto.
10363
10364 2013-02-12 Pedro Alves <palves@redhat.com>
10365
10366 * break-catch-sig.c: Update copyright years.
10367
10368 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10369
10370 Add support for a destructor for ui_out data and use it to
10371 provide a ui_out destructor.
10372 * ui-out.h: Declare the new ui_out destructor.
10373 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10374 * ui-out.c (default_data_destroy): Add a default data destructor
10375 which does nothing.
10376 (default_ui_out_impl): Set the new data_destroy field to
10377 default_data_destroy
10378 (uo_data_destroy): Local function which invokes the data
10379 destructor if present.
10380 (clear_table): Local function which clears the table data of a
10381 ui_out object.
10382 (ui_out_destroy): Public function which frees a ui_out object.
10383 (ui_out_table_end): Use the new clear_table function.
10384 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10385 NULL.
10386 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10387 to NULL.
10388
10389 2013-02-11 Doug Evans <dje@google.com>
10390
10391 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10392 (printf_decfloat): New function. Broken out from ui_printf.
10393 Remove unnecessary code to shift the entire format string down.
10394 (printf_pointer): New function.
10395 (ui_printf): Code to print C strings, wide C strings, decfloats,
10396 and pointers moved to separate functions.
10397
10398 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10399
10400 * valops.c (value_assign): Handling bitfield offset in
10401 `lval_internalvar_component' case.
10402
10403 2013-02-08 Doug Evans <dje@google.com>
10404
10405 * common/format.c (parse_format_string): Fix whitespace.
10406
10407 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10408
10409 * stack.c (return_command): Work around uninitialized variable
10410 warning.
10411
10412 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10413
10414 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10415 number of the registers from 36 to 34.
10416
10417 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10418
10419 * NEWS: Mention new AArch64 native and target support.
10420
10421 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10422
10423 * MAINTAINERS (Write After Approval): Add myself.
10424
10425 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10426 Marcus Shawcroft <marcus.shawcroft@arm.com>
10427 Nigel Stephens <nigel.stephens@arm.com>
10428 Yufeng Zhang <yufeng.zhang@arm.com>
10429
10430 * aarch64-linux-nat.c: New file.
10431 * config/aarch64/linux.mh: New file.
10432 * configure.host: Add AArch64.
10433 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10434
10435 2013-02-07 Doug Evans <dje@google.com>
10436
10437 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10438 disassemble command.
10439
10440 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10441
10442 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10443 set_gdbarch_fetch_tls_load_module_address.
10444
10445 2013-02-06 David S. Miller <davem@davemloft.net>
10446
10447 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10448 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10449 * value.c (struct_return_convention): New function.
10450 (using_struct_return): Implement in terms of struct_return_convention.
10451 * value.h (struct_return_convention): Declare.
10452 * stack.c (return_command): Allow successful overriding of the return
10453 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10454
10455 2013-02-06 Tom Tromey <tromey@redhat.com>
10456
10457 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10458 outside of TRY_CATCH.
10459
10460 2013-02-06 Yao Qi <yao@codesourcery.com>
10461
10462 * mi/mi-interp.c: Include "tracepoint.h".
10463 (mi_tsv_modified): Declare.
10464 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10465 (mi_interpreter_init): Call observer_attach_tsv_modified.
10466 (mi_tsv_modified): New.
10467 (mi_tsv_created, mi_tsv_deleted): Update.
10468 * tracepoint.c (trace_variable_command): Call
10469 observer_notify_tsv_modified if the initial value of tsv is
10470 changed.
10471 (delete_trace_state_variable): Call
10472 observer_notify_tsv_deleted earlier.
10473 (trace_variable_command): Caller update.
10474 (create_tsv_from_upload): Likewise.
10475 * observer.sh: Declare "struct trace_state_variable".
10476
10477 * NEWS: Mention the new MI notification "=tsv-modified".
10478
10479 2013-02-05 Doug Evans <dje@google.com>
10480
10481 * completer.c (location_completer): Fix typo in comment.
10482
10483 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10484
10485 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10486 ADDRESS sorted.
10487
10488 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10489
10490 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10491 Refactor if statement to avoid trailing || operator.
10492
10493 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10494
10495 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10496
10497 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10498
10499 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10500 * configure.host: Add powerpc*-*-freebsd* target.
10501 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10502 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10503 * config/powerpc/fbsd.mh: New file.
10504
10505 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10506 Denys Vlasenko <dvlasenk@redhat.com>
10507 Pedro Alves <palves@redhat.com>
10508
10509 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10510 (struct elf_internal_linux_prpsinfo): Forward declare.
10511 * gdbarch.h, gdbarch.c: Regenerate.
10512 * linux-tdep.c: Include `cli/cli-utils.h'.
10513 (linux_fill_prpsinfo): New function.
10514 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10515 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10516 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10517 depending on gdbarch pointer bitness.
10518 * ppc-linux-tdep.c: Include elf-bfd.h.
10519 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10520 on 32-bit.
10521
10522 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10523 Marcus Shawcroft <marcus.shawcroft@arm.com>
10524 Nigel Stephens <nigel.stephens@arm.com>
10525 Yufeng Zhang <yufeng.zhang@arm.com>
10526
10527 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10528
10529 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10530 Marcus Shawcroft <marcus.shawcroft@arm.com>
10531 Nigel Stephens <nigel.stephens@arm.com>
10532 Yufeng Zhang <yufeng.zhang@arm.com>
10533
10534 * aarch64-newlib-tdep.c: New file.
10535 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10536 aarch64*-*-elf.
10537 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10538 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10539 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10540 * osabi.c (gdb_osabi_names): Add "Newlib".
10541
10542 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10543 Marcus Shawcroft <marcus.shawcroft@arm.com>
10544 Nigel Stephens <nigel.stephens@arm.com>
10545 Yufeng Zhang <yufeng.zhang@arm.com>
10546
10547 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10548 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10549 * aarch64-linux-tdep.c: New file.
10550 * aarch64-linux-tdep.h: New file.
10551 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10552 * configure.tgt: Add aarch64-none-linux-gnu.
10553
10554 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10555 Marcus Shawcroft <marcus.shawcroft@arm.com>
10556 Nigel Stephens <nigel.stephens@arm.com>
10557 Yufeng Zhang <yufeng.zhang@arm.com>
10558
10559 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10560 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10561 (ALLDEPFILES): Add aarch64-tdep.c.
10562 * aarch64-tdep.c: New file.
10563 * aarch64-tdep.h: New file.
10564 * configure.tgt: Add AArch64.
10565 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10566 (aarch64-expedite): New definition.
10567 * features/aarch64-core.xml: New file.
10568 * features/aarch64-fpu.xml: New file.
10569 * features/aarch64-without-fpu.c: New file (generated).
10570 * features/aarch64-without-fpu.xml: New file.
10571 * features/aarch64.c: New file (generated).
10572 * features/aarch64.xml: New file.
10573 * regformats/aarch64-without-fpu.dat: New file (generated).
10574 * regformats/aarch64.dat: New file (generated).
10575
10576 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10577
10578 * contrib/expect-read1.c: New file.
10579 * contrib/expect-read1.sh: New file.
10580
10581 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10582
10583 * dwarf2read.c (file_file_name): New function with code from
10584 file_full_name.
10585 (file_full_name): Move most of the code to file_file_name.
10586 (macro_start_file): Rename variable full_name to file_name and use
10587 file_file_name for it. Add comp_dir parameter to new_macro_table.
10588 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10589 macro_source_file->filename access by macro_source_fullname call.
10590 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10591 caller.
10592 * macrotab.c (struct macro_table): New field comp_dir.
10593 (macro_include): New variables link_fullname and source_fullname.
10594 Replace any macro_source_file->filename access by macro_source_fullname
10595 call.
10596 (macro_lookup_inclusion): Remove the partial filenames checking code.
10597 (check_for_redefinition): New variables source_fullname and
10598 found_key_fullname. Replace any macro_source_file->filename access by
10599 macro_source_fullname call.
10600 (macro_undef): New variables source_fullname and key_fullname. Replace
10601 any macro_source_file->filename access by macro_source_fullname call.
10602 (macro_lookup_definition): New variables retval and source_fullname.
10603 Replace any macro_source_file->filename access by macro_source_fullname
10604 call.
10605 (foreach_macro): New variable key_fullname. Replace any
10606 macro_source_file->filename access by macro_source_fullname call.
10607 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10608 macro_source_file->filename access by macro_source_fullname call.
10609 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10610 (macro_source_fullname): New function.
10611 * macrotab.h (struct macro_source_file): Extent the filename field
10612 comment.
10613 (new_macro_table): New parameter comp_dir, add a comment for it.
10614 (macro_source_fullname): new declaration.
10615
10616 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10617
10618 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10619 this_real_name to outer block. Use it also for
10620 compare_filenames_for_search.
10621 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10622 with dw2_get_real_path for file_matcher, considering also
10623 BASENAMES_MAY_DIFFER.
10624 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10625
10626 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10627
10628 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10629 to the file_matcher parameter. Pass 0 to it.
10630 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10631 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10632 NULL psymtab_to_fullname result.
10633 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10634 an expected filename instead.
10635 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10636 file_matcher parameter. Call also psymtab_to_fullname, after newly
10637 considering BASENAMES_MAY_DIFFER.
10638 * source.c (rewrite_source_path): Remove static.
10639 * source.h (rewrite_source_path): New declaration.
10640 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10641 the expand_symtabs_matching field. Comment it.
10642 * symtab.c (file_matches): New function comment. Add parameter
10643 basenames, implement it.
10644 (search_symbols_file_matches): Add basenames parameter. Update the
10645 file_matches caller.
10646 (search_symbols): Match FILES also against symtab_to_fullname.
10647 Optimize it for BASENAMES_MAY_DIFFER.
10648
10649 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10650
10651 * source.c (print_source_lines_base): Print for TUI also "fullname".
10652 * tui/tui-data.c (init_content_element): Change tui_locator_element
10653 field to full_name.
10654 * tui/tui-data.h (struct tui_locator_element): Likewise.
10655 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10656 tui_update_locator_filename calls to tui_update_locator_fullname.
10657 Replace symtab->filename refererence by symtab_to_fullname call.
10658 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10659 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10660 field to full_name. Replace symtab->filename refererence by
10661 symtab_to_fullname call.
10662 (tui_show_symtab_source): Rename parameter to fullname. Change
10663 tui_locator_element field to full_name.
10664 * tui/tui-stack.c: Include source.h.
10665 (tui_set_locator_filename): Rename the declaration to ...
10666 (tui_set_locator_fullname): ... here. Rename its parameter to
10667 fullname, updates its comment.
10668 (tui_set_locator_info): Rename its parameter to fullname.
10669 (tui_set_locator_filename): Rename the definition to ...
10670 (tui_set_locator_fullname): ... here. Rename its parameter to
10671 fullname, updates its comment. Change tui_locator_element field to
10672 full_name.
10673 (tui_set_locator_info): Rename its parameter to fullname.
10674 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10675 (tui_update_locator_filename): Rename to ...
10676 (tui_update_locator_fullname): ... here. Rename callee to
10677 tui_set_locator_fullname.
10678 (tui_show_frame_info): Replace symtab->filename refererence by
10679 symtab_to_fullname call.
10680 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10681 (tui_update_locator_fullname): ... here.
10682 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10683 tui_update_locator_fullname. Replace symtab->filename refererence by
10684 symtab_to_fullname call.
10685 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10686 Rename the callee to tui_update_locator_fullname.
10687 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10688
10689 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10690
10691 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10692 by symtab_to_filename_for_display calls.
10693 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10694 (clear_command): New variable sal_fullname, initialize it. Replace
10695 compare_filenames_for_search by filename_cmp with sal_fullname.
10696 (say_where, update_static_tracepoint): Replace symtab->filename
10697 refererences by symtab_to_filename_for_display calls.
10698 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10699 Likewise.
10700 * dwarf2read.c: Include source.h.
10701 (fixup_go_packaging): Replace symtab->filename refererences by
10702 symtab_to_filename_for_display calls.
10703 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10704 Replace symtab->filename refererences by symtab_to_filename_for_display
10705 calls.
10706 (create_sals_line_offset, convert_linespec_to_sals): New variable
10707 fullname, initialize it, replace symtab->filename reference by the
10708 variable.
10709 * linux-fork.c: Include source.h.
10710 (info_checkpoints_command): Replace symtab->filename refererences by
10711 symtab_to_filename_for_display calls.
10712 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10713 by symtab_to_filename_for_display calls.
10714 * mdebugread.c: Include source.h.
10715 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10716 symtab_to_filename_for_display calls.
10717 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10718 (mi_cmd_file_list_exec_source_files): Likewise.
10719 * printcmd.c: Include source.h.
10720 (build_address_symbolic): Replace symtab->filename refererences by
10721 symtab_to_filename_for_display calls.
10722 * psymtab.c (partial_map_symtabs_matching_filename)
10723 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10724 with psymtab_to_fullname.
10725 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10726 by symtab_to_filename_for_display calls.
10727 (stpy_get_filename): New variable filename, initialize it, use instead
10728 of symtab->filename refererences.
10729 (salpy_str): Make variable filename const char *. Replace
10730 symtab->filename refererences by symtab_to_filename_for_display calls.
10731 * skip.c: Include source.h and filenames.h.
10732 (skip_file_command): Remove const from the symtab variable. Replace
10733 symtab->filename refererences by symtab_to_fullname call.
10734 (function_name_is_marked_for_skip): New variables searched_for_fullname
10735 and fullname. Use them to search also with symtab's fullname.
10736 * source.c (find_source_lines): Replace symtab->filename refererences
10737 by symtab_to_filename_for_display calls.
10738 (print_source_lines_base): New variable filename, use it instead of
10739 symtab->filename. Replace symtab->filename refererences by
10740 symtab_to_filename_for_display calls.
10741 (line_info, forward_search_command): Replace symtab->filename
10742 refererences by symtab_to_filename_for_display calls.
10743 (reverse_search_command): Replace symtab->filename refererences by
10744 symtab_to_filename_for_display calls. New variable filename for it.
10745 * stack.c (frame_info): Likewise.
10746 * symmisc.c: Include source.h.
10747 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10748 (maintenance_info_symtabs): Replace symtab->filename refererences by
10749 symtab_to_filename_for_display calls.
10750 * symtab.c (iterate_over_some_symtabs): Call
10751 compare_filenames_for_search also with symtab_to_fullname.
10752 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10753 symtab->filename refererences by symtab_to_filename_for_display calls.
10754 (find_line_symtab): Replace symtab->filename refererences by
10755 symtab_to_filename_for_display calls.
10756 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10757 (print_symbol_info): Make the last parameter const char *. New
10758 variable s_filename. Use it in the function.
10759 (symtab_symbol_info): Make the last_filename variable const char *.
10760 Replace symtab->filename refererences by symtab_to_filename_for_display
10761 calls.
10762 (rbreak_command): New variable fullname. Use it. Replace
10763 symtab->filename refererence by symtab_to_filename_for_display call.
10764 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10765 (print_one_static_tracepoint_marker): Replace symtab->filename
10766 refererences by symtab_to_filename_for_display calls.
10767 * tui/tui-source.c (tui_set_source_content): New variables filename and
10768 s_filename. Replace symtab->filename refererences by this variable.
10769 Replace other symtab->filename refererences by
10770 symtab_to_filename_for_display calls.
10771
10772 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10773 Jan Kratochvil <jan.kratochvil@redhat.com>
10774
10775 Add a new variable that controls a way in which filenames are
10776 displayed.
10777 * NEWS (set filename-display): New entry.
10778 * source.c (filename_display_basename, filename_display_relative)
10779 (filename_display_absolute, filename_display_kind_names)
10780 (filename_display_string, show_filename_display_string)
10781 (symtab_to_filename_for_display): New.
10782 (_initialize_source): Added initialization of 'filename-display'
10783 variable.
10784 * source.h (symtab_to_filename_for_display): Added declaration.
10785 * stack.c (print_frame): Added new variable and calling of a new
10786 function and condition with this variable. Changed third argument of
10787 calling of a function.
10788
10789 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10790
10791 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10792 Rename field reference filename to fullname.
10793 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10794 fullname. New comment for it.
10795 * tui/tui-source.c (tui_set_source_content): Rename field reference
10796 filename to fullname. Initialize field by symtab_to_fullname now.
10797 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10798 reference filename to fullname. Use symtab_to_fullname during
10799 comparison.
10800
10801 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10802
10803 Code cleanup.
10804 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10805 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10806 filename to fullname. Rename variable this_name to this_fullname.
10807 Lowercase FILENAME_CMP call.
10808 (dw2_find_symbol_file): New comment for the returned string.
10809 (dwarf2_gdb_index_functions): Rename the function to
10810 dw2_expand_symtabs_with_fullname.
10811 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10812 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10813 fullname.
10814 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10815 * symfile.h (struct quick_symbol_functions): Rename field
10816 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10817 parameter filename to fullname. Document returned string meaning for
10818 find_symbol_file.
10819 * symtab.c (find_line_symtab): Rename the called function to
10820 expand_symtabs_with_fullname.
10821
10822 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10823
10824 Code cleanup.
10825 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10826 call of filename_cmp with compare_filenames_for_search.
10827 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10828 is_abs, unify the call of FILENAME_CMP with
10829 compare_filenames_for_search. New gdb_asserts for real_path and name.
10830 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10831 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10832 * symfile.h (struct quick_symbol_functions): Extend the comment for
10833 map_symtabs_matching_filename.
10834 * symtab.c (compare_filenames_for_search): Remove the function comment
10835 relative path requirement. Handle absolute filenames, with a comment.
10836 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10837 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10838 real_path and name. Unify the call of compare_filenames_for_search
10839 with FILENAME_CMP.
10840 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10841
10842 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10843
10844 Code cleanup.
10845 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10846 source_file references by symtab field references. Remove variables
10847 sal and fullname.
10848 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10849 (clear_command, say_where): Replace bp_location field source_file
10850 references by symtab field references.
10851 (bp_location_dtor): Remove the source_file reference.
10852 (update_static_tracepoint): Replace bp_location field source_file
10853 references by symtab field references.
10854 (breakpoint_free_objfile): New function.
10855 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10856 Replace the field source_file by field symtab, extend its comment.
10857 (breakpoint_free_objfile): New declaration.
10858 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10859 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10860 field source_file references by symtab field references.
10861
10862 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10863
10864 Replace xfullpath calls by gdb_realpath calls.
10865 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10866 function comment.
10867 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10868 Remove it from the iterate_over_some_symtabs call.
10869 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10870 Remove it from the dw2_map_expand_apply calls, remove a block handling
10871 it.
10872 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10873 Remove it from the iterate_over_some_symtabs call.
10874 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10875 Remove it from the partial_map_expand_apply calls, remove a block
10876 handling it. Drop gdb_realpath call and cleanups from the real_path
10877 handling.
10878 * source.c (openp): Drop the comment part about xfullpath. Replace
10879 xfullpath calls by gdb_realpath calls.
10880 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10881 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10882 from method map_symtabs_matching_filename and its comment.
10883 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10884 gdb_realpath call.
10885 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10886 remove it also from the function comment, remove a block handling it.
10887 Drop gdb_realpath call and cleanups from the real_path handling.
10888 (iterate_over_symtabs): Drop variable full_path and its use.
10889 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10890 * utils.c (xfullpath): Remove.
10891 * utils.h (xfullpath): Remove.
10892
10893 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10894
10895 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10896 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10897 (ALLDEPFILES): Add ppc64-tdep.c.
10898 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10899 ppc64-tdep.o to gdb_target_obs.
10900 * ppc64-tdep.h: New file.
10901 * ppc64-tdep.c: New file.
10902 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10903 ppc-linux-tdep.c to here.
10904 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10905 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10906 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10907 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10908 from ppc-linux-tdep.c to here.
10909 (ppc64_convert_from_func_ptr_addr): Rename from
10910 ppc64_linux_convert_from_func_ptr_addr to
10911 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10912 here.
10913 * rs6000-tdep.c:
10914 (read_insn): Move from ppc-linux-tdep.c to here.
10915 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10916 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10917 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10918 Removed above functions.
10919 (ppc_linux_init_abi): Adjust.
10920
10921 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10922
10923 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10924
10925 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10926
10927 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10928
10929 2013-02-01 Pedro Alves <palves@redhat.com>
10930
10931 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10932 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10933
10934 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10935
10936 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10937 files with no separate debug info.
10938 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10939 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10940 only for files with no separate debug info.
10941
10942 2013-01-31 Tom Tromey <tromey@redhat.com>
10943
10944 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10945 change type.
10946 (struct jit_program_space_data): Rename from jit_inferior_data.
10947 Update comments.
10948 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10949 Change return type. Attach data to program space.
10950 (jit_program_space_data_cleanup): Rename from
10951 jit_inferior_data_cleanup; change argument type.
10952 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10953 change type.
10954 (jit_register_code): Update.
10955 (jit_update_inferior_cache): Remove.
10956 (jit_breakpoint_deleted): Get jit data from the location's program
10957 space.
10958 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10959 'ps_data', change type.
10960 (jit_inferior_init, jit_breakpoint_re_set_internal)
10961 (jit_event_handler): Update.
10962 (free_objfile_data): Get data from objfile's program space.
10963 (_initialize_jit): Update.
10964
10965 2013-01-31 Tom Tromey <tromey@redhat.com>
10966
10967 PR gdb/13987:
10968 * jit.c (struct jit_inferior_data) <cached_code_address,
10969 jit_breakpoint>: New fields.
10970 (jit_breakpoint_re_set_internal): Fix logging. Only create
10971 breakpoint if cached address has changed.
10972 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10973 functions.
10974 (_initialize_jit): Register breakpoint deleted observer.
10975
10976 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10977
10978 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10979 (save_infcall_suspend_state): Ifdef out unused inf.
10980 (restore_infcall_suspend_state): Ifdef out unused inf.
10981 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10982 (jit_frame_sniffer): Remove unused inf_data.
10983
10984 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10985
10986 * c-exp.y (classify_inner_name): Remove unused type.
10987 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10988 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10989 need_escape.
10990 (c_get_string): Remove unused kind.
10991 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10992
10993 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10994
10995 * charset.c (intermediate_encoding): Remove unused i.
10996 * completer.c (signal_completer): Remove unused i.
10997 * continuations.c (discard_my_continuations_1): Remove unused
10998 continuation_ptr.
10999 * corelow.c (core_close): Remove unuseD name.
11000 (get_core_siginfo): Remove unused pid.
11001 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11002 i, cps.
11003 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11004 (loclist_describe_location): Remove unused first.
11005 * event-top.c (command_line_handler): Remove unused got_eof.
11006 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11007 (resize_section_table): Remove unused old_value.
11008 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11009 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11010 * i386-tdep.c (i386_process_record): Remove unused rex.
11011 * infcmd.c (get_return_value): Remove unused uiout.
11012 * jv-lang.c (type_from_class): Remove unused is_array.
11013 * jv-valprint.c (java_val_print): Remove unused i.
11014 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11015 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11016 * m2-typeprint.c (m2_print_type): Remove unused code.
11017 * macroexp.c (get_character_constant): Remove unused body_start.
11018 (macro_stringify): Remove unused result.
11019 * objc-lang.c (find_methods): Remove unused gdbarch.
11020 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11021 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11022 * stack.c (print_frame_args): Remove unused summary.
11023 * thread.c (thread_apply_command): Remove unused p.
11024 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11025 * valops.c (search_struct_method): Remove unused skip.
11026 * valprint.c (generic_val_print): Remove unused byte_order.
11027 * varobj.c (varobj_update): Remove unused changed.
11028 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11029 (alias_command): Remove unused c.
11030 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11031 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11032 format.
11033 (mi_cmd_data_write_memory): Remove unused word_format.
11034 (mi_cmd_data_write_memory_bytes): Remove unused r.
11035 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11036 p_start, p_end.
11037 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11038 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11039 line_width.
11040
11041 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11042
11043 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11044 * symtab.c (iterate_over_symtabs): Remove unused s.
11045 (find_pc_sect_symtab): Remove unused pspAce.
11046 (find_pc_sect_line): Remove unused alt_symtab.
11047 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11048 (completion_list_add_name): Remove unused newsize.
11049
11050 2013-01-31 Tom Tromey <tromey@redhat.com>
11051
11052 PR c++/14998:
11053 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11054 TYPE_CODE_FUNC.
11055
11056 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11057
11058 * target.c (target_read_string): Remove unused origlen.
11059
11060 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11061
11062 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11063 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11064 * ax-general.c (ax_print): Remove unused is_float.
11065 * blockframe.c (block_innermost_frame): Remove unused start, end.
11066 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11067
11068 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11069
11070 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11071 (svr4_read_so_list): Remove unused lmo.
11072 * solib-target.c (solib_target_relocate_section_addresses): Remove
11073 unused flags.
11074
11075 2013-01-30 Tom Tromey <tromey@redhat.com>
11076
11077 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11078
11079 2013-01-30 Tom Tromey <tromey@redhat.com>
11080
11081 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11082 * utils.c (gnu_debuglink_crc32): Remove.
11083 * utils.h (gnu_debuglink_crc32): Don't declare.
11084
11085 2013-01-30 Tom Tromey <tromey@redhat.com>
11086
11087 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11088 (read_structure_type, read_enumeration_type): Remove cast.
11089
11090 2013-01-30 Tom Tromey <tromey@redhat.com>
11091
11092 * dwarf2read.c (read_namespace_type): Remove cast.
11093 (read_typedef): Likewise.
11094
11095 2013-01-29 Tom Tromey <tromey@redhat.com>
11096
11097 * dwarf2read.c (free_dwo_file): Remove assert.
11098
11099 2013-01-29 Tom Tromey <tromey@redhat.com>
11100
11101 * value.c (deprecated_set_value_modifiable): Remove.
11102 * value.h (deprecated_set_value_modifiable): Remove.
11103
11104 2013-01-28 Doug Evans <dje@google.com>
11105
11106 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11107 to addresses from dwo files.
11108
11109 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11110
11111 * valops.c (find_overload_match): Remove unused argument 'lax'.
11112 * value.h: Remove unused argument 'lax' from the declaration of
11113 find_overload_match.
11114 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11115 to find_overload_match.
11116 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11117 argument to find_overload_match.
11118
11119 2013-01-25 Tom Tromey <tromey@redhat.com>
11120
11121 * dwarf2read.c (processing_has_namespace_info): Remove.
11122 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11123 (process_die, read_func_scope, dwarf2_start_symtab)
11124 (new_symbol_full): Update.
11125
11126 2013-01-25 Tom Tromey <tromey@redhat.com>
11127
11128 * cp-namespace.c (cp_set_block_scope): Remove.
11129 * cp-support.h (cp_set_block_scope): Remove.
11130 * dbxread.c: Include block.h.
11131 (cp_set_block_scope): New function.
11132 (process_one_symbol): Update.
11133 * dwarf2read.c (read_func_scope): Use block_set_scope.
11134
11135 2013-01-25 Pedro Alves <palves@redhat.com>
11136
11137 * remote.c (add_current_inferior_and_thread): Tweak comment.
11138
11139 2013-01-25 Tom Tromey <tromey@redhat.com>
11140
11141 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11142 (cp_add_using_directive): Add 'copy_names' argument.
11143 * cp-support.h (cp_add_using_directive): Update.
11144 (struct using_direct) <import_src, import_dest, alias,
11145 declaration>: Now const.
11146 * dwarf2read.c (read_import_statement): Use obconcat.
11147 Don't copy names passed to cp_add_using_directive.
11148
11149 2013-01-25 Tom Tromey <tromey@redhat.com>
11150
11151 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11152
11153 2013-01-25 Pedro Alves <palves@redhat.com>
11154
11155 * remote.c (stop_reply_extract_thread): New.
11156 (add_current_inferior_and_thread): New parameter 'wait_status'.
11157 Handle it.
11158 (remote_start_remote): Pass wait status to
11159 add_current_inferior_and_thread.
11160 (extended_remote_run): Update comment.
11161 (extended_remote_create_inferior_1): Pass wait status to
11162 add_current_inferior_and_thread.
11163
11164 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11165 Ulrich Weigand <uweigand@de.ibm.com>
11166
11167 * valarith.c (value_vector_widen): New function for replicating a
11168 scalar into a vector.
11169 (value_binop): Use value_vector_widen to widen scalar to vector
11170 rather than casting, this better matches gcc C behaviour.
11171 * valops.c (value_casst): Update logic for casting between vector
11172 types, and for casting from scalar to vector, try to match gcc C
11173 behaviour.
11174 * value.h (value_vector_widen): Declare.
11175 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11176 function, handle special case for casting scalar to vector.
11177 (opencl_relop): Use opencl_value_cast.
11178 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11179 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11180 in order to use opencl_value_cast.
11181
11182 2013-01-25 Yao Qi <yao@codesourcery.com>
11183
11184 * event-loop.c: Include "queue.h".
11185 (gdb_event_p): New typedef.
11186 (DECLARE_QUEUE_P): Use.
11187 (DEFINE_QUEUE_P): Use.
11188 (async_queue_event): Remove.
11189 (gdb_event_xfree): New.
11190 (initialize_event_loop): New.
11191 (process_event): Use QUEUE macros.
11192 (event_queue): Remove.
11193 (gdb_wait_for_event): Caller update.
11194 (check_async_event_handlers): Likewise.
11195 (poll_timers): Likewise.
11196 * event-loop.h (initialize_event_loop): Declare.
11197 * event-loop.c (gdb_event_xfree): New.
11198 * top.c (gdb_init): Call initialize_event_loop.
11199
11200 2013-01-25 Yao Qi <yao@codesourcery.com>
11201
11202 * event-loop.c (async_queue_event): Remove one parameter
11203 'position'. Remove code handling 'position' == TAIL.
11204 (gdb_wait_for_event): Caller update.
11205 (check_async_event_handlers): Caller update.
11206 (poll_timers): Caller update.
11207 * event-loop.h (enum queue_position): Remove.
11208
11209 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11210
11211 * MAINTAINERS: Update my email.
11212
11213 2013-01-25 Yao Qi <yao@codesourcery.com>
11214
11215 * main.c (print_gdb_help): Remove "--epoch" from the help
11216 message.
11217
11218 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11219
11220 * symtab.c (skip_prologue_using_sal): Consider a file
11221 change the same as an increased line number
11222
11223 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11224
11225 * MAINTAINERS (Write After Approval): Add myself to the list.
11226
11227 2013-01-24 Tom Tromey <tromey@redhat.com>
11228
11229 * ada-lang.h (ada_decode_symbol): Make return type const.
11230 * ada-lang.c (ada_decode_symbol): Likewise.
11231
11232 2013-01-23 Doug Evans <dje@google.com>
11233
11234 * linespec.c (find_linespec_symbols): Make static.
11235
11236 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11237
11238 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11239 type on float conversion for complex type.
11240
11241 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11242
11243 Add a new class gdb.Architecture which exposes GDB's
11244 internal representation of architecture via GDB Python API.
11245 * Makefile.in: Add entries corresponding to the new file
11246 python/py-arch.c.
11247 * NEWS (Python Scripting): Add entries for the new class
11248 gdb.Architecture and the new method gdb.Frame.architecture.
11249 * python/py-arch.c: Implement gdb.Architecture class.
11250 * python/py-frame.c (frapy_arch): Implement the method
11251 gdb.Frame.architecture().
11252 (frame_object_methods): Add 'architecture' to the method table.
11253 * python/python-internal.h: Add declarations of new utility
11254 functions.
11255 * python/python.c (_initialize_python): Initialize
11256 gdb.Architecture class.
11257
11258 2013-01-23 Doug Evans <dje@google.com>
11259
11260 Work around binutils/15021.
11261 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11262 type_unit_group out of union s. All uses updated.
11263 (read_index_from_section): Watch for index version 8.
11264 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11265 an imported symtab.
11266 (write_psymtabs_to_index): Increment version number to 8.
11267
11268 2013-01-22 Pedro Alves <palves@redhat.com>
11269
11270 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11271 user-visible.
11272
11273 2013-01-22 Pedro Alves <palves@redhat.com>
11274
11275 * annotate.c (annotate_breakpoints_changed): Rename to ...
11276 (annotate_breakpoints_invalid): ... this. Make static.
11277 (breakpoint_changed): Adjust.
11278 (_initialize_annotate): Always install the observers. Install a
11279 "breakpoint_created" observer.
11280 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11281 * breakpoint.c (set_breakpoint_condition)
11282 (breakpoint_set_commands, do_map_commands_command)
11283 (init_raw_breakpoint, clear_command, set_ignore_count)
11284 (enable_breakpoint_disp): No longer call
11285 annotate_breakpoints_changed.
11286
11287 2013-01-22 Pedro Alves <palves@redhat.com>
11288
11289 * annotate.c: Include "inferior.h".
11290 (frames_invalid_emitted)
11291 (breakpoints_invalid_emitted): New globals.
11292 (async_background_execution_p): New function.
11293 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11294 emitting the annotation if it has already been emitted.
11295 (annotate_display_prompt): New function.
11296 * annotate.h (annotate_display_prompt): New declaration.
11297 * event-top.c: Include annotate.h.
11298 (display_gdb_prompt): Call annotate_display_prompt.
11299
11300 2013-01-22 Pedro Alves <palves@redhat.com>
11301
11302 * annotate.c (ignore_count_changed): Delete.
11303 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11304 (annotate_ignore_count_change): Delete.
11305 (annotate_stopped): Don't emit a delayed breakpoints-changed
11306 annotation.
11307 * annotate.h (annotate_ignore_count_change): Delete.
11308 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11309 annotate_ignore_count_change.
11310
11311 2013-01-22 Tom Tromey <tromey@redhat.com>
11312
11313 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11314 require_rvalue for a register location.
11315
11316 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11317
11318 * breakpoint.c (print_one_breakpoint_location): Add MI
11319 field 'thread-groups' when printing a breakpoint.
11320 (output_thread_groups): New function.
11321
11322 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11323
11324 * python/lib/gdb/commands/explore.py
11325 (CompoundExplorer.explore_expr): Correct the name of a method
11326 being invoked.
11327 (ExploreTypeCommand.invoke): Add a missing 'return'.
11328
11329 2013-01-21 Tom Tromey <tromey@redhat.com>
11330
11331 * gdb_obstack.h (obconcat): Move declaration here, from...
11332 * symfile.h (obconcat): ... here.
11333 * gdb_obstack.c: New file.
11334 (obconcat): Move from...
11335 * symfile.c (obconcat): ... here.
11336 * Makefile.in (SFILES): Add gdb_obstack.c.
11337 (COMMON_OBS): Add gdb_obstack.o.
11338
11339 2013-01-21 Tom Tromey <tromey@redhat.com>
11340
11341 * symfile.h (obsavestring): Don't declare.
11342 * symfile.c (obsavestring): Remove.
11343 * ada-exp.y: Use obstack_copy0, not obsavestring.
11344 * ada-lang.c: Use obstack_copy0, not obsavestring.
11345 * coffread.c: Use obstack_copy0, not obsavestring.
11346 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11347 * dbxread.c: Use obstack_copy0, not obsavestring.
11348 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11349 * jit.c: Use obstack_copy0, not obsavestring.
11350 * mdebugread.c: Use obstack_copy0, not obsavestring.
11351 * psymtab.c: Use obstack_copy0, not obsavestring.
11352 * stabsread.c: Use obstack_copy0, not obsavestring.
11353 * xcoffread.c: Use obstack_copy0, not obsavestring.
11354
11355 2013-01-21 Tom Tromey <tromey@redhat.com>
11356
11357 * dwarf2read.c (fixup_go_packaging): Save package name
11358 on objfile obstack.
11359 * gdbtypes.c (init_type): Don't copy name.
11360
11361 2013-01-21 Tom Tromey <tromey@redhat.com>
11362
11363 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11364 const.
11365 (struct attribute) <u.str>: Now const.
11366 (struct fnfieldlist) <name>: Now const.
11367 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11368 (partial_die_parent_scope): Make return type const.
11369 (partial_die_full_name, add_partial_symbol): Update.
11370 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11371 'name' const.
11372 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11373 (read_file_scope, read_func_scope, dwarf2_add_field)
11374 (dwarf2_add_member_fn, read_structure_type)
11375 (process_enumeration_scope, read_array_type, read_module_type)
11376 (read_base_type, read_subrange_type): Update.
11377 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11378 (new_symbol_full, guess_full_die_structure_name): Update.
11379 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11380 (dwarf2_name): Return const type.
11381 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11382 const.
11383
11384 2013-01-21 Tom Tromey <tromey@redhat.com>
11385
11386 * gdbtypes.c (init_type): Make 'name' const.
11387 * gdbtypes.h (init_type): Update.
11388
11389 2013-01-21 Tom Tromey <tromey@redhat.com>
11390
11391 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11392 (start_symtab): Make 'name' and 'dirname' const. Use
11393 set_last_source_file.
11394 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11395 (last_source_file): Define. Now static.
11396 (set_last_source_file, get_last_source_file): New functions.
11397 * buildsym.h (last_source_file): Don't declare.
11398 (start_symtab): Update.
11399 (set_last_source_file, get_last_source_file): Declare.
11400 * coffread.c (complete_symtab): Use set_last_source_file.
11401 (coff_end_symtab): Likewise.
11402 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11403 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11404 set_last_source_file.
11405 (process_one_symbol): Use get_last_source_file.
11406 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11407 (psymtab_to_symtab_1): Use get_last_source_file.
11408 * xcoffread.c (process_linenos): Use get_last_source_file.
11409 (complete_symtab): Use set_last_source_file.
11410 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11411 (scan_xcoff_symtab): Use set_last_source_file.
11412
11413 2013-01-21 Tom Tromey <tromey@redhat.com>
11414
11415 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11416 (symbol_set_names): Remove casts. Handle field const-ness.
11417
11418 2013-01-21 Tom Tromey <tromey@redhat.com>
11419
11420 * dwarf2read.c (new_symbol_full): Remove cast.
11421 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11422 * symtab.h (symbol_set_demangled_name): Update.
11423
11424 2013-01-21 Tom Tromey <tromey@redhat.com>
11425
11426 * main.c (captured_main): Call bfd_init.
11427
11428 2013-01-21 Tom Tromey <tromey@redhat.com>
11429
11430 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11431 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11432 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11433 * NEWS: Update.
11434
11435 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11436
11437 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11438
11439 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11440
11441 Fix gdb.fortran/common-block.exp crash in PIE mode.
11442 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11443 LOC_COMMON_BLOCK.
11444 * f-valprint.c (info_common_command_for_block): Expect
11445 LOC_COMMON_BLOCK in gdb_assert.
11446 * symtab.h (struct general_symbol_info): Update comment for the
11447 common_block member.
11448 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11449 (enum address_class): New member LOC_COMMON_BLOCK.
11450
11451 2013-01-18 David Blaikie <dblaikie@gmail.com>
11452
11453 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11454
11455 2013-01-18 Tom Tromey <tromey@redhat.com>
11456
11457 PR c++/14999:
11458 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11459 Call require_rvalue.
11460
11461 2013-01-18 Yao Qi <yao@codesourcery.com>
11462
11463 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11464 (dbx_read_symtab): New declaration.
11465 (dbx_psymtab_to_symtab): Delete.
11466 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11467 Rename parameter PST to SELF. Exchanged two parameters.
11468 (start_psymtab): Caller update.
11469 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11470 (dwarf2_read_symtab): New declaration.
11471 (dwarf2_psymtab_to_symtab): Delete.
11472 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11473 Rename parameter PST to SELF. Exchanged two parameters.
11474 (create_partial_symtab): Caller update.
11475 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11476 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11477 Rename parameter PST to SELF. Exchanged two parameters.
11478 (parse_partial_symbols, new_psymtab): Caller update.
11479 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11480 two parameters.
11481 * psymtab.c (psymtab_to_symtab): Caller update.
11482 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11483 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11484 Rename parameter PST to SELF. Exchanged two parameters.
11485 (xcoff_start_psymtab): Caller update.
11486
11487 2013-01-18 Yao Qi <yao@codesourcery.com>
11488
11489 * infrun.c (proceed): Rename local variable 'oneproc' to
11490 'force_step'.
11491
11492 2013-01-17 Doug Evans <dje@google.com>
11493
11494 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11495 (dw2_build_type_unit_groups): Delete. All uses updated.
11496
11497 * symtab.h (struct symbol_search): Add comment.
11498
11499 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11500
11501 * symtab.c (compare_filenames_for_search): New comment for
11502 HAS_DRIVE_SPEC.
11503
11504 2013-01-17 Tom Tromey <tromey@redhat.com>
11505
11506 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11507
11508 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11509
11510 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11511 initialize it by existing make_cleanup. Call new do_cleanups.
11512
11513 2013-01-17 Tom Tromey <tromey@redhat.com>
11514
11515 * cp-abi.c (cp_abi_completer): New function.
11516 (_initialize_cp_abi): Set completer for "set cp-abi".
11517
11518 2013-01-17 Tom Tromey <tromey@redhat.com>
11519
11520 * mem-break.c: Remove obsolete comment.
11521 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11522
11523 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11524
11525 * jit.c (jit_reader_load_command): Interpret the jit reader name
11526 as an absolute path if it begins with a forward slash.
11527
11528 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11529
11530 PR gdb/14550
11531
11532 * jit.c (finalize_symtab): Ensure that only the global block has a
11533 NULL superblock.
11534
11535 2013-01-17 Pedro Alves <palves@redhat.com>
11536
11537 * acinclude.m4: Include ../config/plugins.m4,
11538 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11539 * Makefile.in (aclocal_m4_deps): Update.
11540 * aclocal.m4: Renegerate.
11541
11542 2013-01-16 Doug Evans <dje@google.com>
11543
11544 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11545
11546 2013-01-16 Pedro Alves <palves@redhat.com>
11547 Tom Tromey <tromey@redhat.com>
11548
11549 PR cli/7221:
11550 * NEWS: Add "catch signal".
11551 * breakpoint.c (base_breakpoint_ops): No longer static.
11552 (bpstat_explains_signal): New function.
11553 (init_catchpoint): No longer static.
11554 (base_breakpoint_explains_signal): New function.
11555 (base_breakpoint_ops): Initialize new field.
11556 * breakpoint.h (enum bpstat_signal_value): New.
11557 (struct breakpoint_ops) <explains_signal>: New field.
11558 (bpstat_explains_signal): Remove macro, declare as function.
11559 (base_breakpoint_ops, init_catchpoint): Declare.
11560 * break-catch-sig.c: New file.
11561 * inferior.h (signal_catch_update): Declare.
11562 * infrun.c (signal_catch): New global.
11563 (handle_syscall_event): Update for change to
11564 bpstat_explains_signal.
11565 (handle_inferior_event): Likewise. Always handle random signals
11566 via bpstats.
11567 (signal_cache_update): Check signal_catch.
11568 (signal_catch_update): New function.
11569 (_initialize_infrun): Initialize signal_catch.
11570 * Makefile.in (SFILES): Add break-catch-sig.c.
11571 (COMMON_OBS): Add break-catch-sig.o.
11572
11573 2013-01-16 Tom Tromey <tromey@redhat.com>
11574
11575 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11576 (print_one_catch_solib, print_one_catch_syscall)
11577 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11578 "catch-type".
11579
11580 2013-01-16 Yao Qi <yao@codesourcery.com>
11581
11582 * printcmd.c (current_display_number): Make it static.
11583
11584 2013-01-16 Yao Qi <yao@codesourcery.com>
11585
11586 * infcmd.c (step_once): Don't check '!single_inst' as it was
11587 checked before.
11588
11589 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11590
11591 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11592
11593 2013-01-14 Tom Tromey <tromey@redhat.com>
11594
11595 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11596 set command.
11597 * command.h (add_setshow_string_noescape_cmd): Update.
11598 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11599 (complete_set_gnutarget): New function.
11600 (_initialize_core): Set the "set gnutarget" completer.
11601
11602 2013-01-14 Tom Tromey <tromey@redhat.com>
11603
11604 PR symtab/14442:
11605 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11606 (c_type_print_modifier): Likewise.
11607 * dwarf2read.c (read_tag_restrict_type): New function.
11608 (read_type_die_1): Handle DW_TAG_restrict_type.
11609 * gdbtypes.c (make_restrict_type): New function.
11610 (recursive_dump_type): Handle TYPE_RESTRICT.
11611 * gdbtypes.h (enum type_flag_values): Renumber.
11612 (enum type_instance_flag_value): Add
11613 TYPE_INSTANCE_FLAG_RESTRICT.
11614 (TYPE_RESTRICT): New macro.
11615 (make_restrict_type): Declare.
11616
11617 2013-01-14 Tom Tromey <tromey@redhat.com>
11618
11619 PR symtab/14931:
11620 * psymtab.c (struct psymtab_state): New.
11621 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11622 functions.
11623 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11624 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11625
11626 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11627 Pedro Alves <palves@redhat.com>
11628
11629 PR remote/14786
11630
11631 * remote.c (remote_threads_info): Make a copy of the reply from
11632 qfThreadInfo and use that instead of rs->buf.
11633
11634 2013-01-14 Yao Qi <yao@codesourcery.com>
11635
11636 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11637 (dbx_psymtab_to_symtab): Likewise.
11638 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11639 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11640 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11641
11642 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11643
11644 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11645 make_cleanup_restore_current_language. Call set_language. Move
11646 OLD_CHAIN and INNER_CHAIN cleanups.
11647 * utils.c (do_restore_current_language)
11648 (make_cleanup_restore_current_language): New functions.
11649 * utils.h (make_cleanup_restore_current_language): New declaration.
11650
11651 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11652
11653 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11654 non-existing files.
11655
11656 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11657 non-existing files if FILENAME is already absolute.
11658
11659 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11660
11661 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11662 fputs_filtered. Append trailing newline.
11663
11664 2013-01-11 Yao Qi <yao@codesourcery.com>
11665 Stan Shebs <stan@codesourcery.com>
11666
11667 * psymtab.c (init_psymbol_list): Clarify the comment.
11668
11669 2013-01-11 Yao Qi <yao@codesourcery.com>
11670
11671 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11672 (update_dprintf_command_list): Assert that 'printf_line' is
11673 non-null. Remove condition check.
11674
11675 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11676
11677 Code cleanup.
11678 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11679 type const char *.
11680 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11681 const char *.
11682 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11683
11684 2013-01-09 Anthony Green <green@moxielogic.com>
11685
11686 * cp-abi.c (cplus_print_vtable): Don't return value from void
11687 function.
11688 * ada-lang.c (re_set_catch_assert): Ditto.
11689
11690 2013-01-09 Doug Evans <dje@google.com>
11691
11692 * symfile.h (quick_symbol_functions): Delete member
11693 pre_expand_symtabs_matching. All uses removed.
11694 * dwarf2read.c (dw2_lookup_symbol): Implement.
11695 (dw2_do_expand_symtabs_matching): Delete.
11696 (dw2_pre_expand_symtabs_matching): Delete.
11697 (struct dw2_symtab_iterator): New type.
11698 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11699 (dw2_expand_symtabs_for_function): Rewrite.
11700 (dwarf2_gdb_index_functions): Update.
11701 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11702 (psym_functions): Update.
11703
11704 2013-01-09 Tom Tromey <tromey@redhat.com>
11705
11706 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11707 * configure: Rebuild.
11708 * configure.ac: Add somread.o to the build if BFD has SOM
11709 support.
11710 * somread.c: Include som/aout.h, not syms.h.
11711 (som_symtab_read): Use som_external_symbol_dictionary_record.
11712 Unpack records manually.
11713 (_initialize_somread): Declare.
11714
11715 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11716
11717 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11718 Cast return_address to 64bits.
11719
11720 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11721
11722 * printcmd.c: Remove define of function output_command.
11723 * tracepoint.c: Remove extern of function output_command.
11724 * valprint.h: (output_command): New extern.
11725
11726 2013-01-07 Tom Tromey <tromey@redhat.com>
11727
11728 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11729 Remove.
11730 (objc_language_defn): Use c_printchar, c_printstr,
11731 c_emit_char.
11732
11733 2013-01-07 Tom Tromey <tromey@redhat.com>
11734
11735 PR cli/7719:
11736 * NEWS: Update.
11737 * ada-valprint.c (printstr, print_field_values): Remove
11738 "inspect_it" code.
11739 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11740 code.
11741 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11742 code.
11743 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11744 * main.c (captured_main): Remove "epoch" argument.
11745 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11746 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11747 * p-valprint.c (pascal_object_print_value_fields): Remove
11748 "inspect_it" code.
11749 * printcmd.c (print_command_1): Remove 'inspect' argument.
11750 (print_command, call_command): Update.
11751 (inspect_command): Remove.
11752 (_initialize_printcmd): Make "inspect" an alias for "print".
11753 * top.c (epoch_interface): Remove.
11754 * top.h (epoch_interface): Remove.
11755 * valprint.c (user_print_options): Update.
11756 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11757 * valprint.h (struct value_print_options) <inspect_it>: Remove
11758 field.
11759
11760 2013-01-04 Tom Tromey <tromey@redhat.com>
11761
11762 * valprint.h (read_string): Add 'extern'.
11763
11764 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11765
11766 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11767 used to decide whether to define darwin_read_dyld_info or not.
11768
11769 2013-01-03 Pierre Muller <muller@sourceware.org>
11770
11771 * main.c (relocate_gdb_directory): Avoid calling stat function
11772 if DIR is empty.
11773
11774 2013-01-03 Yao Qi <yao@codesourcery.com>
11775
11776 * psymtab.c (fixup_psymbol_section): Update declaration.
11777 (fixup_psymbol_section): Remove code returning value.
11778
11779 2013-01-03 Yao Qi <yao@codesourcery.com>
11780
11781 * symtab.h: Remove some out of date comments.
11782 (enum exception_event_kind): Move it ...
11783 * breakpoint.c: ... here.
11784
11785 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11786
11787 PR gdb/14405
11788 * darwin-nat.c (darwin_read_dyld_info): Only build if
11789 TASK_DYLD_INFO_COUNT is defined.
11790 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11791 TASK_DYLD_INFO_COUNT is defined.
11792
11793 2013-01-02 Tom Tromey <tromey@redhat.com>
11794
11795 * symfile.h (struct ecoff_debug_hack): Remove.
11796 * objfiles.c: Don't include mdebugread.h.
11797
11798 2013-01-02 Tom Tromey <tromey@redhat.com>
11799
11800 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11801 * configure.ac: Check for Mach-O support in BFD. Update
11802 CONFIG_OBS.
11803 * configure: Rebuild.
11804
11805 2013-01-02 Tom Tromey <tromey@redhat.com>
11806
11807 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11808 * configure.ac: Use GDB_AC_CHECK_BFD.
11809 * configure: Rebuild.
11810
11811 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11812
11813 * MAINTAINERS: Update my email.
11814
11815 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11816
11817 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11818
11819 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11820
11821 * rs6000-nat.c (bss_data_overlap): New function.
11822 (vmap_symtab): Use it to adjust the .bss section's offset.
11823
11824 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11825
11826 Update year range in copyright notice of all files.
11827
11828 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11829
11830 * top.c (print_gdb_version): Update copyright year.
11831
11832 For older changes see ChangeLog-2012.
11833 \f
11834 Local Variables:
11835 mode: change-log
11836 left-margin: 8
11837 fill-column: 74
11838 version-control: never
11839 coding: utf-8
11840 End:
This page took 0.337126 seconds and 4 git commands to generate.