import strstr and strerror modules
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
63ce7108
TT
12013-11-18 Tom Tromey <tromey@redhat.com>
2
3 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
4 and strstr.
5 * gnulib/aclocal.m4: Update.
6 * gnulib/config.in: Update.
7 * gnulib/configure: Update.
8 * gnulib/import/Makefile.am: Update.
9 * gnulib/import/Makefile.in: Update.
10 * gnulib/import/errno.in.h: New.
11 * gnulib/import/intprops.h: New.
12 * gnulib/import/m4/errno_h.m4: New.
13 * gnulib/import/m4/gnulib-cache.m4: Update.
14 * gnulib/import/m4/gnulib-comp.m4: Update.
15 * gnulib/import/m4/strerror.m4: New.
16 * gnulib/import/m4/strstr.m4: New.
17 * gnulib/import/m4/sys_socket_h.m4: New.
18 * gnulib/import/strerror-override.c: New.
19 * gnulib/import/strerror-override.h: New.
20 * gnulib/import/strerror.c: New.
21 * gnulib/import/strstr.c: New.
22
a7c11ee1
TT
232013-11-18 Tom Tromey <tromey@redhat.com>
24
25 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
26 multiple lines.
27
d0b5971a
JM
282013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
29
30 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
31 * sparc-tdep.h: And its prototype.
32
33 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
34 function.
35 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
36
4b4589ad
PA
372013-11-18 Pedro Alves <palves@redhat.com>
38
39 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
40 use unpack_pointer.
41
422ad5c2
JB
422013-11-18 Joel Brobecker <brobecker@adacore.com>
43
44 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
45 to -list-features output.
46
b1370418
JB
472013-11-17 Joel Brobecker <brobecker@adacore.com>
48
49 * dwarf2expr.h (struct dwarf_expr_context_funcs)
50 <read_addr_from_reg>: Renames "read_reg".
51 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
52 Adjust comment.
53 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
54 Use read_addr_from_reg in place of read_reg.
55 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
56 in place of read_reg.
57 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
58 dwarf_expr_read_reg.
59 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
60 with dwarf_expr_read_addr_from_reg.
61 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
62 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
63 needs_frame_read_addr_from_reg.
64
6ea71545
JK
652013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
66
67 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
68
19a1b230
AA
692013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
70
71 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
72 NULL.
73
805e1f19
TT
742013-11-15 Tom Tromey <tromey@redhat.com>
75
76 PR c++/16117:
77 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
78 (classify_name): Likewise. Prefer a field of "this" over a
79 filename.
80 (classify_inner_name, yylex): Update.
81
0acf8b65
JB
822013-11-15 Joel Brobecker <brobecker@adacore.com>
83
84 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
85 Extend the documentation a bit.
86 <get_reg_value>: New field.
87 * dwarf2loc.c (dwarf_expr_get_reg_value)
88 (needs_frame_get_reg_value): New functions.
89 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
90 callback.
91 * dwarf2-frame.c (get_reg_value): New function.
92 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
93 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
94 Use new callback to compute result_val.
95
ef1bc9e7
AM
962013-11-15 Alan Modra <amodra@gmail.com>
97
98 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
99 (ppc64_desc_entry_point): ..this. Update comments here and at
100 call points.
101 (ppc64_standard_linkage1, ppc64_standard_linkage2,
102 ppc64_standard_linkage3): Update comments.
103 (ppc64_standard_linkage4, ppc64_standard_linkage5,
104 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
105 patterns.
106 (ppc64_standard_linkage4_target): New function.
107 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
108 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
109 nop match. Fix comment wrap.
110
36fa8042
PA
1112013-11-14 Pedro Alves <palves@redhat.com>
112
113 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
114 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
115
4f5d7f63
PA
1162013-11-14 Pedro Alves <palves@redhat.com>
117
118 * infrun.c (struct execution_control_state)
119 <stepped_after_stopped_by_watchpoint>: New field.
120 (get_inferior_stop_soon): New function.
121 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
122 moved to struct execution_control_state -- adjust. Use
123 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
124 new function.
125 (handle_signal_stop): New function, factored out from
126 handle_inferior_event.
127
47591c29
PA
1282013-11-14 Pedro Alves <palves@redhat.com>
129
130 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
131 return a boolean.
132 * breakpoint.c (bpstat_explains_signal): Adjust to return a
133 boolean.
134 (explains_signal_watchpoint, base_breakpoint_explains_signal):
135 Adjust to return a boolean.
136 * breakpoint.h (enum bpstat_signal_value): Delete.
137 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
138 (bpstat_explains_signal): Likewise.
139 * infrun.c (handle_inferior_event) <random signal checks>:
140 bpstat_explains_signal now returns a boolean - adjust. No longer
141 consider hiding signals.
142
bac7d97b
PA
1432013-11-14 Pedro Alves <palves@redhat.com>
144
145 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
146 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
147 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
148 BPSTAT_SIGNAL_HIDE.
149 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
150 instead of BPSTAT_SIGNAL_HIDE.
151 * infrun.c (handle_inferior_event): Rework random signal checks.
152
ce12b012
PA
1532013-11-14 Pedro Alves <palves@redhat.com>
154
155 * infrun.c (struct execution_control_state): Remove
156 'random_signal' field.
157 (handle_syscall_event): Use bpstat_causes_stop instead of
158 bpstat_explains_signal. Don't set ecs->random_signal.
159 (handle_inferior_event): New 'random_signal' local.
160 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
161 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
162 bpstat_explains_signal. Don't set ecs->random_signal.
163 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
164 ecs->random_signal.
165
05ba8510
PA
1662013-11-14 Pedro Alves <palves@redhat.com>
167
168 * infrun.c (handle_inferior_event): Move comment from the
169 function's body to the function's description, adjusted.
170
5c09a2c5
PA
1712013-11-14 Pedro Alves <palves@redhat.com>
172
173 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
174 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
175 Assert we never fall through out of the TARGET_WAITKIND_LOADED
176 case.
177
91822956
TT
1782013-11-14 Tom Tromey <tromey@redhat.com>
179
180 * python/py-linetable.c (ltpy_has_line)
181 (ltpy_get_all_source_lines): Fix loop termination condition.
182
403cb6b1
JB
1832013-11-14 Joel Brobecker <brobecker@adacore.com>
184
185 * mi/mi-parse.h (struct mi_parse) <language>: New field.
186 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
187 PARSE->LANGUAGE during command execution, if set.
188 * mi/mi-parse.c: Add "language.h" #include.
189 (mi_parse): Add parsing of "--language" command option.
190
191 * NEWS: Add entry mentioning the new "--language" command option.
192
b5be8ce0
JB
1932013-11-14 Pedro Alves <palves@redhat.com>
194 Joel Brobecker <brobecker@adacore.com>
195
196 * cli/cli-utils.h (extract_arg_const): Add declaration.
197 * cli/cli-utils.c (extract_arg_const): New function.
198 (extract_arg): Reimplement using extract_arg_const.
199
671afef6
JB
2002013-11-14 Joel Brobecker <brobecker@adacore.com>
201
202 * language.h: Add "symtab.h" #include.
203
6c1b0f7b
DE
2042013-11-13 Doug Evans <xdje42@gmail.com>
205
206 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
207 specific breakpoints, don't evaluate breakpoint condition if
208 different thread.
209
74921315
KS
2102013-11-13 Keith Seitz <keiths@redhat.com>
211
248ace2e 212 PR c++/7935
74921315
KS
213 PR c++/10541
214 * cp-support.c (insepct_type): Add support for substituting
215 namespace aliases, too.
216 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
217 for DW_TAG_imported_declaration.
218 (add_partial_symbol): Likewise.
219 (process_die): Handle namespace aliases with
220 read_namespace_alias.
221 (die_needs_namespace): Add DW_TAG_imported_declaration.
222 (read_namespace_alias): New function.
223 (load_partial_dies): Load DW_TAG_imported_declaration, too.
224 (new_symbol_full): Handle DW_TAG_imported_declaration.
225
793156e6
KS
2262013-11-13 Keith Seitz <keiths@redhat.com>
227
228 * p-exp.y (uptok): Make first parameter const.
229 (yylex): Make `tokstart' and `tokptr' const.
230 Don't copy the lexer input to a temporary buffer.
231 Make `p' const.
232 Remove const workaround for parse_escape.
233 Create a temporary buffer for a convenience variable instead
234 of doing in-place modification of the input.
235 If a match is found with a different case from the input,
236 do not change the input at all.
237 Use `tmp' to construct the resultant stoken instead of
238 `tokstart'.
239
c42bd95a
DE
2402013-11-13 Doug Evans <xdje42@gmail.com>
241
242 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
243
93973826
JB
2442013-11-13 Joel Brobecker <brobecker@adacore.com>
245
246 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
247 entry with "ada-exceptions".
248
846060df
JB
2492013-11-13 Joel Brobecker <brobecker@adacore.com>
250
251 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
252 after re-initialization of OBJFILE's obstack.
253
5efd1b2b 2542013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
255
256 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
257 bs->stop != 0 on entry. Update function comment. Simplify early
258 exit for frame mismatch. Reindent rest of function.
259
ee7615e1
AA
2602013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
261
262 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
263 NULL.
264
8943b874
DE
2652013-11-12 Doug Evans <dje@google.com>
266
267 Work around gold/15646.
268 * dwarf2read.c (read_index_from_section): Update comment.
269 (struct dw2_symtab_iterator): New member global_seen.
270 (dw2_symtab_iter_init): Initialize it.
271 (dw2_symtab_iter_next): Skip duplicate global symbols.
272 (dw2_expand_symtabs_matching): Ditto.
273
a8a9844d
JB
2742013-11-12 Joel Brobecker <brobecker@adacore.com>
275
276 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
277 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
278 command.
279 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
280 (mi_cmd_info_ada_exceptions): New function.
281 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
282
778865d3
JB
2832013-11-12 Joel Brobecker <brobecker@adacore.com>
284
285 * ada-lang.h: #include "vec.h".
286 (struct ada_exc_info): New.
287 (ada_exc_info): New typedef.
288 (DEF_VEC_O(ada_exc_info)): New vector.
289 (ada_exceptions_list): Add declaration.
290 * ada-lang.c (ada_is_exception_sym)
291 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
292 (sort_remove_dups_ada_exceptions_list)
293 (ada_exc_search_name_matches, ada_add_standard_exceptions)
294 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
295 (ada_exceptions_list_1, ada_exceptions_list)
296 (info_exceptions_command): New function.
297 (_initialize_ada_language): Add "info exception" command.
298
bc79de95
PM
2992013-11-11 Phil Muldoon <pmuldoon@redhat.com>
300
301 PR python/15629
302 * NEWS: Add linetable feature.
303 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
304 * python/py-linetable.c: New file.
305 * python/py-symtab.c (stpy_get_linetable): New function.
306 * python/python-internal.h (symtab_to_linetable_object): Declare.
307 (gdbpy_initialize_linetable): Ditto.
308 * python/python.c (_initialize_python): Call
309 gdbpy_initialize_linetable.
310
2df4d1d5
JB
3112013-11-11 Joel Brobecker <brobecker@adacore.com>
312
313 * ada-lang.c (create_ada_exception_catchpoint): Enhance
314 the documentation of fields "except_string" and "condition".
315 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
316 CONDITION on the heap before passing it to
317 create_ada_exception_catchpoint.
318 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
319 CONDITION.
320
99c1d451
TT
3212013-11-11 Tom Tromey <tromey@redhat.com>
322
323 * config.in, configure: Rebuild.
324 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
325
8ca5801b
JB
3262013-11-11 Joel Brobecker <brobecker@adacore.com>
327
328 * remote-sim.c (gdbsim_detach): Break declaration into
329 shorter lines. No code change.
330
7a06d430
EBM
3312013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
332
333 * remote-sim.c (gdbsim_detach): Fix prototype.
334
73be47f5
DE
3352013-11-08 Doug Evans <dje@google.com>
336
337 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
338 (create_debug_types_hash_table): Only print debugging messages for
339 each TU if dwarf2-read >= 2.
340 (process_queue): Ditto.
341 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
342 Update doc string.
343
a18d8f10
TT
3442013-11-08 Tom Tromey <tromey@redhat.com>
345
346 * configure: Rebuild.
347 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
348
9467110b
TT
3492013-11-08 Tom Tromey <tromey@redhat.com>
350
351 * configure, config.in: Rebuild.
352 * configure.ac: Remove unused configury.
353
69706679
TT
3542013-11-08 Tom Tromey <tromey@redhat.com>
355
356 * m32c-tdep.c: Use gdb_string.h.
357
9b4bea72
TT
3582013-11-08 Tom Tromey <tromey@redhat.com>
359
360 * configure, config.in: Rebuild.
361 * configure.ac: Remove all link.h-related checks.
362
3266f10b
TT
3632013-11-08 Tom Tromey <tromey@redhat.com>
364
365 * acinclude.m4: Include common.m4.
366 * common/common.m4: New file.
367 * configure, config.in: Rebuild.
368 * configure.ac: Use GDB_AC_COMMON.
369
db0fec5c
DE
3702013-11-08 Doug Evans <dje@google.com>
371
372 * NEWS: Mention that "set debug symtab-create" now accepts a
373 verbosity level.
374 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
375 to set the symtab's primary flag.
376 * jit.c (finalize_symtab): Ditto.
377 * mdebugread.c (psymtab_to_symtab_1): Ditto.
378 * symfile.c (allocate_symtab): Only print debugging messages for
379 symtab_create_debug levels 2 and higher.
380 * symtab.c (symtab_create_debug): Change type to unsigned int.
381 (set_symtab_primary): New function.
382 (_initialize_symtab): Change "set debug symtab-create" to a
383 zuinteger option.
384 * symtab.h (set_symtab_primary): Declare.
385 (symtab_create_debug): Update decl.
386
52554a0e
TT
3872013-11-08 Tom Tromey <tromey@redhat.com>
388
389 * aix-thread.c (aix_thread_detach): Update.
390 * corelow.c (core_detach): Update.
391 * darwin-nat.c (darwin_detach): Update.
392 * dec-thread.c (dec_thread_detach): Update.
393 * gnu-nat.c (gnu_detach): Update.
394 * go32-nat.c (go32_detach): Update.
395 * inf-ptrace.c (inf_ptrace_detach): Update.
396 * inf-ttrace.c (inf_ttrace_detach): Update.
397 * linux-fork.c (linux_fork_detach): Update.
398 * linux-fork.h (linux_fork_detach): Update.
399 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
400 local for const-correctness.
401 * linux-thread-db.c (thread_db_detach): Update.
402 * monitor.c (monitor_detach): Update.
403 * nto-procfs.c (procfs_detach): Update.
404 * procfs.c (procfs_detach): Update.
405 * record.c (record_detach): Update.
406 * record.h (record_detach): Update.
407 * remote-m32r-sdi.c (m32r_detach): Update.
408 * remote-mips.c (mips_detach): Update.
409 * remote-sim.c (gdbsim_detach): Update.
410 * remote.c (remote_detach_1, remote_detach)
411 (extended_remote_detach): Update.
412 * sol-thread.c (sol_thread_detach): Update.
413 * target.c (target_detach): Make "args" const.
414 (init_dummy_target): Update.
415 * target.h (struct target_ops) <to_detach>: Make argument const.
416 (target_detach): Likewise.
417 * windows-nat.c (windows_detach): Update.
418
204b5331
DE
4192013-11-07 Doug Evans <dje@google.com>
420
421 PR 11786
422 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
423 and align fields for PT_GNU_RELRO segments.
424
92e32e33
PM
4252013-11-07 Phil Muldoon <pmuldoon@redhat.com>
426
ef1bc9e7
AM
427 PR python/15747
428 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 429
f76c27b5
PM
4302013-11-07 Phil Muldoon <pmuldoon@redhat.com>
431
432 * NEWS: Document Python temporary breakpoint support.
433 * python/py-breakpoint.c (bppy_get_temporary): New function.
434 (bppy_init): New keyword: temporary. Parse it and set breakpoint
435 to temporary if True.
436
d52cd232
JM
4372013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
438
439 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
440 removed to allow analyzing unconditional branch instructions
441 with PC-relative offsets of zero.
442
fa4d0c40
YQ
4432013-11-07 Yao Qi <yao@codesourcery.com>
444
445 * mi/mi-cmd-var.c: Include "language.h".
446 (mi_cmd_var_info_expression): Get language name from
447 language_defn.
448 * varobj.c (varobj_language_string): Remove.
449 (variable_language): Remove declaration.
450 (languages): Remove.
451 (varobj_get_language): Change the type of return value.
452 (variable_language): Remove.
453 * varobj.h (enum varobj_languages): Remove.
454 (varobj_language_string): Remove declaration.
455 (varobj_get_language): Update declaration.
456
6abde28f
YQ
4572013-11-07 Yao Qi <yao@codesourcery.com>
458
459 * language.h (struct language_defn) <la_natural_name>: New
460 field.
461 * ada-lang.c (ada_language_defn): Initialize field
462 'la_natural_name'.
463 * c-lang.c (c_language_defn): Likewise.
464 (cplus_language_defn, asm_language_defn): Likewise.
465 * d-lang.c (d_language_defn): Likewise.
466 * f-lang.c (f_language_defn): Likewise.
467 * go-lang.c (go_language_defn): Likewise.
468 * jv-lang.c (java_language_defn): Likewise.
469 * language.c (unknown_language_defn ): Likewise.
470 (auto_language_defn): Likewise.
471 * m2-lang.c (m2_language_defn): Likewise.
472 * objc-lang.c (objc_language_defn): Likewise.
473 * opencl-lang.c (opencl_language_defn): Likewise.
474 * p-lang.c (pascal_language_defn): Likewise.
475
27cd387b
YQ
4762013-11-07 Yao Qi <yao@codesourcery.com>
477
478 * language.c (language_str): Return const char *.
479 (add_language): Add const to 'language_names'
480 * language.h (struct language_defn) <la_name>: Add const.
481 (language_str: Update declaration.
482
6682d959
AA
4832013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
484
485 * s390-linux-nat.c (s390_read_description): Consider the TE field
486 in the HWCAP for determining 'have_regset_tdb'.
487
b9502d3f
WN
4882013-11-06 Will Newton <will.newton@linaro.org>
489
490 PR gdb/12866
491 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
492 values. (read_partial_die): Likewise.
493
840da61a
MB
4942013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
495
496 PR cli/16122
497 * top.c (command_line_input): Unify interactivity tests to use
498 input_from_terminal_p.
499 * event-top.c (command_line_handler): Likewise.
500
7636ccf9
YQ
5012013-11-06 Yao Qi <yao@codesourcery.com>
502
503 * Makefile.in (check-perf): New target.
504
12b27276
WN
5052013-11-05 Will Newton <will.newton@linaro.org>
506
507 PR gdb/7670
508 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
509 (arm_print_float_info): Likewise.
510
67c059c2
AB
5112013-11-04 Anton Blanchard <anton@samba.org>
512
513 * target.c (memory_xfer_partial): Cap write to 4KB.
514
0569175e
TSD
5152013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
516
517 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
518 probe scan even when the arch provides no get_longjmp_target.
519
b18e90f5
PA
5202013-10-31 Pedro Alves <palves@redhat.com>
521
522 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
523 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
524 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
525 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
526 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
527 <bpstat handling>: If the bpstat chain wants the signal to be
528 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
529 GDB_SIGNAL_TRAP.
530
638aa5a1
AB
5312013-10-31 Andrew Burgess <aburgess@broadcom.com>
532
533 * breakpoint.c (update_watchpoint): Update error message and add
534 an additional error message.
535
0e5fae36
UW
5362013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
537
538 * s390-tdep.h: Rename to...
539 * s390-linux-tdep.h: ...here.
540 * s390-tdep.c: Rename to...
541 * s390-linux-tdep.c: ...here. Adjust #include.
542 * s390-nat.c: Rename to...
543 * s390-linux-nat.c: ...here. Adjust #include.
544 * config/s390/s390.mh: Rename to...
545 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
546 s390-linux-nat.o.
547 * configure.host: Reflect host rename "s390" -> "linux".
548 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
549 * Makefile.in (ALL_TARGET_OBS): Likewise.
550 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
551 s390-linux-tdep.h.
552 (ALLDEPFILES): Reflect rename of .c files.
553
34201ae3
UW
5542013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
555
556 * s390-nat.c: Whitespace cleanup.
557 * s390-tdep.c: Likewise.
558 * s390-tdep.h: Remove empty line at end of file.
559
e17aaa33
MR
5602013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
561
562 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
563 siginfo_size.
564
aee17e42
TT
5652013-10-29 Tom Tromey <tromey@redhat.com>
566
567 * utils.c (reg): Move undefinition...
568 * gdb_curses.h: ... here. Update comment to mention AIX.
569
9ac69859
NB
5702013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
571
572 * exec.h (add_target_sections_of_objfile): New declaration.
573 * exec.c (add_target_sections_of_objfile): New function.
574 * symfile.c (add_symbol_file_command): Update current target sections.
575 (remove_symbol_file_command): New command.
576 (symfile_free_objfile): New function.
577 (_initialize_symfile): Register observer for free_objfile events.
578 * NEWS: Add description of the remove-symbol-file command.
579 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
580 * objfiles.c (free_objfile): Notify free_objfile.
581 (is_addr_in_objfile): New function.
582 * objfiles.h (is_addr_in_objfile): New declaration.
583 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
584 events instead of solib_unloaded events.
585 (_initialize_printcmd): Register observer for free_objfile instead
586 of solib_unloaded notifications.
587 * solib.c (remove_user_added_objfile): New function.
588 (_initialize_symfile): Add remove-symbol-file.
589
f69d9aef
AB
5902013-10-29 Andrew Burgess <aburgess@broadcom.com>
591
592 * infcmd.c (default_print_one_register_info): Use val_print to
593 print all values even optimized out or unavailable ones. Don't
594 try to print a raw form of optimized out or unavailable values.
595
487ad57c
YQ
5962013-10-29 Yao Qi <yao@codesourcery.com>
597
598 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
599 parameter 'arg' instead of from program_space_data.
600 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
601 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
602 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
603 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
604 * inflow.c (inflow_inferior_data_cleanup): Get data from
605 parameter 'arg' instead of inferior_data.
606 * registry.h: Add comments.
607
3c4797ba
PA
6082013-10-28 Pedro Alves <palves@redhat.com>
609
610 * breakpoint.c (watchpoints_triggered)
611 <!target_stopped_data_address>: Hardcode return 1.
612
cdaa5b73
PA
6132013-10-28 Pedro Alves <palves@redhat.com>
614
615 * infrun.c (process_event_stop_test): Remove unnecessary scoping
616 level and reindent.
617
94c57d6a
PA
6182013-10-28 Pedro Alves <palves@redhat.com>
619
620 * infrun.c (process_event_stop_test): New function, factored out
621 from handle_inferior_event.
622 (handle_inferior_event): 'process_event_stop_test' is now a
623 function instead of a goto label -- adjust.
624
fcf3daef
PA
6252013-10-28 Pedro Alves <palves@redhat.com>
626
627 * infrun.c (handle_inferior_event): Move process_event_stop_test
628 goto label to the else branch of the ecs->random_signal check,
629 along with FRAME and GDBARCH re-fetching.
630
c447ac0b
PA
6312013-10-28 Pedro Alves <palves@redhat.com>
632
633 * infrun.c (switch_back_to_stepped_thread): New function, factored
634 out from handle_inferior_event.
635 (handle_inferior_event): Adjust to call
636 switch_back_to_stepped_thread. Call it also at the tail of the
637 random signal handling, and return, instead of also handling
638 random signals just before the stepping tests.
639
f05e4c11
PA
6402013-10-28 Pedro Alves <palves@redhat.com>
641
642 * infrun.c (clear_stop_func): Delete.
643 (handle_inferior_event): Don't call clear_stop_func and don't
644 clear 'ecs->random_signal'.
645
ca20d462
YQ
6462013-10-27 Yao Qi <yao@codesourcery.com>
647
648 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
649 (varobj_create, varobj_get_path_expr): Update.
650 (varobj_value_has_mutated, varobj_update): Likewise.
651 (create_child_with_value, new_root_variable): Likewise.
652 (number_of_children, name_of_variable): Likewise.
653 (value_of_child, my_value_of_variable): Likewise.
654 (varobj_value_is_changeable_p): Likewise.
655
a53b64ea
YQ
6562013-10-25 Yao Qi <yao@codesourcery.com>
657
658 * language.h (struct lang_varobj_ops): Declare.
659 (struct language_defn) <la_varobj_ops>: New field.
660 * ada-lang.c: Include "varobj.h"
661 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
662 ada_varobj_ops.
663 * c-lang.c: Include "varobj.h"
664 (c_language_defn): Initialize field 'la_varobj_ops' with
665 c_varobj_ops.
666 (cplus_language_defn): Initialize field 'la_varobj_ops' with
667 cplus_varobj_ops.
668 (asm_language_defn): Initialize field 'la_varobj_ops' with
669 default_varobj_ops.
670 (minimal_language_defn): Likewise.
671 * d-lang.c (d_language_defn): Likewise.
672 * f-lang.c (f_language_defn): Likewise.
673 * go-lang.c (go_language_defn): Likewise.
674 * m2-lang.c (m2_language_defn): Likewise.
675 * objc-lang.c (objc_language_defn): Likewise.
676 * opencl-lang.c (opencl_language_defn): Likewise.
677 * p-lang.c (pascal_language_defn): Likewise.
678 * language.c (unknown_language_defn): Likewise.
679 (auto_language_defn): Likewise.
680 (local_language_defn): Likewise.
681 * jv-lang.c (java_language_defn): Initialize field
682 'la_varobj_ops' with java_varobj_ops.
683 * varobj.c (varobj_create): Update.
684 * varobj.h (default_varobj_ops): Define macro.
685
686d4def
PA
6862013-10-25 Pedro Alves <palves@redhat.com>
687
688 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
689 static field value.
690 (cp_print_static_field): If the value is entirely optimized out,
691 print <optimized out> here.
692 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
693 static field value.
694 * p-valprint.c (pascal_object_print_static_field): If the value is
695 entirely optimized out, print <optimized out> here.
696 * valops.c (do_search_struct_field)
697 (value_struct_elt_for_reference): No longer handle a NULL static
698 field value.
699 * value.c (value_static_field): Return an optimized out value
700 instead of NULL.
701
6c177e28
YQ
7022013-10-25 Yao Qi <yao@codesourcery.com>
703
704 * remote.c (remote_traceframe_info): Return early if
705 traceframe is not selected.
706
98322bfa
YQ
7072013-10-25 Yao Qi <yao@codesourcery.com>
708
709 * tracepoint.c (traceframe_fun): Remove.
710 (traceframe_sal): Remove.
711 (set_traceframe_context): Add local variables.
712
6ba1f115
JB
7132013-10-25 Joel Brobecker <brobecker@adacore.com>
714
715 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
716 and parameter name.
717
bbe769cc
MR
7182013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
719
720 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
721 failure from register information collection.
722
72ee4495 7232013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
724
725 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
726 member.
727 (linux_corefile_thread_callback): Update accordingly.
728 (linux_make_corefile_notes): Likewise.
729
98882a26
PA
7302013-10-24 Pedro Alves <palves@redhat.com>
731
732 * NEWS (New options): Mention set/show startup-with-shell.
733 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
734 instead of 3.
735 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
736 startup-with-shell'.
737 (show_startup_with_shell): New function.
738 (_initialize_fork_child): Register the set/show startup-with-shell
739 commands.
740 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
741 * inf-ttrace.c (inf_ttrace_him): Remove comment.
742 * procfs.c (procfs_init_inferior): Remove comment.
743 * infcmd.c (startup_with_shell): New global.
744 * inferior.h (startup_with_shell): Declare global.
745 (STARTUP_WITH_SHELL): Delete.
746 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
747
c9737c08
PA
7482013-10-23 Pedro Alves <palves@redhat.com>
749
750 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
751 * common/signals.c: Include "gdb_assert.h".
752 (signals): New field 'symbol'.
753 (SET): Use the 'symbol' parameter.
754 (gdb_signal_to_symbol_string): New function.
755 * infrun.c (handle_inferior_event) <random signal>: In debug
756 output, print the random signal enum as string in addition to its
757 number.
758 * target/waitstatus.c (target_waitstatus_to_string): Print the
759 signal's enum value as string instead of the (POSIX) signal name.
760
f60db4f0
GB
7612013-10-23 Gary Benson <gbenson@redhat.com>
762
763 PR 16013
764 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
765 from 32 to 18. Adjusted fscanf format string accordingly.
766 (Avoids leaving cmd unterminated.)
767 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
768 trun, retn or extra. (Avoids leaving extra unterminated.) Check
769 that local_address and remote_address will not overflow.
770 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
771 leaving dependencies unterminated. Parse size as "%u" to match
772 definition.
773
6d3e7a94
PA
7742013-10-22 Pedro Alves <palves@redhat.com>
775
776 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
777 set ecs->random signal.
778
42ec045f
PA
7792013-10-22 Pedro Alves <palves@redhat.com>
780
781 * infrun.c (keep_going): Update comments.
782
7832013-10-22 Pedro Alves <palves@redhat.com>
784
785 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
786 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
787
7882013-10-22 Pedro Alves <palves@redhat.com>
789
790 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
791 GDB_EXC_BAD_ACCESS.
792 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
793 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
794 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
795 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
796 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
797 (GDB_SIGNAL_LAST): Change description string.
798 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
799 Adjust to signal renaming.
800 * darwin-nat.c (darwin_decode_message): Likewise.
801
c8fde1b1
JM
8022013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
803
804 * MAINTAINERS (Write After Approval): Add myself to the list.
805
e8369a73
AB
8062013-10-18 Andrew Burgess <aburgess@broadcom.com>
807
808 * breakpoint.c (update_watchpoint): If hardware watchpoints are
809 forced off, downgrade them to software watchpoints if possible,
810 and error out if not possible.
811 (watch_command_1): Move watchpoint type selection closer to
812 watchpoint creation, and extend the comments.
813
776f04fa
PA
8142013-10-18 Pedro Alves <palves@redhat.com>
815
816 PR gdb/16062
817 * infrun.c (handle_inferior_event): Keep going if we got a random
818 signal we should not stop for, instead of falling through to the
819 step tests.
820
0c6faab5
YQ
8212013-10-18 Yao Qi <yao@codesourcery.com>
822
823 * c-varobj.c (cplus_number_of_children): Fix indentation.
824
50b34a18
TT
8252013-10-17 Tom Tromey <tromey@redhat.com>
826
827 PR gdb/15995:
828 * printcmd.c (printcmd): Call gdb_flush.
829
5c4c8a59
TT
8302013-10-17 Tom Tromey <tromey@redhat.com>
831
832 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
833 (elf_locate_sections): Update.
834
c4124bf1
YQ
8352013-10-17 Yao Qi <yao@codesourcery.com>
836
837 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
838 * ada-varobj.c: Remove the include of ada-varobj.h.
839 (ada_varobj_get_number_of_children): Declare.
840 (ada_varobj_get_name_of_child): Make it static.
841 (ada_varobj_get_path_expr_of_child): Likewise.
842 (ada_varobj_get_value_of_child): Likewise.
843 (ada_varobj_get_type_of_child): Likewise.
844 (ada_varobj_get_value_of_array_variable): Likewise.
845 * ada-varobj.h: Remove.
846
99ad9427
YQ
8472013-10-17 Yao Qi <yao@codesourcery.com>
848
849 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
850 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
851 * ada-varobj.c: Include "varobj.h".
852 (ada_number_of_children): New. Moved from varobj.c.
853 (ada_name_of_variable, ada_name_of_child): Likewise.
854 (ada_path_expr_of_child, ada_value_of_child): Likewise.
855 (ada_type_of_child, ada_value_of_variable): Likewise.
856 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
857 (ada_varobj_ops): New.
858 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
859 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
860 * gdbtypes.h (get_target_type): Declare.
861 * varobj.c: Remove the inclusion of "ada-varobj.h" and
862 "ada-lang.h".
863 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
864 (ANONYMOUS_UNION_NAME): Likewise.
865 (get_type, get_value_type, get_target_type): Remove declarations.
866 (value_get_print_value, varobj_value_get_print_value): Likewise.
867 (c_number_of_children, c_name_of_variable): Likewise.
868 (c_name_of_child, c_path_expr_of_child): Likewise.
869 (c_value_of_child, c_type_of_child): Likewise.
870 (c_value_of_variable, cplus_number_of_children): Likewise.
871 (cplus_class_num_children, cplus_name_of_variable): Likewise.
872 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
873 (cplus_value_of_child, cplus_type_of_child): Likewise.
874 (cplus_value_of_variable, java_number_of_children): Likewise.
875 (java_name_of_variable, java_name_of_child): Likewise.
876 (java_path_expr_of_child, java_value_of_child): Likewise.
877 (java_type_of_child, java_value_of_variable): Likewise.
878 (ada_number_of_children, ada_name_of_variable): Likewise.
879 (ada_name_of_child, ada_path_expr_of_child): Likewise.
880 (ada_value_of_child, ada_type_of_child): Likewise.
881 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
882 (ada_value_has_mutated): Likewise.
883 (struct language_specific): Move it to varobj.h.
884 (CPLUS_FAKE_CHILD): Move it to varobj.h.
885 (restrict_range): Rename it varobj_restrict_range. Make it extern.
886 Callers update.
887 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
888 Make it extern.
889 (is_anonymous_child): Move it to c-varobj.c and rename to
890 varobj_is_anonymous_child. Caller update.
891 (get_type): Move it to c-varobj.c.
892 (get_value_type): Rename it varobj_get_value_type. Make it
893 extern.
894 (get_target_type): Move it gdbtypes.c.
895 (varobj_formatted_print_options): New function.
896 (value_get_print_value): Rename it to
897 varobj_value_get_print_value and make it extern.
898 (varobj_value_is_changeable_p): Make it extern.
899 (adjust_value_for_child_access): Move it to c-varobj.c.
900 (default_value_is_changeable_p): Rename it to
901 varobj_default_value_is_changeable_p. Make it extern.
902 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
903 (c_name_of_child, c_path_expr_of_child): Likewise.
904 (c_value_of_child, c_type_of_child): Likewise.
905 (c_value_of_variable, cplus_number_of_children): Likewise.
906 (cplus_class_num_children, cplus_name_of_variable): Likewise.
907 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
908 (cplus_value_of_child, cplus_type_of_child): Likewise.
909 (cplus_value_of_variable): Likewise.
910 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
911 (java_name_of_child, java_path_expr_of_child): Likewise.
912 (java_value_of_child, java_type_of_child): Likewise.
913 (java_value_of_variable): Likewise.
914 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
915 (ada_name_of_child, ada_path_expr_of_child): Likewise.
916 (ada_value_of_child, ada_type_of_child): Likewise.
917 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
918 (ada_value_has_mutated): Likewise.
919 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
920 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
921 (c_varobj_ops, cplus_varobj_ops): Declare.
922 (java_varobj_ops, ada_varobj_ops): Declare.
923 (varobj_default_value_is_changeable_p): Declare.
924 (varobj_value_is_changeable_p): Declare.
925 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
926 (varobj_get_path_expr_parent): Declare.
927 (varobj_value_get_print_value): Declare.
928 (varobj_formatted_print_options): Declare.
929 (varobj_restrict_range): Declare.
930
c8a62302
LM
9312013-10-17 Luis Machado <lgustavo@codesourcery.com>
932
933 * target/waitstatus.h (target_waitkind): Remove spurious
934 character from the comments.
935
eade6471
JB
9362013-10-17 Joel Brobecker <brobecker@adacore.com>
937
938 * gdbarch.sh (get_longjmp_target): Add method documentation.
939 * gdbarch.h: Regenerate.
940
5411b26c
TT
9412013-10-16 Tom Tromey <tromey@redhat.com>
942
943 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
944 label.
945
87326c87
LM
9462013-10-16 Luis Machado <lgustavo@codesourcery.com>
947
948 * gcore.in: Call GDB using the full path to the gcore script.
949 Error out if the GDB binary is not found.
950
fd0a4d76
SDJ
9512013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
952
953 PR gdb/16014
954 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
955 sizeof.
956
d92f7ee3
SDJ
9572013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
958
959 PR gdb/16042
960 * target.c (target_disable_btrace): Fix invalid return value for
961 void function.
962 (target_teardown_btrace): Likewise.
963
bb5ce47a
YQ
9642013-10-14 Yao Qi <yao@codesourcery.com>
965
966 * varobj.c (struct varobj): Move most of the fields to
967 varobj.h.
968 (struct varobj_dynamic): New struct.
969 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
970 (varobj_has_more): Likewise.
971 (dynamic_varobj_has_child_method): Likewise.
972 (update_dynamic_varobj_children): Likewise.
973 (varobj_get_num_children): Likewise.
974 (varobj_list_children, varobj_pretty_printed_p): Likewise.
975 (install_new_value_visualizer): Likewise.
976 (install_new_value_visualizer, install_new_value): Likewise.
977 (varobj_update, new_variable, free_variable): Likewise.
978 (my_value_of_variable, value_get_print_value): Likewise.
979 (install_visualizer): Change the type of parameter 'var' to
980 'struct varobjd_dynamic *'. Callers update.
981 * varobj.h (struct varobj): Moved from varobj.c.
982 (struct varobj) <dynamic>: New field.
983
0b76b0ce
SL
9842013-10-13 Sandra Loosemore <sandra@codesourcery.com>
985
986 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
987 as the preferred name of r30.
988 * nios2-linux-tdep.c (reg_offsets): Likewise.
989 * features/nios2-cpu.xml: Likewise.
990 * features/nios2-linux.c: Regenerated.
991 * features/nios2.c: Regenerated.
992 * regformats/nios2-linux.dat: Regenerated.
993
4856b6bc
JK
9942013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
995
996 Canonicalize directories for EXEC_FILENAME.
997 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
998 exec_filename.
999 * utils.c (gdb_realpath_keepfile): New function.
1000 * utils.h (gdb_realpath_keepfile): New declaration.
1001
9b557b58
DE
10022013-10-11 Doug Evans <dje@google.com>
1003
1004 * Makefile.in (GDBFLAGS): New variable.
1005 (run): New rule.
1006
ce13fade
JB
10072013-10-11 Joel Brobecker <brobecker@adacore.com>
1008
1009 * NEWS: Add entry documenting the new "-catch-assert" and
1010 "-catch-exception" GDB/MI commands.
1011
349774ef
JB
10122013-10-11 Joel Brobecker <brobecker@adacore.com>
1013
1014 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1015 "enabled".
1016 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1017 "enabled". Set B->ENABLE_STATE accordingly.
1018 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1019 ada-lang.c.
1020 (create_ada_exception_catchpoint): Add declaration.
1021 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1022 (create_ada_exception_catchpoint): Make non-static. Add new
1023 parameter "disabled". Use it in call to
1024 init_ada_exception_breakpoint.
1025 (catch_ada_exception_command): Add parameter "enabled" in call
1026 to create_ada_exception_catchpoint.
1027 (catch_assert_command): Likewise.
1028
1029 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1030 Add declarations.
1031 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1032 "catch-exception" commands.
1033 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1034 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1035
761269c8
JB
10362013-10-11 Joel Brobecker <brobecker@adacore.com>
1037
1038 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1039 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1040 of all its enumerates with "ada_". Update the rest of this
1041 file throughout.
1042
b4a5b78b
JB
10432013-10-11 Joel Brobecker <brobecker@adacore.com>
1044
1045 * ada-lang.c (ada_decode_exception_location): Delete.
1046 (create_ada_exception_catchpoint): Remove arguments "sal",
1047 "addr_string" and "ops". Add argument "ex_kind" instead.
1048 Adjust implementation accordingly, calling ada_exception_sal
1049 to get the entities it no longer gets passed as arguments.
1050 Document the function's arguments.
1051 (catch_ada_exception_command): Use catch_ada_exception_command_split
1052 instead of ada_decode_exception_location, and update call to
1053 create_ada_exception_catchpoint.
1054 (catch_ada_assert_command_split): Renames
1055 ada_decode_assert_location. Remove parameters "addr_string" and
1056 "ops", and now returns void. Adjust implementation accordingly.
1057 Update the function documentation.
1058 (catch_assert_command): Use catch_ada_assert_command_split
1059 instead of ada_decode_assert_location. Update call to
1060 create_ada_exception_catchpoint.
1061
7ad1d32c 10622013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1063
1064 * utils.h (perror_warning_with_name): Add declaration.
1065 * utils.c (perror_warning_with_name): New function.
1066 * cli/cli-cmds.c (source_script_with_search): Add call to
1067 perror_warning_with_name if from_tty is nul.
1068
7ad1d32c 10692013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1070
1071 * utils.c (perror_string): New function, extracted out of
1072 throw_perror_with_name.
1073 (throw_perror_with_name): Rework to use perror_string.
1074
bcc75809
YQ
10752013-10-11 Yao Qi <yao@codesourcery.com>
1076
1077 * remote.c (discard_pending_stop_replies_in_queue): Update
1078 declaration.
1079 (struct stop_reply) <rs>: New field.
1080 (remove_stop_reply_of_remote_state): New function.
1081 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1082 Callers update. Pass remove_stop_reply_of_remote_state to
1083 QUEUE_iterate.
1084 (remote_parse_stop_reply): Initialize field 'rs'.
1085
05feb193
WN
10862013-10-10 Will Newton <will.newton@linaro.org>
1087
1088 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1089 linux_init_abi.
1090
0d12017b
JB
10912013-10-10 Joel Brobecker <brobecker@adacore.com>
1092
1093 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1094 serial_baud_show_cmd.
1095 (_initialize_cli_cmds): Delete the code creating the
1096 "set/show remotebaud" commands.
1097 * serial.c (baud_rate): Move here from top.c.
1098 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1099 (_initialize_serial): Create "set/show serial baud" commands.
1100 Add "set/show remotebaud" command aliases.
1101 * top.c (baud_rate): Moved to serial.c.
1102 * NEWS: Document the new "set/show serial baud" commands,
1103 replacing "set/show remotebaud".
1104
578d3588
PA
11052013-10-09 Pedro Alves <palves@redhat.com>
1106
1107 * breakpoint.c (insert_bp_location): Use memory_error_message to
1108 build the memory error string.
1109 * c-lang.c: Include "gdbcore.h".
1110 (c_get_string): Use memory_error to throw error.
1111 (target_xfer_memory_error): Delete.
1112 (memory_error_message): New, factored out from
1113 target_xfer_memory_error.
1114 (memory_error): Change parameter type to target_xfer_error.
1115 Rewrite.
1116 (read_memory): Use memory_error instead of
1117 target_xfer_memory_error.
1118 * gdbcore.h: Include "target.h".
1119 (memory_error): Change parameter type to target_xfer_error.
1120 (memory_error_message): Declare function.
1121 * target.c (target_read_memory, target_read_stack)
1122 (target_write_memory, target_write_raw_memory): Return
1123 TARGET_XFER_E_IO on error. Adjust comments.
1124 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1125 instead of EIO.
1126 * target.h (target_read, target_insert_breakpoint)
1127 (target_remove_breakpoint): Adjust comments.
1128 * valprint.c (partial_memory_read): Rename parameter, and adjust
1129 comment.
1130 (val_print_string): Use memory_error_message to build the memory
1131 error string.
1132
c74e1ccf
JK
11332013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1134
1135 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1136 result variable. Rename variable fopen_e_ever_failed to
1137 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1138
915215be
PA
11392013-10-09 Pedro Alves <palves@redhat.com>
1140
1141 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1142 (monitor_write_memory_longlongs, monitor_write_memory_block):
1143 Constify 'myaddr' parameter.
1144 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1145 helper.
1146 (monitor_xfer_partial): New function.
1147 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1148 hook. Install a to_xfer_partial hook.
1149
acd13123
TT
11502013-10-09 Tom Tromey <tromey@redhat.com>
1151
1152 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1153 bfd_get_alt_debug_link_info.
1154
40135bb1
JK
11552013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1156
1157 New flag OBJF_NOT_FILENAME.
1158 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1159 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1160 allocate_objfile.
1161 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1162 symbol_file_add_from_bfd.
1163 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1164 allocate_objfile.
1165 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1166 NULL.
1167 * objfiles.h (OBJF_NOT_FILENAME): New.
1168
dc294be5
TT
11692013-10-08 Tom Tromey <tromey@redhat.com>
1170
1171 * Makefile.in (SFILES): Add build-id.c.
1172 (HFILES_NO_SRCDIR): Add build-id.h.
1173 * build-id.c: New file, largely from elfread.c. Modified
1174 most functions.
1175 * build-id.h: New file.
1176 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1177 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1178 Search for dwz file using build-id.
1179 * elfread.c (build_id_bfd_get, build_id_verify)
1180 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1181
db230ce3
JB
11822013-10-08 Joel Brobecker <brobecker@adacore.com>
1183
1184 * ada-lang.c (compare_names_with_case): Renamed from
1185 compare_names, adding a new parameter "casing" and its handling.
1186 New function documentation.
1187 (compare_names): New function, implemented using
1188 compare_names_with_case.
1189
6501c98a
JB
11902013-10-08 Joel Brobecker <brobecker@adacore.com>
1191
1192 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1193
84a1243b
TT
11942013-10-07 Tom Tromey <tromey@redhat.com>
1195
1196 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1197 demangled_names_hash.
1198 (free_objfile): Don't delete the demangled_names_hash.
1199 * objfiles.h (struct objfile_per_bfd_storage)
1200 <demangled_names_hash>: New field.
1201 (struct objfile) <demangled_names_hash>: Move to
1202 objfile_per_bfd_storage.
1203 * symfile.c (reread_symbols): Don't delete the
1204 demangled_names_hash.
1205 * symtab.c (create_demangled_names_hash): Update.
1206 (symbol_set_names): Update.
1207
1da77581
TT
12082013-10-07 Tom Tromey <tromey@redhat.com>
1209
1210 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1211 needs_relocations>: New fields.
1212 (gdb_bfd_requires_relocations): New function.
1213 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1214 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1215 the BFD needs relocations applied.
1216
46ecd527
PA
12172013-10-07 Pedro Alves <palves@redhat.com>
1218
1219 PR breakpoints/11568
1220 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1221 the thread list" instead of "gone".
1222
0c557179
SDJ
12232013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1224
1225 * NEWS: Mention new convenience variable $_exitsignal.
1226 * corelow.c (core_open): Reset exit convenience variables. Set
1227 $_exitsignal to the uncaught signal which generated the corefile.
1228 * infrun.c (handle_inferior_event): Reset exit convenience
1229 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1230 (clear_exit_convenience_vars): New function.
1231 * inferior.h (clear_exit_convenience_vars): New prototype.
1232
1cc47d81
YQ
12332013-10-06 Yao Qi <yao@codesourcery.com>
1234
1235 * varobj.h: Add comments to enum varobj_languages.
1236
73869dc2
DE
12372013-10-04 Doug Evans <dje@google.com>
1238
1239 Add support for DWP file format version 2.
1240 * NEWS: Mention support for DWP file format version 2.
1241 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1242 union of asection, containing_section. New fields virtual_offset
1243 and is_virtual. Change type of readin filed from int to char.
1244 (dwo_sections, dwo_file): Tweak comments.
1245 (dwp_v2_section_ids): New enum.
1246 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1247 str_offsets, types.
1248 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1249 All uses updated.
1250 (virtual_v2_dwo_sections): New struct.
1251 (dwp_hash_table): New fields version, nr_columns. Change type of
1252 section_pool field to a union.
1253 (dwp_file): New field version.
1254 (dwarf2_has_info): Check for virtual sections.
1255 (get_containing_section): New function.
1256 (get_section_bfd_owner, get_section_bfd_section): Call it.
1257 (dwarf2_locate_sections): Update.
1258 (dwarf2_section_empty_p): Update.
1259 (dwarf2_read_section): Handle virtual sections.
1260 (locate_dwz_sections): Update.
1261 (create_dwp_hash_table): Document and handle V2 format.
1262 (locate_v1_virtual_dwo_sections): Renamed from
1263 locate_virtual_dwo_sections and update. All callers updated.
1264 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1265 Delete arg htab. Rename arg section_index to unit_index.
1266 All callers updated.
1267 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1268 All uses updated.
1269 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1270 (lookup_dwo_unit_in_dwp): Add V2 support.
1271 (dwarf2_locate_dwo_sections): Update.
1272 (dwarf2_locate_common_dwp_sections): Renamed from
1273 dwarf2_locate_dwp_sections and update. All callers updated.
1274 (dwarf2_locate_v2_dwp_sections): New function.
1275 (open_and_init_dwp_file): Add V2 support.
1276 (read_str_index): New locals str_section, str_offsets_section.
1277
9a2c3737
PA
12782013-10-04 Pedro Alves <palves@redhat.com>
1279
1280 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1281 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1282 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1283 describing comments with references to ptid.h.
1284 * common/ptid.h: Remove intro description of constructors,
1285 accessors and predicates.
1286 (struct ptid): Reformat.
1287 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1288 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1289 describing comments.
1290
f5371440
JB
12912013-10-04 Joel Brobecker <brobecker@adacore.com>
1292
1293 * aix-thread.c (sync_threadlists): Add missing ')' in call
1294 to ptid_build.
1295
793e1c06
JB
12962013-10-04 Joel Brobecker <brobecker@adacore.com>
1297
1298 * procfs.c (procfs_init_inferior): Fix typo causing the build
1299 to fail.
1300
26f0edc1
JB
13012013-10-04 Joel Brobecker <brobecker@adacore.com>
1302
1303 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1304
5713b9b5
JB
13052013-10-04 Joel Brobecker <brobecker@adacore.com>
1306
1307 * mi/mi-main.c (run_one_inferior): Add function description.
1308 Make ARG a pointer to an integer whose value determines whether
1309 we should "run" or "start" the program.
1310 (mi_cmd_exec_run): Add handling of the "--start" option.
1311 Reject all other command-line options.
1312 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1313
f48ff2a7
YQ
13142013-10-04 Yao Qi <yao@codesourcery.com>
1315
1316 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1317 (struct notif_client) <pending_event>: Moved
1318 to struct remote_notif_state.
1319 <id>: New field.
1320 (struct remote_notif_state) <pending_event>: New field.
1321 (notif_event_xfree): Declare.
1322 * remote-notif.c (handle_notification): Adjust.
1323 (notif_event_xfree): New function.
1324 (do_notif_event_xfree): Call notif_event_xfree.
1325 (remote_notif_state_xfree): Call notif_event_xfree to free
1326 each element in field pending_event.
1327 * remote.c (discard_pending_stop_replies): Remove declaration.
1328 (discard_pending_stop_replies_in_queue): Declare.
1329 (remote_close): Call discard_pending_stop_replies_in_queue
1330 instead of discard_pending_stop_replies.
1331 (remote_start_remote): Adjust.
1332 (stop_reply_xfree): Call notif_event_xfree.
1333 (notif_client_stop): Adjust initialization.
1334 (remote_notif_remove_all): Rename it to ...
1335 (remove_stop_reply_for_inferior): ... this. Update comments.
1336 Don't check INF is NULL.
1337 (discard_pending_stop_replies): Return early if notif_state is
1338 NULL. Adjust. Don't check INF is NULL.
1339 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 1340 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
1341 (remote_wait_ns): Likewise.
1342
5965e028
YQ
13432013-10-04 Yao Qi <yao@codesourcery.com>
1344
1345 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1346 (notif_queue): Remove.
1347 (remote_notif_process): Add one parameter 'notif_queue'.
1348 Update comments. Callers update.
1349 (remote_async_get_pending_events_token): Remove.
1350 (remote_notif_register_async_event_handler): Remove.
1351 (remote_notif_unregister_async_event_handler): Remove.
1352 (handle_notification): Add parameter 'notif_queue'. Update
1353 comments. Callers update.
1354 (notif_xfree): Remove.
1355 (remote_notif_state_allocate): New function.
1356 (remote_notif_state_xfree): New function.
1357 (_initialize_notif): Remove code to allocate queue.
1358 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1359 (struct remote_notif_state): New.
1360 (handle_notification): Update declaration.
1361 (remote_notif_process): Likewise.
1362 (remote_notif_register_async_event_handler): Remove.
1363 (remote_notif_unregister_async_event_handler): Remove.
1364 (remote_notif_state_allocate): Declare.
1365 (remote_notif_state_xfree): Declare.
1366 * remote.c (struct remote_state) <notif_state>: New field.
1367 (remote_close): Don't call
1368 remote_notif_unregister_async_event_handler. Call
1369 remote_notif_state_xfree.
1370 (remote_open_1): Don't call
1371 remote_notif_register_async_event_handler. Call
1372 remote_notif_state_allocate.
1373
5e5ac9a5
YQ
13742013-10-04 Yao Qi <yao@codesourcery.com>
1375
1376 * varobj.c (create_child_with_value): Remove 'const' from the
1377 type of parameter 'name'.
1378 (varobj_add_child): Likewise.
1379 (install_dynamic_child): Remove 'const' from the type of
1380 parameter 'name'.
1381 (varobj_add_child): Likewise.
1382 (create_child_with_value): Likewise. Update comments. Don't
1383 duplicate 'name'.
1384 (update_dynamic_varobj_children): Duplicate 'name'
1385 and pass it to install_dynamic_child.
1386
06ab7b19
PM
13872013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1388
1389 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1390 conversion logic to occur after PyLong_Check. Comment on order
1391 change significance.
1392 * python/py-arch.c (archpy_disassemble): Comment on order of
1393 conversion for integers and longs.
1394
8ae377e8
PA
13952013-10-03 Pedro Alves <palves@redhat.com>
1396
1397 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1398 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1399 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1400 PTRACE_O_TRACEFORK is not supported.
1401 (linux_test_for_tracesysgood): New function.
1402 (linux_test_for_tracefork): New function, factored out from
1403 linux_check_ptrace_features, and also don't kill child_pid here.
1404
b1328b1b
TG
14052013-10-03 Tristan Gingold <gingold@adacore.com>
1406
1407 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1408 Remove verbose error reporting. Use detected state to
1409 thread_set_state call.
1410 (i386_darwin_dr_get): Fix return type. Remove verbose error
1411 report.
1412 Remove trailing spaces.
1413
901461f8
PA
14142013-10-02 Pedro Alves <palves@redhat.com>
1415
1416 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1417 val_print_optimized_out.
1418 * jv-valprint.c (java_print_value_fields): Likewise.
1419 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1420 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1421 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1422 new optimized out value.
1423 * findvar.c (address_from_register): Likewise.
1424 * frame.c (put_frame_register): Tweak error string to say the
1425 register was not saved, rather than optimized out.
1426 * infcmd.c (default_print_one_register_info): Adjust call to
1427 val_print_optimized_out. Use value_of_register instead of
1428 get_frame_register_value.
1429 * mi/mi-main.c (output_register): Use value_of_register instead of
1430 get_frame_register_value.
1431 * valprint.c (valprint_check_validity): Likewise.
1432 (val_print_optimized_out): New value parameter. If the value is
1433 lval_register, print <not saved> instead.
1434 (value_check_printable, val_print_scalar_formatted): Adjust calls
1435 to val_print_optimized_out.
1436 * valprint.h (val_print_optimized_out): New value parameter.
1437 * value.c (struct value) <optimized_out>: Extend comment.
1438 (error_value_optimized_out): New function.
1439 (require_not_optimized_out): Use it. Use a different string for
1440 lval_register values.
1441 * value.h (error_value_optimized_out): New declaration.
1442 * NEWS: Mention <not saved>.
1443
042a84d9
JB
14442013-10-02 Joel Brobecker <brobecker@adacore.com>
1445
1446 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1447 strcmp to compare two symtab filenames.
1448
6b9780fb
JB
14492013-10-02 Joel Brobecker <brobecker@adacore.com>
1450
1451 * symtab.c (search_symbols_equal): Delete.
1452 (sort_search_symbols_remove_dups): Replace call to
1453 search_symbols_equal by call to compare_search_syms,
1454 adjusting as necessary.
1455
751e7549
PM
14562013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1457
1458 PR python/15579
751e7549
PM
1459 * python/python.c: Document gdb.execute command in Python help.
1460
1efd7661
PM
14612013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1462
1463 * python/py-frame.c (frame_info_to_frame_object): Use
1464 gdbpy_convert_exception. Clean up Python object on failure.
1465
562fc849
PM
14662013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1467
1468 * python/lib/gdb/command/frame_filters.py
1469 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1470 (ShowFrameFilterPriority.invoke): Ditto.
1471
d7561cbb
KS
14722013-10-01 Keith Seitz <keiths@redhat.com>
1473
1474 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1475 (parse_linespec): Make 'argptr' const.
1476 Remove temporary cast of 'argptr' to const char **.
1477 (decode_line_full): Pass const pointer to parse_linespec.
1478 (decode_line_1): Likewise.
1479 (decode_objc): Make local variable 'new_argptr' const.
1480 (find_function_symbols): Remove temporary cast to char *
1481 to find_imps.
1482 * objc-lang.c (find_imps): Make argument 'method' const.
1483 Return const.
1484 * objc-lang.h (find_imps): Likewise.
1485
14862013-10-01 Keith Seitz <keiths@redhat.com>
1487
1488 * completer.c (skip_quoted_chars): Make all arguments const.
1489 Return const.
1490 (skip_quoted): Likewise.
1491 * completer.h (skip_quoted_chars): Likewise.
1492 (skip_quoted): Likewise.
1493 * defs.h (skip_quoted): Remove duplicate declaration.
1494 * jv-exp.y: Include completer.h.
1495 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1496 * p-exp.y: Include completer.h.
1497
14982013-10-01 Keith Seitz <keiths@redhat.com>
1499
1500 * c-exp.y (parse_number): Make first argument const.
1501 Make a copy of the input to manipulate.
1502 (c_parse_escape): Make first argument const.
1503 Make local variable 'tokptr' const.
1504 (parse_string_or_char): Make first two arguments const.
1505 (macro_original_text): Make const.
1506 (lex_one_token): Make local variable 'tokstart' const.
1507 Likewise for local variables named 'p'.
1508 Cast away const for struct stoken (temporary).
1509 * c-lang.h (c_parse_escpae): Make first argument const.
1510 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1511 const.
1512 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1513 var_string case.
1514 * f-exp.y (parse_number): Make first argument const.
1515 (match_string_literal): Make local variable 'tokstart'
1516 const.
1517 (yylex): Make local variable 'p' const.
1518 Cast away const for struct stoken (temporary).
1519 * go-exp.y (parse_number): Make first argument const.
1520 (parse_string_or_char): Likewise.
1521 Make local variable 'tokstart' const.
1522 (lex_one_token): Likewise for numerous locals called 'p'.
1523 Cast away const for struct stoken (temporary).
1524 * jv-exp.y (parse_number): Make first argument const.
1525 Make local variables 'tokstart' and 'tokptr' const.
1526 Cast away const for call to skip_quoted (temporary).
1527 (yylex): Make local variable 'p' const.
1528 Cast away const for struct stoken (temporary).
1529 * m2-exp.y (parse_number): Make local variable 'p' const.
1530 (yylex): Likewise for 'tokstart'.
1531 Cast away const for struct stoken (temporary).
1532 Make local variable 'p' const.
1533 * macroexp.c (get_character_constant): Pass a const string
1534 to c_parse_escape.
1535 (get_string_literal): Likewise.
1536 (macro_expand_next): Make first argument const.
1537 Cast away const for init_shared_buffer.
1538 * macroexp.h (macro_expand_next): Make first argument const.
1539 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1540 Pass a const string to c_parse_escape.
1541 Make local variables 'p' and 'namestart' const.
1542 * parse.c (lexptr): Make const.
1543 (prev_lexptr): Likewise.
1544 (find_template_name_end): Return const.
1545 Make argument const, too.
1546 (parse_exp_in_context): Make first argument const.
1547 Remove the entire const_hack.
1548 (parse_exp_in_context_1): Make first argument const.
1549 * parser-defs.h (find_template_name_end): Return const.
1550 Make argument const, too.
1551 (lexptr): Make const.
1552 (prev_lexptr): Likewise.
1553 * utils.c (parse_escape): Make second argument const.
1554 * utils.h (parse_escape): Likewise.
1555
15562013-10-01 Keith Seitz <keiths@redhat.com>
1557
1558 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1559 is now const.
1560 (block_lookup): Make 'raw_name' and 'name' const.
1561 * ada-lex.l (processString): Update for struct stoken.ptr.
1562 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1563 (operator_stoken): Likewise.
1564 (lex_one_token): Remove temporary cast to char * for
1565 'yylval.sval.ptr'.
1566 * f-exp.y (yylex): Likewise.
1567 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1568 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1569 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1570 'yylval.sval.ptr'.
1571 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1572 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1573 * linespec.c (struct ls_parser): Make 'stream' const.
1574 (find_parameter_list_end): Make argument 'input' and local
1575 variable 'p' const.
1576 (linespec_lexer_lex_string): Make local variables 'start' and
1577 'p' const.
1578 Use skip_spaces_const instead of skip_spaces.
1579 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1580 const.
1581 (parse_linespec): Temporarily cast 'argptr' to const for
1582 'parser->lexer.stream'.
1583 * m2-exp.y (yylex): Remove temporary cast to char * for
1584 'yylval.sval.ptr'.
1585 * objc-lang.c (add_msglist): Make local variable 'p' const.
1586 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1587 (exp : STRING): Make 'sp' const.
1588 (parse_number): Make argument 'p' const.
1589 * parser-defs.h (struct stoken): Make 'ptr' const.
1590
193a8eac
DE
15912013-10-01 Doug Evans <dje@google.com>
1592
1593 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1594
2213e2be
YQ
15952013-10-01 Yao Qi <yao@codesourcery.com>
1596
1597 * varobj.c (c_value_of_root): Remove declaration.
1598 (cplus_value_of_root, java_value_of_root): Likewise.
1599 (ada_value_of_root): Likewise.
1600 (struct language_specific) <value_of_root>: Remove.
1601 (languages): Update initialization.
1602 (check_scope): Move earlier.
1603 (c_value_of_root): Move earlier and rename to ...
1604 (value_of_root_1): ... this.
1605 (value_of_root): Caller update.
1606 (cplus_value_of_root, java_value_of_root): Remove.
1607 (ada_value_of_root): Remove.
1608
c573f273
YQ
16092013-10-01 Yao Qi <yao@codesourcery.com>
1610
1611 * varobj.c (varobj_format_string): Remove "unknown".
1612 (languages): Remove the first element.
1613 * varobj.h (enum varobj_languages): Remove vlang_c.
1614
56250258
YQ
16152013-10-01 Yao Qi <yao@codesourcery.com>
1616
1617 * varobj.c (struct language_specific) <language>: Remove.
1618 (languages): Update the initialization.
1619
29f9ebfa
YQ
16202013-10-01 Yao Qi <yao@codesourcery.com>
1621
1622 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1623 "solib-target.h". Include "windows-tdep.h".
1624 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1625 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1626 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1627 windows-tdep.o to gdb_target_obs.
1628
64870a42
YQ
16292013-10-01 Yao Qi <yao@codesourcery.com>
1630
1631 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1632 "solib-target.h".
1633 (amd64_windows_init_abi): Don't call set_solib_ops and
1634 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1635 windows_init_abi instead.
1636 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1637 "solib-target.h".
1638 (i386_cygwin_init_abi): Don't call set_solib_ops,
1639 set_gdbarch_has_dos_based_file_system and
1640 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1641 windows_init_abi instead.
1642 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1643 (windows_init_abi): New function.
1644 (windows_iterate_over_objfiles_in_search_order): Make it
1645 static.
1646 * windows-tdep.h (windows_init_abi): Declare.
1647 (windows_iterate_over_objfiles_in_search_order): Remove
1648 declaration.
1649
0aebdefa
JB
16502013-10-01 Jerome Guitton <guitton@adacore.com>
1651
1652 Checked in by Joel Brobecker <brobecker@adacore.com>
1653 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1654 incomplete dictionnary instead of None in case of missing
1655 environment variables.
1656 (elinos_init): in case of an incomplete environment, best
1657 effort to load system libraries instead of abort.
1658
1c8e84b0
JB
16592013-10-01 Joel Brobecker <brobecker@adacore.com>
1660
1661 * ada-lang.c (ada_has_this_exception_support): Ignore
1662 mst_solib_trampoline minimal symbols.
1663
61d82a0d
TG
16642013-09-30 Tristan Gingold <gingold@adacore.com>
1665
1666 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1667 hardware watchpoint.
1668 (i386_darwin_dr_set): Support 32 and 64 bit states.
1669 (i386_darwin_dr_get): Likewise.
1670 (i386_darwin_dr_set_control): Make static.
1671 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1672 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1673
dfd4cc63
LM
16742013-09-30 Luis Machado <lgustavo@codesourcery.com>
1675
1676 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1677 Replace TIDGET with ptid_get_lwp.
1678 Replace GET_LWP with ptid_get_lwp.
1679 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1680 Replace BUILD_THREAD with ptid_build.
1681 Replace BUILD_LWP with ptid_build.
1682 Replace PIDGET with ptid_get_pid.
1683 Replace TIDGET with ptid_get_lwp.
1684 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1685 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1686 Replace TIDGET with ptid_get_lwp.
1687 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1688 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1689 Replace TIDGET with ptid_get_lwp.
1690 Replace GET_LWP with ptid_get_lwp.
1691 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1692 * auxv.c: Likewise.
1693 * breakpoint.c: Likewise.
1694 * common/ptid.c (ptid_is_pid): Condense check for
1695 null_ptid and minus_one_ptid.
1696 (ptid_lwp_p): New function.
1697 (ptid_tid_p): New function.
1698 * common/ptid.h: Update comments for accessors.
1699 (ptid_lwp_p): New prototype.
1700 (ptid_tid_p): New prototype.
1701 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1702 * gcore.c: Replace PIDGET with ptid_get_pid.
1703 * gdbthread.h: Likewise.
1704 * gnu-nat.c: Likewise.
1705 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1706 Replace TIDGET with ptid_get_lwp.
1707 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1708 * hppanbsd-nat.c: Likewise.
1709 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1710 Replace TIDGET with ptid_get_lwp.
1711 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1712 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1713 * infcmd.c: Likewise.
1714 * inferior.h: Likewise.
1715 * inflow.c: Likewise.
1716 * infrun.c: Likewise.
1717 * linux-fork.c: Likewise.
1718 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1719 Replace GET_PID with ptid_get_pid.
1720 Replace is_lwp with ptid_lwp_p.
1721 Replace GET_LWP with ptid_get_lwp.
1722 Replace BUILD_LWP with ptid_build.
1723
5b4e221c
MF
17242013-09-28 Mike Frysinger <vapier@gentoo.org>
1725
1726 * common/linux-btrace.c: Move sys/syscall.h out of the
1727 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1728 Also check for SYS_perf_event_open before attempting to buid.
1729
57d63ce2
DE
17302013-09-27 Doug Evans <dje@google.com>
1731
19ac8c2e
DE
1732 * dwarf2read.c (dwarf2_section_info): Add comment.
1733 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1734 All uses updated.
1735 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1736 (dwarf2_read_section): Delete unused local "header". Add section
1737 name to error message.
1738 (create_dwo_in_dwp): Tweak comment.
1739 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1740
a32a8923
DE
1741 * dwarf2read.c (die_reader_specs): Tweak comment.
1742 (get_section_bfd_owner, get_section_bfd_section): New functions.
1743 (get_section_name, get_section_file_name): New functions.
1744 (get_section_id, get_section_flags): New functions.
1745 (*): Use new functions to access section fields.
1746
57d63ce2
DE
1747 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1748 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1749 arg "htab". All callers updated.
1750 (create_debug_types_hash_table): Remove redundant copy of
1751 abbrev_section.
1752 (create_dwo_in_dwp): Tweak comments.
1753 (read_str_index): Tweak comment. Record dwarf form name in static
1754 local.
1755
3736004f
PA
17562013-09-27 Pedro Alves <palves@redhat.com>
1757
1758 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1759 (remote_filename_p): Add comment.
1760 * remote.c (remote_filename_p): Adjust to use
1761 REMOTE_SYSROOT_PREFIX.
1762 * solib.c (solib_find): When deciding whether we need to add a
1763 directory separator, check whether the sysroot is "remote:"
1764 instead of checking whether the patch has a drive spec. Add
1765 comments.
1766
5b5596ff
PA
17672013-09-27 Pedro Alves <palves@redhat.com>
1768
1769 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1770 Delete fields.
1771 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1772 directly.
1773
b5eef7aa
JK
17742013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1775
1776 Fix set debug frame output.
1777 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1778 SENTINEL_FRAME entry lower to match enum frame_type order.
1779
5b856f36
PM
17802013-09-26 Pierre Muller <muller@sourceware.org>
1781
1782 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1783 AMD64_R15_REGNUM when a register index is expected.
1784 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1785 Substitute in array.
1786 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1787 (amd64_push_arguments): Substitute in integer_regnum array.
1788
ade7ed9e
DE
17892013-09-25 Doug Evans <dje@google.com>
1790
d3e81981
DE
1791 * objfiles.c (allocate_objfile): Move comment to better place.
1792
8fb8eb5c
DE
1793 New option "set debug symfile on".
1794 * NEWS: Mention "set debug symfile".
1795 * Makefile.in (SFILES): Add symfile-debug.c.
1796 (COMMON_OBS): Add symfile-debug.o.
1797 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1798 objfile's symbol functions.
1799 * objfiles.h (objfile_set_sym_fns): Declare.
1800 * symfile-debug.c: New file.
1801 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1802 objfile's symbol functions.
1803 (reread_symbols): Ditto.
1804
c256e171
DE
1805 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1806 All uses updated.
1807 (add_symtab_fns): Update prototype.
1808 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1809 (registered_sym_fns): ... this.
1810 (symtab_fns): Update.
1811 (add_symtab_fns): New arg "flavour". All callers updated.
1812 (find_sym_fns): Rewrite to use new sym_fns registry.
1813
f56ce883
DE
1814 * symfile.h (struct sym_fns): Add "objfile" argument to
1815 sym_read_linetable. All uses updated.
1816
20c681d1
DE
1817 * symtab.c (domain_name, search_domain_name): New functions.
1818 * symtab.h (domain_name, search_domain_name): Declare.
1819
ade7ed9e
DE
1820 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1821 map_matching_symbols so objfile is first. All uses updated.
1822 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1823 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1824
7d760051
UW
18252013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1826
1827 PR shlibs/8882
1828 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1829 link map entries.
1830
020f7036
DE
18312013-09-24 Doug Evans <dje@google.com>
1832
1833 * objfiles.c (free_objfile): Move comment.
1834
598402f0
JB
18352013-09-24 Joel Brobecker <brobecker@adacore.com>
1836
1837 * ada-exp.y (string_to_operator): Delete.
1838 (dummy_string_to_ada_operator): Delete.
1839
bf4d6c1c
JB
18402013-09-24 Joel Brobecker <brobecker@adacore.com>
1841
1842 Revert:
1843 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1844 amd64-tdep.c.
1845 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1846 call_dummy_integer_regs, and classify.
1847 * amd64-tdep.h (amd64_classify): Add declaration.
1848 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1849 (amd64_reg_class): Delete, moved to i386-tdep.h.
1850 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1851 Replace call to amd64_classify by call to tdep->classify.
1852 (amd64_push_arguments): Get the list of registers to use for
1853 passing integer parameters from the gdbarch tdep structure,
1854 rather than using a hardcoded one. Replace calls to amd64_classify
1855 by calls to tdep->classify.
1856 (amd64_push_dummy_call): Get the register number used for
1857 the "hidden" argument from tdep->call_dummy_integer_regs.
1858 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1859 and tdep->call_dummy_integer_regs. Set tdep->classify.
1860
849e9755
JB
18612013-09-24 Joel Brobecker <brobecker@adacore.com>
1862
1863 Revert:
1864 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1865 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1866 where tdep->memory_args_by_pointer is non-zero.
1867
c1459fd6
JB
18682013-09-24 Joel Brobecker <brobecker@adacore.com>
1869
1870 Revert:
1871 * i386-tdep.h (struct gdbarch_tdep): Add new field
1872 integer_param_regs_saved_in_caller_frame.
1873 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1874 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1875
20c2e3e0
JB
18762013-09-24 Joel Brobecker <brobecker@adacore.com>
1877
874440b8 1878 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1879 (amd64_windows_classify): Delete.
1880 (amd64_windows_passed_by_integer_register)
1881 (amd64_windows_passed_by_xmm_register)
1882 (amd64_windows_passed_by_pointer)
1883 (amd64_windows_adjust_args_passed_by_pointer)
1884 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1885 (amd64_windows_push_dummy_call): New functions.
1886 (amd64_windows_init_abi): Remove setting of
1887 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1888 tdep->classify, tdep->memory_args_by_pointer and
1889 tdep->integer_param_regs_saved_in_caller_frame.
1890 Add call to set_gdbarch_push_dummy_call.
1891
82bf32bc
JK
18922013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1893
1894 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1895 objfile->original_name.
1896
24ba069a
JK
18972013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1898
1899 Pass down original filename for objfile.
1900 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1901 * elfread.c (elf_symfile_read): Likewise.
1902 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1903 longer set ORIGINAL_NAME.
1904 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1905 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1906 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1907 symbol_file_add_from_bfd call.
1908 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1909 (macho_check_dsym): Add parameter filenamep. Change function comment.
1910 Set *filenamep.
1911 (macho_symfile_read): New variable dsym_filename. Update
1912 macho_check_dsym call. Use it for symbol_file_add_separate.
1913 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1914 it. Use it for objfile->original_name.
1915 (objfile_name): Return OBFD's filename, if available.
1916 * objfiles.h (allocate_objfile): Add new parameter name.
1917 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1918 * symfile-mem.c (symbol_file_add_from_memory): Update
1919 symbol_file_add_from_bfd call.
1920 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1921 comment for it.
1922 (symbol_file_add_with_addrs): New parameter name, add function comment
1923 for it. Remove variable name. Update allocate_objfile call.
1924 (symbol_file_add_separate): New parameter name, add function comment
1925 for it. Update symbol_file_add_with_addrs call.
1926 (symbol_file_add_from_bfd): New parameter name. Update
1927 symbol_file_add_with_addrs call.
1928 (symbol_file_add): Update symbol_file_add_from_bfd call.
1929 (reread_symbols): New variable original_name. Save
1930 objfile->original_name by it.
1931 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1932 second parameter.
1933
4262abfb
JK
19342013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1935
1936 Code cleanup: Add objfile_name accessor function.
1937 * ada-lang.c (is_known_support_routine): Use objfile_name.
1938 * auto-load.c (source_gdb_script_for_objfile)
1939 (auto_load_objfile_script): Likewise.
1940 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1941 * dbxread.c (dbx_symfile_read): Likewise.
1942 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1943 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1944 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1945 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1946 (lookup_dwp_signatured_type, lookup_dwo_unit)
1947 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1948 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1949 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1950 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1951 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1952 (read_subrange_type, load_partial_dies, read_partial_die)
1953 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1954 (die_containing_type, build_error_marker_type, lookup_die_type)
1955 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1956 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1957 (get_DW_AT_signature_type, write_psymtabs_to_index)
1958 (save_gdb_index_command): Likewise.
1959 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1960 Likewise.
1961 * expprint.c (dump_subexp_body_standard): Likewise.
1962 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1963 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1964 original_name.
1965 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1966 obj_name, use objfile_name for it, use the variable.
1967 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1968 Use objfile_name.
1969 * machoread.c (macho_symtab_read, macho_check_dsym)
1970 (macho_symfile_relocate): Likewise.
1971 * maint.c (maintenance_translate_address): Likewise.
1972 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1973 * minsyms.c (install_minimal_symbols): Likewise.
1974 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1975 original_name.
1976 (filter_overlapping_sections): Use objfile_name.
1977 (objfile_name): New function.
1978 * objfiles.h (struct objfile): Rename field name to original_name.
1979 (objfile_name): New prototype.
1980 * printcmd.c (sym_info, address_info): Use objfile_name.
1981 * probe.c (parse_probes, collect_probes, compare_probes)
1982 (info_probes_for_ops): Likewise.
1983 * progspace.c (clone_program_space): Likewise.
1984 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1985 (maintenance_info_psymtabs): Likewise.
1986 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1987 (source_section_scripts): Likewise.
1988 * python/py-objfile.c (objfpy_get_filename): Likewise.
1989 * python/py-progspace.c (pspy_get_filename): Likewise.
1990 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1991 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1992 * solib.c (solib_read_symbols): Likewise.
1993 * stabsread.c (scan_file_globals): Likewise.
1994 * stap-probe.c (handle_stap_probe): Likewise.
1995 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1996 (find_separate_debug_file_by_debuglink): Likewise.
1997 (reread_symbols): Likewise. Use the objfile field name renamed to
1998 original_name.
1999 (allocate_symtab): Use objfile_name.
2000 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2001 (dump_objfile, dump_msymbols, dump_symtab_1)
2002 (maintenance_print_msymbols, maintenance_print_objfiles)
2003 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2004 * target.c (target_translate_tls_address, target_info): Likewise.
2005 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2006 objfile_name.
2007
4721dc18
JK
20082013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2009
2010 Code cleanup.
2011 * probe.c (parse_probes): Rename variable objfile_name to
2012 objfile_namestr.
2013
a61d6db8
JK
20142013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2015
2016 Remove solib-sunos.c.
2017 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2018 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2019 * objfiles.c (rt_common_objfile): Remove.
2020 (free_objfile): Remove rt_common_objfile comparison.
2021 * objfiles.h (rt_common_objfile): Remove.
2022 * solib-sunos.c: Remove.
2023 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2024
2659903b
JK
20252013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2026
2027 Remove a.out NetBSD and OpenBSD hosts.
2028 * NEWS (Removed native configurations): New.
2029 * config/arm/nbsdaout.mh: Remove.
2030 * config/i386/nbsdaout.mh: Remove.
2031 * config/i386/obsdaout.mh: Remove.
2032 * config/m68k/nbsdaout.mh: Remove.
2033 * config/sparc/nbsdaout.mh: Remove.
2034 * config/vax/nbsdaout.mh: Remove.
2035 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2036 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2037 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2038 error.
2039 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2040 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2041 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2042
f60e2d5c
TT
20432013-09-23 Tom Tromey <tromey@redhat.com>
2044
2045 * linespec.c (struct minsym_and_objfile): Remove.
2046 (minsym_and_objfile_d): Remove.
2047 (struct linespec, struct collect_info, linespec_parse_basic)
2048 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2049 (compare_msymbols, find_method, find_function_symbols)
2050 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2051 (add_minsym, search_minsyms_for_name): Update.
2052
d3eaaf66
AB
20532013-09-23 Andrew Burgess <aburgess@broadcom.com>
2054
2055 * regcache.c: Add include of valprint.h.
2056 (dump_endian_bytes): Delete.
2057 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2058
2cc762b5
AB
20592013-09-23 Andrew Burgess <aburgess@broadcom.com>
2060
2061 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2062
96181529
PA
20632013-09-19 Pedro Alves <palves@redhat.com>
2064
2065 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2066 breakpoints.
2067
9b3f3ee6
TS
20682013-09-19 Pedro Alves <palves@redhat.com>
2069 Thomas Schwinge <thomas@codesourcery.com>
2070 Yue Lu <hacklu.newborn@gmail.com>
2071
2072 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2073 Take a gdb_byte pointer instead of a char pointer.
2074
2075 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2076 gnu_xfer_partial helper.
2077 (gnu_xfer_partial): New function.
2078 (gnu_target): Don't install a deprecated_xfer_memory hook.
2079 Install a to_xfer_partial hook.
2080
69150c3d
JK
20812013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2082
2083 Constification.
2084 * main.c (captured_main): Replace catch_command_errors by
2085 catch_command_errors_const. Twice.
2086 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2087 (symbol_file_add): Make name parameter const.
2088 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2089 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2090 variable name. Change their usage accordingly.
2091 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2092 const.
2093 (symbol_file_add_main): Make args parameter const.
2094
086850b2
UW
20952013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2096 Ulrich Weigand <uweigand@de.ibm.com>
2097
2098 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2099 of c_value member.
2100 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2101
ca08a94c 21022013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2103 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2104
2105 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2106 (gnu_create_inferior)
2107 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2108 (set_sig_thread_cmd): Use the lwpid field of ptids to
2109 store/extract thread ids instead of the tid field.
2110 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2111
e4c6a2c4
AB
21122013-09-18 Andrew Burgess <aburgess@broadcom.com>
2113
2114 * infcmd.c (default_print_one_register_info): Add detection of
2115 optimized out values.
2116 (default_print_registers_info): Switch to using
2117 get_frame_register_value.
2118
58c48e72
MM
21192013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2120
2121 * infrun.c (handle_inferior_event): Check if we know the
2122 function start address before setting a resume breakpoint.
2123
c8d37639
PA
21242013-09-18 Pedro Alves <palves@redhat.com>
2125
2126 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2127 minus_one_ptid instead of looking at the ptid's tid field and
2128 comparing that to -1.
2129
71926e28
AB
21302013-09-18 Andrew Burgess <aburgess@broadcom.com>
2131
2132 * main.h (get_gdb_program_name): Remove extra whitespace.
2133
c88a1531
AB
21342013-09-18 Andrew Burgess <aburgess@broadcom.com>
2135
2136 * main.h (get_gdb_program_name): Add declaration.
2137 * main.c (get_gdb_program_name): Add definition.
2138
4390d890
DE
21392013-09-17 Doug Evans <dje@google.com>
2140
2141 * dwarf2read.c: Move definitions of complaint functions to after
2142 forward declarations of local functions.
2143
49fa26b0
PA
21442013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2145 Pedro Alves <palves@redhat.com>
2146
2147 PR gdb/11568
2148 * breakpoint.c (remove_threaded_breakpoints): New function.
2149 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2150 as thread_exit observer.
2151
08d72866
PA
21522013-09-17 Pedro Alves <palves@redhat.com>
2153
2154 PR gdb/15911
2155 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2156 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2157 * corelow.c (core_open):
2158 * frame.h (print_stack_frame, print_frame_info): New
2159 'set_current_sal' parameter.
2160 * infcmd.c (finish_command, kill_command): Adjust call to
2161 print_stack_frame.
2162 * inferior.c (inferior_command): Likewise.
2163 * infrun.c (normal_stop): Likewise.
2164 * linux-fork.c (linux_fork_context): Likewise.
2165 * record-full.c (record_full_goto_entry, record_full_restore):
2166 Likewise.
2167 * remote-mips.c (common_open): Likewise.
2168 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2169 Use it.
2170 (print_frame_info): New 'set_current_sal' parameter. Set the last
2171 displayed sal depending on the new paremeter instead of looking at
2172 print_what.
2173 (backtrace_command_1, select_and_print_frame, frame_command)
2174 (current_frame_command, up_command, down_command): Adjust call to
2175 print_stack_frame.
2176 * thread.c (print_thread_info, restore_selected_frame)
2177 (do_captured_thread_select): Adjust call to print_stack_frame.
2178 * tracepoint.c (tfind_1): Likewise.
2179 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2180 (mi_cmd_stack_info_frame): Likewise.
2181 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2182 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2183
6bc305f5
SDJ
21842013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2185
2186 * value.c (isvoid_internal_fn): Replace "parameter" with
2187 "argument".
2188
0a7cfe2c
SS
21892013-09-16 Stan Shebs <stan@codesourcery.com>
2190
2191 * README: Update references to writing code for GDB.
2192 * configure.ac (build_warnings): Remove obsolete comment.
2193 * configure: Regenerate.
2194 * gdbarch.sh: Remove references to gdbint.texinfo.
2195 * gdbarch.h: Regenerate.
2196 * gdbtypes.c (objfile_type): Remove comments referencing internals
2197 manual and D10V.
2198
a280dbd1
SDJ
21992013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2200
2201 * NEWS: Mention new convenience function $_isvoid.
2202 * value.c (isvoid_internal_fn): New function.
2203 (_initialize_values): Add new convenience function $_isvoid.
2204
04a83fee
PM
22052013-09-16 Pierre Muller <muller@sourceware.org>
2206
2207 * arm-linux-tdep.c: Add "elf/common.h" header.
2208 Remove AT_HWCAP macro definintion as it is provided in
2209 added include file.
2210 * s390-tdep.c: Remove system header <elf.h>
2211 Add "elf/common.h" header for AT_HWCAP definition.
2212 (s390_core_read_description): Use correct CORE_ADDR
2213 for hwcap local variable used as third parameter
2214 of function target_auxv_search.
2215
88505fac
PM
22162013-09-14 Pierre Muller <muller@sourceware.org>
2217 Tom Tromey <tromey@redhat.com>
2218 Pedro Alves <palves@redhat.com>
2219
2220 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2221 mode if operating system doesn't know O_CLOEXEC.
2222
d3846e71
JK
22232013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2224
2225 Code cleanup.
2226 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2227 inner block.
2228
4ac33720
UW
22292013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2230
2231 * NEWS: Mention TDB support.
2232 * features/s390-tdb.xml: New file.
2233 * features/s390-te-linux64.xml: New file.
2234 * features/s390x-te-linux64.xml: New file.
2235 * features/Makefile (WHICH): Add new tdescs above.
2236 (s390-te-linux64-expedite): Set.
2237 (s390x-te-linux64-expedite): Set.
2238 * features/s390-te-linux64.c: New file (generated).
2239 * features/s390x-te-linux64.c: New file (generated).
2240 * regformats/s390-te-linux64.dat: New file (generated).
2241 * regformats/s390x-te-linux64.dat: New file (generated).
2242 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2243 (HWCAP_S390_TE): Likewise.
2244 (S390_TDB_DWORD0_REGNUM): Likewise.
2245 (S390_TDB_DWORD0_REGNUM): Likewise.
2246 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2247 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2248 (S390_TDB_ATIA_REGNUM): Likewise.
2249 (S390_TDB_R0_REGNUM): Likewise.
2250 (S390_TDB_R1_REGNUM): Likewise.
2251 (S390_TDB_R2_REGNUM): Likewise.
2252 (S390_TDB_R3_REGNUM): Likewise.
2253 (S390_TDB_R4_REGNUM): Likewise.
2254 (S390_TDB_R5_REGNUM): Likewise.
2255 (S390_TDB_R6_REGNUM): Likewise.
2256 (S390_TDB_R7_REGNUM): Likewise.
2257 (S390_TDB_R8_REGNUM): Likewise.
2258 (S390_TDB_R9_REGNUM): Likewise.
2259 (S390_TDB_R10_REGNUM): Likewise.
2260 (S390_TDB_R11_REGNUM): Likewise.
2261 (S390_TDB_R12_REGNUM): Likewise.
2262 (S390_TDB_R13_REGNUM): Likewise.
2263 (S390_TDB_R14_REGNUM): Likewise.
2264 (S390_TDB_R15_REGNUM): Likewise.
2265 (S390_NUM_REGS): Increase.
2266 (S390_IS_TDBREGSET_REGNUM): New macro.
2267 (s390_regmap_tdb): Declare.
2268 (s390_sizeof_tdbregset): Define.
2269 (tdesc_s390_te_linux64): Declare.
2270 (tdesc_s390x_te_linux64): Likewise.
2271 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2272 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2273 (s390_regmap_tdb): New regmap.
2274 (s390_supply_tdb_regset): New function.
2275 (s390_tdb_regset): New regset.
2276 (s390_linux64v2_regset_sections): Add TDB regset to list.
2277 (s390x_linux64v2_regset_sections): Likewise.
2278 (s390_regset_from_core_section): Recognize TDB core note section.
2279 (s390_core_read_description): If HWCAP indicates TE support,
2280 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2281 (s390_gdbarch_init): Handle TDB regset.
2282 (_initialize_s390_tdep): Initialize new tdescs.
2283 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2284 (have_regset_tdb): New variable.
2285 (s390_native_supply): Support register invalidation.
2286 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2287 (check_regset): Treat ENODATA as "regset exists".
2288 (s390_linux_fetch_inferior_registers): Add TDB.
2289 (s390_read_description): Check for TDB existence and select
2290 appropriate tdesc.
2291 * gdbserver/Makefile.in (clean): Add removal of new makefile
2292 targets.
2293 (s390-te-linux64.c): New makefile target.
2294 (s390x-te-linux64.c): Likewise.
2295 * gdbserver/configure.srv (srv_regobj): Append new objects
2296 s390-te-linux64.o and s390x-te-linux64.o.
2297 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2298 s390x-te-linux64.xml, and s390-tdb.xml.
2299 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2300 declaration.
2301 (tdesc_s390_te_linux64): Likewise.
2302 (init_registers_s390x_te_linux64): Likewise.
2303 (tdesc_s390x_te_linux64): Likewise.
2304 (s390_check_regset): Treat ENODATA as "regset exists".
2305 (s390_arch_setup): Add TDB regset support.
2306 (initialize_low_arch): Initialize registers for new tdescs.
2307
2ccd1468
UW
23082013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2309
2310 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2311 (S390_IS_FPREGSET_REGNUM): New macro.
2312 * s390-tdep.c (s390_dwarf_regmap): Make const.
2313 (regnum_is_gpr_full): New function for replacing repeated code.
2314 (s390_pseudo_register_name): Use it.
2315 (s390_pseudo_register_type): Likewise.
2316 (s390_pseudo_register_read): Likewise.
2317 (s390_pseudo_register_write): Likewise.
2318 (s390_unwind_pseudo_register): Likewise.
2319 (s390_regmap_gregset): New format for regmap.
2320 (s390x_regmap_gregset): Likewise.
2321 (s390_regmap_fpregset): Likewise.
2322 (s390_regmap_upper): Likewise.
2323 (s390_regmap_last_break): Likewise.
2324 (s390_regmap_system_call): Likewise.
2325 (s390_supply_regset): Adjust to new regmap format.
2326 (s390_collect_regset): Likewise.
2327 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2328 (s390_native_collect): Likewise.
2329 (supply_gregset): Likewise.
2330 (fill_gregset): Likewise.
2331 (supply_fpregset): Likewise.
2332 (fill_fpregset): Likewise.
2333 (fetch_regset): Likewise.
2334 (store_regset): Likewise.
2335 (s390_linux_fetch_inferior_registers): Likewise.
2336 (s390_linux_fetch_inferior_registers): Likewise.
2337
1aa4cd77
AP
23382013-09-12 Andrew Pinski <apinski@cavium.com>
2339
2340 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2341
d91fab15
UW
23422013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2343
2344 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2345
5a5d8ead
AB
23462013-09-09 Andrew Burgess <aburgess@broadcom.com>
2347
2348 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2349
1385f66c
PA
23502013-09-06 Pedro Alves <palves@redhat.com>
2351
2352 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2353 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2354 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2355 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2356 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2357 gdb_stdlog.
2358
146ec4db
PA
23592013-09-06 Pedro Alves <palves@redhat.com>
2360
2361 * remote-sim.c (dump_mem): Constify buf parameter.
2362 gdbsim_xfer_inferior_memory): Rename to ...
2363 (gdbsim_xfer_memory): ... this. Adjust interface as
2364 target_xfer_partial helper.
2365 (gdbsim_xfer_partial): New function.
2366 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2367 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2368
fcde0081
PA
23692013-09-06 Pedro Alves <palves@redhat.com>
2370
2371 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2372 host_address_to_string, and send debug output to gdb_stdlog.
2373
749c8b38
RW
23742013-09-06 Ricard Wanderlof <ricardw@axis.com>
2375
2376 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2377 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2378 gdb_target_obs for cris target.
2379 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2380 (cris_gdbarch_init): Move calls to
2381 set_gdbarch_fetch_tls_load_module_address and
2382 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2383 Add call to gdbarch_init_osabi.
2384 * cris-linux-tdep.c: New file.
2385 * cris-tdep.h: New file.
2386
43df09d9
AB
23872013-09-06 Andrew Burgess <aburgess@broadcom.com>
2388
2389 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2390 to deprecated_init_ui_hook.
2391
4d09c5b4
AB
23922013-09-06 Andrew Burgess <aburgess@broadcom.com>
2393
2394 * cli/cli-interp.c (_initialize_cli_interp): Add a
2395 command_loop_proc to interp_procs.
2396 * event-top.c (cli_command_loop): Change signature to match
2397 interp_command_loop_ftype.
2398 * event-top.h (cli_command_loop): Same.
2399 * interps.c (interp_new): Require every interpreter to have a
2400 command_loop_proc.
2401 (current_interp_command_loop): Just call the command_loop_proc on
2402 the current interpreter.
2403 * tui/tui-interp.c (_initialize_tui_interp): Add a
2404 command_loop_proc to interp_procs.
2405
8eb3d7b6
RW
24062013-09-06 Ricard Wanderlof <ricardw@axis.com>
2407
2408 * cris-tdep.c (cris_gdbarch_init): Add call to
2409 get_gdbarch_fetch_tls_load_module_address.
2410
18b3c2f5
RW
24112013-09-06 Ricard Wanderlof <ricardw@axis.com>
2412
2413 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2414 (cris_elf_gregset_t): Rename from elf_gregset_t.
2415 (crisv32_elf_gregset_t): Adjust.
2416 (cris_supply_gregset, fetch_core_registers): Adjust.
2417
dc8636ef
RW
24182013-09-06 Ricard Wanderlof <ricardw@axis.com>
2419
2420 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2421
257e6d53
AB
24222013-09-05 Andrew Burgess <aburgess@broadcom.com>
2423
1581d8a7 2424 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 2425 references in comments.
1581d8a7 2426 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
2427 deprecated_command_loop_hook.
2428 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2429 setup.
1581d8a7 2430 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 2431
7c33b57c
PA
24322013-09-05 Pedro Alves <palves@redhat.com>
2433
2434 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2435 local is now int instead of ULONGEST. Print it with %d
2436 instead of paddress.
2437
9f8edbd5
TG
24382013-09-05 Tristan Gingold <gingold@adacore.com>
2439
2440 * MAINTAINERS: Remove avr maintainership.
2441
d5b495b4
PA
24422013-09-05 Pedro Alves <palves@redhat.com>
2443
2444 * findvar.c (value_of_register): Rework in terms of
2445 value_of_register_lazy.
2446
40b91786
MB
24472013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2448
2449 * symfile.c (add_symbol_file_command): Remove trailing
2450 whitespaces and blank line after comment.
2451
6eed1678
PA
24522013-09-05 Pedro Alves <palves@redhat.com>
2453
2454 * tui/tui-regs.c (tui_register_format): Don't look at the
2455 register's name here. Return string representing register
2456 value instead of storing it in the data element.
2457 (tui_get_register): Compare register string representations
2458 instead of register value states and contents.
2459
8eb6bda2
PA
24602013-09-05 Pedro Alves <palves@redhat.com>
2461
2462 PR tui/15933
2463 * tui/tui-regs.c (tui_show_registers): Show registers of the
2464 selected frame, not the current frame.
2465
48b1f08c
RW
24662013-09-05 Ricard Wanderlof <ricardw@axis.com>
2467
2468 * MAINTAINERS (Write After Approval): Add myself to the list.
2469
89e63ee4
DE
24702013-09-04 Doug Evans <dje@google.com>
2471
2472 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2473 (queue_and_load_dwo_tu): New function.
2474 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2475 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2476 Make dependent_cu optional.
2477 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2478 and an older .gdb_index is in use, queue and load all its TUs too.
2479
492c0ab7
JK
24802013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2481
2482 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2483 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2484 variable search_flags.
2485 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2486 (OPF_RETURN_REALPATH): ... here.
2487 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2488 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2489 call. Twice.
2490 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2491 openp call.
2492 * solib.c (solib_find): Likewise. Four times.
2493 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2494 in the function comment and for the realpath_fptr variable.
2495 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2496 (find_and_open_source): Likewise. Twice.
2497 * symfile.c (symfile_bfd_open): Likewise, also twice.
2498
23a44de8
DE
24992013-09-04 Doug Evans <dje@google.com>
2500
2501 * progspace.c (save_current_space_and_thread): Remove unnecessary
2502 call to save_current_inferior.
2503
47061676
AB
25042013-09-04 Andrew Burgess <aburgess@broadcom.com>
2505
2506 * sh64-tdep.c (sh64_do_register): Return after printing message
2507 about unavailable register contents.
2508
41dc8db8
MB
25092013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2510 Pedro Alves <palves@redhat.com>
2511
2512 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
2513 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2514 options and collapse into single conditional branch.
41dc8db8 2515
07107ca6
LM
25162013-09-03 Luis Machado <lgustavo@codesourcery.com>
2517
a7ea61cf 2518 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2519 detach_fork.
2520 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2521 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2522 * inferior.h (detach_fork): Remove.
2523 * infrun.c (detach_fork): Adjust comment and make it
2524 static.
2525 (follow_fork): Pass detach_fork parameter to
2526 target_follow_fork.
2527 * linux-nat.c (linux_child_follow_fork): New parameter
2528 detach_fork.
2529 * target.c (target_follow_fork): New parameter detach_fork.
2530 Pass detach_fork as parameter and print its value.
2531 * target.h (struct target_ops) <to_follow_fork>: New int
2532 parameter.
2533 (target_follow_fork): New parameter detach_fork.
2534
3bec2768
JB
25352013-09-03 Joel Brobecker <brobecker@adacore.com>
2536
2537 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2538 Replace sec->bfd by sec->the_bfd_section->owner.
2539
c01cbb3d
YQ
25402013-09-03 Yao Qi <yao@codesourcery.com>
2541
2542 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2543 from linux_has_shared_address_space.
2544 (linux_has_shared_address_space): Call linux_is_uclinux.
2545 * linux-tdep.h (linux_is_uclinux): Declare.
2546 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2547 linux_is_uclinux.
2548
7b00db47
YQ
25492013-09-03 Yao Qi <yao@codesourcery.com>
2550
2551 * config/djgpp/fnchange.lst: Remove entry of
2552 i386-interix-nat.c and i386-interix-tdep.c.
2553 * configure.ac: Remove '*-*-interix*'.
2554 * configure: Re-generated.
2555 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2556 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2557 obsolete comments.
2558 * osabi.c (gdb_osabi_names): Remove "Interix".
2559
0f9741f2
YQ
25602013-09-03 Yao Qi <yao@codesourcery.com>
2561
2562 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2563
1e038f67
MM
25642013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2565
2566 * record.h (record_print_flag) <record_print_src_line,
2567 record_print_insn_range>: Rename into ...
2568 (record_print_flag) <record_print_src_line,
2569 record_print_insn_range>: ... this. Update all users.
2570
9e52adf9
PM
25712013-09-02 Pierre Muller <muller@sourceware.org>
2572
2573 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2574 error code.
2575
a2388568
PM
25762013-09-02 Pierre Muller <muller@sourceware.org>
2577
2578 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2579 by use of plongest function.
2580
9058cc3a
TG
25812013-09-02 Tristan Gingold <gingold@adacore.com>
2582
2583 * NEWS: Add entry mentioning support for native Windows x64
2584 SEH data.
2585
2586 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2587 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2588 (struct amd64_windows_frame_cache): New struct.
2589 (amd64_windows_w2gdb_regnum): New global.
2590 (pc_in_range, amd64_windows_frame_decode_epilogue)
2591 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2592 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2593 (amd64_windows_frame_this_id): New functions.
2594 (amd64_windows_frame_unwind): New static global.
2595 (amd64_windows_skip_prologue): New function.
2596 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2597 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2598 with amd64_windows_skip_prologue.
2599
3161820b 26002013-08-30 Joel Brobecker <brobecker@adacore.com>
2601
2602 GDB 7.6.1 released.
2603
02457c76
PA
26042013-08-30 Pedro Alves <palves@redhat.com>
2605
2606 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2607 SRC_AND_LOC.
2608
e0162910
PA
26092013-08-30 Pedro Alves <palves@redhat.com>
2610
2611 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2612 warning text.
2613
6391ce51
PA
26142013-08-30 Pedro Alves <palves@redhat.com>
2615
2616 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2617 Adjust arguments to print_stack_frame.
2618
d1da0587
PA
26192013-08-30 Pedro Alves <palves@redhat.com>
2620
2621 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2622
adfd8245
PA
26232013-08-30 Pedro Alves <palves@redhat.com>
2624
2625 * frame.h (show_and_print_stack_frame): Delete declaration.
2626
96d9056e
PM
26272013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2628
2629 PR python/15461
96d9056e
PM
2630 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2631 (archpy_name): Check for valid architecture.
2632 (archpy_disassemble): Ditto.
2633
11cb8762
JB
26342013-08-29 Joel Brobecker <brobecker@adacore.com>
2635
2636 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2637 instead of "long long" in call to ptrace64.
2638
1af12a7d
AB
26392013-08-29 Andrew Burgess <aburgess@broadcom.com>
2640
2641 * mi/mi-interp.c (mi_command_loop): Change signature to match
2642 interp_command_loop_ftype.
2643 (mi1_command_loop): Remove.
2644 (mi2_command_loop): Remove.
2645 (mi3_command_loop): Remove.
2646 (mi_interpreter_resume): Remove setting of
2647 deprecated_command_loop_hook.
2648 (_initialize_mi_interp): Set mi_command_loop as the command loop
2649 callback.
2650
acc900c2
SA
26512013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2652
2653 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2654 value_type.
2655
548b762d
SA
26562013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2657
2658 * value.c (allocate_value_contents): Make static.
2659 * value.h (allocate_value_contents): Remove prototype.
2660
08039c9e
SA
26612013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2662
2663 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2664 of assembling value via allocate_value_lazy and attribute setter.
2665 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2666 assembling value via allocate_value_lazy and attribute setter.
2667 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2668 assembling value via allocate_value_lazy and attribute setter.
2669
314c7de9
SA
26702013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2671
2672 * value.c (value_from_contents_and_address): Replace allocate_value and
2673 memcpy with value_from_contents.
2674
8f28f522
PM
26752013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2676
2677 * python/py-framefilter.c (py_print_frame): Remove usage of
2678 PyString_AsString. Use python_string_to_host_string instead.
2679 Refactor function to work with a string as a new allocation
2680 instead of a pointer.
2681 (py_print_frame): Ditto.
2682 * python/lib/gdb/frames.py (return_list): Cain iterators together
2683 instead of adding them as a list.
2684 (_sort_list): Call return_list, and remove duplicate code.
2685 (execute_frame_filters): Convert iterator to a list with list().
2686 * python/lib/gdb/command/frame_filters.py
2687 (SetFrameFilterPriority._set_filter_priority): Convert priority
2688 attribute to an integer.
2689 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2690 wrapper function __next__.
2691 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2692 define as "str".
2693
8ee002df
PM
26942013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2695
2696 PR python/15752
8ee002df
PM
2697 * python/py-framefilter.c (apply_frame_filter): Check
2698 gdb_python_initialized. Exit if the Python frame-filter code
2699 cannot be initialized.
2700
af4c453a
PM
27012013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2702
2703 PR cli/15842
af4c453a
PM
2704 * top.c (print_gdb_version): Remove erroneous newline after help
2705 text.
2706
bf8793bb
YQ
27072013-08-29 Yao Qi <yao@codesourcery.com>
2708
2709 * varobj.c (install_dynamic_child): Remove trailing space.
2710 Add one blank line after variable declaration.
2711
1f0c4988
JK
27122013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2713
2714 PR gdb/15415
2715 * corefile.c (get_exec_file): Use exec_filename.
2716 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2717 * exec.c (exec_close): Free EXEC_FILENAME.
2718 (exec_file_attach): New variable canonical_pathname. Use
2719 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2720 EXEC_FILENAME.
2721 * exec.h (exec_filename): New.
2722 * inferior.c (print_inferior, inferior_command): Use
2723 PSPACE_EXEC_FILENAME.
2724 * mi/mi-main.c (print_one_inferior): Likewise.
2725 * progspace.c (clone_program_space, print_program_space): Likewise.
2726 * progspace.h (struct program_space): New field pspace_exec_filename.
2727 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2728 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2729
59ee9f94
WN
27302013-08-28 Will Newton <will.newton@linaro.org>
2731
2732 * common/linux-ptrace.c: Include stdint.h unconditionally.
2733
c8a2a419
JK
27342013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2735
2736 Code cleanup.
2737 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2738
ffa4ac95
YQ
27392013-08-28 Yao Qi <yao@codesourcery.com>
2740 Pedro Alves <palves@redhat.com>
2741
2742 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2743 instead of stdio_fileopen.
2744 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2745 .Call stderr_fileopen instead of stdio_fileopen.
2746 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2747 [__MINGW32__] (stderr_file_fputs): New function.
2748 (stderr_fileopen): New function.
2749 * ui-file.h (stderr_fileopen): Declare.
2750
69d751e3
DE
27512013-08-27 Doug Evans <dje@google.com>
2752
2753 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2754 (struct dwarf2_per_cu_data): Ditto.
2755 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2756 (process_imported_unit_die): Ditto.
2757 (follow_die_sig_1): Simplify assert.
2758
44f38867
PA
27592013-08-27 Pedro Alves <palves@redhat.com>
2760
2761 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2762 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2763 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2764 windows_xfer_memory directly.
2765 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2766
d28d46b5
PA
27672013-08-27 Pedro Alves <palves@redhat.com>
2768
2769 * darwin-nat.c (darwin_xfer_memory): Delete.
2770 (_initialize_darwin_inferior): Don't install a
2771 deprecated_xfer_memory method.
2772
6211c335
YQ
27732013-08-27 Pedro Alves <pedro@codesourcery.com>
2774 Yao Qi <yao@codesourcery.com>
2775
2776 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2777 (parse_no_frames_option): Remove.
2778 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2779 (mi_cmd_stack_list_args): Adjust.
2780 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2781 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2782 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2783 Caller update.
2784 (list_args_or_locals): New parameter 'skip_unavailable'.
2785 Handle it.
2786 * valprint.c (scalar_type_p): Rename to ...
2787 (val_print_scalar_type_p): ... this. Make extern.
2788 (val_print, value_check_printable): Adjust.
2789 * valprint.h (val_print_scalar_type_p): Declare.
2790 * value.c (value_entirely_unavailable): New function.
2791 * value.h (value_entirely_unavailable): Declare.
2792
2793 * NEWS: Mention the new option "--skip-unavailable" to MI
2794 commands '-stack-list-locals', '-stack-list-arguments' and
2795 '-stack-list-variables'.
2796
242f1fd7
YQ
27972013-08-27 Yao Qi <yao@codesourcery.com>
2798
2799 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2800 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2801 options.
2802 * mi/mi-getopt.c (mi_getopt): Remove.
2803 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2804 'error_on_unknown'.
2805 (mi_getopt): Call mi_getopt_1.
2806 (mi_getopt_silent): New.
2807 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2808
260b681b
DE
28092013-08-26 Doug Evans <dje@google.com>
2810
779bd270
DE
2811 PR symtab/15885
2812 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2813 .gdb_index is in use.
2814 * symfile.c (reread_symbols): Reset objfile->sf.
2815
52e260a3
DE
2816 * NEWS: Document "mt print objfiles" now takes optional regexp.
2817 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2818 regexp of objfiles to print.
2819 (_initialize_symmisc): Update doc string for "mt print objfiles".
2820
260b681b
DE
2821 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2822 missing debug info checks.
2823
a85c52f2
UW
28242013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2825 Ulrich Weigand <uweigand@de.ibm.com>
2826
2827 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2828 line tables generated by XLC compiled binaries.
2829
4f00dda3
DE
28302013-08-23 Doug Evans <dje@google.com>
2831
db68bbae
DE
2832 * symmisc.c (dump_symtab): Delete prototype.
2833 (dump_msymbols, dump_objfile): Ditto.
2834 (maintenance_info_symtabs): Mark as dont_repeat.
2835 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2836
4f00dda3
DE
2837 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2838 debugging printf to better location.
2839
23d577b0
PA
28402013-08-23 Pedro Alves <palves@redhat.com>
2841
2842 * target.c (target_read_live_memory): Change type of 'ret' local
2843 to LONGEST.
2844
00d84524
PA
28452013-08-23 Pedro Alves <palves@redhat.com>
2846
2847 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2848 (remote_read_bytes): Change return type to LONGEST, and adjust to
2849 return a target_xfer_error on error.
2850 (remote_xfer_memory): Delete.
2851 (remote_flash_write): Change type of 'ret' local to LONGEST.
2852 (remote_xfer_partial, remote_xfer_partial): Adjust.
2853 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2854
1ed3ee94
PM
28552013-08-23 Pierre Muller <muller@sourceware.org>
2856
2857 ARI fix: Push # directives to start of line.
2858 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2859
9eaabc75
MW
28602013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2861
2862 PR gdb/15501
2863 * breakpoint.c (enable_command, disable_command): Iterate over
2864 all specified breakpoint locations.
2865
101158d9
LM
28662013-08-22 Luis Machado <lgustavo@codesourcery.com>
2867
2868 * common/linux-ptrace.c (linux_fork_to_function): Push #
2869 directives to the start of the line.
2870 (linux_check_ptrace_features): Fix warning message to use
2871 the "_" markup.
2872
96d7229d
LM
28732013-08-22 Luis Machado <lgustavo@codesourcery.com>
2874
2875 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2876 nat/linux-waitpid.h.
2877 (linux-waitpid.o): New object file rule.
2878 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2879 (current_ptrace_options): Moved from linux-nat.c.
2880 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2881 parameters.
2882 (linux_fork_to_function): New function.
2883 (linux_grandchild_function): Likewise.
2884 (linux_child_function): Likewise.
2885 (linux_check_ptrace_features): New function, heavily
2886 based on linux-nat.c:linux_test_for_tracefork.
2887 (linux_enable_event_reporting): New function.
2888 (ptrace_supports_feature): Likewise.
2889 (linux_supports_tracefork): Likewise.
2890 (linux_supports_traceclone): Likewise.
2891 (linux_supports_tracevforkdone): Likewise.
2892 (linux_supports_tracesysgood): Likewise.
2893 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2894 gdbserver/linux-low.c.
2895 (linux_enable_event_reporting): New declaration.
2896 (linux_supports_tracefork): Likewise.
2897 (linux_supports_traceclone): Likewise.
2898 (linux_supports_tracevforkdone): Likewise.
2899 (linux_supports_tracesysgood): Likewise.
2900 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2901 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2902 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2903 * config/arm/linux.mh (NATDEPFILES): Likewise.
2904 * config/i386/linux.mh (NATDEPFILES): Likewise.
2905 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2906 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2907 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2908 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2909 * config/mips/linux.mh (NATDEPFILES): Likewise.
2910 * config/pa/linux.mh (NATDEPFILES): Likewise..
2911 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2912 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2913 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2914 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2915 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2916 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2917 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2918 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2919 ptrace's 4th argument's types.
2920 Check the type of PTRACE_TYPE_ARG4.
2921 * configure: Regenerate.
2922 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2923 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2924 (linux_supports_tracefork_flag): Remove.
2925 (linux_supports_tracesysgood_flag): Likewise.
2926 (linux_supports_tracevforkdone_flag): Likewise.
2927 (current_ptrace_options): Moved to
2928 common/linux-ptrace.c.
2929 (linux_tracefork_child): Remove.
2930 (my_waitpid): Remove.
2931 (linux_test_for_tracefork): Renamed to
2932 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2933 (linux_test_for_tracesysgood): Remove.
2934 (linux_supports_tracesysgood): Remove.
2935 (linux_supports_tracefork): Remove.
2936 (linux_supports_tracevforkdone): Remove.
2937 (linux_enable_tracesysgood): Remove.
2938 (linux_enable_event_reporting): Remove.
2939 (linux_init_ptrace): New function.
2940 (linux_child_post_attach): Call linux_init_ptrace.
2941 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2942 (linux_child_follow_fork): Call linux_supports_tracefork
2943 and linux_supports_tracevforkdone.
2944 (linux_child_insert_fork_catchpoint): Call
2945 linux_supports_tracefork.
2946 (linux_child_insert_vfork_catchpoint): Likewise.
2947 (linux_child_set_syscall_catchpoint): Call
2948 linux_supports_tracesysgood.
2949 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2950 * nat/linux-nat.h: New file.
2951 * nat/linux-waitpid.c: New file.
2952 * nat/linux-waitpid.h: New file.
2953
9f948660
SDJ
29542013-08-22 Samuel Bronson <naesten@gmail.com>
2955
2956 ARM Linux support for `catch syscall'.
2957 * syscalls/arm-linux.py: New file.
2958 * syscalls/arm-linux.xml: Likewise.
2959 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2960 (arm_linux_init_abi): Register the new function and syscall xml file.
2961 * data-directory/Makefile.in: Install the new syscall xml file.
2962 * NEWS: Brag about this.
2963
6be7b56e
PA
29642013-08-22 Pedro Alves <palves@redhat.com>
2965
2966 PR gdb/15871
2967 * corefile.c (target_xfer_memory_error): New function.
2968 (memory_error): Defer EIO to target_memory_error.
2969 (read_memory): Use target_xfer_partial, and handle finer-grained
2970 target xfer errors.
2971 * target.c (target_xfer_error_to_string): New function.
2972 (memory_xfer_partial_1): If memory is known to be
2973 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2974 (target_xfer_partial): Make extern.
2975 * target.h (enum target_xfer_error): New enum.
2976 (target_xfer_error_to_string): Declare function.
2977 (target_xfer_partial): Declare function.
2978 (struct target_ops) <xfer_partial>: Adjust describing comment.
2979
bcbec14e
AM
29802013-08-22 Alan Modra <amodra@gmail.com>
2981
2982 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2983 * configure.tgt: Likewise as targets.
2984
fc474241
DE
29852013-08-20 Doug Evans <dje@google.com>
2986
2987 * buildsym.c (subfile_stack): Move here from buildsym.h.
2988 (pending_macros): Ditto.
2989 (get_macro_table): New function.
2990 (buildsym_init): Initialize subfile_stack.
2991 * coffread.c (type_vector,type_vector_length): Moved here from
2992 buildsym.h.
2993 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2994 (coff_symtab_read): Use it.
2995 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2996 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2997 with call to get_macro_table.
2998 * stabsread.c (type_vector,type_vector_length): Moved here from
2999 buildsym.h.
3000 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3001 * buildsym.h (get_macro_table): Declare.
3002
bec71544
TT
30032013-08-20 Tom Tromey <tromey@redhat.com>
3004
3005 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3006 Update.
3007 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3008
0002ad5f
DE
30092013-08-20 Doug Evans <dje@google.com>
3010
3011 * blockframe.c: Remove #include "psymtab.h".
3012 * cp-support.c: Ditto.
3013 * source.c: Ditto.
3014 * stack.c: Ditto.
3015
df302446
TT
30162013-08-20 Tom Tromey <tromey@redhat.com>
3017
3018 PR python/15816:
3019 * exceptions.h (return_mask): Now an enum.
3020 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3021 enum constants.
3022
df6d5441
TT
30232013-08-20 Tom Tromey <tromey@redhat.com>
3024
3025 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3026 get_objfile_arch.
3027 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3028 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3029 * jit.c (jit_object_close_impl): Update.
3030 * jv-lang.c (get_dynamics_objfile): Update.
3031 * linespec.c (add_minsym): Use get_dynamics_objfile.
3032 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3033 (allocate_objfile): Don't initialize 'gdbarch' field.
3034 (get_objfile_arch): Update.
3035 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3036 moved from...
3037 (struct objfile) <gdbarch>: ... here. Remove.
3038 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3039 get_objfile_arch.
3040 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3041
f5aee5ee
AM
30422013-08-20 Alan Modra <amodra@gmail.com>
3043
3044 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3045 for IBM long double nan and inf.
3046 (floatformat_is_negative, floatformat_classify,
3047 floatformat_mantissa): Similarly.
3048 (floatformat_ieee_single, floatformat_ieee_double,
3049 floatformat_ieee_quad, floatformat_arm_ext,
3050 floatformat_ia64_spill): Delete unused vars.
3051 (_initialize_doublest): Delete unused function.
3052 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3053 little-endian variants of floatformat_ibm_long_double.
3054
33b60d58 30552013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3056
33b60d58
LM
3057 * Makefile.in (SFILES): Remove common/target-common.c and
3058 add target/waitstatus.c.
3059 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3060 target/resume.h, target/wait.h and target/waitstatus.h.
3061 (COMMON_OBS): Remove target-common.o and add
3062 waitstatus.o.
3063 (target-common.o): Remove.
3064 (waitstatus.o): New target object file.
3065 * common/target-common.c: Move contents to
3066 target/waitstatus.c and remove.
3067 * common/target-common.h: Move contents to other files and
3068 remove.
3069 (enum resume_kind: Move to target/resume.h.
3070 (TARGET_WNOHANG): Move to target/wait.h.
3071 (enum target_waitkind): Move to target/waitstatus.h.
3072 (struct target_waitstatus): Likewise.
3073 * target.h: Do not include target-common.h and
3074 include target/resume.h, target/wait.h and
3075 target/waitstatus.h.
3076 * target/resume.h: New file.
3077 * target/wait.h: New file.
3078 * target/waitstatus.h: New file.
3079 * target/waitstatus.c: New file.
3080
12696c10
PA
30812013-08-19 Pedro Alves <palves@redhat.com>
3082
3083 * linux-nat.c (linux_test_for_tracefork)
3084 (linux_test_for_tracesysgood, linux_child_follow_fork)
3085 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3086 (linux_nat_wait_1): Extend comment.
3087 (linux_async_pipe): Add comment.
3088
ba89f962
KB
30892013-08-15 Kevin Buettner <kevinb@redhat.com>
3090
3091 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3092 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3093 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3094 Update to account for fact that PC is now a pseudo-register.
3095 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3096 cases for RL78_PC_REGNUM.
3097
35ab155d
MB
30982013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3099
3100 PR cli/15841
3101 * top.c (quit_force): Skip writing history file
3102 if input is not from terminal.
3103
0d031856
TT
31042013-08-14 Tom Tromey <tromey@redhat.com>
3105
3106 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3107 resultthreadlist>: New fields.
3108 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3109 (remote_get_threadlist, remote_threadlist_iterator): Use
3110 new fields. Remove static variables.
3111
ee154bee
TT
31122013-08-14 Tom Tromey <tromey@redhat.com>
3113
3114 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3115 remote_watch_data_address>: New fields.
3116 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3117 (process_stop_reply, remote_wait_as)
3118 (remote_check_watch_resources, remote_stopped_data_address): Update.
3119
88b496c3
TT
31202013-08-14 Tom Tromey <tromey@redhat.com>
3121
3122 * remote.c (struct remote_state) <async_client_callback,
3123 async_client_context>: New fields.
3124 (async_client_callback, async_client_context): Remove.
3125 (remote_async_serial_handler, remote_async): Update.
3126
2f65bcb7
TT
31272013-08-14 Tom Tromey <tromey@redhat.com>
3128
3129 * remote.c (sizeof_pkt): Remove.
3130 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3131
b80fafe3
TT
31322013-08-14 Tom Tromey <tromey@redhat.com>
3133
3134 * remote.c (struct remote_state) <use_threadinfo_query,
3135 use_threadextra_query>: New fields.
3136 (remote_threads_info, remote_threads_extra_info)
3137 (remote_open_1): Update.
3138
8e88304f
TT
31392013-08-14 Tom Tromey <tromey@redhat.com>
3140
3141 * remote.c (struct remote_state) <finished_object,
3142 finished_annex, finished_offset>: New fields.
3143 (remote_read_qxfer): Use remote_state fields; remove static
3144 variables.
3145
280ceea3
TT
31462013-08-14 Tom Tromey <tromey@redhat.com>
3147
3148 * remote.c (struct remote_state) <last_sent_step>:
3149 New field.
3150 (last_sent_step): Remove.
3151 (remote_resume, remote_wait_as): Update.
3152
b73be471
TT
31532013-08-14 Tom Tromey <tromey@redhat.com>
3154
3155 * remote.c (struct remote_state) <last_sent_signal>:
3156 New field.
3157 (last_sent_signal): Remove.
3158 (new_remote_state, remote_resume, remote_wait_as): Update.
3159
5e4a05c4
TT
31602013-08-14 Tom Tromey <tromey@redhat.com>
3161
3162 * remote.c (struct remote_state) <last_program_signals_packet>:
3163 New field.
3164 (last_program_signals_packet): Remove.
3165 (remote_program_signals, remote_open_1): Update.
3166
747dc59d
TT
31672013-08-14 Tom Tromey <tromey@redhat.com>
3168
3169 * remote.c (struct remote_state) <last_pass_packet>:
3170 New field.
3171 (last_pass_packet): Remove.
3172 (remote_pass_signals, remote_open_1): Update.
3173
262e1174
TT
31742013-08-14 Tom Tromey <tromey@redhat.com>
3175
3176 * remote.c (struct remote_state) <remote_traceframe_number>:
3177 New field.
3178 (remote_traceframe_number): Remove.
3179 (new_remote_state, remote_open_1, set_remote_traceframe)
3180 (remote_trace_find): Update.
3181
47f8a51d
TT
31822013-08-14 Tom Tromey <tromey@redhat.com>
3183
3184 * remote.c (struct remote_state) <general_thread, continue_thread>:
3185 New fields.
3186 (general_thread, continue_thread): Remove.
3187 (record_currthread, set_thread, set_general_process)
3188 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3189 (extended_remote_mourn_1): Update.
3190
5d93a237
TT
31912013-08-14 Tom Tromey <tromey@redhat.com>
3192
3193 * remote.c (struct remote_state) <remote_desc>: New field.
3194 (remote_desc): Remove.
3195 (remote_threads_info, remote_threads_extra_info, remote_close)
3196 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3197 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3198 (remote_hostio_send_command, remote_file_put, remote_file_get)
3199 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3200 (remote_async, remote_new_objfile, set_range_stepping): Update.
3201
cf792862
TT
32022013-08-14 Tom Tromey <tromey@redhat.com>
3203
3204 * remote.c (remote_state): Now a pointer.
3205 (get_remote_state_raw): Update.
3206 (new_remote_state): New function.
3207 (_initialize_remote): Use new_remote_state.
3208
dc473cfb
TT
32092013-08-14 Tom Tromey <tromey@redhat.com>
3210
3211 * remote.c (remote_protocol_features): Now const.
3212
85ec6ce7
TT
32132013-08-14 Tom Tromey <tromey@redhat.com>
3214
3215 * remote.c (crc32_table, crc32): Remove.
3216 (remote_verify_memory): Use xcrc32.
3217
73033f12
SDJ
32182013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3219
3220 * value.h (create_internalvar_type_lazy): Adjust prototype
3221 declaration.
3222
5c30d39a
AB
32232013-08-13 Andrew Burgess <aburgess@broadcom.com>
3224
3225 * common/format.c (parse_format_string): Don't allow '#' flag for
3226 pointer arguments in format string.
3227
1a66331e
PM
32282013-08-13 Pierre Muller <muller@sourceware.org>
3229
fde605f3 3230 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3231 if rl_get_screen_size did not return useful values.
3232
b4013987
AA
32332013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3234
3235 PR breakpoints/15117
3236 * linespec.c (linespec_parse_basic): Check for convenience
3237 variable or history value while parsing.
3238
959b6a66
SDJ
32392013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3240
3241 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3242 AVR.
3243 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3244 different signals between the generic Linux kernel implementation
3245 and AVR's.
3246 (avr_linux_gdb_signal_from_target): Delete.
3247 (avr_linux_gdb_signal_to_target): Delete.
3248 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3249
24a55014
DE
32502013-08-09 Doug Evans <dje@google.com>
3251
3252 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3253 entries.
3254
eb14d406
SDJ
32552013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3256
3257 * linux-tdep.c: Define enum with generic signal numbers.
3258 (linux_gdb_signal_from_target): New function.
3259 (linux_gdb_signal_to_target): Likewise.
3260 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3261 methods to the functions above.
3262 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3263 (linux_gdb_signal_to_target): Likewise.
3264 * alpha-linux-tdep.c: Define new enum with signals different
3265 from generic Linux kernel.
3266 (alpha_linux_gdb_signal_from_target): New function.
3267 (alpha_linux_gdb_signal_to_target): Likewise.
3268 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3269 with the functions mentioned above.
3270 * avr-tdep.c: Define enum with differences between Linux kernel
3271 and AVR signals.
3272 (avr_linux_gdb_signal_from_target): New function.
3273 (avr_linux_gdb_signal_to_target): Likewise.
3274 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3275 the functions mentioned above.
3276 * sparc-linux-tdep.c: Define enum with differences between SPARC
3277 and generic Linux kernel signal numbers.
3278 (sparc32_linux_gdb_signal_from_target): New function.
3279 (sparc32_linux_gdb_signal_to_target): Likewise.
3280 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3281 to the functions defined above.
3282 * xtensa-linux-tdep.c: Define enum with differences between
3283 Xtensa and Linux kernel generic signals.
3284 (xtensa_linux_gdb_signal_from_target): New function.
3285 (xtensa_linux_gdb_signal_to_target): Likewise.
3286 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3287 to the functions defined above.
3288 * mips-linux-tdep.c: Define enum with differences between
3289 signals in MIPS and Linux kernel generic ones.
3290 (mips_gdb_signal_to_target): New function.
3291 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3292 only different signals from the Linux kernel generic.
3293 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3294 the functions defined above.
3295 * mips-linux-tdep.h (enum mips_signals): Remove.
3296
156d08c8
PA
32972013-08-09 Pedro Alves <palves@redhat.com>
3298
3299 * avr-tdep.c (XMALLOC): Delete macro.
3300 * cli/cli-dump.c (XMALLOC): Delete macro.
3301
db229724
PA
33022013-08-09 Pedro Alves <palves@redhat.com>
3303
3304 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3305 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3306 (fopen_with_cleanup, add_dump_command): Make static.
3307 * cli/cli-dump.h: Delete file.
3308 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3309 cli/cli-dump.h.
3310
3f12a589
PA
33112013-08-09 Pedro Alves <palves@redhat.com>
3312
3313 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3314 error message.
3315
c718be47
PA
33162013-08-09 Pedro Alves <palves@redhat.com>
3317
156d08c8 3318 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
3319 error message.
3320
1e351ed1
PA
33212013-08-09 Pedro Alves <palves@redhat.com>
3322
3323 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3324 (gcore_command): Use tilde_expand here, and when showing the
3325 filename to the user, show the expanded version.
3326
1ed8d800
YQ
33272013-08-09 Yao Qi <yao@codesourcery.com>
3328
3329 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3330 'entryval' is set.
3331
47ecca85
PA
33322013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3333
3334 * gcore.c (create_gcore_bfd): Use tilde_expand.
3335
82a0a75f
YQ
33362013-08-08 Yao Qi <yao@codesourcery.com>
3337
3338 * frame.h (read_frame_local): Declare.
3339 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3340 read_frame_local.
3341 * stack.c (read_frame_local): New.
3342
5c4aa40b
YQ
33432013-08-08 Yao Qi <yao@codesourcery.com>
3344
3345 * mi/mi-cmd-stack.c: Update comments to function
3346 list_args_or_locals.
3347
b93601f3
TT
33482013-08-07 Tom Tromey <tromey@redhat.com>
3349
3350 PR symtab/15028:
3351 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3352 (process_psymtab_comp_unit_reader): Use it.
3353 (process_psymtab_comp_unit): Update. Add "pretend_language"
3354 argument.
3355 (dwarf2_build_psymtabs_hard): Update.
3356 (scan_partial_symbols): Pass CU's language to
3357 process_psymtab_comp_unit.
3358
fa760f46
TT
33592013-08-07 Tom Tromey <tromey@redhat.com>
3360
3361 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3362 (dwarf2_gdb_index_functions): Update.
3363 * psymtab.c (find_symbol_file_from_partial): Remove.
3364 (psym_functions): Update.
3365 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3366 Remove.
3367
bf6d8a91
TT
33682013-08-07 Tom Tromey <tromey@redhat.com>
3369
3370 * symfile.c (set_initial_language): Look up "main" symbol
3371 and use its language.
3372 * symtab.c (find_main_filename): Remove.
3373 * symtab.h (find_main_filename): Remove.
3374
f9125b6c
TT
33752013-08-07 Tom Tromey <tromey@redhat.com>
3376
3377 * dwarf2read.c (recursively_compute_inclusions): Add
3378 "immediate_parent" argument. Set symtab's "user" field
3379 if not set.
3380 (compute_symtab_includes): Update.
3381
fdbb204b
TT
33822013-08-07 Tom Tromey <tromey@redhat.com>
3383
3384 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3385 when adding label symbols.
3386
49de1690
UW
33872013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3388 Ulrich Weigand <uweigand@de.ibm.com>
3389
3390 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3391 * configure.host (powerpc64-*-aix*): Likewise.
3392
b08ee99f
UW
33932013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3394 Ulrich Weigand <uweigand@de.ibm.com>
3395
3396 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3397 is defined.
3398 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3399 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3400 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3401 * configure.ac: Check for ptrace64.
3402 * configure, config.in: Regenerate.
3403
fecf803e
UW
34042013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3405 Ulrich Weigand <uweigand@de.ibm.com>
3406
3407 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3408 Call ptrace64 instead of ptrace if defined.
3409 Add macro addr_ptr to take care of ptrace address argument.
3410 (pdc_read_regs): Likewise.
3411 (pdc_write_regs): Likewise.
3412 (aix_thread_resume): Likewise.
3413 (fetch_regs_kernel_thread): Likewise.
3414 (store_regs_kernel_thread): Likewise.
3415
3bb5e4a8
AB
34162013-08-07 Anton Blanchard <anton@samba.org>
3417
3418 * MAINTAINERS: Add myself to Write After Approval.
3419
12070676
TT
34202013-08-05 Tom Tromey <tromey@redhat.com>
3421
3422 * aix-thread.c (_initialize_aix_thread): Use
3423 complete_target_initialization.
3424 * bsd-uthread.c (_initialize_bsd_uthread): Use
3425 complete_target_initialization.
3426 * dec-thread.c (_initialize_dec_thread): Use
3427 complete_target_initialization.
3428 * ravenscar-thread.c (_initialize_ravenscar): Use
3429 complete_target_initialization.
3430 * sol-thread.c (_initialize_sol_thread): Use
3431 complete_target_initialization.
3432 * spu-multiarch.c (_initialize_spu_multiarch): Use
3433 complete_target_initialization.
3434
7c7b6655
TT
34352013-08-05 Tom Tromey <tromey@redhat.com>
3436
3437 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3438 * ada-lang.c (ada_lookup_simple_minsym): Return
3439 bound_minimal_symbol.
3440 * ada-lang.h (ada_lookup_simple_minsym): Update.
3441 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3442 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3443 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3444 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3445 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3446 * minsyms.c (msymbol_objfile): Remove.
3447 (lookup_minimal_symbol_internal): New function, from
3448 lookup_minimal_symbol.
3449 (lookup_minimal_symbol): Rewrite using
3450 lookup_minimal_symbol_internal.
3451 (lookup_bound_minimal_symbol): New function.
3452 * minsyms.h (msymbol_objfile): Remove.
3453 (lookup_bound_minimal_symbol): Declare.
3454 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3455 * parse.c (write_exp_msymbol): Change parameter to a
3456 bound_minimal_symbol.
3457 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3458 * parser-defs.h (write_exp_msymbol): Update.
3459 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3460 * symfile.c (simple_read_overlay_table): Use
3461 lookup_bound_minimal_symbol.
3462 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3463 (search_symbols): Likewise.
3464 (print_msymbol_info): Take a bound_minimal_symbol argument.
3465 (symtab_symbol_info, rbreak_command): Update.
3466 * symtab.h (struct symbol_search) <msymbol>: Change type
3467 to bound_minimal_symbol.
3468 * valops.c (find_function_in_inferior): Use
3469 lookup_bound_minimal_symbol.
3470 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3471
934b9bac
JK
34722013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3473
3474 Code cleanup.
3475 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3476 to ...
3477 (async_cleanup_sigint_signal_handler): ... this.
3478 (initialize_sigint_signal_handler): Remove declaration.
3479 (handle_remote_sigint): Rename the declaration to ...
3480 (async_handle_remote_sigint): ... this.
3481 (handle_remote_sigint_twice): Rename the declaration to ...
3482 (async_handle_remote_sigint_twice): ... this.
3483 (async_remote_interrupt, async_remote_interrupt_twice)
3484 (remote_interrupt): Remove the declarations.
3485 (remote_interrupt_twice): Rename the declaration ...
3486 (sync_remote_interrupt_twice): ... this.
3487 (sigint_remote_twice_token): Rename the variable to ...
3488 (async_sigint_remote_twice_token): ... this.
3489 (sigint_remote_token): Rename the variable to ...
3490 (async_sigint_remote_token): ... this.
3491 (initialize_sigint_signal_handler): Rename the function to ...
3492 (async_initialize_sigint_signal_handler): ... this. Update the name
3493 inside.
3494 (handle_remote_sigint): Rename the function to ...
3495 (async_handle_remote_sigint): ... this. Update the names inside.
3496 (handle_remote_sigint_twice): Rename the function to ...
3497 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3498 (cleanup_sigint_signal_handler): Rename the function to ...
3499 (async_cleanup_sigint_signal_handler): ... this.
3500 (remote_interrupt): Rename the function to ...
3501 (sync_remote_interrupt): this. Update the names inside.
3502 (remote_interrupt_twice): Rename the function to ...
3503 (sync_remote_interrupt_twice): this. Update the names inside.
3504 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3505 (_initialize_remote): Update the names inside.
3506
3a1115a0
TT
35072013-08-02 Tom Tromey <tromey@redhat.com>
3508
3509 PR symtab/15719:
3510 * breakpoint.c (update_watchpoint, watchpoint_check)
3511 (watch_command_1): Update.
3512 * eval.c (fetch_subexp_value): Add "preserve_errors"
3513 parameter.
3514 * ppc-linux-nat.c (check_condition): Update.
3515 * value.h (fetch_subexp_value): Update.
3516
58b19776
AB
35172013-08-02 Andrew Burgess <aburgess@broadcom.com>
3518
3519 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3520 add_file_handler.
3521
ec94af83
DE
35222013-08-01 Doug Evans <dje@google.com>
3523
7ee85ab1
DE
3524 PR symtab/15691
3525 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3526 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3527 Add assert of sig_entry->dwo_unit == NULL.
3528 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3529 had already been read.
3530 (read_signatured_type): Set per_cu.tu_read.
3531
b846d303
DE
3532 PR symtab/15695
3533 * valops.c (value_struct_elt): Add missing call to check_typedef.
3534 (value_find_oload_method_list): Ditto.
3535
b52109bc
DE
3536 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3537 effectively, struct symbol_search **.
3538 (make_cleanup_free_search_symbols): Change arg to struct
3539 symbol_search **. All callers updated.
3540 (compare_search_syms): Compare symtab file name and block as well.
3541 (search_symbols_equal): New function.
3542 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3543 New args new_head, new_tail. Result is now void. Remove dups after
3544 sorting the symbols.
3545 (search_symbols): Sort all found symbols once, after all have been
3546 found, and remove duplicates. Simplify cleanup tracking of result.
3547 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3548
ec94af83
DE
3549 Further workarounds for binutils/15021.
3550 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3551 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3552 Watch for duplicate symtabs coming from type units.
3553 (compute_symtab_includes): Update call to
3554 recursively_compute_inclusions. Build vector of included symtabs
3555 instead of per_cus.
3556 * symtab.h (symtab_ptr): New typedef.
3557 (DEF_VEC_P (symtab_ptr)): New VEC type.
3558 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3559 instead.
3560
b2ae85cf
AB
35612013-08-01 Andrew Burgess <aburgess@broadcom.com>
3562
3563 * cli/cli-script.c (script_from_file): Remove use of
3564 error_pre_print.
3565 * main.c (captured_main): Remove use of error_pre_print and
3566 quit_pre_print.
3567 * utils.c (error_pre_print, quit_pre_print): Remove.
3568 * utils.h (error_pre_print, quit_pre_print): Likewise.
3569
645eab03
YQ
35702013-08-01 Yao Qi <yao@codesourcery.com>
3571
3572 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3573 with mi_getopt.
3574 (mi_cmd_stack_list_variables): Likewise.
3575
16f92dd4
AB
35762013-07-31 Andrew Burgess <aburgess@broadcom.com>
3577
3578 * exceptions.c (deprecated_throw_reason): Remove.
3579 * exceptions.h (deprecated_throw_reason): Remove.
3580
13f78033
AB
35812013-07-31 Andrew Burgess <aburgess@broadcom.com>
3582
3583 * remote-mips.c (mips_error): Replace use of
3584 deprecated_throw_reason with throw_verror. Use the error message
3585 passed to mips_error as the error message for throw_verror.
3586
039e3c22
AB
35872013-07-31 Andrew Burgess <aburgess@broadcom.com>
3588
3589 * monitor.c (monitor_interrupt_query): Replace use of
3590 deprecated_throw_reason with quit.
3591 * nto-procfs.c (interrupt_query): Likewise.
3592 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3593 * remote-mips.c (mips_kill): Likewise.
3594 * remote.c (interrupt_query): Likewise.
3595
8150913b
AB
35962013-07-31 Andrew Burgess <aburgess@broadcom.com>
3597
3598 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3599 with call to fatal.
3600
de74e63a
YQ
36012013-07-31 Pedro Alves <pedro@codesourcery.com>
3602 Yao Qi <yao@codesourcery.com>
3603
3604 * tracepoint.c (trace_dump_command): Select the current frame.
3605
247f5c4f
DE
36062013-07-30 Doug Evans <dje@google.com>
3607
3608 * dwarf2read.c (process_queue): Add type signature to debug output.
3609
11b4b7cc
AB
36102013-07-30 Andrew Burgess <aburgess@broadcom.com>
3611
3612 * value.c (value_fetch_lazy): Mark optimized out values as such
3613 rather than raising an error.
3614
b0c54aa5
AB
36152013-07-30 Andrew Burgess <aburgess@broadcom.com>
3616
3617 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3618 before checking which bits of the parent, not the child, value are
3619 valid.
3620
97c85fc6
MB
36212013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3622
3623 PR gdb/15715
3624 * top.c: Include "filenames.h".
3625 (set_history_filename): New function.
3626 (init_main): Install it as set hook of the "set history filename"
3627 command.
3628
ff39bb5e
SA
36292013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3630
3631 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3632 attribute parameter.
3633 (dwarf2_const_value_data): Constify struct attribute parameter.
3634 (dwarf2_const_value): Constify struct attribute parameter.
3635 (dwarf2_const_value_attr): Constify struct attribute parameter.
3636 (lookup_die_type): Constify struct attribute parameter.
3637 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3638 (follow_die_ref_or_sig): Constify struct attribute parameter.
3639 (follow_die_ref): Constify struct attribute parameter.
3640 (follow_die_sig): Constify struct attribute parameter.
3641 (get_DW_AT_signature_type): Constify struct attribute parameter.
3642 (get_type_unit_group): Constify struct attribute parameter.
3643 (fill_in_loclist_baton): Constify struct attribute parameter.
3644 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3645 (type_unit_group): Constify struct attribute parameter.
3646
6e5a29e1
SA
36472013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3648
3649 * dwarf2read.c (attr_form_is_block): Make argument const.
3650 (attr_form_is_section_offset): Make argument const.
3651 (attr_form_is_constant): Make argument const.
3652 (attr_form_is_ref): Make argument const.
3653
7771576e
SA
36542013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3655
3656 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3657 All uses updated.
3658 (attr_form_is_ref): Moved below attr_form_is_constant.
3659
a94e8645
DE
36602013-07-29 Doug Evans <dje@google.com>
3661
bb5291d0
DE
3662 * main.c (captured_command_loop): Tweak comment.
3663
b5419e49
DE
3664 * target.c (target_async_permitted_1): Fix comment.
3665
b2d23133
DE
3666 * symtab.c (iterate_over_some_symtabs): Add comment.
3667
a94e8645
DE
3668 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3669
7a60ad40
YQ
36702013-07-27 Yao Qi <yao@codesourcery.com>
3671
3672 * NEWS: Mention that GDBserver now supports hardware
3673 watchpoints on the MIPS GNU/Linux target.
3674
aaee2056
YQ
36752013-07-27 Yao Qi <yao@codesourcery.com>
3676
3677 * Makefile.in (HFILES_NO_SRCDIR): Add
3678 common/mips-linux-watch.h.
3679 (mips-linux-watch.o): New rule.
3680 * common/mips-linux-watch.c: New.
3681 * common/mips-linux-watch.h: New.
3682 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3683 * mips-linux-nat.c: Include mips-linux-watch.h.
3684 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3685 to common/mips-linux-watch.h.
3686 (MAX_DEBUG_REGISTER): Likewise.
3687 (enum pt_watch_style): Likewise.
3688 (struct mips32_watch_regs): Likewise.
3689 (struct mips64_watch_regs): Likewise.
3690 (struct pt_watch_regs): Likewise.
3691 (struct mips_watchpoint): Likewise.
3692 (mips_linux_watch_get_irw_mask): Move to
3693 common/mips-linux-watch.c.
3694 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3695 (mips_linux_watch_get_watchlo): Likewise.
3696 (mips_linux_watch_set_watchlo): Likewise.
3697 (mips_linux_watch_get_watchhi): Likewise.
3698 (mips_linux_watch_set_watchhi): Likewise.
3699 (mips_linux_read_watch_registers): Likewise.
3700 (mips_linux_watch_type_to_irw): Likewise.
3701 (mips_linux_stopped_data_address, fill_mask): Likewise.
3702 (mips_linux_watch_try_one_watch): Likewise.
3703 (mips_linux_watch_populate_regs): Likewise.
3704
b3436450
YQ
37052013-07-27 Yao Qi <yao@codesourcery.com>
3706
3707 * mips-linux-nat.c (get_irw_mask): Rename to ...
3708 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3709 'set' to 'n'. Update function comment. All callers changed.
3710 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3711 function comment. All callers changed.
3712 (get_num_valid): Rename to ...
3713 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3714 'set' to 'n'. Update function comment. All callers changed.
3715 (get_watchlo): Rename to ...
3716 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3717 'set' to 'n'. Update function comment. All callers changed.
3718 (set_watchlo): Rename to ...
3719 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3720 'set' to 'n'. Update function comment. All callers changed.
3721 (get_watchhi): Rename to ...
3722 (mips_linux_watch_get_watchhi): ... this. Update function
3723 comment. All callers changed.
3724 (set_watchhi): Rename to ...
3725 (mips_linux_watch_set_watchhi): ... this. Update function
3726 comment. All callers changed.
3727 (mips_linux_read_watch_registers): Update function comment.
3728 Add new parameters 'lwpid', 'watch_readback', and
3729 'watch_readback_valid'. Update.
3730 (type_to_irw): Rename to ...
3731 (mips_linux_watch_type_to_irw): ... this. Update function
3732 comment. All callers changed.
3733 (fill_mask): Update function comment.
3734 (try_one_watch): Rename to ...
3735 (mips_linux_watch_try_one_watch): ... this. Change the type
3736 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3737 (populate_regs_from_watches): Rename to ...
3738 (mips_linux_watch_populate_regs): ... this. Add parameter
3739 'current_watches'. All callers changed.
3740
9be14b81
YQ
37412013-07-27 Yao Qi <yao@codesourcery.com>
3742
3743 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3744 the code.
3745 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3746 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3747 (struct pt_watch_regs): Likewise.
3748 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3749 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3750 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3751 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3752 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3753
de6f69ad
YQ
37542013-07-27 Yao Qi <yao@codesourcery.com>
3755
3756 * breakpoint.h: Include break-common.h.
3757 (enum target_hw_bp_type): Move to ...
3758 * common/break-common.h: ... here. New.
3759
6f64ef53
PA
37602013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3761
3762 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3763 process group regardless of having tty on stdin.
3764
6107e809
DE
37652013-07-25 Doug Evans <dje@google.com>
3766
3767 * linux-fork.h (detach_fork): Delete.
3768
7fdc1521
TT
37692013-07-25 Tom Tromey <tromey@redhat.com>
3770
3771 PR remote/15256, PR remote/15266:
3772 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3773 * monitor.c (monitor_detach): Use unpush_target.
3774 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3775 * remote-mips.c (mips_detach): Use unpush_target. Don't
3776 call mips_close.
3777 * remote-sim.c (gdbsim_detach): Use unpush_target.
3778 * target.c (pop_target): Remove.
3779 (pop_all_targets_above): Don't call target_close.
3780 (target_close): Assert that the target is unpushed.
3781 * target.h (pop_target): Don't declare.
3782 * tracepoint.c (tfile_open): Use unpush_target.
3783
c22a2b88
TT
37842013-07-25 Tom Tromey <tromey@redhat.com>
3785
3786 * linux-thread-db.c (init_thread_db_ops): Call
3787 complete_target_initialization.
3788 (_initialize_thread_db): Don't call add_target.
3789 * target.c (complete_target_initialization): New function.
3790 (add_target_with_completer): Call it.
3791 * target.h (complete_target_initialization): Declare.
3792
cbb6aada
MK
37932013-07-25 Mark Kettenis <kettenis@gnu.org>
3794
3795 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3796 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3797 (HPPANBSD_SIZEOF_GREGS): New define.
3798 (hppaobsd_supply_gregset): Handle additional registers.
3799 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3800 we provide more registers now.
3801 (hppabsd_supply_gregset): Supply additional registers.
3802 (hppabsd_collect_gregset): Collect additional registers.
3803
17767988
MK
38042013-07-25 Mark Kettenis <kettenis@gnu.org>
3805
3806 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3807 (hppabsd_dwarf2_frame_init_reg): New function.
3808 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3809
fdc8aae8
AB
38102013-07-25 Andrew Burgess <aburgess@broadcom.com>
3811
3812 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3813 'z' format code. Remove error for optimized out values, standard
3814 code will handle these fine.
3815
6fbe845e
AB
38162013-07-25 Andrew Burgess <aburgess@broadcom.com>
3817
3818 * NEWS: Mention new 'z' formatter.
3819 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3820 (_initialize_printcmd): Mention 'z' formatter in help text of the
3821 'x' command.
3822
3373342d
MR
38232013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3824
3825 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3826 formatting.
3827
25f9533e
SDJ
38282013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3829
3830 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3831 interface can evaluate arguments. Fallback to the old mode if it
3832 cannot.
3833 (create_exception_master_breakpoint): Likewise.
3834 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3835 (struct sym_probe_fns elf_probe_fns): Export function above to the
3836 probe interface.
3837 * probe.c (can_evaluate_probe_arguments): New function.
3838 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3839 function pointer.
3840 (can_evaluate_probe_arguments): New function prototype.
3841 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3842 probe interface can evaluate arguments. Fallback to the old mode
3843 if it cannot.
3844 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3845 interface can evaluate arguments. Warning the user if it cannot.
3846 (stap_can_evaluate_probe_arguments): New function.
3847 (struct probe_ops stap_probe_ops): Export function above to the
3848 probe interface.
3849 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3850 New function pointer.
3851
3360c0bf
LM
38522013-07-24 Luis Machado <lgustavo@codesourcery.com>
3853
3854 * Makefile.in (SFILES): Add common/target-common.c.
3855 Add common/target-common.h to headers.
3856 (COMMON_OBS): Add target-common.o.
3857 (target-common.o): New target.
3858 * linux-nat.h (resume_kind): Move to common/target-common.h.
3859 * target.c (target_waitstatus_to_string): Move to
3860 common/target-common.c.
3861 * target.h: Include target-common.h.
3862 (target_waitkind): Move to common/target-common.h.
3863 (target_waitstatus): Likewise.
3864 (TARGET_WNOHANG): Likewise.
3865 * common/target-common.c: New file.
3866 * common/target-common.h: New file.
3867
6656a72d
DE
38682013-07-24 Doug Evans <dje@google.com>
3869
3870 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3871 a warning.
3872
6df81a63
YQ
38732013-07-23 Yao Qi <yao@codesourcery.com>
3874
3875 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3876 parameter 'gdbarch'.
3877 (i386_stack_tramp_frame_sniffer): Caller update.
3878 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3879 parameter 'gdbarch' and 'target'.
3880 (i386_linux_core_read_description): Caller update.
3881 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3882 Likewise.
3883 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3884 declaration.
3885
365156ad
TT
38862013-07-23 Tom Tromey <tromey@redhat.com>
3887
3888 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3889 2013-07-22.
3890
046ac79f
JK
38912013-07-22 Doug Evans <dje@google.com>
3892
3893 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3894 * exec.c (exec_close): Update call to remove_target_sections.
3895 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3896 * solib.c (update_solib_list): Ditto.
3897 (reload_shared_libraries_1): Ditto.
3898 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3899 * target.h (struct target_section): Rename key to owner.
3900 All uses updated.
046ac79f 3901
29b2cc46
TT
39022013-07-22 Tom Tromey <tromey@redhat.com>
3903
3904 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3905
d1160018
TT
39062013-07-22 Tom Tromey <tromey@redhat.com>
3907
3908 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3909 Simplify cleanup handling.
3910
2f324bf6
TT
39112013-07-22 Tom Tromey <tromey@redhat.com>
3912
3913 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3914 on all return paths.
3915
e23b9d6e
UW
39162013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3917
3918 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3919 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3920 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3921
1cf55f60
PM
39222013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3923
3924 * top.c (print_gdb_version): Add help, apropos description and
3925 url to online documentation.
3926
fa876972
HZ
39272013-07-19 Hui Zhu <hui@codesourcery.com>
3928
3929 PR gdb/15692
3930 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3931
1527aea8
YQ
39322013-07-19 Yao Qi <yao@codesourcery.com>
3933
3934 * target.c (update_current_target): Change the default action
3935 of 'to_traceframe_info' from tcomplain to return_zero.
3936 * target.h (struct target_ops) <to_traceframe_info>: Add more
3937 comments.
3938 * valops.c (read_value_memory): Call
3939 traceframe_available_memory unconditionally.
3940
886f230e
YQ
39412013-07-18 Yao Qi <yao@codesourcery.com>
3942
3943 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3944 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3945 symbol without prefix. If found, set its type to
3946 'mst_solib_trampoline'.
3947
16419bae
DE
39482013-07-17 Doug Evans <dje@google.com>
3949
e7045703
DE
3950 * NEWS: Mention "set print raw frame-arguments".
3951 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3952 * stack.c (print_raw_frame_arguments): New static global.
3953 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3954 (_initialize_stack): New command "set/show print raw frame-arguments".
3955 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3956 (set_print_raw, show_print_raw): New functions.
3957 (_initialize_valprint): New prefix command "set/show print raw".
3958 * valprint.h (value_print_options): Improve comments.
3959
453e48a5
DE
3960 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3961 of all *list variables.
3962
16419bae
DE
3963 * gdbcmd.h (togglelist): Delete.
3964 * cli/cli-cmds.c (togglelist): Delete.
3965 (init_cmd_lists): Update.
3966 * cli/cli-cmds.h (togglelist): Delete.
3967
626f2d1c
TT
39682013-07-17 Tom Tromey <tromey@redhat.com>
3969
3970 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3971 dwarf2_per_objfile.
3972
57e6060e
DE
39732013-07-16 Doug Evans <dje@google.com>
3974
3975 * nto-tdep.c (nto_relocate_section_addresses): Update,
3976 target_section.bfd deleted.
3977 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3978 * s390-tdep.c (s390_load): Ditto.
3979 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3980
5ea5559b
AB
39812013-07-16 Andrew Burgess <aburgess@broadcom.com>
3982
3983 * common/format.c (parse_format_string): Add checks for NULL
3984 character before calling strchr.
3985
2b2848e2
DE
39862013-07-16 Doug Evans <dje@google.com>
3987
2c571006
DE
3988 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3989 temp_pathname argument.
3990 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3991 when opening the file fails.
3992
2b2848e2
DE
3993 * target.h (struct target_section): Delete member bfd.
3994 All users updated to use the_bfd_section->owner instead.
3995 * exec.c (add_to_section_table): Assert bfd is expected value.
3996 Remove initialization of target_section.bfd.
3997 (remove_target_sections): Update.
3998 (section_table_available_memory): Update.
3999 (section_table_xfer_memory_partial): Update.
4000 (print_section_info): Update.
4001 (exec_set_section_address): Update.
4002 * record-full.c (record_full_core_xfer_partial): Update.
4003 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4004 * solib-target.c (solib_target_relocate_section_addresses): Update.
4005 * symfile.c (build_section_addr_info_from_section_table): Update.
4006 * target.c (memory_xfer_live_readonly_partial): Update.
4007 (memory_xfer_partial_1): Update.
4008
926bf92d
UW
40092013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4010
4011 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4012 now available for embedded (BookE) and server (BookS) processors,
4013 correct mentions of 'booke' and adjust comments accordingly in order to
4014 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4015 (have_ptrace_booke_interface): Rename function and variable
4016 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4017 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4018 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4019 'hwdebug_point_cmp'. Update all uses.
4020 (booke_find_thread_points_by_tid): Rename function
4021 'booke_find_thread_points_by_tid' to
4022 'hwdebug_find_thread_points_by_tid'. Update all uses.
4023 (booke_insert_point): Rename function 'booke_insert_point' to
4024 'hwdebug_insert_point'. Update all uses.
4025 (booke_remove_point): Rename function 'booke_remove_point' to
4026 'hwdebug_remove_point'. Update all uses.
4027
d929bc19
MR
40282013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4029
4030 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4031 numbers with enum values.
4032
054e8d9e
AA
40332013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4034
4035 PR threads/13217
4036 * thread.c (thread_apply_all_command): Check for valid threads
4037 and thread count.
4038 (thread_array_cleanup): New struct.
4039 (set_thread_refcount): New function.
4040
cf006359
AB
40412013-07-11 Andrew Burgess <aburgess@broadcom.com>
4042
4043 * infcmd.c (default_print_one_register_info): Reuse function
4044 print_hex_chars.
4045
94e36acc
TT
40462013-07-10 Tom Tromey <tromey@redhat.com>
4047
4048 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4049 (ada-exp.o): New target.
4050
915dd369
SDJ
40512013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4052
4053 * mt-tdep.c (mt_registers_info): Call
4054 get_no_prettyformat_print_options instead of
4055 get_raw_print_options (regression by last patch from Doug
4056 Evans).
4057
eca07816
JB
40582013-07-09 Pedro Alves <palves@redhat.com>
4059
4060 Checked in by Joel Brobecker <brobecker@adacore.com>.
4061 * ada-lang.c (coerce_unspec_val_to_type): Use
4062 value_optimized_out_const.
4063 * value.c (value_optimized_out_const): New function.
4064 * value.h (value_optimized_out_const): New declaration.
4065
2a998fc0
DE
40662013-07-09 Doug Evans <dje@google.com>
4067
4068 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4069 Enum values rename as well. All uses updated.
4070 * valprint.h (value_print_options): Rename member pretty to
4071 pretty format. Rename member prettyprint_arrays to
4072 prettyformat_arrays. Rename member prettyprint_structs to
4073 prettyformat_structs. All uses updated.
4074 (get_no_prettyformat_print_options): Renamed from
4075 get_raw_print_options.
4076 * valprint.c (get_no_prettyformat_print_options): Renamed from
4077 get_raw_print_options. All callers updated.
4078 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4079 All callers updated.
4080 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4081 All callers updated.
4082 (_initialize_valprint): Improve help text for "set print pretty" and
4083 "set print arrays".
4084
466c1fca
AB
40852013-07-09 Andrew Burgess <aburgess@broadcom.com>
4086
4087 * value.c (value_bits_valid): Revert previous change, and change
4088 by Pedro on 2013-07-04, due to regressions in
4089 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4090
ad0f0303
AB
40912013-07-08 Andrew Burgess <aburgess@broadcom.com>
4092 Pedro Alves <palves@redhat.com>
4093
4094 * value.c (value_bits_valid): If the value is not lval_computed
4095 or has no check validity handler then the answer is the
4096 optimized_out flag, otherwise defer to the handler.
4097
b187bec1
EZ
40982013-07-06 Eli Zaretskii <eliz@gnu.org>
4099
48d1d6f5
EZ
4100 * top.c (print_gdb_configuration): Explain in output of
4101 --configuration what does "relocatable" mean.
4102
b187bec1
EZ
4103 * main.c (print_gdb_help): Regroup options in the --help text.
4104 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4105 the relevant discussions.
4106
52d361e1
YQ
41072013-07-06 Yao Qi <yao@codesourcery.com>
4108
4109 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4110 Remove parameter 'lsal'.
4111 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4112 to inner block. Caller update.
4113 (base_breakpoint_create_breakpoints_sal): Update.
4114 (bkpt_create_breakpoints_sal): Likewise.
4115 (tracepoint_create_breakpoints_sal): Likewise.
4116 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4117 element 0 of vector 'canonical->sals'.
4118
e1ec1b42
LM
41192013-07-05 Luis Machado <lgustavo@codesourcery.com>
4120
4121 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4122 register number instead of the pseudo register one.
4123 (rs6000_dwarf2_reg_to_regnum): Likewise.
4124
7195e6f0
PA
41252013-07-04 Pedro Alves <palves@redhat.com>
4126
4127 * findvar.c (value_of_register): Use allocate_optimized_out_value
4128 if the register has been optimized out, instead of
4129 set_value_optimized_out.
4130 * frame-unwind.c (frame_unwind_got_optimized): Use
4131 allocate_optimized_out_value.
4132
58722cac
PA
41332013-07-04 Pedro Alves <palves@redhat.com>
4134
4135 * value.c (value_bits_valid): If the value is not lval_computed,
4136 or doesn't have a check_validity hook, assume the value is entirely
4137 valid.
4138
691a26f5
AB
41392013-07-04 Andrew Burgess <aburgess@broadcom.com>
4140
4141 * stack.c (read_frame_arg): No longer fetch lazy values.
4142 * value.c (value_optimized_out): If the value is not already
4143 marked optimized out, and is lazy then fetch it.
4144 (value_primitive_field): Move optimized out check to later in the
4145 function, after we have loaded any lazy values.
4146 (value_fetch_lazy): Use optimized out flag directly rather than
4147 calling optimized_out method.
4148
a58e2656
AB
41492013-07-04 Andrew Burgess <aburgess@broadcom.com>
4150
4151 * valops.c: Don't include "user-regs.h".
4152 (value_fetch_lazy): Moved to value.c.
4153 * value.c: Include "user-regs.h".
4154 (value_fetch_lazy): Moved from valops.c.
4155
bd885420
YQ
41562013-07-04 Yao Qi <yao@codesourcery.com>
4157
4158 Revert:
4159 2013-06-27 Yao Qi <yao@codesourcery.com>
4160
4161 * common/create-version.sh: Update comments. Handle the case
4162 that TARGET_ALIAS is empty.
4163
17ef446e
PA
41642013-07-03 Pedro Alves <palves@redhat.com>
4165
4166 * Makefile.in (config.status): Depend on development.sh.
4167 (aclocal_m4_deps): Add libmcheck.m4.
4168 * acinclude.m4: Include libmcheck.m4.
4169 * configure.ac: Source development.sh instead of setting
4170 'development' here. --enable-libmcheck/--disable-libmcheck code
4171 factored out to GDB_AC_LIBMCHECK. Run it.
4172 * development.sh: New file.
4173 * libmcheck.m4: New file.
4174 * configure: Regenerate.
4175
ac6dd50f
TT
41762013-07-02 Tom Tromey <tromey@redhat.com>
4177
4178 * contrib/ari/update-web-ari.sh: Update for version.in change.
4179
bd1df410
TT
41802013-07-02 Tom Tromey <tromey@redhat.com>
4181
4182 * common/ptid.h: Comment fixes.
4183
4db1a1dc
TT
41842013-07-01 Tom Tromey <tromey@redhat.com>
4185
4186 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4187 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4188 (dwarf2_read_index, create_all_comp_units): Update.
4189
dd9aa048
TT
41902013-07-01 Tom Tromey <tromey@redhat.com>
4191
4192 * configure.ac (build_warnings): Add -Wold-style-definition.
4193 * configure: Rebuild.
4194 * machoread.c (_initialize_machoread): Use "(void)".
4195 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4196 use "(void)".
4197
44d100c3
TT
41982013-07-01 Tom Tromey <tromey@redhat.com>
4199
4200 * configure.ac (build_warnings): Add -Wold-style-declaration.
4201 * configure: Rebuild.
4202 * dsrec.c (make_srec): Use "static const", not "const static".
4203 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4204 not "const static".
4205 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4206 Use "static const", not "const static".
4207 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4208 not "const static".
4209 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4210 not "const static".
4211 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4212 not "const static".
4213 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4214 not "const static".
4215 (v850_dbtrap_breakpoint_from_pc): Likewise.
4216 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4217 not "const static".
4218
2945b807
TT
42192013-07-01 Tom Tromey <tromey@redhat.com>
4220
4221 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4222 * configure: Rebuild.
4223
d8d2a3ee
PA
42242013-07-01 Pedro Alves <palves@redhat.com>
4225
4226 * defs.h: Include "pathmax.h".
4227 * utils.c: Don't include sys/param.h.
4228 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4229 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4230 instead of MAXPATHLEN.
4231 * solib-sunos.c: Don't include sys/param.h.
4232 * xcoffread.c: Don't include sys/param.h.
4233 * bsd-kvm.c: Don't include sys/param.h.
4234 * darwin-nat.c: Don't include sys/param.h.
4235 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4236 * darwin-nat-info.c: Don't include sys/param.h.
4237 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4238 MAXPATHLEN.
4239 * i386obsd-nat.c: Don't include sys/param.h.
4240 * inf-child.c: Don't include sys/param.h.
4241 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4242 * linux-fork.c: Don't include sys/param.h.
4243 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4244 * linux-nat.c: Don't include sys/param.h.
4245 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4246 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4247 * m68klinux-nat.c: Don't include sys/param.h.
4248 * nbsd-nat.c: Don't include sys/param.h.
4249 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4250 * ppc-linux-nat.c: Don't include sys/param.h.
4251 * rs6000-nat.c: Don't include sys/param.h.
4252 * spu-linux-nat.c. Don't include sys/param.h.
4253 * windows-nat.c: Don't include sys/param.h.
4254 * xtensa-linux-nat.c: Don't include sys/param.h.
4255 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4256
38ec2207
PA
42572013-07-01 Pedro Alves <palves@redhat.com>
4258
4259 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4260 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4261 * gnulib/aclocal.m4: Regenerate.
4262 * gnulib/config.in: Regenerate.
4263 * gnulib/configure: Regenerate.
4264 * gnulib/import/pathmax.h: New file.
4265 * gnulib/import/Makefile.am: Regenerate.
4266 * gnulib/import/Makefile.in: Regenerate.
4267 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4268 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4269 * gnulib/import/m4/pathmax.m4: New file.
4270
e655c1a2
PA
42712013-07-01 Pedro Alves <palves@redhat.com>
4272
4273 * configure.ac (GDBINIT): Define, depending on host.
4274 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4275 * top.c (PATH_MAX): Delete fallback definition.
4276 (GDBINIT_FILENAME): Delete.
4277 (gdbinit): Reimplement as const char array set to the GDBINIT
4278 string constant.
4279 * top.h (gdbinit): Make const.
4280 * configure, config.in: Regenerate.
4281
50dd9793
PA
42822013-07-01 Pedro Alves <palves@redhat.com>
4283
4284 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4285 * cli/cli-cmds.h (source_script): Likewise.
4286 * exceptions.c (catch_command_errors_const): New function.
4287 * exceptions.h (catch_command_errors_const): Declare.
4288 * main.c (get_init_files): Make parameters const, and adjust.
4289 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4290 'local_gdbinit' locals const. Adjust to use
4291 catch_command_errors_const.
4292 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4293 'local_gdbinit' locals const.
4294
bc7dea8d
PA
42952013-07-01 Pedro Alves <palves@redhat.com>
4296
4297 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4298 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4299 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4300 <unistd.h>.
4301
8839a007
PA
43022013-07-01 Pedro Alves <palves@redhat.com>
4303
4304 Import the "unistd" gnulib module.
4305 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4306 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4307 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4308 import/m4/unistd_h.m4.
4309 * gnulib/aclocal.m4: Renenerate.
4310 * gnulib/config.in: Renenerate.
4311 * gnulib/configure: Renenerate.
4312 * gnulib/import/Makefile.am: Renenerate.
4313 * gnulib/import/Makefile.in: Renenerate.
4314 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4315 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4316 * gnulib/import/m4/off_t.m4: New file.
4317 * gnulib/import/m4/ssize_t.m4: New file.
4318 * gnulib/import/m4/sys_types_h.m4: New file.
4319 * gnulib/import/m4/unistd_h.m4: New file.
4320 * gnulib/import/sys_types.in.h: New file.
4321 * gnulib/import/unistd.c: New file.
4322 * gnulib/import/unistd.in.h: New file.
4323
8c0da261
PA
43242013-07-01 Pedro Alves <palves@redhat.com>
4325
4326 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4327 defined instead of checking HAVE_UNISTD_H.
4328
3574124b
PA
43292013-07-01 Pedro Alves <palves@redhat.com>
4330
4331 Reimport gnulib from scratch.
4332 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4333 import/m4/onceonly.m4.
4334 * gnulib/aclocal.m4: Renegerate.
4335 * gnulib/config.in: Renegerate.
4336 * gnulib/configure: Renegerate.
4337 * gnulib/import/Makefile.in: Renegerate.
4338 * gnulib/import/extra/update-copyright: Renegerate.
4339 * gnulib/import/m4/onceonly.m4: Delete.
4340
702dc4fd
PA
43412013-07-01 Pedro Alves <palves@redhat.com>
4342
4343 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4344
47e1ce27
JK
43452013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4346
4347 Code cleanup.
4348 * remote.c (async_remote_interrupt_twice): Make it static.
4349 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4350
e82839d4
SDJ
43512013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4352
4353 * ia64-linux-tdep.c: Include <ctype.h>.
4354 (ia64_linux_stap_is_single_operand): New function.
4355 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4356
d6c2da54
TT
43572013-06-28 Tom Tromey <tromey@redhat.com>
4358
4359 * Makefile.in (version.c): Use version.in, not
4360 common/version.in.
4361 * common/create-version.sh: Likewise.
4362 * common/version.in: Move...
4363 * version.in: ...here.
4364
74da6f00
PA
43652013-06-28 Pedro Alves <palves@redhat.com>
4366
4367 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4368 here.
4369 * utils.h (pagination_enabled): Declare.
4370
d32dc48e
PA
43712013-06-28 Pedro Alves <palves@redhat.com>
4372
4373 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4374 Move higher up in file.
4375
0edd9e3b
TT
43762013-06-28 Tom Tromey <tromey@redhat.com>
4377
4378 * tracepoint.c (deprecated_readline_begin_hook)
4379 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4380 declare.
4381
4eb59108
PA
43822013-06-28 Pedro Alves <palves@redhat.com>
4383
4384 PR tui/14880
4385 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4386 checking if they're available.
4387 * value.c (value_available_contents_eq): Change comment.
4388 * value.h (value_available_contents_eq): Expand comment.
4389
97b17156
TT
43902013-06-27 Tom Tromey <tromey@redhat.com>
4391
4392 * target.c (find_run_target): Remove.
4393 * target.h (find_run_target): Remove.
4394
6a3bfc5c
TT
43952013-06-27 Tom Tromey <tromey@redhat.com>
4396
4397 * corelow.c (core_gdbarch): Now static.
4398
c9ef825d
TT
43992013-06-27 Tom Tromey <tromey@redhat.com>
4400
4401 * target.c (target_struct_index): Remove.
4402
e5823f1c
PA
44032013-06-27 Pedro Alves <palves@redhat.com>
4404
4405 * infrun.c: Remove comment describing the 'stepping over runtime
4406 loader dynamic symbol resolution code' mechanism; moved to
4407 gdbint.texinfo.
4408
97f8dd09
PA
44092013-06-27 Pedro Alves <palves@redhat.com>
4410
4411 * exceptions.c (catch_command_errors): Remove spurious space.
4412 * exceptions.h (catch_command_errors): Second parameter is "arg",
4413 not "command".
4414
02b1871e
YQ
44152013-06-27 Yao Qi <yao@codesourcery.com>
4416
4417 * common/create-version.sh: Update comments. Handle the case
4418 that TARGET_ALIAS is empty.
4419
bb1b1cf1
PA
44202013-06-26 Pedro Alves <palves@redhat.com>
4421
4422 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4423 comment.
4424
7b624e71
PA
44252013-06-26 Pedro Alves <palves@redhat.com>
4426
4427 * infrun.c: Update comments on stepping over runtime loader
4428 dynamic symbol resolution code.
4429
74e5a346
SDJ
44302013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4431
4432 * ax-gdb.h (union exp_element): Forward declare.
4433 * parser-defs.h: Include expression.h.
4434
a2fb2cee
MR
44352013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4436
4437 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4438
cdba14e0
DK
44392013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4440
4441 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4442
f30aa5af
DK
44432013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4444
4445 Fix trace-status to output proper start-time and stop-time.
4446 * tracepoint.c (trace_status_command): Fix type of printf arg to
4447 prevent improper type conversion.
4448 (trace_status_mi): Likewise.
4449
1aee363c
MR
44502013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4451
4452 * mips-tdep.c (mips_next_pc): Fix a typo.
4453
3356937a
MR
44542013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4455
4456 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4457
dc673c81
YQ
44582013-06-26 Pedro Alves <pedro@codesourcery.com>
4459 Yao Qi <yao@codesourcery.com>
4460
4461 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4462 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4463 * mi/mi-main.c (print_variable_or_computed): New function.
4464 (mi_cmd_trace_frame_collected): New function.
4465 * tracepoint.c (find_trace_state_variable_by_number): New.
4466 (struct traceframe_info): Move to tracepoint.h
4467 (struct collection_list): Likewise.
4468 (do_collect_symbol): Include locals and arguments in the
4469 collected variables list.
4470 (clear_collection_list): Clear wholly collected variables list
4471 and computed variables list.
4472 (append_exp): New function.
4473 (encode_actions_1): Include variables in the wholly
4474 collected variables list. Include memory ranges and
4475 full-fledged expressions in the computed expressions list.
4476 (encode_actions): Move some code to ...
4477 Return the cleanup chain.
4478 (encode_actions_rsp): ... here. New function.
4479 (get_traceframe_location, get_traceframe_info): Remove static.
4480 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4481 (struct collection_list): Moved from tracepoint.c. Add two
4482 new fields 'wholly_collected' and 'computed'.
4483 (find_trace_state_variable_by_number): Declare.
4484 (encode_actions): Adjust declaration.
4485 (encode_actions_rsp): Declare.
4486 (get_traceframe_info, get_traceframe_location): Declare.
4487
4488 * NEWS: Mention new MI command -trace-frame-collected.
4489
28a93511
YQ
44902013-06-26 Pedro Alves <pedro@codesourcery.com>
4491 Yao Qi <yao@codesourcery.com>
4492
4493 * ctf.c (ctf_traceframe_info): Push trace state variables
4494 present in the trace data into the traceframe info object.
4495 * breakpoint.c (DEF_VEC_I): Remove.
4496 * common/filestuff.c (DEF_VEC_I): Likewise.
4497 * dwarf2loc.c (DEF_VEC_I): Likewise.
4498 * mi/mi-main.c (DEF_VEC_I): Likewise.
4499 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4500 * features/traceframe-info.dtd: Add tvar element and its
4501 attributes.
4502 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4503 (build_traceframe_info): Push trace state variables present in
4504 the trace data into the traceframe info object.
4505 (traceframe_info_start_tvar): New function.
4506 (tvar_attributes): New.
4507 (traceframe_info_children): Add "tvar" element.
4508 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4509
4510 * NEWS: Mention the change in GDB and GDBserver.
4511
ddacd3c8
YQ
45122013-06-26 Pedro Alves <pedro@codesourcery.com>
4513 Yao Qi <yao@codesourcery.com>
4514
4515 * tracepoint.c (trace_dump_command): Move code to ...
4516 (get_traceframe_location): ... here. New.
4517
05796b35
YQ
45182013-06-26 Pedro Alves <pedro@codesourcery.com>
4519 Yao Qi <yao@codesourcery.com>
4520
4521 * tracepoint.c (trace_dump_command): GDB emits an error
4522 instead of a warning when a traceframe is not selected.
4523
cbfa3b61
YQ
45242013-06-26 Pedro Alves <pedro@codesourcery.com>
4525 Yao Qi <yao@codesourcery.com>
4526
4527 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4528 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4529 in collection_list.
4530 (do_clear_collection_list, init_collection_list): New.
4531 (encode_actions): Add local variables 'tracepoint_list' and
4532 'stepping_list'. Call init_collection_list and make cleanup
4533 which calls do_clear_collection_list. Don't call
4534 clear_collection_list.
4535 (_initialize_tracepoint): Delete references to
4536 'tracepoint_list' and 'stepping_list'.
4537
6e2048d3
TT
45382013-06-25 Tom Tromey <tromey@redhat.com>
4539
4540 * common/create-version.sh (date): Use "$", not "$$" in sed
4541 expression.
4542
42059f0e
KB
45432013-06-25 Kevin Buettner <kevinb@redhat.com>
4544
4545 * NEWS (New targets): Add entry for TI MSP430.
4546
a0743c90
YQ
45472013-06-25 Yao Qi <yao@codesourcery.com>
4548
4549 * remote.c (remote_start_remote): Move code to upload tsv
4550 earlier.
4551
9d6e6e84
HZ
45522013-06-25 Yao Qi <yao@codesourcery.com>
4553 Hui Zhu <hui@codesourcery.com>
4554 Pedro Alves <palves@redhat.com>
4555
4556 PR breakpoints/15075
4557 PR breakpoints/15434
4558 * breakpoint.c (bpstat_stop_status): Call
4559 b->ops->after_condition_true.
4560 (update_dprintf_command_list): Don't append "continue" command
4561 to the command list of dprintf breakpoint.
4562 (base_breakpoint_after_condition_true): New function.
4563 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4564 (dprintf_after_condition_true): New function.
4565 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4566 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4567
586cf749
KB
45682013-06-24 Kevin Buettner <kevinb@redhat.com>
4569
4570 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4571 (ALLDEPFILES): Add msp430-tdep.c.
4572 * configure.tgt (msp430*-*-elf): New target.
4573 * msp430-tdep.c: New file.
4574
1bbce132
MR
45752013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4576
4577 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4578 microMIPS synthetic symbols.
4579
3e5d3a5a
MR
45802013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4581
4582 * objfiles.h (pc_in_section): New prototype.
4583 (in_plt_section): Remove name argument, replace prototype with
4584 static inline function.
4585 * mips-tdep.h: Include "objfiles.h".
4586 (in_mips_stubs_section): New function.
4587 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4588 in_solib_call_trampoline member.
4589 (hppa_in_solib_call_trampoline): Remove name argument.
4590 * objfiles.c (pc_in_section): New function.
4591 (in_plt_section): Remove function.
4592 * mips-linux-tdep.c: Include "objfiles.h".
4593 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4594 name argument. Return 1 rather than the low 16-bit halfword of
4595 any instruction examined.
4596 (mips_linux_in_dynsym_resolve_code): Update
4597 mips_linux_in_dynsym_stub call accordingly.
4598 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4599 rather than an equivalent hand-coded sequence.
4600 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4601 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4602 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4603 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4604 in_opd_section.
4605 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4606 on call to tdep->in_solib_call_trampoline.
4607 (hppa_in_solib_call_trampoline): Remove name argument, update
4608 according to in_plt_section change.
4609 (hppa_skip_trampoline_code): Update according to in_plt_section
4610 change.
4611 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4612 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4613 Likewise.
4614 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4615 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4616 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4617 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4618 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4619 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4620 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4621 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4622 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4623 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4624 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4625 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4626 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4627
b9b26a16
JB
46282013-06-24 Joel Brobecker <brobecker@adacore.com>
4629
4630 * common/create-version.sh: Fix expansion of $host_alias
4631 and $target_alias in generation of HOST_NAME and TARGET_NAME
4632 (resp.).
4633
01208463
TT
46342013-06-24 Tom Tromey <tromey@redhat.com>
4635
4636 * common/create-version.sh: New file.
4637 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4638 create-version.sh.
4639 (HFILES_NO_SRCDIR): Use common/version.h.
4640 * version.in: Move to ...
4641 * common/version.in: ... here. Replace date with "DATE".
4642 * version.h: Move to ...
4643 * common/version.h: ... here.
4644
bb6b9a5e
JB
46452013-06-21 Joel Brobecker <brobecker@adacore.com>
4646
4647 * gdb/gnulib/Makefile.in: Update date in copyright header.
4648 * gdb/gnulib/configure.ac: Ditto.
4649 * gdb/gnulib/update-gnulib.sh: Ditto.
4650
c3b18ee7
JB
46512013-06-21 Joel Brobecker <brobecker@adacore.com>
4652
4653 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4654 "gdb/gnulib/import".
4655
85d3b769
WN
46562013-06-21 Will Newton <will.newton@linaro.org>
4657
4658 * doublest.c (ldfrexp): Remove function.
4659 (convert_doublest_to_floatformat): Call frexpl instead of
4660 ldfrexp.
4661
88b48903
WN
46622013-06-21 Will Newton <will.newton@linaro.org>
4663
4664 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4665 * gnulib/aclocal.m4: Regenerate.
4666 * gnulib/config.in: Regenerate.
4667 * gnulib/configure: Regenerate.
4668 * gnulib/import/Makefile.am: Update.
4669 * gnulib/import/Makefile.in: Update.
4670 * gnulib/import/m4/gnulib-cache.m4: Update.
4671 * gnulib/import/m4/gnulib-comp.m4: Update.
4672 * gnulib/import/float+.h: Import.
4673 * gnulib/import/float.c: Import.
4674 * gnulib/import/float.in.h: Import.
4675 * gnulib/import/fpucw.h: Import.
4676 * gnulib/import/frexp.c: Import.
4677 * gnulib/import/frexpl.c: Import.
4678 * gnulib/import/isnan.c: Import.
4679 * gnulib/import/isnand-nolibm.h: Import.
4680 * gnulib/import/isnand.c: Import.
4681 * gnulib/import/isnanl-nolibm.h: Import.
4682 * gnulib/import/isnanl.c: Import.
4683 * gnulib/import/itold.c: Import.
4684 * gnulib/import/m4/exponentd.m4: Import.
4685 * gnulib/import/m4/exponentl.m4: Import.
4686 * gnulib/import/m4/float_h.m4: Import.
4687 * gnulib/import/m4/fpieee.m4: Import.
4688 * gnulib/import/m4/frexp.m4: Import.
4689 * gnulib/import/m4/frexpl.m4: Import.
4690 * gnulib/import/m4/isnand.m4: Import.
4691 * gnulib/import/m4/isnanl.m4: Import.
4692 * gnulib/import/m4/math_h.m4: Import.
4693 * gnulib/import/math.c: Import.
4694 * gnulib/import/math.in.h: Import.
4695
4353c9e6
JK
46962013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4697
4698 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4699 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4700 signature_INTEL_edx comparisons.
4701
e3e06db3
DE
47022013-06-20 Doug Evans <dje@google.com>
4703
6ac97d4c
DE
4704 symtab/15652
4705 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4706 All callers updated.
4707 (open_dwp_file): If we can't find the dwp file, search the basename
4708 in debug-file-directory.
4709
93417882
DE
4710 * dwarf2read.c (struct dwp_file): Fix comment.
4711 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4712
e3e06db3
DE
4713 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4714 better.
4715
0878d0fa
YQ
47162013-06-20 Yao Qi <yao@codesourcery.com>
4717
4718 * breakpoint.c (create_breakpoint): Fix code indentation.
4719
023fa29b
YQ
47202013-06-20 Yao Qi <yao@codesourcery.com>
4721
4722 * breakpoint.c (create_breakpoints_sal_default): Remove
4723 parameter 'lsal'. Update declaration.
4724 (bkpt_create_breakpoints_sal): Caller update.
4725 (tracepoint_create_breakpoints_sal): Likewise.
4726
c898adb7
YQ
47272013-06-20 Pedro Alves <pedro@codesourcery.com>
4728 Yao Qi <yao@codesourcery.com>
4729
4730 * NEWS: Mention the new option '--skip-unavailable' of command
4731 -data-list-register-values.
4732 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4733 --skip-unavailable option. Adjust to use output_register.
4734 (output_register): Add new 'skip_unavailable' parameter.
4735 Handle it.
4736
4d157a3d
MF
47372013-06-19 Mike Frysinger <vapier@gentoo.org>
4738
4739 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4740 common/i386-gcc-cpuid.h.
4741 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4742 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4743 Copy the latest version from upstream gcc.
4744 * common/linux-btrace.c: Include i386-cpuid.h.
4745 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4746 call to i386_cpuid.
4747 (cpu_supports_btrace): Likewise.
4748 * go32-nat.c: Include i386-cpuid.h.
4749 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4750
1ce4db08
DE
47512013-06-19 Doug Evans <dje@google.com>
4752
4753 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4754 (get_section_index): Ditto.
4755
0e4777df
TT
47562013-06-19 Tom Tromey <tromey@redhat.com>
4757
4758 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4759 "dprintf" help.
4760
3190f0c6
DE
47612013-06-18 Doug Evans <dje@google.com>
4762
4763 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4764 before using it.
4765 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4766 Move test of cu_index closer to use. Print complaint if cu_index
4767 is bad.
4768
8b89a20a
JB
47692013-06-18 Joel Brobecker <brobecker@adacore.com>
4770
4771 * machoread.c (oso_vector): Delete this global.
4772 (macho_register_oso): Add new parameter "oso_vector_ptr".
4773 Use it instead of the "oso_vector" global.
4774 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4775 (macho_symfile_read): Use a local oso_vector, to be free'ed
4776 at the end of this function, in place of the old "oso_vector"
4777 global. Update various function calls accordingly. Use one
4778 single cleanup chain for the entire function.
4779
59b0c7c1
JB
47802013-06-18 Joel Brobecker <brobecker@adacore.com>
4781
937c708c 4782 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4783 DWARF2_PER_OBJFILE by uses of DATA instead.
4784
427cd150
TT
47852013-06-18 Tom Tromey <tromey@redhat.com>
4786
4787 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4788 argument.
4789 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4790 Special case signals other than GDB_SIGNAL_TRAP.
4791 (explains_signal_watchpoint): New function.
4792 (base_breakpoint_explains_signal): Add 'sig' argument.
4793 (initialize_breakpoint_ops): Set 'explains_signal' method for
4794 watchpoints.
4795 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4796 signal argument.
4797 (bpstat_explains_signal): Likewise.
4798 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4799
2d57700b
TT
48002013-06-18 Tom Tromey <tromey@redhat.com>
4801
4802 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4803
ac475191
TT
48042013-06-18 Tom Tromey <tromey@redhat.com>
4805
4806 * python/python.c (finish_python_initialization): Decref
4807 'pythondir' on failure path as well.
4808
5bd1ef56
TT
48092013-06-18 Tom Tromey <tromey@redhat.com>
4810
4811 PR symtab/15391:
4812 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4813 after taking bits_to_skip into account. Sign extend byte_offset.
4814 * utils.h (gdb_sign_extend): Declare.
4815 * utils.c (gdb_sign_extend): New function.
4816
92fac807
JK
48172013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4818
4819 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4820
2d503272
PM
48212013-06-17 Pierre Muller <muller@sourceware.org>
4822
4823 * corelow.c (core_open): Print GDB signal name instead of target
4824 signal number.
4825
6916fd98
MF
48262013-06-17 Mike Frysinger <vapier@gentoo.org>
4827
4828 * .gitignore: Add /gcore.
4829
9c02c129
DE
48302013-06-13 Doug Evans <dje@google.com>
4831
4832 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4833 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4834
d0548fa2
PM
48352013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4836
4837 * stack.c (backtrace_command_1): Fix indentation.
4838
22128028
JB
48392013-06-11 Joel Brobecker <brobecker@adacore.com>
4840
4841 * window-nat.c (thread_rec): Add missing empty line after
4842 local variable declaration.
4843
2ed3e009
JB
48442013-06-11 Joel Brobecker <brobecker@adacore.com>
4845
4846 * windows-nat.c (thread_rec): Revert format used to print
4847 error code returned by SuspendThread from %d back to %u.
4848
0c3d84be
JB
48492013-06-11 Joel Brobecker <brobecker@adacore.com>
4850
4851 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4852 ID in debug trace.
4853 (get_windows_debug_event): Likewise, for all debug traces.
4854
80e88e1a
JB
48552013-06-11 Joel Brobecker <brobecker@adacore.com>
4856
4857 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4858 warning message.
4859
1edebdbf
YQ
48602013-06-08 Pedro Alves <pedro@codesourcery.com>
4861 Yao Qi <yao@codesourcery.com>
4862
4863 * mi/mi-main.c (get_register): Remove declaration.
4864 (output_register): Declare.
4865 (mi_cmd_data_list_register_values): Remove local variable
4866 'tuple_cleanup'. Move some code into output_register.
4867 (get_register): Renamed to ...
4868 (output_register): ... this. Output the register's
4869 "number" ui_out tuple here.
4870
47d48711
PA
48712013-06-07 Pedro Alves <palves@redhat.com>
4872
4873 * darwin-nat.c: Fix formating in copyright header.
4874 * darwin-nat.h: Likewise.
4875 * gnu-nat.c: Likewise.
4876 * machoread.c: Likewise.
4877
3aee8918
PA
48782013-06-07 Pedro Alves <palves@redhat.com>
4879
5f2b57b5 4880 PR server/14823
3aee8918
PA
4881 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4882 static. Output a global target description pointer.
4883 (init_registers_${name}): Adjust to initialize a
4884 target description structure.
4885
fe8400b4
WN
48862013-06-07 Will Newton <will.newton@linaro.org>
4887
4888 * printcmd.c (build_address_symbolic): Call
4889 gdbarch_addr_bits_remove for text minimal symbols.
4890
20df6206
WN
48912013-06-07 Will Newton <will.newton@linaro.org>
4892
4893 * MAINTAINERS: Add myself to Write After Approval.
4894
aef525cb
YQ
48952013-06-07 Yao Qi <yao@codesourcery.com>
4896
4897 * tracepoint.c (start_tracing): Move code to ...
4898 (trace_reset_local_state): ... here. New.
4899 (disconnect_tracing): Don't call set_current_traceframe,
4900 set_tracepoint_num, and set_traceframe_context. Call
4901 trace_reset_local_state instead.
4902 (tfile_close): Call trace_reset_local_state.
4903 * ctf.c (ctf_close): Likewise.
4904 * remote.c (remote_close): Likewise.
4905 * tracepoint.h (trace_reset_local_state): Declare.
4906
d2415c6c
DE
49072013-06-06 Doug Evans <dje@google.com>
4908
4909 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4910 and fix header docs.
4911
69fc87c2
DE
49122013-06-05 Doug Evans <dje@google.com>
4913 Keith Seitz <keiths@redhat.com>
4914
4915 PR 15519
4916 * cp-namespace.c (find_symbol_in_baseclass): Call
4917 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4918 Check result of call to lookup_symbol_static.
4919 Call lookup_static_symbol_aux unconditionally.
4920 Call check_typedef on base types before accessing them.
4921 (cp_lookup_nested_symbol): Fix comment.
4922
a513d1e8
LM
49232013-06-05 Luis Machado <lgustavo@codesourcery.com>
4924
4925 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4926 minimal symbols pointing to function descriptors.
4927
351a6f02
TT
49282013-06-05 Tom Tromey <tromey@redhat.com>
4929
4930 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4931
5e1b953b 49322013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4933 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4934
4935 * remote.c (remote_wait_as): Restore signal handler before returning
4936 when GDB gets a notification.
4937
f9e14852
GB
49382013-06-04 Gary Benson <gbenson@redhat.com>
4939
8445cbf1 4940 PR 2328
f9e14852
GB
4941 * breakpoint.h (handle_solib_event): Moved function declaration
4942 to solib.h.
4943 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4944 (bpstat_stop_status): Pass new argument to handle_solib_event.
4945 * solib.h (update_solib_breakpoints): New function declaration.
4946 (handle_solib_event): Moved function declaration from
4947 breakpoint.h.
4948 * solib.c (update_solib_breakpoints): New function.
4949 (handle_solib_event): Moved function from breakpoint.c.
4950 Updated to call solib_ops->handle_event if not NULL.
4951 * solist.h (target_so_ops): New fields "update_breakpoints" and
4952 "handle_event".
4953 * infrun.c (set_stop_on_solib_events): New function.
4954 (_initialize_infrun): Use the above for "set
4955 stop-on-solib-events".
4956 (handle_inferior_event): Pass new argument to handle_solib_event.
4957 * solib-svr4.c (probe.h): New include.
4958 (svr4_free_library_list): New forward declaration.
4959 (probe_action): New enum.
4960 (probe_info): New struct.
4961 (probe_info): New static variable.
4962 (NUM_PROBES): New definition.
4963 (svr4_info): New fields "using_xfer", "probes_table" and
4964 "solib_list".
4965 (free_probes_table): New function.
4966 (free_solib_list): New function.
4967 (svr4_pspace_data_cleanup): Free probes table and solib list.
4968 (svr4_copy_library_list): New function.
4969 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4970 (svr4_read_so_list): New parameter "prev_lm".
4971 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4972 (svr4_current_sos): New function.
4973 (probe_and_action): New struct.
4974 (hash_probe_and_action): New function.
4975 (equal_probe_and_action): Likewise.
4976 (register_solib_event_probe): Likewise.
4977 (solib_event_probe_at): Likewise.
4978 (solib_event_probe_action): Likewise.
4979 (solist_update_full): Likewise.
4980 (solist_update_incremental): Likewise.
4981 (disable_probes_interface_cleanup): Likewise.
4982 (svr4_handle_solib_event): Likewise.
4983 (svr4_update_solib_event_breakpoint): Likewise.
4984 (svr4_update_solib_event_breakpoints): Likewise.
4985 (svr4_create_solib_event_breakpoints): Likewise.
4986 (enable_break): Free probes table before creating breakpoints.
4987 Use svr4_create_solib_event_breakpoints to create breakpoints.
4988 (svr4_solib_create_inferior_hook): Free the solib list.
4989 (_initialize_svr4_solib): Initialise
4990 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4991
ced63ec0
GB
49922013-06-04 Gary Benson <gbenson@redhat.com>
4993
4994 * target.h (target_ops): New field
4995 "to_augmented_libraries_svr4_read".
4996 (target_augmented_libraries_svr4_read): New macro.
4997 * target.c (update_current_target): Handle
4998 to_augmented_libraries_svr4_read.
4999 * remote.c (remote_state): New field
5000 "augmented_libraries_svr4_read".
5001 (remote_augmented_libraries_svr4_read_feature): New function.
5002 (remote_protocol_features): Add entry for
5003 "augmented-libraries-svr4-read".
5004 (remote_augmented_libraries_svr4_read): New function.
5005 (init_remote_ops): Initialize
5006 remote_ops.to_augmented_libraries_svr4_read.
5007
7f91dbec
GB
50082013-06-04 Gary Benson <gbenson@redhat.com>
5009
5010 * NEWS: Update.
5011
607ece04
GB
50122013-06-04 Gary Benson <gbenson@redhat.com>
5013
5014 * objfiles.h (inhibit_section_map_updates): New function
5015 declaration.
5016 (resume_section_map_updates): Likewise.
5017 (resume_section_map_updates_cleanup): Likewise.
5018 * objfiles.c (objfile_pspace_info): Removed field
5019 "objfiles_changed_p". New fields "new_objfiles_available",
5020 "section_map_dirty" and "inhibit_updates".
5021 (allocate_objfile): Set new_objfiles_available.
5022 (free_objfile): Set section_map_dirty.
5023 (objfile_relocate1): Likewise.
5024 (in_plt_section): Likewise.
5025 (find_pc_section): Update the conditions under which the
5026 section map will be updated.
5027 (inhibit_section_map_updates): New function.
5028 (resume_section_map_updates): Likewise.
5029 (resume_section_map_updates_cleanup): Likewise.
5030
9ee6a5ac
GB
50312013-06-04 Gary Benson <gbenson@redhat.com>
5032
5033 * probe.h (get_probe_argument_count): New declaration.
5034 (evaluate_probe_argument): Likewise.
5035 * probe.c (get_probe_argument_count): New function.
5036 (evaluate_probe_argument): Likewise.
5037 (probe_safe_evaluate_at_pc): Use the above new functions.
5038
845d4708
AM
50392013-06-04 Alan Modra <amodra@gmail.com>
5040
5041 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5042 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5043 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5044 target mem reads on optional insns.
5045 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5046 ppc_insns_match_pattern calls.
5047 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5048 Add match for power7 thread safety insns, and new order of
5049 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5050 invocation in comment, and update rest of comment.
5051 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5052 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5053 (ppc64_standard_linkage2_target): Update insn offsets.
5054 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5055 stubs first. Update calls.
5056
404e278f
YQ
50572013-06-04 Yao Qi <yao@codesourcery.com>
5058
5059 * solib.c (solib_find): Don't need dir separator if path has
5060 drive spec.
5061
f6aea118
JB
50622013-06-03 Joel Brobecker <brobecker@adacore.com>
5063
5064 Revert (indirectly causes a SIGSEGV):
5065 * machoread.c (macho_symfile_read): Assign first cleanup to
5066 'back_to'.
5067
87967e27
YQ
50682013-06-03 Yao Qi <yao@codesourcery.com>
5069
5070 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5071 mi-parse.c. Make them static.
5072 (mi_all_values): Likewise.
5073 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5074 mi_parse_print_values. Make it external.
5075 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5076 Remove the declarations.
5077 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5078 * mi/mi-parse.h (mi_parse_print_values): Declare.
5079 * mi/mi-cmd-stack.c: Include mi-parse.h.
5080 (parse_print_values): Remove
5081 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5082 of parse_print_values.
5083 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5084
3ca73e0c
YQ
50852013-05-31 Pedro Alves <pedro@codesourcery.com>
5086 Yao Qi <yao@codesourcery.com>
5087
5088 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5089 (encode_actions): Move code to ...
5090 (all_tracepoint_actions_and_cleanup): ... here. New.
5091 (trace_dump_command): Likewise.
5092
4e993a19
TT
50932013-05-30 Tom Tromey <tromey@redhat.com>
5094
5095 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5096
e3b76b4f
TT
50972013-05-30 Tom Tromey <tromey@redhat.com>
5098
5099 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5100 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5101 'old_chain' argument. Add 'parser_result' argument.
5102 (gdb_xml_create_parser_and_cleanup): Remove old version.
5103 (gdb_xml_parse_quick): Update.
5104 (xml_process_xincludes): Update.
5105 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5106 declare.
5107
db26349c
TT
51082013-05-30 Tom Tromey <tromey@redhat.com>
5109
5110 * probe.c (collect_probes): Check arguments for NULL before
5111 calling compile_rx_or_error.
5112 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5113 Remove NULL return.
5114
77f9e713
TT
51152013-05-30 Tom Tromey <tromey@redhat.com>
5116
5117 * infrun.c (adjust_pc_after_break): Introduce an outer null
5118 cleanup.
5119
45475de7
TT
51202013-05-30 Tom Tromey <tromey@redhat.com>
5121
5122 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5123
ac5007fd
TT
51242013-05-30 Tom Tromey <tromey@redhat.com>
5125
5126 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5127 for 'old_chain'. Do not check 'head' before processing
5128 cleanups.
5129
cd82eddc
TT
51302013-05-30 Tom Tromey <tromey@redhat.com>
5131
5132 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5133 "cleanup_tuple".
5134
57cee33a
TT
51352013-05-30 Tom Tromey <tromey@redhat.com>
5136
5137 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5138 inner scope. Unconditionally call do_cleanups.
5139
795d915c
TT
51402013-05-30 Tom Tromey <tromey@redhat.com>
5141
5142 * source.c (find_and_open_source): Call do_cleanups.
5143
1fc3cf4a
TT
51442013-05-30 Tom Tromey <tromey@redhat.com>
5145
5146 * linux-thread-db.c (thread_db_load_search): Unconditionally
5147 call do_cleanups.
5148
e35ac9bf
TT
51492013-05-30 Tom Tromey <tromey@redhat.com>
5150
5151 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5152 for 'cleanup'; instead use a later one.
5153
f3300387
TT
51542013-05-30 Tom Tromey <tromey@redhat.com>
5155
5156 * python/py-breakpoint.c (bppy_get_commands): Use
5157 explicit, unconditional return.
5158 * python/py-frame.c (frapy_read_var): Likewise.
5159 * python/python.c (gdbpy_decode_line): Likewise.
5160
c27e16e3
TT
51612013-05-30 Tom Tromey <tromey@redhat.com>
5162
5163 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5164 do_cleanups on all return paths.
5165
5ae85e44
TT
51662013-05-30 Tom Tromey <tromey@redhat.com>
5167
5168 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5169
73b8d9da
TT
51702013-05-30 Tom Tromey <tromey@redhat.com>
5171
5172 * stabsread.c (read_struct_type): Call do_cleanups along
5173 all return paths.
5174
7d266584
MR
51752013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5176
5177 * mips-linux-tdep.c: Adjust formatting throughout.
5178
0f900f54
TT
51792013-05-30 Tom Tromey <tromey@redhat.com>
5180
5181 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5182 along all return paths.
5183
a991ac28
TT
51842013-05-30 Tom Tromey <tromey@redhat.com>
5185
5186 * symfile.c (find_separate_debug_file): Call do_cleanups
5187 along all return paths.
5188
1abaf042
TT
51892013-05-30 Tom Tromey <tromey@redhat.com>
5190
5191 * symtab.c (search_symbols): Introduce a null cleanup for
5192 'retval_chain'.
5193
edefe1da
TT
51942013-05-30 Tom Tromey <tromey@redhat.com>
5195
5196 * python/py-value.c (valpy_binop): Call do_cleanups before
5197 exiting loop.
5198
54f72dcc
TT
51992013-05-30 Tom Tromey <tromey@redhat.com>
5200
5201 * python/py-prettyprint.c (print_children): Remove extra
5202 do_cleanups call.
5203
af1c6971
TT
52042013-05-30 Tom Tromey <tromey@redhat.com>
5205
5206 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5207 all return paths.
5208
b862ce75
TT
52092013-05-30 Tom Tromey <tromey@redhat.com>
5210
5211 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5212 along all return paths.
5213
e12fefc8
TT
52142013-05-30 Tom Tromey <tromey@redhat.com>
5215
5216 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5217 call do_cleanups.
5218
4867f990
TT
52192013-05-30 Tom Tromey <tromey@redhat.com>
5220
5221 * varobj.c (c_value_of_root): Call do_cleanups along all
5222 return paths.
5223
4fd2d6af
TT
52242013-05-30 Tom Tromey <tromey@redhat.com>
5225
5226 * tracepoint.c (trace_dump_command): Unconditionally call
5227 do_cleanups.
5228
752eb8b4
TT
52292013-05-30 Tom Tromey <tromey@redhat.com>
5230
5231 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5232 do_cleanups earlier.
5233
e42d0aa5
TT
52342013-05-30 Tom Tromey <tromey@redhat.com>
5235
5236 * machoread.c (macho_symfile_read): Assign first cleanup to
5237 'back_to'.
5238
4bbc010a
TT
52392013-05-30 Tom Tromey <tromey@redhat.com>
5240
5241 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5242
b9635925
TT
52432013-05-30 Tom Tromey <tromey@redhat.com>
5244
5245 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5246
25f43500
TT
52472013-05-30 Tom Tromey <tromey@redhat.com>
5248
5249 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5250 call discard_cleanups.
5251 (inf_ptrace_attach): Likewise.
5252
d6a2e54a
TT
52532013-05-30 Tom Tromey <tromey@redhat.com>
5254
5255 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5256 return paths.
5257 (mips_initialize): Likewise.
5258 (common_open): Call do_cleanups.
5259
48be7c1b
TT
52602013-05-30 Tom Tromey <tromey@redhat.com>
5261
5262 * utils.c (internal_vproblem): Call do_cleanups.
5263
e61727ab
TT
52642013-05-30 Tom Tromey <tromey@redhat.com>
5265
5266 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5267
b81b921f
TT
52682013-05-30 Tom Tromey <tromey@redhat.com>
5269
5270 * cli/cli-script.c (setup_user_args): Don't return after error.
5271
fe48dfb1
TT
52722013-05-30 Tom Tromey <tromey@redhat.com>
5273
5274 * somread.c (som_symtab_read): Call do_cleanups.
5275
27833de7
TT
52762013-05-30 Tom Tromey <tromey@redhat.com>
5277
5278 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5279
5b3fca71
TT
52802013-05-30 Tom Tromey <tromey@redhat.com>
5281
5282 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5283 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5284 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5285 * source.c (show_substitute_path_command): Call do_cleanups.
5286 (unset_substitute_path_command, set_substitute_path_command):
5287 Likewise.
5288 * symfile.c (load_command): Call do_cleanups.
5289
af83e3f8
TT
52902013-05-30 Tom Tromey <tromey@redhat.com>
5291
5292 * contrib/cleanup_check.py: New file.
5293 * contrib/gcc-with-excheck: Add option parsing.
5294
564eac42
JB
52952013-05-30 Joel Brobecker <brobecker@adacore.com>
5296
5297 * windows-nat.c (windows_delete_thread): Add missing space
5298 in cast expression.
5299
47902076
HAQ
53002013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5301
5302 * inferior.c (top level): Include tilde.h.
5303 (add_inferior_command): Call tilde_expand on the value of 'exec'
5304 argument.
5305
23da373a
YQ
53062013-05-30 Pedro Alves <pedro@codesourcery.com>
5307 Yao Qi <yao@codesourcery.com>
5308
5309 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5310 Caller update.
5311 (encode_actions): Likewise.
5312 * remote.c (remote_download_tracepoint): Caller update.
5313 * tracepoint.h (encode_actions): Update declaration.
5314
a6e6f791
PA
53152013-05-30 Pedro Alves <palves@redhat.com>
5316
5317 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5318 pointer.
5319
36d25514
YQ
53202013-05-30 Yao Qi <yao@codesourcery.com>
5321
5322 * remote.c (remote_check_symbols): Remove unused parameter
5323 'objfile'.
5324 Declaration update.
5325 (remote_start_remote, remote_new_objfile): Caller update.
5326
62a813cc
YQ
53272013-05-30 Yao Qi <yao@codesourcery.com>
5328
5329 * mi/mi-cmds.c (mi_cmds): Define MI command
5330 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5331 DEF_MI_CMD_CLI.
5332
28439a30
PA
53332013-05-29 Pedro Alves <palves@redhat.com>
5334
5335 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5336 (remote_insert_watchpoint, remote_remove_watchpoint)
5337 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5338 (remote_verify_memory, compare_sections_command)
5339 (remote_search_memory): Set the general process/thread on the
5340 remote side.
5341
6ac1c082
PA
53422013-05-29 Pedro Alves <palves@redhat.com>
5343
5344 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5345 (_initialize_aarch64_tdep): Don't call
5346 initialize_tdesc_aarch64_without_fpu.
5347 * features/Makefile (WHICH): Remove reference to
5348 aarch64-without-fpu.
5349 * features/aarch64-without-fpu.c: Delete file.
5350 * regformats/aarch64-without-fpu.dat: Delete file.
5351
a73e3634
YQ
53522013-05-28 Yao Qi <yao@codesourcery.com>
5353
5354 * tracepoint.c (stringify_collection_list): Remove parameter
5355 'string'.
5356 (encode_actions): Caller update. Remove local variables.
5357
c0ea94eb
YQ
53582013-05-24 Yao Qi <yao@codesourcery.com>
5359
5360 * tracepoint.c (TFILE_PID): Remove.
5361 (tfile_open): Don't add thread and inferior.
5362 (tfile_close): Don't set 'inferior_ptid'. Don't call
5363 exit_inferior_silent.
5364 (tfile_thread_alive): Remove.
5365 (init_tfile_ops): Don't set field 'to_thread_alive' of
5366 tfile_ops.
5367
20d7f211
DE
53682013-05-23 Doug Evans <dje@google.com>
5369
5370 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5371
8658d16d
PA
53722013-05-23 Pedro Alves <palves@redhat.com>
5373
5374 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5375 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5376 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5377 Only define if HAVE_SOCKETS is defined.
5378 * configure.ac: Check for sys/socket.h.
5379 * config.in, configure: Regenerate.
5380
21aa081e
PA
53812013-05-23 Pedro Alves <palves@redhat.com>
5382
5383 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5384 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5385 printing uint32_t variables.
5386
c2d6af84
PA
53872013-05-23 Pedro Alves <palves@redhat.com>
5388
5389 * NEWS: Mention GDBserver range stepping support.
5390
c1e36e3e
PA
53912013-05-23 Yao Qi <yao@codesourcery.com>
5392 Pedro Alves <palves@redhat.com>
5393
5394 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5395 field.
5396 * infcmd.c (step_once, until_next_command): Enable range stepping.
5397 * infrun.c (displaced_step_prepare): Disable range stepping.
5398 (resume): Disable range stepping if stepping over a breakpoint or
5399 we have software watchpoints. If range stepping is enabled,
5400 assert the thread is in the stepping range.
5401 (clear_proceed_status_thread): Clear may_range_step.
5402 (handle_inferior_event): Disable range stepping as soon as we know
5403 the thread that hit the event. Re-enable it whenever we're going
5404 to step with a step range.
5405 * remote.c (struct vCont_action_support) <r>: New field.
5406 (use_range_stepping): New global.
5407 (remote_vcont_probe): Handle 'r' action.
5408 (append_resumption): Append an 'r' action if the thread may range
5409 step.
5410 (show_range_stepping): New function.
5411 (set_range_stepping): New function.
5412 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5413 'set range-stepping' and 'show range-stepping' commands.
5414 * NEWS: Mention range stepping, the new vCont;r action, and the
5415 new "set/show range-stepping" commands.
5416
d458bd84
PA
54172013-05-23 Yao Qi <yao@codesourcery.com>
5418 Pedro Alves <palves@redhat.com>
5419
5420 * remote.c (struct vCont_action_support): New struct.
5421 (struct remote_state) <support_vCont_t>: Remove field.
5422 <vCont_actions_support>: New field.
5423 (remote_vcont_probe, remote_stop_ns): Update.
5424
ce4c476a
PA
54252013-05-23 Yao Qi <yao@codesourcery.com>
5426 Pedro Alves <palves@redhat.com>
5427
5428 * gdbthread.h (pc_in_thread_step_range): New declaration.
5429 * thread.c (pc_in_thread_step_range): New function.
5430 * infrun.c (handle_inferior_event): Use it.
5431
ce70887a
JB
54322013-05-23 Joel Brobecker <brobecker@adacore.com>
5433
5434 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5435 of sprintf.
5436
55b87a52
KS
54372013-05-22 Keith Seitz <keiths@redhat.com>
5438
5439 * ada-lang.c (is_known_support_routine): Add explicit free of
5440 'func_name' from find_frame_funname.
5441 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5442 for func_name from find_frame_funname.
5443 * python/py-frame.c (frapy_name): Add explicit free of
5444 'name' from find_frame_funname.
5445 * stack.c (find_frame_funname): Add comment explaining that
5446 funcp must be freed by the caller.
5447 Return copy of symbol names instead of pointers.
5448 (print_frame): Add a cleanup for 'funname' from
5449 find_frame_funname.
5450 * stack.h (find_frame_funname): Remove "const" from
5451 'funname' parameter.
5452
5f2e6b00
TT
54532013-05-22 Tom Tromey <tromey@redhat.com>
5454
5455 PR c++/15401:
5456 * c-valprint.c (c_value_print): Use value_addr for
5457 references. Convert back to reference type with value_ref.
5458
d85c4847
EZ
54592013-05-22 Eli Zaretskii <eliz@gnu.org>
5460
5461 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5462 unloaded DLL, it will be done by handle_solib_event. See
5463 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5464 details.
5465
54eb231c
PM
54662013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5467
5468 * ui-out.c: Create typedef ui_out_level_p and define vector
5469 operations for that type.
5470 (struct ui_out): Use a vector instead of an array.
5471 (current_level): Return level from a vector.
5472 (push_level): Create a level in a vector.
5473 (pop_level): Delete a level in a vector.
5474 (ui_out_new): Create initial level zero level, and store in a
5475 vector.
5476 (ui_out_destroy): Add vector cleanup.
5477
ac90359c
PA
54782013-05-22 Pedro Alves <palves@redhat.com>
5479
5480 * python/python-internal.h (gdb_Py_DECREF): Tag with
5481 "ARI: editCase function".
5482
6dcc1893
PP
54832013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5484
5485 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5486
c8c735b9
PA
54872013-05-21 Pedro Alves <palves@redhat.com>
5488
5489 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5490 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5491 * python/py-utils.c (py_decref): Don't check for NULL before
5492 calling Py_DECREF.
5493
1915daeb
PA
54942013-05-21 Pedro Alves <palves@redhat.com>
5495
5496 * python/py-utils.c (py_decref): Remove extra braces.
5497 (gdb_pymodule_addobject): Remove extra braces.
5498 * python-internal.h (gdb_Py_DECREF): New static inline function.
5499 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5500
bd9673a4
PW
55012013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5502
5503 * breakpoints.c (detach_breakpoints): Do not
5504 detach breakpoints locations with loc_type bp_loc_other.
5505
ff6009d0
JK
55062013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5507
5508 Workaround Python 2.6.
5509 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5510 a block.
5511
3641da11
JK
55122013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5513
5514 Code cleanup: constification.
5515 * solib.c (solib_ops): Make return type and ops variable type const.
5516 (set_solib_ops): Make the new_ops parameter and ops variable const.
5517 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5518 (solib_add, solib_keep_data_in_core, clear_solib)
5519 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5520 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5521 const.
5522 * solib.h (set_solib_ops): Make the new_ops parameter const.
5523
776af39e
JB
55242013-05-21 Joel Brobecker <brobecker@adacore.com>
5525
5526 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5527 variable.
5528 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5529 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5530 (SYSTEM_GDBINIT_FILES): New variables.
5531 (all): Add stamp-system-gdbinit.
5532 (stamp-system-gdbinit): New rule.
5533 (clean-system-gdbinit, install-system-gdbinit)
5534 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5535 (install-only): Add dependency on install-system-gdbinit.
5536 (uninstall): Add dependency on uninstall-system-gdbinit.
5537 (clean): Add dependency on clean-system-gdbinit.
5538 * system-gdbinit/elinos.py: New file.
5539 * system-gdbinit/wrs-linux.py: New file.
5540
1509e573
JB
55412013-05-21 Joel Brobecker <brobecker@adacore.com>
5542
5543 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5544
c5867ab6
HZ
55452013-05-21 Hui Zhu <hui@codesourcery.com>
5546
5547 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5548 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5549 * mi/mi-cmd-break.c (ctype.h): New include.
5550 (gdb_obstack.h): New include.
5551 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5552 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5553 (mi_cmd_dprintf_insert): New.
5554 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5555 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5556
7d38e38f
TT
55572013-05-20 Tom Tromey <tromey@redhat.com>
5558
5559 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5560
97b77b39
TT
55612013-05-20 Tom Tromey <tromey@redhat.com>
5562
5563 * python/py-value.c (valpy_get_dynamic_type): Simplify
5564 dynamic_type assignment. Use Py_XINCREF.
5565
53e66479
TT
55662013-05-20 Tom Tromey <tromey@redhat.com>
5567
5568 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5569
dcf87832
TT
55702013-05-20 Tom Tromey <tromey@redhat.com>
5571
5572 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5573 (gdbpy_selected_frame): Move object-construction code
5574 out of TRY_CATCH.
5575
aa36459a
TT
55762013-05-20 Tom Tromey <tromey@redhat.com>
5577
5578 * python/py-arch.c (gdbpy_initialize_arch): Use
5579 gdb_pymodule_addobject.
5580 * python/py-block.c (gdbpy_initialize_blocks): Use
5581 gdb_pymodule_addobject.
5582 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5583 gdb_pymodule_addobject.
5584 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5585 gdb_pymodule_addobject.
5586 * python/py-event.c (gdbpy_initialize_event_generic): Use
5587 gdb_pymodule_addobject.
5588 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5589 gdb_pymodule_addobject.
5590 * python/py-evts.c (add_new_registry): Use
5591 gdb_pymodule_addobject.
5592 (gdbpy_initialize_py_events): Likewise.
5593 * python/py-finishbreakpoint.c
5594 (gdbpy_initialize_finishbreakpoints): Use
5595 gdb_pymodule_addobject.
5596 * python/py-frame.c (gdbpy_initialize_frames): Use
5597 gdb_pymodule_addobject.
5598 * python/py-function.c (gdbpy_initialize_functions): Use
5599 gdb_pymodule_addobject.
5600 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5601 gdb_pymodule_addobject.
5602 * python/py-infthread.c (gdbpy_initialize_thread): Use
5603 gdb_pymodule_addobject.
5604 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5605 gdb_pymodule_addobject.
5606 * python/py-param.c (gdbpy_initialize_parameters): Use
5607 gdb_pymodule_addobject.
5608 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5609 gdb_pymodule_addobject.
5610 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5611 gdb_pymodule_addobject.
5612 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5613 gdb_pymodule_addobject.
5614 * python/py-type.c (gdbpy_initialize_types): Use
5615 gdb_pymodule_addobject.
5616 * python/py-utils.c (gdb_pymodule_addobject): New function.
5617 * python/py-value.c (gdbpy_initialize_values): Use
5618 gdb_pymodule_addobject.
5619 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5620 * python/python.c (_initialize_python): Use
5621 gdb_pymodule_addobject.
5622
3d4a3c3e
TT
56232013-05-20 Tom Tromey <tromey@redhat.com>
5624
5625 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5626 * python/py-param.c (get_set_value, get_show_value): Use
5627 explicit decrefs.
5628 * python/python.c (start_type_printers, apply_type_printers):
5629 Use explicit decrefs.
5630
72ff8829
TT
56312013-05-20 Tom Tromey <tromey@redhat.com>
5632
5633 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5634 incref the module.
5635
02146ba5
TT
56362013-05-20 Tom Tromey <tromey@redhat.com>
5637
5638 * python/python.c (gdbpy_run_events): Decref the result
5639 of PyObject_CallObject.
5640
33ee792f
TT
56412013-05-20 Tom Tromey <tromey@redhat.com>
5642
5643 * python/py-symtab.c (set_sal): Use
5644 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5645 (symtab_and_line_to_sal_object): Update.
5646
fcb49fc8
TT
56472013-05-20 Tom Tromey <tromey@redhat.com>
5648
5649 * python/py-param.c (compute_enum_values): Decref 'item'.
5650
0646da15
TT
56512013-05-20 Tom Tromey <tromey@redhat.com>
5652
5653 * mi/mi-main.c: Include python-internal.h.
5654 (mi_cmd_list_features): Check gdb_python_initialized.
5655 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5656 (python_inferior_exit, python_new_objfile, add_thread_object)
5657 (delete_thread_object, py_free_inferior): Check
5658 gdb_python_initialized.
5659 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5660 gdb_python_initialized.
5661 * python/py-type.c (save_objfile_types): Check
5662 gdb_python_initialized.
5663 * python/python-internal.h (gdb_python_initialized): Declare.
5664 * python/python.c (ensure_python_env): Throw exception if
5665 Python not initialized.
5666 (before_prompt_hook, source_python_script_for_objfile)
5667 (start_type_printers, apply_type_printers,
5668 free_type_printers): Check gdb_python_initialized.
5669 * varobj.c (varobj_get_display_hint)
5670 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5671 (install_new_value_visualizer, varobj_set_visualizer)
5672 (value_get_print_value): Check gdb_python_initialized.
5673
999633ed
TT
56742013-05-20 Tom Tromey <tromey@redhat.com>
5675
5676 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5677 Check errors.
5678 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5679 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5680 Check errors.
5681 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5682 Check errors.
5683 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5684 Check errors.
5685 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5686 Check errors.
5687 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5688 init function to return 'int'.
5689 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5690 Return 'int'. Check errors.
5691 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5692 Check errors.
5693 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5694 Return 'int'. Check errors.
5695 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5696 Check errors.
5697 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5698 Check errors.
5699 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5700 Check errors.
5701 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5702 Check errors.
5703 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5704 Check errors.
5705 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5706 Check errors.
5707 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5708 Check errors.
5709 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5710 Check errors.
5711 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5712 Check errors.
5713 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5714 Check errors.
5715 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5716 Check errors.
5717 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5718 Check errors.
5719 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5720 Check errors.
5721 * python/python-internal.h (gdbpy_initialize_auto_load,
5722 gdbpy_initialize_values, gdbpy_initialize_frames,
5723 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5724 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5725 gdbpy_initialize_blocks, gdbpy_initialize_types,
5726 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5727 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5728 gdbpy_initialize_finishbreakpoints,
5729 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5730 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5731 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5732 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5733 gdbpy_initialize_signal_event,
5734 gdbpy_initialize_breakpoint_event,
5735 gdbpy_initialize_continue_event,
5736 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5737 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5738 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5739 * python/python.c (gdb_python_initialized): New global.
5740 (gdbpy_initialize_events): Return 'int'. Check errors.
5741 (_initialize_python): Check errors. Set
5742 gdb_python_initialized.
5743
18868860
TT
57442013-05-20 Tom Tromey <tromey@redhat.com>
5745
5746 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5747 Decref the reslut of PyObject_CallMethod.
5748
9f4ff0c2
TT
57492013-05-20 Tom Tromey <tromey@redhat.com>
5750
5751 * python/py-event.c (gdbpy_initialize_event_generic): Return
5752 early if PyType_Ready fails.
5753
0d3a2e8a
TT
57542013-05-20 Tom Tromey <tromey@redhat.com>
5755
5756 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5757 as 'default' in the switch.
5758
b86af38a
TT
57592013-05-20 Tom Tromey <tromey@redhat.com>
5760
5761 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5762 get_addr_from_python calls out of TRY_CATCH.
5763 (infpy_write_memory, infpy_search_memory): Likewise.
5764 * python/py-utils.c (get_addr_from_python): Return negative
5765 value on error. Use TRY_CATCH.
5766 * python/python-internal.h (get_addr_from_python): Use
5767 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5768
c127ec58
TT
57692013-05-20 Tom Tromey <tromey@redhat.com>
5770
5771 * python/py-event.c (evpy_emit_event): Decref the
5772 result of PyObject_CallFunctionObjArgs.
5773
ba327838
TT
57742013-05-20 Tom Tromey <tromey@redhat.com>
5775
5776 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5777 Correctly decref.
5778
d8191432
TT
57792013-05-20 Tom Tromey <tromey@redhat.com>
5780
5781 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5782
5d153bd1
TT
57832013-05-20 Tom Tromey <tromey@redhat.com>
5784
5785 * python/py-event.h (gdbpy_initialize_event_generic): Use
5786 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5787 * python/py-evts.c (add_new_registry): Use
5788 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5789 * python/python-internal.h
5790 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5791
56cc411c
TT
57922013-05-20 Tom Tromey <tromey@redhat.com>
5793
5794 * python/py-arch.c (archpy_disassemble): Update.
5795 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5796 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5797 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5798 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5799 macro.
5800 (GDB_PY_HANDLE_EXCEPTION): Update.
5801 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5802
8919e174
TT
58032013-05-20 Tom Tromey <tromey@redhat.com>
5804
5805 * python/python-internal.h (events_object_type): Remove.
5806
9b08f225
TT
58072013-05-20 Tom Tromey <tromey@redhat.com>
5808
f5aee5ee
AM
5809 * python/py-event.h (evpy_emit_event): Use
5810 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5811 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5812 New macro.
9b08f225 5813
f04010ff
TT
58142013-05-20 Tom Tromey <tromey@redhat.com>
5815
5816 * py-evtregistry.c (create_event_object): Decref
5817 eventregistry_object if PyList_New fails.
5818
3919fd96
TT
58192013-05-20 Tom Tromey <tromey@redhat.com>
5820
5821 * py-cmd.c (gdbpy_string_to_argv): Check result of
5822 PyList_New.
5823
0430e8cb
TT
58242013-05-20 Tom Tromey <tromey@redhat.com>
5825
5826 * python/python.c (before_prompt_hook): Add cleanup to
5827 decref 'hook'.
5828
764123e4
TT
58292013-05-20 Tom Tromey <tromey@redhat.com>
5830
5831 * python/py-function.c (fnpy_init): Decref result of
5832 PyObject_GetAttrString.
5833
634c58be
TT
58342013-05-20 Tom Tromey <tromey@redhat.com>
5835
5836 * python/py-threadevent.c (get_event_thread): Use
5837 CPYCHECKER_RETURNS_BORROWED_REF.
5838 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5839 New define.
5840 (pspace_to_pspace_object, objfile_to_objfile_object)
5841 (find_thread_object): Use it.
5842
62eec1a5
TT
58432013-05-20 Tom Tromey <tromey@redhat.com>
5844
5845 * python/py-arch.c (arch_object_type): Use
5846 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5847 * python/py-block.c (block_syms_iterator_object_type):
5848 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5849 * python/py-bpevent.c (breakpoint_event_object_type):
5850 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5851 * python/py-cmd.c (cmdpy_object_type): Use
5852 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5853 * python/py-continueevent.c (continue_event_object_type):
5854 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5855 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5856 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5857 * python/py-events.h (thread_event_object_type):
5858 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5859 * python/py-evtregistry.c (eventregistry_object_type): Use
5860 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5861 * python/py-exitedevent.c (exited_event_object_type):
5862 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5863 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5864 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5865 * python/py-function.c (fnpy_object_type): Use
5866 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5867 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5868 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5869 * python/py-infthread.c (thread_object_type): Use
5870 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5871 * python/py-lazy-string.c (lazy_string_object_type):
5872 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5873 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5874 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5875 * python/py-objfile.c (objfile_object_type): Use
5876 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5877 * python/py-param.c (parmpy_object_type):
5878 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5879 * python/py-progspace.c (pspace_object_type):
5880 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5881 * python/py-signalevent.c (signal_event_object_type):
5882 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5883 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5884 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5885 * python/py-type.c (type_object_type, field_object_type)
5886 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5887 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5888 define.
5889 (value_object_type, block_object_type, symbol_object_type)
5890 (event_object_type, stop_event_object_type, breakpoint_object_type)
5891 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5892
81ea8796
AT
58932013-05-20 Andreas Tobler <andreas@fgznet.ch>
5894
5895 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5896 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5897
a2ce51a0
DE
58982013-05-20 Doug Evans <dje@google.com>
5899
5900 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5901 For Fission.
5902 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5903 reading_dwo_directly.
5904 (struct signatured_type): New member dwo_unit.
5905 (struct die_reader_specs): New member comp_dir.
5906 (create_signatured_type_table_from_index): Use malloc for
5907 all_type_units instead of objfile's obstack.
5908 (create_all_type_units): Ditto.
5909 (fill_in_sig_entry_from_dwo_entry): New function.
5910 (add_type_unit): New function.
5911 (lookup_dwo_signatured_type): New function.
5912 (lookup_dwp_signatured_type): New function.
5913 (lookup_signatured_type): New arg cu. All callers updated.
5914 (init_cu_die_reader): Initialize comp_dir.
5915 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5916 Change assert of matching type signatures to call error on mismatch.
5917 (lookup_dwo_unit): Add assert.
5918 (init_tu_and_read_dwo_dies): New function.
5919 (init_cutu_and_read_dies): Call it.
5920 (build_type_unit_groups): Handle case of no type unit groups created.
5921 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5922 (lookup_dwo_cutu): Tweak complaint.
5923 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5924 (dwarf2_per_objfile_free): Free all_type_units.
5925
a25cd31f
JB
59262013-05-20 Joel Brobecker <brobecker@adacore.com>
5927
5928 * windows-nat.c (handle_unload_dll): Add missing empty line.
5929
4d804846
JB
59302013-05-20 Joel Brobecker <brobecker@adacore.com>
5931
5932 * dwarf2read.c (prototyped_function_p): New function.
5933 (read_subroutine_type): Use it.
5934
1c432e72
JB
59352013-05-20 Joel Brobecker <brobecker@adacore.com>
5936
5937 * rs6000-aix-tdep.c: De-indent some example code provided
5938 as a comment.
5939
4feebbdd
EBM
59402013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5941
5942 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5943 region is ok for a hardware watchpoint using the new ptrace interface
5944 on Power servers.
5945
7d0c9981
DE
59462013-05-17 Doug Evans <dje@google.com>
5947
5948 * NEWS: Mention new maintenance commands check-symtabs, and
5949 expand-symtabs, and renamed check-psymtabs.
5950 * psymtab.c (maintenance_check_psymtabs): Renamed from
5951 maintenance_check_symtabs. Only process already-expanded symbol
5952 tables.
5953 (_initialize_psymtab): Update.
5954 * symmisc.c (maintenance_check_symtabs): New function.
5955 (maintenance_expand_name_matcher): New function
5956 (maintenance_expand_file_matcher): New function
5957 (maintenance_expand_symtabs): New function.
5958 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5959 commands.
5960
6cbc7c3d
TT
59612013-05-17 Tom Tromey <tromey@redhat.com>
5962
5963 * python/py-inferior.c (infpy_read_memory): Don't call
5964 PyErr_SetString if PyObject_New fails.
5965 * python/py-frame.c (frame_info_to_frame_object): Don't call
5966 PyErr_SetString if PyObject_New fails.
5967
a48b32c0
L
59682013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5969
5970 * acinclude.m4: Add check for dlopen in libdl.
5971 * configure.ac: Ditto.
5972 * configure: Regenerate.
5973
3de661e6
PM
59742013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5975
5976 * frame.c (frame_stash): Convert to htab.
5977 (frame_addr_hash): New function.
5978 (frame_addr_hash_eq): New function.
5979 (frame_stash_create): Convert function to create
5980 a hash table.
5981 (frame_stash_add): Convert function to add an entry to a hash
5982 table.
5983 (frame_stash_find): Convert function to search the hash table.
5984 (frame_stash_invalidate): Convert function to empty the hash
5985 table.
5986 (get_frame_id): Only add to stash if a frame_id is created.
5987 (_initialize_frame): Call frame_stash_create.
5988
bb4168a9 59892013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5990
5991 * configure.ac: Ensure MIG is available when building for GNU Hurd
5992 hosts.
5993 * configure: Regenerate.
5994
d1be3247
JB
59952013-05-16 Joel Brobecker <brobecker@adacore.com>
5996
5997 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5998
b8fea896
JB
59992013-05-16 Joel Brobecker <brobecker@adacore.com>
6000
6001 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6002 all cleanups are done before returning from this function.
6003
af880d85
JB
60042013-05-15 Joel Brobecker <brobecker@adacore.com>
6005
6006 * utils.h: #include "exceptions.h".
6007 (enum errors): Remove partial declaration.
6008
356a5233
JB
60092013-05-15 Joel Brobecker <brobecker@adacore.com>
6010
6011 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6012 * gdbarch.h, gdbarch.c: Regenerate.
6013 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6014 handling.
6015
6016 * rs6000-aix-tdep.h: New file.
6017 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6018 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6019 "xml-utils.h".
6020 (struct field_info, struct ld_info_desc): New types.
6021 (ld_info32_desc, ld_info64_desc): New static constants.
6022 (struct ld_info): New type.
6023 (rs6000_aix_extract_ld_info): New function.
6024 (rs6000_aix_shared_library_to_xml): Likewise.
6025 (rs6000_aix_ld_info_to_xml): Likewise.
6026 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6027 (rs6000_aix_init_osabi): Add call to
6028 set_gdbarch_core_xfer_shared_libraries_aix.
6029 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6030 Remove "xml-utils.h" include.
6031 (LdInfo): Delete typedef.
6032 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6033 Delete macros.
6034 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6035 Adjust code accordingly.
6036 (rs6000_core_ldinfo): Delete, folded into
6037 rs6000_aix_core_xfer_shared_libraries_aix.
6038 (rs6000_xfer_shared_library): Delete.
6039 (rs6000_xfer_shared_libraries): Reimplement.
6040
742ce053
MM
60412013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6042
6043 * record.c (record_goto_cmdlist): New.
6044 (cmd_record_goto): Split into this ...
6045 (cmd_record_goto_begin): ... this
6046 (cmd_record_goto_end): ... and this.
6047 (_initialize_record): Change "record goto" to prefix command.
6048 Add commands for "record goto begin" and "record goto end".
6049 Add an alias for "record goto start" to "record goto begin".
6050
e93ba630
JK
60512013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6052
6053 * linespec.c (convert_linespec_to_sals): New comment for
6054 SOURCE_FILENAME assignment.
6055
5821aace
JK
60562013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6057
6058 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6059 internal_warning.
6060
a1b8c4cc
TT
60612013-05-14 Tom Tromey <tromey@redhat.com>
6062
6063 * eval.c (parse_and_eval_long): Make 'exp' const.
6064 * value.h (parse_and_eval_long): Update.
6065
23b3a2c3
TT
60662013-05-14 Tom Tromey <tromey@redhat.com>
6067
6068 * ui-file.c (gdb_fopen): Make arguments const.
6069 * ui-file.h (gdb_fopen): Make arguments const.
6070
ca623f82
TT
60712013-05-14 Tom Tromey <tromey@redhat.com>
6072
6073 * remote.c (remote_set_trace_notes): Make arguments const.
6074 * target.c (update_current_target): Update cast.
6075 * target.h (to_set_trace_notes): Make arguments const.
6076
503ebb2c
TT
60772013-05-14 Tom Tromey <tromey@redhat.com>
6078
6079 * go32-nat.c (go32_terminal_info): Make 'args' const.
6080 * inferior.h (child_terminal_info): Update.
6081 * inflow.c (child_terminal_info): Make 'args' const.
6082 * target.c (default_terminal_info): Make 'args' const.
6083 (debug_to_terminal_save_ours): Likewise.
6084 * target.h (struct target_ops) <to_terminal_info>: Make argument
6085 const.
6086
85e1311a
TT
60872013-05-13 Tom Tromey <tromey@redhat.com>
6088
6089 * gcore.c (create_gcore_bfd): Make 'filename' const.
6090 * gcore.h (create_gcore_bfd): Make 'filename' const.
6091 * record-full.c (record_full_save): Make 'recfilename' const.
6092 * target.c (target_save_record): Make 'filename' const.
6093 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6094 const.
6095 (target_save_record): Likewise.
6096
d62bfeaf
TT
60972013-05-13 Tom Tromey <tromey@redhat.com>
6098
f5aee5ee 6099 PR gdb/15338:
d62bfeaf
TT
6100 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6101 ranges section has been read.
6102
ac1ca910
TT
61032013-05-13 Tom Tromey <tromey@redhat.com>
6104
6105 PR exp/15364:
6106 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6107 STRUCTOP_PTR>: Return a not_lval value for
6108 EVAL_AVOID_SIDE_EFFECTS.
6109 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6110 for EVAL_AVOID_SIDE_EFFECTS.
6111
36d1c68c
JB
61122013-05-13 Joel Brobecker <brobecker@adacore.com>
6113
6114 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6115 floating point registers to register type before storing
6116 value.
6117 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6118 Likewise.
6119
21ff4686
TT
61202013-05-10 Joel Brobecker <brobecker@adacore.com>
6121 Tom Tromey <tromey@redhat.com>
6122
6123 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6124 New functions.
6125 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6126 Declare.
6127 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6128 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6129 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6130 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6131
d3685d60
TT
61322013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6133 Tom Tromey <tromey@redhat.com>
6134
6135 PR build/15414:
6136 * configure: Rebuild.
6137 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6138 with -Wno-format.
6139
eb9fe518
PA
61402013-05-10 Pedro Alves <palves@redhat.com>
6141
6142 * remote.c (_initialize_remote): Fix spelling of
6143 qXfer:traceframe-info:read packet in packet config command.
6144
9779ab84
PA
61452013-05-10 David Taylor <dtaylor@emc.com>
6146
6147 PR remote/15455
6148
6149 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6150 "QTro" at start of packet.
6151
060cfbef
JB
61522013-05-10 Joel Brobecker <brobecker@adacore.com>
6153
6154 * solib-aix.c (solib_aix_relocate_section_addresses):
6155 For the .bss section action, apply the same offset as
6156 the .data section.
6157
ab1c4e88
JB
61582013-05-10 Joel Brobecker <brobecker@adacore.com>
6159
6160 * solib-aix.c (solib_aix_relocate_section_addresses):
6161 Remove FIXME comment.
6162
c1357578
JB
61632013-05-10 Joel Brobecker <brobecker@adacore.com>
6164
6165 PR tdep/15420:
6166 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6167 New functions, directly copied from sparc-sol-thread.c.
6168 * sparc-sol-thread.c: Delete.
6169 * configure.ac: Remove code handling sparc-solaris-thread.c.
6170 * configure: Regenerate.
6171
1e611234
PM
61722013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6173
6174 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6175 filter logic.
6176 (backtrace_command): Add "no-filters" option parsing.
6177 (_initialize_stack): Alter help to reflect "no-filters" option.
6178 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6179 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6180 (py-frame.o): Add target
6181 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6182 filter files.
6183 * python/python.h: Add new frame filter constants, and flag enum.
6184 (apply_frame_filter): Add definition.
6185 * python/python.c (apply_frame_filter): New non-Python
6186 enabled function.
6187 * python/py-utils.c (py_xdecref): New function.
6188 (make_cleanup_py_xdecref): Ditto.
6189 * python/py-objfile.c: Declare frame_filters dictionary.
6190 (objfpy_dealloc): Add frame_filters dealloc.
6191 (objfpy_new): Initialize frame_filters attribute.
6192 (objfile_to_objfile_object): Ditto.
6193 (objfpy_get_frame_filters): New function.
6194 (objfpy_set_frame_filters): New function.
6195 * python/py-progspace.c: Declare frame_filters dictionary.
6196 (pspy_dealloc): Add frame_filters dealloc.
6197 (pspy_new): Initialize frame_filters attribute.
6198 (pspacee_to_pspace_object): Ditto.
6199 (pspy_get_frame_filters): New function.
6200 (pspy_set_frame_filters): New function.
6201 * python/py-framefilter.c: New file.
6202 * python/lib/gdb/command/frame_filters.py: New file.
6203 * python/lib/gdb/frames.py: New file.
6204 * python/lib/gdb/__init__.py: Initialize global frame_filters
6205 dictionary
6206 * python/lib/gdb/FrameDecorator.py: New file.
6207 * python/lib/gdb/FrameIterator.py: New file.
6208 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6209 * mi/mi-cmds.h: Declare.
6210 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6211 --no-frame-filter logic, and Python frame filter logic.
6212 (stack_enable_frame_filters): New function.
6213 (parse_no_frame_option): Ditto.
6214 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6215 filter logic.
6216 (mi_cmd_stack_list_locals): Ditto.
6217 (mi_cmd_stack_list_args): Ditto.
6218 (mi_cmd_stack_list_variables): Ditto.
6219 * NEWS: Add frame filter note.
6220
2cb9c859
DE
62212013-05-09 Doug Evans <dje@google.com>
6222
6bf667bb
DE
6223 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6224 All callers updated.
6225 (syms_from_objfile): Ditto. Make static.
6226 (symbol_file_add_with_addrs): Renamed from
6227 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6228 num_offsets. All callers updated.
6229 * symfile.h (syms_from_objfile): Delete.
6230
2cb9c859
DE
6231 * symfile.c (decrement_reading_symtab): Add assert.
6232 (increment_reading_symtab): Ditto.
6233
40aea477
JB
62342013-05-09 Joel Brobecker <brobecker@adacore.com>
6235
6236 * source.c (forward_search_command): Replace call to getc
6237 by call to fgetc.
6238 (reverse_search_command): Likewise.
6239
680d1742
DE
62402013-05-08 Doug Evans <dje@google.com>
6241
6242 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6243 matching test.
6244
17e760ae
JB
62452013-05-08 Joel Brobecker <brobecker@adacore.com>
6246
6247 * sol-thread.c (info_cb): Factorize the code a little.
6248
c0f5f490
JB
62492013-05-08 Joel Brobecker <brobecker@adacore.com>
6250
6251 * sol-thread.c (info_cb): Rework the output of the "maintenance
6252 info sol-threads" command a bit.
6253
5d74e061
JB
62542013-05-08 Joel Brobecker <brobecker@adacore.com>
6255
6256 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6257 Replace ti.ti_startfunc by ti.ti_pc.
6258
814a3ff7
JB
62592013-05-08 Joel Brobecker <brobecker@adacore.com>
6260
6261 * solib-aix.c (solib_aix_free_library_list): New function
6262 for the case where HAVE_LIBEXPAT is not defined.
6263
58ce7251
SDJ
62642013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6265
6266 PR breakpoints/15413:
6267 * breakpoint.c (condition_completer): Simplify the code to
6268 disconsider multiple locations of breakpoints when completing the
6269 "condition" command.
6270
be8b1ea6
PM
62712013-05-07 Pierre Muller <muller@sourceware.org>
6272
6273 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6274 instead of <sys/wait.h>.
6275
1e52bda6
PM
62762013-05-07 Pierre Muller <muller@sourceware.org>
6277
6278 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6279 trailing new line from warning message.
6280
27fd0c6b
PM
62812013-05-07 Pierre Muller <muller@sourceware.org>
6282
6283 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6284 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6285
e228ac87
JB
62862013-05-07 Joel Brobecker <brobecker@adacore.com>
6287
6288 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6289 error message (ARI fix).
6290
62912013-05-07 Joel Brobecker <brobecker@adacore.com>
6292
6293 * features/library-list-aix.dtd: Replace library-list by
6294 library-list-aix.
6295 * rs6000-nat.c: Replace library-list by library-list-aix
6296 throughout.
6297 * solib-aix.c: Likewise.
6298
62992013-05-07 Joel Brobecker <brobecker@adacore.com>
6300
6301 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6302 Renames TARGET_OBJECT_AIX_LIBRARIES.
6303 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6304 TARGET_OBJECT_LIBRARIES_AIX throughout.
6305 * solib-aix.c: Likwise.
6306
26a4dda9
YQ
63072013-05-07 Yao Qi <yao@codesourcery.com>
6308
6309 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6310 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6311
3582629f
YQ
63122013-05-07 Yao Qi <yao@codesourcery.com>
6313
6314 * solib-dsbt.c (enable_break): Declare.
6315 (dsbt_current_sos): Remove call to enable_break2.
6316 (enable_break2): Rename to enable_break. Set solib breakpoint
6317 on '_dl_debug_state'.
6318 (enable_break): Remove.
6319
aacbb8a5
LM
63202013-05-07 Luis Machado <lgustavo@codesourcery.com>
6321
6322 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6323 debug state prior to replicating existing hardware watchpoints or
6324 breakpoints.
6325
0c013353
JK
63262013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6327
6328 * gcore.c (gcore_create_callback): Ignore sections with
6329 separate_debug_objfile_backlink != NULL.
6330
a1217d97
SL
63312013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6332 Andrew Jenner <andrew@codesourcery.com>
6333 Chung-Lin Tang <cltang@codesourcery.com>
6334 Julian Brown <julian@codesourcery.com>
6335
6336 Based on the nios2-elf port from Altera Corporation.
6337
6338 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6339 nios2-linux-tdep.o.
6340 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6341 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6342 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6343 * nios2-tdep.h: New.
6344 * nios2-tdep.c: New.
6345 * nios2-linux-tdep.c: New.
6346 * features/Makefile (WHICH): Add nios2-linux.
6347 (nios2-linux-expedite): Set.
6348 * features/nios2-cpu.xml: New.
6349 * features/nios2.xml: New.
6350 * features/nios2-linux.xml: New.
6351 * features/nios2.c: New (autogenerated).
6352 * features/nios2-linux.c: New (autogenerated).
6353 * regformats/nios2-linux.dat: New (autogenerated).
6354 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6355 and commands.
6356
0892cb63
DE
63572013-05-06 Doug Evans <dje@google.com>
6358
3b7bacac
DE
6359 * symfile.c: Whitespace cleanup.
6360
0892cb63
DE
6361 * solist.h (struct target_so_ops): New member clear_so.
6362 * solib-svr4.c (svr4_clear_so): New function.
6363 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6364 * solib.c (clear_so): Renamed from free_so_symbols.
6365 All callers updated. Call target clear_so if it exists.
6366
40501e00
TT
63672013-05-06 Tom Tromey <tromey@redhat.com>
6368
6369 * ada-lang.c (ada_value_primitive_packed_val): Don't
6370 call value_incref.
6371 * value.c (set_value_parent): Incref the new parent and decref
6372 the old parent.
6373 (value_copy, value_primitive_field): Use set_value_parent.
6374
b6807d98
TT
63752013-05-06 Tom Tromey <tromey@redhat.com>
6376
6377 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6378 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6379 if needed.
6380 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6381 * dwarf2read.c (write_constant_as_bytes)
6382 (dwarf2_fetch_constant_bytes): New functions.
6383
3aef2284
TT
63842013-05-06 Tom Tromey <tromey@redhat.com>
6385
6386 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6387 parameters.
6388 (dwarf2_const_value_attr): Update.
6389
66f65e2b
TT
63902013-05-06 Tom Tromey <tromey@redhat.com>
6391
6392 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6393 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6394 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6395 Remove declaration.
6396
7919a973
TT
63972013-05-06 Tom Tromey <tromey@redhat.com>
6398
6399 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6400 objfile's obstack.
6401
a7bfba49
DE
64022013-05-06 Doug Evans <dje@google.com>
6403
3189cb12
DE
6404 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6405 * stabsread.h (process_one_symbol): Update declaration.
6406 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6407 * elfread.c (elf_symfile_relocate_probe): Ditto.
6408 * psymtab.c (relocate_psymtabs): Ditto.
6409 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6410 (objfile_relocate): Ditto.
6411 * objfiles.h (objfile_relocate): Update declaration.
6412 * symfile.c (relative_addr_info_to_section_offsets): Constify
6413 addrs parameter.
6414 (default_symfile_offsets): Ditto.
6415 (syms_from_objfile_1): Constify offsets parameter.
6416 (syms_from_objfile): Ditto.
6417 (symbol_file_add_with_addrs_or_offsets): Ditto.
6418 (symfile_map_offsets_to_segments): Constify data parameter.
6419 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6420 delta parameters of member relocate.
6421 (struct sym_probe_fns): Constify new_offsets,
6422 delta parameters of member sym_relocate_probe.
6423 (struct sym_fns): Constify section_addr_info parameter of member
6424 sym_offsets.
6425 (relative_addr_info_to_section_offsets): Update declaration.
6426 (default_symfile_offsets): Ditto.
6427 (syms_from_objfile): Ditto.
6428 (symfile_map_offsets_to_segments): Ditto.
6429
a7bfba49
DE
6430 * symfile.c (syms_from_objfile_1): Use correct section count when
6431 objfile->sf == NULL.
6432
5f8e0b8f
MF
64332013-05-06 Mike Frysinger <vapier@gentoo.org>
6434
6435 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6436
ea52d893
DE
64372013-05-06 Doug Evans <dje@google.com>
6438
6439 * psympriv.h (struct partial_symtab): Augment comment for member
6440 section_offsets.
6441
4d1eb6b4
JB
64422013-05-06 Joel Brobecker <brobecker@adacore.com>
6443
6444 Reimplement shared library support on ppc-aix...
6445 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6446 * features/library-list-aix.dtd: New file.
6447 * solib-aix.h, solib-aix.c: New file.
6448 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6449 (rs6000_find_toc_address_hook): Delete.
6450 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6451 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6452 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6453 "xml-utils.h".
6454 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6455 (vmap_symtab, fixup_breakpoints): Delete.
6456 (rs6000_xfer_shared_libraries): New function.
6457 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6458 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6459 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6460 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6461 (rs6000_xfer_shared_library): New function.
6462 (find_toc_address): Delete.
6463 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6464 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6465 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6466 before creating minimal symbol. Adjust function description
6467 accordingly.
6468 (scan_xcoff_symtab): Replace call to
6469 prim_record_minimal_symbol_and_info by call to
6470 record_minimal_symbol.
6471 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6472 around default_symfile_offsets.
6473 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6474 powerpc-aix targets.
6475 * config/rs6000/nm-rs6000.h: Delete.
6476 * config/powerpc/aix.mh (NAT_FILE): Delete.
6477 (NATDEPFILES): Remove xcoffsolib.o.
6478 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6479 (ALL_TARGET_OBS): Add solib-aix.o.
6480 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6481 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6482 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6483 * xcoffsolib.h, xcoffsolib.c: Delete.
6484
6485 * solib.c (reload_shared_libraries): Remove reference to
6486 SOLIB_CREATE_INFERIOR_HOOK.
6487 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6488 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6489 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6490 comment.
6491 * corelow.c (deprecated_core_resize_section_table): Delete.
6492 * exec.c: Remove include of xcoffsolib.h".
6493 (map_vmap, vmap): Delete.
6494 (exec_close_1): Remove references to vmap.
6495 (exec_file_attach): Remove vmap handling code, and reference
6496 to DEPRECATED_IBM6000_TARGET.
6497 (bfdsec_to_vmap): Delete.
6498 (exec_files_info): Remove block of code handling VMAP.
6499 * infcmd.c (post_create_inferior): Remove reference to
6500 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6501 * infrun.c (follow_exec): Remove reference to
6502 SOLIB_CREATE_INFERIOR_HOOK.
6503 * stack.c (print_frame): Remove reference to PC_SOLIB.
6504 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6505 (dsbt_relocate_main_executable): Likewise.
6506 * solib-frv.c (frv_current_sos): Likewise.
6507
0c4f667c
JB
65082013-05-06 Joel Brobecker <brobecker@adacore.com>
6509
6510 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6511 to target_write_memory and target_read_memory.
6512
726ce67c
JB
65132013-05-06 Joel Brobecker <brobecker@adacore.com>
6514
6515 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6516 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6517
c8c9911f
JB
65182013-05-06 Joel Brobecker <brobecker@adacore.com>
6519
6520 * darwin-nat.c: Replace all "%x" instances in format strings
6521 into "0x%x" throughout.
6522
fda184b6
JB
65232013-05-06 Joel Brobecker <brobecker@adacore.com>
6524
6525 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6526 gdb_assert by call to MACH_CHECK_ERROR.
6527 (darwin_attach_pid): Raise an error rather than a failed
6528 assertion when various system calls failed. Report a warning
6529 instead of raising a failed assertion when PREV_NOT is not NULL
6530 after call to mach_port_request_notification.
6531 (darwin_ptrace_me): Raise an error rather than a failed
6532 assertion when read returns nonzero.
6533
d1d69afb
JB
65342013-05-06 Joel Brobecker <brobecker@adacore.com>
6535
6536 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6537
dc90b24d
JK
65382013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6539
6540 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6541
faab9922
JK
65422013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6543
6544 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6545 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6546 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6547 a stale cleanup. Fix double free of NAME.
6548
e0ea48a0
EZ
65492013-05-04 Eli Zaretskii <eliz@gnu.org>
6550
6551 * windows-nat.c (windows_delete_thread): Accept an additional
6552 argument, the thread's exit code, and announce thread death when
6553 print_thread_events is non-zero and we are deleting a thread that
6554 is not the main thread.
6555 (get_windows_debug_event): Pass thread exit code to
6556 windows_delete_thread.
6557
83b2706a
KB
65582013-05-03 Kevin Buettner <kevinb@redhat.com>
6559
6560 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6561 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6562 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6563 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6564 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6565 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6566 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6567 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6568 (gdbarch_tdep): New struct.
6569 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6570 E_NUM_REGS.
6571 (v850e3v5_register_name): New function.
6572 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6573 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6574 code handling the struct return conventions for the RH850 ABI.
6575 Update all callers.
6576 (v850_eight_byte_align_p): New function.
6577 (v850_push_call_dummy): Push structs by value, not by reference
6578 for the RH850 ABI. Add support for eight byte alignment.
6579 (v850_dbtrap_breakpoint_from_pc): New function.
6580 (v850_gdbarch_init): Add ABI detection code. Register
6581 v850e3v5_register_name for the v850e3v5 architecture. Set the
6582 number of registers for v850e3v5. Register
6583 v850_dbtrap_breakpoint_from_pc as appropriate.
6584 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6585
d445b2f6
DE
65862013-05-03 Doug Evans <dje@google.com>
6587
6588 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6589 of bfd_count_sections.
6590 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6591 * symfile.c (default_symfile_offsets): Ditto.
6592 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6593 one entry, not bfd_count_sections entries.
6594
b3ce41ea
KB
65952013-05-03 Kevin Buettner <kevinb@redhat.com>
6596
6597 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6598 `save' and `restore' register groups. Don't include SPL
6599 or SPH in these groups.
6600 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6601 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6602 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6603 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6604 dwarf2_append_unwinders().
6605
96f7d3f1
PW
66062013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6607
6608 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6609 ignore SIGINT and SIGTRAP in case these internal signals are
6610 caught explicitely.
6611
b9dd1947
JB
66122013-05-01 Joel Brobecker <brobecker@adacore.com>
6613
6614 * darwin-nat.c (darwin_read_write_inferior): Change types
6615 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6616 of copy_count to "mach_msg_type_number_t".
6617 (darwin_read_dyld_info): Change type of parameter
6618 rdaddr to "gdb_byte *".
6619
4ca18a63
JB
66202013-05-01 Joel Brobecker <brobecker@adacore.com>
6621
6622 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6623 of &info->load_map from "char *" to "gdb_byte *".
6624
2b692d32
JB
66252013-05-01 Joel Brobecker <brobecker@adacore.com>
6626
6627 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6628 from "char *" to "gdb_byte *".
6629 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6630
a98c29a0
DE
66312013-04-30 Doug Evans <dje@google.com>
6632
6a506a2d
DE
6633 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6634 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6635 DWO stub. If DWO isn't found, just use stub.
6636 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6637
a98c29a0
DE
6638 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6639 calling init_cutu_and_read_dies.
6640
f92b06da
WT
66412013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6642
6643 * target-descriptions.c (maint_print_c_tdesc_cmd):
6644 Add case to parse structures as register types and
6645 bitfields.
6646
95eebdcc
WT
66472013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6648
6649 * MAINTAINERS (Write After Approval): Add myself to the list.
6650
019c1128
JB
66512013-04-30 Joel Brobecker <brobecker@adacore.com>
6652
6653 * sol-thread.c (rw_common): Change type of parameter "buf"
6654 to "gdb_byte *".
6655 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6656 rw_common to "gdb_byte *" instead of "char *".
6657
5812197c
JB
66582013-04-30 Joel Brobecker <brobecker@adacore.com>
6659
6660 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6661 of local variable msym to const struct bound_minimal_symbol.
6662 Adjust use accordingly.
6663 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6664
ecccb813
TS
66652013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6666
6667 * i386gnu-nat.c (CREG_OFFSET): New macro.
6668 (creg_offset): New array.
6669 (CREG_ADDR): Use creg_offset instead of reg_offset.
6670
f1d02dd4 66712013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6672
6673 * mep-tdep.c (mep_write_pc): Delete.
6674 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6675 Add call to set_gdbarch_pc_regnum.
6676
f1d02dd4 66772013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6678
6679 * common/filestuff.c: Replace #include <dirent.h> by
6680 #include "gdb_dirent.h".
6681
f1d02dd4 66822013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6683
6684 * common/filestuff.c: Replace #include <sys/stat.h> by
6685 #include "gdb_stat.h".
6686
b385a60d
PM
66872013-04-29 Pierre Muller <muller@sourceware.org>
6688
6689 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6690 editCase function rule.
6691 (get_DW_AT_signature_type): Likewise.
6692
d27b54ad
JB
66932013-04-29 Joel Brobecker <brobecker@adacore.com>
6694
6695 * m32r-tdep.c (m32r_write_pc): Delete.
6696 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6697 Add call to set_gdbarch_pc_regnum.
6698
47d21dc5
PM
66992013-04-29 Pierre Muller <muller@sourceware.org>
6700
6701 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6702
9056882e
JB
67032013-04-29 Joel Brobecker <brobecker@adacore.com>
6704
6705 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6706
7ee4732a
YQ
67072013-04-28 Yao Qi <yao@codesourcery.com>
6708
6709 * solib-dsbt.c (fetch_loadmap): Re-indent.
6710 (displacement_from_map, enable_break2): Likewise.
6711 (dsbt_relocate_section_addresses): Likewise.
6712
2260af53 67132013-04-26 Joel Brobecker <brobecker@adacore.com>
6714
6715 GDB 7.6 released.
6716
ff546935
TT
67172013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6718
6719 PR corefiles/14983:
6720 * dwarf2read.c (process_full_comp_unit): Always create a static
6721 block.
6722
40fb6c5e
HZ
67232013-04-25 Hui Zhu <hui@codesourcery.com>
6724
6725 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6726 to loc->cmd_bytecode.
6727
74e04d1c
DE
67282013-04-24 Doug Evans <dje@google.com>
6729
6730 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6731
3cf62c1d
KS
67322013-04-22 Keith Seitz <keiths@redhat.com>
6733
6734 * tracepoint.c (trace_save): Call the writer's start method.
6735
bf9e4d0c
MB
67362013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6737
6738 PR gdb/10462
6739 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6740 before argument.
6741
5d71132c
TT
67422013-04-23 Tom Tromey <tromey@redhat.com>
6743
6744 * common/filestuff.c: Check USE_WIN32API before including
6745 sys/socket.h.
6746 (HAVE_F_GETFD): New define.
6747 (mark_cloexec): Check HAVE_F_GETFD.
6748 (gdb_open_cloexec): Change 'mode' to unsigned long.
6749 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6750 (gdb_pipe_cloexec): Check HAVE_PIPE.
6751 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6752 long.
6753
a11cfd87
HZ
67542013-04-23 Hui Zhu <hui@codesourcery.com>
6755
6756 PR gdb/15293
a11cfd87
HZ
6757 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6758
2d9442cc
HZ
67592013-04-23 Hui Zhu <hui@codesourcery.com>
6760
6761 PR gdb/15165
2d9442cc
HZ
6762 * breakpoint.c (dprintf_print_recreate): New.
6763 (save_breakpoints): Let it not save dprintf commands.
6764 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6765
614c279d
TT
67662013-04-22 Tom Tromey <tromey@redhat.com>
6767
6768 PR gdb/7912:
6769 * Makefile.in (SFILES): Add filestuff.c
6770 (COMMON_OBS): Add filestuff.o.
6771 (filestuff.o): New target.
6772 * auto-load.c (auto_load_objfile_script_1): Use
6773 gdb_fopen_cloexec.
6774 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6775 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6776 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6777 * common/agent.c (gdb_connect_sync_socket): Use
6778 gdb_socket_cloexec.
6779 * common/filestuff.c: New file.
6780 * common/filestuff.h: New file.
6781 * common/linux-osdata.c (linux_common_core_of_thread)
6782 (command_from_pid, commandline_from_pid, print_source_lines)
6783 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6784 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6785 gdb_fopen_cloexec.
6786 * common/linux-procfs.c (linux_proc_get_int)
6787 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6788 * config.in, configure: Rebuild.
6789 * configure.ac: Don't check for sys/socket.h. Check for
6790 fdwalk, pipe2.
6791 * corelow.c (core_open): Use gdb_open_cloexec.
6792 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6793 * fork-child.c (fork_inferior): Call close_most_fds.
6794 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6795 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6796 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6797 Use gdb_fopen_cloexec.
6798 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6799 gdb_open_cloexec.
6800 (linux_async_pipe): Use gdb_pipe_cloexec.
6801 * remote-fileio.c (remote_fileio_func_open): Use
6802 gdb_open_cloexec.
6803 * remote.c (remote_file_put, remote_file_get): Use
6804 gdb_fopen_cloexec.
6805 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6806 close_most_fds.
6807 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6808 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6809 * solib.c (solib_find): Use gdb_open_cloexec.
6810 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6811 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6812 (tfile_open): Use gdb_open_cloexec.
6813 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6814 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6815 * xml-support.c (xml_fetch_content_from_file): Use
6816 gdb_fopen_cloexec.
6817 * main.c (captured_main): Call notice_open_fds.
6818
5fda2332
EBM
68192013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6820
6821 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6822 'char *' to 'gdb_byte *'.
6823 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6824 'gdb_byte'.
6825
eb6c553b
YQ
68262013-04-22 Yao Qi <yao@codesourcery.com>
6827
6828 * infrun.c: Fix typo in comment.
6829
9991b207
SDJ
68302013-04-22 Andrew Haley <aph@redhat.com>
6831
6832 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6833 instead of "long".
6834
8b4833e3
YQ
68352013-04-20 Yao Qi <yao@codesourcery.com>
6836
6837 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6838 'char *' to 'gdb_byte *'. Cast the return value of
6839 'bt_ctf_get_char_array' to 'gdb_byte *'.
6840
bd3f3b55
PA
68412013-04-19 Pedro Alves <palves@redhat.com>
6842
6843 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6844 -Wpointer-sign.
6845 * configure: Regenerate.
6846
c49e7f76
PA
68472013-04-19 Pedro Alves <palves@redhat.com>
6848
6849 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6850 'void *'.
6851
12ff8552
PA
68522013-04-19 Pedro Alves <palves@redhat.com>
6853
6854 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6855 Change type of 'myaddr' parameter to gdb_byte pointer.
6856 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6857 to 'long long' pointer instead of to 'unsigned long long'.
6858 (monitor_write_memory_block, monitor_read_memory_single)
6859 (monitor_read_memory): Change type of 'myaddr' parameter to
6860 gdb_byte pointer.
6861
9c37696b
PA
68622013-04-19 Pedro Alves <palves@redhat.com>
6863
6864 * record.c (validate_history_size): Make parameter 'setting'
6865 unsigned.
6866
a398505b
PA
68672013-04-19 Pedro Alves <palves@redhat.com>
6868
6869 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6870 to 'gdb_byte *'.
6871
9f8afa72
PA
68722013-04-19 Pedro Alves <palves@redhat.com>
6873
6874 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6875 local to int.
6876
c714b426
PA
68772013-04-19 Pedro Alves <palves@redhat.com>
6878
6879 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6880 * ada-tasks.c (read_fat_string_value): Likewise.
6881
507a579c
PA
68822013-04-19 Pedro Alves <palves@redhat.com>
6883
6884 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6885 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6886 'offset', and adjust.
6887
f9d83a0b
PA
68882013-04-19 Pedro Alves <palves@redhat.com>
6889
6890 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6891 (read_index_from_section): Add cast to 'char *'.
6892
745eb4fd
PA
68932013-04-19 Pedro Alves <palves@redhat.com>
6894
6895 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6896
db5be46f
PA
68972013-04-19 Pedro Alves <palves@redhat.com>
6898
6899 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6900
0f928d68
PA
69012013-04-19 Pedro Alves <palves@redhat.com>
6902
6903 * record-full.c (record_full_get_bookmark): Change local 'ret'
6904 type to char * and add cast to gdb_byte *.
6905 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6906 string.
6907 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6908
89f6d837
PA
69092013-04-19 Pedro Alves <palves@redhat.com>
6910
6911 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6912 * python/py-prettyprint.c (print_string_repr): Change type of
6913 'output' local to char *. Add cast to gdb_byte * in
6914 LA_PRINT_STRING call.
6915 (print_children): Change type of 'output' local to char *.
6916 * python/py-value.c (valpy_string): Add cast to const char * in
6917 PyUnicode_Decode call.
6918
ce6ec7d8
PA
69192013-04-19 Pedro Alves <palves@redhat.com>
6920
6921 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6922 and change its type to 'const char *'. Adjust.
6923 (mips_send_packet): Add cast to 'char *', and remove cast to
6924 'unsigned char *'.
6925 (mips_receive_packet): Remove cast to 'unsigned char *'.
6926 (mips_load_srec): Use bfd_byte.
6927 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6928 (pmon_checkset): Make 'value' parameter unsigned.
6929
fda0389f
PA
69302013-04-19 Pedro Alves <palves@redhat.com>
6931
6932 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6933
bc20a4af
PA
69342013-04-19 Pedro Alves <palves@redhat.com>
6935
6936 * remote.c (remote_write_bytes_aux, compare_sections_command)
6937 (remote_read_qxfer)
6938 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6939 (remote_hostio_readlink, remote_bfd_iovec_pread)
6940 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6941 binary buffer, and char when buffer is used as string.
6942 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6943 (trace_save, tfile_open, traceframe_walk_blocks)
6944 (tfile_fetch_registers): Likewise.
6945
c628b528
PA
69462013-04-19 Pedro Alves <palves@redhat.com>
6947
6948 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6949 buffer and size_t size. Adjust.
6950 * ser-base.h (ser_base_write): Adjust.
6951 * ser-go32.c (cnts): Change type to size_t.
6952 (dos_write): Change prototype -- take 'void *'
6953 buffer and size_t size. Adjust.
6954 (dos_info): Print elements of 'cnts' as unsigned long.
6955 * serial.c (serial_write): Likewise.
6956 * serial.h (serial_write): Adjust.
6957 (struct serial_ops) <write>: Change prototype -- take 'void *'
6958 buffer and size_t size. Adjust.
6959
51a5cd90
PA
69602013-04-19 Pedro Alves <palves@redhat.com>
6961
6962 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6963 gdb_byte *.
6964 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6965
a9933661
PA
69662013-04-19 Pedro Alves <palves@redhat.com>
6967
6968 * alpha-tdep.c (alpha_extract_return_value): Use
6969 regcache_cooked_read_unsigned to read 'v0'.
6970
19afdd07
PA
69712013-04-19 Pedro Alves <palves@redhat.com>
6972
6973 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6974 parameters 'at', 'as' and 'offset' to uint32_t.
6975
96b32e50
PA
69762013-04-19 Pedro Alves <palves@redhat.com>
6977
6978 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6979 'is64' to signed 'int'.
6980
eb1bd1fb
PA
69812013-04-19 Pedro Alves <palves@redhat.com>
6982
6983 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6984 parameter to int *.
6985
463920bf
PA
69862013-04-19 Pedro Alves <palves@redhat.com>
6987
6988 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6989 'insnbuf' buffer type to unsigned int[].
6990
70242eb1
PA
69912013-04-19 Pedro Alves <palves@redhat.com>
6992
6993 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6994
9d1dd0e2
PA
69952013-04-19 Pedro Alves <palves@redhat.com>
6996
6997 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6998 unsigned long *.
6999
44096aee
PA
70002013-04-19 Pedro Alves <palves@redhat.com>
7001
7002 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7003 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7004 UINT_MAX.
7005 * mips-tdep.c (heuristic_fence_post): Change type to int.
7006 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7007
e4286e57
PA
70082013-04-19 Pedro Alves <palves@redhat.com>
7009
7010 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7011 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7012 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7013
001f13d8
PA
70142013-04-19 Pedro Alves <palves@redhat.com>
7015
7016 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7017 it to get a string view of the byte buffer.
7018 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7019 type to gdb_byte *. Adjust.
7020 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7021 Change local to char *.
7022 * solib-darwin.c (find_program_interpreter): Change return type to
7023 char *. Adjust.
7024 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7025 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7026 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7027 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7028 * solib-svr4.c (find_program_interpreter): Change return type to
7029 char *. Adjust.
7030 (enable_break): Change local 'interp_name' to char *.
7031 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7032 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7033 (spu_pseudo_register_write_spu): Use char for string buffer.
7034 Adjust.
7035 (info_spu_event_command, info_spu_signal_command): Add casts to
7036 'char *'.
7037
948f8e3d
PA
70382013-04-19 Pedro Alves <palves@redhat.com>
7039
7040 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7041 gdb_byte[].
7042 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7043 * ada-lang.c (ada_value_assign): Use gdb_byte.
7044 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7045 (alphanbsd_sigtramp_offset): Use gdb_byte.
7046 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7047 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7048 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7049 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7050 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7051 * arm-tdep.c (arm_stub_unwind_sniffer)
7052 (arm_displaced_init_closure): Use gdb_byte.
7053 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7054 (arm_default_thumb_le_breakpoint)
7055 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7056 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7057 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7058 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7059 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7060 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7061 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7062 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7063 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7064 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7065 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7066 (cris_store_return_value, cris_extract_return_value): Use
7067 gdb_byte.
7068 (constraint): Change type of parameter to char * from signed
7069 char*. Use gdb_byte.
7070 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7071 of local buffer to gdb_byte *.
7072 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7073 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7074 (add_address_entry): Change type of local buffer to gdb_byte[].
7075 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7076 (frv_push_dummy_call): Use gdb_byte.
7077 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7078 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7079 (hppa_hpux_supply_save_state): Use gdb_byte.
7080 * hppa-tdep.c (hppa32_push_dummy_call)
7081 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7082 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7083 (slotN_contents, replace_slotN_contents): Change type of parameter
7084 to gdb_byte *.
7085 (fetch_instruction, ia64_pseudo_register_write)
7086 (ia64_register_to_value, ia64_value_to_register)
7087 (ia64_extract_return_value, ia64_store_return_value)
7088 (ia64_push_dummy_call): Use gdb_byte.
7089 * m32c-tdep.c (m32c_return_value): Remove cast.
7090 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7091 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7092 gdb_byte.
7093 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7094 * mn10300-tdep.c (mn10300_store_return_value)
7095 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7096 gdb_byte.
7097 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7098 (moxie_process_record): Remove casts.
7099 * ppc-ravenscar-thread.c (supply_register_at_address)
7100 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7101 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7102 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7103 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7104 * remote.c (compare_sections_command): Use gdb_byte.
7105 * score-tdep.c (score7_free_memblock): Change type of parameter to
7106 gdb_byte *.
7107 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7108 gdb_byte *. Use gdb_byte.
7109 (sh_push_dummy_call_fpu): Use gdb_byte.
7110 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7111 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7112 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7113 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7114 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7115 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7116 (sh64_store_return_value, sh64_register_convert_to_virtual):
7117 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7118 (sh64_pseudo_register_write): Use gdb_byte.
7119 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7120 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7121 buffer.
7122 (irix_current_sos): Use gdb_byte.
7123 * solib-som.c (som_current_sos): Use gdb_byte.
7124 * sparc-ravenscar-thread.c (supply_register_at_address)
7125 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7126 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7127 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7128 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7129 'gdb_byte *'.
7130 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7131 'gdb_byte *'.
7132 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7133 * xstormy16-tdep.c (xstormy16_extract_return_value)
7134 (xstormy16_store_return_value): Change parameter type to
7135 'gdb_byte *'. Adjust.
7136 (xstormy16_push_dummy_call): Use gdb_byte.
7137 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7138 (call0_analyze_prologue, execute_code): Use gdb_byte.
7139
433730c9
PA
71402013-04-19 Vladimir Kargov <kargov@gmail.com>
7141 Pedro Alves <palves@redhat.com>
7142
7143 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7144 value contents.
7145
ac9ec31b
DE
71462013-04-17 Doug Evans <dje@google.com>
7147
7148 * dwarf2read.c (struct signatured_type): New member type.
7149 (struct attribute): Replace member signatured_type with signature.
7150 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7151 (read_call_site_scope): Call follow_die_ref instead of
7152 follow_die_ref_or_sig.
7153 (read_structure_type): Rewrite handling of signatured types.
7154 (read_enumeration_type): Ditto.
7155 (read_attribute_value): Update.
7156 (build_error_marker_type): New function.
7157 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7158 Don't call error for bad types, just build an error marker type.
7159 (dump_die_shallow): Update.
7160 (follow_die_sig_1): Renamed from follow_die_sig.
7161 Don't call error for bad types, instead return NULL.
7162 (follow_die_sig): New function.
7163 (get_signatured_type, get_DW_AT_signature_type): New functions.
7164
e546e8bb
YZ
71652013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7166
7167 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7168 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7169 function.
e546e8bb 7170
ab116149
YQ
71712013-04-17 Yao Qi <yao@codesourcery.com>
7172
7173 * top.c (print_gdb_configuration): Print configure-time
7174 parameter on using libbabeltrace or not.
7175
488a42b8
PA
71762013-04-16 Pedro Alves <palves@redhat.com>
7177
7178 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7179
f5fb825b
PA
71802013-04-16 Pedro Alves <palves@redhat.com>
7181
85d494ea 7182 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7183 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7184
e1154999
PA
71852013-04-16 Pedro Alves <palves@redhat.com>
7186
7187 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7188 * common/glibc_thread_db.h: ... this new file ...
7189 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7190
e3b50a7f
PA
71912013-04-16 Will Newton <will.newton@gmail.com>
7192 Pedro Alves <palves@redhat.com>
7193
7194 PR build/11881
7195
7196 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7197 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7198 HAVE_THREAD_DB_H.
7199
1c2e4450
PA
72002013-04-16 Pedro Alves <palves@redhat.com>
7201 Eli Zaretskii <eliz@gnu.org>
7202
7203 * NEWS: Mention "set foo unlimited".
7204
4031ecc5
DE
72052013-04-15 Doug Evans <dje@google.com>
7206
19c3d4c9
DE
7207 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7208 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7209 (create_dwo_cu_reader): Renamed from
7210 create_dwo_debug_info_hash_table_reader.
7211 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7212 Remove support for multiple CUs in a DWO file.
7213 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7214
4031ecc5
DE
7215 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7216 instead of phex.
7217 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7218 (create_dwo_in_dwp): Ditto.
7219
b340913d
TT
72202013-04-15 Tom Tromey <tromey@redhat.com>
7221
7222 * NEWS: Move recent entries into "since 7.6" section.
7223
cc16e6c9
TT
72242013-04-15 Tom Tromey <tromey@redhat.com>
7225
7226 PR c++/13588:
7227 * NEWS: Update.
7228 * break-catch-throw.c (struct exception_catchpoint)
7229 <exception_rx, pattern>: New fields.
7230 (fetch_probe_arguments, dtor_exception_catchpoint)
7231 (check_status_exception_catchpoint)
7232 (print_one_detail_exception_catchpoint): New functions.
7233 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7234 Compile regular expression if needed.
7235 (extract_exception_regexp): New function.
7236 (catch_exception_command_1): Use extract_exception_regexp.
7237 (compute_exception): Use fetch_probe_arguments.
7238 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7239 and check_status fields.
7240 * cp-abi.c (cplus_typename_from_type_info): New function.
7241 * cp-abi.h (cplus_typename_from_type_info): Declare.
7242 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7243 * gdb_regex.h (compile_rx_or_error): Declare.
7244 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7245 comment.
7246 (init_gnuv3_ops): Set get_type_from_type_info field.
7247 * probe.c (compile_rx_or_error): Move...
7248 * utils.c (compile_rx_or_error): ... here.
7249
72f1fe8a
TT
72502013-04-15 Tom Tromey <tromey@redhat.com>
7251
7252 PR c++/15176:
7253 * NEWS: Update.
7254 * break-catch-throw.c (compute_exception): New function.
7255 (exception_funcs): New global.
7256 (_initialize_break_catch_throw): Create $_exception.
7257 * cp-abi.c (cplus_type_from_type_info): New function.
7258 * cp-abi.h (cplus_type_from_type_info): Declare.
7259 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7260 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7261 (gnuv3_get_type_from_type_info): New functions.
7262 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7263
fc4746a2
TT
72642013-04-15 Tom Tromey <tromey@redhat.com>
7265
7266 * break-catch-throw.c (struct exception_names): New.
7267 (exception_functions): Change type.
7268 (re_set_exception_catchpoint): Look for SDT probes.
7269
15a73f56
TT
72702013-04-15 Tom Tromey <tromey@redhat.com>
7271
7272 PR c++/10119:
7273 * break-catch-throw.c (exception_functions): New global.
7274 (gnu_v3_exception_catchpoint_ops): Move earlier.
7275 (struct exception_catchpoint): New.
7276 (classify_exception_breakpoint): Rewrite.
7277 (re_set_exception_catchpoint): New function.
7278 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7279 Allocate a struct exception_catchpoint.
7280 (catch_exception_command_1): Update.
7281 (initialize_throw_catchpoint_ops): Set 're_set' method.
7282
916703c0
TT
72832013-04-15 Tom Tromey <tromey@redhat.com>
7284
7285 * Makefile.in (SFILES): Add break-catch-throw.c
7286 (COMMON_OBS): Add break-catch-throw.o.
7287 * break-catch-throw.c: New file.
7288 * breakpoint.c: Move exception-catching code to new file.
7289 (ep_parse_optional_if_clause): No longer static.
7290 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7291
6e72ca20
TT
72922013-04-15 Tom Tromey <tromey@redhat.com>
7293
7294 PR c++/9065:
7295 * NEWS: Update.
7296 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7297 * c-exp.y (TYPEID): New token.
7298 (exp): Add new TYPEID productions.
7299 (ident_tokens): Add "typeid".
7300 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7301 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7302 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7303 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7304 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7305 case.
7306 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7307 (build_std_type_info_type, gnuv3_get_typeid_type)
7308 (gnuv3_get_typeid): New functions.
7309 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7310 new fields on ABI object.
7311 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7312 * std-operator.def (OP_TYPEID): New.
7313
715c6909
TT
73142013-04-15 Tom Tromey <tromey@redhat.com>
7315
7316 * elfread.c (elf_symtab_read): Install versioned symbol under
7317 unversioned name as well.
7318
8de20a37
TT
73192013-04-15 Tom Tromey <tromey@redhat.com>
7320
7321 PR c++/11990:
7322 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7323 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7324 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7325 (gdb_demangle): New function.
7326 * cp-support.h (gdb_demangle): Declare.
7327 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7328 (dwarf2_name): Use gdb_demangle.
7329 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7330 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7331 suffixes from name.
7332 (gnuv3_print_method_ptr): Use gdb_demangle.
7333 * jv-lang.c (java_demangle): Use gdb_demangle.
7334 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7335 * language.c (unk_lang_demangle): Use gdb_demangle.
7336 * symtab.c (symbol_find_demangled_name)
7337 (demangle_for_lookup): Use gdb_demangle.
7338
591f19e8
TT
73392013-04-15 Tom Tromey <tromey@redhat.com>
7340
7341 PR c++/12824:
7342 * NEWS: Update.
7343 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7344 New constant.
7345 (classify_exception_breakpoint): New function.
7346 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7347 (print_mention_exception_catchpoint)
7348 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7349 (catch_exception_command_1): Handle "rethrow" catchpoint.
7350 (catch_rethrow_command): New function.
7351 (_initialize_breakpoint): Add "catch rethrow" command.
7352
4d40cad2
PM
73532013-04-15 Pierre Muller <muller@sourceware.org>
7354
7355 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7356 set_gdbarch_write_pc as deprecated anymore.
7357
30bcb456
JB
73582013-04-15 Joel Brobecker <brobecker@adacore.com>
7359
7360 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7361 declarations.
7362
da9160e4
YQ
73632013-04-13 Yao Qi <yao@codesourcery.com>
7364
7365 * ctf.c (_initialize_ctf): Include "completer.h".
7366 Call add_target_with_completer instead of add_target.
7367
39ed5604
JK
73682013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7369
7370 Fix GDB regression related to PR binutils/14813.
7371 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7372 * minidebug.c (lzma_close): Add return value comment.
7373 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7374 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7375 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7376
73772013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
7378
7379 * config.in: Regenerate.
7380
d521ce57
TT
73812013-04-12 Tom Tromey <tromey@redhat.com>
7382
7383 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7384 const.
7385 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7386 (struct die_reader_specs) <buffer>: Likewise.
7387 (die_reader_func_ftype): Make 'info_ptr' const.
7388 (struct line_header) <include_dirs, statement_program_start,
7389 statement_program_end>: Now const.
7390 (struct file_entry) <name>: Likewise.
7391 (struct partial_die_info) <sibling>: Likewise.
7392 (struct dwarf_block) <data>: Likewise.
7393 (dwarf2_read_section): Remove cast.
7394 (dwarf2_get_section_info): Make 'bufp' const.
7395 (read_index_from_section): Constify.
7396 (dw2_get_file_names_reader): Make 'info_ptr' const.
7397 (dw2_get_primary_filename_reader): Likewise.
7398 (read_comp_unit_head): Make 'info_ptr' and return type const.
7399 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7400 Likewise.
7401 (read_abbrev_offset): Constify.
7402 (dwarf2_create_include_psymtab): Make 'name' const.
7403 (create_debug_types_hash_table): Update.
7404 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7405 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7406 Constify.
7407 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7408 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7409 (read_comp_units_from_section): Constify.
7410 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7411 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7412 const.
7413 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7414 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7415 (create_dwp_hash_table, dwarf2_ranges_read)
7416 (dwarf2_record_block_ranges): Constify.
7417 (read_die_and_children, read_die_and_siblings_1)
7418 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7419 const.
7420 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7421 (abbrev_table_read_table): Constify.
7422 (load_partial_dies): Make 'info_ptr' const.
7423 (read_partial_die, read_attribute_value, read_attribute): Make
7424 'info_ptr' and return type const.
7425 (read_address, read_initial_length)
7426 (read_checked_initial_length_and_offset, read_offset)
7427 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7428 const.
7429 (read_direct_string): Make 'buf' and return type const.
7430 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7431 (read_indirect_string): Make return type const.
7432 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7433 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7434 'info_ptr' const.
7435 (read_str_index): Make return type const.
7436 (add_include_dir): Make 'include_dir' const.
7437 (add_file_name): Make 'name' const.
7438 (dwarf_decode_line_header): Constify.
7439 (psymtab_include_file_name): Make return type const.
7440 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7441 (dwarf2_start_subfile): Make 'filename' const.
7442 (dwarf2_const_value_attr): Make 'bytes' const.
7443 (read_signatured_type_reader): Make 'info_ptr' const.
7444 (decode_locdesc): Constify.
7445 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7446 const.
7447 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7448 'mac_end', and return type const.
7449 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7450 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7451 type const.
7452 (per_cu_header_read_in): Constify.
7453 * symfile.h (dwarf2_get_section_info): Update.
7454
d47a1bc1
TT
74552013-04-12 Tom Tromey <tromey@redhat.com>
7456
7457 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7458
6eaaf48b
EZ
74592013-04-12 Eli Zaretskii <eliz@gnu.org>
7460
fc4c25bf 7461 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
7462 * top.c (print_gdb_configuration): New function, displays the
7463 details about GDB configure-time parameters.
7464 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
7465 * cli/cli-cmds.c (show_configuration): New function.
7466 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
7467 * main.c (captured_main) <print_configuration>: New static var.
7468 <long_options>: Use it.
7469 If --configuration was given, call print_gdb_configuration.
7470
b292c783
JK
74712013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7472 Pedro Alves <palves@redhat.com>
7473
7474 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7475 (generated_files): Add gcore.
7476 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7477 HAVE_NATIVE_GCORE_HOST.
7478 (gcore): New.
7479 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7480 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7481 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7482 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7483 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7484 Add HAVE_NATIVE_GCORE_HOST.
7485 * configure: Regenerate.
7486 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7487 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7488 AC_CONFIG_FILES for gcore.
7489 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7490 gdb_have_gcore.
7491 * gdb_gcore.sh: Rename to ...
7492 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7493 and GCORE_TRANSFORM_NAME substitutions.
7494
c96b3c4f
JK
7495 Fix parsing tabs in ${gdb_target_obs}.
7496 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7497
d6cb50a2
JK
74982013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7499
7500 * remote.c (unpush_and_perror): Add output message final dot.
7501
cf2cb5ec
YQ
75022013-04-11 Yao Qi <yao@codesourcery.com>
7503
7504 * tracepoint.c (tfile_interp_line): Fit parameters line and
7505 utpp in one line.
7506
07293be4
JB
75072013-04-10 Joel Brobecker <brobecker@adacore.com>
7508
7509 * solib.c (solib_map_sections): Remove code overwriting
7510 SO->SO_NAME with the bfd's filename.
7511
f81d1120
PA
75122013-04-10 Pedro Alves <palves@redhat.com>
7513
7514 * cli/cli-decode.c (integer_unlimited_completer): New function.
7515 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7516 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7517 completer.
7518 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7519 (is_unlimited_literal): New function.
7520 (do_set_command): Handle literal "unlimited" arguments.
7521 * frame.c (_initialize_frame) <set backtrace limit>: Document
7522 "unlimited".
7523 * printcmd.c (_initialize_printcmd) <set print
7524 max-symbolic-offset>: Add help text.
7525 * record-full.c (_initialize_record_full) <set record full
7526 insn-number-max>: Likewise.
7527 * record.c (_initialize_record) <set record
7528 instruction-history-size, set record function-call-history-size>:
7529 Add help text.
7530 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7531 help text.
7532 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7533 Likewise.
7534 * source.c (_initialize_source) <set listsize>: Add help text.
7535 * utils.c (initialize_utils) <set height, set width>: Likewise.
7536 <set pagination>: Mention "set height unlimited".
7537 * valprint.c (_initialize_valprint) <set print elements, set print
7538 repeats>: Document "unlimited".
7539
2f9d54cf
PA
75402013-04-10 Pedro Alves <palves@redhat.com>
7541
7542 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7543 instead of disconnect_tracing.
7544 * infcmd.c (detach_command, disconnect_command): Call
7545 query_if_trace_running. Adjust.
7546 * top.c: Include "tracepoint.h".
7547 (quit_target): Delete. Contents moved ...
7548 (quit_force): ... here. Wrap each stage of teardown in
7549 TRY_CATCH. Call disconnect_tracing before detaching.
7550
393fd4c3
YQ
75512013-04-10 Hui Zhu <hui@codesourcery.com>
7552 Yao Qi <yao@codesourcery.com>
7553
7554 * configure.ac: Check libbabeltrace is installed.
7555 * config.in: Regenerate.
7556 * configure: Regenerate.
7557 * Makefile.in (LIBBABELTRACE): New.
7558 (CLIBS): Add LIBBABELTRACE.
7559 * ctf.c: Include "exec.h".
7560 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7561 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7562 (ctf_save_metadata_header): Define new type aliases in
7563 metadata.
7564 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7565 in metadata. Start a new faked packet for trace status.
7566 (ctf_write_status): Write trace status to CTF.
7567 (ctf_write_uploaded_tsv): Write TSV to CTF.
7568 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7569 (ctf_write_definition_end): End the faked packet.
7570
7571 (ctx, ctf_iter, trace_dirname): New.
7572 (start_pos): New variable.
7573 (ctf_destroy, ctf_open_dir, ctf_open): New.
7574 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7575 macros.
7576 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7577 (ctf_fetch_registers, ctf_xfer_partial): New.
7578 (ctf_get_trace_state_variable_value): New.
7579 (ctf_get_tpnum_from_frame_event): New.
7580 (ctf_get_traceframe_address): New.
7581 (ctf_trace_find, ctf_has_stack): New.
7582 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7583 (ctf_get_trace_status, ctf_read_status): New.
7584 (_initialize_ctf): New.
7585 * tracepoint.c (get_tracepoint_number): New
7586 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7587 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7588 * tracepoint.h: ... here.
7589 (get_tracepoint_number): Declare it.
7590 (get_uploaded_tsv): Declare it.
7591
7592 * NEWS: Mention new configure option.
7593
5c2b4418
HZ
75942013-04-10 Pedro Alves <palves@redhat.com>
7595 Hui Zhu <hui@codesourcery.com>
7596
7597 * breakpoint.c (dprintf_re_set): New.
7598 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7599 to dprintf_re_set.
7600
a5c66735
JB
76012013-04-09 Joel Brobecker <brobecker@adacore.com>
7602
7603 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7604 Remove solib-svr4.o from the list.
7605
9e77999c
JB
76062013-04-09 Joel Brobecker <brobecker@adacore.com>
7607
7608 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7609 Use gdb_assert_not_reached instead of invalid boolean expression.
7610
1927e618
PA
76112013-04-09 Pedro Alves <palves@redhat.com>
7612
7613 * remote.c (unpush_and_perror): New function.
7614 (readchar, remote_serial_write): Use it.
7615
10782d74
MM
76162013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7617
7618 * NEWS: Mention new btrace RSP packets.
7619
4c8429ef
TT
76202013-04-08 Tom Tromey <tromey@redhat.com>
7621
7622 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7623 long.
7624
8625fc1b
TT
76252013-04-08 Tom Tromey <tromey@redhat.com>
7626
7627 * maint.c (print_bfd_section_info): Print the section index.
7628 * symmisc.c (dump_msymbols): Print the section index.
7629
e27d198c
TT
76302013-04-08 Tom Tromey <tromey@redhat.com>
7631
7632 PR symtab/8424:
7633 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7634 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7635 * breakpoint.c (resolve_sal_pc): Update.
7636 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7637 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7638 (minsym_lookup_iterator_cb): Use it.
7639 (default_read_var_value): Update.
7640 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7641 Update.
7642 * infcmd.c (jump_command): Update.
7643 * linespec.c (minsym_found): Update.
7644 * maint.c (maintenance_translate_address): Update.
7645 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7646 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7647 * parse.c (write_exp_msymbol): Update.
7648 * printcmd.c (address_info): Update.
7649 * psymtab.c (find_pc_sect_psymbol): Update.
7650 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7651 SYMBOL_OBJ_SECTION.
7652 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7653 Don't initialize SYMBOL_OBJ_SECTION.
7654 * spu-tdep.c (spu_catch_start): Update.
7655 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7656 * symmisc.c (dump_msymbols, print_symbol): Update.
7657 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7658 how fallback section is computed.
7659 (fixup_symbol_section): Update.
7660 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7661 Update.
7662 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7663 Initialize SYMBOL_SECTION.
7664 * symtab.h (struct general_symbol_info) <section>: Update comment.
7665 <obj_section>: Remove.
7666 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7667 (SYMBOL_OBJFILE): New macro.
7668
e6dc44a8
TT
76692013-04-08 Tom Tromey <tromey@redhat.com>
7670
7671 * coffread.c (record_minimal_symbol): Update.
7672 * dbxread.c (record_minimal_symbol): Update.
7673 * elfread.c (record_minimal_symbol): Update.
7674 * machoread.c (macho_symtab_add_minsym): Update.
7675 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7676 Update.
7677 * minsyms.c (prim_record_minimal_symbol): Update.
7678 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7679 argument.
7680 (prim_record_minimal_symbol_and_info): Likewise.
7681 * minsyms.h (prim_record_minimal_symbol_full)
7682 (prim_record_minimal_symbol_and_info): Update.
7683 * symtab.c (allocate_symbol, initialize_symbol)
7684 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7685 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7686 Update.
7687
36192a8d
TT
76882013-04-08 Tom Tromey <tromey@redhat.com>
7689
7690 PR symtab/8423:
7691 * solib-som.c (som_solib_section_offsets): Use BFD section
7692 indices. Set offsets for all sections.
7693 * somread.c (som_symtab_read): Compute BFD section for
7694 symbol. Use prim_record_minimal_symbol_and_info.
7695 (som_symfile_read): Fix comment.
7696 (struct find_section_offset_arg): New.
7697 (find_section_offset, set_section_index): New functions.
7698 (som_symfile_offsets): Use set_section_index to compute
7699 section indices.
7700
65cf3563
TT
77012013-04-08 Tom Tromey <tromey@redhat.com>
7702
7703 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7704 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7705 gdb_bfd_section_index.
7706 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7707 New functions.
7708 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7709 Declare.
7710 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7711 Update.
7712 * objfiles.c (add_to_objfile_sections_full): New function.
7713 (add_to_objfile_sections): Use it.
7714 (build_section_table): Rewrite.
7715 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7716 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7717 (struct objfile) <sections>: Update comment.
7718 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7719 is NULL.
7720 (ALL_OBJSECTIONS): Use it.
7721 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7722 * solib-frv.c (frv_relocate_main_executable): Update.
7723 * solib-target.c (solib_target_relocate_section_addresses):
7724 Use gdb_bfd_section_index.
7725 * symfile.c (build_section_addr_info_from_section_table):
7726 Use gdb_bfd_section_index.
7727 (build_section_addr_info_from_bfd, place_section): Likewise.
7728 * symtab.c (fixup_section): Update.
7729 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7730
7cbd4a93
TT
77312013-04-08 Tom Tromey <tromey@redhat.com>
7732
7733 * minsyms.h (struct bound_minimal_symbol): New.
7734 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7735 Remove objfile argument.
7736 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7737 Return bound_minimal_symbol.
7738 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7739 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7740 Return bound_minimal_symbol.
7741 (in_gnu_ifunc_stub): Update.
7742 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7743 Remove 'objfile_p' argument.
7744 (lookup_solib_trampoline_symbol_by_pc): Update.
7745 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7746 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7747 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7748 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7749 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7750 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7751 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7752 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7753 stack.c, symtab.c, tui/tui-disasm.c: Update.
7754
f85f34ed
TT
77552013-04-08 Tom Tromey <tromey@redhat.com>
7756
7757 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7758 Use symbol's obstack, not an objfile.
7759 * coffread.c (process_coff_symbol): Update.
7760 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7761 * jv-lang.c (add_class_symbol): Update.
7762 * mdebugread.c (new_symbol): Update.
7763 * minsyms.c (prim_record_minimal_symbol_full)
7764 (terminate_minimal_symbol_table): Update.
7765 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7766 * stabsread.c (define_symbol, read_enum_type): Update.
7767 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7768 Handle Ada specially.
7769 (symbol_set_language): Add 'obstack' argument.
7770 (symbol_set_names): Update.
7771 (symbol_natural_name, symbol_demangled_name): Always use
7772 ada_decode_symbol.
7773 * symtab.h (struct general_symbol_info)
7774 <language_specific::obstack>: New field.
7775 <ada_mangled>: New field.
7776 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7777 (symbol_set_language): Update.
7778
ccde22c0
TT
77792013-04-08 Tom Tromey <tromey@redhat.com>
7780
7781 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7782 Take an obstack, not an objfile.
7783 (symbol_set_names): Update.
7784 * symtab.h (symbol_set_demangled_name): Update.
7785
e623cf5d
TT
77862013-04-08 Tom Tromey <tromey@redhat.com>
7787
7788 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7789 allocate_symbol.
7790 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7791 (read_func_scope): Call allocate_template_symbol.
7792 (new_symbol_full): Call allocate_symbol.
7793 * jit.c (finalize_symtab): Call allocate_symbol.
7794 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7795 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7796 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7797 (common_block_end): Call allocate_symbol.
7798 * symtab.c (allocate_symbol, initialize_symbol)
7799 (allocate_template_symbol): New functions.
7800 * symtab.c (allocate_symbol, initialize_symbol)
7801 (allocate_template_symbol): Declare.
7802 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7803
f6de8ec2
PA
78042013-04-08 Pedro Alves <palves@redhat.com>
7805 Keith Seitz <keiths@redhat.com>
7806
7807 * breakpoint.c (create_breakpoint): Rename
7808 "parse_condition_and_thread" parameter to "parse_arg". Update
7809 describing comment. If !PARSE_ARG, then error out if ARG is not
7810 the empty string after extracting the location.
7811 * breakpoint.h (create_breakpoint): Rename
7812 "parse_condition_and_thread" parameter to "parse_arg".
7813
f65ce5fb
AR
78142013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7815
7816 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7817
cc5925ad
YQ
78182013-04-07 Yao Qi <yao@codesourcery.com>
7819
7820 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7821 and 'addr2' to CORE_ADDR.
7822 * target.c (update_current_target): Update.
7823 * target.h (struct target_ops) <to_trace_find>: Change parameter
7824 type to CORE_ADDR.
7825 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7826 'addr2' to CORE_ADDR.
7827 (tfile_trace_find): Likewise.
7828 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7829 Change local variable 'addr' to type CORE_ADDR.
7830 * tracepoint.h (tfind_1): Update declaration.
7831
d9ac0664
EZ
78322013-04-06 Eli Zaretskii <eliz@gnu.org>
7833
7834 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7835 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7836 Include main.h.
7837
7838 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7839 here...
7840 * main.h (windows_get_absolute_argv0): ...to here.
7841
02142a6c
DE
78422013-04-05 Doug Evans <dje@google.com>
7843
7844 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7845 (read_cutu_die_from_dwo): Add comments.
7846 (read_structure_type): Update comment.
7847 (read_enumeration_type, read_namespace_type): Update comment.
7848 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7849
43662968
JK
78502013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7851
7852 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7853 * Makefile.in (gdb.z): Remove.
7854 (install-only): Remove $(man1dir) and gdb.1 installation.
7855 * gdb.1: Remove.
7856
9ead1b84
JK
78572013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7858
7859 Fix compatibility with Linux kernel 3.8.3.
7860 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7861 to more inner block. Remove parsing of NUMBER from outer block.
7862 Parse NUMBER only if KEYWORD has been identified.
7863
d1794952
JK
78642013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7865
7866 Fix variable name shadowing.
7867 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7868 filename to mapsfilename and update its uses.
7869
9025569e
EZ
78702013-04-05 Eli Zaretskii <eliz@gnu.org>
7871
7872 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7873 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7874 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7875 details of the problem.
7876
c9a6ce02
PA
78772013-04-04 Pedro Alves <palves@redhat.com>
7878 Hui Zhu <hui@codesourcery.com>
7879
7880 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7881 tracepoint, reset its STEP_COUNT and call validate_actionline.
7882
5ff888ce
DE
78832013-04-03 Doug Evans <dje@google.com>
7884
bf6af496
DE
7885 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7886 read_die_and_siblings.
7887 (read_die_and_siblings): New function.
7888 (read_cutu_die_from_dwo): Dump die if requested.
7889 (read_die_and_children): Call read_full_die_1 and
7890 read_die_and_siblings_1.
7891 (read_full_die): Dump die if requested.
7892
7893 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7894
0ac5b59e
DE
7895 * dwarf2read.c (struct dwo_file): New member comp_dir.
7896 Rename member name to dwo_name. All uses updated.
7897 (hash_dwo_file): Include comp_dir in computation.
7898 (eq_dwo_file): Ditto.
7899 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7900 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7901
5ff888ce
DE
7902 * psymtab.c (read_psymtabs_with_fullname): Don't call
7903 psymtab_to_fullname if the basenames are different.
7904
ec83d211
JK
79052013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7906
7907 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7908 New entry about "fullname" presence.
7909
4f4352f7
PA
79102013-04-03 Pedro Alves <palves@redhat.com>
7911
7912 * NEWS: Mention x86_64/Cygwin as new native configuration.
7913
3d1d5ea3
DE
79142013-04-02 Doug Evans <dje@google.com>
7915
7916 * dwarf2read.c (read_structure_type): Fix typo in comment.
7917
be9a8770
PA
79182013-04-02 Pedro Alves <palves@redhat.com>
7919
7920 * NEWS: Mention "set/show debug aarch64", "set/show debug
7921 coff-pe-read" and "set/show debug mach-o".
7922
a46c1e42
PA
79232013-04-02 Pedro Alves <palves@redhat.com>
7924
7925 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7926
3ad18b19
EZ
79272013-04-02 Eli Zaretskii <eliz@gnu.org>
7928
7929 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7930 gdb_string.h is now in common/.
7931
e9f1758d
PA
79322013-04-02 Pedro Alves <palves@redhat.com>
7933
7934 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7935 under "New options".
7936
049dc89b
JK
79372013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7938
7939 Revert this patch:
7940 PR gdb/15275
7941 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7942
c33e31fd
PA
79432013-04-02 Pedro Alves <palves@redhat.com>
7944
7945 PR gdb/15275
7946
7947 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7948 (remote_serial_write): New function.
7949 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7950
ea5f3910
JW
79512013-04-01 Jiong Wang <jiwang@tilera.com>
7952
7953 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7954 "New targets" sections.
ea5f3910 7955
5c6fa7ab
DE
79562013-04-01 Doug Evans <dje@google.com>
7957
c0f78cd4
DE
7958 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7959 (process_enumeration_scope): Simplify.
7960
0186c6a7
DE
7961 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7962 type_unit_group ...
7963 (struct signatured_type): ... to here.
7964 (sig_type_ptr): New typedef.
7965 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7966 out of union 't'. All uses updated.
7967 (dw2_get_file_names_reader): Assert not called for a type unit.
7968 (dw2_get_file_names): Assert not called for a type unit or type
7969 unit group.
7970 (build_type_psymtabs_reader): Assert called for a type unit.
7971 (build_type_psymtab_dependencies): Assert called for a type unit group.
7972
5c6fa7ab
DE
7973 * dwarf2read.c (free_dwo_file): Add comment.
7974 (dwarf2_per_objfile_free): Unref dwp bfd.
7975
b3c0ad67 79762013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7977
7978 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7979 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7980 (read_pe_exported_syms): Remove unused 'exportix'.
7981 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7982 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7983 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7984
e2df1547
AR
79852013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7986
7987 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7988 (print_it_watchpoint): Remove unused 'bl'.
7989 (say_where): Remove unused 'uiout'.
7990 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7991 (bkpt_breakpoint_hit): Remove unused 'b'.
7992 (internal_bkpt_print_it): Remove unused 'uiout'.
7993 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7994
d81e75c0
TD
79952013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7996
7997 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7998 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7999
5a8b3f62
DE
80002013-03-29 Doug Evans <dje@google.com>
8001
ab5088bf
DE
8002 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8003 Delete arg is_dwp. All callers updated.
8004 (open_dwp_file): New function.
8005 (open_and_init_dwp_file): Call it.
8006 (get_dwp_file): New function.
8007 (lookup_dwo_cutu): Call it.
8008
a8ad1e57
DE
8009 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8010 unnecessary, cleanup.
8011
6296d8c1
DE
8012 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8013
b0c7bfa9
DE
8014 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8015 (lookup_dwo_unit): New function.
8016 (init_cutu_and_read_dies): Move DWO handling to new functions.
8017
c88ee1f0
DE
8018 * dwarf2read.c (struct signatured_type): Tweak comment.
8019 (struct dwo_unit): Tweak comment.
8020 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8021 (create_dwo_debug_info_hash_table): Tweak comment.
8022 (dwarf2_per_cu_offset_and_type): Tweak comment.
8023
5a8b3f62
DE
8024 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8025 missing .debug_types section.
8026
9852c492
YQ
80272013-03-29 Yao Qi <yao@codesourcery.com>
8028
8029 * corelow.c: Include "completer.h".
8030 (_initialize_corelow): Call add_target_with_completer with
8031 argument 'filename_completer'.
8032 * tracepoint.c: Likewise.
8033 * exec.c (_initialize_exec): Likewise.
8034 * target.c (add_target): Rename to ...
8035 (add_target_with_completer): ... this. Call set_cmd_completer
8036 if parameter completer is not NULL.
8037 (add_target): New.
8038 * target.h: Include "command.h".
8039 (add_target_with_completer): Declare it.
8040
af312be7
JB
80412013-03-28 Joel Brobecker <brobecker@adacore.com>
8042
8043 * coffread.c (is_import_fixup_symbol): New function.
8044 (record_minimal_symbol): Use is_import_fixup_symbol to
8045 detect import fixup symbols, and discard them.
8046
8a0459fd
DE
80472013-03-28 Doug Evans <dje@google.com>
8048
0349ea22
DE
8049 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8050 types hash table until we know we need it.
8051
f652bce2
DE
8052 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8053 index numbers.
8054
e4a48d9d
DE
8055 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8056 All callers updated.
8057 (dw2_print_stats): Print #read CUs too.
8058 (dump_die_shallow): Print signatured types better.
8059
8a0459fd
DE
8060 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8061 info_or_types_section to section. All uses updated.
8062 (struct dwo_unit): Ditto.
8063
bd3eecc3
PA
80642013-03-28 Pedro Alves <palves@redhat.com>
8065
8066 * NEWS (New options): New section.
8067 (New options): Mention set/show remote trace-status-packet.
8068 * remote.c (PACKET_qTStatus): New enumeration value.
8069 (remote_get_trace_status): Skip sending qTStatus if the packet is
8070 disabled. Use packet_ok.
8071 (_initialize_remote): Register a configuration command for
8072 qTStatus packet.
8073
41245087
DE
80742013-03-28 Doug Evans <dje@google.com>
8075
7edbb660
DE
8076 * symfile.c (find_separate_debug_file): Add comment.
8077 (terminate_after_last_dir_separator): Tweak comment.
8078
0018ea6f
DE
8079 * dwarf2read.c (create_partial_symtab): Add forward decl.
8080 (create_partial_symtab): Move to be closer to other psymtab functions.
8081 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8082
ca69b9e6
DE
8083 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8084 (compute_symtab_includes): Remove unnecessary forward declaration.
8085 (die_needs_namespace): Add comment marking group of functions for
8086 dwarf2 name computation.
8087
a9375afe
DE
8088 * typeprint.c (_initialize_typeprint): Improve type help text.
8089
41245087
DE
8090 * python/python.c (finish_python_initialization): Provide suggestion
8091 for how to tell gdb to find its python files.
8092
7f7cc265
PA
80932013-03-28 Pedro Alves <palves@redhat.com>
8094
8095 PR gdb/15294
8096
8097 * source.c (_initialize_source): Change back "set listsize" to an
8098 integer command.
8099
ec21308c
JK
81002013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8101
8102 PR gdb/15275
8103 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8104
840a9a1f
PA
81052013-03-27 Pedro Alves <palves@redhat.com>
8106
8107 * top.c (history_size): Rename to ...
8108 (history_size_setshow_var): ... this. Add comment.
8109 (show_commands): Use readline's 'history_length' instead of
8110 computing the history length by calling history_get in a loop.
8111 (set_history_size_command): Error out for sizes over INT_MAX.
8112 Restore previous history size on invalid size.
8113 (init_history): If HISTSIZE is negative, leave the history size as
8114 zero. Add comments.
8115 (init_main): Adjust.
8116
826ecc4d
PA
81172013-03-27 Pedro Alves <palves@redhat.com>
8118
8119 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8120 coff_pe_read" command to "set debug coff-pe-read".
8121
0ccfeeae
MM
81222013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8123
8124 * record.c (command_size_to_target_size): Fix size comparison.
8125 Change parameter type from pointer to integer to integer.
8126 Update all users.
8127
40653b35
PM
81282013-03-27 Pierre Muller <muller@sourceware.org>
8129
8130 * windows-nat.c (handle_output_debug_string): Avoid typecast
8131 from integer of different size warning.
8132
c62fa0e2
JB
81332013-03-26 Joel Brobecker <brobecker@adacore.com>
8134
8135 * windows-nat.c (handle_output_debug_string): Add empty line
8136 after local block variable definition.
8137
2c619be2
PA
81382013-03-26 Pedro Alves <palves@redhat.com>
8139
8140 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8141 (net_open): Make 'polls' local unsigned.
8142
1b493192
PA
81432013-03-26 Pedro Alves <palves@redhat.com>
8144
8145 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8146 a zuinteger command instead of uinteger.
8147
7ee70bf5
PA
81482013-03-26 Pedro Alves <palves@redhat.com>
8149
8150 * record-full.c (record_full_insn_num): Make it unsigned.
8151 (record_full_check_insn_num, record_full_message)
8152 (record_full_registers_change, record_full_xfer_partial): Remove
8153 record_full_insn_max_num check (it's always != 0).
8154 (record_full_info, record_full_restore): Use %u as format string.
8155 (): Use %u as format string.
8156 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8157 check (it's always != 0).
8158
dfd1f9bb
PA
81592013-03-26 Pedro Alves <palves@redhat.com>
8160
8161 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8162 and "set dcache size" commands zuinteger instead of uinteger.
8163
addb4faf
PA
81642013-03-26 Pedro Alves <palves@redhat.com>
8165
8166 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8167 command zuinteger instead of uinteger.
8168
b75bf488
PA
81692013-03-26 Pedro Alves <palves@redhat.com>
8170
8171 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8172 zuinteger instead of uinteger.
8173
42c634cb
PA
81742013-03-26 Pedro Alves <palves@redhat.com>
8175
8176 * record.c (record_insn_history_size_setshow_var)
8177 (record_call_history_size_setshow_var): New globals.
8178 (command_size_to_target_size): New function.
8179 (cmd_record_insn_history, cmd_record_call_history): Use
8180 command_size_to_target_size instead of cast.
8181 (validate_history_size, set_record_insn_history_size)
8182 (set_record_call_history_size): New functions.
8183 (_initialize_record): Install set_record_insn_history_size and
8184 set_record_call_history_size as "set" hooks of "set record
8185 instruction-history-size" and "set record
8186 function-call-history-size".
8187
1fb2e2b5
PA
81882013-03-26 Pedro Alves <palves@redhat.com>
8189
8190 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8191 use with history_max_entries use. Remove FIXME note.
8192
99c819ee
MM
81932013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8194
8195 * record-btrace.c (record_btrace_close): Call
8196 record_btrace_auto_disable.
8197
9f9e404c
JB
81982013-03-25 Joel Brobecker <brobecker@adacore.com>
8199
8200 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8201
ebcdfe33
DE
82022013-03-25 Doug Evans <dje@google.com>
8203
8204 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8205
24955f63
TT
82062013-03-25 Tom Tromey <tromey@redhat.com>
8207
8208 PR symtab/11462:
8209 * c-exp.y (exp): Add new productions for destructors after '.' and
8210 '->'.
8211 (write_destructor_name): New function.
8212
fce632b6
TT
82132013-03-25 Tom Tromey <tromey@redhat.com>
8214
8215 PR c++/9197:
8216 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8217 value_struct_elt, not lookup_struct_elt_type.
8218 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8219 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8220 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8221
a4341769
YQ
82222013-03-25 Yao Qi <yao@codesourcery.com>
8223
8224 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8225 instead of '_mkdir'.
8226
b5981e5a
EZ
82272013-03-23 Eli Zaretskii <eliz@gnu.org>
8228
8229 * windows-nat.c (windows_get_absolute_argv0): New function.
8230 * windows-nat.h: Add its prototype.
8231
8232 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8233 Use IS_DIR_SEPARATOR instead of looking for a character inside
8234 SLASH_STRING. Include filenames.h.
8235 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8236 relocate_gdb_directory works when passed gdb_program_name.
8237 Include windows-nat.h.
8238
598d3636
JK
82392013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8240
8241 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8242 * remote.c (trace_error): Remove the special handling of '2'.
8243 (readchar) <SERIAL_EOF>
8244 (readchar) <SERIAL_ERROR>
8245 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8246 (remote_get_trace_status): Call throw_exception if EX is
8247 TARGET_CLOSE_ERROR.
8248 * utils.c (perror_with_name): Rename to ...
8249 (throw_perror_with_name): ... here. New parameter errcode, describe it
8250 in the function comment.
8251 (perror_with_name): New function wrapper.
8252 * utils.h (enum errors): New stub declaration.
8253 (throw_perror_with_name): New declaration.
8254
82b821e9
PA
82552013-03-22 Pedro Alves <palves@redhat.com>
8256 Yao Qi <yao@codesourcery.com>
8257 Mark Kettenis <kettenis@gnu.org>
8258
8259 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8260 Don't let the user set the value to UINT_MAX directly.
8261 <var_integer>: Don't let the user set the value to INT_MAX
8262 directly.
8263
78a095c3
JK
82642013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8265
8266 * remote.c (remote_unpush_target): New function.
8267 (remote_open_1): Remove two pop_target calls, update one comment, add
8268 comment to target_preopen call. Replace pop_target call by
8269 remote_unpush_target call.
8270 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8271 pop_target calls by remote_unpush_target calls.
8272
3e74e146
PA
82732013-03-22 Pedro Alves <palves@redhat.com>
8274
8275 * linux-nat.c (linux_child_follow_fork): Don't call
8276 linux_enable_event_reporting.
8277 (linux_handle_extended_wait): Don't call
8278 linux_enable_event_reporting.
8279
a2213dca
PA
82802013-03-22 Pedro Alves <palves@redhat.com>
8281
8282 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8283 use it to rewrite the trampoline buffers with type gdb_byte[], and
8284 undefine the macro. Remove char* cast.
8285
bd712aed
DE
82862013-03-21 Doug Evans <dje@google.com>
8287
8288 New commands "mt set per-command {space,time,symtab} {on,off}".
8289 * NEWS: Add entry.
8290 * event-top.c: #include "maint.h".
8291 * main.c: #include "maint.h".
8292 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8293 timeval-utils.h, maint.h, cli/cli-setshow.h.
8294 (per_command_time, per_command_space): New static globals.
8295 (per_command_symtab): New static global.
8296 (per_command_setlist, per_command_showlist): New static globals.
8297 (struct cmd_stats): Move here from utils.c.
8298 (set_per_command_time): Renamed from set_display_time in utils.c
8299 and moved here. All callers updated.
8300 (set_per_command_space): Renamed from set_display_space in utils.c
8301 and moved here. All callers updated.
8302 (count_symtabs_and_blocks): New function.
8303 (report_command_stats): Moved here from utils.c. Add support for
8304 printing symtab stats. Only print data if enabled before command
8305 executed.
8306 (make_command_stats_cleanup): Ditto.
8307 (sert_per_command_cmd, show_per_command_cmd): New functions.
8308 (_initialize_maint_cmds): Add new commands
8309 mt set per-command {space,time,symtab} {on,off}.
8310 * maint.h: New file.
8311 * top.c: #include "maint.h".
8312 * utils.c (reset_prompt_for_continue_wait_time): New function.
8313 (get_prompt_for_continue_wait_time): New function.
8314 * utils.h (reset_prompt_for_continue_wait_time): Declare
8315 (get_prompt_for_continue_wait_time): Declare.
8316 (make_command_stats_cleanup): Moved to maint.h.
8317 (set_display_time, set_display_space): Moved to maint.h and renamed
8318 to set_per_command_time, set_per_command_space.
8319 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8320 parse_binary_operation and made non-static. Don't call error,
8321 just return an error marker. All callers updated.
8322 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8323
d76488d8
TT
83242013-03-21 Tom Tromey <tromey@redhat.com>
8325
8326 * symfile.c (alloc_section_addr_info): Update header. Don't set
8327 'num_sections' field.
8328 (build_section_addr_info_from_section_table): Set 'num_sections'.
8329 (build_section_addr_info_from_bfd): Likewise.
8330 (build_section_addr_info_from_objfile): Remove dead loop
8331 condition.
8332 (free_section_addr_info): Unconditionally call xfree.
8333 (relative_addr_info_to_section_offsets, addrs_section_sort)
8334 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8335 condition.
8336 (syms_from_objfile_1): Remove dead 'if' condition. Check
8337 'num_sections'.
8338 (add_symbol_file_command): Set 'num_sections'.
8339 * symfile-mem.c (symbol_file_add_from_memory): Set
8340 'num_sections'.
8341 * somread.c (som_symfile_offsets): Remove dead loop condition.
8342 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8343 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8344
a72e5169 83452013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
8346
8347 * tracepoint.h (decode_agent_options): Add 'trace_string'
8348 argument.
8349 * tracepoint.c (decode_agent_options): Add 'trace_string'
8350 argument.
8351 (validate_actionline): Update.
8352 (collect_symbol): Add 'trace_string' argument.
8353 (struct add_local_symbols_data) <trace_string>: New field.
8354 (do_collect_symbol): Update.
8355 (add_local_symbols): Add 'trace_string' argument.
8356 (encode_actions_1): Update.
8357 (trace_dump_actions): Update.
8358 * dwarf2loc.c (access_memory): Update.
8359 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8360 * ax-general.c (new_agent_expr): Update.
8361 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8362 (gen_trace_for_return_address): Add argument.
8363 (trace_kludge, trace_string_kludge): Remove.
8364 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8365 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8366 (gen_trace_for_var): Add 'trace_string' argument.
8367 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8368 (gen_printf, agent_eval_command_one): Update.
8369
b2f83c08
TT
83702013-03-21 Tom Tromey <tromey@redhat.com>
8371
8372 PR exp/15109:
8373 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8374 Handle FILENAME token.
8375
9507860e
TT
83762013-03-21 Tom Tromey <tromey@redhat.com>
8377
8378 * c-exp.y (YYPRINT): Define.
8379 (c_print_token): New function.
8380
e403aa4b
TT
83812013-03-21 Tom Tromey <tromey@redhat.com>
8382
8383 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8384
af307d6a
YQ
83852013-03-21 Yao Qi <yao@codesourcery.com>
8386
8387 * ctf.c: Include "gdb_stat.h".
8388 [USE_WIN32API]: New macro 'mkdir'.
8389 (ctf_start): Use permission bits macros if they are defined.
8390
fb81d016
KS
83912013-03-20 Keith Seitz <keiths@redhat.com>
8392
8393 * breakpoint.h (struct breakpoint): Add comment to
8394 extra_string indicating that this member is mallod'd.
8395 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8396
ef0026f0
PA
83972013-03-20 Pedro Alves <palves@redhat.com>
8398
8399 PR gdb/15289
8400
8401 * cli/cli-setshow.c (do_set_command)
8402 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8403 the result of parsing the command argument. Throw error if the
8404 value is greater than UINT_MAX. Print the invalid value with
8405 plongest.
8406 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8407 result of parsing the command argument. Throw error if the value
8408 is greater than INT_MAX, not greater or equal. Also throw error
8409 if the value is less than INT_MIN. Print the invalid value with
8410 plongest.
8411 <var_zuinteger_unlimited>: Throw error if the value is greater
8412 than INT_MAX, not greater or equal.
8413 (do_show_command) <var_integer, var_zinteger,
8414 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8415
24d6c2a0
TT
84162013-03-20 Tom Tromey <tromey@redhat.com>
8417
8418 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8419 if possible.
8420 * dwarf2read.c (read_func_scope): Remove old FIXME.
8421 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8422 not LOC_COMPUTED.
8423 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8424 Unconditionally call via computed ops, if possible.
8425 * printcmd.c (address_info): Unconditionally call via computed ops,
8426 if possible.
8427 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8428 if possible.
8429 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8430 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8431 if possible.
8432
f1e6e072
TT
84332013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8434 Tom Tromey <tromey@redhat.com>
8435
8436 PR symtab/8421:
8437 * coffread.c (coff_register_index): New global.
8438 (process_coff_symbol, coff_read_enum_type): Set
8439 SYMBOL_ACLASS_INDEX.
8440 (_initialize_coffread): Initialize new global.
8441 * dwarf2loc.c (locexpr_find_frame_base_location)
8442 (dwarf2_block_frame_base_locexpr_funcs)
8443 (loclist_find_frame_base_location)
8444 (dwarf2_block_frame_base_loclist_funcs): New.
8445 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8446 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8447 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8448 (dwarf2_block_frame_base_loclist_funcs): New.
8449 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8450 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8451 globals.
8452 (read_func_scope): Update.
8453 (fixup_go_packaging, mark_common_block_symbol_computed)
8454 (var_decode_location, new_symbol_full, dwarf2_const_value):
8455 Set SYMBOL_ACLASS_INDEX.
8456 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8457 (_initialize_dwarf2_read): Initialize new globals.
8458 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8459 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8460 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8461 globals.
8462 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8463 (_initialize_mdebugread): Initialize new globals.
8464 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8465 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8466 (stab_register_index, stab_regparm_index): New globals.
8467 (define_symbol, read_enum_type, common_block_end): Set
8468 SYMBOL_ACLASS_INDEX.
8469 (_initialize_stabsread): Initialize new globals.
8470 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8471 globals.
8472 (MAX_SYMBOL_IMPLS): New define.
8473 (register_symbol_computed_impl, register_symbol_block_impl)
8474 (register_symbol_register_impl)
8475 (initialize_ordinary_address_classes): New functions.
8476 (_initialize_symtab): Call initialize_ordinary_address_classes.
8477 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8478 (struct symbol_impl): New.
8479 (SYMBOL_ACLASS_BITS): New define.
8480 (struct symbol) <aclass, ops>: Remove fields.
8481 <aclass_index>: New field.
8482 (symbol_impls): Declare.
8483 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8484 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8485 (register_symbol_computed_impl, register_symbol_block_impl)
8486 (register_symbol_register_impl): Declare.
8487 (struct symbol_computed_ops): Add location_has_loclist.
8488 (struct symbol_block_ops): New.
8489 (SYMBOL_BLOCK_OPS): New.
8490 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8491
dbccfd4c
TT
84922013-03-20 Tom Tromey <tromey@redhat.com>
8493
8494 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8495 (print_partial_symbols, recursively_search_psymtabs): Use
8496 PSYMBOL_CLASS.
8497
e3f1ad4f
PM
84982013-03-20 Pierre Muller <muller@sourceware.org>
8499
8500 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8501 addtion, subtraction, multiplication and division binary operator.
8502
460014f5
JK
85032013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8504
8505 Code cleanup.
8506 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8507 * bsd-kvm.c (bsd_kvm_close): Likewise.
8508 * bsd-uthread.c (bsd_uthread_close): Likewise.
8509 * corelow.c (core_close): Likewise.
8510 (core_close_cleanup): Remove parameter quitting from a caller.
8511 * event-top.c (async_disconnect): Likewise.
8512 * exec.c (exec_close_1): Remove parameter quitting.
8513 * go32-nat.c (go32_close): Likewise.
8514 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8515 parameter quitting from a caller.
8516 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8517 variable.
8518 (mips_linux_close): Remove parameter quitting. Remove parameter
8519 quitting from a caller.
8520 * monitor.c (monitor_close): Remove parameter quitting.
8521 * monitor.h (monitor_close): Likewise.
8522 * record-btrace.c (record_btrace_close): Likewise.
8523 * record-full.c (record_full_close): Likewise.
8524 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8525 it also from fprintf_unfiltered.
8526 * remote-mips.c (mips_close): Remove parameter quitting.
8527 (mips_detach): Remove parameter quitting from a caller.
8528 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8529 (gdbsim_close): Remove duplicate function comment. Remove parameter
8530 quitting and remove it also from printf_filtered.
8531 * remote.c (remote_close): Remove parameter quitting.
8532 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8533 * target.c (update_current_target): Remove parameter int from to_close
8534 de_fault.
8535 (push_target, unpush_target, pop_target): Remove parameter quitting from
8536 a caller.
8537 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8538 Remove parameter quitting from a caller.
8539 (target_preopen): Remove parameter quitting from a caller.
8540 (target_close): Remove parameter quitting. Remove parameter quitting
8541 from a caller two times. Remove parameter quitting also from
8542 fprintf_unfiltered.
8543 * target.h (struct target_ops): Remove parameter quitting and as int
8544 from fields to_xclose and to_close.
8545 (extern struct target_ops current_target):
8546 (target_close, pop_all_targets): Remove parameter quitting. Update the
8547 comment.
8548 (pop_all_targets_above): Remove parameter quitting.
8549 * top.c (quit_target): Remove parameter quitting from a caller.
8550 * tracepoint.c (tfile_close): Remove parameter quitting.
8551 * windows-nat.c (windows_close): Remove parameter quitting.
8552
35a7120b
CV
85532013-03-20 Corinna Vinschen <vinschen@redhat.com>
8554
8555 * windows-nat.c (handle_output_debug_string): Replace call
8556 to string_to_core_addr with call to strtoull.
8557
8249a5a9
YQ
85582013-03-20 Yao Qi <yao@codesourcery.com>
8559
8560 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8561 and write it to CTF metadata.
8562
2c15ef43
CV
85632013-03-19 Corinna Vinschen <vinschen@redhat.com>
8564
8565 * windows-nat.c (handle_output_debug_string): Change type of n to
8566 SIZE_T to avoid crash on 64 bit systems.
8567
1cdd3232
EZ
85682013-03-17 Eli Zaretskii <eliz@gnu.org>
8569
8570 * python/python-internal.h (HAVE_SNPRINTF)
8571 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8572 about redefinition of snprintf by pyerrors.h.
8573
3cb2ab1a
SE
85742013-03-15 Steve Ellcey <sellcey@mips.com>
8575
8576 * remote-sim.c (sim_command_completer): Make char arguments const.
8577
9ce98649
TT
85782013-03-15 Tom Tromey <tromey@redhat.com>
8579
8580 PR c++/15116:
8581 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8582
dccee2de
TT
85832013-03-14 Tom Tromey <tromey@redhat.com>
8584
8585 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8586 New fields.
8587 (get_file_crc): Move from symfile.c.
8588 (gdb_bfd_crc): New function.
8589 * gdb_bfd.h (gdb_bfd_crc): Declare.
8590 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8591 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8592 (separate_debug_file_exists): Use gdb_bfd_crc.
8593
cc0ea93c
TT
85942013-03-14 Tom Tromey <tromey@redhat.com>
8595
8596 * symfile.c (get_debug_link_info): Remove.
8597 (find_separate_debug_file_by_debuglink): Use
8598 bfd_get_debug_link_info.
8599
08c23b0d
TT
86002013-03-14 Tom Tromey <tromey@redhat.com>
8601
8602 * symtab.c (error_in_psymtab_expansion): New function.
8603 (lookup_symbol_aux_quick)
8604 (basic_lookup_transparent_type_quick): Remove "last resort"
8605 code. Use error_in_psymtab_expansion.
8606
288e77a7
JK
86072013-03-14 Doug Evans <dje@google.com>
8608 Jan Kratochvil <jan.kratochvil@redhat.com>
8609
8610 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8611 any successful compare_filenames_for_search or FILENAME_CMP.
8612 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8613 * symtab.c (iterate_over_some_symtabs): Likewise.
8614
8f1b8b82
JK
86152013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8616
8617 * source.c (print_source_lines_base): Make a local copy of
8618 symtab_to_fullname.
8619
23eb71e4
JK
86202013-03-14 Hui Zhu <hui_zhu@mentor.com>
8621 Jan Kratochvil <jan.kratochvil@redhat.com>
8622
8623 * source.c (print_source_lines_base): Suppress "file" for TUI.
8624
bb869963
SDJ
86252013-03-14 Keith Seitz <keiths@redhat.com>
8626 Alan Matsuoka <alanm@redhat.com>
8627
8628 PR c++/15203
8629 PR c++/15210
8630 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8631 TYPE_CODE_METHOD.
8632 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8633 symbols.
8634
d6682f9e
YQ
86352013-03-14 Yao Qi <yao@codesourcery.com>
8636
8637 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8638 status to tfile if trace is stopped by command 'tstop'.
8639
a22fa6e4
YQ
86402013-03-14 Yao Qi <yao@codesourcery.com>
8641
8642 * tracepoint.c (tfile_write_status): Write trace notes and user
8643 name into tfile if they are not NULL.
8644
d0353e76
YQ
86452013-03-14 Hui Zhu <hui@codesourcery.com>
8646 Yao Qi <yao@codesourcery.com>
8647
8648 * Makefile.in (REMOTE_OBS): Add ctf.o.
8649 (SFILES): Add ctf.c.
8650 (HFILES_NO_SRCDIR): Add ctf.h.
8651 * ctf.c, ctf.h: New files.
8652 * tracepoint.c: Include 'ctf.h'.
8653 (collect_pseudocommand): Remove static.
8654 (trace_save_command): Parse option "-ctf".
8655 Produce different trace file writers per option.
8656 Adjust output message.
8657 (trace_save_tfile, trace_save_ctf): New.
8658 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8659 * mi/mi-main.c: Include 'ctf.h'.
8660 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8661 trace_save_tfile or trace_save_ctf.
8662 * NEWS: Mention these changes.
8663
3f43bc09
YQ
86642013-03-14 Yao Qi <yao@codesourcery.com>
8665
8666 * tracepoint.c (trace_file_writer_xfree): New.
8667 (struct tfile_writer_data): New.
8668 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8669 (tfile_write_header, tfile_write_regblock_type): New.
8670 (tfile_write_status, tfile_write_uploaded_tsv): New.
8671 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8672 (tfile_write_raw_data, (tfile_end): New.
8673 (tfile_write_ops): New global variable.
8674 (TRACE_WRITE_R_BLOCK): New macro.
8675 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8676 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8677 (TRACE_WRITE_V_BLOCK): New macro.
8678 (trace_save): Add extra one parameter WRITER. Make it static.
8679 Use WRITER to writer trace.
8680 (tfile_trace_file_writer_new): New.
8681 (trace_save_command): Caller update.
8682 (trace_save_tfile): Write trace data in TFILE format.
8683 * tracepoint.h (struct trace_frame_write_ops): New.
8684 (struct trace_file_write_ops): New.
8685 (struct trace_file_writer): New.
8686 (trace_save): Remove its declaration.
8687 (trace_save_tfile): Declare it.
8688 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8689 instead of trace_save.
8690
58665b40
PA
86912013-03-13 Pedro Alves <palves@redhat.com>
8692
8693 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8694
10217050
PA
86952013-03-13 Pedro Alves <palves@redhat.com>
8696
8697 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8698 commented out code.
8699 * demangle.c (current_demangling_style_string): Make it const.
8700 (set_demangling_command): Assert the demangling style is known.
8701 Remove all handling of unknown styles. Set
8702 'current_demangling_style_string' to an element of the
8703 demangling_style_names array.
8704 (set_demangling_style): Delete.
8705 (_initialize_demangler): Set current_demangling_style_string to the
8706 element of the demangling_style_names array that corresponds to
8707 the default demangling style. Remove FIXME note. Don't call
8708 set_demangling_style.
8709 * gdb-demangle.h (set_demangling_style): Remove declaration.
8710
6f937416
PA
87112013-03-13 Pedro Alves <palves@redhat.com>
8712
8713 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8714 fields const.
8715 (ada_make_symbol_completion_list): Make "text0" parameter const.
8716 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8717 * breakpoint.c (condition_completer): Make "text" and "word"
8718 parameters const. Adjust.
8719 (check_tracepoint_command): Adjust to validate_actionline
8720 prototype change.
8721 (catch_syscall_completer): Make "text" and "word" parameters
8722 const.
8723 * cli/cli-cmds.c (show_user): Make "comname" local const.
8724 (valid_command_p): Make "command" parameter const.
8725 (alias_command): Make "alias_prefix" and "command_prefix" locals
8726 const.
8727 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8728 (add_alias_cmd): Make "name" and "oldname" parameters const.
8729 Adjust. No longer make copy of OLDNAME.
8730 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8731 (add_setshow_cmd_full, add_setshow_enum_cmd)
8732 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8733 (add_setshow_filename_cmd, add_setshow_string_cmd)
8734 (add_setshow_string_noescape_cmd)
8735 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8736 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8737 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8738 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8739 Make "name" parameter const.
8740 (help_cmd): Rename "command" parameter to "arg". New const local
8741 "command".
8742 (find_cmd): Make "command" parameter const.
8743 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8744 deprecated_cmd_warning prototype change.
8745 (undef_cmd_error): Make "cmdtype" parameter const.
8746 (lookup_cmd): Make "line" parameter const.
8747 (deprecated_cmd_warning): Change type of "text" parameter to
8748 pointer to const char, from pointer to pointer to char. Adjust.
8749 (lookup_cmd_composition): Make "text" parameter const.
8750 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8751 parameters const.
8752 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8753 const.
8754 * cli/cli-script.c (validate_comname): Make "tem" local const.
8755 (define_command): New const local "tem_c". Use it in calls to
8756 lookup_cmd.
8757 (document_command): Make "tem" and "comfull" locals const.
8758 (show_user_1): Make "prefix" and "name" parameters const.
8759 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8760 const.
8761 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8762 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8763 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8764 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8765 (complete_on_enum, add_setshow_enum_cmd)
8766 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8767 (add_setshow_filename_cmd, add_setshow_string_cmd)
8768 (add_setshow_string_noescape_cmd)
8769 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8770 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8771 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8772 Change prototypes, constifying strings.
8773 * completer.c (noop_completer, filename_completer): Make "text"
8774 and "prefix" parameters const.
8775 (location_completer, expression_completer)
8776 (complete_line_internal): Make "text" and "prefix" parameters
8777 const and adjust.
8778 (command_completer, signal_completer): Make "text" and "prefix"
8779 parameters const.
8780 * completer.h (noop_completer, filename_completer)
8781 (expression_completer, location_completer, command_completer)
8782 (signal_completer): Change prototypes.
8783 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8784 parameters const.
8785 * cp-abi.c (cp_abi_completer): Likewise.
8786 * expression.h (parse_expression_for_completion): Change
8787 prototype.
8788 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8789 parameters const.
8790 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8791 * infrun.c (handle_completer): Make "text" and "word" parameters
8792 const.
8793 * interps.c (interpreter_completer): Make "text" and "word"
8794 parameters const.
8795 * language.h (struct language_defn)
8796 <la_make_symbol_completion_list>: Make "text" and "word"
8797 parameters const.
8798 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8799 (parse_exp_in_context): Rename to ...
8800 (parse_exp_in_context_1): ... this.
8801 (parse_exp_in_context): Reimplement, with const hack from
8802 parse_exp_1.
8803 (parse_expression_for_completion): Make "string" parameter const.
8804 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8805 to pointer to const char. Adjust.
8806 (print_command_1): Make "exp" parameter const.
8807 (output_command): Rename to ...
8808 (output_command_const): ... this. Make "exp" parameter const.
8809 (output_command): Reimplement.
8810 (x_command): Adjust.
8811 (display_command): Rename "exp" parameter to "arg". New "exp"
8812 local, const version of "arg".
8813 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8814 "cmd_name" local const.
8815 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8816 call.
8817 (cmdpy_completer): Make "text" and "word" parameters const.
8818 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8819 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8820 const.
8821 * remote.c (_initialize_remote): Make "cmd_name" local const.
8822 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8823 parameters const. Adjust.
8824 (completion_list_add_fields): Make "sym_text", "text" and "word"
8825 parameters const.
8826 (struct add_name_data) <sym_text, text, word>: Make fields const.
8827 (default_make_symbol_completion_list_break_on): Make "text" and
8828 "word" parameters const. Adjust locals.
8829 (default_make_symbol_completion_list)
8830 (make_symbol_completion_list, make_symbol_completion_type)
8831 (make_symbol_completion_list_fn): Make "text" and "word"
8832 parameters const.
8833 (make_file_symbol_completion_list): Make "text", "word" and
8834 "srcfile" parameters const. Adjust locals.
8835 (add_filename_to_list): Make "text" and "word" parameters const.
8836 (struct add_partial_filename_data) <text, word>: Make fields
8837 const.
8838 (make_source_files_completion_list): Make "text" and "word"
8839 parameters const.
8840 * symtab.h (default_make_symbol_completion_list_break_on)
8841 (default_make_symbol_completion_list, make_symbol_completion_list)
8842 (make_symbol_completion_type enum type_code)
8843 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8844 (make_source_files_completion_list): Change prototype.
8845 * top.c (execute_command): Adjust to pass pointer to pointer to
8846 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8847 change.
8848 (set_verbose): Make "cmdname" local const.
8849 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8850 and adjust.
8851 (validate_actionline): Make "line" parameter a pointer to const
8852 char, and adjust.
8853 (encode_actions_1): Make "action_exp" local const, and adjust.
8854 (encode_actions): Adjust.
8855 (replace_comma): Delete.
8856 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8857 const, and adjust. Don't frob the action string while splitting
8858 it at commas. Instead, make a copy of each split substring in
8859 turn.
8860 (trace_dump_command): Adjust to validate_actionline prototype
8861 change.
8862 * tracepoint.h (decode_agent_options, decode_agent_options)
8863 (encode_actions, validate_actionline): Change prototypes.
8864 * valprint.h (output_command): Delete declaration.
8865 (output_command_const): Declare.
8866 * value.c (function_destroyer): Cast const away in xfree call.
8867
a0bcdaa7
PA
88682013-03-13 Pedro Alves <palves@redhat.com>
8869
8870 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8871 rather than casting 'const char * const *' to 'const char **'.
8872 * ada-lex.l (processInt): Make "trailer" local const. Remove
8873 'const char **' cast.
8874 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8875 locals, and use those as strtol output pointer, instead than doing
8876 invalid casts to from 'const char **' to 'char **'.
8877 (_initialize_demangle): Remove cast.
8878 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8879 locals, and use those as strtol output pointer, instead than doing
8880 invalid casts to from 'const char **' to 'char **'.
8881 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8882 casts.
8883 * stap-probe.c (stap_parse_register_operand)
8884 (stap_parse_single_operand): Likewise.
8885
8ddb1965
YQ
88862013-03-13 Yao Qi <yao@codesourcery.com>
8887
8888 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8889 the last matched 'V' blcok in trace frame.
8890
2d450646
JB
88912013-03-12 Joel Brobecker <brobecker@adacore.com>
8892
8893 * NEWS: Create a new section for the next release branch.
8894 Rename the section of the current branch, now that it has
8895 been cut.
8896
b4b79973 88972013-03-12 Joel Brobecker <brobecker@adacore.com>
8898
8899 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8900 * version.in: Bump version to 7.6.50.20130312-cvs.
8901
ee047554
KS
89022013-03-12 Keith Seitz <keiths@redhat.com>
8903
8904 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8905 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8906 Remove temporary copy of input string.
8907 (mi_execute_command_wrapper): Make "cmd" const.
8908 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8909 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8910 Use const strings.
8911 (mi_parse): Make "cmd" const.
8912 Use const strings.
8913 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8914
bbc13ae3
KS
89152013-03-12 Keith Seitz <keiths@redhat.com>
8916
8917 * ada-lang.c (ada_read_renaming_var_value): Pass const
8918 pointer to expression string to parse_exp_1.
8919 (create_excep_cond_exprs): Likewise.
8920 * ax-gdb.c (agent_eval_command_one): Likewise.
8921 (maint_agent_printf_command): Likewise.
8922 Constify much of the string handling/parsing.
8923 * breakpoint.c (set_breakpoint_condition): Pass const
8924 pointer to expression string to parse_exp_1.
8925 (update_watchpoint): Likewise.
8926 (parse_cmd_to_aexpr): Constify string handling.
8927 Pass const pointer to parse_exp_1.
8928 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8929 (find_condition_and_thread): Likewise.
8930 Make TOK const.
8931 (watch_command_1): Make "arg" const.
8932 Constify string handling.
8933 Copy the expression string instead of changing the input
8934 string.
8935 (update_breakpoint_location): Pass const pointer to
8936 parse_exp_1.
8937 * eval.c (parse_and_eval_address): Make "exp" const.
8938 (parse_to_comma_and_eval): Make "expp" const.
8939 (parse_and_eval): Make "exp" const.
8940 * expression.h (parse_expression): Make argument const.
8941 (parse_exp_1): Make first argument const.
8942 * findcmd.c (parse_find_args): Treat "args" as const.
8943 * linespec.c (parse_linespec): Pass const pointer to
8944 linespec_expression_to_pc.
8945 (linespec_expression_to_pc): Make "exp_ptr" const.
8946 * parse.c (parse_exp_1): Make "stringptr" const.
8947 Make a copy of the expression to pass to parse_exp_in_context until
8948 this whole interface can be constified.
8949 (parse_expression): Make "string" const.
8950 * printcmd.c (ui_printf): Treat "arg" as const.
8951 Handle const strings.
8952 * tracepoint.c (validate_actionline): Pass const pointer to
8953 all calls to parse_exp_1.
8954 (encode_actions_1): Likewise.
8955 * value.h (parse_to_comma_and_eval): Make argument const.
8956 (parse_and_eval_address): Likewise.
8957 (parse_and_eval): Likewise.
8958 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8959 (varobj_set_value): Likewise.
8960 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8961 constify string handling.
8962 Pass const pointers to parse_and_eval_address and
8963 parse_to_comman_and_eval.
8964 * cli/cli-utils.c (skip_to_space): Rename to ...
8965 (skip_to_space_const): ... this. Handle const strings.
8966 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8967 skip_to_space_const.
8968 (skip_to_space_const): Declare.
8969 * common/format.c (parse_format_string): Make "arg" const.
8970 Handle const strings.
8971 * common/format.h (parse_format_string): Make "arg" const.
8972 * gdbserver/ax.c (ax_printf): Make "format" const.
8973 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8974 of the expression string.
8975
f3cec7e6
HZ
89762013-03-12 Hui Zhu <hui@codesourcery.com>
8977
8978 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8979
9df7235c
HZ
89802013-03-12 Yao Qi <yao@codesourcery.com>
8981 Hui Zhu <hui@codesourcery.com>
8982
8983 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8984 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8985 DW_OP_deref_size.
8986
82d049ab
PH
89872013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8988
5f8e0b8f
MF
8989 * ada-lex.l (rules): Only recognize 'thread' as a
8990 delimiter when followed by numerals, as for c-exp.y.
8991 Use new rewind_to_char function to rewind the input for
8992 expression-delimiting tokens.
8993 (rewind_to_char): New function.
82d049ab 8994
8c1fb155
JK
89952013-03-11 Pedro Alves <palves@redhat.com>
8996 Jan Kratochvil <jan.kratochvil@redhat.com>
8997
8998 * configure: Regenerate.
8999 * configure.ac (check dynamic export flag): Link python test with
9000 $PYTHON_LIBS.
9001
cc81e1c6
DE
90022013-03-11 Doug Evans <dje@google.com>
9003 Keith Seitz <keiths@redhat.com>
9004
9005 * linespec.c (find_linespec_symbols): Call find_function_symbols
9006 first, and then call lookup_prefix_sym/find_method.
9007
39086a0e
PA
90082013-03-11 Pedro Alves <palves@redhat.com>
9009
9010 * charset.c (convert_between_encodings): Don't cast between
9011 different pointer to pointer types. Instead, make the 'inp' local
9012 be of the type iconv expects.
9013 (wchar_iterate): Don't cast between different pointer to pointer
9014 types. Instead, use new pointer local of the type iconv expects.
9015 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9016 Add new local of type char pointer, and use it to get a
9017 char/string view of the byte buffer, instead of casting between
9018 pointer to pointer types.
9019
90585175
HAQ
90202013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9021
9022 * remote.c (remote_set_trace_buffer_size): Move != operator
9023 to the start of next line to fix an ARI warning.
9024
59ea5688
MM
90252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9026
9027 * NEWS: Add record changes.
9028
946287b7
MM
90292013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9030
9031 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9032 the instruction history disassembly.
9033 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9034 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9035
afedecd3
MM
90362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9037
9038 * Makefile.in (SFILES): Add record-btrace.c
9039 (COMMON_OBS): Add record-btrace.o
9040 * record-btrace.c: New.
9041 * objfiles.c: Include btrace.h.
9042 (free_objfile): call btrace_free_objfile.
9043
15984c13
MM
90442013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9045
9046 * target.c (target_call_history, target_call_history_from,
9047 target_call_history_range): New.
9048 * target.h (target_ops) <to_call_history, to_call_history_from,
9049 to_call_history_range>: New fields.
9050 (target_call_history, target_call_history_from,
9051 target_call_history_range): New declaration.
9052 * record.c (get_call_history_modifiers, cmd_record_call_history,
9053 record_call_history_size): New.
9054 (_initialize_record): Add the "record function-call-history" command.
9055 Add "set/show record function-call-history-size" commands.
9056 * record.h (record_print_flag): New.
9057
67c86d06
MM
90582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9059
9060 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9061 to_insn_history_range>: New fields.
9062 (target_insn_history): New.
9063 (target_insn_history_from): New.
9064 (target_insn_history_range): New.
9065 * target.c (target_insn_history): New.
9066 (target_insn_history_from): New.
9067 (target_insn_history_range): New.
9068 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9069 (record_insn_history_size): New.
9070 (get_insn_number): New.
9071 (get_context_size): New.
9072 (no_chunk): New.
9073 (get_insn_history_modifiers): New.
9074 (cmd_record_insn_history): New.
9075 (_initialize_record): Add "set/show record instruction-history-size"
9076 command. Add "record instruction-history" command.
9077
7c1687a9
MM
90782013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9079
9080 * record.h (record_disconnect): New.
9081 (record_detach): New.
9082 (record_mourn_inferior): New.
9083 (record_kill): New.
9084 * record-full.c (record_disconnect, record_detach,
9085 record_mourn_inferior, record_kill): Move to...
9086 * record.c: ...here.
9087 (DEBUG): New.
9088 (record_stop): New.
9089 (record_unpush): New.
9090 (cmd_record_stop): Call record_stop. Replace unpush_target
9091 call with record_unpush call.
9092 (record_disconnect, record_detach): Assert that the target
9093 is of record stratum. Call record_unpush, record_stop, and
9094 DEBUG.
9095 (record_mourn_inferior, record_kill): Assert that the target
9096 is of record stratum. Call record_unpush and DEBUG.
9097
25ea693b
MM
90982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9099
9100 * record-full.h, record-full.c (record_memory_query): Rename
9101 to ...
9102 (record_full_memory_query): ...this. Update all users.
9103 (record_arch_list_add_reg): Rename to ...
9104 (record_full_arch_list_add_reg): ...this. Update all users.
9105 (record_arch_list_add_mem): Rename to ...
9106 (record_full_arch_list_add_mem): ...this. Update all users.
9107 (record_arch_list_add_end): Rename to ...
9108 (record_full_arch_list_add_end): ...this. Update all users.
9109 (record_gdb_operation_disable_set): Rename to ...
9110 (record_full_gdb_operation_disable_set): ...this.
9111 Update all users.
9112
88d1aa9d
MM
91132013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9114
9115 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9116 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9117 (RECORD_IS_REPLAY): Renamed to ...
9118 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9119 (RECORD_FILE_MAGIC): Renamed to ...
9120 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9121 (record_mem_entry): Renamed to ...
9122 (record_full_mem_entry): ... this. Updated all users.
9123 (record_reg_entry): Renamed to ...
9124 (record_full_reg_entry): ... this. Updated all users.
9125 (record_end_entry): Renamed to ...
9126 (record_full_end_entry): ... this. Updated all users.
9127 (record_type) <record_end, record_reg, record_mem>: Renamed
9128 to ...
9129 (record_full_type) <record_full_end, record_full_reg,
9130 record_full_mem>: ... this. Updated all users.
9131 (record_entry): Renamed to ...
9132 (record_full_entry): ... this. Updated all users.
9133 (record_core_buf_entry): Renamed to ...
9134 (record_full_core_buf_entry): ... this. Updated all users.
9135 (record_core_regbuf): Renamed to ...
9136 (record_full_core_regbuf): ... this. Updated all users.
9137 (record_core_start): Renamed to ...
9138 (record_full_core_start): ... this. Updated all users.
9139 (record_core_end): Renamed to ...
9140 (record_full_core_end): ... this. Updated all users.
9141 (record_core_buf_list): Renamed to ...
9142 (record_full_core_buf_list): ... this. Updated all users.
9143 (record_first): Renamed to ...
9144 (record_full_first): ... this. Updated all users.
9145 (record_list): Renamed to ...
9146 (record_full_list): ... this. Updated all users.
9147 (record_arch_list_head): Renamed to ...
9148 (record_full_arch_list_head): ... this. Updated all users.
9149 (record_arch_list_tail): Renamed to ...
9150 (record_full_arch_list_tail): ... this. Updated all users.
9151 (record_stop_at_limit): Renamed to ...
9152 (record_full_stop_at_limit): ... this. Updated all users.
9153 (record_insn_max_num): Renamed to ...
9154 (record_full_insn_max_num): ... this. Updated all users.
9155 (record_insn_num): Renamed to ...
9156 (record_full_insn_num): ... this. Updated all users.
9157 (record_insn_count): Renamed to ...
9158 (record_full_insn_count): ... this. Updated all users.
9159 (record_ops): Renamed to ...
9160 (record_full_ops): ... this. Updated all users.
9161 (record_core_ops): Renamed to ...
9162 (record_full_core_ops): ... this. Updated all users.
9163 (set_record_cmdlist): Renamed to ...
9164 (set_record_full_cmdlist): ... this. Updated all users.
9165 (show_record_cmdlist): Renamed to ...
9166 (show_record_full_cmdlist): ... this. Updated all users.
9167 (record_cmdlist): Renamed to ...
9168 (record_full_cmdlist): ... this. Updated all users.
9169 (record_beneath_to_resume_ops): Renamed to ...
9170 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9171 (record_beneath_to_resume): Renamed to ...
9172 (record_full_beneath_to_resume): ... this. Updated all users.
9173 (record_beneath_to_wait_ops): Renamed to ...
9174 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9175 (record_beneath_to_wait): Renamed to ...
9176 (record_full_beneath_to_wait): ... this. Updated all users.
9177 (record_beneath_to_store_registers_ops): Renamed to ...
9178 (record_full_beneath_to_store_registers_ops): ... this.
9179 Updated all users.
9180 (record_beneath_to_store_registers): Renamed to ...
9181 (record_full_beneath_to_store_registers): ... this.
9182 Updated all users.
9183 (record_beneath_to_xfer_partial_ops): Renamed to ...
9184 (record_full_beneath_to_xfer_partial_ops): ... this.
9185 Updated all users.
9186 (record_beneath_to_xfer_partial): Renamed to ...
9187 (record_full_beneath_to_xfer_partial): ... this.
9188 Updated all users.
9189 (record_beneath_to_insert_breakpoint): Renamed to ...
9190 (record_full_beneath_to_insert_breakpoint): ... this.
9191 Updated all users.
9192 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9193 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9194 Updated all users.
9195 (record_beneath_to_stopped_data_address): Renamed to ...
9196 (record_full_beneath_to_stopped_data_address): ... this.
9197 Updated all users.
9198 (record_beneath_to_async): Renamed to ...
9199 (record_full_beneath_to_async): ... this. Updated all users.
9200 (record_goto_insn): Renamed to ...
9201 (record_full_goto_insn): ... this. Updated all users.
9202 (record_save): Renamed to ...
9203 (record_full_save): ... this. Updated all users.
9204 (record_reg_alloc): Renamed to ...
9205 (record_full_reg_alloc): ... this. Updated all users.
9206 (record_reg_release): Renamed to ...
9207 (record_full_reg_release): ... this. Updated all users.
9208 (record_mem_alloc): Renamed to ...
9209 (record_full_mem_alloc): ... this. Updated all users.
9210 (record_mem_release): Renamed to ...
9211 (record_full_mem_release): ... this. Updated all users.
9212 (record_end_alloc): Renamed to ...
9213 (record_full_end_alloc): ... this. Updated all users.
9214 (record_end_release): Renamed to ...
9215 (record_full_end_release): ... this. Updated all users.
9216 (record_entry_release): Renamed to ...
9217 (record_full_entry_release): ... this. Updated all users.
9218 (record_list_release): Renamed to ...
9219 (record_full_list_release): ... this. Updated all users.
9220 (record_list_release_following): Renamed to ...
9221 (record_full_list_release_following): ... this.
9222 Updated all users.
9223 (record_list_release_first): Renamed to ...
9224 (record_full_list_release_first): ... this. Updated all users.
9225 (record_arch_list_add): Renamed to ...
9226 (record_full_arch_list_add): ... this. Updated all users.
9227 (record_get_loc): Renamed to ...
9228 (record_full_get_loc): ... this. Updated all users.
9229 (record_check_insn_num): Renamed to ...
9230 (record_full_check_insn_num): ... this. Updated all users.
9231 (record_arch_list_cleanups): Renamed to ...
9232 (record_full_arch_list_cleanups): ... this. Updated all users.
9233 (record_message): Renamed to ...
9234 (record_full_message): ... this. Updated all users.
9235 (record_message_wrapper): Renamed to ...
9236 (record_full_message_wrapper): ... this. Updated all users.
9237 (record_message_wrapper_safe): Renamed to ...
9238 (record_full_message_wrapper_safe): ... this. Updated all users.
9239 (record_gdb_operation_disable): Renamed to ...
9240 (record_full_gdb_operation_disable): ... this. Updated all users.
9241 (record_hw_watchpoint): Renamed to ...
9242 (record_full_hw_watchpoint): ... this. Updated all users.
9243 (record_exec_insn): Renamed to ...
9244 (record_full_exec_insn): ... this. Updated all users.
9245 (record_restore): Renamed to ...
9246 (record_full_restore): ... this. Updated all users.
9247 (record_async_inferior_event_token): Renamed to ...
9248 (record_full_async_inferior_event_token): ... this.
9249 Updated all users.
9250 (record_async_inferior_event_handler): Renamed to ...
9251 (record_full_async_inferior_event_handler): ... this.
9252 Updated all users.
9253 (record_core_open_1): Renamed to ...
9254 (record_full_core_open_1): ... this. Updated all users.
9255 (record_open_1): Renamed to ...
9256 (record_full_open_1): ... this. Updated all users.
9257 (record_open): Renamed to ...
9258 (record_full_open): ... this. Updated all users.
9259 (record_close): Renamed to ...
9260 (record_full_close): ... this. Updated all users.
9261 (record_resume_step): Renamed to ...
9262 (record_full_resume_step): ... this. Updated all users.
9263 (record_resumed): Renamed to ...
9264 (record_full_resumed): ... this. Updated all users.
9265 (record_execution_dir): Renamed to ...
9266 (record_full_execution_dir): ... this. Updated all users.
9267 (record_resume): Renamed to ...
9268 (record_full_resume): ... this. Updated all users.
9269 (record_get_sig): Renamed to ...
9270 (record_full_get_sig): ... this. Updated all users.
9271 (record_sig_handler): Renamed to ...
9272 (record_full_sig_handler): ... this. Updated all users.
9273 (record_wait_cleanups): Renamed to ...
9274 (record_full_wait_cleanups): ... this. Updated all users.
9275 (record_wait_1): Renamed to ...
9276 (record_full_wait_1): ... this. Updated all users.
9277 (record_wait): Renamed to ...
9278 (record_full_wait): ... this. Updated all users.
9279 (record_stopped_by_watchpoint): Renamed to ...
9280 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9281 (record_disconnect): Renamed to ...
9282 (record_full_disconnect): ... this. Updated all users.
9283 (record_detach): Renamed to ...
9284 (record_full_detach): ... this. Updated all users.
9285 (record_mourn_inferior): Renamed to ...
9286 (record_full_mourn_inferior): ... this. Updated all users.
9287 (record_kill): Renamed to ...
9288 (record_full_kill): ... this. Updated all users.
9289 (record_stopped_data_address): Renamed to ...
9290 (record_full_stopped_data_address): ... this. Updated all users.
9291 (record_registers_change): Renamed to ...
9292 (record_full_registers_change): ... this. Updated all users.
9293 (record_store_registers): Renamed to ...
9294 (record_full_store_registers): ... this. Updated all users.
9295 (record_xfer_partial): Renamed to ...
9296 (record_full_xfer_partial): ... this. Updated all users.
9297 (record_breakpoint): Renamed to ...
9298 (record_full_breakpoint): ... this. Updated all users.
9299 (record_breakpoint_p): Renamed to ...
9300 (record_full_breakpoint_p): ... this. Updated all users.
9301 (record_breakpoints): Renamed to ...
9302 (record_full_breakpoints): ... this. Updated all users.
9303 (record_sync_record_breakpoints): Renamed to ...
9304 (record_full_sync_record_breakpoints): ... this.
9305 Updated all users.
9306 (record_init_record_breakpoints): Renamed to ...
9307 (record_full_init_record_breakpoints): ... this.
9308 Updated all users.
9309 (record_insert_breakpoint): Renamed to ...
9310 (record_full_insert_breakpoint): ... this. Updated all users.
9311 (record_remove_breakpoint): Renamed to ...
9312 (record_full_remove_breakpoint): ... this. Updated all users.
9313 (record_can_execute_reverse): Renamed to ...
9314 (record_full_can_execute_reverse): ... this. Updated all users.
9315 (record_get_bookmark): Renamed to ...
9316 (record_full_get_bookmark): ... this. Updated all users.
9317 (record_goto_bookmark): Renamed to ...
9318 (record_full_goto_bookmark): ... this. Updated all users.
9319 (record_async): Renamed to ...
9320 (record_full_async): ... this. Updated all users.
9321 (record_can_async_p): Renamed to ...
9322 (record_full_can_async_p): ... this. Updated all users.
9323 (record_is_async_p): Renamed to ...
9324 (record_full_is_async_p): ... this. Updated all users.
9325 (record_execution_direction): Renamed to ...
9326 (record_full_execution_direction): ... this. Updated all users.
9327 (record_info): Renamed to ...
9328 (record_full_info): ... this. Updated all users.
9329 (record_delete): Renamed to ...
9330 (record_full_delete): ... this. Updated all users.
9331 (record_is_replaying): Renamed to ...
9332 (record_full_is_replaying): ... this. Updated all users.
9333 (record_goto_entry): Renamed to ...
9334 (record_full_goto_entry): ... this. Updated all users.
9335 (record_goto_begin): Renamed to ...
9336 (record_full_goto_begin): ... this. Updated all users.
9337 (record_goto_end): Renamed to ...
9338 (record_full_goto_end): ... this. Updated all users.
9339 (record_goto): Renamed to ...
9340 (record_full_goto): ... this. Updated all users.
9341 (init_record_ops): Renamed to ...
9342 (init_record_full_ops): ... this. Updated all users.
9343 (record_core_resume): Renamed to ...
9344 (record_full_core_resume): ... this. Updated all users.
9345 (record_core_kill): Renamed to ...
9346 (record_full_core_kill): ... this. Updated all users.
9347 (record_core_fetch_registers): Renamed to ...
9348 (record_full_core_fetch_registers): ... this. Updated all users.
9349 (record_core_prepare_to_store): Renamed to ...
9350 (record_full_core_prepare_to_store): ... this. Updated all users.
9351 (record_core_store_registers): Renamed to ...
9352 (record_full_core_store_registers): ... this. Updated all users.
9353 (record_core_xfer_partial): Renamed to ...
9354 (record_full_core_xfer_partial): ... this. Updated all users.
9355 (record_core_insert_breakpoint): Renamed to ...
9356 (record_full_core_insert_breakpoint): ... this. Updated all users.
9357 (record_core_remove_breakpoint): Renamed to ...
9358 (record_full_core_remove_breakpoint): ... this. Updated all users.
9359 (record_core_has_execution): Renamed to ...
9360 (record_full_core_has_execution): ... this. Updated all users.
9361 (init_record_core_ops): Renamed to ...
9362 (init_record_full_core_ops): ... this. Updated all users.
9363 (cmd_record_restore): Renamed to ...
9364 (cmd_record_full_restore): ... this. Updated all users.
9365 (record_save_cleanups): Renamed to ...
9366 (record_full_save_cleanups): ... this. Updated all users.
9367 (cmd_record_start): Renamed to ...
9368 (cmd_record_full_start): ... this. Updated all users.
9369 (set_record_insn_max_num): Renamed to ...
9370 (set_record_full_insn_max_num): ... this. Updated all users.
9371 (set_record_command): Renamed to ...
9372 (set_record_full_command): ... this. Updated all users.
9373 (show_record_command): Renamed to ...
9374 (show_record_full_command): ... this. Updated all users.
9375 (_initialize_record): Renamed to ...
9376 (_initialize_record_full): ... this. Updated all users.
9377
d02ed0bb
MM
93782013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9379
9380 * record.h: Split into this and ...
9381 * record-full.h: ... this.
9382 * record.c: Split into this and ...
9383 * record-full.c: ... this.
9384 * target.h (target_ops): Add new fields to_info_record,
9385 to_save_record, to_delete_record, to_record_is_replaying,
9386 to_goto_record_begin, to_goto_record_end, to_goto_record.
9387 (target_info_record): New.
9388 (target_save_record): New.
9389 (target_supports_delete_record): New.
9390 (target_delete_record): New.
9391 (target_record_is_replaying): New.
9392 (target_goto_record_begin): New.
9393 (target_goto_record_end): New.
9394 (target_goto_record): New.
9395 * target.c (target_info_record): New.
9396 (target_save_record): New.
9397 (target_supports_delete_record): New.
9398 (target_delete_record): New.
9399 (target_record_is_replaying): New.
9400 (target_goto_record_begin): New.
9401 (target_goto_record_end): New.
9402 (target_goto_record): New.
9403 * record.h: Declare struct cmd_list_element.
9404 (record_cmdlist): New declaration.
9405 (set_record_cmdlist): New declaration.
9406 (show_record_cmdlist): New declaration.
9407 (info_record_cmdlist): New declaration.
9408 (cmd_record_goto): New declaration.
9409 * record.c: Remove unnecessary includes.
9410 Include inferior.h.
9411 (cmd_record_goto): Remove declaration.
9412 (record_cmdlist): Now extern. Initialize.
9413 (set_record_cmdlist): Now extern. Initialize.
9414 (show_record_cmdlist): Now extern. Initialize.
9415 (info_record_cmdlist): Now extern. Initialize.
9416 (find_record_target): New.
9417 (require_record_target): New.
9418 (cmd_record_start): Update.
9419 (cmd_record_delete): Remove target-specific code.
9420 Call target_delete_record.
9421 (cmd_record_stop): Unpush any record target.
9422 (set_record_insn_max_num): Move to record-full.c
9423 (set_record_command): Add comment.
9424 (show_record_command): Add comment.
9425 (info_record_command): Update comment.
9426 Remove target-specific code.
9427 Call the record target's to_info_record.
9428 (cmd_record_start): New.
9429 (cmd_record_goto): Now extern.
9430 Remove target-specific code.
9431 Call target_goto_begin, target_goto_end, or target_goto.
9432 (_initialize_record): Move record target ops initialization to
9433 record-full.c.
9434 Change "record" command help text.
9435 Move "record restore", "record set", and "record show" commands to
9436 record-full.c.
9437 * Makefile.in (SFILES): Add record-full.c.
9438 (HFILES_NO_SRCDIR): Add record-full.h.
9439 (COMMON_OBS): Add record-full.o.
9440 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9441 * arm-tdep.c: Include record-full.h.
9442 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9443 * i386-tdep.c: Include record-full.h.
9444 * infrun.c: Include record-full.h.
9445 * linux-record.c: Include record-full.h.
9446 * moxie-tdep.c: Include record-full.h.
9447 * record-full.c: Include record-full.h.
9448 Change module comment.
9449 (set_record_full_cmdlist): New.
9450 (show_record_full_cmdlist): New.
9451 (record_full_cmdlist): New.
9452 (record_goto_insn): New declaration.
9453 (record_save): New declaration.
9454 (record_check_insn_num): Change query string.
9455 (record_info): New.
9456 (record_delete): New.
9457 (record_is_replaying): New.
9458 (record_goto_entry): New.
9459 (record_goto_begin): New.
9460 (record_goto_end): New.
9461 (record_goto): New.
9462 (init_record_ops): Update.
9463 (init_record_core_ops): Update.
9464 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9465 (cmd_record_start): New.
9466 (set_record_insn_max_num): Moved from record.c
9467 (set_record_full_command): New.
9468 (show_record_full_command): New.
9469 (_initialize_record_full): New.
9470
b48d48eb
MM
94712013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9472
9473 * target.h (add_deprecated_target_alias): New.
9474 * target.c (add_deprecated_target_alias): New.
9475
a950d57c
MM
94762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9477
9478 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9479 and signal.h.
9480 (linux_supports_btrace): Add kernel and
9481 cpuid check.
9482 (kernel_supports_btrace): New function.
9483 (cpu_supports_btrace): New function.
9484 (intel_supports_btrace): New function.
9485
9accd112
MM
94862013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9487
9488 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9489 * remote.c: Include btrace.h.
9490 (struct btrace_target_info): New struct.
9491 (remote_supports_btrace): New function.
9492 (send_Qbtrace): New function.
9493 (remote_enable_btrace): New function.
9494 (remote_disable_btrace): New function.
9495 (remote_teardown_btrace): New function.
9496 (remote_read_btrace): New function.
9497 (init_remote_ops): Add btrace ops.
9498 (enum <unnamed>): Add btrace packets.
9499 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9500 (_initialize_remote): Add packet configuration for branch tracing.
9501
c12a2917
MM
95022013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9503
9504 * features/btrace.dtd: New file.
9505 * Makefile.in (XMLFILES): Add btrace.dtd.
9506 * btrace.h (parse_xml_btrace): New declaration.
9507 * btrace.c: Include xml-support.h.
9508 (parse_xml_btrace): New function.
9509 (parse_xml_btrace_block): New function.
9510 (block_attributes): New struct.
9511 (btrace_attributes): New struct.
9512 (btrace_children): New struct.
9513 (btrace_elements): New struct.
9514
3e3aea48
MM
95152013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9516
9517 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9518 (amd64_linux_enable_btrace): New.
9519 (amd64_linux_disable_btrace): New.
9520 (amd64_linux_teardown_btrace): New.
9521 (_initialize_amd64_linux_nat): Initialize btrace ops.
9522 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9523 (i386_linux_enable_btrace): New.
9524 (i386_linux_disable_btrace): New.
9525 (i386_linux_teardown_btrace): New.
9526 (_initialize_i386_linux_nat): Initialize btrace ops.
9527 * config/i386/linux.mh: Add linux-btrace.o.
9528 * config/i386/linux64.mh: Add linux-btrace.o.
9529
7c97f91e
MM
95302013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9531
9532 * common/linux_btrace.h: New file.
9533 * common/linux_btrace.c: New file.
9534 * Makefile.in (SFILES): Add btrace.c.
9535 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9536 (COMMON_OBS): Add btrace.o.
9537 (linux-btrace.o): New rule.
9538
1999790b 95392013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9540
9541 * target.h: Include btrace.h.
9542 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9543 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9544 * target.c (target_supports_btrace): New function.
9545 (target_enable_btrace): New function.
9546 (target_disable_btrace): New function.
9547 (target_teardown_btrace): New function.
9548 (target_read_btrace): New function.
9549 * btrace.h: New file.
9550 * btrace.c: New file.
9551 * Makefile.in: Add btrace.c.
9552 * gdbthread.h: Include btrace.h.
9553 (struct thread_info): Add btrace field.
9554 * thread.c: Include btrace.h.
9555 (clear_thread_inferior_resources): Call target_teardown_btrace.
9556 * common/btrace-common.h: New file.
9557
61a31a67
JK
95582013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9559
9560 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9561 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9562 kill_status to outer block.
9563
05c56a9d
JK
95642013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9565
9566 Fix entry-values if the callee called a noreturn function.
9567 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9568 get_frame_address_in_block. Add new comment.
9569
9112db09
JK
95702013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9571
9572 Fix entry-values in C++ across CUs.
9573 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9574 lookup_minimal_symbol. Add a comment.
9575 * dwarf2read.c
9576 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9577 DW_AT_linkage_name.
9578
9b67fcec
YQ
95792013-03-08 Yao Qi <yao@codesourcery.com>
9580
9581 * tracepoint.c (_initialize_tracepoint): Indent the code.
9582
6221be90
PA
95832013-03-08 Pedro Alves <palves@redhat.com>
9584
9585 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9586 (parse_find_args, find_command): Change type of pattern buffer
9587 locals to 'gdb_byte *'.
9588
be9a119c 95892013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9590 Hafiz Abid Qadeer <abidh@codesourcery.com>
9591
9592 * NEWS: Mention set and show trace-buffer-size commands.
9593 Mention new packet.
9594 * target.h (struct target_ops): New method
9595 to_set_trace_buffer_size.
9596 (target_set_trace_buffer_size): New macro.
9597 * target.c (update_current_target): Set up new method.
9598 * tracepoint.c (trace_buffer_size): New global.
9599 (start_tracing): Send it to the target.
9600 (set_trace_buffer_size): New function.
9601 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9602 * remote.c (remote_set_trace_buffer_size): New function.
9603 (_initialize_remote): Use it.
9604 (QTBuffer:size) New remote command.
9605 (PACKET_QTBuffer_size): New enum.
9606 (remote_protocol_features): Add an entry for
9607 PACKET_QTBuffer_size.
9608
7da3ab79
TT
96092013-03-08 Tom Tromey <tromey@redhat.com>
9610
9611 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9612 variable.
9613
0c1f71e7
PA
96142013-03-07 Pedro Alves <palves@redhat.com>
9615
9616 * target.c (target_read_stralloc, target_fileio_read_alloc):
9617 *Cast pointer to 'gdb_byte *' in target call.
9618
c8af03a2
PA
96192013-03-07 Pedro Alves <palves@redhat.com>
9620
9621 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9622 call.
9623
529480d0
KS
96242013-03-07 Keith Seitz <keiths@redhat.com>
9625
9626 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9627 (trace_pass_command): Likewise.
9628 * cli/cli-cmds.c: Include cli/cli-utils.h.
9629 (source_command): Use skip-spaces.
9630 (disassemble_command): Likewise.
9631 * findcmd.c: Include cli/cli-utils.h.
9632 (parse_find_args): Use skip_spaces.
9633 * go32-nat.c: Include cli/cli-utils.h.
9634 (go32_sldt): Use skip_spaces.
9635 (go32_sgdt): Likewise.
9636 (go32_sidt): Likewise.
9637 (go32_pde): Likewise.
9638 (go32_pte): Likewise.
9639 (go32_pte_for_address): Likewise.
9640 * infcmd.c: Include cli/cli-utils.h.
9641 (registers_info): Use skip_spaces.
9642 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9643 (linux_info_proc): Likewise.
9644 * linux-thread-db.c: Include cli/cli-utils.h.
9645 (info_auto_load_libthread_db): Use skip_spaces_const.
9646 * m32r-rom.c: Include cli/cli-utils.h.
9647 (m32r_upload_command): Use skip_spaces.
9648 * maint.c: Include cli/cli-utils.h.
9649 (maintenance_translate_address): Use skip_spaces.
9650 * mi/mi-parse.c: Include cli/cli-utils.h.
9651 (mi_parse_argv): Use skip_spaces.
9652 (mi_parse): Likewise.
9653 * minsyms.c: Include cli/cli-utils.h.
9654 (msymbol_hash_iw): Use skip_spaces_const.
9655 * objc-lang.c: Include cli/cli-utils.h.
9656 (parse_selector): Use skip_spaces.
9657 (parse_method): Likewise.
9658 * python/python.c: Include cli/cli-utils.h.
9659 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9660 (python_command)[HAVE_PYTHON]: Likewise.
9661 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9662 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9663 (m32r_load): Use skip_spaces.
9664 * serial.c: Include cli/cli-utils.h.
9665 (serial_open): Use skip_spaces_const.
9666 * stack.c: Include cli/cli-utils.h.
9667 (parse_frame_specification_1): Use skip_spaces_const.
9668 * symfile.c: Include cli/cli-utils.h.
9669 (set_ext_lang_command): Use skip_spaces.
9670 * symtab.c: Include cli/cli-utils.h.
9671 (rbreak_command): Use skip_spaces.
9672 * thread.c (thread_name_command): Use skip_spaces.
9673 * tracepoint.c (validate_actionline): Use skip_spaces.
9674 (encode_actions_1): Likewise.
9675 (trace_find_range_command): Likewise.
9676 (trace_find_outside_command): Likewise.
9677 (trace_dump_actions): Likewise.
9678
ac91cd70
PA
96792013-03-07 Pedro Alves <palves@redhat.com>
9680
9681 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9682 * expprint.c (print_subexp_standard): Likewise.
9683 * utils.c (host_char_to_target): Likewise.
9684 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9685 * varobj.c (value_get_print_value): Change type of local to char*.
9686 Cast it gdb_byte * in call to language printer.
9687
2898e560
PA
96882013-03-07 Pedro Alves <palves@redhat.com>
9689
9690 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9691 gdb_byte *'.
9692 (make_wchar_iterator): Remove cast to char*.
9693 (wchar_iterate): Change type of local.
9694
a09b4448
PA
96952013-03-07 Pedro Alves <palves@redhat.com>
9696
9697 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9698 for 'regcache->register_status'.
9699
20ced3e4
PA
97002013-03-07 Pedro Alves <palves@redhat.com>
9701
c2d6a675 9702 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9703 int.
9704
fe106009
PA
97052013-03-07 Pedro Alves <palves@redhat.com>
9706
9707 * stap-probe.c (handle_stap_probe): Add cast to char*.
9708
8ac2c12b
PA
97092013-03-07 Pedro Alves <palves@redhat.com>
9710
9711 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9712 RECORD_MSGRCV>: Pass a signed variable to
9713 regcache_raw_read_signed, instead of an unsigned one.
9714
99f0a309
PA
97152013-03-07 Pedro Alves <palves@redhat.com>
9716
9717 * remote-notif.c (notif_debug): Change type to int.
9718 * remote-notif.h (notif_debug): Likewise.
9719
964b8317
PA
97202013-03-07 Pedro Alves <palves@redhat.com>
9721
9722 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9723
f0cc8ad4
PA
97242013-03-07 Pedro Alves <palves@redhat.com>
9725
9726 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9727 * remote.h (hex2bin, bin2hex): ... here.
9728 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9729
77dec115
EZ
97302013-03-07 Eli Zaretskii <eliz@gnu.org>
9731
9732 * utils.c (initialize_utils): Improve doc strings of "set/show
9733 width", "set/show height", and "set/show pagination".
9734
741d92cf
KS
97352013-03-06 Keith Seitz <keiths@redhat.com>
9736
9737 * ax-gdb.c (gen_printf): Make FORMAT const.
9738 * ax-gdb.h (gen_printf): Likewise.
9739 * ax-general.c (ax_string): Make STR const.
9740 * ax.h (ax_string): Likewise.
9741
7b6c814e
DE
97422013-03-06 Doug Evans <dje@google.com>
9743
9744 * elfread.c (elf_symfile_read): Move debugging printf to more
9745 logical location.
9746
634334ab
PA
97472013-03-06 Pedro Alves <palves@redhat.com>
9748
9749 * python/py-utils.c (target_string_to_unicode): Delete function.
9750 * python/python-internal.h (target_string_to_unicode): Delete
9751 declaration.
9752
e482a1a7
PM
97532013-03-06 Pierre Muller <muller@sourceware.org>
9754
9755 * linespec.c (get_current_search_block): ARI fix, use (void)
9756 for empty parameter list.
9757
4eeaa230
DE
97582013-03-05 Doug Evans <dje@google.com>
9759
9760 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9761 of old ada_lookup_symbol_list. In !full_search case, don't
9762 search superblocks.
9763 (ada_lookup_symbol_list): Delete arg full_search, all callers
9764 updated. Call ada_lookup_symbol_list_worker.
9765 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9766 * ada-lang.h (ada_lookup_symbol_list): Update.
9767 * language.h (language_defn): Update comment for
9768 la_iterate_over_symbols.
9769 * linespec.c (iterate_over_file_blocks): New function.
9770 (iterate_over_all_matching_symtabs): Call it.
9771 (lookup_prefix_sym): Ditto.
9772 (get_current_search_block): New function.
9773 (get_search_block): Delete.
9774 (find_label_symbols): Call get_current_search_block.
9775 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9776 * symtab.c (iterate_over_symbols): Don't search superblocks.
9777
b69b1fb1
YQ
97782013-03-05 Yao Qi <yao@codesourcery.com>
9779
9780 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9781 parameter VAR's type from "unsigned int" to "int".
9782 * command.h (var_zuinteger_unlimited): Update its comments.
9783 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9784
3c095f49
CV
97852013-03-05 Corinna Vinschen <vinschen@redhat.de>
9786
9787 * NEWS: Mention new target x86_64-*-cygwin*.
9788
b5b0b0af
CV
97892013-03-05 Corinna Vinschen <vinschen@redhat.de>
9790
9791 * configure.host: Add x86_64-*-cygwin* as host.
9792 * configure.tgt: Add x86_64-*-cygwin* as target.
9793 * config/i386/cygwin64.mh: New file.
9794
f6f99966
JK
97952013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9796
9797 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9798
33f448b1
JK
97992013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9800
9801 * linespec.c (struct linespec_canonical_name): New.
9802 (struct linespec_state): Change canonical_names type to it.
9803 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9804 xrealloc element size. Initialize the different CANONICAL fields.
9805 (canonical_to_fullform): New.
9806 (filter_results): Use it. Add variables canonical, fullform and
9807 cleanup.
9808 (struct decode_line_2_item, decode_line_2_compare_items): New.
9809 (decode_line_2): Remove variables iter and item_names, add variables
9810 items and items_count. Modify the code for these new variables.
9811
feb14725
CV
98122013-03-04 Corinna Vinschen <vinschen@redhat.com>
9813
9814 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9815 calling do_cleanup.
9816
e83b17ba
HZ
98172013-03-04 Luis Machado <lgustavo@codesourcery.com>
9818
9819 * tracepoint.c (build_traceframe_info): Add code for byte order.
9820
a2d13a0d
KB
98212013-03-02 Kevin Buettner <kevinb@redhat.com>
9822
8dddcae8
KB
9823 * v850-tdep.c: (v850e2_register_name): Revise system register
9824 names to match current V850E2M architecture specifications.
9825 Update register number enum comments too.
f5aee5ee 9826
d79e58d8
JW
98272013-03-01 Jiong Wang <jiwang@tilera.com>
9828 Pedro Alves <palves@redhat.com>
9829
9830 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9831 to END_ADDR.
9832 (tilegx_skip_prologue): Limit prologue analysis to section end.
9833
c4be5165
JK
98342013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9835
9836 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9837 use it.
9838
e362b510
PA
98392013-03-01 Pedro Alves <palves@redhat.com>
9840
9841 Use gdb_byte for bytes from the program being debugged.
9842
9843 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9844 Change type of local 'buf' to gdb_byte.
9845 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9846 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9847 * cris-tdep.c (cris_sigcontext_addr)
9848 (cris_sigtramp_frame_unwind_cache): Likewise.
9849 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9850 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9851 Likewise.
9852 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9853 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9854 (hppa32_hpux_search_dummy_call_sequence)
9855 (hppa_hpux_supply_save_state): Likewise.
9856 * hppa-linux-tdep.c (insns_match_pattern)
9857 (hppa_linux_find_global_pointer): Likewise.
9858 * hppa-tdep.c (hppa_in_function_epilogue_p)
9859 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9860 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9861 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9862 (i386fbsd_collect_uthread): Likewise.
9863 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9864 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9865 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9866 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9867 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9868 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9869 (ia64_libunwind_frame_prev_register)
9870 (ia64_libunwind_sigtramp_frame_this_id)
9871 (ia64_find_global_pointer_from_dynamic_section)
9872 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9873 (ia64_unwind_pc): Likewise.
9874 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9875 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9876 (m68hc11_extract_return_value): Likewise.
9877 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9878 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9879 (mep_get_insn, mep_push_dummy_call): Likewise.
9880 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9881 (mips_linux_in_dynsym_stub): Likewise.
9882 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9883 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9884 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9885 to gdb_byte.
9886 * remote-mips.c (mips_set_register): Likewise.
9887 * remote-sim.c (gdbsim_fetch_register): Likewise.
9888 * score-tdep.c (score7_fetch_inst): Change type of parameter
9889 'memblock' and local 'buf' to gdb_byte.
9890 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9891 Change type of local 'buf' to gdb_byte. Adjust.
9892 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9893 to gdb_byte**.
9894 (score7_analyze_prologue): Change type of 'memblock' and
9895 'memblock_ptr' locals to gdb_byte*.
9896 * sh64-tdep.c (sh64_extract_return_value)
9897 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9898 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9899 * solib-pa64.c (pa64_solib_create_inferior_hook)
9900 (pa64_open_symbol_file_object): Remove local 'buf'.
9901 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9902 (som_open_symbol_file_object): Likewise.
9903 * solib-spu.c (spu_current_sos): Likewise.
9904 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9905 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9906 (spu_store_registers): Likewise.
9907 * target.c (debug_print_register): Likewise.
9908 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9909 * xstormy16-tdep.c (xstormy16_store_return_value)
9910 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9911 (xstormy16_find_jmp_table_entry): Likewise.
9912
75cc61ca 99132013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9914
9915 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9916 (tilegx_gdbarch_init): Install it.
9917
ddb08e9c
TT
99182013-02-28 Tom Tromey <tromey@redhat.com>
9919
9920 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9921 PyLong_Check.
9922
62d7fb51
DE
99232013-02-28 Doug Evans <dje@google.com>
9924
9925 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9926 * python/python.c (gdbpy_find_pc_line): Ditto.
9927
c4a9e8b4
TT
99282013-02-28 Tom Tromey <tromey@redhat.com>
9929
9930 * contrib/excheck.py: New file.
9931 * contrib/exsummary.py: New file.
9932 * contrib/gcc-with-excheck: New file.
9933
7f6a5dde
TT
99342013-02-28 Tom Tromey <tromey@redhat.com>
9935
9936 * python/python.c (gdbpy_print_stack): Call begin_line and
9937 fprintf_filtered inside TRY_CATCH.
9938
9e974e55
TT
99392013-02-28 Tom Tromey <tromey@redhat.com>
9940
9941 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9942 inside TRY_CATCH.
9943
dd5fa3e7
TT
99442013-02-28 Tom Tromey <tromey@redhat.com>
9945
9946 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9947 frame_object_to_frame_info inside TRY_CATCH.
9948
86a3263f
TT
99492013-02-28 Tom Tromey <tromey@redhat.com>
9950
9951 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9952 TRY_CATCH.
9953
81b52a3a
TT
99542013-02-28 Tom Tromey <tromey@redhat.com>
9955
9956 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9957
d50a0ce2
CV
99582013-02-27 Corinna Vinschen <vinschen@redhat.com>
9959
9960 * windows-nat.c: Throughout, fix format strings and casts of
9961 printf-like functions to avoid type related warnings on all
9962 platforms.
9963 (handle_output_debug_string): Fetch context information address
9964 from debug string using string_to_core_addr.
9965
e1f58301
JW
99662013-02-27 Jiong Wang <jiwang@tilera.com>
9967
9968 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9969 * regformats/reg-tilegx32.dat: New.
9970
4fcd89fc
JW
99712013-02-27 Jiong Wang <jiwang@tilera.com>
9972
9973 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9974
748d24e6
JW
99752013-02-27 Jiong Wang <jiwang@tilera.com>
9976
9977 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9978
6c8e944d
YQ
99792013-02-27 Yao Qi <yao@codesourcery.com>
9980 Pedro Alves <palves@redhat.com>
9981
9982 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9983 pc/tp/range/outside, look for the next trace frame instead of
9984 always starting from frame 0.
6c8e944d 9985
acd7db30
AG
99862013-02-26 Anthony Green <green@moxielogic.com>
9987
9988 * configure.tgt: Add support for moxie-*-rtems* target.
9989
025e6dce
PA
99902013-02-25 Pedro Alves <palves@redhat.com>
9991
9992 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9993 warning text.
9994
ca9c94ef
MR
99952013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9996
9997 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9998 if $fp is used as the virtual frame pointer.
9999
24c274a1
AM
100002013-02-23 Alan Modra <amodra@gmail.com>
10001
10002 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10003 symbol size.
10004 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10005 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10006 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10007 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10008
bfada189
JK
100092013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10010
10011 Code cleanup.
10012 * elfread.c (build_id_bfd_get): Make the return type const.
10013 (build_id_verify): Make the check parameter const.
10014 (build_id_to_debug_filename): Make the build_id parameter and variable
10015 data const.
10016 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10017
c0355132
AM
100182013-02-21 Alan Modra <amodra@gmail.com>
10019
10020 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10021
9f44fbc0
SCR
100222013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10023
10024 Add a new method 'disassemble' to gdb.Architecture class.
10025 * python/py-arch.c (archpy_disassmble): Implementation of the
10026 new method gdb.Architecture.disassemble.
10027 (arch_object_methods): Add entry for the new method.
10028
b74ea3eb
JW
100292013-02-20 Jiong Wang <jiwang@tilera.com>
10030
10031 * MAINTAINERS (Write After Approval): Add myself to the list.
10032
61a672f1
PA
100332013-02-19 Pedro Alves <palves@redhat.com>
10034
10035 Garbage collect 'struct monitor_ops'::load_routine.
10036
10037 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10038 * monitor.c (monitor_load): No longer call
10039 current_monitor->load_routine.
10040 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10041 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10042 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10043
40e397df
PA
100442013-02-19 Pedro Alves <palves@redhat.com>
10045
10046 PR gdb/15161
10047
10048 Harmonize with generic_load.
10049
10050 * monitor.c: Include "readline/readline.h".
10051 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10052 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10053 long/strtol for the 'load_offset' local. Error out if no argument
10054 is given or if too many arguments are given. Tilde expand the
10055 passed in file name.
10056
f698ca8e
KT
100572013-02-19 Kai Tietz <ktietz@redhat.com>
10058
10059 PR gdb/15161
10060 * symfile.c (load_section_data): Change type of load_offset
10061 to CORE_ADDR.
10062 (generic_load): User strtoulst instead of strtoul for conversion
10063 of load_offset.
10064
3361b059
WL
100652013-02-19 Jiong Wang <jiwang@tilera.com>
10066
10067 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10068 for return address, "lr" register, saved on stack.
10069 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10070 after we invoke tilegx_analyze_prologue.
10071
3e9d5130
WL
100722013-02-19 Jiong Wang <jiwang@tilera.com>
10073
bb1bcd86
WL
10074 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10075
3361b059 100762013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10077
b74ea3eb 10078 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10079
4aaf2503
WL
100802013-02-19 Jiong Wang <jiwang@tilera.com>
10081
b74ea3eb 10082 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10083 (tilegx_write_pc): New function.
10084 (tilegx_cannot_reference_register): Return zero if REGNO
10085 is TILEGX_FAULTNUM_REGNUM.
10086 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10087 (tilegx_register_name): Add handling of "faultnum" register.
10088 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10089 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10090 handling of TILEGX_FAULTNUM_REGNUM.
10091 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10092
bc23a956
WL
100932013-02-19 Jiong Wang <jiwang@tilera.com>
10094
10095 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10096 should be aligned to 64bit.
bc23a956 10097
42f45f1a
KT
100982013-02-19 Kai Tietz <ktietz@redhat.com>
10099
10100 * windows-nat.c (windows_xfer_memory): Fix debug-output
10101 for LLP64.
10102
6ce4c112
LL
101032013-02-19 Lei Liu <lei.liu2@windriver.com>
10104
10105 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10106 Don't check DSP register number if HAVE_DSP is not set.
10107
30e8ee25
AM
101082013-02-19 Alan Modra <amodra@gmail.com>
10109
10110 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10111 throughout file instead.
10112 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10113 Don't xmalloc return value.
10114 (build_id_verify): Similarly. Don't xfree.
10115 (build_id_to_debug_filename): Update.
10116 (find_separate_debug_file_by_buildid): Update, don't xfree.
10117
4c9ad8c2
TT
101182013-02-18 Tom Tromey <tromey@redhat.com>
10119
10120 PR gdb/15102:
10121 * dwarf2read.c (read_subrange_type): Use result of
10122 'check_typedef'.
10123
983dc440
YQ
101242013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10125
10126 * frame.c: Remove one extra white space after #include
10127 directive.
10128
7fb2b84a
JK
101292013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10130
10131 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10132
edceb2a9
JK
101332013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10134
10135 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10136 and dir commands into an if block.
10137
e81b7af8
TT
101382013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10139
10140 * python/py-breakpoint (struct pybp_code): Use int instead of
10141 enum type_code.
10142
f5911ea1
HAQ
101432013-02-15 Pedro Alves <pedro@codesourcery.com>
10144 Hafiz Abid Qadeer <abidh@codesourcery.com>
10145
10146 * NEWS: Mention new field "trace-file".
10147 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10148 (tfile_open): Record the trace file's filename in the trace
10149 status.
10150 (tfile_files_info): Mention the name of the trace file.
10151 Check the "filename" field explicitely.
10152 (trace_status_command): Explicitely check "filename" field.
10153 (trace_find_command): Ditto.
10154 (trace_find_pc_command): Ditto.
10155 (trace_find_tracepoint_command): Ditto.
10156 (trace_find_line_command): Ditto.
10157 (trace_find_range_command): Ditto.
10158 (trace_find_outside_command): Ditto.
10159 * tracepoint.h (struct trace_status) <from_file>: Rename it
10160 to "filename" and make it hold the trace file's filename
10161 instead of a boolean.
10162 * remote.c (remote_get_trace_status): Initialize "filename"
10163 field with NULL instead of 0.
10164
796cb314
YQ
101652013-02-15 Yao Qi <yao@codesourcery.com>
10166
10167 * remote.c: Fix a typo.
10168
42e79b1d
PM
101692013-02-14 Pierre Muller <muller@sourceware.org>
10170
10171 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10172
baea0dae
PA
101732013-02-14 Pedro Alves <palves@redhat.com>
10174
10175 * utils.c (savestring): Don't #undef it. Move function to
10176 common/common-utils.c.
10177 * common/common-utils.c: Include gdb_string.h.
10178 (savestring): Move here from utils.c.
10179 * common/common-utils.h (savestring): Declare.
10180
57c3b6ed
PA
101812013-02-14 Pedro Alves <palves@redhat.com>
10182
10183 * utils.c (savestring): Rename parameter 'size' to 'len'.
10184
d6c44983
YZ
101852013-02-14 Pedro Alves <palves@redhat.com>
10186 Yufeng Zhang <yufeng.zhang@arm.com>
10187
10188 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10189 (aarch64_inferior_data, struct aarch64_inferior_data):
10190 Delete.
10191 (struct aarch64_process_info): New.
10192 (aarch64_process_list): New global.
10193 (aarch64_find_process_pid, aarch64_add_process)
10194 (aarch64_process_info_get): New functions.
10195 (aarch64_inferior_data_get): Delete.
10196 (aarch64_process_info_get): New function.
10197 (aarch64_forget_process): New function.
10198 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10199 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10200 aarch64_get_debug_reg_state.
10201 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10202 instead of linux_nat_iterate_watchpoint_lwps.
10203 (aarch64_linux_new_fork): New function.
10204 (aarch64_linux_child_post_startup_inferior): Use
10205 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10206 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10207 (aarch64_linux_remove_hw_breakpoint)
10208 (aarch64_handle_aligned_watchpoint)
10209 (aarch64_handle_unaligned_watchpoint)
10210 (aarch64_linux_insert_watchpoint)
10211 (aarch64_linux_remove_watchpoint)
10212 (aarch64_linux_stopped_data_address): Adjust to pass the current
10213 process id to aarch64_debug_reg_state.
10214 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10215 linux_nat_new_fork hook, and aarch64_forget_process as
10216 linux_nat_forget_process hook; remove the call to
10217 register_inferior_data_with_cleanup.
10218
4819b3f8
PA
102192013-02-14 Pedro Alves <palves@redhat.com>
10220
10221 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10222 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10223 lval_memory.
10224
1773c82c
HAQ
102252013-02-14 Pedro Alves <pedro@codesourcery.com>
10226 Hafiz Abid Qadeer <abidh@codesourcery.com>
10227
10228 * tracepoint.h (validate_trace_state_variable_name): Declare.
10229 * tracepoint.c (validate_trace_state_variable_name): New.
10230 (trace_variable_command): Parse the trace state variable's name
10231 without using parse_expression. Do several validations.
10232 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10233 trace state variable's name with parse_expression. Validate it.
10234
53778a97
YQ
102352013-02-14 Yao Qi <yao@codesourcery.com>
10236
10237 * infcmd.c (breakpoint_proceeded): Remove it.
10238
7b3ae3a6
YQ
102392013-02-14 Yao Qi <yao@codesourcery.com>
10240
10241 * tracepoint.c (end_actions_pseudocommand): Make it static.
10242 (while_stepping_pseudocommand): Likewise.
10243 * tracepoint.h (end_actions_pseudocommand): Remove the
10244 declaration.
10245 (while_stepping_pseudocommand): Likewise.
10246
64580925
YQ
102472013-02-14 Yao Qi <yao@codesourcery.com>
10248
10249 * cli/cli-decode.c (help_cmd): Remove the declaration of
10250 "cmdlist".
10251 (help_all): Likewise.
10252
26cb8b7c
PA
102532013-02-13 Pedro Alves <palves@redhat.com>
10254
10255 * amd64-linux-nat.c (update_debug_registers_callback):
10256 Update comment.
10257 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10258 iterate_over_lwps.
10259 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10260 i386_debug_reg_state.
10261 (amd64_linux_new_fork): New function.
10262 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10263 linux_nat_new_fork hook, and i386_forget_process as
10264 linux_nat_forget_process hook.
10265 * i386-linux-nat.c (update_debug_registers_callback):
10266 Update comment.
a8256ea1 10267 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10268 iterate_over_lwps.
10269 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10270 i386_debug_reg_state.
10271 (i386_linux_new_fork): New function.
10272 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10273 linux_nat_new_fork hook, and i386_forget_process as
10274 linux_nat_forget_process hook.
10275 * i386-nat.c (i386_init_dregs): Delete.
10276 (i386_inferior_data, struct i386_inferior_data):
10277 Delete.
10278 (struct i386_process_info): New.
10279 (i386_process_list): New global.
10280 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10281 New functions.
10282 (i386_inferior_data_get): Delete.
10283 (i386_process_info_get): New function.
10284 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10285 (i386_forget_process): New function.
10286 (i386_cleanup_dregs): Rewrite.
10287 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10288 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10289 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10290 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10291 to i386_debug_reg_state.
10292 (i386_use_watchpoints): Don't register inferior data.
10293 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10294 adjust comment.
10295 (i386_forget_process): Declare.
10296 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10297 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10298 New static globals.
10299 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10300 (add_initial_lwp): New, factored out from ...
10301 (add_lwp): ... this. Don't check the number of lwps before
10302 calling linux_nat_new_thread.
10303 (linux_nat_iterate_watchpoint_lwps): Delete.
10304 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10305 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10306 forks and vforks.
10307 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10308 initial lwp.
10309 (linux_nat_kill, linux_nat_mourn_inferior): Call
10310 linux_nat_forget_process.
10311 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10312 (linux_nat_forget_process): New functions.
10313 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10314 type.
10315 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10316 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10317 types.
10318 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10319 (linux_nat_forget_process): New declarations.
10320
10321 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10322 (amd64fbsd_mourn_inferior): New function.
10323 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10324 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10325
5befea72
MS
103262013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10327
55015247
YQ
10328 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10329 Adding _().
5befea72 10330
1d3ffd6b
MS
103312013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10332
10333 * aarch64-linux-nat.c (debug_reg_change_callback)
10334 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10335 %s and phex().
10336
6eb04473
MS
103372013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10338
10339 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10340 with LONGEST.
10341
a016fc87
HAQ
103422013-02-13 Pedro Alves <palves@redhat.com>
10343 Hafiz Abid Qadeer <abidh@codesourcery.com>
10344
10345 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10346
e234dfaf
TT
103472013-02-12 Tom Tromey <tromey@redhat.com>
10348
10349 PR symtab/11464:
10350 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10351 NAME return.
10352 (classify_inner_name): Remove 'first_name' argument, add
10353 'context'. Remove unused variable.
10354 (yylex): Explicitly maintain the context type. Exit loop earlier
10355 if NAME result is seen.
10356
0b1afbb3
PA
103572013-02-12 Pedro Alves <palves@redhat.com>
10358
10359 * amd64-darwin-tdep.c: Add (C) after Copyright.
10360 * cli/cli-cmds.h: Ditto.
10361 * cli/cli-decode.c: Ditto.
10362 * cli/cli-decode.h: Ditto.
10363 * cli/cli-dump.c: Ditto.
10364 * cli/cli-dump.h: Ditto.
10365 * cli/cli-interp.c: Ditto.
10366 * cli/cli-logging.c: Ditto.
10367 * cli/cli-script.c: Ditto.
10368 * cli/cli-script.h: Ditto.
10369 * cli/cli-setshow.c: Ditto.
10370 * cli/cli-setshow.h: Ditto.
10371 * cli/cli-utils.c: Ditto.
10372 * cli/cli-utils.h: Ditto.
10373 * config/alpha/nm-osf3.h: Ditto.
10374 * config/djgpp/djconfig.sh: Ditto.
10375 * config/i386/nm-fbsd.h: Ditto.
10376 * config/i386/nm-i386gnu.h: Ditto.
10377 * config/nm-linux.h: Ditto.
10378 * config/nm-nto.h: Ditto.
10379 * config/rs6000/nm-rs6000.h: Ditto.
10380 * config/sparc/nm-sol2.h: Ditto.
10381 * darwin-nat-info.c: Ditto.
10382 * dfp.c: Ditto.
10383 * dfp.h: Ditto.
10384 * gdb-demangle.h: Ditto.
10385 * i386-darwin-nat.c: Ditto.
10386 * i386-darwin-tdep.c: Ditto.
10387 * linux-fork.h: Ditto.
10388 * m32c-tdep.c: Ditto.
10389 * microblaze-linux-tdep.c: Ditto.
10390 * microblaze-rom.c: Ditto.
10391 * microblaze-tdep.c: Ditto.
10392 * microblaze-tdep.h: Ditto.
10393 * mips-linux-tdep.h: Ditto.
10394 * ppc-ravenscar-thread.c: Ditto.
10395 * ppc-ravenscar-thread.h: Ditto.
10396 * prologue-value.c: Ditto.
10397 * prologue-value.h: Ditto.
10398 * ravenscar-thread.c: Ditto.
10399 * ravenscar-thread.h: Ditto.
10400 * sparc-ravenscar-thread.c: Ditto.
10401 * sparc-ravenscar-thread.h: Ditto.
10402 * tilegx-linux-tdep.c: Ditto.
10403 * unwind_stop_reasons.def: Ditto.
10404 * windows-nat.h: Ditto.
10405 * xtensa-linux-tdep.c: Ditto.
10406 * xtensa-xtregs.c: Ditto.
10407 * regformats/regdat.sh: Ditto.
10408 * regformats/regdef.h: Ditto.
10409
6c01dd94
PA
104102013-02-12 Pedro Alves <palves@redhat.com>
10411
10412 * break-catch-sig.c: Update copyright years.
10413
b65a2bd9
SCR
104142013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10415
10416 Add support for a destructor for ui_out data and use it to
10417 provide a ui_out destructor.
10418 * ui-out.h: Declare the new ui_out destructor.
10419 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10420 * ui-out.c (default_data_destroy): Add a default data destructor
10421 which does nothing.
10422 (default_ui_out_impl): Set the new data_destroy field to
10423 default_data_destroy
10424 (uo_data_destroy): Local function which invokes the data
10425 destructor if present.
10426 (clear_table): Local function which clears the table data of a
10427 ui_out object.
10428 (ui_out_destroy): Public function which frees a ui_out object.
10429 (ui_out_table_end): Use the new clear_table function.
10430 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10431 NULL.
10432 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10433 to NULL.
10434
c2792f5a
DE
104352013-02-11 Doug Evans <dje@google.com>
10436
10437 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10438 (printf_decfloat): New function. Broken out from ui_printf.
10439 Remove unnecessary code to shift the entire format string down.
10440 (printf_pointer): New function.
10441 (ui_printf): Code to print C strings, wide C strings, decfloats,
10442 and pointers moved to separate functions.
10443
d9e98382
SDJ
104442013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10445
10446 * valops.c (value_assign): Handling bitfield offset in
10447 `lval_internalvar_component' case.
10448
4ff3ce77
DE
104492013-02-08 Doug Evans <dje@google.com>
10450
10451 * common/format.c (parse_format_string): Fix whitespace.
10452
901900c4
MGD
104532013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10454
10455 * stack.c (return_command): Work around uninitialized variable
10456 warning.
10457
b5dbc8d4
YZ
104582013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10459
10460 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10461 number of the registers from 36 to 34.
10462
51d66578
MS
104632013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10464
10465 * NEWS: Mention new AArch64 native and target support.
10466
176b1c95
MS
104672013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10468
10469 * MAINTAINERS (Write After Approval): Add myself.
10470
9d19df75
MS
104712013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10472 Marcus Shawcroft <marcus.shawcroft@arm.com>
10473 Nigel Stephens <nigel.stephens@arm.com>
10474 Yufeng Zhang <yufeng.zhang@arm.com>
10475
10476 * aarch64-linux-nat.c: New file.
10477 * config/aarch64/linux.mh: New file.
10478 * configure.host: Add AArch64.
10479 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10480
7e1e0340
DE
104812013-02-07 Doug Evans <dje@google.com>
10482
10483 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10484 disassemble command.
10485
45e25a36
MS
104862013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10487
10488 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10489 set_gdbarch_fetch_tls_load_module_address.
10490
bbfdfe1c
DM
104912013-02-06 David S. Miller <davem@davemloft.net>
10492
10493 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10494 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10495 * value.c (struct_return_convention): New function.
10496 (using_struct_return): Implement in terms of struct_return_convention.
10497 * value.h (struct_return_convention): Declare.
10498 * stack.c (return_command): Allow successful overriding of the return
10499 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10500
bc9abe4a
TT
105012013-02-06 Tom Tromey <tromey@redhat.com>
10502
10503 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10504 outside of TRY_CATCH.
10505
134a2066
YQ
105062013-02-06 Yao Qi <yao@codesourcery.com>
10507
10508 * mi/mi-interp.c: Include "tracepoint.h".
10509 (mi_tsv_modified): Declare.
10510 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10511 (mi_interpreter_init): Call observer_attach_tsv_modified.
10512 (mi_tsv_modified): New.
10513 (mi_tsv_created, mi_tsv_deleted): Update.
10514 * tracepoint.c (trace_variable_command): Call
10515 observer_notify_tsv_modified if the initial value of tsv is
10516 changed.
10517 (delete_trace_state_variable): Call
10518 observer_notify_tsv_deleted earlier.
10519 (trace_variable_command): Caller update.
10520 (create_tsv_from_upload): Likewise.
10521 * observer.sh: Declare "struct trace_state_variable".
10522
10523 * NEWS: Mention the new MI notification "=tsv-modified".
10524
59be2b6a
DE
105252013-02-05 Doug Evans <dje@google.com>
10526
10527 * completer.c (location_completer): Fix typo in comment.
10528
d30113d4
JK
105292013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10530
10531 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10532 ADDRESS sorted.
10533
14ac654f
MS
105342013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10535
10536 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10537 Refactor if statement to avoid trailing || operator.
10538
543bf33d
AT
105392013-02-05 Andreas Tobler <andreast@fgznet.ch>
10540
10541 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10542
dc18f110
AT
105432013-02-04 Andreas Tobler <andreast@fgznet.ch>
10544
10545 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10546 * configure.host: Add powerpc*-*-freebsd* target.
10547 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10548 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10549 * config/powerpc/fbsd.mh: New file.
10550
b3ac9c77
SDJ
105512013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10552 Denys Vlasenko <dvlasenk@redhat.com>
10553 Pedro Alves <palves@redhat.com>
10554
10555 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10556 (struct elf_internal_linux_prpsinfo): Forward declare.
10557 * gdbarch.h, gdbarch.c: Regenerate.
10558 * linux-tdep.c: Include `cli/cli-utils.h'.
10559 (linux_fill_prpsinfo): New function.
10560 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10561 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10562 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10563 depending on gdbarch pointer bitness.
10564 * ppc-linux-tdep.c: Include elf-bfd.h.
10565 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10566 on 32-bit.
10567
176eb98c
MS
105682013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10569 Marcus Shawcroft <marcus.shawcroft@arm.com>
10570 Nigel Stephens <nigel.stephens@arm.com>
10571 Yufeng Zhang <yufeng.zhang@arm.com>
10572
10573 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10574
cf0dbd6f
MS
105752013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10576 Marcus Shawcroft <marcus.shawcroft@arm.com>
10577 Nigel Stephens <nigel.stephens@arm.com>
10578 Yufeng Zhang <yufeng.zhang@arm.com>
10579
10580 * aarch64-newlib-tdep.c: New file.
10581 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10582 aarch64*-*-elf.
10583 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10584 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10585 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10586 * osabi.c (gdb_osabi_names): Add "Newlib".
10587
1ae3db19
MS
105882013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10589 Marcus Shawcroft <marcus.shawcroft@arm.com>
10590 Nigel Stephens <nigel.stephens@arm.com>
10591 Yufeng Zhang <yufeng.zhang@arm.com>
10592
10593 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10594 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10595 * aarch64-linux-tdep.c: New file.
10596 * aarch64-linux-tdep.h: New file.
10597 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10598 * configure.tgt: Add aarch64-none-linux-gnu.
10599
07b287a0
MS
106002013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10601 Marcus Shawcroft <marcus.shawcroft@arm.com>
10602 Nigel Stephens <nigel.stephens@arm.com>
10603 Yufeng Zhang <yufeng.zhang@arm.com>
10604
10605 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10606 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10607 (ALLDEPFILES): Add aarch64-tdep.c.
10608 * aarch64-tdep.c: New file.
10609 * aarch64-tdep.h: New file.
10610 * configure.tgt: Add AArch64.
10611 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10612 (aarch64-expedite): New definition.
10613 * features/aarch64-core.xml: New file.
10614 * features/aarch64-fpu.xml: New file.
10615 * features/aarch64-without-fpu.c: New file (generated).
10616 * features/aarch64-without-fpu.xml: New file.
10617 * features/aarch64.c: New file (generated).
10618 * features/aarch64.xml: New file.
10619 * regformats/aarch64-without-fpu.dat: New file (generated).
10620 * regformats/aarch64.dat: New file (generated).
10621
0f1b18ab
JK
106222013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10623
10624 * contrib/expect-read1.c: New file.
10625 * contrib/expect-read1.sh: New file.
10626
233d95b5
JK
106272013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10628
10629 * dwarf2read.c (file_file_name): New function with code from
10630 file_full_name.
10631 (file_full_name): Move most of the code to file_file_name.
10632 (macro_start_file): Rename variable full_name to file_name and use
10633 file_file_name for it. Add comp_dir parameter to new_macro_table.
10634 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10635 macro_source_file->filename access by macro_source_fullname call.
10636 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10637 caller.
10638 * macrotab.c (struct macro_table): New field comp_dir.
10639 (macro_include): New variables link_fullname and source_fullname.
10640 Replace any macro_source_file->filename access by macro_source_fullname
10641 call.
10642 (macro_lookup_inclusion): Remove the partial filenames checking code.
10643 (check_for_redefinition): New variables source_fullname and
10644 found_key_fullname. Replace any macro_source_file->filename access by
10645 macro_source_fullname call.
10646 (macro_undef): New variables source_fullname and key_fullname. Replace
10647 any macro_source_file->filename access by macro_source_fullname call.
10648 (macro_lookup_definition): New variables retval and source_fullname.
10649 Replace any macro_source_file->filename access by macro_source_fullname
10650 call.
10651 (foreach_macro): New variable key_fullname. Replace any
10652 macro_source_file->filename access by macro_source_fullname call.
10653 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10654 macro_source_file->filename access by macro_source_fullname call.
10655 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10656 (macro_source_fullname): New function.
10657 * macrotab.h (struct macro_source_file): Extent the filename field
10658 comment.
10659 (new_macro_table): New parameter comp_dir, add a comment for it.
10660 (macro_source_fullname): new declaration.
10661
da235a7c
JK
106622013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10663
10664 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10665 this_real_name to outer block. Use it also for
10666 compare_filenames_for_search.
10667 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10668 with dw2_get_real_path for file_matcher, considering also
10669 BASENAMES_MAY_DIFFER.
10670 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10671
fbd9ab74
JK
106722013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10673
10674 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10675 to the file_matcher parameter. Pass 0 to it.
10676 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10677 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10678 NULL psymtab_to_fullname result.
10679 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10680 an expected filename instead.
10681 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10682 file_matcher parameter. Call also psymtab_to_fullname, after newly
10683 considering BASENAMES_MAY_DIFFER.
10684 * source.c (rewrite_source_path): Remove static.
10685 * source.h (rewrite_source_path): New declaration.
10686 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10687 the expand_symtabs_matching field. Comment it.
10688 * symtab.c (file_matches): New function comment. Add parameter
10689 basenames, implement it.
10690 (search_symbols_file_matches): Add basenames parameter. Update the
10691 file_matches caller.
10692 (search_symbols): Match FILES also against symtab_to_fullname.
10693 Optimize it for BASENAMES_MAY_DIFFER.
10694
56d397a3
JK
106952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10696
10697 * source.c (print_source_lines_base): Print for TUI also "fullname".
10698 * tui/tui-data.c (init_content_element): Change tui_locator_element
10699 field to full_name.
10700 * tui/tui-data.h (struct tui_locator_element): Likewise.
10701 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10702 tui_update_locator_filename calls to tui_update_locator_fullname.
10703 Replace symtab->filename refererence by symtab_to_fullname call.
10704 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10705 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10706 field to full_name. Replace symtab->filename refererence by
10707 symtab_to_fullname call.
10708 (tui_show_symtab_source): Rename parameter to fullname. Change
10709 tui_locator_element field to full_name.
10710 * tui/tui-stack.c: Include source.h.
10711 (tui_set_locator_filename): Rename the declaration to ...
10712 (tui_set_locator_fullname): ... here. Rename its parameter to
10713 fullname, updates its comment.
10714 (tui_set_locator_info): Rename its parameter to fullname.
10715 (tui_set_locator_filename): Rename the definition to ...
10716 (tui_set_locator_fullname): ... here. Rename its parameter to
10717 fullname, updates its comment. Change tui_locator_element field to
10718 full_name.
10719 (tui_set_locator_info): Rename its parameter to fullname.
10720 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10721 (tui_update_locator_filename): Rename to ...
10722 (tui_update_locator_fullname): ... here. Rename callee to
10723 tui_set_locator_fullname.
10724 (tui_show_frame_info): Replace symtab->filename refererence by
10725 symtab_to_fullname call.
10726 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10727 (tui_update_locator_fullname): ... here.
10728 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10729 tui_update_locator_fullname. Replace symtab->filename refererence by
10730 symtab_to_fullname call.
10731 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10732 Rename the callee to tui_update_locator_fullname.
10733 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10734
05cba821
JK
107352013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10736
10737 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10738 by symtab_to_filename_for_display calls.
10739 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10740 (clear_command): New variable sal_fullname, initialize it. Replace
10741 compare_filenames_for_search by filename_cmp with sal_fullname.
10742 (say_where, update_static_tracepoint): Replace symtab->filename
10743 refererences by symtab_to_filename_for_display calls.
10744 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10745 Likewise.
10746 * dwarf2read.c: Include source.h.
10747 (fixup_go_packaging): Replace symtab->filename refererences by
10748 symtab_to_filename_for_display calls.
10749 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10750 Replace symtab->filename refererences by symtab_to_filename_for_display
10751 calls.
10752 (create_sals_line_offset, convert_linespec_to_sals): New variable
10753 fullname, initialize it, replace symtab->filename reference by the
10754 variable.
10755 * linux-fork.c: Include source.h.
10756 (info_checkpoints_command): Replace symtab->filename refererences by
10757 symtab_to_filename_for_display calls.
10758 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10759 by symtab_to_filename_for_display calls.
10760 * mdebugread.c: Include source.h.
10761 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10762 symtab_to_filename_for_display calls.
10763 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10764 (mi_cmd_file_list_exec_source_files): Likewise.
10765 * printcmd.c: Include source.h.
10766 (build_address_symbolic): Replace symtab->filename refererences by
10767 symtab_to_filename_for_display calls.
10768 * psymtab.c (partial_map_symtabs_matching_filename)
10769 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10770 with psymtab_to_fullname.
10771 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10772 by symtab_to_filename_for_display calls.
10773 (stpy_get_filename): New variable filename, initialize it, use instead
10774 of symtab->filename refererences.
10775 (salpy_str): Make variable filename const char *. Replace
10776 symtab->filename refererences by symtab_to_filename_for_display calls.
10777 * skip.c: Include source.h and filenames.h.
10778 (skip_file_command): Remove const from the symtab variable. Replace
10779 symtab->filename refererences by symtab_to_fullname call.
10780 (function_name_is_marked_for_skip): New variables searched_for_fullname
10781 and fullname. Use them to search also with symtab's fullname.
10782 * source.c (find_source_lines): Replace symtab->filename refererences
10783 by symtab_to_filename_for_display calls.
10784 (print_source_lines_base): New variable filename, use it instead of
10785 symtab->filename. Replace symtab->filename refererences by
10786 symtab_to_filename_for_display calls.
10787 (line_info, forward_search_command): Replace symtab->filename
10788 refererences by symtab_to_filename_for_display calls.
10789 (reverse_search_command): Replace symtab->filename refererences by
10790 symtab_to_filename_for_display calls. New variable filename for it.
10791 * stack.c (frame_info): Likewise.
10792 * symmisc.c: Include source.h.
10793 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10794 (maintenance_info_symtabs): Replace symtab->filename refererences by
10795 symtab_to_filename_for_display calls.
10796 * symtab.c (iterate_over_some_symtabs): Call
10797 compare_filenames_for_search also with symtab_to_fullname.
10798 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10799 symtab->filename refererences by symtab_to_filename_for_display calls.
10800 (find_line_symtab): Replace symtab->filename refererences by
10801 symtab_to_filename_for_display calls.
10802 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10803 (print_symbol_info): Make the last parameter const char *. New
10804 variable s_filename. Use it in the function.
10805 (symtab_symbol_info): Make the last_filename variable const char *.
10806 Replace symtab->filename refererences by symtab_to_filename_for_display
10807 calls.
10808 (rbreak_command): New variable fullname. Use it. Replace
10809 symtab->filename refererence by symtab_to_filename_for_display call.
10810 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10811 (print_one_static_tracepoint_marker): Replace symtab->filename
10812 refererences by symtab_to_filename_for_display calls.
10813 * tui/tui-source.c (tui_set_source_content): New variables filename and
10814 s_filename. Replace symtab->filename refererences by this variable.
10815 Replace other symtab->filename refererences by
10816 symtab_to_filename_for_display calls.
10817
1b56eb55
JK
108182013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10819 Jan Kratochvil <jan.kratochvil@redhat.com>
10820
10821 Add a new variable that controls a way in which filenames are
10822 displayed.
10823 * NEWS (set filename-display): New entry.
10824 * source.c (filename_display_basename, filename_display_relative)
10825 (filename_display_absolute, filename_display_kind_names)
10826 (filename_display_string, show_filename_display_string)
10827 (symtab_to_filename_for_display): New.
10828 (_initialize_source): Added initialization of 'filename-display'
10829 variable.
10830 * source.h (symtab_to_filename_for_display): Added declaration.
10831 * stack.c (print_frame): Added new variable and calling of a new
10832 function and condition with this variable. Changed third argument of
10833 calling of a function.
10834
aa079c93
JK
108352013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10836
10837 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10838 Rename field reference filename to fullname.
10839 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10840 fullname. New comment for it.
10841 * tui/tui-source.c (tui_set_source_content): Rename field reference
10842 filename to fullname. Initialize field by symtab_to_fullname now.
10843 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10844 reference filename to fullname. Use symtab_to_fullname during
10845 comparison.
10846
652a8996
JK
108472013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10848
10849 Code cleanup.
10850 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10851 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10852 filename to fullname. Rename variable this_name to this_fullname.
10853 Lowercase FILENAME_CMP call.
10854 (dw2_find_symbol_file): New comment for the returned string.
10855 (dwarf2_gdb_index_functions): Rename the function to
10856 dw2_expand_symtabs_with_fullname.
10857 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10858 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10859 fullname.
10860 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10861 * symfile.h (struct quick_symbol_functions): Rename field
10862 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10863 parameter filename to fullname. Document returned string meaning for
10864 find_symbol_file.
10865 * symtab.c (find_line_symtab): Rename the called function to
10866 expand_symtabs_with_fullname.
10867
af529f8f
JK
108682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10869
10870 Code cleanup.
10871 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10872 call of filename_cmp with compare_filenames_for_search.
10873 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10874 is_abs, unify the call of FILENAME_CMP with
10875 compare_filenames_for_search. New gdb_asserts for real_path and name.
10876 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10877 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10878 * symfile.h (struct quick_symbol_functions): Extend the comment for
10879 map_symtabs_matching_filename.
10880 * symtab.c (compare_filenames_for_search): Remove the function comment
10881 relative path requirement. Handle absolute filenames, with a comment.
10882 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10883 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10884 real_path and name. Unify the call of compare_filenames_for_search
10885 with FILENAME_CMP.
10886 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10887
2f202fde
JK
108882013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10889
10890 Code cleanup.
10891 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10892 source_file references by symtab field references. Remove variables
10893 sal and fullname.
10894 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10895 (clear_command, say_where): Replace bp_location field source_file
10896 references by symtab field references.
10897 (bp_location_dtor): Remove the source_file reference.
10898 (update_static_tracepoint): Replace bp_location field source_file
10899 references by symtab field references.
10900 (breakpoint_free_objfile): New function.
10901 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10902 Replace the field source_file by field symtab, extend its comment.
10903 (breakpoint_free_objfile): New declaration.
10904 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10905 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10906 field source_file references by symtab field references.
10907
f5b95b50
JK
109082013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10909
10910 Replace xfullpath calls by gdb_realpath calls.
10911 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10912 function comment.
10913 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10914 Remove it from the iterate_over_some_symtabs call.
10915 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10916 Remove it from the dw2_map_expand_apply calls, remove a block handling
10917 it.
10918 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10919 Remove it from the iterate_over_some_symtabs call.
10920 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10921 Remove it from the partial_map_expand_apply calls, remove a block
10922 handling it. Drop gdb_realpath call and cleanups from the real_path
10923 handling.
10924 * source.c (openp): Drop the comment part about xfullpath. Replace
10925 xfullpath calls by gdb_realpath calls.
10926 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10927 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10928 from method map_symtabs_matching_filename and its comment.
10929 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10930 gdb_realpath call.
10931 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10932 remove it also from the function comment, remove a block handling it.
10933 Drop gdb_realpath call and cleanups from the real_path handling.
10934 (iterate_over_symtabs): Drop variable full_path and its use.
10935 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10936 * utils.c (xfullpath): Remove.
10937 * utils.h (xfullpath): Remove.
10938
d78489bf
AT
109392013-02-01 Andreas Tobler <andreast@fgznet.ch>
10940
10941 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10942 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10943 (ALLDEPFILES): Add ppc64-tdep.c.
10944 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10945 ppc64-tdep.o to gdb_target_obs.
10946 * ppc64-tdep.h: New file.
10947 * ppc64-tdep.c: New file.
10948 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10949 ppc-linux-tdep.c to here.
10950 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10951 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10952 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10953 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10954 from ppc-linux-tdep.c to here.
10955 (ppc64_convert_from_func_ptr_addr): Rename from
10956 ppc64_linux_convert_from_func_ptr_addr to
10957 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10958 here.
10959 * rs6000-tdep.c:
10960 (read_insn): Move from ppc-linux-tdep.c to here.
10961 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10962 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10963 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10964 Removed above functions.
10965 (ppc_linux_init_abi): Adjust.
10966
8db60374
AR
109672013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10968
10969 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10970
f2e5f4ce
AR
109712013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10972
10973 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10974
c1f7d745
PA
109752013-02-01 Pedro Alves <palves@redhat.com>
10976
10977 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10978 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10979
8a92335b
JK
109802013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10981
10982 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10983 files with no separate debug info.
10984 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10985 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10986 only for files with no separate debug info.
10987
8eacb197
TT
109882013-01-31 Tom Tromey <tromey@redhat.com>
10989
10990 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10991 change type.
10992 (struct jit_program_space_data): Rename from jit_inferior_data.
10993 Update comments.
10994 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10995 Change return type. Attach data to program space.
10996 (jit_program_space_data_cleanup): Rename from
10997 jit_inferior_data_cleanup; change argument type.
10998 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10999 change type.
11000 (jit_register_code): Update.
11001 (jit_update_inferior_cache): Remove.
11002 (jit_breakpoint_deleted): Get jit data from the location's program
11003 space.
11004 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11005 'ps_data', change type.
11006 (jit_inferior_init, jit_breakpoint_re_set_internal)
11007 (jit_event_handler): Update.
11008 (free_objfile_data): Get data from objfile's program space.
11009 (_initialize_jit): Update.
11010
f25c0135
TT
110112013-01-31 Tom Tromey <tromey@redhat.com>
11012
11013 PR gdb/13987:
11014 * jit.c (struct jit_inferior_data) <cached_code_address,
11015 jit_breakpoint>: New fields.
11016 (jit_breakpoint_re_set_internal): Fix logging. Only create
11017 breakpoint if cached address has changed.
11018 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11019 functions.
11020 (_initialize_jit): Register breakpoint deleted observer.
11021
974a734b
AR
110222013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11023
11024 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11025 (save_infcall_suspend_state): Ifdef out unused inf.
11026 (restore_infcall_suspend_state): Ifdef out unused inf.
11027 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11028 (jit_frame_sniffer): Remove unused inf_data.
11029
df54f8eb
AR
110302013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11031
11032 * c-exp.y (classify_inner_name): Remove unused type.
11033 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11034 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11035 need_escape.
11036 (c_get_string): Remove unused kind.
11037 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11038
5799c0b9
AR
110392013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11040
11041 * charset.c (intermediate_encoding): Remove unused i.
11042 * completer.c (signal_completer): Remove unused i.
11043 * continuations.c (discard_my_continuations_1): Remove unused
11044 continuation_ptr.
11045 * corelow.c (core_close): Remove unuseD name.
11046 (get_core_siginfo): Remove unused pid.
11047 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11048 i, cps.
11049 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11050 (loclist_describe_location): Remove unused first.
11051 * event-top.c (command_line_handler): Remove unused got_eof.
11052 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11053 (resize_section_table): Remove unused old_value.
11054 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11055 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11056 * i386-tdep.c (i386_process_record): Remove unused rex.
11057 * infcmd.c (get_return_value): Remove unused uiout.
11058 * jv-lang.c (type_from_class): Remove unused is_array.
11059 * jv-valprint.c (java_val_print): Remove unused i.
11060 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11061 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11062 * m2-typeprint.c (m2_print_type): Remove unused code.
11063 * macroexp.c (get_character_constant): Remove unused body_start.
11064 (macro_stringify): Remove unused result.
11065 * objc-lang.c (find_methods): Remove unused gdbarch.
11066 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11067 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11068 * stack.c (print_frame_args): Remove unused summary.
11069 * thread.c (thread_apply_command): Remove unused p.
11070 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11071 * valops.c (search_struct_method): Remove unused skip.
11072 * valprint.c (generic_val_print): Remove unused byte_order.
11073 * varobj.c (varobj_update): Remove unused changed.
11074 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11075 (alias_command): Remove unused c.
11076 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11077 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11078 format.
11079 (mi_cmd_data_write_memory): Remove unused word_format.
11080 (mi_cmd_data_write_memory_bytes): Remove unused r.
11081 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11082 p_start, p_end.
11083 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11084 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11085 line_width.
11086
c656bca5
AR
110872013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11088
11089 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11090 * symtab.c (iterate_over_symtabs): Remove unused s.
11091 (find_pc_sect_symtab): Remove unused pspAce.
11092 (find_pc_sect_line): Remove unused alt_symtab.
11093 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11094 (completion_list_add_name): Remove unused newsize.
11095
7078baeb
TT
110962013-01-31 Tom Tromey <tromey@redhat.com>
11097
11098 PR c++/14998:
11099 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11100 TYPE_CODE_FUNC.
11101
c2e8b827
AR
111022013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11103
11104 * target.c (target_read_string): Remove unused origlen.
11105
0e43993a
AR
111062013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11107
11108 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11109 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11110 * ax-general.c (ax_print): Remove unused is_float.
11111 * blockframe.c (block_innermost_frame): Remove unused start, end.
11112 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11113
765a97ab
AR
111142013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11115
11116 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11117 (svr4_read_so_list): Remove unused lmo.
11118 * solib-target.c (solib_target_relocate_section_addresses): Remove
11119 unused flags.
11120
a99dad3d
TT
111212013-01-30 Tom Tromey <tromey@redhat.com>
11122
11123 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11124
3bff1ecd
TT
111252013-01-30 Tom Tromey <tromey@redhat.com>
11126
11127 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11128 * utils.c (gnu_debuglink_crc32): Remove.
11129 * utils.h (gnu_debuglink_crc32): Don't declare.
11130
7d455152
TT
111312013-01-30 Tom Tromey <tromey@redhat.com>
11132
11133 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11134 (read_structure_type, read_enumeration_type): Remove cast.
11135
abee88f2
TT
111362013-01-30 Tom Tromey <tromey@redhat.com>
11137
11138 * dwarf2read.c (read_namespace_type): Remove cast.
11139 (read_typedef): Likewise.
11140
8d9878a4
TT
111412013-01-29 Tom Tromey <tromey@redhat.com>
11142
11143 * dwarf2read.c (free_dwo_file): Remove assert.
11144
a543d2a9
TT
111452013-01-29 Tom Tromey <tromey@redhat.com>
11146
11147 * value.c (deprecated_set_value_modifiable): Remove.
11148 * value.h (deprecated_set_value_modifiable): Remove.
11149
bed911e5
DE
111502013-01-28 Doug Evans <dje@google.com>
11151
11152 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11153 to addresses from dwo files.
11154
28c64fc2
SCR
111552013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11156
11157 * valops.c (find_overload_match): Remove unused argument 'lax'.
11158 * value.h: Remove unused argument 'lax' from the declaration of
11159 find_overload_match.
11160 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11161 to find_overload_match.
11162 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11163 argument to find_overload_match.
11164
4d4ec4e5
TT
111652013-01-25 Tom Tromey <tromey@redhat.com>
11166
11167 * dwarf2read.c (processing_has_namespace_info): Remove.
11168 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11169 (process_die, read_func_scope, dwarf2_start_symtab)
11170 (new_symbol_full): Update.
11171
195a3f6c
TT
111722013-01-25 Tom Tromey <tromey@redhat.com>
11173
11174 * cp-namespace.c (cp_set_block_scope): Remove.
11175 * cp-support.h (cp_set_block_scope): Remove.
11176 * dbxread.c: Include block.h.
11177 (cp_set_block_scope): New function.
11178 (process_one_symbol): Update.
11179 * dwarf2read.c (read_func_scope): Use block_set_scope.
11180
8ba0730a
PA
111812013-01-25 Pedro Alves <palves@redhat.com>
11182
11183 * remote.c (add_current_inferior_and_thread): Tweak comment.
11184
12aaed36
TT
111852013-01-25 Tom Tromey <tromey@redhat.com>
11186
11187 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11188 (cp_add_using_directive): Add 'copy_names' argument.
11189 * cp-support.h (cp_add_using_directive): Update.
11190 (struct using_direct) <import_src, import_dest, alias,
11191 declaration>: Now const.
11192 * dwarf2read.c (read_import_statement): Use obconcat.
11193 Don't copy names passed to cp_add_using_directive.
11194
7fc75ca7
TT
111952013-01-25 Tom Tromey <tromey@redhat.com>
11196
11197 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11198
3405876a
PA
111992013-01-25 Pedro Alves <palves@redhat.com>
11200
11201 * remote.c (stop_reply_extract_thread): New.
11202 (add_current_inferior_and_thread): New parameter 'wait_status'.
11203 Handle it.
11204 (remote_start_remote): Pass wait status to
11205 add_current_inferior_and_thread.
11206 (extended_remote_run): Update comment.
11207 (extended_remote_create_inferior_1): Pass wait status to
11208 add_current_inferior_and_thread.
11209
8954db33
AB
112102013-01-25 Andrew Burgess <aburgess@broadcom.com>
11211 Ulrich Weigand <uweigand@de.ibm.com>
11212
11213 * valarith.c (value_vector_widen): New function for replicating a
11214 scalar into a vector.
11215 (value_binop): Use value_vector_widen to widen scalar to vector
11216 rather than casting, this better matches gcc C behaviour.
11217 * valops.c (value_casst): Update logic for casting between vector
11218 types, and for casting from scalar to vector, try to match gcc C
11219 behaviour.
11220 * value.h (value_vector_widen): Declare.
11221 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11222 function, handle special case for casting scalar to vector.
11223 (opencl_relop): Use opencl_value_cast.
11224 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11225 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11226 in order to use opencl_value_cast.
11227
843b20dc
YQ
112282013-01-25 Yao Qi <yao@codesourcery.com>
11229
11230 * event-loop.c: Include "queue.h".
11231 (gdb_event_p): New typedef.
11232 (DECLARE_QUEUE_P): Use.
11233 (DEFINE_QUEUE_P): Use.
11234 (async_queue_event): Remove.
11235 (gdb_event_xfree): New.
11236 (initialize_event_loop): New.
11237 (process_event): Use QUEUE macros.
11238 (event_queue): Remove.
11239 (gdb_wait_for_event): Caller update.
11240 (check_async_event_handlers): Likewise.
11241 (poll_timers): Likewise.
11242 * event-loop.h (initialize_event_loop): Declare.
11243 * event-loop.c (gdb_event_xfree): New.
11244 * top.c (gdb_init): Call initialize_event_loop.
11245
20ad8856
YQ
112462013-01-25 Yao Qi <yao@codesourcery.com>
11247
11248 * event-loop.c (async_queue_event): Remove one parameter
11249 'position'. Remove code handling 'position' == TAIL.
11250 (gdb_wait_for_event): Caller update.
11251 (check_async_event_handlers): Caller update.
11252 (poll_timers): Caller update.
11253 * event-loop.h (enum queue_position): Remove.
11254
3bbbe775
MK
112552013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11256
11257 * MAINTAINERS: Update my email.
11258
a87d9ac4
YQ
112592013-01-25 Yao Qi <yao@codesourcery.com>
11260
11261 * main.c (print_gdb_help): Remove "--epoch" from the help
11262 message.
11263
2077afdd
TD
112642013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11265
11266 * symtab.c (skip_prologue_using_sal): Consider a file
11267 change the same as an increased line number
11268
63da4037
TD
112692013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11270
30e8ee25 11271 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11272
45e6c716
TT
112732013-01-24 Tom Tromey <tromey@redhat.com>
11274
11275 * ada-lang.h (ada_decode_symbol): Make return type const.
11276 * ada-lang.c (ada_decode_symbol): Likewise.
11277
b1ae631a
DE
112782013-01-23 Doug Evans <dje@google.com>
11279
11280 * linespec.c (find_linespec_symbols): Make static.
11281
55a78401
SDJ
112822013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11283
11284 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11285 type on float conversion for complex type.
11286
bea883fd
SCR
112872013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11288
11289 Add a new class gdb.Architecture which exposes GDB's
11290 internal representation of architecture via GDB Python API.
11291 * Makefile.in: Add entries corresponding to the new file
11292 python/py-arch.c.
11293 * NEWS (Python Scripting): Add entries for the new class
11294 gdb.Architecture and the new method gdb.Frame.architecture.
11295 * python/py-arch.c: Implement gdb.Architecture class.
11296 * python/py-frame.c (frapy_arch): Implement the method
11297 gdb.Frame.architecture().
11298 (frame_object_methods): Add 'architecture' to the method table.
11299 * python/python-internal.h: Add declarations of new utility
11300 functions.
11301 * python/python.c (_initialize_python): Initialize
11302 gdb.Architecture class.
11303
796a7ff8
DE
113042013-01-23 Doug Evans <dje@google.com>
11305
11306 Work around binutils/15021.
11307 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11308 type_unit_group out of union s. All uses updated.
11309 (read_index_from_section): Watch for index version 8.
11310 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11311 an imported symtab.
11312 (write_psymtabs_to_index): Increment version number to 8.
11313
0928e93d
PA
113142013-01-22 Pedro Alves <palves@redhat.com>
11315
11316 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11317 user-visible.
11318
9c97429f
PA
113192013-01-22 Pedro Alves <palves@redhat.com>
11320
11321 * annotate.c (annotate_breakpoints_changed): Rename to ...
11322 (annotate_breakpoints_invalid): ... this. Make static.
11323 (breakpoint_changed): Adjust.
11324 (_initialize_annotate): Always install the observers. Install a
11325 "breakpoint_created" observer.
11326 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11327 * breakpoint.c (set_breakpoint_condition)
11328 (breakpoint_set_commands, do_map_commands_command)
11329 (init_raw_breakpoint, clear_command, set_ignore_count)
11330 (enable_breakpoint_disp): No longer call
11331 annotate_breakpoints_changed.
11332
bd00c694
PA
113332013-01-22 Pedro Alves <palves@redhat.com>
11334
11335 * annotate.c: Include "inferior.h".
11336 (frames_invalid_emitted)
11337 (breakpoints_invalid_emitted): New globals.
11338 (async_background_execution_p): New function.
11339 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11340 emitting the annotation if it has already been emitted.
11341 (annotate_display_prompt): New function.
11342 * annotate.h (annotate_display_prompt): New declaration.
11343 * event-top.c: Include annotate.h.
11344 (display_gdb_prompt): Call annotate_display_prompt.
11345
187d10dd
PA
113462013-01-22 Pedro Alves <palves@redhat.com>
11347
11348 * annotate.c (ignore_count_changed): Delete.
11349 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11350 (annotate_ignore_count_change): Delete.
11351 (annotate_stopped): Don't emit a delayed breakpoints-changed
11352 annotation.
11353 * annotate.h (annotate_ignore_count_change): Delete.
11354 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11355 annotate_ignore_count_change.
11356
d84cf7eb
TT
113572013-01-22 Tom Tromey <tromey@redhat.com>
11358
11359 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11360 require_rvalue for a register location.
11361
8f1d5693
MK
113622013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11363
11364 * breakpoint.c (print_one_breakpoint_location): Add MI
11365 field 'thread-groups' when printing a breakpoint.
11366 (output_thread_groups): New function.
11367
aa6199c6
SCR
113682013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11369
11370 * python/lib/gdb/commands/explore.py
11371 (CompoundExplorer.explore_expr): Correct the name of a method
11372 being invoked.
11373 (ExploreTypeCommand.invoke): Add a missing 'return'.
11374
d2afef13
TT
113752013-01-21 Tom Tromey <tromey@redhat.com>
11376
11377 * gdb_obstack.h (obconcat): Move declaration here, from...
11378 * symfile.h (obconcat): ... here.
11379 * gdb_obstack.c: New file.
11380 (obconcat): Move from...
11381 * symfile.c (obconcat): ... here.
11382 * Makefile.in (SFILES): Add gdb_obstack.c.
11383 (COMMON_OBS): Add gdb_obstack.o.
11384
10f0c4bb
TT
113852013-01-21 Tom Tromey <tromey@redhat.com>
11386
11387 * symfile.h (obsavestring): Don't declare.
11388 * symfile.c (obsavestring): Remove.
11389 * ada-exp.y: Use obstack_copy0, not obsavestring.
11390 * ada-lang.c: Use obstack_copy0, not obsavestring.
11391 * coffread.c: Use obstack_copy0, not obsavestring.
11392 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11393 * dbxread.c: Use obstack_copy0, not obsavestring.
11394 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11395 * jit.c: Use obstack_copy0, not obsavestring.
11396 * mdebugread.c: Use obstack_copy0, not obsavestring.
11397 * psymtab.c: Use obstack_copy0, not obsavestring.
11398 * stabsread.c: Use obstack_copy0, not obsavestring.
11399 * xcoffread.c: Use obstack_copy0, not obsavestring.
11400
86f62fd7
TT
114012013-01-21 Tom Tromey <tromey@redhat.com>
11402
11403 * dwarf2read.c (fixup_go_packaging): Save package name
11404 on objfile obstack.
11405 * gdbtypes.c (init_type): Don't copy name.
11406
15d034d0
TT
114072013-01-21 Tom Tromey <tromey@redhat.com>
11408
11409 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11410 const.
11411 (struct attribute) <u.str>: Now const.
11412 (struct fnfieldlist) <name>: Now const.
11413 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11414 (partial_die_parent_scope): Make return type const.
11415 (partial_die_full_name, add_partial_symbol): Update.
11416 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11417 'name' const.
11418 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11419 (read_file_scope, read_func_scope, dwarf2_add_field)
11420 (dwarf2_add_member_fn, read_structure_type)
11421 (process_enumeration_scope, read_array_type, read_module_type)
11422 (read_base_type, read_subrange_type): Update.
11423 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11424 (new_symbol_full, guess_full_die_structure_name): Update.
11425 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11426 (dwarf2_name): Return const type.
11427 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11428 const.
11429
748e18ae
TT
114302013-01-21 Tom Tromey <tromey@redhat.com>
11431
11432 * gdbtypes.c (init_type): Make 'name' const.
11433 * gdbtypes.h (init_type): Update.
11434
46212e0b
TT
114352013-01-21 Tom Tromey <tromey@redhat.com>
11436
11437 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11438 (start_symtab): Make 'name' and 'dirname' const. Use
11439 set_last_source_file.
11440 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11441 (last_source_file): Define. Now static.
11442 (set_last_source_file, get_last_source_file): New functions.
11443 * buildsym.h (last_source_file): Don't declare.
11444 (start_symtab): Update.
11445 (set_last_source_file, get_last_source_file): Declare.
11446 * coffread.c (complete_symtab): Use set_last_source_file.
11447 (coff_end_symtab): Likewise.
11448 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11449 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11450 set_last_source_file.
11451 (process_one_symbol): Use get_last_source_file.
11452 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11453 (psymtab_to_symtab_1): Use get_last_source_file.
11454 * xcoffread.c (process_linenos): Use get_last_source_file.
11455 (complete_symtab): Use set_last_source_file.
11456 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11457 (scan_xcoff_symtab): Use set_last_source_file.
11458
9d2ceabe
TT
114592013-01-21 Tom Tromey <tromey@redhat.com>
11460
11461 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11462 (symbol_set_names): Remove casts. Handle field const-ness.
11463
cfc594ee
TT
114642013-01-21 Tom Tromey <tromey@redhat.com>
11465
11466 * dwarf2read.c (new_symbol_full): Remove cast.
11467 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11468 * symtab.h (symbol_set_demangled_name): Update.
11469
5484b13a
TT
114702013-01-21 Tom Tromey <tromey@redhat.com>
11471
11472 * main.c (captured_main): Call bfd_init.
11473
1605ef26
TT
114742013-01-21 Tom Tromey <tromey@redhat.com>
11475
11476 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11477 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11478 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11479 * NEWS: Update.
11480
3b74cdc3
JK
114812013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11482
11483 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11484
5a352474
JK
114852013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11486
11487 Fix gdb.fortran/common-block.exp crash in PIE mode.
11488 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11489 LOC_COMMON_BLOCK.
11490 * f-valprint.c (info_common_command_for_block): Expect
11491 LOC_COMMON_BLOCK in gdb_assert.
11492 * symtab.h (struct general_symbol_info): Update comment for the
11493 common_block member.
11494 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11495 (enum address_class): New member LOC_COMMON_BLOCK.
11496
c60797fd
DB
114972013-01-18 David Blaikie <dblaikie@gmail.com>
11498
11499 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11500
46f35228
TT
115012013-01-18 Tom Tromey <tromey@redhat.com>
11502
11503 PR c++/14999:
11504 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11505 Call require_rvalue.
11506
257e7a09
YQ
115072013-01-18 Yao Qi <yao@codesourcery.com>
11508
11509 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11510 (dbx_read_symtab): New declaration.
11511 (dbx_psymtab_to_symtab): Delete.
11512 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11513 Rename parameter PST to SELF. Exchanged two parameters.
11514 (start_psymtab): Caller update.
11515 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11516 (dwarf2_read_symtab): New declaration.
11517 (dwarf2_psymtab_to_symtab): Delete.
11518 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11519 Rename parameter PST to SELF. Exchanged two parameters.
11520 (create_partial_symtab): Caller update.
11521 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11522 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11523 Rename parameter PST to SELF. Exchanged two parameters.
11524 (parse_partial_symbols, new_psymtab): Caller update.
11525 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11526 two parameters.
11527 * psymtab.c (psymtab_to_symtab): Caller update.
11528 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11529 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11530 Rename parameter PST to SELF. Exchanged two parameters.
11531 (xcoff_start_psymtab): Caller update.
11532
0de5618e
YQ
115332013-01-18 Yao Qi <yao@codesourcery.com>
11534
11535 * infrun.c (proceed): Rename local variable 'oneproc' to
11536 'force_step'.
11537
5c04624b
DE
115382013-01-17 Doug Evans <dje@google.com>
11539
848e3e78
DE
11540 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11541 (dw2_build_type_unit_groups): Delete. All uses updated.
11542
5c04624b
DE
11543 * symtab.h (struct symbol_search): Add comment.
11544
d84fca2c
JK
115452013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11546
11547 * symtab.c (compare_filenames_for_search): New comment for
11548 HAS_DRIVE_SPEC.
11549
6108433d
TT
115502013-01-17 Tom Tromey <tromey@redhat.com>
11551
11552 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11553
c89ffd86
JK
115542013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11555
11556 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11557 initialize it by existing make_cleanup. Call new do_cleanups.
11558
db2b2972
TT
115592013-01-17 Tom Tromey <tromey@redhat.com>
11560
11561 * cp-abi.c (cp_abi_completer): New function.
11562 (_initialize_cp_abi): Set completer for "set cp-abi".
11563
be7d37a2
TT
115642013-01-17 Tom Tromey <tromey@redhat.com>
11565
11566 * mem-break.c: Remove obsolete comment.
11567 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11568
c9fb1240
SD
115692012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11570
11571 * jit.c (jit_reader_load_command): Interpret the jit reader name
11572 as an absolute path if it begins with a forward slash.
11573
db334a01
SD
115742012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11575
11576 PR gdb/14550
11577
11578 * jit.c (finalize_symtab): Ensure that only the global block has a
11579 NULL superblock.
11580
7d928dac
PA
115812013-01-17 Pedro Alves <palves@redhat.com>
11582
11583 * acinclude.m4: Include ../config/plugins.m4,
11584 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11585 * Makefile.in (aclocal_m4_deps): Update.
11586 * aclocal.m4: Renegerate.
11587
fb8cf7c5
DE
115882013-01-16 Doug Evans <dje@google.com>
11589
11590 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11591
ab04a2af
TT
115922013-01-16 Pedro Alves <palves@redhat.com>
11593 Tom Tromey <tromey@redhat.com>
11594
11595 PR cli/7221:
11596 * NEWS: Add "catch signal".
11597 * breakpoint.c (base_breakpoint_ops): No longer static.
11598 (bpstat_explains_signal): New function.
11599 (init_catchpoint): No longer static.
11600 (base_breakpoint_explains_signal): New function.
11601 (base_breakpoint_ops): Initialize new field.
11602 * breakpoint.h (enum bpstat_signal_value): New.
11603 (struct breakpoint_ops) <explains_signal>: New field.
11604 (bpstat_explains_signal): Remove macro, declare as function.
11605 (base_breakpoint_ops, init_catchpoint): Declare.
11606 * break-catch-sig.c: New file.
11607 * inferior.h (signal_catch_update): Declare.
11608 * infrun.c (signal_catch): New global.
11609 (handle_syscall_event): Update for change to
11610 bpstat_explains_signal.
11611 (handle_inferior_event): Likewise. Always handle random signals
11612 via bpstats.
11613 (signal_cache_update): Check signal_catch.
11614 (signal_catch_update): New function.
11615 (_initialize_infrun): Initialize signal_catch.
11616 * Makefile.in (SFILES): Add break-catch-sig.c.
11617 (COMMON_OBS): Add break-catch-sig.o.
11618
8ac3646f
TT
116192013-01-16 Tom Tromey <tromey@redhat.com>
11620
11621 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11622 (print_one_catch_solib, print_one_catch_syscall)
11623 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11624 "catch-type".
11625
5a18e302
YQ
116262013-01-16 Yao Qi <yao@codesourcery.com>
11627
11628 * printcmd.c (current_display_number): Make it static.
11629
3f01d0d0
YQ
116302013-01-16 Yao Qi <yao@codesourcery.com>
11631
11632 * infcmd.c (step_once): Don't check '!single_inst' as it was
11633 checked before.
11634
1ed59174
JK
116352013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11636
11637 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11638
44478ab3
TT
116392013-01-14 Tom Tromey <tromey@redhat.com>
11640
11641 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11642 set command.
11643 * command.h (add_setshow_string_noescape_cmd): Update.
11644 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11645 (complete_set_gnutarget): New function.
11646 (_initialize_core): Set the "set gnutarget" completer.
11647
06d66ee9
TT
116482013-01-14 Tom Tromey <tromey@redhat.com>
11649
11650 PR symtab/14442:
11651 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11652 (c_type_print_modifier): Likewise.
11653 * dwarf2read.c (read_tag_restrict_type): New function.
11654 (read_type_die_1): Handle DW_TAG_restrict_type.
11655 * gdbtypes.c (make_restrict_type): New function.
11656 (recursive_dump_type): Handle TYPE_RESTRICT.
11657 * gdbtypes.h (enum type_flag_values): Renumber.
11658 (enum type_instance_flag_value): Add
11659 TYPE_INSTANCE_FLAG_RESTRICT.
11660 (TYPE_RESTRICT): New macro.
11661 (make_restrict_type): Declare.
11662
c9bf0622
TT
116632013-01-14 Tom Tromey <tromey@redhat.com>
11664
11665 PR symtab/14931:
11666 * psymtab.c (struct psymtab_state): New.
11667 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11668 functions.
11669 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11670 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11671
44d594fd
PA
116722013-01-14 Richard Sharman <richard_sharman@mitel.com>
11673 Pedro Alves <palves@redhat.com>
11674
11675 PR remote/14786
11676
11677 * remote.c (remote_threads_info): Make a copy of the reply from
11678 qfThreadInfo and use that instead of rs->buf.
11679
442e4d9c
YQ
116802013-01-14 Yao Qi <yao@codesourcery.com>
11681
11682 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11683 (dbx_psymtab_to_symtab): Likewise.
11684 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11685 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11686 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11687
5b12a61c
JK
116882013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11689
11690 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11691 make_cleanup_restore_current_language. Call set_language. Move
11692 OLD_CHAIN and INNER_CHAIN cleanups.
11693 * utils.c (do_restore_current_language)
11694 (make_cleanup_restore_current_language): New functions.
11695 * utils.h (make_cleanup_restore_current_language): New declaration.
11696
f0a4b570
JK
116972013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11698
11699 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11700 non-existing files.
11701
57b3c00c
JK
11702 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11703 non-existing files if FILENAME is already absolute.
11704
daefa854
JK
117052013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11706
11707 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11708 fputs_filtered. Append trailing newline.
11709
ca9c6ee2
YQ
117102013-01-11 Yao Qi <yao@codesourcery.com>
11711 Stan Shebs <stan@codesourcery.com>
11712
11713 * psymtab.c (init_psymbol_list): Clarify the comment.
11714
f28045c2
YQ
117152013-01-11 Yao Qi <yao@codesourcery.com>
11716
11717 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11718 (update_dprintf_command_list): Assert that 'printf_line' is
11719 non-null. Remove condition check.
11720
da5132d3
JK
117212013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11722
11723 Code cleanup.
11724 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11725 type const char *.
11726 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11727 const char *.
11728 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11729
843e694d
AG
117302013-01-09 Anthony Green <green@moxielogic.com>
11731
11732 * cp-abi.c (cplus_print_vtable): Don't return value from void
11733 function.
11734 * ada-lang.c (re_set_catch_assert): Ditto.
11735
da51c347
DE
117362013-01-09 Doug Evans <dje@google.com>
11737
11738 * symfile.h (quick_symbol_functions): Delete member
11739 pre_expand_symtabs_matching. All uses removed.
11740 * dwarf2read.c (dw2_lookup_symbol): Implement.
11741 (dw2_do_expand_symtabs_matching): Delete.
11742 (dw2_pre_expand_symtabs_matching): Delete.
11743 (struct dw2_symtab_iterator): New type.
11744 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11745 (dw2_expand_symtabs_for_function): Rewrite.
11746 (dwarf2_gdb_index_functions): Update.
11747 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11748 (psym_functions): Update.
11749
b2259038
TT
117502013-01-09 Tom Tromey <tromey@redhat.com>
11751
11752 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11753 * configure: Rebuild.
11754 * configure.ac: Add somread.o to the build if BFD has SOM
11755 support.
11756 * somread.c: Include som/aout.h, not syms.h.
11757 (som_symtab_read): Use som_external_symbol_dictionary_record.
11758 Unpack records manually.
11759 (_initialize_somread): Declare.
11760
bdad4180
MF
117612012-01-08 Mike Frysinger <vapier@gentoo.org>
11762
11763 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11764 Cast return_address to 64bits.
11765
03cdf680
HZ
117662013-01-08 Hui Zhu <hui_zhu@mentor.com>
11767
11768 * printcmd.c: Remove define of function output_command.
11769 * tracepoint.c: Remove extern of function output_command.
11770 * valprint.h: (output_command): New extern.
11771
8a808554
TT
117722013-01-07 Tom Tromey <tromey@redhat.com>
11773
11774 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11775 Remove.
11776 (objc_language_defn): Use c_printchar, c_printstr,
11777 c_emit_char.
11778
e93a8774
TT
117792013-01-07 Tom Tromey <tromey@redhat.com>
11780
11781 PR cli/7719:
11782 * NEWS: Update.
11783 * ada-valprint.c (printstr, print_field_values): Remove
11784 "inspect_it" code.
11785 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11786 code.
11787 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11788 code.
11789 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11790 * main.c (captured_main): Remove "epoch" argument.
11791 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11792 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11793 * p-valprint.c (pascal_object_print_value_fields): Remove
11794 "inspect_it" code.
11795 * printcmd.c (print_command_1): Remove 'inspect' argument.
11796 (print_command, call_command): Update.
11797 (inspect_command): Remove.
11798 (_initialize_printcmd): Make "inspect" an alias for "print".
11799 * top.c (epoch_interface): Remove.
11800 * top.h (epoch_interface): Remove.
11801 * valprint.c (user_print_options): Update.
11802 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11803 * valprint.h (struct value_print_options) <inspect_it>: Remove
11804 field.
11805
118062013-01-04 Tom Tromey <tromey@redhat.com>
11807
11808 * valprint.h (read_string): Add 'extern'.
11809
b967eb24
JB
118102013-01-07 Joel Brobecker <brobecker@adacore.com>
11811
11812 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11813 used to decide whether to define darwin_read_dyld_info or not.
11814
78a8b30e
PM
118152013-01-03 Pierre Muller <muller@sourceware.org>
11816
11817 * main.c (relocate_gdb_directory): Avoid calling stat function
11818 if DIR is empty.
11819
50da2f25
YQ
118202013-01-03 Yao Qi <yao@codesourcery.com>
11821
11822 * psymtab.c (fixup_psymbol_section): Update declaration.
11823 (fixup_psymbol_section): Remove code returning value.
11824
e7e8980f
YQ
118252013-01-03 Yao Qi <yao@codesourcery.com>
11826
11827 * symtab.h: Remove some out of date comments.
11828 (enum exception_event_kind): Move it ...
11829 * breakpoint.c: ... here.
11830
569283d4
MF
118312013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11832
9f9d9a96 11833 PR gdb/14405
569283d4
MF
11834 * darwin-nat.c (darwin_read_dyld_info): Only build if
11835 TASK_DYLD_INFO_COUNT is defined.
11836 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11837 TASK_DYLD_INFO_COUNT is defined.
11838
2e36fbea
TT
118392013-01-02 Tom Tromey <tromey@redhat.com>
11840
11841 * symfile.h (struct ecoff_debug_hack): Remove.
11842 * objfiles.c: Don't include mdebugread.h.
11843
4f05add4
TT
118442013-01-02 Tom Tromey <tromey@redhat.com>
11845
11846 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11847 * configure.ac: Check for Mach-O support in BFD. Update
11848 CONFIG_OBS.
11849 * configure: Rebuild.
11850
def63ff0
TT
118512013-01-02 Tom Tromey <tromey@redhat.com>
11852
11853 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11854 * configure.ac: Use GDB_AC_CHECK_BFD.
11855 * configure: Rebuild.
11856
60c5dd93
MK
118572013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11858
11859 * MAINTAINERS: Update my email.
11860
6e58437e
JB
118612013-01-01 Joel Brobecker <brobecker@adacore.com>
11862
11863 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11864
627fe805
JB
118652013-01-01 Joel Brobecker <brobecker@adacore.com>
11866
11867 * rs6000-nat.c (bss_data_overlap): New function.
11868 (vmap_symtab): Use it to adjust the .bss section's offset.
11869
28e7fd62
JB
118702013-01-01 Joel Brobecker <brobecker@adacore.com>
11871
11872 Update year range in copyright notice of all files.
11873
e93a8774 118742013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11875
11876 * top.c (print_gdb_version): Update copyright year.
11877
72b20e9c 11878For older changes see ChangeLog-2012.
c906108c
SS
11879\f
11880Local Variables:
11881mode: change-log
11882left-margin: 8
11883fill-column: 74
11884version-control: never
57da7796 11885coding: utf-8
c906108c 11886End:
This page took 2.374305 seconds and 4 git commands to generate.