Start inferior before running test listing Ada exceptions.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
805e1f19
TT
12013-11-15 Tom Tromey <tromey@redhat.com>
2
3 PR c++/16117:
4 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
5 (classify_name): Likewise. Prefer a field of "this" over a
6 filename.
7 (classify_inner_name, yylex): Update.
8
0acf8b65
JB
92013-11-15 Joel Brobecker <brobecker@adacore.com>
10
11 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
12 Extend the documentation a bit.
13 <get_reg_value>: New field.
14 * dwarf2loc.c (dwarf_expr_get_reg_value)
15 (needs_frame_get_reg_value): New functions.
16 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
17 callback.
18 * dwarf2-frame.c (get_reg_value): New function.
19 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
20 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
21 Use new callback to compute result_val.
22
ef1bc9e7
AM
232013-11-15 Alan Modra <amodra@gmail.com>
24
25 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
26 (ppc64_desc_entry_point): ..this. Update comments here and at
27 call points.
28 (ppc64_standard_linkage1, ppc64_standard_linkage2,
29 ppc64_standard_linkage3): Update comments.
30 (ppc64_standard_linkage4, ppc64_standard_linkage5,
31 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
32 patterns.
33 (ppc64_standard_linkage4_target): New function.
34 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
35 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
36 nop match. Fix comment wrap.
37
36fa8042
PA
382013-11-14 Pedro Alves <palves@redhat.com>
39
40 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
41 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
42
4f5d7f63
PA
432013-11-14 Pedro Alves <palves@redhat.com>
44
45 * infrun.c (struct execution_control_state)
46 <stepped_after_stopped_by_watchpoint>: New field.
47 (get_inferior_stop_soon): New function.
48 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
49 moved to struct execution_control_state -- adjust. Use
50 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
51 new function.
52 (handle_signal_stop): New function, factored out from
53 handle_inferior_event.
54
47591c29
PA
552013-11-14 Pedro Alves <palves@redhat.com>
56
57 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
58 return a boolean.
59 * breakpoint.c (bpstat_explains_signal): Adjust to return a
60 boolean.
61 (explains_signal_watchpoint, base_breakpoint_explains_signal):
62 Adjust to return a boolean.
63 * breakpoint.h (enum bpstat_signal_value): Delete.
64 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
65 (bpstat_explains_signal): Likewise.
66 * infrun.c (handle_inferior_event) <random signal checks>:
67 bpstat_explains_signal now returns a boolean - adjust. No longer
68 consider hiding signals.
69
bac7d97b
PA
702013-11-14 Pedro Alves <palves@redhat.com>
71
72 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
73 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
74 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
75 BPSTAT_SIGNAL_HIDE.
76 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
77 instead of BPSTAT_SIGNAL_HIDE.
78 * infrun.c (handle_inferior_event): Rework random signal checks.
79
ce12b012
PA
802013-11-14 Pedro Alves <palves@redhat.com>
81
82 * infrun.c (struct execution_control_state): Remove
83 'random_signal' field.
84 (handle_syscall_event): Use bpstat_causes_stop instead of
85 bpstat_explains_signal. Don't set ecs->random_signal.
86 (handle_inferior_event): New 'random_signal' local.
87 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
88 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
89 bpstat_explains_signal. Don't set ecs->random_signal.
90 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
91 ecs->random_signal.
92
05ba8510
PA
932013-11-14 Pedro Alves <palves@redhat.com>
94
95 * infrun.c (handle_inferior_event): Move comment from the
96 function's body to the function's description, adjusted.
97
5c09a2c5
PA
982013-11-14 Pedro Alves <palves@redhat.com>
99
100 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
101 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
102 Assert we never fall through out of the TARGET_WAITKIND_LOADED
103 case.
104
91822956
TT
1052013-11-14 Tom Tromey <tromey@redhat.com>
106
107 * python/py-linetable.c (ltpy_has_line)
108 (ltpy_get_all_source_lines): Fix loop termination condition.
109
403cb6b1
JB
1102013-11-14 Joel Brobecker <brobecker@adacore.com>
111
112 * mi/mi-parse.h (struct mi_parse) <language>: New field.
113 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
114 PARSE->LANGUAGE during command execution, if set.
115 * mi/mi-parse.c: Add "language.h" #include.
116 (mi_parse): Add parsing of "--language" command option.
117
118 * NEWS: Add entry mentioning the new "--language" command option.
119
b5be8ce0
JB
1202013-11-14 Pedro Alves <palves@redhat.com>
121 Joel Brobecker <brobecker@adacore.com>
122
123 * cli/cli-utils.h (extract_arg_const): Add declaration.
124 * cli/cli-utils.c (extract_arg_const): New function.
125 (extract_arg): Reimplement using extract_arg_const.
126
671afef6
JB
1272013-11-14 Joel Brobecker <brobecker@adacore.com>
128
129 * language.h: Add "symtab.h" #include.
130
6c1b0f7b
DE
1312013-11-13 Doug Evans <xdje42@gmail.com>
132
133 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
134 specific breakpoints, don't evaluate breakpoint condition if
135 different thread.
136
74921315
KS
1372013-11-13 Keith Seitz <keiths@redhat.com>
138
248ace2e 139 PR c++/7935
74921315
KS
140 PR c++/10541
141 * cp-support.c (insepct_type): Add support for substituting
142 namespace aliases, too.
143 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
144 for DW_TAG_imported_declaration.
145 (add_partial_symbol): Likewise.
146 (process_die): Handle namespace aliases with
147 read_namespace_alias.
148 (die_needs_namespace): Add DW_TAG_imported_declaration.
149 (read_namespace_alias): New function.
150 (load_partial_dies): Load DW_TAG_imported_declaration, too.
151 (new_symbol_full): Handle DW_TAG_imported_declaration.
152
793156e6
KS
1532013-11-13 Keith Seitz <keiths@redhat.com>
154
155 * p-exp.y (uptok): Make first parameter const.
156 (yylex): Make `tokstart' and `tokptr' const.
157 Don't copy the lexer input to a temporary buffer.
158 Make `p' const.
159 Remove const workaround for parse_escape.
160 Create a temporary buffer for a convenience variable instead
161 of doing in-place modification of the input.
162 If a match is found with a different case from the input,
163 do not change the input at all.
164 Use `tmp' to construct the resultant stoken instead of
165 `tokstart'.
166
c42bd95a
DE
1672013-11-13 Doug Evans <xdje42@gmail.com>
168
169 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
170
93973826
JB
1712013-11-13 Joel Brobecker <brobecker@adacore.com>
172
173 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
174 entry with "ada-exceptions".
175
846060df
JB
1762013-11-13 Joel Brobecker <brobecker@adacore.com>
177
178 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
179 after re-initialization of OBJFILE's obstack.
180
5efd1b2b 1812013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
182
183 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
184 bs->stop != 0 on entry. Update function comment. Simplify early
185 exit for frame mismatch. Reindent rest of function.
186
ee7615e1
AA
1872013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
188
189 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
190 NULL.
191
8943b874
DE
1922013-11-12 Doug Evans <dje@google.com>
193
194 Work around gold/15646.
195 * dwarf2read.c (read_index_from_section): Update comment.
196 (struct dw2_symtab_iterator): New member global_seen.
197 (dw2_symtab_iter_init): Initialize it.
198 (dw2_symtab_iter_next): Skip duplicate global symbols.
199 (dw2_expand_symtabs_matching): Ditto.
200
a8a9844d
JB
2012013-11-12 Joel Brobecker <brobecker@adacore.com>
202
203 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
204 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
205 command.
206 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
207 (mi_cmd_info_ada_exceptions): New function.
208 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
209
778865d3
JB
2102013-11-12 Joel Brobecker <brobecker@adacore.com>
211
212 * ada-lang.h: #include "vec.h".
213 (struct ada_exc_info): New.
214 (ada_exc_info): New typedef.
215 (DEF_VEC_O(ada_exc_info)): New vector.
216 (ada_exceptions_list): Add declaration.
217 * ada-lang.c (ada_is_exception_sym)
218 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
219 (sort_remove_dups_ada_exceptions_list)
220 (ada_exc_search_name_matches, ada_add_standard_exceptions)
221 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
222 (ada_exceptions_list_1, ada_exceptions_list)
223 (info_exceptions_command): New function.
224 (_initialize_ada_language): Add "info exception" command.
225
bc79de95
PM
2262013-11-11 Phil Muldoon <pmuldoon@redhat.com>
227
228 PR python/15629
229 * NEWS: Add linetable feature.
230 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
231 * python/py-linetable.c: New file.
232 * python/py-symtab.c (stpy_get_linetable): New function.
233 * python/python-internal.h (symtab_to_linetable_object): Declare.
234 (gdbpy_initialize_linetable): Ditto.
235 * python/python.c (_initialize_python): Call
236 gdbpy_initialize_linetable.
237
2df4d1d5
JB
2382013-11-11 Joel Brobecker <brobecker@adacore.com>
239
240 * ada-lang.c (create_ada_exception_catchpoint): Enhance
241 the documentation of fields "except_string" and "condition".
242 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
243 CONDITION on the heap before passing it to
244 create_ada_exception_catchpoint.
245 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
246 CONDITION.
247
99c1d451
TT
2482013-11-11 Tom Tromey <tromey@redhat.com>
249
250 * config.in, configure: Rebuild.
251 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
252
8ca5801b
JB
2532013-11-11 Joel Brobecker <brobecker@adacore.com>
254
255 * remote-sim.c (gdbsim_detach): Break declaration into
256 shorter lines. No code change.
257
7a06d430
EBM
2582013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
259
260 * remote-sim.c (gdbsim_detach): Fix prototype.
261
73be47f5
DE
2622013-11-08 Doug Evans <dje@google.com>
263
264 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
265 (create_debug_types_hash_table): Only print debugging messages for
266 each TU if dwarf2-read >= 2.
267 (process_queue): Ditto.
268 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
269 Update doc string.
270
a18d8f10
TT
2712013-11-08 Tom Tromey <tromey@redhat.com>
272
273 * configure: Rebuild.
274 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
275
9467110b
TT
2762013-11-08 Tom Tromey <tromey@redhat.com>
277
278 * configure, config.in: Rebuild.
279 * configure.ac: Remove unused configury.
280
69706679
TT
2812013-11-08 Tom Tromey <tromey@redhat.com>
282
283 * m32c-tdep.c: Use gdb_string.h.
284
9b4bea72
TT
2852013-11-08 Tom Tromey <tromey@redhat.com>
286
287 * configure, config.in: Rebuild.
288 * configure.ac: Remove all link.h-related checks.
289
3266f10b
TT
2902013-11-08 Tom Tromey <tromey@redhat.com>
291
292 * acinclude.m4: Include common.m4.
293 * common/common.m4: New file.
294 * configure, config.in: Rebuild.
295 * configure.ac: Use GDB_AC_COMMON.
296
db0fec5c
DE
2972013-11-08 Doug Evans <dje@google.com>
298
299 * NEWS: Mention that "set debug symtab-create" now accepts a
300 verbosity level.
301 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
302 to set the symtab's primary flag.
303 * jit.c (finalize_symtab): Ditto.
304 * mdebugread.c (psymtab_to_symtab_1): Ditto.
305 * symfile.c (allocate_symtab): Only print debugging messages for
306 symtab_create_debug levels 2 and higher.
307 * symtab.c (symtab_create_debug): Change type to unsigned int.
308 (set_symtab_primary): New function.
309 (_initialize_symtab): Change "set debug symtab-create" to a
310 zuinteger option.
311 * symtab.h (set_symtab_primary): Declare.
312 (symtab_create_debug): Update decl.
313
52554a0e
TT
3142013-11-08 Tom Tromey <tromey@redhat.com>
315
316 * aix-thread.c (aix_thread_detach): Update.
317 * corelow.c (core_detach): Update.
318 * darwin-nat.c (darwin_detach): Update.
319 * dec-thread.c (dec_thread_detach): Update.
320 * gnu-nat.c (gnu_detach): Update.
321 * go32-nat.c (go32_detach): Update.
322 * inf-ptrace.c (inf_ptrace_detach): Update.
323 * inf-ttrace.c (inf_ttrace_detach): Update.
324 * linux-fork.c (linux_fork_detach): Update.
325 * linux-fork.h (linux_fork_detach): Update.
326 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
327 local for const-correctness.
328 * linux-thread-db.c (thread_db_detach): Update.
329 * monitor.c (monitor_detach): Update.
330 * nto-procfs.c (procfs_detach): Update.
331 * procfs.c (procfs_detach): Update.
332 * record.c (record_detach): Update.
333 * record.h (record_detach): Update.
334 * remote-m32r-sdi.c (m32r_detach): Update.
335 * remote-mips.c (mips_detach): Update.
336 * remote-sim.c (gdbsim_detach): Update.
337 * remote.c (remote_detach_1, remote_detach)
338 (extended_remote_detach): Update.
339 * sol-thread.c (sol_thread_detach): Update.
340 * target.c (target_detach): Make "args" const.
341 (init_dummy_target): Update.
342 * target.h (struct target_ops) <to_detach>: Make argument const.
343 (target_detach): Likewise.
344 * windows-nat.c (windows_detach): Update.
345
204b5331
DE
3462013-11-07 Doug Evans <dje@google.com>
347
348 PR 11786
349 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
350 and align fields for PT_GNU_RELRO segments.
351
92e32e33
PM
3522013-11-07 Phil Muldoon <pmuldoon@redhat.com>
353
ef1bc9e7
AM
354 PR python/15747
355 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 356
f76c27b5
PM
3572013-11-07 Phil Muldoon <pmuldoon@redhat.com>
358
359 * NEWS: Document Python temporary breakpoint support.
360 * python/py-breakpoint.c (bppy_get_temporary): New function.
361 (bppy_init): New keyword: temporary. Parse it and set breakpoint
362 to temporary if True.
363
d52cd232
JM
3642013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
365
366 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
367 removed to allow analyzing unconditional branch instructions
368 with PC-relative offsets of zero.
369
fa4d0c40
YQ
3702013-11-07 Yao Qi <yao@codesourcery.com>
371
372 * mi/mi-cmd-var.c: Include "language.h".
373 (mi_cmd_var_info_expression): Get language name from
374 language_defn.
375 * varobj.c (varobj_language_string): Remove.
376 (variable_language): Remove declaration.
377 (languages): Remove.
378 (varobj_get_language): Change the type of return value.
379 (variable_language): Remove.
380 * varobj.h (enum varobj_languages): Remove.
381 (varobj_language_string): Remove declaration.
382 (varobj_get_language): Update declaration.
383
6abde28f
YQ
3842013-11-07 Yao Qi <yao@codesourcery.com>
385
386 * language.h (struct language_defn) <la_natural_name>: New
387 field.
388 * ada-lang.c (ada_language_defn): Initialize field
389 'la_natural_name'.
390 * c-lang.c (c_language_defn): Likewise.
391 (cplus_language_defn, asm_language_defn): Likewise.
392 * d-lang.c (d_language_defn): Likewise.
393 * f-lang.c (f_language_defn): Likewise.
394 * go-lang.c (go_language_defn): Likewise.
395 * jv-lang.c (java_language_defn): Likewise.
396 * language.c (unknown_language_defn ): Likewise.
397 (auto_language_defn): Likewise.
398 * m2-lang.c (m2_language_defn): Likewise.
399 * objc-lang.c (objc_language_defn): Likewise.
400 * opencl-lang.c (opencl_language_defn): Likewise.
401 * p-lang.c (pascal_language_defn): Likewise.
402
27cd387b
YQ
4032013-11-07 Yao Qi <yao@codesourcery.com>
404
405 * language.c (language_str): Return const char *.
406 (add_language): Add const to 'language_names'
407 * language.h (struct language_defn) <la_name>: Add const.
408 (language_str: Update declaration.
409
6682d959
AA
4102013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
411
412 * s390-linux-nat.c (s390_read_description): Consider the TE field
413 in the HWCAP for determining 'have_regset_tdb'.
414
b9502d3f
WN
4152013-11-06 Will Newton <will.newton@linaro.org>
416
417 PR gdb/12866
418 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
419 values. (read_partial_die): Likewise.
420
840da61a
MB
4212013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
422
423 PR cli/16122
424 * top.c (command_line_input): Unify interactivity tests to use
425 input_from_terminal_p.
426 * event-top.c (command_line_handler): Likewise.
427
7636ccf9
YQ
4282013-11-06 Yao Qi <yao@codesourcery.com>
429
430 * Makefile.in (check-perf): New target.
431
12b27276
WN
4322013-11-05 Will Newton <will.newton@linaro.org>
433
434 PR gdb/7670
435 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
436 (arm_print_float_info): Likewise.
437
67c059c2
AB
4382013-11-04 Anton Blanchard <anton@samba.org>
439
440 * target.c (memory_xfer_partial): Cap write to 4KB.
441
0569175e
TSD
4422013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
443
444 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
445 probe scan even when the arch provides no get_longjmp_target.
446
b18e90f5
PA
4472013-10-31 Pedro Alves <palves@redhat.com>
448
449 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
450 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
451 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
452 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
453 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
454 <bpstat handling>: If the bpstat chain wants the signal to be
455 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
456 GDB_SIGNAL_TRAP.
457
638aa5a1
AB
4582013-10-31 Andrew Burgess <aburgess@broadcom.com>
459
460 * breakpoint.c (update_watchpoint): Update error message and add
461 an additional error message.
462
0e5fae36
UW
4632013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
464
465 * s390-tdep.h: Rename to...
466 * s390-linux-tdep.h: ...here.
467 * s390-tdep.c: Rename to...
468 * s390-linux-tdep.c: ...here. Adjust #include.
469 * s390-nat.c: Rename to...
470 * s390-linux-nat.c: ...here. Adjust #include.
471 * config/s390/s390.mh: Rename to...
472 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
473 s390-linux-nat.o.
474 * configure.host: Reflect host rename "s390" -> "linux".
475 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
476 * Makefile.in (ALL_TARGET_OBS): Likewise.
477 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
478 s390-linux-tdep.h.
479 (ALLDEPFILES): Reflect rename of .c files.
480
34201ae3
UW
4812013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
482
483 * s390-nat.c: Whitespace cleanup.
484 * s390-tdep.c: Likewise.
485 * s390-tdep.h: Remove empty line at end of file.
486
e17aaa33
MR
4872013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
488
489 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
490 siginfo_size.
491
aee17e42
TT
4922013-10-29 Tom Tromey <tromey@redhat.com>
493
494 * utils.c (reg): Move undefinition...
495 * gdb_curses.h: ... here. Update comment to mention AIX.
496
9ac69859
NB
4972013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
498
499 * exec.h (add_target_sections_of_objfile): New declaration.
500 * exec.c (add_target_sections_of_objfile): New function.
501 * symfile.c (add_symbol_file_command): Update current target sections.
502 (remove_symbol_file_command): New command.
503 (symfile_free_objfile): New function.
504 (_initialize_symfile): Register observer for free_objfile events.
505 * NEWS: Add description of the remove-symbol-file command.
506 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
507 * objfiles.c (free_objfile): Notify free_objfile.
508 (is_addr_in_objfile): New function.
509 * objfiles.h (is_addr_in_objfile): New declaration.
510 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
511 events instead of solib_unloaded events.
512 (_initialize_printcmd): Register observer for free_objfile instead
513 of solib_unloaded notifications.
514 * solib.c (remove_user_added_objfile): New function.
515 (_initialize_symfile): Add remove-symbol-file.
516
f69d9aef
AB
5172013-10-29 Andrew Burgess <aburgess@broadcom.com>
518
519 * infcmd.c (default_print_one_register_info): Use val_print to
520 print all values even optimized out or unavailable ones. Don't
521 try to print a raw form of optimized out or unavailable values.
522
487ad57c
YQ
5232013-10-29 Yao Qi <yao@codesourcery.com>
524
525 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
526 parameter 'arg' instead of from program_space_data.
527 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
528 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
529 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
530 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
531 * inflow.c (inflow_inferior_data_cleanup): Get data from
532 parameter 'arg' instead of inferior_data.
533 * registry.h: Add comments.
534
3c4797ba
PA
5352013-10-28 Pedro Alves <palves@redhat.com>
536
537 * breakpoint.c (watchpoints_triggered)
538 <!target_stopped_data_address>: Hardcode return 1.
539
cdaa5b73
PA
5402013-10-28 Pedro Alves <palves@redhat.com>
541
542 * infrun.c (process_event_stop_test): Remove unnecessary scoping
543 level and reindent.
544
94c57d6a
PA
5452013-10-28 Pedro Alves <palves@redhat.com>
546
547 * infrun.c (process_event_stop_test): New function, factored out
548 from handle_inferior_event.
549 (handle_inferior_event): 'process_event_stop_test' is now a
550 function instead of a goto label -- adjust.
551
fcf3daef
PA
5522013-10-28 Pedro Alves <palves@redhat.com>
553
554 * infrun.c (handle_inferior_event): Move process_event_stop_test
555 goto label to the else branch of the ecs->random_signal check,
556 along with FRAME and GDBARCH re-fetching.
557
c447ac0b
PA
5582013-10-28 Pedro Alves <palves@redhat.com>
559
560 * infrun.c (switch_back_to_stepped_thread): New function, factored
561 out from handle_inferior_event.
562 (handle_inferior_event): Adjust to call
563 switch_back_to_stepped_thread. Call it also at the tail of the
564 random signal handling, and return, instead of also handling
565 random signals just before the stepping tests.
566
f05e4c11
PA
5672013-10-28 Pedro Alves <palves@redhat.com>
568
569 * infrun.c (clear_stop_func): Delete.
570 (handle_inferior_event): Don't call clear_stop_func and don't
571 clear 'ecs->random_signal'.
572
ca20d462
YQ
5732013-10-27 Yao Qi <yao@codesourcery.com>
574
575 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
576 (varobj_create, varobj_get_path_expr): Update.
577 (varobj_value_has_mutated, varobj_update): Likewise.
578 (create_child_with_value, new_root_variable): Likewise.
579 (number_of_children, name_of_variable): Likewise.
580 (value_of_child, my_value_of_variable): Likewise.
581 (varobj_value_is_changeable_p): Likewise.
582
a53b64ea
YQ
5832013-10-25 Yao Qi <yao@codesourcery.com>
584
585 * language.h (struct lang_varobj_ops): Declare.
586 (struct language_defn) <la_varobj_ops>: New field.
587 * ada-lang.c: Include "varobj.h"
588 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
589 ada_varobj_ops.
590 * c-lang.c: Include "varobj.h"
591 (c_language_defn): Initialize field 'la_varobj_ops' with
592 c_varobj_ops.
593 (cplus_language_defn): Initialize field 'la_varobj_ops' with
594 cplus_varobj_ops.
595 (asm_language_defn): Initialize field 'la_varobj_ops' with
596 default_varobj_ops.
597 (minimal_language_defn): Likewise.
598 * d-lang.c (d_language_defn): Likewise.
599 * f-lang.c (f_language_defn): Likewise.
600 * go-lang.c (go_language_defn): Likewise.
601 * m2-lang.c (m2_language_defn): Likewise.
602 * objc-lang.c (objc_language_defn): Likewise.
603 * opencl-lang.c (opencl_language_defn): Likewise.
604 * p-lang.c (pascal_language_defn): Likewise.
605 * language.c (unknown_language_defn): Likewise.
606 (auto_language_defn): Likewise.
607 (local_language_defn): Likewise.
608 * jv-lang.c (java_language_defn): Initialize field
609 'la_varobj_ops' with java_varobj_ops.
610 * varobj.c (varobj_create): Update.
611 * varobj.h (default_varobj_ops): Define macro.
612
686d4def
PA
6132013-10-25 Pedro Alves <palves@redhat.com>
614
615 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
616 static field value.
617 (cp_print_static_field): If the value is entirely optimized out,
618 print <optimized out> here.
619 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
620 static field value.
621 * p-valprint.c (pascal_object_print_static_field): If the value is
622 entirely optimized out, print <optimized out> here.
623 * valops.c (do_search_struct_field)
624 (value_struct_elt_for_reference): No longer handle a NULL static
625 field value.
626 * value.c (value_static_field): Return an optimized out value
627 instead of NULL.
628
6c177e28
YQ
6292013-10-25 Yao Qi <yao@codesourcery.com>
630
631 * remote.c (remote_traceframe_info): Return early if
632 traceframe is not selected.
633
98322bfa
YQ
6342013-10-25 Yao Qi <yao@codesourcery.com>
635
636 * tracepoint.c (traceframe_fun): Remove.
637 (traceframe_sal): Remove.
638 (set_traceframe_context): Add local variables.
639
6ba1f115
JB
6402013-10-25 Joel Brobecker <brobecker@adacore.com>
641
642 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
643 and parameter name.
644
bbe769cc
MR
6452013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
646
647 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
648 failure from register information collection.
649
72ee4495 6502013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
651
652 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
653 member.
654 (linux_corefile_thread_callback): Update accordingly.
655 (linux_make_corefile_notes): Likewise.
656
98882a26
PA
6572013-10-24 Pedro Alves <palves@redhat.com>
658
659 * NEWS (New options): Mention set/show startup-with-shell.
660 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
661 instead of 3.
662 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
663 startup-with-shell'.
664 (show_startup_with_shell): New function.
665 (_initialize_fork_child): Register the set/show startup-with-shell
666 commands.
667 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
668 * inf-ttrace.c (inf_ttrace_him): Remove comment.
669 * procfs.c (procfs_init_inferior): Remove comment.
670 * infcmd.c (startup_with_shell): New global.
671 * inferior.h (startup_with_shell): Declare global.
672 (STARTUP_WITH_SHELL): Delete.
673 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
674
c9737c08
PA
6752013-10-23 Pedro Alves <palves@redhat.com>
676
677 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
678 * common/signals.c: Include "gdb_assert.h".
679 (signals): New field 'symbol'.
680 (SET): Use the 'symbol' parameter.
681 (gdb_signal_to_symbol_string): New function.
682 * infrun.c (handle_inferior_event) <random signal>: In debug
683 output, print the random signal enum as string in addition to its
684 number.
685 * target/waitstatus.c (target_waitstatus_to_string): Print the
686 signal's enum value as string instead of the (POSIX) signal name.
687
f60db4f0
GB
6882013-10-23 Gary Benson <gbenson@redhat.com>
689
690 PR 16013
691 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
692 from 32 to 18. Adjusted fscanf format string accordingly.
693 (Avoids leaving cmd unterminated.)
694 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
695 trun, retn or extra. (Avoids leaving extra unterminated.) Check
696 that local_address and remote_address will not overflow.
697 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
698 leaving dependencies unterminated. Parse size as "%u" to match
699 definition.
700
6d3e7a94
PA
7012013-10-22 Pedro Alves <palves@redhat.com>
702
703 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
704 set ecs->random signal.
705
42ec045f
PA
7062013-10-22 Pedro Alves <palves@redhat.com>
707
708 * infrun.c (keep_going): Update comments.
709
7102013-10-22 Pedro Alves <palves@redhat.com>
711
712 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
713 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
714
7152013-10-22 Pedro Alves <palves@redhat.com>
716
717 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
718 GDB_EXC_BAD_ACCESS.
719 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
720 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
721 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
722 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
723 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
724 (GDB_SIGNAL_LAST): Change description string.
725 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
726 Adjust to signal renaming.
727 * darwin-nat.c (darwin_decode_message): Likewise.
728
c8fde1b1
JM
7292013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
730
731 * MAINTAINERS (Write After Approval): Add myself to the list.
732
e8369a73
AB
7332013-10-18 Andrew Burgess <aburgess@broadcom.com>
734
735 * breakpoint.c (update_watchpoint): If hardware watchpoints are
736 forced off, downgrade them to software watchpoints if possible,
737 and error out if not possible.
738 (watch_command_1): Move watchpoint type selection closer to
739 watchpoint creation, and extend the comments.
740
776f04fa
PA
7412013-10-18 Pedro Alves <palves@redhat.com>
742
743 PR gdb/16062
744 * infrun.c (handle_inferior_event): Keep going if we got a random
745 signal we should not stop for, instead of falling through to the
746 step tests.
747
0c6faab5
YQ
7482013-10-18 Yao Qi <yao@codesourcery.com>
749
750 * c-varobj.c (cplus_number_of_children): Fix indentation.
751
50b34a18
TT
7522013-10-17 Tom Tromey <tromey@redhat.com>
753
754 PR gdb/15995:
755 * printcmd.c (printcmd): Call gdb_flush.
756
5c4c8a59
TT
7572013-10-17 Tom Tromey <tromey@redhat.com>
758
759 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
760 (elf_locate_sections): Update.
761
c4124bf1
YQ
7622013-10-17 Yao Qi <yao@codesourcery.com>
763
764 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
765 * ada-varobj.c: Remove the include of ada-varobj.h.
766 (ada_varobj_get_number_of_children): Declare.
767 (ada_varobj_get_name_of_child): Make it static.
768 (ada_varobj_get_path_expr_of_child): Likewise.
769 (ada_varobj_get_value_of_child): Likewise.
770 (ada_varobj_get_type_of_child): Likewise.
771 (ada_varobj_get_value_of_array_variable): Likewise.
772 * ada-varobj.h: Remove.
773
99ad9427
YQ
7742013-10-17 Yao Qi <yao@codesourcery.com>
775
776 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
777 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
778 * ada-varobj.c: Include "varobj.h".
779 (ada_number_of_children): New. Moved from varobj.c.
780 (ada_name_of_variable, ada_name_of_child): Likewise.
781 (ada_path_expr_of_child, ada_value_of_child): Likewise.
782 (ada_type_of_child, ada_value_of_variable): Likewise.
783 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
784 (ada_varobj_ops): New.
785 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
786 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
787 * gdbtypes.h (get_target_type): Declare.
788 * varobj.c: Remove the inclusion of "ada-varobj.h" and
789 "ada-lang.h".
790 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
791 (ANONYMOUS_UNION_NAME): Likewise.
792 (get_type, get_value_type, get_target_type): Remove declarations.
793 (value_get_print_value, varobj_value_get_print_value): Likewise.
794 (c_number_of_children, c_name_of_variable): Likewise.
795 (c_name_of_child, c_path_expr_of_child): Likewise.
796 (c_value_of_child, c_type_of_child): Likewise.
797 (c_value_of_variable, cplus_number_of_children): Likewise.
798 (cplus_class_num_children, cplus_name_of_variable): Likewise.
799 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
800 (cplus_value_of_child, cplus_type_of_child): Likewise.
801 (cplus_value_of_variable, java_number_of_children): Likewise.
802 (java_name_of_variable, java_name_of_child): Likewise.
803 (java_path_expr_of_child, java_value_of_child): Likewise.
804 (java_type_of_child, java_value_of_variable): Likewise.
805 (ada_number_of_children, ada_name_of_variable): Likewise.
806 (ada_name_of_child, ada_path_expr_of_child): Likewise.
807 (ada_value_of_child, ada_type_of_child): Likewise.
808 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
809 (ada_value_has_mutated): Likewise.
810 (struct language_specific): Move it to varobj.h.
811 (CPLUS_FAKE_CHILD): Move it to varobj.h.
812 (restrict_range): Rename it varobj_restrict_range. Make it extern.
813 Callers update.
814 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
815 Make it extern.
816 (is_anonymous_child): Move it to c-varobj.c and rename to
817 varobj_is_anonymous_child. Caller update.
818 (get_type): Move it to c-varobj.c.
819 (get_value_type): Rename it varobj_get_value_type. Make it
820 extern.
821 (get_target_type): Move it gdbtypes.c.
822 (varobj_formatted_print_options): New function.
823 (value_get_print_value): Rename it to
824 varobj_value_get_print_value and make it extern.
825 (varobj_value_is_changeable_p): Make it extern.
826 (adjust_value_for_child_access): Move it to c-varobj.c.
827 (default_value_is_changeable_p): Rename it to
828 varobj_default_value_is_changeable_p. Make it extern.
829 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
830 (c_name_of_child, c_path_expr_of_child): Likewise.
831 (c_value_of_child, c_type_of_child): Likewise.
832 (c_value_of_variable, cplus_number_of_children): Likewise.
833 (cplus_class_num_children, cplus_name_of_variable): Likewise.
834 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
835 (cplus_value_of_child, cplus_type_of_child): Likewise.
836 (cplus_value_of_variable): Likewise.
837 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
838 (java_name_of_child, java_path_expr_of_child): Likewise.
839 (java_value_of_child, java_type_of_child): Likewise.
840 (java_value_of_variable): Likewise.
841 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
842 (ada_name_of_child, ada_path_expr_of_child): Likewise.
843 (ada_value_of_child, ada_type_of_child): Likewise.
844 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
845 (ada_value_has_mutated): Likewise.
846 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
847 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
848 (c_varobj_ops, cplus_varobj_ops): Declare.
849 (java_varobj_ops, ada_varobj_ops): Declare.
850 (varobj_default_value_is_changeable_p): Declare.
851 (varobj_value_is_changeable_p): Declare.
852 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
853 (varobj_get_path_expr_parent): Declare.
854 (varobj_value_get_print_value): Declare.
855 (varobj_formatted_print_options): Declare.
856 (varobj_restrict_range): Declare.
857
c8a62302
LM
8582013-10-17 Luis Machado <lgustavo@codesourcery.com>
859
860 * target/waitstatus.h (target_waitkind): Remove spurious
861 character from the comments.
862
eade6471
JB
8632013-10-17 Joel Brobecker <brobecker@adacore.com>
864
865 * gdbarch.sh (get_longjmp_target): Add method documentation.
866 * gdbarch.h: Regenerate.
867
5411b26c
TT
8682013-10-16 Tom Tromey <tromey@redhat.com>
869
870 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
871 label.
872
87326c87
LM
8732013-10-16 Luis Machado <lgustavo@codesourcery.com>
874
875 * gcore.in: Call GDB using the full path to the gcore script.
876 Error out if the GDB binary is not found.
877
fd0a4d76
SDJ
8782013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
879
880 PR gdb/16014
881 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
882 sizeof.
883
d92f7ee3
SDJ
8842013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
885
886 PR gdb/16042
887 * target.c (target_disable_btrace): Fix invalid return value for
888 void function.
889 (target_teardown_btrace): Likewise.
890
bb5ce47a
YQ
8912013-10-14 Yao Qi <yao@codesourcery.com>
892
893 * varobj.c (struct varobj): Move most of the fields to
894 varobj.h.
895 (struct varobj_dynamic): New struct.
896 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
897 (varobj_has_more): Likewise.
898 (dynamic_varobj_has_child_method): Likewise.
899 (update_dynamic_varobj_children): Likewise.
900 (varobj_get_num_children): Likewise.
901 (varobj_list_children, varobj_pretty_printed_p): Likewise.
902 (install_new_value_visualizer): Likewise.
903 (install_new_value_visualizer, install_new_value): Likewise.
904 (varobj_update, new_variable, free_variable): Likewise.
905 (my_value_of_variable, value_get_print_value): Likewise.
906 (install_visualizer): Change the type of parameter 'var' to
907 'struct varobjd_dynamic *'. Callers update.
908 * varobj.h (struct varobj): Moved from varobj.c.
909 (struct varobj) <dynamic>: New field.
910
0b76b0ce
SL
9112013-10-13 Sandra Loosemore <sandra@codesourcery.com>
912
913 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
914 as the preferred name of r30.
915 * nios2-linux-tdep.c (reg_offsets): Likewise.
916 * features/nios2-cpu.xml: Likewise.
917 * features/nios2-linux.c: Regenerated.
918 * features/nios2.c: Regenerated.
919 * regformats/nios2-linux.dat: Regenerated.
920
4856b6bc
JK
9212013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
922
923 Canonicalize directories for EXEC_FILENAME.
924 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
925 exec_filename.
926 * utils.c (gdb_realpath_keepfile): New function.
927 * utils.h (gdb_realpath_keepfile): New declaration.
928
9b557b58
DE
9292013-10-11 Doug Evans <dje@google.com>
930
931 * Makefile.in (GDBFLAGS): New variable.
932 (run): New rule.
933
ce13fade
JB
9342013-10-11 Joel Brobecker <brobecker@adacore.com>
935
936 * NEWS: Add entry documenting the new "-catch-assert" and
937 "-catch-exception" GDB/MI commands.
938
349774ef
JB
9392013-10-11 Joel Brobecker <brobecker@adacore.com>
940
941 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
942 "enabled".
943 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
944 "enabled". Set B->ENABLE_STATE accordingly.
945 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
946 ada-lang.c.
947 (create_ada_exception_catchpoint): Add declaration.
948 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
949 (create_ada_exception_catchpoint): Make non-static. Add new
950 parameter "disabled". Use it in call to
951 init_ada_exception_breakpoint.
952 (catch_ada_exception_command): Add parameter "enabled" in call
953 to create_ada_exception_catchpoint.
954 (catch_assert_command): Likewise.
955
956 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
957 Add declarations.
958 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
959 "catch-exception" commands.
960 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
961 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
962
761269c8
JB
9632013-10-11 Joel Brobecker <brobecker@adacore.com>
964
965 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
966 "enum exception_catchpoint_kind". Replace the "ex_" prefix
967 of all its enumerates with "ada_". Update the rest of this
968 file throughout.
969
b4a5b78b
JB
9702013-10-11 Joel Brobecker <brobecker@adacore.com>
971
972 * ada-lang.c (ada_decode_exception_location): Delete.
973 (create_ada_exception_catchpoint): Remove arguments "sal",
974 "addr_string" and "ops". Add argument "ex_kind" instead.
975 Adjust implementation accordingly, calling ada_exception_sal
976 to get the entities it no longer gets passed as arguments.
977 Document the function's arguments.
978 (catch_ada_exception_command): Use catch_ada_exception_command_split
979 instead of ada_decode_exception_location, and update call to
980 create_ada_exception_catchpoint.
981 (catch_ada_assert_command_split): Renames
982 ada_decode_assert_location. Remove parameters "addr_string" and
983 "ops", and now returns void. Adjust implementation accordingly.
984 Update the function documentation.
985 (catch_assert_command): Use catch_ada_assert_command_split
986 instead of ada_decode_assert_location. Update call to
987 create_ada_exception_catchpoint.
988
7ad1d32c 9892013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
990
991 * utils.h (perror_warning_with_name): Add declaration.
992 * utils.c (perror_warning_with_name): New function.
993 * cli/cli-cmds.c (source_script_with_search): Add call to
994 perror_warning_with_name if from_tty is nul.
995
7ad1d32c 9962013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
997
998 * utils.c (perror_string): New function, extracted out of
999 throw_perror_with_name.
1000 (throw_perror_with_name): Rework to use perror_string.
1001
bcc75809
YQ
10022013-10-11 Yao Qi <yao@codesourcery.com>
1003
1004 * remote.c (discard_pending_stop_replies_in_queue): Update
1005 declaration.
1006 (struct stop_reply) <rs>: New field.
1007 (remove_stop_reply_of_remote_state): New function.
1008 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1009 Callers update. Pass remove_stop_reply_of_remote_state to
1010 QUEUE_iterate.
1011 (remote_parse_stop_reply): Initialize field 'rs'.
1012
05feb193
WN
10132013-10-10 Will Newton <will.newton@linaro.org>
1014
1015 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1016 linux_init_abi.
1017
0d12017b
JB
10182013-10-10 Joel Brobecker <brobecker@adacore.com>
1019
1020 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1021 serial_baud_show_cmd.
1022 (_initialize_cli_cmds): Delete the code creating the
1023 "set/show remotebaud" commands.
1024 * serial.c (baud_rate): Move here from top.c.
1025 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1026 (_initialize_serial): Create "set/show serial baud" commands.
1027 Add "set/show remotebaud" command aliases.
1028 * top.c (baud_rate): Moved to serial.c.
1029 * NEWS: Document the new "set/show serial baud" commands,
1030 replacing "set/show remotebaud".
1031
578d3588
PA
10322013-10-09 Pedro Alves <palves@redhat.com>
1033
1034 * breakpoint.c (insert_bp_location): Use memory_error_message to
1035 build the memory error string.
1036 * c-lang.c: Include "gdbcore.h".
1037 (c_get_string): Use memory_error to throw error.
1038 (target_xfer_memory_error): Delete.
1039 (memory_error_message): New, factored out from
1040 target_xfer_memory_error.
1041 (memory_error): Change parameter type to target_xfer_error.
1042 Rewrite.
1043 (read_memory): Use memory_error instead of
1044 target_xfer_memory_error.
1045 * gdbcore.h: Include "target.h".
1046 (memory_error): Change parameter type to target_xfer_error.
1047 (memory_error_message): Declare function.
1048 * target.c (target_read_memory, target_read_stack)
1049 (target_write_memory, target_write_raw_memory): Return
1050 TARGET_XFER_E_IO on error. Adjust comments.
1051 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1052 instead of EIO.
1053 * target.h (target_read, target_insert_breakpoint)
1054 (target_remove_breakpoint): Adjust comments.
1055 * valprint.c (partial_memory_read): Rename parameter, and adjust
1056 comment.
1057 (val_print_string): Use memory_error_message to build the memory
1058 error string.
1059
c74e1ccf
JK
10602013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1061
1062 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1063 result variable. Rename variable fopen_e_ever_failed to
1064 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1065
915215be
PA
10662013-10-09 Pedro Alves <palves@redhat.com>
1067
1068 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1069 (monitor_write_memory_longlongs, monitor_write_memory_block):
1070 Constify 'myaddr' parameter.
1071 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1072 helper.
1073 (monitor_xfer_partial): New function.
1074 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1075 hook. Install a to_xfer_partial hook.
1076
acd13123
TT
10772013-10-09 Tom Tromey <tromey@redhat.com>
1078
1079 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1080 bfd_get_alt_debug_link_info.
1081
40135bb1
JK
10822013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1083
1084 New flag OBJF_NOT_FILENAME.
1085 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1086 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1087 allocate_objfile.
1088 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1089 symbol_file_add_from_bfd.
1090 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1091 allocate_objfile.
1092 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1093 NULL.
1094 * objfiles.h (OBJF_NOT_FILENAME): New.
1095
dc294be5
TT
10962013-10-08 Tom Tromey <tromey@redhat.com>
1097
1098 * Makefile.in (SFILES): Add build-id.c.
1099 (HFILES_NO_SRCDIR): Add build-id.h.
1100 * build-id.c: New file, largely from elfread.c. Modified
1101 most functions.
1102 * build-id.h: New file.
1103 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1104 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1105 Search for dwz file using build-id.
1106 * elfread.c (build_id_bfd_get, build_id_verify)
1107 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1108
db230ce3
JB
11092013-10-08 Joel Brobecker <brobecker@adacore.com>
1110
1111 * ada-lang.c (compare_names_with_case): Renamed from
1112 compare_names, adding a new parameter "casing" and its handling.
1113 New function documentation.
1114 (compare_names): New function, implemented using
1115 compare_names_with_case.
1116
6501c98a
JB
11172013-10-08 Joel Brobecker <brobecker@adacore.com>
1118
1119 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1120
84a1243b
TT
11212013-10-07 Tom Tromey <tromey@redhat.com>
1122
1123 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1124 demangled_names_hash.
1125 (free_objfile): Don't delete the demangled_names_hash.
1126 * objfiles.h (struct objfile_per_bfd_storage)
1127 <demangled_names_hash>: New field.
1128 (struct objfile) <demangled_names_hash>: Move to
1129 objfile_per_bfd_storage.
1130 * symfile.c (reread_symbols): Don't delete the
1131 demangled_names_hash.
1132 * symtab.c (create_demangled_names_hash): Update.
1133 (symbol_set_names): Update.
1134
1da77581
TT
11352013-10-07 Tom Tromey <tromey@redhat.com>
1136
1137 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1138 needs_relocations>: New fields.
1139 (gdb_bfd_requires_relocations): New function.
1140 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1141 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1142 the BFD needs relocations applied.
1143
46ecd527
PA
11442013-10-07 Pedro Alves <palves@redhat.com>
1145
1146 PR breakpoints/11568
1147 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1148 the thread list" instead of "gone".
1149
0c557179
SDJ
11502013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1151
1152 * NEWS: Mention new convenience variable $_exitsignal.
1153 * corelow.c (core_open): Reset exit convenience variables. Set
1154 $_exitsignal to the uncaught signal which generated the corefile.
1155 * infrun.c (handle_inferior_event): Reset exit convenience
1156 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1157 (clear_exit_convenience_vars): New function.
1158 * inferior.h (clear_exit_convenience_vars): New prototype.
1159
1cc47d81
YQ
11602013-10-06 Yao Qi <yao@codesourcery.com>
1161
1162 * varobj.h: Add comments to enum varobj_languages.
1163
73869dc2
DE
11642013-10-04 Doug Evans <dje@google.com>
1165
1166 Add support for DWP file format version 2.
1167 * NEWS: Mention support for DWP file format version 2.
1168 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1169 union of asection, containing_section. New fields virtual_offset
1170 and is_virtual. Change type of readin filed from int to char.
1171 (dwo_sections, dwo_file): Tweak comments.
1172 (dwp_v2_section_ids): New enum.
1173 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1174 str_offsets, types.
1175 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1176 All uses updated.
1177 (virtual_v2_dwo_sections): New struct.
1178 (dwp_hash_table): New fields version, nr_columns. Change type of
1179 section_pool field to a union.
1180 (dwp_file): New field version.
1181 (dwarf2_has_info): Check for virtual sections.
1182 (get_containing_section): New function.
1183 (get_section_bfd_owner, get_section_bfd_section): Call it.
1184 (dwarf2_locate_sections): Update.
1185 (dwarf2_section_empty_p): Update.
1186 (dwarf2_read_section): Handle virtual sections.
1187 (locate_dwz_sections): Update.
1188 (create_dwp_hash_table): Document and handle V2 format.
1189 (locate_v1_virtual_dwo_sections): Renamed from
1190 locate_virtual_dwo_sections and update. All callers updated.
1191 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1192 Delete arg htab. Rename arg section_index to unit_index.
1193 All callers updated.
1194 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1195 All uses updated.
1196 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1197 (lookup_dwo_unit_in_dwp): Add V2 support.
1198 (dwarf2_locate_dwo_sections): Update.
1199 (dwarf2_locate_common_dwp_sections): Renamed from
1200 dwarf2_locate_dwp_sections and update. All callers updated.
1201 (dwarf2_locate_v2_dwp_sections): New function.
1202 (open_and_init_dwp_file): Add V2 support.
1203 (read_str_index): New locals str_section, str_offsets_section.
1204
9a2c3737
PA
12052013-10-04 Pedro Alves <palves@redhat.com>
1206
1207 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1208 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1209 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1210 describing comments with references to ptid.h.
1211 * common/ptid.h: Remove intro description of constructors,
1212 accessors and predicates.
1213 (struct ptid): Reformat.
1214 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1215 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1216 describing comments.
1217
f5371440
JB
12182013-10-04 Joel Brobecker <brobecker@adacore.com>
1219
1220 * aix-thread.c (sync_threadlists): Add missing ')' in call
1221 to ptid_build.
1222
793e1c06
JB
12232013-10-04 Joel Brobecker <brobecker@adacore.com>
1224
1225 * procfs.c (procfs_init_inferior): Fix typo causing the build
1226 to fail.
1227
26f0edc1
JB
12282013-10-04 Joel Brobecker <brobecker@adacore.com>
1229
1230 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1231
5713b9b5
JB
12322013-10-04 Joel Brobecker <brobecker@adacore.com>
1233
1234 * mi/mi-main.c (run_one_inferior): Add function description.
1235 Make ARG a pointer to an integer whose value determines whether
1236 we should "run" or "start" the program.
1237 (mi_cmd_exec_run): Add handling of the "--start" option.
1238 Reject all other command-line options.
1239 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1240
f48ff2a7
YQ
12412013-10-04 Yao Qi <yao@codesourcery.com>
1242
1243 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1244 (struct notif_client) <pending_event>: Moved
1245 to struct remote_notif_state.
1246 <id>: New field.
1247 (struct remote_notif_state) <pending_event>: New field.
1248 (notif_event_xfree): Declare.
1249 * remote-notif.c (handle_notification): Adjust.
1250 (notif_event_xfree): New function.
1251 (do_notif_event_xfree): Call notif_event_xfree.
1252 (remote_notif_state_xfree): Call notif_event_xfree to free
1253 each element in field pending_event.
1254 * remote.c (discard_pending_stop_replies): Remove declaration.
1255 (discard_pending_stop_replies_in_queue): Declare.
1256 (remote_close): Call discard_pending_stop_replies_in_queue
1257 instead of discard_pending_stop_replies.
1258 (remote_start_remote): Adjust.
1259 (stop_reply_xfree): Call notif_event_xfree.
1260 (notif_client_stop): Adjust initialization.
1261 (remote_notif_remove_all): Rename it to ...
1262 (remove_stop_reply_for_inferior): ... this. Update comments.
1263 Don't check INF is NULL.
1264 (discard_pending_stop_replies): Return early if notif_state is
1265 NULL. Adjust. Don't check INF is NULL.
1266 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 1267 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
1268 (remote_wait_ns): Likewise.
1269
5965e028
YQ
12702013-10-04 Yao Qi <yao@codesourcery.com>
1271
1272 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1273 (notif_queue): Remove.
1274 (remote_notif_process): Add one parameter 'notif_queue'.
1275 Update comments. Callers update.
1276 (remote_async_get_pending_events_token): Remove.
1277 (remote_notif_register_async_event_handler): Remove.
1278 (remote_notif_unregister_async_event_handler): Remove.
1279 (handle_notification): Add parameter 'notif_queue'. Update
1280 comments. Callers update.
1281 (notif_xfree): Remove.
1282 (remote_notif_state_allocate): New function.
1283 (remote_notif_state_xfree): New function.
1284 (_initialize_notif): Remove code to allocate queue.
1285 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1286 (struct remote_notif_state): New.
1287 (handle_notification): Update declaration.
1288 (remote_notif_process): Likewise.
1289 (remote_notif_register_async_event_handler): Remove.
1290 (remote_notif_unregister_async_event_handler): Remove.
1291 (remote_notif_state_allocate): Declare.
1292 (remote_notif_state_xfree): Declare.
1293 * remote.c (struct remote_state) <notif_state>: New field.
1294 (remote_close): Don't call
1295 remote_notif_unregister_async_event_handler. Call
1296 remote_notif_state_xfree.
1297 (remote_open_1): Don't call
1298 remote_notif_register_async_event_handler. Call
1299 remote_notif_state_allocate.
1300
5e5ac9a5
YQ
13012013-10-04 Yao Qi <yao@codesourcery.com>
1302
1303 * varobj.c (create_child_with_value): Remove 'const' from the
1304 type of parameter 'name'.
1305 (varobj_add_child): Likewise.
1306 (install_dynamic_child): Remove 'const' from the type of
1307 parameter 'name'.
1308 (varobj_add_child): Likewise.
1309 (create_child_with_value): Likewise. Update comments. Don't
1310 duplicate 'name'.
1311 (update_dynamic_varobj_children): Duplicate 'name'
1312 and pass it to install_dynamic_child.
1313
06ab7b19
PM
13142013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1315
1316 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1317 conversion logic to occur after PyLong_Check. Comment on order
1318 change significance.
1319 * python/py-arch.c (archpy_disassemble): Comment on order of
1320 conversion for integers and longs.
1321
8ae377e8
PA
13222013-10-03 Pedro Alves <palves@redhat.com>
1323
1324 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1325 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1326 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1327 PTRACE_O_TRACEFORK is not supported.
1328 (linux_test_for_tracesysgood): New function.
1329 (linux_test_for_tracefork): New function, factored out from
1330 linux_check_ptrace_features, and also don't kill child_pid here.
1331
b1328b1b
TG
13322013-10-03 Tristan Gingold <gingold@adacore.com>
1333
1334 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1335 Remove verbose error reporting. Use detected state to
1336 thread_set_state call.
1337 (i386_darwin_dr_get): Fix return type. Remove verbose error
1338 report.
1339 Remove trailing spaces.
1340
901461f8
PA
13412013-10-02 Pedro Alves <palves@redhat.com>
1342
1343 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1344 val_print_optimized_out.
1345 * jv-valprint.c (java_print_value_fields): Likewise.
1346 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1347 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1348 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1349 new optimized out value.
1350 * findvar.c (address_from_register): Likewise.
1351 * frame.c (put_frame_register): Tweak error string to say the
1352 register was not saved, rather than optimized out.
1353 * infcmd.c (default_print_one_register_info): Adjust call to
1354 val_print_optimized_out. Use value_of_register instead of
1355 get_frame_register_value.
1356 * mi/mi-main.c (output_register): Use value_of_register instead of
1357 get_frame_register_value.
1358 * valprint.c (valprint_check_validity): Likewise.
1359 (val_print_optimized_out): New value parameter. If the value is
1360 lval_register, print <not saved> instead.
1361 (value_check_printable, val_print_scalar_formatted): Adjust calls
1362 to val_print_optimized_out.
1363 * valprint.h (val_print_optimized_out): New value parameter.
1364 * value.c (struct value) <optimized_out>: Extend comment.
1365 (error_value_optimized_out): New function.
1366 (require_not_optimized_out): Use it. Use a different string for
1367 lval_register values.
1368 * value.h (error_value_optimized_out): New declaration.
1369 * NEWS: Mention <not saved>.
1370
042a84d9
JB
13712013-10-02 Joel Brobecker <brobecker@adacore.com>
1372
1373 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1374 strcmp to compare two symtab filenames.
1375
6b9780fb
JB
13762013-10-02 Joel Brobecker <brobecker@adacore.com>
1377
1378 * symtab.c (search_symbols_equal): Delete.
1379 (sort_search_symbols_remove_dups): Replace call to
1380 search_symbols_equal by call to compare_search_syms,
1381 adjusting as necessary.
1382
751e7549
PM
13832013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1384
1385 PR python/15579
751e7549
PM
1386 * python/python.c: Document gdb.execute command in Python help.
1387
1efd7661
PM
13882013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1389
1390 * python/py-frame.c (frame_info_to_frame_object): Use
1391 gdbpy_convert_exception. Clean up Python object on failure.
1392
562fc849
PM
13932013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1394
1395 * python/lib/gdb/command/frame_filters.py
1396 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1397 (ShowFrameFilterPriority.invoke): Ditto.
1398
d7561cbb
KS
13992013-10-01 Keith Seitz <keiths@redhat.com>
1400
1401 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1402 (parse_linespec): Make 'argptr' const.
1403 Remove temporary cast of 'argptr' to const char **.
1404 (decode_line_full): Pass const pointer to parse_linespec.
1405 (decode_line_1): Likewise.
1406 (decode_objc): Make local variable 'new_argptr' const.
1407 (find_function_symbols): Remove temporary cast to char *
1408 to find_imps.
1409 * objc-lang.c (find_imps): Make argument 'method' const.
1410 Return const.
1411 * objc-lang.h (find_imps): Likewise.
1412
14132013-10-01 Keith Seitz <keiths@redhat.com>
1414
1415 * completer.c (skip_quoted_chars): Make all arguments const.
1416 Return const.
1417 (skip_quoted): Likewise.
1418 * completer.h (skip_quoted_chars): Likewise.
1419 (skip_quoted): Likewise.
1420 * defs.h (skip_quoted): Remove duplicate declaration.
1421 * jv-exp.y: Include completer.h.
1422 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1423 * p-exp.y: Include completer.h.
1424
14252013-10-01 Keith Seitz <keiths@redhat.com>
1426
1427 * c-exp.y (parse_number): Make first argument const.
1428 Make a copy of the input to manipulate.
1429 (c_parse_escape): Make first argument const.
1430 Make local variable 'tokptr' const.
1431 (parse_string_or_char): Make first two arguments const.
1432 (macro_original_text): Make const.
1433 (lex_one_token): Make local variable 'tokstart' const.
1434 Likewise for local variables named 'p'.
1435 Cast away const for struct stoken (temporary).
1436 * c-lang.h (c_parse_escpae): Make first argument const.
1437 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1438 const.
1439 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1440 var_string case.
1441 * f-exp.y (parse_number): Make first argument const.
1442 (match_string_literal): Make local variable 'tokstart'
1443 const.
1444 (yylex): Make local variable 'p' const.
1445 Cast away const for struct stoken (temporary).
1446 * go-exp.y (parse_number): Make first argument const.
1447 (parse_string_or_char): Likewise.
1448 Make local variable 'tokstart' const.
1449 (lex_one_token): Likewise for numerous locals called 'p'.
1450 Cast away const for struct stoken (temporary).
1451 * jv-exp.y (parse_number): Make first argument const.
1452 Make local variables 'tokstart' and 'tokptr' const.
1453 Cast away const for call to skip_quoted (temporary).
1454 (yylex): Make local variable 'p' const.
1455 Cast away const for struct stoken (temporary).
1456 * m2-exp.y (parse_number): Make local variable 'p' const.
1457 (yylex): Likewise for 'tokstart'.
1458 Cast away const for struct stoken (temporary).
1459 Make local variable 'p' const.
1460 * macroexp.c (get_character_constant): Pass a const string
1461 to c_parse_escape.
1462 (get_string_literal): Likewise.
1463 (macro_expand_next): Make first argument const.
1464 Cast away const for init_shared_buffer.
1465 * macroexp.h (macro_expand_next): Make first argument const.
1466 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1467 Pass a const string to c_parse_escape.
1468 Make local variables 'p' and 'namestart' const.
1469 * parse.c (lexptr): Make const.
1470 (prev_lexptr): Likewise.
1471 (find_template_name_end): Return const.
1472 Make argument const, too.
1473 (parse_exp_in_context): Make first argument const.
1474 Remove the entire const_hack.
1475 (parse_exp_in_context_1): Make first argument const.
1476 * parser-defs.h (find_template_name_end): Return const.
1477 Make argument const, too.
1478 (lexptr): Make const.
1479 (prev_lexptr): Likewise.
1480 * utils.c (parse_escape): Make second argument const.
1481 * utils.h (parse_escape): Likewise.
1482
14832013-10-01 Keith Seitz <keiths@redhat.com>
1484
1485 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1486 is now const.
1487 (block_lookup): Make 'raw_name' and 'name' const.
1488 * ada-lex.l (processString): Update for struct stoken.ptr.
1489 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1490 (operator_stoken): Likewise.
1491 (lex_one_token): Remove temporary cast to char * for
1492 'yylval.sval.ptr'.
1493 * f-exp.y (yylex): Likewise.
1494 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1495 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1496 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1497 'yylval.sval.ptr'.
1498 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1499 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1500 * linespec.c (struct ls_parser): Make 'stream' const.
1501 (find_parameter_list_end): Make argument 'input' and local
1502 variable 'p' const.
1503 (linespec_lexer_lex_string): Make local variables 'start' and
1504 'p' const.
1505 Use skip_spaces_const instead of skip_spaces.
1506 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1507 const.
1508 (parse_linespec): Temporarily cast 'argptr' to const for
1509 'parser->lexer.stream'.
1510 * m2-exp.y (yylex): Remove temporary cast to char * for
1511 'yylval.sval.ptr'.
1512 * objc-lang.c (add_msglist): Make local variable 'p' const.
1513 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1514 (exp : STRING): Make 'sp' const.
1515 (parse_number): Make argument 'p' const.
1516 * parser-defs.h (struct stoken): Make 'ptr' const.
1517
193a8eac
DE
15182013-10-01 Doug Evans <dje@google.com>
1519
1520 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1521
2213e2be
YQ
15222013-10-01 Yao Qi <yao@codesourcery.com>
1523
1524 * varobj.c (c_value_of_root): Remove declaration.
1525 (cplus_value_of_root, java_value_of_root): Likewise.
1526 (ada_value_of_root): Likewise.
1527 (struct language_specific) <value_of_root>: Remove.
1528 (languages): Update initialization.
1529 (check_scope): Move earlier.
1530 (c_value_of_root): Move earlier and rename to ...
1531 (value_of_root_1): ... this.
1532 (value_of_root): Caller update.
1533 (cplus_value_of_root, java_value_of_root): Remove.
1534 (ada_value_of_root): Remove.
1535
c573f273
YQ
15362013-10-01 Yao Qi <yao@codesourcery.com>
1537
1538 * varobj.c (varobj_format_string): Remove "unknown".
1539 (languages): Remove the first element.
1540 * varobj.h (enum varobj_languages): Remove vlang_c.
1541
56250258
YQ
15422013-10-01 Yao Qi <yao@codesourcery.com>
1543
1544 * varobj.c (struct language_specific) <language>: Remove.
1545 (languages): Update the initialization.
1546
29f9ebfa
YQ
15472013-10-01 Yao Qi <yao@codesourcery.com>
1548
1549 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1550 "solib-target.h". Include "windows-tdep.h".
1551 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1552 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1553 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1554 windows-tdep.o to gdb_target_obs.
1555
64870a42
YQ
15562013-10-01 Yao Qi <yao@codesourcery.com>
1557
1558 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1559 "solib-target.h".
1560 (amd64_windows_init_abi): Don't call set_solib_ops and
1561 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1562 windows_init_abi instead.
1563 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1564 "solib-target.h".
1565 (i386_cygwin_init_abi): Don't call set_solib_ops,
1566 set_gdbarch_has_dos_based_file_system and
1567 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1568 windows_init_abi instead.
1569 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1570 (windows_init_abi): New function.
1571 (windows_iterate_over_objfiles_in_search_order): Make it
1572 static.
1573 * windows-tdep.h (windows_init_abi): Declare.
1574 (windows_iterate_over_objfiles_in_search_order): Remove
1575 declaration.
1576
0aebdefa
JB
15772013-10-01 Jerome Guitton <guitton@adacore.com>
1578
1579 Checked in by Joel Brobecker <brobecker@adacore.com>
1580 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1581 incomplete dictionnary instead of None in case of missing
1582 environment variables.
1583 (elinos_init): in case of an incomplete environment, best
1584 effort to load system libraries instead of abort.
1585
1c8e84b0
JB
15862013-10-01 Joel Brobecker <brobecker@adacore.com>
1587
1588 * ada-lang.c (ada_has_this_exception_support): Ignore
1589 mst_solib_trampoline minimal symbols.
1590
61d82a0d
TG
15912013-09-30 Tristan Gingold <gingold@adacore.com>
1592
1593 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1594 hardware watchpoint.
1595 (i386_darwin_dr_set): Support 32 and 64 bit states.
1596 (i386_darwin_dr_get): Likewise.
1597 (i386_darwin_dr_set_control): Make static.
1598 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1599 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1600
dfd4cc63
LM
16012013-09-30 Luis Machado <lgustavo@codesourcery.com>
1602
1603 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1604 Replace TIDGET with ptid_get_lwp.
1605 Replace GET_LWP with ptid_get_lwp.
1606 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1607 Replace BUILD_THREAD with ptid_build.
1608 Replace BUILD_LWP with ptid_build.
1609 Replace PIDGET with ptid_get_pid.
1610 Replace TIDGET with ptid_get_lwp.
1611 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1612 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1613 Replace TIDGET with ptid_get_lwp.
1614 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1615 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1616 Replace TIDGET with ptid_get_lwp.
1617 Replace GET_LWP with ptid_get_lwp.
1618 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1619 * auxv.c: Likewise.
1620 * breakpoint.c: Likewise.
1621 * common/ptid.c (ptid_is_pid): Condense check for
1622 null_ptid and minus_one_ptid.
1623 (ptid_lwp_p): New function.
1624 (ptid_tid_p): New function.
1625 * common/ptid.h: Update comments for accessors.
1626 (ptid_lwp_p): New prototype.
1627 (ptid_tid_p): New prototype.
1628 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1629 * gcore.c: Replace PIDGET with ptid_get_pid.
1630 * gdbthread.h: Likewise.
1631 * gnu-nat.c: Likewise.
1632 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1633 Replace TIDGET with ptid_get_lwp.
1634 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1635 * hppanbsd-nat.c: Likewise.
1636 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1637 Replace TIDGET with ptid_get_lwp.
1638 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1639 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1640 * infcmd.c: Likewise.
1641 * inferior.h: Likewise.
1642 * inflow.c: Likewise.
1643 * infrun.c: Likewise.
1644 * linux-fork.c: Likewise.
1645 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1646 Replace GET_PID with ptid_get_pid.
1647 Replace is_lwp with ptid_lwp_p.
1648 Replace GET_LWP with ptid_get_lwp.
1649 Replace BUILD_LWP with ptid_build.
1650
5b4e221c
MF
16512013-09-28 Mike Frysinger <vapier@gentoo.org>
1652
1653 * common/linux-btrace.c: Move sys/syscall.h out of the
1654 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1655 Also check for SYS_perf_event_open before attempting to buid.
1656
57d63ce2
DE
16572013-09-27 Doug Evans <dje@google.com>
1658
19ac8c2e
DE
1659 * dwarf2read.c (dwarf2_section_info): Add comment.
1660 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1661 All uses updated.
1662 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1663 (dwarf2_read_section): Delete unused local "header". Add section
1664 name to error message.
1665 (create_dwo_in_dwp): Tweak comment.
1666 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1667
a32a8923
DE
1668 * dwarf2read.c (die_reader_specs): Tweak comment.
1669 (get_section_bfd_owner, get_section_bfd_section): New functions.
1670 (get_section_name, get_section_file_name): New functions.
1671 (get_section_id, get_section_flags): New functions.
1672 (*): Use new functions to access section fields.
1673
57d63ce2
DE
1674 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1675 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1676 arg "htab". All callers updated.
1677 (create_debug_types_hash_table): Remove redundant copy of
1678 abbrev_section.
1679 (create_dwo_in_dwp): Tweak comments.
1680 (read_str_index): Tweak comment. Record dwarf form name in static
1681 local.
1682
3736004f
PA
16832013-09-27 Pedro Alves <palves@redhat.com>
1684
1685 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1686 (remote_filename_p): Add comment.
1687 * remote.c (remote_filename_p): Adjust to use
1688 REMOTE_SYSROOT_PREFIX.
1689 * solib.c (solib_find): When deciding whether we need to add a
1690 directory separator, check whether the sysroot is "remote:"
1691 instead of checking whether the patch has a drive spec. Add
1692 comments.
1693
5b5596ff
PA
16942013-09-27 Pedro Alves <palves@redhat.com>
1695
1696 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1697 Delete fields.
1698 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1699 directly.
1700
b5eef7aa
JK
17012013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1702
1703 Fix set debug frame output.
1704 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1705 SENTINEL_FRAME entry lower to match enum frame_type order.
1706
5b856f36
PM
17072013-09-26 Pierre Muller <muller@sourceware.org>
1708
1709 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1710 AMD64_R15_REGNUM when a register index is expected.
1711 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1712 Substitute in array.
1713 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1714 (amd64_push_arguments): Substitute in integer_regnum array.
1715
ade7ed9e
DE
17162013-09-25 Doug Evans <dje@google.com>
1717
d3e81981
DE
1718 * objfiles.c (allocate_objfile): Move comment to better place.
1719
8fb8eb5c
DE
1720 New option "set debug symfile on".
1721 * NEWS: Mention "set debug symfile".
1722 * Makefile.in (SFILES): Add symfile-debug.c.
1723 (COMMON_OBS): Add symfile-debug.o.
1724 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1725 objfile's symbol functions.
1726 * objfiles.h (objfile_set_sym_fns): Declare.
1727 * symfile-debug.c: New file.
1728 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1729 objfile's symbol functions.
1730 (reread_symbols): Ditto.
1731
c256e171
DE
1732 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1733 All uses updated.
1734 (add_symtab_fns): Update prototype.
1735 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1736 (registered_sym_fns): ... this.
1737 (symtab_fns): Update.
1738 (add_symtab_fns): New arg "flavour". All callers updated.
1739 (find_sym_fns): Rewrite to use new sym_fns registry.
1740
f56ce883
DE
1741 * symfile.h (struct sym_fns): Add "objfile" argument to
1742 sym_read_linetable. All uses updated.
1743
20c681d1
DE
1744 * symtab.c (domain_name, search_domain_name): New functions.
1745 * symtab.h (domain_name, search_domain_name): Declare.
1746
ade7ed9e
DE
1747 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1748 map_matching_symbols so objfile is first. All uses updated.
1749 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1750 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1751
7d760051
UW
17522013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1753
1754 PR shlibs/8882
1755 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1756 link map entries.
1757
020f7036
DE
17582013-09-24 Doug Evans <dje@google.com>
1759
1760 * objfiles.c (free_objfile): Move comment.
1761
598402f0
JB
17622013-09-24 Joel Brobecker <brobecker@adacore.com>
1763
1764 * ada-exp.y (string_to_operator): Delete.
1765 (dummy_string_to_ada_operator): Delete.
1766
bf4d6c1c
JB
17672013-09-24 Joel Brobecker <brobecker@adacore.com>
1768
1769 Revert:
1770 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1771 amd64-tdep.c.
1772 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1773 call_dummy_integer_regs, and classify.
1774 * amd64-tdep.h (amd64_classify): Add declaration.
1775 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1776 (amd64_reg_class): Delete, moved to i386-tdep.h.
1777 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1778 Replace call to amd64_classify by call to tdep->classify.
1779 (amd64_push_arguments): Get the list of registers to use for
1780 passing integer parameters from the gdbarch tdep structure,
1781 rather than using a hardcoded one. Replace calls to amd64_classify
1782 by calls to tdep->classify.
1783 (amd64_push_dummy_call): Get the register number used for
1784 the "hidden" argument from tdep->call_dummy_integer_regs.
1785 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1786 and tdep->call_dummy_integer_regs. Set tdep->classify.
1787
849e9755
JB
17882013-09-24 Joel Brobecker <brobecker@adacore.com>
1789
1790 Revert:
1791 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1792 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1793 where tdep->memory_args_by_pointer is non-zero.
1794
c1459fd6
JB
17952013-09-24 Joel Brobecker <brobecker@adacore.com>
1796
1797 Revert:
1798 * i386-tdep.h (struct gdbarch_tdep): Add new field
1799 integer_param_regs_saved_in_caller_frame.
1800 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1801 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1802
20c2e3e0
JB
18032013-09-24 Joel Brobecker <brobecker@adacore.com>
1804
874440b8 1805 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1806 (amd64_windows_classify): Delete.
1807 (amd64_windows_passed_by_integer_register)
1808 (amd64_windows_passed_by_xmm_register)
1809 (amd64_windows_passed_by_pointer)
1810 (amd64_windows_adjust_args_passed_by_pointer)
1811 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1812 (amd64_windows_push_dummy_call): New functions.
1813 (amd64_windows_init_abi): Remove setting of
1814 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1815 tdep->classify, tdep->memory_args_by_pointer and
1816 tdep->integer_param_regs_saved_in_caller_frame.
1817 Add call to set_gdbarch_push_dummy_call.
1818
82bf32bc
JK
18192013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1820
1821 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1822 objfile->original_name.
1823
24ba069a
JK
18242013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1825
1826 Pass down original filename for objfile.
1827 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1828 * elfread.c (elf_symfile_read): Likewise.
1829 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1830 longer set ORIGINAL_NAME.
1831 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1832 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1833 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1834 symbol_file_add_from_bfd call.
1835 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1836 (macho_check_dsym): Add parameter filenamep. Change function comment.
1837 Set *filenamep.
1838 (macho_symfile_read): New variable dsym_filename. Update
1839 macho_check_dsym call. Use it for symbol_file_add_separate.
1840 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1841 it. Use it for objfile->original_name.
1842 (objfile_name): Return OBFD's filename, if available.
1843 * objfiles.h (allocate_objfile): Add new parameter name.
1844 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1845 * symfile-mem.c (symbol_file_add_from_memory): Update
1846 symbol_file_add_from_bfd call.
1847 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1848 comment for it.
1849 (symbol_file_add_with_addrs): New parameter name, add function comment
1850 for it. Remove variable name. Update allocate_objfile call.
1851 (symbol_file_add_separate): New parameter name, add function comment
1852 for it. Update symbol_file_add_with_addrs call.
1853 (symbol_file_add_from_bfd): New parameter name. Update
1854 symbol_file_add_with_addrs call.
1855 (symbol_file_add): Update symbol_file_add_from_bfd call.
1856 (reread_symbols): New variable original_name. Save
1857 objfile->original_name by it.
1858 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1859 second parameter.
1860
4262abfb
JK
18612013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1862
1863 Code cleanup: Add objfile_name accessor function.
1864 * ada-lang.c (is_known_support_routine): Use objfile_name.
1865 * auto-load.c (source_gdb_script_for_objfile)
1866 (auto_load_objfile_script): Likewise.
1867 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1868 * dbxread.c (dbx_symfile_read): Likewise.
1869 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1870 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1871 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1872 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1873 (lookup_dwp_signatured_type, lookup_dwo_unit)
1874 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1875 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1876 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1877 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1878 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1879 (read_subrange_type, load_partial_dies, read_partial_die)
1880 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1881 (die_containing_type, build_error_marker_type, lookup_die_type)
1882 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1883 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1884 (get_DW_AT_signature_type, write_psymtabs_to_index)
1885 (save_gdb_index_command): Likewise.
1886 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1887 Likewise.
1888 * expprint.c (dump_subexp_body_standard): Likewise.
1889 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1890 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1891 original_name.
1892 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1893 obj_name, use objfile_name for it, use the variable.
1894 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1895 Use objfile_name.
1896 * machoread.c (macho_symtab_read, macho_check_dsym)
1897 (macho_symfile_relocate): Likewise.
1898 * maint.c (maintenance_translate_address): Likewise.
1899 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1900 * minsyms.c (install_minimal_symbols): Likewise.
1901 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1902 original_name.
1903 (filter_overlapping_sections): Use objfile_name.
1904 (objfile_name): New function.
1905 * objfiles.h (struct objfile): Rename field name to original_name.
1906 (objfile_name): New prototype.
1907 * printcmd.c (sym_info, address_info): Use objfile_name.
1908 * probe.c (parse_probes, collect_probes, compare_probes)
1909 (info_probes_for_ops): Likewise.
1910 * progspace.c (clone_program_space): Likewise.
1911 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1912 (maintenance_info_psymtabs): Likewise.
1913 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1914 (source_section_scripts): Likewise.
1915 * python/py-objfile.c (objfpy_get_filename): Likewise.
1916 * python/py-progspace.c (pspy_get_filename): Likewise.
1917 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1918 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1919 * solib.c (solib_read_symbols): Likewise.
1920 * stabsread.c (scan_file_globals): Likewise.
1921 * stap-probe.c (handle_stap_probe): Likewise.
1922 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1923 (find_separate_debug_file_by_debuglink): Likewise.
1924 (reread_symbols): Likewise. Use the objfile field name renamed to
1925 original_name.
1926 (allocate_symtab): Use objfile_name.
1927 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1928 (dump_objfile, dump_msymbols, dump_symtab_1)
1929 (maintenance_print_msymbols, maintenance_print_objfiles)
1930 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1931 * target.c (target_translate_tls_address, target_info): Likewise.
1932 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1933 objfile_name.
1934
4721dc18
JK
19352013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1936
1937 Code cleanup.
1938 * probe.c (parse_probes): Rename variable objfile_name to
1939 objfile_namestr.
1940
a61d6db8
JK
19412013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1942
1943 Remove solib-sunos.c.
1944 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1945 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1946 * objfiles.c (rt_common_objfile): Remove.
1947 (free_objfile): Remove rt_common_objfile comparison.
1948 * objfiles.h (rt_common_objfile): Remove.
1949 * solib-sunos.c: Remove.
1950 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1951
2659903b
JK
19522013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1953
1954 Remove a.out NetBSD and OpenBSD hosts.
1955 * NEWS (Removed native configurations): New.
1956 * config/arm/nbsdaout.mh: Remove.
1957 * config/i386/nbsdaout.mh: Remove.
1958 * config/i386/obsdaout.mh: Remove.
1959 * config/m68k/nbsdaout.mh: Remove.
1960 * config/sparc/nbsdaout.mh: Remove.
1961 * config/vax/nbsdaout.mh: Remove.
1962 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1963 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1964 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1965 error.
1966 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1967 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1968 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1969
f60e2d5c
TT
19702013-09-23 Tom Tromey <tromey@redhat.com>
1971
1972 * linespec.c (struct minsym_and_objfile): Remove.
1973 (minsym_and_objfile_d): Remove.
1974 (struct linespec, struct collect_info, linespec_parse_basic)
1975 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1976 (compare_msymbols, find_method, find_function_symbols)
1977 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1978 (add_minsym, search_minsyms_for_name): Update.
1979
d3eaaf66
AB
19802013-09-23 Andrew Burgess <aburgess@broadcom.com>
1981
1982 * regcache.c: Add include of valprint.h.
1983 (dump_endian_bytes): Delete.
1984 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1985
2cc762b5
AB
19862013-09-23 Andrew Burgess <aburgess@broadcom.com>
1987
1988 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1989
96181529
PA
19902013-09-19 Pedro Alves <palves@redhat.com>
1991
1992 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1993 breakpoints.
1994
9b3f3ee6
TS
19952013-09-19 Pedro Alves <palves@redhat.com>
1996 Thomas Schwinge <thomas@codesourcery.com>
1997 Yue Lu <hacklu.newborn@gmail.com>
1998
1999 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2000 Take a gdb_byte pointer instead of a char pointer.
2001
2002 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2003 gnu_xfer_partial helper.
2004 (gnu_xfer_partial): New function.
2005 (gnu_target): Don't install a deprecated_xfer_memory hook.
2006 Install a to_xfer_partial hook.
2007
69150c3d
JK
20082013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2009
2010 Constification.
2011 * main.c (captured_main): Replace catch_command_errors by
2012 catch_command_errors_const. Twice.
2013 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2014 (symbol_file_add): Make name parameter const.
2015 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2016 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2017 variable name. Change their usage accordingly.
2018 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2019 const.
2020 (symbol_file_add_main): Make args parameter const.
2021
086850b2
UW
20222013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2023 Ulrich Weigand <uweigand@de.ibm.com>
2024
2025 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2026 of c_value member.
2027 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2028
ca08a94c 20292013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2030 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2031
2032 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2033 (gnu_create_inferior)
2034 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2035 (set_sig_thread_cmd): Use the lwpid field of ptids to
2036 store/extract thread ids instead of the tid field.
2037 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2038
e4c6a2c4
AB
20392013-09-18 Andrew Burgess <aburgess@broadcom.com>
2040
2041 * infcmd.c (default_print_one_register_info): Add detection of
2042 optimized out values.
2043 (default_print_registers_info): Switch to using
2044 get_frame_register_value.
2045
58c48e72
MM
20462013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2047
2048 * infrun.c (handle_inferior_event): Check if we know the
2049 function start address before setting a resume breakpoint.
2050
c8d37639
PA
20512013-09-18 Pedro Alves <palves@redhat.com>
2052
2053 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2054 minus_one_ptid instead of looking at the ptid's tid field and
2055 comparing that to -1.
2056
71926e28
AB
20572013-09-18 Andrew Burgess <aburgess@broadcom.com>
2058
2059 * main.h (get_gdb_program_name): Remove extra whitespace.
2060
c88a1531
AB
20612013-09-18 Andrew Burgess <aburgess@broadcom.com>
2062
2063 * main.h (get_gdb_program_name): Add declaration.
2064 * main.c (get_gdb_program_name): Add definition.
2065
4390d890
DE
20662013-09-17 Doug Evans <dje@google.com>
2067
2068 * dwarf2read.c: Move definitions of complaint functions to after
2069 forward declarations of local functions.
2070
49fa26b0
PA
20712013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2072 Pedro Alves <palves@redhat.com>
2073
2074 PR gdb/11568
2075 * breakpoint.c (remove_threaded_breakpoints): New function.
2076 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2077 as thread_exit observer.
2078
08d72866
PA
20792013-09-17 Pedro Alves <palves@redhat.com>
2080
2081 PR gdb/15911
2082 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2083 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2084 * corelow.c (core_open):
2085 * frame.h (print_stack_frame, print_frame_info): New
2086 'set_current_sal' parameter.
2087 * infcmd.c (finish_command, kill_command): Adjust call to
2088 print_stack_frame.
2089 * inferior.c (inferior_command): Likewise.
2090 * infrun.c (normal_stop): Likewise.
2091 * linux-fork.c (linux_fork_context): Likewise.
2092 * record-full.c (record_full_goto_entry, record_full_restore):
2093 Likewise.
2094 * remote-mips.c (common_open): Likewise.
2095 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2096 Use it.
2097 (print_frame_info): New 'set_current_sal' parameter. Set the last
2098 displayed sal depending on the new paremeter instead of looking at
2099 print_what.
2100 (backtrace_command_1, select_and_print_frame, frame_command)
2101 (current_frame_command, up_command, down_command): Adjust call to
2102 print_stack_frame.
2103 * thread.c (print_thread_info, restore_selected_frame)
2104 (do_captured_thread_select): Adjust call to print_stack_frame.
2105 * tracepoint.c (tfind_1): Likewise.
2106 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2107 (mi_cmd_stack_info_frame): Likewise.
2108 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2109 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2110
6bc305f5
SDJ
21112013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2112
2113 * value.c (isvoid_internal_fn): Replace "parameter" with
2114 "argument".
2115
0a7cfe2c
SS
21162013-09-16 Stan Shebs <stan@codesourcery.com>
2117
2118 * README: Update references to writing code for GDB.
2119 * configure.ac (build_warnings): Remove obsolete comment.
2120 * configure: Regenerate.
2121 * gdbarch.sh: Remove references to gdbint.texinfo.
2122 * gdbarch.h: Regenerate.
2123 * gdbtypes.c (objfile_type): Remove comments referencing internals
2124 manual and D10V.
2125
a280dbd1
SDJ
21262013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2127
2128 * NEWS: Mention new convenience function $_isvoid.
2129 * value.c (isvoid_internal_fn): New function.
2130 (_initialize_values): Add new convenience function $_isvoid.
2131
04a83fee
PM
21322013-09-16 Pierre Muller <muller@sourceware.org>
2133
2134 * arm-linux-tdep.c: Add "elf/common.h" header.
2135 Remove AT_HWCAP macro definintion as it is provided in
2136 added include file.
2137 * s390-tdep.c: Remove system header <elf.h>
2138 Add "elf/common.h" header for AT_HWCAP definition.
2139 (s390_core_read_description): Use correct CORE_ADDR
2140 for hwcap local variable used as third parameter
2141 of function target_auxv_search.
2142
88505fac
PM
21432013-09-14 Pierre Muller <muller@sourceware.org>
2144 Tom Tromey <tromey@redhat.com>
2145 Pedro Alves <palves@redhat.com>
2146
2147 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2148 mode if operating system doesn't know O_CLOEXEC.
2149
d3846e71
JK
21502013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2151
2152 Code cleanup.
2153 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2154 inner block.
2155
4ac33720
UW
21562013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2157
2158 * NEWS: Mention TDB support.
2159 * features/s390-tdb.xml: New file.
2160 * features/s390-te-linux64.xml: New file.
2161 * features/s390x-te-linux64.xml: New file.
2162 * features/Makefile (WHICH): Add new tdescs above.
2163 (s390-te-linux64-expedite): Set.
2164 (s390x-te-linux64-expedite): Set.
2165 * features/s390-te-linux64.c: New file (generated).
2166 * features/s390x-te-linux64.c: New file (generated).
2167 * regformats/s390-te-linux64.dat: New file (generated).
2168 * regformats/s390x-te-linux64.dat: New file (generated).
2169 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2170 (HWCAP_S390_TE): Likewise.
2171 (S390_TDB_DWORD0_REGNUM): Likewise.
2172 (S390_TDB_DWORD0_REGNUM): Likewise.
2173 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2174 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2175 (S390_TDB_ATIA_REGNUM): Likewise.
2176 (S390_TDB_R0_REGNUM): Likewise.
2177 (S390_TDB_R1_REGNUM): Likewise.
2178 (S390_TDB_R2_REGNUM): Likewise.
2179 (S390_TDB_R3_REGNUM): Likewise.
2180 (S390_TDB_R4_REGNUM): Likewise.
2181 (S390_TDB_R5_REGNUM): Likewise.
2182 (S390_TDB_R6_REGNUM): Likewise.
2183 (S390_TDB_R7_REGNUM): Likewise.
2184 (S390_TDB_R8_REGNUM): Likewise.
2185 (S390_TDB_R9_REGNUM): Likewise.
2186 (S390_TDB_R10_REGNUM): Likewise.
2187 (S390_TDB_R11_REGNUM): Likewise.
2188 (S390_TDB_R12_REGNUM): Likewise.
2189 (S390_TDB_R13_REGNUM): Likewise.
2190 (S390_TDB_R14_REGNUM): Likewise.
2191 (S390_TDB_R15_REGNUM): Likewise.
2192 (S390_NUM_REGS): Increase.
2193 (S390_IS_TDBREGSET_REGNUM): New macro.
2194 (s390_regmap_tdb): Declare.
2195 (s390_sizeof_tdbregset): Define.
2196 (tdesc_s390_te_linux64): Declare.
2197 (tdesc_s390x_te_linux64): Likewise.
2198 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2199 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2200 (s390_regmap_tdb): New regmap.
2201 (s390_supply_tdb_regset): New function.
2202 (s390_tdb_regset): New regset.
2203 (s390_linux64v2_regset_sections): Add TDB regset to list.
2204 (s390x_linux64v2_regset_sections): Likewise.
2205 (s390_regset_from_core_section): Recognize TDB core note section.
2206 (s390_core_read_description): If HWCAP indicates TE support,
2207 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2208 (s390_gdbarch_init): Handle TDB regset.
2209 (_initialize_s390_tdep): Initialize new tdescs.
2210 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2211 (have_regset_tdb): New variable.
2212 (s390_native_supply): Support register invalidation.
2213 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2214 (check_regset): Treat ENODATA as "regset exists".
2215 (s390_linux_fetch_inferior_registers): Add TDB.
2216 (s390_read_description): Check for TDB existence and select
2217 appropriate tdesc.
2218 * gdbserver/Makefile.in (clean): Add removal of new makefile
2219 targets.
2220 (s390-te-linux64.c): New makefile target.
2221 (s390x-te-linux64.c): Likewise.
2222 * gdbserver/configure.srv (srv_regobj): Append new objects
2223 s390-te-linux64.o and s390x-te-linux64.o.
2224 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2225 s390x-te-linux64.xml, and s390-tdb.xml.
2226 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2227 declaration.
2228 (tdesc_s390_te_linux64): Likewise.
2229 (init_registers_s390x_te_linux64): Likewise.
2230 (tdesc_s390x_te_linux64): Likewise.
2231 (s390_check_regset): Treat ENODATA as "regset exists".
2232 (s390_arch_setup): Add TDB regset support.
2233 (initialize_low_arch): Initialize registers for new tdescs.
2234
2ccd1468
UW
22352013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2236
2237 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2238 (S390_IS_FPREGSET_REGNUM): New macro.
2239 * s390-tdep.c (s390_dwarf_regmap): Make const.
2240 (regnum_is_gpr_full): New function for replacing repeated code.
2241 (s390_pseudo_register_name): Use it.
2242 (s390_pseudo_register_type): Likewise.
2243 (s390_pseudo_register_read): Likewise.
2244 (s390_pseudo_register_write): Likewise.
2245 (s390_unwind_pseudo_register): Likewise.
2246 (s390_regmap_gregset): New format for regmap.
2247 (s390x_regmap_gregset): Likewise.
2248 (s390_regmap_fpregset): Likewise.
2249 (s390_regmap_upper): Likewise.
2250 (s390_regmap_last_break): Likewise.
2251 (s390_regmap_system_call): Likewise.
2252 (s390_supply_regset): Adjust to new regmap format.
2253 (s390_collect_regset): Likewise.
2254 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2255 (s390_native_collect): Likewise.
2256 (supply_gregset): Likewise.
2257 (fill_gregset): Likewise.
2258 (supply_fpregset): Likewise.
2259 (fill_fpregset): Likewise.
2260 (fetch_regset): Likewise.
2261 (store_regset): Likewise.
2262 (s390_linux_fetch_inferior_registers): Likewise.
2263 (s390_linux_fetch_inferior_registers): Likewise.
2264
1aa4cd77
AP
22652013-09-12 Andrew Pinski <apinski@cavium.com>
2266
2267 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2268
d91fab15
UW
22692013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2270
2271 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2272
5a5d8ead
AB
22732013-09-09 Andrew Burgess <aburgess@broadcom.com>
2274
2275 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2276
1385f66c
PA
22772013-09-06 Pedro Alves <palves@redhat.com>
2278
2279 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2280 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2281 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2282 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2283 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2284 gdb_stdlog.
2285
146ec4db
PA
22862013-09-06 Pedro Alves <palves@redhat.com>
2287
2288 * remote-sim.c (dump_mem): Constify buf parameter.
2289 gdbsim_xfer_inferior_memory): Rename to ...
2290 (gdbsim_xfer_memory): ... this. Adjust interface as
2291 target_xfer_partial helper.
2292 (gdbsim_xfer_partial): New function.
2293 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2294 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2295
fcde0081
PA
22962013-09-06 Pedro Alves <palves@redhat.com>
2297
2298 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2299 host_address_to_string, and send debug output to gdb_stdlog.
2300
749c8b38
RW
23012013-09-06 Ricard Wanderlof <ricardw@axis.com>
2302
2303 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2304 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2305 gdb_target_obs for cris target.
2306 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2307 (cris_gdbarch_init): Move calls to
2308 set_gdbarch_fetch_tls_load_module_address and
2309 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2310 Add call to gdbarch_init_osabi.
2311 * cris-linux-tdep.c: New file.
2312 * cris-tdep.h: New file.
2313
43df09d9
AB
23142013-09-06 Andrew Burgess <aburgess@broadcom.com>
2315
2316 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2317 to deprecated_init_ui_hook.
2318
4d09c5b4
AB
23192013-09-06 Andrew Burgess <aburgess@broadcom.com>
2320
2321 * cli/cli-interp.c (_initialize_cli_interp): Add a
2322 command_loop_proc to interp_procs.
2323 * event-top.c (cli_command_loop): Change signature to match
2324 interp_command_loop_ftype.
2325 * event-top.h (cli_command_loop): Same.
2326 * interps.c (interp_new): Require every interpreter to have a
2327 command_loop_proc.
2328 (current_interp_command_loop): Just call the command_loop_proc on
2329 the current interpreter.
2330 * tui/tui-interp.c (_initialize_tui_interp): Add a
2331 command_loop_proc to interp_procs.
2332
8eb3d7b6
RW
23332013-09-06 Ricard Wanderlof <ricardw@axis.com>
2334
2335 * cris-tdep.c (cris_gdbarch_init): Add call to
2336 get_gdbarch_fetch_tls_load_module_address.
2337
18b3c2f5
RW
23382013-09-06 Ricard Wanderlof <ricardw@axis.com>
2339
2340 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2341 (cris_elf_gregset_t): Rename from elf_gregset_t.
2342 (crisv32_elf_gregset_t): Adjust.
2343 (cris_supply_gregset, fetch_core_registers): Adjust.
2344
dc8636ef
RW
23452013-09-06 Ricard Wanderlof <ricardw@axis.com>
2346
2347 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2348
257e6d53
AB
23492013-09-05 Andrew Burgess <aburgess@broadcom.com>
2350
1581d8a7 2351 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 2352 references in comments.
1581d8a7 2353 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
2354 deprecated_command_loop_hook.
2355 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2356 setup.
1581d8a7 2357 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 2358
7c33b57c
PA
23592013-09-05 Pedro Alves <palves@redhat.com>
2360
2361 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2362 local is now int instead of ULONGEST. Print it with %d
2363 instead of paddress.
2364
9f8edbd5
TG
23652013-09-05 Tristan Gingold <gingold@adacore.com>
2366
2367 * MAINTAINERS: Remove avr maintainership.
2368
d5b495b4
PA
23692013-09-05 Pedro Alves <palves@redhat.com>
2370
2371 * findvar.c (value_of_register): Rework in terms of
2372 value_of_register_lazy.
2373
40b91786
MB
23742013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2375
2376 * symfile.c (add_symbol_file_command): Remove trailing
2377 whitespaces and blank line after comment.
2378
6eed1678
PA
23792013-09-05 Pedro Alves <palves@redhat.com>
2380
2381 * tui/tui-regs.c (tui_register_format): Don't look at the
2382 register's name here. Return string representing register
2383 value instead of storing it in the data element.
2384 (tui_get_register): Compare register string representations
2385 instead of register value states and contents.
2386
8eb6bda2
PA
23872013-09-05 Pedro Alves <palves@redhat.com>
2388
2389 PR tui/15933
2390 * tui/tui-regs.c (tui_show_registers): Show registers of the
2391 selected frame, not the current frame.
2392
48b1f08c
RW
23932013-09-05 Ricard Wanderlof <ricardw@axis.com>
2394
2395 * MAINTAINERS (Write After Approval): Add myself to the list.
2396
89e63ee4
DE
23972013-09-04 Doug Evans <dje@google.com>
2398
2399 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2400 (queue_and_load_dwo_tu): New function.
2401 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2402 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2403 Make dependent_cu optional.
2404 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2405 and an older .gdb_index is in use, queue and load all its TUs too.
2406
492c0ab7
JK
24072013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2408
2409 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2410 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2411 variable search_flags.
2412 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2413 (OPF_RETURN_REALPATH): ... here.
2414 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2415 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2416 call. Twice.
2417 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2418 openp call.
2419 * solib.c (solib_find): Likewise. Four times.
2420 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2421 in the function comment and for the realpath_fptr variable.
2422 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2423 (find_and_open_source): Likewise. Twice.
2424 * symfile.c (symfile_bfd_open): Likewise, also twice.
2425
23a44de8
DE
24262013-09-04 Doug Evans <dje@google.com>
2427
2428 * progspace.c (save_current_space_and_thread): Remove unnecessary
2429 call to save_current_inferior.
2430
47061676
AB
24312013-09-04 Andrew Burgess <aburgess@broadcom.com>
2432
2433 * sh64-tdep.c (sh64_do_register): Return after printing message
2434 about unavailable register contents.
2435
41dc8db8
MB
24362013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2437 Pedro Alves <palves@redhat.com>
2438
2439 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
2440 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2441 options and collapse into single conditional branch.
41dc8db8 2442
07107ca6
LM
24432013-09-03 Luis Machado <lgustavo@codesourcery.com>
2444
a7ea61cf 2445 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2446 detach_fork.
2447 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2448 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2449 * inferior.h (detach_fork): Remove.
2450 * infrun.c (detach_fork): Adjust comment and make it
2451 static.
2452 (follow_fork): Pass detach_fork parameter to
2453 target_follow_fork.
2454 * linux-nat.c (linux_child_follow_fork): New parameter
2455 detach_fork.
2456 * target.c (target_follow_fork): New parameter detach_fork.
2457 Pass detach_fork as parameter and print its value.
2458 * target.h (struct target_ops) <to_follow_fork>: New int
2459 parameter.
2460 (target_follow_fork): New parameter detach_fork.
2461
3bec2768
JB
24622013-09-03 Joel Brobecker <brobecker@adacore.com>
2463
2464 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2465 Replace sec->bfd by sec->the_bfd_section->owner.
2466
c01cbb3d
YQ
24672013-09-03 Yao Qi <yao@codesourcery.com>
2468
2469 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2470 from linux_has_shared_address_space.
2471 (linux_has_shared_address_space): Call linux_is_uclinux.
2472 * linux-tdep.h (linux_is_uclinux): Declare.
2473 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2474 linux_is_uclinux.
2475
7b00db47
YQ
24762013-09-03 Yao Qi <yao@codesourcery.com>
2477
2478 * config/djgpp/fnchange.lst: Remove entry of
2479 i386-interix-nat.c and i386-interix-tdep.c.
2480 * configure.ac: Remove '*-*-interix*'.
2481 * configure: Re-generated.
2482 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2483 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2484 obsolete comments.
2485 * osabi.c (gdb_osabi_names): Remove "Interix".
2486
0f9741f2
YQ
24872013-09-03 Yao Qi <yao@codesourcery.com>
2488
2489 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2490
1e038f67
MM
24912013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2492
2493 * record.h (record_print_flag) <record_print_src_line,
2494 record_print_insn_range>: Rename into ...
2495 (record_print_flag) <record_print_src_line,
2496 record_print_insn_range>: ... this. Update all users.
2497
9e52adf9
PM
24982013-09-02 Pierre Muller <muller@sourceware.org>
2499
2500 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2501 error code.
2502
a2388568
PM
25032013-09-02 Pierre Muller <muller@sourceware.org>
2504
2505 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2506 by use of plongest function.
2507
9058cc3a
TG
25082013-09-02 Tristan Gingold <gingold@adacore.com>
2509
2510 * NEWS: Add entry mentioning support for native Windows x64
2511 SEH data.
2512
2513 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2514 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2515 (struct amd64_windows_frame_cache): New struct.
2516 (amd64_windows_w2gdb_regnum): New global.
2517 (pc_in_range, amd64_windows_frame_decode_epilogue)
2518 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2519 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2520 (amd64_windows_frame_this_id): New functions.
2521 (amd64_windows_frame_unwind): New static global.
2522 (amd64_windows_skip_prologue): New function.
2523 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2524 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2525 with amd64_windows_skip_prologue.
2526
3161820b 25272013-08-30 Joel Brobecker <brobecker@adacore.com>
2528
2529 GDB 7.6.1 released.
2530
02457c76
PA
25312013-08-30 Pedro Alves <palves@redhat.com>
2532
2533 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2534 SRC_AND_LOC.
2535
e0162910
PA
25362013-08-30 Pedro Alves <palves@redhat.com>
2537
2538 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2539 warning text.
2540
6391ce51
PA
25412013-08-30 Pedro Alves <palves@redhat.com>
2542
2543 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2544 Adjust arguments to print_stack_frame.
2545
d1da0587
PA
25462013-08-30 Pedro Alves <palves@redhat.com>
2547
2548 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2549
adfd8245
PA
25502013-08-30 Pedro Alves <palves@redhat.com>
2551
2552 * frame.h (show_and_print_stack_frame): Delete declaration.
2553
96d9056e
PM
25542013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2555
2556 PR python/15461
96d9056e
PM
2557 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2558 (archpy_name): Check for valid architecture.
2559 (archpy_disassemble): Ditto.
2560
11cb8762
JB
25612013-08-29 Joel Brobecker <brobecker@adacore.com>
2562
2563 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2564 instead of "long long" in call to ptrace64.
2565
1af12a7d
AB
25662013-08-29 Andrew Burgess <aburgess@broadcom.com>
2567
2568 * mi/mi-interp.c (mi_command_loop): Change signature to match
2569 interp_command_loop_ftype.
2570 (mi1_command_loop): Remove.
2571 (mi2_command_loop): Remove.
2572 (mi3_command_loop): Remove.
2573 (mi_interpreter_resume): Remove setting of
2574 deprecated_command_loop_hook.
2575 (_initialize_mi_interp): Set mi_command_loop as the command loop
2576 callback.
2577
acc900c2
SA
25782013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2579
2580 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2581 value_type.
2582
548b762d
SA
25832013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2584
2585 * value.c (allocate_value_contents): Make static.
2586 * value.h (allocate_value_contents): Remove prototype.
2587
08039c9e
SA
25882013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2589
2590 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2591 of assembling value via allocate_value_lazy and attribute setter.
2592 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2593 assembling value via allocate_value_lazy and attribute setter.
2594 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2595 assembling value via allocate_value_lazy and attribute setter.
2596
314c7de9
SA
25972013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2598
2599 * value.c (value_from_contents_and_address): Replace allocate_value and
2600 memcpy with value_from_contents.
2601
8f28f522
PM
26022013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2603
2604 * python/py-framefilter.c (py_print_frame): Remove usage of
2605 PyString_AsString. Use python_string_to_host_string instead.
2606 Refactor function to work with a string as a new allocation
2607 instead of a pointer.
2608 (py_print_frame): Ditto.
2609 * python/lib/gdb/frames.py (return_list): Cain iterators together
2610 instead of adding them as a list.
2611 (_sort_list): Call return_list, and remove duplicate code.
2612 (execute_frame_filters): Convert iterator to a list with list().
2613 * python/lib/gdb/command/frame_filters.py
2614 (SetFrameFilterPriority._set_filter_priority): Convert priority
2615 attribute to an integer.
2616 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2617 wrapper function __next__.
2618 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2619 define as "str".
2620
8ee002df
PM
26212013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2622
2623 PR python/15752
8ee002df
PM
2624 * python/py-framefilter.c (apply_frame_filter): Check
2625 gdb_python_initialized. Exit if the Python frame-filter code
2626 cannot be initialized.
2627
af4c453a
PM
26282013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2629
2630 PR cli/15842
af4c453a
PM
2631 * top.c (print_gdb_version): Remove erroneous newline after help
2632 text.
2633
bf8793bb
YQ
26342013-08-29 Yao Qi <yao@codesourcery.com>
2635
2636 * varobj.c (install_dynamic_child): Remove trailing space.
2637 Add one blank line after variable declaration.
2638
1f0c4988
JK
26392013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2640
2641 PR gdb/15415
2642 * corefile.c (get_exec_file): Use exec_filename.
2643 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2644 * exec.c (exec_close): Free EXEC_FILENAME.
2645 (exec_file_attach): New variable canonical_pathname. Use
2646 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2647 EXEC_FILENAME.
2648 * exec.h (exec_filename): New.
2649 * inferior.c (print_inferior, inferior_command): Use
2650 PSPACE_EXEC_FILENAME.
2651 * mi/mi-main.c (print_one_inferior): Likewise.
2652 * progspace.c (clone_program_space, print_program_space): Likewise.
2653 * progspace.h (struct program_space): New field pspace_exec_filename.
2654 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2655 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2656
59ee9f94
WN
26572013-08-28 Will Newton <will.newton@linaro.org>
2658
2659 * common/linux-ptrace.c: Include stdint.h unconditionally.
2660
c8a2a419
JK
26612013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2662
2663 Code cleanup.
2664 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2665
ffa4ac95
YQ
26662013-08-28 Yao Qi <yao@codesourcery.com>
2667 Pedro Alves <palves@redhat.com>
2668
2669 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2670 instead of stdio_fileopen.
2671 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2672 .Call stderr_fileopen instead of stdio_fileopen.
2673 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2674 [__MINGW32__] (stderr_file_fputs): New function.
2675 (stderr_fileopen): New function.
2676 * ui-file.h (stderr_fileopen): Declare.
2677
69d751e3
DE
26782013-08-27 Doug Evans <dje@google.com>
2679
2680 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2681 (struct dwarf2_per_cu_data): Ditto.
2682 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2683 (process_imported_unit_die): Ditto.
2684 (follow_die_sig_1): Simplify assert.
2685
44f38867
PA
26862013-08-27 Pedro Alves <palves@redhat.com>
2687
2688 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2689 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2690 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2691 windows_xfer_memory directly.
2692 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2693
d28d46b5
PA
26942013-08-27 Pedro Alves <palves@redhat.com>
2695
2696 * darwin-nat.c (darwin_xfer_memory): Delete.
2697 (_initialize_darwin_inferior): Don't install a
2698 deprecated_xfer_memory method.
2699
6211c335
YQ
27002013-08-27 Pedro Alves <pedro@codesourcery.com>
2701 Yao Qi <yao@codesourcery.com>
2702
2703 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2704 (parse_no_frames_option): Remove.
2705 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2706 (mi_cmd_stack_list_args): Adjust.
2707 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2708 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2709 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2710 Caller update.
2711 (list_args_or_locals): New parameter 'skip_unavailable'.
2712 Handle it.
2713 * valprint.c (scalar_type_p): Rename to ...
2714 (val_print_scalar_type_p): ... this. Make extern.
2715 (val_print, value_check_printable): Adjust.
2716 * valprint.h (val_print_scalar_type_p): Declare.
2717 * value.c (value_entirely_unavailable): New function.
2718 * value.h (value_entirely_unavailable): Declare.
2719
2720 * NEWS: Mention the new option "--skip-unavailable" to MI
2721 commands '-stack-list-locals', '-stack-list-arguments' and
2722 '-stack-list-variables'.
2723
242f1fd7
YQ
27242013-08-27 Yao Qi <yao@codesourcery.com>
2725
2726 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2727 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2728 options.
2729 * mi/mi-getopt.c (mi_getopt): Remove.
2730 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2731 'error_on_unknown'.
2732 (mi_getopt): Call mi_getopt_1.
2733 (mi_getopt_silent): New.
2734 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2735
260b681b
DE
27362013-08-26 Doug Evans <dje@google.com>
2737
779bd270
DE
2738 PR symtab/15885
2739 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2740 .gdb_index is in use.
2741 * symfile.c (reread_symbols): Reset objfile->sf.
2742
52e260a3
DE
2743 * NEWS: Document "mt print objfiles" now takes optional regexp.
2744 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2745 regexp of objfiles to print.
2746 (_initialize_symmisc): Update doc string for "mt print objfiles".
2747
260b681b
DE
2748 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2749 missing debug info checks.
2750
a85c52f2
UW
27512013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2752 Ulrich Weigand <uweigand@de.ibm.com>
2753
2754 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2755 line tables generated by XLC compiled binaries.
2756
4f00dda3
DE
27572013-08-23 Doug Evans <dje@google.com>
2758
db68bbae
DE
2759 * symmisc.c (dump_symtab): Delete prototype.
2760 (dump_msymbols, dump_objfile): Ditto.
2761 (maintenance_info_symtabs): Mark as dont_repeat.
2762 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2763
4f00dda3
DE
2764 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2765 debugging printf to better location.
2766
23d577b0
PA
27672013-08-23 Pedro Alves <palves@redhat.com>
2768
2769 * target.c (target_read_live_memory): Change type of 'ret' local
2770 to LONGEST.
2771
00d84524
PA
27722013-08-23 Pedro Alves <palves@redhat.com>
2773
2774 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2775 (remote_read_bytes): Change return type to LONGEST, and adjust to
2776 return a target_xfer_error on error.
2777 (remote_xfer_memory): Delete.
2778 (remote_flash_write): Change type of 'ret' local to LONGEST.
2779 (remote_xfer_partial, remote_xfer_partial): Adjust.
2780 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2781
1ed3ee94
PM
27822013-08-23 Pierre Muller <muller@sourceware.org>
2783
2784 ARI fix: Push # directives to start of line.
2785 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2786
9eaabc75
MW
27872013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2788
2789 PR gdb/15501
2790 * breakpoint.c (enable_command, disable_command): Iterate over
2791 all specified breakpoint locations.
2792
101158d9
LM
27932013-08-22 Luis Machado <lgustavo@codesourcery.com>
2794
2795 * common/linux-ptrace.c (linux_fork_to_function): Push #
2796 directives to the start of the line.
2797 (linux_check_ptrace_features): Fix warning message to use
2798 the "_" markup.
2799
96d7229d
LM
28002013-08-22 Luis Machado <lgustavo@codesourcery.com>
2801
2802 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2803 nat/linux-waitpid.h.
2804 (linux-waitpid.o): New object file rule.
2805 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2806 (current_ptrace_options): Moved from linux-nat.c.
2807 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2808 parameters.
2809 (linux_fork_to_function): New function.
2810 (linux_grandchild_function): Likewise.
2811 (linux_child_function): Likewise.
2812 (linux_check_ptrace_features): New function, heavily
2813 based on linux-nat.c:linux_test_for_tracefork.
2814 (linux_enable_event_reporting): New function.
2815 (ptrace_supports_feature): Likewise.
2816 (linux_supports_tracefork): Likewise.
2817 (linux_supports_traceclone): Likewise.
2818 (linux_supports_tracevforkdone): Likewise.
2819 (linux_supports_tracesysgood): Likewise.
2820 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2821 gdbserver/linux-low.c.
2822 (linux_enable_event_reporting): New declaration.
2823 (linux_supports_tracefork): Likewise.
2824 (linux_supports_traceclone): Likewise.
2825 (linux_supports_tracevforkdone): Likewise.
2826 (linux_supports_tracesysgood): Likewise.
2827 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2828 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2829 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2830 * config/arm/linux.mh (NATDEPFILES): Likewise.
2831 * config/i386/linux.mh (NATDEPFILES): Likewise.
2832 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2833 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2834 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2835 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2836 * config/mips/linux.mh (NATDEPFILES): Likewise.
2837 * config/pa/linux.mh (NATDEPFILES): Likewise..
2838 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2839 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2840 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2841 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2842 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2843 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2844 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2845 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2846 ptrace's 4th argument's types.
2847 Check the type of PTRACE_TYPE_ARG4.
2848 * configure: Regenerate.
2849 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2850 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2851 (linux_supports_tracefork_flag): Remove.
2852 (linux_supports_tracesysgood_flag): Likewise.
2853 (linux_supports_tracevforkdone_flag): Likewise.
2854 (current_ptrace_options): Moved to
2855 common/linux-ptrace.c.
2856 (linux_tracefork_child): Remove.
2857 (my_waitpid): Remove.
2858 (linux_test_for_tracefork): Renamed to
2859 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2860 (linux_test_for_tracesysgood): Remove.
2861 (linux_supports_tracesysgood): Remove.
2862 (linux_supports_tracefork): Remove.
2863 (linux_supports_tracevforkdone): Remove.
2864 (linux_enable_tracesysgood): Remove.
2865 (linux_enable_event_reporting): Remove.
2866 (linux_init_ptrace): New function.
2867 (linux_child_post_attach): Call linux_init_ptrace.
2868 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2869 (linux_child_follow_fork): Call linux_supports_tracefork
2870 and linux_supports_tracevforkdone.
2871 (linux_child_insert_fork_catchpoint): Call
2872 linux_supports_tracefork.
2873 (linux_child_insert_vfork_catchpoint): Likewise.
2874 (linux_child_set_syscall_catchpoint): Call
2875 linux_supports_tracesysgood.
2876 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2877 * nat/linux-nat.h: New file.
2878 * nat/linux-waitpid.c: New file.
2879 * nat/linux-waitpid.h: New file.
2880
9f948660
SDJ
28812013-08-22 Samuel Bronson <naesten@gmail.com>
2882
2883 ARM Linux support for `catch syscall'.
2884 * syscalls/arm-linux.py: New file.
2885 * syscalls/arm-linux.xml: Likewise.
2886 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2887 (arm_linux_init_abi): Register the new function and syscall xml file.
2888 * data-directory/Makefile.in: Install the new syscall xml file.
2889 * NEWS: Brag about this.
2890
6be7b56e
PA
28912013-08-22 Pedro Alves <palves@redhat.com>
2892
2893 PR gdb/15871
2894 * corefile.c (target_xfer_memory_error): New function.
2895 (memory_error): Defer EIO to target_memory_error.
2896 (read_memory): Use target_xfer_partial, and handle finer-grained
2897 target xfer errors.
2898 * target.c (target_xfer_error_to_string): New function.
2899 (memory_xfer_partial_1): If memory is known to be
2900 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2901 (target_xfer_partial): Make extern.
2902 * target.h (enum target_xfer_error): New enum.
2903 (target_xfer_error_to_string): Declare function.
2904 (target_xfer_partial): Declare function.
2905 (struct target_ops) <xfer_partial>: Adjust describing comment.
2906
bcbec14e
AM
29072013-08-22 Alan Modra <amodra@gmail.com>
2908
2909 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2910 * configure.tgt: Likewise as targets.
2911
fc474241
DE
29122013-08-20 Doug Evans <dje@google.com>
2913
2914 * buildsym.c (subfile_stack): Move here from buildsym.h.
2915 (pending_macros): Ditto.
2916 (get_macro_table): New function.
2917 (buildsym_init): Initialize subfile_stack.
2918 * coffread.c (type_vector,type_vector_length): Moved here from
2919 buildsym.h.
2920 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2921 (coff_symtab_read): Use it.
2922 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2923 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2924 with call to get_macro_table.
2925 * stabsread.c (type_vector,type_vector_length): Moved here from
2926 buildsym.h.
2927 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2928 * buildsym.h (get_macro_table): Declare.
2929
bec71544
TT
29302013-08-20 Tom Tromey <tromey@redhat.com>
2931
2932 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2933 Update.
2934 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2935
0002ad5f
DE
29362013-08-20 Doug Evans <dje@google.com>
2937
2938 * blockframe.c: Remove #include "psymtab.h".
2939 * cp-support.c: Ditto.
2940 * source.c: Ditto.
2941 * stack.c: Ditto.
2942
df302446
TT
29432013-08-20 Tom Tromey <tromey@redhat.com>
2944
2945 PR python/15816:
2946 * exceptions.h (return_mask): Now an enum.
2947 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2948 enum constants.
2949
df6d5441
TT
29502013-08-20 Tom Tromey <tromey@redhat.com>
2951
2952 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2953 get_objfile_arch.
2954 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2955 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2956 * jit.c (jit_object_close_impl): Update.
2957 * jv-lang.c (get_dynamics_objfile): Update.
2958 * linespec.c (add_minsym): Use get_dynamics_objfile.
2959 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2960 (allocate_objfile): Don't initialize 'gdbarch' field.
2961 (get_objfile_arch): Update.
2962 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2963 moved from...
2964 (struct objfile) <gdbarch>: ... here. Remove.
2965 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2966 get_objfile_arch.
2967 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2968
f5aee5ee
AM
29692013-08-20 Alan Modra <amodra@gmail.com>
2970
2971 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2972 for IBM long double nan and inf.
2973 (floatformat_is_negative, floatformat_classify,
2974 floatformat_mantissa): Similarly.
2975 (floatformat_ieee_single, floatformat_ieee_double,
2976 floatformat_ieee_quad, floatformat_arm_ext,
2977 floatformat_ia64_spill): Delete unused vars.
2978 (_initialize_doublest): Delete unused function.
2979 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2980 little-endian variants of floatformat_ibm_long_double.
2981
33b60d58 29822013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2983
33b60d58
LM
2984 * Makefile.in (SFILES): Remove common/target-common.c and
2985 add target/waitstatus.c.
2986 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2987 target/resume.h, target/wait.h and target/waitstatus.h.
2988 (COMMON_OBS): Remove target-common.o and add
2989 waitstatus.o.
2990 (target-common.o): Remove.
2991 (waitstatus.o): New target object file.
2992 * common/target-common.c: Move contents to
2993 target/waitstatus.c and remove.
2994 * common/target-common.h: Move contents to other files and
2995 remove.
2996 (enum resume_kind: Move to target/resume.h.
2997 (TARGET_WNOHANG): Move to target/wait.h.
2998 (enum target_waitkind): Move to target/waitstatus.h.
2999 (struct target_waitstatus): Likewise.
3000 * target.h: Do not include target-common.h and
3001 include target/resume.h, target/wait.h and
3002 target/waitstatus.h.
3003 * target/resume.h: New file.
3004 * target/wait.h: New file.
3005 * target/waitstatus.h: New file.
3006 * target/waitstatus.c: New file.
3007
12696c10
PA
30082013-08-19 Pedro Alves <palves@redhat.com>
3009
3010 * linux-nat.c (linux_test_for_tracefork)
3011 (linux_test_for_tracesysgood, linux_child_follow_fork)
3012 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3013 (linux_nat_wait_1): Extend comment.
3014 (linux_async_pipe): Add comment.
3015
ba89f962
KB
30162013-08-15 Kevin Buettner <kevinb@redhat.com>
3017
3018 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3019 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3020 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3021 Update to account for fact that PC is now a pseudo-register.
3022 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3023 cases for RL78_PC_REGNUM.
3024
35ab155d
MB
30252013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3026
3027 PR cli/15841
3028 * top.c (quit_force): Skip writing history file
3029 if input is not from terminal.
3030
0d031856
TT
30312013-08-14 Tom Tromey <tromey@redhat.com>
3032
3033 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3034 resultthreadlist>: New fields.
3035 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3036 (remote_get_threadlist, remote_threadlist_iterator): Use
3037 new fields. Remove static variables.
3038
ee154bee
TT
30392013-08-14 Tom Tromey <tromey@redhat.com>
3040
3041 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3042 remote_watch_data_address>: New fields.
3043 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3044 (process_stop_reply, remote_wait_as)
3045 (remote_check_watch_resources, remote_stopped_data_address): Update.
3046
88b496c3
TT
30472013-08-14 Tom Tromey <tromey@redhat.com>
3048
3049 * remote.c (struct remote_state) <async_client_callback,
3050 async_client_context>: New fields.
3051 (async_client_callback, async_client_context): Remove.
3052 (remote_async_serial_handler, remote_async): Update.
3053
2f65bcb7
TT
30542013-08-14 Tom Tromey <tromey@redhat.com>
3055
3056 * remote.c (sizeof_pkt): Remove.
3057 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3058
b80fafe3
TT
30592013-08-14 Tom Tromey <tromey@redhat.com>
3060
3061 * remote.c (struct remote_state) <use_threadinfo_query,
3062 use_threadextra_query>: New fields.
3063 (remote_threads_info, remote_threads_extra_info)
3064 (remote_open_1): Update.
3065
8e88304f
TT
30662013-08-14 Tom Tromey <tromey@redhat.com>
3067
3068 * remote.c (struct remote_state) <finished_object,
3069 finished_annex, finished_offset>: New fields.
3070 (remote_read_qxfer): Use remote_state fields; remove static
3071 variables.
3072
280ceea3
TT
30732013-08-14 Tom Tromey <tromey@redhat.com>
3074
3075 * remote.c (struct remote_state) <last_sent_step>:
3076 New field.
3077 (last_sent_step): Remove.
3078 (remote_resume, remote_wait_as): Update.
3079
b73be471
TT
30802013-08-14 Tom Tromey <tromey@redhat.com>
3081
3082 * remote.c (struct remote_state) <last_sent_signal>:
3083 New field.
3084 (last_sent_signal): Remove.
3085 (new_remote_state, remote_resume, remote_wait_as): Update.
3086
5e4a05c4
TT
30872013-08-14 Tom Tromey <tromey@redhat.com>
3088
3089 * remote.c (struct remote_state) <last_program_signals_packet>:
3090 New field.
3091 (last_program_signals_packet): Remove.
3092 (remote_program_signals, remote_open_1): Update.
3093
747dc59d
TT
30942013-08-14 Tom Tromey <tromey@redhat.com>
3095
3096 * remote.c (struct remote_state) <last_pass_packet>:
3097 New field.
3098 (last_pass_packet): Remove.
3099 (remote_pass_signals, remote_open_1): Update.
3100
262e1174
TT
31012013-08-14 Tom Tromey <tromey@redhat.com>
3102
3103 * remote.c (struct remote_state) <remote_traceframe_number>:
3104 New field.
3105 (remote_traceframe_number): Remove.
3106 (new_remote_state, remote_open_1, set_remote_traceframe)
3107 (remote_trace_find): Update.
3108
47f8a51d
TT
31092013-08-14 Tom Tromey <tromey@redhat.com>
3110
3111 * remote.c (struct remote_state) <general_thread, continue_thread>:
3112 New fields.
3113 (general_thread, continue_thread): Remove.
3114 (record_currthread, set_thread, set_general_process)
3115 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3116 (extended_remote_mourn_1): Update.
3117
5d93a237
TT
31182013-08-14 Tom Tromey <tromey@redhat.com>
3119
3120 * remote.c (struct remote_state) <remote_desc>: New field.
3121 (remote_desc): Remove.
3122 (remote_threads_info, remote_threads_extra_info, remote_close)
3123 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3124 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3125 (remote_hostio_send_command, remote_file_put, remote_file_get)
3126 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3127 (remote_async, remote_new_objfile, set_range_stepping): Update.
3128
cf792862
TT
31292013-08-14 Tom Tromey <tromey@redhat.com>
3130
3131 * remote.c (remote_state): Now a pointer.
3132 (get_remote_state_raw): Update.
3133 (new_remote_state): New function.
3134 (_initialize_remote): Use new_remote_state.
3135
dc473cfb
TT
31362013-08-14 Tom Tromey <tromey@redhat.com>
3137
3138 * remote.c (remote_protocol_features): Now const.
3139
85ec6ce7
TT
31402013-08-14 Tom Tromey <tromey@redhat.com>
3141
3142 * remote.c (crc32_table, crc32): Remove.
3143 (remote_verify_memory): Use xcrc32.
3144
73033f12
SDJ
31452013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3146
3147 * value.h (create_internalvar_type_lazy): Adjust prototype
3148 declaration.
3149
5c30d39a
AB
31502013-08-13 Andrew Burgess <aburgess@broadcom.com>
3151
3152 * common/format.c (parse_format_string): Don't allow '#' flag for
3153 pointer arguments in format string.
3154
1a66331e
PM
31552013-08-13 Pierre Muller <muller@sourceware.org>
3156
fde605f3 3157 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3158 if rl_get_screen_size did not return useful values.
3159
b4013987
AA
31602013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3161
3162 PR breakpoints/15117
3163 * linespec.c (linespec_parse_basic): Check for convenience
3164 variable or history value while parsing.
3165
959b6a66
SDJ
31662013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3167
3168 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3169 AVR.
3170 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3171 different signals between the generic Linux kernel implementation
3172 and AVR's.
3173 (avr_linux_gdb_signal_from_target): Delete.
3174 (avr_linux_gdb_signal_to_target): Delete.
3175 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3176
24a55014
DE
31772013-08-09 Doug Evans <dje@google.com>
3178
3179 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3180 entries.
3181
eb14d406
SDJ
31822013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3183
3184 * linux-tdep.c: Define enum with generic signal numbers.
3185 (linux_gdb_signal_from_target): New function.
3186 (linux_gdb_signal_to_target): Likewise.
3187 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3188 methods to the functions above.
3189 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3190 (linux_gdb_signal_to_target): Likewise.
3191 * alpha-linux-tdep.c: Define new enum with signals different
3192 from generic Linux kernel.
3193 (alpha_linux_gdb_signal_from_target): New function.
3194 (alpha_linux_gdb_signal_to_target): Likewise.
3195 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3196 with the functions mentioned above.
3197 * avr-tdep.c: Define enum with differences between Linux kernel
3198 and AVR signals.
3199 (avr_linux_gdb_signal_from_target): New function.
3200 (avr_linux_gdb_signal_to_target): Likewise.
3201 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3202 the functions mentioned above.
3203 * sparc-linux-tdep.c: Define enum with differences between SPARC
3204 and generic Linux kernel signal numbers.
3205 (sparc32_linux_gdb_signal_from_target): New function.
3206 (sparc32_linux_gdb_signal_to_target): Likewise.
3207 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3208 to the functions defined above.
3209 * xtensa-linux-tdep.c: Define enum with differences between
3210 Xtensa and Linux kernel generic signals.
3211 (xtensa_linux_gdb_signal_from_target): New function.
3212 (xtensa_linux_gdb_signal_to_target): Likewise.
3213 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3214 to the functions defined above.
3215 * mips-linux-tdep.c: Define enum with differences between
3216 signals in MIPS and Linux kernel generic ones.
3217 (mips_gdb_signal_to_target): New function.
3218 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3219 only different signals from the Linux kernel generic.
3220 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3221 the functions defined above.
3222 * mips-linux-tdep.h (enum mips_signals): Remove.
3223
156d08c8
PA
32242013-08-09 Pedro Alves <palves@redhat.com>
3225
3226 * avr-tdep.c (XMALLOC): Delete macro.
3227 * cli/cli-dump.c (XMALLOC): Delete macro.
3228
db229724
PA
32292013-08-09 Pedro Alves <palves@redhat.com>
3230
3231 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3232 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3233 (fopen_with_cleanup, add_dump_command): Make static.
3234 * cli/cli-dump.h: Delete file.
3235 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3236 cli/cli-dump.h.
3237
3f12a589
PA
32382013-08-09 Pedro Alves <palves@redhat.com>
3239
3240 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3241 error message.
3242
c718be47
PA
32432013-08-09 Pedro Alves <palves@redhat.com>
3244
156d08c8 3245 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
3246 error message.
3247
1e351ed1
PA
32482013-08-09 Pedro Alves <palves@redhat.com>
3249
3250 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3251 (gcore_command): Use tilde_expand here, and when showing the
3252 filename to the user, show the expanded version.
3253
1ed8d800
YQ
32542013-08-09 Yao Qi <yao@codesourcery.com>
3255
3256 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3257 'entryval' is set.
3258
47ecca85
PA
32592013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3260
3261 * gcore.c (create_gcore_bfd): Use tilde_expand.
3262
82a0a75f
YQ
32632013-08-08 Yao Qi <yao@codesourcery.com>
3264
3265 * frame.h (read_frame_local): Declare.
3266 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3267 read_frame_local.
3268 * stack.c (read_frame_local): New.
3269
5c4aa40b
YQ
32702013-08-08 Yao Qi <yao@codesourcery.com>
3271
3272 * mi/mi-cmd-stack.c: Update comments to function
3273 list_args_or_locals.
3274
b93601f3
TT
32752013-08-07 Tom Tromey <tromey@redhat.com>
3276
3277 PR symtab/15028:
3278 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3279 (process_psymtab_comp_unit_reader): Use it.
3280 (process_psymtab_comp_unit): Update. Add "pretend_language"
3281 argument.
3282 (dwarf2_build_psymtabs_hard): Update.
3283 (scan_partial_symbols): Pass CU's language to
3284 process_psymtab_comp_unit.
3285
fa760f46
TT
32862013-08-07 Tom Tromey <tromey@redhat.com>
3287
3288 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3289 (dwarf2_gdb_index_functions): Update.
3290 * psymtab.c (find_symbol_file_from_partial): Remove.
3291 (psym_functions): Update.
3292 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3293 Remove.
3294
bf6d8a91
TT
32952013-08-07 Tom Tromey <tromey@redhat.com>
3296
3297 * symfile.c (set_initial_language): Look up "main" symbol
3298 and use its language.
3299 * symtab.c (find_main_filename): Remove.
3300 * symtab.h (find_main_filename): Remove.
3301
f9125b6c
TT
33022013-08-07 Tom Tromey <tromey@redhat.com>
3303
3304 * dwarf2read.c (recursively_compute_inclusions): Add
3305 "immediate_parent" argument. Set symtab's "user" field
3306 if not set.
3307 (compute_symtab_includes): Update.
3308
fdbb204b
TT
33092013-08-07 Tom Tromey <tromey@redhat.com>
3310
3311 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3312 when adding label symbols.
3313
49de1690
UW
33142013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3315 Ulrich Weigand <uweigand@de.ibm.com>
3316
3317 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3318 * configure.host (powerpc64-*-aix*): Likewise.
3319
b08ee99f
UW
33202013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3321 Ulrich Weigand <uweigand@de.ibm.com>
3322
3323 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3324 is defined.
3325 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3326 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3327 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3328 * configure.ac: Check for ptrace64.
3329 * configure, config.in: Regenerate.
3330
fecf803e
UW
33312013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3332 Ulrich Weigand <uweigand@de.ibm.com>
3333
3334 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3335 Call ptrace64 instead of ptrace if defined.
3336 Add macro addr_ptr to take care of ptrace address argument.
3337 (pdc_read_regs): Likewise.
3338 (pdc_write_regs): Likewise.
3339 (aix_thread_resume): Likewise.
3340 (fetch_regs_kernel_thread): Likewise.
3341 (store_regs_kernel_thread): Likewise.
3342
3bb5e4a8
AB
33432013-08-07 Anton Blanchard <anton@samba.org>
3344
3345 * MAINTAINERS: Add myself to Write After Approval.
3346
12070676
TT
33472013-08-05 Tom Tromey <tromey@redhat.com>
3348
3349 * aix-thread.c (_initialize_aix_thread): Use
3350 complete_target_initialization.
3351 * bsd-uthread.c (_initialize_bsd_uthread): Use
3352 complete_target_initialization.
3353 * dec-thread.c (_initialize_dec_thread): Use
3354 complete_target_initialization.
3355 * ravenscar-thread.c (_initialize_ravenscar): Use
3356 complete_target_initialization.
3357 * sol-thread.c (_initialize_sol_thread): Use
3358 complete_target_initialization.
3359 * spu-multiarch.c (_initialize_spu_multiarch): Use
3360 complete_target_initialization.
3361
7c7b6655
TT
33622013-08-05 Tom Tromey <tromey@redhat.com>
3363
3364 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3365 * ada-lang.c (ada_lookup_simple_minsym): Return
3366 bound_minimal_symbol.
3367 * ada-lang.h (ada_lookup_simple_minsym): Update.
3368 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3369 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3370 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3371 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3372 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3373 * minsyms.c (msymbol_objfile): Remove.
3374 (lookup_minimal_symbol_internal): New function, from
3375 lookup_minimal_symbol.
3376 (lookup_minimal_symbol): Rewrite using
3377 lookup_minimal_symbol_internal.
3378 (lookup_bound_minimal_symbol): New function.
3379 * minsyms.h (msymbol_objfile): Remove.
3380 (lookup_bound_minimal_symbol): Declare.
3381 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3382 * parse.c (write_exp_msymbol): Change parameter to a
3383 bound_minimal_symbol.
3384 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3385 * parser-defs.h (write_exp_msymbol): Update.
3386 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3387 * symfile.c (simple_read_overlay_table): Use
3388 lookup_bound_minimal_symbol.
3389 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3390 (search_symbols): Likewise.
3391 (print_msymbol_info): Take a bound_minimal_symbol argument.
3392 (symtab_symbol_info, rbreak_command): Update.
3393 * symtab.h (struct symbol_search) <msymbol>: Change type
3394 to bound_minimal_symbol.
3395 * valops.c (find_function_in_inferior): Use
3396 lookup_bound_minimal_symbol.
3397 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3398
934b9bac
JK
33992013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3400
3401 Code cleanup.
3402 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3403 to ...
3404 (async_cleanup_sigint_signal_handler): ... this.
3405 (initialize_sigint_signal_handler): Remove declaration.
3406 (handle_remote_sigint): Rename the declaration to ...
3407 (async_handle_remote_sigint): ... this.
3408 (handle_remote_sigint_twice): Rename the declaration to ...
3409 (async_handle_remote_sigint_twice): ... this.
3410 (async_remote_interrupt, async_remote_interrupt_twice)
3411 (remote_interrupt): Remove the declarations.
3412 (remote_interrupt_twice): Rename the declaration ...
3413 (sync_remote_interrupt_twice): ... this.
3414 (sigint_remote_twice_token): Rename the variable to ...
3415 (async_sigint_remote_twice_token): ... this.
3416 (sigint_remote_token): Rename the variable to ...
3417 (async_sigint_remote_token): ... this.
3418 (initialize_sigint_signal_handler): Rename the function to ...
3419 (async_initialize_sigint_signal_handler): ... this. Update the name
3420 inside.
3421 (handle_remote_sigint): Rename the function to ...
3422 (async_handle_remote_sigint): ... this. Update the names inside.
3423 (handle_remote_sigint_twice): Rename the function to ...
3424 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3425 (cleanup_sigint_signal_handler): Rename the function to ...
3426 (async_cleanup_sigint_signal_handler): ... this.
3427 (remote_interrupt): Rename the function to ...
3428 (sync_remote_interrupt): this. Update the names inside.
3429 (remote_interrupt_twice): Rename the function to ...
3430 (sync_remote_interrupt_twice): this. Update the names inside.
3431 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3432 (_initialize_remote): Update the names inside.
3433
3a1115a0
TT
34342013-08-02 Tom Tromey <tromey@redhat.com>
3435
3436 PR symtab/15719:
3437 * breakpoint.c (update_watchpoint, watchpoint_check)
3438 (watch_command_1): Update.
3439 * eval.c (fetch_subexp_value): Add "preserve_errors"
3440 parameter.
3441 * ppc-linux-nat.c (check_condition): Update.
3442 * value.h (fetch_subexp_value): Update.
3443
58b19776
AB
34442013-08-02 Andrew Burgess <aburgess@broadcom.com>
3445
3446 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3447 add_file_handler.
3448
ec94af83
DE
34492013-08-01 Doug Evans <dje@google.com>
3450
7ee85ab1
DE
3451 PR symtab/15691
3452 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3453 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3454 Add assert of sig_entry->dwo_unit == NULL.
3455 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3456 had already been read.
3457 (read_signatured_type): Set per_cu.tu_read.
3458
b846d303
DE
3459 PR symtab/15695
3460 * valops.c (value_struct_elt): Add missing call to check_typedef.
3461 (value_find_oload_method_list): Ditto.
3462
b52109bc
DE
3463 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3464 effectively, struct symbol_search **.
3465 (make_cleanup_free_search_symbols): Change arg to struct
3466 symbol_search **. All callers updated.
3467 (compare_search_syms): Compare symtab file name and block as well.
3468 (search_symbols_equal): New function.
3469 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3470 New args new_head, new_tail. Result is now void. Remove dups after
3471 sorting the symbols.
3472 (search_symbols): Sort all found symbols once, after all have been
3473 found, and remove duplicates. Simplify cleanup tracking of result.
3474 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3475
ec94af83
DE
3476 Further workarounds for binutils/15021.
3477 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3478 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3479 Watch for duplicate symtabs coming from type units.
3480 (compute_symtab_includes): Update call to
3481 recursively_compute_inclusions. Build vector of included symtabs
3482 instead of per_cus.
3483 * symtab.h (symtab_ptr): New typedef.
3484 (DEF_VEC_P (symtab_ptr)): New VEC type.
3485 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3486 instead.
3487
b2ae85cf
AB
34882013-08-01 Andrew Burgess <aburgess@broadcom.com>
3489
3490 * cli/cli-script.c (script_from_file): Remove use of
3491 error_pre_print.
3492 * main.c (captured_main): Remove use of error_pre_print and
3493 quit_pre_print.
3494 * utils.c (error_pre_print, quit_pre_print): Remove.
3495 * utils.h (error_pre_print, quit_pre_print): Likewise.
3496
645eab03
YQ
34972013-08-01 Yao Qi <yao@codesourcery.com>
3498
3499 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3500 with mi_getopt.
3501 (mi_cmd_stack_list_variables): Likewise.
3502
16f92dd4
AB
35032013-07-31 Andrew Burgess <aburgess@broadcom.com>
3504
3505 * exceptions.c (deprecated_throw_reason): Remove.
3506 * exceptions.h (deprecated_throw_reason): Remove.
3507
13f78033
AB
35082013-07-31 Andrew Burgess <aburgess@broadcom.com>
3509
3510 * remote-mips.c (mips_error): Replace use of
3511 deprecated_throw_reason with throw_verror. Use the error message
3512 passed to mips_error as the error message for throw_verror.
3513
039e3c22
AB
35142013-07-31 Andrew Burgess <aburgess@broadcom.com>
3515
3516 * monitor.c (monitor_interrupt_query): Replace use of
3517 deprecated_throw_reason with quit.
3518 * nto-procfs.c (interrupt_query): Likewise.
3519 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3520 * remote-mips.c (mips_kill): Likewise.
3521 * remote.c (interrupt_query): Likewise.
3522
8150913b
AB
35232013-07-31 Andrew Burgess <aburgess@broadcom.com>
3524
3525 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3526 with call to fatal.
3527
de74e63a
YQ
35282013-07-31 Pedro Alves <pedro@codesourcery.com>
3529 Yao Qi <yao@codesourcery.com>
3530
3531 * tracepoint.c (trace_dump_command): Select the current frame.
3532
247f5c4f
DE
35332013-07-30 Doug Evans <dje@google.com>
3534
3535 * dwarf2read.c (process_queue): Add type signature to debug output.
3536
11b4b7cc
AB
35372013-07-30 Andrew Burgess <aburgess@broadcom.com>
3538
3539 * value.c (value_fetch_lazy): Mark optimized out values as such
3540 rather than raising an error.
3541
b0c54aa5
AB
35422013-07-30 Andrew Burgess <aburgess@broadcom.com>
3543
3544 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3545 before checking which bits of the parent, not the child, value are
3546 valid.
3547
97c85fc6
MB
35482013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3549
3550 PR gdb/15715
3551 * top.c: Include "filenames.h".
3552 (set_history_filename): New function.
3553 (init_main): Install it as set hook of the "set history filename"
3554 command.
3555
ff39bb5e
SA
35562013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3557
3558 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3559 attribute parameter.
3560 (dwarf2_const_value_data): Constify struct attribute parameter.
3561 (dwarf2_const_value): Constify struct attribute parameter.
3562 (dwarf2_const_value_attr): Constify struct attribute parameter.
3563 (lookup_die_type): Constify struct attribute parameter.
3564 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3565 (follow_die_ref_or_sig): Constify struct attribute parameter.
3566 (follow_die_ref): Constify struct attribute parameter.
3567 (follow_die_sig): Constify struct attribute parameter.
3568 (get_DW_AT_signature_type): Constify struct attribute parameter.
3569 (get_type_unit_group): Constify struct attribute parameter.
3570 (fill_in_loclist_baton): Constify struct attribute parameter.
3571 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3572 (type_unit_group): Constify struct attribute parameter.
3573
6e5a29e1
SA
35742013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3575
3576 * dwarf2read.c (attr_form_is_block): Make argument const.
3577 (attr_form_is_section_offset): Make argument const.
3578 (attr_form_is_constant): Make argument const.
3579 (attr_form_is_ref): Make argument const.
3580
7771576e
SA
35812013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3582
3583 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3584 All uses updated.
3585 (attr_form_is_ref): Moved below attr_form_is_constant.
3586
a94e8645
DE
35872013-07-29 Doug Evans <dje@google.com>
3588
bb5291d0
DE
3589 * main.c (captured_command_loop): Tweak comment.
3590
b5419e49
DE
3591 * target.c (target_async_permitted_1): Fix comment.
3592
b2d23133
DE
3593 * symtab.c (iterate_over_some_symtabs): Add comment.
3594
a94e8645
DE
3595 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3596
7a60ad40
YQ
35972013-07-27 Yao Qi <yao@codesourcery.com>
3598
3599 * NEWS: Mention that GDBserver now supports hardware
3600 watchpoints on the MIPS GNU/Linux target.
3601
aaee2056
YQ
36022013-07-27 Yao Qi <yao@codesourcery.com>
3603
3604 * Makefile.in (HFILES_NO_SRCDIR): Add
3605 common/mips-linux-watch.h.
3606 (mips-linux-watch.o): New rule.
3607 * common/mips-linux-watch.c: New.
3608 * common/mips-linux-watch.h: New.
3609 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3610 * mips-linux-nat.c: Include mips-linux-watch.h.
3611 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3612 to common/mips-linux-watch.h.
3613 (MAX_DEBUG_REGISTER): Likewise.
3614 (enum pt_watch_style): Likewise.
3615 (struct mips32_watch_regs): Likewise.
3616 (struct mips64_watch_regs): Likewise.
3617 (struct pt_watch_regs): Likewise.
3618 (struct mips_watchpoint): Likewise.
3619 (mips_linux_watch_get_irw_mask): Move to
3620 common/mips-linux-watch.c.
3621 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3622 (mips_linux_watch_get_watchlo): Likewise.
3623 (mips_linux_watch_set_watchlo): Likewise.
3624 (mips_linux_watch_get_watchhi): Likewise.
3625 (mips_linux_watch_set_watchhi): Likewise.
3626 (mips_linux_read_watch_registers): Likewise.
3627 (mips_linux_watch_type_to_irw): Likewise.
3628 (mips_linux_stopped_data_address, fill_mask): Likewise.
3629 (mips_linux_watch_try_one_watch): Likewise.
3630 (mips_linux_watch_populate_regs): Likewise.
3631
b3436450
YQ
36322013-07-27 Yao Qi <yao@codesourcery.com>
3633
3634 * mips-linux-nat.c (get_irw_mask): Rename to ...
3635 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3636 'set' to 'n'. Update function comment. All callers changed.
3637 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3638 function comment. All callers changed.
3639 (get_num_valid): Rename to ...
3640 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3641 'set' to 'n'. Update function comment. All callers changed.
3642 (get_watchlo): Rename to ...
3643 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3644 'set' to 'n'. Update function comment. All callers changed.
3645 (set_watchlo): Rename to ...
3646 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3647 'set' to 'n'. Update function comment. All callers changed.
3648 (get_watchhi): Rename to ...
3649 (mips_linux_watch_get_watchhi): ... this. Update function
3650 comment. All callers changed.
3651 (set_watchhi): Rename to ...
3652 (mips_linux_watch_set_watchhi): ... this. Update function
3653 comment. All callers changed.
3654 (mips_linux_read_watch_registers): Update function comment.
3655 Add new parameters 'lwpid', 'watch_readback', and
3656 'watch_readback_valid'. Update.
3657 (type_to_irw): Rename to ...
3658 (mips_linux_watch_type_to_irw): ... this. Update function
3659 comment. All callers changed.
3660 (fill_mask): Update function comment.
3661 (try_one_watch): Rename to ...
3662 (mips_linux_watch_try_one_watch): ... this. Change the type
3663 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3664 (populate_regs_from_watches): Rename to ...
3665 (mips_linux_watch_populate_regs): ... this. Add parameter
3666 'current_watches'. All callers changed.
3667
9be14b81
YQ
36682013-07-27 Yao Qi <yao@codesourcery.com>
3669
3670 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3671 the code.
3672 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3673 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3674 (struct pt_watch_regs): Likewise.
3675 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3676 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3677 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3678 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3679 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3680
de6f69ad
YQ
36812013-07-27 Yao Qi <yao@codesourcery.com>
3682
3683 * breakpoint.h: Include break-common.h.
3684 (enum target_hw_bp_type): Move to ...
3685 * common/break-common.h: ... here. New.
3686
6f64ef53
PA
36872013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3688
3689 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3690 process group regardless of having tty on stdin.
3691
6107e809
DE
36922013-07-25 Doug Evans <dje@google.com>
3693
3694 * linux-fork.h (detach_fork): Delete.
3695
7fdc1521
TT
36962013-07-25 Tom Tromey <tromey@redhat.com>
3697
3698 PR remote/15256, PR remote/15266:
3699 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3700 * monitor.c (monitor_detach): Use unpush_target.
3701 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3702 * remote-mips.c (mips_detach): Use unpush_target. Don't
3703 call mips_close.
3704 * remote-sim.c (gdbsim_detach): Use unpush_target.
3705 * target.c (pop_target): Remove.
3706 (pop_all_targets_above): Don't call target_close.
3707 (target_close): Assert that the target is unpushed.
3708 * target.h (pop_target): Don't declare.
3709 * tracepoint.c (tfile_open): Use unpush_target.
3710
c22a2b88
TT
37112013-07-25 Tom Tromey <tromey@redhat.com>
3712
3713 * linux-thread-db.c (init_thread_db_ops): Call
3714 complete_target_initialization.
3715 (_initialize_thread_db): Don't call add_target.
3716 * target.c (complete_target_initialization): New function.
3717 (add_target_with_completer): Call it.
3718 * target.h (complete_target_initialization): Declare.
3719
cbb6aada
MK
37202013-07-25 Mark Kettenis <kettenis@gnu.org>
3721
3722 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3723 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3724 (HPPANBSD_SIZEOF_GREGS): New define.
3725 (hppaobsd_supply_gregset): Handle additional registers.
3726 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3727 we provide more registers now.
3728 (hppabsd_supply_gregset): Supply additional registers.
3729 (hppabsd_collect_gregset): Collect additional registers.
3730
17767988
MK
37312013-07-25 Mark Kettenis <kettenis@gnu.org>
3732
3733 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3734 (hppabsd_dwarf2_frame_init_reg): New function.
3735 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3736
fdc8aae8
AB
37372013-07-25 Andrew Burgess <aburgess@broadcom.com>
3738
3739 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3740 'z' format code. Remove error for optimized out values, standard
3741 code will handle these fine.
3742
6fbe845e
AB
37432013-07-25 Andrew Burgess <aburgess@broadcom.com>
3744
3745 * NEWS: Mention new 'z' formatter.
3746 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3747 (_initialize_printcmd): Mention 'z' formatter in help text of the
3748 'x' command.
3749
3373342d
MR
37502013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3751
3752 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3753 formatting.
3754
25f9533e
SDJ
37552013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3756
3757 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3758 interface can evaluate arguments. Fallback to the old mode if it
3759 cannot.
3760 (create_exception_master_breakpoint): Likewise.
3761 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3762 (struct sym_probe_fns elf_probe_fns): Export function above to the
3763 probe interface.
3764 * probe.c (can_evaluate_probe_arguments): New function.
3765 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3766 function pointer.
3767 (can_evaluate_probe_arguments): New function prototype.
3768 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3769 probe interface can evaluate arguments. Fallback to the old mode
3770 if it cannot.
3771 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3772 interface can evaluate arguments. Warning the user if it cannot.
3773 (stap_can_evaluate_probe_arguments): New function.
3774 (struct probe_ops stap_probe_ops): Export function above to the
3775 probe interface.
3776 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3777 New function pointer.
3778
3360c0bf
LM
37792013-07-24 Luis Machado <lgustavo@codesourcery.com>
3780
3781 * Makefile.in (SFILES): Add common/target-common.c.
3782 Add common/target-common.h to headers.
3783 (COMMON_OBS): Add target-common.o.
3784 (target-common.o): New target.
3785 * linux-nat.h (resume_kind): Move to common/target-common.h.
3786 * target.c (target_waitstatus_to_string): Move to
3787 common/target-common.c.
3788 * target.h: Include target-common.h.
3789 (target_waitkind): Move to common/target-common.h.
3790 (target_waitstatus): Likewise.
3791 (TARGET_WNOHANG): Likewise.
3792 * common/target-common.c: New file.
3793 * common/target-common.h: New file.
3794
6656a72d
DE
37952013-07-24 Doug Evans <dje@google.com>
3796
3797 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3798 a warning.
3799
6df81a63
YQ
38002013-07-23 Yao Qi <yao@codesourcery.com>
3801
3802 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3803 parameter 'gdbarch'.
3804 (i386_stack_tramp_frame_sniffer): Caller update.
3805 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3806 parameter 'gdbarch' and 'target'.
3807 (i386_linux_core_read_description): Caller update.
3808 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3809 Likewise.
3810 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3811 declaration.
3812
365156ad
TT
38132013-07-23 Tom Tromey <tromey@redhat.com>
3814
3815 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3816 2013-07-22.
3817
046ac79f
JK
38182013-07-22 Doug Evans <dje@google.com>
3819
3820 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3821 * exec.c (exec_close): Update call to remove_target_sections.
3822 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3823 * solib.c (update_solib_list): Ditto.
3824 (reload_shared_libraries_1): Ditto.
3825 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3826 * target.h (struct target_section): Rename key to owner.
3827 All uses updated.
046ac79f 3828
29b2cc46
TT
38292013-07-22 Tom Tromey <tromey@redhat.com>
3830
3831 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3832
d1160018
TT
38332013-07-22 Tom Tromey <tromey@redhat.com>
3834
3835 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3836 Simplify cleanup handling.
3837
2f324bf6
TT
38382013-07-22 Tom Tromey <tromey@redhat.com>
3839
3840 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3841 on all return paths.
3842
e23b9d6e
UW
38432013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3844
3845 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3846 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3847 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3848
1cf55f60
PM
38492013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3850
3851 * top.c (print_gdb_version): Add help, apropos description and
3852 url to online documentation.
3853
fa876972
HZ
38542013-07-19 Hui Zhu <hui@codesourcery.com>
3855
3856 PR gdb/15692
3857 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3858
1527aea8
YQ
38592013-07-19 Yao Qi <yao@codesourcery.com>
3860
3861 * target.c (update_current_target): Change the default action
3862 of 'to_traceframe_info' from tcomplain to return_zero.
3863 * target.h (struct target_ops) <to_traceframe_info>: Add more
3864 comments.
3865 * valops.c (read_value_memory): Call
3866 traceframe_available_memory unconditionally.
3867
886f230e
YQ
38682013-07-18 Yao Qi <yao@codesourcery.com>
3869
3870 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3871 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3872 symbol without prefix. If found, set its type to
3873 'mst_solib_trampoline'.
3874
16419bae
DE
38752013-07-17 Doug Evans <dje@google.com>
3876
e7045703
DE
3877 * NEWS: Mention "set print raw frame-arguments".
3878 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3879 * stack.c (print_raw_frame_arguments): New static global.
3880 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3881 (_initialize_stack): New command "set/show print raw frame-arguments".
3882 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3883 (set_print_raw, show_print_raw): New functions.
3884 (_initialize_valprint): New prefix command "set/show print raw".
3885 * valprint.h (value_print_options): Improve comments.
3886
453e48a5
DE
3887 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3888 of all *list variables.
3889
16419bae
DE
3890 * gdbcmd.h (togglelist): Delete.
3891 * cli/cli-cmds.c (togglelist): Delete.
3892 (init_cmd_lists): Update.
3893 * cli/cli-cmds.h (togglelist): Delete.
3894
626f2d1c
TT
38952013-07-17 Tom Tromey <tromey@redhat.com>
3896
3897 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3898 dwarf2_per_objfile.
3899
57e6060e
DE
39002013-07-16 Doug Evans <dje@google.com>
3901
3902 * nto-tdep.c (nto_relocate_section_addresses): Update,
3903 target_section.bfd deleted.
3904 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3905 * s390-tdep.c (s390_load): Ditto.
3906 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3907
5ea5559b
AB
39082013-07-16 Andrew Burgess <aburgess@broadcom.com>
3909
3910 * common/format.c (parse_format_string): Add checks for NULL
3911 character before calling strchr.
3912
2b2848e2
DE
39132013-07-16 Doug Evans <dje@google.com>
3914
2c571006
DE
3915 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3916 temp_pathname argument.
3917 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3918 when opening the file fails.
3919
2b2848e2
DE
3920 * target.h (struct target_section): Delete member bfd.
3921 All users updated to use the_bfd_section->owner instead.
3922 * exec.c (add_to_section_table): Assert bfd is expected value.
3923 Remove initialization of target_section.bfd.
3924 (remove_target_sections): Update.
3925 (section_table_available_memory): Update.
3926 (section_table_xfer_memory_partial): Update.
3927 (print_section_info): Update.
3928 (exec_set_section_address): Update.
3929 * record-full.c (record_full_core_xfer_partial): Update.
3930 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3931 * solib-target.c (solib_target_relocate_section_addresses): Update.
3932 * symfile.c (build_section_addr_info_from_section_table): Update.
3933 * target.c (memory_xfer_live_readonly_partial): Update.
3934 (memory_xfer_partial_1): Update.
3935
926bf92d
UW
39362013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3937
3938 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3939 now available for embedded (BookE) and server (BookS) processors,
3940 correct mentions of 'booke' and adjust comments accordingly in order to
3941 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3942 (have_ptrace_booke_interface): Rename function and variable
3943 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3944 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3945 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3946 'hwdebug_point_cmp'. Update all uses.
3947 (booke_find_thread_points_by_tid): Rename function
3948 'booke_find_thread_points_by_tid' to
3949 'hwdebug_find_thread_points_by_tid'. Update all uses.
3950 (booke_insert_point): Rename function 'booke_insert_point' to
3951 'hwdebug_insert_point'. Update all uses.
3952 (booke_remove_point): Rename function 'booke_remove_point' to
3953 'hwdebug_remove_point'. Update all uses.
3954
d929bc19
MR
39552013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3956
3957 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3958 numbers with enum values.
3959
054e8d9e
AA
39602013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3961
3962 PR threads/13217
3963 * thread.c (thread_apply_all_command): Check for valid threads
3964 and thread count.
3965 (thread_array_cleanup): New struct.
3966 (set_thread_refcount): New function.
3967
cf006359
AB
39682013-07-11 Andrew Burgess <aburgess@broadcom.com>
3969
3970 * infcmd.c (default_print_one_register_info): Reuse function
3971 print_hex_chars.
3972
94e36acc
TT
39732013-07-10 Tom Tromey <tromey@redhat.com>
3974
3975 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3976 (ada-exp.o): New target.
3977
915dd369
SDJ
39782013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3979
3980 * mt-tdep.c (mt_registers_info): Call
3981 get_no_prettyformat_print_options instead of
3982 get_raw_print_options (regression by last patch from Doug
3983 Evans).
3984
eca07816
JB
39852013-07-09 Pedro Alves <palves@redhat.com>
3986
3987 Checked in by Joel Brobecker <brobecker@adacore.com>.
3988 * ada-lang.c (coerce_unspec_val_to_type): Use
3989 value_optimized_out_const.
3990 * value.c (value_optimized_out_const): New function.
3991 * value.h (value_optimized_out_const): New declaration.
3992
2a998fc0
DE
39932013-07-09 Doug Evans <dje@google.com>
3994
3995 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3996 Enum values rename as well. All uses updated.
3997 * valprint.h (value_print_options): Rename member pretty to
3998 pretty format. Rename member prettyprint_arrays to
3999 prettyformat_arrays. Rename member prettyprint_structs to
4000 prettyformat_structs. All uses updated.
4001 (get_no_prettyformat_print_options): Renamed from
4002 get_raw_print_options.
4003 * valprint.c (get_no_prettyformat_print_options): Renamed from
4004 get_raw_print_options. All callers updated.
4005 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4006 All callers updated.
4007 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4008 All callers updated.
4009 (_initialize_valprint): Improve help text for "set print pretty" and
4010 "set print arrays".
4011
466c1fca
AB
40122013-07-09 Andrew Burgess <aburgess@broadcom.com>
4013
4014 * value.c (value_bits_valid): Revert previous change, and change
4015 by Pedro on 2013-07-04, due to regressions in
4016 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4017
ad0f0303
AB
40182013-07-08 Andrew Burgess <aburgess@broadcom.com>
4019 Pedro Alves <palves@redhat.com>
4020
4021 * value.c (value_bits_valid): If the value is not lval_computed
4022 or has no check validity handler then the answer is the
4023 optimized_out flag, otherwise defer to the handler.
4024
b187bec1
EZ
40252013-07-06 Eli Zaretskii <eliz@gnu.org>
4026
48d1d6f5
EZ
4027 * top.c (print_gdb_configuration): Explain in output of
4028 --configuration what does "relocatable" mean.
4029
b187bec1
EZ
4030 * main.c (print_gdb_help): Regroup options in the --help text.
4031 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4032 the relevant discussions.
4033
52d361e1
YQ
40342013-07-06 Yao Qi <yao@codesourcery.com>
4035
4036 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4037 Remove parameter 'lsal'.
4038 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4039 to inner block. Caller update.
4040 (base_breakpoint_create_breakpoints_sal): Update.
4041 (bkpt_create_breakpoints_sal): Likewise.
4042 (tracepoint_create_breakpoints_sal): Likewise.
4043 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4044 element 0 of vector 'canonical->sals'.
4045
e1ec1b42
LM
40462013-07-05 Luis Machado <lgustavo@codesourcery.com>
4047
4048 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4049 register number instead of the pseudo register one.
4050 (rs6000_dwarf2_reg_to_regnum): Likewise.
4051
7195e6f0
PA
40522013-07-04 Pedro Alves <palves@redhat.com>
4053
4054 * findvar.c (value_of_register): Use allocate_optimized_out_value
4055 if the register has been optimized out, instead of
4056 set_value_optimized_out.
4057 * frame-unwind.c (frame_unwind_got_optimized): Use
4058 allocate_optimized_out_value.
4059
58722cac
PA
40602013-07-04 Pedro Alves <palves@redhat.com>
4061
4062 * value.c (value_bits_valid): If the value is not lval_computed,
4063 or doesn't have a check_validity hook, assume the value is entirely
4064 valid.
4065
691a26f5
AB
40662013-07-04 Andrew Burgess <aburgess@broadcom.com>
4067
4068 * stack.c (read_frame_arg): No longer fetch lazy values.
4069 * value.c (value_optimized_out): If the value is not already
4070 marked optimized out, and is lazy then fetch it.
4071 (value_primitive_field): Move optimized out check to later in the
4072 function, after we have loaded any lazy values.
4073 (value_fetch_lazy): Use optimized out flag directly rather than
4074 calling optimized_out method.
4075
a58e2656
AB
40762013-07-04 Andrew Burgess <aburgess@broadcom.com>
4077
4078 * valops.c: Don't include "user-regs.h".
4079 (value_fetch_lazy): Moved to value.c.
4080 * value.c: Include "user-regs.h".
4081 (value_fetch_lazy): Moved from valops.c.
4082
bd885420
YQ
40832013-07-04 Yao Qi <yao@codesourcery.com>
4084
4085 Revert:
4086 2013-06-27 Yao Qi <yao@codesourcery.com>
4087
4088 * common/create-version.sh: Update comments. Handle the case
4089 that TARGET_ALIAS is empty.
4090
17ef446e
PA
40912013-07-03 Pedro Alves <palves@redhat.com>
4092
4093 * Makefile.in (config.status): Depend on development.sh.
4094 (aclocal_m4_deps): Add libmcheck.m4.
4095 * acinclude.m4: Include libmcheck.m4.
4096 * configure.ac: Source development.sh instead of setting
4097 'development' here. --enable-libmcheck/--disable-libmcheck code
4098 factored out to GDB_AC_LIBMCHECK. Run it.
4099 * development.sh: New file.
4100 * libmcheck.m4: New file.
4101 * configure: Regenerate.
4102
ac6dd50f
TT
41032013-07-02 Tom Tromey <tromey@redhat.com>
4104
4105 * contrib/ari/update-web-ari.sh: Update for version.in change.
4106
bd1df410
TT
41072013-07-02 Tom Tromey <tromey@redhat.com>
4108
4109 * common/ptid.h: Comment fixes.
4110
4db1a1dc
TT
41112013-07-01 Tom Tromey <tromey@redhat.com>
4112
4113 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4114 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4115 (dwarf2_read_index, create_all_comp_units): Update.
4116
dd9aa048
TT
41172013-07-01 Tom Tromey <tromey@redhat.com>
4118
4119 * configure.ac (build_warnings): Add -Wold-style-definition.
4120 * configure: Rebuild.
4121 * machoread.c (_initialize_machoread): Use "(void)".
4122 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4123 use "(void)".
4124
44d100c3
TT
41252013-07-01 Tom Tromey <tromey@redhat.com>
4126
4127 * configure.ac (build_warnings): Add -Wold-style-declaration.
4128 * configure: Rebuild.
4129 * dsrec.c (make_srec): Use "static const", not "const static".
4130 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4131 not "const static".
4132 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4133 Use "static const", not "const static".
4134 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4135 not "const static".
4136 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4137 not "const static".
4138 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4139 not "const static".
4140 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4141 not "const static".
4142 (v850_dbtrap_breakpoint_from_pc): Likewise.
4143 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4144 not "const static".
4145
2945b807
TT
41462013-07-01 Tom Tromey <tromey@redhat.com>
4147
4148 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4149 * configure: Rebuild.
4150
d8d2a3ee
PA
41512013-07-01 Pedro Alves <palves@redhat.com>
4152
4153 * defs.h: Include "pathmax.h".
4154 * utils.c: Don't include sys/param.h.
4155 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4156 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4157 instead of MAXPATHLEN.
4158 * solib-sunos.c: Don't include sys/param.h.
4159 * xcoffread.c: Don't include sys/param.h.
4160 * bsd-kvm.c: Don't include sys/param.h.
4161 * darwin-nat.c: Don't include sys/param.h.
4162 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4163 * darwin-nat-info.c: Don't include sys/param.h.
4164 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4165 MAXPATHLEN.
4166 * i386obsd-nat.c: Don't include sys/param.h.
4167 * inf-child.c: Don't include sys/param.h.
4168 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4169 * linux-fork.c: Don't include sys/param.h.
4170 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4171 * linux-nat.c: Don't include sys/param.h.
4172 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4173 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4174 * m68klinux-nat.c: Don't include sys/param.h.
4175 * nbsd-nat.c: Don't include sys/param.h.
4176 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4177 * ppc-linux-nat.c: Don't include sys/param.h.
4178 * rs6000-nat.c: Don't include sys/param.h.
4179 * spu-linux-nat.c. Don't include sys/param.h.
4180 * windows-nat.c: Don't include sys/param.h.
4181 * xtensa-linux-nat.c: Don't include sys/param.h.
4182 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4183
38ec2207
PA
41842013-07-01 Pedro Alves <palves@redhat.com>
4185
4186 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4187 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4188 * gnulib/aclocal.m4: Regenerate.
4189 * gnulib/config.in: Regenerate.
4190 * gnulib/configure: Regenerate.
4191 * gnulib/import/pathmax.h: New file.
4192 * gnulib/import/Makefile.am: Regenerate.
4193 * gnulib/import/Makefile.in: Regenerate.
4194 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4195 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4196 * gnulib/import/m4/pathmax.m4: New file.
4197
e655c1a2
PA
41982013-07-01 Pedro Alves <palves@redhat.com>
4199
4200 * configure.ac (GDBINIT): Define, depending on host.
4201 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4202 * top.c (PATH_MAX): Delete fallback definition.
4203 (GDBINIT_FILENAME): Delete.
4204 (gdbinit): Reimplement as const char array set to the GDBINIT
4205 string constant.
4206 * top.h (gdbinit): Make const.
4207 * configure, config.in: Regenerate.
4208
50dd9793
PA
42092013-07-01 Pedro Alves <palves@redhat.com>
4210
4211 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4212 * cli/cli-cmds.h (source_script): Likewise.
4213 * exceptions.c (catch_command_errors_const): New function.
4214 * exceptions.h (catch_command_errors_const): Declare.
4215 * main.c (get_init_files): Make parameters const, and adjust.
4216 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4217 'local_gdbinit' locals const. Adjust to use
4218 catch_command_errors_const.
4219 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4220 'local_gdbinit' locals const.
4221
bc7dea8d
PA
42222013-07-01 Pedro Alves <palves@redhat.com>
4223
4224 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4225 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4226 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4227 <unistd.h>.
4228
8839a007
PA
42292013-07-01 Pedro Alves <palves@redhat.com>
4230
4231 Import the "unistd" gnulib module.
4232 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4233 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4234 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4235 import/m4/unistd_h.m4.
4236 * gnulib/aclocal.m4: Renenerate.
4237 * gnulib/config.in: Renenerate.
4238 * gnulib/configure: Renenerate.
4239 * gnulib/import/Makefile.am: Renenerate.
4240 * gnulib/import/Makefile.in: Renenerate.
4241 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4242 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4243 * gnulib/import/m4/off_t.m4: New file.
4244 * gnulib/import/m4/ssize_t.m4: New file.
4245 * gnulib/import/m4/sys_types_h.m4: New file.
4246 * gnulib/import/m4/unistd_h.m4: New file.
4247 * gnulib/import/sys_types.in.h: New file.
4248 * gnulib/import/unistd.c: New file.
4249 * gnulib/import/unistd.in.h: New file.
4250
8c0da261
PA
42512013-07-01 Pedro Alves <palves@redhat.com>
4252
4253 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4254 defined instead of checking HAVE_UNISTD_H.
4255
3574124b
PA
42562013-07-01 Pedro Alves <palves@redhat.com>
4257
4258 Reimport gnulib from scratch.
4259 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4260 import/m4/onceonly.m4.
4261 * gnulib/aclocal.m4: Renegerate.
4262 * gnulib/config.in: Renegerate.
4263 * gnulib/configure: Renegerate.
4264 * gnulib/import/Makefile.in: Renegerate.
4265 * gnulib/import/extra/update-copyright: Renegerate.
4266 * gnulib/import/m4/onceonly.m4: Delete.
4267
702dc4fd
PA
42682013-07-01 Pedro Alves <palves@redhat.com>
4269
4270 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4271
47e1ce27
JK
42722013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4273
4274 Code cleanup.
4275 * remote.c (async_remote_interrupt_twice): Make it static.
4276 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4277
e82839d4
SDJ
42782013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4279
4280 * ia64-linux-tdep.c: Include <ctype.h>.
4281 (ia64_linux_stap_is_single_operand): New function.
4282 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4283
d6c2da54
TT
42842013-06-28 Tom Tromey <tromey@redhat.com>
4285
4286 * Makefile.in (version.c): Use version.in, not
4287 common/version.in.
4288 * common/create-version.sh: Likewise.
4289 * common/version.in: Move...
4290 * version.in: ...here.
4291
74da6f00
PA
42922013-06-28 Pedro Alves <palves@redhat.com>
4293
4294 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4295 here.
4296 * utils.h (pagination_enabled): Declare.
4297
d32dc48e
PA
42982013-06-28 Pedro Alves <palves@redhat.com>
4299
4300 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4301 Move higher up in file.
4302
0edd9e3b
TT
43032013-06-28 Tom Tromey <tromey@redhat.com>
4304
4305 * tracepoint.c (deprecated_readline_begin_hook)
4306 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4307 declare.
4308
4eb59108
PA
43092013-06-28 Pedro Alves <palves@redhat.com>
4310
4311 PR tui/14880
4312 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4313 checking if they're available.
4314 * value.c (value_available_contents_eq): Change comment.
4315 * value.h (value_available_contents_eq): Expand comment.
4316
97b17156
TT
43172013-06-27 Tom Tromey <tromey@redhat.com>
4318
4319 * target.c (find_run_target): Remove.
4320 * target.h (find_run_target): Remove.
4321
6a3bfc5c
TT
43222013-06-27 Tom Tromey <tromey@redhat.com>
4323
4324 * corelow.c (core_gdbarch): Now static.
4325
c9ef825d
TT
43262013-06-27 Tom Tromey <tromey@redhat.com>
4327
4328 * target.c (target_struct_index): Remove.
4329
e5823f1c
PA
43302013-06-27 Pedro Alves <palves@redhat.com>
4331
4332 * infrun.c: Remove comment describing the 'stepping over runtime
4333 loader dynamic symbol resolution code' mechanism; moved to
4334 gdbint.texinfo.
4335
97f8dd09
PA
43362013-06-27 Pedro Alves <palves@redhat.com>
4337
4338 * exceptions.c (catch_command_errors): Remove spurious space.
4339 * exceptions.h (catch_command_errors): Second parameter is "arg",
4340 not "command".
4341
02b1871e
YQ
43422013-06-27 Yao Qi <yao@codesourcery.com>
4343
4344 * common/create-version.sh: Update comments. Handle the case
4345 that TARGET_ALIAS is empty.
4346
bb1b1cf1
PA
43472013-06-26 Pedro Alves <palves@redhat.com>
4348
4349 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4350 comment.
4351
7b624e71
PA
43522013-06-26 Pedro Alves <palves@redhat.com>
4353
4354 * infrun.c: Update comments on stepping over runtime loader
4355 dynamic symbol resolution code.
4356
74e5a346
SDJ
43572013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4358
4359 * ax-gdb.h (union exp_element): Forward declare.
4360 * parser-defs.h: Include expression.h.
4361
a2fb2cee
MR
43622013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4363
4364 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4365
cdba14e0
DK
43662013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4367
4368 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4369
f30aa5af
DK
43702013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4371
4372 Fix trace-status to output proper start-time and stop-time.
4373 * tracepoint.c (trace_status_command): Fix type of printf arg to
4374 prevent improper type conversion.
4375 (trace_status_mi): Likewise.
4376
1aee363c
MR
43772013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4378
4379 * mips-tdep.c (mips_next_pc): Fix a typo.
4380
3356937a
MR
43812013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4382
4383 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4384
dc673c81
YQ
43852013-06-26 Pedro Alves <pedro@codesourcery.com>
4386 Yao Qi <yao@codesourcery.com>
4387
4388 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4389 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4390 * mi/mi-main.c (print_variable_or_computed): New function.
4391 (mi_cmd_trace_frame_collected): New function.
4392 * tracepoint.c (find_trace_state_variable_by_number): New.
4393 (struct traceframe_info): Move to tracepoint.h
4394 (struct collection_list): Likewise.
4395 (do_collect_symbol): Include locals and arguments in the
4396 collected variables list.
4397 (clear_collection_list): Clear wholly collected variables list
4398 and computed variables list.
4399 (append_exp): New function.
4400 (encode_actions_1): Include variables in the wholly
4401 collected variables list. Include memory ranges and
4402 full-fledged expressions in the computed expressions list.
4403 (encode_actions): Move some code to ...
4404 Return the cleanup chain.
4405 (encode_actions_rsp): ... here. New function.
4406 (get_traceframe_location, get_traceframe_info): Remove static.
4407 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4408 (struct collection_list): Moved from tracepoint.c. Add two
4409 new fields 'wholly_collected' and 'computed'.
4410 (find_trace_state_variable_by_number): Declare.
4411 (encode_actions): Adjust declaration.
4412 (encode_actions_rsp): Declare.
4413 (get_traceframe_info, get_traceframe_location): Declare.
4414
4415 * NEWS: Mention new MI command -trace-frame-collected.
4416
28a93511
YQ
44172013-06-26 Pedro Alves <pedro@codesourcery.com>
4418 Yao Qi <yao@codesourcery.com>
4419
4420 * ctf.c (ctf_traceframe_info): Push trace state variables
4421 present in the trace data into the traceframe info object.
4422 * breakpoint.c (DEF_VEC_I): Remove.
4423 * common/filestuff.c (DEF_VEC_I): Likewise.
4424 * dwarf2loc.c (DEF_VEC_I): Likewise.
4425 * mi/mi-main.c (DEF_VEC_I): Likewise.
4426 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4427 * features/traceframe-info.dtd: Add tvar element and its
4428 attributes.
4429 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4430 (build_traceframe_info): Push trace state variables present in
4431 the trace data into the traceframe info object.
4432 (traceframe_info_start_tvar): New function.
4433 (tvar_attributes): New.
4434 (traceframe_info_children): Add "tvar" element.
4435 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4436
4437 * NEWS: Mention the change in GDB and GDBserver.
4438
ddacd3c8
YQ
44392013-06-26 Pedro Alves <pedro@codesourcery.com>
4440 Yao Qi <yao@codesourcery.com>
4441
4442 * tracepoint.c (trace_dump_command): Move code to ...
4443 (get_traceframe_location): ... here. New.
4444
05796b35
YQ
44452013-06-26 Pedro Alves <pedro@codesourcery.com>
4446 Yao Qi <yao@codesourcery.com>
4447
4448 * tracepoint.c (trace_dump_command): GDB emits an error
4449 instead of a warning when a traceframe is not selected.
4450
cbfa3b61
YQ
44512013-06-26 Pedro Alves <pedro@codesourcery.com>
4452 Yao Qi <yao@codesourcery.com>
4453
4454 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4455 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4456 in collection_list.
4457 (do_clear_collection_list, init_collection_list): New.
4458 (encode_actions): Add local variables 'tracepoint_list' and
4459 'stepping_list'. Call init_collection_list and make cleanup
4460 which calls do_clear_collection_list. Don't call
4461 clear_collection_list.
4462 (_initialize_tracepoint): Delete references to
4463 'tracepoint_list' and 'stepping_list'.
4464
6e2048d3
TT
44652013-06-25 Tom Tromey <tromey@redhat.com>
4466
4467 * common/create-version.sh (date): Use "$", not "$$" in sed
4468 expression.
4469
42059f0e
KB
44702013-06-25 Kevin Buettner <kevinb@redhat.com>
4471
4472 * NEWS (New targets): Add entry for TI MSP430.
4473
a0743c90
YQ
44742013-06-25 Yao Qi <yao@codesourcery.com>
4475
4476 * remote.c (remote_start_remote): Move code to upload tsv
4477 earlier.
4478
9d6e6e84
HZ
44792013-06-25 Yao Qi <yao@codesourcery.com>
4480 Hui Zhu <hui@codesourcery.com>
4481 Pedro Alves <palves@redhat.com>
4482
4483 PR breakpoints/15075
4484 PR breakpoints/15434
4485 * breakpoint.c (bpstat_stop_status): Call
4486 b->ops->after_condition_true.
4487 (update_dprintf_command_list): Don't append "continue" command
4488 to the command list of dprintf breakpoint.
4489 (base_breakpoint_after_condition_true): New function.
4490 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4491 (dprintf_after_condition_true): New function.
4492 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4493 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4494
586cf749
KB
44952013-06-24 Kevin Buettner <kevinb@redhat.com>
4496
4497 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4498 (ALLDEPFILES): Add msp430-tdep.c.
4499 * configure.tgt (msp430*-*-elf): New target.
4500 * msp430-tdep.c: New file.
4501
1bbce132
MR
45022013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4503
4504 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4505 microMIPS synthetic symbols.
4506
3e5d3a5a
MR
45072013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4508
4509 * objfiles.h (pc_in_section): New prototype.
4510 (in_plt_section): Remove name argument, replace prototype with
4511 static inline function.
4512 * mips-tdep.h: Include "objfiles.h".
4513 (in_mips_stubs_section): New function.
4514 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4515 in_solib_call_trampoline member.
4516 (hppa_in_solib_call_trampoline): Remove name argument.
4517 * objfiles.c (pc_in_section): New function.
4518 (in_plt_section): Remove function.
4519 * mips-linux-tdep.c: Include "objfiles.h".
4520 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4521 name argument. Return 1 rather than the low 16-bit halfword of
4522 any instruction examined.
4523 (mips_linux_in_dynsym_resolve_code): Update
4524 mips_linux_in_dynsym_stub call accordingly.
4525 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4526 rather than an equivalent hand-coded sequence.
4527 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4528 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4529 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4530 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4531 in_opd_section.
4532 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4533 on call to tdep->in_solib_call_trampoline.
4534 (hppa_in_solib_call_trampoline): Remove name argument, update
4535 according to in_plt_section change.
4536 (hppa_skip_trampoline_code): Update according to in_plt_section
4537 change.
4538 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4539 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4540 Likewise.
4541 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4542 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4543 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4544 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4545 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4546 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4547 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4548 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4549 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4550 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4551 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4552 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4553 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4554
b9b26a16
JB
45552013-06-24 Joel Brobecker <brobecker@adacore.com>
4556
4557 * common/create-version.sh: Fix expansion of $host_alias
4558 and $target_alias in generation of HOST_NAME and TARGET_NAME
4559 (resp.).
4560
01208463
TT
45612013-06-24 Tom Tromey <tromey@redhat.com>
4562
4563 * common/create-version.sh: New file.
4564 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4565 create-version.sh.
4566 (HFILES_NO_SRCDIR): Use common/version.h.
4567 * version.in: Move to ...
4568 * common/version.in: ... here. Replace date with "DATE".
4569 * version.h: Move to ...
4570 * common/version.h: ... here.
4571
bb6b9a5e
JB
45722013-06-21 Joel Brobecker <brobecker@adacore.com>
4573
4574 * gdb/gnulib/Makefile.in: Update date in copyright header.
4575 * gdb/gnulib/configure.ac: Ditto.
4576 * gdb/gnulib/update-gnulib.sh: Ditto.
4577
c3b18ee7
JB
45782013-06-21 Joel Brobecker <brobecker@adacore.com>
4579
4580 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4581 "gdb/gnulib/import".
4582
85d3b769
WN
45832013-06-21 Will Newton <will.newton@linaro.org>
4584
4585 * doublest.c (ldfrexp): Remove function.
4586 (convert_doublest_to_floatformat): Call frexpl instead of
4587 ldfrexp.
4588
88b48903
WN
45892013-06-21 Will Newton <will.newton@linaro.org>
4590
4591 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4592 * gnulib/aclocal.m4: Regenerate.
4593 * gnulib/config.in: Regenerate.
4594 * gnulib/configure: Regenerate.
4595 * gnulib/import/Makefile.am: Update.
4596 * gnulib/import/Makefile.in: Update.
4597 * gnulib/import/m4/gnulib-cache.m4: Update.
4598 * gnulib/import/m4/gnulib-comp.m4: Update.
4599 * gnulib/import/float+.h: Import.
4600 * gnulib/import/float.c: Import.
4601 * gnulib/import/float.in.h: Import.
4602 * gnulib/import/fpucw.h: Import.
4603 * gnulib/import/frexp.c: Import.
4604 * gnulib/import/frexpl.c: Import.
4605 * gnulib/import/isnan.c: Import.
4606 * gnulib/import/isnand-nolibm.h: Import.
4607 * gnulib/import/isnand.c: Import.
4608 * gnulib/import/isnanl-nolibm.h: Import.
4609 * gnulib/import/isnanl.c: Import.
4610 * gnulib/import/itold.c: Import.
4611 * gnulib/import/m4/exponentd.m4: Import.
4612 * gnulib/import/m4/exponentl.m4: Import.
4613 * gnulib/import/m4/float_h.m4: Import.
4614 * gnulib/import/m4/fpieee.m4: Import.
4615 * gnulib/import/m4/frexp.m4: Import.
4616 * gnulib/import/m4/frexpl.m4: Import.
4617 * gnulib/import/m4/isnand.m4: Import.
4618 * gnulib/import/m4/isnanl.m4: Import.
4619 * gnulib/import/m4/math_h.m4: Import.
4620 * gnulib/import/math.c: Import.
4621 * gnulib/import/math.in.h: Import.
4622
4353c9e6
JK
46232013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4624
4625 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4626 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4627 signature_INTEL_edx comparisons.
4628
e3e06db3
DE
46292013-06-20 Doug Evans <dje@google.com>
4630
6ac97d4c
DE
4631 symtab/15652
4632 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4633 All callers updated.
4634 (open_dwp_file): If we can't find the dwp file, search the basename
4635 in debug-file-directory.
4636
93417882
DE
4637 * dwarf2read.c (struct dwp_file): Fix comment.
4638 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4639
e3e06db3
DE
4640 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4641 better.
4642
0878d0fa
YQ
46432013-06-20 Yao Qi <yao@codesourcery.com>
4644
4645 * breakpoint.c (create_breakpoint): Fix code indentation.
4646
023fa29b
YQ
46472013-06-20 Yao Qi <yao@codesourcery.com>
4648
4649 * breakpoint.c (create_breakpoints_sal_default): Remove
4650 parameter 'lsal'. Update declaration.
4651 (bkpt_create_breakpoints_sal): Caller update.
4652 (tracepoint_create_breakpoints_sal): Likewise.
4653
c898adb7
YQ
46542013-06-20 Pedro Alves <pedro@codesourcery.com>
4655 Yao Qi <yao@codesourcery.com>
4656
4657 * NEWS: Mention the new option '--skip-unavailable' of command
4658 -data-list-register-values.
4659 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4660 --skip-unavailable option. Adjust to use output_register.
4661 (output_register): Add new 'skip_unavailable' parameter.
4662 Handle it.
4663
4d157a3d
MF
46642013-06-19 Mike Frysinger <vapier@gentoo.org>
4665
4666 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4667 common/i386-gcc-cpuid.h.
4668 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4669 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4670 Copy the latest version from upstream gcc.
4671 * common/linux-btrace.c: Include i386-cpuid.h.
4672 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4673 call to i386_cpuid.
4674 (cpu_supports_btrace): Likewise.
4675 * go32-nat.c: Include i386-cpuid.h.
4676 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4677
1ce4db08
DE
46782013-06-19 Doug Evans <dje@google.com>
4679
4680 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4681 (get_section_index): Ditto.
4682
0e4777df
TT
46832013-06-19 Tom Tromey <tromey@redhat.com>
4684
4685 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4686 "dprintf" help.
4687
3190f0c6
DE
46882013-06-18 Doug Evans <dje@google.com>
4689
4690 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4691 before using it.
4692 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4693 Move test of cu_index closer to use. Print complaint if cu_index
4694 is bad.
4695
8b89a20a
JB
46962013-06-18 Joel Brobecker <brobecker@adacore.com>
4697
4698 * machoread.c (oso_vector): Delete this global.
4699 (macho_register_oso): Add new parameter "oso_vector_ptr".
4700 Use it instead of the "oso_vector" global.
4701 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4702 (macho_symfile_read): Use a local oso_vector, to be free'ed
4703 at the end of this function, in place of the old "oso_vector"
4704 global. Update various function calls accordingly. Use one
4705 single cleanup chain for the entire function.
4706
59b0c7c1
JB
47072013-06-18 Joel Brobecker <brobecker@adacore.com>
4708
937c708c 4709 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4710 DWARF2_PER_OBJFILE by uses of DATA instead.
4711
427cd150
TT
47122013-06-18 Tom Tromey <tromey@redhat.com>
4713
4714 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4715 argument.
4716 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4717 Special case signals other than GDB_SIGNAL_TRAP.
4718 (explains_signal_watchpoint): New function.
4719 (base_breakpoint_explains_signal): Add 'sig' argument.
4720 (initialize_breakpoint_ops): Set 'explains_signal' method for
4721 watchpoints.
4722 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4723 signal argument.
4724 (bpstat_explains_signal): Likewise.
4725 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4726
2d57700b
TT
47272013-06-18 Tom Tromey <tromey@redhat.com>
4728
4729 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4730
ac475191
TT
47312013-06-18 Tom Tromey <tromey@redhat.com>
4732
4733 * python/python.c (finish_python_initialization): Decref
4734 'pythondir' on failure path as well.
4735
5bd1ef56
TT
47362013-06-18 Tom Tromey <tromey@redhat.com>
4737
4738 PR symtab/15391:
4739 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4740 after taking bits_to_skip into account. Sign extend byte_offset.
4741 * utils.h (gdb_sign_extend): Declare.
4742 * utils.c (gdb_sign_extend): New function.
4743
92fac807
JK
47442013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4745
4746 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4747
2d503272
PM
47482013-06-17 Pierre Muller <muller@sourceware.org>
4749
4750 * corelow.c (core_open): Print GDB signal name instead of target
4751 signal number.
4752
6916fd98
MF
47532013-06-17 Mike Frysinger <vapier@gentoo.org>
4754
4755 * .gitignore: Add /gcore.
4756
9c02c129
DE
47572013-06-13 Doug Evans <dje@google.com>
4758
4759 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4760 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4761
d0548fa2
PM
47622013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4763
4764 * stack.c (backtrace_command_1): Fix indentation.
4765
22128028
JB
47662013-06-11 Joel Brobecker <brobecker@adacore.com>
4767
4768 * window-nat.c (thread_rec): Add missing empty line after
4769 local variable declaration.
4770
2ed3e009
JB
47712013-06-11 Joel Brobecker <brobecker@adacore.com>
4772
4773 * windows-nat.c (thread_rec): Revert format used to print
4774 error code returned by SuspendThread from %d back to %u.
4775
0c3d84be
JB
47762013-06-11 Joel Brobecker <brobecker@adacore.com>
4777
4778 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4779 ID in debug trace.
4780 (get_windows_debug_event): Likewise, for all debug traces.
4781
80e88e1a
JB
47822013-06-11 Joel Brobecker <brobecker@adacore.com>
4783
4784 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4785 warning message.
4786
1edebdbf
YQ
47872013-06-08 Pedro Alves <pedro@codesourcery.com>
4788 Yao Qi <yao@codesourcery.com>
4789
4790 * mi/mi-main.c (get_register): Remove declaration.
4791 (output_register): Declare.
4792 (mi_cmd_data_list_register_values): Remove local variable
4793 'tuple_cleanup'. Move some code into output_register.
4794 (get_register): Renamed to ...
4795 (output_register): ... this. Output the register's
4796 "number" ui_out tuple here.
4797
47d48711
PA
47982013-06-07 Pedro Alves <palves@redhat.com>
4799
4800 * darwin-nat.c: Fix formating in copyright header.
4801 * darwin-nat.h: Likewise.
4802 * gnu-nat.c: Likewise.
4803 * machoread.c: Likewise.
4804
3aee8918
PA
48052013-06-07 Pedro Alves <palves@redhat.com>
4806
5f2b57b5 4807 PR server/14823
3aee8918
PA
4808 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4809 static. Output a global target description pointer.
4810 (init_registers_${name}): Adjust to initialize a
4811 target description structure.
4812
fe8400b4
WN
48132013-06-07 Will Newton <will.newton@linaro.org>
4814
4815 * printcmd.c (build_address_symbolic): Call
4816 gdbarch_addr_bits_remove for text minimal symbols.
4817
20df6206
WN
48182013-06-07 Will Newton <will.newton@linaro.org>
4819
4820 * MAINTAINERS: Add myself to Write After Approval.
4821
aef525cb
YQ
48222013-06-07 Yao Qi <yao@codesourcery.com>
4823
4824 * tracepoint.c (start_tracing): Move code to ...
4825 (trace_reset_local_state): ... here. New.
4826 (disconnect_tracing): Don't call set_current_traceframe,
4827 set_tracepoint_num, and set_traceframe_context. Call
4828 trace_reset_local_state instead.
4829 (tfile_close): Call trace_reset_local_state.
4830 * ctf.c (ctf_close): Likewise.
4831 * remote.c (remote_close): Likewise.
4832 * tracepoint.h (trace_reset_local_state): Declare.
4833
d2415c6c
DE
48342013-06-06 Doug Evans <dje@google.com>
4835
4836 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4837 and fix header docs.
4838
69fc87c2
DE
48392013-06-05 Doug Evans <dje@google.com>
4840 Keith Seitz <keiths@redhat.com>
4841
4842 PR 15519
4843 * cp-namespace.c (find_symbol_in_baseclass): Call
4844 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4845 Check result of call to lookup_symbol_static.
4846 Call lookup_static_symbol_aux unconditionally.
4847 Call check_typedef on base types before accessing them.
4848 (cp_lookup_nested_symbol): Fix comment.
4849
a513d1e8
LM
48502013-06-05 Luis Machado <lgustavo@codesourcery.com>
4851
4852 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4853 minimal symbols pointing to function descriptors.
4854
351a6f02
TT
48552013-06-05 Tom Tromey <tromey@redhat.com>
4856
4857 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4858
5e1b953b 48592013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4860 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4861
4862 * remote.c (remote_wait_as): Restore signal handler before returning
4863 when GDB gets a notification.
4864
f9e14852
GB
48652013-06-04 Gary Benson <gbenson@redhat.com>
4866
8445cbf1 4867 PR 2328
f9e14852
GB
4868 * breakpoint.h (handle_solib_event): Moved function declaration
4869 to solib.h.
4870 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4871 (bpstat_stop_status): Pass new argument to handle_solib_event.
4872 * solib.h (update_solib_breakpoints): New function declaration.
4873 (handle_solib_event): Moved function declaration from
4874 breakpoint.h.
4875 * solib.c (update_solib_breakpoints): New function.
4876 (handle_solib_event): Moved function from breakpoint.c.
4877 Updated to call solib_ops->handle_event if not NULL.
4878 * solist.h (target_so_ops): New fields "update_breakpoints" and
4879 "handle_event".
4880 * infrun.c (set_stop_on_solib_events): New function.
4881 (_initialize_infrun): Use the above for "set
4882 stop-on-solib-events".
4883 (handle_inferior_event): Pass new argument to handle_solib_event.
4884 * solib-svr4.c (probe.h): New include.
4885 (svr4_free_library_list): New forward declaration.
4886 (probe_action): New enum.
4887 (probe_info): New struct.
4888 (probe_info): New static variable.
4889 (NUM_PROBES): New definition.
4890 (svr4_info): New fields "using_xfer", "probes_table" and
4891 "solib_list".
4892 (free_probes_table): New function.
4893 (free_solib_list): New function.
4894 (svr4_pspace_data_cleanup): Free probes table and solib list.
4895 (svr4_copy_library_list): New function.
4896 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4897 (svr4_read_so_list): New parameter "prev_lm".
4898 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4899 (svr4_current_sos): New function.
4900 (probe_and_action): New struct.
4901 (hash_probe_and_action): New function.
4902 (equal_probe_and_action): Likewise.
4903 (register_solib_event_probe): Likewise.
4904 (solib_event_probe_at): Likewise.
4905 (solib_event_probe_action): Likewise.
4906 (solist_update_full): Likewise.
4907 (solist_update_incremental): Likewise.
4908 (disable_probes_interface_cleanup): Likewise.
4909 (svr4_handle_solib_event): Likewise.
4910 (svr4_update_solib_event_breakpoint): Likewise.
4911 (svr4_update_solib_event_breakpoints): Likewise.
4912 (svr4_create_solib_event_breakpoints): Likewise.
4913 (enable_break): Free probes table before creating breakpoints.
4914 Use svr4_create_solib_event_breakpoints to create breakpoints.
4915 (svr4_solib_create_inferior_hook): Free the solib list.
4916 (_initialize_svr4_solib): Initialise
4917 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4918
ced63ec0
GB
49192013-06-04 Gary Benson <gbenson@redhat.com>
4920
4921 * target.h (target_ops): New field
4922 "to_augmented_libraries_svr4_read".
4923 (target_augmented_libraries_svr4_read): New macro.
4924 * target.c (update_current_target): Handle
4925 to_augmented_libraries_svr4_read.
4926 * remote.c (remote_state): New field
4927 "augmented_libraries_svr4_read".
4928 (remote_augmented_libraries_svr4_read_feature): New function.
4929 (remote_protocol_features): Add entry for
4930 "augmented-libraries-svr4-read".
4931 (remote_augmented_libraries_svr4_read): New function.
4932 (init_remote_ops): Initialize
4933 remote_ops.to_augmented_libraries_svr4_read.
4934
7f91dbec
GB
49352013-06-04 Gary Benson <gbenson@redhat.com>
4936
4937 * NEWS: Update.
4938
607ece04
GB
49392013-06-04 Gary Benson <gbenson@redhat.com>
4940
4941 * objfiles.h (inhibit_section_map_updates): New function
4942 declaration.
4943 (resume_section_map_updates): Likewise.
4944 (resume_section_map_updates_cleanup): Likewise.
4945 * objfiles.c (objfile_pspace_info): Removed field
4946 "objfiles_changed_p". New fields "new_objfiles_available",
4947 "section_map_dirty" and "inhibit_updates".
4948 (allocate_objfile): Set new_objfiles_available.
4949 (free_objfile): Set section_map_dirty.
4950 (objfile_relocate1): Likewise.
4951 (in_plt_section): Likewise.
4952 (find_pc_section): Update the conditions under which the
4953 section map will be updated.
4954 (inhibit_section_map_updates): New function.
4955 (resume_section_map_updates): Likewise.
4956 (resume_section_map_updates_cleanup): Likewise.
4957
9ee6a5ac
GB
49582013-06-04 Gary Benson <gbenson@redhat.com>
4959
4960 * probe.h (get_probe_argument_count): New declaration.
4961 (evaluate_probe_argument): Likewise.
4962 * probe.c (get_probe_argument_count): New function.
4963 (evaluate_probe_argument): Likewise.
4964 (probe_safe_evaluate_at_pc): Use the above new functions.
4965
845d4708
AM
49662013-06-04 Alan Modra <amodra@gmail.com>
4967
4968 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4969 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4970 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4971 target mem reads on optional insns.
4972 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4973 ppc_insns_match_pattern calls.
4974 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4975 Add match for power7 thread safety insns, and new order of
4976 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4977 invocation in comment, and update rest of comment.
4978 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4979 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4980 (ppc64_standard_linkage2_target): Update insn offsets.
4981 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4982 stubs first. Update calls.
4983
404e278f
YQ
49842013-06-04 Yao Qi <yao@codesourcery.com>
4985
4986 * solib.c (solib_find): Don't need dir separator if path has
4987 drive spec.
4988
f6aea118
JB
49892013-06-03 Joel Brobecker <brobecker@adacore.com>
4990
4991 Revert (indirectly causes a SIGSEGV):
4992 * machoread.c (macho_symfile_read): Assign first cleanup to
4993 'back_to'.
4994
87967e27
YQ
49952013-06-03 Yao Qi <yao@codesourcery.com>
4996
4997 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4998 mi-parse.c. Make them static.
4999 (mi_all_values): Likewise.
5000 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5001 mi_parse_print_values. Make it external.
5002 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5003 Remove the declarations.
5004 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5005 * mi/mi-parse.h (mi_parse_print_values): Declare.
5006 * mi/mi-cmd-stack.c: Include mi-parse.h.
5007 (parse_print_values): Remove
5008 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5009 of parse_print_values.
5010 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5011
3ca73e0c
YQ
50122013-05-31 Pedro Alves <pedro@codesourcery.com>
5013 Yao Qi <yao@codesourcery.com>
5014
5015 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5016 (encode_actions): Move code to ...
5017 (all_tracepoint_actions_and_cleanup): ... here. New.
5018 (trace_dump_command): Likewise.
5019
4e993a19
TT
50202013-05-30 Tom Tromey <tromey@redhat.com>
5021
5022 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5023
e3b76b4f
TT
50242013-05-30 Tom Tromey <tromey@redhat.com>
5025
5026 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5027 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5028 'old_chain' argument. Add 'parser_result' argument.
5029 (gdb_xml_create_parser_and_cleanup): Remove old version.
5030 (gdb_xml_parse_quick): Update.
5031 (xml_process_xincludes): Update.
5032 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5033 declare.
5034
db26349c
TT
50352013-05-30 Tom Tromey <tromey@redhat.com>
5036
5037 * probe.c (collect_probes): Check arguments for NULL before
5038 calling compile_rx_or_error.
5039 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5040 Remove NULL return.
5041
77f9e713
TT
50422013-05-30 Tom Tromey <tromey@redhat.com>
5043
5044 * infrun.c (adjust_pc_after_break): Introduce an outer null
5045 cleanup.
5046
45475de7
TT
50472013-05-30 Tom Tromey <tromey@redhat.com>
5048
5049 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5050
ac5007fd
TT
50512013-05-30 Tom Tromey <tromey@redhat.com>
5052
5053 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5054 for 'old_chain'. Do not check 'head' before processing
5055 cleanups.
5056
cd82eddc
TT
50572013-05-30 Tom Tromey <tromey@redhat.com>
5058
5059 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5060 "cleanup_tuple".
5061
57cee33a
TT
50622013-05-30 Tom Tromey <tromey@redhat.com>
5063
5064 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5065 inner scope. Unconditionally call do_cleanups.
5066
795d915c
TT
50672013-05-30 Tom Tromey <tromey@redhat.com>
5068
5069 * source.c (find_and_open_source): Call do_cleanups.
5070
1fc3cf4a
TT
50712013-05-30 Tom Tromey <tromey@redhat.com>
5072
5073 * linux-thread-db.c (thread_db_load_search): Unconditionally
5074 call do_cleanups.
5075
e35ac9bf
TT
50762013-05-30 Tom Tromey <tromey@redhat.com>
5077
5078 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5079 for 'cleanup'; instead use a later one.
5080
f3300387
TT
50812013-05-30 Tom Tromey <tromey@redhat.com>
5082
5083 * python/py-breakpoint.c (bppy_get_commands): Use
5084 explicit, unconditional return.
5085 * python/py-frame.c (frapy_read_var): Likewise.
5086 * python/python.c (gdbpy_decode_line): Likewise.
5087
c27e16e3
TT
50882013-05-30 Tom Tromey <tromey@redhat.com>
5089
5090 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5091 do_cleanups on all return paths.
5092
5ae85e44
TT
50932013-05-30 Tom Tromey <tromey@redhat.com>
5094
5095 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5096
73b8d9da
TT
50972013-05-30 Tom Tromey <tromey@redhat.com>
5098
5099 * stabsread.c (read_struct_type): Call do_cleanups along
5100 all return paths.
5101
7d266584
MR
51022013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5103
5104 * mips-linux-tdep.c: Adjust formatting throughout.
5105
0f900f54
TT
51062013-05-30 Tom Tromey <tromey@redhat.com>
5107
5108 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5109 along all return paths.
5110
a991ac28
TT
51112013-05-30 Tom Tromey <tromey@redhat.com>
5112
5113 * symfile.c (find_separate_debug_file): Call do_cleanups
5114 along all return paths.
5115
1abaf042
TT
51162013-05-30 Tom Tromey <tromey@redhat.com>
5117
5118 * symtab.c (search_symbols): Introduce a null cleanup for
5119 'retval_chain'.
5120
edefe1da
TT
51212013-05-30 Tom Tromey <tromey@redhat.com>
5122
5123 * python/py-value.c (valpy_binop): Call do_cleanups before
5124 exiting loop.
5125
54f72dcc
TT
51262013-05-30 Tom Tromey <tromey@redhat.com>
5127
5128 * python/py-prettyprint.c (print_children): Remove extra
5129 do_cleanups call.
5130
af1c6971
TT
51312013-05-30 Tom Tromey <tromey@redhat.com>
5132
5133 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5134 all return paths.
5135
b862ce75
TT
51362013-05-30 Tom Tromey <tromey@redhat.com>
5137
5138 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5139 along all return paths.
5140
e12fefc8
TT
51412013-05-30 Tom Tromey <tromey@redhat.com>
5142
5143 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5144 call do_cleanups.
5145
4867f990
TT
51462013-05-30 Tom Tromey <tromey@redhat.com>
5147
5148 * varobj.c (c_value_of_root): Call do_cleanups along all
5149 return paths.
5150
4fd2d6af
TT
51512013-05-30 Tom Tromey <tromey@redhat.com>
5152
5153 * tracepoint.c (trace_dump_command): Unconditionally call
5154 do_cleanups.
5155
752eb8b4
TT
51562013-05-30 Tom Tromey <tromey@redhat.com>
5157
5158 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5159 do_cleanups earlier.
5160
e42d0aa5
TT
51612013-05-30 Tom Tromey <tromey@redhat.com>
5162
5163 * machoread.c (macho_symfile_read): Assign first cleanup to
5164 'back_to'.
5165
4bbc010a
TT
51662013-05-30 Tom Tromey <tromey@redhat.com>
5167
5168 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5169
b9635925
TT
51702013-05-30 Tom Tromey <tromey@redhat.com>
5171
5172 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5173
25f43500
TT
51742013-05-30 Tom Tromey <tromey@redhat.com>
5175
5176 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5177 call discard_cleanups.
5178 (inf_ptrace_attach): Likewise.
5179
d6a2e54a
TT
51802013-05-30 Tom Tromey <tromey@redhat.com>
5181
5182 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5183 return paths.
5184 (mips_initialize): Likewise.
5185 (common_open): Call do_cleanups.
5186
48be7c1b
TT
51872013-05-30 Tom Tromey <tromey@redhat.com>
5188
5189 * utils.c (internal_vproblem): Call do_cleanups.
5190
e61727ab
TT
51912013-05-30 Tom Tromey <tromey@redhat.com>
5192
5193 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5194
b81b921f
TT
51952013-05-30 Tom Tromey <tromey@redhat.com>
5196
5197 * cli/cli-script.c (setup_user_args): Don't return after error.
5198
fe48dfb1
TT
51992013-05-30 Tom Tromey <tromey@redhat.com>
5200
5201 * somread.c (som_symtab_read): Call do_cleanups.
5202
27833de7
TT
52032013-05-30 Tom Tromey <tromey@redhat.com>
5204
5205 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5206
5b3fca71
TT
52072013-05-30 Tom Tromey <tromey@redhat.com>
5208
5209 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5210 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5211 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5212 * source.c (show_substitute_path_command): Call do_cleanups.
5213 (unset_substitute_path_command, set_substitute_path_command):
5214 Likewise.
5215 * symfile.c (load_command): Call do_cleanups.
5216
af83e3f8
TT
52172013-05-30 Tom Tromey <tromey@redhat.com>
5218
5219 * contrib/cleanup_check.py: New file.
5220 * contrib/gcc-with-excheck: Add option parsing.
5221
564eac42
JB
52222013-05-30 Joel Brobecker <brobecker@adacore.com>
5223
5224 * windows-nat.c (windows_delete_thread): Add missing space
5225 in cast expression.
5226
47902076
HAQ
52272013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5228
5229 * inferior.c (top level): Include tilde.h.
5230 (add_inferior_command): Call tilde_expand on the value of 'exec'
5231 argument.
5232
23da373a
YQ
52332013-05-30 Pedro Alves <pedro@codesourcery.com>
5234 Yao Qi <yao@codesourcery.com>
5235
5236 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5237 Caller update.
5238 (encode_actions): Likewise.
5239 * remote.c (remote_download_tracepoint): Caller update.
5240 * tracepoint.h (encode_actions): Update declaration.
5241
a6e6f791
PA
52422013-05-30 Pedro Alves <palves@redhat.com>
5243
5244 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5245 pointer.
5246
36d25514
YQ
52472013-05-30 Yao Qi <yao@codesourcery.com>
5248
5249 * remote.c (remote_check_symbols): Remove unused parameter
5250 'objfile'.
5251 Declaration update.
5252 (remote_start_remote, remote_new_objfile): Caller update.
5253
62a813cc
YQ
52542013-05-30 Yao Qi <yao@codesourcery.com>
5255
5256 * mi/mi-cmds.c (mi_cmds): Define MI command
5257 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5258 DEF_MI_CMD_CLI.
5259
28439a30
PA
52602013-05-29 Pedro Alves <palves@redhat.com>
5261
5262 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5263 (remote_insert_watchpoint, remote_remove_watchpoint)
5264 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5265 (remote_verify_memory, compare_sections_command)
5266 (remote_search_memory): Set the general process/thread on the
5267 remote side.
5268
6ac1c082
PA
52692013-05-29 Pedro Alves <palves@redhat.com>
5270
5271 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5272 (_initialize_aarch64_tdep): Don't call
5273 initialize_tdesc_aarch64_without_fpu.
5274 * features/Makefile (WHICH): Remove reference to
5275 aarch64-without-fpu.
5276 * features/aarch64-without-fpu.c: Delete file.
5277 * regformats/aarch64-without-fpu.dat: Delete file.
5278
a73e3634
YQ
52792013-05-28 Yao Qi <yao@codesourcery.com>
5280
5281 * tracepoint.c (stringify_collection_list): Remove parameter
5282 'string'.
5283 (encode_actions): Caller update. Remove local variables.
5284
c0ea94eb
YQ
52852013-05-24 Yao Qi <yao@codesourcery.com>
5286
5287 * tracepoint.c (TFILE_PID): Remove.
5288 (tfile_open): Don't add thread and inferior.
5289 (tfile_close): Don't set 'inferior_ptid'. Don't call
5290 exit_inferior_silent.
5291 (tfile_thread_alive): Remove.
5292 (init_tfile_ops): Don't set field 'to_thread_alive' of
5293 tfile_ops.
5294
20d7f211
DE
52952013-05-23 Doug Evans <dje@google.com>
5296
5297 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5298
8658d16d
PA
52992013-05-23 Pedro Alves <palves@redhat.com>
5300
5301 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5302 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5303 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5304 Only define if HAVE_SOCKETS is defined.
5305 * configure.ac: Check for sys/socket.h.
5306 * config.in, configure: Regenerate.
5307
21aa081e
PA
53082013-05-23 Pedro Alves <palves@redhat.com>
5309
5310 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5311 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5312 printing uint32_t variables.
5313
c2d6af84
PA
53142013-05-23 Pedro Alves <palves@redhat.com>
5315
5316 * NEWS: Mention GDBserver range stepping support.
5317
c1e36e3e
PA
53182013-05-23 Yao Qi <yao@codesourcery.com>
5319 Pedro Alves <palves@redhat.com>
5320
5321 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5322 field.
5323 * infcmd.c (step_once, until_next_command): Enable range stepping.
5324 * infrun.c (displaced_step_prepare): Disable range stepping.
5325 (resume): Disable range stepping if stepping over a breakpoint or
5326 we have software watchpoints. If range stepping is enabled,
5327 assert the thread is in the stepping range.
5328 (clear_proceed_status_thread): Clear may_range_step.
5329 (handle_inferior_event): Disable range stepping as soon as we know
5330 the thread that hit the event. Re-enable it whenever we're going
5331 to step with a step range.
5332 * remote.c (struct vCont_action_support) <r>: New field.
5333 (use_range_stepping): New global.
5334 (remote_vcont_probe): Handle 'r' action.
5335 (append_resumption): Append an 'r' action if the thread may range
5336 step.
5337 (show_range_stepping): New function.
5338 (set_range_stepping): New function.
5339 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5340 'set range-stepping' and 'show range-stepping' commands.
5341 * NEWS: Mention range stepping, the new vCont;r action, and the
5342 new "set/show range-stepping" commands.
5343
d458bd84
PA
53442013-05-23 Yao Qi <yao@codesourcery.com>
5345 Pedro Alves <palves@redhat.com>
5346
5347 * remote.c (struct vCont_action_support): New struct.
5348 (struct remote_state) <support_vCont_t>: Remove field.
5349 <vCont_actions_support>: New field.
5350 (remote_vcont_probe, remote_stop_ns): Update.
5351
ce4c476a
PA
53522013-05-23 Yao Qi <yao@codesourcery.com>
5353 Pedro Alves <palves@redhat.com>
5354
5355 * gdbthread.h (pc_in_thread_step_range): New declaration.
5356 * thread.c (pc_in_thread_step_range): New function.
5357 * infrun.c (handle_inferior_event): Use it.
5358
ce70887a
JB
53592013-05-23 Joel Brobecker <brobecker@adacore.com>
5360
5361 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5362 of sprintf.
5363
55b87a52
KS
53642013-05-22 Keith Seitz <keiths@redhat.com>
5365
5366 * ada-lang.c (is_known_support_routine): Add explicit free of
5367 'func_name' from find_frame_funname.
5368 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5369 for func_name from find_frame_funname.
5370 * python/py-frame.c (frapy_name): Add explicit free of
5371 'name' from find_frame_funname.
5372 * stack.c (find_frame_funname): Add comment explaining that
5373 funcp must be freed by the caller.
5374 Return copy of symbol names instead of pointers.
5375 (print_frame): Add a cleanup for 'funname' from
5376 find_frame_funname.
5377 * stack.h (find_frame_funname): Remove "const" from
5378 'funname' parameter.
5379
5f2e6b00
TT
53802013-05-22 Tom Tromey <tromey@redhat.com>
5381
5382 PR c++/15401:
5383 * c-valprint.c (c_value_print): Use value_addr for
5384 references. Convert back to reference type with value_ref.
5385
d85c4847
EZ
53862013-05-22 Eli Zaretskii <eliz@gnu.org>
5387
5388 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5389 unloaded DLL, it will be done by handle_solib_event. See
5390 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5391 details.
5392
54eb231c
PM
53932013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5394
5395 * ui-out.c: Create typedef ui_out_level_p and define vector
5396 operations for that type.
5397 (struct ui_out): Use a vector instead of an array.
5398 (current_level): Return level from a vector.
5399 (push_level): Create a level in a vector.
5400 (pop_level): Delete a level in a vector.
5401 (ui_out_new): Create initial level zero level, and store in a
5402 vector.
5403 (ui_out_destroy): Add vector cleanup.
5404
ac90359c
PA
54052013-05-22 Pedro Alves <palves@redhat.com>
5406
5407 * python/python-internal.h (gdb_Py_DECREF): Tag with
5408 "ARI: editCase function".
5409
6dcc1893
PP
54102013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5411
5412 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5413
c8c735b9
PA
54142013-05-21 Pedro Alves <palves@redhat.com>
5415
5416 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5417 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5418 * python/py-utils.c (py_decref): Don't check for NULL before
5419 calling Py_DECREF.
5420
1915daeb
PA
54212013-05-21 Pedro Alves <palves@redhat.com>
5422
5423 * python/py-utils.c (py_decref): Remove extra braces.
5424 (gdb_pymodule_addobject): Remove extra braces.
5425 * python-internal.h (gdb_Py_DECREF): New static inline function.
5426 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5427
bd9673a4
PW
54282013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5429
5430 * breakpoints.c (detach_breakpoints): Do not
5431 detach breakpoints locations with loc_type bp_loc_other.
5432
ff6009d0
JK
54332013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5434
5435 Workaround Python 2.6.
5436 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5437 a block.
5438
3641da11
JK
54392013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5440
5441 Code cleanup: constification.
5442 * solib.c (solib_ops): Make return type and ops variable type const.
5443 (set_solib_ops): Make the new_ops parameter and ops variable const.
5444 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5445 (solib_add, solib_keep_data_in_core, clear_solib)
5446 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5447 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5448 const.
5449 * solib.h (set_solib_ops): Make the new_ops parameter const.
5450
776af39e
JB
54512013-05-21 Joel Brobecker <brobecker@adacore.com>
5452
5453 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5454 variable.
5455 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5456 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5457 (SYSTEM_GDBINIT_FILES): New variables.
5458 (all): Add stamp-system-gdbinit.
5459 (stamp-system-gdbinit): New rule.
5460 (clean-system-gdbinit, install-system-gdbinit)
5461 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5462 (install-only): Add dependency on install-system-gdbinit.
5463 (uninstall): Add dependency on uninstall-system-gdbinit.
5464 (clean): Add dependency on clean-system-gdbinit.
5465 * system-gdbinit/elinos.py: New file.
5466 * system-gdbinit/wrs-linux.py: New file.
5467
1509e573
JB
54682013-05-21 Joel Brobecker <brobecker@adacore.com>
5469
5470 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5471
c5867ab6
HZ
54722013-05-21 Hui Zhu <hui@codesourcery.com>
5473
5474 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5475 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5476 * mi/mi-cmd-break.c (ctype.h): New include.
5477 (gdb_obstack.h): New include.
5478 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5479 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5480 (mi_cmd_dprintf_insert): New.
5481 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5482 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5483
7d38e38f
TT
54842013-05-20 Tom Tromey <tromey@redhat.com>
5485
5486 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5487
97b77b39
TT
54882013-05-20 Tom Tromey <tromey@redhat.com>
5489
5490 * python/py-value.c (valpy_get_dynamic_type): Simplify
5491 dynamic_type assignment. Use Py_XINCREF.
5492
53e66479
TT
54932013-05-20 Tom Tromey <tromey@redhat.com>
5494
5495 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5496
dcf87832
TT
54972013-05-20 Tom Tromey <tromey@redhat.com>
5498
5499 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5500 (gdbpy_selected_frame): Move object-construction code
5501 out of TRY_CATCH.
5502
aa36459a
TT
55032013-05-20 Tom Tromey <tromey@redhat.com>
5504
5505 * python/py-arch.c (gdbpy_initialize_arch): Use
5506 gdb_pymodule_addobject.
5507 * python/py-block.c (gdbpy_initialize_blocks): Use
5508 gdb_pymodule_addobject.
5509 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5510 gdb_pymodule_addobject.
5511 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5512 gdb_pymodule_addobject.
5513 * python/py-event.c (gdbpy_initialize_event_generic): Use
5514 gdb_pymodule_addobject.
5515 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5516 gdb_pymodule_addobject.
5517 * python/py-evts.c (add_new_registry): Use
5518 gdb_pymodule_addobject.
5519 (gdbpy_initialize_py_events): Likewise.
5520 * python/py-finishbreakpoint.c
5521 (gdbpy_initialize_finishbreakpoints): Use
5522 gdb_pymodule_addobject.
5523 * python/py-frame.c (gdbpy_initialize_frames): Use
5524 gdb_pymodule_addobject.
5525 * python/py-function.c (gdbpy_initialize_functions): Use
5526 gdb_pymodule_addobject.
5527 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5528 gdb_pymodule_addobject.
5529 * python/py-infthread.c (gdbpy_initialize_thread): Use
5530 gdb_pymodule_addobject.
5531 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5532 gdb_pymodule_addobject.
5533 * python/py-param.c (gdbpy_initialize_parameters): Use
5534 gdb_pymodule_addobject.
5535 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5536 gdb_pymodule_addobject.
5537 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5538 gdb_pymodule_addobject.
5539 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5540 gdb_pymodule_addobject.
5541 * python/py-type.c (gdbpy_initialize_types): Use
5542 gdb_pymodule_addobject.
5543 * python/py-utils.c (gdb_pymodule_addobject): New function.
5544 * python/py-value.c (gdbpy_initialize_values): Use
5545 gdb_pymodule_addobject.
5546 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5547 * python/python.c (_initialize_python): Use
5548 gdb_pymodule_addobject.
5549
3d4a3c3e
TT
55502013-05-20 Tom Tromey <tromey@redhat.com>
5551
5552 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5553 * python/py-param.c (get_set_value, get_show_value): Use
5554 explicit decrefs.
5555 * python/python.c (start_type_printers, apply_type_printers):
5556 Use explicit decrefs.
5557
72ff8829
TT
55582013-05-20 Tom Tromey <tromey@redhat.com>
5559
5560 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5561 incref the module.
5562
02146ba5
TT
55632013-05-20 Tom Tromey <tromey@redhat.com>
5564
5565 * python/python.c (gdbpy_run_events): Decref the result
5566 of PyObject_CallObject.
5567
33ee792f
TT
55682013-05-20 Tom Tromey <tromey@redhat.com>
5569
5570 * python/py-symtab.c (set_sal): Use
5571 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5572 (symtab_and_line_to_sal_object): Update.
5573
fcb49fc8
TT
55742013-05-20 Tom Tromey <tromey@redhat.com>
5575
5576 * python/py-param.c (compute_enum_values): Decref 'item'.
5577
0646da15
TT
55782013-05-20 Tom Tromey <tromey@redhat.com>
5579
5580 * mi/mi-main.c: Include python-internal.h.
5581 (mi_cmd_list_features): Check gdb_python_initialized.
5582 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5583 (python_inferior_exit, python_new_objfile, add_thread_object)
5584 (delete_thread_object, py_free_inferior): Check
5585 gdb_python_initialized.
5586 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5587 gdb_python_initialized.
5588 * python/py-type.c (save_objfile_types): Check
5589 gdb_python_initialized.
5590 * python/python-internal.h (gdb_python_initialized): Declare.
5591 * python/python.c (ensure_python_env): Throw exception if
5592 Python not initialized.
5593 (before_prompt_hook, source_python_script_for_objfile)
5594 (start_type_printers, apply_type_printers,
5595 free_type_printers): Check gdb_python_initialized.
5596 * varobj.c (varobj_get_display_hint)
5597 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5598 (install_new_value_visualizer, varobj_set_visualizer)
5599 (value_get_print_value): Check gdb_python_initialized.
5600
999633ed
TT
56012013-05-20 Tom Tromey <tromey@redhat.com>
5602
5603 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5604 Check errors.
5605 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5606 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5607 Check errors.
5608 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5609 Check errors.
5610 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5611 Check errors.
5612 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5613 Check errors.
5614 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5615 init function to return 'int'.
5616 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5617 Return 'int'. Check errors.
5618 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5619 Check errors.
5620 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5621 Return 'int'. Check errors.
5622 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5623 Check errors.
5624 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5625 Check errors.
5626 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5627 Check errors.
5628 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5629 Check errors.
5630 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5631 Check errors.
5632 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5633 Check errors.
5634 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5635 Check errors.
5636 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5637 Check errors.
5638 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5639 Check errors.
5640 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5641 Check errors.
5642 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5643 Check errors.
5644 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5645 Check errors.
5646 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5647 Check errors.
5648 * python/python-internal.h (gdbpy_initialize_auto_load,
5649 gdbpy_initialize_values, gdbpy_initialize_frames,
5650 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5651 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5652 gdbpy_initialize_blocks, gdbpy_initialize_types,
5653 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5654 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5655 gdbpy_initialize_finishbreakpoints,
5656 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5657 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5658 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5659 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5660 gdbpy_initialize_signal_event,
5661 gdbpy_initialize_breakpoint_event,
5662 gdbpy_initialize_continue_event,
5663 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5664 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5665 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5666 * python/python.c (gdb_python_initialized): New global.
5667 (gdbpy_initialize_events): Return 'int'. Check errors.
5668 (_initialize_python): Check errors. Set
5669 gdb_python_initialized.
5670
18868860
TT
56712013-05-20 Tom Tromey <tromey@redhat.com>
5672
5673 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5674 Decref the reslut of PyObject_CallMethod.
5675
9f4ff0c2
TT
56762013-05-20 Tom Tromey <tromey@redhat.com>
5677
5678 * python/py-event.c (gdbpy_initialize_event_generic): Return
5679 early if PyType_Ready fails.
5680
0d3a2e8a
TT
56812013-05-20 Tom Tromey <tromey@redhat.com>
5682
5683 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5684 as 'default' in the switch.
5685
b86af38a
TT
56862013-05-20 Tom Tromey <tromey@redhat.com>
5687
5688 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5689 get_addr_from_python calls out of TRY_CATCH.
5690 (infpy_write_memory, infpy_search_memory): Likewise.
5691 * python/py-utils.c (get_addr_from_python): Return negative
5692 value on error. Use TRY_CATCH.
5693 * python/python-internal.h (get_addr_from_python): Use
5694 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5695
c127ec58
TT
56962013-05-20 Tom Tromey <tromey@redhat.com>
5697
5698 * python/py-event.c (evpy_emit_event): Decref the
5699 result of PyObject_CallFunctionObjArgs.
5700
ba327838
TT
57012013-05-20 Tom Tromey <tromey@redhat.com>
5702
5703 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5704 Correctly decref.
5705
d8191432
TT
57062013-05-20 Tom Tromey <tromey@redhat.com>
5707
5708 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5709
5d153bd1
TT
57102013-05-20 Tom Tromey <tromey@redhat.com>
5711
5712 * python/py-event.h (gdbpy_initialize_event_generic): Use
5713 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5714 * python/py-evts.c (add_new_registry): Use
5715 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5716 * python/python-internal.h
5717 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5718
56cc411c
TT
57192013-05-20 Tom Tromey <tromey@redhat.com>
5720
5721 * python/py-arch.c (archpy_disassemble): Update.
5722 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5723 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5724 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5725 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5726 macro.
5727 (GDB_PY_HANDLE_EXCEPTION): Update.
5728 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5729
8919e174
TT
57302013-05-20 Tom Tromey <tromey@redhat.com>
5731
5732 * python/python-internal.h (events_object_type): Remove.
5733
9b08f225
TT
57342013-05-20 Tom Tromey <tromey@redhat.com>
5735
f5aee5ee
AM
5736 * python/py-event.h (evpy_emit_event): Use
5737 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5738 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5739 New macro.
9b08f225 5740
f04010ff
TT
57412013-05-20 Tom Tromey <tromey@redhat.com>
5742
5743 * py-evtregistry.c (create_event_object): Decref
5744 eventregistry_object if PyList_New fails.
5745
3919fd96
TT
57462013-05-20 Tom Tromey <tromey@redhat.com>
5747
5748 * py-cmd.c (gdbpy_string_to_argv): Check result of
5749 PyList_New.
5750
0430e8cb
TT
57512013-05-20 Tom Tromey <tromey@redhat.com>
5752
5753 * python/python.c (before_prompt_hook): Add cleanup to
5754 decref 'hook'.
5755
764123e4
TT
57562013-05-20 Tom Tromey <tromey@redhat.com>
5757
5758 * python/py-function.c (fnpy_init): Decref result of
5759 PyObject_GetAttrString.
5760
634c58be
TT
57612013-05-20 Tom Tromey <tromey@redhat.com>
5762
5763 * python/py-threadevent.c (get_event_thread): Use
5764 CPYCHECKER_RETURNS_BORROWED_REF.
5765 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5766 New define.
5767 (pspace_to_pspace_object, objfile_to_objfile_object)
5768 (find_thread_object): Use it.
5769
62eec1a5
TT
57702013-05-20 Tom Tromey <tromey@redhat.com>
5771
5772 * python/py-arch.c (arch_object_type): Use
5773 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5774 * python/py-block.c (block_syms_iterator_object_type):
5775 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5776 * python/py-bpevent.c (breakpoint_event_object_type):
5777 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5778 * python/py-cmd.c (cmdpy_object_type): Use
5779 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5780 * python/py-continueevent.c (continue_event_object_type):
5781 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5782 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5783 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5784 * python/py-events.h (thread_event_object_type):
5785 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5786 * python/py-evtregistry.c (eventregistry_object_type): Use
5787 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5788 * python/py-exitedevent.c (exited_event_object_type):
5789 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5790 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5791 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5792 * python/py-function.c (fnpy_object_type): Use
5793 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5794 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5795 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5796 * python/py-infthread.c (thread_object_type): Use
5797 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5798 * python/py-lazy-string.c (lazy_string_object_type):
5799 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5800 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5801 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5802 * python/py-objfile.c (objfile_object_type): Use
5803 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5804 * python/py-param.c (parmpy_object_type):
5805 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5806 * python/py-progspace.c (pspace_object_type):
5807 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5808 * python/py-signalevent.c (signal_event_object_type):
5809 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5810 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5811 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5812 * python/py-type.c (type_object_type, field_object_type)
5813 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5814 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5815 define.
5816 (value_object_type, block_object_type, symbol_object_type)
5817 (event_object_type, stop_event_object_type, breakpoint_object_type)
5818 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5819
81ea8796
AT
58202013-05-20 Andreas Tobler <andreas@fgznet.ch>
5821
5822 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5823 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5824
a2ce51a0
DE
58252013-05-20 Doug Evans <dje@google.com>
5826
5827 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5828 For Fission.
5829 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5830 reading_dwo_directly.
5831 (struct signatured_type): New member dwo_unit.
5832 (struct die_reader_specs): New member comp_dir.
5833 (create_signatured_type_table_from_index): Use malloc for
5834 all_type_units instead of objfile's obstack.
5835 (create_all_type_units): Ditto.
5836 (fill_in_sig_entry_from_dwo_entry): New function.
5837 (add_type_unit): New function.
5838 (lookup_dwo_signatured_type): New function.
5839 (lookup_dwp_signatured_type): New function.
5840 (lookup_signatured_type): New arg cu. All callers updated.
5841 (init_cu_die_reader): Initialize comp_dir.
5842 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5843 Change assert of matching type signatures to call error on mismatch.
5844 (lookup_dwo_unit): Add assert.
5845 (init_tu_and_read_dwo_dies): New function.
5846 (init_cutu_and_read_dies): Call it.
5847 (build_type_unit_groups): Handle case of no type unit groups created.
5848 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5849 (lookup_dwo_cutu): Tweak complaint.
5850 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5851 (dwarf2_per_objfile_free): Free all_type_units.
5852
a25cd31f
JB
58532013-05-20 Joel Brobecker <brobecker@adacore.com>
5854
5855 * windows-nat.c (handle_unload_dll): Add missing empty line.
5856
4d804846
JB
58572013-05-20 Joel Brobecker <brobecker@adacore.com>
5858
5859 * dwarf2read.c (prototyped_function_p): New function.
5860 (read_subroutine_type): Use it.
5861
1c432e72
JB
58622013-05-20 Joel Brobecker <brobecker@adacore.com>
5863
5864 * rs6000-aix-tdep.c: De-indent some example code provided
5865 as a comment.
5866
4feebbdd
EBM
58672013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5868
5869 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5870 region is ok for a hardware watchpoint using the new ptrace interface
5871 on Power servers.
5872
7d0c9981
DE
58732013-05-17 Doug Evans <dje@google.com>
5874
5875 * NEWS: Mention new maintenance commands check-symtabs, and
5876 expand-symtabs, and renamed check-psymtabs.
5877 * psymtab.c (maintenance_check_psymtabs): Renamed from
5878 maintenance_check_symtabs. Only process already-expanded symbol
5879 tables.
5880 (_initialize_psymtab): Update.
5881 * symmisc.c (maintenance_check_symtabs): New function.
5882 (maintenance_expand_name_matcher): New function
5883 (maintenance_expand_file_matcher): New function
5884 (maintenance_expand_symtabs): New function.
5885 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5886 commands.
5887
6cbc7c3d
TT
58882013-05-17 Tom Tromey <tromey@redhat.com>
5889
5890 * python/py-inferior.c (infpy_read_memory): Don't call
5891 PyErr_SetString if PyObject_New fails.
5892 * python/py-frame.c (frame_info_to_frame_object): Don't call
5893 PyErr_SetString if PyObject_New fails.
5894
a48b32c0
L
58952013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5896
5897 * acinclude.m4: Add check for dlopen in libdl.
5898 * configure.ac: Ditto.
5899 * configure: Regenerate.
5900
3de661e6
PM
59012013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5902
5903 * frame.c (frame_stash): Convert to htab.
5904 (frame_addr_hash): New function.
5905 (frame_addr_hash_eq): New function.
5906 (frame_stash_create): Convert function to create
5907 a hash table.
5908 (frame_stash_add): Convert function to add an entry to a hash
5909 table.
5910 (frame_stash_find): Convert function to search the hash table.
5911 (frame_stash_invalidate): Convert function to empty the hash
5912 table.
5913 (get_frame_id): Only add to stash if a frame_id is created.
5914 (_initialize_frame): Call frame_stash_create.
5915
bb4168a9 59162013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5917
5918 * configure.ac: Ensure MIG is available when building for GNU Hurd
5919 hosts.
5920 * configure: Regenerate.
5921
d1be3247
JB
59222013-05-16 Joel Brobecker <brobecker@adacore.com>
5923
5924 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5925
b8fea896
JB
59262013-05-16 Joel Brobecker <brobecker@adacore.com>
5927
5928 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5929 all cleanups are done before returning from this function.
5930
af880d85
JB
59312013-05-15 Joel Brobecker <brobecker@adacore.com>
5932
5933 * utils.h: #include "exceptions.h".
5934 (enum errors): Remove partial declaration.
5935
356a5233
JB
59362013-05-15 Joel Brobecker <brobecker@adacore.com>
5937
5938 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5939 * gdbarch.h, gdbarch.c: Regenerate.
5940 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5941 handling.
5942
5943 * rs6000-aix-tdep.h: New file.
5944 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5945 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5946 "xml-utils.h".
5947 (struct field_info, struct ld_info_desc): New types.
5948 (ld_info32_desc, ld_info64_desc): New static constants.
5949 (struct ld_info): New type.
5950 (rs6000_aix_extract_ld_info): New function.
5951 (rs6000_aix_shared_library_to_xml): Likewise.
5952 (rs6000_aix_ld_info_to_xml): Likewise.
5953 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5954 (rs6000_aix_init_osabi): Add call to
5955 set_gdbarch_core_xfer_shared_libraries_aix.
5956 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5957 Remove "xml-utils.h" include.
5958 (LdInfo): Delete typedef.
5959 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5960 Delete macros.
5961 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5962 Adjust code accordingly.
5963 (rs6000_core_ldinfo): Delete, folded into
5964 rs6000_aix_core_xfer_shared_libraries_aix.
5965 (rs6000_xfer_shared_library): Delete.
5966 (rs6000_xfer_shared_libraries): Reimplement.
5967
742ce053
MM
59682013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5969
5970 * record.c (record_goto_cmdlist): New.
5971 (cmd_record_goto): Split into this ...
5972 (cmd_record_goto_begin): ... this
5973 (cmd_record_goto_end): ... and this.
5974 (_initialize_record): Change "record goto" to prefix command.
5975 Add commands for "record goto begin" and "record goto end".
5976 Add an alias for "record goto start" to "record goto begin".
5977
e93ba630
JK
59782013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5979
5980 * linespec.c (convert_linespec_to_sals): New comment for
5981 SOURCE_FILENAME assignment.
5982
5821aace
JK
59832013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5984
5985 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5986 internal_warning.
5987
a1b8c4cc
TT
59882013-05-14 Tom Tromey <tromey@redhat.com>
5989
5990 * eval.c (parse_and_eval_long): Make 'exp' const.
5991 * value.h (parse_and_eval_long): Update.
5992
23b3a2c3
TT
59932013-05-14 Tom Tromey <tromey@redhat.com>
5994
5995 * ui-file.c (gdb_fopen): Make arguments const.
5996 * ui-file.h (gdb_fopen): Make arguments const.
5997
ca623f82
TT
59982013-05-14 Tom Tromey <tromey@redhat.com>
5999
6000 * remote.c (remote_set_trace_notes): Make arguments const.
6001 * target.c (update_current_target): Update cast.
6002 * target.h (to_set_trace_notes): Make arguments const.
6003
503ebb2c
TT
60042013-05-14 Tom Tromey <tromey@redhat.com>
6005
6006 * go32-nat.c (go32_terminal_info): Make 'args' const.
6007 * inferior.h (child_terminal_info): Update.
6008 * inflow.c (child_terminal_info): Make 'args' const.
6009 * target.c (default_terminal_info): Make 'args' const.
6010 (debug_to_terminal_save_ours): Likewise.
6011 * target.h (struct target_ops) <to_terminal_info>: Make argument
6012 const.
6013
85e1311a
TT
60142013-05-13 Tom Tromey <tromey@redhat.com>
6015
6016 * gcore.c (create_gcore_bfd): Make 'filename' const.
6017 * gcore.h (create_gcore_bfd): Make 'filename' const.
6018 * record-full.c (record_full_save): Make 'recfilename' const.
6019 * target.c (target_save_record): Make 'filename' const.
6020 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6021 const.
6022 (target_save_record): Likewise.
6023
d62bfeaf
TT
60242013-05-13 Tom Tromey <tromey@redhat.com>
6025
f5aee5ee 6026 PR gdb/15338:
d62bfeaf
TT
6027 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6028 ranges section has been read.
6029
ac1ca910
TT
60302013-05-13 Tom Tromey <tromey@redhat.com>
6031
6032 PR exp/15364:
6033 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6034 STRUCTOP_PTR>: Return a not_lval value for
6035 EVAL_AVOID_SIDE_EFFECTS.
6036 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6037 for EVAL_AVOID_SIDE_EFFECTS.
6038
36d1c68c
JB
60392013-05-13 Joel Brobecker <brobecker@adacore.com>
6040
6041 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6042 floating point registers to register type before storing
6043 value.
6044 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6045 Likewise.
6046
21ff4686
TT
60472013-05-10 Joel Brobecker <brobecker@adacore.com>
6048 Tom Tromey <tromey@redhat.com>
6049
6050 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6051 New functions.
6052 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6053 Declare.
6054 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6055 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6056 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6057 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6058
d3685d60
TT
60592013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6060 Tom Tromey <tromey@redhat.com>
6061
6062 PR build/15414:
6063 * configure: Rebuild.
6064 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6065 with -Wno-format.
6066
eb9fe518
PA
60672013-05-10 Pedro Alves <palves@redhat.com>
6068
6069 * remote.c (_initialize_remote): Fix spelling of
6070 qXfer:traceframe-info:read packet in packet config command.
6071
9779ab84
PA
60722013-05-10 David Taylor <dtaylor@emc.com>
6073
6074 PR remote/15455
6075
6076 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6077 "QTro" at start of packet.
6078
060cfbef
JB
60792013-05-10 Joel Brobecker <brobecker@adacore.com>
6080
6081 * solib-aix.c (solib_aix_relocate_section_addresses):
6082 For the .bss section action, apply the same offset as
6083 the .data section.
6084
ab1c4e88
JB
60852013-05-10 Joel Brobecker <brobecker@adacore.com>
6086
6087 * solib-aix.c (solib_aix_relocate_section_addresses):
6088 Remove FIXME comment.
6089
c1357578
JB
60902013-05-10 Joel Brobecker <brobecker@adacore.com>
6091
6092 PR tdep/15420:
6093 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6094 New functions, directly copied from sparc-sol-thread.c.
6095 * sparc-sol-thread.c: Delete.
6096 * configure.ac: Remove code handling sparc-solaris-thread.c.
6097 * configure: Regenerate.
6098
1e611234
PM
60992013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6100
6101 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6102 filter logic.
6103 (backtrace_command): Add "no-filters" option parsing.
6104 (_initialize_stack): Alter help to reflect "no-filters" option.
6105 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6106 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6107 (py-frame.o): Add target
6108 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6109 filter files.
6110 * python/python.h: Add new frame filter constants, and flag enum.
6111 (apply_frame_filter): Add definition.
6112 * python/python.c (apply_frame_filter): New non-Python
6113 enabled function.
6114 * python/py-utils.c (py_xdecref): New function.
6115 (make_cleanup_py_xdecref): Ditto.
6116 * python/py-objfile.c: Declare frame_filters dictionary.
6117 (objfpy_dealloc): Add frame_filters dealloc.
6118 (objfpy_new): Initialize frame_filters attribute.
6119 (objfile_to_objfile_object): Ditto.
6120 (objfpy_get_frame_filters): New function.
6121 (objfpy_set_frame_filters): New function.
6122 * python/py-progspace.c: Declare frame_filters dictionary.
6123 (pspy_dealloc): Add frame_filters dealloc.
6124 (pspy_new): Initialize frame_filters attribute.
6125 (pspacee_to_pspace_object): Ditto.
6126 (pspy_get_frame_filters): New function.
6127 (pspy_set_frame_filters): New function.
6128 * python/py-framefilter.c: New file.
6129 * python/lib/gdb/command/frame_filters.py: New file.
6130 * python/lib/gdb/frames.py: New file.
6131 * python/lib/gdb/__init__.py: Initialize global frame_filters
6132 dictionary
6133 * python/lib/gdb/FrameDecorator.py: New file.
6134 * python/lib/gdb/FrameIterator.py: New file.
6135 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6136 * mi/mi-cmds.h: Declare.
6137 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6138 --no-frame-filter logic, and Python frame filter logic.
6139 (stack_enable_frame_filters): New function.
6140 (parse_no_frame_option): Ditto.
6141 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6142 filter logic.
6143 (mi_cmd_stack_list_locals): Ditto.
6144 (mi_cmd_stack_list_args): Ditto.
6145 (mi_cmd_stack_list_variables): Ditto.
6146 * NEWS: Add frame filter note.
6147
2cb9c859
DE
61482013-05-09 Doug Evans <dje@google.com>
6149
6bf667bb
DE
6150 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6151 All callers updated.
6152 (syms_from_objfile): Ditto. Make static.
6153 (symbol_file_add_with_addrs): Renamed from
6154 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6155 num_offsets. All callers updated.
6156 * symfile.h (syms_from_objfile): Delete.
6157
2cb9c859
DE
6158 * symfile.c (decrement_reading_symtab): Add assert.
6159 (increment_reading_symtab): Ditto.
6160
40aea477
JB
61612013-05-09 Joel Brobecker <brobecker@adacore.com>
6162
6163 * source.c (forward_search_command): Replace call to getc
6164 by call to fgetc.
6165 (reverse_search_command): Likewise.
6166
680d1742
DE
61672013-05-08 Doug Evans <dje@google.com>
6168
6169 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6170 matching test.
6171
17e760ae
JB
61722013-05-08 Joel Brobecker <brobecker@adacore.com>
6173
6174 * sol-thread.c (info_cb): Factorize the code a little.
6175
c0f5f490
JB
61762013-05-08 Joel Brobecker <brobecker@adacore.com>
6177
6178 * sol-thread.c (info_cb): Rework the output of the "maintenance
6179 info sol-threads" command a bit.
6180
5d74e061
JB
61812013-05-08 Joel Brobecker <brobecker@adacore.com>
6182
6183 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6184 Replace ti.ti_startfunc by ti.ti_pc.
6185
814a3ff7
JB
61862013-05-08 Joel Brobecker <brobecker@adacore.com>
6187
6188 * solib-aix.c (solib_aix_free_library_list): New function
6189 for the case where HAVE_LIBEXPAT is not defined.
6190
58ce7251
SDJ
61912013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6192
6193 PR breakpoints/15413:
6194 * breakpoint.c (condition_completer): Simplify the code to
6195 disconsider multiple locations of breakpoints when completing the
6196 "condition" command.
6197
be8b1ea6
PM
61982013-05-07 Pierre Muller <muller@sourceware.org>
6199
6200 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6201 instead of <sys/wait.h>.
6202
1e52bda6
PM
62032013-05-07 Pierre Muller <muller@sourceware.org>
6204
6205 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6206 trailing new line from warning message.
6207
27fd0c6b
PM
62082013-05-07 Pierre Muller <muller@sourceware.org>
6209
6210 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6211 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6212
e228ac87
JB
62132013-05-07 Joel Brobecker <brobecker@adacore.com>
6214
6215 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6216 error message (ARI fix).
6217
62182013-05-07 Joel Brobecker <brobecker@adacore.com>
6219
6220 * features/library-list-aix.dtd: Replace library-list by
6221 library-list-aix.
6222 * rs6000-nat.c: Replace library-list by library-list-aix
6223 throughout.
6224 * solib-aix.c: Likewise.
6225
62262013-05-07 Joel Brobecker <brobecker@adacore.com>
6227
6228 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6229 Renames TARGET_OBJECT_AIX_LIBRARIES.
6230 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6231 TARGET_OBJECT_LIBRARIES_AIX throughout.
6232 * solib-aix.c: Likwise.
6233
26a4dda9
YQ
62342013-05-07 Yao Qi <yao@codesourcery.com>
6235
6236 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6237 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6238
3582629f
YQ
62392013-05-07 Yao Qi <yao@codesourcery.com>
6240
6241 * solib-dsbt.c (enable_break): Declare.
6242 (dsbt_current_sos): Remove call to enable_break2.
6243 (enable_break2): Rename to enable_break. Set solib breakpoint
6244 on '_dl_debug_state'.
6245 (enable_break): Remove.
6246
aacbb8a5
LM
62472013-05-07 Luis Machado <lgustavo@codesourcery.com>
6248
6249 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6250 debug state prior to replicating existing hardware watchpoints or
6251 breakpoints.
6252
0c013353
JK
62532013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6254
6255 * gcore.c (gcore_create_callback): Ignore sections with
6256 separate_debug_objfile_backlink != NULL.
6257
a1217d97
SL
62582013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6259 Andrew Jenner <andrew@codesourcery.com>
6260 Chung-Lin Tang <cltang@codesourcery.com>
6261 Julian Brown <julian@codesourcery.com>
6262
6263 Based on the nios2-elf port from Altera Corporation.
6264
6265 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6266 nios2-linux-tdep.o.
6267 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6268 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6269 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6270 * nios2-tdep.h: New.
6271 * nios2-tdep.c: New.
6272 * nios2-linux-tdep.c: New.
6273 * features/Makefile (WHICH): Add nios2-linux.
6274 (nios2-linux-expedite): Set.
6275 * features/nios2-cpu.xml: New.
6276 * features/nios2.xml: New.
6277 * features/nios2-linux.xml: New.
6278 * features/nios2.c: New (autogenerated).
6279 * features/nios2-linux.c: New (autogenerated).
6280 * regformats/nios2-linux.dat: New (autogenerated).
6281 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6282 and commands.
6283
0892cb63
DE
62842013-05-06 Doug Evans <dje@google.com>
6285
3b7bacac
DE
6286 * symfile.c: Whitespace cleanup.
6287
0892cb63
DE
6288 * solist.h (struct target_so_ops): New member clear_so.
6289 * solib-svr4.c (svr4_clear_so): New function.
6290 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6291 * solib.c (clear_so): Renamed from free_so_symbols.
6292 All callers updated. Call target clear_so if it exists.
6293
40501e00
TT
62942013-05-06 Tom Tromey <tromey@redhat.com>
6295
6296 * ada-lang.c (ada_value_primitive_packed_val): Don't
6297 call value_incref.
6298 * value.c (set_value_parent): Incref the new parent and decref
6299 the old parent.
6300 (value_copy, value_primitive_field): Use set_value_parent.
6301
b6807d98
TT
63022013-05-06 Tom Tromey <tromey@redhat.com>
6303
6304 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6305 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6306 if needed.
6307 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6308 * dwarf2read.c (write_constant_as_bytes)
6309 (dwarf2_fetch_constant_bytes): New functions.
6310
3aef2284
TT
63112013-05-06 Tom Tromey <tromey@redhat.com>
6312
6313 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6314 parameters.
6315 (dwarf2_const_value_attr): Update.
6316
66f65e2b
TT
63172013-05-06 Tom Tromey <tromey@redhat.com>
6318
6319 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6320 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6321 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6322 Remove declaration.
6323
7919a973
TT
63242013-05-06 Tom Tromey <tromey@redhat.com>
6325
6326 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6327 objfile's obstack.
6328
a7bfba49
DE
63292013-05-06 Doug Evans <dje@google.com>
6330
3189cb12
DE
6331 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6332 * stabsread.h (process_one_symbol): Update declaration.
6333 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6334 * elfread.c (elf_symfile_relocate_probe): Ditto.
6335 * psymtab.c (relocate_psymtabs): Ditto.
6336 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6337 (objfile_relocate): Ditto.
6338 * objfiles.h (objfile_relocate): Update declaration.
6339 * symfile.c (relative_addr_info_to_section_offsets): Constify
6340 addrs parameter.
6341 (default_symfile_offsets): Ditto.
6342 (syms_from_objfile_1): Constify offsets parameter.
6343 (syms_from_objfile): Ditto.
6344 (symbol_file_add_with_addrs_or_offsets): Ditto.
6345 (symfile_map_offsets_to_segments): Constify data parameter.
6346 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6347 delta parameters of member relocate.
6348 (struct sym_probe_fns): Constify new_offsets,
6349 delta parameters of member sym_relocate_probe.
6350 (struct sym_fns): Constify section_addr_info parameter of member
6351 sym_offsets.
6352 (relative_addr_info_to_section_offsets): Update declaration.
6353 (default_symfile_offsets): Ditto.
6354 (syms_from_objfile): Ditto.
6355 (symfile_map_offsets_to_segments): Ditto.
6356
a7bfba49
DE
6357 * symfile.c (syms_from_objfile_1): Use correct section count when
6358 objfile->sf == NULL.
6359
5f8e0b8f
MF
63602013-05-06 Mike Frysinger <vapier@gentoo.org>
6361
6362 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6363
ea52d893
DE
63642013-05-06 Doug Evans <dje@google.com>
6365
6366 * psympriv.h (struct partial_symtab): Augment comment for member
6367 section_offsets.
6368
4d1eb6b4
JB
63692013-05-06 Joel Brobecker <brobecker@adacore.com>
6370
6371 Reimplement shared library support on ppc-aix...
6372 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6373 * features/library-list-aix.dtd: New file.
6374 * solib-aix.h, solib-aix.c: New file.
6375 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6376 (rs6000_find_toc_address_hook): Delete.
6377 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6378 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6379 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6380 "xml-utils.h".
6381 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6382 (vmap_symtab, fixup_breakpoints): Delete.
6383 (rs6000_xfer_shared_libraries): New function.
6384 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6385 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6386 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6387 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6388 (rs6000_xfer_shared_library): New function.
6389 (find_toc_address): Delete.
6390 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6391 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6392 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6393 before creating minimal symbol. Adjust function description
6394 accordingly.
6395 (scan_xcoff_symtab): Replace call to
6396 prim_record_minimal_symbol_and_info by call to
6397 record_minimal_symbol.
6398 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6399 around default_symfile_offsets.
6400 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6401 powerpc-aix targets.
6402 * config/rs6000/nm-rs6000.h: Delete.
6403 * config/powerpc/aix.mh (NAT_FILE): Delete.
6404 (NATDEPFILES): Remove xcoffsolib.o.
6405 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6406 (ALL_TARGET_OBS): Add solib-aix.o.
6407 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6408 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6409 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6410 * xcoffsolib.h, xcoffsolib.c: Delete.
6411
6412 * solib.c (reload_shared_libraries): Remove reference to
6413 SOLIB_CREATE_INFERIOR_HOOK.
6414 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6415 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6416 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6417 comment.
6418 * corelow.c (deprecated_core_resize_section_table): Delete.
6419 * exec.c: Remove include of xcoffsolib.h".
6420 (map_vmap, vmap): Delete.
6421 (exec_close_1): Remove references to vmap.
6422 (exec_file_attach): Remove vmap handling code, and reference
6423 to DEPRECATED_IBM6000_TARGET.
6424 (bfdsec_to_vmap): Delete.
6425 (exec_files_info): Remove block of code handling VMAP.
6426 * infcmd.c (post_create_inferior): Remove reference to
6427 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6428 * infrun.c (follow_exec): Remove reference to
6429 SOLIB_CREATE_INFERIOR_HOOK.
6430 * stack.c (print_frame): Remove reference to PC_SOLIB.
6431 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6432 (dsbt_relocate_main_executable): Likewise.
6433 * solib-frv.c (frv_current_sos): Likewise.
6434
0c4f667c
JB
64352013-05-06 Joel Brobecker <brobecker@adacore.com>
6436
6437 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6438 to target_write_memory and target_read_memory.
6439
726ce67c
JB
64402013-05-06 Joel Brobecker <brobecker@adacore.com>
6441
6442 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6443 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6444
c8c9911f
JB
64452013-05-06 Joel Brobecker <brobecker@adacore.com>
6446
6447 * darwin-nat.c: Replace all "%x" instances in format strings
6448 into "0x%x" throughout.
6449
fda184b6
JB
64502013-05-06 Joel Brobecker <brobecker@adacore.com>
6451
6452 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6453 gdb_assert by call to MACH_CHECK_ERROR.
6454 (darwin_attach_pid): Raise an error rather than a failed
6455 assertion when various system calls failed. Report a warning
6456 instead of raising a failed assertion when PREV_NOT is not NULL
6457 after call to mach_port_request_notification.
6458 (darwin_ptrace_me): Raise an error rather than a failed
6459 assertion when read returns nonzero.
6460
d1d69afb
JB
64612013-05-06 Joel Brobecker <brobecker@adacore.com>
6462
6463 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6464
dc90b24d
JK
64652013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6466
6467 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6468
faab9922
JK
64692013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6470
6471 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6472 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6473 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6474 a stale cleanup. Fix double free of NAME.
6475
e0ea48a0
EZ
64762013-05-04 Eli Zaretskii <eliz@gnu.org>
6477
6478 * windows-nat.c (windows_delete_thread): Accept an additional
6479 argument, the thread's exit code, and announce thread death when
6480 print_thread_events is non-zero and we are deleting a thread that
6481 is not the main thread.
6482 (get_windows_debug_event): Pass thread exit code to
6483 windows_delete_thread.
6484
83b2706a
KB
64852013-05-03 Kevin Buettner <kevinb@redhat.com>
6486
6487 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6488 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6489 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6490 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6491 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6492 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6493 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6494 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6495 (gdbarch_tdep): New struct.
6496 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6497 E_NUM_REGS.
6498 (v850e3v5_register_name): New function.
6499 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6500 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6501 code handling the struct return conventions for the RH850 ABI.
6502 Update all callers.
6503 (v850_eight_byte_align_p): New function.
6504 (v850_push_call_dummy): Push structs by value, not by reference
6505 for the RH850 ABI. Add support for eight byte alignment.
6506 (v850_dbtrap_breakpoint_from_pc): New function.
6507 (v850_gdbarch_init): Add ABI detection code. Register
6508 v850e3v5_register_name for the v850e3v5 architecture. Set the
6509 number of registers for v850e3v5. Register
6510 v850_dbtrap_breakpoint_from_pc as appropriate.
6511 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6512
d445b2f6
DE
65132013-05-03 Doug Evans <dje@google.com>
6514
6515 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6516 of bfd_count_sections.
6517 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6518 * symfile.c (default_symfile_offsets): Ditto.
6519 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6520 one entry, not bfd_count_sections entries.
6521
b3ce41ea
KB
65222013-05-03 Kevin Buettner <kevinb@redhat.com>
6523
6524 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6525 `save' and `restore' register groups. Don't include SPL
6526 or SPH in these groups.
6527 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6528 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6529 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6530 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6531 dwarf2_append_unwinders().
6532
96f7d3f1
PW
65332013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6534
6535 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6536 ignore SIGINT and SIGTRAP in case these internal signals are
6537 caught explicitely.
6538
b9dd1947
JB
65392013-05-01 Joel Brobecker <brobecker@adacore.com>
6540
6541 * darwin-nat.c (darwin_read_write_inferior): Change types
6542 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6543 of copy_count to "mach_msg_type_number_t".
6544 (darwin_read_dyld_info): Change type of parameter
6545 rdaddr to "gdb_byte *".
6546
4ca18a63
JB
65472013-05-01 Joel Brobecker <brobecker@adacore.com>
6548
6549 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6550 of &info->load_map from "char *" to "gdb_byte *".
6551
2b692d32
JB
65522013-05-01 Joel Brobecker <brobecker@adacore.com>
6553
6554 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6555 from "char *" to "gdb_byte *".
6556 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6557
a98c29a0
DE
65582013-04-30 Doug Evans <dje@google.com>
6559
6a506a2d
DE
6560 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6561 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6562 DWO stub. If DWO isn't found, just use stub.
6563 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6564
a98c29a0
DE
6565 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6566 calling init_cutu_and_read_dies.
6567
f92b06da
WT
65682013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6569
6570 * target-descriptions.c (maint_print_c_tdesc_cmd):
6571 Add case to parse structures as register types and
6572 bitfields.
6573
95eebdcc
WT
65742013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6575
6576 * MAINTAINERS (Write After Approval): Add myself to the list.
6577
019c1128
JB
65782013-04-30 Joel Brobecker <brobecker@adacore.com>
6579
6580 * sol-thread.c (rw_common): Change type of parameter "buf"
6581 to "gdb_byte *".
6582 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6583 rw_common to "gdb_byte *" instead of "char *".
6584
5812197c
JB
65852013-04-30 Joel Brobecker <brobecker@adacore.com>
6586
6587 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6588 of local variable msym to const struct bound_minimal_symbol.
6589 Adjust use accordingly.
6590 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6591
ecccb813
TS
65922013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6593
6594 * i386gnu-nat.c (CREG_OFFSET): New macro.
6595 (creg_offset): New array.
6596 (CREG_ADDR): Use creg_offset instead of reg_offset.
6597
f1d02dd4 65982013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6599
6600 * mep-tdep.c (mep_write_pc): Delete.
6601 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6602 Add call to set_gdbarch_pc_regnum.
6603
f1d02dd4 66042013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6605
6606 * common/filestuff.c: Replace #include <dirent.h> by
6607 #include "gdb_dirent.h".
6608
f1d02dd4 66092013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6610
6611 * common/filestuff.c: Replace #include <sys/stat.h> by
6612 #include "gdb_stat.h".
6613
b385a60d
PM
66142013-04-29 Pierre Muller <muller@sourceware.org>
6615
6616 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6617 editCase function rule.
6618 (get_DW_AT_signature_type): Likewise.
6619
d27b54ad
JB
66202013-04-29 Joel Brobecker <brobecker@adacore.com>
6621
6622 * m32r-tdep.c (m32r_write_pc): Delete.
6623 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6624 Add call to set_gdbarch_pc_regnum.
6625
47d21dc5
PM
66262013-04-29 Pierre Muller <muller@sourceware.org>
6627
6628 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6629
9056882e
JB
66302013-04-29 Joel Brobecker <brobecker@adacore.com>
6631
6632 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6633
7ee4732a
YQ
66342013-04-28 Yao Qi <yao@codesourcery.com>
6635
6636 * solib-dsbt.c (fetch_loadmap): Re-indent.
6637 (displacement_from_map, enable_break2): Likewise.
6638 (dsbt_relocate_section_addresses): Likewise.
6639
2260af53 66402013-04-26 Joel Brobecker <brobecker@adacore.com>
6641
6642 GDB 7.6 released.
6643
ff546935
TT
66442013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6645
6646 PR corefiles/14983:
6647 * dwarf2read.c (process_full_comp_unit): Always create a static
6648 block.
6649
40fb6c5e
HZ
66502013-04-25 Hui Zhu <hui@codesourcery.com>
6651
6652 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6653 to loc->cmd_bytecode.
6654
74e04d1c
DE
66552013-04-24 Doug Evans <dje@google.com>
6656
6657 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6658
3cf62c1d
KS
66592013-04-22 Keith Seitz <keiths@redhat.com>
6660
6661 * tracepoint.c (trace_save): Call the writer's start method.
6662
bf9e4d0c
MB
66632013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6664
6665 PR gdb/10462
6666 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6667 before argument.
6668
5d71132c
TT
66692013-04-23 Tom Tromey <tromey@redhat.com>
6670
6671 * common/filestuff.c: Check USE_WIN32API before including
6672 sys/socket.h.
6673 (HAVE_F_GETFD): New define.
6674 (mark_cloexec): Check HAVE_F_GETFD.
6675 (gdb_open_cloexec): Change 'mode' to unsigned long.
6676 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6677 (gdb_pipe_cloexec): Check HAVE_PIPE.
6678 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6679 long.
6680
a11cfd87
HZ
66812013-04-23 Hui Zhu <hui@codesourcery.com>
6682
6683 PR gdb/15293
a11cfd87
HZ
6684 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6685
2d9442cc
HZ
66862013-04-23 Hui Zhu <hui@codesourcery.com>
6687
6688 PR gdb/15165
2d9442cc
HZ
6689 * breakpoint.c (dprintf_print_recreate): New.
6690 (save_breakpoints): Let it not save dprintf commands.
6691 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6692
614c279d
TT
66932013-04-22 Tom Tromey <tromey@redhat.com>
6694
6695 PR gdb/7912:
6696 * Makefile.in (SFILES): Add filestuff.c
6697 (COMMON_OBS): Add filestuff.o.
6698 (filestuff.o): New target.
6699 * auto-load.c (auto_load_objfile_script_1): Use
6700 gdb_fopen_cloexec.
6701 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6702 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6703 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6704 * common/agent.c (gdb_connect_sync_socket): Use
6705 gdb_socket_cloexec.
6706 * common/filestuff.c: New file.
6707 * common/filestuff.h: New file.
6708 * common/linux-osdata.c (linux_common_core_of_thread)
6709 (command_from_pid, commandline_from_pid, print_source_lines)
6710 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6711 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6712 gdb_fopen_cloexec.
6713 * common/linux-procfs.c (linux_proc_get_int)
6714 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6715 * config.in, configure: Rebuild.
6716 * configure.ac: Don't check for sys/socket.h. Check for
6717 fdwalk, pipe2.
6718 * corelow.c (core_open): Use gdb_open_cloexec.
6719 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6720 * fork-child.c (fork_inferior): Call close_most_fds.
6721 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6722 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6723 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6724 Use gdb_fopen_cloexec.
6725 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6726 gdb_open_cloexec.
6727 (linux_async_pipe): Use gdb_pipe_cloexec.
6728 * remote-fileio.c (remote_fileio_func_open): Use
6729 gdb_open_cloexec.
6730 * remote.c (remote_file_put, remote_file_get): Use
6731 gdb_fopen_cloexec.
6732 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6733 close_most_fds.
6734 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6735 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6736 * solib.c (solib_find): Use gdb_open_cloexec.
6737 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6738 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6739 (tfile_open): Use gdb_open_cloexec.
6740 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6741 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6742 * xml-support.c (xml_fetch_content_from_file): Use
6743 gdb_fopen_cloexec.
6744 * main.c (captured_main): Call notice_open_fds.
6745
5fda2332
EBM
67462013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6747
6748 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6749 'char *' to 'gdb_byte *'.
6750 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6751 'gdb_byte'.
6752
eb6c553b
YQ
67532013-04-22 Yao Qi <yao@codesourcery.com>
6754
6755 * infrun.c: Fix typo in comment.
6756
9991b207
SDJ
67572013-04-22 Andrew Haley <aph@redhat.com>
6758
6759 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6760 instead of "long".
6761
8b4833e3
YQ
67622013-04-20 Yao Qi <yao@codesourcery.com>
6763
6764 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6765 'char *' to 'gdb_byte *'. Cast the return value of
6766 'bt_ctf_get_char_array' to 'gdb_byte *'.
6767
bd3f3b55
PA
67682013-04-19 Pedro Alves <palves@redhat.com>
6769
6770 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6771 -Wpointer-sign.
6772 * configure: Regenerate.
6773
c49e7f76
PA
67742013-04-19 Pedro Alves <palves@redhat.com>
6775
6776 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6777 'void *'.
6778
12ff8552
PA
67792013-04-19 Pedro Alves <palves@redhat.com>
6780
6781 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6782 Change type of 'myaddr' parameter to gdb_byte pointer.
6783 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6784 to 'long long' pointer instead of to 'unsigned long long'.
6785 (monitor_write_memory_block, monitor_read_memory_single)
6786 (monitor_read_memory): Change type of 'myaddr' parameter to
6787 gdb_byte pointer.
6788
9c37696b
PA
67892013-04-19 Pedro Alves <palves@redhat.com>
6790
6791 * record.c (validate_history_size): Make parameter 'setting'
6792 unsigned.
6793
a398505b
PA
67942013-04-19 Pedro Alves <palves@redhat.com>
6795
6796 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6797 to 'gdb_byte *'.
6798
9f8afa72
PA
67992013-04-19 Pedro Alves <palves@redhat.com>
6800
6801 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6802 local to int.
6803
c714b426
PA
68042013-04-19 Pedro Alves <palves@redhat.com>
6805
6806 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6807 * ada-tasks.c (read_fat_string_value): Likewise.
6808
507a579c
PA
68092013-04-19 Pedro Alves <palves@redhat.com>
6810
6811 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6812 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6813 'offset', and adjust.
6814
f9d83a0b
PA
68152013-04-19 Pedro Alves <palves@redhat.com>
6816
6817 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6818 (read_index_from_section): Add cast to 'char *'.
6819
745eb4fd
PA
68202013-04-19 Pedro Alves <palves@redhat.com>
6821
6822 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6823
db5be46f
PA
68242013-04-19 Pedro Alves <palves@redhat.com>
6825
6826 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6827
0f928d68
PA
68282013-04-19 Pedro Alves <palves@redhat.com>
6829
6830 * record-full.c (record_full_get_bookmark): Change local 'ret'
6831 type to char * and add cast to gdb_byte *.
6832 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6833 string.
6834 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6835
89f6d837
PA
68362013-04-19 Pedro Alves <palves@redhat.com>
6837
6838 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6839 * python/py-prettyprint.c (print_string_repr): Change type of
6840 'output' local to char *. Add cast to gdb_byte * in
6841 LA_PRINT_STRING call.
6842 (print_children): Change type of 'output' local to char *.
6843 * python/py-value.c (valpy_string): Add cast to const char * in
6844 PyUnicode_Decode call.
6845
ce6ec7d8
PA
68462013-04-19 Pedro Alves <palves@redhat.com>
6847
6848 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6849 and change its type to 'const char *'. Adjust.
6850 (mips_send_packet): Add cast to 'char *', and remove cast to
6851 'unsigned char *'.
6852 (mips_receive_packet): Remove cast to 'unsigned char *'.
6853 (mips_load_srec): Use bfd_byte.
6854 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6855 (pmon_checkset): Make 'value' parameter unsigned.
6856
fda0389f
PA
68572013-04-19 Pedro Alves <palves@redhat.com>
6858
6859 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6860
bc20a4af
PA
68612013-04-19 Pedro Alves <palves@redhat.com>
6862
6863 * remote.c (remote_write_bytes_aux, compare_sections_command)
6864 (remote_read_qxfer)
6865 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6866 (remote_hostio_readlink, remote_bfd_iovec_pread)
6867 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6868 binary buffer, and char when buffer is used as string.
6869 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6870 (trace_save, tfile_open, traceframe_walk_blocks)
6871 (tfile_fetch_registers): Likewise.
6872
c628b528
PA
68732013-04-19 Pedro Alves <palves@redhat.com>
6874
6875 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6876 buffer and size_t size. Adjust.
6877 * ser-base.h (ser_base_write): Adjust.
6878 * ser-go32.c (cnts): Change type to size_t.
6879 (dos_write): Change prototype -- take 'void *'
6880 buffer and size_t size. Adjust.
6881 (dos_info): Print elements of 'cnts' as unsigned long.
6882 * serial.c (serial_write): Likewise.
6883 * serial.h (serial_write): Adjust.
6884 (struct serial_ops) <write>: Change prototype -- take 'void *'
6885 buffer and size_t size. Adjust.
6886
51a5cd90
PA
68872013-04-19 Pedro Alves <palves@redhat.com>
6888
6889 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6890 gdb_byte *.
6891 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6892
a9933661
PA
68932013-04-19 Pedro Alves <palves@redhat.com>
6894
6895 * alpha-tdep.c (alpha_extract_return_value): Use
6896 regcache_cooked_read_unsigned to read 'v0'.
6897
19afdd07
PA
68982013-04-19 Pedro Alves <palves@redhat.com>
6899
6900 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6901 parameters 'at', 'as' and 'offset' to uint32_t.
6902
96b32e50
PA
69032013-04-19 Pedro Alves <palves@redhat.com>
6904
6905 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6906 'is64' to signed 'int'.
6907
eb1bd1fb
PA
69082013-04-19 Pedro Alves <palves@redhat.com>
6909
6910 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6911 parameter to int *.
6912
463920bf
PA
69132013-04-19 Pedro Alves <palves@redhat.com>
6914
6915 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6916 'insnbuf' buffer type to unsigned int[].
6917
70242eb1
PA
69182013-04-19 Pedro Alves <palves@redhat.com>
6919
6920 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6921
9d1dd0e2
PA
69222013-04-19 Pedro Alves <palves@redhat.com>
6923
6924 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6925 unsigned long *.
6926
44096aee
PA
69272013-04-19 Pedro Alves <palves@redhat.com>
6928
6929 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6930 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6931 UINT_MAX.
6932 * mips-tdep.c (heuristic_fence_post): Change type to int.
6933 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6934
e4286e57
PA
69352013-04-19 Pedro Alves <palves@redhat.com>
6936
6937 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6938 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6939 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6940
001f13d8
PA
69412013-04-19 Pedro Alves <palves@redhat.com>
6942
6943 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6944 it to get a string view of the byte buffer.
6945 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6946 type to gdb_byte *. Adjust.
6947 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6948 Change local to char *.
6949 * solib-darwin.c (find_program_interpreter): Change return type to
6950 char *. Adjust.
6951 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6952 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6953 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6954 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6955 * solib-svr4.c (find_program_interpreter): Change return type to
6956 char *. Adjust.
6957 (enable_break): Change local 'interp_name' to char *.
6958 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6959 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6960 (spu_pseudo_register_write_spu): Use char for string buffer.
6961 Adjust.
6962 (info_spu_event_command, info_spu_signal_command): Add casts to
6963 'char *'.
6964
948f8e3d
PA
69652013-04-19 Pedro Alves <palves@redhat.com>
6966
6967 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6968 gdb_byte[].
6969 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6970 * ada-lang.c (ada_value_assign): Use gdb_byte.
6971 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6972 (alphanbsd_sigtramp_offset): Use gdb_byte.
6973 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6974 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6975 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6976 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6977 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6978 * arm-tdep.c (arm_stub_unwind_sniffer)
6979 (arm_displaced_init_closure): Use gdb_byte.
6980 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6981 (arm_default_thumb_le_breakpoint)
6982 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6983 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6984 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6985 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6986 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6987 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6988 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6989 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6990 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6991 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6992 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6993 (cris_store_return_value, cris_extract_return_value): Use
6994 gdb_byte.
6995 (constraint): Change type of parameter to char * from signed
6996 char*. Use gdb_byte.
6997 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6998 of local buffer to gdb_byte *.
6999 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7000 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7001 (add_address_entry): Change type of local buffer to gdb_byte[].
7002 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7003 (frv_push_dummy_call): Use gdb_byte.
7004 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7005 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7006 (hppa_hpux_supply_save_state): Use gdb_byte.
7007 * hppa-tdep.c (hppa32_push_dummy_call)
7008 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7009 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7010 (slotN_contents, replace_slotN_contents): Change type of parameter
7011 to gdb_byte *.
7012 (fetch_instruction, ia64_pseudo_register_write)
7013 (ia64_register_to_value, ia64_value_to_register)
7014 (ia64_extract_return_value, ia64_store_return_value)
7015 (ia64_push_dummy_call): Use gdb_byte.
7016 * m32c-tdep.c (m32c_return_value): Remove cast.
7017 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7018 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7019 gdb_byte.
7020 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7021 * mn10300-tdep.c (mn10300_store_return_value)
7022 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7023 gdb_byte.
7024 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7025 (moxie_process_record): Remove casts.
7026 * ppc-ravenscar-thread.c (supply_register_at_address)
7027 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7028 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7029 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7030 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7031 * remote.c (compare_sections_command): Use gdb_byte.
7032 * score-tdep.c (score7_free_memblock): Change type of parameter to
7033 gdb_byte *.
7034 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7035 gdb_byte *. Use gdb_byte.
7036 (sh_push_dummy_call_fpu): Use gdb_byte.
7037 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7038 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7039 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7040 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7041 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7042 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7043 (sh64_store_return_value, sh64_register_convert_to_virtual):
7044 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7045 (sh64_pseudo_register_write): Use gdb_byte.
7046 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7047 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7048 buffer.
7049 (irix_current_sos): Use gdb_byte.
7050 * solib-som.c (som_current_sos): Use gdb_byte.
7051 * sparc-ravenscar-thread.c (supply_register_at_address)
7052 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7053 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7054 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7055 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7056 'gdb_byte *'.
7057 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7058 'gdb_byte *'.
7059 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7060 * xstormy16-tdep.c (xstormy16_extract_return_value)
7061 (xstormy16_store_return_value): Change parameter type to
7062 'gdb_byte *'. Adjust.
7063 (xstormy16_push_dummy_call): Use gdb_byte.
7064 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7065 (call0_analyze_prologue, execute_code): Use gdb_byte.
7066
433730c9
PA
70672013-04-19 Vladimir Kargov <kargov@gmail.com>
7068 Pedro Alves <palves@redhat.com>
7069
7070 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7071 value contents.
7072
ac9ec31b
DE
70732013-04-17 Doug Evans <dje@google.com>
7074
7075 * dwarf2read.c (struct signatured_type): New member type.
7076 (struct attribute): Replace member signatured_type with signature.
7077 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7078 (read_call_site_scope): Call follow_die_ref instead of
7079 follow_die_ref_or_sig.
7080 (read_structure_type): Rewrite handling of signatured types.
7081 (read_enumeration_type): Ditto.
7082 (read_attribute_value): Update.
7083 (build_error_marker_type): New function.
7084 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7085 Don't call error for bad types, just build an error marker type.
7086 (dump_die_shallow): Update.
7087 (follow_die_sig_1): Renamed from follow_die_sig.
7088 Don't call error for bad types, instead return NULL.
7089 (follow_die_sig): New function.
7090 (get_signatured_type, get_DW_AT_signature_type): New functions.
7091
e546e8bb
YZ
70922013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7093
7094 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7095 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7096 function.
e546e8bb 7097
ab116149
YQ
70982013-04-17 Yao Qi <yao@codesourcery.com>
7099
7100 * top.c (print_gdb_configuration): Print configure-time
7101 parameter on using libbabeltrace or not.
7102
488a42b8
PA
71032013-04-16 Pedro Alves <palves@redhat.com>
7104
7105 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7106
f5fb825b
PA
71072013-04-16 Pedro Alves <palves@redhat.com>
7108
85d494ea 7109 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7110 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7111
e1154999
PA
71122013-04-16 Pedro Alves <palves@redhat.com>
7113
7114 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7115 * common/glibc_thread_db.h: ... this new file ...
7116 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7117
e3b50a7f
PA
71182013-04-16 Will Newton <will.newton@gmail.com>
7119 Pedro Alves <palves@redhat.com>
7120
7121 PR build/11881
7122
7123 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7124 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7125 HAVE_THREAD_DB_H.
7126
1c2e4450
PA
71272013-04-16 Pedro Alves <palves@redhat.com>
7128 Eli Zaretskii <eliz@gnu.org>
7129
7130 * NEWS: Mention "set foo unlimited".
7131
4031ecc5
DE
71322013-04-15 Doug Evans <dje@google.com>
7133
19c3d4c9
DE
7134 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7135 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7136 (create_dwo_cu_reader): Renamed from
7137 create_dwo_debug_info_hash_table_reader.
7138 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7139 Remove support for multiple CUs in a DWO file.
7140 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7141
4031ecc5
DE
7142 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7143 instead of phex.
7144 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7145 (create_dwo_in_dwp): Ditto.
7146
b340913d
TT
71472013-04-15 Tom Tromey <tromey@redhat.com>
7148
7149 * NEWS: Move recent entries into "since 7.6" section.
7150
cc16e6c9
TT
71512013-04-15 Tom Tromey <tromey@redhat.com>
7152
7153 PR c++/13588:
7154 * NEWS: Update.
7155 * break-catch-throw.c (struct exception_catchpoint)
7156 <exception_rx, pattern>: New fields.
7157 (fetch_probe_arguments, dtor_exception_catchpoint)
7158 (check_status_exception_catchpoint)
7159 (print_one_detail_exception_catchpoint): New functions.
7160 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7161 Compile regular expression if needed.
7162 (extract_exception_regexp): New function.
7163 (catch_exception_command_1): Use extract_exception_regexp.
7164 (compute_exception): Use fetch_probe_arguments.
7165 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7166 and check_status fields.
7167 * cp-abi.c (cplus_typename_from_type_info): New function.
7168 * cp-abi.h (cplus_typename_from_type_info): Declare.
7169 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7170 * gdb_regex.h (compile_rx_or_error): Declare.
7171 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7172 comment.
7173 (init_gnuv3_ops): Set get_type_from_type_info field.
7174 * probe.c (compile_rx_or_error): Move...
7175 * utils.c (compile_rx_or_error): ... here.
7176
72f1fe8a
TT
71772013-04-15 Tom Tromey <tromey@redhat.com>
7178
7179 PR c++/15176:
7180 * NEWS: Update.
7181 * break-catch-throw.c (compute_exception): New function.
7182 (exception_funcs): New global.
7183 (_initialize_break_catch_throw): Create $_exception.
7184 * cp-abi.c (cplus_type_from_type_info): New function.
7185 * cp-abi.h (cplus_type_from_type_info): Declare.
7186 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7187 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7188 (gnuv3_get_type_from_type_info): New functions.
7189 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7190
fc4746a2
TT
71912013-04-15 Tom Tromey <tromey@redhat.com>
7192
7193 * break-catch-throw.c (struct exception_names): New.
7194 (exception_functions): Change type.
7195 (re_set_exception_catchpoint): Look for SDT probes.
7196
15a73f56
TT
71972013-04-15 Tom Tromey <tromey@redhat.com>
7198
7199 PR c++/10119:
7200 * break-catch-throw.c (exception_functions): New global.
7201 (gnu_v3_exception_catchpoint_ops): Move earlier.
7202 (struct exception_catchpoint): New.
7203 (classify_exception_breakpoint): Rewrite.
7204 (re_set_exception_catchpoint): New function.
7205 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7206 Allocate a struct exception_catchpoint.
7207 (catch_exception_command_1): Update.
7208 (initialize_throw_catchpoint_ops): Set 're_set' method.
7209
916703c0
TT
72102013-04-15 Tom Tromey <tromey@redhat.com>
7211
7212 * Makefile.in (SFILES): Add break-catch-throw.c
7213 (COMMON_OBS): Add break-catch-throw.o.
7214 * break-catch-throw.c: New file.
7215 * breakpoint.c: Move exception-catching code to new file.
7216 (ep_parse_optional_if_clause): No longer static.
7217 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7218
6e72ca20
TT
72192013-04-15 Tom Tromey <tromey@redhat.com>
7220
7221 PR c++/9065:
7222 * NEWS: Update.
7223 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7224 * c-exp.y (TYPEID): New token.
7225 (exp): Add new TYPEID productions.
7226 (ident_tokens): Add "typeid".
7227 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7228 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7229 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7230 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7231 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7232 case.
7233 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7234 (build_std_type_info_type, gnuv3_get_typeid_type)
7235 (gnuv3_get_typeid): New functions.
7236 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7237 new fields on ABI object.
7238 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7239 * std-operator.def (OP_TYPEID): New.
7240
715c6909
TT
72412013-04-15 Tom Tromey <tromey@redhat.com>
7242
7243 * elfread.c (elf_symtab_read): Install versioned symbol under
7244 unversioned name as well.
7245
8de20a37
TT
72462013-04-15 Tom Tromey <tromey@redhat.com>
7247
7248 PR c++/11990:
7249 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7250 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7251 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7252 (gdb_demangle): New function.
7253 * cp-support.h (gdb_demangle): Declare.
7254 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7255 (dwarf2_name): Use gdb_demangle.
7256 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7257 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7258 suffixes from name.
7259 (gnuv3_print_method_ptr): Use gdb_demangle.
7260 * jv-lang.c (java_demangle): Use gdb_demangle.
7261 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7262 * language.c (unk_lang_demangle): Use gdb_demangle.
7263 * symtab.c (symbol_find_demangled_name)
7264 (demangle_for_lookup): Use gdb_demangle.
7265
591f19e8
TT
72662013-04-15 Tom Tromey <tromey@redhat.com>
7267
7268 PR c++/12824:
7269 * NEWS: Update.
7270 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7271 New constant.
7272 (classify_exception_breakpoint): New function.
7273 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7274 (print_mention_exception_catchpoint)
7275 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7276 (catch_exception_command_1): Handle "rethrow" catchpoint.
7277 (catch_rethrow_command): New function.
7278 (_initialize_breakpoint): Add "catch rethrow" command.
7279
4d40cad2
PM
72802013-04-15 Pierre Muller <muller@sourceware.org>
7281
7282 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7283 set_gdbarch_write_pc as deprecated anymore.
7284
30bcb456
JB
72852013-04-15 Joel Brobecker <brobecker@adacore.com>
7286
7287 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7288 declarations.
7289
da9160e4
YQ
72902013-04-13 Yao Qi <yao@codesourcery.com>
7291
7292 * ctf.c (_initialize_ctf): Include "completer.h".
7293 Call add_target_with_completer instead of add_target.
7294
39ed5604
JK
72952013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7296
7297 Fix GDB regression related to PR binutils/14813.
7298 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7299 * minidebug.c (lzma_close): Add return value comment.
7300 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7301 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7302 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7303
73042013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
7305
7306 * config.in: Regenerate.
7307
d521ce57
TT
73082013-04-12 Tom Tromey <tromey@redhat.com>
7309
7310 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7311 const.
7312 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7313 (struct die_reader_specs) <buffer>: Likewise.
7314 (die_reader_func_ftype): Make 'info_ptr' const.
7315 (struct line_header) <include_dirs, statement_program_start,
7316 statement_program_end>: Now const.
7317 (struct file_entry) <name>: Likewise.
7318 (struct partial_die_info) <sibling>: Likewise.
7319 (struct dwarf_block) <data>: Likewise.
7320 (dwarf2_read_section): Remove cast.
7321 (dwarf2_get_section_info): Make 'bufp' const.
7322 (read_index_from_section): Constify.
7323 (dw2_get_file_names_reader): Make 'info_ptr' const.
7324 (dw2_get_primary_filename_reader): Likewise.
7325 (read_comp_unit_head): Make 'info_ptr' and return type const.
7326 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7327 Likewise.
7328 (read_abbrev_offset): Constify.
7329 (dwarf2_create_include_psymtab): Make 'name' const.
7330 (create_debug_types_hash_table): Update.
7331 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7332 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7333 Constify.
7334 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7335 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7336 (read_comp_units_from_section): Constify.
7337 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7338 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7339 const.
7340 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7341 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7342 (create_dwp_hash_table, dwarf2_ranges_read)
7343 (dwarf2_record_block_ranges): Constify.
7344 (read_die_and_children, read_die_and_siblings_1)
7345 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7346 const.
7347 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7348 (abbrev_table_read_table): Constify.
7349 (load_partial_dies): Make 'info_ptr' const.
7350 (read_partial_die, read_attribute_value, read_attribute): Make
7351 'info_ptr' and return type const.
7352 (read_address, read_initial_length)
7353 (read_checked_initial_length_and_offset, read_offset)
7354 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7355 const.
7356 (read_direct_string): Make 'buf' and return type const.
7357 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7358 (read_indirect_string): Make return type const.
7359 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7360 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7361 'info_ptr' const.
7362 (read_str_index): Make return type const.
7363 (add_include_dir): Make 'include_dir' const.
7364 (add_file_name): Make 'name' const.
7365 (dwarf_decode_line_header): Constify.
7366 (psymtab_include_file_name): Make return type const.
7367 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7368 (dwarf2_start_subfile): Make 'filename' const.
7369 (dwarf2_const_value_attr): Make 'bytes' const.
7370 (read_signatured_type_reader): Make 'info_ptr' const.
7371 (decode_locdesc): Constify.
7372 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7373 const.
7374 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7375 'mac_end', and return type const.
7376 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7377 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7378 type const.
7379 (per_cu_header_read_in): Constify.
7380 * symfile.h (dwarf2_get_section_info): Update.
7381
d47a1bc1
TT
73822013-04-12 Tom Tromey <tromey@redhat.com>
7383
7384 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7385
6eaaf48b
EZ
73862013-04-12 Eli Zaretskii <eliz@gnu.org>
7387
fc4c25bf 7388 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
7389 * top.c (print_gdb_configuration): New function, displays the
7390 details about GDB configure-time parameters.
7391 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
7392 * cli/cli-cmds.c (show_configuration): New function.
7393 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
7394 * main.c (captured_main) <print_configuration>: New static var.
7395 <long_options>: Use it.
7396 If --configuration was given, call print_gdb_configuration.
7397
b292c783
JK
73982013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7399 Pedro Alves <palves@redhat.com>
7400
7401 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7402 (generated_files): Add gcore.
7403 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7404 HAVE_NATIVE_GCORE_HOST.
7405 (gcore): New.
7406 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7407 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7408 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7409 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7410 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7411 Add HAVE_NATIVE_GCORE_HOST.
7412 * configure: Regenerate.
7413 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7414 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7415 AC_CONFIG_FILES for gcore.
7416 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7417 gdb_have_gcore.
7418 * gdb_gcore.sh: Rename to ...
7419 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7420 and GCORE_TRANSFORM_NAME substitutions.
7421
c96b3c4f
JK
7422 Fix parsing tabs in ${gdb_target_obs}.
7423 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7424
d6cb50a2
JK
74252013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7426
7427 * remote.c (unpush_and_perror): Add output message final dot.
7428
cf2cb5ec
YQ
74292013-04-11 Yao Qi <yao@codesourcery.com>
7430
7431 * tracepoint.c (tfile_interp_line): Fit parameters line and
7432 utpp in one line.
7433
07293be4
JB
74342013-04-10 Joel Brobecker <brobecker@adacore.com>
7435
7436 * solib.c (solib_map_sections): Remove code overwriting
7437 SO->SO_NAME with the bfd's filename.
7438
f81d1120
PA
74392013-04-10 Pedro Alves <palves@redhat.com>
7440
7441 * cli/cli-decode.c (integer_unlimited_completer): New function.
7442 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7443 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7444 completer.
7445 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7446 (is_unlimited_literal): New function.
7447 (do_set_command): Handle literal "unlimited" arguments.
7448 * frame.c (_initialize_frame) <set backtrace limit>: Document
7449 "unlimited".
7450 * printcmd.c (_initialize_printcmd) <set print
7451 max-symbolic-offset>: Add help text.
7452 * record-full.c (_initialize_record_full) <set record full
7453 insn-number-max>: Likewise.
7454 * record.c (_initialize_record) <set record
7455 instruction-history-size, set record function-call-history-size>:
7456 Add help text.
7457 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7458 help text.
7459 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7460 Likewise.
7461 * source.c (_initialize_source) <set listsize>: Add help text.
7462 * utils.c (initialize_utils) <set height, set width>: Likewise.
7463 <set pagination>: Mention "set height unlimited".
7464 * valprint.c (_initialize_valprint) <set print elements, set print
7465 repeats>: Document "unlimited".
7466
2f9d54cf
PA
74672013-04-10 Pedro Alves <palves@redhat.com>
7468
7469 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7470 instead of disconnect_tracing.
7471 * infcmd.c (detach_command, disconnect_command): Call
7472 query_if_trace_running. Adjust.
7473 * top.c: Include "tracepoint.h".
7474 (quit_target): Delete. Contents moved ...
7475 (quit_force): ... here. Wrap each stage of teardown in
7476 TRY_CATCH. Call disconnect_tracing before detaching.
7477
393fd4c3
YQ
74782013-04-10 Hui Zhu <hui@codesourcery.com>
7479 Yao Qi <yao@codesourcery.com>
7480
7481 * configure.ac: Check libbabeltrace is installed.
7482 * config.in: Regenerate.
7483 * configure: Regenerate.
7484 * Makefile.in (LIBBABELTRACE): New.
7485 (CLIBS): Add LIBBABELTRACE.
7486 * ctf.c: Include "exec.h".
7487 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7488 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7489 (ctf_save_metadata_header): Define new type aliases in
7490 metadata.
7491 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7492 in metadata. Start a new faked packet for trace status.
7493 (ctf_write_status): Write trace status to CTF.
7494 (ctf_write_uploaded_tsv): Write TSV to CTF.
7495 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7496 (ctf_write_definition_end): End the faked packet.
7497
7498 (ctx, ctf_iter, trace_dirname): New.
7499 (start_pos): New variable.
7500 (ctf_destroy, ctf_open_dir, ctf_open): New.
7501 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7502 macros.
7503 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7504 (ctf_fetch_registers, ctf_xfer_partial): New.
7505 (ctf_get_trace_state_variable_value): New.
7506 (ctf_get_tpnum_from_frame_event): New.
7507 (ctf_get_traceframe_address): New.
7508 (ctf_trace_find, ctf_has_stack): New.
7509 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7510 (ctf_get_trace_status, ctf_read_status): New.
7511 (_initialize_ctf): New.
7512 * tracepoint.c (get_tracepoint_number): New
7513 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7514 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7515 * tracepoint.h: ... here.
7516 (get_tracepoint_number): Declare it.
7517 (get_uploaded_tsv): Declare it.
7518
7519 * NEWS: Mention new configure option.
7520
5c2b4418
HZ
75212013-04-10 Pedro Alves <palves@redhat.com>
7522 Hui Zhu <hui@codesourcery.com>
7523
7524 * breakpoint.c (dprintf_re_set): New.
7525 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7526 to dprintf_re_set.
7527
a5c66735
JB
75282013-04-09 Joel Brobecker <brobecker@adacore.com>
7529
7530 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7531 Remove solib-svr4.o from the list.
7532
9e77999c
JB
75332013-04-09 Joel Brobecker <brobecker@adacore.com>
7534
7535 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7536 Use gdb_assert_not_reached instead of invalid boolean expression.
7537
1927e618
PA
75382013-04-09 Pedro Alves <palves@redhat.com>
7539
7540 * remote.c (unpush_and_perror): New function.
7541 (readchar, remote_serial_write): Use it.
7542
10782d74
MM
75432013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7544
7545 * NEWS: Mention new btrace RSP packets.
7546
4c8429ef
TT
75472013-04-08 Tom Tromey <tromey@redhat.com>
7548
7549 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7550 long.
7551
8625fc1b
TT
75522013-04-08 Tom Tromey <tromey@redhat.com>
7553
7554 * maint.c (print_bfd_section_info): Print the section index.
7555 * symmisc.c (dump_msymbols): Print the section index.
7556
e27d198c
TT
75572013-04-08 Tom Tromey <tromey@redhat.com>
7558
7559 PR symtab/8424:
7560 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7561 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7562 * breakpoint.c (resolve_sal_pc): Update.
7563 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7564 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7565 (minsym_lookup_iterator_cb): Use it.
7566 (default_read_var_value): Update.
7567 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7568 Update.
7569 * infcmd.c (jump_command): Update.
7570 * linespec.c (minsym_found): Update.
7571 * maint.c (maintenance_translate_address): Update.
7572 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7573 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7574 * parse.c (write_exp_msymbol): Update.
7575 * printcmd.c (address_info): Update.
7576 * psymtab.c (find_pc_sect_psymbol): Update.
7577 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7578 SYMBOL_OBJ_SECTION.
7579 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7580 Don't initialize SYMBOL_OBJ_SECTION.
7581 * spu-tdep.c (spu_catch_start): Update.
7582 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7583 * symmisc.c (dump_msymbols, print_symbol): Update.
7584 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7585 how fallback section is computed.
7586 (fixup_symbol_section): Update.
7587 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7588 Update.
7589 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7590 Initialize SYMBOL_SECTION.
7591 * symtab.h (struct general_symbol_info) <section>: Update comment.
7592 <obj_section>: Remove.
7593 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7594 (SYMBOL_OBJFILE): New macro.
7595
e6dc44a8
TT
75962013-04-08 Tom Tromey <tromey@redhat.com>
7597
7598 * coffread.c (record_minimal_symbol): Update.
7599 * dbxread.c (record_minimal_symbol): Update.
7600 * elfread.c (record_minimal_symbol): Update.
7601 * machoread.c (macho_symtab_add_minsym): Update.
7602 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7603 Update.
7604 * minsyms.c (prim_record_minimal_symbol): Update.
7605 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7606 argument.
7607 (prim_record_minimal_symbol_and_info): Likewise.
7608 * minsyms.h (prim_record_minimal_symbol_full)
7609 (prim_record_minimal_symbol_and_info): Update.
7610 * symtab.c (allocate_symbol, initialize_symbol)
7611 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7612 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7613 Update.
7614
36192a8d
TT
76152013-04-08 Tom Tromey <tromey@redhat.com>
7616
7617 PR symtab/8423:
7618 * solib-som.c (som_solib_section_offsets): Use BFD section
7619 indices. Set offsets for all sections.
7620 * somread.c (som_symtab_read): Compute BFD section for
7621 symbol. Use prim_record_minimal_symbol_and_info.
7622 (som_symfile_read): Fix comment.
7623 (struct find_section_offset_arg): New.
7624 (find_section_offset, set_section_index): New functions.
7625 (som_symfile_offsets): Use set_section_index to compute
7626 section indices.
7627
65cf3563
TT
76282013-04-08 Tom Tromey <tromey@redhat.com>
7629
7630 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7631 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7632 gdb_bfd_section_index.
7633 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7634 New functions.
7635 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7636 Declare.
7637 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7638 Update.
7639 * objfiles.c (add_to_objfile_sections_full): New function.
7640 (add_to_objfile_sections): Use it.
7641 (build_section_table): Rewrite.
7642 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7643 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7644 (struct objfile) <sections>: Update comment.
7645 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7646 is NULL.
7647 (ALL_OBJSECTIONS): Use it.
7648 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7649 * solib-frv.c (frv_relocate_main_executable): Update.
7650 * solib-target.c (solib_target_relocate_section_addresses):
7651 Use gdb_bfd_section_index.
7652 * symfile.c (build_section_addr_info_from_section_table):
7653 Use gdb_bfd_section_index.
7654 (build_section_addr_info_from_bfd, place_section): Likewise.
7655 * symtab.c (fixup_section): Update.
7656 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7657
7cbd4a93
TT
76582013-04-08 Tom Tromey <tromey@redhat.com>
7659
7660 * minsyms.h (struct bound_minimal_symbol): New.
7661 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7662 Remove objfile argument.
7663 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7664 Return bound_minimal_symbol.
7665 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7666 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7667 Return bound_minimal_symbol.
7668 (in_gnu_ifunc_stub): Update.
7669 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7670 Remove 'objfile_p' argument.
7671 (lookup_solib_trampoline_symbol_by_pc): Update.
7672 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7673 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7674 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7675 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7676 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7677 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7678 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7679 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7680 stack.c, symtab.c, tui/tui-disasm.c: Update.
7681
f85f34ed
TT
76822013-04-08 Tom Tromey <tromey@redhat.com>
7683
7684 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7685 Use symbol's obstack, not an objfile.
7686 * coffread.c (process_coff_symbol): Update.
7687 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7688 * jv-lang.c (add_class_symbol): Update.
7689 * mdebugread.c (new_symbol): Update.
7690 * minsyms.c (prim_record_minimal_symbol_full)
7691 (terminate_minimal_symbol_table): Update.
7692 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7693 * stabsread.c (define_symbol, read_enum_type): Update.
7694 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7695 Handle Ada specially.
7696 (symbol_set_language): Add 'obstack' argument.
7697 (symbol_set_names): Update.
7698 (symbol_natural_name, symbol_demangled_name): Always use
7699 ada_decode_symbol.
7700 * symtab.h (struct general_symbol_info)
7701 <language_specific::obstack>: New field.
7702 <ada_mangled>: New field.
7703 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7704 (symbol_set_language): Update.
7705
ccde22c0
TT
77062013-04-08 Tom Tromey <tromey@redhat.com>
7707
7708 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7709 Take an obstack, not an objfile.
7710 (symbol_set_names): Update.
7711 * symtab.h (symbol_set_demangled_name): Update.
7712
e623cf5d
TT
77132013-04-08 Tom Tromey <tromey@redhat.com>
7714
7715 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7716 allocate_symbol.
7717 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7718 (read_func_scope): Call allocate_template_symbol.
7719 (new_symbol_full): Call allocate_symbol.
7720 * jit.c (finalize_symtab): Call allocate_symbol.
7721 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7722 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7723 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7724 (common_block_end): Call allocate_symbol.
7725 * symtab.c (allocate_symbol, initialize_symbol)
7726 (allocate_template_symbol): New functions.
7727 * symtab.c (allocate_symbol, initialize_symbol)
7728 (allocate_template_symbol): Declare.
7729 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7730
f6de8ec2
PA
77312013-04-08 Pedro Alves <palves@redhat.com>
7732 Keith Seitz <keiths@redhat.com>
7733
7734 * breakpoint.c (create_breakpoint): Rename
7735 "parse_condition_and_thread" parameter to "parse_arg". Update
7736 describing comment. If !PARSE_ARG, then error out if ARG is not
7737 the empty string after extracting the location.
7738 * breakpoint.h (create_breakpoint): Rename
7739 "parse_condition_and_thread" parameter to "parse_arg".
7740
f65ce5fb
AR
77412013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7742
7743 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7744
cc5925ad
YQ
77452013-04-07 Yao Qi <yao@codesourcery.com>
7746
7747 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7748 and 'addr2' to CORE_ADDR.
7749 * target.c (update_current_target): Update.
7750 * target.h (struct target_ops) <to_trace_find>: Change parameter
7751 type to CORE_ADDR.
7752 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7753 'addr2' to CORE_ADDR.
7754 (tfile_trace_find): Likewise.
7755 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7756 Change local variable 'addr' to type CORE_ADDR.
7757 * tracepoint.h (tfind_1): Update declaration.
7758
d9ac0664
EZ
77592013-04-06 Eli Zaretskii <eliz@gnu.org>
7760
7761 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7762 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7763 Include main.h.
7764
7765 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7766 here...
7767 * main.h (windows_get_absolute_argv0): ...to here.
7768
02142a6c
DE
77692013-04-05 Doug Evans <dje@google.com>
7770
7771 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7772 (read_cutu_die_from_dwo): Add comments.
7773 (read_structure_type): Update comment.
7774 (read_enumeration_type, read_namespace_type): Update comment.
7775 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7776
43662968
JK
77772013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7778
7779 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7780 * Makefile.in (gdb.z): Remove.
7781 (install-only): Remove $(man1dir) and gdb.1 installation.
7782 * gdb.1: Remove.
7783
9ead1b84
JK
77842013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7785
7786 Fix compatibility with Linux kernel 3.8.3.
7787 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7788 to more inner block. Remove parsing of NUMBER from outer block.
7789 Parse NUMBER only if KEYWORD has been identified.
7790
d1794952
JK
77912013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7792
7793 Fix variable name shadowing.
7794 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7795 filename to mapsfilename and update its uses.
7796
9025569e
EZ
77972013-04-05 Eli Zaretskii <eliz@gnu.org>
7798
7799 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7800 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7801 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7802 details of the problem.
7803
c9a6ce02
PA
78042013-04-04 Pedro Alves <palves@redhat.com>
7805 Hui Zhu <hui@codesourcery.com>
7806
7807 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7808 tracepoint, reset its STEP_COUNT and call validate_actionline.
7809
5ff888ce
DE
78102013-04-03 Doug Evans <dje@google.com>
7811
bf6af496
DE
7812 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7813 read_die_and_siblings.
7814 (read_die_and_siblings): New function.
7815 (read_cutu_die_from_dwo): Dump die if requested.
7816 (read_die_and_children): Call read_full_die_1 and
7817 read_die_and_siblings_1.
7818 (read_full_die): Dump die if requested.
7819
7820 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7821
0ac5b59e
DE
7822 * dwarf2read.c (struct dwo_file): New member comp_dir.
7823 Rename member name to dwo_name. All uses updated.
7824 (hash_dwo_file): Include comp_dir in computation.
7825 (eq_dwo_file): Ditto.
7826 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7827 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7828
5ff888ce
DE
7829 * psymtab.c (read_psymtabs_with_fullname): Don't call
7830 psymtab_to_fullname if the basenames are different.
7831
ec83d211
JK
78322013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7833
7834 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7835 New entry about "fullname" presence.
7836
4f4352f7
PA
78372013-04-03 Pedro Alves <palves@redhat.com>
7838
7839 * NEWS: Mention x86_64/Cygwin as new native configuration.
7840
3d1d5ea3
DE
78412013-04-02 Doug Evans <dje@google.com>
7842
7843 * dwarf2read.c (read_structure_type): Fix typo in comment.
7844
be9a8770
PA
78452013-04-02 Pedro Alves <palves@redhat.com>
7846
7847 * NEWS: Mention "set/show debug aarch64", "set/show debug
7848 coff-pe-read" and "set/show debug mach-o".
7849
a46c1e42
PA
78502013-04-02 Pedro Alves <palves@redhat.com>
7851
7852 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7853
3ad18b19
EZ
78542013-04-02 Eli Zaretskii <eliz@gnu.org>
7855
7856 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7857 gdb_string.h is now in common/.
7858
e9f1758d
PA
78592013-04-02 Pedro Alves <palves@redhat.com>
7860
7861 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7862 under "New options".
7863
049dc89b
JK
78642013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7865
7866 Revert this patch:
7867 PR gdb/15275
7868 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7869
c33e31fd
PA
78702013-04-02 Pedro Alves <palves@redhat.com>
7871
7872 PR gdb/15275
7873
7874 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7875 (remote_serial_write): New function.
7876 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7877
ea5f3910
JW
78782013-04-01 Jiong Wang <jiwang@tilera.com>
7879
7880 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7881 "New targets" sections.
ea5f3910 7882
5c6fa7ab
DE
78832013-04-01 Doug Evans <dje@google.com>
7884
c0f78cd4
DE
7885 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7886 (process_enumeration_scope): Simplify.
7887
0186c6a7
DE
7888 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7889 type_unit_group ...
7890 (struct signatured_type): ... to here.
7891 (sig_type_ptr): New typedef.
7892 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7893 out of union 't'. All uses updated.
7894 (dw2_get_file_names_reader): Assert not called for a type unit.
7895 (dw2_get_file_names): Assert not called for a type unit or type
7896 unit group.
7897 (build_type_psymtabs_reader): Assert called for a type unit.
7898 (build_type_psymtab_dependencies): Assert called for a type unit group.
7899
5c6fa7ab
DE
7900 * dwarf2read.c (free_dwo_file): Add comment.
7901 (dwarf2_per_objfile_free): Unref dwp bfd.
7902
b3c0ad67 79032013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7904
7905 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7906 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7907 (read_pe_exported_syms): Remove unused 'exportix'.
7908 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7909 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7910 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7911
e2df1547
AR
79122013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7913
7914 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7915 (print_it_watchpoint): Remove unused 'bl'.
7916 (say_where): Remove unused 'uiout'.
7917 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7918 (bkpt_breakpoint_hit): Remove unused 'b'.
7919 (internal_bkpt_print_it): Remove unused 'uiout'.
7920 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7921
d81e75c0
TD
79222013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7923
7924 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7925 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7926
5a8b3f62
DE
79272013-03-29 Doug Evans <dje@google.com>
7928
ab5088bf
DE
7929 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7930 Delete arg is_dwp. All callers updated.
7931 (open_dwp_file): New function.
7932 (open_and_init_dwp_file): Call it.
7933 (get_dwp_file): New function.
7934 (lookup_dwo_cutu): Call it.
7935
a8ad1e57
DE
7936 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7937 unnecessary, cleanup.
7938
6296d8c1
DE
7939 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7940
b0c7bfa9
DE
7941 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7942 (lookup_dwo_unit): New function.
7943 (init_cutu_and_read_dies): Move DWO handling to new functions.
7944
c88ee1f0
DE
7945 * dwarf2read.c (struct signatured_type): Tweak comment.
7946 (struct dwo_unit): Tweak comment.
7947 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7948 (create_dwo_debug_info_hash_table): Tweak comment.
7949 (dwarf2_per_cu_offset_and_type): Tweak comment.
7950
5a8b3f62
DE
7951 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7952 missing .debug_types section.
7953
9852c492
YQ
79542013-03-29 Yao Qi <yao@codesourcery.com>
7955
7956 * corelow.c: Include "completer.h".
7957 (_initialize_corelow): Call add_target_with_completer with
7958 argument 'filename_completer'.
7959 * tracepoint.c: Likewise.
7960 * exec.c (_initialize_exec): Likewise.
7961 * target.c (add_target): Rename to ...
7962 (add_target_with_completer): ... this. Call set_cmd_completer
7963 if parameter completer is not NULL.
7964 (add_target): New.
7965 * target.h: Include "command.h".
7966 (add_target_with_completer): Declare it.
7967
af312be7
JB
79682013-03-28 Joel Brobecker <brobecker@adacore.com>
7969
7970 * coffread.c (is_import_fixup_symbol): New function.
7971 (record_minimal_symbol): Use is_import_fixup_symbol to
7972 detect import fixup symbols, and discard them.
7973
8a0459fd
DE
79742013-03-28 Doug Evans <dje@google.com>
7975
0349ea22
DE
7976 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7977 types hash table until we know we need it.
7978
f652bce2
DE
7979 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7980 index numbers.
7981
e4a48d9d
DE
7982 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7983 All callers updated.
7984 (dw2_print_stats): Print #read CUs too.
7985 (dump_die_shallow): Print signatured types better.
7986
8a0459fd
DE
7987 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7988 info_or_types_section to section. All uses updated.
7989 (struct dwo_unit): Ditto.
7990
bd3eecc3
PA
79912013-03-28 Pedro Alves <palves@redhat.com>
7992
7993 * NEWS (New options): New section.
7994 (New options): Mention set/show remote trace-status-packet.
7995 * remote.c (PACKET_qTStatus): New enumeration value.
7996 (remote_get_trace_status): Skip sending qTStatus if the packet is
7997 disabled. Use packet_ok.
7998 (_initialize_remote): Register a configuration command for
7999 qTStatus packet.
8000
41245087
DE
80012013-03-28 Doug Evans <dje@google.com>
8002
7edbb660
DE
8003 * symfile.c (find_separate_debug_file): Add comment.
8004 (terminate_after_last_dir_separator): Tweak comment.
8005
0018ea6f
DE
8006 * dwarf2read.c (create_partial_symtab): Add forward decl.
8007 (create_partial_symtab): Move to be closer to other psymtab functions.
8008 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8009
ca69b9e6
DE
8010 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8011 (compute_symtab_includes): Remove unnecessary forward declaration.
8012 (die_needs_namespace): Add comment marking group of functions for
8013 dwarf2 name computation.
8014
a9375afe
DE
8015 * typeprint.c (_initialize_typeprint): Improve type help text.
8016
41245087
DE
8017 * python/python.c (finish_python_initialization): Provide suggestion
8018 for how to tell gdb to find its python files.
8019
7f7cc265
PA
80202013-03-28 Pedro Alves <palves@redhat.com>
8021
8022 PR gdb/15294
8023
8024 * source.c (_initialize_source): Change back "set listsize" to an
8025 integer command.
8026
ec21308c
JK
80272013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8028
8029 PR gdb/15275
8030 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8031
840a9a1f
PA
80322013-03-27 Pedro Alves <palves@redhat.com>
8033
8034 * top.c (history_size): Rename to ...
8035 (history_size_setshow_var): ... this. Add comment.
8036 (show_commands): Use readline's 'history_length' instead of
8037 computing the history length by calling history_get in a loop.
8038 (set_history_size_command): Error out for sizes over INT_MAX.
8039 Restore previous history size on invalid size.
8040 (init_history): If HISTSIZE is negative, leave the history size as
8041 zero. Add comments.
8042 (init_main): Adjust.
8043
826ecc4d
PA
80442013-03-27 Pedro Alves <palves@redhat.com>
8045
8046 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8047 coff_pe_read" command to "set debug coff-pe-read".
8048
0ccfeeae
MM
80492013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8050
8051 * record.c (command_size_to_target_size): Fix size comparison.
8052 Change parameter type from pointer to integer to integer.
8053 Update all users.
8054
40653b35
PM
80552013-03-27 Pierre Muller <muller@sourceware.org>
8056
8057 * windows-nat.c (handle_output_debug_string): Avoid typecast
8058 from integer of different size warning.
8059
c62fa0e2
JB
80602013-03-26 Joel Brobecker <brobecker@adacore.com>
8061
8062 * windows-nat.c (handle_output_debug_string): Add empty line
8063 after local block variable definition.
8064
2c619be2
PA
80652013-03-26 Pedro Alves <palves@redhat.com>
8066
8067 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8068 (net_open): Make 'polls' local unsigned.
8069
1b493192
PA
80702013-03-26 Pedro Alves <palves@redhat.com>
8071
8072 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8073 a zuinteger command instead of uinteger.
8074
7ee70bf5
PA
80752013-03-26 Pedro Alves <palves@redhat.com>
8076
8077 * record-full.c (record_full_insn_num): Make it unsigned.
8078 (record_full_check_insn_num, record_full_message)
8079 (record_full_registers_change, record_full_xfer_partial): Remove
8080 record_full_insn_max_num check (it's always != 0).
8081 (record_full_info, record_full_restore): Use %u as format string.
8082 (): Use %u as format string.
8083 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8084 check (it's always != 0).
8085
dfd1f9bb
PA
80862013-03-26 Pedro Alves <palves@redhat.com>
8087
8088 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8089 and "set dcache size" commands zuinteger instead of uinteger.
8090
addb4faf
PA
80912013-03-26 Pedro Alves <palves@redhat.com>
8092
8093 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8094 command zuinteger instead of uinteger.
8095
b75bf488
PA
80962013-03-26 Pedro Alves <palves@redhat.com>
8097
8098 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8099 zuinteger instead of uinteger.
8100
42c634cb
PA
81012013-03-26 Pedro Alves <palves@redhat.com>
8102
8103 * record.c (record_insn_history_size_setshow_var)
8104 (record_call_history_size_setshow_var): New globals.
8105 (command_size_to_target_size): New function.
8106 (cmd_record_insn_history, cmd_record_call_history): Use
8107 command_size_to_target_size instead of cast.
8108 (validate_history_size, set_record_insn_history_size)
8109 (set_record_call_history_size): New functions.
8110 (_initialize_record): Install set_record_insn_history_size and
8111 set_record_call_history_size as "set" hooks of "set record
8112 instruction-history-size" and "set record
8113 function-call-history-size".
8114
1fb2e2b5
PA
81152013-03-26 Pedro Alves <palves@redhat.com>
8116
8117 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8118 use with history_max_entries use. Remove FIXME note.
8119
99c819ee
MM
81202013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8121
8122 * record-btrace.c (record_btrace_close): Call
8123 record_btrace_auto_disable.
8124
9f9e404c
JB
81252013-03-25 Joel Brobecker <brobecker@adacore.com>
8126
8127 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8128
ebcdfe33
DE
81292013-03-25 Doug Evans <dje@google.com>
8130
8131 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8132
24955f63
TT
81332013-03-25 Tom Tromey <tromey@redhat.com>
8134
8135 PR symtab/11462:
8136 * c-exp.y (exp): Add new productions for destructors after '.' and
8137 '->'.
8138 (write_destructor_name): New function.
8139
fce632b6
TT
81402013-03-25 Tom Tromey <tromey@redhat.com>
8141
8142 PR c++/9197:
8143 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8144 value_struct_elt, not lookup_struct_elt_type.
8145 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8146 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8147 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8148
a4341769
YQ
81492013-03-25 Yao Qi <yao@codesourcery.com>
8150
8151 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8152 instead of '_mkdir'.
8153
b5981e5a
EZ
81542013-03-23 Eli Zaretskii <eliz@gnu.org>
8155
8156 * windows-nat.c (windows_get_absolute_argv0): New function.
8157 * windows-nat.h: Add its prototype.
8158
8159 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8160 Use IS_DIR_SEPARATOR instead of looking for a character inside
8161 SLASH_STRING. Include filenames.h.
8162 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8163 relocate_gdb_directory works when passed gdb_program_name.
8164 Include windows-nat.h.
8165
598d3636
JK
81662013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8167
8168 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8169 * remote.c (trace_error): Remove the special handling of '2'.
8170 (readchar) <SERIAL_EOF>
8171 (readchar) <SERIAL_ERROR>
8172 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8173 (remote_get_trace_status): Call throw_exception if EX is
8174 TARGET_CLOSE_ERROR.
8175 * utils.c (perror_with_name): Rename to ...
8176 (throw_perror_with_name): ... here. New parameter errcode, describe it
8177 in the function comment.
8178 (perror_with_name): New function wrapper.
8179 * utils.h (enum errors): New stub declaration.
8180 (throw_perror_with_name): New declaration.
8181
82b821e9
PA
81822013-03-22 Pedro Alves <palves@redhat.com>
8183 Yao Qi <yao@codesourcery.com>
8184 Mark Kettenis <kettenis@gnu.org>
8185
8186 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8187 Don't let the user set the value to UINT_MAX directly.
8188 <var_integer>: Don't let the user set the value to INT_MAX
8189 directly.
8190
78a095c3
JK
81912013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8192
8193 * remote.c (remote_unpush_target): New function.
8194 (remote_open_1): Remove two pop_target calls, update one comment, add
8195 comment to target_preopen call. Replace pop_target call by
8196 remote_unpush_target call.
8197 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8198 pop_target calls by remote_unpush_target calls.
8199
3e74e146
PA
82002013-03-22 Pedro Alves <palves@redhat.com>
8201
8202 * linux-nat.c (linux_child_follow_fork): Don't call
8203 linux_enable_event_reporting.
8204 (linux_handle_extended_wait): Don't call
8205 linux_enable_event_reporting.
8206
a2213dca
PA
82072013-03-22 Pedro Alves <palves@redhat.com>
8208
8209 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8210 use it to rewrite the trampoline buffers with type gdb_byte[], and
8211 undefine the macro. Remove char* cast.
8212
bd712aed
DE
82132013-03-21 Doug Evans <dje@google.com>
8214
8215 New commands "mt set per-command {space,time,symtab} {on,off}".
8216 * NEWS: Add entry.
8217 * event-top.c: #include "maint.h".
8218 * main.c: #include "maint.h".
8219 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8220 timeval-utils.h, maint.h, cli/cli-setshow.h.
8221 (per_command_time, per_command_space): New static globals.
8222 (per_command_symtab): New static global.
8223 (per_command_setlist, per_command_showlist): New static globals.
8224 (struct cmd_stats): Move here from utils.c.
8225 (set_per_command_time): Renamed from set_display_time in utils.c
8226 and moved here. All callers updated.
8227 (set_per_command_space): Renamed from set_display_space in utils.c
8228 and moved here. All callers updated.
8229 (count_symtabs_and_blocks): New function.
8230 (report_command_stats): Moved here from utils.c. Add support for
8231 printing symtab stats. Only print data if enabled before command
8232 executed.
8233 (make_command_stats_cleanup): Ditto.
8234 (sert_per_command_cmd, show_per_command_cmd): New functions.
8235 (_initialize_maint_cmds): Add new commands
8236 mt set per-command {space,time,symtab} {on,off}.
8237 * maint.h: New file.
8238 * top.c: #include "maint.h".
8239 * utils.c (reset_prompt_for_continue_wait_time): New function.
8240 (get_prompt_for_continue_wait_time): New function.
8241 * utils.h (reset_prompt_for_continue_wait_time): Declare
8242 (get_prompt_for_continue_wait_time): Declare.
8243 (make_command_stats_cleanup): Moved to maint.h.
8244 (set_display_time, set_display_space): Moved to maint.h and renamed
8245 to set_per_command_time, set_per_command_space.
8246 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8247 parse_binary_operation and made non-static. Don't call error,
8248 just return an error marker. All callers updated.
8249 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8250
d76488d8
TT
82512013-03-21 Tom Tromey <tromey@redhat.com>
8252
8253 * symfile.c (alloc_section_addr_info): Update header. Don't set
8254 'num_sections' field.
8255 (build_section_addr_info_from_section_table): Set 'num_sections'.
8256 (build_section_addr_info_from_bfd): Likewise.
8257 (build_section_addr_info_from_objfile): Remove dead loop
8258 condition.
8259 (free_section_addr_info): Unconditionally call xfree.
8260 (relative_addr_info_to_section_offsets, addrs_section_sort)
8261 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8262 condition.
8263 (syms_from_objfile_1): Remove dead 'if' condition. Check
8264 'num_sections'.
8265 (add_symbol_file_command): Set 'num_sections'.
8266 * symfile-mem.c (symbol_file_add_from_memory): Set
8267 'num_sections'.
8268 * somread.c (som_symfile_offsets): Remove dead loop condition.
8269 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8270 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8271
a72e5169 82722013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
8273
8274 * tracepoint.h (decode_agent_options): Add 'trace_string'
8275 argument.
8276 * tracepoint.c (decode_agent_options): Add 'trace_string'
8277 argument.
8278 (validate_actionline): Update.
8279 (collect_symbol): Add 'trace_string' argument.
8280 (struct add_local_symbols_data) <trace_string>: New field.
8281 (do_collect_symbol): Update.
8282 (add_local_symbols): Add 'trace_string' argument.
8283 (encode_actions_1): Update.
8284 (trace_dump_actions): Update.
8285 * dwarf2loc.c (access_memory): Update.
8286 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8287 * ax-general.c (new_agent_expr): Update.
8288 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8289 (gen_trace_for_return_address): Add argument.
8290 (trace_kludge, trace_string_kludge): Remove.
8291 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8292 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8293 (gen_trace_for_var): Add 'trace_string' argument.
8294 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8295 (gen_printf, agent_eval_command_one): Update.
8296
b2f83c08
TT
82972013-03-21 Tom Tromey <tromey@redhat.com>
8298
8299 PR exp/15109:
8300 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8301 Handle FILENAME token.
8302
9507860e
TT
83032013-03-21 Tom Tromey <tromey@redhat.com>
8304
8305 * c-exp.y (YYPRINT): Define.
8306 (c_print_token): New function.
8307
e403aa4b
TT
83082013-03-21 Tom Tromey <tromey@redhat.com>
8309
8310 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8311
af307d6a
YQ
83122013-03-21 Yao Qi <yao@codesourcery.com>
8313
8314 * ctf.c: Include "gdb_stat.h".
8315 [USE_WIN32API]: New macro 'mkdir'.
8316 (ctf_start): Use permission bits macros if they are defined.
8317
fb81d016
KS
83182013-03-20 Keith Seitz <keiths@redhat.com>
8319
8320 * breakpoint.h (struct breakpoint): Add comment to
8321 extra_string indicating that this member is mallod'd.
8322 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8323
ef0026f0
PA
83242013-03-20 Pedro Alves <palves@redhat.com>
8325
8326 PR gdb/15289
8327
8328 * cli/cli-setshow.c (do_set_command)
8329 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8330 the result of parsing the command argument. Throw error if the
8331 value is greater than UINT_MAX. Print the invalid value with
8332 plongest.
8333 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8334 result of parsing the command argument. Throw error if the value
8335 is greater than INT_MAX, not greater or equal. Also throw error
8336 if the value is less than INT_MIN. Print the invalid value with
8337 plongest.
8338 <var_zuinteger_unlimited>: Throw error if the value is greater
8339 than INT_MAX, not greater or equal.
8340 (do_show_command) <var_integer, var_zinteger,
8341 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8342
24d6c2a0
TT
83432013-03-20 Tom Tromey <tromey@redhat.com>
8344
8345 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8346 if possible.
8347 * dwarf2read.c (read_func_scope): Remove old FIXME.
8348 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8349 not LOC_COMPUTED.
8350 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8351 Unconditionally call via computed ops, if possible.
8352 * printcmd.c (address_info): Unconditionally call via computed ops,
8353 if possible.
8354 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8355 if possible.
8356 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8357 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8358 if possible.
8359
f1e6e072
TT
83602013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8361 Tom Tromey <tromey@redhat.com>
8362
8363 PR symtab/8421:
8364 * coffread.c (coff_register_index): New global.
8365 (process_coff_symbol, coff_read_enum_type): Set
8366 SYMBOL_ACLASS_INDEX.
8367 (_initialize_coffread): Initialize new global.
8368 * dwarf2loc.c (locexpr_find_frame_base_location)
8369 (dwarf2_block_frame_base_locexpr_funcs)
8370 (loclist_find_frame_base_location)
8371 (dwarf2_block_frame_base_loclist_funcs): New.
8372 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8373 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8374 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8375 (dwarf2_block_frame_base_loclist_funcs): New.
8376 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8377 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8378 globals.
8379 (read_func_scope): Update.
8380 (fixup_go_packaging, mark_common_block_symbol_computed)
8381 (var_decode_location, new_symbol_full, dwarf2_const_value):
8382 Set SYMBOL_ACLASS_INDEX.
8383 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8384 (_initialize_dwarf2_read): Initialize new globals.
8385 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8386 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8387 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8388 globals.
8389 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8390 (_initialize_mdebugread): Initialize new globals.
8391 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8392 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8393 (stab_register_index, stab_regparm_index): New globals.
8394 (define_symbol, read_enum_type, common_block_end): Set
8395 SYMBOL_ACLASS_INDEX.
8396 (_initialize_stabsread): Initialize new globals.
8397 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8398 globals.
8399 (MAX_SYMBOL_IMPLS): New define.
8400 (register_symbol_computed_impl, register_symbol_block_impl)
8401 (register_symbol_register_impl)
8402 (initialize_ordinary_address_classes): New functions.
8403 (_initialize_symtab): Call initialize_ordinary_address_classes.
8404 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8405 (struct symbol_impl): New.
8406 (SYMBOL_ACLASS_BITS): New define.
8407 (struct symbol) <aclass, ops>: Remove fields.
8408 <aclass_index>: New field.
8409 (symbol_impls): Declare.
8410 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8411 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8412 (register_symbol_computed_impl, register_symbol_block_impl)
8413 (register_symbol_register_impl): Declare.
8414 (struct symbol_computed_ops): Add location_has_loclist.
8415 (struct symbol_block_ops): New.
8416 (SYMBOL_BLOCK_OPS): New.
8417 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8418
dbccfd4c
TT
84192013-03-20 Tom Tromey <tromey@redhat.com>
8420
8421 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8422 (print_partial_symbols, recursively_search_psymtabs): Use
8423 PSYMBOL_CLASS.
8424
e3f1ad4f
PM
84252013-03-20 Pierre Muller <muller@sourceware.org>
8426
8427 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8428 addtion, subtraction, multiplication and division binary operator.
8429
460014f5
JK
84302013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8431
8432 Code cleanup.
8433 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8434 * bsd-kvm.c (bsd_kvm_close): Likewise.
8435 * bsd-uthread.c (bsd_uthread_close): Likewise.
8436 * corelow.c (core_close): Likewise.
8437 (core_close_cleanup): Remove parameter quitting from a caller.
8438 * event-top.c (async_disconnect): Likewise.
8439 * exec.c (exec_close_1): Remove parameter quitting.
8440 * go32-nat.c (go32_close): Likewise.
8441 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8442 parameter quitting from a caller.
8443 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8444 variable.
8445 (mips_linux_close): Remove parameter quitting. Remove parameter
8446 quitting from a caller.
8447 * monitor.c (monitor_close): Remove parameter quitting.
8448 * monitor.h (monitor_close): Likewise.
8449 * record-btrace.c (record_btrace_close): Likewise.
8450 * record-full.c (record_full_close): Likewise.
8451 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8452 it also from fprintf_unfiltered.
8453 * remote-mips.c (mips_close): Remove parameter quitting.
8454 (mips_detach): Remove parameter quitting from a caller.
8455 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8456 (gdbsim_close): Remove duplicate function comment. Remove parameter
8457 quitting and remove it also from printf_filtered.
8458 * remote.c (remote_close): Remove parameter quitting.
8459 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8460 * target.c (update_current_target): Remove parameter int from to_close
8461 de_fault.
8462 (push_target, unpush_target, pop_target): Remove parameter quitting from
8463 a caller.
8464 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8465 Remove parameter quitting from a caller.
8466 (target_preopen): Remove parameter quitting from a caller.
8467 (target_close): Remove parameter quitting. Remove parameter quitting
8468 from a caller two times. Remove parameter quitting also from
8469 fprintf_unfiltered.
8470 * target.h (struct target_ops): Remove parameter quitting and as int
8471 from fields to_xclose and to_close.
8472 (extern struct target_ops current_target):
8473 (target_close, pop_all_targets): Remove parameter quitting. Update the
8474 comment.
8475 (pop_all_targets_above): Remove parameter quitting.
8476 * top.c (quit_target): Remove parameter quitting from a caller.
8477 * tracepoint.c (tfile_close): Remove parameter quitting.
8478 * windows-nat.c (windows_close): Remove parameter quitting.
8479
35a7120b
CV
84802013-03-20 Corinna Vinschen <vinschen@redhat.com>
8481
8482 * windows-nat.c (handle_output_debug_string): Replace call
8483 to string_to_core_addr with call to strtoull.
8484
8249a5a9
YQ
84852013-03-20 Yao Qi <yao@codesourcery.com>
8486
8487 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8488 and write it to CTF metadata.
8489
2c15ef43
CV
84902013-03-19 Corinna Vinschen <vinschen@redhat.com>
8491
8492 * windows-nat.c (handle_output_debug_string): Change type of n to
8493 SIZE_T to avoid crash on 64 bit systems.
8494
1cdd3232
EZ
84952013-03-17 Eli Zaretskii <eliz@gnu.org>
8496
8497 * python/python-internal.h (HAVE_SNPRINTF)
8498 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8499 about redefinition of snprintf by pyerrors.h.
8500
3cb2ab1a
SE
85012013-03-15 Steve Ellcey <sellcey@mips.com>
8502
8503 * remote-sim.c (sim_command_completer): Make char arguments const.
8504
9ce98649
TT
85052013-03-15 Tom Tromey <tromey@redhat.com>
8506
8507 PR c++/15116:
8508 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8509
dccee2de
TT
85102013-03-14 Tom Tromey <tromey@redhat.com>
8511
8512 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8513 New fields.
8514 (get_file_crc): Move from symfile.c.
8515 (gdb_bfd_crc): New function.
8516 * gdb_bfd.h (gdb_bfd_crc): Declare.
8517 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8518 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8519 (separate_debug_file_exists): Use gdb_bfd_crc.
8520
cc0ea93c
TT
85212013-03-14 Tom Tromey <tromey@redhat.com>
8522
8523 * symfile.c (get_debug_link_info): Remove.
8524 (find_separate_debug_file_by_debuglink): Use
8525 bfd_get_debug_link_info.
8526
08c23b0d
TT
85272013-03-14 Tom Tromey <tromey@redhat.com>
8528
8529 * symtab.c (error_in_psymtab_expansion): New function.
8530 (lookup_symbol_aux_quick)
8531 (basic_lookup_transparent_type_quick): Remove "last resort"
8532 code. Use error_in_psymtab_expansion.
8533
288e77a7
JK
85342013-03-14 Doug Evans <dje@google.com>
8535 Jan Kratochvil <jan.kratochvil@redhat.com>
8536
8537 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8538 any successful compare_filenames_for_search or FILENAME_CMP.
8539 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8540 * symtab.c (iterate_over_some_symtabs): Likewise.
8541
8f1b8b82
JK
85422013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8543
8544 * source.c (print_source_lines_base): Make a local copy of
8545 symtab_to_fullname.
8546
23eb71e4
JK
85472013-03-14 Hui Zhu <hui_zhu@mentor.com>
8548 Jan Kratochvil <jan.kratochvil@redhat.com>
8549
8550 * source.c (print_source_lines_base): Suppress "file" for TUI.
8551
bb869963
SDJ
85522013-03-14 Keith Seitz <keiths@redhat.com>
8553 Alan Matsuoka <alanm@redhat.com>
8554
8555 PR c++/15203
8556 PR c++/15210
8557 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8558 TYPE_CODE_METHOD.
8559 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8560 symbols.
8561
d6682f9e
YQ
85622013-03-14 Yao Qi <yao@codesourcery.com>
8563
8564 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8565 status to tfile if trace is stopped by command 'tstop'.
8566
a22fa6e4
YQ
85672013-03-14 Yao Qi <yao@codesourcery.com>
8568
8569 * tracepoint.c (tfile_write_status): Write trace notes and user
8570 name into tfile if they are not NULL.
8571
d0353e76
YQ
85722013-03-14 Hui Zhu <hui@codesourcery.com>
8573 Yao Qi <yao@codesourcery.com>
8574
8575 * Makefile.in (REMOTE_OBS): Add ctf.o.
8576 (SFILES): Add ctf.c.
8577 (HFILES_NO_SRCDIR): Add ctf.h.
8578 * ctf.c, ctf.h: New files.
8579 * tracepoint.c: Include 'ctf.h'.
8580 (collect_pseudocommand): Remove static.
8581 (trace_save_command): Parse option "-ctf".
8582 Produce different trace file writers per option.
8583 Adjust output message.
8584 (trace_save_tfile, trace_save_ctf): New.
8585 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8586 * mi/mi-main.c: Include 'ctf.h'.
8587 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8588 trace_save_tfile or trace_save_ctf.
8589 * NEWS: Mention these changes.
8590
3f43bc09
YQ
85912013-03-14 Yao Qi <yao@codesourcery.com>
8592
8593 * tracepoint.c (trace_file_writer_xfree): New.
8594 (struct tfile_writer_data): New.
8595 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8596 (tfile_write_header, tfile_write_regblock_type): New.
8597 (tfile_write_status, tfile_write_uploaded_tsv): New.
8598 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8599 (tfile_write_raw_data, (tfile_end): New.
8600 (tfile_write_ops): New global variable.
8601 (TRACE_WRITE_R_BLOCK): New macro.
8602 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8603 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8604 (TRACE_WRITE_V_BLOCK): New macro.
8605 (trace_save): Add extra one parameter WRITER. Make it static.
8606 Use WRITER to writer trace.
8607 (tfile_trace_file_writer_new): New.
8608 (trace_save_command): Caller update.
8609 (trace_save_tfile): Write trace data in TFILE format.
8610 * tracepoint.h (struct trace_frame_write_ops): New.
8611 (struct trace_file_write_ops): New.
8612 (struct trace_file_writer): New.
8613 (trace_save): Remove its declaration.
8614 (trace_save_tfile): Declare it.
8615 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8616 instead of trace_save.
8617
58665b40
PA
86182013-03-13 Pedro Alves <palves@redhat.com>
8619
8620 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8621
10217050
PA
86222013-03-13 Pedro Alves <palves@redhat.com>
8623
8624 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8625 commented out code.
8626 * demangle.c (current_demangling_style_string): Make it const.
8627 (set_demangling_command): Assert the demangling style is known.
8628 Remove all handling of unknown styles. Set
8629 'current_demangling_style_string' to an element of the
8630 demangling_style_names array.
8631 (set_demangling_style): Delete.
8632 (_initialize_demangler): Set current_demangling_style_string to the
8633 element of the demangling_style_names array that corresponds to
8634 the default demangling style. Remove FIXME note. Don't call
8635 set_demangling_style.
8636 * gdb-demangle.h (set_demangling_style): Remove declaration.
8637
6f937416
PA
86382013-03-13 Pedro Alves <palves@redhat.com>
8639
8640 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8641 fields const.
8642 (ada_make_symbol_completion_list): Make "text0" parameter const.
8643 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8644 * breakpoint.c (condition_completer): Make "text" and "word"
8645 parameters const. Adjust.
8646 (check_tracepoint_command): Adjust to validate_actionline
8647 prototype change.
8648 (catch_syscall_completer): Make "text" and "word" parameters
8649 const.
8650 * cli/cli-cmds.c (show_user): Make "comname" local const.
8651 (valid_command_p): Make "command" parameter const.
8652 (alias_command): Make "alias_prefix" and "command_prefix" locals
8653 const.
8654 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8655 (add_alias_cmd): Make "name" and "oldname" parameters const.
8656 Adjust. No longer make copy of OLDNAME.
8657 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8658 (add_setshow_cmd_full, add_setshow_enum_cmd)
8659 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8660 (add_setshow_filename_cmd, add_setshow_string_cmd)
8661 (add_setshow_string_noescape_cmd)
8662 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8663 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8664 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8665 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8666 Make "name" parameter const.
8667 (help_cmd): Rename "command" parameter to "arg". New const local
8668 "command".
8669 (find_cmd): Make "command" parameter const.
8670 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8671 deprecated_cmd_warning prototype change.
8672 (undef_cmd_error): Make "cmdtype" parameter const.
8673 (lookup_cmd): Make "line" parameter const.
8674 (deprecated_cmd_warning): Change type of "text" parameter to
8675 pointer to const char, from pointer to pointer to char. Adjust.
8676 (lookup_cmd_composition): Make "text" parameter const.
8677 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8678 parameters const.
8679 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8680 const.
8681 * cli/cli-script.c (validate_comname): Make "tem" local const.
8682 (define_command): New const local "tem_c". Use it in calls to
8683 lookup_cmd.
8684 (document_command): Make "tem" and "comfull" locals const.
8685 (show_user_1): Make "prefix" and "name" parameters const.
8686 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8687 const.
8688 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8689 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8690 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8691 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8692 (complete_on_enum, add_setshow_enum_cmd)
8693 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8694 (add_setshow_filename_cmd, add_setshow_string_cmd)
8695 (add_setshow_string_noescape_cmd)
8696 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8697 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8698 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8699 Change prototypes, constifying strings.
8700 * completer.c (noop_completer, filename_completer): Make "text"
8701 and "prefix" parameters const.
8702 (location_completer, expression_completer)
8703 (complete_line_internal): Make "text" and "prefix" parameters
8704 const and adjust.
8705 (command_completer, signal_completer): Make "text" and "prefix"
8706 parameters const.
8707 * completer.h (noop_completer, filename_completer)
8708 (expression_completer, location_completer, command_completer)
8709 (signal_completer): Change prototypes.
8710 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8711 parameters const.
8712 * cp-abi.c (cp_abi_completer): Likewise.
8713 * expression.h (parse_expression_for_completion): Change
8714 prototype.
8715 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8716 parameters const.
8717 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8718 * infrun.c (handle_completer): Make "text" and "word" parameters
8719 const.
8720 * interps.c (interpreter_completer): Make "text" and "word"
8721 parameters const.
8722 * language.h (struct language_defn)
8723 <la_make_symbol_completion_list>: Make "text" and "word"
8724 parameters const.
8725 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8726 (parse_exp_in_context): Rename to ...
8727 (parse_exp_in_context_1): ... this.
8728 (parse_exp_in_context): Reimplement, with const hack from
8729 parse_exp_1.
8730 (parse_expression_for_completion): Make "string" parameter const.
8731 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8732 to pointer to const char. Adjust.
8733 (print_command_1): Make "exp" parameter const.
8734 (output_command): Rename to ...
8735 (output_command_const): ... this. Make "exp" parameter const.
8736 (output_command): Reimplement.
8737 (x_command): Adjust.
8738 (display_command): Rename "exp" parameter to "arg". New "exp"
8739 local, const version of "arg".
8740 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8741 "cmd_name" local const.
8742 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8743 call.
8744 (cmdpy_completer): Make "text" and "word" parameters const.
8745 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8746 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8747 const.
8748 * remote.c (_initialize_remote): Make "cmd_name" local const.
8749 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8750 parameters const. Adjust.
8751 (completion_list_add_fields): Make "sym_text", "text" and "word"
8752 parameters const.
8753 (struct add_name_data) <sym_text, text, word>: Make fields const.
8754 (default_make_symbol_completion_list_break_on): Make "text" and
8755 "word" parameters const. Adjust locals.
8756 (default_make_symbol_completion_list)
8757 (make_symbol_completion_list, make_symbol_completion_type)
8758 (make_symbol_completion_list_fn): Make "text" and "word"
8759 parameters const.
8760 (make_file_symbol_completion_list): Make "text", "word" and
8761 "srcfile" parameters const. Adjust locals.
8762 (add_filename_to_list): Make "text" and "word" parameters const.
8763 (struct add_partial_filename_data) <text, word>: Make fields
8764 const.
8765 (make_source_files_completion_list): Make "text" and "word"
8766 parameters const.
8767 * symtab.h (default_make_symbol_completion_list_break_on)
8768 (default_make_symbol_completion_list, make_symbol_completion_list)
8769 (make_symbol_completion_type enum type_code)
8770 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8771 (make_source_files_completion_list): Change prototype.
8772 * top.c (execute_command): Adjust to pass pointer to pointer to
8773 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8774 change.
8775 (set_verbose): Make "cmdname" local const.
8776 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8777 and adjust.
8778 (validate_actionline): Make "line" parameter a pointer to const
8779 char, and adjust.
8780 (encode_actions_1): Make "action_exp" local const, and adjust.
8781 (encode_actions): Adjust.
8782 (replace_comma): Delete.
8783 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8784 const, and adjust. Don't frob the action string while splitting
8785 it at commas. Instead, make a copy of each split substring in
8786 turn.
8787 (trace_dump_command): Adjust to validate_actionline prototype
8788 change.
8789 * tracepoint.h (decode_agent_options, decode_agent_options)
8790 (encode_actions, validate_actionline): Change prototypes.
8791 * valprint.h (output_command): Delete declaration.
8792 (output_command_const): Declare.
8793 * value.c (function_destroyer): Cast const away in xfree call.
8794
a0bcdaa7
PA
87952013-03-13 Pedro Alves <palves@redhat.com>
8796
8797 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8798 rather than casting 'const char * const *' to 'const char **'.
8799 * ada-lex.l (processInt): Make "trailer" local const. Remove
8800 'const char **' cast.
8801 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8802 locals, and use those as strtol output pointer, instead than doing
8803 invalid casts to from 'const char **' to 'char **'.
8804 (_initialize_demangle): Remove cast.
8805 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8806 locals, and use those as strtol output pointer, instead than doing
8807 invalid casts to from 'const char **' to 'char **'.
8808 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8809 casts.
8810 * stap-probe.c (stap_parse_register_operand)
8811 (stap_parse_single_operand): Likewise.
8812
8ddb1965
YQ
88132013-03-13 Yao Qi <yao@codesourcery.com>
8814
8815 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8816 the last matched 'V' blcok in trace frame.
8817
2d450646
JB
88182013-03-12 Joel Brobecker <brobecker@adacore.com>
8819
8820 * NEWS: Create a new section for the next release branch.
8821 Rename the section of the current branch, now that it has
8822 been cut.
8823
b4b79973 88242013-03-12 Joel Brobecker <brobecker@adacore.com>
8825
8826 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8827 * version.in: Bump version to 7.6.50.20130312-cvs.
8828
ee047554
KS
88292013-03-12 Keith Seitz <keiths@redhat.com>
8830
8831 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8832 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8833 Remove temporary copy of input string.
8834 (mi_execute_command_wrapper): Make "cmd" const.
8835 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8836 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8837 Use const strings.
8838 (mi_parse): Make "cmd" const.
8839 Use const strings.
8840 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8841
bbc13ae3
KS
88422013-03-12 Keith Seitz <keiths@redhat.com>
8843
8844 * ada-lang.c (ada_read_renaming_var_value): Pass const
8845 pointer to expression string to parse_exp_1.
8846 (create_excep_cond_exprs): Likewise.
8847 * ax-gdb.c (agent_eval_command_one): Likewise.
8848 (maint_agent_printf_command): Likewise.
8849 Constify much of the string handling/parsing.
8850 * breakpoint.c (set_breakpoint_condition): Pass const
8851 pointer to expression string to parse_exp_1.
8852 (update_watchpoint): Likewise.
8853 (parse_cmd_to_aexpr): Constify string handling.
8854 Pass const pointer to parse_exp_1.
8855 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8856 (find_condition_and_thread): Likewise.
8857 Make TOK const.
8858 (watch_command_1): Make "arg" const.
8859 Constify string handling.
8860 Copy the expression string instead of changing the input
8861 string.
8862 (update_breakpoint_location): Pass const pointer to
8863 parse_exp_1.
8864 * eval.c (parse_and_eval_address): Make "exp" const.
8865 (parse_to_comma_and_eval): Make "expp" const.
8866 (parse_and_eval): Make "exp" const.
8867 * expression.h (parse_expression): Make argument const.
8868 (parse_exp_1): Make first argument const.
8869 * findcmd.c (parse_find_args): Treat "args" as const.
8870 * linespec.c (parse_linespec): Pass const pointer to
8871 linespec_expression_to_pc.
8872 (linespec_expression_to_pc): Make "exp_ptr" const.
8873 * parse.c (parse_exp_1): Make "stringptr" const.
8874 Make a copy of the expression to pass to parse_exp_in_context until
8875 this whole interface can be constified.
8876 (parse_expression): Make "string" const.
8877 * printcmd.c (ui_printf): Treat "arg" as const.
8878 Handle const strings.
8879 * tracepoint.c (validate_actionline): Pass const pointer to
8880 all calls to parse_exp_1.
8881 (encode_actions_1): Likewise.
8882 * value.h (parse_to_comma_and_eval): Make argument const.
8883 (parse_and_eval_address): Likewise.
8884 (parse_and_eval): Likewise.
8885 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8886 (varobj_set_value): Likewise.
8887 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8888 constify string handling.
8889 Pass const pointers to parse_and_eval_address and
8890 parse_to_comman_and_eval.
8891 * cli/cli-utils.c (skip_to_space): Rename to ...
8892 (skip_to_space_const): ... this. Handle const strings.
8893 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8894 skip_to_space_const.
8895 (skip_to_space_const): Declare.
8896 * common/format.c (parse_format_string): Make "arg" const.
8897 Handle const strings.
8898 * common/format.h (parse_format_string): Make "arg" const.
8899 * gdbserver/ax.c (ax_printf): Make "format" const.
8900 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8901 of the expression string.
8902
f3cec7e6
HZ
89032013-03-12 Hui Zhu <hui@codesourcery.com>
8904
8905 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8906
9df7235c
HZ
89072013-03-12 Yao Qi <yao@codesourcery.com>
8908 Hui Zhu <hui@codesourcery.com>
8909
8910 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8911 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8912 DW_OP_deref_size.
8913
82d049ab
PH
89142013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8915
5f8e0b8f
MF
8916 * ada-lex.l (rules): Only recognize 'thread' as a
8917 delimiter when followed by numerals, as for c-exp.y.
8918 Use new rewind_to_char function to rewind the input for
8919 expression-delimiting tokens.
8920 (rewind_to_char): New function.
82d049ab 8921
8c1fb155
JK
89222013-03-11 Pedro Alves <palves@redhat.com>
8923 Jan Kratochvil <jan.kratochvil@redhat.com>
8924
8925 * configure: Regenerate.
8926 * configure.ac (check dynamic export flag): Link python test with
8927 $PYTHON_LIBS.
8928
cc81e1c6
DE
89292013-03-11 Doug Evans <dje@google.com>
8930 Keith Seitz <keiths@redhat.com>
8931
8932 * linespec.c (find_linespec_symbols): Call find_function_symbols
8933 first, and then call lookup_prefix_sym/find_method.
8934
39086a0e
PA
89352013-03-11 Pedro Alves <palves@redhat.com>
8936
8937 * charset.c (convert_between_encodings): Don't cast between
8938 different pointer to pointer types. Instead, make the 'inp' local
8939 be of the type iconv expects.
8940 (wchar_iterate): Don't cast between different pointer to pointer
8941 types. Instead, use new pointer local of the type iconv expects.
8942 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8943 Add new local of type char pointer, and use it to get a
8944 char/string view of the byte buffer, instead of casting between
8945 pointer to pointer types.
8946
90585175
HAQ
89472013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8948
8949 * remote.c (remote_set_trace_buffer_size): Move != operator
8950 to the start of next line to fix an ARI warning.
8951
59ea5688
MM
89522013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8953
8954 * NEWS: Add record changes.
8955
946287b7
MM
89562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8957
8958 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8959 the instruction history disassembly.
8960 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8961 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8962
afedecd3
MM
89632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8964
8965 * Makefile.in (SFILES): Add record-btrace.c
8966 (COMMON_OBS): Add record-btrace.o
8967 * record-btrace.c: New.
8968 * objfiles.c: Include btrace.h.
8969 (free_objfile): call btrace_free_objfile.
8970
15984c13
MM
89712013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8972
8973 * target.c (target_call_history, target_call_history_from,
8974 target_call_history_range): New.
8975 * target.h (target_ops) <to_call_history, to_call_history_from,
8976 to_call_history_range>: New fields.
8977 (target_call_history, target_call_history_from,
8978 target_call_history_range): New declaration.
8979 * record.c (get_call_history_modifiers, cmd_record_call_history,
8980 record_call_history_size): New.
8981 (_initialize_record): Add the "record function-call-history" command.
8982 Add "set/show record function-call-history-size" commands.
8983 * record.h (record_print_flag): New.
8984
67c86d06
MM
89852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8986
8987 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8988 to_insn_history_range>: New fields.
8989 (target_insn_history): New.
8990 (target_insn_history_from): New.
8991 (target_insn_history_range): New.
8992 * target.c (target_insn_history): New.
8993 (target_insn_history_from): New.
8994 (target_insn_history_range): New.
8995 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8996 (record_insn_history_size): New.
8997 (get_insn_number): New.
8998 (get_context_size): New.
8999 (no_chunk): New.
9000 (get_insn_history_modifiers): New.
9001 (cmd_record_insn_history): New.
9002 (_initialize_record): Add "set/show record instruction-history-size"
9003 command. Add "record instruction-history" command.
9004
7c1687a9
MM
90052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9006
9007 * record.h (record_disconnect): New.
9008 (record_detach): New.
9009 (record_mourn_inferior): New.
9010 (record_kill): New.
9011 * record-full.c (record_disconnect, record_detach,
9012 record_mourn_inferior, record_kill): Move to...
9013 * record.c: ...here.
9014 (DEBUG): New.
9015 (record_stop): New.
9016 (record_unpush): New.
9017 (cmd_record_stop): Call record_stop. Replace unpush_target
9018 call with record_unpush call.
9019 (record_disconnect, record_detach): Assert that the target
9020 is of record stratum. Call record_unpush, record_stop, and
9021 DEBUG.
9022 (record_mourn_inferior, record_kill): Assert that the target
9023 is of record stratum. Call record_unpush and DEBUG.
9024
25ea693b
MM
90252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9026
9027 * record-full.h, record-full.c (record_memory_query): Rename
9028 to ...
9029 (record_full_memory_query): ...this. Update all users.
9030 (record_arch_list_add_reg): Rename to ...
9031 (record_full_arch_list_add_reg): ...this. Update all users.
9032 (record_arch_list_add_mem): Rename to ...
9033 (record_full_arch_list_add_mem): ...this. Update all users.
9034 (record_arch_list_add_end): Rename to ...
9035 (record_full_arch_list_add_end): ...this. Update all users.
9036 (record_gdb_operation_disable_set): Rename to ...
9037 (record_full_gdb_operation_disable_set): ...this.
9038 Update all users.
9039
88d1aa9d
MM
90402013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9041
9042 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9043 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9044 (RECORD_IS_REPLAY): Renamed to ...
9045 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9046 (RECORD_FILE_MAGIC): Renamed to ...
9047 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9048 (record_mem_entry): Renamed to ...
9049 (record_full_mem_entry): ... this. Updated all users.
9050 (record_reg_entry): Renamed to ...
9051 (record_full_reg_entry): ... this. Updated all users.
9052 (record_end_entry): Renamed to ...
9053 (record_full_end_entry): ... this. Updated all users.
9054 (record_type) <record_end, record_reg, record_mem>: Renamed
9055 to ...
9056 (record_full_type) <record_full_end, record_full_reg,
9057 record_full_mem>: ... this. Updated all users.
9058 (record_entry): Renamed to ...
9059 (record_full_entry): ... this. Updated all users.
9060 (record_core_buf_entry): Renamed to ...
9061 (record_full_core_buf_entry): ... this. Updated all users.
9062 (record_core_regbuf): Renamed to ...
9063 (record_full_core_regbuf): ... this. Updated all users.
9064 (record_core_start): Renamed to ...
9065 (record_full_core_start): ... this. Updated all users.
9066 (record_core_end): Renamed to ...
9067 (record_full_core_end): ... this. Updated all users.
9068 (record_core_buf_list): Renamed to ...
9069 (record_full_core_buf_list): ... this. Updated all users.
9070 (record_first): Renamed to ...
9071 (record_full_first): ... this. Updated all users.
9072 (record_list): Renamed to ...
9073 (record_full_list): ... this. Updated all users.
9074 (record_arch_list_head): Renamed to ...
9075 (record_full_arch_list_head): ... this. Updated all users.
9076 (record_arch_list_tail): Renamed to ...
9077 (record_full_arch_list_tail): ... this. Updated all users.
9078 (record_stop_at_limit): Renamed to ...
9079 (record_full_stop_at_limit): ... this. Updated all users.
9080 (record_insn_max_num): Renamed to ...
9081 (record_full_insn_max_num): ... this. Updated all users.
9082 (record_insn_num): Renamed to ...
9083 (record_full_insn_num): ... this. Updated all users.
9084 (record_insn_count): Renamed to ...
9085 (record_full_insn_count): ... this. Updated all users.
9086 (record_ops): Renamed to ...
9087 (record_full_ops): ... this. Updated all users.
9088 (record_core_ops): Renamed to ...
9089 (record_full_core_ops): ... this. Updated all users.
9090 (set_record_cmdlist): Renamed to ...
9091 (set_record_full_cmdlist): ... this. Updated all users.
9092 (show_record_cmdlist): Renamed to ...
9093 (show_record_full_cmdlist): ... this. Updated all users.
9094 (record_cmdlist): Renamed to ...
9095 (record_full_cmdlist): ... this. Updated all users.
9096 (record_beneath_to_resume_ops): Renamed to ...
9097 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9098 (record_beneath_to_resume): Renamed to ...
9099 (record_full_beneath_to_resume): ... this. Updated all users.
9100 (record_beneath_to_wait_ops): Renamed to ...
9101 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9102 (record_beneath_to_wait): Renamed to ...
9103 (record_full_beneath_to_wait): ... this. Updated all users.
9104 (record_beneath_to_store_registers_ops): Renamed to ...
9105 (record_full_beneath_to_store_registers_ops): ... this.
9106 Updated all users.
9107 (record_beneath_to_store_registers): Renamed to ...
9108 (record_full_beneath_to_store_registers): ... this.
9109 Updated all users.
9110 (record_beneath_to_xfer_partial_ops): Renamed to ...
9111 (record_full_beneath_to_xfer_partial_ops): ... this.
9112 Updated all users.
9113 (record_beneath_to_xfer_partial): Renamed to ...
9114 (record_full_beneath_to_xfer_partial): ... this.
9115 Updated all users.
9116 (record_beneath_to_insert_breakpoint): Renamed to ...
9117 (record_full_beneath_to_insert_breakpoint): ... this.
9118 Updated all users.
9119 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9120 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9121 Updated all users.
9122 (record_beneath_to_stopped_data_address): Renamed to ...
9123 (record_full_beneath_to_stopped_data_address): ... this.
9124 Updated all users.
9125 (record_beneath_to_async): Renamed to ...
9126 (record_full_beneath_to_async): ... this. Updated all users.
9127 (record_goto_insn): Renamed to ...
9128 (record_full_goto_insn): ... this. Updated all users.
9129 (record_save): Renamed to ...
9130 (record_full_save): ... this. Updated all users.
9131 (record_reg_alloc): Renamed to ...
9132 (record_full_reg_alloc): ... this. Updated all users.
9133 (record_reg_release): Renamed to ...
9134 (record_full_reg_release): ... this. Updated all users.
9135 (record_mem_alloc): Renamed to ...
9136 (record_full_mem_alloc): ... this. Updated all users.
9137 (record_mem_release): Renamed to ...
9138 (record_full_mem_release): ... this. Updated all users.
9139 (record_end_alloc): Renamed to ...
9140 (record_full_end_alloc): ... this. Updated all users.
9141 (record_end_release): Renamed to ...
9142 (record_full_end_release): ... this. Updated all users.
9143 (record_entry_release): Renamed to ...
9144 (record_full_entry_release): ... this. Updated all users.
9145 (record_list_release): Renamed to ...
9146 (record_full_list_release): ... this. Updated all users.
9147 (record_list_release_following): Renamed to ...
9148 (record_full_list_release_following): ... this.
9149 Updated all users.
9150 (record_list_release_first): Renamed to ...
9151 (record_full_list_release_first): ... this. Updated all users.
9152 (record_arch_list_add): Renamed to ...
9153 (record_full_arch_list_add): ... this. Updated all users.
9154 (record_get_loc): Renamed to ...
9155 (record_full_get_loc): ... this. Updated all users.
9156 (record_check_insn_num): Renamed to ...
9157 (record_full_check_insn_num): ... this. Updated all users.
9158 (record_arch_list_cleanups): Renamed to ...
9159 (record_full_arch_list_cleanups): ... this. Updated all users.
9160 (record_message): Renamed to ...
9161 (record_full_message): ... this. Updated all users.
9162 (record_message_wrapper): Renamed to ...
9163 (record_full_message_wrapper): ... this. Updated all users.
9164 (record_message_wrapper_safe): Renamed to ...
9165 (record_full_message_wrapper_safe): ... this. Updated all users.
9166 (record_gdb_operation_disable): Renamed to ...
9167 (record_full_gdb_operation_disable): ... this. Updated all users.
9168 (record_hw_watchpoint): Renamed to ...
9169 (record_full_hw_watchpoint): ... this. Updated all users.
9170 (record_exec_insn): Renamed to ...
9171 (record_full_exec_insn): ... this. Updated all users.
9172 (record_restore): Renamed to ...
9173 (record_full_restore): ... this. Updated all users.
9174 (record_async_inferior_event_token): Renamed to ...
9175 (record_full_async_inferior_event_token): ... this.
9176 Updated all users.
9177 (record_async_inferior_event_handler): Renamed to ...
9178 (record_full_async_inferior_event_handler): ... this.
9179 Updated all users.
9180 (record_core_open_1): Renamed to ...
9181 (record_full_core_open_1): ... this. Updated all users.
9182 (record_open_1): Renamed to ...
9183 (record_full_open_1): ... this. Updated all users.
9184 (record_open): Renamed to ...
9185 (record_full_open): ... this. Updated all users.
9186 (record_close): Renamed to ...
9187 (record_full_close): ... this. Updated all users.
9188 (record_resume_step): Renamed to ...
9189 (record_full_resume_step): ... this. Updated all users.
9190 (record_resumed): Renamed to ...
9191 (record_full_resumed): ... this. Updated all users.
9192 (record_execution_dir): Renamed to ...
9193 (record_full_execution_dir): ... this. Updated all users.
9194 (record_resume): Renamed to ...
9195 (record_full_resume): ... this. Updated all users.
9196 (record_get_sig): Renamed to ...
9197 (record_full_get_sig): ... this. Updated all users.
9198 (record_sig_handler): Renamed to ...
9199 (record_full_sig_handler): ... this. Updated all users.
9200 (record_wait_cleanups): Renamed to ...
9201 (record_full_wait_cleanups): ... this. Updated all users.
9202 (record_wait_1): Renamed to ...
9203 (record_full_wait_1): ... this. Updated all users.
9204 (record_wait): Renamed to ...
9205 (record_full_wait): ... this. Updated all users.
9206 (record_stopped_by_watchpoint): Renamed to ...
9207 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9208 (record_disconnect): Renamed to ...
9209 (record_full_disconnect): ... this. Updated all users.
9210 (record_detach): Renamed to ...
9211 (record_full_detach): ... this. Updated all users.
9212 (record_mourn_inferior): Renamed to ...
9213 (record_full_mourn_inferior): ... this. Updated all users.
9214 (record_kill): Renamed to ...
9215 (record_full_kill): ... this. Updated all users.
9216 (record_stopped_data_address): Renamed to ...
9217 (record_full_stopped_data_address): ... this. Updated all users.
9218 (record_registers_change): Renamed to ...
9219 (record_full_registers_change): ... this. Updated all users.
9220 (record_store_registers): Renamed to ...
9221 (record_full_store_registers): ... this. Updated all users.
9222 (record_xfer_partial): Renamed to ...
9223 (record_full_xfer_partial): ... this. Updated all users.
9224 (record_breakpoint): Renamed to ...
9225 (record_full_breakpoint): ... this. Updated all users.
9226 (record_breakpoint_p): Renamed to ...
9227 (record_full_breakpoint_p): ... this. Updated all users.
9228 (record_breakpoints): Renamed to ...
9229 (record_full_breakpoints): ... this. Updated all users.
9230 (record_sync_record_breakpoints): Renamed to ...
9231 (record_full_sync_record_breakpoints): ... this.
9232 Updated all users.
9233 (record_init_record_breakpoints): Renamed to ...
9234 (record_full_init_record_breakpoints): ... this.
9235 Updated all users.
9236 (record_insert_breakpoint): Renamed to ...
9237 (record_full_insert_breakpoint): ... this. Updated all users.
9238 (record_remove_breakpoint): Renamed to ...
9239 (record_full_remove_breakpoint): ... this. Updated all users.
9240 (record_can_execute_reverse): Renamed to ...
9241 (record_full_can_execute_reverse): ... this. Updated all users.
9242 (record_get_bookmark): Renamed to ...
9243 (record_full_get_bookmark): ... this. Updated all users.
9244 (record_goto_bookmark): Renamed to ...
9245 (record_full_goto_bookmark): ... this. Updated all users.
9246 (record_async): Renamed to ...
9247 (record_full_async): ... this. Updated all users.
9248 (record_can_async_p): Renamed to ...
9249 (record_full_can_async_p): ... this. Updated all users.
9250 (record_is_async_p): Renamed to ...
9251 (record_full_is_async_p): ... this. Updated all users.
9252 (record_execution_direction): Renamed to ...
9253 (record_full_execution_direction): ... this. Updated all users.
9254 (record_info): Renamed to ...
9255 (record_full_info): ... this. Updated all users.
9256 (record_delete): Renamed to ...
9257 (record_full_delete): ... this. Updated all users.
9258 (record_is_replaying): Renamed to ...
9259 (record_full_is_replaying): ... this. Updated all users.
9260 (record_goto_entry): Renamed to ...
9261 (record_full_goto_entry): ... this. Updated all users.
9262 (record_goto_begin): Renamed to ...
9263 (record_full_goto_begin): ... this. Updated all users.
9264 (record_goto_end): Renamed to ...
9265 (record_full_goto_end): ... this. Updated all users.
9266 (record_goto): Renamed to ...
9267 (record_full_goto): ... this. Updated all users.
9268 (init_record_ops): Renamed to ...
9269 (init_record_full_ops): ... this. Updated all users.
9270 (record_core_resume): Renamed to ...
9271 (record_full_core_resume): ... this. Updated all users.
9272 (record_core_kill): Renamed to ...
9273 (record_full_core_kill): ... this. Updated all users.
9274 (record_core_fetch_registers): Renamed to ...
9275 (record_full_core_fetch_registers): ... this. Updated all users.
9276 (record_core_prepare_to_store): Renamed to ...
9277 (record_full_core_prepare_to_store): ... this. Updated all users.
9278 (record_core_store_registers): Renamed to ...
9279 (record_full_core_store_registers): ... this. Updated all users.
9280 (record_core_xfer_partial): Renamed to ...
9281 (record_full_core_xfer_partial): ... this. Updated all users.
9282 (record_core_insert_breakpoint): Renamed to ...
9283 (record_full_core_insert_breakpoint): ... this. Updated all users.
9284 (record_core_remove_breakpoint): Renamed to ...
9285 (record_full_core_remove_breakpoint): ... this. Updated all users.
9286 (record_core_has_execution): Renamed to ...
9287 (record_full_core_has_execution): ... this. Updated all users.
9288 (init_record_core_ops): Renamed to ...
9289 (init_record_full_core_ops): ... this. Updated all users.
9290 (cmd_record_restore): Renamed to ...
9291 (cmd_record_full_restore): ... this. Updated all users.
9292 (record_save_cleanups): Renamed to ...
9293 (record_full_save_cleanups): ... this. Updated all users.
9294 (cmd_record_start): Renamed to ...
9295 (cmd_record_full_start): ... this. Updated all users.
9296 (set_record_insn_max_num): Renamed to ...
9297 (set_record_full_insn_max_num): ... this. Updated all users.
9298 (set_record_command): Renamed to ...
9299 (set_record_full_command): ... this. Updated all users.
9300 (show_record_command): Renamed to ...
9301 (show_record_full_command): ... this. Updated all users.
9302 (_initialize_record): Renamed to ...
9303 (_initialize_record_full): ... this. Updated all users.
9304
d02ed0bb
MM
93052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9306
9307 * record.h: Split into this and ...
9308 * record-full.h: ... this.
9309 * record.c: Split into this and ...
9310 * record-full.c: ... this.
9311 * target.h (target_ops): Add new fields to_info_record,
9312 to_save_record, to_delete_record, to_record_is_replaying,
9313 to_goto_record_begin, to_goto_record_end, to_goto_record.
9314 (target_info_record): New.
9315 (target_save_record): New.
9316 (target_supports_delete_record): New.
9317 (target_delete_record): New.
9318 (target_record_is_replaying): New.
9319 (target_goto_record_begin): New.
9320 (target_goto_record_end): New.
9321 (target_goto_record): New.
9322 * target.c (target_info_record): New.
9323 (target_save_record): New.
9324 (target_supports_delete_record): New.
9325 (target_delete_record): New.
9326 (target_record_is_replaying): New.
9327 (target_goto_record_begin): New.
9328 (target_goto_record_end): New.
9329 (target_goto_record): New.
9330 * record.h: Declare struct cmd_list_element.
9331 (record_cmdlist): New declaration.
9332 (set_record_cmdlist): New declaration.
9333 (show_record_cmdlist): New declaration.
9334 (info_record_cmdlist): New declaration.
9335 (cmd_record_goto): New declaration.
9336 * record.c: Remove unnecessary includes.
9337 Include inferior.h.
9338 (cmd_record_goto): Remove declaration.
9339 (record_cmdlist): Now extern. Initialize.
9340 (set_record_cmdlist): Now extern. Initialize.
9341 (show_record_cmdlist): Now extern. Initialize.
9342 (info_record_cmdlist): Now extern. Initialize.
9343 (find_record_target): New.
9344 (require_record_target): New.
9345 (cmd_record_start): Update.
9346 (cmd_record_delete): Remove target-specific code.
9347 Call target_delete_record.
9348 (cmd_record_stop): Unpush any record target.
9349 (set_record_insn_max_num): Move to record-full.c
9350 (set_record_command): Add comment.
9351 (show_record_command): Add comment.
9352 (info_record_command): Update comment.
9353 Remove target-specific code.
9354 Call the record target's to_info_record.
9355 (cmd_record_start): New.
9356 (cmd_record_goto): Now extern.
9357 Remove target-specific code.
9358 Call target_goto_begin, target_goto_end, or target_goto.
9359 (_initialize_record): Move record target ops initialization to
9360 record-full.c.
9361 Change "record" command help text.
9362 Move "record restore", "record set", and "record show" commands to
9363 record-full.c.
9364 * Makefile.in (SFILES): Add record-full.c.
9365 (HFILES_NO_SRCDIR): Add record-full.h.
9366 (COMMON_OBS): Add record-full.o.
9367 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9368 * arm-tdep.c: Include record-full.h.
9369 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9370 * i386-tdep.c: Include record-full.h.
9371 * infrun.c: Include record-full.h.
9372 * linux-record.c: Include record-full.h.
9373 * moxie-tdep.c: Include record-full.h.
9374 * record-full.c: Include record-full.h.
9375 Change module comment.
9376 (set_record_full_cmdlist): New.
9377 (show_record_full_cmdlist): New.
9378 (record_full_cmdlist): New.
9379 (record_goto_insn): New declaration.
9380 (record_save): New declaration.
9381 (record_check_insn_num): Change query string.
9382 (record_info): New.
9383 (record_delete): New.
9384 (record_is_replaying): New.
9385 (record_goto_entry): New.
9386 (record_goto_begin): New.
9387 (record_goto_end): New.
9388 (record_goto): New.
9389 (init_record_ops): Update.
9390 (init_record_core_ops): Update.
9391 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9392 (cmd_record_start): New.
9393 (set_record_insn_max_num): Moved from record.c
9394 (set_record_full_command): New.
9395 (show_record_full_command): New.
9396 (_initialize_record_full): New.
9397
b48d48eb
MM
93982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9399
9400 * target.h (add_deprecated_target_alias): New.
9401 * target.c (add_deprecated_target_alias): New.
9402
a950d57c
MM
94032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9404
9405 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9406 and signal.h.
9407 (linux_supports_btrace): Add kernel and
9408 cpuid check.
9409 (kernel_supports_btrace): New function.
9410 (cpu_supports_btrace): New function.
9411 (intel_supports_btrace): New function.
9412
9accd112
MM
94132013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9414
9415 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9416 * remote.c: Include btrace.h.
9417 (struct btrace_target_info): New struct.
9418 (remote_supports_btrace): New function.
9419 (send_Qbtrace): New function.
9420 (remote_enable_btrace): New function.
9421 (remote_disable_btrace): New function.
9422 (remote_teardown_btrace): New function.
9423 (remote_read_btrace): New function.
9424 (init_remote_ops): Add btrace ops.
9425 (enum <unnamed>): Add btrace packets.
9426 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9427 (_initialize_remote): Add packet configuration for branch tracing.
9428
c12a2917
MM
94292013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9430
9431 * features/btrace.dtd: New file.
9432 * Makefile.in (XMLFILES): Add btrace.dtd.
9433 * btrace.h (parse_xml_btrace): New declaration.
9434 * btrace.c: Include xml-support.h.
9435 (parse_xml_btrace): New function.
9436 (parse_xml_btrace_block): New function.
9437 (block_attributes): New struct.
9438 (btrace_attributes): New struct.
9439 (btrace_children): New struct.
9440 (btrace_elements): New struct.
9441
3e3aea48
MM
94422013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9443
9444 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9445 (amd64_linux_enable_btrace): New.
9446 (amd64_linux_disable_btrace): New.
9447 (amd64_linux_teardown_btrace): New.
9448 (_initialize_amd64_linux_nat): Initialize btrace ops.
9449 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9450 (i386_linux_enable_btrace): New.
9451 (i386_linux_disable_btrace): New.
9452 (i386_linux_teardown_btrace): New.
9453 (_initialize_i386_linux_nat): Initialize btrace ops.
9454 * config/i386/linux.mh: Add linux-btrace.o.
9455 * config/i386/linux64.mh: Add linux-btrace.o.
9456
7c97f91e
MM
94572013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9458
9459 * common/linux_btrace.h: New file.
9460 * common/linux_btrace.c: New file.
9461 * Makefile.in (SFILES): Add btrace.c.
9462 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9463 (COMMON_OBS): Add btrace.o.
9464 (linux-btrace.o): New rule.
9465
1999790b 94662013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9467
9468 * target.h: Include btrace.h.
9469 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9470 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9471 * target.c (target_supports_btrace): New function.
9472 (target_enable_btrace): New function.
9473 (target_disable_btrace): New function.
9474 (target_teardown_btrace): New function.
9475 (target_read_btrace): New function.
9476 * btrace.h: New file.
9477 * btrace.c: New file.
9478 * Makefile.in: Add btrace.c.
9479 * gdbthread.h: Include btrace.h.
9480 (struct thread_info): Add btrace field.
9481 * thread.c: Include btrace.h.
9482 (clear_thread_inferior_resources): Call target_teardown_btrace.
9483 * common/btrace-common.h: New file.
9484
61a31a67
JK
94852013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9486
9487 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9488 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9489 kill_status to outer block.
9490
05c56a9d
JK
94912013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9492
9493 Fix entry-values if the callee called a noreturn function.
9494 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9495 get_frame_address_in_block. Add new comment.
9496
9112db09
JK
94972013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9498
9499 Fix entry-values in C++ across CUs.
9500 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9501 lookup_minimal_symbol. Add a comment.
9502 * dwarf2read.c
9503 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9504 DW_AT_linkage_name.
9505
9b67fcec
YQ
95062013-03-08 Yao Qi <yao@codesourcery.com>
9507
9508 * tracepoint.c (_initialize_tracepoint): Indent the code.
9509
6221be90
PA
95102013-03-08 Pedro Alves <palves@redhat.com>
9511
9512 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9513 (parse_find_args, find_command): Change type of pattern buffer
9514 locals to 'gdb_byte *'.
9515
be9a119c 95162013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9517 Hafiz Abid Qadeer <abidh@codesourcery.com>
9518
9519 * NEWS: Mention set and show trace-buffer-size commands.
9520 Mention new packet.
9521 * target.h (struct target_ops): New method
9522 to_set_trace_buffer_size.
9523 (target_set_trace_buffer_size): New macro.
9524 * target.c (update_current_target): Set up new method.
9525 * tracepoint.c (trace_buffer_size): New global.
9526 (start_tracing): Send it to the target.
9527 (set_trace_buffer_size): New function.
9528 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9529 * remote.c (remote_set_trace_buffer_size): New function.
9530 (_initialize_remote): Use it.
9531 (QTBuffer:size) New remote command.
9532 (PACKET_QTBuffer_size): New enum.
9533 (remote_protocol_features): Add an entry for
9534 PACKET_QTBuffer_size.
9535
7da3ab79
TT
95362013-03-08 Tom Tromey <tromey@redhat.com>
9537
9538 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9539 variable.
9540
0c1f71e7
PA
95412013-03-07 Pedro Alves <palves@redhat.com>
9542
9543 * target.c (target_read_stralloc, target_fileio_read_alloc):
9544 *Cast pointer to 'gdb_byte *' in target call.
9545
c8af03a2
PA
95462013-03-07 Pedro Alves <palves@redhat.com>
9547
9548 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9549 call.
9550
529480d0
KS
95512013-03-07 Keith Seitz <keiths@redhat.com>
9552
9553 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9554 (trace_pass_command): Likewise.
9555 * cli/cli-cmds.c: Include cli/cli-utils.h.
9556 (source_command): Use skip-spaces.
9557 (disassemble_command): Likewise.
9558 * findcmd.c: Include cli/cli-utils.h.
9559 (parse_find_args): Use skip_spaces.
9560 * go32-nat.c: Include cli/cli-utils.h.
9561 (go32_sldt): Use skip_spaces.
9562 (go32_sgdt): Likewise.
9563 (go32_sidt): Likewise.
9564 (go32_pde): Likewise.
9565 (go32_pte): Likewise.
9566 (go32_pte_for_address): Likewise.
9567 * infcmd.c: Include cli/cli-utils.h.
9568 (registers_info): Use skip_spaces.
9569 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9570 (linux_info_proc): Likewise.
9571 * linux-thread-db.c: Include cli/cli-utils.h.
9572 (info_auto_load_libthread_db): Use skip_spaces_const.
9573 * m32r-rom.c: Include cli/cli-utils.h.
9574 (m32r_upload_command): Use skip_spaces.
9575 * maint.c: Include cli/cli-utils.h.
9576 (maintenance_translate_address): Use skip_spaces.
9577 * mi/mi-parse.c: Include cli/cli-utils.h.
9578 (mi_parse_argv): Use skip_spaces.
9579 (mi_parse): Likewise.
9580 * minsyms.c: Include cli/cli-utils.h.
9581 (msymbol_hash_iw): Use skip_spaces_const.
9582 * objc-lang.c: Include cli/cli-utils.h.
9583 (parse_selector): Use skip_spaces.
9584 (parse_method): Likewise.
9585 * python/python.c: Include cli/cli-utils.h.
9586 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9587 (python_command)[HAVE_PYTHON]: Likewise.
9588 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9589 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9590 (m32r_load): Use skip_spaces.
9591 * serial.c: Include cli/cli-utils.h.
9592 (serial_open): Use skip_spaces_const.
9593 * stack.c: Include cli/cli-utils.h.
9594 (parse_frame_specification_1): Use skip_spaces_const.
9595 * symfile.c: Include cli/cli-utils.h.
9596 (set_ext_lang_command): Use skip_spaces.
9597 * symtab.c: Include cli/cli-utils.h.
9598 (rbreak_command): Use skip_spaces.
9599 * thread.c (thread_name_command): Use skip_spaces.
9600 * tracepoint.c (validate_actionline): Use skip_spaces.
9601 (encode_actions_1): Likewise.
9602 (trace_find_range_command): Likewise.
9603 (trace_find_outside_command): Likewise.
9604 (trace_dump_actions): Likewise.
9605
ac91cd70
PA
96062013-03-07 Pedro Alves <palves@redhat.com>
9607
9608 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9609 * expprint.c (print_subexp_standard): Likewise.
9610 * utils.c (host_char_to_target): Likewise.
9611 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9612 * varobj.c (value_get_print_value): Change type of local to char*.
9613 Cast it gdb_byte * in call to language printer.
9614
2898e560
PA
96152013-03-07 Pedro Alves <palves@redhat.com>
9616
9617 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9618 gdb_byte *'.
9619 (make_wchar_iterator): Remove cast to char*.
9620 (wchar_iterate): Change type of local.
9621
a09b4448
PA
96222013-03-07 Pedro Alves <palves@redhat.com>
9623
9624 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9625 for 'regcache->register_status'.
9626
20ced3e4
PA
96272013-03-07 Pedro Alves <palves@redhat.com>
9628
c2d6a675 9629 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9630 int.
9631
fe106009
PA
96322013-03-07 Pedro Alves <palves@redhat.com>
9633
9634 * stap-probe.c (handle_stap_probe): Add cast to char*.
9635
8ac2c12b
PA
96362013-03-07 Pedro Alves <palves@redhat.com>
9637
9638 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9639 RECORD_MSGRCV>: Pass a signed variable to
9640 regcache_raw_read_signed, instead of an unsigned one.
9641
99f0a309
PA
96422013-03-07 Pedro Alves <palves@redhat.com>
9643
9644 * remote-notif.c (notif_debug): Change type to int.
9645 * remote-notif.h (notif_debug): Likewise.
9646
964b8317
PA
96472013-03-07 Pedro Alves <palves@redhat.com>
9648
9649 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9650
f0cc8ad4
PA
96512013-03-07 Pedro Alves <palves@redhat.com>
9652
9653 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9654 * remote.h (hex2bin, bin2hex): ... here.
9655 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9656
77dec115
EZ
96572013-03-07 Eli Zaretskii <eliz@gnu.org>
9658
9659 * utils.c (initialize_utils): Improve doc strings of "set/show
9660 width", "set/show height", and "set/show pagination".
9661
741d92cf
KS
96622013-03-06 Keith Seitz <keiths@redhat.com>
9663
9664 * ax-gdb.c (gen_printf): Make FORMAT const.
9665 * ax-gdb.h (gen_printf): Likewise.
9666 * ax-general.c (ax_string): Make STR const.
9667 * ax.h (ax_string): Likewise.
9668
7b6c814e
DE
96692013-03-06 Doug Evans <dje@google.com>
9670
9671 * elfread.c (elf_symfile_read): Move debugging printf to more
9672 logical location.
9673
634334ab
PA
96742013-03-06 Pedro Alves <palves@redhat.com>
9675
9676 * python/py-utils.c (target_string_to_unicode): Delete function.
9677 * python/python-internal.h (target_string_to_unicode): Delete
9678 declaration.
9679
e482a1a7
PM
96802013-03-06 Pierre Muller <muller@sourceware.org>
9681
9682 * linespec.c (get_current_search_block): ARI fix, use (void)
9683 for empty parameter list.
9684
4eeaa230
DE
96852013-03-05 Doug Evans <dje@google.com>
9686
9687 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9688 of old ada_lookup_symbol_list. In !full_search case, don't
9689 search superblocks.
9690 (ada_lookup_symbol_list): Delete arg full_search, all callers
9691 updated. Call ada_lookup_symbol_list_worker.
9692 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9693 * ada-lang.h (ada_lookup_symbol_list): Update.
9694 * language.h (language_defn): Update comment for
9695 la_iterate_over_symbols.
9696 * linespec.c (iterate_over_file_blocks): New function.
9697 (iterate_over_all_matching_symtabs): Call it.
9698 (lookup_prefix_sym): Ditto.
9699 (get_current_search_block): New function.
9700 (get_search_block): Delete.
9701 (find_label_symbols): Call get_current_search_block.
9702 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9703 * symtab.c (iterate_over_symbols): Don't search superblocks.
9704
b69b1fb1
YQ
97052013-03-05 Yao Qi <yao@codesourcery.com>
9706
9707 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9708 parameter VAR's type from "unsigned int" to "int".
9709 * command.h (var_zuinteger_unlimited): Update its comments.
9710 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9711
3c095f49
CV
97122013-03-05 Corinna Vinschen <vinschen@redhat.de>
9713
9714 * NEWS: Mention new target x86_64-*-cygwin*.
9715
b5b0b0af
CV
97162013-03-05 Corinna Vinschen <vinschen@redhat.de>
9717
9718 * configure.host: Add x86_64-*-cygwin* as host.
9719 * configure.tgt: Add x86_64-*-cygwin* as target.
9720 * config/i386/cygwin64.mh: New file.
9721
f6f99966
JK
97222013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9723
9724 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9725
33f448b1
JK
97262013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9727
9728 * linespec.c (struct linespec_canonical_name): New.
9729 (struct linespec_state): Change canonical_names type to it.
9730 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9731 xrealloc element size. Initialize the different CANONICAL fields.
9732 (canonical_to_fullform): New.
9733 (filter_results): Use it. Add variables canonical, fullform and
9734 cleanup.
9735 (struct decode_line_2_item, decode_line_2_compare_items): New.
9736 (decode_line_2): Remove variables iter and item_names, add variables
9737 items and items_count. Modify the code for these new variables.
9738
feb14725
CV
97392013-03-04 Corinna Vinschen <vinschen@redhat.com>
9740
9741 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9742 calling do_cleanup.
9743
e83b17ba
HZ
97442013-03-04 Luis Machado <lgustavo@codesourcery.com>
9745
9746 * tracepoint.c (build_traceframe_info): Add code for byte order.
9747
a2d13a0d
KB
97482013-03-02 Kevin Buettner <kevinb@redhat.com>
9749
8dddcae8
KB
9750 * v850-tdep.c: (v850e2_register_name): Revise system register
9751 names to match current V850E2M architecture specifications.
9752 Update register number enum comments too.
f5aee5ee 9753
d79e58d8
JW
97542013-03-01 Jiong Wang <jiwang@tilera.com>
9755 Pedro Alves <palves@redhat.com>
9756
9757 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9758 to END_ADDR.
9759 (tilegx_skip_prologue): Limit prologue analysis to section end.
9760
c4be5165
JK
97612013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9762
9763 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9764 use it.
9765
e362b510
PA
97662013-03-01 Pedro Alves <palves@redhat.com>
9767
9768 Use gdb_byte for bytes from the program being debugged.
9769
9770 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9771 Change type of local 'buf' to gdb_byte.
9772 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9773 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9774 * cris-tdep.c (cris_sigcontext_addr)
9775 (cris_sigtramp_frame_unwind_cache): Likewise.
9776 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9777 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9778 Likewise.
9779 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9780 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9781 (hppa32_hpux_search_dummy_call_sequence)
9782 (hppa_hpux_supply_save_state): Likewise.
9783 * hppa-linux-tdep.c (insns_match_pattern)
9784 (hppa_linux_find_global_pointer): Likewise.
9785 * hppa-tdep.c (hppa_in_function_epilogue_p)
9786 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9787 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9788 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9789 (i386fbsd_collect_uthread): Likewise.
9790 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9791 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9792 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9793 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9794 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9795 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9796 (ia64_libunwind_frame_prev_register)
9797 (ia64_libunwind_sigtramp_frame_this_id)
9798 (ia64_find_global_pointer_from_dynamic_section)
9799 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9800 (ia64_unwind_pc): Likewise.
9801 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9802 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9803 (m68hc11_extract_return_value): Likewise.
9804 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9805 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9806 (mep_get_insn, mep_push_dummy_call): Likewise.
9807 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9808 (mips_linux_in_dynsym_stub): Likewise.
9809 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9810 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9811 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9812 to gdb_byte.
9813 * remote-mips.c (mips_set_register): Likewise.
9814 * remote-sim.c (gdbsim_fetch_register): Likewise.
9815 * score-tdep.c (score7_fetch_inst): Change type of parameter
9816 'memblock' and local 'buf' to gdb_byte.
9817 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9818 Change type of local 'buf' to gdb_byte. Adjust.
9819 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9820 to gdb_byte**.
9821 (score7_analyze_prologue): Change type of 'memblock' and
9822 'memblock_ptr' locals to gdb_byte*.
9823 * sh64-tdep.c (sh64_extract_return_value)
9824 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9825 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9826 * solib-pa64.c (pa64_solib_create_inferior_hook)
9827 (pa64_open_symbol_file_object): Remove local 'buf'.
9828 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9829 (som_open_symbol_file_object): Likewise.
9830 * solib-spu.c (spu_current_sos): Likewise.
9831 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9832 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9833 (spu_store_registers): Likewise.
9834 * target.c (debug_print_register): Likewise.
9835 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9836 * xstormy16-tdep.c (xstormy16_store_return_value)
9837 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9838 (xstormy16_find_jmp_table_entry): Likewise.
9839
75cc61ca 98402013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9841
9842 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9843 (tilegx_gdbarch_init): Install it.
9844
ddb08e9c
TT
98452013-02-28 Tom Tromey <tromey@redhat.com>
9846
9847 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9848 PyLong_Check.
9849
62d7fb51
DE
98502013-02-28 Doug Evans <dje@google.com>
9851
9852 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9853 * python/python.c (gdbpy_find_pc_line): Ditto.
9854
c4a9e8b4
TT
98552013-02-28 Tom Tromey <tromey@redhat.com>
9856
9857 * contrib/excheck.py: New file.
9858 * contrib/exsummary.py: New file.
9859 * contrib/gcc-with-excheck: New file.
9860
7f6a5dde
TT
98612013-02-28 Tom Tromey <tromey@redhat.com>
9862
9863 * python/python.c (gdbpy_print_stack): Call begin_line and
9864 fprintf_filtered inside TRY_CATCH.
9865
9e974e55
TT
98662013-02-28 Tom Tromey <tromey@redhat.com>
9867
9868 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9869 inside TRY_CATCH.
9870
dd5fa3e7
TT
98712013-02-28 Tom Tromey <tromey@redhat.com>
9872
9873 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9874 frame_object_to_frame_info inside TRY_CATCH.
9875
86a3263f
TT
98762013-02-28 Tom Tromey <tromey@redhat.com>
9877
9878 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9879 TRY_CATCH.
9880
81b52a3a
TT
98812013-02-28 Tom Tromey <tromey@redhat.com>
9882
9883 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9884
d50a0ce2
CV
98852013-02-27 Corinna Vinschen <vinschen@redhat.com>
9886
9887 * windows-nat.c: Throughout, fix format strings and casts of
9888 printf-like functions to avoid type related warnings on all
9889 platforms.
9890 (handle_output_debug_string): Fetch context information address
9891 from debug string using string_to_core_addr.
9892
e1f58301
JW
98932013-02-27 Jiong Wang <jiwang@tilera.com>
9894
9895 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9896 * regformats/reg-tilegx32.dat: New.
9897
4fcd89fc
JW
98982013-02-27 Jiong Wang <jiwang@tilera.com>
9899
9900 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9901
748d24e6
JW
99022013-02-27 Jiong Wang <jiwang@tilera.com>
9903
9904 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9905
6c8e944d
YQ
99062013-02-27 Yao Qi <yao@codesourcery.com>
9907 Pedro Alves <palves@redhat.com>
9908
9909 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9910 pc/tp/range/outside, look for the next trace frame instead of
9911 always starting from frame 0.
6c8e944d 9912
acd7db30
AG
99132013-02-26 Anthony Green <green@moxielogic.com>
9914
9915 * configure.tgt: Add support for moxie-*-rtems* target.
9916
025e6dce
PA
99172013-02-25 Pedro Alves <palves@redhat.com>
9918
9919 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9920 warning text.
9921
ca9c94ef
MR
99222013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9923
9924 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9925 if $fp is used as the virtual frame pointer.
9926
24c274a1
AM
99272013-02-23 Alan Modra <amodra@gmail.com>
9928
9929 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9930 symbol size.
9931 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9932 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9933 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9934 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9935
bfada189
JK
99362013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9937
9938 Code cleanup.
9939 * elfread.c (build_id_bfd_get): Make the return type const.
9940 (build_id_verify): Make the check parameter const.
9941 (build_id_to_debug_filename): Make the build_id parameter and variable
9942 data const.
9943 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9944
c0355132
AM
99452013-02-21 Alan Modra <amodra@gmail.com>
9946
9947 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9948
9f44fbc0
SCR
99492013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9950
9951 Add a new method 'disassemble' to gdb.Architecture class.
9952 * python/py-arch.c (archpy_disassmble): Implementation of the
9953 new method gdb.Architecture.disassemble.
9954 (arch_object_methods): Add entry for the new method.
9955
b74ea3eb
JW
99562013-02-20 Jiong Wang <jiwang@tilera.com>
9957
9958 * MAINTAINERS (Write After Approval): Add myself to the list.
9959
61a672f1
PA
99602013-02-19 Pedro Alves <palves@redhat.com>
9961
9962 Garbage collect 'struct monitor_ops'::load_routine.
9963
9964 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9965 * monitor.c (monitor_load): No longer call
9966 current_monitor->load_routine.
9967 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9968 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9969 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9970
40e397df
PA
99712013-02-19 Pedro Alves <palves@redhat.com>
9972
9973 PR gdb/15161
9974
9975 Harmonize with generic_load.
9976
9977 * monitor.c: Include "readline/readline.h".
9978 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9979 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9980 long/strtol for the 'load_offset' local. Error out if no argument
9981 is given or if too many arguments are given. Tilde expand the
9982 passed in file name.
9983
f698ca8e
KT
99842013-02-19 Kai Tietz <ktietz@redhat.com>
9985
9986 PR gdb/15161
9987 * symfile.c (load_section_data): Change type of load_offset
9988 to CORE_ADDR.
9989 (generic_load): User strtoulst instead of strtoul for conversion
9990 of load_offset.
9991
3361b059
WL
99922013-02-19 Jiong Wang <jiwang@tilera.com>
9993
9994 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9995 for return address, "lr" register, saved on stack.
9996 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9997 after we invoke tilegx_analyze_prologue.
9998
3e9d5130
WL
99992013-02-19 Jiong Wang <jiwang@tilera.com>
10000
bb1bcd86
WL
10001 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10002
3361b059 100032013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10004
b74ea3eb 10005 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10006
4aaf2503
WL
100072013-02-19 Jiong Wang <jiwang@tilera.com>
10008
b74ea3eb 10009 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10010 (tilegx_write_pc): New function.
10011 (tilegx_cannot_reference_register): Return zero if REGNO
10012 is TILEGX_FAULTNUM_REGNUM.
10013 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10014 (tilegx_register_name): Add handling of "faultnum" register.
10015 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10016 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10017 handling of TILEGX_FAULTNUM_REGNUM.
10018 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10019
bc23a956
WL
100202013-02-19 Jiong Wang <jiwang@tilera.com>
10021
10022 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10023 should be aligned to 64bit.
bc23a956 10024
42f45f1a
KT
100252013-02-19 Kai Tietz <ktietz@redhat.com>
10026
10027 * windows-nat.c (windows_xfer_memory): Fix debug-output
10028 for LLP64.
10029
6ce4c112
LL
100302013-02-19 Lei Liu <lei.liu2@windriver.com>
10031
10032 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10033 Don't check DSP register number if HAVE_DSP is not set.
10034
30e8ee25
AM
100352013-02-19 Alan Modra <amodra@gmail.com>
10036
10037 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10038 throughout file instead.
10039 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10040 Don't xmalloc return value.
10041 (build_id_verify): Similarly. Don't xfree.
10042 (build_id_to_debug_filename): Update.
10043 (find_separate_debug_file_by_buildid): Update, don't xfree.
10044
4c9ad8c2
TT
100452013-02-18 Tom Tromey <tromey@redhat.com>
10046
10047 PR gdb/15102:
10048 * dwarf2read.c (read_subrange_type): Use result of
10049 'check_typedef'.
10050
983dc440
YQ
100512013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10052
10053 * frame.c: Remove one extra white space after #include
10054 directive.
10055
7fb2b84a
JK
100562013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10057
10058 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10059
edceb2a9
JK
100602013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10061
10062 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10063 and dir commands into an if block.
10064
e81b7af8
TT
100652013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10066
10067 * python/py-breakpoint (struct pybp_code): Use int instead of
10068 enum type_code.
10069
f5911ea1
HAQ
100702013-02-15 Pedro Alves <pedro@codesourcery.com>
10071 Hafiz Abid Qadeer <abidh@codesourcery.com>
10072
10073 * NEWS: Mention new field "trace-file".
10074 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10075 (tfile_open): Record the trace file's filename in the trace
10076 status.
10077 (tfile_files_info): Mention the name of the trace file.
10078 Check the "filename" field explicitely.
10079 (trace_status_command): Explicitely check "filename" field.
10080 (trace_find_command): Ditto.
10081 (trace_find_pc_command): Ditto.
10082 (trace_find_tracepoint_command): Ditto.
10083 (trace_find_line_command): Ditto.
10084 (trace_find_range_command): Ditto.
10085 (trace_find_outside_command): Ditto.
10086 * tracepoint.h (struct trace_status) <from_file>: Rename it
10087 to "filename" and make it hold the trace file's filename
10088 instead of a boolean.
10089 * remote.c (remote_get_trace_status): Initialize "filename"
10090 field with NULL instead of 0.
10091
796cb314
YQ
100922013-02-15 Yao Qi <yao@codesourcery.com>
10093
10094 * remote.c: Fix a typo.
10095
42e79b1d
PM
100962013-02-14 Pierre Muller <muller@sourceware.org>
10097
10098 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10099
baea0dae
PA
101002013-02-14 Pedro Alves <palves@redhat.com>
10101
10102 * utils.c (savestring): Don't #undef it. Move function to
10103 common/common-utils.c.
10104 * common/common-utils.c: Include gdb_string.h.
10105 (savestring): Move here from utils.c.
10106 * common/common-utils.h (savestring): Declare.
10107
57c3b6ed
PA
101082013-02-14 Pedro Alves <palves@redhat.com>
10109
10110 * utils.c (savestring): Rename parameter 'size' to 'len'.
10111
d6c44983
YZ
101122013-02-14 Pedro Alves <palves@redhat.com>
10113 Yufeng Zhang <yufeng.zhang@arm.com>
10114
10115 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10116 (aarch64_inferior_data, struct aarch64_inferior_data):
10117 Delete.
10118 (struct aarch64_process_info): New.
10119 (aarch64_process_list): New global.
10120 (aarch64_find_process_pid, aarch64_add_process)
10121 (aarch64_process_info_get): New functions.
10122 (aarch64_inferior_data_get): Delete.
10123 (aarch64_process_info_get): New function.
10124 (aarch64_forget_process): New function.
10125 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10126 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10127 aarch64_get_debug_reg_state.
10128 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10129 instead of linux_nat_iterate_watchpoint_lwps.
10130 (aarch64_linux_new_fork): New function.
10131 (aarch64_linux_child_post_startup_inferior): Use
10132 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10133 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10134 (aarch64_linux_remove_hw_breakpoint)
10135 (aarch64_handle_aligned_watchpoint)
10136 (aarch64_handle_unaligned_watchpoint)
10137 (aarch64_linux_insert_watchpoint)
10138 (aarch64_linux_remove_watchpoint)
10139 (aarch64_linux_stopped_data_address): Adjust to pass the current
10140 process id to aarch64_debug_reg_state.
10141 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10142 linux_nat_new_fork hook, and aarch64_forget_process as
10143 linux_nat_forget_process hook; remove the call to
10144 register_inferior_data_with_cleanup.
10145
4819b3f8
PA
101462013-02-14 Pedro Alves <palves@redhat.com>
10147
10148 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10149 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10150 lval_memory.
10151
1773c82c
HAQ
101522013-02-14 Pedro Alves <pedro@codesourcery.com>
10153 Hafiz Abid Qadeer <abidh@codesourcery.com>
10154
10155 * tracepoint.h (validate_trace_state_variable_name): Declare.
10156 * tracepoint.c (validate_trace_state_variable_name): New.
10157 (trace_variable_command): Parse the trace state variable's name
10158 without using parse_expression. Do several validations.
10159 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10160 trace state variable's name with parse_expression. Validate it.
10161
53778a97
YQ
101622013-02-14 Yao Qi <yao@codesourcery.com>
10163
10164 * infcmd.c (breakpoint_proceeded): Remove it.
10165
7b3ae3a6
YQ
101662013-02-14 Yao Qi <yao@codesourcery.com>
10167
10168 * tracepoint.c (end_actions_pseudocommand): Make it static.
10169 (while_stepping_pseudocommand): Likewise.
10170 * tracepoint.h (end_actions_pseudocommand): Remove the
10171 declaration.
10172 (while_stepping_pseudocommand): Likewise.
10173
64580925
YQ
101742013-02-14 Yao Qi <yao@codesourcery.com>
10175
10176 * cli/cli-decode.c (help_cmd): Remove the declaration of
10177 "cmdlist".
10178 (help_all): Likewise.
10179
26cb8b7c
PA
101802013-02-13 Pedro Alves <palves@redhat.com>
10181
10182 * amd64-linux-nat.c (update_debug_registers_callback):
10183 Update comment.
10184 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10185 iterate_over_lwps.
10186 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10187 i386_debug_reg_state.
10188 (amd64_linux_new_fork): New function.
10189 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10190 linux_nat_new_fork hook, and i386_forget_process as
10191 linux_nat_forget_process hook.
10192 * i386-linux-nat.c (update_debug_registers_callback):
10193 Update comment.
a8256ea1 10194 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10195 iterate_over_lwps.
10196 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10197 i386_debug_reg_state.
10198 (i386_linux_new_fork): New function.
10199 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10200 linux_nat_new_fork hook, and i386_forget_process as
10201 linux_nat_forget_process hook.
10202 * i386-nat.c (i386_init_dregs): Delete.
10203 (i386_inferior_data, struct i386_inferior_data):
10204 Delete.
10205 (struct i386_process_info): New.
10206 (i386_process_list): New global.
10207 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10208 New functions.
10209 (i386_inferior_data_get): Delete.
10210 (i386_process_info_get): New function.
10211 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10212 (i386_forget_process): New function.
10213 (i386_cleanup_dregs): Rewrite.
10214 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10215 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10216 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10217 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10218 to i386_debug_reg_state.
10219 (i386_use_watchpoints): Don't register inferior data.
10220 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10221 adjust comment.
10222 (i386_forget_process): Declare.
10223 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10224 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10225 New static globals.
10226 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10227 (add_initial_lwp): New, factored out from ...
10228 (add_lwp): ... this. Don't check the number of lwps before
10229 calling linux_nat_new_thread.
10230 (linux_nat_iterate_watchpoint_lwps): Delete.
10231 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10232 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10233 forks and vforks.
10234 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10235 initial lwp.
10236 (linux_nat_kill, linux_nat_mourn_inferior): Call
10237 linux_nat_forget_process.
10238 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10239 (linux_nat_forget_process): New functions.
10240 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10241 type.
10242 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10243 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10244 types.
10245 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10246 (linux_nat_forget_process): New declarations.
10247
10248 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10249 (amd64fbsd_mourn_inferior): New function.
10250 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10251 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10252
5befea72
MS
102532013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10254
55015247
YQ
10255 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10256 Adding _().
5befea72 10257
1d3ffd6b
MS
102582013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10259
10260 * aarch64-linux-nat.c (debug_reg_change_callback)
10261 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10262 %s and phex().
10263
6eb04473
MS
102642013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10265
10266 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10267 with LONGEST.
10268
a016fc87
HAQ
102692013-02-13 Pedro Alves <palves@redhat.com>
10270 Hafiz Abid Qadeer <abidh@codesourcery.com>
10271
10272 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10273
e234dfaf
TT
102742013-02-12 Tom Tromey <tromey@redhat.com>
10275
10276 PR symtab/11464:
10277 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10278 NAME return.
10279 (classify_inner_name): Remove 'first_name' argument, add
10280 'context'. Remove unused variable.
10281 (yylex): Explicitly maintain the context type. Exit loop earlier
10282 if NAME result is seen.
10283
0b1afbb3
PA
102842013-02-12 Pedro Alves <palves@redhat.com>
10285
10286 * amd64-darwin-tdep.c: Add (C) after Copyright.
10287 * cli/cli-cmds.h: Ditto.
10288 * cli/cli-decode.c: Ditto.
10289 * cli/cli-decode.h: Ditto.
10290 * cli/cli-dump.c: Ditto.
10291 * cli/cli-dump.h: Ditto.
10292 * cli/cli-interp.c: Ditto.
10293 * cli/cli-logging.c: Ditto.
10294 * cli/cli-script.c: Ditto.
10295 * cli/cli-script.h: Ditto.
10296 * cli/cli-setshow.c: Ditto.
10297 * cli/cli-setshow.h: Ditto.
10298 * cli/cli-utils.c: Ditto.
10299 * cli/cli-utils.h: Ditto.
10300 * config/alpha/nm-osf3.h: Ditto.
10301 * config/djgpp/djconfig.sh: Ditto.
10302 * config/i386/nm-fbsd.h: Ditto.
10303 * config/i386/nm-i386gnu.h: Ditto.
10304 * config/nm-linux.h: Ditto.
10305 * config/nm-nto.h: Ditto.
10306 * config/rs6000/nm-rs6000.h: Ditto.
10307 * config/sparc/nm-sol2.h: Ditto.
10308 * darwin-nat-info.c: Ditto.
10309 * dfp.c: Ditto.
10310 * dfp.h: Ditto.
10311 * gdb-demangle.h: Ditto.
10312 * i386-darwin-nat.c: Ditto.
10313 * i386-darwin-tdep.c: Ditto.
10314 * linux-fork.h: Ditto.
10315 * m32c-tdep.c: Ditto.
10316 * microblaze-linux-tdep.c: Ditto.
10317 * microblaze-rom.c: Ditto.
10318 * microblaze-tdep.c: Ditto.
10319 * microblaze-tdep.h: Ditto.
10320 * mips-linux-tdep.h: Ditto.
10321 * ppc-ravenscar-thread.c: Ditto.
10322 * ppc-ravenscar-thread.h: Ditto.
10323 * prologue-value.c: Ditto.
10324 * prologue-value.h: Ditto.
10325 * ravenscar-thread.c: Ditto.
10326 * ravenscar-thread.h: Ditto.
10327 * sparc-ravenscar-thread.c: Ditto.
10328 * sparc-ravenscar-thread.h: Ditto.
10329 * tilegx-linux-tdep.c: Ditto.
10330 * unwind_stop_reasons.def: Ditto.
10331 * windows-nat.h: Ditto.
10332 * xtensa-linux-tdep.c: Ditto.
10333 * xtensa-xtregs.c: Ditto.
10334 * regformats/regdat.sh: Ditto.
10335 * regformats/regdef.h: Ditto.
10336
6c01dd94
PA
103372013-02-12 Pedro Alves <palves@redhat.com>
10338
10339 * break-catch-sig.c: Update copyright years.
10340
b65a2bd9
SCR
103412013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10342
10343 Add support for a destructor for ui_out data and use it to
10344 provide a ui_out destructor.
10345 * ui-out.h: Declare the new ui_out destructor.
10346 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10347 * ui-out.c (default_data_destroy): Add a default data destructor
10348 which does nothing.
10349 (default_ui_out_impl): Set the new data_destroy field to
10350 default_data_destroy
10351 (uo_data_destroy): Local function which invokes the data
10352 destructor if present.
10353 (clear_table): Local function which clears the table data of a
10354 ui_out object.
10355 (ui_out_destroy): Public function which frees a ui_out object.
10356 (ui_out_table_end): Use the new clear_table function.
10357 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10358 NULL.
10359 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10360 to NULL.
10361
c2792f5a
DE
103622013-02-11 Doug Evans <dje@google.com>
10363
10364 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10365 (printf_decfloat): New function. Broken out from ui_printf.
10366 Remove unnecessary code to shift the entire format string down.
10367 (printf_pointer): New function.
10368 (ui_printf): Code to print C strings, wide C strings, decfloats,
10369 and pointers moved to separate functions.
10370
d9e98382
SDJ
103712013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10372
10373 * valops.c (value_assign): Handling bitfield offset in
10374 `lval_internalvar_component' case.
10375
4ff3ce77
DE
103762013-02-08 Doug Evans <dje@google.com>
10377
10378 * common/format.c (parse_format_string): Fix whitespace.
10379
901900c4
MGD
103802013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10381
10382 * stack.c (return_command): Work around uninitialized variable
10383 warning.
10384
b5dbc8d4
YZ
103852013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10386
10387 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10388 number of the registers from 36 to 34.
10389
51d66578
MS
103902013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10391
10392 * NEWS: Mention new AArch64 native and target support.
10393
176b1c95
MS
103942013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10395
10396 * MAINTAINERS (Write After Approval): Add myself.
10397
9d19df75
MS
103982013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10399 Marcus Shawcroft <marcus.shawcroft@arm.com>
10400 Nigel Stephens <nigel.stephens@arm.com>
10401 Yufeng Zhang <yufeng.zhang@arm.com>
10402
10403 * aarch64-linux-nat.c: New file.
10404 * config/aarch64/linux.mh: New file.
10405 * configure.host: Add AArch64.
10406 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10407
7e1e0340
DE
104082013-02-07 Doug Evans <dje@google.com>
10409
10410 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10411 disassemble command.
10412
45e25a36
MS
104132013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10414
10415 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10416 set_gdbarch_fetch_tls_load_module_address.
10417
bbfdfe1c
DM
104182013-02-06 David S. Miller <davem@davemloft.net>
10419
10420 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10421 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10422 * value.c (struct_return_convention): New function.
10423 (using_struct_return): Implement in terms of struct_return_convention.
10424 * value.h (struct_return_convention): Declare.
10425 * stack.c (return_command): Allow successful overriding of the return
10426 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10427
bc9abe4a
TT
104282013-02-06 Tom Tromey <tromey@redhat.com>
10429
10430 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10431 outside of TRY_CATCH.
10432
134a2066
YQ
104332013-02-06 Yao Qi <yao@codesourcery.com>
10434
10435 * mi/mi-interp.c: Include "tracepoint.h".
10436 (mi_tsv_modified): Declare.
10437 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10438 (mi_interpreter_init): Call observer_attach_tsv_modified.
10439 (mi_tsv_modified): New.
10440 (mi_tsv_created, mi_tsv_deleted): Update.
10441 * tracepoint.c (trace_variable_command): Call
10442 observer_notify_tsv_modified if the initial value of tsv is
10443 changed.
10444 (delete_trace_state_variable): Call
10445 observer_notify_tsv_deleted earlier.
10446 (trace_variable_command): Caller update.
10447 (create_tsv_from_upload): Likewise.
10448 * observer.sh: Declare "struct trace_state_variable".
10449
10450 * NEWS: Mention the new MI notification "=tsv-modified".
10451
59be2b6a
DE
104522013-02-05 Doug Evans <dje@google.com>
10453
10454 * completer.c (location_completer): Fix typo in comment.
10455
d30113d4
JK
104562013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10457
10458 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10459 ADDRESS sorted.
10460
14ac654f
MS
104612013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10462
10463 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10464 Refactor if statement to avoid trailing || operator.
10465
543bf33d
AT
104662013-02-05 Andreas Tobler <andreast@fgznet.ch>
10467
10468 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10469
dc18f110
AT
104702013-02-04 Andreas Tobler <andreast@fgznet.ch>
10471
10472 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10473 * configure.host: Add powerpc*-*-freebsd* target.
10474 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10475 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10476 * config/powerpc/fbsd.mh: New file.
10477
b3ac9c77
SDJ
104782013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10479 Denys Vlasenko <dvlasenk@redhat.com>
10480 Pedro Alves <palves@redhat.com>
10481
10482 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10483 (struct elf_internal_linux_prpsinfo): Forward declare.
10484 * gdbarch.h, gdbarch.c: Regenerate.
10485 * linux-tdep.c: Include `cli/cli-utils.h'.
10486 (linux_fill_prpsinfo): New function.
10487 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10488 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10489 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10490 depending on gdbarch pointer bitness.
10491 * ppc-linux-tdep.c: Include elf-bfd.h.
10492 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10493 on 32-bit.
10494
176eb98c
MS
104952013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10496 Marcus Shawcroft <marcus.shawcroft@arm.com>
10497 Nigel Stephens <nigel.stephens@arm.com>
10498 Yufeng Zhang <yufeng.zhang@arm.com>
10499
10500 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10501
cf0dbd6f
MS
105022013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10503 Marcus Shawcroft <marcus.shawcroft@arm.com>
10504 Nigel Stephens <nigel.stephens@arm.com>
10505 Yufeng Zhang <yufeng.zhang@arm.com>
10506
10507 * aarch64-newlib-tdep.c: New file.
10508 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10509 aarch64*-*-elf.
10510 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10511 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10512 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10513 * osabi.c (gdb_osabi_names): Add "Newlib".
10514
1ae3db19
MS
105152013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10516 Marcus Shawcroft <marcus.shawcroft@arm.com>
10517 Nigel Stephens <nigel.stephens@arm.com>
10518 Yufeng Zhang <yufeng.zhang@arm.com>
10519
10520 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10521 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10522 * aarch64-linux-tdep.c: New file.
10523 * aarch64-linux-tdep.h: New file.
10524 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10525 * configure.tgt: Add aarch64-none-linux-gnu.
10526
07b287a0
MS
105272013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10528 Marcus Shawcroft <marcus.shawcroft@arm.com>
10529 Nigel Stephens <nigel.stephens@arm.com>
10530 Yufeng Zhang <yufeng.zhang@arm.com>
10531
10532 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10533 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10534 (ALLDEPFILES): Add aarch64-tdep.c.
10535 * aarch64-tdep.c: New file.
10536 * aarch64-tdep.h: New file.
10537 * configure.tgt: Add AArch64.
10538 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10539 (aarch64-expedite): New definition.
10540 * features/aarch64-core.xml: New file.
10541 * features/aarch64-fpu.xml: New file.
10542 * features/aarch64-without-fpu.c: New file (generated).
10543 * features/aarch64-without-fpu.xml: New file.
10544 * features/aarch64.c: New file (generated).
10545 * features/aarch64.xml: New file.
10546 * regformats/aarch64-without-fpu.dat: New file (generated).
10547 * regformats/aarch64.dat: New file (generated).
10548
0f1b18ab
JK
105492013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10550
10551 * contrib/expect-read1.c: New file.
10552 * contrib/expect-read1.sh: New file.
10553
233d95b5
JK
105542013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10555
10556 * dwarf2read.c (file_file_name): New function with code from
10557 file_full_name.
10558 (file_full_name): Move most of the code to file_file_name.
10559 (macro_start_file): Rename variable full_name to file_name and use
10560 file_file_name for it. Add comp_dir parameter to new_macro_table.
10561 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10562 macro_source_file->filename access by macro_source_fullname call.
10563 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10564 caller.
10565 * macrotab.c (struct macro_table): New field comp_dir.
10566 (macro_include): New variables link_fullname and source_fullname.
10567 Replace any macro_source_file->filename access by macro_source_fullname
10568 call.
10569 (macro_lookup_inclusion): Remove the partial filenames checking code.
10570 (check_for_redefinition): New variables source_fullname and
10571 found_key_fullname. Replace any macro_source_file->filename access by
10572 macro_source_fullname call.
10573 (macro_undef): New variables source_fullname and key_fullname. Replace
10574 any macro_source_file->filename access by macro_source_fullname call.
10575 (macro_lookup_definition): New variables retval and source_fullname.
10576 Replace any macro_source_file->filename access by macro_source_fullname
10577 call.
10578 (foreach_macro): New variable key_fullname. Replace any
10579 macro_source_file->filename access by macro_source_fullname call.
10580 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10581 macro_source_file->filename access by macro_source_fullname call.
10582 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10583 (macro_source_fullname): New function.
10584 * macrotab.h (struct macro_source_file): Extent the filename field
10585 comment.
10586 (new_macro_table): New parameter comp_dir, add a comment for it.
10587 (macro_source_fullname): new declaration.
10588
da235a7c
JK
105892013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10590
10591 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10592 this_real_name to outer block. Use it also for
10593 compare_filenames_for_search.
10594 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10595 with dw2_get_real_path for file_matcher, considering also
10596 BASENAMES_MAY_DIFFER.
10597 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10598
fbd9ab74
JK
105992013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10600
10601 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10602 to the file_matcher parameter. Pass 0 to it.
10603 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10604 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10605 NULL psymtab_to_fullname result.
10606 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10607 an expected filename instead.
10608 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10609 file_matcher parameter. Call also psymtab_to_fullname, after newly
10610 considering BASENAMES_MAY_DIFFER.
10611 * source.c (rewrite_source_path): Remove static.
10612 * source.h (rewrite_source_path): New declaration.
10613 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10614 the expand_symtabs_matching field. Comment it.
10615 * symtab.c (file_matches): New function comment. Add parameter
10616 basenames, implement it.
10617 (search_symbols_file_matches): Add basenames parameter. Update the
10618 file_matches caller.
10619 (search_symbols): Match FILES also against symtab_to_fullname.
10620 Optimize it for BASENAMES_MAY_DIFFER.
10621
56d397a3
JK
106222013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10623
10624 * source.c (print_source_lines_base): Print for TUI also "fullname".
10625 * tui/tui-data.c (init_content_element): Change tui_locator_element
10626 field to full_name.
10627 * tui/tui-data.h (struct tui_locator_element): Likewise.
10628 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10629 tui_update_locator_filename calls to tui_update_locator_fullname.
10630 Replace symtab->filename refererence by symtab_to_fullname call.
10631 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10632 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10633 field to full_name. Replace symtab->filename refererence by
10634 symtab_to_fullname call.
10635 (tui_show_symtab_source): Rename parameter to fullname. Change
10636 tui_locator_element field to full_name.
10637 * tui/tui-stack.c: Include source.h.
10638 (tui_set_locator_filename): Rename the declaration to ...
10639 (tui_set_locator_fullname): ... here. Rename its parameter to
10640 fullname, updates its comment.
10641 (tui_set_locator_info): Rename its parameter to fullname.
10642 (tui_set_locator_filename): Rename the definition to ...
10643 (tui_set_locator_fullname): ... here. Rename its parameter to
10644 fullname, updates its comment. Change tui_locator_element field to
10645 full_name.
10646 (tui_set_locator_info): Rename its parameter to fullname.
10647 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10648 (tui_update_locator_filename): Rename to ...
10649 (tui_update_locator_fullname): ... here. Rename callee to
10650 tui_set_locator_fullname.
10651 (tui_show_frame_info): Replace symtab->filename refererence by
10652 symtab_to_fullname call.
10653 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10654 (tui_update_locator_fullname): ... here.
10655 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10656 tui_update_locator_fullname. Replace symtab->filename refererence by
10657 symtab_to_fullname call.
10658 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10659 Rename the callee to tui_update_locator_fullname.
10660 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10661
05cba821
JK
106622013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10663
10664 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10665 by symtab_to_filename_for_display calls.
10666 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10667 (clear_command): New variable sal_fullname, initialize it. Replace
10668 compare_filenames_for_search by filename_cmp with sal_fullname.
10669 (say_where, update_static_tracepoint): Replace symtab->filename
10670 refererences by symtab_to_filename_for_display calls.
10671 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10672 Likewise.
10673 * dwarf2read.c: Include source.h.
10674 (fixup_go_packaging): Replace symtab->filename refererences by
10675 symtab_to_filename_for_display calls.
10676 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10677 Replace symtab->filename refererences by symtab_to_filename_for_display
10678 calls.
10679 (create_sals_line_offset, convert_linespec_to_sals): New variable
10680 fullname, initialize it, replace symtab->filename reference by the
10681 variable.
10682 * linux-fork.c: Include source.h.
10683 (info_checkpoints_command): Replace symtab->filename refererences by
10684 symtab_to_filename_for_display calls.
10685 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10686 by symtab_to_filename_for_display calls.
10687 * mdebugread.c: Include source.h.
10688 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10689 symtab_to_filename_for_display calls.
10690 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10691 (mi_cmd_file_list_exec_source_files): Likewise.
10692 * printcmd.c: Include source.h.
10693 (build_address_symbolic): Replace symtab->filename refererences by
10694 symtab_to_filename_for_display calls.
10695 * psymtab.c (partial_map_symtabs_matching_filename)
10696 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10697 with psymtab_to_fullname.
10698 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10699 by symtab_to_filename_for_display calls.
10700 (stpy_get_filename): New variable filename, initialize it, use instead
10701 of symtab->filename refererences.
10702 (salpy_str): Make variable filename const char *. Replace
10703 symtab->filename refererences by symtab_to_filename_for_display calls.
10704 * skip.c: Include source.h and filenames.h.
10705 (skip_file_command): Remove const from the symtab variable. Replace
10706 symtab->filename refererences by symtab_to_fullname call.
10707 (function_name_is_marked_for_skip): New variables searched_for_fullname
10708 and fullname. Use them to search also with symtab's fullname.
10709 * source.c (find_source_lines): Replace symtab->filename refererences
10710 by symtab_to_filename_for_display calls.
10711 (print_source_lines_base): New variable filename, use it instead of
10712 symtab->filename. Replace symtab->filename refererences by
10713 symtab_to_filename_for_display calls.
10714 (line_info, forward_search_command): Replace symtab->filename
10715 refererences by symtab_to_filename_for_display calls.
10716 (reverse_search_command): Replace symtab->filename refererences by
10717 symtab_to_filename_for_display calls. New variable filename for it.
10718 * stack.c (frame_info): Likewise.
10719 * symmisc.c: Include source.h.
10720 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10721 (maintenance_info_symtabs): Replace symtab->filename refererences by
10722 symtab_to_filename_for_display calls.
10723 * symtab.c (iterate_over_some_symtabs): Call
10724 compare_filenames_for_search also with symtab_to_fullname.
10725 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10726 symtab->filename refererences by symtab_to_filename_for_display calls.
10727 (find_line_symtab): Replace symtab->filename refererences by
10728 symtab_to_filename_for_display calls.
10729 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10730 (print_symbol_info): Make the last parameter const char *. New
10731 variable s_filename. Use it in the function.
10732 (symtab_symbol_info): Make the last_filename variable const char *.
10733 Replace symtab->filename refererences by symtab_to_filename_for_display
10734 calls.
10735 (rbreak_command): New variable fullname. Use it. Replace
10736 symtab->filename refererence by symtab_to_filename_for_display call.
10737 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10738 (print_one_static_tracepoint_marker): Replace symtab->filename
10739 refererences by symtab_to_filename_for_display calls.
10740 * tui/tui-source.c (tui_set_source_content): New variables filename and
10741 s_filename. Replace symtab->filename refererences by this variable.
10742 Replace other symtab->filename refererences by
10743 symtab_to_filename_for_display calls.
10744
1b56eb55
JK
107452013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10746 Jan Kratochvil <jan.kratochvil@redhat.com>
10747
10748 Add a new variable that controls a way in which filenames are
10749 displayed.
10750 * NEWS (set filename-display): New entry.
10751 * source.c (filename_display_basename, filename_display_relative)
10752 (filename_display_absolute, filename_display_kind_names)
10753 (filename_display_string, show_filename_display_string)
10754 (symtab_to_filename_for_display): New.
10755 (_initialize_source): Added initialization of 'filename-display'
10756 variable.
10757 * source.h (symtab_to_filename_for_display): Added declaration.
10758 * stack.c (print_frame): Added new variable and calling of a new
10759 function and condition with this variable. Changed third argument of
10760 calling of a function.
10761
aa079c93
JK
107622013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10763
10764 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10765 Rename field reference filename to fullname.
10766 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10767 fullname. New comment for it.
10768 * tui/tui-source.c (tui_set_source_content): Rename field reference
10769 filename to fullname. Initialize field by symtab_to_fullname now.
10770 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10771 reference filename to fullname. Use symtab_to_fullname during
10772 comparison.
10773
652a8996
JK
107742013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10775
10776 Code cleanup.
10777 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10778 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10779 filename to fullname. Rename variable this_name to this_fullname.
10780 Lowercase FILENAME_CMP call.
10781 (dw2_find_symbol_file): New comment for the returned string.
10782 (dwarf2_gdb_index_functions): Rename the function to
10783 dw2_expand_symtabs_with_fullname.
10784 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10785 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10786 fullname.
10787 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10788 * symfile.h (struct quick_symbol_functions): Rename field
10789 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10790 parameter filename to fullname. Document returned string meaning for
10791 find_symbol_file.
10792 * symtab.c (find_line_symtab): Rename the called function to
10793 expand_symtabs_with_fullname.
10794
af529f8f
JK
107952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10796
10797 Code cleanup.
10798 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10799 call of filename_cmp with compare_filenames_for_search.
10800 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10801 is_abs, unify the call of FILENAME_CMP with
10802 compare_filenames_for_search. New gdb_asserts for real_path and name.
10803 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10804 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10805 * symfile.h (struct quick_symbol_functions): Extend the comment for
10806 map_symtabs_matching_filename.
10807 * symtab.c (compare_filenames_for_search): Remove the function comment
10808 relative path requirement. Handle absolute filenames, with a comment.
10809 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10810 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10811 real_path and name. Unify the call of compare_filenames_for_search
10812 with FILENAME_CMP.
10813 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10814
2f202fde
JK
108152013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10816
10817 Code cleanup.
10818 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10819 source_file references by symtab field references. Remove variables
10820 sal and fullname.
10821 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10822 (clear_command, say_where): Replace bp_location field source_file
10823 references by symtab field references.
10824 (bp_location_dtor): Remove the source_file reference.
10825 (update_static_tracepoint): Replace bp_location field source_file
10826 references by symtab field references.
10827 (breakpoint_free_objfile): New function.
10828 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10829 Replace the field source_file by field symtab, extend its comment.
10830 (breakpoint_free_objfile): New declaration.
10831 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10832 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10833 field source_file references by symtab field references.
10834
f5b95b50
JK
108352013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10836
10837 Replace xfullpath calls by gdb_realpath calls.
10838 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10839 function comment.
10840 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10841 Remove it from the iterate_over_some_symtabs call.
10842 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10843 Remove it from the dw2_map_expand_apply calls, remove a block handling
10844 it.
10845 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10846 Remove it from the iterate_over_some_symtabs call.
10847 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10848 Remove it from the partial_map_expand_apply calls, remove a block
10849 handling it. Drop gdb_realpath call and cleanups from the real_path
10850 handling.
10851 * source.c (openp): Drop the comment part about xfullpath. Replace
10852 xfullpath calls by gdb_realpath calls.
10853 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10854 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10855 from method map_symtabs_matching_filename and its comment.
10856 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10857 gdb_realpath call.
10858 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10859 remove it also from the function comment, remove a block handling it.
10860 Drop gdb_realpath call and cleanups from the real_path handling.
10861 (iterate_over_symtabs): Drop variable full_path and its use.
10862 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10863 * utils.c (xfullpath): Remove.
10864 * utils.h (xfullpath): Remove.
10865
d78489bf
AT
108662013-02-01 Andreas Tobler <andreast@fgznet.ch>
10867
10868 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10869 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10870 (ALLDEPFILES): Add ppc64-tdep.c.
10871 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10872 ppc64-tdep.o to gdb_target_obs.
10873 * ppc64-tdep.h: New file.
10874 * ppc64-tdep.c: New file.
10875 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10876 ppc-linux-tdep.c to here.
10877 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10878 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10879 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10880 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10881 from ppc-linux-tdep.c to here.
10882 (ppc64_convert_from_func_ptr_addr): Rename from
10883 ppc64_linux_convert_from_func_ptr_addr to
10884 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10885 here.
10886 * rs6000-tdep.c:
10887 (read_insn): Move from ppc-linux-tdep.c to here.
10888 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10889 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10890 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10891 Removed above functions.
10892 (ppc_linux_init_abi): Adjust.
10893
8db60374
AR
108942013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10895
10896 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10897
f2e5f4ce
AR
108982013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10899
10900 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10901
c1f7d745
PA
109022013-02-01 Pedro Alves <palves@redhat.com>
10903
10904 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10905 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10906
8a92335b
JK
109072013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10908
10909 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10910 files with no separate debug info.
10911 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10912 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10913 only for files with no separate debug info.
10914
8eacb197
TT
109152013-01-31 Tom Tromey <tromey@redhat.com>
10916
10917 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10918 change type.
10919 (struct jit_program_space_data): Rename from jit_inferior_data.
10920 Update comments.
10921 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10922 Change return type. Attach data to program space.
10923 (jit_program_space_data_cleanup): Rename from
10924 jit_inferior_data_cleanup; change argument type.
10925 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10926 change type.
10927 (jit_register_code): Update.
10928 (jit_update_inferior_cache): Remove.
10929 (jit_breakpoint_deleted): Get jit data from the location's program
10930 space.
10931 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10932 'ps_data', change type.
10933 (jit_inferior_init, jit_breakpoint_re_set_internal)
10934 (jit_event_handler): Update.
10935 (free_objfile_data): Get data from objfile's program space.
10936 (_initialize_jit): Update.
10937
f25c0135
TT
109382013-01-31 Tom Tromey <tromey@redhat.com>
10939
10940 PR gdb/13987:
10941 * jit.c (struct jit_inferior_data) <cached_code_address,
10942 jit_breakpoint>: New fields.
10943 (jit_breakpoint_re_set_internal): Fix logging. Only create
10944 breakpoint if cached address has changed.
10945 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10946 functions.
10947 (_initialize_jit): Register breakpoint deleted observer.
10948
974a734b
AR
109492013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10950
10951 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10952 (save_infcall_suspend_state): Ifdef out unused inf.
10953 (restore_infcall_suspend_state): Ifdef out unused inf.
10954 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10955 (jit_frame_sniffer): Remove unused inf_data.
10956
df54f8eb
AR
109572013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10958
10959 * c-exp.y (classify_inner_name): Remove unused type.
10960 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10961 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10962 need_escape.
10963 (c_get_string): Remove unused kind.
10964 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10965
5799c0b9
AR
109662013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10967
10968 * charset.c (intermediate_encoding): Remove unused i.
10969 * completer.c (signal_completer): Remove unused i.
10970 * continuations.c (discard_my_continuations_1): Remove unused
10971 continuation_ptr.
10972 * corelow.c (core_close): Remove unuseD name.
10973 (get_core_siginfo): Remove unused pid.
10974 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10975 i, cps.
10976 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10977 (loclist_describe_location): Remove unused first.
10978 * event-top.c (command_line_handler): Remove unused got_eof.
10979 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10980 (resize_section_table): Remove unused old_value.
10981 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10982 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10983 * i386-tdep.c (i386_process_record): Remove unused rex.
10984 * infcmd.c (get_return_value): Remove unused uiout.
10985 * jv-lang.c (type_from_class): Remove unused is_array.
10986 * jv-valprint.c (java_val_print): Remove unused i.
10987 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10988 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10989 * m2-typeprint.c (m2_print_type): Remove unused code.
10990 * macroexp.c (get_character_constant): Remove unused body_start.
10991 (macro_stringify): Remove unused result.
10992 * objc-lang.c (find_methods): Remove unused gdbarch.
10993 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10994 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10995 * stack.c (print_frame_args): Remove unused summary.
10996 * thread.c (thread_apply_command): Remove unused p.
10997 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10998 * valops.c (search_struct_method): Remove unused skip.
10999 * valprint.c (generic_val_print): Remove unused byte_order.
11000 * varobj.c (varobj_update): Remove unused changed.
11001 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11002 (alias_command): Remove unused c.
11003 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11004 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11005 format.
11006 (mi_cmd_data_write_memory): Remove unused word_format.
11007 (mi_cmd_data_write_memory_bytes): Remove unused r.
11008 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11009 p_start, p_end.
11010 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11011 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11012 line_width.
11013
c656bca5
AR
110142013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11015
11016 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11017 * symtab.c (iterate_over_symtabs): Remove unused s.
11018 (find_pc_sect_symtab): Remove unused pspAce.
11019 (find_pc_sect_line): Remove unused alt_symtab.
11020 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11021 (completion_list_add_name): Remove unused newsize.
11022
7078baeb
TT
110232013-01-31 Tom Tromey <tromey@redhat.com>
11024
11025 PR c++/14998:
11026 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11027 TYPE_CODE_FUNC.
11028
c2e8b827
AR
110292013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11030
11031 * target.c (target_read_string): Remove unused origlen.
11032
0e43993a
AR
110332013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11034
11035 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11036 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11037 * ax-general.c (ax_print): Remove unused is_float.
11038 * blockframe.c (block_innermost_frame): Remove unused start, end.
11039 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11040
765a97ab
AR
110412013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11042
11043 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11044 (svr4_read_so_list): Remove unused lmo.
11045 * solib-target.c (solib_target_relocate_section_addresses): Remove
11046 unused flags.
11047
a99dad3d
TT
110482013-01-30 Tom Tromey <tromey@redhat.com>
11049
11050 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11051
3bff1ecd
TT
110522013-01-30 Tom Tromey <tromey@redhat.com>
11053
11054 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11055 * utils.c (gnu_debuglink_crc32): Remove.
11056 * utils.h (gnu_debuglink_crc32): Don't declare.
11057
7d455152
TT
110582013-01-30 Tom Tromey <tromey@redhat.com>
11059
11060 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11061 (read_structure_type, read_enumeration_type): Remove cast.
11062
abee88f2
TT
110632013-01-30 Tom Tromey <tromey@redhat.com>
11064
11065 * dwarf2read.c (read_namespace_type): Remove cast.
11066 (read_typedef): Likewise.
11067
8d9878a4
TT
110682013-01-29 Tom Tromey <tromey@redhat.com>
11069
11070 * dwarf2read.c (free_dwo_file): Remove assert.
11071
a543d2a9
TT
110722013-01-29 Tom Tromey <tromey@redhat.com>
11073
11074 * value.c (deprecated_set_value_modifiable): Remove.
11075 * value.h (deprecated_set_value_modifiable): Remove.
11076
bed911e5
DE
110772013-01-28 Doug Evans <dje@google.com>
11078
11079 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11080 to addresses from dwo files.
11081
28c64fc2
SCR
110822013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11083
11084 * valops.c (find_overload_match): Remove unused argument 'lax'.
11085 * value.h: Remove unused argument 'lax' from the declaration of
11086 find_overload_match.
11087 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11088 to find_overload_match.
11089 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11090 argument to find_overload_match.
11091
4d4ec4e5
TT
110922013-01-25 Tom Tromey <tromey@redhat.com>
11093
11094 * dwarf2read.c (processing_has_namespace_info): Remove.
11095 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11096 (process_die, read_func_scope, dwarf2_start_symtab)
11097 (new_symbol_full): Update.
11098
195a3f6c
TT
110992013-01-25 Tom Tromey <tromey@redhat.com>
11100
11101 * cp-namespace.c (cp_set_block_scope): Remove.
11102 * cp-support.h (cp_set_block_scope): Remove.
11103 * dbxread.c: Include block.h.
11104 (cp_set_block_scope): New function.
11105 (process_one_symbol): Update.
11106 * dwarf2read.c (read_func_scope): Use block_set_scope.
11107
8ba0730a
PA
111082013-01-25 Pedro Alves <palves@redhat.com>
11109
11110 * remote.c (add_current_inferior_and_thread): Tweak comment.
11111
12aaed36
TT
111122013-01-25 Tom Tromey <tromey@redhat.com>
11113
11114 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11115 (cp_add_using_directive): Add 'copy_names' argument.
11116 * cp-support.h (cp_add_using_directive): Update.
11117 (struct using_direct) <import_src, import_dest, alias,
11118 declaration>: Now const.
11119 * dwarf2read.c (read_import_statement): Use obconcat.
11120 Don't copy names passed to cp_add_using_directive.
11121
7fc75ca7
TT
111222013-01-25 Tom Tromey <tromey@redhat.com>
11123
11124 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11125
3405876a
PA
111262013-01-25 Pedro Alves <palves@redhat.com>
11127
11128 * remote.c (stop_reply_extract_thread): New.
11129 (add_current_inferior_and_thread): New parameter 'wait_status'.
11130 Handle it.
11131 (remote_start_remote): Pass wait status to
11132 add_current_inferior_and_thread.
11133 (extended_remote_run): Update comment.
11134 (extended_remote_create_inferior_1): Pass wait status to
11135 add_current_inferior_and_thread.
11136
8954db33
AB
111372013-01-25 Andrew Burgess <aburgess@broadcom.com>
11138 Ulrich Weigand <uweigand@de.ibm.com>
11139
11140 * valarith.c (value_vector_widen): New function for replicating a
11141 scalar into a vector.
11142 (value_binop): Use value_vector_widen to widen scalar to vector
11143 rather than casting, this better matches gcc C behaviour.
11144 * valops.c (value_casst): Update logic for casting between vector
11145 types, and for casting from scalar to vector, try to match gcc C
11146 behaviour.
11147 * value.h (value_vector_widen): Declare.
11148 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11149 function, handle special case for casting scalar to vector.
11150 (opencl_relop): Use opencl_value_cast.
11151 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11152 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11153 in order to use opencl_value_cast.
11154
843b20dc
YQ
111552013-01-25 Yao Qi <yao@codesourcery.com>
11156
11157 * event-loop.c: Include "queue.h".
11158 (gdb_event_p): New typedef.
11159 (DECLARE_QUEUE_P): Use.
11160 (DEFINE_QUEUE_P): Use.
11161 (async_queue_event): Remove.
11162 (gdb_event_xfree): New.
11163 (initialize_event_loop): New.
11164 (process_event): Use QUEUE macros.
11165 (event_queue): Remove.
11166 (gdb_wait_for_event): Caller update.
11167 (check_async_event_handlers): Likewise.
11168 (poll_timers): Likewise.
11169 * event-loop.h (initialize_event_loop): Declare.
11170 * event-loop.c (gdb_event_xfree): New.
11171 * top.c (gdb_init): Call initialize_event_loop.
11172
20ad8856
YQ
111732013-01-25 Yao Qi <yao@codesourcery.com>
11174
11175 * event-loop.c (async_queue_event): Remove one parameter
11176 'position'. Remove code handling 'position' == TAIL.
11177 (gdb_wait_for_event): Caller update.
11178 (check_async_event_handlers): Caller update.
11179 (poll_timers): Caller update.
11180 * event-loop.h (enum queue_position): Remove.
11181
3bbbe775
MK
111822013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11183
11184 * MAINTAINERS: Update my email.
11185
a87d9ac4
YQ
111862013-01-25 Yao Qi <yao@codesourcery.com>
11187
11188 * main.c (print_gdb_help): Remove "--epoch" from the help
11189 message.
11190
2077afdd
TD
111912013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11192
11193 * symtab.c (skip_prologue_using_sal): Consider a file
11194 change the same as an increased line number
11195
63da4037
TD
111962013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11197
30e8ee25 11198 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11199
45e6c716
TT
112002013-01-24 Tom Tromey <tromey@redhat.com>
11201
11202 * ada-lang.h (ada_decode_symbol): Make return type const.
11203 * ada-lang.c (ada_decode_symbol): Likewise.
11204
b1ae631a
DE
112052013-01-23 Doug Evans <dje@google.com>
11206
11207 * linespec.c (find_linespec_symbols): Make static.
11208
55a78401
SDJ
112092013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11210
11211 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11212 type on float conversion for complex type.
11213
bea883fd
SCR
112142013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11215
11216 Add a new class gdb.Architecture which exposes GDB's
11217 internal representation of architecture via GDB Python API.
11218 * Makefile.in: Add entries corresponding to the new file
11219 python/py-arch.c.
11220 * NEWS (Python Scripting): Add entries for the new class
11221 gdb.Architecture and the new method gdb.Frame.architecture.
11222 * python/py-arch.c: Implement gdb.Architecture class.
11223 * python/py-frame.c (frapy_arch): Implement the method
11224 gdb.Frame.architecture().
11225 (frame_object_methods): Add 'architecture' to the method table.
11226 * python/python-internal.h: Add declarations of new utility
11227 functions.
11228 * python/python.c (_initialize_python): Initialize
11229 gdb.Architecture class.
11230
796a7ff8
DE
112312013-01-23 Doug Evans <dje@google.com>
11232
11233 Work around binutils/15021.
11234 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11235 type_unit_group out of union s. All uses updated.
11236 (read_index_from_section): Watch for index version 8.
11237 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11238 an imported symtab.
11239 (write_psymtabs_to_index): Increment version number to 8.
11240
0928e93d
PA
112412013-01-22 Pedro Alves <palves@redhat.com>
11242
11243 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11244 user-visible.
11245
9c97429f
PA
112462013-01-22 Pedro Alves <palves@redhat.com>
11247
11248 * annotate.c (annotate_breakpoints_changed): Rename to ...
11249 (annotate_breakpoints_invalid): ... this. Make static.
11250 (breakpoint_changed): Adjust.
11251 (_initialize_annotate): Always install the observers. Install a
11252 "breakpoint_created" observer.
11253 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11254 * breakpoint.c (set_breakpoint_condition)
11255 (breakpoint_set_commands, do_map_commands_command)
11256 (init_raw_breakpoint, clear_command, set_ignore_count)
11257 (enable_breakpoint_disp): No longer call
11258 annotate_breakpoints_changed.
11259
bd00c694
PA
112602013-01-22 Pedro Alves <palves@redhat.com>
11261
11262 * annotate.c: Include "inferior.h".
11263 (frames_invalid_emitted)
11264 (breakpoints_invalid_emitted): New globals.
11265 (async_background_execution_p): New function.
11266 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11267 emitting the annotation if it has already been emitted.
11268 (annotate_display_prompt): New function.
11269 * annotate.h (annotate_display_prompt): New declaration.
11270 * event-top.c: Include annotate.h.
11271 (display_gdb_prompt): Call annotate_display_prompt.
11272
187d10dd
PA
112732013-01-22 Pedro Alves <palves@redhat.com>
11274
11275 * annotate.c (ignore_count_changed): Delete.
11276 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11277 (annotate_ignore_count_change): Delete.
11278 (annotate_stopped): Don't emit a delayed breakpoints-changed
11279 annotation.
11280 * annotate.h (annotate_ignore_count_change): Delete.
11281 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11282 annotate_ignore_count_change.
11283
d84cf7eb
TT
112842013-01-22 Tom Tromey <tromey@redhat.com>
11285
11286 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11287 require_rvalue for a register location.
11288
8f1d5693
MK
112892013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11290
11291 * breakpoint.c (print_one_breakpoint_location): Add MI
11292 field 'thread-groups' when printing a breakpoint.
11293 (output_thread_groups): New function.
11294
aa6199c6
SCR
112952013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11296
11297 * python/lib/gdb/commands/explore.py
11298 (CompoundExplorer.explore_expr): Correct the name of a method
11299 being invoked.
11300 (ExploreTypeCommand.invoke): Add a missing 'return'.
11301
d2afef13
TT
113022013-01-21 Tom Tromey <tromey@redhat.com>
11303
11304 * gdb_obstack.h (obconcat): Move declaration here, from...
11305 * symfile.h (obconcat): ... here.
11306 * gdb_obstack.c: New file.
11307 (obconcat): Move from...
11308 * symfile.c (obconcat): ... here.
11309 * Makefile.in (SFILES): Add gdb_obstack.c.
11310 (COMMON_OBS): Add gdb_obstack.o.
11311
10f0c4bb
TT
113122013-01-21 Tom Tromey <tromey@redhat.com>
11313
11314 * symfile.h (obsavestring): Don't declare.
11315 * symfile.c (obsavestring): Remove.
11316 * ada-exp.y: Use obstack_copy0, not obsavestring.
11317 * ada-lang.c: Use obstack_copy0, not obsavestring.
11318 * coffread.c: Use obstack_copy0, not obsavestring.
11319 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11320 * dbxread.c: Use obstack_copy0, not obsavestring.
11321 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11322 * jit.c: Use obstack_copy0, not obsavestring.
11323 * mdebugread.c: Use obstack_copy0, not obsavestring.
11324 * psymtab.c: Use obstack_copy0, not obsavestring.
11325 * stabsread.c: Use obstack_copy0, not obsavestring.
11326 * xcoffread.c: Use obstack_copy0, not obsavestring.
11327
86f62fd7
TT
113282013-01-21 Tom Tromey <tromey@redhat.com>
11329
11330 * dwarf2read.c (fixup_go_packaging): Save package name
11331 on objfile obstack.
11332 * gdbtypes.c (init_type): Don't copy name.
11333
15d034d0
TT
113342013-01-21 Tom Tromey <tromey@redhat.com>
11335
11336 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11337 const.
11338 (struct attribute) <u.str>: Now const.
11339 (struct fnfieldlist) <name>: Now const.
11340 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11341 (partial_die_parent_scope): Make return type const.
11342 (partial_die_full_name, add_partial_symbol): Update.
11343 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11344 'name' const.
11345 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11346 (read_file_scope, read_func_scope, dwarf2_add_field)
11347 (dwarf2_add_member_fn, read_structure_type)
11348 (process_enumeration_scope, read_array_type, read_module_type)
11349 (read_base_type, read_subrange_type): Update.
11350 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11351 (new_symbol_full, guess_full_die_structure_name): Update.
11352 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11353 (dwarf2_name): Return const type.
11354 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11355 const.
11356
748e18ae
TT
113572013-01-21 Tom Tromey <tromey@redhat.com>
11358
11359 * gdbtypes.c (init_type): Make 'name' const.
11360 * gdbtypes.h (init_type): Update.
11361
46212e0b
TT
113622013-01-21 Tom Tromey <tromey@redhat.com>
11363
11364 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11365 (start_symtab): Make 'name' and 'dirname' const. Use
11366 set_last_source_file.
11367 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11368 (last_source_file): Define. Now static.
11369 (set_last_source_file, get_last_source_file): New functions.
11370 * buildsym.h (last_source_file): Don't declare.
11371 (start_symtab): Update.
11372 (set_last_source_file, get_last_source_file): Declare.
11373 * coffread.c (complete_symtab): Use set_last_source_file.
11374 (coff_end_symtab): Likewise.
11375 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11376 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11377 set_last_source_file.
11378 (process_one_symbol): Use get_last_source_file.
11379 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11380 (psymtab_to_symtab_1): Use get_last_source_file.
11381 * xcoffread.c (process_linenos): Use get_last_source_file.
11382 (complete_symtab): Use set_last_source_file.
11383 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11384 (scan_xcoff_symtab): Use set_last_source_file.
11385
9d2ceabe
TT
113862013-01-21 Tom Tromey <tromey@redhat.com>
11387
11388 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11389 (symbol_set_names): Remove casts. Handle field const-ness.
11390
cfc594ee
TT
113912013-01-21 Tom Tromey <tromey@redhat.com>
11392
11393 * dwarf2read.c (new_symbol_full): Remove cast.
11394 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11395 * symtab.h (symbol_set_demangled_name): Update.
11396
5484b13a
TT
113972013-01-21 Tom Tromey <tromey@redhat.com>
11398
11399 * main.c (captured_main): Call bfd_init.
11400
1605ef26
TT
114012013-01-21 Tom Tromey <tromey@redhat.com>
11402
11403 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11404 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11405 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11406 * NEWS: Update.
11407
3b74cdc3
JK
114082013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11409
11410 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11411
5a352474
JK
114122013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11413
11414 Fix gdb.fortran/common-block.exp crash in PIE mode.
11415 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11416 LOC_COMMON_BLOCK.
11417 * f-valprint.c (info_common_command_for_block): Expect
11418 LOC_COMMON_BLOCK in gdb_assert.
11419 * symtab.h (struct general_symbol_info): Update comment for the
11420 common_block member.
11421 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11422 (enum address_class): New member LOC_COMMON_BLOCK.
11423
c60797fd
DB
114242013-01-18 David Blaikie <dblaikie@gmail.com>
11425
11426 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11427
46f35228
TT
114282013-01-18 Tom Tromey <tromey@redhat.com>
11429
11430 PR c++/14999:
11431 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11432 Call require_rvalue.
11433
257e7a09
YQ
114342013-01-18 Yao Qi <yao@codesourcery.com>
11435
11436 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11437 (dbx_read_symtab): New declaration.
11438 (dbx_psymtab_to_symtab): Delete.
11439 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11440 Rename parameter PST to SELF. Exchanged two parameters.
11441 (start_psymtab): Caller update.
11442 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11443 (dwarf2_read_symtab): New declaration.
11444 (dwarf2_psymtab_to_symtab): Delete.
11445 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11446 Rename parameter PST to SELF. Exchanged two parameters.
11447 (create_partial_symtab): Caller update.
11448 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11449 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11450 Rename parameter PST to SELF. Exchanged two parameters.
11451 (parse_partial_symbols, new_psymtab): Caller update.
11452 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11453 two parameters.
11454 * psymtab.c (psymtab_to_symtab): Caller update.
11455 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11456 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11457 Rename parameter PST to SELF. Exchanged two parameters.
11458 (xcoff_start_psymtab): Caller update.
11459
0de5618e
YQ
114602013-01-18 Yao Qi <yao@codesourcery.com>
11461
11462 * infrun.c (proceed): Rename local variable 'oneproc' to
11463 'force_step'.
11464
5c04624b
DE
114652013-01-17 Doug Evans <dje@google.com>
11466
848e3e78
DE
11467 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11468 (dw2_build_type_unit_groups): Delete. All uses updated.
11469
5c04624b
DE
11470 * symtab.h (struct symbol_search): Add comment.
11471
d84fca2c
JK
114722013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11473
11474 * symtab.c (compare_filenames_for_search): New comment for
11475 HAS_DRIVE_SPEC.
11476
6108433d
TT
114772013-01-17 Tom Tromey <tromey@redhat.com>
11478
11479 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11480
c89ffd86
JK
114812013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11482
11483 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11484 initialize it by existing make_cleanup. Call new do_cleanups.
11485
db2b2972
TT
114862013-01-17 Tom Tromey <tromey@redhat.com>
11487
11488 * cp-abi.c (cp_abi_completer): New function.
11489 (_initialize_cp_abi): Set completer for "set cp-abi".
11490
be7d37a2
TT
114912013-01-17 Tom Tromey <tromey@redhat.com>
11492
11493 * mem-break.c: Remove obsolete comment.
11494 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11495
c9fb1240
SD
114962012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11497
11498 * jit.c (jit_reader_load_command): Interpret the jit reader name
11499 as an absolute path if it begins with a forward slash.
11500
db334a01
SD
115012012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11502
11503 PR gdb/14550
11504
11505 * jit.c (finalize_symtab): Ensure that only the global block has a
11506 NULL superblock.
11507
7d928dac
PA
115082013-01-17 Pedro Alves <palves@redhat.com>
11509
11510 * acinclude.m4: Include ../config/plugins.m4,
11511 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11512 * Makefile.in (aclocal_m4_deps): Update.
11513 * aclocal.m4: Renegerate.
11514
fb8cf7c5
DE
115152013-01-16 Doug Evans <dje@google.com>
11516
11517 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11518
ab04a2af
TT
115192013-01-16 Pedro Alves <palves@redhat.com>
11520 Tom Tromey <tromey@redhat.com>
11521
11522 PR cli/7221:
11523 * NEWS: Add "catch signal".
11524 * breakpoint.c (base_breakpoint_ops): No longer static.
11525 (bpstat_explains_signal): New function.
11526 (init_catchpoint): No longer static.
11527 (base_breakpoint_explains_signal): New function.
11528 (base_breakpoint_ops): Initialize new field.
11529 * breakpoint.h (enum bpstat_signal_value): New.
11530 (struct breakpoint_ops) <explains_signal>: New field.
11531 (bpstat_explains_signal): Remove macro, declare as function.
11532 (base_breakpoint_ops, init_catchpoint): Declare.
11533 * break-catch-sig.c: New file.
11534 * inferior.h (signal_catch_update): Declare.
11535 * infrun.c (signal_catch): New global.
11536 (handle_syscall_event): Update for change to
11537 bpstat_explains_signal.
11538 (handle_inferior_event): Likewise. Always handle random signals
11539 via bpstats.
11540 (signal_cache_update): Check signal_catch.
11541 (signal_catch_update): New function.
11542 (_initialize_infrun): Initialize signal_catch.
11543 * Makefile.in (SFILES): Add break-catch-sig.c.
11544 (COMMON_OBS): Add break-catch-sig.o.
11545
8ac3646f
TT
115462013-01-16 Tom Tromey <tromey@redhat.com>
11547
11548 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11549 (print_one_catch_solib, print_one_catch_syscall)
11550 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11551 "catch-type".
11552
5a18e302
YQ
115532013-01-16 Yao Qi <yao@codesourcery.com>
11554
11555 * printcmd.c (current_display_number): Make it static.
11556
3f01d0d0
YQ
115572013-01-16 Yao Qi <yao@codesourcery.com>
11558
11559 * infcmd.c (step_once): Don't check '!single_inst' as it was
11560 checked before.
11561
1ed59174
JK
115622013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11563
11564 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11565
44478ab3
TT
115662013-01-14 Tom Tromey <tromey@redhat.com>
11567
11568 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11569 set command.
11570 * command.h (add_setshow_string_noescape_cmd): Update.
11571 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11572 (complete_set_gnutarget): New function.
11573 (_initialize_core): Set the "set gnutarget" completer.
11574
06d66ee9
TT
115752013-01-14 Tom Tromey <tromey@redhat.com>
11576
11577 PR symtab/14442:
11578 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11579 (c_type_print_modifier): Likewise.
11580 * dwarf2read.c (read_tag_restrict_type): New function.
11581 (read_type_die_1): Handle DW_TAG_restrict_type.
11582 * gdbtypes.c (make_restrict_type): New function.
11583 (recursive_dump_type): Handle TYPE_RESTRICT.
11584 * gdbtypes.h (enum type_flag_values): Renumber.
11585 (enum type_instance_flag_value): Add
11586 TYPE_INSTANCE_FLAG_RESTRICT.
11587 (TYPE_RESTRICT): New macro.
11588 (make_restrict_type): Declare.
11589
c9bf0622
TT
115902013-01-14 Tom Tromey <tromey@redhat.com>
11591
11592 PR symtab/14931:
11593 * psymtab.c (struct psymtab_state): New.
11594 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11595 functions.
11596 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11597 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11598
44d594fd
PA
115992013-01-14 Richard Sharman <richard_sharman@mitel.com>
11600 Pedro Alves <palves@redhat.com>
11601
11602 PR remote/14786
11603
11604 * remote.c (remote_threads_info): Make a copy of the reply from
11605 qfThreadInfo and use that instead of rs->buf.
11606
442e4d9c
YQ
116072013-01-14 Yao Qi <yao@codesourcery.com>
11608
11609 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11610 (dbx_psymtab_to_symtab): Likewise.
11611 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11612 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11613 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11614
5b12a61c
JK
116152013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11616
11617 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11618 make_cleanup_restore_current_language. Call set_language. Move
11619 OLD_CHAIN and INNER_CHAIN cleanups.
11620 * utils.c (do_restore_current_language)
11621 (make_cleanup_restore_current_language): New functions.
11622 * utils.h (make_cleanup_restore_current_language): New declaration.
11623
f0a4b570
JK
116242013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11625
11626 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11627 non-existing files.
11628
57b3c00c
JK
11629 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11630 non-existing files if FILENAME is already absolute.
11631
daefa854
JK
116322013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11633
11634 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11635 fputs_filtered. Append trailing newline.
11636
ca9c6ee2
YQ
116372013-01-11 Yao Qi <yao@codesourcery.com>
11638 Stan Shebs <stan@codesourcery.com>
11639
11640 * psymtab.c (init_psymbol_list): Clarify the comment.
11641
f28045c2
YQ
116422013-01-11 Yao Qi <yao@codesourcery.com>
11643
11644 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11645 (update_dprintf_command_list): Assert that 'printf_line' is
11646 non-null. Remove condition check.
11647
da5132d3
JK
116482013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11649
11650 Code cleanup.
11651 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11652 type const char *.
11653 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11654 const char *.
11655 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11656
843e694d
AG
116572013-01-09 Anthony Green <green@moxielogic.com>
11658
11659 * cp-abi.c (cplus_print_vtable): Don't return value from void
11660 function.
11661 * ada-lang.c (re_set_catch_assert): Ditto.
11662
da51c347
DE
116632013-01-09 Doug Evans <dje@google.com>
11664
11665 * symfile.h (quick_symbol_functions): Delete member
11666 pre_expand_symtabs_matching. All uses removed.
11667 * dwarf2read.c (dw2_lookup_symbol): Implement.
11668 (dw2_do_expand_symtabs_matching): Delete.
11669 (dw2_pre_expand_symtabs_matching): Delete.
11670 (struct dw2_symtab_iterator): New type.
11671 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11672 (dw2_expand_symtabs_for_function): Rewrite.
11673 (dwarf2_gdb_index_functions): Update.
11674 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11675 (psym_functions): Update.
11676
b2259038
TT
116772013-01-09 Tom Tromey <tromey@redhat.com>
11678
11679 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11680 * configure: Rebuild.
11681 * configure.ac: Add somread.o to the build if BFD has SOM
11682 support.
11683 * somread.c: Include som/aout.h, not syms.h.
11684 (som_symtab_read): Use som_external_symbol_dictionary_record.
11685 Unpack records manually.
11686 (_initialize_somread): Declare.
11687
bdad4180
MF
116882012-01-08 Mike Frysinger <vapier@gentoo.org>
11689
11690 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11691 Cast return_address to 64bits.
11692
03cdf680
HZ
116932013-01-08 Hui Zhu <hui_zhu@mentor.com>
11694
11695 * printcmd.c: Remove define of function output_command.
11696 * tracepoint.c: Remove extern of function output_command.
11697 * valprint.h: (output_command): New extern.
11698
8a808554
TT
116992013-01-07 Tom Tromey <tromey@redhat.com>
11700
11701 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11702 Remove.
11703 (objc_language_defn): Use c_printchar, c_printstr,
11704 c_emit_char.
11705
e93a8774
TT
117062013-01-07 Tom Tromey <tromey@redhat.com>
11707
11708 PR cli/7719:
11709 * NEWS: Update.
11710 * ada-valprint.c (printstr, print_field_values): Remove
11711 "inspect_it" code.
11712 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11713 code.
11714 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11715 code.
11716 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11717 * main.c (captured_main): Remove "epoch" argument.
11718 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11719 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11720 * p-valprint.c (pascal_object_print_value_fields): Remove
11721 "inspect_it" code.
11722 * printcmd.c (print_command_1): Remove 'inspect' argument.
11723 (print_command, call_command): Update.
11724 (inspect_command): Remove.
11725 (_initialize_printcmd): Make "inspect" an alias for "print".
11726 * top.c (epoch_interface): Remove.
11727 * top.h (epoch_interface): Remove.
11728 * valprint.c (user_print_options): Update.
11729 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11730 * valprint.h (struct value_print_options) <inspect_it>: Remove
11731 field.
11732
117332013-01-04 Tom Tromey <tromey@redhat.com>
11734
11735 * valprint.h (read_string): Add 'extern'.
11736
b967eb24
JB
117372013-01-07 Joel Brobecker <brobecker@adacore.com>
11738
11739 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11740 used to decide whether to define darwin_read_dyld_info or not.
11741
78a8b30e
PM
117422013-01-03 Pierre Muller <muller@sourceware.org>
11743
11744 * main.c (relocate_gdb_directory): Avoid calling stat function
11745 if DIR is empty.
11746
50da2f25
YQ
117472013-01-03 Yao Qi <yao@codesourcery.com>
11748
11749 * psymtab.c (fixup_psymbol_section): Update declaration.
11750 (fixup_psymbol_section): Remove code returning value.
11751
e7e8980f
YQ
117522013-01-03 Yao Qi <yao@codesourcery.com>
11753
11754 * symtab.h: Remove some out of date comments.
11755 (enum exception_event_kind): Move it ...
11756 * breakpoint.c: ... here.
11757
569283d4
MF
117582013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11759
9f9d9a96 11760 PR gdb/14405
569283d4
MF
11761 * darwin-nat.c (darwin_read_dyld_info): Only build if
11762 TASK_DYLD_INFO_COUNT is defined.
11763 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11764 TASK_DYLD_INFO_COUNT is defined.
11765
2e36fbea
TT
117662013-01-02 Tom Tromey <tromey@redhat.com>
11767
11768 * symfile.h (struct ecoff_debug_hack): Remove.
11769 * objfiles.c: Don't include mdebugread.h.
11770
4f05add4
TT
117712013-01-02 Tom Tromey <tromey@redhat.com>
11772
11773 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11774 * configure.ac: Check for Mach-O support in BFD. Update
11775 CONFIG_OBS.
11776 * configure: Rebuild.
11777
def63ff0
TT
117782013-01-02 Tom Tromey <tromey@redhat.com>
11779
11780 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11781 * configure.ac: Use GDB_AC_CHECK_BFD.
11782 * configure: Rebuild.
11783
60c5dd93
MK
117842013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11785
11786 * MAINTAINERS: Update my email.
11787
6e58437e
JB
117882013-01-01 Joel Brobecker <brobecker@adacore.com>
11789
11790 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11791
627fe805
JB
117922013-01-01 Joel Brobecker <brobecker@adacore.com>
11793
11794 * rs6000-nat.c (bss_data_overlap): New function.
11795 (vmap_symtab): Use it to adjust the .bss section's offset.
11796
28e7fd62
JB
117972013-01-01 Joel Brobecker <brobecker@adacore.com>
11798
11799 Update year range in copyright notice of all files.
11800
e93a8774 118012013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11802
11803 * top.c (print_gdb_version): Update copyright year.
11804
72b20e9c 11805For older changes see ChangeLog-2012.
c906108c
SS
11806\f
11807Local Variables:
11808mode: change-log
11809left-margin: 8
11810fill-column: 74
11811version-control: never
57da7796 11812coding: utf-8
c906108c 11813End:
This page took 2.074593 seconds and 4 git commands to generate.